Version 1.13.20.
[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 # rjones <rjones@redhat.com>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-10-11 20:58+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Japanese (http://www.transifex.net/projects/p/fedora/team/"
14 "ja/)\n"
15 "Language: ja\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=1; plural=0\n"
20
21 #. type: =head1
22 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
23 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
24 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
25 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
26 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
27 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
28 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
29 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
30 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
31 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
32 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
33 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
34 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
35 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
36 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
37 #: ../tools/virt-win-reg.pl:35
38 msgid "NAME"
39 msgstr "名前"
40
41 #. type: textblock
42 #: ../align/virt-alignment-scan.pod:5
43 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
44 msgstr ""
45
46 #. type: =head1
47 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
48 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
49 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
50 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
51 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
52 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
53 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
54 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
55 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
56 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
57 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
58 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
59 #: ../test-tool/libguestfs-test-tool.pod:7
60 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
61 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
62 #: ../tools/virt-win-reg.pl:39
63 msgid "SYNOPSIS"
64 msgstr ""
65
66 #. type: verbatim
67 #: ../align/virt-alignment-scan.pod:9
68 #, no-wrap
69 msgid ""
70 " virt-alignment-scan [--options] -d domname\n"
71 "\n"
72 msgstr ""
73
74 #. type: verbatim
75 #: ../align/virt-alignment-scan.pod:11
76 #, no-wrap
77 msgid ""
78 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
79 "\n"
80 msgstr ""
81
82 #. type: =head1
83 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
84 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
85 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
86 #: ../erlang/examples/guestfs-erlang.pod:16
87 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
88 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
89 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
90 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
91 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
92 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
93 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
94 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
95 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
96 #: ../test-tool/libguestfs-test-tool.pod:11
97 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
98 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
99 #: ../tools/virt-win-reg.pl:63
100 msgid "DESCRIPTION"
101 msgstr ""
102
103 #. type: textblock
104 #: ../align/virt-alignment-scan.pod:15
105 msgid ""
106 "When older operating systems install themselves, the partitioning tools "
107 "place partitions at a sector misaligned with the underlying storage "
108 "(commonly the first partition starts on sector C<63>).  Misaligned "
109 "partitions can result in an operating system issuing more I/O than should be "
110 "necessary."
111 msgstr ""
112
113 #. type: textblock
114 #: ../align/virt-alignment-scan.pod:21
115 msgid ""
116 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
117 "machines and disk images and warns you if there are alignment problems."
118 msgstr ""
119
120 #. type: textblock
121 #: ../align/virt-alignment-scan.pod:25
122 msgid ""
123 "Currently there is no virt tool for fixing alignment problems.  You can only "
124 "reinstall the guest operating system.  The following NetApp document "
125 "summarises the problem and possible solutions: L<http://media.netapp.com/"
126 "documents/tr-3747.pdf>"
127 msgstr ""
128
129 #. type: =head1
130 #: ../align/virt-alignment-scan.pod:30
131 msgid "OUTPUT"
132 msgstr ""
133
134 #. type: textblock
135 #: ../align/virt-alignment-scan.pod:32
136 msgid "To run this tool on a disk image directly, use the I<-a> option:"
137 msgstr ""
138
139 #. type: verbatim
140 #: ../align/virt-alignment-scan.pod:34
141 #, no-wrap
142 msgid ""
143 " $ virt-alignment-scan -a winxp.img\n"
144 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
145 "\n"
146 msgstr ""
147
148 #. type: verbatim
149 #: ../align/virt-alignment-scan.pod:37
150 #, no-wrap
151 msgid ""
152 " $ virt-alignment-scan -a fedora16.img\n"
153 " /dev/sda1      1048576         1024K   ok\n"
154 " /dev/sda2      2097152         2048K   ok\n"
155 " /dev/sda3    526385152         2048K   ok\n"
156 "\n"
157 msgstr ""
158
159 #. type: textblock
160 #: ../align/virt-alignment-scan.pod:42
161 msgid ""
162 "To run the tool on a guest known to libvirt, use the I<-d> option and "
163 "possibly the I<-c> option:"
164 msgstr ""
165
166 #. type: verbatim
167 #: ../align/virt-alignment-scan.pod:45
168 #, no-wrap
169 msgid ""
170 " # virt-alignment-scan -d RHEL5\n"
171 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
172 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
173 "\n"
174 msgstr ""
175
176 #. type: verbatim
177 #: ../align/virt-alignment-scan.pod:49
178 #, no-wrap
179 msgid ""
180 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
181 " /dev/sda1      1048576         1024K   ok\n"
182 " /dev/sda2    105906176         1024K   ok\n"
183 " /dev/sdb1        65536           64K   ok\n"
184 "\n"
185 msgstr ""
186
187 #. type: textblock
188 #: ../align/virt-alignment-scan.pod:54
189 msgid ""
190 "The output consists of 4 or more whitespace-separated columns.  Only the "
191 "first 4 columns are signficant if you want to parse this from a program.  "
192 "The columns are:"
193 msgstr ""
194
195 #. type: =item
196 #: ../align/virt-alignment-scan.pod:60
197 msgid "col 1"
198 msgstr ""
199
200 #. type: textblock
201 #: ../align/virt-alignment-scan.pod:62
202 msgid ""
203 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
204 "on the first block device)"
205 msgstr ""
206
207 #. type: =item
208 #: ../align/virt-alignment-scan.pod:65
209 msgid "col 2"
210 msgstr ""
211
212 #. type: textblock
213 #: ../align/virt-alignment-scan.pod:67
214 msgid "the start of the partition in bytes"
215 msgstr ""
216
217 #. type: =item
218 #: ../align/virt-alignment-scan.pod:69
219 msgid "col 3"
220 msgstr ""
221
222 #. type: textblock
223 #: ../align/virt-alignment-scan.pod:71
224 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
225 msgstr ""
226
227 #. type: =item
228 #: ../align/virt-alignment-scan.pod:73
229 msgid "col 4"
230 msgstr ""
231
232 #. type: textblock
233 #: ../align/virt-alignment-scan.pod:75
234 msgid ""
235 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
236 "can cause performance problems"
237 msgstr ""
238
239 #. type: =item
240 #: ../align/virt-alignment-scan.pod:78
241 msgid "cols 5+"
242 msgstr ""
243
244 #. type: textblock
245 #: ../align/virt-alignment-scan.pod:80
246 msgid "optional free-text explanation."
247 msgstr ""
248
249 #. type: textblock
250 #: ../align/virt-alignment-scan.pod:84
251 msgid ""
252 "The exit code from the program changes depending on whether poorly aligned "
253 "partitions were found.  See L</EXIT STATUS> below."
254 msgstr ""
255
256 #. type: textblock
257 #: ../align/virt-alignment-scan.pod:87
258 msgid "If you just want the exit code with no output, use the I<-q> option."
259 msgstr ""
260
261 #. type: =head1
262 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
263 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
264 #: ../clone/virt-sysprep.pod:36 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
265 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
266 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
267 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
268 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
269 #: ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99
270 #: ../test-tool/libguestfs-test-tool.pod:36
271 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
272 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
273 #: ../tools/virt-win-reg.pl:96
274 msgid "OPTIONS"
275 msgstr ""
276
277 #. type: =item
278 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
279 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
280 #: ../clone/virt-sysprep.pod:40 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
281 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
282 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
283 #: ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103
284 #: ../test-tool/libguestfs-test-tool.pod:40
285 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
286 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
287 #: ../tools/virt-win-reg.pl:104
288 msgid "B<--help>"
289 msgstr ""
290
291 #. type: textblock
292 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
293 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
294 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
295 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
296 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
297 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
298 #: ../tools/virt-win-reg.pl:106
299 msgid "Display brief help."
300 msgstr ""
301
302 #. type: =item
303 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
304 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
305 #: ../clone/virt-sysprep.pod:44 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
306 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
307 msgid "B<-a> file"
308 msgstr ""
309
310 #. type: =item
311 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
312 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
313 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
314 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
315 msgid "B<--add> file"
316 msgstr ""
317
318 #. type: textblock
319 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:48
320 msgid "Add I<file> which should be a disk image from a virtual machine."
321 msgstr ""
322
323 #. type: textblock
324 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
325 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
326 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
327 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
328 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
329 msgid ""
330 "The format of the disk image is auto-detected.  To override this and force a "
331 "particular format use the I<--format=..> option."
332 msgstr ""
333
334 #. type: =item
335 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
336 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
337 #: ../clone/virt-sysprep.pod:53 ../df/virt-df.pod:78
338 #: ../rescue/virt-rescue.pod:107
339 msgid "B<-c> URI"
340 msgstr ""
341
342 #. type: =item
343 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
344 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
345 #: ../clone/virt-sysprep.pod:55 ../df/virt-df.pod:80
346 #: ../rescue/virt-rescue.pod:109
347 msgid "B<--connect> URI"
348 msgstr ""
349
350 #. type: textblock
351 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
352 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
353 #: ../clone/virt-sysprep.pod:57 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
354 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
355 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
356 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
357 msgid ""
358 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
359 "to the default libvirt hypervisor."
360 msgstr ""
361
362 #. type: textblock
363 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
364 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
365 #: ../clone/virt-sysprep.pod:60 ../df/virt-df.pod:85
366 #: ../rescue/virt-rescue.pod:114
367 msgid ""
368 "If you specify guest block devices directly (I<-a>), then libvirt is not "
369 "used at all."
370 msgstr ""
371
372 #. type: =item
373 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
374 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
375 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
376 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
377 msgid "B<-d> guest"
378 msgstr ""
379
380 #. type: =item
381 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
382 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
383 #: ../clone/virt-sysprep.pod:65 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
384 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
385 msgid "B<--domain> guest"
386 msgstr ""
387
388 #. type: textblock
389 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
390 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
391 #: ../clone/virt-sysprep.pod:67 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
392 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
393 msgid ""
394 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
395 "instead of names."
396 msgstr ""
397
398 #. type: =item
399 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
400 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
401 #: ../clone/virt-sysprep.pod:89 ../df/virt-df.pod:101
402 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:133
403 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
404 msgid "B<--format=raw|qcow2|..>"
405 msgstr ""
406
407 #. type: =item
408 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
409 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
410 #: ../clone/virt-sysprep.pod:91 ../df/virt-df.pod:103
411 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
412 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:101
413 #: ../rescue/virt-rescue.pod:126
414 msgid "B<--format>"
415 msgstr ""
416
417 #. type: textblock
418 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
419 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
420 #: ../clone/virt-sysprep.pod:93 ../df/virt-df.pod:105
421 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
422 #: ../fuse/guestmount.pod:137 ../rescue/virt-rescue.pod:128
423 msgid ""
424 "The default for the I<-a> option is to auto-detect the format of the disk "
425 "image.  Using this forces the disk format for I<-a> options which follow on "
426 "the command line.  Using I<--format> with no argument switches back to auto-"
427 "detection for subsequent I<-a> options."
428 msgstr ""
429
430 #. type: textblock
431 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
432 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
433 #: ../clone/virt-sysprep.pod:98 ../df/virt-df.pod:110
434 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
435 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
436 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2862
437 msgid "For example:"
438 msgstr ""
439
440 #. type: verbatim
441 #: ../align/virt-alignment-scan.pod:134
442 #, no-wrap
443 msgid ""
444 " virt-alignment-scan --format=raw -a disk.img\n"
445 "\n"
446 msgstr ""
447
448 #. type: textblock
449 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
450 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
451 #: ../clone/virt-sysprep.pod:102 ../df/virt-df.pod:114
452 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
453 #: ../rescue/virt-rescue.pod:137
454 msgid "forces raw format (no auto-detection) for C<disk.img>."
455 msgstr ""
456
457 #. type: verbatim
458 #: ../align/virt-alignment-scan.pod:138
459 #, no-wrap
460 msgid ""
461 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
462 "\n"
463 msgstr ""
464
465 #. type: textblock
466 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
467 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
468 #: ../clone/virt-sysprep.pod:106 ../df/virt-df.pod:118
469 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
470 #: ../rescue/virt-rescue.pod:141
471 msgid ""
472 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
473 "detection for C<another.img>."
474 msgstr ""
475
476 #. type: textblock
477 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
478 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
479 #: ../clone/virt-sysprep.pod:109 ../df/virt-df.pod:121
480 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
481 msgid ""
482 "If you have untrusted raw-format guest disk images, you should use this "
483 "option to specify the disk format.  This avoids a possible security problem "
484 "with malicious guests (CVE-2010-3851)."
485 msgstr ""
486
487 #. type: =item
488 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:414
489 #: ../sparsify/virt-sparsify.pod:153
490 msgid "B<-q>"
491 msgstr ""
492
493 #. type: =item
494 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:416
495 #: ../sparsify/virt-sparsify.pod:155
496 msgid "B<--quiet>"
497 msgstr ""
498
499 #. type: textblock
500 #: ../align/virt-alignment-scan.pod:151
501 msgid ""
502 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
503 "below)."
504 msgstr ""
505
506 #. type: =item
507 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
508 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
509 #: ../clone/virt-sysprep.pod:122 ../df/virt-df.pod:173
510 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
511 #: ../fuse/guestmount.pod:257 ../inspector/virt-inspector.pod:119
512 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
513 msgid "B<-v>"
514 msgstr ""
515
516 #. type: =item
517 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
518 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
519 #: ../clone/virt-sysprep.pod:124 ../df/virt-df.pod:175
520 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
521 #: ../fuse/guestmount.pod:259 ../inspector/virt-inspector.pod:121
522 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
523 msgid "B<--verbose>"
524 msgstr ""
525
526 #. type: textblock
527 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
528 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
529 #: ../clone/virt-sysprep.pod:126 ../df/virt-df.pod:177
530 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
531 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
532 msgid "Enable verbose messages for debugging."
533 msgstr ""
534
535 #. type: =item
536 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
537 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
538 #: ../clone/virt-sysprep.pod:128 ../df/virt-df.pod:179
539 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
540 #: ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pod:125
541 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:484
542 #: ../sparsify/virt-sparsify.pod:165
543 msgid "B<-V>"
544 msgstr ""
545
546 #. type: =item
547 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
548 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
549 #: ../clone/virt-sysprep.pod:130 ../df/virt-df.pod:181
550 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
551 #: ../fuse/guestmount.pod:265 ../inspector/virt-inspector.pod:127
552 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:486
553 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
554 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
555 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
556 msgid "B<--version>"
557 msgstr ""
558
559 #. type: textblock
560 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
561 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
562 #: ../clone/virt-sysprep.pod:132 ../df/virt-df.pod:183
563 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
564 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:488
565 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
566 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
567 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
568 msgid "Display version number and exit."
569 msgstr ""
570
571 #. type: =item
572 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
573 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
574 #: ../clone/virt-sysprep.pod:134 ../df/virt-df.pod:185
575 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
576 #: ../fuse/guestmount.pod:278 ../inspector/virt-inspector.pod:131
577 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
578 #: ../tools/virt-tar.pl:158
579 msgid "B<-x>"
580 msgstr ""
581
582 #. type: textblock
583 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
584 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
585 #: ../clone/virt-sysprep.pod:136 ../df/virt-df.pod:187
586 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
587 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
588 msgid "Enable tracing of libguestfs API calls."
589 msgstr ""
590
591 #. type: =head1
592 #: ../align/virt-alignment-scan.pod:172
593 msgid "RECOMMENDED ALIGNMENT"
594 msgstr ""
595
596 #. type: textblock
597 #: ../align/virt-alignment-scan.pod:174
598 msgid ""
599 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
600 "first sector of the first partition at sector 63, with a 512 byte sector "
601 "size.  This happens because of a historical accident.  Drives have to report "
602 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
603 "completely meaningless on modern drives, but it happens that the geometry "
604 "reported always has 63 sectors per track.  The operating system therefore "
605 "places the first partition at the start of the second \"track\", at sector "
606 "63."
607 msgstr ""
608
609 #. type: textblock
610 #: ../align/virt-alignment-scan.pod:183
611 msgid ""
612 "When the guest OS is virtualized, the host operating system and hypervisor "
613 "may prefer accesses aligned to one of:"
614 msgstr ""
615
616 #. type: =item
617 #: ../align/virt-alignment-scan.pod:188
618 msgid "* 512 bytes"
619 msgstr ""
620
621 #. type: textblock
622 #: ../align/virt-alignment-scan.pod:190
623 msgid ""
624 "if the host OS uses local storage directly on hard drive partitions, and the "
625 "hard drive has 512 byte physical sectors."
626 msgstr ""
627
628 #. type: =item
629 #: ../align/virt-alignment-scan.pod:193
630 msgid "* 4 Kbytes"
631 msgstr ""
632
633 #. type: textblock
634 #: ../align/virt-alignment-scan.pod:195
635 msgid ""
636 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
637 "backed storage on filesystems with 4Kbyte block size; or for some types of "
638 "network-attached storage."
639 msgstr ""
640
641 #. type: =item
642 #: ../align/virt-alignment-scan.pod:199
643 msgid "* 64 Kbytes"
644 msgstr ""
645
646 #. type: textblock
647 #: ../align/virt-alignment-scan.pod:201
648 msgid ""
649 "for high-end network-attached storage.  This is the optimal block size for "
650 "some NetApp hardware."
651 msgstr ""
652
653 #. type: =item
654 #: ../align/virt-alignment-scan.pod:204
655 msgid "* 1 Mbyte"
656 msgstr ""
657
658 #. type: textblock
659 #: ../align/virt-alignment-scan.pod:206
660 msgid "see L</1 MB PARTITION ALIGNMENT> below."
661 msgstr ""
662
663 #. type: textblock
664 #: ../align/virt-alignment-scan.pod:210
665 msgid ""
666 "Partitions which are not aligned correctly to the underlying storage cause "
667 "extra I/O.  For example:"
668 msgstr ""
669
670 #. type: verbatim
671 #: ../align/virt-alignment-scan.pod:213
672 #, no-wrap
673 msgid ""
674 "                       sect#63\n"
675 "                       +--------------------------+------\n"
676 "                       |         guest            |\n"
677 "                       |    filesystem block      |\n"
678 " ---+------------------+------+-------------------+-----+---\n"
679 "    |  host block             |  host block             |\n"
680 "    |                         |                         |\n"
681 " ---+-------------------------+-------------------------+---\n"
682 "\n"
683 msgstr ""
684
685 #. type: textblock
686 #: ../align/virt-alignment-scan.pod:222
687 msgid ""
688 "In this example, each time a 4K guest block is read, two blocks on the host "
689 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
690 "written, two host blocks must first be read, the old and new data combined, "
691 "and the two blocks written back (4x I/O)."
692 msgstr ""
693
694 #. type: =head2
695 #: ../align/virt-alignment-scan.pod:227
696 msgid "LINUX HOST BLOCK AND I/O SIZE"
697 msgstr ""
698
699 #. type: textblock
700 #: ../align/virt-alignment-scan.pod:229
701 msgid ""
702 "New versions of the Linux kernel expose the physical and logical block size, "
703 "and minimum and recommended I/O size."
704 msgstr ""
705
706 #. type: textblock
707 #: ../align/virt-alignment-scan.pod:232
708 msgid "For a typical hard drive with 512 byte sectors:"
709 msgstr ""
710
711 #. type: verbatim
712 #: ../align/virt-alignment-scan.pod:234
713 #, no-wrap
714 msgid ""
715 " $ cat /sys/block/sda/queue/physical_block_size\n"
716 " 512\n"
717 " $ cat /sys/block/sda/queue/logical_block_size\n"
718 " 512\n"
719 " $ cat /sys/block/sda/queue/minimum_io_size\n"
720 " 512\n"
721 " $ cat /sys/block/sda/queue/optimal_io_size\n"
722 " 0\n"
723 "\n"
724 msgstr ""
725
726 #. type: textblock
727 #: ../align/virt-alignment-scan.pod:243
728 msgid "For a NetApp LUN:"
729 msgstr ""
730
731 #. type: verbatim
732 #: ../align/virt-alignment-scan.pod:245
733 #, no-wrap
734 msgid ""
735 " $ cat /sys/block/sdc/queue/logical_block_size\n"
736 " 512\n"
737 " $ cat /sys/block/sdc/queue/physical_block_size\n"
738 " 512\n"
739 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
740 " 4096\n"
741 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
742 " 65536\n"
743 "\n"
744 msgstr ""
745
746 #. type: textblock
747 #: ../align/virt-alignment-scan.pod:254
748 msgid ""
749 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
750 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
751 msgstr ""
752
753 #. type: textblock
754 #: ../align/virt-alignment-scan.pod:258
755 msgid ""
756 "For detailed information about what these numbers mean, see L<http://docs."
757 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
758 "Storage_Administration_Guide/newstorage-iolimits.html>"
759 msgstr ""
760
761 #. type: textblock
762 #: ../align/virt-alignment-scan.pod:261
763 msgid ""
764 "[Thanks to Mike Snitzer for providing NetApp data and additional "
765 "information.]"
766 msgstr ""
767
768 #. type: =head2
769 #: ../align/virt-alignment-scan.pod:264
770 msgid "1 MB PARTITION ALIGNMENT"
771 msgstr ""
772
773 #. type: textblock
774 #: ../align/virt-alignment-scan.pod:266
775 msgid ""
776 "Microsoft picked 1 MB as the default alignment for all partitions starting "
777 "with Windows 2008 Server, and Linux has followed this."
778 msgstr ""
779
780 #. type: textblock
781 #: ../align/virt-alignment-scan.pod:269
782 msgid ""
783 "Assuming 512 byte sectors in the guest, you will now see the first partition "
784 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
785 "multiple of 2048 sectors."
786 msgstr ""
787
788 #. type: textblock
789 #: ../align/virt-alignment-scan.pod:273
790 msgid ""
791 "1 MB alignment is compatible with all current alignment requirements (4K, "
792 "64K) and provides room for future growth in physical block sizes."
793 msgstr ""
794
795 #. type: =head2
796 #: ../align/virt-alignment-scan.pod:276
797 msgid "SETTING ALIGNMENT"
798 msgstr ""
799
800 #. type: textblock
801 #: ../align/virt-alignment-scan.pod:278
802 msgid ""
803 "Currently there is no virt tool for fixing alignment problems in guests.  "
804 "This is a difficult problem to fix because simply moving partitions around "
805 "breaks the bootloader, necessitating either manual reinstallation of the "
806 "bootloader using a rescue disk, or complex and error-prone hacks."
807 msgstr ""
808
809 #. type: textblock
810 #: ../align/virt-alignment-scan.pod:284
811 msgid ""
812 "L<virt-resize(1)> does not change the alignment of the first partition, but "
813 "it does align the second and subsequent partitions to a multiple of 64 or "
814 "128 sectors (depending on the version of virt-resize, 128 in virt-resize "
815 "E<ge> 1.13.19).  For operating systems that have a separate boot partition, "
816 "virt-resize could be used to align the main OS partition, so that the "
817 "majority of OS accesses except at boot will be aligned."
818 msgstr ""
819
820 #. type: textblock
821 #: ../align/virt-alignment-scan.pod:292
822 msgid ""
823 "The easiest way to correct partition alignment problems is to reinstall your "
824 "guest operating systems.  If you install operating systems from templates, "
825 "ensure these have correct partition alignment too."
826 msgstr ""
827
828 #. type: textblock
829 #: ../align/virt-alignment-scan.pod:297
830 msgid ""
831 "For older versions of Windows, the following NetApp document contains useful "
832 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
833 msgstr ""
834
835 #. type: textblock
836 #: ../align/virt-alignment-scan.pod:300
837 msgid ""
838 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
839 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
840 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
841 "contains an example."
842 msgstr ""
843
844 #. type: =head1
845 #: ../align/virt-alignment-scan.pod:305 ../cat/virt-cat.pod:191
846 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483
847 #: ../clone/virt-sysprep.pod:359 ../df/virt-df.pod:215
848 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
849 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:601
850 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
851 #: ../tools/virt-make-fs.pl:532 ../tools/virt-tar.pl:289
852 #: ../tools/virt-win-reg.pl:733
853 msgid "SHELL QUOTING"
854 msgstr ""
855
856 #. type: textblock
857 #: ../align/virt-alignment-scan.pod:307 ../cat/virt-cat.pod:193
858 #: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485
859 #: ../clone/virt-sysprep.pod:361 ../df/virt-df.pod:217
860 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
861 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:603
862 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
863 #: ../tools/virt-make-fs.pl:534 ../tools/virt-tar.pl:291
864 #: ../tools/virt-win-reg.pl:741
865 msgid ""
866 "Libvirt guest names can contain arbitrary characters, some of which have "
867 "meaning to the shell such as C<#> and space.  You may need to quote or "
868 "escape these characters on the command line.  See the shell manual page L<sh"
869 "(1)> for details."
870 msgstr ""
871
872 #. type: =head1
873 #: ../align/virt-alignment-scan.pod:312 ../cat/virt-cat.pod:198
874 #: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490
875 #: ../clone/virt-sysprep.pod:366 ../df/virt-df.pod:222
876 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1113
877 #: ../fuse/guestmount.pod:303 ../inspector/virt-inspector.pod:375
878 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:227
879 #: ../test-tool/libguestfs-test-tool.pod:90
880 msgid "EXIT STATUS"
881 msgstr ""
882
883 #. type: textblock
884 #: ../align/virt-alignment-scan.pod:314
885 msgid "This program returns:"
886 msgstr ""
887
888 #. type: =item
889 #: ../align/virt-alignment-scan.pod:318 ../align/virt-alignment-scan.pod:324
890 #: ../align/virt-alignment-scan.pod:330 ../align/virt-alignment-scan.pod:337
891 #: ../clone/virt-sysprep.pod:213 ../clone/virt-sysprep.pod:217
892 #: ../clone/virt-sysprep.pod:221 ../clone/virt-sysprep.pod:225
893 #: ../clone/virt-sysprep.pod:240 ../clone/virt-sysprep.pod:244
894 #: ../clone/virt-sysprep.pod:248 ../clone/virt-sysprep.pod:252
895 #: ../clone/virt-sysprep.pod:256 ../clone/virt-sysprep.pod:292
896 #: ../clone/virt-sysprep.pod:314 ../clone/virt-sysprep.pod:318
897 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
898 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
899 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
900 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
901 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
902 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
903 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
904 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
905 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
906 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
907 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
908 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
909 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
910 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
911 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
912 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
913 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
914 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
915 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
916 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
917 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
918 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
919 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
920 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
921 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
922 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
923 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
924 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
925 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
926 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
927 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
928 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
929 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
930 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
931 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
932 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
933 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790
934 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
935 #: ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816
936 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824
937 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966
938 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976
939 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041
940 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461
941 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475
942 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3018
943 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3033
944 #: ../src/guestfs-actions.pod:3040 ../src/guestfs.pod:388
945 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
946 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
947 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
948 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
949 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
950 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
951 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
952 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
953 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
954 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
955 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636
956 #: ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047
957 #: ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060
958 #: ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083
959 #: ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322
960 #: ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197
961 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
962 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
963 #: ../tools/virt-win-reg.pl:722
964 msgid "*"
965 msgstr ""
966
967 #. type: textblock
968 #: ../align/virt-alignment-scan.pod:320
969 msgid "0"
970 msgstr ""
971
972 #. type: textblock
973 #: ../align/virt-alignment-scan.pod:322
974 msgid ""
975 "successful exit, all partitions are aligned E<ge> 64K for best performance"
976 msgstr ""
977
978 #. type: textblock
979 #: ../align/virt-alignment-scan.pod:326
980 msgid "1"
981 msgstr ""
982
983 #. type: textblock
984 #: ../align/virt-alignment-scan.pod:328
985 msgid "an error scanning the disk image or guest"
986 msgstr ""
987
988 #. type: textblock
989 #: ../align/virt-alignment-scan.pod:332
990 msgid "2"
991 msgstr ""
992
993 #. type: textblock
994 #: ../align/virt-alignment-scan.pod:334
995 msgid ""
996 "successful exit, some partitions have alignment E<lt> 64K which can result "
997 "in poor performance on high end network storage"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../align/virt-alignment-scan.pod:339
1002 msgid "3"
1003 msgstr ""
1004
1005 #. type: textblock
1006 #: ../align/virt-alignment-scan.pod:341
1007 msgid ""
1008 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1009 "poor performance on most hypervisors"
1010 msgstr ""
1011
1012 #. type: =head1
1013 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:203
1014 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
1015 #: ../clone/virt-sysprep.pod:370 ../df/virt-df.pod:227
1016 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1017 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1018 #: ../fish/guestfish.pod:1267 ../fish/virt-copy-in.pod:50
1019 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1020 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
1021 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1022 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1023 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1024 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
1025 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255
1026 #: ../test-tool/libguestfs-test-tool.pod:100
1027 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1028 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
1029 #: ../tools/virt-win-reg.pl:746
1030 msgid "SEE ALSO"
1031 msgstr ""
1032
1033 #. type: textblock
1034 #: ../align/virt-alignment-scan.pod:348
1035 msgid ""
1036 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1037 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1038 msgstr ""
1039
1040 #. type: =head1
1041 #: ../align/virt-alignment-scan.pod:355 ../cat/virt-cat.pod:212
1042 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
1043 #: ../clone/virt-sysprep.pod:384 ../df/virt-df.pod:235
1044 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1045 #: ../resize/virt-resize.pod:635 ../sparsify/virt-sparsify.pod:264
1046 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1047 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
1048 #: ../tools/virt-win-reg.pl:772
1049 msgid "AUTHOR"
1050 msgstr ""
1051
1052 #. type: textblock
1053 #: ../align/virt-alignment-scan.pod:357 ../cat/virt-cat.pod:214
1054 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
1055 #: ../clone/virt-sysprep.pod:386 ../df/virt-df.pod:237
1056 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1057 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:637
1058 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1059 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
1060 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
1061 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1062 msgstr ""
1063
1064 #. type: =head1
1065 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:216
1066 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
1067 #: ../clone/virt-sysprep.pod:388 ../df/virt-df.pod:239
1068 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1069 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1070 #: ../fish/guestfish.pod:1299 ../fish/virt-copy-in.pod:64
1071 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1072 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
1073 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1074 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1075 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1076 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
1077 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337
1078 #: ../test-tool/libguestfs-test-tool.pod:110
1079 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1080 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
1081 #: ../tools/virt-win-reg.pl:776
1082 msgid "COPYRIGHT"
1083 msgstr ""
1084
1085 #. type: textblock
1086 #: ../align/virt-alignment-scan.pod:361 ../clone/virt-sysprep.pod:390
1087 #: ../sparsify/virt-sparsify.pod:270
1088 msgid "Copyright (C) 2011 Red Hat Inc."
1089 msgstr ""
1090
1091 #. type: textblock
1092 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:220
1093 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
1094 #: ../clone/virt-sysprep.pod:392 ../df/virt-df.pod:243
1095 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1304
1096 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1097 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1098 #: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:407
1099 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:643
1100 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1101 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1102 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
1103 #: ../tools/virt-win-reg.pl:780
1104 msgid ""
1105 "This program is free software; you can redistribute it and/or modify it "
1106 "under the terms of the GNU General Public License as published by the Free "
1107 "Software Foundation; either version 2 of the License, or (at your option) "
1108 "any later version."
1109 msgstr ""
1110
1111 #. type: textblock
1112 #: ../align/virt-alignment-scan.pod:368 ../cat/virt-cat.pod:225
1113 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
1114 #: ../clone/virt-sysprep.pod:397 ../df/virt-df.pod:248
1115 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1309
1116 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1117 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1118 #: ../fuse/guestmount.pod:333 ../inspector/virt-inspector.pod:412
1119 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:648
1120 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1121 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1122 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
1123 #: ../tools/virt-win-reg.pl:785
1124 msgid ""
1125 "This program is distributed in the hope that it will be useful, but WITHOUT "
1126 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1127 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1128 "more details."
1129 msgstr ""
1130
1131 #. type: textblock
1132 #: ../align/virt-alignment-scan.pod:373 ../cat/virt-cat.pod:230
1133 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
1134 #: ../clone/virt-sysprep.pod:402 ../df/virt-df.pod:253
1135 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1314
1136 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1137 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1138 #: ../fuse/guestmount.pod:338 ../inspector/virt-inspector.pod:417
1139 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:653
1140 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1141 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1142 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
1143 #: ../tools/virt-win-reg.pl:790
1144 msgid ""
1145 "You should have received a copy of the GNU General Public License along with "
1146 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1147 "Ave, Cambridge, MA 02139, USA."
1148 msgstr ""
1149
1150 #. type: textblock
1151 #: ../cat/virt-cat.pod:5
1152 msgid "virt-cat - Display files in a virtual machine"
1153 msgstr ""
1154
1155 #. type: verbatim
1156 #: ../cat/virt-cat.pod:9
1157 #, no-wrap
1158 msgid ""
1159 " virt-cat [--options] -d domname file [file ...]\n"
1160 "\n"
1161 msgstr ""
1162
1163 #. type: verbatim
1164 #: ../cat/virt-cat.pod:11
1165 #, no-wrap
1166 msgid ""
1167 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1168 "\n"
1169 msgstr ""
1170
1171 #. type: textblock
1172 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1173 #: ../inspector/virt-inspector.pod:13
1174 msgid "Old-style:"
1175 msgstr ""
1176
1177 #. type: verbatim
1178 #: ../cat/virt-cat.pod:15
1179 #, no-wrap
1180 msgid ""
1181 " virt-cat domname file\n"
1182 "\n"
1183 msgstr ""
1184
1185 #. type: verbatim
1186 #: ../cat/virt-cat.pod:17
1187 #, no-wrap
1188 msgid ""
1189 " virt-cat disk.img file\n"
1190 "\n"
1191 msgstr ""
1192
1193 #. type: textblock
1194 #: ../cat/virt-cat.pod:21
1195 msgid ""
1196 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1197 "C<file> exists in the named virtual machine (or disk image)."
1198 msgstr ""
1199
1200 #. type: textblock
1201 #: ../cat/virt-cat.pod:24
1202 msgid ""
1203 "Multiple filenames can be given, in which case they are concatenated "
1204 "together.  Each filename must be a full path, starting at the root directory "
1205 "(starting with '/')."
1206 msgstr ""
1207
1208 #. type: textblock
1209 #: ../cat/virt-cat.pod:28
1210 msgid ""
1211 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1212 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1213 "(see L</USING GUESTFISH> below)."
1214 msgstr ""
1215
1216 #. type: =head1
1217 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1218 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1219 #: ../fish/guestfish.pod:1050 ../fish/virt-copy-in.pod:29
1220 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1221 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1222 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1223 #: ../tools/virt-tar.pl:50
1224 msgid "EXAMPLES"
1225 msgstr ""
1226
1227 #. type: textblock
1228 #: ../cat/virt-cat.pod:34
1229 msgid ""
1230 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1231 msgstr ""
1232
1233 #. type: verbatim
1234 #: ../cat/virt-cat.pod:37
1235 #, no-wrap
1236 msgid ""
1237 " virt-cat -d mydomain /etc/fstab\n"
1238 "\n"
1239 msgstr ""
1240
1241 #. type: textblock
1242 #: ../cat/virt-cat.pod:39
1243 msgid "List syslog messages from a VM disk image file:"
1244 msgstr ""
1245
1246 #. type: verbatim
1247 #: ../cat/virt-cat.pod:41
1248 #, no-wrap
1249 msgid ""
1250 " virt-cat -a disk.img /var/log/messages | tail\n"
1251 "\n"
1252 msgstr ""
1253
1254 #. type: textblock
1255 #: ../cat/virt-cat.pod:43
1256 msgid "Find out what DHCP IP address a VM acquired:"
1257 msgstr ""
1258
1259 #. type: verbatim
1260 #: ../cat/virt-cat.pod:45
1261 #, no-wrap
1262 msgid ""
1263 " virt-cat -d mydomain /var/log/messages | \\\n"
1264 "   grep 'dhclient: bound to' | tail\n"
1265 "\n"
1266 msgstr ""
1267
1268 #. type: textblock
1269 #: ../cat/virt-cat.pod:48
1270 msgid "Find out what packages were recently installed:"
1271 msgstr ""
1272
1273 #. type: verbatim
1274 #: ../cat/virt-cat.pod:50
1275 #, no-wrap
1276 msgid ""
1277 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1278 "\n"
1279 msgstr ""
1280
1281 #. type: textblock
1282 #: ../cat/virt-cat.pod:52
1283 msgid "Find out who is logged on inside a virtual machine:"
1284 msgstr ""
1285
1286 #. type: verbatim
1287 #: ../cat/virt-cat.pod:54
1288 #, no-wrap
1289 msgid ""
1290 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1291 " who /tmp/utmp\n"
1292 "\n"
1293 msgstr ""
1294
1295 #. type: textblock
1296 #: ../cat/virt-cat.pod:57
1297 msgid "or who was logged on:"
1298 msgstr ""
1299
1300 #. type: verbatim
1301 #: ../cat/virt-cat.pod:59
1302 #, no-wrap
1303 msgid ""
1304 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1305 " last -f /tmp/wtmp\n"
1306 "\n"
1307 msgstr ""
1308
1309 #. type: textblock
1310 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1311 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1312 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1313 msgid ""
1314 "Add I<file> which should be a disk image from a virtual machine.  If the "
1315 "virtual machine has multiple block devices, you must supply all of them with "
1316 "separate I<-a> options."
1317 msgstr ""
1318
1319 #. type: =item
1320 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1321 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1322 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
1323 msgid "B<--echo-keys>"
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../cat/virt-cat.pod:100
1328 msgid ""
1329 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1330 "so you cannot see what you are typing.  If you are not worried about Tempest "
1331 "attacks and there is no one else in the room you can specify this flag to "
1332 "see what you are typing."
1333 msgstr ""
1334
1335 #. type: verbatim
1336 #: ../cat/virt-cat.pod:116
1337 #, no-wrap
1338 msgid ""
1339 " virt-cat --format=raw -a disk.img file\n"
1340 "\n"
1341 msgstr ""
1342
1343 #. type: verbatim
1344 #: ../cat/virt-cat.pod:120
1345 #, no-wrap
1346 msgid ""
1347 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1348 "\n"
1349 msgstr ""
1350
1351 #. type: =item
1352 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1353 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1354 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
1355 msgid "B<--keys-from-stdin>"
1356 msgstr ""
1357
1358 #. type: textblock
1359 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1360 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1361 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
1362 msgid ""
1363 "Read key or passphrase parameters from stdin.  The default is to try to read "
1364 "passphrases from the user by opening C</dev/tty>."
1365 msgstr ""
1366
1367 #. type: =head1
1368 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1369 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1370 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1371 msgstr ""
1372
1373 #. type: textblock
1374 #: ../cat/virt-cat.pod:154
1375 msgid "Previous versions of virt-cat allowed you to write either:"
1376 msgstr ""
1377
1378 #. type: verbatim
1379 #: ../cat/virt-cat.pod:156
1380 #, no-wrap
1381 msgid ""
1382 " virt-cat disk.img [disk.img ...] file\n"
1383 "\n"
1384 msgstr ""
1385
1386 #. type: textblock
1387 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1388 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1389 msgid "or"
1390 msgstr ""
1391
1392 #. type: verbatim
1393 #: ../cat/virt-cat.pod:160
1394 #, no-wrap
1395 msgid ""
1396 " virt-cat guestname file\n"
1397 "\n"
1398 msgstr ""
1399
1400 #. type: textblock
1401 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1402 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1403 msgid ""
1404 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1405 "the confusing case where a disk image might have the same name as a guest."
1406 msgstr ""
1407
1408 #. type: textblock
1409 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1410 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1411 msgid "For compatibility the old style is still supported."
1412 msgstr ""
1413
1414 #. type: =head1
1415 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1416 msgid "USING GUESTFISH"
1417 msgstr ""
1418
1419 #. type: textblock
1420 #: ../cat/virt-cat.pod:170
1421 msgid ""
1422 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1423 "C<virt-cat> doesn't work."
1424 msgstr ""
1425
1426 #. type: textblock
1427 #: ../cat/virt-cat.pod:173
1428 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1429 msgstr ""
1430
1431 #. type: verbatim
1432 #: ../cat/virt-cat.pod:175
1433 #, no-wrap
1434 msgid ""
1435 " guestfish --ro -i -d domname download file -\n"
1436 "\n"
1437 msgstr ""
1438
1439 #. type: textblock
1440 #: ../cat/virt-cat.pod:177
1441 msgid ""
1442 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1443 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1444 msgstr ""
1445
1446 #. type: textblock
1447 #: ../cat/virt-cat.pod:181
1448 msgid ""
1449 "The command above uses libguestfs's guest inspection feature and so does not "
1450 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1451 "disk images that don't contain guests.  To display a file from a disk image "
1452 "directly, use:"
1453 msgstr ""
1454
1455 #. type: verbatim
1456 #: ../cat/virt-cat.pod:186
1457 #, no-wrap
1458 msgid ""
1459 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1460 "\n"
1461 msgstr ""
1462
1463 #. type: textblock
1464 #: ../cat/virt-cat.pod:188
1465 msgid ""
1466 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1467 "the disk image, and C<file> is the full path to the file."
1468 msgstr ""
1469
1470 #. type: textblock
1471 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1472 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1473 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
1474 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
1475 msgid ""
1476 "This program returns 0 if successful, or non-zero if there was an error."
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../cat/virt-cat.pod:205
1481 msgid ""
1482 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1483 "tar-out(1)>, L<http://libguestfs.org/>."
1484 msgstr ""
1485
1486 #. type: textblock
1487 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1488 #: ../resize/virt-resize.pod:641
1489 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1490 msgstr ""
1491
1492 #. type: textblock
1493 #: ../cat/virt-filesystems.pod:5
1494 msgid ""
1495 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1496 "virtual machine or disk image"
1497 msgstr ""
1498
1499 #. type: verbatim
1500 #: ../cat/virt-filesystems.pod:9
1501 #, no-wrap
1502 msgid ""
1503 " virt-filesystems [--options] -d domname\n"
1504 "\n"
1505 msgstr ""
1506
1507 #. type: verbatim
1508 #: ../cat/virt-filesystems.pod:11
1509 #, no-wrap
1510 msgid ""
1511 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1512 "\n"
1513 msgstr ""
1514
1515 #. type: textblock
1516 #: ../cat/virt-filesystems.pod:15
1517 msgid ""
1518 "This tool allows you to discover filesystems, partitions, logical volumes, "
1519 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1520 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1521 msgstr ""
1522
1523 #. type: textblock
1524 #: ../cat/virt-filesystems.pod:20
1525 msgid ""
1526 "One use for this tool is from shell scripts to iterate over all filesystems "
1527 "from a disk image:"
1528 msgstr ""
1529
1530 #. type: verbatim
1531 #: ../cat/virt-filesystems.pod:23
1532 #, no-wrap
1533 msgid ""
1534 " for fs in $(virt-filesystems -a disk.img); do\n"
1535 "   # ...\n"
1536 " done\n"
1537 "\n"
1538 msgstr ""
1539
1540 #. type: textblock
1541 #: ../cat/virt-filesystems.pod:27
1542 msgid ""
1543 "Another use is to list partitions before using another tool to modify those "
1544 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1545 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1546 msgstr ""
1547
1548 #. type: textblock
1549 #: ../cat/virt-filesystems.pod:32
1550 msgid ""
1551 "Various command line options control what this program displays.  You need "
1552 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1553 "guest respectively.  If you just specify that then the program shows "
1554 "filesystems found, one per line, like this:"
1555 msgstr ""
1556
1557 #. type: verbatim
1558 #: ../cat/virt-filesystems.pod:37
1559 #, no-wrap
1560 msgid ""
1561 " $ virt-filesystems -a disk.img\n"
1562 " /dev/sda1\n"
1563 " /dev/vg_guest/lv_root\n"
1564 "\n"
1565 msgstr ""
1566
1567 #. type: textblock
1568 #: ../cat/virt-filesystems.pod:41
1569 msgid ""
1570 "If you add I<-l> or I<--long> then the output includes extra information:"
1571 msgstr ""
1572
1573 #. type: verbatim
1574 #: ../cat/virt-filesystems.pod:44
1575 #, no-wrap
1576 msgid ""
1577 " $ virt-filesystems -a disk.img -l\n"
1578 " Name                   Type         VFS   Label  Size\n"
1579 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1580 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1581 "\n"
1582 msgstr ""
1583
1584 #. type: textblock
1585 #: ../cat/virt-filesystems.pod:49
1586 msgid ""
1587 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1588 "shown as well:"
1589 msgstr ""
1590
1591 #. type: verbatim
1592 #: ../cat/virt-filesystems.pod:52
1593 #, no-wrap
1594 msgid ""
1595 " $ virt-filesystems -a disk.img --extra\n"
1596 " /dev/sda1\n"
1597 " /dev/vg_guest/lv_root\n"
1598 " /dev/vg_guest/lv_swap\n"
1599 " /dev/vg_guest/lv_data\n"
1600 "\n"
1601 msgstr ""
1602
1603 #. type: textblock
1604 #: ../cat/virt-filesystems.pod:58
1605 msgid ""
1606 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1607 msgstr ""
1608
1609 #. type: verbatim
1610 #: ../cat/virt-filesystems.pod:60
1611 #, no-wrap
1612 msgid ""
1613 " $ virt-filesystems -a disk.img --partitions\n"
1614 " /dev/sda1\n"
1615 " /dev/sda2\n"
1616 "\n"
1617 msgstr ""
1618
1619 #. type: textblock
1620 #: ../cat/virt-filesystems.pod:64
1621 msgid ""
1622 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1623 "volumes>, I<--block-devices> to list those items."
1624 msgstr ""
1625
1626 #. type: textblock
1627 #: ../cat/virt-filesystems.pod:67
1628 msgid ""
1629 "You can use these options in combination as well (if you want a combination "
1630 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1631 "items fall into several categories (eg. C</dev/sda1> might be both a "
1632 "partition and a filesystem).  These items are listed several times.  To get "
1633 "a list which includes absolutely everything that virt-filesystems knows "
1634 "about, use the I<--all> option."
1635 msgstr ""
1636
1637 #. type: textblock
1638 #: ../cat/virt-filesystems.pod:74
1639 msgid ""
1640 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1641 "uuid> option to display device and filesystem UUIDs in the long output."
1642 msgstr ""
1643
1644 #. type: textblock
1645 #: ../cat/virt-filesystems.pod:78
1646 msgid ""
1647 "I<--all --long --uuid> is a useful combination to display all possible "
1648 "information about everything."
1649 msgstr ""
1650
1651 #. type: verbatim
1652 #: ../cat/virt-filesystems.pod:81
1653 #, no-wrap
1654 msgid ""
1655 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1656 " Name      Type       VFS  Label           Size Parent   UUID\n"
1657 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1658 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1659 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1660 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1661 " /dev/sda  device     -    -               20G  -        -\n"
1662 "\n"
1663 msgstr ""
1664
1665 #. type: textblock
1666 #: ../cat/virt-filesystems.pod:89
1667 msgid ""
1668 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1669 msgstr ""
1670
1671 #. type: =item
1672 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1673 msgid "B<--all>"
1674 msgstr ""
1675
1676 #. type: textblock
1677 #: ../cat/virt-filesystems.pod:112
1678 msgid ""
1679 "Display everything.  This is currently the same as specifying these options: "
1680 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1681 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1682 "added to this list in future)."
1683 msgstr ""
1684
1685 #. type: textblock
1686 #: ../cat/virt-filesystems.pod:117
1687 msgid "See also I<--long>."
1688 msgstr ""
1689
1690 #. type: =item
1691 #: ../cat/virt-filesystems.pod:119
1692 msgid "B<--blkdevs>"
1693 msgstr ""
1694
1695 #. type: =item
1696 #: ../cat/virt-filesystems.pod:121
1697 msgid "B<--block-devices>"
1698 msgstr ""
1699
1700 #. type: textblock
1701 #: ../cat/virt-filesystems.pod:123
1702 msgid "Display block devices."
1703 msgstr ""
1704
1705 #. type: =item
1706 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1707 msgid "B<--csv>"
1708 msgstr ""
1709
1710 #. type: textblock
1711 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1712 msgid ""
1713 "Write out the results in CSV format (comma-separated values).  This format "
1714 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1715 "ABOUT CSV FORMAT> below."
1716 msgstr ""
1717
1718 #. type: textblock
1719 #: ../cat/virt-filesystems.pod:150
1720 msgid ""
1721 "When prompting for keys and passphrases, virt-filesystems normally turns "
1722 "echoing off so you cannot see what you are typing.  If you are not worried "
1723 "about Tempest attacks and there is no one else in the room you can specify "
1724 "this flag to see what you are typing."
1725 msgstr ""
1726
1727 #. type: =item
1728 #: ../cat/virt-filesystems.pod:155
1729 msgid "B<--extra>"
1730 msgstr ""
1731
1732 #. type: textblock
1733 #: ../cat/virt-filesystems.pod:157
1734 msgid ""
1735 "This causes filesystems that are not ordinary, mountable filesystems to be "
1736 "displayed.  This category includes swapspace, and filesystems that are empty "
1737 "or contain unknown data."
1738 msgstr ""
1739
1740 #. type: textblock
1741 #: ../cat/virt-filesystems.pod:161
1742 msgid "This option implies I<--filesystems>."
1743 msgstr ""
1744
1745 #. type: =item
1746 #: ../cat/virt-filesystems.pod:163
1747 msgid "B<--filesystems>"
1748 msgstr ""
1749
1750 #. type: textblock
1751 #: ../cat/virt-filesystems.pod:165
1752 msgid ""
1753 "Display mountable filesystems.  If no display option was selected then this "
1754 "option is implied."
1755 msgstr ""
1756
1757 #. type: textblock
1758 #: ../cat/virt-filesystems.pod:168
1759 msgid "With I<--extra>, non-mountable filesystems are shown too."
1760 msgstr ""
1761
1762 #. type: verbatim
1763 #: ../cat/virt-filesystems.pod:181
1764 #, no-wrap
1765 msgid ""
1766 " virt-filesystems --format=raw -a disk.img\n"
1767 "\n"
1768 msgstr ""
1769
1770 #. type: verbatim
1771 #: ../cat/virt-filesystems.pod:185
1772 #, no-wrap
1773 msgid ""
1774 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1775 "\n"
1776 msgstr ""
1777
1778 #. type: =item
1779 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1780 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1781 #: ../tools/virt-list-partitions.pl:109
1782 msgid "B<-h>"
1783 msgstr ""
1784
1785 #. type: =item
1786 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1787 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1788 msgid "B<--human-readable>"
1789 msgstr ""
1790
1791 #. type: textblock
1792 #: ../cat/virt-filesystems.pod:198
1793 msgid "In I<--long> mode, display sizes in human-readable format."
1794 msgstr ""
1795
1796 #. type: =item
1797 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1798 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1799 msgid "B<-l>"
1800 msgstr ""
1801
1802 #. type: =item
1803 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1804 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1805 msgid "B<--long>"
1806 msgstr ""
1807
1808 #. type: textblock
1809 #: ../cat/virt-filesystems.pod:209
1810 msgid "Display extra columns of data (\"long format\")."
1811 msgstr ""
1812
1813 #. type: textblock
1814 #: ../cat/virt-filesystems.pod:211
1815 msgid "A title row is added unless you also specify I<--no-title>."
1816 msgstr ""
1817
1818 #. type: textblock
1819 #: ../cat/virt-filesystems.pod:213
1820 msgid ""
1821 "The extra columns displayed depend on what output you select, and the "
1822 "ordering of columns may change in future versions.  Use the title row, I<--"
1823 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1824 "programs."
1825 msgstr ""
1826
1827 #. type: textblock
1828 #: ../cat/virt-filesystems.pod:218
1829 msgid ""
1830 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1831 "default is to show raw numbers of I<bytes>."
1832 msgstr ""
1833
1834 #. type: textblock
1835 #: ../cat/virt-filesystems.pod:221
1836 msgid "Use I<--uuid> to display UUIDs too."
1837 msgstr ""
1838
1839 #. type: =item
1840 #: ../cat/virt-filesystems.pod:223
1841 msgid "B<--lvs>"
1842 msgstr ""
1843
1844 #. type: =item
1845 #: ../cat/virt-filesystems.pod:225
1846 msgid "B<--logvols>"
1847 msgstr ""
1848
1849 #. type: =item
1850 #: ../cat/virt-filesystems.pod:227
1851 msgid "B<--logical-volumes>"
1852 msgstr ""
1853
1854 #. type: textblock
1855 #: ../cat/virt-filesystems.pod:229
1856 msgid ""
1857 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1858 "of whether the LVs contain filesystems."
1859 msgstr ""
1860
1861 #. type: =item
1862 #: ../cat/virt-filesystems.pod:232
1863 msgid "B<--no-title>"
1864 msgstr ""
1865
1866 #. type: textblock
1867 #: ../cat/virt-filesystems.pod:234
1868 msgid "In I<--long> mode, don't add a title row."
1869 msgstr ""
1870
1871 #. type: textblock
1872 #: ../cat/virt-filesystems.pod:236
1873 msgid ""
1874 "Note that the order of the columns is not fixed, and may change in future "
1875 "versions of virt-filesystems, so using this option may give you unexpected "
1876 "surprises."
1877 msgstr ""
1878
1879 #. type: =item
1880 #: ../cat/virt-filesystems.pod:240
1881 msgid "B<--parts>"
1882 msgstr ""
1883
1884 #. type: =item
1885 #: ../cat/virt-filesystems.pod:242
1886 msgid "B<--partitions>"
1887 msgstr ""
1888
1889 #. type: textblock
1890 #: ../cat/virt-filesystems.pod:244
1891 msgid ""
1892 "Display partitions.  In this mode, these are displayed irrespective of "
1893 "whether the partitions contain filesystems."
1894 msgstr ""
1895
1896 #. type: =item
1897 #: ../cat/virt-filesystems.pod:247
1898 msgid "B<--pvs>"
1899 msgstr ""
1900
1901 #. type: =item
1902 #: ../cat/virt-filesystems.pod:249
1903 msgid "B<--physvols>"
1904 msgstr ""
1905
1906 #. type: =item
1907 #: ../cat/virt-filesystems.pod:251
1908 msgid "B<--physical-volumes>"
1909 msgstr ""
1910
1911 #. type: textblock
1912 #: ../cat/virt-filesystems.pod:253
1913 msgid "Display LVM physical volumes."
1914 msgstr ""
1915
1916 #. type: =item
1917 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1918 msgid "B<--uuid>"
1919 msgstr ""
1920
1921 #. type: =item
1922 #: ../cat/virt-filesystems.pod:257
1923 msgid "B<--uuids>"
1924 msgstr ""
1925
1926 #. type: textblock
1927 #: ../cat/virt-filesystems.pod:259
1928 msgid "In I<--long> mode, display UUIDs as well."
1929 msgstr ""
1930
1931 #. type: =item
1932 #: ../cat/virt-filesystems.pod:273
1933 msgid "B<--vgs>"
1934 msgstr ""
1935
1936 #. type: =item
1937 #: ../cat/virt-filesystems.pod:275
1938 msgid "B<--volgroups>"
1939 msgstr ""
1940
1941 #. type: =item
1942 #: ../cat/virt-filesystems.pod:277
1943 msgid "B<--volume-groups>"
1944 msgstr ""
1945
1946 #. type: textblock
1947 #: ../cat/virt-filesystems.pod:279
1948 msgid "Display LVM volume groups."
1949 msgstr ""
1950
1951 #. type: =head1
1952 #: ../cat/virt-filesystems.pod:287
1953 msgid "COLUMNS"
1954 msgstr ""
1955
1956 #. type: textblock
1957 #: ../cat/virt-filesystems.pod:289
1958 msgid ""
1959 "Note that columns in the output are subject to reordering and change in "
1960 "future versions of this tool."
1961 msgstr ""
1962
1963 #. type: =item
1964 #: ../cat/virt-filesystems.pod:294
1965 msgid "B<Name>"
1966 msgstr ""
1967
1968 #. type: textblock
1969 #: ../cat/virt-filesystems.pod:296
1970 msgid "The filesystem, partition, block device or LVM name."
1971 msgstr ""
1972
1973 #. type: textblock
1974 #: ../cat/virt-filesystems.pod:298
1975 msgid ""
1976 "For device and partition names these are displayed as canonical libguestfs "
1977 "names, so that for example C</dev/sda2> is the second partition on the first "
1978 "device."
1979 msgstr ""
1980
1981 #. type: textblock
1982 #: ../cat/virt-filesystems.pod:302
1983 msgid ""
1984 "If the I<--long> option is B<not> specified, then only the name column is "
1985 "shown in the output."
1986 msgstr ""
1987
1988 #. type: =item
1989 #: ../cat/virt-filesystems.pod:305
1990 msgid "B<Type>"
1991 msgstr ""
1992
1993 #. type: textblock
1994 #: ../cat/virt-filesystems.pod:307
1995 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1996 msgstr ""
1997
1998 #. type: =item
1999 #: ../cat/virt-filesystems.pod:309
2000 msgid "B<VFS>"
2001 msgstr ""
2002
2003 #. type: textblock
2004 #: ../cat/virt-filesystems.pod:311
2005 msgid ""
2006 "If there is a filesystem, then this column displays the filesystem type if "
2007 "one could be detected, eg. C<ext4>."
2008 msgstr ""
2009
2010 #. type: =item
2011 #: ../cat/virt-filesystems.pod:314
2012 msgid "B<Label>"
2013 msgstr ""
2014
2015 #. type: textblock
2016 #: ../cat/virt-filesystems.pod:316
2017 msgid ""
2018 "If the object has a label (used for identifying and mounting filesystems) "
2019 "then this column contains the label."
2020 msgstr ""
2021
2022 #. type: =item
2023 #: ../cat/virt-filesystems.pod:319
2024 msgid "B<Size>"
2025 msgstr ""
2026
2027 #. type: textblock
2028 #: ../cat/virt-filesystems.pod:321
2029 msgid ""
2030 "The size of the object in bytes.  If the I<--human> option is used then the "
2031 "size is displayed in a human-readable form."
2032 msgstr ""
2033
2034 #. type: =item
2035 #: ../cat/virt-filesystems.pod:324
2036 msgid "B<Parent>"
2037 msgstr ""
2038
2039 #. type: textblock
2040 #: ../cat/virt-filesystems.pod:326
2041 msgid ""
2042 "The parent column records the parent relationship between objects.  For "
2043 "example, if the object is a partition, then this column contains the name of "
2044 "the containing device.  If the object is a logical volume, then this column "
2045 "is the name of the volume group."
2046 msgstr ""
2047
2048 #. type: =item
2049 #: ../cat/virt-filesystems.pod:331
2050 msgid "B<UUID>"
2051 msgstr ""
2052
2053 #. type: textblock
2054 #: ../cat/virt-filesystems.pod:333
2055 msgid ""
2056 "If the object has a UUID (used for identifying and mounting filesystems and "
2057 "block devices) then this column contains the UUID as a string."
2058 msgstr ""
2059
2060 #. type: textblock
2061 #: ../cat/virt-filesystems.pod:337
2062 msgid "The UUID is only displayed if the I<--uuid> option is given."
2063 msgstr ""
2064
2065 #. type: =head1
2066 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
2067 #: ../df/virt-df.pod:191
2068 msgid "NOTE ABOUT CSV FORMAT"
2069 msgstr ""
2070
2071 #. type: textblock
2072 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
2073 #: ../df/virt-df.pod:193
2074 msgid ""
2075 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2076 "should be easy to parse, but it is definitely not easy to parse."
2077 msgstr ""
2078
2079 #. type: textblock
2080 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
2081 #: ../df/virt-df.pod:196
2082 msgid ""
2083 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2084 "reliably.  This example has two columns:"
2085 msgstr ""
2086
2087 #. type: verbatim
2088 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
2089 #: ../df/virt-df.pod:199
2090 #, no-wrap
2091 msgid ""
2092 " \"foo,bar\",baz\n"
2093 "\n"
2094 msgstr ""
2095
2096 #. type: textblock
2097 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
2098 #: ../df/virt-df.pod:201
2099 msgid ""
2100 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2101 "reliably.  This example has one row:"
2102 msgstr ""
2103
2104 #. type: verbatim
2105 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
2106 #: ../df/virt-df.pod:204
2107 #, no-wrap
2108 msgid ""
2109 " \"foo\n"
2110 " bar\",baz\n"
2111 "\n"
2112 msgstr ""
2113
2114 #. type: textblock
2115 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
2116 #: ../df/virt-df.pod:207
2117 msgid ""
2118 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2119 "packaged in major Linux distributions)."
2120 msgstr ""
2121
2122 #. type: textblock
2123 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
2124 #: ../df/virt-df.pod:210
2125 msgid ""
2126 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2127 "or Python's built-in csv library)."
2128 msgstr ""
2129
2130 #. type: textblock
2131 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
2132 #: ../df/virt-df.pod:213
2133 msgid "Most spreadsheets and databases can import CSV directly."
2134 msgstr ""
2135
2136 #. type: textblock
2137 #: ../cat/virt-filesystems.pod:379
2138 msgid ""
2139 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2140 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2141 "libguestfs.org/>."
2142 msgstr ""
2143
2144 #. type: textblock
2145 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
2146 #: ../tools/virt-win-reg.pl:778
2147 msgid "Copyright (C) 2010 Red Hat Inc."
2148 msgstr ""
2149
2150 #. type: textblock
2151 #: ../cat/virt-ls.pod:5
2152 msgid "virt-ls - List files in a virtual machine"
2153 msgstr ""
2154
2155 #. type: verbatim
2156 #: ../cat/virt-ls.pod:9
2157 #, no-wrap
2158 msgid ""
2159 " virt-ls [--options] -d domname directory [directory ...]\n"
2160 "\n"
2161 msgstr ""
2162
2163 #. type: verbatim
2164 #: ../cat/virt-ls.pod:11
2165 #, no-wrap
2166 msgid ""
2167 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2168 "\n"
2169 msgstr ""
2170
2171 #. type: textblock
2172 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2173 msgid "Old style:"
2174 msgstr ""
2175
2176 #. type: verbatim
2177 #: ../cat/virt-ls.pod:15
2178 #, no-wrap
2179 msgid ""
2180 " virt-ls [--options] domname directory\n"
2181 "\n"
2182 msgstr ""
2183
2184 #. type: verbatim
2185 #: ../cat/virt-ls.pod:17
2186 #, no-wrap
2187 msgid ""
2188 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2189 "\n"
2190 msgstr ""
2191
2192 #. type: textblock
2193 #: ../cat/virt-ls.pod:21
2194 msgid ""
2195 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2196 "more from a virtual machine or disk image."
2197 msgstr ""
2198
2199 #. type: textblock
2200 #: ../cat/virt-ls.pod:24
2201 msgid ""
2202 "Multiple directory names can be given, in which case the output from each is "
2203 "concatenated."
2204 msgstr ""
2205
2206 #. type: textblock
2207 #: ../cat/virt-ls.pod:27
2208 msgid ""
2209 "To list directories from a libvirt guest use the I<-d> option to specify the "
2210 "name of the guest.  For a disk image, use the I<-a> option."
2211 msgstr ""
2212
2213 #. type: textblock
2214 #: ../cat/virt-ls.pod:31
2215 msgid ""
2216 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2217 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2218 "(3)> API."
2219 msgstr ""
2220
2221 #. type: textblock
2222 #: ../cat/virt-ls.pod:37
2223 msgid "Get a list of all files and directories in a virtual machine:"
2224 msgstr ""
2225
2226 #. type: verbatim
2227 #: ../cat/virt-ls.pod:39
2228 #, no-wrap
2229 msgid ""
2230 " virt-ls -R -d guest /\n"
2231 "\n"
2232 msgstr ""
2233
2234 #. type: textblock
2235 #: ../cat/virt-ls.pod:41
2236 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2237 msgstr ""
2238
2239 #. type: verbatim
2240 #: ../cat/virt-ls.pod:43
2241 #, no-wrap
2242 msgid ""
2243 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2244 "\n"
2245 msgstr ""
2246
2247 #. type: textblock
2248 #: ../cat/virt-ls.pod:45
2249 msgid "List all public-writable directories in a Linux virtual machine:"
2250 msgstr ""
2251
2252 #. type: verbatim
2253 #: ../cat/virt-ls.pod:47
2254 #, no-wrap
2255 msgid ""
2256 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2257 "\n"
2258 msgstr ""
2259
2260 #. type: textblock
2261 #: ../cat/virt-ls.pod:49
2262 msgid "List all Unix domain sockets in a Linux virtual machine:"
2263 msgstr ""
2264
2265 #. type: verbatim
2266 #: ../cat/virt-ls.pod:51
2267 #, no-wrap
2268 msgid ""
2269 " virt-ls -lR -d guest / | grep '^s'\n"
2270 "\n"
2271 msgstr ""
2272
2273 #. type: textblock
2274 #: ../cat/virt-ls.pod:53
2275 msgid "List all regular files with filenames ending in '.png':"
2276 msgstr ""
2277
2278 #. type: verbatim
2279 #: ../cat/virt-ls.pod:55
2280 #, no-wrap
2281 msgid ""
2282 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2283 "\n"
2284 msgstr ""
2285
2286 #. type: textblock
2287 #: ../cat/virt-ls.pod:57
2288 msgid "To display files larger than 10MB in home directories:"
2289 msgstr ""
2290
2291 #. type: verbatim
2292 #: ../cat/virt-ls.pod:59
2293 #, no-wrap
2294 msgid ""
2295 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2296 "\n"
2297 msgstr ""
2298
2299 #. type: textblock
2300 #: ../cat/virt-ls.pod:61
2301 msgid "Find everything modified in the last 7 days:"
2302 msgstr ""
2303
2304 #. type: verbatim
2305 #: ../cat/virt-ls.pod:63
2306 #, no-wrap
2307 msgid ""
2308 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2309 "\n"
2310 msgstr ""
2311
2312 #. type: textblock
2313 #: ../cat/virt-ls.pod:65
2314 msgid "Find regular files modified in the last 24 hours:"
2315 msgstr ""
2316
2317 #. type: verbatim
2318 #: ../cat/virt-ls.pod:67
2319 #, no-wrap
2320 msgid ""
2321 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2322 "\n"
2323 msgstr ""
2324
2325 #. type: =head2
2326 #: ../cat/virt-ls.pod:69
2327 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2328 msgstr ""
2329
2330 #. type: textblock
2331 #: ../cat/virt-ls.pod:71
2332 msgid ""
2333 "Find the differences between files in a guest and an earlier snapshot of the "
2334 "same guest."
2335 msgstr ""
2336
2337 #. type: verbatim
2338 #: ../cat/virt-ls.pod:74
2339 #, no-wrap
2340 msgid ""
2341 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2342 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2343 " diff -u old new | less\n"
2344 "\n"
2345 msgstr ""
2346
2347 #. type: textblock
2348 #: ../cat/virt-ls.pod:78
2349 msgid ""
2350 "The commands above won't find files where the content has changed but the "
2351 "metadata (eg. file size and modification date) is the same.  To do that, you "
2352 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2353 "checksum> can be quite slow since it has to read and compute a checksum of "
2354 "every regular file in the virtual machine."
2355 msgstr ""
2356
2357 #. type: =head1
2358 #: ../cat/virt-ls.pod:84
2359 msgid "OUTPUT MODES"
2360 msgstr ""
2361
2362 #. type: textblock
2363 #: ../cat/virt-ls.pod:86
2364 msgid ""
2365 "C<virt-ls> has four output modes, controlled by different combinations of "
2366 "the I<-l> and I<-R> options."
2367 msgstr ""
2368
2369 #. type: =head2
2370 #: ../cat/virt-ls.pod:89
2371 msgid "SIMPLE LISTING"
2372 msgstr ""
2373
2374 #. type: textblock
2375 #: ../cat/virt-ls.pod:91
2376 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2377 msgstr ""
2378
2379 #. type: verbatim
2380 #: ../cat/virt-ls.pod:93
2381 #, no-wrap
2382 msgid ""
2383 " $ virt-ls -d guest /\n"
2384 " bin\n"
2385 " boot\n"
2386 " [etc.]\n"
2387 "\n"
2388 msgstr ""
2389
2390 #. type: =head2
2391 #: ../cat/virt-ls.pod:98
2392 msgid "LONG LISTING"
2393 msgstr ""
2394
2395 #. type: textblock
2396 #: ../cat/virt-ls.pod:100
2397 msgid ""
2398 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2399 "(more specifically, like the C<guestfs_ll> function)."
2400 msgstr ""
2401
2402 #. type: verbatim
2403 #: ../cat/virt-ls.pod:103
2404 #, no-wrap
2405 msgid ""
2406 " $ virt-ls -l -d guest /\n"
2407 " total 204\n"
2408 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2409 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2410 " [etc.]\n"
2411 "\n"
2412 msgstr ""
2413
2414 #. type: textblock
2415 #: ../cat/virt-ls.pod:109
2416 msgid ""
2417 "Note that while this is useful for displaying a directory, do not try "
2418 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2419 "instead."
2420 msgstr ""
2421
2422 #. type: =head2
2423 #: ../cat/virt-ls.pod:113
2424 msgid "RECURSIVE LISTING"
2425 msgstr ""
2426
2427 #. type: textblock
2428 #: ../cat/virt-ls.pod:115
2429 msgid ""
2430 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2431 "and directories recursively:"
2432 msgstr ""
2433
2434 #. type: verbatim
2435 #: ../cat/virt-ls.pod:118
2436 #, no-wrap
2437 msgid ""
2438 " $ virt-ls -R -d guest /tmp\n"
2439 " foo\n"
2440 " foo/bar\n"
2441 " [etc.]\n"
2442 "\n"
2443 msgstr ""
2444
2445 #. type: textblock
2446 #: ../cat/virt-ls.pod:123
2447 msgid ""
2448 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2449 "converts C<\\0> characters to C<\\n>."
2450 msgstr ""
2451
2452 #. type: =head2
2453 #: ../cat/virt-ls.pod:126
2454 msgid "RECURSIVE LONG LISTING"
2455 msgstr ""
2456
2457 #. type: textblock
2458 #: ../cat/virt-ls.pod:128
2459 msgid ""
2460 "Using I<-lR> options together changes the output to display directories "
2461 "recursively, with file stats, and optionally other features such as "
2462 "checksums and extended attributes."
2463 msgstr ""
2464
2465 #. type: textblock
2466 #: ../cat/virt-ls.pod:132
2467 msgid ""
2468 "Most of the interesting features of C<virt-ls> are only available when using "
2469 "I<-lR> mode."
2470 msgstr ""
2471
2472 #. type: textblock
2473 #: ../cat/virt-ls.pod:135
2474 msgid ""
2475 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2476 "you cannot use the output in another program (because filenames can contain "
2477 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2478 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2479 "on you by creating filenames with embedded newline characters.  To B<safely> "
2480 "parse the output in another program, use the I<--csv> (Comma-Separated "
2481 "Values) option."
2482 msgstr ""
2483
2484 #. type: textblock
2485 #: ../cat/virt-ls.pod:143
2486 msgid ""
2487 "Note that this output format is completely unrelated to the C<ls -lR> "
2488 "command."
2489 msgstr ""
2490
2491 #. type: verbatim
2492 #: ../cat/virt-ls.pod:146
2493 #, no-wrap
2494 msgid ""
2495 " $ virt-ls -lR -d guest /bin\n"
2496 " d 0555       4096 /bin\n"
2497 " - 0755        123 /bin/alsaunmute\n"
2498 " - 0755      28328 /bin/arch\n"
2499 " l 0777          4 /bin/awk -> gawk\n"
2500 " - 0755      27216 /bin/basename\n"
2501 " - 0755     943360 /bin/bash\n"
2502 " [etc.]\n"
2503 "\n"
2504 msgstr ""
2505
2506 #. type: textblock
2507 #: ../cat/virt-ls.pod:155
2508 msgid "These basic fields are always shown:"
2509 msgstr ""
2510
2511 #. type: =item
2512 #: ../cat/virt-ls.pod:159
2513 msgid "type"
2514 msgstr ""
2515
2516 #. type: textblock
2517 #: ../cat/virt-ls.pod:161
2518 msgid ""
2519 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2520 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2521 "link), C<s> (socket) or C<u> (unknown)."
2522 msgstr ""
2523
2524 #. type: =item
2525 #: ../cat/virt-ls.pod:171
2526 msgid "permissions"
2527 msgstr ""
2528
2529 #. type: textblock
2530 #: ../cat/virt-ls.pod:173
2531 msgid "The Unix permissions, displayed as a 4 digit octal number."
2532 msgstr ""
2533
2534 #. type: =item
2535 #: ../cat/virt-ls.pod:175
2536 msgid "size"
2537 msgstr ""
2538
2539 #. type: textblock
2540 #: ../cat/virt-ls.pod:177
2541 msgid ""
2542 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2543 "readable> option is given, in which case this is shown as a human-readable "
2544 "number."
2545 msgstr ""
2546
2547 #. type: =head2
2548 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
2549 msgid "path"
2550 msgstr ""
2551
2552 #. type: textblock
2553 #: ../cat/virt-ls.pod:183
2554 msgid "The full path of the file or directory."
2555 msgstr ""
2556
2557 #. type: =item
2558 #: ../cat/virt-ls.pod:185
2559 msgid "link"
2560 msgstr ""
2561
2562 #. type: textblock
2563 #: ../cat/virt-ls.pod:187
2564 msgid "For symbolic links only, the link target."
2565 msgstr ""
2566
2567 #. type: textblock
2568 #: ../cat/virt-ls.pod:191
2569 msgid ""
2570 "In I<-lR> mode, additional command line options enable the display of more "
2571 "fields."
2572 msgstr ""
2573
2574 #. type: textblock
2575 #: ../cat/virt-ls.pod:194
2576 msgid ""
2577 "With the I<--uids> flag, these additional fields are displayed before the "
2578 "path:"
2579 msgstr ""
2580
2581 #. type: =item
2582 #: ../cat/virt-ls.pod:199
2583 msgid "uid"
2584 msgstr ""
2585
2586 #. type: =item
2587 #: ../cat/virt-ls.pod:201
2588 msgid "gid"
2589 msgstr ""
2590
2591 #. type: textblock
2592 #: ../cat/virt-ls.pod:203
2593 msgid ""
2594 "The UID and GID of the owner of the file (displayed numerically).  Note "
2595 "these only make sense in the context of a Unix-like guest."
2596 msgstr ""
2597
2598 #. type: textblock
2599 #: ../cat/virt-ls.pod:208
2600 msgid "With the I<--times> flag, these additional fields are displayed:"
2601 msgstr ""
2602
2603 #. type: =item
2604 #: ../cat/virt-ls.pod:212
2605 msgid "atime"
2606 msgstr ""
2607
2608 #. type: textblock
2609 #: ../cat/virt-ls.pod:214
2610 msgid "The time of last access."
2611 msgstr ""
2612
2613 #. type: =item
2614 #: ../cat/virt-ls.pod:216
2615 msgid "mtime"
2616 msgstr ""
2617
2618 #. type: textblock
2619 #: ../cat/virt-ls.pod:218
2620 msgid "The time of last modification."
2621 msgstr ""
2622
2623 #. type: =item
2624 #: ../cat/virt-ls.pod:220
2625 msgid "ctime"
2626 msgstr ""
2627
2628 #. type: textblock
2629 #: ../cat/virt-ls.pod:222
2630 msgid "The time of last status change."
2631 msgstr ""
2632
2633 #. type: textblock
2634 #: ../cat/virt-ls.pod:226
2635 msgid ""
2636 "The time fields are displayed as string dates and times, unless one of the "
2637 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2638 msgstr ""
2639
2640 #. type: textblock
2641 #: ../cat/virt-ls.pod:229
2642 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2643 msgstr ""
2644
2645 #. type: =item
2646 #: ../cat/virt-ls.pod:233
2647 msgid "device"
2648 msgstr ""
2649
2650 #. type: textblock
2651 #: ../cat/virt-ls.pod:235
2652 msgid ""
2653 "The device containing the file (displayed as major:minor).  This may not "
2654 "match devices as known to the guest."
2655 msgstr ""
2656
2657 #. type: =item
2658 #: ../cat/virt-ls.pod:238
2659 msgid "inode"
2660 msgstr ""
2661
2662 #. type: textblock
2663 #: ../cat/virt-ls.pod:240
2664 msgid "The inode number."
2665 msgstr ""
2666
2667 #. type: =item
2668 #: ../cat/virt-ls.pod:242
2669 msgid "nlink"
2670 msgstr ""
2671
2672 #. type: textblock
2673 #: ../cat/virt-ls.pod:244
2674 msgid "The number of hard links."
2675 msgstr ""
2676
2677 #. type: =item
2678 #: ../cat/virt-ls.pod:246
2679 msgid "rdev"
2680 msgstr ""
2681
2682 #. type: textblock
2683 #: ../cat/virt-ls.pod:248
2684 msgid ""
2685 "For block and char special files, the device (displayed as major:minor)."
2686 msgstr ""
2687
2688 #. type: =item
2689 #: ../cat/virt-ls.pod:251
2690 msgid "blocks"
2691 msgstr ""
2692
2693 #. type: textblock
2694 #: ../cat/virt-ls.pod:253
2695 msgid "The number of 512 byte blocks allocated to the file."
2696 msgstr ""
2697
2698 #. type: textblock
2699 #: ../cat/virt-ls.pod:257
2700 msgid ""
2701 "With the I<--checksum> flag, the checksum of the file contents is shown "
2702 "(only for regular files).  Computing file checksums can take a considerable "
2703 "amount of time."
2704 msgstr ""
2705
2706 #. type: =item
2707 #: ../cat/virt-ls.pod:280
2708 msgid "B<--checksum>"
2709 msgstr ""
2710
2711 #. type: =item
2712 #: ../cat/virt-ls.pod:282
2713 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2714 msgstr ""
2715
2716 #. type: textblock
2717 #: ../cat/virt-ls.pod:284
2718 msgid ""
2719 "Display checksum over file contents for regular files.  With no argument, "
2720 "this defaults to using I<md5>.  Using an argument, you can select the "
2721 "checksum type to use."
2722 msgstr ""
2723
2724 #. type: textblock
2725 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2726 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2727 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2728 msgid ""
2729 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2730 "LISTING> above."
2731 msgstr ""
2732
2733 #. type: textblock
2734 #: ../cat/virt-ls.pod:316
2735 msgid ""
2736 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2737 "so you cannot see what you are typing.  If you are not worried about Tempest "
2738 "attacks and there is no one else in the room you can specify this flag to "
2739 "see what you are typing."
2740 msgstr ""
2741
2742 #. type: =item
2743 #: ../cat/virt-ls.pod:321
2744 msgid "B<--extra-stats>"
2745 msgstr ""
2746
2747 #. type: textblock
2748 #: ../cat/virt-ls.pod:323
2749 msgid "Display extra stats."
2750 msgstr ""
2751
2752 #. type: verbatim
2753 #: ../cat/virt-ls.pod:339
2754 #, no-wrap
2755 msgid ""
2756 " virt-ls --format=raw -a disk.img /dir\n"
2757 "\n"
2758 msgstr ""
2759
2760 #. type: verbatim
2761 #: ../cat/virt-ls.pod:343
2762 #, no-wrap
2763 msgid ""
2764 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2765 "\n"
2766 msgstr ""
2767
2768 #. type: textblock
2769 #: ../cat/virt-ls.pod:356
2770 msgid "Display file sizes in human-readable format."
2771 msgstr ""
2772
2773 #. type: =item
2774 #: ../cat/virt-ls.pod:370
2775 msgid "B<-R>"
2776 msgstr ""
2777
2778 #. type: =item
2779 #: ../cat/virt-ls.pod:372
2780 msgid "B<--recursive>"
2781 msgstr ""
2782
2783 #. type: textblock
2784 #: ../cat/virt-ls.pod:374
2785 msgid ""
2786 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2787 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2788 "LISTING>."
2789 msgstr ""
2790
2791 #. type: textblock
2792 #: ../cat/virt-ls.pod:378
2793 msgid ""
2794 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2795 "LONG LISTING>."
2796 msgstr ""
2797
2798 #. type: textblock
2799 #: ../cat/virt-ls.pod:381
2800 msgid ""
2801 "C<virt-ls -R> produces a recursive list of files starting at the named "
2802 "directory.  See L</RECURSIVE LISTING>."
2803 msgstr ""
2804
2805 #. type: textblock
2806 #: ../cat/virt-ls.pod:384
2807 msgid ""
2808 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2809 "parsed.  See L</RECURSIVE LONG LISTING>."
2810 msgstr ""
2811
2812 #. type: =item
2813 #: ../cat/virt-ls.pod:387
2814 msgid "B<--times>"
2815 msgstr ""
2816
2817 #. type: textblock
2818 #: ../cat/virt-ls.pod:389
2819 msgid "Display time fields."
2820 msgstr ""
2821
2822 #. type: =item
2823 #: ../cat/virt-ls.pod:394
2824 msgid "B<--time-days>"
2825 msgstr ""
2826
2827 #. type: textblock
2828 #: ../cat/virt-ls.pod:396
2829 msgid "Display time fields as days before now (negative if in the future)."
2830 msgstr ""
2831
2832 #. type: textblock
2833 #: ../cat/virt-ls.pod:398
2834 msgid ""
2835 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2836 "of the file is between 0 and 86399 seconds."
2837 msgstr ""
2838
2839 #. type: =item
2840 #: ../cat/virt-ls.pod:404
2841 msgid "B<--time-relative>"
2842 msgstr ""
2843
2844 #. type: textblock
2845 #: ../cat/virt-ls.pod:406
2846 msgid "Display time fields as seconds before now (negative if in the future)."
2847 msgstr ""
2848
2849 #. type: =item
2850 #: ../cat/virt-ls.pod:411
2851 msgid "B<--time-t>"
2852 msgstr ""
2853
2854 #. type: textblock
2855 #: ../cat/virt-ls.pod:413
2856 msgid "Display time fields as seconds since the Unix epoch."
2857 msgstr ""
2858
2859 #. type: =item
2860 #: ../cat/virt-ls.pod:418
2861 msgid "B<--uids>"
2862 msgstr ""
2863
2864 #. type: textblock
2865 #: ../cat/virt-ls.pod:420
2866 msgid "Display UID and GID fields."
2867 msgstr ""
2868
2869 #. type: textblock
2870 #: ../cat/virt-ls.pod:445
2871 msgid "Previous versions of virt-ls allowed you to write either:"
2872 msgstr ""
2873
2874 #. type: verbatim
2875 #: ../cat/virt-ls.pod:447
2876 #, no-wrap
2877 msgid ""
2878 " virt-ls disk.img [disk.img ...] /dir\n"
2879 "\n"
2880 msgstr ""
2881
2882 #. type: verbatim
2883 #: ../cat/virt-ls.pod:451
2884 #, no-wrap
2885 msgid ""
2886 " virt-ls guestname /dir\n"
2887 "\n"
2888 msgstr ""
2889
2890 #. type: textblock
2891 #: ../cat/virt-ls.pod:497
2892 msgid ""
2893 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2894 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2895 "L<http://libguestfs.org/>."
2896 msgstr ""
2897
2898 #. type: textblock
2899 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2900 #: ../rescue/virt-rescue.pod:302
2901 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2902 msgstr ""
2903
2904 #. type: textblock
2905 #: ../clone/virt-sysprep.pod:5
2906 msgid ""
2907 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2908 msgstr ""
2909
2910 #. type: verbatim
2911 #: ../clone/virt-sysprep.pod:9
2912 #, no-wrap
2913 msgid ""
2914 " virt-sysprep [--options] -d domname\n"
2915 "\n"
2916 msgstr ""
2917
2918 #. type: verbatim
2919 #: ../clone/virt-sysprep.pod:11
2920 #, no-wrap
2921 msgid ""
2922 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2923 "\n"
2924 msgstr ""
2925
2926 #. type: textblock
2927 #: ../clone/virt-sysprep.pod:15
2928 msgid ""
2929 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2930 "can be made from it.  Steps in this process include removing SSH host keys, "
2931 "removing persistent network MAC configuration, and removing user accounts.  "
2932 "Each step can be enabled or disabled as required."
2933 msgstr ""
2934
2935 #. type: textblock
2936 #: ../clone/virt-sysprep.pod:21
2937 msgid ""
2938 "Virt-sysprep is a simple shell script, allowing easy inspection or "
2939 "customization by the system administrator."
2940 msgstr ""
2941
2942 #. type: textblock
2943 #: ../clone/virt-sysprep.pod:24
2944 msgid ""
2945 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
2946 "be shut down.  If you want to preserve the existing contents of the guest, "
2947 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
2948 msgstr ""
2949
2950 #. type: textblock
2951 #: ../clone/virt-sysprep.pod:29
2952 msgid ""
2953 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
2954 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
2955 "machines in preparation for cloning them.  Having said that, virt-sysprep "
2956 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
2957 "Windows sysprepping in a future version, and we already have code to do it."
2958 msgstr ""
2959
2960 #. type: =item
2961 #: ../clone/virt-sysprep.pod:70
2962 msgid "B<--enable=...>"
2963 msgstr ""
2964
2965 #. type: textblock
2966 #: ../clone/virt-sysprep.pod:72
2967 msgid ""
2968 "Choose which sysprep operations to perform.  Give a comma-separated list of "
2969 "operations, for example:"
2970 msgstr ""
2971
2972 #. type: verbatim
2973 #: ../clone/virt-sysprep.pod:75
2974 #, no-wrap
2975 msgid ""
2976 " --enable=ssh-hostkeys,udev-persistent-net\n"
2977 "\n"
2978 msgstr ""
2979
2980 #. type: textblock
2981 #: ../clone/virt-sysprep.pod:77
2982 msgid ""
2983 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
2984 msgstr ""
2985
2986 #. type: textblock
2987 #: ../clone/virt-sysprep.pod:79
2988 msgid ""
2989 "If the I<--enable> option is not given, then we default to trying all "
2990 "possible sysprep operations.  But some sysprep operations are skipped for "
2991 "some guest types."
2992 msgstr ""
2993
2994 #. type: textblock
2995 #: ../clone/virt-sysprep.pod:83
2996 msgid ""
2997 "Use I<--list-operations> to list operations supported by a particular "
2998 "version of virt-sysprep."
2999 msgstr ""
3000
3001 #. type: textblock
3002 #: ../clone/virt-sysprep.pod:86
3003 msgid ""
3004 "See L</OPERATIONS> below for a list and an explanation of each operation."
3005 msgstr ""
3006
3007 #. type: verbatim
3008 #: ../clone/virt-sysprep.pod:100
3009 #, no-wrap
3010 msgid ""
3011 " virt-sysprep --format=raw -a disk.img\n"
3012 "\n"
3013 msgstr ""
3014
3015 #. type: verbatim
3016 #: ../clone/virt-sysprep.pod:104
3017 #, no-wrap
3018 msgid ""
3019 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3020 "\n"
3021 msgstr ""
3022
3023 #. type: =item
3024 #: ../clone/virt-sysprep.pod:113
3025 msgid "B<--hostname> newhostname"
3026 msgstr ""
3027
3028 #. type: textblock
3029 #: ../clone/virt-sysprep.pod:115
3030 msgid ""
3031 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3032 "defaults to C<localhost.localdomain>."
3033 msgstr ""
3034
3035 #. type: =item
3036 #: ../clone/virt-sysprep.pod:118
3037 msgid "B<--list-operations>"
3038 msgstr ""
3039
3040 #. type: textblock
3041 #: ../clone/virt-sysprep.pod:120
3042 msgid "List the operations supported by the virt-sysprep program."
3043 msgstr ""
3044
3045 #. type: =head1
3046 #: ../clone/virt-sysprep.pod:140
3047 msgid "OPERATIONS"
3048 msgstr ""
3049
3050 #. type: textblock
3051 #: ../clone/virt-sysprep.pod:142
3052 msgid ""
3053 "If the I<--enable> option is I<not> given, then all sysprep operations in "
3054 "the list below are enabled, although some are skipped depending on the type "
3055 "of guest."
3056 msgstr ""
3057
3058 #. type: textblock
3059 #: ../clone/virt-sysprep.pod:146
3060 msgid ""
3061 "Operations can be individually enabled using the I<--enable> option.  Use a "
3062 "comma-separated list, for example:"
3063 msgstr ""
3064
3065 #. type: verbatim
3066 #: ../clone/virt-sysprep.pod:149
3067 #, no-wrap
3068 msgid ""
3069 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3070 "\n"
3071 msgstr ""
3072
3073 #. type: textblock
3074 #: ../clone/virt-sysprep.pod:151
3075 msgid ""
3076 "To list the operations supported by the current version of virt-sysprep, use "
3077 "I<--list-operations>."
3078 msgstr ""
3079
3080 #. type: =head2
3081 #: ../clone/virt-sysprep.pod:154
3082 msgid "hostname"
3083 msgstr ""
3084
3085 #. type: textblock
3086 #: ../clone/virt-sysprep.pod:156
3087 msgid ""
3088 "This changes the hostname of the guest to the value given in the I<--"
3089 "hostname> parameter."
3090 msgstr ""
3091
3092 #. type: textblock
3093 #: ../clone/virt-sysprep.pod:159
3094 msgid ""
3095 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3096 "C<localhost.localdomain>."
3097 msgstr ""
3098
3099 #. type: =head2
3100 #: ../clone/virt-sysprep.pod:162
3101 msgid "net-hwaddr"
3102 msgstr ""
3103
3104 #. type: textblock
3105 #: ../clone/virt-sysprep.pod:164
3106 msgid ""
3107 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3108 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3109 msgstr ""
3110
3111 #. type: =head2
3112 #: ../clone/virt-sysprep.pod:167
3113 msgid "ssh-hostkeys"
3114 msgstr ""
3115
3116 #. type: textblock
3117 #: ../clone/virt-sysprep.pod:169
3118 msgid "This erases the SSH host keys in the guest."
3119 msgstr ""
3120
3121 #. type: textblock
3122 #: ../clone/virt-sysprep.pod:171
3123 msgid ""
3124 "The SSH host keys are regenerated (differently) next time the guest is "
3125 "booted."
3126 msgstr ""
3127
3128 #. type: textblock
3129 #: ../clone/virt-sysprep.pod:174
3130 msgid ""
3131 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3132 "stark warning about the host key changing:"
3133 msgstr ""
3134
3135 #. type: verbatim
3136 #: ../clone/virt-sysprep.pod:177
3137 #, no-wrap
3138 msgid ""
3139 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3140 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3141 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3142 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3143 "\n"
3144 msgstr ""
3145
3146 #. type: =head2
3147 #: ../clone/virt-sysprep.pod:182
3148 msgid "udev-persistent-net"
3149 msgstr ""
3150
3151 #. type: textblock
3152 #: ../clone/virt-sysprep.pod:184
3153 msgid ""
3154 "This erases udev persistent net rules which map the guest's existing MAC "
3155 "address to a fixed ethernet device (eg. eth0)."
3156 msgstr ""
3157
3158 #. type: textblock
3159 #: ../clone/virt-sysprep.pod:187
3160 msgid ""
3161 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3162 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3163 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3164 "Erasing the udev persistent net rules avoids this."
3165 msgstr ""
3166
3167 #. type: =head1
3168 #: ../clone/virt-sysprep.pod:192
3169 msgid "COPYING AND CLONING"
3170 msgstr ""
3171
3172 #. type: textblock
3173 #: ../clone/virt-sysprep.pod:194
3174 msgid ""
3175 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3176 "prepare a template from which guests can be cloned.  There are many "
3177 "different ways to achieve this using the virt tools, and this section is "
3178 "just an introduction."
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../clone/virt-sysprep.pod:199
3183 msgid "A virtual machine (when switched off) consists of two parts:"
3184 msgstr ""
3185
3186 #. type: =item
3187 #: ../clone/virt-sysprep.pod:203
3188 msgid "I<configuration>"
3189 msgstr ""
3190
3191 #. type: textblock
3192 #: ../clone/virt-sysprep.pod:205
3193 msgid ""
3194 "The configuration or description of the guest.  eg. The libvirt XML (see "
3195 "C<virsh dumpxml>), the running configuration of the guest, or another "
3196 "external format like OVF."
3197 msgstr ""
3198
3199 #. type: textblock
3200 #: ../clone/virt-sysprep.pod:209
3201 msgid "Some configuration items that might need to be changed:"
3202 msgstr ""
3203
3204 #. type: textblock
3205 #: ../clone/virt-sysprep.pod:215
3206 msgid "name"
3207 msgstr ""
3208
3209 #. type: textblock
3210 #: ../clone/virt-sysprep.pod:219 ../clone/virt-sysprep.pod:246
3211 msgid "UUID"
3212 msgstr ""
3213
3214 #. type: textblock
3215 #: ../clone/virt-sysprep.pod:223
3216 msgid "path to block device(s)"
3217 msgstr ""
3218
3219 #. type: textblock
3220 #: ../clone/virt-sysprep.pod:227
3221 msgid "network card MAC address"
3222 msgstr ""
3223
3224 #. type: =item
3225 #: ../clone/virt-sysprep.pod:231
3226 msgid "I<block device(s)>"
3227 msgstr ""
3228
3229 #. type: textblock
3230 #: ../clone/virt-sysprep.pod:233
3231 msgid ""
3232 "One or more hard disk images, themselves containing files, directories, "
3233 "applications, kernels, configuration, etc."
3234 msgstr ""
3235
3236 #. type: textblock
3237 #: ../clone/virt-sysprep.pod:236
3238 msgid "Some things inside the block devices that might need to be changed:"
3239 msgstr ""
3240
3241 #. type: textblock
3242 #: ../clone/virt-sysprep.pod:242
3243 msgid "hostname and other net configuration"
3244 msgstr ""
3245
3246 #. type: textblock
3247 #: ../clone/virt-sysprep.pod:250
3248 msgid "SSH host keys"
3249 msgstr ""
3250
3251 #. type: textblock
3252 #: ../clone/virt-sysprep.pod:254
3253 msgid "Windows unique security ID (SID)"
3254 msgstr ""
3255
3256 #. type: textblock
3257 #: ../clone/virt-sysprep.pod:258
3258 msgid "Puppet registration"
3259 msgstr ""
3260
3261 #. type: =head2
3262 #: ../clone/virt-sysprep.pod:264
3263 msgid "COPYING THE BLOCK DEVICE"
3264 msgstr ""
3265
3266 #. type: textblock
3267 #: ../clone/virt-sysprep.pod:266
3268 msgid ""
3269 "Starting with an original guest, you probably wish to copy the guest block "
3270 "device and its configuration to make a template.  Then once you are happy "
3271 "with the template, you will want to make many clones from it."
3272 msgstr ""
3273
3274 #. type: verbatim
3275 #: ../clone/virt-sysprep.pod:271
3276 #, no-wrap
3277 msgid ""
3278 "                        virt-sysprep\n"
3279 "                             |\n"
3280 "                             v\n"
3281 " original guest --------> template ---------->\n"
3282 "                                      \\------> cloned\n"
3283 "                                       \\-----> guests\n"
3284 "                                        \\---->\n"
3285 "\n"
3286 msgstr ""
3287
3288 #. type: textblock
3289 #: ../clone/virt-sysprep.pod:279
3290 msgid ""
3291 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3292 "L<dd(1)>."
3293 msgstr ""
3294
3295 #. type: verbatim
3296 #: ../clone/virt-sysprep.pod:282
3297 #, no-wrap
3298 msgid ""
3299 "                   dd                 dd\n"
3300 " original guest --------> template ---------->\n"
3301 "                                      \\------> cloned\n"
3302 "                                       \\-----> guests\n"
3303 "                                        \\---->\n"
3304 "\n"
3305 msgstr ""
3306
3307 #. type: textblock
3308 #: ../clone/virt-sysprep.pod:288
3309 msgid "There are some smarter (and faster) ways too:"
3310 msgstr ""
3311
3312 #. type: verbatim
3313 #: ../clone/virt-sysprep.pod:294
3314 #, no-wrap
3315 msgid ""
3316 "                          snapshot\n"
3317 "                template ---------->\n"
3318 "                            \\------> cloned\n"
3319 "                             \\-----> guests\n"
3320 "                              \\---->\n"
3321 "\n"
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../clone/virt-sysprep.pod:300
3326 msgid ""
3327 "Use the block device as a backing file and create a snapshot on top for each "
3328 "guest.  The advantage is that you don't need to copy the block device (very "
3329 "fast) and only changes are stored (less storage required)."
3330 msgstr ""
3331
3332 #. type: textblock
3333 #: ../clone/virt-sysprep.pod:305
3334 msgid ""
3335 "Note that writing to the backing file once you have created guests on top of "
3336 "it is not possible: you will corrupt the guests."
3337 msgstr ""
3338
3339 #. type: textblock
3340 #: ../clone/virt-sysprep.pod:308
3341 msgid ""
3342 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3343 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3344 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3345 "also create cheap snapshots from files or LUNs."
3346 msgstr ""
3347
3348 #. type: textblock
3349 #: ../clone/virt-sysprep.pod:316
3350 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3351 msgstr ""
3352
3353 #. type: textblock
3354 #: ../clone/virt-sysprep.pod:320
3355 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3356 msgstr ""
3357
3358 #. type: =head2
3359 #: ../clone/virt-sysprep.pod:324
3360 msgid "VIRT-CLONE"
3361 msgstr ""
3362
3363 #. type: textblock
3364 #: ../clone/virt-sysprep.pod:326
3365 msgid ""
3366 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3367 "and/or modify the external libvirt configuration of a guest.  It will reset "
3368 "the name, UUID and MAC address of the guest in the libvirt XML."
3369 msgstr ""
3370
3371 #. type: textblock
3372 #: ../clone/virt-sysprep.pod:331
3373 msgid ""
3374 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3375 "image.  This was the original motivation to write virt-sysprep."
3376 msgstr ""
3377
3378 #. type: =head2
3379 #: ../clone/virt-sysprep.pod:334
3380 msgid "SPARSIFY"
3381 msgstr ""
3382
3383 #. type: verbatim
3384 #: ../clone/virt-sysprep.pod:336
3385 #, no-wrap
3386 msgid ""
3387 "              virt-sparsify\n"
3388 " original guest --------> template\n"
3389 "\n"
3390 msgstr ""
3391
3392 #. type: textblock
3393 #: ../clone/virt-sysprep.pod:339
3394 msgid ""
3395 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3396 "it easier to compress and/or faster to copy."
3397 msgstr ""
3398
3399 #. type: textblock
3400 #: ../clone/virt-sysprep.pod:342
3401 msgid ""
3402 "Notice that since virt-sparsify also copies the image, you can use it to "
3403 "make the initial copy (instead of C<dd>)."
3404 msgstr ""
3405
3406 #. type: =head2
3407 #: ../clone/virt-sysprep.pod:345
3408 msgid "RESIZE"
3409 msgstr ""
3410
3411 #. type: verbatim
3412 #: ../clone/virt-sysprep.pod:347
3413 #, no-wrap
3414 msgid ""
3415 "                         virt-resize\n"
3416 "                template ---------->\n"
3417 "                            \\------> cloned\n"
3418 "                             \\-----> guests\n"
3419 "                              \\---->\n"
3420 "\n"
3421 msgstr ""
3422
3423 #. type: textblock
3424 #: ../clone/virt-sysprep.pod:353
3425 msgid ""
3426 "If you want to give people cloned guests, but let them pick the size of the "
3427 "guest themselves (eg. depending on how much they are prepared to pay for "
3428 "disk space), then instead of copying the template, you can run L<virt-resize"
3429 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3430 "guests from a template."
3431 msgstr ""
3432
3433 #. type: textblock
3434 #: ../clone/virt-sysprep.pod:368
3435 msgid "This program returns 0 on success, or 1 if there was an error."
3436 msgstr ""
3437
3438 #. type: textblock
3439 #: ../clone/virt-sysprep.pod:372
3440 msgid ""
3441 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3442 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<qemu-img(1)>, L<lvcreate(8)"
3443 ">, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3444 msgstr ""
3445
3446 #. type: textblock
3447 #: ../df/virt-df.pod:5
3448 msgid "virt-df - Display free space on virtual filesystems"
3449 msgstr ""
3450
3451 #. type: verbatim
3452 #: ../df/virt-df.pod:9
3453 #, no-wrap
3454 msgid ""
3455 " virt-df [--options]\n"
3456 "\n"
3457 msgstr ""
3458
3459 #. type: verbatim
3460 #: ../df/virt-df.pod:11
3461 #, no-wrap
3462 msgid ""
3463 " virt-df [--options] -d domname\n"
3464 "\n"
3465 msgstr ""
3466
3467 #. type: verbatim
3468 #: ../df/virt-df.pod:13
3469 #, no-wrap
3470 msgid ""
3471 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3472 "\n"
3473 msgstr ""
3474
3475 #. type: verbatim
3476 #: ../df/virt-df.pod:17
3477 #, no-wrap
3478 msgid ""
3479 " virt-df [--options] domname\n"
3480 "\n"
3481 msgstr ""
3482
3483 #. type: verbatim
3484 #: ../df/virt-df.pod:19
3485 #, no-wrap
3486 msgid ""
3487 " virt-df [--options] disk.img [disk.img ...]\n"
3488 "\n"
3489 msgstr ""
3490
3491 #. type: textblock
3492 #: ../df/virt-df.pod:23
3493 msgid ""
3494 "C<virt-df> is a command line tool to display free space on virtual machine "
3495 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3496 "allocated to a virtual machine, but can look inside disk images to see how "
3497 "much space is really being used."
3498 msgstr ""
3499
3500 #. type: textblock
3501 #: ../df/virt-df.pod:28
3502 msgid ""
3503 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3504 "to get a list of all active and inactive guests, and performs a C<df>-type "
3505 "operation on each one in turn, printing out the results."
3506 msgstr ""
3507
3508 #. type: textblock
3509 #: ../df/virt-df.pod:32
3510 msgid ""
3511 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3512 "type operation on either the single named libvirt domain, or on the disk "
3513 "image(s) listed on the command line (which must all belong to a single VM).  "
3514 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3515 "guest>.  If you want to run on multiple guests, then you have to invoke "
3516 "C<virt-df> multiple times."
3517 msgstr ""
3518
3519 #. type: textblock
3520 #: ../df/virt-df.pod:39
3521 msgid ""
3522 "Use the I<--csv> option to get a format which can be easily parsed by other "
3523 "programs.  Other options are similar to the standard L<df(1)> command."
3524 msgstr ""
3525
3526 #. type: textblock
3527 #: ../df/virt-df.pod:45
3528 msgid ""
3529 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3530 "output human-readable:"
3531 msgstr ""
3532
3533 #. type: verbatim
3534 #: ../df/virt-df.pod:48
3535 #, no-wrap
3536 msgid ""
3537 " # virt-df -d F14x64 -h\n"
3538 " Filesystem                       Size     Used  Available  Use%\n"
3539 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3540 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3541 "\n"
3542 msgstr ""
3543
3544 #. type: textblock
3545 #: ../df/virt-df.pod:53
3546 msgid "Show disk usage for a disk image file called C<test.img>:"
3547 msgstr ""
3548
3549 #. type: verbatim
3550 #: ../df/virt-df.pod:55
3551 #, no-wrap
3552 msgid ""
3553 " $ virt-df -a test1.img\n"
3554 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3555 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3556 "\n"
3557 msgstr ""
3558
3559 #. type: verbatim
3560 #: ../df/virt-df.pod:112
3561 #, no-wrap
3562 msgid ""
3563 " virt-df --format=raw -a disk.img\n"
3564 "\n"
3565 msgstr ""
3566
3567 #. type: verbatim
3568 #: ../df/virt-df.pod:116
3569 #, no-wrap
3570 msgid ""
3571 " virt-df --format=raw -a disk.img --format -a another.img\n"
3572 "\n"
3573 msgstr ""
3574
3575 #. type: textblock
3576 #: ../df/virt-df.pod:129
3577 msgid "Print sizes in human-readable format."
3578 msgstr ""
3579
3580 #. type: textblock
3581 #: ../df/virt-df.pod:131
3582 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3583 msgstr ""
3584
3585 #. type: =item
3586 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
3587 msgid "B<-i>"
3588 msgstr ""
3589
3590 #. type: =item
3591 #: ../df/virt-df.pod:135
3592 msgid "B<--inodes>"
3593 msgstr ""
3594
3595 #. type: textblock
3596 #: ../df/virt-df.pod:137
3597 msgid "Print inodes instead of blocks."
3598 msgstr ""
3599
3600 #. type: =item
3601 #: ../df/virt-df.pod:139
3602 msgid "B<--one-per-guest>"
3603 msgstr ""
3604
3605 #. type: textblock
3606 #: ../df/virt-df.pod:141
3607 msgid ""
3608 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3609 "disks from several guests to a single libguestfs appliance."
3610 msgstr ""
3611
3612 #. type: textblock
3613 #: ../df/virt-df.pod:144
3614 msgid "You might use this option in the following circumstances:"
3615 msgstr ""
3616
3617 #. type: textblock
3618 #: ../df/virt-df.pod:150
3619 msgid ""
3620 "If you think an untrusted guest might actively try to exploit the libguestfs "
3621 "appliance kernel, then this prevents one guest from interfering with the "
3622 "stats printed for another guest."
3623 msgstr ""
3624
3625 #. type: textblock
3626 #: ../df/virt-df.pod:156
3627 msgid ""
3628 "If the kernel has a bug which stops it from accessing a filesystem in one "
3629 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3630 "and report stats for further guests."
3631 msgstr ""
3632
3633 #. type: textblock
3634 #: ../df/virt-df.pod:165
3635 msgid ""
3636 "Print UUIDs instead of names.  This is useful for following a guest even "
3637 "when the guest is migrated or renamed, or when two guests happen to have the "
3638 "same name."
3639 msgstr ""
3640
3641 #. type: textblock
3642 #: ../df/virt-df.pod:169
3643 msgid ""
3644 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3645 "images, we still print the disk image name even when this option is "
3646 "specified."
3647 msgstr ""
3648
3649 #. type: textblock
3650 #: ../df/virt-df.pod:229
3651 msgid ""
3652 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
3653 "libguestfs.org/>."
3654 msgstr ""
3655
3656 #. type: textblock
3657 #: ../edit/virt-edit.pod:5
3658 msgid "virt-edit - Edit a file in a virtual machine"
3659 msgstr ""
3660
3661 #. type: verbatim
3662 #: ../edit/virt-edit.pod:9
3663 #, no-wrap
3664 msgid ""
3665 " virt-edit [--options] -d domname file [file ...]\n"
3666 "\n"
3667 msgstr ""
3668
3669 #. type: verbatim
3670 #: ../edit/virt-edit.pod:11
3671 #, no-wrap
3672 msgid ""
3673 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3674 "\n"
3675 msgstr ""
3676
3677 #. type: verbatim
3678 #: ../edit/virt-edit.pod:13
3679 #, no-wrap
3680 msgid ""
3681 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3682 "\n"
3683 msgstr ""
3684
3685 #. type: verbatim
3686 #: ../edit/virt-edit.pod:17
3687 #, no-wrap
3688 msgid ""
3689 " virt-edit domname file\n"
3690 "\n"
3691 msgstr ""
3692
3693 #. type: verbatim
3694 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3695 #, no-wrap
3696 msgid ""
3697 " virt-edit disk.img [disk.img ...] file\n"
3698 "\n"
3699 msgstr ""
3700
3701 #. type: =head1
3702 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
3703 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
3704 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
3705 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3706 msgid "WARNING"
3707 msgstr ""
3708
3709 #. type: textblock
3710 #: ../edit/virt-edit.pod:23
3711 msgid ""
3712 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3713 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3714 "doing this, but doesn't catch all cases."
3715 msgstr ""
3716
3717 #. type: textblock
3718 #: ../edit/virt-edit.pod:29
3719 msgid ""
3720 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3721 "exists in the named virtual machine (or disk image)."
3722 msgstr ""
3723
3724 #. type: textblock
3725 #: ../edit/virt-edit.pod:32
3726 msgid ""
3727 "Multiple filenames can be given, in which case they are each edited in "
3728 "turn.  Each filename must be a full path, starting at the root directory "
3729 "(starting with '/')."
3730 msgstr ""
3731
3732 #. type: textblock
3733 #: ../edit/virt-edit.pod:36
3734 msgid "If you want to just view a file, use L<virt-cat(1)>."
3735 msgstr ""
3736
3737 #. type: textblock
3738 #: ../edit/virt-edit.pod:38
3739 msgid ""
3740 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
3741 "USING GUESTFISH> below)."
3742 msgstr ""
3743
3744 #. type: textblock
3745 #: ../edit/virt-edit.pod:41
3746 msgid ""
3747 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3748 "that and much more."
3749 msgstr ""
3750
3751 #. type: textblock
3752 #: ../edit/virt-edit.pod:46
3753 msgid "Edit the named files interactively:"
3754 msgstr ""
3755
3756 #. type: verbatim
3757 #: ../edit/virt-edit.pod:48
3758 #, no-wrap
3759 msgid ""
3760 " virt-edit -d mydomain /boot/grub/grub.conf\n"
3761 "\n"
3762 msgstr ""
3763
3764 #. type: verbatim
3765 #: ../edit/virt-edit.pod:50
3766 #, no-wrap
3767 msgid ""
3768 " virt-edit -d mydomain /etc/passwd\n"
3769 "\n"
3770 msgstr ""
3771
3772 #. type: textblock
3773 #: ../edit/virt-edit.pod:52
3774 msgid "For Windows guests, some Windows paths are understood:"
3775 msgstr ""
3776
3777 #. type: verbatim
3778 #: ../edit/virt-edit.pod:54
3779 #, no-wrap
3780 msgid ""
3781 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
3782 "\n"
3783 msgstr ""
3784
3785 #. type: textblock
3786 #: ../edit/virt-edit.pod:56
3787 msgid ""
3788 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
3789 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
3790 msgstr ""
3791
3792 #. type: verbatim
3793 #: ../edit/virt-edit.pod:60
3794 #, no-wrap
3795 msgid ""
3796 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
3797 "\n"
3798 msgstr ""
3799
3800 #. type: =item
3801 #: ../edit/virt-edit.pod:81
3802 msgid "B<-b> extension"
3803 msgstr ""
3804
3805 #. type: =item
3806 #: ../edit/virt-edit.pod:83
3807 msgid "B<--backup> extension"
3808 msgstr ""
3809
3810 #. type: textblock
3811 #: ../edit/virt-edit.pod:85
3812 msgid ""
3813 "Create a backup of the original file I<in the guest disk image>.  The backup "
3814 "has the original filename with C<extension> added."
3815 msgstr ""
3816
3817 #. type: textblock
3818 #: ../edit/virt-edit.pod:88
3819 msgid ""
3820 "Usually the first character of C<extension> would be a dot C<.> so you would "
3821 "write:"
3822 msgstr ""
3823
3824 #. type: verbatim
3825 #: ../edit/virt-edit.pod:91
3826 #, no-wrap
3827 msgid ""
3828 " virt-edit -b .orig [etc]\n"
3829 "\n"
3830 msgstr ""
3831
3832 #. type: textblock
3833 #: ../edit/virt-edit.pod:93
3834 msgid "By default, no backup file is made."
3835 msgstr ""
3836
3837 #. type: =item
3838 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
3839 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
3840 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
3841 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
3842 msgid "B<-c URI>"
3843 msgstr ""
3844
3845 #. type: =item
3846 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
3847 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
3848 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
3849 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
3850 msgid "B<--connect URI>"
3851 msgstr ""
3852
3853 #. type: textblock
3854 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
3855 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
3856 #: ../tools/virt-win-reg.pl:135
3857 msgid ""
3858 "If you specify guest block devices directly, then libvirt is not used at all."
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../edit/virt-edit.pod:114
3863 msgid ""
3864 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3865 "off so you cannot see what you are typing.  If you are not worried about "
3866 "Tempest attacks and there is no one else in the room you can specify this "
3867 "flag to see what you are typing."
3868 msgstr ""
3869
3870 #. type: =item
3871 #: ../edit/virt-edit.pod:119
3872 msgid "B<-e> EXPR"
3873 msgstr ""
3874
3875 #. type: =item
3876 #: ../edit/virt-edit.pod:121
3877 msgid "B<--expr> EXPR"
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../edit/virt-edit.pod:123
3882 msgid ""
3883 "Instead of launching the external editor, non-interactively apply the Perl "
3884 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3885 "EDITING> below."
3886 msgstr ""
3887
3888 #. type: textblock
3889 #: ../edit/virt-edit.pod:127
3890 msgid ""
3891 "Be careful to properly quote the expression to prevent it from being altered "
3892 "by the shell."
3893 msgstr ""
3894
3895 #. type: textblock
3896 #: ../edit/virt-edit.pod:130
3897 msgid "Note that this option is only available when Perl 5 is installed."
3898 msgstr ""
3899
3900 #. type: =item
3901 #: ../edit/virt-edit.pod:132
3902 msgid "B<--format> raw|qcow2|..."
3903 msgstr ""
3904
3905 #. type: verbatim
3906 #: ../edit/virt-edit.pod:143
3907 #, no-wrap
3908 msgid ""
3909 " virt-edit --format=raw -a disk.img file\n"
3910 "\n"
3911 msgstr ""
3912
3913 #. type: verbatim
3914 #: ../edit/virt-edit.pod:147
3915 #, no-wrap
3916 msgid ""
3917 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3918 "\n"
3919 msgstr ""
3920
3921 #. type: textblock
3922 #: ../edit/virt-edit.pod:181
3923 msgid "Previous versions of virt-edit allowed you to write either:"
3924 msgstr ""
3925
3926 #. type: verbatim
3927 #: ../edit/virt-edit.pod:187
3928 #, no-wrap
3929 msgid ""
3930 " virt-edit guestname file\n"
3931 "\n"
3932 msgstr ""
3933
3934 #. type: =head1
3935 #: ../edit/virt-edit.pod:195
3936 msgid "NON-INTERACTIVE EDITING"
3937 msgstr ""
3938
3939 #. type: textblock
3940 #: ../edit/virt-edit.pod:197
3941 msgid ""
3942 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3943 "administrator can interactively edit the file."
3944 msgstr ""
3945
3946 #. type: textblock
3947 #: ../edit/virt-edit.pod:200
3948 msgid ""
3949 "There are two ways also to use C<virt-edit> from scripts in order to make "
3950 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3951 "like this, it's less error-prone to write scripts directly using the "
3952 "libguestfs API and Augeas for configuration file editing.)"
3953 msgstr ""
3954
3955 #. type: textblock
3956 #: ../edit/virt-edit.pod:206
3957 msgid ""
3958 "The first method is to temporarily set C<$EDITOR> to any script or program "
3959 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3960 "update C<tmpfile> in place however it likes."
3961 msgstr ""
3962
3963 #. type: textblock
3964 #: ../edit/virt-edit.pod:210
3965 msgid ""
3966 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3967 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3968 "instances of C<foo> with C<bar> in a file:"
3969 msgstr ""
3970
3971 #. type: verbatim
3972 #: ../edit/virt-edit.pod:214
3973 #, no-wrap
3974 msgid ""
3975 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3976 "\n"
3977 msgstr ""
3978
3979 #. type: textblock
3980 #: ../edit/virt-edit.pod:216
3981 msgid ""
3982 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3983 "For example to delete root's password you could do:"
3984 msgstr ""
3985
3986 #. type: verbatim
3987 #: ../edit/virt-edit.pod:219
3988 #, no-wrap
3989 msgid ""
3990 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3991 "\n"
3992 msgstr ""
3993
3994 #. type: textblock
3995 #: ../edit/virt-edit.pod:221
3996 msgid ""
3997 "What really happens is that the snippet is evaluated as a Perl expression "
3998 "for each line of the file.  The line, including the final C<\\n>, is passed "
3999 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4000 msgstr ""
4001
4002 #. type: textblock
4003 #: ../edit/virt-edit.pod:226
4004 msgid ""
4005 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4006 "C<apache> user account from the password file you can do:"
4007 msgstr ""
4008
4009 #. type: verbatim
4010 #: ../edit/virt-edit.pod:229
4011 #, no-wrap
4012 msgid ""
4013 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4014 "\n"
4015 msgstr ""
4016
4017 #. type: textblock
4018 #: ../edit/virt-edit.pod:231
4019 msgid ""
4020 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4021 "the end of the file is rather difficult this way since there is no concept "
4022 "of \"last line of the file\" - your expression just doesn't get called "
4023 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4024 "want to do this."
4025 msgstr ""
4026
4027 #. type: textblock
4028 #: ../edit/virt-edit.pod:237
4029 msgid ""
4030 "The variable C<$lineno> contains the current line number.  As is "
4031 "traditional, the first line in the file is number C<1>."
4032 msgstr ""
4033
4034 #. type: textblock
4035 #: ../edit/virt-edit.pod:240
4036 msgid ""
4037 "The return value from the expression is ignored, but the expression may call "
4038 "C<die> in order to abort the whole program, leaving the original file "
4039 "untouched."
4040 msgstr ""
4041
4042 #. type: textblock
4043 #: ../edit/virt-edit.pod:244
4044 msgid ""
4045 "Remember when matching the end of a line that C<$_> may contain the final C<"
4046 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4047 "newline then neither of these.  Thus to match or substitute some text at the "
4048 "end of a line, use this regular expression:"
4049 msgstr ""
4050
4051 #. type: verbatim
4052 #: ../edit/virt-edit.pod:249
4053 #, no-wrap
4054 msgid ""
4055 " /some text(\\r?\\n)?$/\n"
4056 "\n"
4057 msgstr ""
4058
4059 #. type: textblock
4060 #: ../edit/virt-edit.pod:251
4061 msgid ""
4062 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4063 "$_> itself (since that would remove all newlines from the file):"
4064 msgstr ""
4065
4066 #. type: verbatim
4067 #: ../edit/virt-edit.pod:255
4068 #, no-wrap
4069 msgid ""
4070 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4071 "\n"
4072 msgstr ""
4073
4074 #. type: =head1
4075 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4076 msgid "WINDOWS PATHS"
4077 msgstr ""
4078
4079 #. type: textblock
4080 #: ../edit/virt-edit.pod:259
4081 msgid ""
4082 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4083 "paths (eg. C<E:\\foo\\bar.txt>)."
4084 msgstr ""
4085
4086 #. type: textblock
4087 #: ../edit/virt-edit.pod:262
4088 msgid "If and only if the guest is running Windows then:"
4089 msgstr ""
4090
4091 #. type: textblock
4092 #: ../edit/virt-edit.pod:268
4093 msgid ""
4094 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4095 "to the correct filesystem."
4096 msgstr ""
4097
4098 #. type: textblock
4099 #: ../edit/virt-edit.pod:273
4100 msgid ""
4101 "Any backslash (C<\\>) characters in the path are replaced with forward "
4102 "slashes so that libguestfs can process it."
4103 msgstr ""
4104
4105 #. type: textblock
4106 #: ../edit/virt-edit.pod:278
4107 msgid ""
4108 "The path is resolved case insensitively to locate the file that should be "
4109 "edited."
4110 msgstr ""
4111
4112 #. type: textblock
4113 #: ../edit/virt-edit.pod:283
4114 msgid "There are some known shortcomings:"
4115 msgstr ""
4116
4117 #. type: textblock
4118 #: ../edit/virt-edit.pod:289
4119 msgid "Some NTFS symbolic links may not be followed correctly."
4120 msgstr ""
4121
4122 #. type: textblock
4123 #: ../edit/virt-edit.pod:293
4124 msgid "NTFS junction points that cross filesystems are not followed."
4125 msgstr ""
4126
4127 #. type: textblock
4128 #: ../edit/virt-edit.pod:299
4129 msgid ""
4130 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4131 "C<virt-edit> doesn't work."
4132 msgstr ""
4133
4134 #. type: textblock
4135 #: ../edit/virt-edit.pod:302
4136 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4137 msgstr ""
4138
4139 #. type: verbatim
4140 #: ../edit/virt-edit.pod:304
4141 #, no-wrap
4142 msgid ""
4143 " guestfish --rw -i -d domname edit /file\n"
4144 "\n"
4145 msgstr ""
4146
4147 #. type: textblock
4148 #: ../edit/virt-edit.pod:306
4149 msgid ""
4150 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4151 "path to the file."
4152 msgstr ""
4153
4154 #. type: textblock
4155 #: ../edit/virt-edit.pod:309
4156 msgid ""
4157 "The command above uses libguestfs's guest inspection feature and so does not "
4158 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4159 "disk images that don't contain guests.  To edit a file on a disk image "
4160 "directly, use:"
4161 msgstr ""
4162
4163 #. type: verbatim
4164 #: ../edit/virt-edit.pod:314
4165 #, no-wrap
4166 msgid ""
4167 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4168 "\n"
4169 msgstr ""
4170
4171 #. type: textblock
4172 #: ../edit/virt-edit.pod:316
4173 msgid ""
4174 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4175 "the disk image to edit, and C</file> is the full path to the file."
4176 msgstr ""
4177
4178 #. type: textblock
4179 #: ../edit/virt-edit.pod:320
4180 msgid ""
4181 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4182 "C<write> or C<upload> instead:"
4183 msgstr ""
4184
4185 #. type: verbatim
4186 #: ../edit/virt-edit.pod:323
4187 #, no-wrap
4188 msgid ""
4189 " guestfish --rw -i -d domname touch /newfile\n"
4190 "\n"
4191 msgstr ""
4192
4193 #. type: verbatim
4194 #: ../edit/virt-edit.pod:325
4195 #, no-wrap
4196 msgid ""
4197 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4198 "\n"
4199 msgstr ""
4200
4201 #. type: verbatim
4202 #: ../edit/virt-edit.pod:327
4203 #, no-wrap
4204 msgid ""
4205 " guestfish --rw -i -d domname upload localfile /newfile\n"
4206 "\n"
4207 msgstr ""
4208
4209 #. type: =head1
4210 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1118
4211 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4212 #: ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4213 msgid "ENVIRONMENT VARIABLES"
4214 msgstr ""
4215
4216 #. type: =item
4217 #: ../edit/virt-edit.pod:333
4218 msgid "C<EDITOR>"
4219 msgstr ""
4220
4221 #. type: textblock
4222 #: ../edit/virt-edit.pod:335
4223 msgid ""
4224 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4225 "\"emacs -nw\">"
4226 msgstr ""
4227
4228 #. type: textblock
4229 #: ../edit/virt-edit.pod:338
4230 msgid "If not set, C<vi> is used."
4231 msgstr ""
4232
4233 #. type: textblock
4234 #: ../edit/virt-edit.pod:356
4235 msgid ""
4236 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4237 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4238 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4239 msgstr ""
4240
4241 #. type: textblock
4242 #: ../erlang/examples/guestfs-erlang.pod:5
4243 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4244 msgstr ""
4245
4246 #. type: verbatim
4247 #: ../erlang/examples/guestfs-erlang.pod:9
4248 #, no-wrap
4249 msgid ""
4250 " {ok, G} = guestfs:create(),\n"
4251 " ok = guestfs:add_drive_opts(G, Disk,\n"
4252 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4253 " ok = guestfs:launch(G),\n"
4254 " [Device] = guestfs:list_devices(G),\n"
4255 " ok = guestfs:close(G).\n"
4256 "\n"
4257 msgstr ""
4258
4259 #. type: textblock
4260 #: ../erlang/examples/guestfs-erlang.pod:18
4261 msgid ""
4262 "This manual page documents how to call libguestfs from the Erlang "
4263 "programming language.  This page just documents the differences from the C "
4264 "API and gives some examples.  If you are not familiar with using libguestfs, "
4265 "you also need to read L<guestfs(3)>."
4266 msgstr ""
4267
4268 #. type: =head2
4269 #: ../erlang/examples/guestfs-erlang.pod:23
4270 msgid "OPENING AND CLOSING THE HANDLE"
4271 msgstr ""
4272
4273 #. type: textblock
4274 #: ../erlang/examples/guestfs-erlang.pod:25
4275 msgid ""
4276 "The Erlang bindings are implemented using an external program called C<erl-"
4277 "guestfs>.  This program must be on the current PATH, or else you should "
4278 "specify the full path to the program:"
4279 msgstr ""
4280
4281 #. type: verbatim
4282 #: ../erlang/examples/guestfs-erlang.pod:29
4283 #, no-wrap
4284 msgid ""
4285 " {ok, G} = guestfs:create().\n"
4286 "\n"
4287 msgstr ""
4288
4289 #. type: verbatim
4290 #: ../erlang/examples/guestfs-erlang.pod:31
4291 #, no-wrap
4292 msgid ""
4293 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4294 "\n"
4295 msgstr ""
4296
4297 #. type: textblock
4298 #: ../erlang/examples/guestfs-erlang.pod:33
4299 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4300 msgstr ""
4301
4302 #. type: textblock
4303 #: ../erlang/examples/guestfs-erlang.pod:36
4304 msgid "To close the handle:"
4305 msgstr ""
4306
4307 #. type: verbatim
4308 #: ../erlang/examples/guestfs-erlang.pod:38
4309 #, no-wrap
4310 msgid ""
4311 " ok = guestfs:close(G).\n"
4312 "\n"
4313 msgstr ""
4314
4315 #. type: =head2
4316 #: ../erlang/examples/guestfs-erlang.pod:40
4317 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4318 msgstr ""
4319
4320 #. type: textblock
4321 #: ../erlang/examples/guestfs-erlang.pod:42
4322 msgid ""
4323 "For functions that take optional arguments, the first arguments are the non-"
4324 "optional ones.  The last argument is a list of tuples supplying the "
4325 "remaining optional arguments."
4326 msgstr ""
4327
4328 #. type: verbatim
4329 #: ../erlang/examples/guestfs-erlang.pod:46
4330 #, no-wrap
4331 msgid ""
4332 " ok = guestfs:add_drive_opts(G, Disk,\n"
4333 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4334 "\n"
4335 msgstr ""
4336
4337 #. type: textblock
4338 #: ../erlang/examples/guestfs-erlang.pod:49
4339 msgid "If the last argument would be an empty list, you can also omit it:"
4340 msgstr ""
4341
4342 #. type: verbatim
4343 #: ../erlang/examples/guestfs-erlang.pod:51
4344 #, no-wrap
4345 msgid ""
4346 " ok = guestfs:add_drive_opts(G, Disk).\n"
4347 "\n"
4348 msgstr ""
4349
4350 #. type: =head2
4351 #: ../erlang/examples/guestfs-erlang.pod:53
4352 msgid "RETURN VALUES AND ERRORS"
4353 msgstr ""
4354
4355 #. type: textblock
4356 #: ../erlang/examples/guestfs-erlang.pod:55
4357 msgid ""
4358 "On success, most functions return a C<Result> term (which could be a list, "
4359 "string, tuple etc.).  If there is nothing for the function to return, then "
4360 "the atom C<ok> is returned."
4361 msgstr ""
4362
4363 #. type: textblock
4364 #: ../erlang/examples/guestfs-erlang.pod:59
4365 msgid "On error, you would see one of the following tuples:"
4366 msgstr ""
4367
4368 #. type: =item
4369 #: ../erlang/examples/guestfs-erlang.pod:63
4370 msgid "C<{error, Msg, Errno}>"
4371 msgstr ""
4372
4373 #. type: textblock
4374 #: ../erlang/examples/guestfs-erlang.pod:65
4375 msgid "This indicates an ordinary error from the function."
4376 msgstr ""
4377
4378 #. type: textblock
4379 #: ../erlang/examples/guestfs-erlang.pod:67
4380 msgid ""
4381 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4382 "(integer)."
4383 msgstr ""
4384
4385 #. type: textblock
4386 #: ../erlang/examples/guestfs-erlang.pod:70
4387 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4388 msgstr ""
4389
4390 #. type: =item
4391 #: ../erlang/examples/guestfs-erlang.pod:72
4392 msgid "C<{unknown, Function}>"
4393 msgstr ""
4394
4395 #. type: textblock
4396 #: ../erlang/examples/guestfs-erlang.pod:74
4397 msgid ""
4398 "This indicates that the function you called is not known.  Generally this "
4399 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4400 "which you should not do."
4401 msgstr ""
4402
4403 #. type: textblock
4404 #: ../erlang/examples/guestfs-erlang.pod:78
4405 msgid "C<Function> is the name of the unknown function."
4406 msgstr ""
4407
4408 #. type: =item
4409 #: ../erlang/examples/guestfs-erlang.pod:80
4410 msgid "C<{unknownarg, Arg}>"
4411 msgstr ""
4412
4413 #. type: textblock
4414 #: ../erlang/examples/guestfs-erlang.pod:82
4415 msgid ""
4416 "This indicates that you called a function with optional arguments, with an "
4417 "unknown argument name."
4418 msgstr ""
4419
4420 #. type: textblock
4421 #: ../erlang/examples/guestfs-erlang.pod:85
4422 msgid "C<Arg> is the name of the unknown argument."
4423 msgstr ""
4424
4425 #. type: =head1
4426 #: ../erlang/examples/guestfs-erlang.pod:89
4427 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4428 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4429 #: ../python/examples/guestfs-python.pod:34
4430 #: ../ruby/examples/guestfs-ruby.pod:28
4431 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4432 msgstr ""
4433
4434 #. type: textblock
4435 #: ../erlang/examples/guestfs-erlang.pod:91
4436 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4437 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4438 #: ../python/examples/guestfs-python.pod:36
4439 #: ../ruby/examples/guestfs-ruby.pod:30
4440 msgid "@EXAMPLE1@"
4441 msgstr ""
4442
4443 #. type: =head1
4444 #: ../erlang/examples/guestfs-erlang.pod:93
4445 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4446 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4447 #: ../python/examples/guestfs-python.pod:38
4448 #: ../ruby/examples/guestfs-ruby.pod:32
4449 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4450 msgstr ""
4451
4452 #. type: textblock
4453 #: ../erlang/examples/guestfs-erlang.pod:95
4454 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4455 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4456 #: ../python/examples/guestfs-python.pod:40
4457 #: ../ruby/examples/guestfs-ruby.pod:34
4458 msgid "@EXAMPLE2@"
4459 msgstr ""
4460
4461 #. type: textblock
4462 #: ../erlang/examples/guestfs-erlang.pod:99
4463 msgid ""
4464 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4465 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4466 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4467 msgstr ""
4468
4469 #. type: =head1
4470 #: ../erlang/examples/guestfs-erlang.pod:110
4471 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4472 #: ../fish/guestfish.pod:1295 ../fish/virt-copy-in.pod:60
4473 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4474 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
4475 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4476 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4477 #: ../python/examples/guestfs-python.pod:54
4478 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333
4479 #: ../test-tool/libguestfs-test-tool.pod:106
4480 msgid "AUTHORS"
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../erlang/examples/guestfs-erlang.pod:112
4485 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4486 #: ../fish/guestfish.pod:1297 ../fish/virt-copy-in.pod:62
4487 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4488 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
4489 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4490 #: ../perl/examples/guestfs-perl.pod:54
4491 #: ../python/examples/guestfs-python.pod:56
4492 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335
4493 #: ../test-tool/libguestfs-test-tool.pod:108
4494 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4495 msgstr ""
4496
4497 #. type: textblock
4498 #: ../erlang/examples/guestfs-erlang.pod:116
4499 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4500 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4501 msgstr ""
4502
4503 #. type: textblock
4504 #: ../erlang/examples/guestfs-erlang.pod:118
4505 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4506 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4507 #: ../perl/examples/guestfs-perl.pod:60
4508 #: ../python/examples/guestfs-python.pod:62
4509 #: ../ruby/examples/guestfs-ruby.pod:56
4510 msgid ""
4511 "The examples in this manual page may be freely copied, modified and "
4512 "distributed without any restrictions."
4513 msgstr ""
4514
4515 #. type: textblock
4516 #: ../erlang/examples/guestfs-erlang.pod:121
4517 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4518 #: ../java/examples/guestfs-java.pod:69
4519 #: ../ocaml/examples/guestfs-ocaml.pod:102
4520 #: ../perl/examples/guestfs-perl.pod:63
4521 #: ../python/examples/guestfs-python.pod:65
4522 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
4523 msgid ""
4524 "This library is free software; you can redistribute it and/or modify it "
4525 "under the terms of the GNU Lesser General Public License as published by the "
4526 "Free Software Foundation; either version 2 of the License, or (at your "
4527 "option) any later version."
4528 msgstr ""
4529
4530 #. type: textblock
4531 #: ../erlang/examples/guestfs-erlang.pod:126
4532 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4533 #: ../java/examples/guestfs-java.pod:74
4534 #: ../ocaml/examples/guestfs-ocaml.pod:107
4535 #: ../perl/examples/guestfs-perl.pod:68
4536 #: ../python/examples/guestfs-python.pod:70
4537 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
4538 msgid ""
4539 "This library is distributed in the hope that it will be useful, but WITHOUT "
4540 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4541 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4542 "for more details."
4543 msgstr ""
4544
4545 #. type: textblock
4546 #: ../erlang/examples/guestfs-erlang.pod:131
4547 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4548 #: ../java/examples/guestfs-java.pod:79
4549 #: ../ocaml/examples/guestfs-ocaml.pod:112
4550 #: ../perl/examples/guestfs-perl.pod:73
4551 #: ../python/examples/guestfs-python.pod:75
4552 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
4553 msgid ""
4554 "You should have received a copy of the GNU Lesser General Public License "
4555 "along with this library; if not, write to the Free Software Foundation, "
4556 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4557 msgstr ""
4558
4559 #. type: textblock
4560 #: ../examples/guestfs-examples.pod:5
4561 msgid "guestfs-examples - Examples of using libguestfs from C"
4562 msgstr ""
4563
4564 #. type: verbatim
4565 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4566 #, no-wrap
4567 msgid ""
4568 " #include <guestfs.h>\n"
4569 " \n"
4570 msgstr ""
4571
4572 #. type: verbatim
4573 #: ../examples/guestfs-examples.pod:11
4574 #, no-wrap
4575 msgid ""
4576 " guestfs_h *g = guestfs_create ();\n"
4577 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4578 " guestfs_launch (g);\n"
4579 "\n"
4580 msgstr ""
4581
4582 #. type: verbatim
4583 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4584 #, no-wrap
4585 msgid ""
4586 " cc prog.c -o prog -lguestfs\n"
4587 "or:\n"
4588 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4589 "\n"
4590 msgstr ""
4591
4592 #. type: textblock
4593 #: ../examples/guestfs-examples.pod:21
4594 msgid ""
4595 "This manual page contains examples of calling libguestfs from the C "
4596 "programming language.  If you are not familiar with using libguestfs, you "
4597 "also need to read L<guestfs(3)>."
4598 msgstr ""
4599
4600 #. type: textblock
4601 #: ../examples/guestfs-examples.pod:35
4602 msgid ""
4603 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4604 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4605 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4606 msgstr ""
4607
4608 #. type: textblock
4609 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4610 #: ../python/examples/guestfs-python.pod:60
4611 #: ../ruby/examples/guestfs-ruby.pod:54
4612 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4613 msgstr ""
4614
4615 #. type: =end
4616 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4617 msgid "comment"
4618 msgstr ""
4619
4620 #. type: textblock
4621 #: ../examples/guestfs-recipes.pod:5
4622 msgid ""
4623 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4624 "here.  The only way which works for both sorts of output is to just write "
4625 "the URL directly.  Do NOT use L<...> for URLs."
4626 msgstr ""
4627
4628 #. type: textblock
4629 #: ../examples/guestfs-recipes.pod:9
4630 msgid ""
4631 "We break with tradition here and don't use ALL CAPS for the section "
4632 "headings, as this makes them much easier to read."
4633 msgstr ""
4634
4635 #. type: textblock
4636 #: ../examples/guestfs-recipes.pod:16
4637 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4638 msgstr ""
4639
4640 #. type: textblock
4641 #: ../examples/guestfs-recipes.pod:20
4642 msgid ""
4643 "This page contains recipes for and links to things you can do using "
4644 "libguestfs, L<guestfish(1)> and the virt tools."
4645 msgstr ""
4646
4647 #. type: =head1
4648 #: ../examples/guestfs-recipes.pod:23
4649 msgid "Audit a virtual machine for setuid files"
4650 msgstr ""
4651
4652 #. type: textblock
4653 #: ../examples/guestfs-recipes.pod:25
4654 msgid ""
4655 "The link below contains a small program which can be used to audit a Linux "
4656 "virtual machine to see what setuid and setgid files it contains."
4657 msgstr ""
4658
4659 #. type: textblock
4660 #: ../examples/guestfs-recipes.pod:28
4661 msgid ""
4662 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
4663 "files/#content"
4664 msgstr ""
4665
4666 #. type: =head1
4667 #: ../examples/guestfs-recipes.pod:30
4668 msgid "Change the background image in a Windows XP VM"
4669 msgstr ""
4670
4671 #. type: textblock
4672 #: ../examples/guestfs-recipes.pod:32
4673 msgid ""
4674 "The links below explain how to use L<guestfish(1)> to change the background "
4675 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4676 "be substantially different for each version of Windows."
4677 msgstr ""
4678
4679 #. type: textblock
4680 #: ../examples/guestfs-recipes.pod:37
4681 msgid ""
4682 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
4683 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4684 msgstr ""
4685
4686 #. type: =head1
4687 #: ../examples/guestfs-recipes.pod:40
4688 msgid "Cloning a virtual machine (Linux)"
4689 msgstr ""
4690
4691 #. type: textblock
4692 #: ../examples/guestfs-recipes.pod:42
4693 msgid ""
4694 "The guestfish technique described in the link below works well for most "
4695 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4696 "slightly."
4697 msgstr ""
4698
4699 #. type: textblock
4700 #: ../examples/guestfs-recipes.pod:46
4701 msgid ""
4702 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
4703 "vm/#content"
4704 msgstr ""
4705
4706 #. type: textblock
4707 #: ../examples/guestfs-recipes.pod:48
4708 msgid ""
4709 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4710 "discussion."
4711 msgstr ""
4712
4713 #. type: textblock
4714 #: ../examples/guestfs-recipes.pod:51
4715 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4716 msgstr ""
4717
4718 #. type: =head1
4719 #: ../examples/guestfs-recipes.pod:53
4720 msgid "Cloning a virtual machine (Windows)"
4721 msgstr ""
4722
4723 #. type: textblock
4724 #: ../examples/guestfs-recipes.pod:55
4725 msgid ""
4726 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4727 "straightforward.  Currently there is code in the Aeolus Oz project which "
4728 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4729 "we may add sysprepping ability."
4730 msgstr ""
4731
4732 #. type: textblock
4733 #: ../examples/guestfs-recipes.pod:60
4734 msgid ""
4735 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
4736 "list/2011-May/msg00019.html"
4737 msgstr ""
4738
4739 #. type: =head1
4740 #: ../examples/guestfs-recipes.pod:63
4741 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4742 msgstr ""
4743
4744 #. type: textblock
4745 #: ../examples/guestfs-recipes.pod:65
4746 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
4747 msgstr ""
4748
4749 #. type: verbatim
4750 #: ../examples/guestfs-recipes.pod:67
4751 #, no-wrap
4752 msgid ""
4753 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
4754 "\n"
4755 msgstr ""
4756
4757 #. type: textblock
4758 #: ../examples/guestfs-recipes.pod:69
4759 msgid "To export just a subdirectory, eg. C</files>, do:"
4760 msgstr ""
4761
4762 #. type: verbatim
4763 #: ../examples/guestfs-recipes.pod:71
4764 #, no-wrap
4765 msgid ""
4766 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4767 "\n"
4768 msgstr ""
4769
4770 #. type: =head1
4771 #: ../examples/guestfs-recipes.pod:73
4772 msgid "Create empty disk images"
4773 msgstr ""
4774
4775 #. type: textblock
4776 #: ../examples/guestfs-recipes.pod:75
4777 msgid ""
4778 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4779 "The useful guide below explains the options available."
4780 msgstr ""
4781
4782 #. type: textblock
4783 #: ../examples/guestfs-recipes.pod:78
4784 msgid ""
4785 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
4786 "#content"
4787 msgstr ""
4788
4789 #. type: =head1
4790 #: ../examples/guestfs-recipes.pod:80
4791 msgid "Dump raw filesystem content from inside a disk image or VM"
4792 msgstr ""
4793
4794 #. type: textblock
4795 #: ../examples/guestfs-recipes.pod:82
4796 msgid ""
4797 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4798 "filesystem content from any filesystem in a disk image or a VM (even one "
4799 "which is encrypted or buried inside an LV):"
4800 msgstr ""
4801
4802 #. type: verbatim
4803 #: ../examples/guestfs-recipes.pod:86
4804 #, no-wrap
4805 msgid ""
4806 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4807 "\n"
4808 msgstr ""
4809
4810 #. type: verbatim
4811 #: ../examples/guestfs-recipes.pod:88
4812 #, no-wrap
4813 msgid ""
4814 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4815 "\n"
4816 msgstr ""
4817
4818 #. type: textblock
4819 #: ../examples/guestfs-recipes.pod:90
4820 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4821 msgstr ""
4822
4823 #. type: =head1
4824 #: ../examples/guestfs-recipes.pod:92
4825 msgid "Edit grub configuration in a VM"
4826 msgstr ""
4827
4828 #. type: textblock
4829 #: ../examples/guestfs-recipes.pod:94
4830 msgid "You can use this to:"
4831 msgstr ""
4832
4833 #. type: textblock
4834 #: ../examples/guestfs-recipes.pod:100
4835 msgid "Fix a virtual machine that does not boot."
4836 msgstr ""
4837
4838 #. type: textblock
4839 #: ../examples/guestfs-recipes.pod:104
4840 msgid "Change which kernel is used to boot the VM."
4841 msgstr ""
4842
4843 #. type: textblock
4844 #: ../examples/guestfs-recipes.pod:108
4845 msgid "Change kernel command line options."
4846 msgstr ""
4847
4848 #. type: textblock
4849 #: ../examples/guestfs-recipes.pod:112
4850 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4851 msgstr ""
4852
4853 #. type: verbatim
4854 #: ../examples/guestfs-recipes.pod:114
4855 #, no-wrap
4856 msgid ""
4857 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4858 "\n"
4859 msgstr ""
4860
4861 #. type: textblock
4862 #: ../examples/guestfs-recipes.pod:116
4863 msgid ""
4864 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4865 "this:"
4866 msgstr ""
4867
4868 #. type: verbatim
4869 #: ../examples/guestfs-recipes.pod:119
4870 #, no-wrap
4871 msgid ""
4872 " virt-rescue -d BrokenGuest\n"
4873 "\n"
4874 msgstr ""
4875
4876 #. type: =head1
4877 #: ../examples/guestfs-recipes.pod:121
4878 msgid "Export any directory from a VM"
4879 msgstr ""
4880
4881 #. type: textblock
4882 #: ../examples/guestfs-recipes.pod:123
4883 msgid ""
4884 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4885 msgstr ""
4886
4887 #. type: verbatim
4888 #: ../examples/guestfs-recipes.pod:126
4889 #, no-wrap
4890 msgid ""
4891 " virt-copy-out -d Guest /home .\n"
4892 "\n"
4893 msgstr ""
4894
4895 #. type: textblock
4896 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
4897 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
4898 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
4899 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457
4900 #: ../src/guestfs-actions.pod:3008 ../src/guestfs.pod:1670
4901 #: ../tools/virt-win-reg.pl:706
4902 msgid "Notes:"
4903 msgstr ""
4904
4905 #. type: textblock
4906 #: ../examples/guestfs-recipes.pod:134
4907 msgid ""
4908 "The final dot of the command is not a printing error.  It means we want to "
4909 "copy out to the current directory."
4910 msgstr ""
4911
4912 #. type: textblock
4913 #: ../examples/guestfs-recipes.pod:139
4914 msgid "This creates a directory called C<home> under the current directory."
4915 msgstr ""
4916
4917 #. type: textblock
4918 #: ../examples/guestfs-recipes.pod:143
4919 msgid ""
4920 "If the guest is a Windows guest then you can use drive letters and "
4921 "backslashes, but you must prefix the path with C<win:> and quote it to "
4922 "protect it from the shell, like this:"
4923 msgstr ""
4924
4925 #. type: verbatim
4926 #: ../examples/guestfs-recipes.pod:147
4927 #, no-wrap
4928 msgid ""
4929 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4930 "\n"
4931 msgstr ""
4932
4933 #. type: textblock
4934 #: ../examples/guestfs-recipes.pod:149
4935 msgid "To get the output as a compressed tarball, do:"
4936 msgstr ""
4937
4938 #. type: verbatim
4939 #: ../examples/guestfs-recipes.pod:151
4940 #, no-wrap
4941 msgid ""
4942 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4943 "\n"
4944 msgstr ""
4945
4946 #. type: textblock
4947 #: ../examples/guestfs-recipes.pod:153
4948 msgid ""
4949 "Although it sounds tempting, this is usually not a reliable way to get a "
4950 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
4951 "org/FAQ.html#backup"
4952 msgstr ""
4953
4954 #. type: =head1
4955 #: ../examples/guestfs-recipes.pod:157
4956 msgid "Find out which user is using the most space"
4957 msgstr ""
4958
4959 #. type: textblock
4960 #: ../examples/guestfs-recipes.pod:159
4961 msgid ""
4962 "This simple script examines a Linux guest to find out which user is using "
4963 "the most space in their home directory:"
4964 msgstr ""
4965
4966 #. type: verbatim
4967 #: ../examples/guestfs-recipes.pod:162
4968 #, no-wrap
4969 msgid ""
4970 " #!/bin/sh -\n"
4971 " \n"
4972 msgstr ""
4973
4974 #. type: verbatim
4975 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
4976 #, no-wrap
4977 msgid ""
4978 " set -e\n"
4979 " \n"
4980 msgstr ""
4981
4982 #. type: verbatim
4983 #: ../examples/guestfs-recipes.pod:166
4984 #, no-wrap
4985 msgid ""
4986 " vm=\"$1\"\n"
4987 " dir=/home\n"
4988 " \n"
4989 msgstr ""
4990
4991 #. type: verbatim
4992 #: ../examples/guestfs-recipes.pod:169
4993 #, no-wrap
4994 msgid ""
4995 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4996 " \n"
4997 msgstr ""
4998
4999 #. type: verbatim
5000 #: ../examples/guestfs-recipes.pod:171
5001 #, no-wrap
5002 msgid ""
5003 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5004 "     echo -n \"$dir/$d\"\n"
5005 "     echo -ne '\\t'\n"
5006 "     guestfish --remote du \"$dir/$d\";\n"
5007 " done | sort -nr -k 2\n"
5008 " \n"
5009 msgstr ""
5010
5011 #. type: verbatim
5012 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5013 #, no-wrap
5014 msgid ""
5015 " guestfish --remote exit\n"
5016 "\n"
5017 msgstr ""
5018
5019 #. type: =head1
5020 #: ../examples/guestfs-recipes.pod:179
5021 msgid "Get DHCP address from a VM"
5022 msgstr ""
5023
5024 #. type: textblock
5025 #: ../examples/guestfs-recipes.pod:181
5026 msgid ""
5027 "The link below explains the many different possible techniques for getting "
5028 "the last assigned DHCP address of a virtual machine."
5029 msgstr ""
5030
5031 #. type: textblock
5032 #: ../examples/guestfs-recipes.pod:184
5033 msgid ""
5034 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5035 "a-virtual-machine-disk-image/#content"
5036 msgstr ""
5037
5038 #. type: textblock
5039 #: ../examples/guestfs-recipes.pod:186
5040 msgid ""
5041 "In the libguestfs source examples directory you will find the latest version "
5042 "of the C<virt-dhcp-address.c> program."
5043 msgstr ""
5044
5045 #. type: =head1
5046 #: ../examples/guestfs-recipes.pod:189
5047 msgid "Get the operating system product name string"
5048 msgstr ""
5049
5050 #. type: textblock
5051 #: ../examples/guestfs-recipes.pod:191
5052 msgid "Save the following script into a file called C<product-name.sh>:"
5053 msgstr ""
5054
5055 #. type: verbatim
5056 #: ../examples/guestfs-recipes.pod:193
5057 #, no-wrap
5058 msgid ""
5059 " #!/bin/sh -\n"
5060 " set -e\n"
5061 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5062 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5063 " guestfish --remote inspect-get-product-name \"$root\"\n"
5064 " guestfish --remote exit\n"
5065 "\n"
5066 msgstr ""
5067
5068 #. type: textblock
5069 #: ../examples/guestfs-recipes.pod:200
5070 msgid "Make the script executable and run it on a named guest:"
5071 msgstr ""
5072
5073 #. type: verbatim
5074 #: ../examples/guestfs-recipes.pod:202
5075 #, no-wrap
5076 msgid ""
5077 " # product-name.sh RHEL60x64\n"
5078 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5079 "\n"
5080 msgstr ""
5081
5082 #. type: textblock
5083 #: ../examples/guestfs-recipes.pod:205
5084 msgid ""
5085 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5086 "C<xpath> command line tool or from your favourite programming language:"
5087 msgstr ""
5088
5089 #. type: verbatim
5090 #: ../examples/guestfs-recipes.pod:209
5091 #, no-wrap
5092 msgid ""
5093 " # virt-inspector RHEL60x64 > xml\n"
5094 " # xpath '//product_name' < xml\n"
5095 " Found 1 nodes:\n"
5096 " -- NODE --\n"
5097 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5098 "\n"
5099 msgstr ""
5100
5101 #. type: =head1
5102 #: ../examples/guestfs-recipes.pod:215
5103 msgid "Get the default boot kernel for a Linux VM"
5104 msgstr ""
5105
5106 #. type: textblock
5107 #: ../examples/guestfs-recipes.pod:217
5108 msgid ""
5109 "The link below contains a program to print the default boot kernel for a "
5110 "Linux VM."
5111 msgstr ""
5112
5113 #. type: textblock
5114 #: ../examples/guestfs-recipes.pod:220
5115 msgid ""
5116 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5117 "kernel-for-a-vm/#content"
5118 msgstr ""
5119
5120 #. type: textblock
5121 #: ../examples/guestfs-recipes.pod:222
5122 msgid ""
5123 "It uses Augeas, and the technique is generally applicable for many different "
5124 "tasks, such as:"
5125 msgstr ""
5126
5127 #. type: textblock
5128 #: ../examples/guestfs-recipes.pod:229
5129 msgid "listing the user accounts in the guest"
5130 msgstr ""
5131
5132 #. type: textblock
5133 #: ../examples/guestfs-recipes.pod:233
5134 msgid "what repositories is it configured to use"
5135 msgstr ""
5136
5137 #. type: textblock
5138 #: ../examples/guestfs-recipes.pod:237
5139 msgid "what NTP servers does it connect to"
5140 msgstr ""
5141
5142 #. type: textblock
5143 #: ../examples/guestfs-recipes.pod:241
5144 msgid "what were the boot messages last time it booted"
5145 msgstr ""
5146
5147 #. type: textblock
5148 #: ../examples/guestfs-recipes.pod:245
5149 msgid "listing who was logged in recently"
5150 msgstr ""
5151
5152 #. type: textblock
5153 #: ../examples/guestfs-recipes.pod:249
5154 msgid "http://augeas.net/"
5155 msgstr ""
5156
5157 #. type: =head1
5158 #: ../examples/guestfs-recipes.pod:251
5159 msgid "Install RPMs in a guest"
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../examples/guestfs-recipes.pod:253
5164 msgid ""
5165 "The link below contains a method to install RPMs in a guest.  In fact the "
5166 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5167 "installs them next time the guest is booted.  You could use this technique "
5168 "to install vital security updates in an offline guest."
5169 msgstr ""
5170
5171 #. type: textblock
5172 #: ../examples/guestfs-recipes.pod:259
5173 msgid ""
5174 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5175 msgstr ""
5176
5177 #. type: =head1
5178 #: ../examples/guestfs-recipes.pod:261
5179 msgid "List applications installed in a VM"
5180 msgstr ""
5181
5182 #. type: textblock
5183 #: ../examples/guestfs-recipes.pod:263
5184 msgid "Save the following to a file C<list-apps.sh>:"
5185 msgstr ""
5186
5187 #. type: verbatim
5188 #: ../examples/guestfs-recipes.pod:265
5189 #, no-wrap
5190 msgid ""
5191 " #!/bin/sh -\n"
5192 " set -e\n"
5193 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5194 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5195 " guestfish --remote inspect-list-applications \"$root\"\n"
5196 " guestfish --remote exit\n"
5197 "\n"
5198 msgstr ""
5199
5200 #. type: textblock
5201 #: ../examples/guestfs-recipes.pod:272
5202 msgid ""
5203 "Make the file executable and then you can run it on any named virtual "
5204 "machine:"
5205 msgstr ""
5206
5207 #. type: verbatim
5208 #: ../examples/guestfs-recipes.pod:275
5209 #, no-wrap
5210 msgid ""
5211 " # list-apps.sh WinGuest\n"
5212 " [0] = {\n"
5213 "   app_name: Mozilla Firefox (3.6.12)\n"
5214 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5215 "   app_epoch: 0\n"
5216 "   app_version: 3.6.12 (en-GB)\n"
5217 "   app_release:\n"
5218 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5219 "   app_trans_path:\n"
5220 "   app_publisher: Mozilla\n"
5221 "   app_url: http://www.mozilla.com/en-GB/\n"
5222 "   app_source_package:\n"
5223 "   app_summary:\n"
5224 "   app_description: Mozilla Firefox\n"
5225 " }\n"
5226 " [1] = {\n"
5227 "   app_name: VLC media player\n"
5228 "   app_display_name: VLC media player 1.1.5\n"
5229 "   app_epoch: 0\n"
5230 "   app_version: 1.1.5\n"
5231 "   app_release:\n"
5232 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5233 "   app_trans_path:\n"
5234 "   app_publisher: VideoLAN\n"
5235 "   app_url: http://www.videolan.org/\n"
5236 "   app_source_package:\n"
5237 "   app_summary:\n"
5238 "   app_description:\n"
5239 " }\n"
5240 "\n"
5241 msgstr ""
5242
5243 #. type: textblock
5244 #: ../examples/guestfs-recipes.pod:305
5245 msgid ""
5246 "If you want to run the script on disk images (instead of libvirt virtual "
5247 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5248 ">."
5249 msgstr ""
5250
5251 #. type: =head1
5252 #: ../examples/guestfs-recipes.pod:309
5253 msgid "List files and directories in a VM"
5254 msgstr ""
5255
5256 #. type: textblock
5257 #: ../examples/guestfs-recipes.pod:311
5258 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5259 msgstr ""
5260
5261 #. type: verbatim
5262 #: ../examples/guestfs-recipes.pod:313
5263 #, no-wrap
5264 msgid ""
5265 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5266 "\n"
5267 msgstr ""
5268
5269 #. type: =head1
5270 #: ../examples/guestfs-recipes.pod:315
5271 msgid "List services in a Windows VM"
5272 msgstr ""
5273
5274 #. type: textblock
5275 #: ../examples/guestfs-recipes.pod:317
5276 msgid ""
5277 "The link below contains a script that can be used to list out the services "
5278 "from a Windows VM, and whether those services run at boot time or are loaded "
5279 "on demand."
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../examples/guestfs-recipes.pod:321
5284 msgid ""
5285 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5286 "#content"
5287 msgstr ""
5288
5289 #. type: =head1
5290 #: ../examples/guestfs-recipes.pod:323
5291 msgid "Make a disk image sparse"
5292 msgstr ""
5293
5294 #. type: textblock
5295 #: ../examples/guestfs-recipes.pod:325
5296 msgid ""
5297 "The link below contains some guides for making a disk image sparse (or "
5298 "reintroducing sparseness)."
5299 msgstr ""
5300
5301 #. type: textblock
5302 #: ../examples/guestfs-recipes.pod:328
5303 msgid ""
5304 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5305 msgstr ""
5306
5307 #. type: =head1
5308 #: ../examples/guestfs-recipes.pod:330
5309 msgid "Monitor disk usage over time"
5310 msgstr ""
5311
5312 #. type: textblock
5313 #: ../examples/guestfs-recipes.pod:332
5314 msgid ""
5315 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5316 "The link below contains a guide."
5317 msgstr ""
5318
5319 #. type: textblock
5320 #: ../examples/guestfs-recipes.pod:335
5321 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5322 msgstr ""
5323
5324 #. type: =head1
5325 #: ../examples/guestfs-recipes.pod:337
5326 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5327 msgstr ""
5328
5329 #. type: textblock
5330 #: ../examples/guestfs-recipes.pod:339
5331 msgid ""
5332 "L<guestfish(1)> plus the tools described in the link below can be used to "
5333 "read out the Windows Event Log from any virtual machine running Windows "
5334 "Vista or a later version."
5335 msgstr ""
5336
5337 #. type: textblock
5338 #: ../examples/guestfs-recipes.pod:343
5339 msgid ""
5340 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5341 "guestfish/#content"
5342 msgstr ""
5343
5344 #. type: =head1
5345 #: ../examples/guestfs-recipes.pod:345
5346 msgid "Remove root password (Linux)"
5347 msgstr ""
5348
5349 #. type: textblock
5350 #: ../examples/guestfs-recipes.pod:347
5351 msgid ""
5352 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5353 "files.  One use is to remove the root password from a Linux guest:"
5354 msgstr ""
5355
5356 #. type: verbatim
5357 #: ../examples/guestfs-recipes.pod:350
5358 #, no-wrap
5359 msgid ""
5360 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5361 "\n"
5362 msgstr ""
5363
5364 #. type: =head1
5365 #: ../examples/guestfs-recipes.pod:352
5366 msgid "Remove Administrator password (Windows)"
5367 msgstr ""
5368
5369 #. type: textblock
5370 #: ../examples/guestfs-recipes.pod:354
5371 msgid ""
5372 "The link below contains one technique for removing the Administrator "
5373 "password from a Windows VM, or to be more precise, it gives you a command "
5374 "prompt the next time you log in which you can use to bypass any security:"
5375 msgstr ""
5376
5377 #. type: textblock
5378 #: ../examples/guestfs-recipes.pod:359
5379 msgid ""
5380 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5381 "administrator-password-with-guestfish/"
5382 msgstr ""
5383
5384 #. type: =head1
5385 #: ../examples/guestfs-recipes.pod:361
5386 msgid "Unpack a live CD"
5387 msgstr ""
5388
5389 #. type: textblock
5390 #: ../examples/guestfs-recipes.pod:363
5391 msgid ""
5392 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5393 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5394 "layers, as outlined in the guide below."
5395 msgstr ""
5396
5397 #. type: textblock
5398 #: ../examples/guestfs-recipes.pod:367
5399 msgid ""
5400 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5401 "cd/#content"
5402 msgstr ""
5403
5404 #. type: =head1
5405 #: ../examples/guestfs-recipes.pod:369
5406 msgid "Uploading and downloading files"
5407 msgstr ""
5408
5409 #. type: textblock
5410 #: ../examples/guestfs-recipes.pod:371
5411 msgid ""
5412 "The link below contains general tips on uploading (copying in)  and "
5413 "downloading (copying out) files from VMs."
5414 msgstr ""
5415
5416 #. type: textblock
5417 #: ../examples/guestfs-recipes.pod:374
5418 msgid ""
5419 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5420 msgstr ""
5421
5422 #. type: =head1
5423 #: ../examples/guestfs-recipes.pod:376
5424 msgid "Use libguestfs tools on VMware ESX guests"
5425 msgstr ""
5426
5427 #. type: textblock
5428 #: ../examples/guestfs-recipes.pod:378
5429 msgid ""
5430 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5431 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5432 msgstr ""
5433
5434 #. type: textblock
5435 #: ../examples/guestfs-recipes.pod:382
5436 msgid ""
5437 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5438 "guests/#content"
5439 msgstr ""
5440
5441 #. type: textblock
5442 #: ../examples/guestfs-recipes.pod:386
5443 msgid ""
5444 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5445 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5446 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5447 msgstr ""
5448
5449 #. type: textblock
5450 #: ../examples/guestfs-recipes.pod:403
5451 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5452 msgstr ""
5453
5454 #. type: =head2
5455 #: ../fish/guestfish-actions.pod:1
5456 msgid "add-cdrom"
5457 msgstr ""
5458
5459 #. type: verbatim
5460 #: ../fish/guestfish-actions.pod:3
5461 #, no-wrap
5462 msgid ""
5463 " add-cdrom filename\n"
5464 "\n"
5465 msgstr ""
5466
5467 #. type: textblock
5468 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5469 msgid "This function adds a virtual CD-ROM disk image to the guest."
5470 msgstr ""
5471
5472 #. type: textblock
5473 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5474 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5475 msgstr ""
5476
5477 #. type: textblock
5478 #: ../fish/guestfish-actions.pod:15
5479 msgid ""
5480 "This call checks for the existence of C<filename>.  This stops you from "
5481 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5482 "and C<http:> URLs.  To specify those, use the general L</config> call "
5483 "instead."
5484 msgstr ""
5485
5486 #. type: textblock
5487 #: ../fish/guestfish-actions.pod:22
5488 msgid ""
5489 "If you just want to add an ISO file (often you use this as an efficient way "
5490 "to transfer large files into the guest), then you should probably use L</add-"
5491 "drive-ro> instead."
5492 msgstr ""
5493
5494 #. type: textblock
5495 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
5496 #: ../fish/guestfish-actions.pod:177
5497 msgid ""
5498 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5499 "instead."
5500 msgstr ""
5501
5502 #. type: textblock
5503 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
5504 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
5505 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
5506 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468
5507 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
5508 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
5509 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
5510 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
5511 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
5512 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118
5513 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4771
5514 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5393
5515 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6719
5516 #: ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6816
5517 #: ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:7857
5518 #: ../src/guestfs-actions.pod:8040
5519 msgid ""
5520 "Deprecated functions will not be removed from the API, but the fact that "
5521 "they are deprecated indicates that there are problems with correct use of "
5522 "these functions."
5523 msgstr ""
5524
5525 #. type: =head2
5526 #: ../fish/guestfish-actions.pod:35
5527 msgid "add-domain"
5528 msgstr ""
5529
5530 #. type: =head2
5531 #: ../fish/guestfish-actions.pod:37
5532 msgid "domain"
5533 msgstr ""
5534
5535 #. type: verbatim
5536 #: ../fish/guestfish-actions.pod:39
5537 #, no-wrap
5538 msgid ""
5539 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
5540 "\n"
5541 msgstr ""
5542
5543 #. type: textblock
5544 #: ../fish/guestfish-actions.pod:41
5545 msgid ""
5546 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5547 "It works by connecting to libvirt, requesting the domain and domain XML from "
5548 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5549 msgstr ""
5550
5551 #. type: textblock
5552 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5553 msgid ""
5554 "The number of disks added is returned.  This operation is atomic: if an "
5555 "error is returned, then no disks are added."
5556 msgstr ""
5557
5558 #. type: textblock
5559 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5560 msgid ""
5561 "This function does some minimal checks to make sure the libvirt domain is "
5562 "not running (unless C<readonly> is true).  In a future version we will try "
5563 "to acquire the libvirt lock on each disk."
5564 msgstr ""
5565
5566 #. type: textblock
5567 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5568 msgid ""
5569 "Disks must be accessible locally.  This often means that adding disks from a "
5570 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5571 "unless those disks are accessible via the same device path locally too."
5572 msgstr ""
5573
5574 #. type: textblock
5575 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5576 msgid ""
5577 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5578 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5579 "libvirt URI (or one set through an environment variable, see the libvirt "
5580 "documentation for full details)."
5581 msgstr ""
5582
5583 #. type: textblock
5584 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5585 msgid ""
5586 "The optional C<live> flag controls whether this call will try to connect to "
5587 "a running virtual machine C<guestfsd> process if it sees a suitable "
5588 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5589 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5590 "DAEMONS> for more information."
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5595 msgid ""
5596 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5597 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5598 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5599 "as usual."
5600 msgstr ""
5601
5602 #. type: textblock
5603 #: ../fish/guestfish-actions.pod:76
5604 msgid ""
5605 "The other optional parameters are passed directly through to L</add-drive-"
5606 "opts>."
5607 msgstr ""
5608
5609 #. type: textblock
5610 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
5611 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
5612 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
5613 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
5614 #: ../fish/guestfish-actions.pod:3504
5615 msgid ""
5616 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
5617 msgstr ""
5618
5619 #. type: =head2
5620 #: ../fish/guestfish-actions.pod:81
5621 msgid "add-drive"
5622 msgstr ""
5623
5624 #. type: verbatim
5625 #: ../fish/guestfish-actions.pod:83
5626 #, no-wrap
5627 msgid ""
5628 " add-drive filename\n"
5629 "\n"
5630 msgstr ""
5631
5632 #. type: textblock
5633 #: ../fish/guestfish-actions.pod:85
5634 msgid ""
5635 "This function is the equivalent of calling L</add-drive-opts> with no "
5636 "optional parameters, so the disk is added writable, with the format being "
5637 "detected automatically."
5638 msgstr ""
5639
5640 #. type: textblock
5641 #: ../fish/guestfish-actions.pod:89
5642 msgid ""
5643 "Automatic detection of the format opens you up to a potential security hole "
5644 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5645 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5646 "you should think about replacing calls to this function with calls to L</add-"
5647 "drive-opts>, and specifying the format."
5648 msgstr ""
5649
5650 #. type: =head2
5651 #: ../fish/guestfish-actions.pod:96
5652 msgid "add-drive-opts"
5653 msgstr ""
5654
5655 #. type: =head2
5656 #: ../fish/guestfish-actions.pod:98
5657 msgid "add"
5658 msgstr ""
5659
5660 #. type: verbatim
5661 #: ../fish/guestfish-actions.pod:100
5662 #, no-wrap
5663 msgid ""
5664 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
5665 "\n"
5666 msgstr ""
5667
5668 #. type: textblock
5669 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
5670 msgid ""
5671 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
5672 "The first time you call this function, the disk appears as C</dev/sda>, the "
5673 "second time as C</dev/sdb>, and so on."
5674 msgstr ""
5675
5676 #. type: textblock
5677 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
5678 msgid ""
5679 "You don't necessarily need to be root when using libguestfs.  However you "
5680 "obviously do need sufficient permissions to access the filename for whatever "
5681 "operations you want to perform (ie. read access if you just want to read the "
5682 "image or write access if you want to modify the image)."
5683 msgstr ""
5684
5685 #. type: textblock
5686 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
5687 msgid "This call checks that C<filename> exists."
5688 msgstr ""
5689
5690 #. type: textblock
5691 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
5692 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4808
5693 msgid "The optional arguments are:"
5694 msgstr ""
5695
5696 #. type: =item
5697 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
5698 msgid "C<readonly>"
5699 msgstr ""
5700
5701 #. type: textblock
5702 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
5703 msgid ""
5704 "If true then the image is treated as read-only.  Writes are still allowed, "
5705 "but they are stored in a temporary snapshot overlay which is discarded at "
5706 "the end.  The disk that you add is not modified."
5707 msgstr ""
5708
5709 #. type: =item
5710 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
5711 msgid "C<format>"
5712 msgstr ""
5713
5714 #. type: textblock
5715 #: ../fish/guestfish-actions.pod:127
5716 msgid ""
5717 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
5718 "add-drive-ro>) then the format is automatically detected.  Possible formats "
5719 "include C<raw> and C<qcow2>."
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
5724 msgid ""
5725 "Automatic detection of the format opens you up to a potential security hole "
5726 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5727 "RHBZ#642934.  Specifying the format closes this security hole."
5728 msgstr ""
5729
5730 #. type: =item
5731 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
5732 msgid "C<iface>"
5733 msgstr ""
5734
5735 #. type: textblock
5736 #: ../fish/guestfish-actions.pod:138
5737 msgid ""
5738 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
5739 "add-drive-with-if> call (q.v.)"
5740 msgstr ""
5741
5742 #. type: =head2
5743 #: ../fish/guestfish-actions.pod:145
5744 msgid "add-drive-ro"
5745 msgstr ""
5746
5747 #. type: =head2
5748 #: ../fish/guestfish-actions.pod:147
5749 msgid "add-ro"
5750 msgstr ""
5751
5752 #. type: verbatim
5753 #: ../fish/guestfish-actions.pod:149
5754 #, no-wrap
5755 msgid ""
5756 " add-drive-ro filename\n"
5757 "\n"
5758 msgstr ""
5759
5760 #. type: textblock
5761 #: ../fish/guestfish-actions.pod:151
5762 msgid ""
5763 "This function is the equivalent of calling L</add-drive-opts> with the "
5764 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5765 "is added read-only, with the format being detected automatically."
5766 msgstr ""
5767
5768 #. type: =head2
5769 #: ../fish/guestfish-actions.pod:156
5770 msgid "add-drive-ro-with-if"
5771 msgstr ""
5772
5773 #. type: verbatim
5774 #: ../fish/guestfish-actions.pod:158
5775 #, no-wrap
5776 msgid ""
5777 " add-drive-ro-with-if filename iface\n"
5778 "\n"
5779 msgstr ""
5780
5781 #. type: textblock
5782 #: ../fish/guestfish-actions.pod:160
5783 msgid ""
5784 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5785 "interface emulation to use at run time."
5786 msgstr ""
5787
5788 #. type: =head2
5789 #: ../fish/guestfish-actions.pod:170
5790 msgid "add-drive-with-if"
5791 msgstr ""
5792
5793 #. type: verbatim
5794 #: ../fish/guestfish-actions.pod:172
5795 #, no-wrap
5796 msgid ""
5797 " add-drive-with-if filename iface\n"
5798 "\n"
5799 msgstr ""
5800
5801 #. type: textblock
5802 #: ../fish/guestfish-actions.pod:174
5803 msgid ""
5804 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5805 "interface emulation to use at run time."
5806 msgstr ""
5807
5808 #. type: =head2
5809 #: ../fish/guestfish-actions.pod:184
5810 msgid "aug-clear"
5811 msgstr ""
5812
5813 #. type: verbatim
5814 #: ../fish/guestfish-actions.pod:186
5815 #, no-wrap
5816 msgid ""
5817 " aug-clear augpath\n"
5818 "\n"
5819 msgstr ""
5820
5821 #. type: textblock
5822 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
5823 msgid ""
5824 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
5825 "L<augtool(1)> C<clear> command."
5826 msgstr ""
5827
5828 #. type: =head2
5829 #: ../fish/guestfish-actions.pod:191
5830 msgid "aug-close"
5831 msgstr ""
5832
5833 #. type: verbatim
5834 #: ../fish/guestfish-actions.pod:193
5835 #, no-wrap
5836 msgid ""
5837 " aug-close\n"
5838 "\n"
5839 msgstr ""
5840
5841 #. type: textblock
5842 #: ../fish/guestfish-actions.pod:195
5843 msgid ""
5844 "Close the current Augeas handle and free up any resources used by it.  After "
5845 "calling this, you have to call L</aug-init> again before you can use any "
5846 "other Augeas functions."
5847 msgstr ""
5848
5849 #. type: =head2
5850 #: ../fish/guestfish-actions.pod:200
5851 msgid "aug-defnode"
5852 msgstr ""
5853
5854 #. type: verbatim
5855 #: ../fish/guestfish-actions.pod:202
5856 #, no-wrap
5857 msgid ""
5858 " aug-defnode name expr val\n"
5859 "\n"
5860 msgstr ""
5861
5862 #. type: textblock
5863 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
5864 msgid ""
5865 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5866 msgstr ""
5867
5868 #. type: textblock
5869 #: ../fish/guestfish-actions.pod:207
5870 msgid ""
5871 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5872 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
5873 "containing that single node."
5874 msgstr ""
5875
5876 #. type: textblock
5877 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
5878 msgid ""
5879 "On success this returns a pair containing the number of nodes in the "
5880 "nodeset, and a boolean flag if a node was created."
5881 msgstr ""
5882
5883 #. type: =head2
5884 #: ../fish/guestfish-actions.pod:215
5885 msgid "aug-defvar"
5886 msgstr ""
5887
5888 #. type: verbatim
5889 #: ../fish/guestfish-actions.pod:217
5890 #, no-wrap
5891 msgid ""
5892 " aug-defvar name expr\n"
5893 "\n"
5894 msgstr ""
5895
5896 #. type: textblock
5897 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
5898 msgid ""
5899 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5900 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5901 msgstr ""
5902
5903 #. type: textblock
5904 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
5905 msgid ""
5906 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5907 "evaluates to something which is not a nodeset."
5908 msgstr ""
5909
5910 #. type: =head2
5911 #: ../fish/guestfish-actions.pod:226
5912 msgid "aug-get"
5913 msgstr ""
5914
5915 #. type: verbatim
5916 #: ../fish/guestfish-actions.pod:228
5917 #, no-wrap
5918 msgid ""
5919 " aug-get augpath\n"
5920 "\n"
5921 msgstr ""
5922
5923 #. type: textblock
5924 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
5925 msgid ""
5926 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5927 "node, the C<value> is returned."
5928 msgstr ""
5929
5930 #. type: =head2
5931 #: ../fish/guestfish-actions.pod:233
5932 msgid "aug-init"
5933 msgstr ""
5934
5935 #. type: verbatim
5936 #: ../fish/guestfish-actions.pod:235
5937 #, no-wrap
5938 msgid ""
5939 " aug-init root flags\n"
5940 "\n"
5941 msgstr ""
5942
5943 #. type: textblock
5944 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
5945 msgid ""
5946 "Create a new Augeas handle for editing configuration files.  If there was "
5947 "any previous Augeas handle associated with this guestfs session, then it is "
5948 "closed."
5949 msgstr ""
5950
5951 #. type: textblock
5952 #: ../fish/guestfish-actions.pod:241
5953 msgid "You must call this before using any other L</aug-*> commands."
5954 msgstr ""
5955
5956 #. type: textblock
5957 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
5958 msgid ""
5959 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5960 msgstr ""
5961
5962 #. type: textblock
5963 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5964 msgid ""
5965 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5966 "logical I<or> of the following integers:"
5967 msgstr ""
5968
5969 #. type: =item
5970 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5971 msgid "C<AUG_SAVE_BACKUP> = 1"
5972 msgstr ""
5973
5974 #. type: textblock
5975 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5976 msgid "Keep the original file with a C<.augsave> extension."
5977 msgstr ""
5978
5979 #. type: =item
5980 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5981 msgid "C<AUG_SAVE_NEWFILE> = 2"
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5986 msgid ""
5987 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5988 "original.  Overrides C<AUG_SAVE_BACKUP>."
5989 msgstr ""
5990
5991 #. type: =item
5992 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5993 msgid "C<AUG_TYPE_CHECK> = 4"
5994 msgstr ""
5995
5996 #. type: textblock
5997 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5998 msgid "Typecheck lenses."
5999 msgstr ""
6000
6001 #. type: textblock
6002 #: ../fish/guestfish-actions.pod:266
6003 msgid ""
6004 "This option is only useful when debugging Augeas lenses.  Use of this option "
6005 "may require additional memory for the libguestfs appliance.  You may need to "
6006 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6007 msgstr ""
6008
6009 #. type: =item
6010 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
6011 msgid "C<AUG_NO_STDINC> = 8"
6012 msgstr ""
6013
6014 #. type: textblock
6015 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
6016 msgid "Do not use standard load path for modules."
6017 msgstr ""
6018
6019 #. type: =item
6020 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
6021 msgid "C<AUG_SAVE_NOOP> = 16"
6022 msgstr ""
6023
6024 #. type: textblock
6025 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
6026 msgid "Make save a no-op, just record what would have been changed."
6027 msgstr ""
6028
6029 #. type: =item
6030 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
6031 msgid "C<AUG_NO_LOAD> = 32"
6032 msgstr ""
6033
6034 #. type: textblock
6035 #: ../fish/guestfish-actions.pod:281
6036 msgid "Do not load the tree in L</aug-init>."
6037 msgstr ""
6038
6039 #. type: textblock
6040 #: ../fish/guestfish-actions.pod:285
6041 msgid "To close the handle, you can call L</aug-close>."
6042 msgstr ""
6043
6044 #. type: textblock
6045 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
6046 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6047 msgstr ""
6048
6049 #. type: =head2
6050 #: ../fish/guestfish-actions.pod:289
6051 msgid "aug-insert"
6052 msgstr ""
6053
6054 #. type: verbatim
6055 #: ../fish/guestfish-actions.pod:291
6056 #, no-wrap
6057 msgid ""
6058 " aug-insert augpath label true|false\n"
6059 "\n"
6060 msgstr ""
6061
6062 #. type: textblock
6063 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
6064 msgid ""
6065 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6066 "or after C<path> (depending on the boolean flag C<before>)."
6067 msgstr ""
6068
6069 #. type: textblock
6070 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
6071 msgid ""
6072 "C<path> must match exactly one existing node in the tree, and C<label> must "
6073 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6074 msgstr ""
6075
6076 #. type: =head2
6077 #: ../fish/guestfish-actions.pod:301
6078 msgid "aug-load"
6079 msgstr ""
6080
6081 #. type: verbatim
6082 #: ../fish/guestfish-actions.pod:303
6083 #, no-wrap
6084 msgid ""
6085 " aug-load\n"
6086 "\n"
6087 msgstr ""
6088
6089 #. type: textblock
6090 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
6091 msgid "Load files into the tree."
6092 msgstr ""
6093
6094 #. type: textblock
6095 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
6096 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6097 msgstr ""
6098
6099 #. type: =head2
6100 #: ../fish/guestfish-actions.pod:310
6101 msgid "aug-ls"
6102 msgstr ""
6103
6104 #. type: verbatim
6105 #: ../fish/guestfish-actions.pod:312
6106 #, no-wrap
6107 msgid ""
6108 " aug-ls augpath\n"
6109 "\n"
6110 msgstr ""
6111
6112 #. type: textblock
6113 #: ../fish/guestfish-actions.pod:314
6114 msgid ""
6115 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6116 "resulting nodes into alphabetical order."
6117 msgstr ""
6118
6119 #. type: =head2
6120 #: ../fish/guestfish-actions.pod:317
6121 msgid "aug-match"
6122 msgstr ""
6123
6124 #. type: verbatim
6125 #: ../fish/guestfish-actions.pod:319
6126 #, no-wrap
6127 msgid ""
6128 " aug-match augpath\n"
6129 "\n"
6130 msgstr ""
6131
6132 #. type: textblock
6133 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
6134 msgid ""
6135 "Returns a list of paths which match the path expression C<path>.  The "
6136 "returned paths are sufficiently qualified so that they match exactly one "
6137 "node in the current tree."
6138 msgstr ""
6139
6140 #. type: =head2
6141 #: ../fish/guestfish-actions.pod:325
6142 msgid "aug-mv"
6143 msgstr ""
6144
6145 #. type: verbatim
6146 #: ../fish/guestfish-actions.pod:327
6147 #, no-wrap
6148 msgid ""
6149 " aug-mv src dest\n"
6150 "\n"
6151 msgstr ""
6152
6153 #. type: textblock
6154 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
6155 msgid ""
6156 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6157 "C<dest> is overwritten if it exists."
6158 msgstr ""
6159
6160 #. type: =head2
6161 #: ../fish/guestfish-actions.pod:332
6162 msgid "aug-rm"
6163 msgstr ""
6164
6165 #. type: verbatim
6166 #: ../fish/guestfish-actions.pod:334
6167 #, no-wrap
6168 msgid ""
6169 " aug-rm augpath\n"
6170 "\n"
6171 msgstr ""
6172
6173 #. type: textblock
6174 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
6175 msgid "Remove C<path> and all of its children."
6176 msgstr ""
6177
6178 #. type: textblock
6179 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
6180 msgid "On success this returns the number of entries which were removed."
6181 msgstr ""
6182
6183 #. type: =head2
6184 #: ../fish/guestfish-actions.pod:340
6185 msgid "aug-save"
6186 msgstr ""
6187
6188 #. type: verbatim
6189 #: ../fish/guestfish-actions.pod:342
6190 #, no-wrap
6191 msgid ""
6192 " aug-save\n"
6193 "\n"
6194 msgstr ""
6195
6196 #. type: textblock
6197 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
6198 msgid "This writes all pending changes to disk."
6199 msgstr ""
6200
6201 #. type: textblock
6202 #: ../fish/guestfish-actions.pod:346
6203 msgid ""
6204 "The flags which were passed to L</aug-init> affect exactly how files are "
6205 "saved."
6206 msgstr ""
6207
6208 #. type: =head2
6209 #: ../fish/guestfish-actions.pod:349
6210 msgid "aug-set"
6211 msgstr ""
6212
6213 #. type: verbatim
6214 #: ../fish/guestfish-actions.pod:351
6215 #, no-wrap
6216 msgid ""
6217 " aug-set augpath val\n"
6218 "\n"
6219 msgstr ""
6220
6221 #. type: textblock
6222 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
6223 msgid "Set the value associated with C<path> to C<val>."
6224 msgstr ""
6225
6226 #. type: textblock
6227 #: ../fish/guestfish-actions.pod:355
6228 msgid ""
6229 "In the Augeas API, it is possible to clear a node by setting the value to "
6230 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6231 "this call.  Instead you must use the L</aug-clear> call."
6232 msgstr ""
6233
6234 #. type: =head2
6235 #: ../fish/guestfish-actions.pod:360
6236 msgid "available"
6237 msgstr ""
6238
6239 #. type: verbatim
6240 #: ../fish/guestfish-actions.pod:362
6241 #, no-wrap
6242 msgid ""
6243 " available 'groups ...'\n"
6244 "\n"
6245 msgstr ""
6246
6247 #. type: textblock
6248 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
6249 msgid ""
6250 "This command is used to check the availability of some groups of "
6251 "functionality in the appliance, which not all builds of the libguestfs "
6252 "appliance will be able to provide."
6253 msgstr ""
6254
6255 #. type: textblock
6256 #: ../fish/guestfish-actions.pod:368
6257 msgid ""
6258 "The libguestfs groups, and the functions that those groups correspond to, "
6259 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6260 "runtime by calling L</available-all-groups>."
6261 msgstr ""
6262
6263 #. type: textblock
6264 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
6265 msgid ""
6266 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6267 "\"]> would check for the availability of the Linux inotify functions and "
6268 "Augeas (configuration file editing) functions."
6269 msgstr ""
6270
6271 #. type: textblock
6272 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
6273 msgid "The command returns no error if I<all> requested groups are available."
6274 msgstr ""
6275
6276 #. type: textblock
6277 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
6278 msgid ""
6279 "It fails with an error if one or more of the requested groups is unavailable "
6280 "in the appliance."
6281 msgstr ""
6282
6283 #. type: textblock
6284 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
6285 msgid ""
6286 "If an unknown group name is included in the list of groups then an error is "
6287 "always returned."
6288 msgstr ""
6289
6290 #. type: textblock
6291 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
6292 msgid "I<Notes:>"
6293 msgstr ""
6294
6295 #. type: textblock
6296 #: ../fish/guestfish-actions.pod:392
6297 msgid "You must call L</launch> before calling this function."
6298 msgstr ""
6299
6300 #. type: textblock
6301 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
6302 msgid ""
6303 "The reason is because we don't know what groups are supported by the "
6304 "appliance/daemon until it is running and can be queried."
6305 msgstr ""
6306
6307 #. type: textblock
6308 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
6309 msgid ""
6310 "If a group of functions is available, this does not necessarily mean that "
6311 "they will work.  You still have to check for errors when calling individual "
6312 "API functions even if they are available."
6313 msgstr ""
6314
6315 #. type: textblock
6316 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
6317 msgid ""
6318 "It is usually the job of distro packagers to build complete functionality "
6319 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6320 "with all requirements satisfied, will support everything."
6321 msgstr ""
6322
6323 #. type: textblock
6324 #: ../fish/guestfish-actions.pod:414
6325 msgid ""
6326 "This call was added in version C<1.0.80>.  In previous versions of "
6327 "libguestfs all you could do would be to speculatively execute a command to "
6328 "find out if the daemon implemented it.  See also L</version>."
6329 msgstr ""
6330
6331 #. type: =head2
6332 #: ../fish/guestfish-actions.pod:421
6333 msgid "available-all-groups"
6334 msgstr ""
6335
6336 #. type: verbatim
6337 #: ../fish/guestfish-actions.pod:423
6338 #, no-wrap
6339 msgid ""
6340 " available-all-groups\n"
6341 "\n"
6342 msgstr ""
6343
6344 #. type: textblock
6345 #: ../fish/guestfish-actions.pod:425
6346 msgid ""
6347 "This command returns a list of all optional groups that this daemon knows "
6348 "about.  Note this returns both supported and unsupported groups.  To find "
6349 "out which ones the daemon can actually support you have to call L</"
6350 "available> on each member of the returned list."
6351 msgstr ""
6352
6353 #. type: textblock
6354 #: ../fish/guestfish-actions.pod:431
6355 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6356 msgstr ""
6357
6358 #. type: =head2
6359 #: ../fish/guestfish-actions.pod:433
6360 msgid "base64-in"
6361 msgstr ""
6362
6363 #. type: verbatim
6364 #: ../fish/guestfish-actions.pod:435
6365 #, no-wrap
6366 msgid ""
6367 " base64-in (base64file|-) filename\n"
6368 "\n"
6369 msgstr ""
6370
6371 #. type: textblock
6372 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
6373 msgid ""
6374 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6375 msgstr ""
6376
6377 #. type: textblock
6378 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
6379 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
6380 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
6381 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
6382 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744
6383 #: ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766
6384 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827
6385 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
6386 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6387 msgstr ""
6388
6389 #. type: =head2
6390 #: ../fish/guestfish-actions.pod:442
6391 msgid "base64-out"
6392 msgstr ""
6393
6394 #. type: verbatim
6395 #: ../fish/guestfish-actions.pod:444
6396 #, no-wrap
6397 msgid ""
6398 " base64-out filename (base64file|-)\n"
6399 "\n"
6400 msgstr ""
6401
6402 #. type: textblock
6403 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
6404 msgid ""
6405 "This command downloads the contents of C<filename>, writing it out to local "
6406 "file C<base64file> encoded as base64."
6407 msgstr ""
6408
6409 #. type: =head2
6410 #: ../fish/guestfish-actions.pod:451
6411 msgid "blockdev-flushbufs"
6412 msgstr ""
6413
6414 #. type: verbatim
6415 #: ../fish/guestfish-actions.pod:453
6416 #, no-wrap
6417 msgid ""
6418 " blockdev-flushbufs device\n"
6419 "\n"
6420 msgstr ""
6421
6422 #. type: textblock
6423 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
6424 msgid ""
6425 "This tells the kernel to flush internal buffers associated with C<device>."
6426 msgstr ""
6427
6428 #. type: textblock
6429 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
6430 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
6431 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
6432 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
6433 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
6434 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
6435 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
6436 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
6437 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
6438 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
6439 msgid "This uses the L<blockdev(8)> command."
6440 msgstr ""
6441
6442 #. type: =head2
6443 #: ../fish/guestfish-actions.pod:460
6444 msgid "blockdev-getbsz"
6445 msgstr ""
6446
6447 #. type: verbatim
6448 #: ../fish/guestfish-actions.pod:462
6449 #, no-wrap
6450 msgid ""
6451 " blockdev-getbsz device\n"
6452 "\n"
6453 msgstr ""
6454
6455 #. type: textblock
6456 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
6457 msgid "This returns the block size of a device."
6458 msgstr ""
6459
6460 #. type: textblock
6461 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
6462 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
6463 msgid ""
6464 "(Note this is different from both I<size in blocks> and I<filesystem block "
6465 "size>)."
6466 msgstr ""
6467
6468 #. type: =head2
6469 #: ../fish/guestfish-actions.pod:471
6470 msgid "blockdev-getro"
6471 msgstr ""
6472
6473 #. type: verbatim
6474 #: ../fish/guestfish-actions.pod:473
6475 #, no-wrap
6476 msgid ""
6477 " blockdev-getro device\n"
6478 "\n"
6479 msgstr ""
6480
6481 #. type: textblock
6482 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
6483 msgid ""
6484 "Returns a boolean indicating if the block device is read-only (true if read-"
6485 "only, false if not)."
6486 msgstr ""
6487
6488 #. type: =head2
6489 #: ../fish/guestfish-actions.pod:480
6490 msgid "blockdev-getsize64"
6491 msgstr ""
6492
6493 #. type: verbatim
6494 #: ../fish/guestfish-actions.pod:482
6495 #, no-wrap
6496 msgid ""
6497 " blockdev-getsize64 device\n"
6498 "\n"
6499 msgstr ""
6500
6501 #. type: textblock
6502 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
6503 msgid "This returns the size of the device in bytes."
6504 msgstr ""
6505
6506 #. type: textblock
6507 #: ../fish/guestfish-actions.pod:486
6508 msgid "See also L</blockdev-getsz>."
6509 msgstr ""
6510
6511 #. type: =head2
6512 #: ../fish/guestfish-actions.pod:490
6513 msgid "blockdev-getss"
6514 msgstr ""
6515
6516 #. type: verbatim
6517 #: ../fish/guestfish-actions.pod:492
6518 #, no-wrap
6519 msgid ""
6520 " blockdev-getss device\n"
6521 "\n"
6522 msgstr ""
6523
6524 #. type: textblock
6525 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
6526 msgid ""
6527 "This returns the size of sectors on a block device.  Usually 512, but can be "
6528 "larger for modern devices."
6529 msgstr ""
6530
6531 #. type: textblock
6532 #: ../fish/guestfish-actions.pod:497
6533 msgid ""
6534 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6535 msgstr ""
6536
6537 #. type: =head2
6538 #: ../fish/guestfish-actions.pod:502
6539 msgid "blockdev-getsz"
6540 msgstr ""
6541
6542 #. type: verbatim
6543 #: ../fish/guestfish-actions.pod:504
6544 #, no-wrap
6545 msgid ""
6546 " blockdev-getsz device\n"
6547 "\n"
6548 msgstr ""
6549
6550 #. type: textblock
6551 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
6552 msgid ""
6553 "This returns the size of the device in units of 512-byte sectors (even if "
6554 "the sectorsize isn't 512 bytes ... weird)."
6555 msgstr ""
6556
6557 #. type: textblock
6558 #: ../fish/guestfish-actions.pod:509
6559 msgid ""
6560 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6561 "blockdev-getsize64> for the more useful I<size in bytes>."
6562 msgstr ""
6563
6564 #. type: =head2
6565 #: ../fish/guestfish-actions.pod:515
6566 msgid "blockdev-rereadpt"
6567 msgstr ""
6568
6569 #. type: verbatim
6570 #: ../fish/guestfish-actions.pod:517
6571 #, no-wrap
6572 msgid ""
6573 " blockdev-rereadpt device\n"
6574 "\n"
6575 msgstr ""
6576
6577 #. type: textblock
6578 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
6579 msgid "Reread the partition table on C<device>."
6580 msgstr ""
6581
6582 #. type: =head2
6583 #: ../fish/guestfish-actions.pod:523
6584 msgid "blockdev-setbsz"
6585 msgstr ""
6586
6587 #. type: verbatim
6588 #: ../fish/guestfish-actions.pod:525
6589 #, no-wrap
6590 msgid ""
6591 " blockdev-setbsz device blocksize\n"
6592 "\n"
6593 msgstr ""
6594
6595 #. type: textblock
6596 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
6597 msgid "This sets the block size of a device."
6598 msgstr ""
6599
6600 #. type: =head2
6601 #: ../fish/guestfish-actions.pod:534
6602 msgid "blockdev-setro"
6603 msgstr ""
6604
6605 #. type: verbatim
6606 #: ../fish/guestfish-actions.pod:536
6607 #, no-wrap
6608 msgid ""
6609 " blockdev-setro device\n"
6610 "\n"
6611 msgstr ""
6612
6613 #. type: textblock
6614 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
6615 msgid "Sets the block device named C<device> to read-only."
6616 msgstr ""
6617
6618 #. type: =head2
6619 #: ../fish/guestfish-actions.pod:542
6620 msgid "blockdev-setrw"
6621 msgstr ""
6622
6623 #. type: verbatim
6624 #: ../fish/guestfish-actions.pod:544
6625 #, no-wrap
6626 msgid ""
6627 " blockdev-setrw device\n"
6628 "\n"
6629 msgstr ""
6630
6631 #. type: textblock
6632 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
6633 msgid "Sets the block device named C<device> to read-write."
6634 msgstr ""
6635
6636 #. type: =head2
6637 #: ../fish/guestfish-actions.pod:550
6638 msgid "btrfs-filesystem-resize"
6639 msgstr ""
6640
6641 #. type: verbatim
6642 #: ../fish/guestfish-actions.pod:552
6643 #, no-wrap
6644 msgid ""
6645 " btrfs-filesystem-resize mountpoint [size:..]\n"
6646 "\n"
6647 msgstr ""
6648
6649 #. type: textblock
6650 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
6651 msgid "This command resizes a btrfs filesystem."
6652 msgstr ""
6653
6654 #. type: textblock
6655 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
6656 msgid ""
6657 "Note that unlike other resize calls, the filesystem has to be mounted and "
6658 "the parameter is the mountpoint not the device (this is a requirement of "
6659 "btrfs itself)."
6660 msgstr ""
6661
6662 #. type: textblock
6663 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479
6664 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5332
6665 msgid "The optional parameters are:"
6666 msgstr ""
6667
6668 #. type: =item
6669 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483
6670 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5336
6671 msgid "C<size>"
6672 msgstr ""
6673
6674 #. type: textblock
6675 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
6676 msgid ""
6677 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
6678 "resized to the maximum size."
6679 msgstr ""
6680
6681 #. type: textblock
6682 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
6683 msgid "See also L<btrfs(8)>."
6684 msgstr ""
6685
6686 #. type: =head2
6687 #: ../fish/guestfish-actions.pod:575
6688 msgid "case-sensitive-path"
6689 msgstr ""
6690
6691 #. type: verbatim
6692 #: ../fish/guestfish-actions.pod:577
6693 #, no-wrap
6694 msgid ""
6695 " case-sensitive-path path\n"
6696 "\n"
6697 msgstr ""
6698
6699 #. type: textblock
6700 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
6701 msgid ""
6702 "This can be used to resolve case insensitive paths on a filesystem which is "
6703 "case sensitive.  The use case is to resolve paths which you have read from "
6704 "Windows configuration files or the Windows Registry, to the true path."
6705 msgstr ""
6706
6707 #. type: textblock
6708 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
6709 msgid ""
6710 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6711 "(and probably others), which is that although the underlying filesystem is "
6712 "case-insensitive, the driver exports the filesystem to Linux as case-"
6713 "sensitive."
6714 msgstr ""
6715
6716 #. type: textblock
6717 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
6718 msgid ""
6719 "One consequence of this is that special directories such as C<c:\\windows> "
6720 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6721 "precise details of how they were created.  In Windows itself this would not "
6722 "be a problem."
6723 msgstr ""
6724
6725 #. type: textblock
6726 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
6727 msgid ""
6728 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
6729 "#posixfilenames1>"
6730 msgstr ""
6731
6732 #. type: textblock
6733 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
6734 msgid ""
6735 "This function resolves the true case of each element in the path and returns "
6736 "the case-sensitive path."
6737 msgstr ""
6738
6739 #. type: textblock
6740 #: ../fish/guestfish-actions.pod:601
6741 msgid ""
6742 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
6743 "WINDOWS/system32\"> (the exact return value would depend on details of how "
6744 "the directories were originally created under Windows)."
6745 msgstr ""
6746
6747 #. type: textblock
6748 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
6749 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6750 msgstr ""
6751
6752 #. type: textblock
6753 #: ../fish/guestfish-actions.pod:609
6754 msgid "See also L</realpath>."
6755 msgstr ""
6756
6757 #. type: =head2
6758 #: ../fish/guestfish-actions.pod:611
6759 msgid "cat"
6760 msgstr ""
6761
6762 #. type: verbatim
6763 #: ../fish/guestfish-actions.pod:613
6764 #, no-wrap
6765 msgid ""
6766 " cat path\n"
6767 "\n"
6768 msgstr ""
6769
6770 #. type: textblock
6771 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899
6772 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5975
6773 msgid "Return the contents of the file named C<path>."
6774 msgstr ""
6775
6776 #. type: textblock
6777 #: ../fish/guestfish-actions.pod:617
6778 msgid ""
6779 "Note that this function cannot correctly handle binary files (specifically, "
6780 "files containing C<\\0> character which is treated as end of string).  For "
6781 "those you need to use the L</read-file> or L</download> functions which have "
6782 "a more complex interface."
6783 msgstr ""
6784
6785 #. type: textblock
6786 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
6787 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
6788 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
6789 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
6790 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
6791 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
6792 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
6793 #: ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784
6794 #: ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877
6795 #: ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573
6796 #: ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704
6797 #: ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125
6798 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155
6799 #: ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182
6800 #: ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249
6801 #: ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288
6802 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
6803 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554
6804 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676
6805 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941
6806 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442
6807 #: ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531
6808 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577
6809 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783
6810 #: ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:5940
6811 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6931
6812 #: ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7132
6813 #: ../src/guestfs-actions.pod:7156 ../src/guestfs-actions.pod:7821
6814 #: ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874
6815 #: ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7912
6816 #: ../src/guestfs-actions.pod:8006 ../src/guestfs-actions.pod:8025
6817 #: ../src/guestfs-actions.pod:8071 ../src/guestfs-actions.pod:8090
6818 msgid ""
6819 "Because of the message protocol, there is a transfer limit of somewhere "
6820 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6821 msgstr ""
6822
6823 #. type: =head2
6824 #: ../fish/guestfish-actions.pod:625
6825 msgid "checksum"
6826 msgstr ""
6827
6828 #. type: verbatim
6829 #: ../fish/guestfish-actions.pod:627
6830 #, no-wrap
6831 msgid ""
6832 " checksum csumtype path\n"
6833 "\n"
6834 msgstr ""
6835
6836 #. type: textblock
6837 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6838 msgid ""
6839 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6840 msgstr ""
6841
6842 #. type: textblock
6843 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6844 msgid ""
6845 "The type of checksum to compute is given by the C<csumtype> parameter which "
6846 "must have one of the following values:"
6847 msgstr ""
6848
6849 #. type: =item
6850 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6851 msgid "C<crc>"
6852 msgstr ""
6853
6854 #. type: textblock
6855 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6856 msgid ""
6857 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6858 "C<cksum> command."
6859 msgstr ""
6860
6861 #. type: =item
6862 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6863 msgid "C<md5>"
6864 msgstr ""
6865
6866 #. type: textblock
6867 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6868 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6869 msgstr ""
6870
6871 #. type: =item
6872 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6873 msgid "C<sha1>"
6874 msgstr ""
6875
6876 #. type: textblock
6877 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6878 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6879 msgstr ""
6880
6881 #. type: =item
6882 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6883 msgid "C<sha224>"
6884 msgstr ""
6885
6886 #. type: textblock
6887 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6888 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6889 msgstr ""
6890
6891 #. type: =item
6892 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6893 msgid "C<sha256>"
6894 msgstr ""
6895
6896 #. type: textblock
6897 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6898 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6899 msgstr ""
6900
6901 #. type: =item
6902 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6903 msgid "C<sha384>"
6904 msgstr ""
6905
6906 #. type: textblock
6907 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6908 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6909 msgstr ""
6910
6911 #. type: =item
6912 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6913 msgid "C<sha512>"
6914 msgstr ""
6915
6916 #. type: textblock
6917 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6918 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6919 msgstr ""
6920
6921 #. type: textblock
6922 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6923 msgid "The checksum is returned as a printable string."
6924 msgstr ""
6925
6926 #. type: textblock
6927 #: ../fish/guestfish-actions.pod:670
6928 msgid "To get the checksum for a device, use L</checksum-device>."
6929 msgstr ""
6930
6931 #. type: textblock
6932 #: ../fish/guestfish-actions.pod:672
6933 msgid "To get the checksums for many files, use L</checksums-out>."
6934 msgstr ""
6935
6936 #. type: =head2
6937 #: ../fish/guestfish-actions.pod:674
6938 msgid "checksum-device"
6939 msgstr ""
6940
6941 #. type: verbatim
6942 #: ../fish/guestfish-actions.pod:676
6943 #, no-wrap
6944 msgid ""
6945 " checksum-device csumtype device\n"
6946 "\n"
6947 msgstr ""
6948
6949 #. type: textblock
6950 #: ../fish/guestfish-actions.pod:678
6951 msgid ""
6952 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6953 "device named C<device>.  For the types of checksums supported see the L</"
6954 "checksum> command."
6955 msgstr ""
6956
6957 #. type: =head2
6958 #: ../fish/guestfish-actions.pod:682
6959 msgid "checksums-out"
6960 msgstr ""
6961
6962 #. type: verbatim
6963 #: ../fish/guestfish-actions.pod:684
6964 #, no-wrap
6965 msgid ""
6966 " checksums-out csumtype directory (sumsfile|-)\n"
6967 "\n"
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6972 msgid ""
6973 "This command computes the checksums of all regular files in C<directory> and "
6974 "then emits a list of those checksums to the local output file C<sumsfile>."
6975 msgstr ""
6976
6977 #. type: textblock
6978 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6979 msgid ""
6980 "This can be used for verifying the integrity of a virtual machine.  However "
6981 "to be properly secure you should pay attention to the output of the checksum "
6982 "command (it uses the ones from GNU coreutils).  In particular when the "
6983 "filename is not printable, coreutils uses a special backslash syntax.  For "
6984 "more information, see the GNU coreutils info file."
6985 msgstr ""
6986
6987 #. type: =head2
6988 #: ../fish/guestfish-actions.pod:700
6989 msgid "chmod"
6990 msgstr ""
6991
6992 #. type: verbatim
6993 #: ../fish/guestfish-actions.pod:702
6994 #, no-wrap
6995 msgid ""
6996 " chmod mode path\n"
6997 "\n"
6998 msgstr ""
6999
7000 #. type: textblock
7001 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
7002 msgid ""
7003 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7004 "supported."
7005 msgstr ""
7006
7007 #. type: textblock
7008 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
7009 msgid ""
7010 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7011 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7012 "C<700>."
7013 msgstr ""
7014
7015 #. type: textblock
7016 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
7017 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
7018 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
7019 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4948
7020 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4986
7021 msgid "The mode actually set is affected by the umask."
7022 msgstr ""
7023
7024 #. type: =head2
7025 #: ../fish/guestfish-actions.pod:713
7026 msgid "chown"
7027 msgstr ""
7028
7029 #. type: verbatim
7030 #: ../fish/guestfish-actions.pod:715
7031 #, no-wrap
7032 msgid ""
7033 " chown owner group path\n"
7034 "\n"
7035 msgstr ""
7036
7037 #. type: textblock
7038 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
7039 msgid "Change the file owner to C<owner> and group to C<group>."
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
7044 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3810
7045 msgid ""
7046 "Only numeric uid and gid are supported.  If you want to use names, you will "
7047 "need to locate and parse the password file yourself (Augeas support makes "
7048 "this relatively easy)."
7049 msgstr ""
7050
7051 #. type: =head2
7052 #: ../fish/guestfish-actions.pod:723
7053 msgid "command"
7054 msgstr ""
7055
7056 #. type: verbatim
7057 #: ../fish/guestfish-actions.pod:725
7058 #, no-wrap
7059 msgid ""
7060 " command 'arguments ...'\n"
7061 "\n"
7062 msgstr ""
7063
7064 #. type: textblock
7065 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
7066 msgid ""
7067 "This call runs a command from the guest filesystem.  The filesystem must be "
7068 "mounted, and must contain a compatible operating system (ie. something "
7069 "Linux, with the same or compatible processor architecture)."
7070 msgstr ""
7071
7072 #. type: textblock
7073 #: ../fish/guestfish-actions.pod:732
7074 msgid ""
7075 "The single parameter is an argv-style list of arguments.  The first element "
7076 "is the name of the program to run.  Subsequent elements are parameters.  The "
7077 "list must be non-empty (ie. must contain a program name).  Note that the "
7078 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7079 msgstr ""
7080
7081 #. type: textblock
7082 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
7083 msgid "The return value is anything printed to I<stdout> by the command."
7084 msgstr ""
7085
7086 #. type: textblock
7087 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
7088 msgid ""
7089 "If the command returns a non-zero exit status, then this function returns an "
7090 "error message.  The error message string is the content of I<stderr> from "
7091 "the command."
7092 msgstr ""
7093
7094 #. type: textblock
7095 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
7096 msgid ""
7097 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7098 "bin>.  If you require a program from another location, you should provide "
7099 "the full path in the first parameter."
7100 msgstr ""
7101
7102 #. type: textblock
7103 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
7104 msgid ""
7105 "Shared libraries and data files required by the program must be available on "
7106 "filesystems which are mounted in the correct places.  It is the caller's "
7107 "responsibility to ensure all filesystems that are needed are mounted at the "
7108 "right locations."
7109 msgstr ""
7110
7111 #. type: =head2
7112 #: ../fish/guestfish-actions.pod:760
7113 msgid "command-lines"
7114 msgstr ""
7115
7116 #. type: verbatim
7117 #: ../fish/guestfish-actions.pod:762
7118 #, no-wrap
7119 msgid ""
7120 " command-lines 'arguments ...'\n"
7121 "\n"
7122 msgstr ""
7123
7124 #. type: textblock
7125 #: ../fish/guestfish-actions.pod:764
7126 msgid ""
7127 "This is the same as L</command>, but splits the result into a list of lines."
7128 msgstr ""
7129
7130 #. type: textblock
7131 #: ../fish/guestfish-actions.pod:767
7132 msgid "See also: L</sh-lines>"
7133 msgstr ""
7134
7135 #. type: =head2
7136 #: ../fish/guestfish-actions.pod:772
7137 msgid "compress-device-out"
7138 msgstr ""
7139
7140 #. type: verbatim
7141 #: ../fish/guestfish-actions.pod:774
7142 #, no-wrap
7143 msgid ""
7144 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7145 "\n"
7146 msgstr ""
7147
7148 #. type: textblock
7149 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
7150 msgid ""
7151 "This command compresses C<device> and writes it out to the local file "
7152 "C<zdevice>."
7153 msgstr ""
7154
7155 #. type: textblock
7156 #: ../fish/guestfish-actions.pod:779
7157 msgid ""
7158 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7159 "compress-out>."
7160 msgstr ""
7161
7162 #. type: =head2
7163 #: ../fish/guestfish-actions.pod:786
7164 msgid "compress-out"
7165 msgstr ""
7166
7167 #. type: verbatim
7168 #: ../fish/guestfish-actions.pod:788
7169 #, no-wrap
7170 msgid ""
7171 " compress-out ctype file (zfile|-) [level:..]\n"
7172 "\n"
7173 msgstr ""
7174
7175 #. type: textblock
7176 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
7177 msgid ""
7178 "This command compresses C<file> and writes it out to the local file C<zfile>."
7179 msgstr ""
7180
7181 #. type: textblock
7182 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
7183 msgid ""
7184 "The compression program used is controlled by the C<ctype> parameter.  "
7185 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7186 "Some compression types may not be supported by particular builds of "
7187 "libguestfs, in which case you will get an error containing the substring "
7188 "\"not supported\"."
7189 msgstr ""
7190
7191 #. type: textblock
7192 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
7193 msgid ""
7194 "The optional C<level> parameter controls compression level.  The meaning and "
7195 "default for this parameter depends on the compression program being used."
7196 msgstr ""
7197
7198 #. type: =head2
7199 #: ../fish/guestfish-actions.pod:807
7200 msgid "config"
7201 msgstr ""
7202
7203 #. type: verbatim
7204 #: ../fish/guestfish-actions.pod:809
7205 #, no-wrap
7206 msgid ""
7207 " config qemuparam qemuvalue\n"
7208 "\n"
7209 msgstr ""
7210
7211 #. type: textblock
7212 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
7213 msgid ""
7214 "This can be used to add arbitrary qemu command line parameters of the form "
7215 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7216 "setting some parameters which would interfere with parameters that we use."
7217 msgstr ""
7218
7219 #. type: textblock
7220 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
7221 msgid "The first character of C<param> string must be a C<-> (dash)."
7222 msgstr ""
7223
7224 #. type: textblock
7225 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
7226 msgid "C<value> can be NULL."
7227 msgstr ""
7228
7229 #. type: =head2
7230 #: ../fish/guestfish-actions.pod:820
7231 msgid "copy-size"
7232 msgstr ""
7233
7234 #. type: verbatim
7235 #: ../fish/guestfish-actions.pod:822
7236 #, no-wrap
7237 msgid ""
7238 " copy-size src dest size\n"
7239 "\n"
7240 msgstr ""
7241
7242 #. type: textblock
7243 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
7244 msgid ""
7245 "This command copies exactly C<size> bytes from one source device or file "
7246 "C<src> to another destination device or file C<dest>."
7247 msgstr ""
7248
7249 #. type: textblock
7250 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
7251 msgid ""
7252 "Note this will fail if the source is too short or if the destination is not "
7253 "large enough."
7254 msgstr ""
7255
7256 #. type: =head2
7257 #: ../fish/guestfish-actions.pod:830
7258 msgid "cp"
7259 msgstr ""
7260
7261 #. type: verbatim
7262 #: ../fish/guestfish-actions.pod:832
7263 #, no-wrap
7264 msgid ""
7265 " cp src dest\n"
7266 "\n"
7267 msgstr ""
7268
7269 #. type: textblock
7270 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
7271 msgid ""
7272 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7273 "destination filename or destination directory."
7274 msgstr ""
7275
7276 #. type: =head2
7277 #: ../fish/guestfish-actions.pod:837
7278 msgid "cp-a"
7279 msgstr ""
7280
7281 #. type: verbatim
7282 #: ../fish/guestfish-actions.pod:839
7283 #, no-wrap
7284 msgid ""
7285 " cp-a src dest\n"
7286 "\n"
7287 msgstr ""
7288
7289 #. type: textblock
7290 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
7291 msgid ""
7292 "This copies a file or directory from C<src> to C<dest> recursively using the "
7293 "C<cp -a> command."
7294 msgstr ""
7295
7296 #. type: =head2
7297 #: ../fish/guestfish-actions.pod:844
7298 msgid "dd"
7299 msgstr ""
7300
7301 #. type: verbatim
7302 #: ../fish/guestfish-actions.pod:846
7303 #, no-wrap
7304 msgid ""
7305 " dd src dest\n"
7306 "\n"
7307 msgstr ""
7308
7309 #. type: textblock
7310 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
7311 msgid ""
7312 "This command copies from one source device or file C<src> to another "
7313 "destination device or file C<dest>.  Normally you would use this to copy to "
7314 "or from a device or partition, for example to duplicate a filesystem."
7315 msgstr ""
7316
7317 #. type: textblock
7318 #: ../fish/guestfish-actions.pod:853
7319 msgid ""
7320 "If the destination is a device, it must be as large or larger than the "
7321 "source file or device, otherwise the copy will fail.  This command cannot do "
7322 "partial copies (see L</copy-size>)."
7323 msgstr ""
7324
7325 #. type: =head2
7326 #: ../fish/guestfish-actions.pod:857
7327 msgid "df"
7328 msgstr ""
7329
7330 #. type: verbatim
7331 #: ../fish/guestfish-actions.pod:859
7332 #, no-wrap
7333 msgid ""
7334 " df\n"
7335 "\n"
7336 msgstr ""
7337
7338 #. type: textblock
7339 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
7340 msgid "This command runs the C<df> command to report disk space used."
7341 msgstr ""
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
7345 msgid ""
7346 "This command is mostly useful for interactive sessions.  It is I<not> "
7347 "intended that you try to parse the output string.  Use L</statvfs> from "
7348 "programs."
7349 msgstr ""
7350
7351 #. type: =head2
7352 #: ../fish/guestfish-actions.pod:867
7353 msgid "df-h"
7354 msgstr ""
7355
7356 #. type: verbatim
7357 #: ../fish/guestfish-actions.pod:869
7358 #, no-wrap
7359 msgid ""
7360 " df-h\n"
7361 "\n"
7362 msgstr ""
7363
7364 #. type: textblock
7365 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
7366 msgid ""
7367 "This command runs the C<df -h> command to report disk space used in human-"
7368 "readable format."
7369 msgstr ""
7370
7371 #. type: =head2
7372 #: ../fish/guestfish-actions.pod:878
7373 msgid "dmesg"
7374 msgstr ""
7375
7376 #. type: verbatim
7377 #: ../fish/guestfish-actions.pod:880
7378 #, no-wrap
7379 msgid ""
7380 " dmesg\n"
7381 "\n"
7382 msgstr ""
7383
7384 #. type: textblock
7385 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
7386 msgid ""
7387 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7388 "This is sometimes useful for extended debugging of problems."
7389 msgstr ""
7390
7391 #. type: textblock
7392 #: ../fish/guestfish-actions.pod:886
7393 msgid ""
7394 "Another way to get the same information is to enable verbose messages with "
7395 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7396 "before running the program."
7397 msgstr ""
7398
7399 #. type: =head2
7400 #: ../fish/guestfish-actions.pod:891
7401 msgid "download"
7402 msgstr ""
7403
7404 #. type: verbatim
7405 #: ../fish/guestfish-actions.pod:893
7406 #, no-wrap
7407 msgid ""
7408 " download remotefilename (filename|-)\n"
7409 "\n"
7410 msgstr ""
7411
7412 #. type: textblock
7413 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
7414 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
7415 msgid ""
7416 "Download file C<remotefilename> and save it as C<filename> on the local "
7417 "machine."
7418 msgstr ""
7419
7420 #. type: textblock
7421 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877
7422 #: ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7391
7423 msgid "C<filename> can also be a named pipe."
7424 msgstr ""
7425
7426 #. type: textblock
7427 #: ../fish/guestfish-actions.pod:900
7428 msgid "See also L</upload>, L</cat>."
7429 msgstr ""
7430
7431 #. type: =head2
7432 #: ../fish/guestfish-actions.pod:904
7433 msgid "download-offset"
7434 msgstr ""
7435
7436 #. type: verbatim
7437 #: ../fish/guestfish-actions.pod:906
7438 #, no-wrap
7439 msgid ""
7440 " download-offset remotefilename (filename|-) offset size\n"
7441 "\n"
7442 msgstr ""
7443
7444 #. type: textblock
7445 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
7446 msgid ""
7447 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7448 "region must be within the file or device)."
7449 msgstr ""
7450
7451 #. type: textblock
7452 #: ../fish/guestfish-actions.pod:914
7453 msgid ""
7454 "Note that there is no limit on the amount of data that can be downloaded "
7455 "with this call, unlike with L</pread>, and this call always reads the full "
7456 "amount unless an error occurs."
7457 msgstr ""
7458
7459 #. type: textblock
7460 #: ../fish/guestfish-actions.pod:919
7461 msgid "See also L</download>, L</pread>."
7462 msgstr ""
7463
7464 #. type: =head2
7465 #: ../fish/guestfish-actions.pod:923
7466 msgid "drop-caches"
7467 msgstr ""
7468
7469 #. type: verbatim
7470 #: ../fish/guestfish-actions.pod:925
7471 #, no-wrap
7472 msgid ""
7473 " drop-caches whattodrop\n"
7474 "\n"
7475 msgstr ""
7476
7477 #. type: textblock
7478 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
7479 msgid ""
7480 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7481 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7482 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7483 msgstr ""
7484
7485 #. type: textblock
7486 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
7487 msgid "Setting C<whattodrop> to 3 should drop everything."
7488 msgstr ""
7489
7490 #. type: textblock
7491 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
7492 msgid ""
7493 "This automatically calls L<sync(2)> before the operation, so that the "
7494 "maximum guest memory is freed."
7495 msgstr ""
7496
7497 #. type: =head2
7498 #: ../fish/guestfish-actions.pod:937
7499 msgid "du"
7500 msgstr ""
7501
7502 #. type: verbatim
7503 #: ../fish/guestfish-actions.pod:939
7504 #, no-wrap
7505 msgid ""
7506 " du path\n"
7507 "\n"
7508 msgstr ""
7509
7510 #. type: textblock
7511 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
7512 msgid ""
7513 "This command runs the C<du -s> command to estimate file space usage for "
7514 "C<path>."
7515 msgstr ""
7516
7517 #. type: textblock
7518 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
7519 msgid ""
7520 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7521 "estimate includes the contents of the directory and all subdirectories "
7522 "(recursively)."
7523 msgstr ""
7524
7525 #. type: textblock
7526 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
7527 msgid ""
7528 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7529 msgstr ""
7530
7531 #. type: =head2
7532 #: ../fish/guestfish-actions.pod:951
7533 msgid "e2fsck-f"
7534 msgstr ""
7535
7536 #. type: verbatim
7537 #: ../fish/guestfish-actions.pod:953
7538 #, no-wrap
7539 msgid ""
7540 " e2fsck-f device\n"
7541 "\n"
7542 msgstr ""
7543
7544 #. type: textblock
7545 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
7546 msgid ""
7547 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7548 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7549 "clean (I<-f>)."
7550 msgstr ""
7551
7552 #. type: textblock
7553 #: ../fish/guestfish-actions.pod:959
7554 msgid ""
7555 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7556 "should use L</fsck>."
7557 msgstr ""
7558
7559 #. type: =head2
7560 #: ../fish/guestfish-actions.pod:962
7561 msgid "echo-daemon"
7562 msgstr ""
7563
7564 #. type: verbatim
7565 #: ../fish/guestfish-actions.pod:964
7566 #, no-wrap
7567 msgid ""
7568 " echo-daemon 'words ...'\n"
7569 "\n"
7570 msgstr ""
7571
7572 #. type: textblock
7573 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
7574 msgid ""
7575 "This command concatenates the list of C<words> passed with single spaces "
7576 "between them and returns the resulting string."
7577 msgstr ""
7578
7579 #. type: textblock
7580 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
7581 msgid "You can use this command to test the connection through to the daemon."
7582 msgstr ""
7583
7584 #. type: textblock
7585 #: ../fish/guestfish-actions.pod:971
7586 msgid "See also L</ping-daemon>."
7587 msgstr ""
7588
7589 #. type: =head2
7590 #: ../fish/guestfish-actions.pod:973
7591 msgid "egrep"
7592 msgstr ""
7593
7594 #. type: verbatim
7595 #: ../fish/guestfish-actions.pod:975
7596 #, no-wrap
7597 msgid ""
7598 " egrep regex path\n"
7599 "\n"
7600 msgstr ""
7601
7602 #. type: textblock
7603 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
7604 msgid ""
7605 "This calls the external C<egrep> program and returns the matching lines."
7606 msgstr ""
7607
7608 #. type: =head2
7609 #: ../fish/guestfish-actions.pod:983
7610 msgid "egrepi"
7611 msgstr ""
7612
7613 #. type: verbatim
7614 #: ../fish/guestfish-actions.pod:985
7615 #, no-wrap
7616 msgid ""
7617 " egrepi regex path\n"
7618 "\n"
7619 msgstr ""
7620
7621 #. type: textblock
7622 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
7623 msgid ""
7624 "This calls the external C<egrep -i> program and returns the matching lines."
7625 msgstr ""
7626
7627 #. type: =head2
7628 #: ../fish/guestfish-actions.pod:993
7629 msgid "equal"
7630 msgstr ""
7631
7632 #. type: verbatim
7633 #: ../fish/guestfish-actions.pod:995
7634 #, no-wrap
7635 msgid ""
7636 " equal file1 file2\n"
7637 "\n"
7638 msgstr ""
7639
7640 #. type: textblock
7641 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
7642 msgid ""
7643 "This compares the two files C<file1> and C<file2> and returns true if their "
7644 "content is exactly equal, or false otherwise."
7645 msgstr ""
7646
7647 #. type: textblock
7648 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
7649 msgid "The external L<cmp(1)> program is used for the comparison."
7650 msgstr ""
7651
7652 #. type: =head2
7653 #: ../fish/guestfish-actions.pod:1002
7654 msgid "exists"
7655 msgstr ""
7656
7657 #. type: verbatim
7658 #: ../fish/guestfish-actions.pod:1004
7659 #, no-wrap
7660 msgid ""
7661 " exists path\n"
7662 "\n"
7663 msgstr ""
7664
7665 #. type: textblock
7666 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
7667 msgid ""
7668 "This returns C<true> if and only if there is a file, directory (or anything) "
7669 "with the given C<path> name."
7670 msgstr ""
7671
7672 #. type: textblock
7673 #: ../fish/guestfish-actions.pod:1009
7674 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7675 msgstr ""
7676
7677 #. type: =head2
7678 #: ../fish/guestfish-actions.pod:1011
7679 msgid "fallocate"
7680 msgstr ""
7681
7682 #. type: verbatim
7683 #: ../fish/guestfish-actions.pod:1013
7684 #, no-wrap
7685 msgid ""
7686 " fallocate path len\n"
7687 "\n"
7688 msgstr ""
7689
7690 #. type: textblock
7691 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
7692 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
7693 msgid ""
7694 "This command preallocates a file (containing zero bytes) named C<path> of "
7695 "size C<len> bytes.  If the file exists already, it is overwritten."
7696 msgstr ""
7697
7698 #. type: textblock
7699 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
7700 msgid ""
7701 "Do not confuse this with the guestfish-specific C<alloc> command which "
7702 "allocates a file in the host and attaches it as a device."
7703 msgstr ""
7704
7705 #. type: textblock
7706 #: ../fish/guestfish-actions.pod:1023
7707 msgid ""
7708 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7709 "instead."
7710 msgstr ""
7711
7712 #. type: =head2
7713 #: ../fish/guestfish-actions.pod:1030
7714 msgid "fallocate64"
7715 msgstr ""
7716
7717 #. type: verbatim
7718 #: ../fish/guestfish-actions.pod:1032
7719 #, no-wrap
7720 msgid ""
7721 " fallocate64 path len\n"
7722 "\n"
7723 msgstr ""
7724
7725 #. type: textblock
7726 #: ../fish/guestfish-actions.pod:1038
7727 msgid ""
7728 "Note that this call allocates disk blocks for the file.  To create a sparse "
7729 "file use L</truncate-size> instead."
7730 msgstr ""
7731
7732 #. type: textblock
7733 #: ../fish/guestfish-actions.pod:1041
7734 msgid ""
7735 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7736 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7737 "maximum size of files created through that call to 1GB."
7738 msgstr ""
7739
7740 #. type: textblock
7741 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
7742 msgid ""
7743 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7744 "commands which create a file in the host and attach it as a device."
7745 msgstr ""
7746
7747 #. type: =head2
7748 #: ../fish/guestfish-actions.pod:1050
7749 msgid "fgrep"
7750 msgstr ""
7751
7752 #. type: verbatim
7753 #: ../fish/guestfish-actions.pod:1052
7754 #, no-wrap
7755 msgid ""
7756 " fgrep pattern path\n"
7757 "\n"
7758 msgstr ""
7759
7760 #. type: textblock
7761 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
7762 msgid ""
7763 "This calls the external C<fgrep> program and returns the matching lines."
7764 msgstr ""
7765
7766 #. type: =head2
7767 #: ../fish/guestfish-actions.pod:1060
7768 msgid "fgrepi"
7769 msgstr ""
7770
7771 #. type: verbatim
7772 #: ../fish/guestfish-actions.pod:1062
7773 #, no-wrap
7774 msgid ""
7775 " fgrepi pattern path\n"
7776 "\n"
7777 msgstr ""
7778
7779 #. type: textblock
7780 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
7781 msgid ""
7782 "This calls the external C<fgrep -i> program and returns the matching lines."
7783 msgstr ""
7784
7785 #. type: =head2
7786 #: ../fish/guestfish-actions.pod:1070
7787 msgid "file"
7788 msgstr ""
7789
7790 #. type: verbatim
7791 #: ../fish/guestfish-actions.pod:1072
7792 #, no-wrap
7793 msgid ""
7794 " file path\n"
7795 "\n"
7796 msgstr ""
7797
7798 #. type: textblock
7799 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
7800 msgid ""
7801 "This call uses the standard L<file(1)> command to determine the type or "
7802 "contents of the file."
7803 msgstr ""
7804
7805 #. type: textblock
7806 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
7807 msgid ""
7808 "This call will also transparently look inside various types of compressed "
7809 "file."
7810 msgstr ""
7811
7812 #. type: textblock
7813 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
7814 msgid ""
7815 "The exact command which runs is C<file -zb path>.  Note in particular that "
7816 "the filename is not prepended to the output (the I<-b> option)."
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
7821 msgid ""
7822 "The output depends on the output of the underlying L<file(1)> command and it "
7823 "can change in future in ways beyond our control.  In other words, the output "
7824 "is not guaranteed by the ABI."
7825 msgstr ""
7826
7827 #. type: textblock
7828 #: ../fish/guestfish-actions.pod:1088
7829 msgid ""
7830 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7831 "(etc), L</is-zero>."
7832 msgstr ""
7833
7834 #. type: =head2
7835 #: ../fish/guestfish-actions.pod:1091
7836 msgid "file-architecture"
7837 msgstr ""
7838
7839 #. type: verbatim
7840 #: ../fish/guestfish-actions.pod:1093
7841 #, no-wrap
7842 msgid ""
7843 " file-architecture filename\n"
7844 "\n"
7845 msgstr ""
7846
7847 #. type: textblock
7848 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
7849 msgid ""
7850 "This detects the architecture of the binary C<filename>, and returns it if "
7851 "known."
7852 msgstr ""
7853
7854 #. type: textblock
7855 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
7856 msgid "Currently defined architectures are:"
7857 msgstr ""
7858
7859 #. type: =item
7860 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
7861 msgid "\"i386\""
7862 msgstr ""
7863
7864 #. type: textblock
7865 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
7866 msgid ""
7867 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7868 "irrespective of the precise processor requirements of the binary."
7869 msgstr ""
7870
7871 #. type: =item
7872 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
7873 msgid "\"x86_64\""
7874 msgstr ""
7875
7876 #. type: textblock
7877 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
7878 msgid "64 bit x86-64."
7879 msgstr ""
7880
7881 #. type: =item
7882 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
7883 msgid "\"sparc\""
7884 msgstr ""
7885
7886 #. type: textblock
7887 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
7888 msgid "32 bit SPARC."
7889 msgstr ""
7890
7891 #. type: =item
7892 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
7893 msgid "\"sparc64\""
7894 msgstr ""
7895
7896 #. type: textblock
7897 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
7898 msgid "64 bit SPARC V9 and above."
7899 msgstr ""
7900
7901 #. type: =item
7902 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
7903 msgid "\"ia64\""
7904 msgstr ""
7905
7906 #. type: textblock
7907 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
7908 msgid "Intel Itanium."
7909 msgstr ""
7910
7911 #. type: =item
7912 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
7913 msgid "\"ppc\""
7914 msgstr ""
7915
7916 #. type: textblock
7917 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
7918 msgid "32 bit Power PC."
7919 msgstr ""
7920
7921 #. type: =item
7922 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
7923 msgid "\"ppc64\""
7924 msgstr ""
7925
7926 #. type: textblock
7927 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
7928 msgid "64 bit Power PC."
7929 msgstr ""
7930
7931 #. type: textblock
7932 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
7933 msgid "Libguestfs may return other architecture strings in future."
7934 msgstr ""
7935
7936 #. type: textblock
7937 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
7938 msgid "The function works on at least the following types of files:"
7939 msgstr ""
7940
7941 #. type: textblock
7942 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
7943 msgid "many types of Un*x and Linux binary"
7944 msgstr ""
7945
7946 #. type: textblock
7947 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
7948 msgid "many types of Un*x and Linux shared library"
7949 msgstr ""
7950
7951 #. type: textblock
7952 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
7953 msgid "Windows Win32 and Win64 binaries"
7954 msgstr ""
7955
7956 #. type: textblock
7957 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
7958 msgid "Windows Win32 and Win64 DLLs"
7959 msgstr ""
7960
7961 #. type: textblock
7962 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
7963 msgid "Win32 binaries and DLLs return C<i386>."
7964 msgstr ""
7965
7966 #. type: textblock
7967 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
7968 msgid "Win64 binaries and DLLs return C<x86_64>."
7969 msgstr ""
7970
7971 #. type: textblock
7972 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
7973 msgid "Linux kernel modules"
7974 msgstr ""
7975
7976 #. type: textblock
7977 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
7978 msgid "Linux new-style initrd images"
7979 msgstr ""
7980
7981 #. type: textblock
7982 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
7983 msgid "some non-x86 Linux vmlinuz kernels"
7984 msgstr ""
7985
7986 #. type: textblock
7987 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
7988 msgid "What it can't do currently:"
7989 msgstr ""
7990
7991 #. type: textblock
7992 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
7993 msgid "static libraries (libfoo.a)"
7994 msgstr ""
7995
7996 #. type: textblock
7997 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
7998 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7999 msgstr ""
8000
8001 #. type: textblock
8002 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
8003 msgid "x86 Linux vmlinuz kernels"
8004 msgstr ""
8005
8006 #. type: textblock
8007 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
8008 msgid ""
8009 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8010 "compressed code, and are horribly hard to unpack.  If you want to find the "
8011 "architecture of a kernel, use the architecture of the associated initrd or "
8012 "kernel module(s) instead."
8013 msgstr ""
8014
8015 #. type: =head2
8016 #: ../fish/guestfish-actions.pod:1196
8017 msgid "filesize"
8018 msgstr ""
8019
8020 #. type: verbatim
8021 #: ../fish/guestfish-actions.pod:1198
8022 #, no-wrap
8023 msgid ""
8024 " filesize file\n"
8025 "\n"
8026 msgstr ""
8027
8028 #. type: textblock
8029 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
8030 msgid "This command returns the size of C<file> in bytes."
8031 msgstr ""
8032
8033 #. type: textblock
8034 #: ../fish/guestfish-actions.pod:1202
8035 msgid ""
8036 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8037 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8038 msgstr ""
8039
8040 #. type: =head2
8041 #: ../fish/guestfish-actions.pod:1206
8042 msgid "fill"
8043 msgstr ""
8044
8045 #. type: verbatim
8046 #: ../fish/guestfish-actions.pod:1208
8047 #, no-wrap
8048 msgid ""
8049 " fill c len path\n"
8050 "\n"
8051 msgstr ""
8052
8053 #. type: textblock
8054 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
8055 msgid ""
8056 "This command creates a new file called C<path>.  The initial content of the "
8057 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8058 "[0..255]>."
8059 msgstr ""
8060
8061 #. type: textblock
8062 #: ../fish/guestfish-actions.pod:1214
8063 msgid ""
8064 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8065 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8066 "L</fill-pattern>."
8067 msgstr ""
8068
8069 #. type: =head2
8070 #: ../fish/guestfish-actions.pod:1219
8071 msgid "fill-pattern"
8072 msgstr ""
8073
8074 #. type: verbatim
8075 #: ../fish/guestfish-actions.pod:1221
8076 #, no-wrap
8077 msgid ""
8078 " fill-pattern pattern len path\n"
8079 "\n"
8080 msgstr ""
8081
8082 #. type: textblock
8083 #: ../fish/guestfish-actions.pod:1223
8084 msgid ""
8085 "This function is like L</fill> except that it creates a new file of length "
8086 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8087 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8088 "bytes."
8089 msgstr ""
8090
8091 #. type: =head2
8092 #: ../fish/guestfish-actions.pod:1228
8093 msgid "find"
8094 msgstr ""
8095
8096 #. type: verbatim
8097 #: ../fish/guestfish-actions.pod:1230
8098 #, no-wrap
8099 msgid ""
8100 " find directory\n"
8101 "\n"
8102 msgstr ""
8103
8104 #. type: textblock
8105 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
8106 msgid ""
8107 "This command lists out all files and directories, recursively, starting at "
8108 "C<directory>.  It is essentially equivalent to running the shell command "
8109 "C<find directory -print> but some post-processing happens on the output, "
8110 "described below."
8111 msgstr ""
8112
8113 #. type: textblock
8114 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
8115 msgid ""
8116 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8117 "structure was:"
8118 msgstr ""
8119
8120 #. type: verbatim
8121 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
8122 #, no-wrap
8123 msgid ""
8124 " /tmp/a\n"
8125 " /tmp/b\n"
8126 " /tmp/c/d\n"
8127 "\n"
8128 msgstr ""
8129
8130 #. type: textblock
8131 #: ../fish/guestfish-actions.pod:1244
8132 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8133 msgstr ""
8134
8135 #. type: verbatim
8136 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
8137 #, no-wrap
8138 msgid ""
8139 " a\n"
8140 " b\n"
8141 " c\n"
8142 " c/d\n"
8143 "\n"
8144 msgstr ""
8145
8146 #. type: textblock
8147 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
8148 msgid "If C<directory> is not a directory, then this command returns an error."
8149 msgstr ""
8150
8151 #. type: textblock
8152 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
8153 msgid "The returned list is sorted."
8154 msgstr ""
8155
8156 #. type: textblock
8157 #: ../fish/guestfish-actions.pod:1257
8158 msgid "See also L</find0>."
8159 msgstr ""
8160
8161 #. type: =head2
8162 #: ../fish/guestfish-actions.pod:1262
8163 msgid "find0"
8164 msgstr ""
8165
8166 #. type: verbatim
8167 #: ../fish/guestfish-actions.pod:1264
8168 #, no-wrap
8169 msgid ""
8170 " find0 directory (files|-)\n"
8171 "\n"
8172 msgstr ""
8173
8174 #. type: textblock
8175 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
8176 msgid ""
8177 "This command lists out all files and directories, recursively, starting at "
8178 "C<directory>, placing the resulting list in the external file called "
8179 "C<files>."
8180 msgstr ""
8181
8182 #. type: textblock
8183 #: ../fish/guestfish-actions.pod:1270
8184 msgid ""
8185 "This command works the same way as L</find> with the following exceptions:"
8186 msgstr ""
8187
8188 #. type: textblock
8189 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
8190 msgid "The resulting list is written to an external file."
8191 msgstr ""
8192
8193 #. type: textblock
8194 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
8195 msgid ""
8196 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8197 "L<find(1)> option I<-print0>."
8198 msgstr ""
8199
8200 #. type: textblock
8201 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
8202 msgid "This command is not limited in the number of names that it can return."
8203 msgstr ""
8204
8205 #. type: textblock
8206 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
8207 msgid "The result list is not sorted."
8208 msgstr ""
8209
8210 #. type: =head2
8211 #: ../fish/guestfish-actions.pod:1297
8212 msgid "findfs-label"
8213 msgstr ""
8214
8215 #. type: verbatim
8216 #: ../fish/guestfish-actions.pod:1299
8217 #, no-wrap
8218 msgid ""
8219 " findfs-label label\n"
8220 "\n"
8221 msgstr ""
8222
8223 #. type: textblock
8224 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
8225 msgid ""
8226 "This command searches the filesystems and returns the one which has the "
8227 "given label.  An error is returned if no such filesystem can be found."
8228 msgstr ""
8229
8230 #. type: textblock
8231 #: ../fish/guestfish-actions.pod:1305
8232 msgid "To find the label of a filesystem, use L</vfs-label>."
8233 msgstr ""
8234
8235 #. type: =head2
8236 #: ../fish/guestfish-actions.pod:1307
8237 msgid "findfs-uuid"
8238 msgstr ""
8239
8240 #. type: verbatim
8241 #: ../fish/guestfish-actions.pod:1309
8242 #, no-wrap
8243 msgid ""
8244 " findfs-uuid uuid\n"
8245 "\n"
8246 msgstr ""
8247
8248 #. type: textblock
8249 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
8250 msgid ""
8251 "This command searches the filesystems and returns the one which has the "
8252 "given UUID.  An error is returned if no such filesystem can be found."
8253 msgstr ""
8254
8255 #. type: textblock
8256 #: ../fish/guestfish-actions.pod:1315
8257 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8258 msgstr ""
8259
8260 #. type: =head2
8261 #: ../fish/guestfish-actions.pod:1317
8262 msgid "fsck"
8263 msgstr ""
8264
8265 #. type: verbatim
8266 #: ../fish/guestfish-actions.pod:1319
8267 #, no-wrap
8268 msgid ""
8269 " fsck fstype device\n"
8270 "\n"
8271 msgstr ""
8272
8273 #. type: textblock
8274 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
8275 msgid ""
8276 "This runs the filesystem checker (fsck) on C<device> which should have "
8277 "filesystem type C<fstype>."
8278 msgstr ""
8279
8280 #. type: textblock
8281 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
8282 msgid ""
8283 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8284 "codes from C<fsck>."
8285 msgstr ""
8286
8287 #. type: textblock
8288 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
8289 msgid "Multiple status codes can be summed together."
8290 msgstr ""
8291
8292 #. type: textblock
8293 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
8294 msgid ""
8295 "A non-zero return code can mean \"success\", for example if errors have been "
8296 "corrected on the filesystem."
8297 msgstr ""
8298
8299 #. type: textblock
8300 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
8301 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8302 msgstr ""
8303
8304 #. type: textblock
8305 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
8306 msgid ""
8307 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8308 msgstr ""
8309
8310 #. type: =head2
8311 #: ../fish/guestfish-actions.pod:1349
8312 msgid "get-append"
8313 msgstr ""
8314
8315 #. type: verbatim
8316 #: ../fish/guestfish-actions.pod:1351
8317 #, no-wrap
8318 msgid ""
8319 " get-append\n"
8320 "\n"
8321 msgstr ""
8322
8323 #. type: textblock
8324 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
8325 msgid ""
8326 "Return the additional kernel options which are added to the guest kernel "
8327 "command line."
8328 msgstr ""
8329
8330 #. type: textblock
8331 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
8332 msgid "If C<NULL> then no options are added."
8333 msgstr ""
8334
8335 #. type: =head2
8336 #: ../fish/guestfish-actions.pod:1358
8337 msgid "get-attach-method"
8338 msgstr ""
8339
8340 #. type: verbatim
8341 #: ../fish/guestfish-actions.pod:1360
8342 #, no-wrap
8343 msgid ""
8344 " get-attach-method\n"
8345 "\n"
8346 msgstr ""
8347
8348 #. type: textblock
8349 #: ../fish/guestfish-actions.pod:1362
8350 msgid "Return the current attach method.  See L</set-attach-method>."
8351 msgstr ""
8352
8353 #. type: =head2
8354 #: ../fish/guestfish-actions.pod:1364
8355 msgid "get-autosync"
8356 msgstr ""
8357
8358 #. type: verbatim
8359 #: ../fish/guestfish-actions.pod:1366
8360 #, no-wrap
8361 msgid ""
8362 " get-autosync\n"
8363 "\n"
8364 msgstr ""
8365
8366 #. type: textblock
8367 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
8368 msgid "Get the autosync flag."
8369 msgstr ""
8370
8371 #. type: =head2
8372 #: ../fish/guestfish-actions.pod:1370
8373 msgid "get-direct"
8374 msgstr ""
8375
8376 #. type: verbatim
8377 #: ../fish/guestfish-actions.pod:1372
8378 #, no-wrap
8379 msgid ""
8380 " get-direct\n"
8381 "\n"
8382 msgstr ""
8383
8384 #. type: textblock
8385 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
8386 msgid "Return the direct appliance mode flag."
8387 msgstr ""
8388
8389 #. type: =head2
8390 #: ../fish/guestfish-actions.pod:1376
8391 msgid "get-e2label"
8392 msgstr ""
8393
8394 #. type: verbatim
8395 #: ../fish/guestfish-actions.pod:1378
8396 #, no-wrap
8397 msgid ""
8398 " get-e2label device\n"
8399 "\n"
8400 msgstr ""
8401
8402 #. type: textblock
8403 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
8404 msgid ""
8405 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8406 msgstr ""
8407
8408 #. type: textblock
8409 #: ../fish/guestfish-actions.pod:1383
8410 msgid ""
8411 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8412 "instead."
8413 msgstr ""
8414
8415 #. type: =head2
8416 #: ../fish/guestfish-actions.pod:1390
8417 msgid "get-e2uuid"
8418 msgstr ""
8419
8420 #. type: verbatim
8421 #: ../fish/guestfish-actions.pod:1392
8422 #, no-wrap
8423 msgid ""
8424 " get-e2uuid device\n"
8425 "\n"
8426 msgstr ""
8427
8428 #. type: textblock
8429 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
8430 msgid ""
8431 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8432 msgstr ""
8433
8434 #. type: textblock
8435 #: ../fish/guestfish-actions.pod:1397
8436 msgid ""
8437 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8438 "instead."
8439 msgstr ""
8440
8441 #. type: =head2
8442 #: ../fish/guestfish-actions.pod:1404
8443 msgid "get-memsize"
8444 msgstr ""
8445
8446 #. type: verbatim
8447 #: ../fish/guestfish-actions.pod:1406
8448 #, no-wrap
8449 msgid ""
8450 " get-memsize\n"
8451 "\n"
8452 msgstr ""
8453
8454 #. type: textblock
8455 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
8456 msgid ""
8457 "This gets the memory size in megabytes allocated to the qemu subprocess."
8458 msgstr ""
8459
8460 #. type: textblock
8461 #: ../fish/guestfish-actions.pod:1411
8462 msgid ""
8463 "If L</set-memsize> was not called on this handle, and if "
8464 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8465 "value for memsize."
8466 msgstr ""
8467
8468 #. type: textblock
8469 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
8470 #: ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327
8471 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255
8472 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6562
8473 msgid ""
8474 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8475 msgstr ""
8476
8477 #. type: =head2
8478 #: ../fish/guestfish-actions.pod:1418
8479 msgid "get-network"
8480 msgstr ""
8481
8482 #. type: verbatim
8483 #: ../fish/guestfish-actions.pod:1420
8484 #, no-wrap
8485 msgid ""
8486 " get-network\n"
8487 "\n"
8488 msgstr ""
8489
8490 #. type: textblock
8491 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
8492 msgid "This returns the enable network flag."
8493 msgstr ""
8494
8495 #. type: =head2
8496 #: ../fish/guestfish-actions.pod:1424
8497 msgid "get-path"
8498 msgstr ""
8499
8500 #. type: verbatim
8501 #: ../fish/guestfish-actions.pod:1426
8502 #, no-wrap
8503 msgid ""
8504 " get-path\n"
8505 "\n"
8506 msgstr ""
8507
8508 #. type: textblock
8509 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
8510 msgid "Return the current search path."
8511 msgstr ""
8512
8513 #. type: textblock
8514 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
8515 msgid ""
8516 "This is always non-NULL.  If it wasn't set already, then this will return "
8517 "the default path."
8518 msgstr ""
8519
8520 #. type: =head2
8521 #: ../fish/guestfish-actions.pod:1433
8522 msgid "get-pgroup"
8523 msgstr ""
8524
8525 #. type: verbatim
8526 #: ../fish/guestfish-actions.pod:1435
8527 #, no-wrap
8528 msgid ""
8529 " get-pgroup\n"
8530 "\n"
8531 msgstr ""
8532
8533 #. type: textblock
8534 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
8535 msgid "This returns the process group flag."
8536 msgstr ""
8537
8538 #. type: =head2
8539 #: ../fish/guestfish-actions.pod:1439
8540 msgid "get-pid"
8541 msgstr ""
8542
8543 #. type: =head2
8544 #: ../fish/guestfish-actions.pod:1441
8545 msgid "pid"
8546 msgstr ""
8547
8548 #. type: verbatim
8549 #: ../fish/guestfish-actions.pod:1443
8550 #, no-wrap
8551 msgid ""
8552 " get-pid\n"
8553 "\n"
8554 msgstr ""
8555
8556 #. type: textblock
8557 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
8558 msgid ""
8559 "Return the process ID of the qemu subprocess.  If there is no qemu "
8560 "subprocess, then this will return an error."
8561 msgstr ""
8562
8563 #. type: textblock
8564 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
8565 msgid "This is an internal call used for debugging and testing."
8566 msgstr ""
8567
8568 #. type: =head2
8569 #: ../fish/guestfish-actions.pod:1450
8570 msgid "get-qemu"
8571 msgstr ""
8572
8573 #. type: verbatim
8574 #: ../fish/guestfish-actions.pod:1452
8575 #, no-wrap
8576 msgid ""
8577 " get-qemu\n"
8578 "\n"
8579 msgstr ""
8580
8581 #. type: textblock
8582 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
8583 msgid "Return the current qemu binary."
8584 msgstr ""
8585
8586 #. type: textblock
8587 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
8588 msgid ""
8589 "This is always non-NULL.  If it wasn't set already, then this will return "
8590 "the default qemu binary name."
8591 msgstr ""
8592
8593 #. type: =head2
8594 #: ../fish/guestfish-actions.pod:1459
8595 msgid "get-recovery-proc"
8596 msgstr ""
8597
8598 #. type: verbatim
8599 #: ../fish/guestfish-actions.pod:1461
8600 #, no-wrap
8601 msgid ""
8602 " get-recovery-proc\n"
8603 "\n"
8604 msgstr ""
8605
8606 #. type: textblock
8607 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
8608 msgid "Return the recovery process enabled flag."
8609 msgstr ""
8610
8611 #. type: =head2
8612 #: ../fish/guestfish-actions.pod:1465
8613 msgid "get-selinux"
8614 msgstr ""
8615
8616 #. type: verbatim
8617 #: ../fish/guestfish-actions.pod:1467
8618 #, no-wrap
8619 msgid ""
8620 " get-selinux\n"
8621 "\n"
8622 msgstr ""
8623
8624 #. type: textblock
8625 #: ../fish/guestfish-actions.pod:1469
8626 msgid ""
8627 "This returns the current setting of the selinux flag which is passed to the "
8628 "appliance at boot time.  See L</set-selinux>."
8629 msgstr ""
8630
8631 #. type: =head2
8632 #: ../fish/guestfish-actions.pod:1475
8633 msgid "get-smp"
8634 msgstr ""
8635
8636 #. type: verbatim
8637 #: ../fish/guestfish-actions.pod:1477
8638 #, no-wrap
8639 msgid ""
8640 " get-smp\n"
8641 "\n"
8642 msgstr ""
8643
8644 #. type: textblock
8645 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
8646 msgid "This returns the number of virtual CPUs assigned to the appliance."
8647 msgstr ""
8648
8649 #. type: =head2
8650 #: ../fish/guestfish-actions.pod:1481
8651 msgid "get-state"
8652 msgstr ""
8653
8654 #. type: verbatim
8655 #: ../fish/guestfish-actions.pod:1483
8656 #, no-wrap
8657 msgid ""
8658 " get-state\n"
8659 "\n"
8660 msgstr ""
8661
8662 #. type: textblock
8663 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
8664 msgid ""
8665 "This returns the current state as an opaque integer.  This is only useful "
8666 "for printing debug and internal error messages."
8667 msgstr ""
8668
8669 #. type: textblock
8670 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
8671 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
8672 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2281
8673 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3616
8674 #: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3704
8675 msgid "For more information on states, see L<guestfs(3)>."
8676 msgstr ""
8677
8678 #. type: =head2
8679 #: ../fish/guestfish-actions.pod:1490
8680 msgid "get-trace"
8681 msgstr ""
8682
8683 #. type: verbatim
8684 #: ../fish/guestfish-actions.pod:1492
8685 #, no-wrap
8686 msgid ""
8687 " get-trace\n"
8688 "\n"
8689 msgstr ""
8690
8691 #. type: textblock
8692 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
8693 msgid "Return the command trace flag."
8694 msgstr ""
8695
8696 #. type: =head2
8697 #: ../fish/guestfish-actions.pod:1496
8698 msgid "get-umask"
8699 msgstr ""
8700
8701 #. type: verbatim
8702 #: ../fish/guestfish-actions.pod:1498
8703 #, no-wrap
8704 msgid ""
8705 " get-umask\n"
8706 "\n"
8707 msgstr ""
8708
8709 #. type: textblock
8710 #: ../fish/guestfish-actions.pod:1500
8711 msgid ""
8712 "Return the current umask.  By default the umask is C<022> unless it has been "
8713 "set by calling L</umask>."
8714 msgstr ""
8715
8716 #. type: =head2
8717 #: ../fish/guestfish-actions.pod:1503
8718 msgid "get-verbose"
8719 msgstr ""
8720
8721 #. type: verbatim
8722 #: ../fish/guestfish-actions.pod:1505
8723 #, no-wrap
8724 msgid ""
8725 " get-verbose\n"
8726 "\n"
8727 msgstr ""
8728
8729 #. type: textblock
8730 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
8731 msgid "This returns the verbose messages flag."
8732 msgstr ""
8733
8734 #. type: =head2
8735 #: ../fish/guestfish-actions.pod:1509
8736 msgid "getcon"
8737 msgstr ""
8738
8739 #. type: verbatim
8740 #: ../fish/guestfish-actions.pod:1511
8741 #, no-wrap
8742 msgid ""
8743 " getcon\n"
8744 "\n"
8745 msgstr ""
8746
8747 #. type: textblock
8748 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
8749 msgid "This gets the SELinux security context of the daemon."
8750 msgstr ""
8751
8752 #. type: textblock
8753 #: ../fish/guestfish-actions.pod:1515
8754 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8755 msgstr ""
8756
8757 #. type: =head2
8758 #: ../fish/guestfish-actions.pod:1518
8759 msgid "getxattr"
8760 msgstr ""
8761
8762 #. type: verbatim
8763 #: ../fish/guestfish-actions.pod:1520
8764 #, no-wrap
8765 msgid ""
8766 " getxattr path name\n"
8767 "\n"
8768 msgstr ""
8769
8770 #. type: textblock
8771 #: ../fish/guestfish-actions.pod:1522
8772 msgid ""
8773 "Get a single extended attribute from file C<path> named C<name>.  This call "
8774 "follows symlinks.  If you want to lookup an extended attribute for the "
8775 "symlink itself, use L</lgetxattr>."
8776 msgstr ""
8777
8778 #. type: textblock
8779 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
8780 msgid ""
8781 "Normally it is better to get all extended attributes from a file in one go "
8782 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
8783 "buggy and do not provide a way to list out attributes.  For these "
8784 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
8785 "attributes you want in advance and call this function."
8786 msgstr ""
8787
8788 #. type: textblock
8789 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
8790 #: ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3837
8791 msgid ""
8792 "Extended attribute values are blobs of binary data.  If there is no extended "
8793 "attribute named C<name>, this returns an error."
8794 msgstr ""
8795
8796 #. type: textblock
8797 #: ../fish/guestfish-actions.pod:1536
8798 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8799 msgstr ""
8800
8801 #. type: =head2
8802 #: ../fish/guestfish-actions.pod:1538
8803 msgid "getxattrs"
8804 msgstr ""
8805
8806 #. type: verbatim
8807 #: ../fish/guestfish-actions.pod:1540
8808 #, no-wrap
8809 msgid ""
8810 " getxattrs path\n"
8811 "\n"
8812 msgstr ""
8813
8814 #. type: textblock
8815 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
8816 msgid ""
8817 "This call lists the extended attributes of the file or directory C<path>."
8818 msgstr ""
8819
8820 #. type: textblock
8821 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
8822 msgid ""
8823 "At the system call level, this is a combination of the L<listxattr(2)> and "
8824 "L<getxattr(2)> calls."
8825 msgstr ""
8826
8827 #. type: textblock
8828 #: ../fish/guestfish-actions.pod:1548
8829 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8830 msgstr ""
8831
8832 #. type: =head2
8833 #: ../fish/guestfish-actions.pod:1550
8834 msgid "glob-expand"
8835 msgstr ""
8836
8837 #. type: verbatim
8838 #: ../fish/guestfish-actions.pod:1552
8839 #, no-wrap
8840 msgid ""
8841 " glob-expand pattern\n"
8842 "\n"
8843 msgstr ""
8844
8845 #. type: textblock
8846 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
8847 msgid ""
8848 "This command searches for all the pathnames matching C<pattern> according to "
8849 "the wildcard expansion rules used by the shell."
8850 msgstr ""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
8854 msgid ""
8855 "If no paths match, then this returns an empty list (note: not an error)."
8856 msgstr ""
8857
8858 #. type: textblock
8859 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
8860 msgid ""
8861 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8862 "GLOB_BRACE>.  See that manual page for more details."
8863 msgstr ""
8864
8865 #. type: =head2
8866 #: ../fish/guestfish-actions.pod:1565
8867 msgid "grep"
8868 msgstr ""
8869
8870 #. type: verbatim
8871 #: ../fish/guestfish-actions.pod:1567
8872 #, no-wrap
8873 msgid ""
8874 " grep regex path\n"
8875 "\n"
8876 msgstr ""
8877
8878 #. type: textblock
8879 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
8880 msgid "This calls the external C<grep> program and returns the matching lines."
8881 msgstr ""
8882
8883 #. type: =head2
8884 #: ../fish/guestfish-actions.pod:1575
8885 msgid "grepi"
8886 msgstr ""
8887
8888 #. type: verbatim
8889 #: ../fish/guestfish-actions.pod:1577
8890 #, no-wrap
8891 msgid ""
8892 " grepi regex path\n"
8893 "\n"
8894 msgstr ""
8895
8896 #. type: textblock
8897 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
8898 msgid ""
8899 "This calls the external C<grep -i> program and returns the matching lines."
8900 msgstr ""
8901
8902 #. type: =head2
8903 #: ../fish/guestfish-actions.pod:1585
8904 msgid "grub-install"
8905 msgstr ""
8906
8907 #. type: verbatim
8908 #: ../fish/guestfish-actions.pod:1587
8909 #, no-wrap
8910 msgid ""
8911 " grub-install root device\n"
8912 "\n"
8913 msgstr ""
8914
8915 #. type: textblock
8916 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
8917 msgid ""
8918 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8919 "with the root directory being C<root>."
8920 msgstr ""
8921
8922 #. type: textblock
8923 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
8924 msgid ""
8925 "There is currently no way in the API to install grub2, which is used by most "
8926 "modern Linux guests.  It is possible to run the grub2 command from the "
8927 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8928 msgstr ""
8929
8930 #. type: textblock
8931 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
8932 msgid ""
8933 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
8934 "compatible with itself, so this only works in rather narrow circumstances.  "
8935 "Careful testing with each guest version is advisable."
8936 msgstr ""
8937
8938 #. type: textblock
8939 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
8940 msgid ""
8941 "If grub-install reports the error \"No suitable drive was found in the "
8942 "generated device map.\" it may be that you need to create a C</boot/grub/"
8943 "device.map> file first that contains the mapping between grub device names "
8944 "and Linux device names.  It is usually sufficient to create a file "
8945 "containing:"
8946 msgstr ""
8947
8948 #. type: verbatim
8949 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
8950 #, no-wrap
8951 msgid ""
8952 " (hd0) /dev/vda\n"
8953 "\n"
8954 msgstr ""
8955
8956 #. type: textblock
8957 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
8958 msgid "replacing C</dev/vda> with the name of the installation device."
8959 msgstr ""
8960
8961 #. type: =head2
8962 #: ../fish/guestfish-actions.pod:1625
8963 msgid "head"
8964 msgstr ""
8965
8966 #. type: verbatim
8967 #: ../fish/guestfish-actions.pod:1627
8968 #, no-wrap
8969 msgid ""
8970 " head path\n"
8971 "\n"
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
8976 msgid ""
8977 "This command returns up to the first 10 lines of a file as a list of strings."
8978 msgstr ""
8979
8980 #. type: =head2
8981 #: ../fish/guestfish-actions.pod:1635
8982 msgid "head-n"
8983 msgstr ""
8984
8985 #. type: verbatim
8986 #: ../fish/guestfish-actions.pod:1637
8987 #, no-wrap
8988 msgid ""
8989 " head-n nrlines path\n"
8990 "\n"
8991 msgstr ""
8992
8993 #. type: textblock
8994 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
8995 msgid ""
8996 "If the parameter C<nrlines> is a positive number, this returns the first "
8997 "C<nrlines> lines of the file C<path>."
8998 msgstr ""
8999
9000 #. type: textblock
9001 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
9002 msgid ""
9003 "If the parameter C<nrlines> is a negative number, this returns lines from "
9004 "the file C<path>, excluding the last C<nrlines> lines."
9005 msgstr ""
9006
9007 #. type: textblock
9008 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717
9009 #: ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7150
9010 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9011 msgstr ""
9012
9013 #. type: =head2
9014 #: ../fish/guestfish-actions.pod:1650
9015 msgid "hexdump"
9016 msgstr ""
9017
9018 #. type: verbatim
9019 #: ../fish/guestfish-actions.pod:1652
9020 #, no-wrap
9021 msgid ""
9022 " hexdump path\n"
9023 "\n"
9024 msgstr ""
9025
9026 #. type: textblock
9027 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
9028 msgid ""
9029 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9030 "readable, canonical hex dump of the file."
9031 msgstr ""
9032
9033 #. type: =head2
9034 #: ../fish/guestfish-actions.pod:1660
9035 msgid "initrd-cat"
9036 msgstr ""
9037
9038 #. type: verbatim
9039 #: ../fish/guestfish-actions.pod:1662
9040 #, no-wrap
9041 msgid ""
9042 " initrd-cat initrdpath filename\n"
9043 "\n"
9044 msgstr ""
9045
9046 #. type: textblock
9047 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
9048 msgid ""
9049 "This command unpacks the file C<filename> from the initrd file called "
9050 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9051 "character."
9052 msgstr ""
9053
9054 #. type: textblock
9055 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
9056 msgid ""
9057 "For example, in guestfish you could use the following command to examine the "
9058 "boot script (usually called C</init>)  contained in a Linux initrd or "
9059 "initramfs image:"
9060 msgstr ""
9061
9062 #. type: verbatim
9063 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
9064 #, no-wrap
9065 msgid ""
9066 " initrd-cat /boot/initrd-<version>.img init\n"
9067 "\n"
9068 msgstr ""
9069
9070 #. type: textblock
9071 #: ../fish/guestfish-actions.pod:1674
9072 msgid "See also L</initrd-list>."
9073 msgstr ""
9074
9075 #. type: =head2
9076 #: ../fish/guestfish-actions.pod:1679
9077 msgid "initrd-list"
9078 msgstr ""
9079
9080 #. type: verbatim
9081 #: ../fish/guestfish-actions.pod:1681
9082 #, no-wrap
9083 msgid ""
9084 " initrd-list path\n"
9085 "\n"
9086 msgstr ""
9087
9088 #. type: textblock
9089 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
9090 msgid "This command lists out files contained in an initrd."
9091 msgstr ""
9092
9093 #. type: textblock
9094 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
9095 msgid ""
9096 "The files are listed without any initial C</> character.  The files are "
9097 "listed in the order they appear (not necessarily alphabetical).  Directory "
9098 "names are listed as separate items."
9099 msgstr ""
9100
9101 #. type: textblock
9102 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
9103 msgid ""
9104 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9105 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9106 "files)."
9107 msgstr ""
9108
9109 #. type: =head2
9110 #: ../fish/guestfish-actions.pod:1693
9111 msgid "inotify-add-watch"
9112 msgstr ""
9113
9114 #. type: verbatim
9115 #: ../fish/guestfish-actions.pod:1695
9116 #, no-wrap
9117 msgid ""
9118 " inotify-add-watch path mask\n"
9119 "\n"
9120 msgstr ""
9121
9122 #. type: textblock
9123 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
9124 msgid "Watch C<path> for the events listed in C<mask>."
9125 msgstr ""
9126
9127 #. type: textblock
9128 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
9129 msgid ""
9130 "Note that if C<path> is a directory then events within that directory are "
9131 "watched, but this does I<not> happen recursively (in subdirectories)."
9132 msgstr ""
9133
9134 #. type: textblock
9135 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
9136 msgid ""
9137 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9138 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9139 msgstr ""
9140
9141 #. type: =head2
9142 #: ../fish/guestfish-actions.pod:1707
9143 msgid "inotify-close"
9144 msgstr ""
9145
9146 #. type: verbatim
9147 #: ../fish/guestfish-actions.pod:1709
9148 #, no-wrap
9149 msgid ""
9150 " inotify-close\n"
9151 "\n"
9152 msgstr ""
9153
9154 #. type: textblock
9155 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
9156 msgid ""
9157 "This closes the inotify handle which was previously opened by inotify_init.  "
9158 "It removes all watches, throws away any pending events, and deallocates all "
9159 "resources."
9160 msgstr ""
9161
9162 #. type: =head2
9163 #: ../fish/guestfish-actions.pod:1715
9164 msgid "inotify-files"
9165 msgstr ""
9166
9167 #. type: verbatim
9168 #: ../fish/guestfish-actions.pod:1717
9169 #, no-wrap
9170 msgid ""
9171 " inotify-files\n"
9172 "\n"
9173 msgstr ""
9174
9175 #. type: textblock
9176 #: ../fish/guestfish-actions.pod:1719
9177 msgid ""
9178 "This function is a helpful wrapper around L</inotify-read> which just "
9179 "returns a list of pathnames of objects that were touched.  The returned "
9180 "pathnames are sorted and deduplicated."
9181 msgstr ""
9182
9183 #. type: =head2
9184 #: ../fish/guestfish-actions.pod:1723
9185 msgid "inotify-init"
9186 msgstr ""
9187
9188 #. type: verbatim
9189 #: ../fish/guestfish-actions.pod:1725
9190 #, no-wrap
9191 msgid ""
9192 " inotify-init maxevents\n"
9193 "\n"
9194 msgstr ""
9195
9196 #. type: textblock
9197 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
9198 msgid ""
9199 "This command creates a new inotify handle.  The inotify subsystem can be "
9200 "used to notify events which happen to objects in the guest filesystem."
9201 msgstr ""
9202
9203 #. type: textblock
9204 #: ../fish/guestfish-actions.pod:1731
9205 msgid ""
9206 "C<maxevents> is the maximum number of events which will be queued up between "
9207 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9208 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9209 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9210 "but records the fact that it threw them away by setting a flag "
9211 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9212 msgstr ""
9213
9214 #. type: textblock
9215 #: ../fish/guestfish-actions.pod:1741
9216 msgid ""
9217 "Before any events are generated, you have to add some watches to the "
9218 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9219 "L</inotify-watch-all>."
9220 msgstr ""
9221
9222 #. type: textblock
9223 #: ../fish/guestfish-actions.pod:1747
9224 msgid ""
9225 "Queued up events should be read periodically by calling L</inotify-read> (or "
9226 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9227 "If you don't read the events out often enough then you risk the internal "
9228 "queue overflowing."
9229 msgstr ""
9230
9231 #. type: textblock
9232 #: ../fish/guestfish-actions.pod:1754
9233 msgid ""
9234 "The handle should be closed after use by calling L</inotify-close>.  This "
9235 "also removes any watches automatically."
9236 msgstr ""
9237
9238 #. type: textblock
9239 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
9240 msgid ""
9241 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9242 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9243 "that there is one global inotify handle per libguestfs instance."
9244 msgstr ""
9245
9246 #. type: =head2
9247 #: ../fish/guestfish-actions.pod:1763
9248 msgid "inotify-read"
9249 msgstr ""
9250
9251 #. type: verbatim
9252 #: ../fish/guestfish-actions.pod:1765
9253 #, no-wrap
9254 msgid ""
9255 " inotify-read\n"
9256 "\n"
9257 msgstr ""
9258
9259 #. type: textblock
9260 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
9261 msgid ""
9262 "Return the complete queue of events that have happened since the previous "
9263 "read call."
9264 msgstr ""
9265
9266 #. type: textblock
9267 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
9268 msgid "If no events have happened, this returns an empty list."
9269 msgstr ""
9270
9271 #. type: textblock
9272 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
9273 msgid ""
9274 "I<Note>: In order to make sure that all events have been read, you must call "
9275 "this function repeatedly until it returns an empty list.  The reason is that "
9276 "the call will read events up to the maximum appliance-to-host message size "
9277 "and leave remaining events in the queue."
9278 msgstr ""
9279
9280 #. type: =head2
9281 #: ../fish/guestfish-actions.pod:1778
9282 msgid "inotify-rm-watch"
9283 msgstr ""
9284
9285 #. type: verbatim
9286 #: ../fish/guestfish-actions.pod:1780
9287 #, no-wrap
9288 msgid ""
9289 " inotify-rm-watch wd\n"
9290 "\n"
9291 msgstr ""
9292
9293 #. type: textblock
9294 #: ../fish/guestfish-actions.pod:1782
9295 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9296 msgstr ""
9297
9298 #. type: =head2
9299 #: ../fish/guestfish-actions.pod:1785
9300 msgid "inspect-get-arch"
9301 msgstr ""
9302
9303 #. type: verbatim
9304 #: ../fish/guestfish-actions.pod:1787
9305 #, no-wrap
9306 msgid ""
9307 " inspect-get-arch root\n"
9308 "\n"
9309 msgstr ""
9310
9311 #. type: textblock
9312 #: ../fish/guestfish-actions.pod:1789
9313 msgid ""
9314 "This returns the architecture of the inspected operating system.  The "
9315 "possible return values are listed under L</file-architecture>."
9316 msgstr ""
9317
9318 #. type: textblock
9319 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
9320 msgid ""
9321 "If the architecture could not be determined, then the string C<unknown> is "
9322 "returned."
9323 msgstr ""
9324
9325 #. type: textblock
9326 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
9327 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
9328 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
9329 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
9330 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
9331 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
9332 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
9333 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
9334 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2747
9335 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2945
9336 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3095
9337 #: ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3206
9338 #: ../src/guestfs-actions.pod:3227 ../src/guestfs-actions.pod:3280
9339 #: ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3340
9340 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3377
9341 #: ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3411
9342 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3554
9343 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9344 msgstr ""
9345
9346 #. type: =head2
9347 #: ../fish/guestfish-actions.pod:1798
9348 msgid "inspect-get-distro"
9349 msgstr ""
9350
9351 #. type: verbatim
9352 #: ../fish/guestfish-actions.pod:1800
9353 #, no-wrap
9354 msgid ""
9355 " inspect-get-distro root\n"
9356 "\n"
9357 msgstr ""
9358
9359 #. type: textblock
9360 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
9361 msgid ""
9362 "This returns the distro (distribution) of the inspected operating system."
9363 msgstr ""
9364
9365 #. type: textblock
9366 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
9367 msgid "Currently defined distros are:"
9368 msgstr ""
9369
9370 #. type: =item
9371 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
9372 msgid "\"archlinux\""
9373 msgstr ""
9374
9375 #. type: textblock
9376 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
9377 msgid "Arch Linux."
9378 msgstr ""
9379
9380 #. type: =item
9381 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
9382 msgid "\"centos\""
9383 msgstr ""
9384
9385 #. type: textblock
9386 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
9387 msgid "CentOS."
9388 msgstr ""
9389
9390 #. type: =item
9391 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
9392 msgid "\"debian\""
9393 msgstr ""
9394
9395 #. type: textblock
9396 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
9397 msgid "Debian."
9398 msgstr ""
9399
9400 #. type: =item
9401 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
9402 msgid "\"fedora\""
9403 msgstr ""
9404
9405 #. type: textblock
9406 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
9407 msgid "Fedora."
9408 msgstr ""
9409
9410 #. type: =item
9411 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
9412 msgid "\"gentoo\""
9413 msgstr ""
9414
9415 #. type: textblock
9416 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
9417 msgid "Gentoo."
9418 msgstr ""
9419
9420 #. type: =item
9421 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
9422 msgid "\"linuxmint\""
9423 msgstr ""
9424
9425 #. type: textblock
9426 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
9427 msgid "Linux Mint."
9428 msgstr ""
9429
9430 #. type: =item
9431 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
9432 msgid "\"mandriva\""
9433 msgstr ""
9434
9435 #. type: textblock
9436 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
9437 msgid "Mandriva."
9438 msgstr ""
9439
9440 #. type: =item
9441 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
9442 msgid "\"meego\""
9443 msgstr ""
9444
9445 #. type: textblock
9446 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
9447 msgid "MeeGo."
9448 msgstr ""
9449
9450 #. type: =item
9451 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
9452 msgid "\"pardus\""
9453 msgstr ""
9454
9455 #. type: textblock
9456 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
9457 msgid "Pardus."
9458 msgstr ""
9459
9460 #. type: =item
9461 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
9462 msgid "\"redhat-based\""
9463 msgstr ""
9464
9465 #. type: textblock
9466 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
9467 msgid "Some Red Hat-derived distro."
9468 msgstr ""
9469
9470 #. type: =item
9471 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
9472 msgid "\"rhel\""
9473 msgstr ""
9474
9475 #. type: textblock
9476 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
9477 msgid "Red Hat Enterprise Linux."
9478 msgstr ""
9479
9480 #. type: =item
9481 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
9482 msgid "\"scientificlinux\""
9483 msgstr ""
9484
9485 #. type: textblock
9486 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
9487 msgid "Scientific Linux."
9488 msgstr ""
9489
9490 #. type: =item
9491 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
9492 msgid "\"slackware\""
9493 msgstr ""
9494
9495 #. type: textblock
9496 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
9497 msgid "Slackware."
9498 msgstr ""
9499
9500 #. type: =item
9501 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
9502 msgid "\"ttylinux\""
9503 msgstr ""
9504
9505 #. type: textblock
9506 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
9507 msgid "ttylinux."
9508 msgstr ""
9509
9510 #. type: =item
9511 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
9512 msgid "\"ubuntu\""
9513 msgstr ""
9514
9515 #. type: textblock
9516 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
9517 msgid "Ubuntu."
9518 msgstr ""
9519
9520 #. type: =item
9521 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
9522 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2827
9523 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
9524 msgid "\"unknown\""
9525 msgstr ""
9526
9527 #. type: textblock
9528 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
9529 msgid "The distro could not be determined."
9530 msgstr ""
9531
9532 #. type: =item
9533 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
9534 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:3303
9535 msgid "\"windows\""
9536 msgstr ""
9537
9538 #. type: textblock
9539 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
9540 msgid ""
9541 "Windows does not have distributions.  This string is returned if the OS type "
9542 "is Windows."
9543 msgstr ""
9544
9545 #. type: textblock
9546 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
9547 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2838
9548 #: ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:3317
9549 msgid ""
9550 "Future versions of libguestfs may return other strings here.  The caller "
9551 "should be prepared to handle any string."
9552 msgstr ""
9553
9554 #. type: =head2
9555 #: ../fish/guestfish-actions.pod:1885
9556 msgid "inspect-get-drive-mappings"
9557 msgstr ""
9558
9559 #. type: verbatim
9560 #: ../fish/guestfish-actions.pod:1887
9561 #, no-wrap
9562 msgid ""
9563 " inspect-get-drive-mappings root\n"
9564 "\n"
9565 msgstr ""
9566
9567 #. type: textblock
9568 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2854
9569 msgid ""
9570 "This call is useful for Windows which uses a primitive system of assigning "
9571 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
9572 "Windows Registry to find out how disks/partitions are mapped to drive "
9573 "letters, and returns a hash table as in the example below:"
9574 msgstr ""
9575
9576 #. type: verbatim
9577 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2860
9578 #, no-wrap
9579 msgid ""
9580 " C      =>     /dev/vda2\n"
9581 " E      =>     /dev/vdb1\n"
9582 " F      =>     /dev/vdc1\n"
9583 "\n"
9584 msgstr ""
9585
9586 #. type: textblock
9587 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2864
9588 msgid ""
9589 "Note that keys are drive letters.  For Windows, the key is case insensitive "
9590 "and just contains the drive letter, without the customary colon separator "
9591 "character."
9592 msgstr ""
9593
9594 #. type: textblock
9595 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
9596 msgid ""
9597 "In future we may support other operating systems that also used drive "
9598 "letters, but the keys for those might not be case insensitive and might be "
9599 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
9600 "C<h1> etc."
9601 msgstr ""
9602
9603 #. type: textblock
9604 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2873
9605 msgid ""
9606 "For Windows guests, currently only hard drive mappings are returned.  "
9607 "Removable disks (eg. DVD-ROMs) are ignored."
9608 msgstr ""
9609
9610 #. type: textblock
9611 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
9612 msgid ""
9613 "For guests that do not use drive mappings, or if the drive mappings could "
9614 "not be determined, this returns an empty hash table."
9615 msgstr ""
9616
9617 #. type: textblock
9618 #: ../fish/guestfish-actions.pod:1914
9619 msgid ""
9620 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9621 "get-mountpoints>, L</inspect-get-filesystems>."
9622 msgstr ""
9623
9624 #. type: =head2
9625 #: ../fish/guestfish-actions.pod:1918
9626 msgid "inspect-get-filesystems"
9627 msgstr ""
9628
9629 #. type: verbatim
9630 #: ../fish/guestfish-actions.pod:1920
9631 #, no-wrap
9632 msgid ""
9633 " inspect-get-filesystems root\n"
9634 "\n"
9635 msgstr ""
9636
9637 #. type: textblock
9638 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2897
9639 msgid ""
9640 "This returns a list of all the filesystems that we think are associated with "
9641 "this operating system.  This includes the root filesystem, other ordinary "
9642 "filesystems, and non-mounted devices like swap partitions."
9643 msgstr ""
9644
9645 #. type: textblock
9646 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2902
9647 msgid ""
9648 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9649 "to be shared between operating systems."
9650 msgstr ""
9651
9652 #. type: textblock
9653 #: ../fish/guestfish-actions.pod:1930
9654 msgid ""
9655 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9656 "get-mountpoints>."
9657 msgstr ""
9658
9659 #. type: =head2
9660 #: ../fish/guestfish-actions.pod:1933
9661 msgid "inspect-get-format"
9662 msgstr ""
9663
9664 #. type: verbatim
9665 #: ../fish/guestfish-actions.pod:1935
9666 #, no-wrap
9667 msgid ""
9668 " inspect-get-format root\n"
9669 "\n"
9670 msgstr ""
9671
9672 #. type: textblock
9673 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2920
9674 msgid ""
9675 "This returns the format of the inspected operating system.  You can use it "
9676 "to detect install images, live CDs and similar."
9677 msgstr ""
9678
9679 #. type: textblock
9680 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2923
9681 msgid "Currently defined formats are:"
9682 msgstr ""
9683
9684 #. type: =item
9685 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2927
9686 msgid "\"installed\""
9687 msgstr ""
9688
9689 #. type: textblock
9690 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2929
9691 msgid "This is an installed operating system."
9692 msgstr ""
9693
9694 #. type: =item
9695 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
9696 msgid "\"installer\""
9697 msgstr ""
9698
9699 #. type: textblock
9700 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2933
9701 msgid ""
9702 "The disk image being inspected is not an installed operating system, but a "
9703 "I<bootable> install disk, live CD, or similar."
9704 msgstr ""
9705
9706 #. type: textblock
9707 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2938
9708 msgid "The format of this disk image is not known."
9709 msgstr ""
9710
9711 #. type: =head2
9712 #: ../fish/guestfish-actions.pod:1964
9713 msgid "inspect-get-hostname"
9714 msgstr ""
9715
9716 #. type: verbatim
9717 #: ../fish/guestfish-actions.pod:1966
9718 #, no-wrap
9719 msgid ""
9720 " inspect-get-hostname root\n"
9721 "\n"
9722 msgstr ""
9723
9724 #. type: textblock
9725 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2958
9726 msgid ""
9727 "This function returns the hostname of the operating system as found by "
9728 "inspection of the guest's configuration files."
9729 msgstr ""
9730
9731 #. type: textblock
9732 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2961
9733 msgid ""
9734 "If the hostname could not be determined, then the string C<unknown> is "
9735 "returned."
9736 msgstr ""
9737
9738 #. type: =head2
9739 #: ../fish/guestfish-actions.pod:1976
9740 msgid "inspect-get-icon"
9741 msgstr ""
9742
9743 #. type: verbatim
9744 #: ../fish/guestfish-actions.pod:1978
9745 #, no-wrap
9746 msgid ""
9747 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9748 "\n"
9749 msgstr ""
9750
9751 #. type: textblock
9752 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2987
9753 msgid ""
9754 "This function returns an icon corresponding to the inspected operating "
9755 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
9756 "to PNG if necessary)."
9757 msgstr ""
9758
9759 #. type: textblock
9760 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2991
9761 msgid ""
9762 "If it was not possible to get an icon this function returns a zero-length "
9763 "(non-NULL) buffer.  I<Callers must check for this case>."
9764 msgstr ""
9765
9766 #. type: textblock
9767 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2994
9768 msgid ""
9769 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9770 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9771 "this file will be returned.  You can disable favicons by passing the "
9772 "optional C<favicon> boolean as false (default is true)."
9773 msgstr ""
9774
9775 #. type: textblock
9776 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3000
9777 msgid ""
9778 "If finding the favicon fails, then we look in other places in the guest for "
9779 "a suitable icon."
9780 msgstr ""
9781
9782 #. type: textblock
9783 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3003
9784 msgid ""
9785 "If the optional C<highquality> boolean is true then only high quality icons "
9786 "are returned, which means only icons of high resolution with an alpha "
9787 "channel.  The default (false) is to return any icon we can, even if it is of "
9788 "substandard quality."
9789 msgstr ""
9790
9791 #. type: textblock
9792 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3014
9793 msgid ""
9794 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9795 "before you call this, since it needs to read information from the guest "
9796 "filesystem during the call."
9797 msgstr ""
9798
9799 #. type: textblock
9800 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3020
9801 msgid ""
9802 "B<Security:> The icon data comes from the untrusted guest, and should be "
9803 "treated with caution.  PNG files have been known to contain exploits.  "
9804 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9805 "trying to process or display the icon."
9806 msgstr ""
9807
9808 #. type: textblock
9809 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
9810 msgid ""
9811 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
9812 "tries to return the largest, highest quality icon available.  The "
9813 "application must scale the icon to the required size."
9814 msgstr ""
9815
9816 #. type: textblock
9817 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3035
9818 msgid ""
9819 "Extracting icons from Windows guests requires the external C<wrestool> "
9820 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9821 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
9822 "installed separately."
9823 msgstr ""
9824
9825 #. type: textblock
9826 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3042
9827 msgid ""
9828 "Operating system icons are usually trademarks.  Seek legal advice before "
9829 "using trademarks in applications."
9830 msgstr ""
9831
9832 #. type: =head2
9833 #: ../fish/guestfish-actions.pod:2042
9834 msgid "inspect-get-major-version"
9835 msgstr ""
9836
9837 #. type: verbatim
9838 #: ../fish/guestfish-actions.pod:2044
9839 #, no-wrap
9840 msgid ""
9841 " inspect-get-major-version root\n"
9842 "\n"
9843 msgstr ""
9844
9845 #. type: textblock
9846 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3083
9847 msgid ""
9848 "This returns the major version number of the inspected operating system."
9849 msgstr ""
9850
9851 #. type: textblock
9852 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3086
9853 msgid ""
9854 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9855 "popular public names used by the operating system.  Notably the operating "
9856 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9857 "1).  You can find out the real versions corresponding to releases of Windows "
9858 "by consulting Wikipedia or MSDN."
9859 msgstr ""
9860
9861 #. type: textblock
9862 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
9863 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3110
9864 msgid "If the version could not be determined, then C<0> is returned."
9865 msgstr ""
9866
9867 #. type: =head2
9868 #: ../fish/guestfish-actions.pod:2060
9869 msgid "inspect-get-minor-version"
9870 msgstr ""
9871
9872 #. type: verbatim
9873 #: ../fish/guestfish-actions.pod:2062
9874 #, no-wrap
9875 msgid ""
9876 " inspect-get-minor-version root\n"
9877 "\n"
9878 msgstr ""
9879
9880 #. type: textblock
9881 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3107
9882 msgid ""
9883 "This returns the minor version number of the inspected operating system."
9884 msgstr ""
9885
9886 #. type: textblock
9887 #: ../fish/guestfish-actions.pod:2069
9888 msgid ""
9889 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9890 "get-major-version>."
9891 msgstr ""
9892
9893 #. type: =head2
9894 #: ../fish/guestfish-actions.pod:2072
9895 msgid "inspect-get-mountpoints"
9896 msgstr ""
9897
9898 #. type: verbatim
9899 #: ../fish/guestfish-actions.pod:2074
9900 #, no-wrap
9901 msgid ""
9902 " inspect-get-mountpoints root\n"
9903 "\n"
9904 msgstr ""
9905
9906 #. type: textblock
9907 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3125
9908 msgid ""
9909 "This returns a hash of where we think the filesystems associated with this "
9910 "operating system should be mounted.  Callers should note that this is at "
9911 "best an educated guess made by reading configuration files such as C</etc/"
9912 "fstab>.  I<In particular note> that this may return filesystems which are "
9913 "non-existent or not mountable and callers should be prepared to handle or "
9914 "ignore failures if they try to mount them."
9915 msgstr ""
9916
9917 #. type: textblock
9918 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3134
9919 msgid ""
9920 "Each element in the returned hashtable has a key which is the path of the "
9921 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9922 "mounted there (eg. C</dev/sda1>)."
9923 msgstr ""
9924
9925 #. type: textblock
9926 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3139
9927 msgid ""
9928 "Non-mounted devices such as swap devices are I<not> returned in this list."
9929 msgstr ""
9930
9931 #. type: textblock
9932 #: ../fish/guestfish-actions.pod:2093
9933 msgid ""
9934 "For operating systems like Windows which still use drive letters, this call "
9935 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9936 "information about the mapping of drive letters to partitions, see L</inspect-"
9937 "get-drive-mappings>."
9938 msgstr ""
9939
9940 #. type: textblock
9941 #: ../fish/guestfish-actions.pod:2099
9942 msgid ""
9943 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9944 "get-filesystems>."
9945 msgstr ""
9946
9947 #. type: =head2
9948 #: ../fish/guestfish-actions.pod:2102
9949 msgid "inspect-get-package-format"
9950 msgstr ""
9951
9952 #. type: verbatim
9953 #: ../fish/guestfish-actions.pod:2104
9954 #, no-wrap
9955 msgid ""
9956 " inspect-get-package-format root\n"
9957 "\n"
9958 msgstr ""
9959
9960 #. type: textblock
9961 #: ../fish/guestfish-actions.pod:2106
9962 msgid ""
9963 "This function and L</inspect-get-package-management> return the package "
9964 "format and package management tool used by the inspected operating system.  "
9965 "For example for Fedora these functions would return C<rpm> (package format) "
9966 "and C<yum> (package management)."
9967 msgstr ""
9968
9969 #. type: textblock
9970 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3171
9971 msgid ""
9972 "This returns the string C<unknown> if we could not determine the package "
9973 "format I<or> if the operating system does not have a real packaging system "
9974 "(eg. Windows)."
9975 msgstr ""
9976
9977 #. type: textblock
9978 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3175
9979 msgid ""
9980 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9981 "Future versions of libguestfs may return other strings."
9982 msgstr ""
9983
9984 #. type: =head2
9985 #: ../fish/guestfish-actions.pod:2121
9986 msgid "inspect-get-package-management"
9987 msgstr ""
9988
9989 #. type: verbatim
9990 #: ../fish/guestfish-actions.pod:2123
9991 #, no-wrap
9992 msgid ""
9993 " inspect-get-package-management root\n"
9994 "\n"
9995 msgstr ""
9996
9997 #. type: textblock
9998 #: ../fish/guestfish-actions.pod:2125
9999 msgid ""
10000 "L</inspect-get-package-format> and this function return the package format "
10001 "and package management tool used by the inspected operating system.  For "
10002 "example for Fedora these functions would return C<rpm> (package format) and "
10003 "C<yum> (package management)."
10004 msgstr ""
10005
10006 #. type: textblock
10007 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3197
10008 msgid ""
10009 "This returns the string C<unknown> if we could not determine the package "
10010 "management tool I<or> if the operating system does not have a real packaging "
10011 "system (eg. Windows)."
10012 msgstr ""
10013
10014 #. type: textblock
10015 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3201
10016 msgid ""
10017 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10018 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
10019 "libguestfs may return other strings."
10020 msgstr ""
10021
10022 #. type: =head2
10023 #: ../fish/guestfish-actions.pod:2142
10024 msgid "inspect-get-product-name"
10025 msgstr ""
10026
10027 #. type: verbatim
10028 #: ../fish/guestfish-actions.pod:2144
10029 #, no-wrap
10030 msgid ""
10031 " inspect-get-product-name root\n"
10032 "\n"
10033 msgstr ""
10034
10035 #. type: textblock
10036 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3219
10037 msgid ""
10038 "This returns the product name of the inspected operating system.  The "
10039 "product name is generally some freeform string which can be displayed to the "
10040 "user, but should not be parsed by programs."
10041 msgstr ""
10042
10043 #. type: textblock
10044 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3224
10045 msgid ""
10046 "If the product name could not be determined, then the string C<unknown> is "
10047 "returned."
10048 msgstr ""
10049
10050 #. type: =head2
10051 #: ../fish/guestfish-actions.pod:2156
10052 msgid "inspect-get-product-variant"
10053 msgstr ""
10054
10055 #. type: verbatim
10056 #: ../fish/guestfish-actions.pod:2158
10057 #, no-wrap
10058 msgid ""
10059 " inspect-get-product-variant root\n"
10060 "\n"
10061 msgstr ""
10062
10063 #. type: textblock
10064 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3240
10065 msgid "This returns the product variant of the inspected operating system."
10066 msgstr ""
10067
10068 #. type: textblock
10069 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3243
10070 msgid ""
10071 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10072 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10073 "is usually a string such as C<Client> or C<Server> (other values are "
10074 "possible).  This can be used to distinguish consumer and enterprise versions "
10075 "of Windows that have the same version number (for example, Windows 7 and "
10076 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10077 "the latter is C<Server>)."
10078 msgstr ""
10079
10080 #. type: textblock
10081 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
10082 msgid ""
10083 "For enterprise Linux guests, in future we intend this to return the product "
10084 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10085 "implemented at present."
10086 msgstr ""
10087
10088 #. type: textblock
10089 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3256
10090 msgid ""
10091 "If the product variant could not be determined, then the string C<unknown> "
10092 "is returned."
10093 msgstr ""
10094
10095 #. type: textblock
10096 #: ../fish/guestfish-actions.pod:2179
10097 msgid ""
10098 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10099 "get-product-name>, L</inspect-get-major-version>."
10100 msgstr ""
10101
10102 #. type: =head2
10103 #: ../fish/guestfish-actions.pod:2183
10104 msgid "inspect-get-roots"
10105 msgstr ""
10106
10107 #. type: verbatim
10108 #: ../fish/guestfish-actions.pod:2185
10109 #, no-wrap
10110 msgid ""
10111 " inspect-get-roots\n"
10112 "\n"
10113 msgstr ""
10114
10115 #. type: textblock
10116 #: ../fish/guestfish-actions.pod:2187
10117 msgid ""
10118 "This function is a convenient way to get the list of root devices, as "
10119 "returned from a previous call to L</inspect-os>, but without redoing the "
10120 "whole inspection process."
10121 msgstr ""
10122
10123 #. type: textblock
10124 #: ../fish/guestfish-actions.pod:2191
10125 msgid ""
10126 "This returns an empty list if either no root devices were found or the "
10127 "caller has not called L</inspect-os>."
10128 msgstr ""
10129
10130 #. type: =head2
10131 #: ../fish/guestfish-actions.pod:2196
10132 msgid "inspect-get-type"
10133 msgstr ""
10134
10135 #. type: verbatim
10136 #: ../fish/guestfish-actions.pod:2198
10137 #, no-wrap
10138 msgid ""
10139 " inspect-get-type root\n"
10140 "\n"
10141 msgstr ""
10142
10143 #. type: textblock
10144 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3294
10145 msgid ""
10146 "This returns the type of the inspected operating system.  Currently defined "
10147 "types are:"
10148 msgstr ""
10149
10150 #. type: =item
10151 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3299
10152 msgid "\"linux\""
10153 msgstr ""
10154
10155 #. type: textblock
10156 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3301
10157 msgid "Any Linux-based operating system."
10158 msgstr ""
10159
10160 #. type: textblock
10161 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3305
10162 msgid "Any Microsoft Windows operating system."
10163 msgstr ""
10164
10165 #. type: =item
10166 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3307
10167 msgid "\"freebsd\""
10168 msgstr ""
10169
10170 #. type: textblock
10171 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3309
10172 msgid "FreeBSD."
10173 msgstr ""
10174
10175 #. type: textblock
10176 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3313
10177 msgid "The operating system type could not be determined."
10178 msgstr ""
10179
10180 #. type: =head2
10181 #: ../fish/guestfish-actions.pod:2228
10182 msgid "inspect-get-windows-current-control-set"
10183 msgstr ""
10184
10185 #. type: verbatim
10186 #: ../fish/guestfish-actions.pod:2230
10187 #, no-wrap
10188 msgid ""
10189 " inspect-get-windows-current-control-set root\n"
10190 "\n"
10191 msgstr ""
10192
10193 #. type: textblock
10194 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3333
10195 msgid ""
10196 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10197 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10198 msgstr ""
10199
10200 #. type: textblock
10201 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3336
10202 msgid ""
10203 "This call assumes that the guest is Windows and that the Registry could be "
10204 "examined by inspection.  If this is not the case then an error is returned."
10205 msgstr ""
10206
10207 #. type: =head2
10208 #: ../fish/guestfish-actions.pod:2241
10209 msgid "inspect-get-windows-systemroot"
10210 msgstr ""
10211
10212 #. type: verbatim
10213 #: ../fish/guestfish-actions.pod:2243
10214 #, no-wrap
10215 msgid ""
10216 " inspect-get-windows-systemroot root\n"
10217 "\n"
10218 msgstr ""
10219
10220 #. type: textblock
10221 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3353
10222 msgid ""
10223 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10224 "is a directory path such as C</WINDOWS>."
10225 msgstr ""
10226
10227 #. type: textblock
10228 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3356
10229 msgid ""
10230 "This call assumes that the guest is Windows and that the systemroot could be "
10231 "determined by inspection.  If this is not the case then an error is returned."
10232 msgstr ""
10233
10234 #. type: =head2
10235 #: ../fish/guestfish-actions.pod:2254
10236 msgid "inspect-is-live"
10237 msgstr ""
10238
10239 #. type: verbatim
10240 #: ../fish/guestfish-actions.pod:2256
10241 #, no-wrap
10242 msgid ""
10243 " inspect-is-live root\n"
10244 "\n"
10245 msgstr ""
10246
10247 #. type: textblock
10248 #: ../fish/guestfish-actions.pod:2258
10249 msgid ""
10250 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10251 "then this returns true if a live image was detected on the disk."
10252 msgstr ""
10253
10254 #. type: =head2
10255 #: ../fish/guestfish-actions.pod:2264
10256 msgid "inspect-is-multipart"
10257 msgstr ""
10258
10259 #. type: verbatim
10260 #: ../fish/guestfish-actions.pod:2266
10261 #, no-wrap
10262 msgid ""
10263 " inspect-is-multipart root\n"
10264 "\n"
10265 msgstr ""
10266
10267 #. type: textblock
10268 #: ../fish/guestfish-actions.pod:2268
10269 msgid ""
10270 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10271 "then this returns true if the disk is part of a set."
10272 msgstr ""
10273
10274 #. type: =head2
10275 #: ../fish/guestfish-actions.pod:2274
10276 msgid "inspect-is-netinst"
10277 msgstr ""
10278
10279 #. type: verbatim
10280 #: ../fish/guestfish-actions.pod:2276
10281 #, no-wrap
10282 msgid ""
10283 " inspect-is-netinst root\n"
10284 "\n"
10285 msgstr ""
10286
10287 #. type: textblock
10288 #: ../fish/guestfish-actions.pod:2278
10289 msgid ""
10290 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10291 "then this returns true if the disk is a network installer, ie. not a self-"
10292 "contained install CD but one which is likely to require network access to "
10293 "complete the install."
10294 msgstr ""
10295
10296 #. type: =head2
10297 #: ../fish/guestfish-actions.pod:2286
10298 msgid "inspect-list-applications"
10299 msgstr ""
10300
10301 #. type: verbatim
10302 #: ../fish/guestfish-actions.pod:2288
10303 #, no-wrap
10304 msgid ""
10305 " inspect-list-applications root\n"
10306 "\n"
10307 msgstr ""
10308
10309 #. type: textblock
10310 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3423
10311 msgid "Return the list of applications installed in the operating system."
10312 msgstr ""
10313
10314 #. type: textblock
10315 #: ../fish/guestfish-actions.pod:2292
10316 msgid ""
10317 "I<Note:> This call works differently from other parts of the inspection "
10318 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10319 "then mount up the disks, before calling this.  Listing applications is a "
10320 "significantly more difficult operation which requires access to the full "
10321 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10322 "are just returning data cached in the libguestfs handle, this call actually "
10323 "reads parts of the mounted filesystems during the call."
10324 msgstr ""
10325
10326 #. type: textblock
10327 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3435
10328 msgid ""
10329 "This returns an empty list if the inspection code was not able to determine "
10330 "the list of applications."
10331 msgstr ""
10332
10333 #. type: textblock
10334 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3438
10335 msgid "The application structure contains the following fields:"
10336 msgstr ""
10337
10338 #. type: =item
10339 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3442
10340 msgid "C<app_name>"
10341 msgstr ""
10342
10343 #. type: textblock
10344 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3444
10345 msgid ""
10346 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10347 "guests, this is the package name."
10348 msgstr ""
10349
10350 #. type: =item
10351 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3447
10352 msgid "C<app_display_name>"
10353 msgstr ""
10354
10355 #. type: textblock
10356 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3449
10357 msgid ""
10358 "The display name of the application, sometimes localized to the install "
10359 "language of the guest operating system."
10360 msgstr ""
10361
10362 #. type: textblock
10363 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3452
10364 msgid ""
10365 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10366 "to display something can use C<app_name> instead."
10367 msgstr ""
10368
10369 #. type: =item
10370 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
10371 msgid "C<app_epoch>"
10372 msgstr ""
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
10376 msgid ""
10377 "For package managers which use epochs, this contains the epoch of the "
10378 "package (an integer).  If unavailable, this is returned as C<0>."
10379 msgstr ""
10380
10381 #. type: =item
10382 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
10383 msgid "C<app_version>"
10384 msgstr ""
10385
10386 #. type: textblock
10387 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
10388 msgid ""
10389 "The version string of the application or package.  If unavailable this is "
10390 "returned as an empty string C<\"\">."
10391 msgstr ""
10392
10393 #. type: =item
10394 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
10395 msgid "C<app_release>"
10396 msgstr ""
10397
10398 #. type: textblock
10399 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3467
10400 msgid ""
10401 "The release string of the application or package, for package managers that "
10402 "use this.  If unavailable this is returned as an empty string C<\"\">."
10403 msgstr ""
10404
10405 #. type: =item
10406 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3471
10407 msgid "C<app_install_path>"
10408 msgstr ""
10409
10410 #. type: textblock
10411 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
10412 msgid ""
10413 "The installation path of the application (on operating systems such as "
10414 "Windows which use installation paths).  This path is in the format used by "
10415 "the guest operating system, it is not a libguestfs path."
10416 msgstr ""
10417
10418 #. type: textblock
10419 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
10420 msgid "If unavailable this is returned as an empty string C<\"\">."
10421 msgstr ""
10422
10423 #. type: =item
10424 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
10425 msgid "C<app_trans_path>"
10426 msgstr ""
10427
10428 #. type: textblock
10429 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3482
10430 msgid ""
10431 "The install path translated into a libguestfs path.  If unavailable this is "
10432 "returned as an empty string C<\"\">."
10433 msgstr ""
10434
10435 #. type: =item
10436 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3485
10437 msgid "C<app_publisher>"
10438 msgstr ""
10439
10440 #. type: textblock
10441 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3487
10442 msgid ""
10443 "The name of the publisher of the application, for package managers that use "
10444 "this.  If unavailable this is returned as an empty string C<\"\">."
10445 msgstr ""
10446
10447 #. type: =item
10448 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
10449 msgid "C<app_url>"
10450 msgstr ""
10451
10452 #. type: textblock
10453 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
10454 msgid ""
10455 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10456 "returned as an empty string C<\"\">."
10457 msgstr ""
10458
10459 #. type: =item
10460 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3496
10461 msgid "C<app_source_package>"
10462 msgstr ""
10463
10464 #. type: textblock
10465 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
10466 msgid ""
10467 "For packaging systems which support this, the name of the source package.  "
10468 "If unavailable this is returned as an empty string C<\"\">."
10469 msgstr ""
10470
10471 #. type: =item
10472 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3501
10473 msgid "C<app_summary>"
10474 msgstr ""
10475
10476 #. type: textblock
10477 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3503
10478 msgid ""
10479 "A short (usually one line) description of the application or package.  If "
10480 "unavailable this is returned as an empty string C<\"\">."
10481 msgstr ""
10482
10483 #. type: =item
10484 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
10485 msgid "C<app_description>"
10486 msgstr ""
10487
10488 #. type: textblock
10489 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3508
10490 msgid ""
10491 "A longer description of the application or package.  If unavailable this is "
10492 "returned as an empty string C<\"\">."
10493 msgstr ""
10494
10495 #. type: =head2
10496 #: ../fish/guestfish-actions.pod:2382
10497 msgid "inspect-os"
10498 msgstr ""
10499
10500 #. type: verbatim
10501 #: ../fish/guestfish-actions.pod:2384
10502 #, no-wrap
10503 msgid ""
10504 " inspect-os\n"
10505 "\n"
10506 msgstr ""
10507
10508 #. type: textblock
10509 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3526
10510 msgid ""
10511 "This function uses other libguestfs functions and certain heuristics to "
10512 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10513 "for operating systems."
10514 msgstr ""
10515
10516 #. type: textblock
10517 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3530
10518 msgid "The list returned is empty if no operating systems were found."
10519 msgstr ""
10520
10521 #. type: textblock
10522 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3532
10523 msgid ""
10524 "If one operating system was found, then this returns a list with a single "
10525 "element, which is the name of the root filesystem of this operating system.  "
10526 "It is also possible for this function to return a list containing more than "
10527 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10528 "element being the root filesystem of one of the operating systems."
10529 msgstr ""
10530
10531 #. type: textblock
10532 #: ../fish/guestfish-actions.pod:2399
10533 msgid ""
10534 "You can pass the root string(s) returned to other L</inspect-get-*> "
10535 "functions in order to query further information about each operating system, "
10536 "such as the name and version."
10537 msgstr ""
10538
10539 #. type: textblock
10540 #: ../fish/guestfish-actions.pod:2404
10541 msgid ""
10542 "This function uses other libguestfs features such as L</mount-ro> and L</"
10543 "umount-all> in order to mount and unmount filesystems and look at the "
10544 "contents.  This should be called with no disks currently mounted.  The "
10545 "function may also use Augeas, so any existing Augeas handle will be closed."
10546 msgstr ""
10547
10548 #. type: textblock
10549 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3550
10550 msgid ""
10551 "This function cannot decrypt encrypted disks.  The caller must do that first "
10552 "(supplying the necessary keys) if the disk is encrypted."
10553 msgstr ""
10554
10555 #. type: textblock
10556 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
10557 #: ../fish/guestfish-actions.pod:2673
10558 msgid "See also L</list-filesystems>."
10559 msgstr ""
10560
10561 #. type: =head2
10562 #: ../fish/guestfish-actions.pod:2418
10563 msgid "is-blockdev"
10564 msgstr ""
10565
10566 #. type: verbatim
10567 #: ../fish/guestfish-actions.pod:2420
10568 #, no-wrap
10569 msgid ""
10570 " is-blockdev path\n"
10571 "\n"
10572 msgstr ""
10573
10574 #. type: textblock
10575 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3570
10576 msgid ""
10577 "This returns C<true> if and only if there is a block device with the given "
10578 "C<path> name."
10579 msgstr ""
10580
10581 #. type: textblock
10582 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
10583 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
10584 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
10585 #: ../fish/guestfish-actions.pod:2524
10586 msgid "See also L</stat>."
10587 msgstr ""
10588
10589 #. type: =head2
10590 #: ../fish/guestfish-actions.pod:2427
10591 msgid "is-busy"
10592 msgstr ""
10593
10594 #. type: verbatim
10595 #: ../fish/guestfish-actions.pod:2429
10596 #, no-wrap
10597 msgid ""
10598 " is-busy\n"
10599 "\n"
10600 msgstr ""
10601
10602 #. type: textblock
10603 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3584
10604 msgid ""
10605 "This returns true iff this handle is busy processing a command (in the "
10606 "C<BUSY> state)."
10607 msgstr ""
10608
10609 #. type: =head2
10610 #: ../fish/guestfish-actions.pod:2436
10611 msgid "is-chardev"
10612 msgstr ""
10613
10614 #. type: verbatim
10615 #: ../fish/guestfish-actions.pod:2438
10616 #, no-wrap
10617 msgid ""
10618 " is-chardev path\n"
10619 "\n"
10620 msgstr ""
10621
10622 #. type: textblock
10623 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3599
10624 msgid ""
10625 "This returns C<true> if and only if there is a character device with the "
10626 "given C<path> name."
10627 msgstr ""
10628
10629 #. type: =head2
10630 #: ../fish/guestfish-actions.pod:2445
10631 msgid "is-config"
10632 msgstr ""
10633
10634 #. type: verbatim
10635 #: ../fish/guestfish-actions.pod:2447
10636 #, no-wrap
10637 msgid ""
10638 " is-config\n"
10639 "\n"
10640 msgstr ""
10641
10642 #. type: textblock
10643 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3613
10644 msgid ""
10645 "This returns true iff this handle is being configured (in the C<CONFIG> "
10646 "state)."
10647 msgstr ""
10648
10649 #. type: =head2
10650 #: ../fish/guestfish-actions.pod:2454
10651 msgid "is-dir"
10652 msgstr ""
10653
10654 #. type: verbatim
10655 #: ../fish/guestfish-actions.pod:2456
10656 #, no-wrap
10657 msgid ""
10658 " is-dir path\n"
10659 "\n"
10660 msgstr ""
10661
10662 #. type: textblock
10663 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3628
10664 msgid ""
10665 "This returns C<true> if and only if there is a directory with the given "
10666 "C<path> name.  Note that it returns false for other objects like files."
10667 msgstr ""
10668
10669 #. type: =head2
10670 #: ../fish/guestfish-actions.pod:2464
10671 msgid "is-fifo"
10672 msgstr ""
10673
10674 #. type: verbatim
10675 #: ../fish/guestfish-actions.pod:2466
10676 #, no-wrap
10677 msgid ""
10678 " is-fifo path\n"
10679 "\n"
10680 msgstr ""
10681
10682 #. type: textblock
10683 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3644
10684 msgid ""
10685 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10686 "given C<path> name."
10687 msgstr ""
10688
10689 #. type: =head2
10690 #: ../fish/guestfish-actions.pod:2473
10691 msgid "is-file"
10692 msgstr ""
10693
10694 #. type: verbatim
10695 #: ../fish/guestfish-actions.pod:2475
10696 #, no-wrap
10697 msgid ""
10698 " is-file path\n"
10699 "\n"
10700 msgstr ""
10701
10702 #. type: textblock
10703 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3659
10704 msgid ""
10705 "This returns C<true> if and only if there is a regular file with the given "
10706 "C<path> name.  Note that it returns false for other objects like directories."
10707 msgstr ""
10708
10709 #. type: =head2
10710 #: ../fish/guestfish-actions.pod:2483
10711 msgid "is-launching"
10712 msgstr ""
10713
10714 #. type: verbatim
10715 #: ../fish/guestfish-actions.pod:2485
10716 #, no-wrap
10717 msgid ""
10718 " is-launching\n"
10719 "\n"
10720 msgstr ""
10721
10722 #. type: textblock
10723 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3674
10724 msgid ""
10725 "This returns true iff this handle is launching the subprocess (in the "
10726 "C<LAUNCHING> state)."
10727 msgstr ""
10728
10729 #. type: =head2
10730 #: ../fish/guestfish-actions.pod:2492
10731 msgid "is-lv"
10732 msgstr ""
10733
10734 #. type: verbatim
10735 #: ../fish/guestfish-actions.pod:2494
10736 #, no-wrap
10737 msgid ""
10738 " is-lv device\n"
10739 "\n"
10740 msgstr ""
10741
10742 #. type: textblock
10743 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3689
10744 msgid ""
10745 "This command tests whether C<device> is a logical volume, and returns true "
10746 "iff this is the case."
10747 msgstr ""
10748
10749 #. type: =head2
10750 #: ../fish/guestfish-actions.pod:2499
10751 msgid "is-ready"
10752 msgstr ""
10753
10754 #. type: verbatim
10755 #: ../fish/guestfish-actions.pod:2501
10756 #, no-wrap
10757 msgid ""
10758 " is-ready\n"
10759 "\n"
10760 msgstr ""
10761
10762 #. type: textblock
10763 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3701
10764 msgid ""
10765 "This returns true iff this handle is ready to accept commands (in the "
10766 "C<READY> state)."
10767 msgstr ""
10768
10769 #. type: =head2
10770 #: ../fish/guestfish-actions.pod:2508
10771 msgid "is-socket"
10772 msgstr ""
10773
10774 #. type: verbatim
10775 #: ../fish/guestfish-actions.pod:2510
10776 #, no-wrap
10777 msgid ""
10778 " is-socket path\n"
10779 "\n"
10780 msgstr ""
10781
10782 #. type: textblock
10783 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3716
10784 msgid ""
10785 "This returns C<true> if and only if there is a Unix domain socket with the "
10786 "given C<path> name."
10787 msgstr ""
10788
10789 #. type: =head2
10790 #: ../fish/guestfish-actions.pod:2517
10791 msgid "is-symlink"
10792 msgstr ""
10793
10794 #. type: verbatim
10795 #: ../fish/guestfish-actions.pod:2519
10796 #, no-wrap
10797 msgid ""
10798 " is-symlink path\n"
10799 "\n"
10800 msgstr ""
10801
10802 #. type: textblock
10803 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3731
10804 msgid ""
10805 "This returns C<true> if and only if there is a symbolic link with the given "
10806 "C<path> name."
10807 msgstr ""
10808
10809 #. type: =head2
10810 #: ../fish/guestfish-actions.pod:2526
10811 msgid "is-zero"
10812 msgstr ""
10813
10814 #. type: verbatim
10815 #: ../fish/guestfish-actions.pod:2528
10816 #, no-wrap
10817 msgid ""
10818 " is-zero path\n"
10819 "\n"
10820 msgstr ""
10821
10822 #. type: textblock
10823 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3746
10824 msgid ""
10825 "This returns true iff the file exists and the file is empty or it contains "
10826 "all zero bytes."
10827 msgstr ""
10828
10829 #. type: =head2
10830 #: ../fish/guestfish-actions.pod:2533
10831 msgid "is-zero-device"
10832 msgstr ""
10833
10834 #. type: verbatim
10835 #: ../fish/guestfish-actions.pod:2535
10836 #, no-wrap
10837 msgid ""
10838 " is-zero-device device\n"
10839 "\n"
10840 msgstr ""
10841
10842 #. type: textblock
10843 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3759
10844 msgid "This returns true iff the device exists and contains all zero bytes."
10845 msgstr ""
10846
10847 #. type: textblock
10848 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3761
10849 msgid "Note that for large devices this can take a long time to run."
10850 msgstr ""
10851
10852 #. type: =head2
10853 #: ../fish/guestfish-actions.pod:2541
10854 msgid "kill-subprocess"
10855 msgstr ""
10856
10857 #. type: verbatim
10858 #: ../fish/guestfish-actions.pod:2543
10859 #, no-wrap
10860 msgid ""
10861 " kill-subprocess\n"
10862 "\n"
10863 msgstr ""
10864
10865 #. type: textblock
10866 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3772
10867 msgid "This kills the qemu subprocess.  You should never need to call this."
10868 msgstr ""
10869
10870 #. type: =head2
10871 #: ../fish/guestfish-actions.pod:2547
10872 msgid "launch"
10873 msgstr ""
10874
10875 #. type: =head2
10876 #: ../fish/guestfish-actions.pod:2549
10877 msgid "run"
10878 msgstr ""
10879
10880 #. type: verbatim
10881 #: ../fish/guestfish-actions.pod:2551
10882 #, no-wrap
10883 msgid ""
10884 " launch\n"
10885 "\n"
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3783
10890 msgid ""
10891 "Internally libguestfs is implemented by running a virtual machine using "
10892 "L<qemu(1)>."
10893 msgstr ""
10894
10895 #. type: textblock
10896 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3786
10897 msgid ""
10898 "You should call this after configuring the handle (eg. adding drives) but "
10899 "before performing any actions."
10900 msgstr ""
10901
10902 #. type: =head2
10903 #: ../fish/guestfish-actions.pod:2559
10904 msgid "lchown"
10905 msgstr ""
10906
10907 #. type: verbatim
10908 #: ../fish/guestfish-actions.pod:2561
10909 #, no-wrap
10910 msgid ""
10911 " lchown owner group path\n"
10912 "\n"
10913 msgstr ""
10914
10915 #. type: textblock
10916 #: ../fish/guestfish-actions.pod:2563
10917 msgid ""
10918 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
10919 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10920 "target."
10921 msgstr ""
10922
10923 #. type: =head2
10924 #: ../fish/guestfish-actions.pod:2571
10925 msgid "lgetxattr"
10926 msgstr ""
10927
10928 #. type: verbatim
10929 #: ../fish/guestfish-actions.pod:2573
10930 #, no-wrap
10931 msgid ""
10932 " lgetxattr path name\n"
10933 "\n"
10934 msgstr ""
10935
10936 #. type: textblock
10937 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3826
10938 msgid ""
10939 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10940 "is a symlink, then this call returns an extended attribute from the symlink."
10941 msgstr ""
10942
10943 #. type: textblock
10944 #: ../fish/guestfish-actions.pod:2589
10945 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10946 msgstr ""
10947
10948 #. type: =head2
10949 #: ../fish/guestfish-actions.pod:2591
10950 msgid "lgetxattrs"
10951 msgstr ""
10952
10953 #. type: verbatim
10954 #: ../fish/guestfish-actions.pod:2593
10955 #, no-wrap
10956 msgid ""
10957 " lgetxattrs path\n"
10958 "\n"
10959 msgstr ""
10960
10961 #. type: textblock
10962 #: ../fish/guestfish-actions.pod:2595
10963 msgid ""
10964 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10965 "it returns the extended attributes of the link itself."
10966 msgstr ""
10967
10968 #. type: =head2
10969 #: ../fish/guestfish-actions.pod:2599
10970 msgid "list-9p"
10971 msgstr ""
10972
10973 #. type: verbatim
10974 #: ../fish/guestfish-actions.pod:2601
10975 #, no-wrap
10976 msgid ""
10977 " list-9p\n"
10978 "\n"
10979 msgstr ""
10980
10981 #. type: textblock
10982 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3869
10983 msgid ""
10984 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10985 "returned."
10986 msgstr ""
10987
10988 #. type: =head2
10989 #: ../fish/guestfish-actions.pod:2606
10990 msgid "list-devices"
10991 msgstr ""
10992
10993 #. type: verbatim
10994 #: ../fish/guestfish-actions.pod:2608
10995 #, no-wrap
10996 msgid ""
10997 " list-devices\n"
10998 "\n"
10999 msgstr ""
11000
11001 #. type: textblock
11002 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3883
11003 msgid "List all the block devices."
11004 msgstr ""
11005
11006 #. type: textblock
11007 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3885
11008 msgid "The full block device names are returned, eg. C</dev/sda>."
11009 msgstr ""
11010
11011 #. type: =head2
11012 #: ../fish/guestfish-actions.pod:2616
11013 msgid "list-dm-devices"
11014 msgstr ""
11015
11016 #. type: verbatim
11017 #: ../fish/guestfish-actions.pod:2618
11018 #, no-wrap
11019 msgid ""
11020 " list-dm-devices\n"
11021 "\n"
11022 msgstr ""
11023
11024 #. type: textblock
11025 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3900
11026 msgid "List all device mapper devices."
11027 msgstr ""
11028
11029 #. type: textblock
11030 #: ../fish/guestfish-actions.pod:2622
11031 msgid ""
11032 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11033 "previous call to L</luks-open>."
11034 msgstr ""
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:2625
11038 msgid ""
11039 "Device mapper devices which correspond to logical volumes are I<not> "
11040 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11041 msgstr ""
11042
11043 #. type: =head2
11044 #: ../fish/guestfish-actions.pod:2629
11045 msgid "list-filesystems"
11046 msgstr ""
11047
11048 #. type: verbatim
11049 #: ../fish/guestfish-actions.pod:2631
11050 #, no-wrap
11051 msgid ""
11052 " list-filesystems\n"
11053 "\n"
11054 msgstr ""
11055
11056 #. type: textblock
11057 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3920
11058 msgid ""
11059 "This inspection command looks for filesystems on partitions, block devices "
11060 "and logical volumes, returning a list of devices containing filesystems and "
11061 "their type."
11062 msgstr ""
11063
11064 #. type: textblock
11065 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3924
11066 msgid ""
11067 "The return value is a hash, where the keys are the devices containing "
11068 "filesystems, and the values are the filesystem types.  For example:"
11069 msgstr ""
11070
11071 #. type: verbatim
11072 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3928
11073 #, no-wrap
11074 msgid ""
11075 " \"/dev/sda1\" => \"ntfs\"\n"
11076 " \"/dev/sda2\" => \"ext2\"\n"
11077 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11078 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11079 "\n"
11080 msgstr ""
11081
11082 #. type: textblock
11083 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
11084 msgid ""
11085 "The value can have the special value \"unknown\", meaning the content of the "
11086 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11087 msgstr ""
11088
11089 #. type: textblock
11090 #: ../fish/guestfish-actions.pod:2650
11091 msgid ""
11092 "This command runs other libguestfs commands, which might include L</mount> "
11093 "and L</umount>, and therefore you should use this soon after launch and only "
11094 "when nothing is mounted."
11095 msgstr ""
11096
11097 #. type: textblock
11098 #: ../fish/guestfish-actions.pod:2654
11099 msgid ""
11100 "Not all of the filesystems returned will be mountable.  In particular, swap "
11101 "partitions are returned in the list.  Also this command does not check that "
11102 "each filesystem found is valid and mountable, and some filesystems might be "
11103 "mountable but require special options.  Filesystems may not all belong to a "
11104 "single logical operating system (use L</inspect-os> to look for OSes)."
11105 msgstr ""
11106
11107 #. type: =head2
11108 #: ../fish/guestfish-actions.pod:2662
11109 msgid "list-partitions"
11110 msgstr ""
11111
11112 #. type: verbatim
11113 #: ../fish/guestfish-actions.pod:2664
11114 #, no-wrap
11115 msgid ""
11116 " list-partitions\n"
11117 "\n"
11118 msgstr ""
11119
11120 #. type: textblock
11121 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3962
11122 msgid "List all the partitions detected on all block devices."
11123 msgstr ""
11124
11125 #. type: textblock
11126 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3964
11127 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11128 msgstr ""
11129
11130 #. type: textblock
11131 #: ../fish/guestfish-actions.pod:2670
11132 msgid ""
11133 "This does not return logical volumes.  For that you will need to call L</"
11134 "lvs>."
11135 msgstr ""
11136
11137 #. type: =head2
11138 #: ../fish/guestfish-actions.pod:2675
11139 msgid "ll"
11140 msgstr ""
11141
11142 #. type: verbatim
11143 #: ../fish/guestfish-actions.pod:2677
11144 #, no-wrap
11145 msgid ""
11146 " ll directory\n"
11147 "\n"
11148 msgstr ""
11149
11150 #. type: textblock
11151 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3983
11152 msgid ""
11153 "List the files in C<directory> (relative to the root directory, there is no "
11154 "cwd) in the format of 'ls -la'."
11155 msgstr ""
11156
11157 #. type: textblock
11158 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3986
11159 msgid ""
11160 "This command is mostly useful for interactive sessions.  It is I<not> "
11161 "intended that you try to parse the output string."
11162 msgstr ""
11163
11164 #. type: =head2
11165 #: ../fish/guestfish-actions.pod:2685
11166 msgid "ln"
11167 msgstr ""
11168
11169 #. type: verbatim
11170 #: ../fish/guestfish-actions.pod:2687
11171 #, no-wrap
11172 msgid ""
11173 " ln target linkname\n"
11174 "\n"
11175 msgstr ""
11176
11177 #. type: textblock
11178 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4001
11179 msgid "This command creates a hard link using the C<ln> command."
11180 msgstr ""
11181
11182 #. type: =head2
11183 #: ../fish/guestfish-actions.pod:2691
11184 msgid "ln-f"
11185 msgstr ""
11186
11187 #. type: verbatim
11188 #: ../fish/guestfish-actions.pod:2693
11189 #, no-wrap
11190 msgid ""
11191 " ln-f target linkname\n"
11192 "\n"
11193 msgstr ""
11194
11195 #. type: textblock
11196 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4014
11197 msgid ""
11198 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11199 "option removes the link (C<linkname>) if it exists already."
11200 msgstr ""
11201
11202 #. type: =head2
11203 #: ../fish/guestfish-actions.pod:2698
11204 msgid "ln-s"
11205 msgstr ""
11206
11207 #. type: verbatim
11208 #: ../fish/guestfish-actions.pod:2700
11209 #, no-wrap
11210 msgid ""
11211 " ln-s target linkname\n"
11212 "\n"
11213 msgstr ""
11214
11215 #. type: textblock
11216 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4028
11217 msgid "This command creates a symbolic link using the C<ln -s> command."
11218 msgstr ""
11219
11220 #. type: =head2
11221 #: ../fish/guestfish-actions.pod:2704
11222 msgid "ln-sf"
11223 msgstr ""
11224
11225 #. type: verbatim
11226 #: ../fish/guestfish-actions.pod:2706
11227 #, no-wrap
11228 msgid ""
11229 " ln-sf target linkname\n"
11230 "\n"
11231 msgstr ""
11232
11233 #. type: textblock
11234 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4041
11235 msgid ""
11236 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11237 "option removes the link (C<linkname>) if it exists already."
11238 msgstr ""
11239
11240 #. type: =head2
11241 #: ../fish/guestfish-actions.pod:2711
11242 msgid "lremovexattr"
11243 msgstr ""
11244
11245 #. type: verbatim
11246 #: ../fish/guestfish-actions.pod:2713
11247 #, no-wrap
11248 msgid ""
11249 " lremovexattr xattr path\n"
11250 "\n"
11251 msgstr ""
11252
11253 #. type: textblock
11254 #: ../fish/guestfish-actions.pod:2715
11255 msgid ""
11256 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11257 "it removes an extended attribute of the link itself."
11258 msgstr ""
11259
11260 #. type: =head2
11261 #: ../fish/guestfish-actions.pod:2719
11262 msgid "ls"
11263 msgstr ""
11264
11265 #. type: verbatim
11266 #: ../fish/guestfish-actions.pod:2721
11267 #, no-wrap
11268 msgid ""
11269 " ls directory\n"
11270 "\n"
11271 msgstr ""
11272
11273 #. type: textblock
11274 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4069
11275 msgid ""
11276 "List the files in C<directory> (relative to the root directory, there is no "
11277 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
11278 msgstr ""
11279
11280 #. type: textblock
11281 #: ../fish/guestfish-actions.pod:2727
11282 msgid ""
11283 "This command is mostly useful for interactive sessions.  Programs should "
11284 "probably use L</readdir> instead."
11285 msgstr ""
11286
11287 #. type: =head2
11288 #: ../fish/guestfish-actions.pod:2730
11289 msgid "lsetxattr"
11290 msgstr ""
11291
11292 #. type: verbatim
11293 #: ../fish/guestfish-actions.pod:2732
11294 #, no-wrap
11295 msgid ""
11296 " lsetxattr xattr val vallen path\n"
11297 "\n"
11298 msgstr ""
11299
11300 #. type: textblock
11301 #: ../fish/guestfish-actions.pod:2734
11302 msgid ""
11303 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11304 "sets an extended attribute of the link itself."
11305 msgstr ""
11306
11307 #. type: =head2
11308 #: ../fish/guestfish-actions.pod:2738
11309 msgid "lstat"
11310 msgstr ""
11311
11312 #. type: verbatim
11313 #: ../fish/guestfish-actions.pod:2740
11314 #, no-wrap
11315 msgid ""
11316 " lstat path\n"
11317 "\n"
11318 msgstr ""
11319
11320 #. type: textblock
11321 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552
11322 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:6890
11323 msgid "Returns file information for the given C<path>."
11324 msgstr ""
11325
11326 #. type: textblock
11327 #: ../fish/guestfish-actions.pod:2744
11328 msgid ""
11329 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11330 "the link is stat-ed, not the file it refers to."
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4111
11335 msgid "This is the same as the C<lstat(2)> system call."
11336 msgstr ""
11337
11338 #. type: =head2
11339 #: ../fish/guestfish-actions.pod:2750
11340 msgid "lstatlist"
11341 msgstr ""
11342
11343 #. type: verbatim
11344 #: ../fish/guestfish-actions.pod:2752
11345 #, no-wrap
11346 msgid ""
11347 " lstatlist path 'names ...'\n"
11348 "\n"
11349 msgstr ""
11350
11351 #. type: textblock
11352 #: ../fish/guestfish-actions.pod:2754
11353 msgid ""
11354 "This call allows you to perform the L</lstat> operation on multiple files, "
11355 "where all files are in the directory C<path>.  C<names> is the list of files "
11356 "from this directory."
11357 msgstr ""
11358
11359 #. type: textblock
11360 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4130
11361 msgid ""
11362 "On return you get a list of stat structs, with a one-to-one correspondence "
11363 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11364 "then the C<ino> field of that structure is set to C<-1>."
11365 msgstr ""
11366
11367 #. type: textblock
11368 #: ../fish/guestfish-actions.pod:2763
11369 msgid ""
11370 "This call is intended for programs that want to efficiently list a directory "
11371 "contents without making many round-trips.  See also L</lxattrlist> for a "
11372 "similarly efficient call for getting extended attributes.  Very long "
11373 "directory listings might cause the protocol message size to be exceeded, "
11374 "causing this call to fail.  The caller must split up such requests into "
11375 "smaller groups of names."
11376 msgstr ""
11377
11378 #. type: =head2
11379 #: ../fish/guestfish-actions.pod:2771
11380 msgid "luks-add-key"
11381 msgstr ""
11382
11383 #. type: verbatim
11384 #: ../fish/guestfish-actions.pod:2773
11385 #, no-wrap
11386 msgid ""
11387 " luks-add-key device keyslot\n"
11388 "\n"
11389 msgstr ""
11390
11391 #. type: textblock
11392 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4158
11393 msgid ""
11394 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11395 "existing key, and is used to access the device.  C<newkey> is the new key to "
11396 "add.  C<keyslot> is the key slot that will be replaced."
11397 msgstr ""
11398
11399 #. type: textblock
11400 #: ../fish/guestfish-actions.pod:2780
11401 msgid ""
11402 "Note that if C<keyslot> already contains a key, then this command will "
11403 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11404 msgstr ""
11405
11406 #. type: textblock
11407 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
11408 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
11409 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
11410 msgid ""
11411 "This command has one or more key or passphrase parameters.  Guestfish will "
11412 "prompt for these separately."
11413 msgstr ""
11414
11415 #. type: =head2
11416 #: ../fish/guestfish-actions.pod:2787
11417 msgid "luks-close"
11418 msgstr ""
11419
11420 #. type: verbatim
11421 #: ../fish/guestfish-actions.pod:2789
11422 #, no-wrap
11423 msgid ""
11424 " luks-close device\n"
11425 "\n"
11426 msgstr ""
11427
11428 #. type: textblock
11429 #: ../fish/guestfish-actions.pod:2791
11430 msgid ""
11431 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
11432 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
11433 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
11434 "block device."
11435 msgstr ""
11436
11437 #. type: =head2
11438 #: ../fish/guestfish-actions.pod:2797
11439 msgid "luks-format"
11440 msgstr ""
11441
11442 #. type: verbatim
11443 #: ../fish/guestfish-actions.pod:2799
11444 #, no-wrap
11445 msgid ""
11446 " luks-format device keyslot\n"
11447 "\n"
11448 msgstr ""
11449
11450 #. type: textblock
11451 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4199
11452 msgid ""
11453 "This command erases existing data on C<device> and formats the device as a "
11454 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11455 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11456 msgstr ""
11457
11458 #. type: textblock
11459 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
11460 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560
11461 #: ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423
11462 #: ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468
11463 #: ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4206
11464 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4372
11465 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:6253
11466 #: ../src/guestfs-actions.pod:6704 ../src/guestfs-actions.pod:6734
11467 #: ../src/guestfs-actions.pod:6767 ../src/guestfs-actions.pod:7966
11468 msgid ""
11469 "B<This command is dangerous.  Without careful use you can easily destroy all "
11470 "your data>."
11471 msgstr ""
11472
11473 #. type: =head2
11474 #: ../fish/guestfish-actions.pod:2812
11475 msgid "luks-format-cipher"
11476 msgstr ""
11477
11478 #. type: verbatim
11479 #: ../fish/guestfish-actions.pod:2814
11480 #, no-wrap
11481 msgid ""
11482 " luks-format-cipher device keyslot cipher\n"
11483 "\n"
11484 msgstr ""
11485
11486 #. type: textblock
11487 #: ../fish/guestfish-actions.pod:2816
11488 msgid ""
11489 "This command is the same as L</luks-format> but it also allows you to set "
11490 "the C<cipher> used."
11491 msgstr ""
11492
11493 #. type: =head2
11494 #: ../fish/guestfish-actions.pod:2825
11495 msgid "luks-kill-slot"
11496 msgstr ""
11497
11498 #. type: verbatim
11499 #: ../fish/guestfish-actions.pod:2827
11500 #, no-wrap
11501 msgid ""
11502 " luks-kill-slot device keyslot\n"
11503 "\n"
11504 msgstr ""
11505
11506 #. type: textblock
11507 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4246
11508 msgid ""
11509 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11510 "device C<device>.  C<key> must be one of the I<other> keys."
11511 msgstr ""
11512
11513 #. type: =head2
11514 #: ../fish/guestfish-actions.pod:2836
11515 msgid "luks-open"
11516 msgstr ""
11517
11518 #. type: verbatim
11519 #: ../fish/guestfish-actions.pod:2838
11520 #, no-wrap
11521 msgid ""
11522 " luks-open device mapname\n"
11523 "\n"
11524 msgstr ""
11525
11526 #. type: textblock
11527 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4266
11528 msgid ""
11529 "This command opens a block device which has been encrypted according to the "
11530 "Linux Unified Key Setup (LUKS) standard."
11531 msgstr ""
11532
11533 #. type: textblock
11534 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4269
11535 msgid "C<device> is the encrypted block device or partition."
11536 msgstr ""
11537
11538 #. type: textblock
11539 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4271
11540 msgid ""
11541 "The caller must supply one of the keys associated with the LUKS block "
11542 "device, in the C<key> parameter."
11543 msgstr ""
11544
11545 #. type: textblock
11546 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4274
11547 msgid ""
11548 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11549 "writes to this block device are decrypted from and encrypted to the "
11550 "underlying C<device> respectively."
11551 msgstr ""
11552
11553 #. type: textblock
11554 #: ../fish/guestfish-actions.pod:2852
11555 msgid ""
11556 "If this block device contains LVM volume groups, then calling L</vgscan> "
11557 "followed by L</vg-activate-all> will make them visible."
11558 msgstr ""
11559
11560 #. type: textblock
11561 #: ../fish/guestfish-actions.pod:2856
11562 msgid "Use L</list-dm-devices> to list all device mapper devices."
11563 msgstr ""
11564
11565 #. type: =head2
11566 #: ../fish/guestfish-actions.pod:2862
11567 msgid "luks-open-ro"
11568 msgstr ""
11569
11570 #. type: verbatim
11571 #: ../fish/guestfish-actions.pod:2864
11572 #, no-wrap
11573 msgid ""
11574 " luks-open-ro device mapname\n"
11575 "\n"
11576 msgstr ""
11577
11578 #. type: textblock
11579 #: ../fish/guestfish-actions.pod:2866
11580 msgid ""
11581 "This is the same as L</luks-open> except that a read-only mapping is created."
11582 msgstr ""
11583
11584 #. type: =head2
11585 #: ../fish/guestfish-actions.pod:2872
11586 msgid "lvcreate"
11587 msgstr ""
11588
11589 #. type: verbatim
11590 #: ../fish/guestfish-actions.pod:2874
11591 #, no-wrap
11592 msgid ""
11593 " lvcreate logvol volgroup mbytes\n"
11594 "\n"
11595 msgstr ""
11596
11597 #. type: textblock
11598 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4320
11599 msgid ""
11600 "This creates an LVM logical volume called C<logvol> on the volume group "
11601 "C<volgroup>, with C<size> megabytes."
11602 msgstr ""
11603
11604 #. type: =head2
11605 #: ../fish/guestfish-actions.pod:2879
11606 msgid "lvm-canonical-lv-name"
11607 msgstr ""
11608
11609 #. type: verbatim
11610 #: ../fish/guestfish-actions.pod:2881
11611 #, no-wrap
11612 msgid ""
11613 " lvm-canonical-lv-name lvname\n"
11614 "\n"
11615 msgstr ""
11616
11617 #. type: textblock
11618 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4333
11619 msgid ""
11620 "This converts alternative naming schemes for LVs that you might find to the "
11621 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11622 "LV>."
11623 msgstr ""
11624
11625 #. type: textblock
11626 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4337
11627 msgid ""
11628 "This command returns an error if the C<lvname> parameter does not refer to a "
11629 "logical volume."
11630 msgstr ""
11631
11632 #. type: textblock
11633 #: ../fish/guestfish-actions.pod:2890
11634 msgid "See also L</is-lv>."
11635 msgstr ""
11636
11637 #. type: =head2
11638 #: ../fish/guestfish-actions.pod:2892
11639 msgid "lvm-clear-filter"
11640 msgstr ""
11641
11642 #. type: verbatim
11643 #: ../fish/guestfish-actions.pod:2894
11644 #, no-wrap
11645 msgid ""
11646 " lvm-clear-filter\n"
11647 "\n"
11648 msgstr ""
11649
11650 #. type: textblock
11651 #: ../fish/guestfish-actions.pod:2896
11652 msgid ""
11653 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11654 "block device."
11655 msgstr ""
11656
11657 #. type: textblock
11658 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
11659 #: ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4397
11660 msgid ""
11661 "This command also clears the LVM cache and performs a volume group scan."
11662 msgstr ""
11663
11664 #. type: =head2
11665 #: ../fish/guestfish-actions.pod:2902
11666 msgid "lvm-remove-all"
11667 msgstr ""
11668
11669 #. type: verbatim
11670 #: ../fish/guestfish-actions.pod:2904
11671 #, no-wrap
11672 msgid ""
11673 " lvm-remove-all\n"
11674 "\n"
11675 msgstr ""
11676
11677 #. type: textblock
11678 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4367
11679 msgid ""
11680 "This command removes all LVM logical volumes, volume groups and physical "
11681 "volumes."
11682 msgstr ""
11683
11684 #. type: =head2
11685 #: ../fish/guestfish-actions.pod:2912
11686 msgid "lvm-set-filter"
11687 msgstr ""
11688
11689 #. type: verbatim
11690 #: ../fish/guestfish-actions.pod:2914
11691 #, no-wrap
11692 msgid ""
11693 " lvm-set-filter 'devices ...'\n"
11694 "\n"
11695 msgstr ""
11696
11697 #. type: textblock
11698 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4383
11699 msgid ""
11700 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11701 "block devices in the list C<devices>, and will ignore all other attached "
11702 "block devices."
11703 msgstr ""
11704
11705 #. type: textblock
11706 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4387
11707 msgid ""
11708 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11709 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
11710 "there are two types of duplication possible: either cloned PVs/VGs which "
11711 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11712 "same name.  In normal operation you cannot create this situation, but you "
11713 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
11714 "inside the LVM metadata."
11715 msgstr ""
11716
11717 #. type: textblock
11718 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
11719 msgid "You can filter whole block devices or individual partitions."
11720 msgstr ""
11721
11722 #. type: textblock
11723 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4402
11724 msgid ""
11725 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11726 "filesystem), even if you are not filtering out that VG."
11727 msgstr ""
11728
11729 #. type: =head2
11730 #: ../fish/guestfish-actions.pod:2939
11731 msgid "lvremove"
11732 msgstr ""
11733
11734 #. type: verbatim
11735 #: ../fish/guestfish-actions.pod:2941
11736 #, no-wrap
11737 msgid ""
11738 " lvremove device\n"
11739 "\n"
11740 msgstr ""
11741
11742 #. type: textblock
11743 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4416
11744 msgid ""
11745 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11746 "LV, such as C</dev/VG/LV>."
11747 msgstr ""
11748
11749 #. type: textblock
11750 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4419
11751 msgid ""
11752 "You can also remove all LVs in a volume group by specifying the VG name, C</"
11753 "dev/VG>."
11754 msgstr ""
11755
11756 #. type: =head2
11757 #: ../fish/guestfish-actions.pod:2949
11758 msgid "lvrename"
11759 msgstr ""
11760
11761 #. type: verbatim
11762 #: ../fish/guestfish-actions.pod:2951
11763 #, no-wrap
11764 msgid ""
11765 " lvrename logvol newlogvol\n"
11766 "\n"
11767 msgstr ""
11768
11769 #. type: textblock
11770 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4433
11771 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11772 msgstr ""
11773
11774 #. type: =head2
11775 #: ../fish/guestfish-actions.pod:2955
11776 msgid "lvresize"
11777 msgstr ""
11778
11779 #. type: verbatim
11780 #: ../fish/guestfish-actions.pod:2957
11781 #, no-wrap
11782 msgid ""
11783 " lvresize device mbytes\n"
11784 "\n"
11785 msgstr ""
11786
11787 #. type: textblock
11788 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4446
11789 msgid ""
11790 "This resizes (expands or shrinks) an existing LVM logical volume to "
11791 "C<mbytes>.  When reducing, data in the reduced part is lost."
11792 msgstr ""
11793
11794 #. type: =head2
11795 #: ../fish/guestfish-actions.pod:2963
11796 msgid "lvresize-free"
11797 msgstr ""
11798
11799 #. type: verbatim
11800 #: ../fish/guestfish-actions.pod:2965
11801 #, no-wrap
11802 msgid ""
11803 " lvresize-free lv percent\n"
11804 "\n"
11805 msgstr ""
11806
11807 #. type: textblock
11808 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4461
11809 msgid ""
11810 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11811 "remaining free space in the volume group.  Commonly you would call this with "
11812 "pc = 100 which expands the logical volume as much as possible, using all "
11813 "remaining free space in the volume group."
11814 msgstr ""
11815
11816 #. type: =head2
11817 #: ../fish/guestfish-actions.pod:2973
11818 msgid "lvs"
11819 msgstr ""
11820
11821 #. type: verbatim
11822 #: ../fish/guestfish-actions.pod:2975
11823 #, no-wrap
11824 msgid ""
11825 " lvs\n"
11826 "\n"
11827 msgstr ""
11828
11829 #. type: textblock
11830 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4476
11831 msgid ""
11832 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11833 "(8)> command."
11834 msgstr ""
11835
11836 #. type: textblock
11837 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4479
11838 msgid ""
11839 "This returns a list of the logical volume device names (eg. C</dev/"
11840 "VolGroup00/LogVol00>)."
11841 msgstr ""
11842
11843 #. type: textblock
11844 #: ../fish/guestfish-actions.pod:2983
11845 msgid "See also L</lvs-full>, L</list-filesystems>."
11846 msgstr ""
11847
11848 #. type: =head2
11849 #: ../fish/guestfish-actions.pod:2985
11850 msgid "lvs-full"
11851 msgstr ""
11852
11853 #. type: verbatim
11854 #: ../fish/guestfish-actions.pod:2987
11855 #, no-wrap
11856 msgid ""
11857 " lvs-full\n"
11858 "\n"
11859 msgstr ""
11860
11861 #. type: textblock
11862 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4495
11863 msgid ""
11864 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11865 "(8)> command.  The \"full\" version includes all fields."
11866 msgstr ""
11867
11868 #. type: =head2
11869 #: ../fish/guestfish-actions.pod:2992
11870 msgid "lvuuid"
11871 msgstr ""
11872
11873 #. type: verbatim
11874 #: ../fish/guestfish-actions.pod:2994
11875 #, no-wrap
11876 msgid ""
11877 " lvuuid device\n"
11878 "\n"
11879 msgstr ""
11880
11881 #. type: textblock
11882 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4510
11883 msgid "This command returns the UUID of the LVM LV C<device>."
11884 msgstr ""
11885
11886 #. type: =head2
11887 #: ../fish/guestfish-actions.pod:2998
11888 msgid "lxattrlist"
11889 msgstr ""
11890
11891 #. type: verbatim
11892 #: ../fish/guestfish-actions.pod:3000
11893 #, no-wrap
11894 msgid ""
11895 " lxattrlist path 'names ...'\n"
11896 "\n"
11897 msgstr ""
11898
11899 #. type: textblock
11900 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4524
11901 msgid ""
11902 "This call allows you to get the extended attributes of multiple files, where "
11903 "all files are in the directory C<path>.  C<names> is the list of files from "
11904 "this directory."
11905 msgstr ""
11906
11907 #. type: textblock
11908 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4528
11909 msgid ""
11910 "On return you get a flat list of xattr structs which must be interpreted "
11911 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11912 "C<attrval> in this struct is zero-length to indicate there was an error "
11913 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11914 "number (the number of following attributes for this file, which could be C<"
11915 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11916 "for the first named file.  This repeats for the second and subsequent files."
11917 msgstr ""
11918
11919 #. type: textblock
11920 #: ../fish/guestfish-actions.pod:3016
11921 msgid ""
11922 "This call is intended for programs that want to efficiently list a directory "
11923 "contents without making many round-trips.  See also L</lstatlist> for a "
11924 "similarly efficient call for getting standard stats.  Very long directory "
11925 "listings might cause the protocol message size to be exceeded, causing this "
11926 "call to fail.  The caller must split up such requests into smaller groups of "
11927 "names."
11928 msgstr ""
11929
11930 #. type: =head2
11931 #: ../fish/guestfish-actions.pod:3024
11932 msgid "mkdir"
11933 msgstr ""
11934
11935 #. type: verbatim
11936 #: ../fish/guestfish-actions.pod:3026
11937 #, no-wrap
11938 msgid ""
11939 " mkdir path\n"
11940 "\n"
11941 msgstr ""
11942
11943 #. type: textblock
11944 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4558
11945 msgid "Create a directory named C<path>."
11946 msgstr ""
11947
11948 #. type: =head2
11949 #: ../fish/guestfish-actions.pod:3030
11950 msgid "mkdir-mode"
11951 msgstr ""
11952
11953 #. type: verbatim
11954 #: ../fish/guestfish-actions.pod:3032
11955 #, no-wrap
11956 msgid ""
11957 " mkdir-mode path mode\n"
11958 "\n"
11959 msgstr ""
11960
11961 #. type: textblock
11962 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4571
11963 msgid ""
11964 "This command creates a directory, setting the initial permissions of the "
11965 "directory to C<mode>."
11966 msgstr ""
11967
11968 #. type: textblock
11969 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4574
11970 msgid ""
11971 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11972 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11973 "other ways."
11974 msgstr ""
11975
11976 #. type: textblock
11977 #: ../fish/guestfish-actions.pod:3041
11978 msgid "See also L</mkdir>, L</umask>"
11979 msgstr ""
11980
11981 #. type: =head2
11982 #: ../fish/guestfish-actions.pod:3043
11983 msgid "mkdir-p"
11984 msgstr ""
11985
11986 #. type: verbatim
11987 #: ../fish/guestfish-actions.pod:3045
11988 #, no-wrap
11989 msgid ""
11990 " mkdir-p path\n"
11991 "\n"
11992 msgstr ""
11993
11994 #. type: textblock
11995 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4590
11996 msgid ""
11997 "Create a directory named C<path>, creating any parent directories as "
11998 "necessary.  This is like the C<mkdir -p> shell command."
11999 msgstr ""
12000
12001 #. type: =head2
12002 #: ../fish/guestfish-actions.pod:3050
12003 msgid "mkdtemp"
12004 msgstr ""
12005
12006 #. type: verbatim
12007 #: ../fish/guestfish-actions.pod:3052
12008 #, no-wrap
12009 msgid ""
12010 " mkdtemp template\n"
12011 "\n"
12012 msgstr ""
12013
12014 #. type: textblock
12015 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4603
12016 msgid ""
12017 "This command creates a temporary directory.  The C<template> parameter "
12018 "should be a full pathname for the temporary directory name with the final "
12019 "six characters being \"XXXXXX\"."
12020 msgstr ""
12021
12022 #. type: textblock
12023 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4608
12024 msgid ""
12025 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12026 "being suitable for Windows filesystems."
12027 msgstr ""
12028
12029 #. type: textblock
12030 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4611
12031 msgid "The name of the temporary directory that was created is returned."
12032 msgstr ""
12033
12034 #. type: textblock
12035 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4614
12036 msgid "The temporary directory is created with mode 0700 and is owned by root."
12037 msgstr ""
12038
12039 #. type: textblock
12040 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4617
12041 msgid ""
12042 "The caller is responsible for deleting the temporary directory and its "
12043 "contents after use."
12044 msgstr ""
12045
12046 #. type: textblock
12047 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4620
12048 msgid "See also: L<mkdtemp(3)>"
12049 msgstr ""
12050
12051 #. type: =head2
12052 #: ../fish/guestfish-actions.pod:3073
12053 msgid "mke2fs-J"
12054 msgstr ""
12055
12056 #. type: verbatim
12057 #: ../fish/guestfish-actions.pod:3075
12058 #, no-wrap
12059 msgid ""
12060 " mke2fs-J fstype blocksize device journal\n"
12061 "\n"
12062 msgstr ""
12063
12064 #. type: textblock
12065 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4636
12066 msgid ""
12067 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12068 "C<journal>.  It is equivalent to the command:"
12069 msgstr ""
12070
12071 #. type: verbatim
12072 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4640
12073 #, no-wrap
12074 msgid ""
12075 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12076 "\n"
12077 msgstr ""
12078
12079 #. type: textblock
12080 #: ../fish/guestfish-actions.pod:3083
12081 msgid "See also L</mke2journal>."
12082 msgstr ""
12083
12084 #. type: =head2
12085 #: ../fish/guestfish-actions.pod:3085
12086 msgid "mke2fs-JL"
12087 msgstr ""
12088
12089 #. type: verbatim
12090 #: ../fish/guestfish-actions.pod:3087
12091 #, no-wrap
12092 msgid ""
12093 " mke2fs-JL fstype blocksize device label\n"
12094 "\n"
12095 msgstr ""
12096
12097 #. type: textblock
12098 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4657
12099 msgid ""
12100 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12101 "the journal labeled C<label>."
12102 msgstr ""
12103
12104 #. type: textblock
12105 #: ../fish/guestfish-actions.pod:3092
12106 msgid "See also L</mke2journal-L>."
12107 msgstr ""
12108
12109 #. type: =head2
12110 #: ../fish/guestfish-actions.pod:3094
12111 msgid "mke2fs-JU"
12112 msgstr ""
12113
12114 #. type: verbatim
12115 #: ../fish/guestfish-actions.pod:3096
12116 #, no-wrap
12117 msgid ""
12118 " mke2fs-JU fstype blocksize device uuid\n"
12119 "\n"
12120 msgstr ""
12121
12122 #. type: textblock
12123 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4675
12124 msgid ""
12125 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12126 "the journal with UUID C<uuid>."
12127 msgstr ""
12128
12129 #. type: textblock
12130 #: ../fish/guestfish-actions.pod:3101
12131 msgid "See also L</mke2journal-U>."
12132 msgstr ""
12133
12134 #. type: =head2
12135 #: ../fish/guestfish-actions.pod:3103
12136 msgid "mke2journal"
12137 msgstr ""
12138
12139 #. type: verbatim
12140 #: ../fish/guestfish-actions.pod:3105
12141 #, no-wrap
12142 msgid ""
12143 " mke2journal blocksize device\n"
12144 "\n"
12145 msgstr ""
12146
12147 #. type: textblock
12148 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4691
12149 msgid ""
12150 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12151 "command:"
12152 msgstr ""
12153
12154 #. type: verbatim
12155 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4694
12156 #, no-wrap
12157 msgid ""
12158 " mke2fs -O journal_dev -b blocksize device\n"
12159 "\n"
12160 msgstr ""
12161
12162 #. type: =head2
12163 #: ../fish/guestfish-actions.pod:3112
12164 msgid "mke2journal-L"
12165 msgstr ""
12166
12167 #. type: verbatim
12168 #: ../fish/guestfish-actions.pod:3114
12169 #, no-wrap
12170 msgid ""
12171 " mke2journal-L blocksize label device\n"
12172 "\n"
12173 msgstr ""
12174
12175 #. type: textblock
12176 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4708
12177 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12178 msgstr ""
12179
12180 #. type: =head2
12181 #: ../fish/guestfish-actions.pod:3118
12182 msgid "mke2journal-U"
12183 msgstr ""
12184
12185 #. type: verbatim
12186 #: ../fish/guestfish-actions.pod:3120
12187 #, no-wrap
12188 msgid ""
12189 " mke2journal-U blocksize uuid device\n"
12190 "\n"
12191 msgstr ""
12192
12193 #. type: textblock
12194 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4722
12195 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12196 msgstr ""
12197
12198 #. type: =head2
12199 #: ../fish/guestfish-actions.pod:3124
12200 msgid "mkfifo"
12201 msgstr ""
12202
12203 #. type: verbatim
12204 #: ../fish/guestfish-actions.pod:3126
12205 #, no-wrap
12206 msgid ""
12207 " mkfifo mode path\n"
12208 "\n"
12209 msgstr ""
12210
12211 #. type: textblock
12212 #: ../fish/guestfish-actions.pod:3128
12213 msgid ""
12214 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12215 "is just a convenient wrapper around L</mknod>."
12216 msgstr ""
12217
12218 #. type: =head2
12219 #: ../fish/guestfish-actions.pod:3134
12220 msgid "mkfs"
12221 msgstr ""
12222
12223 #. type: verbatim
12224 #: ../fish/guestfish-actions.pod:3136
12225 #, no-wrap
12226 msgid ""
12227 " mkfs fstype device\n"
12228 "\n"
12229 msgstr ""
12230
12231 #. type: textblock
12232 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4752
12233 msgid ""
12234 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12235 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12236 msgstr ""
12237
12238 #. type: =head2
12239 #: ../fish/guestfish-actions.pod:3142
12240 msgid "mkfs-b"
12241 msgstr ""
12242
12243 #. type: verbatim
12244 #: ../fish/guestfish-actions.pod:3144
12245 #, no-wrap
12246 msgid ""
12247 " mkfs-b fstype blocksize device\n"
12248 "\n"
12249 msgstr ""
12250
12251 #. type: textblock
12252 #: ../fish/guestfish-actions.pod:3146
12253 msgid ""
12254 "This call is similar to L</mkfs>, but it allows you to control the block "
12255 "size of the resulting filesystem.  Supported block sizes depend on the "
12256 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12257 msgstr ""
12258
12259 #. type: textblock
12260 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
12261 #: ../src/guestfs-actions.pod:4780 ../src/guestfs-actions.pod:4818
12262 msgid ""
12263 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12264 "cluster size."
12265 msgstr ""
12266
12267 #. type: textblock
12268 #: ../fish/guestfish-actions.pod:3154
12269 msgid ""
12270 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12271 "instead."
12272 msgstr ""
12273
12274 #. type: =head2
12275 #: ../fish/guestfish-actions.pod:3161
12276 msgid "mkfs-opts"
12277 msgstr ""
12278
12279 #. type: verbatim
12280 #: ../fish/guestfish-actions.pod:3163
12281 #, no-wrap
12282 msgid ""
12283 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12284 "\n"
12285 msgstr ""
12286
12287 #. type: textblock
12288 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4805
12289 msgid ""
12290 "This function creates a filesystem on C<device>.  The filesystem type is "
12291 "C<fstype>, for example C<ext3>."
12292 msgstr ""
12293
12294 #. type: =item
12295 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4812
12296 msgid "C<blocksize>"
12297 msgstr ""
12298
12299 #. type: textblock
12300 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4814
12301 msgid ""
12302 "The filesystem block size.  Supported block sizes depend on the filesystem "
12303 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12304 "filesystems."
12305 msgstr ""
12306
12307 #. type: textblock
12308 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4821
12309 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12310 msgstr ""
12311
12312 #. type: =item
12313 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4823
12314 msgid "C<features>"
12315 msgstr ""
12316
12317 #. type: textblock
12318 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
12319 msgid "This passes the I<-O> parameter to the external mkfs program."
12320 msgstr ""
12321
12322 #. type: textblock
12323 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
12324 msgid ""
12325 "For certain filesystem types, this allows extra filesystem features to be "
12326 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12327 msgstr ""
12328
12329 #. type: textblock
12330 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4831
12331 msgid ""
12332 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12333 "type."
12334 msgstr ""
12335
12336 #. type: =item
12337 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
12338 msgid "C<inode>"
12339 msgstr ""
12340
12341 #. type: textblock
12342 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
12343 msgid ""
12344 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12345 "sets the inode size (only for ext2/3/4 filesystems at present)."
12346 msgstr ""
12347
12348 #. type: =item
12349 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4839
12350 msgid "C<sectorsize>"
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4841
12355 msgid ""
12356 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12357 "sets sector size for ufs filesystem."
12358 msgstr ""
12359
12360 #. type: =head2
12361 #: ../fish/guestfish-actions.pod:3208
12362 msgid "mkmountpoint"
12363 msgstr ""
12364
12365 #. type: verbatim
12366 #: ../fish/guestfish-actions.pod:3210
12367 #, no-wrap
12368 msgid ""
12369 " mkmountpoint exemptpath\n"
12370 "\n"
12371 msgstr ""
12372
12373 #. type: textblock
12374 #: ../fish/guestfish-actions.pod:3212
12375 msgid ""
12376 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12377 "to create extra mountpoints before mounting the first filesystem."
12378 msgstr ""
12379
12380 #. type: textblock
12381 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4884
12382 msgid ""
12383 "These calls are I<only> necessary in some very limited circumstances, mainly "
12384 "the case where you want to mount a mix of unrelated and/or read-only "
12385 "filesystems together."
12386 msgstr ""
12387
12388 #. type: textblock
12389 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4888
12390 msgid ""
12391 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12392 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12393 "inside that.  You can unpack this as follows in guestfish:"
12394 msgstr ""
12395
12396 #. type: verbatim
12397 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4893
12398 #, no-wrap
12399 msgid ""
12400 " add-ro Fedora-11-i686-Live.iso\n"
12401 " run\n"
12402 " mkmountpoint /cd\n"
12403 " mkmountpoint /sqsh\n"
12404 " mkmountpoint /ext3fs\n"
12405 " mount /dev/sda /cd\n"
12406 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12407 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12408 "\n"
12409 msgstr ""
12410
12411 #. type: textblock
12412 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4902
12413 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12414 msgstr ""
12415
12416 #. type: textblock
12417 #: ../fish/guestfish-actions.pod:3236
12418 msgid ""
12419 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12420 "unexpected errors if you try to mix these calls.  It is safest to manually "
12421 "unmount filesystems and remove mountpoints after use."
12422 msgstr ""
12423
12424 #. type: textblock
12425 #: ../fish/guestfish-actions.pod:3240
12426 msgid ""
12427 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12428 "for this to work for manual mountpoints, you must ensure that the innermost "
12429 "mountpoints have the longest pathnames, as in the example code above."
12430 msgstr ""
12431
12432 #. type: textblock
12433 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4913
12434 msgid ""
12435 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12436 msgstr ""
12437
12438 #. type: textblock
12439 #: ../fish/guestfish-actions.pod:3247
12440 msgid ""
12441 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12442 "L</umount-all> to be called when the handle is closed which can also trigger "
12443 "these issues."
12444 msgstr ""
12445
12446 #. type: =head2
12447 #: ../fish/guestfish-actions.pod:3251
12448 msgid "mknod"
12449 msgstr ""
12450
12451 #. type: verbatim
12452 #: ../fish/guestfish-actions.pod:3253
12453 #, no-wrap
12454 msgid ""
12455 " mknod mode devmajor devminor path\n"
12456 "\n"
12457 msgstr ""
12458
12459 #. type: textblock
12460 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4932
12461 msgid ""
12462 "This call creates block or character special devices, or named pipes (FIFOs)."
12463 msgstr ""
12464
12465 #. type: textblock
12466 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4935
12467 msgid ""
12468 "The C<mode> parameter should be the mode, using the standard constants.  "
12469 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12470 "used when creating block and character special devices."
12471 msgstr ""
12472
12473 #. type: textblock
12474 #: ../fish/guestfish-actions.pod:3263
12475 msgid ""
12476 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12477 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12478 "regular file).  These constants are available in the standard Linux header "
12479 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12480 "wrappers around this command which bitwise OR in the appropriate constant "
12481 "for you."
12482 msgstr ""
12483
12484 #. type: =head2
12485 #: ../fish/guestfish-actions.pod:3273
12486 msgid "mknod-b"
12487 msgstr ""
12488
12489 #. type: verbatim
12490 #: ../fish/guestfish-actions.pod:3275
12491 #, no-wrap
12492 msgid ""
12493 " mknod-b mode devmajor devminor path\n"
12494 "\n"
12495 msgstr ""
12496
12497 #. type: textblock
12498 #: ../fish/guestfish-actions.pod:3277
12499 msgid ""
12500 "This call creates a block device node called C<path> with mode C<mode> and "
12501 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12502 "wrapper around L</mknod>."
12503 msgstr ""
12504
12505 #. type: =head2
12506 #: ../fish/guestfish-actions.pod:3283
12507 msgid "mknod-c"
12508 msgstr ""
12509
12510 #. type: verbatim
12511 #: ../fish/guestfish-actions.pod:3285
12512 #, no-wrap
12513 msgid ""
12514 " mknod-c mode devmajor devminor path\n"
12515 "\n"
12516 msgstr ""
12517
12518 #. type: textblock
12519 #: ../fish/guestfish-actions.pod:3287
12520 msgid ""
12521 "This call creates a char device node called C<path> with mode C<mode> and "
12522 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12523 "wrapper around L</mknod>."
12524 msgstr ""
12525
12526 #. type: =head2
12527 #: ../fish/guestfish-actions.pod:3293
12528 msgid "mkswap"
12529 msgstr ""
12530
12531 #. type: verbatim
12532 #: ../fish/guestfish-actions.pod:3295
12533 #, no-wrap
12534 msgid ""
12535 " mkswap device\n"
12536 "\n"
12537 msgstr ""
12538
12539 #. type: textblock
12540 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4998
12541 msgid "Create a swap partition on C<device>."
12542 msgstr ""
12543
12544 #. type: =head2
12545 #: ../fish/guestfish-actions.pod:3299
12546 msgid "mkswap-L"
12547 msgstr ""
12548
12549 #. type: verbatim
12550 #: ../fish/guestfish-actions.pod:3301
12551 #, no-wrap
12552 msgid ""
12553 " mkswap-L label device\n"
12554 "\n"
12555 msgstr ""
12556
12557 #. type: textblock
12558 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5011
12559 msgid "Create a swap partition on C<device> with label C<label>."
12560 msgstr ""
12561
12562 #. type: textblock
12563 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5013
12564 msgid ""
12565 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12566 "sda>), just to a partition.  This appears to be a limitation of the kernel "
12567 "or swap tools."
12568 msgstr ""
12569
12570 #. type: =head2
12571 #: ../fish/guestfish-actions.pod:3309
12572 msgid "mkswap-U"
12573 msgstr ""
12574
12575 #. type: verbatim
12576 #: ../fish/guestfish-actions.pod:3311
12577 #, no-wrap
12578 msgid ""
12579 " mkswap-U uuid device\n"
12580 "\n"
12581 msgstr ""
12582
12583 #. type: textblock
12584 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5028
12585 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12586 msgstr ""
12587
12588 #. type: =head2
12589 #: ../fish/guestfish-actions.pod:3315
12590 msgid "mkswap-file"
12591 msgstr ""
12592
12593 #. type: verbatim
12594 #: ../fish/guestfish-actions.pod:3317
12595 #, no-wrap
12596 msgid ""
12597 " mkswap-file path\n"
12598 "\n"
12599 msgstr ""
12600
12601 #. type: textblock
12602 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5040
12603 msgid "Create a swap file."
12604 msgstr ""
12605
12606 #. type: textblock
12607 #: ../fish/guestfish-actions.pod:3321
12608 msgid ""
12609 "This command just writes a swap file signature to an existing file.  To "
12610 "create the file itself, use something like L</fallocate>."
12611 msgstr ""
12612
12613 #. type: =head2
12614 #: ../fish/guestfish-actions.pod:3324
12615 msgid "modprobe"
12616 msgstr ""
12617
12618 #. type: verbatim
12619 #: ../fish/guestfish-actions.pod:3326
12620 #, no-wrap
12621 msgid ""
12622 " modprobe modulename\n"
12623 "\n"
12624 msgstr ""
12625
12626 #. type: textblock
12627 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5055
12628 msgid "This loads a kernel module in the appliance."
12629 msgstr ""
12630
12631 #. type: textblock
12632 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5057
12633 msgid ""
12634 "The kernel module must have been whitelisted when libguestfs was built (see "
12635 "C<appliance/kmod.whitelist.in> in the source)."
12636 msgstr ""
12637
12638 #. type: =head2
12639 #: ../fish/guestfish-actions.pod:3333
12640 msgid "mount"
12641 msgstr ""
12642
12643 #. type: verbatim
12644 #: ../fish/guestfish-actions.pod:3335
12645 #, no-wrap
12646 msgid ""
12647 " mount device mountpoint\n"
12648 "\n"
12649 msgstr ""
12650
12651 #. type: textblock
12652 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5071
12653 msgid ""
12654 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12655 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12656 "those block devices contain partitions, they will have the usual names (eg. "
12657 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12658 msgstr ""
12659
12660 #. type: textblock
12661 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5077
12662 msgid ""
12663 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12664 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12665 "mounted on directories which already exist."
12666 msgstr ""
12667
12668 #. type: textblock
12669 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5082
12670 msgid ""
12671 "The mounted filesystem is writable, if we have sufficient permissions on the "
12672 "underlying device."
12673 msgstr ""
12674
12675 #. type: textblock
12676 #: ../fish/guestfish-actions.pod:3351
12677 msgid ""
12678 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12679 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
12680 "problems for users.  If your program might need to work with older versions "
12681 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12682 "first parameter if you don't want any options)."
12683 msgstr ""
12684
12685 #. type: =head2
12686 #: ../fish/guestfish-actions.pod:3358
12687 msgid "mount-9p"
12688 msgstr ""
12689
12690 #. type: verbatim
12691 #: ../fish/guestfish-actions.pod:3360
12692 #, no-wrap
12693 msgid ""
12694 " mount-9p mounttag mountpoint [options:..]\n"
12695 "\n"
12696 msgstr ""
12697
12698 #. type: textblock
12699 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5111
12700 msgid ""
12701 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12702 "C<mountpoint>."
12703 msgstr ""
12704
12705 #. type: textblock
12706 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5114
12707 msgid ""
12708 "If required, C<trans=virtio> will be automatically added to the options.  "
12709 "Any other options required can be passed in the optional C<options> "
12710 "parameter."
12711 msgstr ""
12712
12713 #. type: =head2
12714 #: ../fish/guestfish-actions.pod:3371
12715 msgid "mount-loop"
12716 msgstr ""
12717
12718 #. type: verbatim
12719 #: ../fish/guestfish-actions.pod:3373
12720 #, no-wrap
12721 msgid ""
12722 " mount-loop file mountpoint\n"
12723 "\n"
12724 msgstr ""
12725
12726 #. type: textblock
12727 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5153
12728 msgid ""
12729 "This command lets you mount C<file> (a filesystem image in a file) on a "
12730 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12731 "mountpoint>."
12732 msgstr ""
12733
12734 #. type: =head2
12735 #: ../fish/guestfish-actions.pod:3379
12736 msgid "mount-options"
12737 msgstr ""
12738
12739 #. type: verbatim
12740 #: ../fish/guestfish-actions.pod:3381
12741 #, no-wrap
12742 msgid ""
12743 " mount-options options device mountpoint\n"
12744 "\n"
12745 msgstr ""
12746
12747 #. type: textblock
12748 #: ../fish/guestfish-actions.pod:3383
12749 msgid ""
12750 "This is the same as the L</mount> command, but it allows you to set the "
12751 "mount options as for the L<mount(8)> I<-o> flag."
12752 msgstr ""
12753
12754 #. type: textblock
12755 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5173
12756 msgid ""
12757 "If the C<options> parameter is an empty string, then no options are passed "
12758 "(all options default to whatever the filesystem uses)."
12759 msgstr ""
12760
12761 #. type: =head2
12762 #: ../fish/guestfish-actions.pod:3391
12763 msgid "mount-ro"
12764 msgstr ""
12765
12766 #. type: verbatim
12767 #: ../fish/guestfish-actions.pod:3393
12768 #, no-wrap
12769 msgid ""
12770 " mount-ro device mountpoint\n"
12771 "\n"
12772 msgstr ""
12773
12774 #. type: textblock
12775 #: ../fish/guestfish-actions.pod:3395
12776 msgid ""
12777 "This is the same as the L</mount> command, but it mounts the filesystem with "
12778 "the read-only (I<-o ro>) flag."
12779 msgstr ""
12780
12781 #. type: =head2
12782 #: ../fish/guestfish-actions.pod:3398
12783 msgid "mount-vfs"
12784 msgstr ""
12785
12786 #. type: verbatim
12787 #: ../fish/guestfish-actions.pod:3400
12788 #, no-wrap
12789 msgid ""
12790 " mount-vfs options vfstype device mountpoint\n"
12791 "\n"
12792 msgstr ""
12793
12794 #. type: textblock
12795 #: ../fish/guestfish-actions.pod:3402
12796 msgid ""
12797 "This is the same as the L</mount> command, but it allows you to set both the "
12798 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12799 msgstr ""
12800
12801 #. type: =head2
12802 #: ../fish/guestfish-actions.pod:3406
12803 msgid "mountpoints"
12804 msgstr ""
12805
12806 #. type: verbatim
12807 #: ../fish/guestfish-actions.pod:3408
12808 #, no-wrap
12809 msgid ""
12810 " mountpoints\n"
12811 "\n"
12812 msgstr ""
12813
12814 #. type: textblock
12815 #: ../fish/guestfish-actions.pod:3410
12816 msgid ""
12817 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12818 "This one returns a hash table (map) of device name to directory where the "
12819 "device is mounted."
12820 msgstr ""
12821
12822 #. type: =head2
12823 #: ../fish/guestfish-actions.pod:3414
12824 msgid "mounts"
12825 msgstr ""
12826
12827 #. type: verbatim
12828 #: ../fish/guestfish-actions.pod:3416
12829 #, no-wrap
12830 msgid ""
12831 " mounts\n"
12832 "\n"
12833 msgstr ""
12834
12835 #. type: textblock
12836 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5234
12837 msgid ""
12838 "This returns the list of currently mounted filesystems.  It returns the list "
12839 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12840 msgstr ""
12841
12842 #. type: textblock
12843 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5237
12844 msgid "Some internal mounts are not shown."
12845 msgstr ""
12846
12847 #. type: textblock
12848 #: ../fish/guestfish-actions.pod:3423
12849 msgid "See also: L</mountpoints>"
12850 msgstr ""
12851
12852 #. type: =head2
12853 #: ../fish/guestfish-actions.pod:3425
12854 msgid "mv"
12855 msgstr ""
12856
12857 #. type: verbatim
12858 #: ../fish/guestfish-actions.pod:3427
12859 #, no-wrap
12860 msgid ""
12861 " mv src dest\n"
12862 "\n"
12863 msgstr ""
12864
12865 #. type: textblock
12866 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5254
12867 msgid ""
12868 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12869 "destination filename or destination directory."
12870 msgstr ""
12871
12872 #. type: =head2
12873 #: ../fish/guestfish-actions.pod:3432
12874 msgid "ntfs-3g-probe"
12875 msgstr ""
12876
12877 #. type: verbatim
12878 #: ../fish/guestfish-actions.pod:3434
12879 #, no-wrap
12880 msgid ""
12881 " ntfs-3g-probe true|false device\n"
12882 "\n"
12883 msgstr ""
12884
12885 #. type: textblock
12886 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5268
12887 msgid ""
12888 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12889 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12890 "write, and some cannot be mounted at all)."
12891 msgstr ""
12892
12893 #. type: textblock
12894 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5272
12895 msgid ""
12896 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12897 "can be mounted read-write.  Set it to false if you want to test if the "
12898 "volume can be mounted read-only."
12899 msgstr ""
12900
12901 #. type: textblock
12902 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5276
12903 msgid ""
12904 "The return value is an integer which C<0> if the operation would succeed, or "
12905 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12906 msgstr ""
12907
12908 #. type: =head2
12909 #: ../fish/guestfish-actions.pod:3448
12910 msgid "ntfsresize"
12911 msgstr ""
12912
12913 #. type: verbatim
12914 #: ../fish/guestfish-actions.pod:3450
12915 #, no-wrap
12916 msgid ""
12917 " ntfsresize device\n"
12918 "\n"
12919 msgstr ""
12920
12921 #. type: textblock
12922 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476
12923 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5329
12924 msgid ""
12925 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12926 "size of the underlying device."
12927 msgstr ""
12928
12929 #. type: textblock
12930 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5300
12931 msgid ""
12932 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12933 "consistency check (for safety).  You have to boot into Windows to perform "
12934 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12935 "resize filesystems which have been marked in this way.  So in effect it is "
12936 "not possible to call ntfsresize multiple times on a single filesystem "
12937 "without booting into Windows between each resize."
12938 msgstr ""
12939
12940 #. type: textblock
12941 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502
12942 #: ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5355
12943 msgid "See also L<ntfsresize(8)>."
12944 msgstr ""
12945
12946 #. type: textblock
12947 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
12948 msgid ""
12949 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12950 "call instead."
12951 msgstr ""
12952
12953 #. type: =head2
12954 #: ../fish/guestfish-actions.pod:3472
12955 msgid "ntfsresize-opts"
12956 msgstr ""
12957
12958 #. type: verbatim
12959 #: ../fish/guestfish-actions.pod:3474
12960 #, no-wrap
12961 msgid ""
12962 " ntfsresize-opts device [size:..] [force:..]\n"
12963 "\n"
12964 msgstr ""
12965
12966 #. type: textblock
12967 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5338
12968 msgid ""
12969 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12970 "resized to fit the container (eg. partition)."
12971 msgstr ""
12972
12973 #. type: =item
12974 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5341
12975 msgid "C<force>"
12976 msgstr ""
12977
12978 #. type: textblock
12979 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5343
12980 msgid ""
12981 "If this option is true, then force the resize of the filesystem even if the "
12982 "filesystem is marked as requiring a consistency check."
12983 msgstr ""
12984
12985 #. type: textblock
12986 #: ../fish/guestfish-actions.pod:3493
12987 msgid ""
12988 "After the resize operation, the filesystem is always marked as requiring a "
12989 "consistency check (for safety).  You have to boot into Windows to perform "
12990 "this check and clear this condition.  If you I<don't> set the C<force> "
12991 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12992 "a single filesystem without booting into Windows between each resize."
12993 msgstr ""
12994
12995 #. type: =head2
12996 #: ../fish/guestfish-actions.pod:3506
12997 msgid "ntfsresize-size"
12998 msgstr ""
12999
13000 #. type: verbatim
13001 #: ../fish/guestfish-actions.pod:3508
13002 #, no-wrap
13003 msgid ""
13004 " ntfsresize-size device size\n"
13005 "\n"
13006 msgstr ""
13007
13008 #. type: textblock
13009 #: ../fish/guestfish-actions.pod:3510
13010 msgid ""
13011 "This command is the same as L</ntfsresize> except that it allows you to "
13012 "specify the new size (in bytes) explicitly."
13013 msgstr ""
13014
13015 #. type: =head2
13016 #: ../fish/guestfish-actions.pod:3520
13017 msgid "part-add"
13018 msgstr ""
13019
13020 #. type: verbatim
13021 #: ../fish/guestfish-actions.pod:3522
13022 #, no-wrap
13023 msgid ""
13024 " part-add device prlogex startsect endsect\n"
13025 "\n"
13026 msgstr ""
13027
13028 #. type: textblock
13029 #: ../fish/guestfish-actions.pod:3524
13030 msgid ""
13031 "This command adds a partition to C<device>.  If there is no partition table "
13032 "on the device, call L</part-init> first."
13033 msgstr ""
13034
13035 #. type: textblock
13036 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5416
13037 msgid ""
13038 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13039 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13040 "C<logical>) and C<e> (or C<extended>) partition types."
13041 msgstr ""
13042
13043 #. type: textblock
13044 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5421
13045 msgid ""
13046 "C<startsect> and C<endsect> are the start and end of the partition in "
13047 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13048 "from the end of the disk (C<-1> is the last sector)."
13049 msgstr ""
13050
13051 #. type: textblock
13052 #: ../fish/guestfish-actions.pod:3536
13053 msgid ""
13054 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13055 "part-disk> to do that."
13056 msgstr ""
13057
13058 #. type: =head2
13059 #: ../fish/guestfish-actions.pod:3539
13060 msgid "part-del"
13061 msgstr ""
13062
13063 #. type: verbatim
13064 #: ../fish/guestfish-actions.pod:3541
13065 #, no-wrap
13066 msgid ""
13067 " part-del device partnum\n"
13068 "\n"
13069 msgstr ""
13070
13071 #. type: textblock
13072 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5439
13073 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13074 msgstr ""
13075
13076 #. type: textblock
13077 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5441
13078 msgid ""
13079 "Note that in the case of MBR partitioning, deleting an extended partition "
13080 "also deletes any logical partitions it contains."
13081 msgstr ""
13082
13083 #. type: =head2
13084 #: ../fish/guestfish-actions.pod:3549
13085 msgid "part-disk"
13086 msgstr ""
13087
13088 #. type: verbatim
13089 #: ../fish/guestfish-actions.pod:3551
13090 #, no-wrap
13091 msgid ""
13092 " part-disk device parttype\n"
13093 "\n"
13094 msgstr ""
13095
13096 #. type: textblock
13097 #: ../fish/guestfish-actions.pod:3553
13098 msgid ""
13099 "This command is simply a combination of L</part-init> followed by L</part-"
13100 "add> to create a single primary partition covering the whole disk."
13101 msgstr ""
13102
13103 #. type: textblock
13104 #: ../fish/guestfish-actions.pod:3557
13105 msgid ""
13106 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13107 "possible values are described in L</part-init>."
13108 msgstr ""
13109
13110 #. type: =head2
13111 #: ../fish/guestfish-actions.pod:3563
13112 msgid "part-get-bootable"
13113 msgstr ""
13114
13115 #. type: verbatim
13116 #: ../fish/guestfish-actions.pod:3565
13117 #, no-wrap
13118 msgid ""
13119 " part-get-bootable device partnum\n"
13120 "\n"
13121 msgstr ""
13122
13123 #. type: textblock
13124 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5477
13125 msgid ""
13126 "This command returns true if the partition C<partnum> on C<device> has the "
13127 "bootable flag set."
13128 msgstr ""
13129
13130 #. type: textblock
13131 #: ../fish/guestfish-actions.pod:3570
13132 msgid "See also L</part-set-bootable>."
13133 msgstr ""
13134
13135 #. type: =head2
13136 #: ../fish/guestfish-actions.pod:3572
13137 msgid "part-get-mbr-id"
13138 msgstr ""
13139
13140 #. type: verbatim
13141 #: ../fish/guestfish-actions.pod:3574
13142 #, no-wrap
13143 msgid ""
13144 " part-get-mbr-id device partnum\n"
13145 "\n"
13146 msgstr ""
13147
13148 #. type: textblock
13149 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5493
13150 msgid ""
13151 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13152 "partition C<partnum>."
13153 msgstr ""
13154
13155 #. type: textblock
13156 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
13157 msgid ""
13158 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13159 "undefined results for other partition table types (see L</part-get-"
13160 "parttype>)."
13161 msgstr ""
13162
13163 #. type: =head2
13164 #: ../fish/guestfish-actions.pod:3583
13165 msgid "part-get-parttype"
13166 msgstr ""
13167
13168 #. type: verbatim
13169 #: ../fish/guestfish-actions.pod:3585
13170 #, no-wrap
13171 msgid ""
13172 " part-get-parttype device\n"
13173 "\n"
13174 msgstr ""
13175
13176 #. type: textblock
13177 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5510
13178 msgid ""
13179 "This command examines the partition table on C<device> and returns the "
13180 "partition table type (format) being used."
13181 msgstr ""
13182
13183 #. type: textblock
13184 #: ../fish/guestfish-actions.pod:3590
13185 msgid ""
13186 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13187 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13188 "possible, although unusual.  See L</part-init> for a full list."
13189 msgstr ""
13190
13191 #. type: =head2
13192 #: ../fish/guestfish-actions.pod:3595
13193 msgid "part-init"
13194 msgstr ""
13195
13196 #. type: verbatim
13197 #: ../fish/guestfish-actions.pod:3597
13198 #, no-wrap
13199 msgid ""
13200 " part-init device parttype\n"
13201 "\n"
13202 msgstr ""
13203
13204 #. type: textblock
13205 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5530
13206 msgid ""
13207 "This creates an empty partition table on C<device> of one of the partition "
13208 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13209 "(for large disks)."
13210 msgstr ""
13211
13212 #. type: textblock
13213 #: ../fish/guestfish-actions.pod:3603
13214 msgid ""
13215 "Initially there are no partitions.  Following this, you should call L</part-"
13216 "add> for each partition required."
13217 msgstr ""
13218
13219 #. type: textblock
13220 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5537
13221 msgid "Possible values for C<parttype> are:"
13222 msgstr ""
13223
13224 #. type: =item
13225 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5541
13226 msgid "B<efi>"
13227 msgstr ""
13228
13229 #. type: =item
13230 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
13231 msgid "B<gpt>"
13232 msgstr ""
13233
13234 #. type: textblock
13235 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5545
13236 msgid "Intel EFI / GPT partition table."
13237 msgstr ""
13238
13239 #. type: textblock
13240 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5547
13241 msgid ""
13242 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13243 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13244 "the C<mbr> format."
13245 msgstr ""
13246
13247 #. type: =item
13248 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5551
13249 msgid "B<mbr>"
13250 msgstr ""
13251
13252 #. type: =item
13253 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5553
13254 msgid "B<msdos>"
13255 msgstr ""
13256
13257 #. type: textblock
13258 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5555
13259 msgid ""
13260 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13261 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13262 "TB.  For large disks we recommend using C<gpt>."
13263 msgstr ""
13264
13265 #. type: textblock
13266 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5562
13267 msgid ""
13268 "Other partition table types that may work but are not supported include:"
13269 msgstr ""
13270
13271 #. type: =item
13272 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5567
13273 msgid "B<aix>"
13274 msgstr ""
13275
13276 #. type: textblock
13277 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5569
13278 msgid "AIX disk labels."
13279 msgstr ""
13280
13281 #. type: =item
13282 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5571
13283 msgid "B<amiga>"
13284 msgstr ""
13285
13286 #. type: =item
13287 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5573
13288 msgid "B<rdb>"
13289 msgstr ""
13290
13291 #. type: textblock
13292 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
13293 msgid "Amiga \"Rigid Disk Block\" format."
13294 msgstr ""
13295
13296 #. type: =item
13297 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5577
13298 msgid "B<bsd>"
13299 msgstr ""
13300
13301 #. type: textblock
13302 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5579
13303 msgid "BSD disk labels."
13304 msgstr ""
13305
13306 #. type: =item
13307 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5581
13308 msgid "B<dasd>"
13309 msgstr ""
13310
13311 #. type: textblock
13312 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5583
13313 msgid "DASD, used on IBM mainframes."
13314 msgstr ""
13315
13316 #. type: =item
13317 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5585
13318 msgid "B<dvh>"
13319 msgstr ""
13320
13321 #. type: textblock
13322 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5587
13323 msgid "MIPS/SGI volumes."
13324 msgstr ""
13325
13326 #. type: =item
13327 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5589
13328 msgid "B<mac>"
13329 msgstr ""
13330
13331 #. type: textblock
13332 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5591
13333 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13334 msgstr ""
13335
13336 #. type: =item
13337 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5593
13338 msgid "B<pc98>"
13339 msgstr ""
13340
13341 #. type: textblock
13342 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5595
13343 msgid "NEC PC-98 format, common in Japan apparently."
13344 msgstr ""
13345
13346 #. type: =item
13347 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5597
13348 msgid "B<sun>"
13349 msgstr ""
13350
13351 #. type: textblock
13352 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5599
13353 msgid "Sun disk labels."
13354 msgstr ""
13355
13356 #. type: =head2
13357 #: ../fish/guestfish-actions.pod:3672
13358 msgid "part-list"
13359 msgstr ""
13360
13361 #. type: verbatim
13362 #: ../fish/guestfish-actions.pod:3674
13363 #, no-wrap
13364 msgid ""
13365 " part-list device\n"
13366 "\n"
13367 msgstr ""
13368
13369 #. type: textblock
13370 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5613
13371 msgid ""
13372 "This command parses the partition table on C<device> and returns the list of "
13373 "partitions found."
13374 msgstr ""
13375
13376 #. type: textblock
13377 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5616
13378 msgid "The fields in the returned structure are:"
13379 msgstr ""
13380
13381 #. type: =item
13382 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5620
13383 msgid "B<part_num>"
13384 msgstr ""
13385
13386 #. type: textblock
13387 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5622
13388 msgid "Partition number, counting from 1."
13389 msgstr ""
13390
13391 #. type: =item
13392 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5624
13393 msgid "B<part_start>"
13394 msgstr ""
13395
13396 #. type: textblock
13397 #: ../fish/guestfish-actions.pod:3689
13398 msgid ""
13399 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13400 "the device's sector size, see L</blockdev-getss>."
13401 msgstr ""
13402
13403 #. type: =item
13404 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
13405 msgid "B<part_end>"
13406 msgstr ""
13407
13408 #. type: textblock
13409 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5631
13410 msgid "End of the partition in bytes."
13411 msgstr ""
13412
13413 #. type: =item
13414 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
13415 msgid "B<part_size>"
13416 msgstr ""
13417
13418 #. type: textblock
13419 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
13420 msgid "Size of the partition in bytes."
13421 msgstr ""
13422
13423 #. type: =head2
13424 #: ../fish/guestfish-actions.pod:3702
13425 msgid "part-set-bootable"
13426 msgstr ""
13427
13428 #. type: verbatim
13429 #: ../fish/guestfish-actions.pod:3704
13430 #, no-wrap
13431 msgid ""
13432 " part-set-bootable device partnum true|false\n"
13433 "\n"
13434 msgstr ""
13435
13436 #. type: textblock
13437 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5653
13438 msgid ""
13439 "This sets the bootable flag on partition numbered C<partnum> on device "
13440 "C<device>.  Note that partitions are numbered from 1."
13441 msgstr ""
13442
13443 #. type: textblock
13444 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5656
13445 msgid ""
13446 "The bootable flag is used by some operating systems (notably Windows) to "
13447 "determine which partition to boot from.  It is by no means universally "
13448 "recognized."
13449 msgstr ""
13450
13451 #. type: =head2
13452 #: ../fish/guestfish-actions.pod:3713
13453 msgid "part-set-mbr-id"
13454 msgstr ""
13455
13456 #. type: verbatim
13457 #: ../fish/guestfish-actions.pod:3715
13458 #, no-wrap
13459 msgid ""
13460 " part-set-mbr-id device partnum idbyte\n"
13461 "\n"
13462 msgstr ""
13463
13464 #. type: textblock
13465 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5672
13466 msgid ""
13467 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13468 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13469 "documentation are in fact hexadecimal numbers, but usually documented "
13470 "without any leading \"0x\" which might be confusing."
13471 msgstr ""
13472
13473 #. type: =head2
13474 #: ../fish/guestfish-actions.pod:3727
13475 msgid "part-set-name"
13476 msgstr ""
13477
13478 #. type: verbatim
13479 #: ../fish/guestfish-actions.pod:3729
13480 #, no-wrap
13481 msgid ""
13482 " part-set-name device partnum name\n"
13483 "\n"
13484 msgstr ""
13485
13486 #. type: textblock
13487 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5694
13488 msgid ""
13489 "This sets the partition name on partition numbered C<partnum> on device "
13490 "C<device>.  Note that partitions are numbered from 1."
13491 msgstr ""
13492
13493 #. type: textblock
13494 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5697
13495 msgid ""
13496 "The partition name can only be set on certain types of partition table.  "
13497 "This works on C<gpt> but not on C<mbr> partitions."
13498 msgstr ""
13499
13500 #. type: =head2
13501 #: ../fish/guestfish-actions.pod:3737
13502 msgid "part-to-dev"
13503 msgstr ""
13504
13505 #. type: verbatim
13506 #: ../fish/guestfish-actions.pod:3739
13507 #, no-wrap
13508 msgid ""
13509 " part-to-dev partition\n"
13510 "\n"
13511 msgstr ""
13512
13513 #. type: textblock
13514 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5710
13515 msgid ""
13516 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13517 "partition number, returning the device name (eg. \"/dev/sdb\")."
13518 msgstr ""
13519
13520 #. type: textblock
13521 #: ../fish/guestfish-actions.pod:3745
13522 msgid ""
13523 "The named partition must exist, for example as a string returned from L</"
13524 "list-partitions>."
13525 msgstr ""
13526
13527 #. type: =head2
13528 #: ../fish/guestfish-actions.pod:3748
13529 msgid "ping-daemon"
13530 msgstr ""
13531
13532 #. type: verbatim
13533 #: ../fish/guestfish-actions.pod:3750
13534 #, no-wrap
13535 msgid ""
13536 " ping-daemon\n"
13537 "\n"
13538 msgstr ""
13539
13540 #. type: textblock
13541 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5727
13542 msgid ""
13543 "This is a test probe into the guestfs daemon running inside the qemu "
13544 "subprocess.  Calling this function checks that the daemon responds to the "
13545 "ping message, without affecting the daemon or attached block device(s) in "
13546 "any other way."
13547 msgstr ""
13548
13549 #. type: =head2
13550 #: ../fish/guestfish-actions.pod:3757
13551 msgid "pread"
13552 msgstr ""
13553
13554 #. type: verbatim
13555 #: ../fish/guestfish-actions.pod:3759
13556 #, no-wrap
13557 msgid ""
13558 " pread path count offset\n"
13559 "\n"
13560 msgstr ""
13561
13562 #. type: textblock
13563 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5745
13564 msgid ""
13565 "This command lets you read part of a file.  It reads C<count> bytes of the "
13566 "file, starting at C<offset>, from file C<path>."
13567 msgstr ""
13568
13569 #. type: textblock
13570 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779
13571 #: ../src/guestfs-actions.pod:5748 ../src/guestfs-actions.pod:5774
13572 msgid ""
13573 "This may read fewer bytes than requested.  For further details see the "
13574 "L<pread(2)> system call."
13575 msgstr ""
13576
13577 #. type: textblock
13578 #: ../fish/guestfish-actions.pod:3767
13579 msgid "See also L</pwrite>, L</pread-device>."
13580 msgstr ""
13581
13582 #. type: =head2
13583 #: ../fish/guestfish-actions.pod:3772
13584 msgid "pread-device"
13585 msgstr ""
13586
13587 #. type: verbatim
13588 #: ../fish/guestfish-actions.pod:3774
13589 #, no-wrap
13590 msgid ""
13591 " pread-device device count offset\n"
13592 "\n"
13593 msgstr ""
13594
13595 #. type: textblock
13596 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5771
13597 msgid ""
13598 "This command lets you read part of a file.  It reads C<count> bytes of "
13599 "C<device>, starting at C<offset>."
13600 msgstr ""
13601
13602 #. type: textblock
13603 #: ../fish/guestfish-actions.pod:3782
13604 msgid "See also L</pread>."
13605 msgstr ""
13606
13607 #. type: =head2
13608 #: ../fish/guestfish-actions.pod:3787
13609 msgid "pvcreate"
13610 msgstr ""
13611
13612 #. type: verbatim
13613 #: ../fish/guestfish-actions.pod:3789
13614 #, no-wrap
13615 msgid ""
13616 " pvcreate device\n"
13617 "\n"
13618 msgstr ""
13619
13620 #. type: textblock
13621 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5794
13622 msgid ""
13623 "This creates an LVM physical volume on the named C<device>, where C<device> "
13624 "should usually be a partition name such as C</dev/sda1>."
13625 msgstr ""
13626
13627 #. type: =head2
13628 #: ../fish/guestfish-actions.pod:3795
13629 msgid "pvremove"
13630 msgstr ""
13631
13632 #. type: verbatim
13633 #: ../fish/guestfish-actions.pod:3797
13634 #, no-wrap
13635 msgid ""
13636 " pvremove device\n"
13637 "\n"
13638 msgstr ""
13639
13640 #. type: textblock
13641 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5808
13642 msgid ""
13643 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13644 "it."
13645 msgstr ""
13646
13647 #. type: textblock
13648 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5811
13649 msgid ""
13650 "The implementation uses the C<pvremove> command which refuses to wipe "
13651 "physical volumes that contain any volume groups, so you have to remove those "
13652 "first."
13653 msgstr ""
13654
13655 #. type: =head2
13656 #: ../fish/guestfish-actions.pod:3806
13657 msgid "pvresize"
13658 msgstr ""
13659
13660 #. type: verbatim
13661 #: ../fish/guestfish-actions.pod:3808
13662 #, no-wrap
13663 msgid ""
13664 " pvresize device\n"
13665 "\n"
13666 msgstr ""
13667
13668 #. type: textblock
13669 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5825
13670 msgid ""
13671 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13672 "the new size of the underlying device."
13673 msgstr ""
13674
13675 #. type: =head2
13676 #: ../fish/guestfish-actions.pod:3813
13677 msgid "pvresize-size"
13678 msgstr ""
13679
13680 #. type: verbatim
13681 #: ../fish/guestfish-actions.pod:3815
13682 #, no-wrap
13683 msgid ""
13684 " pvresize-size device size\n"
13685 "\n"
13686 msgstr ""
13687
13688 #. type: textblock
13689 #: ../fish/guestfish-actions.pod:3817
13690 msgid ""
13691 "This command is the same as L</pvresize> except that it allows you to "
13692 "specify the new size (in bytes) explicitly."
13693 msgstr ""
13694
13695 #. type: =head2
13696 #: ../fish/guestfish-actions.pod:3820
13697 msgid "pvs"
13698 msgstr ""
13699
13700 #. type: verbatim
13701 #: ../fish/guestfish-actions.pod:3822
13702 #, no-wrap
13703 msgid ""
13704 " pvs\n"
13705 "\n"
13706 msgstr ""
13707
13708 #. type: textblock
13709 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5851
13710 msgid ""
13711 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13712 "(8)> command."
13713 msgstr ""
13714
13715 #. type: textblock
13716 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5854
13717 msgid ""
13718 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13719 "sda2>)."
13720 msgstr ""
13721
13722 #. type: textblock
13723 #: ../fish/guestfish-actions.pod:3830
13724 msgid "See also L</pvs-full>."
13725 msgstr ""
13726
13727 #. type: =head2
13728 #: ../fish/guestfish-actions.pod:3832
13729 msgid "pvs-full"
13730 msgstr ""
13731
13732 #. type: verbatim
13733 #: ../fish/guestfish-actions.pod:3834
13734 #, no-wrap
13735 msgid ""
13736 " pvs-full\n"
13737 "\n"
13738 msgstr ""
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5870
13742 msgid ""
13743 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13744 "(8)> command.  The \"full\" version includes all fields."
13745 msgstr ""
13746
13747 #. type: =head2
13748 #: ../fish/guestfish-actions.pod:3839
13749 msgid "pvuuid"
13750 msgstr ""
13751
13752 #. type: verbatim
13753 #: ../fish/guestfish-actions.pod:3841
13754 #, no-wrap
13755 msgid ""
13756 " pvuuid device\n"
13757 "\n"
13758 msgstr ""
13759
13760 #. type: textblock
13761 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5885
13762 msgid "This command returns the UUID of the LVM PV C<device>."
13763 msgstr ""
13764
13765 #. type: =head2
13766 #: ../fish/guestfish-actions.pod:3845
13767 msgid "pwrite"
13768 msgstr ""
13769
13770 #. type: verbatim
13771 #: ../fish/guestfish-actions.pod:3847
13772 #, no-wrap
13773 msgid ""
13774 " pwrite path content offset\n"
13775 "\n"
13776 msgstr ""
13777
13778 #. type: textblock
13779 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5901
13780 msgid ""
13781 "This command writes to part of a file.  It writes the data buffer C<content> "
13782 "to the file C<path> starting at offset C<offset>."
13783 msgstr ""
13784
13785 #. type: textblock
13786 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5904
13787 msgid ""
13788 "This command implements the L<pwrite(2)> system call, and like that system "
13789 "call it may not write the full data requested.  The return value is the "
13790 "number of bytes that were actually written to the file.  This could even be "
13791 "0, although short writes are unlikely for regular files in ordinary "
13792 "circumstances."
13793 msgstr ""
13794
13795 #. type: textblock
13796 #: ../fish/guestfish-actions.pod:3858
13797 msgid "See also L</pread>, L</pwrite-device>."
13798 msgstr ""
13799
13800 #. type: =head2
13801 #: ../fish/guestfish-actions.pod:3863
13802 msgid "pwrite-device"
13803 msgstr ""
13804
13805 #. type: verbatim
13806 #: ../fish/guestfish-actions.pod:3865
13807 #, no-wrap
13808 msgid ""
13809 " pwrite-device device content offset\n"
13810 "\n"
13811 msgstr ""
13812
13813 #. type: textblock
13814 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5928
13815 msgid ""
13816 "This command writes to part of a device.  It writes the data buffer "
13817 "C<content> to C<device> starting at offset C<offset>."
13818 msgstr ""
13819
13820 #. type: textblock
13821 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5931
13822 msgid ""
13823 "This command implements the L<pwrite(2)> system call, and like that system "
13824 "call it may not write the full data requested (although short writes to disk "
13825 "devices and partitions are probably impossible with standard Linux kernels)."
13826 msgstr ""
13827
13828 #. type: textblock
13829 #: ../fish/guestfish-actions.pod:3875
13830 msgid "See also L</pwrite>."
13831 msgstr ""
13832
13833 #. type: =head2
13834 #: ../fish/guestfish-actions.pod:3880
13835 msgid "read-file"
13836 msgstr ""
13837
13838 #. type: verbatim
13839 #: ../fish/guestfish-actions.pod:3882
13840 #, no-wrap
13841 msgid ""
13842 " read-file path\n"
13843 "\n"
13844 msgstr ""
13845
13846 #. type: textblock
13847 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5952
13848 msgid "This calls returns the contents of the file C<path> as a buffer."
13849 msgstr ""
13850
13851 #. type: textblock
13852 #: ../fish/guestfish-actions.pod:3887
13853 msgid ""
13854 "Unlike L</cat>, this function can correctly handle files that contain "
13855 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13856 "is limited in the total size of file that can be handled."
13857 msgstr ""
13858
13859 #. type: =head2
13860 #: ../fish/guestfish-actions.pod:3895
13861 msgid "read-lines"
13862 msgstr ""
13863
13864 #. type: verbatim
13865 #: ../fish/guestfish-actions.pod:3897
13866 #, no-wrap
13867 msgid ""
13868 " read-lines path\n"
13869 "\n"
13870 msgstr ""
13871
13872 #. type: textblock
13873 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5977
13874 msgid ""
13875 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13876 "C<CRLF> character sequences are I<not> returned."
13877 msgstr ""
13878
13879 #. type: textblock
13880 #: ../fish/guestfish-actions.pod:3904
13881 msgid ""
13882 "Note that this function cannot correctly handle binary files (specifically, "
13883 "files containing C<\\0> character which is treated as end of line).  For "
13884 "those you need to use the L</read-file> function which has a more complex "
13885 "interface."
13886 msgstr ""
13887
13888 #. type: =head2
13889 #: ../fish/guestfish-actions.pod:3909
13890 msgid "readdir"
13891 msgstr ""
13892
13893 #. type: verbatim
13894 #: ../fish/guestfish-actions.pod:3911
13895 #, no-wrap
13896 msgid ""
13897 " readdir dir\n"
13898 "\n"
13899 msgstr ""
13900
13901 #. type: textblock
13902 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5997
13903 msgid "This returns the list of directory entries in directory C<dir>."
13904 msgstr ""
13905
13906 #. type: textblock
13907 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5999
13908 msgid ""
13909 "All entries in the directory are returned, including C<.> and C<..>.  The "
13910 "entries are I<not> sorted, but returned in the same order as the underlying "
13911 "filesystem."
13912 msgstr ""
13913
13914 #. type: textblock
13915 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6003
13916 msgid ""
13917 "Also this call returns basic file type information about each file.  The "
13918 "C<ftyp> field will contain one of the following characters:"
13919 msgstr ""
13920
13921 #. type: =item
13922 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6008
13923 msgid "'b'"
13924 msgstr ""
13925
13926 #. type: textblock
13927 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
13928 msgid "Block special"
13929 msgstr ""
13930
13931 #. type: =item
13932 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
13933 msgid "'c'"
13934 msgstr ""
13935
13936 #. type: textblock
13937 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6014
13938 msgid "Char special"
13939 msgstr ""
13940
13941 #. type: =item
13942 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
13943 msgid "'d'"
13944 msgstr ""
13945
13946 #. type: textblock
13947 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6018
13948 msgid "Directory"
13949 msgstr ""
13950
13951 #. type: =item
13952 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6020
13953 msgid "'f'"
13954 msgstr ""
13955
13956 #. type: textblock
13957 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6022
13958 msgid "FIFO (named pipe)"
13959 msgstr ""
13960
13961 #. type: =item
13962 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6024
13963 msgid "'l'"
13964 msgstr ""
13965
13966 #. type: textblock
13967 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6026
13968 msgid "Symbolic link"
13969 msgstr ""
13970
13971 #. type: =item
13972 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6028
13973 msgid "'r'"
13974 msgstr ""
13975
13976 #. type: textblock
13977 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6030
13978 msgid "Regular file"
13979 msgstr ""
13980
13981 #. type: =item
13982 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6032
13983 msgid "'s'"
13984 msgstr ""
13985
13986 #. type: textblock
13987 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6034
13988 msgid "Socket"
13989 msgstr ""
13990
13991 #. type: =item
13992 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6036
13993 msgid "'u'"
13994 msgstr ""
13995
13996 #. type: textblock
13997 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6038
13998 msgid "Unknown file type"
13999 msgstr ""
14000
14001 #. type: =item
14002 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6040
14003 msgid "'?'"
14004 msgstr ""
14005
14006 #. type: textblock
14007 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6042
14008 msgid ""
14009 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14010 msgstr ""
14011
14012 #. type: textblock
14013 #: ../fish/guestfish-actions.pod:3963
14014 msgid ""
14015 "This function is primarily intended for use by programs.  To get a simple "
14016 "list of names, use L</ls>.  To get a printable directory for human "
14017 "consumption, use L</ll>."
14018 msgstr ""
14019
14020 #. type: =head2
14021 #: ../fish/guestfish-actions.pod:3967
14022 msgid "readlink"
14023 msgstr ""
14024
14025 #. type: verbatim
14026 #: ../fish/guestfish-actions.pod:3969
14027 #, no-wrap
14028 msgid ""
14029 " readlink path\n"
14030 "\n"
14031 msgstr ""
14032
14033 #. type: textblock
14034 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6063
14035 msgid "This command reads the target of a symbolic link."
14036 msgstr ""
14037
14038 #. type: =head2
14039 #: ../fish/guestfish-actions.pod:3973
14040 msgid "readlinklist"
14041 msgstr ""
14042
14043 #. type: verbatim
14044 #: ../fish/guestfish-actions.pod:3975
14045 #, no-wrap
14046 msgid ""
14047 " readlinklist path 'names ...'\n"
14048 "\n"
14049 msgstr ""
14050
14051 #. type: textblock
14052 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6077
14053 msgid ""
14054 "This call allows you to do a C<readlink> operation on multiple files, where "
14055 "all files are in the directory C<path>.  C<names> is the list of files from "
14056 "this directory."
14057 msgstr ""
14058
14059 #. type: textblock
14060 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6081
14061 msgid ""
14062 "On return you get a list of strings, with a one-to-one correspondence to the "
14063 "C<names> list.  Each string is the value of the symbolic link."
14064 msgstr ""
14065
14066 #. type: textblock
14067 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6085
14068 msgid ""
14069 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14070 "result string is the empty string C<\"\">.  However the whole operation is "
14071 "completed even if there were C<readlink(2)> errors, and so you can call this "
14072 "function with names where you don't know if they are symbolic links already "
14073 "(albeit slightly less efficient)."
14074 msgstr ""
14075
14076 #. type: textblock
14077 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6092
14078 msgid ""
14079 "This call is intended for programs that want to efficiently list a directory "
14080 "contents without making many round-trips.  Very long directory listings "
14081 "might cause the protocol message size to be exceeded, causing this call to "
14082 "fail.  The caller must split up such requests into smaller groups of names."
14083 msgstr ""
14084
14085 #. type: =head2
14086 #: ../fish/guestfish-actions.pod:3999
14087 msgid "realpath"
14088 msgstr ""
14089
14090 #. type: verbatim
14091 #: ../fish/guestfish-actions.pod:4001
14092 #, no-wrap
14093 msgid ""
14094 " realpath path\n"
14095 "\n"
14096 msgstr ""
14097
14098 #. type: textblock
14099 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6111
14100 msgid ""
14101 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14102 "has no C<.>, C<..> or symbolic link path elements."
14103 msgstr ""
14104
14105 #. type: =head2
14106 #: ../fish/guestfish-actions.pod:4006
14107 msgid "removexattr"
14108 msgstr ""
14109
14110 #. type: verbatim
14111 #: ../fish/guestfish-actions.pod:4008
14112 #, no-wrap
14113 msgid ""
14114 " removexattr xattr path\n"
14115 "\n"
14116 msgstr ""
14117
14118 #. type: textblock
14119 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6126
14120 msgid ""
14121 "This call removes the extended attribute named C<xattr> of the file C<path>."
14122 msgstr ""
14123
14124 #. type: textblock
14125 #: ../fish/guestfish-actions.pod:4013
14126 msgid "See also: L</lremovexattr>, L<attr(5)>."
14127 msgstr ""
14128
14129 #. type: =head2
14130 #: ../fish/guestfish-actions.pod:4015
14131 msgid "resize2fs"
14132 msgstr ""
14133
14134 #. type: verbatim
14135 #: ../fish/guestfish-actions.pod:4017
14136 #, no-wrap
14137 msgid ""
14138 " resize2fs device\n"
14139 "\n"
14140 msgstr ""
14141
14142 #. type: textblock
14143 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6141
14144 msgid ""
14145 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14146 "underlying device."
14147 msgstr ""
14148
14149 #. type: textblock
14150 #: ../fish/guestfish-actions.pod:4022
14151 msgid ""
14152 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14153 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14154 "gives an error about this and sometimes not.  In any case, it is always safe "
14155 "to call L</e2fsck-f> before calling this function."
14156 msgstr ""
14157
14158 #. type: =head2
14159 #: ../fish/guestfish-actions.pod:4028
14160 msgid "resize2fs-M"
14161 msgstr ""
14162
14163 #. type: verbatim
14164 #: ../fish/guestfish-actions.pod:4030
14165 #, no-wrap
14166 msgid ""
14167 " resize2fs-M device\n"
14168 "\n"
14169 msgstr ""
14170
14171 #. type: textblock
14172 #: ../fish/guestfish-actions.pod:4032
14173 msgid ""
14174 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14175 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14176 "command."
14177 msgstr ""
14178
14179 #. type: textblock
14180 #: ../fish/guestfish-actions.pod:4036
14181 msgid ""
14182 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14183 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14184 "multiplied together, give the resulting size of the minimal filesystem in "
14185 "bytes."
14186 msgstr ""
14187
14188 #. type: =head2
14189 #: ../fish/guestfish-actions.pod:4041
14190 msgid "resize2fs-size"
14191 msgstr ""
14192
14193 #. type: verbatim
14194 #: ../fish/guestfish-actions.pod:4043
14195 #, no-wrap
14196 msgid ""
14197 " resize2fs-size device size\n"
14198 "\n"
14199 msgstr ""
14200
14201 #. type: textblock
14202 #: ../fish/guestfish-actions.pod:4045
14203 msgid ""
14204 "This command is the same as L</resize2fs> except that it allows you to "
14205 "specify the new size (in bytes) explicitly."
14206 msgstr ""
14207
14208 #. type: =head2
14209 #: ../fish/guestfish-actions.pod:4048
14210 msgid "rm"
14211 msgstr ""
14212
14213 #. type: verbatim
14214 #: ../fish/guestfish-actions.pod:4050
14215 #, no-wrap
14216 msgid ""
14217 " rm path\n"
14218 "\n"
14219 msgstr ""
14220
14221 #. type: textblock
14222 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6193
14223 msgid "Remove the single file C<path>."
14224 msgstr ""
14225
14226 #. type: =head2
14227 #: ../fish/guestfish-actions.pod:4054
14228 msgid "rm-rf"
14229 msgstr ""
14230
14231 #. type: verbatim
14232 #: ../fish/guestfish-actions.pod:4056
14233 #, no-wrap
14234 msgid ""
14235 " rm-rf path\n"
14236 "\n"
14237 msgstr ""
14238
14239 #. type: textblock
14240 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6205
14241 msgid ""
14242 "Remove the file or directory C<path>, recursively removing the contents if "
14243 "its a directory.  This is like the C<rm -rf> shell command."
14244 msgstr ""
14245
14246 #. type: =head2
14247 #: ../fish/guestfish-actions.pod:4062
14248 msgid "rmdir"
14249 msgstr ""
14250
14251 #. type: verbatim
14252 #: ../fish/guestfish-actions.pod:4064
14253 #, no-wrap
14254 msgid ""
14255 " rmdir path\n"
14256 "\n"
14257 msgstr ""
14258
14259 #. type: textblock
14260 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6219
14261 msgid "Remove the single directory C<path>."
14262 msgstr ""
14263
14264 #. type: =head2
14265 #: ../fish/guestfish-actions.pod:4068
14266 msgid "rmmountpoint"
14267 msgstr ""
14268
14269 #. type: verbatim
14270 #: ../fish/guestfish-actions.pod:4070
14271 #, no-wrap
14272 msgid ""
14273 " rmmountpoint exemptpath\n"
14274 "\n"
14275 msgstr ""
14276
14277 #. type: textblock
14278 #: ../fish/guestfish-actions.pod:4072
14279 msgid ""
14280 "This calls removes a mountpoint that was previously created with L</"
14281 "mkmountpoint>.  See L</mkmountpoint> for full details."
14282 msgstr ""
14283
14284 #. type: =head2
14285 #: ../fish/guestfish-actions.pod:4076
14286 msgid "scrub-device"
14287 msgstr ""
14288
14289 #. type: verbatim
14290 #: ../fish/guestfish-actions.pod:4078
14291 #, no-wrap
14292 msgid ""
14293 " scrub-device device\n"
14294 "\n"
14295 msgstr ""
14296
14297 #. type: textblock
14298 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6245
14299 msgid ""
14300 "This command writes patterns over C<device> to make data retrieval more "
14301 "difficult."
14302 msgstr ""
14303
14304 #. type: textblock
14305 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098
14306 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6248
14307 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6288
14308 msgid ""
14309 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14310 "more details."
14311 msgstr ""
14312
14313 #. type: =head2
14314 #: ../fish/guestfish-actions.pod:4089
14315 msgid "scrub-file"
14316 msgstr ""
14317
14318 #. type: verbatim
14319 #: ../fish/guestfish-actions.pod:4091
14320 #, no-wrap
14321 msgid ""
14322 " scrub-file file\n"
14323 "\n"
14324 msgstr ""
14325
14326 #. type: textblock
14327 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6264
14328 msgid ""
14329 "This command writes patterns over a file to make data retrieval more "
14330 "difficult."
14331 msgstr ""
14332
14333 #. type: textblock
14334 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6267
14335 msgid "The file is I<removed> after scrubbing."
14336 msgstr ""
14337
14338 #. type: =head2
14339 #: ../fish/guestfish-actions.pod:4101
14340 msgid "scrub-freespace"
14341 msgstr ""
14342
14343 #. type: verbatim
14344 #: ../fish/guestfish-actions.pod:4103
14345 #, no-wrap
14346 msgid ""
14347 " scrub-freespace dir\n"
14348 "\n"
14349 msgstr ""
14350
14351 #. type: textblock
14352 #: ../fish/guestfish-actions.pod:4105
14353 msgid ""
14354 "This command creates the directory C<dir> and then fills it with files until "
14355 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14356 "deletes them.  The intention is to scrub any free space on the partition "
14357 "containing C<dir>."
14358 msgstr ""
14359
14360 #. type: =head2
14361 #: ../fish/guestfish-actions.pod:4114
14362 msgid "set-append"
14363 msgstr ""
14364
14365 #. type: =head2
14366 #: ../fish/guestfish-actions.pod:4116
14367 msgid "append"
14368 msgstr ""
14369
14370 #. type: verbatim
14371 #: ../fish/guestfish-actions.pod:4118
14372 #, no-wrap
14373 msgid ""
14374 " set-append append\n"
14375 "\n"
14376 msgstr ""
14377
14378 #. type: textblock
14379 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6301
14380 msgid ""
14381 "This function is used to add additional options to the guest kernel command "
14382 "line."
14383 msgstr ""
14384
14385 #. type: textblock
14386 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6304
14387 msgid ""
14388 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14389 "environment variable."
14390 msgstr ""
14391
14392 #. type: textblock
14393 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6307
14394 msgid ""
14395 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14396 "(libguestfs always adds a few of its own)."
14397 msgstr ""
14398
14399 #. type: =head2
14400 #: ../fish/guestfish-actions.pod:4129
14401 msgid "set-attach-method"
14402 msgstr ""
14403
14404 #. type: =head2
14405 #: ../fish/guestfish-actions.pod:4131
14406 msgid "attach-method"
14407 msgstr ""
14408
14409 #. type: verbatim
14410 #: ../fish/guestfish-actions.pod:4133
14411 #, no-wrap
14412 msgid ""
14413 " set-attach-method attachmethod\n"
14414 "\n"
14415 msgstr ""
14416
14417 #. type: textblock
14418 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6320
14419 msgid ""
14420 "Set the method that libguestfs uses to connect to the back end guestfsd "
14421 "daemon.  Possible methods are:"
14422 msgstr ""
14423
14424 #. type: =item
14425 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6325
14426 #: ../src/guestfs.pod:2901
14427 msgid "C<appliance>"
14428 msgstr ""
14429
14430 #. type: textblock
14431 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6327
14432 msgid ""
14433 "Launch an appliance and connect to it.  This is the ordinary method and the "
14434 "default."
14435 msgstr ""
14436
14437 #. type: =item
14438 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6330
14439 msgid "C<unix:I<path>>"
14440 msgstr ""
14441
14442 #. type: textblock
14443 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6332
14444 msgid "Connect to the Unix domain socket I<path>."
14445 msgstr ""
14446
14447 #. type: textblock
14448 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6334
14449 msgid ""
14450 "This method lets you connect to an existing daemon or (using virtio-serial) "
14451 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14452 "RUNNING DAEMONS>."
14453 msgstr ""
14454
14455 #. type: =head2
14456 #: ../fish/guestfish-actions.pod:4155
14457 msgid "set-autosync"
14458 msgstr ""
14459
14460 #. type: =head2
14461 #: ../fish/guestfish-actions.pod:4157
14462 msgid "autosync"
14463 msgstr ""
14464
14465 #. type: verbatim
14466 #: ../fish/guestfish-actions.pod:4159
14467 #, no-wrap
14468 msgid ""
14469 " set-autosync true|false\n"
14470 "\n"
14471 msgstr ""
14472
14473 #. type: textblock
14474 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6350
14475 msgid ""
14476 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14477 "effort attempt to make filesystems consistent and synchronized when the "
14478 "handle is closed (also if the program exits without closing handles)."
14479 msgstr ""
14480
14481 #. type: textblock
14482 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6355
14483 msgid ""
14484 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14485 "disabled by default)."
14486 msgstr ""
14487
14488 #. type: =head2
14489 #: ../fish/guestfish-actions.pod:4169
14490 msgid "set-direct"
14491 msgstr ""
14492
14493 #. type: =head2
14494 #: ../fish/guestfish-actions.pod:4171
14495 msgid "direct"
14496 msgstr ""
14497
14498 #. type: verbatim
14499 #: ../fish/guestfish-actions.pod:4173
14500 #, no-wrap
14501 msgid ""
14502 " set-direct true|false\n"
14503 "\n"
14504 msgstr ""
14505
14506 #. type: textblock
14507 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6368
14508 msgid ""
14509 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14510 "passed directly through to the appliance once it is launched."
14511 msgstr ""
14512
14513 #. type: textblock
14514 #: ../fish/guestfish-actions.pod:4179
14515 msgid ""
14516 "One consequence of this is that log messages aren't caught by the library "
14517 "and handled by L</set-log-message-callback>, but go straight to stdout."
14518 msgstr ""
14519
14520 #. type: textblock
14521 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6376
14522 msgid "You probably don't want to use this unless you know what you are doing."
14523 msgstr ""
14524
14525 #. type: textblock
14526 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6379
14527 msgid "The default is disabled."
14528 msgstr ""
14529
14530 #. type: =head2
14531 #: ../fish/guestfish-actions.pod:4188
14532 msgid "set-e2label"
14533 msgstr ""
14534
14535 #. type: verbatim
14536 #: ../fish/guestfish-actions.pod:4190
14537 #, no-wrap
14538 msgid ""
14539 " set-e2label device label\n"
14540 "\n"
14541 msgstr ""
14542
14543 #. type: textblock
14544 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6392
14545 msgid ""
14546 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14547 "C<label>.  Filesystem labels are limited to 16 characters."
14548 msgstr ""
14549
14550 #. type: textblock
14551 #: ../fish/guestfish-actions.pod:4196
14552 msgid ""
14553 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14554 "label on a filesystem."
14555 msgstr ""
14556
14557 #. type: =head2
14558 #: ../fish/guestfish-actions.pod:4199
14559 msgid "set-e2uuid"
14560 msgstr ""
14561
14562 #. type: verbatim
14563 #: ../fish/guestfish-actions.pod:4201
14564 #, no-wrap
14565 msgid ""
14566 " set-e2uuid device uuid\n"
14567 "\n"
14568 msgstr ""
14569
14570 #. type: textblock
14571 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6410
14572 msgid ""
14573 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14574 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14575 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14576 msgstr ""
14577
14578 #. type: textblock
14579 #: ../fish/guestfish-actions.pod:4208
14580 msgid ""
14581 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14582 "UUID of a filesystem."
14583 msgstr ""
14584
14585 #. type: =head2
14586 #: ../fish/guestfish-actions.pod:4211
14587 msgid "set-memsize"
14588 msgstr ""
14589
14590 #. type: =head2
14591 #: ../fish/guestfish-actions.pod:4213
14592 msgid "memsize"
14593 msgstr ""
14594
14595 #. type: verbatim
14596 #: ../fish/guestfish-actions.pod:4215
14597 #, no-wrap
14598 msgid ""
14599 " set-memsize memsize\n"
14600 "\n"
14601 msgstr ""
14602
14603 #. type: textblock
14604 #: ../fish/guestfish-actions.pod:4217
14605 msgid ""
14606 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14607 "This only has any effect if called before L</launch>."
14608 msgstr ""
14609
14610 #. type: textblock
14611 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6432
14612 msgid ""
14613 "You can also change this by setting the environment variable "
14614 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14615 msgstr ""
14616
14617 #. type: =head2
14618 #: ../fish/guestfish-actions.pod:4228
14619 msgid "set-network"
14620 msgstr ""
14621
14622 #. type: =head2
14623 #: ../fish/guestfish-actions.pod:4230
14624 msgid "network"
14625 msgstr ""
14626
14627 #. type: verbatim
14628 #: ../fish/guestfish-actions.pod:4232
14629 #, no-wrap
14630 msgid ""
14631 " set-network true|false\n"
14632 "\n"
14633 msgstr ""
14634
14635 #. type: textblock
14636 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6449
14637 msgid ""
14638 "If C<network> is true, then the network is enabled in the libguestfs "
14639 "appliance.  The default is false."
14640 msgstr ""
14641
14642 #. type: textblock
14643 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6452
14644 msgid ""
14645 "This affects whether commands are able to access the network (see L<guestfs"
14646 "(3)/RUNNING COMMANDS>)."
14647 msgstr ""
14648
14649 #. type: textblock
14650 #: ../fish/guestfish-actions.pod:4240
14651 msgid ""
14652 "You must call this before calling L</launch>, otherwise it has no effect."
14653 msgstr ""
14654
14655 #. type: =head2
14656 #: ../fish/guestfish-actions.pod:4243
14657 msgid "set-path"
14658 msgstr ""
14659
14660 #. type: verbatim
14661 #: ../fish/guestfish-actions.pod:4247
14662 #, no-wrap
14663 msgid ""
14664 " set-path searchpath\n"
14665 "\n"
14666 msgstr ""
14667
14668 #. type: textblock
14669 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6468
14670 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14671 msgstr ""
14672
14673 #. type: textblock
14674 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6470
14675 msgid ""
14676 "The default is C<$libdir/guestfs> unless overridden by setting "
14677 "C<LIBGUESTFS_PATH> environment variable."
14678 msgstr ""
14679
14680 #. type: textblock
14681 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6473
14682 msgid "Setting C<path> to C<NULL> restores the default path."
14683 msgstr ""
14684
14685 #. type: =head2
14686 #: ../fish/guestfish-actions.pod:4256
14687 msgid "set-pgroup"
14688 msgstr ""
14689
14690 #. type: =head2
14691 #: ../fish/guestfish-actions.pod:4258
14692 msgid "pgroup"
14693 msgstr ""
14694
14695 #. type: verbatim
14696 #: ../fish/guestfish-actions.pod:4260
14697 #, no-wrap
14698 msgid ""
14699 " set-pgroup true|false\n"
14700 "\n"
14701 msgstr ""
14702
14703 #. type: textblock
14704 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6485
14705 msgid ""
14706 "If C<pgroup> is true, child processes are placed into their own process "
14707 "group."
14708 msgstr ""
14709
14710 #. type: textblock
14711 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6488
14712 msgid ""
14713 "The practical upshot of this is that signals like C<SIGINT> (from users "
14714 "pressing C<^C>) won't be received by the child process."
14715 msgstr ""
14716
14717 #. type: textblock
14718 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6491
14719 msgid ""
14720 "The default for this flag is false, because usually you want C<^C> to kill "
14721 "the subprocess."
14722 msgstr ""
14723
14724 #. type: =head2
14725 #: ../fish/guestfish-actions.pod:4271
14726 msgid "set-qemu"
14727 msgstr ""
14728
14729 #. type: =head2
14730 #: ../fish/guestfish-actions.pod:4273
14731 msgid "qemu"
14732 msgstr ""
14733
14734 #. type: verbatim
14735 #: ../fish/guestfish-actions.pod:4275
14736 #, no-wrap
14737 msgid ""
14738 " set-qemu qemu\n"
14739 "\n"
14740 msgstr ""
14741
14742 #. type: textblock
14743 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6504
14744 msgid "Set the qemu binary that we will use."
14745 msgstr ""
14746
14747 #. type: textblock
14748 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6506
14749 msgid ""
14750 "The default is chosen when the library was compiled by the configure script."
14751 msgstr ""
14752
14753 #. type: textblock
14754 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6509
14755 msgid ""
14756 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14757 "variable."
14758 msgstr ""
14759
14760 #. type: textblock
14761 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6512
14762 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14763 msgstr ""
14764
14765 #. type: textblock
14766 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6514
14767 msgid ""
14768 "Note that you should call this function as early as possible after creating "
14769 "the handle.  This is because some pre-launch operations depend on testing "
14770 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14771 "don't retest features, and so you might see inconsistent results.  Using the "
14772 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14773 "the qemu binary at the same time as the handle is created."
14774 msgstr ""
14775
14776 #. type: =head2
14777 #: ../fish/guestfish-actions.pod:4295
14778 msgid "set-recovery-proc"
14779 msgstr ""
14780
14781 #. type: =head2
14782 #: ../fish/guestfish-actions.pod:4297
14783 msgid "recovery-proc"
14784 msgstr ""
14785
14786 #. type: verbatim
14787 #: ../fish/guestfish-actions.pod:4299
14788 #, no-wrap
14789 msgid ""
14790 " set-recovery-proc true|false\n"
14791 "\n"
14792 msgstr ""
14793
14794 #. type: textblock
14795 #: ../fish/guestfish-actions.pod:4301
14796 msgid ""
14797 "If this is called with the parameter C<false> then L</launch> does not "
14798 "create a recovery process.  The purpose of the recovery process is to stop "
14799 "runaway qemu processes in the case where the main program aborts abruptly."
14800 msgstr ""
14801
14802 #. type: textblock
14803 #: ../fish/guestfish-actions.pod:4306
14804 msgid ""
14805 "This only has any effect if called before L</launch>, and the default is "
14806 "true."
14807 msgstr ""
14808
14809 #. type: textblock
14810 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6540
14811 msgid ""
14812 "About the only time when you would want to disable this is if the main "
14813 "process will fork itself into the background (\"daemonize\" itself).  In "
14814 "this case the recovery process thinks that the main program has disappeared "
14815 "and so kills qemu, which is not very helpful."
14816 msgstr ""
14817
14818 #. type: =head2
14819 #: ../fish/guestfish-actions.pod:4315
14820 msgid "set-selinux"
14821 msgstr ""
14822
14823 #. type: =head2
14824 #: ../fish/guestfish-actions.pod:4317
14825 msgid "selinux"
14826 msgstr ""
14827
14828 #. type: verbatim
14829 #: ../fish/guestfish-actions.pod:4319
14830 #, no-wrap
14831 msgid ""
14832 " set-selinux true|false\n"
14833 "\n"
14834 msgstr ""
14835
14836 #. type: textblock
14837 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6556
14838 msgid ""
14839 "This sets the selinux flag that is passed to the appliance at boot time.  "
14840 "The default is C<selinux=0> (disabled)."
14841 msgstr ""
14842
14843 #. type: textblock
14844 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6559
14845 msgid ""
14846 "Note that if SELinux is enabled, it is always in Permissive mode "
14847 "(C<enforcing=0>)."
14848 msgstr ""
14849
14850 #. type: =head2
14851 #: ../fish/guestfish-actions.pod:4330
14852 msgid "set-smp"
14853 msgstr ""
14854
14855 #. type: =head2
14856 #: ../fish/guestfish-actions.pod:4332
14857 msgid "smp"
14858 msgstr ""
14859
14860 #. type: verbatim
14861 #: ../fish/guestfish-actions.pod:4334
14862 #, no-wrap
14863 msgid ""
14864 " set-smp smp\n"
14865 "\n"
14866 msgstr ""
14867
14868 #. type: textblock
14869 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6575
14870 msgid ""
14871 "Change the number of virtual CPUs assigned to the appliance.  The default is "
14872 "C<1>.  Increasing this may improve performance, though often it has no "
14873 "effect."
14874 msgstr ""
14875
14876 #. type: textblock
14877 #: ../fish/guestfish-actions.pod:4340
14878 msgid "This function must be called before L</launch>."
14879 msgstr ""
14880
14881 #. type: =head2
14882 #: ../fish/guestfish-actions.pod:4342
14883 msgid "set-trace"
14884 msgstr ""
14885
14886 #. type: =head2
14887 #: ../fish/guestfish-actions.pod:4344
14888 msgid "trace"
14889 msgstr ""
14890
14891 #. type: verbatim
14892 #: ../fish/guestfish-actions.pod:4346
14893 #, no-wrap
14894 msgid ""
14895 " set-trace true|false\n"
14896 "\n"
14897 msgstr ""
14898
14899 #. type: textblock
14900 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6591
14901 msgid ""
14902 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14903 "return values are traced."
14904 msgstr ""
14905
14906 #. type: textblock
14907 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6594
14908 msgid ""
14909 "If you want to trace C API calls into libguestfs (and other libraries) then "
14910 "possibly a better way is to use the external ltrace(1) command."
14911 msgstr ""
14912
14913 #. type: textblock
14914 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6598
14915 msgid ""
14916 "Command traces are disabled unless the environment variable "
14917 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14918 msgstr ""
14919
14920 #. type: textblock
14921 #: ../fish/guestfish-actions.pod:4358
14922 msgid ""
14923 "Trace messages are normally sent to C<stderr>, unless you register a "
14924 "callback to send them somewhere else (see L</set-event-callback>)."
14925 msgstr ""
14926
14927 #. type: =head2
14928 #: ../fish/guestfish-actions.pod:4362
14929 msgid "set-verbose"
14930 msgstr ""
14931
14932 #. type: =head2
14933 #: ../fish/guestfish-actions.pod:4364
14934 msgid "verbose"
14935 msgstr ""
14936
14937 #. type: verbatim
14938 #: ../fish/guestfish-actions.pod:4366
14939 #, no-wrap
14940 msgid ""
14941 " set-verbose true|false\n"
14942 "\n"
14943 msgstr ""
14944
14945 #. type: textblock
14946 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6615
14947 msgid "If C<verbose> is true, this turns on verbose messages."
14948 msgstr ""
14949
14950 #. type: textblock
14951 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6617
14952 msgid ""
14953 "Verbose messages are disabled unless the environment variable "
14954 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14955 msgstr ""
14956
14957 #. type: textblock
14958 #: ../fish/guestfish-actions.pod:4373
14959 msgid ""
14960 "Verbose messages are normally sent to C<stderr>, unless you register a "
14961 "callback to send them somewhere else (see L</set-event-callback>)."
14962 msgstr ""
14963
14964 #. type: =head2
14965 #: ../fish/guestfish-actions.pod:4377
14966 msgid "setcon"
14967 msgstr ""
14968
14969 #. type: verbatim
14970 #: ../fish/guestfish-actions.pod:4379
14971 #, no-wrap
14972 msgid ""
14973 " setcon context\n"
14974 "\n"
14975 msgstr ""
14976
14977 #. type: textblock
14978 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6634
14979 msgid ""
14980 "This sets the SELinux security context of the daemon to the string "
14981 "C<context>."
14982 msgstr ""
14983
14984 #. type: textblock
14985 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6637
14986 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14987 msgstr ""
14988
14989 #. type: =head2
14990 #: ../fish/guestfish-actions.pod:4386
14991 msgid "setxattr"
14992 msgstr ""
14993
14994 #. type: verbatim
14995 #: ../fish/guestfish-actions.pod:4388
14996 #, no-wrap
14997 msgid ""
14998 " setxattr xattr val vallen path\n"
14999 "\n"
15000 msgstr ""
15001
15002 #. type: textblock
15003 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6652
15004 msgid ""
15005 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15006 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15007 msgstr ""
15008
15009 #. type: textblock
15010 #: ../fish/guestfish-actions.pod:4394
15011 msgid "See also: L</lsetxattr>, L<attr(5)>."
15012 msgstr ""
15013
15014 #. type: =head2
15015 #: ../fish/guestfish-actions.pod:4396
15016 msgid "sfdisk"
15017 msgstr ""
15018
15019 #. type: verbatim
15020 #: ../fish/guestfish-actions.pod:4398
15021 #, no-wrap
15022 msgid ""
15023 " sfdisk device cyls heads sectors 'lines ...'\n"
15024 "\n"
15025 msgstr ""
15026
15027 #. type: textblock
15028 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6679
15029 msgid ""
15030 "This is a direct interface to the L<sfdisk(8)> program for creating "
15031 "partitions on block devices."
15032 msgstr ""
15033
15034 #. type: textblock
15035 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6682
15036 msgid "C<device> should be a block device, for example C</dev/sda>."
15037 msgstr ""
15038
15039 #. type: textblock
15040 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6684
15041 msgid ""
15042 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15043 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15044 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15045 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15046 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15047 "the kernel) cannot work out the right geometry and you will need to tell it."
15048 msgstr ""
15049
15050 #. type: textblock
15051 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
15052 msgid ""
15053 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15054 "refer to the L<sfdisk(8)> manpage."
15055 msgstr ""
15056
15057 #. type: textblock
15058 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
15059 msgid ""
15060 "To create a single partition occupying the whole disk, you would pass "
15061 "C<lines> as a single element list, when the single element being the string "
15062 "C<,> (comma)."
15063 msgstr ""
15064
15065 #. type: textblock
15066 #: ../fish/guestfish-actions.pod:4420
15067 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15068 msgstr ""
15069
15070 #. type: textblock
15071 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449
15072 #: ../fish/guestfish-actions.pod:4471
15073 msgid ""
15074 "I<This function is deprecated.> In new code, use the L</part_add> call "
15075 "instead."
15076 msgstr ""
15077
15078 #. type: =head2
15079 #: ../fish/guestfish-actions.pod:4433
15080 msgid "sfdiskM"
15081 msgstr ""
15082
15083 #. type: verbatim
15084 #: ../fish/guestfish-actions.pod:4435
15085 #, no-wrap
15086 msgid ""
15087 " sfdiskM device 'lines ...'\n"
15088 "\n"
15089 msgstr ""
15090
15091 #. type: textblock
15092 #: ../fish/guestfish-actions.pod:4437
15093 msgid ""
15094 "This is a simplified interface to the L</sfdisk> command, where partition "
15095 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15096 "you don't need to specify the cyls, heads and sectors parameters which were "
15097 "rarely if ever used anyway."
15098 msgstr ""
15099
15100 #. type: textblock
15101 #: ../fish/guestfish-actions.pod:4443
15102 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15103 msgstr ""
15104
15105 #. type: =head2
15106 #: ../fish/guestfish-actions.pod:4456
15107 msgid "sfdisk-N"
15108 msgstr ""
15109
15110 #. type: verbatim
15111 #: ../fish/guestfish-actions.pod:4458
15112 #, no-wrap
15113 msgid ""
15114 " sfdisk-N device partnum cyls heads sectors line\n"
15115 "\n"
15116 msgstr ""
15117
15118 #. type: textblock
15119 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6757
15120 msgid ""
15121 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15122 "(note: C<n> counts from 1)."
15123 msgstr ""
15124
15125 #. type: textblock
15126 #: ../fish/guestfish-actions.pod:4463
15127 msgid ""
15128 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15129 "cyls/heads/sectors parameters."
15130 msgstr ""
15131
15132 #. type: textblock
15133 #: ../fish/guestfish-actions.pod:4466
15134 msgid "See also: L</part-add>"
15135 msgstr ""
15136
15137 #. type: =head2
15138 #: ../fish/guestfish-actions.pod:4478
15139 msgid "sfdisk-disk-geometry"
15140 msgstr ""
15141
15142 #. type: verbatim
15143 #: ../fish/guestfish-actions.pod:4480
15144 #, no-wrap
15145 msgid ""
15146 " sfdisk-disk-geometry device\n"
15147 "\n"
15148 msgstr ""
15149
15150 #. type: textblock
15151 #: ../fish/guestfish-actions.pod:4482
15152 msgid ""
15153 "This displays the disk geometry of C<device> read from the partition table.  "
15154 "Especially in the case where the underlying block device has been resized, "
15155 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15156 "kernel-geometry>)."
15157 msgstr ""
15158
15159 #. type: textblock
15160 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496
15161 #: ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6799
15162 msgid "The result is in human-readable format, and not designed to be parsed."
15163 msgstr ""
15164
15165 #. type: =head2
15166 #: ../fish/guestfish-actions.pod:4490
15167 msgid "sfdisk-kernel-geometry"
15168 msgstr ""
15169
15170 #. type: verbatim
15171 #: ../fish/guestfish-actions.pod:4492
15172 #, no-wrap
15173 msgid ""
15174 " sfdisk-kernel-geometry device\n"
15175 "\n"
15176 msgstr ""
15177
15178 #. type: textblock
15179 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6797
15180 msgid "This displays the kernel's idea of the geometry of C<device>."
15181 msgstr ""
15182
15183 #. type: =head2
15184 #: ../fish/guestfish-actions.pod:4499
15185 msgid "sfdisk-l"
15186 msgstr ""
15187
15188 #. type: verbatim
15189 #: ../fish/guestfish-actions.pod:4501
15190 #, no-wrap
15191 msgid ""
15192 " sfdisk-l device\n"
15193 "\n"
15194 msgstr ""
15195
15196 #. type: textblock
15197 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6820
15198 msgid ""
15199 "This displays the partition table on C<device>, in the human-readable output "
15200 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15201 msgstr ""
15202
15203 #. type: textblock
15204 #: ../fish/guestfish-actions.pod:4507
15205 msgid "See also: L</part-list>"
15206 msgstr ""
15207
15208 #. type: textblock
15209 #: ../fish/guestfish-actions.pod:4509
15210 msgid ""
15211 "I<This function is deprecated.> In new code, use the L</part_list> call "
15212 "instead."
15213 msgstr ""
15214
15215 #. type: =head2
15216 #: ../fish/guestfish-actions.pod:4516
15217 msgid "sh"
15218 msgstr ""
15219
15220 #. type: verbatim
15221 #: ../fish/guestfish-actions.pod:4518
15222 #, no-wrap
15223 msgid ""
15224 " sh command\n"
15225 "\n"
15226 msgstr ""
15227
15228 #. type: textblock
15229 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6837
15230 msgid ""
15231 "This call runs a command from the guest filesystem via the guest's C</bin/"
15232 "sh>."
15233 msgstr ""
15234
15235 #. type: textblock
15236 #: ../fish/guestfish-actions.pod:4523
15237 msgid "This is like L</command>, but passes the command to:"
15238 msgstr ""
15239
15240 #. type: verbatim
15241 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6842
15242 #, no-wrap
15243 msgid ""
15244 " /bin/sh -c \"command\"\n"
15245 "\n"
15246 msgstr ""
15247
15248 #. type: textblock
15249 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6844
15250 msgid ""
15251 "Depending on the guest's shell, this usually results in wildcards being "
15252 "expanded, shell expressions being interpolated and so on."
15253 msgstr ""
15254
15255 #. type: textblock
15256 #: ../fish/guestfish-actions.pod:4531
15257 msgid "All the provisos about L</command> apply to this call."
15258 msgstr ""
15259
15260 #. type: =head2
15261 #: ../fish/guestfish-actions.pod:4533
15262 msgid "sh-lines"
15263 msgstr ""
15264
15265 #. type: verbatim
15266 #: ../fish/guestfish-actions.pod:4535
15267 #, no-wrap
15268 msgid ""
15269 " sh-lines command\n"
15270 "\n"
15271 msgstr ""
15272
15273 #. type: textblock
15274 #: ../fish/guestfish-actions.pod:4537
15275 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15276 msgstr ""
15277
15278 #. type: textblock
15279 #: ../fish/guestfish-actions.pod:4540
15280 msgid "See also: L</command-lines>"
15281 msgstr ""
15282
15283 #. type: =head2
15284 #: ../fish/guestfish-actions.pod:4542
15285 msgid "sleep"
15286 msgstr ""
15287
15288 #. type: verbatim
15289 #: ../fish/guestfish-actions.pod:4544
15290 #, no-wrap
15291 msgid ""
15292 " sleep secs\n"
15293 "\n"
15294 msgstr ""
15295
15296 #. type: textblock
15297 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6878
15298 msgid "Sleep for C<secs> seconds."
15299 msgstr ""
15300
15301 #. type: =head2
15302 #: ../fish/guestfish-actions.pod:4548
15303 msgid "stat"
15304 msgstr ""
15305
15306 #. type: verbatim
15307 #: ../fish/guestfish-actions.pod:4550
15308 #, no-wrap
15309 msgid ""
15310 " stat path\n"
15311 "\n"
15312 msgstr ""
15313
15314 #. type: textblock
15315 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6892
15316 msgid "This is the same as the C<stat(2)> system call."
15317 msgstr ""
15318
15319 #. type: =head2
15320 #: ../fish/guestfish-actions.pod:4556
15321 msgid "statvfs"
15322 msgstr ""
15323
15324 #. type: verbatim
15325 #: ../fish/guestfish-actions.pod:4558
15326 #, no-wrap
15327 msgid ""
15328 " statvfs path\n"
15329 "\n"
15330 msgstr ""
15331
15332 #. type: textblock
15333 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6906
15334 msgid ""
15335 "Returns file system statistics for any mounted file system.  C<path> should "
15336 "be a file or directory in the mounted file system (typically it is the mount "
15337 "point itself, but it doesn't need to be)."
15338 msgstr ""
15339
15340 #. type: textblock
15341 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6910
15342 msgid "This is the same as the C<statvfs(2)> system call."
15343 msgstr ""
15344
15345 #. type: =head2
15346 #: ../fish/guestfish-actions.pod:4566
15347 msgid "strings"
15348 msgstr ""
15349
15350 #. type: verbatim
15351 #: ../fish/guestfish-actions.pod:4568
15352 #, no-wrap
15353 msgid ""
15354 " strings path\n"
15355 "\n"
15356 msgstr ""
15357
15358 #. type: textblock
15359 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6924
15360 msgid ""
15361 "This runs the L<strings(1)> command on a file and returns the list of "
15362 "printable strings found."
15363 msgstr ""
15364
15365 #. type: =head2
15366 #: ../fish/guestfish-actions.pod:4576
15367 msgid "strings-e"
15368 msgstr ""
15369
15370 #. type: verbatim
15371 #: ../fish/guestfish-actions.pod:4578
15372 #, no-wrap
15373 msgid ""
15374 " strings-e encoding path\n"
15375 "\n"
15376 msgstr ""
15377
15378 #. type: textblock
15379 #: ../fish/guestfish-actions.pod:4580
15380 msgid ""
15381 "This is like the L</strings> command, but allows you to specify the encoding "
15382 "of strings that are looked for in the source file C<path>."
15383 msgstr ""
15384
15385 #. type: textblock
15386 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6947
15387 msgid "Allowed encodings are:"
15388 msgstr ""
15389
15390 #. type: =item
15391 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6951
15392 msgid "s"
15393 msgstr ""
15394
15395 #. type: textblock
15396 #: ../fish/guestfish-actions.pod:4590
15397 msgid ""
15398 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15399 "ISO-8859-X (this is what L</strings> uses)."
15400 msgstr ""
15401
15402 #. type: =item
15403 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6956
15404 msgid "S"
15405 msgstr ""
15406
15407 #. type: textblock
15408 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6958
15409 msgid "Single 8-bit-byte characters."
15410 msgstr ""
15411
15412 #. type: =item
15413 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
15414 msgid "b"
15415 msgstr ""
15416
15417 #. type: textblock
15418 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6962
15419 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15420 msgstr ""
15421
15422 #. type: =item
15423 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6965
15424 msgid "l (lower case letter L)"
15425 msgstr ""
15426
15427 #. type: textblock
15428 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6967
15429 msgid ""
15430 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15431 "examining binaries in Windows guests."
15432 msgstr ""
15433
15434 #. type: =item
15435 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6970
15436 msgid "B"
15437 msgstr ""
15438
15439 #. type: textblock
15440 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6972
15441 msgid "32-bit big endian such as UCS-4BE."
15442 msgstr ""
15443
15444 #. type: =item
15445 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6974
15446 msgid "L"
15447 msgstr ""
15448
15449 #. type: textblock
15450 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6976
15451 msgid "32-bit little endian such as UCS-4LE."
15452 msgstr ""
15453
15454 #. type: textblock
15455 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
15456 msgid "The returned strings are transcoded to UTF-8."
15457 msgstr ""
15458
15459 #. type: =head2
15460 #: ../fish/guestfish-actions.pod:4622
15461 msgid "swapoff-device"
15462 msgstr ""
15463
15464 #. type: verbatim
15465 #: ../fish/guestfish-actions.pod:4624
15466 #, no-wrap
15467 msgid ""
15468 " swapoff-device device\n"
15469 "\n"
15470 msgstr ""
15471
15472 #. type: textblock
15473 #: ../fish/guestfish-actions.pod:4626
15474 msgid ""
15475 "This command disables the libguestfs appliance swap device or partition "
15476 "named C<device>.  See L</swapon-device>."
15477 msgstr ""
15478
15479 #. type: =head2
15480 #: ../fish/guestfish-actions.pod:4630
15481 msgid "swapoff-file"
15482 msgstr ""
15483
15484 #. type: verbatim
15485 #: ../fish/guestfish-actions.pod:4632
15486 #, no-wrap
15487 msgid ""
15488 " swapoff-file file\n"
15489 "\n"
15490 msgstr ""
15491
15492 #. type: textblock
15493 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7011
15494 msgid "This command disables the libguestfs appliance swap on file."
15495 msgstr ""
15496
15497 #. type: =head2
15498 #: ../fish/guestfish-actions.pod:4636
15499 msgid "swapoff-label"
15500 msgstr ""
15501
15502 #. type: verbatim
15503 #: ../fish/guestfish-actions.pod:4638
15504 #, no-wrap
15505 msgid ""
15506 " swapoff-label label\n"
15507 "\n"
15508 msgstr ""
15509
15510 #. type: textblock
15511 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7023
15512 msgid ""
15513 "This command disables the libguestfs appliance swap on labeled swap "
15514 "partition."
15515 msgstr ""
15516
15517 #. type: =head2
15518 #: ../fish/guestfish-actions.pod:4643
15519 msgid "swapoff-uuid"
15520 msgstr ""
15521
15522 #. type: verbatim
15523 #: ../fish/guestfish-actions.pod:4645
15524 #, no-wrap
15525 msgid ""
15526 " swapoff-uuid uuid\n"
15527 "\n"
15528 msgstr ""
15529
15530 #. type: textblock
15531 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7036
15532 msgid ""
15533 "This command disables the libguestfs appliance swap partition with the given "
15534 "UUID."
15535 msgstr ""
15536
15537 #. type: =head2
15538 #: ../fish/guestfish-actions.pod:4650
15539 msgid "swapon-device"
15540 msgstr ""
15541
15542 #. type: verbatim
15543 #: ../fish/guestfish-actions.pod:4652
15544 #, no-wrap
15545 msgid ""
15546 " swapon-device device\n"
15547 "\n"
15548 msgstr ""
15549
15550 #. type: textblock
15551 #: ../fish/guestfish-actions.pod:4654
15552 msgid ""
15553 "This command enables the libguestfs appliance to use the swap device or "
15554 "partition named C<device>.  The increased memory is made available for all "
15555 "commands, for example those run using L</command> or L</sh>."
15556 msgstr ""
15557
15558 #. type: textblock
15559 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7054
15560 msgid ""
15561 "Note that you should not swap to existing guest swap partitions unless you "
15562 "know what you are doing.  They may contain hibernation information, or other "
15563 "information that the guest doesn't want you to trash.  You also risk leaking "
15564 "information about the host to the guest this way.  Instead, attach a new "
15565 "host device to the guest and swap on that."
15566 msgstr ""
15567
15568 #. type: =head2
15569 #: ../fish/guestfish-actions.pod:4666
15570 msgid "swapon-file"
15571 msgstr ""
15572
15573 #. type: verbatim
15574 #: ../fish/guestfish-actions.pod:4668
15575 #, no-wrap
15576 msgid ""
15577 " swapon-file file\n"
15578 "\n"
15579 msgstr ""
15580
15581 #. type: textblock
15582 #: ../fish/guestfish-actions.pod:4670
15583 msgid ""
15584 "This command enables swap to a file.  See L</swapon-device> for other notes."
15585 msgstr ""
15586
15587 #. type: =head2
15588 #: ../fish/guestfish-actions.pod:4673
15589 msgid "swapon-label"
15590 msgstr ""
15591
15592 #. type: verbatim
15593 #: ../fish/guestfish-actions.pod:4675
15594 #, no-wrap
15595 msgid ""
15596 " swapon-label label\n"
15597 "\n"
15598 msgstr ""
15599
15600 #. type: textblock
15601 #: ../fish/guestfish-actions.pod:4677
15602 msgid ""
15603 "This command enables swap to a labeled swap partition.  See L</swapon-"
15604 "device> for other notes."
15605 msgstr ""
15606
15607 #. type: =head2
15608 #: ../fish/guestfish-actions.pod:4680
15609 msgid "swapon-uuid"
15610 msgstr ""
15611
15612 #. type: verbatim
15613 #: ../fish/guestfish-actions.pod:4682
15614 #, no-wrap
15615 msgid ""
15616 " swapon-uuid uuid\n"
15617 "\n"
15618 msgstr ""
15619
15620 #. type: textblock
15621 #: ../fish/guestfish-actions.pod:4684
15622 msgid ""
15623 "This command enables swap to a swap partition with the given UUID.  See L</"
15624 "swapon-device> for other notes."
15625 msgstr ""
15626
15627 #. type: =head2
15628 #: ../fish/guestfish-actions.pod:4687
15629 msgid "sync"
15630 msgstr ""
15631
15632 #. type: verbatim
15633 #: ../fish/guestfish-actions.pod:4689
15634 #, no-wrap
15635 msgid ""
15636 " sync\n"
15637 "\n"
15638 msgstr ""
15639
15640 #. type: textblock
15641 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7109
15642 msgid ""
15643 "This syncs the disk, so that any writes are flushed through to the "
15644 "underlying disk image."
15645 msgstr ""
15646
15647 #. type: textblock
15648 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7112
15649 msgid ""
15650 "You should always call this if you have modified a disk image, before "
15651 "closing the handle."
15652 msgstr ""
15653
15654 #. type: =head2
15655 #: ../fish/guestfish-actions.pod:4697
15656 msgid "tail"
15657 msgstr ""
15658
15659 #. type: verbatim
15660 #: ../fish/guestfish-actions.pod:4699
15661 #, no-wrap
15662 msgid ""
15663 " tail path\n"
15664 "\n"
15665 msgstr ""
15666
15667 #. type: textblock
15668 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7125
15669 msgid ""
15670 "This command returns up to the last 10 lines of a file as a list of strings."
15671 msgstr ""
15672
15673 #. type: =head2
15674 #: ../fish/guestfish-actions.pod:4707
15675 msgid "tail-n"
15676 msgstr ""
15677
15678 #. type: verbatim
15679 #: ../fish/guestfish-actions.pod:4709
15680 #, no-wrap
15681 msgid ""
15682 " tail-n nrlines path\n"
15683 "\n"
15684 msgstr ""
15685
15686 #. type: textblock
15687 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7144
15688 msgid ""
15689 "If the parameter C<nrlines> is a positive number, this returns the last "
15690 "C<nrlines> lines of the file C<path>."
15691 msgstr ""
15692
15693 #. type: textblock
15694 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7147
15695 msgid ""
15696 "If the parameter C<nrlines> is a negative number, this returns lines from "
15697 "the file C<path>, starting with the C<-nrlines>th line."
15698 msgstr ""
15699
15700 #. type: =head2
15701 #: ../fish/guestfish-actions.pod:4722
15702 msgid "tar-in"
15703 msgstr ""
15704
15705 #. type: verbatim
15706 #: ../fish/guestfish-actions.pod:4724
15707 #, no-wrap
15708 msgid ""
15709 " tar-in (tarfile|-) directory\n"
15710 "\n"
15711 msgstr ""
15712
15713 #. type: textblock
15714 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7168
15715 msgid ""
15716 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15717 "tar file) into C<directory>."
15718 msgstr ""
15719
15720 #. type: textblock
15721 #: ../fish/guestfish-actions.pod:4729
15722 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15723 msgstr ""
15724
15725 #. type: =head2
15726 #: ../fish/guestfish-actions.pod:4734
15727 msgid "tar-out"
15728 msgstr ""
15729
15730 #. type: verbatim
15731 #: ../fish/guestfish-actions.pod:4736
15732 #, no-wrap
15733 msgid ""
15734 " tar-out directory (tarfile|-)\n"
15735 "\n"
15736 msgstr ""
15737
15738 #. type: textblock
15739 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7185
15740 msgid ""
15741 "This command packs the contents of C<directory> and downloads it to local "
15742 "file C<tarfile>."
15743 msgstr ""
15744
15745 #. type: textblock
15746 #: ../fish/guestfish-actions.pod:4741
15747 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15748 msgstr ""
15749
15750 #. type: =head2
15751 #: ../fish/guestfish-actions.pod:4746
15752 msgid "tgz-in"
15753 msgstr ""
15754
15755 #. type: verbatim
15756 #: ../fish/guestfish-actions.pod:4748
15757 #, no-wrap
15758 msgid ""
15759 " tgz-in (tarball|-) directory\n"
15760 "\n"
15761 msgstr ""
15762
15763 #. type: textblock
15764 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7202
15765 msgid ""
15766 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15767 "tar file) into C<directory>."
15768 msgstr ""
15769
15770 #. type: textblock
15771 #: ../fish/guestfish-actions.pod:4753
15772 msgid "To upload an uncompressed tarball, use L</tar-in>."
15773 msgstr ""
15774
15775 #. type: =head2
15776 #: ../fish/guestfish-actions.pod:4757
15777 msgid "tgz-out"
15778 msgstr ""
15779
15780 #. type: verbatim
15781 #: ../fish/guestfish-actions.pod:4759
15782 #, no-wrap
15783 msgid ""
15784 " tgz-out directory (tarball|-)\n"
15785 "\n"
15786 msgstr ""
15787
15788 #. type: textblock
15789 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7218
15790 msgid ""
15791 "This command packs the contents of C<directory> and downloads it to local "
15792 "file C<tarball>."
15793 msgstr ""
15794
15795 #. type: textblock
15796 #: ../fish/guestfish-actions.pod:4764
15797 msgid "To download an uncompressed tarball, use L</tar-out>."
15798 msgstr ""
15799
15800 #. type: =head2
15801 #: ../fish/guestfish-actions.pod:4768
15802 msgid "touch"
15803 msgstr ""
15804
15805 #. type: verbatim
15806 #: ../fish/guestfish-actions.pod:4770
15807 #, no-wrap
15808 msgid ""
15809 " touch path\n"
15810 "\n"
15811 msgstr ""
15812
15813 #. type: textblock
15814 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7233
15815 msgid ""
15816 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15817 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15818 "length file."
15819 msgstr ""
15820
15821 #. type: textblock
15822 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7237
15823 msgid ""
15824 "This command only works on regular files, and will fail on other file types "
15825 "such as directories, symbolic links, block special etc."
15826 msgstr ""
15827
15828 #. type: =head2
15829 #: ../fish/guestfish-actions.pod:4779
15830 msgid "truncate"
15831 msgstr ""
15832
15833 #. type: verbatim
15834 #: ../fish/guestfish-actions.pod:4781
15835 #, no-wrap
15836 msgid ""
15837 " truncate path\n"
15838 "\n"
15839 msgstr ""
15840
15841 #. type: textblock
15842 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7250
15843 msgid ""
15844 "This command truncates C<path> to a zero-length file.  The file must exist "
15845 "already."
15846 msgstr ""
15847
15848 #. type: =head2
15849 #: ../fish/guestfish-actions.pod:4786
15850 msgid "truncate-size"
15851 msgstr ""
15852
15853 #. type: verbatim
15854 #: ../fish/guestfish-actions.pod:4788
15855 #, no-wrap
15856 msgid ""
15857 " truncate-size path size\n"
15858 "\n"
15859 msgstr ""
15860
15861 #. type: textblock
15862 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7264
15863 msgid ""
15864 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15865 "already."
15866 msgstr ""
15867
15868 #. type: textblock
15869 #: ../fish/guestfish-actions.pod:4793
15870 msgid ""
15871 "If the current file size is less than C<size> then the file is extended to "
15872 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15873 "blocks are not allocated for the file until you write to it).  To create a "
15874 "non-sparse file of zeroes, use L</fallocate64> instead."
15875 msgstr ""
15876
15877 #. type: =head2
15878 #: ../fish/guestfish-actions.pod:4799
15879 msgid "tune2fs-l"
15880 msgstr ""
15881
15882 #. type: verbatim
15883 #: ../fish/guestfish-actions.pod:4801
15884 #, no-wrap
15885 msgid ""
15886 " tune2fs-l device\n"
15887 "\n"
15888 msgstr ""
15889
15890 #. type: textblock
15891 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7283
15892 msgid ""
15893 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15894 "C<device>."
15895 msgstr ""
15896
15897 #. type: textblock
15898 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7286
15899 msgid ""
15900 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15901 "for more details.  The list of fields returned isn't clearly defined, and "
15902 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15903 "and the filesystem itself."
15904 msgstr ""
15905
15906 #. type: =head2
15907 #: ../fish/guestfish-actions.pod:4811
15908 msgid "txz-in"
15909 msgstr ""
15910
15911 #. type: verbatim
15912 #: ../fish/guestfish-actions.pod:4813
15913 #, no-wrap
15914 msgid ""
15915 " txz-in (tarball|-) directory\n"
15916 "\n"
15917 msgstr ""
15918
15919 #. type: textblock
15920 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7306
15921 msgid ""
15922 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15923 "tar file) into C<directory>."
15924 msgstr ""
15925
15926 #. type: =head2
15927 #: ../fish/guestfish-actions.pod:4820
15928 msgid "txz-out"
15929 msgstr ""
15930
15931 #. type: verbatim
15932 #: ../fish/guestfish-actions.pod:4822
15933 #, no-wrap
15934 msgid ""
15935 " txz-out directory (tarball|-)\n"
15936 "\n"
15937 msgstr ""
15938
15939 #. type: textblock
15940 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7320
15941 msgid ""
15942 "This command packs the contents of C<directory> and downloads it to local "
15943 "file C<tarball> (as an xz compressed tar archive)."
15944 msgstr ""
15945
15946 #. type: =head2
15947 #: ../fish/guestfish-actions.pod:4829
15948 msgid "umask"
15949 msgstr ""
15950
15951 #. type: verbatim
15952 #: ../fish/guestfish-actions.pod:4831
15953 #, no-wrap
15954 msgid ""
15955 " umask mask\n"
15956 "\n"
15957 msgstr ""
15958
15959 #. type: textblock
15960 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7333
15961 msgid ""
15962 "This function sets the mask used for creating new files and device nodes to "
15963 "C<mask & 0777>."
15964 msgstr ""
15965
15966 #. type: textblock
15967 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7336
15968 msgid ""
15969 "Typical umask values would be C<022> which creates new files with "
15970 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15971 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15972 msgstr ""
15973
15974 #. type: textblock
15975 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7341
15976 msgid ""
15977 "The default umask is C<022>.  This is important because it means that "
15978 "directories and device nodes will be created with C<0644> or C<0755> mode "
15979 "even if you specify C<0777>."
15980 msgstr ""
15981
15982 #. type: textblock
15983 #: ../fish/guestfish-actions.pod:4845
15984 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15985 msgstr ""
15986
15987 #. type: textblock
15988 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7348
15989 msgid "This call returns the previous umask."
15990 msgstr ""
15991
15992 #. type: =head2
15993 #: ../fish/guestfish-actions.pod:4850
15994 msgid "umount"
15995 msgstr ""
15996
15997 #. type: =head2
15998 #: ../fish/guestfish-actions.pod:4852
15999 msgid "unmount"
16000 msgstr ""
16001
16002 #. type: verbatim
16003 #: ../fish/guestfish-actions.pod:4854
16004 #, no-wrap
16005 msgid ""
16006 " umount pathordevice\n"
16007 "\n"
16008 msgstr ""
16009
16010 #. type: textblock
16011 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7360
16012 msgid ""
16013 "This unmounts the given filesystem.  The filesystem may be specified either "
16014 "by its mountpoint (path) or the device which contains the filesystem."
16015 msgstr ""
16016
16017 #. type: =head2
16018 #: ../fish/guestfish-actions.pod:4860
16019 msgid "umount-all"
16020 msgstr ""
16021
16022 #. type: =head2
16023 #: ../fish/guestfish-actions.pod:4862
16024 msgid "unmount-all"
16025 msgstr ""
16026
16027 #. type: verbatim
16028 #: ../fish/guestfish-actions.pod:4864
16029 #, no-wrap
16030 msgid ""
16031 " umount-all\n"
16032 "\n"
16033 msgstr ""
16034
16035 #. type: textblock
16036 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7373
16037 msgid "This unmounts all mounted filesystems."
16038 msgstr ""
16039
16040 #. type: textblock
16041 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7375
16042 msgid "Some internal mounts are not unmounted by this call."
16043 msgstr ""
16044
16045 #. type: =head2
16046 #: ../fish/guestfish-actions.pod:4870
16047 msgid "upload"
16048 msgstr ""
16049
16050 #. type: verbatim
16051 #: ../fish/guestfish-actions.pod:4872
16052 #, no-wrap
16053 msgid ""
16054 " upload (filename|-) remotefilename\n"
16055 "\n"
16056 msgstr ""
16057
16058 #. type: textblock
16059 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887
16060 #: ../src/guestfs-actions.pod:7388 ../src/guestfs-actions.pod:7412
16061 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16062 msgstr ""
16063
16064 #. type: textblock
16065 #: ../fish/guestfish-actions.pod:4879
16066 msgid "See also L</download>."
16067 msgstr ""
16068
16069 #. type: =head2
16070 #: ../fish/guestfish-actions.pod:4883
16071 msgid "upload-offset"
16072 msgstr ""
16073
16074 #. type: verbatim
16075 #: ../fish/guestfish-actions.pod:4885
16076 #, no-wrap
16077 msgid ""
16078 " upload-offset (filename|-) remotefilename offset\n"
16079 "\n"
16080 msgstr ""
16081
16082 #. type: textblock
16083 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7415
16084 msgid ""
16085 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16086 "The intention is to overwrite parts of existing files or devices, although "
16087 "if a non-existant file is specified then it is created with a \"hole\" "
16088 "before C<offset>.  The size of the data written is implicit in the size of "
16089 "the source C<filename>."
16090 msgstr ""
16091
16092 #. type: textblock
16093 #: ../fish/guestfish-actions.pod:4897
16094 msgid ""
16095 "Note that there is no limit on the amount of data that can be uploaded with "
16096 "this call, unlike with L</pwrite>, and this call always writes the full "
16097 "amount unless an error occurs."
16098 msgstr ""
16099
16100 #. type: textblock
16101 #: ../fish/guestfish-actions.pod:4902
16102 msgid "See also L</upload>, L</pwrite>."
16103 msgstr ""
16104
16105 #. type: =head2
16106 #: ../fish/guestfish-actions.pod:4906
16107 msgid "utimens"
16108 msgstr ""
16109
16110 #. type: verbatim
16111 #: ../fish/guestfish-actions.pod:4908
16112 #, no-wrap
16113 msgid ""
16114 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16115 "\n"
16116 msgstr ""
16117
16118 #. type: textblock
16119 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7448
16120 msgid "This command sets the timestamps of a file with nanosecond precision."
16121 msgstr ""
16122
16123 #. type: textblock
16124 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7451
16125 msgid ""
16126 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16127 "from the epoch."
16128 msgstr ""
16129
16130 #. type: textblock
16131 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7454
16132 msgid ""
16133 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16134 "nanoseconds from the epoch."
16135 msgstr ""
16136
16137 #. type: textblock
16138 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7457
16139 msgid ""
16140 "If the C<*nsecs> field contains the special value C<-1> then the "
16141 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16142 "ignored in this case)."
16143 msgstr ""
16144
16145 #. type: textblock
16146 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
16147 msgid ""
16148 "If the C<*nsecs> field contains the special value C<-2> then the "
16149 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16150 "in this case)."
16151 msgstr ""
16152
16153 #. type: =head2
16154 #: ../fish/guestfish-actions.pod:4927
16155 msgid "version"
16156 msgstr ""
16157
16158 #. type: verbatim
16159 #: ../fish/guestfish-actions.pod:4929
16160 #, no-wrap
16161 msgid ""
16162 " version\n"
16163 "\n"
16164 msgstr ""
16165
16166 #. type: textblock
16167 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7474
16168 msgid ""
16169 "Return the libguestfs version number that the program is linked against."
16170 msgstr ""
16171
16172 #. type: textblock
16173 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7477
16174 msgid ""
16175 "Note that because of dynamic linking this is not necessarily the version of "
16176 "libguestfs that you compiled against.  You can compile the program, and then "
16177 "at runtime dynamically link against a completely different C<libguestfs.so> "
16178 "library."
16179 msgstr ""
16180
16181 #. type: textblock
16182 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7482
16183 msgid ""
16184 "This call was added in version C<1.0.58>.  In previous versions of "
16185 "libguestfs there was no way to get the version number.  From C code you can "
16186 "use dynamic linker functions to find out if this symbol exists (if it "
16187 "doesn't, then it's an earlier version)."
16188 msgstr ""
16189
16190 #. type: textblock
16191 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7488
16192 msgid ""
16193 "The call returns a structure with four elements.  The first three (C<major>, "
16194 "C<minor> and C<release>) are numbers and correspond to the usual version "
16195 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16196 "but may be used for distro-specific information."
16197 msgstr ""
16198
16199 #. type: textblock
16200 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7494
16201 msgid ""
16202 "To construct the original version string: C<$major.$minor.$release$extra>"
16203 msgstr ""
16204
16205 #. type: textblock
16206 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7497
16207 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16208 msgstr ""
16209
16210 #. type: textblock
16211 #: ../fish/guestfish-actions.pod:4956
16212 msgid ""
16213 "I<Note:> Don't use this call to test for availability of features.  In "
16214 "enterprise distributions we backport features from later versions into "
16215 "earlier versions, making this an unreliable way to test for features.  Use "
16216 "L</available> instead."
16217 msgstr ""
16218
16219 #. type: =head2
16220 #: ../fish/guestfish-actions.pod:4962
16221 msgid "vfs-label"
16222 msgstr ""
16223
16224 #. type: verbatim
16225 #: ../fish/guestfish-actions.pod:4964
16226 #, no-wrap
16227 msgid ""
16228 " vfs-label device\n"
16229 "\n"
16230 msgstr ""
16231
16232 #. type: textblock
16233 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7517
16234 msgid "This returns the filesystem label of the filesystem on C<device>."
16235 msgstr ""
16236
16237 #. type: textblock
16238 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7520
16239 msgid "If the filesystem is unlabeled, this returns the empty string."
16240 msgstr ""
16241
16242 #. type: textblock
16243 #: ../fish/guestfish-actions.pod:4971
16244 msgid "To find a filesystem from the label, use L</findfs-label>."
16245 msgstr ""
16246
16247 #. type: =head2
16248 #: ../fish/guestfish-actions.pod:4973
16249 msgid "vfs-type"
16250 msgstr ""
16251
16252 #. type: verbatim
16253 #: ../fish/guestfish-actions.pod:4975
16254 #, no-wrap
16255 msgid ""
16256 " vfs-type device\n"
16257 "\n"
16258 msgstr ""
16259
16260 #. type: textblock
16261 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7535
16262 msgid ""
16263 "This command gets the filesystem type corresponding to the filesystem on "
16264 "C<device>."
16265 msgstr ""
16266
16267 #. type: textblock
16268 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7538
16269 msgid ""
16270 "For most filesystems, the result is the name of the Linux VFS module which "
16271 "would be used to mount this filesystem if you mounted it without specifying "
16272 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16273 msgstr ""
16274
16275 #. type: =head2
16276 #: ../fish/guestfish-actions.pod:4985
16277 msgid "vfs-uuid"
16278 msgstr ""
16279
16280 #. type: verbatim
16281 #: ../fish/guestfish-actions.pod:4987
16282 #, no-wrap
16283 msgid ""
16284 " vfs-uuid device\n"
16285 "\n"
16286 msgstr ""
16287
16288 #. type: textblock
16289 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7554
16290 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16291 msgstr ""
16292
16293 #. type: textblock
16294 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7557
16295 msgid "If the filesystem does not have a UUID, this returns the empty string."
16296 msgstr ""
16297
16298 #. type: textblock
16299 #: ../fish/guestfish-actions.pod:4994
16300 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16301 msgstr ""
16302
16303 #. type: =head2
16304 #: ../fish/guestfish-actions.pod:4996
16305 msgid "vg-activate"
16306 msgstr ""
16307
16308 #. type: verbatim
16309 #: ../fish/guestfish-actions.pod:4998
16310 #, no-wrap
16311 msgid ""
16312 " vg-activate true|false 'volgroups ...'\n"
16313 "\n"
16314 msgstr ""
16315
16316 #. type: textblock
16317 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7573
16318 msgid ""
16319 "This command activates or (if C<activate> is false) deactivates all logical "
16320 "volumes in the listed volume groups C<volgroups>."
16321 msgstr ""
16322
16323 #. type: textblock
16324 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7576
16325 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16326 msgstr ""
16327
16328 #. type: textblock
16329 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7578
16330 msgid ""
16331 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16332 "activated or deactivated."
16333 msgstr ""
16334
16335 #. type: =head2
16336 #: ../fish/guestfish-actions.pod:5008
16337 msgid "vg-activate-all"
16338 msgstr ""
16339
16340 #. type: verbatim
16341 #: ../fish/guestfish-actions.pod:5010
16342 #, no-wrap
16343 msgid ""
16344 " vg-activate-all true|false\n"
16345 "\n"
16346 msgstr ""
16347
16348 #. type: textblock
16349 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7591
16350 msgid ""
16351 "This command activates or (if C<activate> is false) deactivates all logical "
16352 "volumes in all volume groups."
16353 msgstr ""
16354
16355 #. type: textblock
16356 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7594
16357 msgid "This command is the same as running C<vgchange -a y|n>"
16358 msgstr ""
16359
16360 #. type: =head2
16361 #: ../fish/guestfish-actions.pod:5017
16362 msgid "vgcreate"
16363 msgstr ""
16364
16365 #. type: verbatim
16366 #: ../fish/guestfish-actions.pod:5019
16367 #, no-wrap
16368 msgid ""
16369 " vgcreate volgroup 'physvols ...'\n"
16370 "\n"
16371 msgstr ""
16372
16373 #. type: textblock
16374 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7607
16375 msgid ""
16376 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16377 "of physical volumes C<physvols>."
16378 msgstr ""
16379
16380 #. type: =head2
16381 #: ../fish/guestfish-actions.pod:5024
16382 msgid "vglvuuids"
16383 msgstr ""
16384
16385 #. type: verbatim
16386 #: ../fish/guestfish-actions.pod:5026
16387 #, no-wrap
16388 msgid ""
16389 " vglvuuids vgname\n"
16390 "\n"
16391 msgstr ""
16392
16393 #. type: textblock
16394 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7620
16395 msgid ""
16396 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16397 "volumes created in this volume group."
16398 msgstr ""
16399
16400 #. type: textblock
16401 #: ../fish/guestfish-actions.pod:5031
16402 msgid ""
16403 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16404 "logical volumes and volume groups."
16405 msgstr ""
16406
16407 #. type: textblock
16408 #: ../fish/guestfish-actions.pod:5034
16409 msgid "See also L</vgpvuuids>."
16410 msgstr ""
16411
16412 #. type: =head2
16413 #: ../fish/guestfish-actions.pod:5036
16414 msgid "vgpvuuids"
16415 msgstr ""
16416
16417 #. type: verbatim
16418 #: ../fish/guestfish-actions.pod:5038
16419 #, no-wrap
16420 msgid ""
16421 " vgpvuuids vgname\n"
16422 "\n"
16423 msgstr ""
16424
16425 #. type: textblock
16426 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7640
16427 msgid ""
16428 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16429 "volumes that this volume group resides on."
16430 msgstr ""
16431
16432 #. type: textblock
16433 #: ../fish/guestfish-actions.pod:5043
16434 msgid ""
16435 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16436 "physical volumes and volume groups."
16437 msgstr ""
16438
16439 #. type: textblock
16440 #: ../fish/guestfish-actions.pod:5046
16441 msgid "See also L</vglvuuids>."
16442 msgstr ""
16443
16444 #. type: =head2
16445 #: ../fish/guestfish-actions.pod:5048
16446 msgid "vgremove"
16447 msgstr ""
16448
16449 #. type: verbatim
16450 #: ../fish/guestfish-actions.pod:5050
16451 #, no-wrap
16452 msgid ""
16453 " vgremove vgname\n"
16454 "\n"
16455 msgstr ""
16456
16457 #. type: textblock
16458 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7660
16459 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16460 msgstr ""
16461
16462 #. type: textblock
16463 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7662
16464 msgid ""
16465 "This also forcibly removes all logical volumes in the volume group (if any)."
16466 msgstr ""
16467
16468 #. type: =head2
16469 #: ../fish/guestfish-actions.pod:5057
16470 msgid "vgrename"
16471 msgstr ""
16472
16473 #. type: verbatim
16474 #: ../fish/guestfish-actions.pod:5059
16475 #, no-wrap
16476 msgid ""
16477 " vgrename volgroup newvolgroup\n"
16478 "\n"
16479 msgstr ""
16480
16481 #. type: textblock
16482 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7676
16483 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16484 msgstr ""
16485
16486 #. type: =head2
16487 #: ../fish/guestfish-actions.pod:5063
16488 msgid "vgs"
16489 msgstr ""
16490
16491 #. type: verbatim
16492 #: ../fish/guestfish-actions.pod:5065
16493 #, no-wrap
16494 msgid ""
16495 " vgs\n"
16496 "\n"
16497 msgstr ""
16498
16499 #. type: textblock
16500 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7687
16501 msgid ""
16502 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16503 "> command."
16504 msgstr ""
16505
16506 #. type: textblock
16507 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7690
16508 msgid ""
16509 "This returns a list of just the volume group names that were detected (eg. "
16510 "C<VolGroup00>)."
16511 msgstr ""
16512
16513 #. type: textblock
16514 #: ../fish/guestfish-actions.pod:5073
16515 msgid "See also L</vgs-full>."
16516 msgstr ""
16517
16518 #. type: =head2
16519 #: ../fish/guestfish-actions.pod:5075
16520 msgid "vgs-full"
16521 msgstr ""
16522
16523 #. type: verbatim
16524 #: ../fish/guestfish-actions.pod:5077
16525 #, no-wrap
16526 msgid ""
16527 " vgs-full\n"
16528 "\n"
16529 msgstr ""
16530
16531 #. type: textblock
16532 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7706
16533 msgid ""
16534 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16535 "> command.  The \"full\" version includes all fields."
16536 msgstr ""
16537
16538 #. type: =head2
16539 #: ../fish/guestfish-actions.pod:5082
16540 msgid "vgscan"
16541 msgstr ""
16542
16543 #. type: verbatim
16544 #: ../fish/guestfish-actions.pod:5084
16545 #, no-wrap
16546 msgid ""
16547 " vgscan\n"
16548 "\n"
16549 msgstr ""
16550
16551 #. type: textblock
16552 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7720
16553 msgid ""
16554 "This rescans all block devices and rebuilds the list of LVM physical "
16555 "volumes, volume groups and logical volumes."
16556 msgstr ""
16557
16558 #. type: =head2
16559 #: ../fish/guestfish-actions.pod:5089
16560 msgid "vguuid"
16561 msgstr ""
16562
16563 #. type: verbatim
16564 #: ../fish/guestfish-actions.pod:5091
16565 #, no-wrap
16566 msgid ""
16567 " vguuid vgname\n"
16568 "\n"
16569 msgstr ""
16570
16571 #. type: textblock
16572 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7733
16573 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16574 msgstr ""
16575
16576 #. type: =head2
16577 #: ../fish/guestfish-actions.pod:5095
16578 msgid "wc-c"
16579 msgstr ""
16580
16581 #. type: verbatim
16582 #: ../fish/guestfish-actions.pod:5097
16583 #, no-wrap
16584 msgid ""
16585 " wc-c path\n"
16586 "\n"
16587 msgstr ""
16588
16589 #. type: textblock
16590 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7773
16591 msgid ""
16592 "This command counts the characters in a file, using the C<wc -c> external "
16593 "command."
16594 msgstr ""
16595
16596 #. type: =head2
16597 #: ../fish/guestfish-actions.pod:5102
16598 msgid "wc-l"
16599 msgstr ""
16600
16601 #. type: verbatim
16602 #: ../fish/guestfish-actions.pod:5104
16603 #, no-wrap
16604 msgid ""
16605 " wc-l path\n"
16606 "\n"
16607 msgstr ""
16608
16609 #. type: textblock
16610 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7786
16611 msgid ""
16612 "This command counts the lines in a file, using the C<wc -l> external command."
16613 msgstr ""
16614
16615 #. type: =head2
16616 #: ../fish/guestfish-actions.pod:5109
16617 msgid "wc-w"
16618 msgstr ""
16619
16620 #. type: verbatim
16621 #: ../fish/guestfish-actions.pod:5111
16622 #, no-wrap
16623 msgid ""
16624 " wc-w path\n"
16625 "\n"
16626 msgstr ""
16627
16628 #. type: textblock
16629 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7799
16630 msgid ""
16631 "This command counts the words in a file, using the C<wc -w> external command."
16632 msgstr ""
16633
16634 #. type: =head2
16635 #: ../fish/guestfish-actions.pod:5116
16636 msgid "write"
16637 msgstr ""
16638
16639 #. type: verbatim
16640 #: ../fish/guestfish-actions.pod:5118
16641 #, no-wrap
16642 msgid ""
16643 " write path content\n"
16644 "\n"
16645 msgstr ""
16646
16647 #. type: textblock
16648 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7814
16649 msgid ""
16650 "This call creates a file called C<path>.  The content of the file is the "
16651 "string C<content> (which can contain any 8 bit data)."
16652 msgstr ""
16653
16654 #. type: textblock
16655 #: ../fish/guestfish-actions.pod:5123
16656 msgid "See also L</write-append>."
16657 msgstr ""
16658
16659 #. type: =head2
16660 #: ../fish/guestfish-actions.pod:5128
16661 msgid "write-append"
16662 msgstr ""
16663
16664 #. type: verbatim
16665 #: ../fish/guestfish-actions.pod:5130
16666 #, no-wrap
16667 msgid ""
16668 " write-append path content\n"
16669 "\n"
16670 msgstr ""
16671
16672 #. type: textblock
16673 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7834
16674 msgid ""
16675 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16676 "not exist, then a new file is created."
16677 msgstr ""
16678
16679 #. type: textblock
16680 #: ../fish/guestfish-actions.pod:5135
16681 msgid "See also L</write>."
16682 msgstr ""
16683
16684 #. type: =head2
16685 #: ../fish/guestfish-actions.pod:5140
16686 msgid "write-file"
16687 msgstr ""
16688
16689 #. type: verbatim
16690 #: ../fish/guestfish-actions.pod:5142
16691 #, no-wrap
16692 msgid ""
16693 " write-file path content size\n"
16694 "\n"
16695 msgstr ""
16696
16697 #. type: textblock
16698 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7861
16699 msgid ""
16700 "This call creates a file called C<path>.  The contents of the file is the "
16701 "string C<content> (which can contain any 8 bit data), with length C<size>."
16702 msgstr ""
16703
16704 #. type: textblock
16705 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7865
16706 msgid ""
16707 "As a special case, if C<size> is C<0> then the length is calculated using "
16708 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16709 msgstr ""
16710
16711 #. type: textblock
16712 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7869
16713 msgid ""
16714 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16715 "I<not> work, even if the length is specified."
16716 msgstr ""
16717
16718 #. type: textblock
16719 #: ../fish/guestfish-actions.pod:5158
16720 msgid ""
16721 "I<This function is deprecated.> In new code, use the L</write> call instead."
16722 msgstr ""
16723
16724 #. type: =head2
16725 #: ../fish/guestfish-actions.pod:5165
16726 msgid "zegrep"
16727 msgstr ""
16728
16729 #. type: verbatim
16730 #: ../fish/guestfish-actions.pod:5167
16731 #, no-wrap
16732 msgid ""
16733 " zegrep regex path\n"
16734 "\n"
16735 msgstr ""
16736
16737 #. type: textblock
16738 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7886
16739 msgid ""
16740 "This calls the external C<zegrep> program and returns the matching lines."
16741 msgstr ""
16742
16743 #. type: =head2
16744 #: ../fish/guestfish-actions.pod:5175
16745 msgid "zegrepi"
16746 msgstr ""
16747
16748 #. type: verbatim
16749 #: ../fish/guestfish-actions.pod:5177
16750 #, no-wrap
16751 msgid ""
16752 " zegrepi regex path\n"
16753 "\n"
16754 msgstr ""
16755
16756 #. type: textblock
16757 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7905
16758 msgid ""
16759 "This calls the external C<zegrep -i> program and returns the matching lines."
16760 msgstr ""
16761
16762 #. type: =head2
16763 #: ../fish/guestfish-actions.pod:5185
16764 msgid "zero"
16765 msgstr ""
16766
16767 #. type: verbatim
16768 #: ../fish/guestfish-actions.pod:5187
16769 #, no-wrap
16770 msgid ""
16771 " zero device\n"
16772 "\n"
16773 msgstr ""
16774
16775 #. type: textblock
16776 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7923
16777 msgid "This command writes zeroes over the first few blocks of C<device>."
16778 msgstr ""
16779
16780 #. type: textblock
16781 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7925
16782 msgid ""
16783 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16784 "securely wipe the device).  It should be sufficient to remove any partition "
16785 "tables, filesystem superblocks and so on."
16786 msgstr ""
16787
16788 #. type: textblock
16789 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210
16790 #: ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:7955
16791 msgid ""
16792 "If blocks are already zero, then this command avoids writing zeroes.  This "
16793 "prevents the underlying device from becoming non-sparse or growing "
16794 "unnecessarily."
16795 msgstr ""
16796
16797 #. type: textblock
16798 #: ../fish/guestfish-actions.pod:5199
16799 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16800 msgstr ""
16801
16802 #. type: =head2
16803 #: ../fish/guestfish-actions.pod:5202
16804 msgid "zero-device"
16805 msgstr ""
16806
16807 #. type: verbatim
16808 #: ../fish/guestfish-actions.pod:5204
16809 #, no-wrap
16810 msgid ""
16811 " zero-device device\n"
16812 "\n"
16813 msgstr ""
16814
16815 #. type: textblock
16816 #: ../fish/guestfish-actions.pod:5206
16817 msgid ""
16818 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16819 "which just zeroes the first few blocks of a device."
16820 msgstr ""
16821
16822 #. type: =head2
16823 #: ../fish/guestfish-actions.pod:5217
16824 msgid "zerofree"
16825 msgstr ""
16826
16827 #. type: verbatim
16828 #: ../fish/guestfish-actions.pod:5219
16829 #, no-wrap
16830 msgid ""
16831 " zerofree device\n"
16832 "\n"
16833 msgstr ""
16834
16835 #. type: textblock
16836 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7977
16837 msgid ""
16838 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16839 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16840 "possible to compress the filesystem more effectively."
16841 msgstr ""
16842
16843 #. type: textblock
16844 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7982
16845 msgid "You should B<not> run this program if the filesystem is mounted."
16846 msgstr ""
16847
16848 #. type: textblock
16849 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7985
16850 msgid ""
16851 "It is possible that using this program can damage the filesystem or data on "
16852 "the filesystem."
16853 msgstr ""
16854
16855 #. type: =head2
16856 #: ../fish/guestfish-actions.pod:5232
16857 msgid "zfgrep"
16858 msgstr ""
16859
16860 #. type: verbatim
16861 #: ../fish/guestfish-actions.pod:5234
16862 #, no-wrap
16863 msgid ""
16864 " zfgrep pattern path\n"
16865 "\n"
16866 msgstr ""
16867
16868 #. type: textblock
16869 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7999
16870 msgid ""
16871 "This calls the external C<zfgrep> program and returns the matching lines."
16872 msgstr ""
16873
16874 #. type: =head2
16875 #: ../fish/guestfish-actions.pod:5242
16876 msgid "zfgrepi"
16877 msgstr ""
16878
16879 #. type: verbatim
16880 #: ../fish/guestfish-actions.pod:5244
16881 #, no-wrap
16882 msgid ""
16883 " zfgrepi pattern path\n"
16884 "\n"
16885 msgstr ""
16886
16887 #. type: textblock
16888 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8018
16889 msgid ""
16890 "This calls the external C<zfgrep -i> program and returns the matching lines."
16891 msgstr ""
16892
16893 #. type: =head2
16894 #: ../fish/guestfish-actions.pod:5252
16895 msgid "zfile"
16896 msgstr ""
16897
16898 #. type: verbatim
16899 #: ../fish/guestfish-actions.pod:5254
16900 #, no-wrap
16901 msgid ""
16902 " zfile meth path\n"
16903 "\n"
16904 msgstr ""
16905
16906 #. type: textblock
16907 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8044
16908 msgid ""
16909 "This command runs C<file> after first decompressing C<path> using C<method>."
16910 msgstr ""
16911
16912 #. type: textblock
16913 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8047
16914 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16915 msgstr ""
16916
16917 #. type: textblock
16918 #: ../fish/guestfish-actions.pod:5261
16919 msgid ""
16920 "Since 1.0.63, use L</file> instead which can now process compressed files."
16921 msgstr ""
16922
16923 #. type: textblock
16924 #: ../fish/guestfish-actions.pod:5264
16925 msgid ""
16926 "I<This function is deprecated.> In new code, use the L</file> call instead."
16927 msgstr ""
16928
16929 #. type: =head2
16930 #: ../fish/guestfish-actions.pod:5271
16931 msgid "zgrep"
16932 msgstr ""
16933
16934 #. type: verbatim
16935 #: ../fish/guestfish-actions.pod:5273
16936 #, no-wrap
16937 msgid ""
16938 " zgrep regex path\n"
16939 "\n"
16940 msgstr ""
16941
16942 #. type: textblock
16943 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8064
16944 msgid ""
16945 "This calls the external C<zgrep> program and returns the matching lines."
16946 msgstr ""
16947
16948 #. type: =head2
16949 #: ../fish/guestfish-actions.pod:5281
16950 msgid "zgrepi"
16951 msgstr ""
16952
16953 #. type: verbatim
16954 #: ../fish/guestfish-actions.pod:5283
16955 #, no-wrap
16956 msgid ""
16957 " zgrepi regex path\n"
16958 "\n"
16959 msgstr ""
16960
16961 #. type: textblock
16962 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8083
16963 msgid ""
16964 "This calls the external C<zgrep -i> program and returns the matching lines."
16965 msgstr ""
16966
16967 #. type: =head2
16968 #: ../fish/guestfish-commands.pod:1
16969 msgid "alloc"
16970 msgstr ""
16971
16972 #. type: =head2
16973 #: ../fish/guestfish-commands.pod:3
16974 msgid "allocate"
16975 msgstr ""
16976
16977 #. type: verbatim
16978 #: ../fish/guestfish-commands.pod:5
16979 #, no-wrap
16980 msgid ""
16981 " alloc filename size\n"
16982 "\n"
16983 msgstr ""
16984
16985 #. type: textblock
16986 #: ../fish/guestfish-commands.pod:7
16987 msgid ""
16988 "This creates an empty (zeroed) file of the given size, and then adds so it "
16989 "can be further examined."
16990 msgstr ""
16991
16992 #. type: textblock
16993 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16994 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16995 msgstr ""
16996
16997 #. type: textblock
16998 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16999 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17000 msgstr ""
17001
17002 #. type: textblock
17003 #: ../fish/guestfish-commands.pod:14
17004 msgid ""
17005 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17006 "image, see L</PREPARED DISK IMAGES>."
17007 msgstr ""
17008
17009 #. type: =head2
17010 #: ../fish/guestfish-commands.pod:17
17011 msgid "copy-in"
17012 msgstr ""
17013
17014 #. type: verbatim
17015 #: ../fish/guestfish-commands.pod:19
17016 #, no-wrap
17017 msgid ""
17018 " copy-in local [local ...] /remotedir\n"
17019 "\n"
17020 msgstr ""
17021
17022 #. type: textblock
17023 #: ../fish/guestfish-commands.pod:21
17024 msgid ""
17025 "C<copy-in> copies local files or directories recursively into the disk "
17026 "image, placing them in the directory called C</remotedir> (which must "
17027 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17028 "other commands as necessary."
17029 msgstr ""
17030
17031 #. type: textblock
17032 #: ../fish/guestfish-commands.pod:26
17033 msgid ""
17034 "Multiple local files and directories can be specified, but the last "
17035 "parameter must always be a remote directory.  Wildcards cannot be used."
17036 msgstr ""
17037
17038 #. type: =head2
17039 #: ../fish/guestfish-commands.pod:30
17040 msgid "copy-out"
17041 msgstr ""
17042
17043 #. type: verbatim
17044 #: ../fish/guestfish-commands.pod:32
17045 #, no-wrap
17046 msgid ""
17047 " copy-out remote [remote ...] localdir\n"
17048 "\n"
17049 msgstr ""
17050
17051 #. type: textblock
17052 #: ../fish/guestfish-commands.pod:34
17053 msgid ""
17054 "C<copy-out> copies remote files or directories recursively out of the disk "
17055 "image, placing them on the host disk in a local directory called C<localdir> "
17056 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
17057 "download>, L</tar-out> and other commands as necessary."
17058 msgstr ""
17059
17060 #. type: textblock
17061 #: ../fish/guestfish-commands.pod:40
17062 msgid ""
17063 "Multiple remote files and directories can be specified, but the last "
17064 "parameter must always be a local directory.  To download to the current "
17065 "directory, use C<.> as in:"
17066 msgstr ""
17067
17068 #. type: verbatim
17069 #: ../fish/guestfish-commands.pod:44
17070 #, no-wrap
17071 msgid ""
17072 " copy-out /home .\n"
17073 "\n"
17074 msgstr ""
17075
17076 #. type: textblock
17077 #: ../fish/guestfish-commands.pod:46
17078 msgid ""
17079 "Wildcards cannot be used in the ordinary command, but you can use them with "
17080 "the help of L</glob> like this:"
17081 msgstr ""
17082
17083 #. type: verbatim
17084 #: ../fish/guestfish-commands.pod:49
17085 #, no-wrap
17086 msgid ""
17087 " glob copy-out /home/* .\n"
17088 "\n"
17089 msgstr ""
17090
17091 #. type: =head2
17092 #: ../fish/guestfish-commands.pod:51
17093 msgid "display"
17094 msgstr ""
17095
17096 #. type: verbatim
17097 #: ../fish/guestfish-commands.pod:53
17098 #, no-wrap
17099 msgid ""
17100 " display filename\n"
17101 "\n"
17102 msgstr ""
17103
17104 #. type: textblock
17105 #: ../fish/guestfish-commands.pod:55
17106 msgid ""
17107 "Use C<display> (a graphical display program) to display an image file.  It "
17108 "downloads the file, and runs C<display> on it."
17109 msgstr ""
17110
17111 #. type: textblock
17112 #: ../fish/guestfish-commands.pod:58
17113 msgid ""
17114 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17115 "environment variable.  For example to use the GNOME display program:"
17116 msgstr ""
17117
17118 #. type: verbatim
17119 #: ../fish/guestfish-commands.pod:61
17120 #, no-wrap
17121 msgid ""
17122 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17123 "\n"
17124 msgstr ""
17125
17126 #. type: textblock
17127 #: ../fish/guestfish-commands.pod:63
17128 msgid "See also L<display(1)>."
17129 msgstr ""
17130
17131 #. type: =head2
17132 #: ../fish/guestfish-commands.pod:65
17133 msgid "echo"
17134 msgstr ""
17135
17136 #. type: verbatim
17137 #: ../fish/guestfish-commands.pod:67
17138 #, no-wrap
17139 msgid ""
17140 " echo [params ...]\n"
17141 "\n"
17142 msgstr ""
17143
17144 #. type: textblock
17145 #: ../fish/guestfish-commands.pod:69
17146 msgid "This echos the parameters to the terminal."
17147 msgstr ""
17148
17149 #. type: =head2
17150 #: ../fish/guestfish-commands.pod:71
17151 msgid "edit"
17152 msgstr ""
17153
17154 #. type: =head2
17155 #: ../fish/guestfish-commands.pod:73
17156 msgid "vi"
17157 msgstr ""
17158
17159 #. type: =head2
17160 #: ../fish/guestfish-commands.pod:75
17161 msgid "emacs"
17162 msgstr ""
17163
17164 #. type: verbatim
17165 #: ../fish/guestfish-commands.pod:77
17166 #, no-wrap
17167 msgid ""
17168 " edit filename\n"
17169 "\n"
17170 msgstr ""
17171
17172 #. type: textblock
17173 #: ../fish/guestfish-commands.pod:79
17174 msgid ""
17175 "This is used to edit a file.  It downloads the file, edits it locally using "
17176 "your editor, then uploads the result."
17177 msgstr ""
17178
17179 #. type: textblock
17180 #: ../fish/guestfish-commands.pod:82
17181 msgid ""
17182 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17183 "or C<emacs> you will get those corresponding editors."
17184 msgstr ""
17185
17186 #. type: =head2
17187 #: ../fish/guestfish-commands.pod:86
17188 msgid "glob"
17189 msgstr ""
17190
17191 #. type: verbatim
17192 #: ../fish/guestfish-commands.pod:88
17193 #, no-wrap
17194 msgid ""
17195 " glob command args...\n"
17196 "\n"
17197 msgstr ""
17198
17199 #. type: textblock
17200 #: ../fish/guestfish-commands.pod:90
17201 msgid ""
17202 "Expand wildcards in any paths in the args list, and run C<command> "
17203 "repeatedly on each matching path."
17204 msgstr ""
17205
17206 #. type: textblock
17207 #: ../fish/guestfish-commands.pod:93
17208 msgid "See L</WILDCARDS AND GLOBBING>."
17209 msgstr ""
17210
17211 #. type: =head2
17212 #: ../fish/guestfish-commands.pod:95
17213 msgid "hexedit"
17214 msgstr ""
17215
17216 #. type: verbatim
17217 #: ../fish/guestfish-commands.pod:97
17218 #, no-wrap
17219 msgid ""
17220 " hexedit <filename|device>\n"
17221 " hexedit <filename|device> <max>\n"
17222 " hexedit <filename|device> <start> <max>\n"
17223 "\n"
17224 msgstr ""
17225
17226 #. type: textblock
17227 #: ../fish/guestfish-commands.pod:101
17228 msgid ""
17229 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17230 "device."
17231 msgstr ""
17232
17233 #. type: textblock
17234 #: ../fish/guestfish-commands.pod:104
17235 msgid ""
17236 "This command works by downloading potentially the whole file or device, "
17237 "editing it locally, then uploading it.  If the file or device is large, you "
17238 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17239 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17240 "usual modifiers allowed such as C<1M> (1 megabyte)."
17241 msgstr ""
17242
17243 #. type: textblock
17244 #: ../fish/guestfish-commands.pod:111
17245 msgid "For example to edit the first few sectors of a disk you might do:"
17246 msgstr ""
17247
17248 #. type: verbatim
17249 #: ../fish/guestfish-commands.pod:114
17250 #, no-wrap
17251 msgid ""
17252 " hexedit /dev/sda 1M\n"
17253 "\n"
17254 msgstr ""
17255
17256 #. type: textblock
17257 #: ../fish/guestfish-commands.pod:116
17258 msgid ""
17259 "which would allow you to edit anywhere within the first megabyte of the disk."
17260 msgstr ""
17261
17262 #. type: textblock
17263 #: ../fish/guestfish-commands.pod:119
17264 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17265 msgstr ""
17266
17267 #. type: verbatim
17268 #: ../fish/guestfish-commands.pod:121
17269 #, no-wrap
17270 msgid ""
17271 " hexedit /dev/sda1 0x400 0x400\n"
17272 "\n"
17273 msgstr ""
17274
17275 #. type: textblock
17276 #: ../fish/guestfish-commands.pod:123
17277 msgid "(assuming the superblock is in the standard location)."
17278 msgstr ""
17279
17280 #. type: textblock
17281 #: ../fish/guestfish-commands.pod:125
17282 msgid ""
17283 "This command requires the external L<hexedit(1)> program.  You can specify "
17284 "another program to use by setting the C<HEXEDITOR> environment variable."
17285 msgstr ""
17286
17287 #. type: textblock
17288 #: ../fish/guestfish-commands.pod:129
17289 msgid "See also L</hexdump>."
17290 msgstr ""
17291
17292 #. type: =head2
17293 #: ../fish/guestfish-commands.pod:131
17294 msgid "lcd"
17295 msgstr ""
17296
17297 #. type: verbatim
17298 #: ../fish/guestfish-commands.pod:133
17299 #, no-wrap
17300 msgid ""
17301 " lcd directory\n"
17302 "\n"
17303 msgstr ""
17304
17305 #. type: textblock
17306 #: ../fish/guestfish-commands.pod:135
17307 msgid ""
17308 "Change the local directory, ie. the current directory of guestfish itself."
17309 msgstr ""
17310
17311 #. type: textblock
17312 #: ../fish/guestfish-commands.pod:138
17313 msgid "Note that C<!cd> won't do what you might expect."
17314 msgstr ""
17315
17316 #. type: =head2
17317 #: ../fish/guestfish-commands.pod:140
17318 msgid "man"
17319 msgstr ""
17320
17321 #. type: =head2
17322 #: ../fish/guestfish-commands.pod:142
17323 msgid "manual"
17324 msgstr ""
17325
17326 #. type: verbatim
17327 #: ../fish/guestfish-commands.pod:144
17328 #, no-wrap
17329 msgid ""
17330 "  man\n"
17331 "\n"
17332 msgstr ""
17333
17334 #. type: textblock
17335 #: ../fish/guestfish-commands.pod:146
17336 msgid "Opens the manual page for guestfish."
17337 msgstr ""
17338
17339 #. type: =head2
17340 #: ../fish/guestfish-commands.pod:148
17341 msgid "more"
17342 msgstr ""
17343
17344 #. type: =head2
17345 #: ../fish/guestfish-commands.pod:150
17346 msgid "less"
17347 msgstr ""
17348
17349 #. type: verbatim
17350 #: ../fish/guestfish-commands.pod:152
17351 #, no-wrap
17352 msgid ""
17353 " more filename\n"
17354 "\n"
17355 msgstr ""
17356
17357 #. type: verbatim
17358 #: ../fish/guestfish-commands.pod:154
17359 #, no-wrap
17360 msgid ""
17361 " less filename\n"
17362 "\n"
17363 msgstr ""
17364
17365 #. type: textblock
17366 #: ../fish/guestfish-commands.pod:156
17367 msgid "This is used to view a file."
17368 msgstr ""
17369
17370 #. type: textblock
17371 #: ../fish/guestfish-commands.pod:158
17372 msgid ""
17373 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17374 "C<less> you will get the C<less> command specifically."
17375 msgstr ""
17376
17377 #. type: =head2
17378 #: ../fish/guestfish-commands.pod:161
17379 msgid "reopen"
17380 msgstr ""
17381
17382 #. type: verbatim
17383 #: ../fish/guestfish-commands.pod:163
17384 #, no-wrap
17385 msgid ""
17386 "  reopen\n"
17387 "\n"
17388 msgstr ""
17389
17390 #. type: textblock
17391 #: ../fish/guestfish-commands.pod:165
17392 msgid ""
17393 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17394 "normally, because the handle is closed properly when guestfish exits.  "
17395 "However this is occasionally useful for testing."
17396 msgstr ""
17397
17398 #. type: =head2
17399 #: ../fish/guestfish-commands.pod:169
17400 msgid "setenv"
17401 msgstr ""
17402
17403 #. type: verbatim
17404 #: ../fish/guestfish-commands.pod:171
17405 #, no-wrap
17406 msgid ""
17407 "  setenv VAR value\n"
17408 "\n"
17409 msgstr ""
17410
17411 #. type: textblock
17412 #: ../fish/guestfish-commands.pod:173
17413 msgid "Set the environment variable C<VAR> to the string C<value>."
17414 msgstr ""
17415
17416 #. type: textblock
17417 #: ../fish/guestfish-commands.pod:175
17418 msgid ""
17419 "To print the value of an environment variable use a shell command such as:"
17420 msgstr ""
17421
17422 #. type: verbatim
17423 #: ../fish/guestfish-commands.pod:178
17424 #, no-wrap
17425 msgid ""
17426 " !echo $VAR\n"
17427 "\n"
17428 msgstr ""
17429
17430 #. type: =head2
17431 #: ../fish/guestfish-commands.pod:180
17432 msgid "sparse"
17433 msgstr ""
17434
17435 #. type: verbatim
17436 #: ../fish/guestfish-commands.pod:182
17437 #, no-wrap
17438 msgid ""
17439 " sparse filename size\n"
17440 "\n"
17441 msgstr ""
17442
17443 #. type: textblock
17444 #: ../fish/guestfish-commands.pod:184
17445 msgid ""
17446 "This creates an empty sparse file of the given size, and then adds so it can "
17447 "be further examined."
17448 msgstr ""
17449
17450 #. type: textblock
17451 #: ../fish/guestfish-commands.pod:187
17452 msgid ""
17453 "In all respects it works the same as the L</alloc> command, except that the "
17454 "image file is allocated sparsely, which means that disk blocks are not "
17455 "assigned to the file until they are needed.  Sparse disk files only use "
17456 "space when written to, but they are slower and there is a danger you could "
17457 "run out of real disk space during a write operation."
17458 msgstr ""
17459
17460 #. type: =head2
17461 #: ../fish/guestfish-commands.pod:197
17462 msgid "supported"
17463 msgstr ""
17464
17465 #. type: verbatim
17466 #: ../fish/guestfish-commands.pod:199
17467 #, no-wrap
17468 msgid ""
17469 " supported\n"
17470 "\n"
17471 msgstr ""
17472
17473 #. type: textblock
17474 #: ../fish/guestfish-commands.pod:201
17475 msgid ""
17476 "This command returns a list of the optional groups known to the daemon, and "
17477 "indicates which ones are supported by this build of the libguestfs appliance."
17478 msgstr ""
17479
17480 #. type: textblock
17481 #: ../fish/guestfish-commands.pod:205
17482 msgid "See also L<guestfs(3)/AVAILABILITY>."
17483 msgstr ""
17484
17485 #. type: =head2
17486 #: ../fish/guestfish-commands.pod:207
17487 msgid "time"
17488 msgstr ""
17489
17490 #. type: verbatim
17491 #: ../fish/guestfish-commands.pod:209
17492 #, no-wrap
17493 msgid ""
17494 " time command args...\n"
17495 "\n"
17496 msgstr ""
17497
17498 #. type: textblock
17499 #: ../fish/guestfish-commands.pod:211
17500 msgid ""
17501 "Run the command as usual, but print the elapsed time afterwards.  This can "
17502 "be useful for benchmarking operations."
17503 msgstr ""
17504
17505 #. type: =head2
17506 #: ../fish/guestfish-commands.pod:214
17507 msgid "unsetenv"
17508 msgstr ""
17509
17510 #. type: verbatim
17511 #: ../fish/guestfish-commands.pod:216
17512 #, no-wrap
17513 msgid ""
17514 "  unsetenv VAR\n"
17515 "\n"
17516 msgstr ""
17517
17518 #. type: textblock
17519 #: ../fish/guestfish-commands.pod:218
17520 msgid "Remove C<VAR> from the environment."
17521 msgstr ""
17522
17523 #. type: textblock
17524 #: ../fish/guestfish.pod:5
17525 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17526 msgstr ""
17527
17528 #. type: verbatim
17529 #: ../fish/guestfish.pod:9
17530 #, no-wrap
17531 msgid ""
17532 " guestfish [--options] [commands]\n"
17533 "\n"
17534 msgstr ""
17535
17536 #. type: verbatim
17537 #: ../fish/guestfish.pod:11
17538 #, no-wrap
17539 msgid ""
17540 " guestfish\n"
17541 "\n"
17542 msgstr ""
17543
17544 #. type: verbatim
17545 #: ../fish/guestfish.pod:13
17546 #, no-wrap
17547 msgid ""
17548 " guestfish [--ro|--rw] -a disk.img\n"
17549 "\n"
17550 msgstr ""
17551
17552 #. type: verbatim
17553 #: ../fish/guestfish.pod:15
17554 #, no-wrap
17555 msgid ""
17556 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17557 "\n"
17558 msgstr ""
17559
17560 #. type: verbatim
17561 #: ../fish/guestfish.pod:17
17562 #, no-wrap
17563 msgid ""
17564 " guestfish -d libvirt-domain\n"
17565 "\n"
17566 msgstr ""
17567
17568 #. type: verbatim
17569 #: ../fish/guestfish.pod:19
17570 #, no-wrap
17571 msgid ""
17572 " guestfish [--ro|--rw] -a disk.img -i\n"
17573 "\n"
17574 msgstr ""
17575
17576 #. type: verbatim
17577 #: ../fish/guestfish.pod:21
17578 #, no-wrap
17579 msgid ""
17580 " guestfish -d libvirt-domain -i\n"
17581 "\n"
17582 msgstr ""
17583
17584 #. type: textblock
17585 #: ../fish/guestfish.pod:25
17586 msgid ""
17587 "Using guestfish in read/write mode on live virtual machines can be "
17588 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17589 "option to use guestfish safely if the disk image or virtual machine might be "
17590 "live."
17591 msgstr ""
17592
17593 #. type: textblock
17594 #: ../fish/guestfish.pod:32
17595 msgid ""
17596 "Guestfish is a shell and command-line tool for examining and modifying "
17597 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17598 "functionality of the guestfs API, see L<guestfs(3)>."
17599 msgstr ""
17600
17601 #. type: textblock
17602 #: ../fish/guestfish.pod:36
17603 msgid ""
17604 "Guestfish gives you structured access to the libguestfs API, from shell "
17605 "scripts or the command line or interactively.  If you want to rescue a "
17606 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17607 "command."
17608 msgstr ""
17609
17610 #. type: =head2
17611 #: ../fish/guestfish.pod:43
17612 msgid "As an interactive shell"
17613 msgstr ""
17614
17615 #. type: verbatim
17616 #: ../fish/guestfish.pod:45
17617 #, no-wrap
17618 msgid ""
17619 " $ guestfish\n"
17620 " \n"
17621 msgstr ""
17622
17623 #. type: verbatim
17624 #: ../fish/guestfish.pod:47
17625 #, no-wrap
17626 msgid ""
17627 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17628 " editing virtual machine filesystems.\n"
17629 " \n"
17630 msgstr ""
17631
17632 #. type: verbatim
17633 #: ../fish/guestfish.pod:50
17634 #, no-wrap
17635 msgid ""
17636 " Type: 'help' for a list of commands\n"
17637 "       'man' to read the manual\n"
17638 "       'quit' to quit the shell\n"
17639 " \n"
17640 msgstr ""
17641
17642 #. type: verbatim
17643 #: ../fish/guestfish.pod:54
17644 #, no-wrap
17645 msgid ""
17646 " ><fs> add-ro disk.img\n"
17647 " ><fs> run\n"
17648 " ><fs> list-filesystems\n"
17649 " /dev/sda1: ext4\n"
17650 " /dev/vg_guest/lv_root: ext4\n"
17651 " /dev/vg_guest/lv_swap: swap\n"
17652 " ><fs> mount /dev/vg_guest/lv_root /\n"
17653 " ><fs> cat /etc/fstab\n"
17654 " # /etc/fstab\n"
17655 " # Created by anaconda\n"
17656 " [...]\n"
17657 " ><fs> exit\n"
17658 "\n"
17659 msgstr ""
17660
17661 #. type: =head2
17662 #: ../fish/guestfish.pod:67
17663 msgid "From shell scripts"
17664 msgstr ""
17665
17666 #. type: textblock
17667 #: ../fish/guestfish.pod:69
17668 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17669 msgstr ""
17670
17671 #. type: verbatim
17672 #: ../fish/guestfish.pod:71
17673 #, no-wrap
17674 msgid ""
17675 " guestfish <<_EOF_\n"
17676 " add disk.img\n"
17677 " run\n"
17678 " mount /dev/vg_guest/lv_root /\n"
17679 " write /etc/motd \"Welcome, new users\"\n"
17680 " _EOF_\n"
17681 "\n"
17682 msgstr ""
17683
17684 #. type: textblock
17685 #: ../fish/guestfish.pod:78
17686 msgid "List the LVM logical volumes in a disk image:"
17687 msgstr ""
17688
17689 #. type: verbatim
17690 #: ../fish/guestfish.pod:80
17691 #, no-wrap
17692 msgid ""
17693 " guestfish -a disk.img --ro <<_EOF_\n"
17694 " run\n"
17695 " lvs\n"
17696 " _EOF_\n"
17697 "\n"
17698 msgstr ""
17699
17700 #. type: textblock
17701 #: ../fish/guestfish.pod:85
17702 msgid "List all the filesystems in a disk image:"
17703 msgstr ""
17704
17705 #. type: verbatim
17706 #: ../fish/guestfish.pod:87
17707 #, no-wrap
17708 msgid ""
17709 " guestfish -a disk.img --ro <<_EOF_\n"
17710 " run\n"
17711 " list-filesystems\n"
17712 " _EOF_\n"
17713 "\n"
17714 msgstr ""
17715
17716 #. type: =head2
17717 #: ../fish/guestfish.pod:92
17718 msgid "On one command line"
17719 msgstr ""
17720
17721 #. type: textblock
17722 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17723 msgid "Update C</etc/resolv.conf> in a guest:"
17724 msgstr ""
17725
17726 #. type: verbatim
17727 #: ../fish/guestfish.pod:96
17728 #, no-wrap
17729 msgid ""
17730 " guestfish \\\n"
17731 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17732 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17733 "\n"
17734 msgstr ""
17735
17736 #. type: textblock
17737 #: ../fish/guestfish.pod:100
17738 msgid "Edit C</boot/grub/grub.conf> interactively:"
17739 msgstr ""
17740
17741 #. type: verbatim
17742 #: ../fish/guestfish.pod:102
17743 #, no-wrap
17744 msgid ""
17745 " guestfish --rw --add disk.img \\\n"
17746 "   --mount /dev/vg_guest/lv_root \\\n"
17747 "   --mount /dev/sda1:/boot \\\n"
17748 "   edit /boot/grub/grub.conf\n"
17749 "\n"
17750 msgstr ""
17751
17752 #. type: =head2
17753 #: ../fish/guestfish.pod:107
17754 msgid "Mount disks automatically"
17755 msgstr ""
17756
17757 #. type: textblock
17758 #: ../fish/guestfish.pod:109
17759 msgid ""
17760 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17761 msgstr ""
17762
17763 #. type: verbatim
17764 #: ../fish/guestfish.pod:112
17765 #, no-wrap
17766 msgid ""
17767 " guestfish --ro -a disk.img -i cat /etc/group\n"
17768 "\n"
17769 msgstr ""
17770
17771 #. type: verbatim
17772 #: ../fish/guestfish.pod:114
17773 #, no-wrap
17774 msgid ""
17775 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17776 "\n"
17777 msgstr ""
17778
17779 #. type: textblock
17780 #: ../fish/guestfish.pod:116
17781 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17782 msgstr ""
17783
17784 #. type: verbatim
17785 #: ../fish/guestfish.pod:118
17786 #, no-wrap
17787 msgid ""
17788 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17789 "\n"
17790 msgstr ""
17791
17792 #. type: =head2
17793 #: ../fish/guestfish.pod:120
17794 msgid "As a script interpreter"
17795 msgstr ""
17796
17797 #. type: textblock
17798 #: ../fish/guestfish.pod:122
17799 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17800 msgstr ""
17801
17802 #. type: verbatim
17803 #: ../fish/guestfish.pod:124
17804 #, no-wrap
17805 msgid ""
17806 " #!/usr/bin/guestfish -f\n"
17807 " sparse test1.img 100M\n"
17808 " run\n"
17809 " part-disk /dev/sda mbr\n"
17810 " mkfs ext2 /dev/sda1\n"
17811 "\n"
17812 msgstr ""
17813
17814 #. type: =head2
17815 #: ../fish/guestfish.pod:130
17816 msgid "Start with a prepared disk"
17817 msgstr ""
17818
17819 #. type: textblock
17820 #: ../fish/guestfish.pod:132
17821 msgid ""
17822 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17823 "single ext2-formatted partition:"
17824 msgstr ""
17825
17826 #. type: verbatim
17827 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
17828 #, no-wrap
17829 msgid ""
17830 " guestfish -N fs\n"
17831 "\n"
17832 msgstr ""
17833
17834 #. type: textblock
17835 #: ../fish/guestfish.pod:137
17836 msgid "To list what is available do:"
17837 msgstr ""
17838
17839 #. type: verbatim
17840 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1041
17841 #, no-wrap
17842 msgid ""
17843 " guestfish -N help | less\n"
17844 "\n"
17845 msgstr ""
17846
17847 #. type: =head2
17848 #: ../fish/guestfish.pod:141
17849 msgid "Remote control"
17850 msgstr ""
17851
17852 #. type: verbatim
17853 #: ../fish/guestfish.pod:143
17854 #, no-wrap
17855 msgid ""
17856 " eval \"`guestfish --listen`\"\n"
17857 " guestfish --remote add-ro disk.img\n"
17858 " guestfish --remote run\n"
17859 " guestfish --remote lvs\n"
17860 "\n"
17861 msgstr ""
17862
17863 #. type: textblock
17864 #: ../fish/guestfish.pod:154
17865 msgid "Displays general help on options."
17866 msgstr ""
17867
17868 #. type: =item
17869 #: ../fish/guestfish.pod:158
17870 msgid "B<--cmd-help>"
17871 msgstr ""
17872
17873 #. type: textblock
17874 #: ../fish/guestfish.pod:160
17875 msgid "Lists all available guestfish commands."
17876 msgstr ""
17877
17878 #. type: =item
17879 #: ../fish/guestfish.pod:162
17880 msgid "B<-h cmd>"
17881 msgstr ""
17882
17883 #. type: =item
17884 #: ../fish/guestfish.pod:164
17885 msgid "B<--cmd-help cmd>"
17886 msgstr ""
17887
17888 #. type: textblock
17889 #: ../fish/guestfish.pod:166
17890 msgid "Displays detailed help on a single command C<cmd>."
17891 msgstr ""
17892
17893 #. type: =item
17894 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17895 msgid "B<-a image>"
17896 msgstr ""
17897
17898 #. type: =item
17899 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17900 msgid "B<--add image>"
17901 msgstr ""
17902
17903 #. type: textblock
17904 #: ../fish/guestfish.pod:172
17905 msgid "Add a block device or virtual machine image to the shell."
17906 msgstr ""
17907
17908 #. type: textblock
17909 #: ../fish/guestfish.pod:177
17910 msgid ""
17911 "Using this flag is mostly equivalent to using the C<add> command, with "
17912 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17913 "the I<--format=...> flag was given."
17914 msgstr ""
17915
17916 #. type: textblock
17917 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17918 msgid ""
17919 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17920 "URI to use.  The default is to use the default libvirt connection."
17921 msgstr ""
17922
17923 #. type: =item
17924 #: ../fish/guestfish.pod:189
17925 msgid "B<--csh>"
17926 msgstr ""
17927
17928 #. type: textblock
17929 #: ../fish/guestfish.pod:191
17930 msgid ""
17931 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17932 "section L</REMOTE CONTROL AND CSH> below."
17933 msgstr ""
17934
17935 #. type: =item
17936 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17937 msgid "B<-d libvirt-domain>"
17938 msgstr ""
17939
17940 #. type: =item
17941 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17942 msgid "B<--domain libvirt-domain>"
17943 msgstr ""
17944
17945 #. type: textblock
17946 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17947 msgid ""
17948 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17949 "used, then any libvirt domain can be used.  However in write mode, only "
17950 "libvirt domains which are shut down can be named here."
17951 msgstr ""
17952
17953 #. type: textblock
17954 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17955 msgid "Domain UUIDs can be used instead of names."
17956 msgstr ""
17957
17958 #. type: textblock
17959 #: ../fish/guestfish.pod:204
17960 msgid ""
17961 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17962 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17963 "if the I<--format:...> flag was given."
17964 msgstr ""
17965
17966 #. type: =item
17967 #: ../fish/guestfish.pod:208
17968 msgid "B<-D>"
17969 msgstr ""
17970
17971 #. type: =item
17972 #: ../fish/guestfish.pod:210
17973 msgid "B<--no-dest-paths>"
17974 msgstr ""
17975
17976 #. type: textblock
17977 #: ../fish/guestfish.pod:212
17978 msgid ""
17979 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17980 "to hit the tab key to complete paths on the guest filesystem, but this "
17981 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17982 "allow this feature to be disabled."
17983 msgstr ""
17984
17985 #. type: textblock
17986 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17987 msgid ""
17988 "When prompting for keys and passphrases, guestfish normally turns echoing "
17989 "off so you cannot see what you are typing.  If you are not worried about "
17990 "Tempest attacks and there is no one else in the room you can specify this "
17991 "flag to see what you are typing."
17992 msgstr ""
17993
17994 #. type: =item
17995 #: ../fish/guestfish.pod:224
17996 msgid "B<-f file>"
17997 msgstr ""
17998
17999 #. type: =item
18000 #: ../fish/guestfish.pod:226
18001 msgid "B<--file file>"
18002 msgstr ""
18003
18004 #. type: textblock
18005 #: ../fish/guestfish.pod:228
18006 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18007 msgstr ""
18008
18009 #. type: verbatim
18010 #: ../fish/guestfish.pod:231
18011 #, no-wrap
18012 msgid ""
18013 " #!/usr/bin/guestfish -f\n"
18014 "\n"
18015 msgstr ""
18016
18017 #. type: verbatim
18018 #: ../fish/guestfish.pod:244
18019 #, no-wrap
18020 msgid ""
18021 " guestfish --format=raw -a disk.img\n"
18022 "\n"
18023 msgstr ""
18024
18025 #. type: verbatim
18026 #: ../fish/guestfish.pod:248
18027 #, no-wrap
18028 msgid ""
18029 " guestfish --format=raw -a disk.img --format -a another.img\n"
18030 "\n"
18031 msgstr ""
18032
18033 #. type: textblock
18034 #: ../fish/guestfish.pod:253
18035 msgid ""
18036 "If you have untrusted raw-format guest disk images, you should use this "
18037 "option to specify the disk format.  This avoids a possible security problem "
18038 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18039 msgstr ""
18040
18041 #. type: =item
18042 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
18043 msgid "B<--inspector>"
18044 msgstr ""
18045
18046 #. type: textblock
18047 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
18048 msgid ""
18049 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18050 "system and mount filesystems as they would be mounted on the real virtual "
18051 "machine."
18052 msgstr ""
18053
18054 #. type: textblock
18055 #: ../fish/guestfish.pod:266
18056 msgid "Typical usage is either:"
18057 msgstr ""
18058
18059 #. type: verbatim
18060 #: ../fish/guestfish.pod:268
18061 #, no-wrap
18062 msgid ""
18063 " guestfish -d myguest -i\n"
18064 "\n"
18065 msgstr ""
18066
18067 #. type: textblock
18068 #: ../fish/guestfish.pod:270
18069 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18070 msgstr ""
18071
18072 #. type: verbatim
18073 #: ../fish/guestfish.pod:272
18074 #, no-wrap
18075 msgid ""
18076 " guestfish --ro -d myguest -i\n"
18077 "\n"
18078 msgstr ""
18079
18080 #. type: textblock
18081 #: ../fish/guestfish.pod:274
18082 msgid "(for active domains, readonly), or specify the block device directly:"
18083 msgstr ""
18084
18085 #. type: verbatim
18086 #: ../fish/guestfish.pod:276
18087 #, no-wrap
18088 msgid ""
18089 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18090 "\n"
18091 msgstr ""
18092
18093 #. type: textblock
18094 #: ../fish/guestfish.pod:278
18095 msgid ""
18096 "Note that the command line syntax changed slightly over older versions of "
18097 "guestfish.  You can still use the old syntax:"
18098 msgstr ""
18099
18100 #. type: verbatim
18101 #: ../fish/guestfish.pod:281
18102 #, no-wrap
18103 msgid ""
18104 " guestfish [--ro] -i disk.img\n"
18105 "\n"
18106 msgstr ""
18107
18108 #. type: verbatim
18109 #: ../fish/guestfish.pod:283
18110 #, no-wrap
18111 msgid ""
18112 " guestfish [--ro] -i libvirt-domain\n"
18113 "\n"
18114 msgstr ""
18115
18116 #. type: textblock
18117 #: ../fish/guestfish.pod:285
18118 msgid ""
18119 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18120 "then using other commands to mount the filesystems that were found."
18121 msgstr ""
18122
18123 #. type: =item
18124 #: ../fish/guestfish.pod:294
18125 msgid "B<--listen>"
18126 msgstr ""
18127
18128 #. type: textblock
18129 #: ../fish/guestfish.pod:296
18130 msgid ""
18131 "Fork into the background and listen for remote commands.  See section L</"
18132 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18133 msgstr ""
18134
18135 #. type: =item
18136 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
18137 msgid "B<--live>"
18138 msgstr ""
18139
18140 #. type: textblock
18141 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
18142 msgid ""
18143 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
18144 "ATTACHING TO RUNNING DAEMONS>)."
18145 msgstr ""
18146
18147 #. type: =item
18148 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
18149 msgid "B<-m dev[:mountpoint[:options]]>"
18150 msgstr ""
18151
18152 #. type: =item
18153 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
18154 msgid "B<--mount dev[:mountpoint[:options]]>"
18155 msgstr ""
18156
18157 #. type: textblock
18158 #: ../fish/guestfish.pod:308
18159 msgid "Mount the named partition or logical volume on the given mountpoint."
18160 msgstr ""
18161
18162 #. type: textblock
18163 #: ../fish/guestfish.pod:310
18164 msgid "If the mountpoint is omitted, it defaults to C</>."
18165 msgstr ""
18166
18167 #. type: textblock
18168 #: ../fish/guestfish.pod:312
18169 msgid "You have to mount something on C</> before most commands will work."
18170 msgstr ""
18171
18172 #. type: textblock
18173 #: ../fish/guestfish.pod:314
18174 msgid ""
18175 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18176 "launched."
18177 msgstr ""
18178
18179 #. type: textblock
18180 #: ../fish/guestfish.pod:317
18181 msgid ""
18182 "If you don't know what filesystems a disk image contains, you can either run "
18183 "guestfish without this option, then list the partitions, filesystems and LVs "
18184 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18185 "commands), or you can use the L<virt-filesystems(1)> program."
18186 msgstr ""
18187
18188 #. type: textblock
18189 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
18190 msgid ""
18191 "The third (and rarely used) part of the mount parameter is the list of mount "
18192 "options used to mount the underlying filesystem.  If this is not given, then "
18193 "the mount options are either the empty string or C<ro> (the latter if the "
18194 "I<--ro> flag is used).  By specifying the mount options, you override this "
18195 "default choice.  Probably the only time you would use this is to enable ACLs "
18196 "and/or extended attributes if the filesystem can support them:"
18197 msgstr ""
18198
18199 #. type: verbatim
18200 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
18201 #, no-wrap
18202 msgid ""
18203 " -m /dev/sda1:/:acl,user_xattr\n"
18204 "\n"
18205 msgstr ""
18206
18207 #. type: textblock
18208 #: ../fish/guestfish.pod:333
18209 msgid "Using this flag is equivalent to using the C<mount-options> command."
18210 msgstr ""
18211
18212 #. type: =item
18213 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
18214 #: ../resize/virt-resize.pod:358
18215 msgid "B<-n>"
18216 msgstr ""
18217
18218 #. type: =item
18219 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
18220 msgid "B<--no-sync>"
18221 msgstr ""
18222
18223 #. type: textblock
18224 #: ../fish/guestfish.pod:339
18225 msgid ""
18226 "Disable autosync.  This is enabled by default.  See the discussion of "
18227 "autosync in the L<guestfs(3)> manpage."
18228 msgstr ""
18229
18230 #. type: =item
18231 #: ../fish/guestfish.pod:342
18232 msgid "B<-N type>"
18233 msgstr ""
18234
18235 #. type: =item
18236 #: ../fish/guestfish.pod:344
18237 msgid "B<--new type>"
18238 msgstr ""
18239
18240 #. type: =item
18241 #: ../fish/guestfish.pod:346
18242 msgid "B<-N help>"
18243 msgstr ""
18244
18245 #. type: textblock
18246 #: ../fish/guestfish.pod:348
18247 msgid ""
18248 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18249 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18250 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18251 "IMAGES> below."
18252 msgstr ""
18253
18254 #. type: =item
18255 #: ../fish/guestfish.pod:353
18256 msgid "B<--progress-bars>"
18257 msgstr ""
18258
18259 #. type: textblock
18260 #: ../fish/guestfish.pod:355
18261 msgid "Enable progress bars, even when guestfish is used non-interactively."
18262 msgstr ""
18263
18264 #. type: textblock
18265 #: ../fish/guestfish.pod:357
18266 msgid ""
18267 "Progress bars are enabled by default when guestfish is used as an "
18268 "interactive shell."
18269 msgstr ""
18270
18271 #. type: =item
18272 #: ../fish/guestfish.pod:360
18273 msgid "B<--no-progress-bars>"
18274 msgstr ""
18275
18276 #. type: textblock
18277 #: ../fish/guestfish.pod:362
18278 msgid "Disable progress bars."
18279 msgstr ""
18280
18281 #. type: =item
18282 #: ../fish/guestfish.pod:364
18283 msgid "B<--remote[=pid]>"
18284 msgstr ""
18285
18286 #. type: textblock
18287 #: ../fish/guestfish.pod:366
18288 msgid ""
18289 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18290 "CONTROL GUESTFISH OVER A SOCKET> below."
18291 msgstr ""
18292
18293 #. type: =item
18294 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
18295 #: ../rescue/virt-rescue.pod:161
18296 msgid "B<-r>"
18297 msgstr ""
18298
18299 #. type: =item
18300 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
18301 #: ../rescue/virt-rescue.pod:163
18302 msgid "B<--ro>"
18303 msgstr ""
18304
18305 #. type: textblock
18306 #: ../fish/guestfish.pod:373
18307 msgid ""
18308 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18309 "mounts are done read-only."
18310 msgstr ""
18311
18312 #. type: textblock
18313 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18314 msgid ""
18315 "The option must always be used if the disk image or virtual machine might be "
18316 "running, and is generally recommended in cases where you don't need write "
18317 "access to the disk."
18318 msgstr ""
18319
18320 #. type: textblock
18321 #: ../fish/guestfish.pod:380
18322 msgid ""
18323 "Note that prepared disk images created with I<-N> are not affected by this "
18324 "option.  Also commands like C<add> are not affected - you have to specify "
18325 "the C<readonly:true> option explicitly if you need it."
18326 msgstr ""
18327
18328 #. type: textblock
18329 #: ../fish/guestfish.pod:384
18330 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18331 msgstr ""
18332
18333 #. type: =item
18334 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
18335 #: ../rescue/virt-rescue.pod:173
18336 msgid "B<--selinux>"
18337 msgstr ""
18338
18339 #. type: textblock
18340 #: ../fish/guestfish.pod:388
18341 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18342 msgstr ""
18343
18344 #. type: textblock
18345 #: ../fish/guestfish.pod:394
18346 msgid ""
18347 "Enable very verbose messages.  This is particularly useful if you find a bug."
18348 msgstr ""
18349
18350 #. type: textblock
18351 #: ../fish/guestfish.pod:401
18352 msgid "Display the guestfish / libguestfs version number and exit."
18353 msgstr ""
18354
18355 #. type: =item
18356 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
18357 #: ../rescue/virt-rescue.pod:194
18358 msgid "B<-w>"
18359 msgstr ""
18360
18361 #. type: =item
18362 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
18363 #: ../rescue/virt-rescue.pod:196
18364 msgid "B<--rw>"
18365 msgstr ""
18366
18367 #. type: textblock
18368 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
18369 msgid ""
18370 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18371 "mounts are done read-write."
18372 msgstr ""
18373
18374 #. type: textblock
18375 #: ../fish/guestfish.pod:410
18376 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18377 msgstr ""
18378
18379 #. type: textblock
18380 #: ../fish/guestfish.pod:414
18381 msgid "Echo each command before executing it."
18382 msgstr ""
18383
18384 #. type: =head1
18385 #: ../fish/guestfish.pod:418
18386 msgid "COMMANDS ON COMMAND LINE"
18387 msgstr ""
18388
18389 #. type: textblock
18390 #: ../fish/guestfish.pod:420
18391 msgid ""
18392 "Any additional (non-option) arguments are treated as commands to execute."
18393 msgstr ""
18394
18395 #. type: textblock
18396 #: ../fish/guestfish.pod:423
18397 msgid ""
18398 "Commands to execute should be separated by a colon (C<:>), where the colon "
18399 "is a separate parameter.  Thus:"
18400 msgstr ""
18401
18402 #. type: verbatim
18403 #: ../fish/guestfish.pod:426
18404 #, no-wrap
18405 msgid ""
18406 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18407 "\n"
18408 msgstr ""
18409
18410 #. type: textblock
18411 #: ../fish/guestfish.pod:428
18412 msgid ""
18413 "If there are no additional arguments, then we enter a shell, either an "
18414 "interactive shell with a prompt (if the input is a terminal) or a non-"
18415 "interactive shell."
18416 msgstr ""
18417
18418 #. type: textblock
18419 #: ../fish/guestfish.pod:432
18420 msgid ""
18421 "In either command line mode or non-interactive shell, the first command that "
18422 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18423 "prompt) if a command fails, you can continue to enter commands."
18424 msgstr ""
18425
18426 #. type: =head1
18427 #: ../fish/guestfish.pod:437
18428 msgid "USING launch (OR run)"
18429 msgstr ""
18430
18431 #. type: textblock
18432 #: ../fish/guestfish.pod:439
18433 msgid ""
18434 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18435 "then launch it, then mount any disks you need, and finally issue actions/"
18436 "commands.  So the general order of the day is:"
18437 msgstr ""
18438
18439 #. type: textblock
18440 #: ../fish/guestfish.pod:447
18441 msgid "add or -a/--add"
18442 msgstr ""
18443
18444 #. type: textblock
18445 #: ../fish/guestfish.pod:451
18446 msgid "launch (aka run)"
18447 msgstr ""
18448
18449 #. type: textblock
18450 #: ../fish/guestfish.pod:455
18451 msgid "mount or -m/--mount"
18452 msgstr ""
18453
18454 #. type: textblock
18455 #: ../fish/guestfish.pod:459
18456 msgid "any other commands"
18457 msgstr ""
18458
18459 #. type: textblock
18460 #: ../fish/guestfish.pod:463
18461 msgid ""
18462 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18463 "guest before mounting or performing any other commands."
18464 msgstr ""
18465
18466 #. type: textblock
18467 #: ../fish/guestfish.pod:466
18468 msgid ""
18469 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18470 "I<--new> options were given then C<run> is done automatically, simply "
18471 "because guestfish can't perform the action you asked for without doing this."
18472 msgstr ""
18473
18474 #. type: =head1
18475 #: ../fish/guestfish.pod:471
18476 msgid "OPENING DISKS FOR READ AND WRITE"
18477 msgstr ""
18478
18479 #. type: textblock
18480 #: ../fish/guestfish.pod:473
18481 msgid ""
18482 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18483 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18484 "I<-i> and I<-m> open disk images read-only or for writing."
18485 msgstr ""
18486
18487 #. type: textblock
18488 #: ../fish/guestfish.pod:478
18489 msgid ""
18490 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18491 "opening disk images supplied on the command line for write.  To open a disk "
18492 "image read-only you have to do I<-a image --ro>."
18493 msgstr ""
18494
18495 #. type: textblock
18496 #: ../fish/guestfish.pod:482
18497 msgid ""
18498 "This matters: If you accidentally open a live VM disk image writable then "
18499 "you will cause irreversible disk corruption."
18500 msgstr ""
18501
18502 #. type: textblock
18503 #: ../fish/guestfish.pod:485
18504 msgid ""
18505 "In a future libguestfs we intend to change the default the other way.  Disk "
18506 "images will be opened read-only.  You will have to either specify "
18507 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18508 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18509 "access for disk images specified by those other command line options."
18510 msgstr ""
18511
18512 #. type: textblock
18513 #: ../fish/guestfish.pod:492
18514 msgid ""
18515 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18516 "which does nothing (it is already the default).  However it is highly "
18517 "recommended that you use this option to indicate that you need write access, "
18518 "and prepare your scripts for the day when this option will be required for "
18519 "write access."
18520 msgstr ""
18521
18522 #. type: textblock
18523 #: ../fish/guestfish.pod:498
18524 msgid ""
18525 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18526 "other libguestfs program apart from guestfish and guestmount."
18527 msgstr ""
18528
18529 #. type: =head1
18530 #: ../fish/guestfish.pod:501
18531 msgid "QUOTING"
18532 msgstr ""
18533
18534 #. type: textblock
18535 #: ../fish/guestfish.pod:503
18536 msgid ""
18537 "You can quote ordinary parameters using either single or double quotes.  For "
18538 "example:"
18539 msgstr ""
18540
18541 #. type: verbatim
18542 #: ../fish/guestfish.pod:506
18543 #, no-wrap
18544 msgid ""
18545 " add \"file with a space.img\"\n"
18546 "\n"
18547 msgstr ""
18548
18549 #. type: verbatim
18550 #: ../fish/guestfish.pod:508
18551 #, no-wrap
18552 msgid ""
18553 " rm '/file name'\n"
18554 "\n"
18555 msgstr ""
18556
18557 #. type: verbatim
18558 #: ../fish/guestfish.pod:510
18559 #, no-wrap
18560 msgid ""
18561 " rm '/\"'\n"
18562 "\n"
18563 msgstr ""
18564
18565 #. type: textblock
18566 #: ../fish/guestfish.pod:512
18567 msgid ""
18568 "A few commands require a list of strings to be passed.  For these, use a "
18569 "whitespace-separated list, enclosed in quotes.  Strings containing "
18570 "whitespace to be passed through must be enclosed in single quotes.  A "
18571 "literal single quote must be escaped with a backslash."
18572 msgstr ""
18573
18574 #. type: verbatim
18575 #: ../fish/guestfish.pod:517
18576 #, no-wrap
18577 msgid ""
18578 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18579 " command \"/bin/echo 'foo      bar'\"\n"
18580 " command \"/bin/echo \\'foo\\'\"\n"
18581 "\n"
18582 msgstr ""
18583
18584 #. type: =head2
18585 #: ../fish/guestfish.pod:521
18586 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18587 msgstr ""
18588
18589 #. type: textblock
18590 #: ../fish/guestfish.pod:523
18591 msgid ""
18592 "In double-quoted arguments (only) use backslash to insert special characters:"
18593 msgstr ""
18594
18595 #. type: =item
18596 #: ../fish/guestfish.pod:528
18597 msgid "C<\\a>"
18598 msgstr ""
18599
18600 #. type: textblock
18601 #: ../fish/guestfish.pod:530
18602 msgid "Alert (bell) character."
18603 msgstr ""
18604
18605 #. type: =item
18606 #: ../fish/guestfish.pod:532
18607 msgid "C<\\b>"
18608 msgstr ""
18609
18610 #. type: textblock
18611 #: ../fish/guestfish.pod:534
18612 msgid "Backspace character."
18613 msgstr ""
18614
18615 #. type: =item
18616 #: ../fish/guestfish.pod:536
18617 msgid "C<\\f>"
18618 msgstr ""
18619
18620 #. type: textblock
18621 #: ../fish/guestfish.pod:538
18622 msgid "Form feed character."
18623 msgstr ""
18624
18625 #. type: =item
18626 #: ../fish/guestfish.pod:540
18627 msgid "C<\\n>"
18628 msgstr ""
18629
18630 #. type: textblock
18631 #: ../fish/guestfish.pod:542
18632 msgid "Newline character."
18633 msgstr ""
18634
18635 #. type: =item
18636 #: ../fish/guestfish.pod:544
18637 msgid "C<\\r>"
18638 msgstr ""
18639
18640 #. type: textblock
18641 #: ../fish/guestfish.pod:546
18642 msgid "Carriage return character."
18643 msgstr ""
18644
18645 #. type: =item
18646 #: ../fish/guestfish.pod:548
18647 msgid "C<\\t>"
18648 msgstr ""
18649
18650 #. type: textblock
18651 #: ../fish/guestfish.pod:550
18652 msgid "Horizontal tab character."
18653 msgstr ""
18654
18655 #. type: =item
18656 #: ../fish/guestfish.pod:552
18657 msgid "C<\\v>"
18658 msgstr ""
18659
18660 #. type: textblock
18661 #: ../fish/guestfish.pod:554
18662 msgid "Vertical tab character."
18663 msgstr ""
18664
18665 #. type: =item
18666 #: ../fish/guestfish.pod:556
18667 msgid "C<\\\">"
18668 msgstr ""
18669
18670 #. type: textblock
18671 #: ../fish/guestfish.pod:558
18672 msgid "A literal double quote character."
18673 msgstr ""
18674
18675 #. type: =item
18676 #: ../fish/guestfish.pod:560
18677 msgid "C<\\ooo>"
18678 msgstr ""
18679
18680 #. type: textblock
18681 #: ../fish/guestfish.pod:562
18682 msgid ""
18683 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18684 "(unlike C)."
18685 msgstr ""
18686
18687 #. type: =item
18688 #: ../fish/guestfish.pod:565
18689 msgid "C<\\xhh>"
18690 msgstr ""
18691
18692 #. type: textblock
18693 #: ../fish/guestfish.pod:567
18694 msgid ""
18695 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18696 msgstr ""
18697
18698 #. type: textblock
18699 #: ../fish/guestfish.pod:570
18700 msgid ""
18701 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18702 "strings."
18703 msgstr ""
18704
18705 #. type: =item
18706 #: ../fish/guestfish.pod:573
18707 msgid "C<\\\\>"
18708 msgstr ""
18709
18710 #. type: textblock
18711 #: ../fish/guestfish.pod:575
18712 msgid "A literal backslash character."
18713 msgstr ""
18714
18715 #. type: =head1
18716 #: ../fish/guestfish.pod:579
18717 msgid "OPTIONAL ARGUMENTS"
18718 msgstr ""
18719
18720 #. type: textblock
18721 #: ../fish/guestfish.pod:581
18722 msgid ""
18723 "Some commands take optional arguments.  These arguments appear in this "
18724 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18725 msgstr ""
18726
18727 #. type: verbatim
18728 #: ../fish/guestfish.pod:585
18729 #, no-wrap
18730 msgid ""
18731 " add-drive-opts filename\n"
18732 "\n"
18733 msgstr ""
18734
18735 #. type: verbatim
18736 #: ../fish/guestfish.pod:587
18737 #, no-wrap
18738 msgid ""
18739 " add-drive-opts filename readonly:true\n"
18740 "\n"
18741 msgstr ""
18742
18743 #. type: verbatim
18744 #: ../fish/guestfish.pod:589
18745 #, no-wrap
18746 msgid ""
18747 " add-drive-opts filename format:qcow2 readonly:false\n"
18748 "\n"
18749 msgstr ""
18750
18751 #. type: textblock
18752 #: ../fish/guestfish.pod:591
18753 msgid ""
18754 "Each optional argument can appear at most once.  All optional arguments must "
18755 "appear after the required ones."
18756 msgstr ""
18757
18758 #. type: =head1
18759 #: ../fish/guestfish.pod:594
18760 msgid "NUMBERS"
18761 msgstr ""
18762
18763 #. type: textblock
18764 #: ../fish/guestfish.pod:596
18765 msgid ""
18766 "This section applies to all commands which can take integers as parameters."
18767 msgstr ""
18768
18769 #. type: =head2
18770 #: ../fish/guestfish.pod:599
18771 msgid "SIZE SUFFIX"
18772 msgstr ""
18773
18774 #. type: textblock
18775 #: ../fish/guestfish.pod:601
18776 msgid ""
18777 "When the command takes a parameter measured in bytes, you can use one of the "
18778 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18779 msgstr ""
18780
18781 #. type: =item
18782 #: ../fish/guestfish.pod:607
18783 msgid "B<k> or B<K> or B<KiB>"
18784 msgstr ""
18785
18786 #. type: textblock
18787 #: ../fish/guestfish.pod:609
18788 msgid "The size in kilobytes (multiplied by 1024)."
18789 msgstr ""
18790
18791 #. type: =item
18792 #: ../fish/guestfish.pod:611
18793 msgid "B<KB>"
18794 msgstr ""
18795
18796 #. type: textblock
18797 #: ../fish/guestfish.pod:613
18798 msgid "The size in SI 1000 byte units."
18799 msgstr ""
18800
18801 #. type: =item
18802 #: ../fish/guestfish.pod:615
18803 msgid "B<M> or B<MiB>"
18804 msgstr ""
18805
18806 #. type: textblock
18807 #: ../fish/guestfish.pod:617
18808 msgid "The size in megabytes (multiplied by 1048576)."
18809 msgstr ""
18810
18811 #. type: =item
18812 #: ../fish/guestfish.pod:619
18813 msgid "B<MB>"
18814 msgstr ""
18815
18816 #. type: textblock
18817 #: ../fish/guestfish.pod:621
18818 msgid "The size in SI 1000000 byte units."
18819 msgstr ""
18820
18821 #. type: =item
18822 #: ../fish/guestfish.pod:623
18823 msgid "B<G> or B<GiB>"
18824 msgstr ""
18825
18826 #. type: textblock
18827 #: ../fish/guestfish.pod:625
18828 msgid "The size in gigabytes (multiplied by 2**30)."
18829 msgstr ""
18830
18831 #. type: =item
18832 #: ../fish/guestfish.pod:627
18833 msgid "B<GB>"
18834 msgstr ""
18835
18836 #. type: textblock
18837 #: ../fish/guestfish.pod:629
18838 msgid "The size in SI 10**9 byte units."
18839 msgstr ""
18840
18841 #. type: =item
18842 #: ../fish/guestfish.pod:631
18843 msgid "B<T> or B<TiB>"
18844 msgstr ""
18845
18846 #. type: textblock
18847 #: ../fish/guestfish.pod:633
18848 msgid "The size in terabytes (multiplied by 2**40)."
18849 msgstr ""
18850
18851 #. type: =item
18852 #: ../fish/guestfish.pod:635
18853 msgid "B<TB>"
18854 msgstr ""
18855
18856 #. type: textblock
18857 #: ../fish/guestfish.pod:637
18858 msgid "The size in SI 10**12 byte units."
18859 msgstr ""
18860
18861 #. type: =item
18862 #: ../fish/guestfish.pod:639
18863 msgid "B<P> or B<PiB>"
18864 msgstr ""
18865
18866 #. type: textblock
18867 #: ../fish/guestfish.pod:641
18868 msgid "The size in petabytes (multiplied by 2**50)."
18869 msgstr ""
18870
18871 #. type: =item
18872 #: ../fish/guestfish.pod:643
18873 msgid "B<PB>"
18874 msgstr ""
18875
18876 #. type: textblock
18877 #: ../fish/guestfish.pod:645
18878 msgid "The size in SI 10**15 byte units."
18879 msgstr ""
18880
18881 #. type: =item
18882 #: ../fish/guestfish.pod:647
18883 msgid "B<E> or B<EiB>"
18884 msgstr ""
18885
18886 #. type: textblock
18887 #: ../fish/guestfish.pod:649
18888 msgid "The size in exabytes (multiplied by 2**60)."
18889 msgstr ""
18890
18891 #. type: =item
18892 #: ../fish/guestfish.pod:651
18893 msgid "B<EB>"
18894 msgstr ""
18895
18896 #. type: textblock
18897 #: ../fish/guestfish.pod:653
18898 msgid "The size in SI 10**18 byte units."
18899 msgstr ""
18900
18901 #. type: =item
18902 #: ../fish/guestfish.pod:655
18903 msgid "B<Z> or B<ZiB>"
18904 msgstr ""
18905
18906 #. type: textblock
18907 #: ../fish/guestfish.pod:657
18908 msgid "The size in zettabytes (multiplied by 2**70)."
18909 msgstr ""
18910
18911 #. type: =item
18912 #: ../fish/guestfish.pod:659
18913 msgid "B<ZB>"
18914 msgstr ""
18915
18916 #. type: textblock
18917 #: ../fish/guestfish.pod:661
18918 msgid "The size in SI 10**21 byte units."
18919 msgstr ""
18920
18921 #. type: =item
18922 #: ../fish/guestfish.pod:663
18923 msgid "B<Y> or B<YiB>"
18924 msgstr ""
18925
18926 #. type: textblock
18927 #: ../fish/guestfish.pod:665
18928 msgid "The size in yottabytes (multiplied by 2**80)."
18929 msgstr ""
18930
18931 #. type: =item
18932 #: ../fish/guestfish.pod:667
18933 msgid "B<YB>"
18934 msgstr ""
18935
18936 #. type: textblock
18937 #: ../fish/guestfish.pod:669
18938 msgid "The size in SI 10**24 byte units."
18939 msgstr ""
18940
18941 #. type: verbatim
18942 #: ../fish/guestfish.pod:675
18943 #, no-wrap
18944 msgid ""
18945 " truncate-size /file 1G\n"
18946 "\n"
18947 msgstr ""
18948
18949 #. type: textblock
18950 #: ../fish/guestfish.pod:677
18951 msgid "would truncate the file to 1 gigabyte."
18952 msgstr ""
18953
18954 #. type: textblock
18955 #: ../fish/guestfish.pod:679
18956 msgid ""
18957 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18958 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18959 "suffix will probably not do what you expect."
18960 msgstr ""
18961
18962 #. type: =head2
18963 #: ../fish/guestfish.pod:683
18964 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18965 msgstr ""
18966
18967 #. type: textblock
18968 #: ../fish/guestfish.pod:685
18969 msgid ""
18970 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18971 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18972 msgstr ""
18973
18974 #. type: verbatim
18975 #: ../fish/guestfish.pod:688
18976 #, no-wrap
18977 msgid ""
18978 " 1234      decimal number 1234\n"
18979 " 02322     octal number, equivalent to decimal 1234\n"
18980 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18981 "\n"
18982 msgstr ""
18983
18984 #. type: textblock
18985 #: ../fish/guestfish.pod:692
18986 msgid ""
18987 "When using the C<chmod> command, you almost always want to specify an octal "
18988 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18989 "L<chmod(1)> program):"
18990 msgstr ""
18991
18992 #. type: verbatim
18993 #: ../fish/guestfish.pod:696
18994 #, no-wrap
18995 msgid ""
18996 " chmod 0777 /public  # OK\n"
18997 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18998 "\n"
18999 msgstr ""
19000
19001 #. type: textblock
19002 #: ../fish/guestfish.pod:699
19003 msgid ""
19004 "Commands that return numbers usually print them in decimal, but some "
19005 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19006 "octal, preceeded by C<0>)."
19007 msgstr ""
19008
19009 #. type: =head1
19010 #: ../fish/guestfish.pod:703
19011 msgid "WILDCARDS AND GLOBBING"
19012 msgstr ""
19013
19014 #. type: textblock
19015 #: ../fish/guestfish.pod:705
19016 msgid ""
19017 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19018 "(globbing) by default.  So for example the following will not do what you "
19019 "expect:"
19020 msgstr ""
19021
19022 #. type: verbatim
19023 #: ../fish/guestfish.pod:709
19024 #, no-wrap
19025 msgid ""
19026 " rm-rf /home/*\n"
19027 "\n"
19028 msgstr ""
19029
19030 #. type: textblock
19031 #: ../fish/guestfish.pod:711
19032 msgid ""
19033 "Assuming you don't have a directory called literally C</home/*> then the "
19034 "above command will return an error."
19035 msgstr ""
19036
19037 #. type: textblock
19038 #: ../fish/guestfish.pod:714
19039 msgid "To perform wildcard expansion, use the C<glob> command."
19040 msgstr ""
19041
19042 #. type: verbatim
19043 #: ../fish/guestfish.pod:716
19044 #, no-wrap
19045 msgid ""
19046 " glob rm-rf /home/*\n"
19047 "\n"
19048 msgstr ""
19049
19050 #. type: textblock
19051 #: ../fish/guestfish.pod:718
19052 msgid ""
19053 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19054 "many times), equivalent to:"
19055 msgstr ""
19056
19057 #. type: verbatim
19058 #: ../fish/guestfish.pod:721
19059 #, no-wrap
19060 msgid ""
19061 " rm-rf /home/jim\n"
19062 " rm-rf /home/joe\n"
19063 " rm-rf /home/mary\n"
19064 "\n"
19065 msgstr ""
19066
19067 #. type: textblock
19068 #: ../fish/guestfish.pod:725
19069 msgid "C<glob> only works on simple guest paths and not on device names."
19070 msgstr ""
19071
19072 #. type: textblock
19073 #: ../fish/guestfish.pod:727
19074 msgid ""
19075 "If you have several parameters, each containing a wildcard, then glob will "
19076 "perform a Cartesian product."
19077 msgstr ""
19078
19079 #. type: =head1
19080 #: ../fish/guestfish.pod:730
19081 msgid "COMMENTS"
19082 msgstr ""
19083
19084 #. type: textblock
19085 #: ../fish/guestfish.pod:732
19086 msgid ""
19087 "Any line which starts with a I<#> character is treated as a comment and "
19088 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19089 "a command.  For example:"
19090 msgstr ""
19091
19092 #. type: verbatim
19093 #: ../fish/guestfish.pod:736
19094 #, no-wrap
19095 msgid ""
19096 " # this is a comment\n"
19097 "         # this is a comment\n"
19098 " foo # NOT a comment\n"
19099 "\n"
19100 msgstr ""
19101
19102 #. type: textblock
19103 #: ../fish/guestfish.pod:740
19104 msgid "Blank lines are also ignored."
19105 msgstr ""
19106
19107 #. type: =head1
19108 #: ../fish/guestfish.pod:742
19109 msgid "RUNNING COMMANDS LOCALLY"
19110 msgstr ""
19111
19112 #. type: textblock
19113 #: ../fish/guestfish.pod:744
19114 msgid ""
19115 "Any line which starts with a I<!> character is treated as a command sent to "
19116 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19117 msgstr ""
19118
19119 #. type: verbatim
19120 #: ../fish/guestfish.pod:748
19121 #, no-wrap
19122 msgid ""
19123 " !mkdir local\n"
19124 " tgz-out /remote local/remote-data.tar.gz\n"
19125 "\n"
19126 msgstr ""
19127
19128 #. type: textblock
19129 #: ../fish/guestfish.pod:751
19130 msgid ""
19131 "will create a directory C<local> on the host, and then export the contents "
19132 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19133 "(See C<tgz-out>)."
19134 msgstr ""
19135
19136 #. type: textblock
19137 #: ../fish/guestfish.pod:755
19138 msgid ""
19139 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19140 "effect, due to the way that subprocesses work in Unix."
19141 msgstr ""
19142
19143 #. type: =head2
19144 #: ../fish/guestfish.pod:758
19145 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19146 msgstr ""
19147
19148 #. type: textblock
19149 #: ../fish/guestfish.pod:760
19150 msgid ""
19151 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19152 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19153 "and executed as guestfish commands."
19154 msgstr ""
19155
19156 #. type: textblock
19157 #: ../fish/guestfish.pod:764
19158 msgid ""
19159 "Thus you can use shell script to construct arbitrary guestfish commands "
19160 "which are then parsed by guestfish."
19161 msgstr ""
19162
19163 #. type: textblock
19164 #: ../fish/guestfish.pod:767
19165 msgid ""
19166 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19167 "through C</foo.100>) using guestfish commands alone.  However this is simple "
19168 "if we use a shell script to create the guestfish commands for us:"
19169 msgstr ""
19170
19171 #. type: verbatim
19172 #: ../fish/guestfish.pod:772
19173 #, no-wrap
19174 msgid ""
19175 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19176 "\n"
19177 msgstr ""
19178
19179 #. type: textblock
19180 #: ../fish/guestfish.pod:774
19181 msgid "or with names like C</foo.001>:"
19182 msgstr ""
19183
19184 #. type: verbatim
19185 #: ../fish/guestfish.pod:776
19186 #, no-wrap
19187 msgid ""
19188 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19189 "\n"
19190 msgstr ""
19191
19192 #. type: textblock
19193 #: ../fish/guestfish.pod:778
19194 msgid ""
19195 "When using guestfish interactively it can be helpful to just run the shell "
19196 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19197 "ordinary I<!> local command), see what guestfish commands it would run, and "
19198 "when you are happy with those prepend the C<E<lt>> character to run the "
19199 "guestfish commands for real."
19200 msgstr ""
19201
19202 #. type: =head1
19203 #: ../fish/guestfish.pod:784
19204 msgid "PIPES"
19205 msgstr ""
19206
19207 #. type: textblock
19208 #: ../fish/guestfish.pod:786
19209 msgid ""
19210 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19211 "command (a guestfish command) to the second command (any host command).  For "
19212 "example:"
19213 msgstr ""
19214
19215 #. type: verbatim
19216 #: ../fish/guestfish.pod:790
19217 #, no-wrap
19218 msgid ""
19219 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19220 "\n"
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fish/guestfish.pod:792
19225 msgid ""
19226 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19227 "program).  The above command would list all accounts in the guest filesystem "
19228 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19229 msgstr ""
19230
19231 #. type: verbatim
19232 #: ../fish/guestfish.pod:797
19233 #, no-wrap
19234 msgid ""
19235 " hexdump /bin/ls | head\n"
19236 " list-devices | tail -1\n"
19237 " tgz-out / - | tar ztf -\n"
19238 "\n"
19239 msgstr ""
19240
19241 #. type: textblock
19242 #: ../fish/guestfish.pod:801
19243 msgid ""
19244 "The space before the pipe symbol is required, any space after the pipe "
19245 "symbol is optional.  Everything after the pipe symbol is just passed "
19246 "straight to the host shell, so it can contain redirections, globs and "
19247 "anything else that makes sense on the host side."
19248 msgstr ""
19249
19250 #. type: textblock
19251 #: ../fish/guestfish.pod:806
19252 msgid ""
19253 "To use a literal argument which begins with a pipe symbol, you have to quote "
19254 "it, eg:"
19255 msgstr ""
19256
19257 #. type: verbatim
19258 #: ../fish/guestfish.pod:809
19259 #, no-wrap
19260 msgid ""
19261 " echo \"|\"\n"
19262 "\n"
19263 msgstr ""
19264
19265 #. type: =head1
19266 #: ../fish/guestfish.pod:811
19267 msgid "HOME DIRECTORIES"
19268 msgstr ""
19269
19270 #. type: textblock
19271 #: ../fish/guestfish.pod:813
19272 msgid ""
19273 "If a parameter starts with the character C<~> then the tilde may be expanded "
19274 "as a home directory path (either C<~> for the current user's home directory, "
19275 "or C<~user> for another user)."
19276 msgstr ""
19277
19278 #. type: textblock
19279 #: ../fish/guestfish.pod:817
19280 msgid ""
19281 "Note that home directory expansion happens for users known I<on the host>, "
19282 "not in the guest filesystem."
19283 msgstr ""
19284
19285 #. type: textblock
19286 #: ../fish/guestfish.pod:820
19287 msgid ""
19288 "To use a literal argument which begins with a tilde, you have to quote it, "
19289 "eg:"
19290 msgstr ""
19291
19292 #. type: verbatim
19293 #: ../fish/guestfish.pod:823
19294 #, no-wrap
19295 msgid ""
19296 " echo \"~\"\n"
19297 "\n"
19298 msgstr ""
19299
19300 #. type: =head2
19301 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
19302 msgid "ENCRYPTED DISKS"
19303 msgstr ""
19304
19305 #. type: textblock
19306 #: ../fish/guestfish.pod:827
19307 msgid ""
19308 "Libguestfs has some support for Linux guests encrypted according to the "
19309 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19310 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
19311 "LUKS is supported."
19312 msgstr ""
19313
19314 #. type: textblock
19315 #: ../fish/guestfish.pod:832
19316 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19317 msgstr ""
19318
19319 #. type: verbatim
19320 #: ../fish/guestfish.pod:834
19321 #, no-wrap
19322 msgid ""
19323 " ><fs> vfs-type /dev/sda2\n"
19324 " crypto_LUKS\n"
19325 "\n"
19326 msgstr ""
19327
19328 #. type: textblock
19329 #: ../fish/guestfish.pod:837
19330 msgid ""
19331 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19332 "device called C</dev/mapper/luksdev>."
19333 msgstr ""
19334
19335 #. type: verbatim
19336 #: ../fish/guestfish.pod:840
19337 #, no-wrap
19338 msgid ""
19339 " ><fs> luks-open /dev/sda2 luksdev\n"
19340 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19341 "\n"
19342 msgstr ""
19343
19344 #. type: textblock
19345 #: ../fish/guestfish.pod:843
19346 msgid ""
19347 "Finally you have to tell LVM to scan for volume groups on the newly created "
19348 "mapper device:"
19349 msgstr ""
19350
19351 #. type: verbatim
19352 #: ../fish/guestfish.pod:846
19353 #, no-wrap
19354 msgid ""
19355 " vgscan\n"
19356 " vg-activate-all true\n"
19357 "\n"
19358 msgstr ""
19359
19360 #. type: textblock
19361 #: ../fish/guestfish.pod:849
19362 msgid "The logical volume(s) can now be mounted in the usual way."
19363 msgstr ""
19364
19365 #. type: textblock
19366 #: ../fish/guestfish.pod:851
19367 msgid ""
19368 "Before closing a LUKS device you must unmount any logical volumes on it and "
19369 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19370 "one.  Then you can close the mapper device:"
19371 msgstr ""
19372
19373 #. type: verbatim
19374 #: ../fish/guestfish.pod:855
19375 #, no-wrap
19376 msgid ""
19377 " vg-activate false /dev/VG\n"
19378 " luks-close /dev/mapper/luksdev\n"
19379 "\n"
19380 msgstr ""
19381
19382 #. type: textblock
19383 #: ../fish/guestfish.pod:860
19384 msgid ""
19385 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19386 "letters and paths (with some limitations).  The following commands are "
19387 "equivalent:"
19388 msgstr ""
19389
19390 #. type: verbatim
19391 #: ../fish/guestfish.pod:864
19392 #, no-wrap
19393 msgid ""
19394 " file /WINDOWS/system32/config/system.LOG\n"
19395 "\n"
19396 msgstr ""
19397
19398 #. type: verbatim
19399 #: ../fish/guestfish.pod:866
19400 #, no-wrap
19401 msgid ""
19402 " file win:\\windows\\system32\\config\\system.log\n"
19403 "\n"
19404 msgstr ""
19405
19406 #. type: verbatim
19407 #: ../fish/guestfish.pod:868
19408 #, no-wrap
19409 msgid ""
19410 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19411 "\n"
19412 msgstr ""
19413
19414 #. type: textblock
19415 #: ../fish/guestfish.pod:870
19416 msgid ""
19417 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19418 "where the drive is mounted, prepending that to the path, changing all "
19419 "backslash characters to forward slash, then resolving the result using L</"
19420 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
19421 "the parameter might be rewritten like this:"
19422 msgstr ""
19423
19424 #. type: verbatim
19425 #: ../fish/guestfish.pod:876
19426 #, no-wrap
19427 msgid ""
19428 " win:e:\\foo\\bar => /e/FOO/bar\n"
19429 "\n"
19430 msgstr ""
19431
19432 #. type: textblock
19433 #: ../fish/guestfish.pod:878
19434 msgid "This only works in argument positions that expect a path."
19435 msgstr ""
19436
19437 #. type: =head1
19438 #: ../fish/guestfish.pod:880
19439 msgid "UPLOADING AND DOWNLOADING FILES"
19440 msgstr ""
19441
19442 #. type: textblock
19443 #: ../fish/guestfish.pod:882
19444 msgid ""
19445 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19446 "others which upload from or download to a local file, you can use the "
19447 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19448 msgstr ""
19449
19450 #. type: verbatim
19451 #: ../fish/guestfish.pod:886
19452 #, no-wrap
19453 msgid ""
19454 " upload - /foo\n"
19455 "\n"
19456 msgstr ""
19457
19458 #. type: textblock
19459 #: ../fish/guestfish.pod:888
19460 msgid ""
19461 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19462 msgstr ""
19463
19464 #. type: verbatim
19465 #: ../fish/guestfish.pod:891
19466 #, no-wrap
19467 msgid ""
19468 " tar-out /etc - | tar tf -\n"
19469 "\n"
19470 msgstr ""
19471
19472 #. type: textblock
19473 #: ../fish/guestfish.pod:893
19474 msgid ""
19475 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19476 "command (see L</PIPES>)."
19477 msgstr ""
19478
19479 #. type: textblock
19480 #: ../fish/guestfish.pod:896
19481 msgid ""
19482 "When using C<-> to read from stdin, the input is read up to the end of "
19483 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19484 "some arbitrary end marker:"
19485 msgstr ""
19486
19487 #. type: verbatim
19488 #: ../fish/guestfish.pod:900
19489 #, no-wrap
19490 msgid ""
19491 " upload -<<END /foo\n"
19492 " input line 1\n"
19493 " input line 2\n"
19494 " input line 3\n"
19495 " END\n"
19496 "\n"
19497 msgstr ""
19498
19499 #. type: textblock
19500 #: ../fish/guestfish.pod:906
19501 msgid ""
19502 "Any string of characters can be used instead of C<END>.  The end marker must "
19503 "appear on a line of its own, without any preceeding or following characters "
19504 "(not even spaces)."
19505 msgstr ""
19506
19507 #. type: textblock
19508 #: ../fish/guestfish.pod:910
19509 msgid ""
19510 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19511 "upload local files (so-called \"FileIn\" parameters in the generator)."
19512 msgstr ""
19513
19514 #. type: =head1
19515 #: ../fish/guestfish.pod:913
19516 msgid "EXIT ON ERROR BEHAVIOUR"
19517 msgstr ""
19518
19519 #. type: textblock
19520 #: ../fish/guestfish.pod:915
19521 msgid ""
19522 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19523 "taking commands from a human over a tty), and will exit on the first error "
19524 "in non-interactive mode (scripts, commands given on the command line)."
19525 msgstr ""
19526
19527 #. type: textblock
19528 #: ../fish/guestfish.pod:920
19529 msgid ""
19530 "If you prefix a command with a I<-> character, then that command will not "
19531 "cause guestfish to exit, even if that (one) command returns an error."
19532 msgstr ""
19533
19534 #. type: =head1
19535 #: ../fish/guestfish.pod:924
19536 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19537 msgstr ""
19538
19539 #. type: textblock
19540 #: ../fish/guestfish.pod:926
19541 msgid ""
19542 "Guestfish can be remote-controlled over a socket.  This is useful "
19543 "particularly in shell scripts where you want to make several different "
19544 "changes to a filesystem, but you don't want the overhead of starting up a "
19545 "guestfish process each time."
19546 msgstr ""
19547
19548 #. type: textblock
19549 #: ../fish/guestfish.pod:931
19550 msgid "Start a guestfish server process using:"
19551 msgstr ""
19552
19553 #. type: verbatim
19554 #: ../fish/guestfish.pod:933
19555 #, no-wrap
19556 msgid ""
19557 " eval \"`guestfish --listen`\"\n"
19558 "\n"
19559 msgstr ""
19560
19561 #. type: textblock
19562 #: ../fish/guestfish.pod:935
19563 msgid "and then send it commands by doing:"
19564 msgstr ""
19565
19566 #. type: verbatim
19567 #: ../fish/guestfish.pod:937
19568 #, no-wrap
19569 msgid ""
19570 " guestfish --remote cmd [...]\n"
19571 "\n"
19572 msgstr ""
19573
19574 #. type: textblock
19575 #: ../fish/guestfish.pod:939
19576 msgid "To cause the server to exit, send it the exit command:"
19577 msgstr ""
19578
19579 #. type: textblock
19580 #: ../fish/guestfish.pod:943
19581 msgid ""
19582 "Note that the server will normally exit if there is an error in a command.  "
19583 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19584 "BEHAVIOUR>."
19585 msgstr ""
19586
19587 #. type: =head2
19588 #: ../fish/guestfish.pod:947
19589 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19590 msgstr ""
19591
19592 #. type: textblock
19593 #: ../fish/guestfish.pod:949
19594 msgid ""
19595 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19596 "is how the I<--remote> option knows where to send the commands.  You can "
19597 "have several guestfish listener processes running using:"
19598 msgstr ""
19599
19600 #. type: verbatim
19601 #: ../fish/guestfish.pod:953
19602 #, no-wrap
19603 msgid ""
19604 " eval \"`guestfish --listen`\"\n"
19605 " pid1=$GUESTFISH_PID\n"
19606 " eval \"`guestfish --listen`\"\n"
19607 " pid2=$GUESTFISH_PID\n"
19608 " ...\n"
19609 " guestfish --remote=$pid1 cmd\n"
19610 " guestfish --remote=$pid2 cmd\n"
19611 "\n"
19612 msgstr ""
19613
19614 #. type: =head2
19615 #: ../fish/guestfish.pod:961
19616 msgid "REMOTE CONTROL AND CSH"
19617 msgstr ""
19618
19619 #. type: textblock
19620 #: ../fish/guestfish.pod:963
19621 msgid ""
19622 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19623 "option:"
19624 msgstr ""
19625
19626 #. type: verbatim
19627 #: ../fish/guestfish.pod:966
19628 #, no-wrap
19629 msgid ""
19630 " eval \"`guestfish --listen --csh`\"\n"
19631 "\n"
19632 msgstr ""
19633
19634 #. type: =head2
19635 #: ../fish/guestfish.pod:968
19636 msgid "REMOTE CONTROL DETAILS"
19637 msgstr ""
19638
19639 #. type: textblock
19640 #: ../fish/guestfish.pod:970
19641 msgid ""
19642 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19643 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19644 "and C<$PID> is the process ID of the server."
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:974
19649 msgid "Guestfish client and server versions must match exactly."
19650 msgstr ""
19651
19652 #. type: =head2
19653 #: ../fish/guestfish.pod:976
19654 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
19655 msgstr ""
19656
19657 #. type: textblock
19658 #: ../fish/guestfish.pod:978
19659 msgid ""
19660 "From Bash, you can use the following code which creates a guestfish "
19661 "instance, correctly quotes the command line, handles failure to start, and "
19662 "cleans up guestfish when the script exits:"
19663 msgstr ""
19664
19665 #. type: verbatim
19666 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
19667 #, no-wrap
19668 msgid ""
19669 " #!/bin/bash -\n"
19670 " \n"
19671 msgstr ""
19672
19673 #. type: verbatim
19674 #: ../fish/guestfish.pod:986
19675 #, no-wrap
19676 msgid ""
19677 " guestfish[0]=\"guestfish\"\n"
19678 " guestfish[1]=\"--listen\"\n"
19679 " guestfish[2]=\"--ro\"\n"
19680 " guestfish[3]=\"-a\"\n"
19681 " guestfish[4]=\"disk.img\"\n"
19682 " \n"
19683 msgstr ""
19684
19685 #. type: verbatim
19686 #: ../fish/guestfish.pod:992
19687 #, no-wrap
19688 msgid ""
19689 " GUESTFISH_PID=\n"
19690 " eval $(\"${guestfish[@]}\")\n"
19691 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
19692 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
19693 "     exit 1\n"
19694 " fi\n"
19695 " \n"
19696 msgstr ""
19697
19698 #. type: verbatim
19699 #: ../fish/guestfish.pod:999
19700 #, no-wrap
19701 msgid ""
19702 " kill_guestfish ()\n"
19703 " {\n"
19704 "     kill $GUESTFISH_PID >/dev/null 2>&1 ||:\n"
19705 " }\n"
19706 " trap kill_guestfish EXIT\n"
19707 " \n"
19708 msgstr ""
19709
19710 #. type: verbatim
19711 #: ../fish/guestfish.pod:1005
19712 #, no-wrap
19713 msgid ""
19714 " guestfish --remote run\n"
19715 " # etc.\n"
19716 "\n"
19717 msgstr ""
19718
19719 #. type: =head2
19720 #: ../fish/guestfish.pod:1008
19721 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19722 msgstr ""
19723
19724 #. type: textblock
19725 #: ../fish/guestfish.pod:1010
19726 msgid ""
19727 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19728 "context hangs, ie. don't do (note the backquotes):"
19729 msgstr ""
19730
19731 #. type: verbatim
19732 #: ../fish/guestfish.pod:1013
19733 #, no-wrap
19734 msgid ""
19735 " a=`guestfish --remote run`\n"
19736 "\n"
19737 msgstr ""
19738
19739 #. type: textblock
19740 #: ../fish/guestfish.pod:1015
19741 msgid ""
19742 "Since the C<run> command produces no output on stdout, this is not useful "
19743 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
19744 "cgi?id=592910>."
19745 msgstr ""
19746
19747 #. type: =head1
19748 #: ../fish/guestfish.pod:1019
19749 msgid "PREPARED DISK IMAGES"
19750 msgstr ""
19751
19752 #. type: textblock
19753 #: ../fish/guestfish.pod:1021
19754 msgid ""
19755 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19756 "preformatted disk images that guestfish can make for you to save typing.  "
19757 "This is particularly useful for testing purposes.  This option is used "
19758 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19759 "can be mixed with I<-a>)."
19760 msgstr ""
19761
19762 #. type: textblock
19763 #: ../fish/guestfish.pod:1027
19764 msgid ""
19765 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19766 "the second and so on.  Existing files in the current directory are "
19767 "I<overwritten>."
19768 msgstr ""
19769
19770 #. type: textblock
19771 #: ../fish/guestfish.pod:1031
19772 msgid ""
19773 "The type briefly describes how the disk should be sized, partitioned, how "
19774 "filesystem(s) should be created, and how content should be added.  "
19775 "Optionally the type can be followed by extra parameters, separated by C<:> "
19776 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19777 "allocated disk, containing a single partition, with the partition formatted "
19778 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19779 "disk instead."
19780 msgstr ""
19781
19782 #. type: textblock
19783 #: ../fish/guestfish.pod:1039
19784 msgid "To list the available types and any extra parameters they take, run:"
19785 msgstr ""
19786
19787 #. type: textblock
19788 #: ../fish/guestfish.pod:1043
19789 msgid ""
19790 "Note that the prepared filesystem is not mounted.  You would usually have to "
19791 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19792 msgstr ""
19793
19794 #. type: textblock
19795 #: ../fish/guestfish.pod:1047
19796 msgid ""
19797 "If any I<-N> or I<--new> options are given, the guest is automatically "
19798 "launched."
19799 msgstr ""
19800
19801 #. type: textblock
19802 #: ../fish/guestfish.pod:1052
19803 msgid "Create a 100MB disk with an ext4-formatted partition:"
19804 msgstr ""
19805
19806 #. type: verbatim
19807 #: ../fish/guestfish.pod:1054
19808 #, no-wrap
19809 msgid ""
19810 " guestfish -N fs:ext4\n"
19811 "\n"
19812 msgstr ""
19813
19814 #. type: textblock
19815 #: ../fish/guestfish.pod:1056
19816 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19817 msgstr ""
19818
19819 #. type: verbatim
19820 #: ../fish/guestfish.pod:1058
19821 #, no-wrap
19822 msgid ""
19823 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19824 "\n"
19825 msgstr ""
19826
19827 #. type: textblock
19828 #: ../fish/guestfish.pod:1060
19829 msgid "Create a blank 200MB disk:"
19830 msgstr ""
19831
19832 #. type: verbatim
19833 #: ../fish/guestfish.pod:1062
19834 #, no-wrap
19835 msgid ""
19836 " guestfish -N disk:200M\n"
19837 "\n"
19838 msgstr ""
19839
19840 #. type: =head1
19841 #: ../fish/guestfish.pod:1064
19842 msgid "PROGRESS BARS"
19843 msgstr ""
19844
19845 #. type: textblock
19846 #: ../fish/guestfish.pod:1066
19847 msgid ""
19848 "Some (not all) long-running commands send progress notification messages as "
19849 "they are running.  Guestfish turns these messages into progress bars."
19850 msgstr ""
19851
19852 #. type: textblock
19853 #: ../fish/guestfish.pod:1070
19854 msgid ""
19855 "When a command that supports progress bars takes longer than two seconds to "
19856 "run, and if progress bars are enabled, then you will see one appearing below "
19857 "the command:"
19858 msgstr ""
19859
19860 #. type: verbatim
19861 #: ../fish/guestfish.pod:1074
19862 #, no-wrap
19863 msgid ""
19864 " ><fs> copy-size /large-file /another-file 2048M\n"
19865 " / 10% [#####-----------------------------------------] 00:30\n"
19866 "\n"
19867 msgstr ""
19868
19869 #. type: textblock
19870 #: ../fish/guestfish.pod:1077
19871 msgid ""
19872 "The spinner on the left hand side moves round once for every progress "
19873 "notification received from the backend.  This is a (reasonably) golden "
19874 "assurance that the command is \"doing something\" even if the progress bar "
19875 "is not moving, because the command is able to send the progress "
19876 "notifications.  When the bar reaches 100% and the command finishes, the "
19877 "spinner disappears."
19878 msgstr ""
19879
19880 #. type: textblock
19881 #: ../fish/guestfish.pod:1084
19882 msgid ""
19883 "Progress bars are enabled by default when guestfish is used interactively.  "
19884 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19885 "and you can disable them completely using I<--no-progress-bars>."
19886 msgstr ""
19887
19888 #. type: =head1
19889 #: ../fish/guestfish.pod:1089
19890 msgid "GUESTFISH COMMANDS"
19891 msgstr ""
19892
19893 #. type: textblock
19894 #: ../fish/guestfish.pod:1091
19895 msgid ""
19896 "The commands in this section are guestfish convenience commands, in other "
19897 "words, they are not part of the L<guestfs(3)> API."
19898 msgstr ""
19899
19900 #. type: =head2
19901 #: ../fish/guestfish.pod:1094
19902 msgid "help"
19903 msgstr ""
19904
19905 #. type: verbatim
19906 #: ../fish/guestfish.pod:1096
19907 #, no-wrap
19908 msgid ""
19909 " help\n"
19910 " help cmd\n"
19911 "\n"
19912 msgstr ""
19913
19914 #. type: textblock
19915 #: ../fish/guestfish.pod:1099
19916 msgid "Without any parameter, this provides general help."
19917 msgstr ""
19918
19919 #. type: textblock
19920 #: ../fish/guestfish.pod:1101
19921 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19922 msgstr ""
19923
19924 #. type: =head2
19925 #: ../fish/guestfish.pod:1103
19926 msgid "quit | exit"
19927 msgstr ""
19928
19929 #. type: textblock
19930 #: ../fish/guestfish.pod:1105
19931 msgid "This exits guestfish.  You can also use C<^D> key."
19932 msgstr ""
19933
19934 #. type: textblock
19935 #: ../fish/guestfish.pod:1107
19936 msgid "@FISH_COMMANDS@"
19937 msgstr ""
19938
19939 #. type: =head1
19940 #: ../fish/guestfish.pod:1109
19941 msgid "COMMANDS"
19942 msgstr ""
19943
19944 #. type: textblock
19945 #: ../fish/guestfish.pod:1111 ../src/guestfs.pod:1505
19946 msgid "@ACTIONS@"
19947 msgstr ""
19948
19949 #. type: textblock
19950 #: ../fish/guestfish.pod:1115
19951 msgid ""
19952 "guestfish returns 0 if the commands completed without error, or 1 if there "
19953 "was an error."
19954 msgstr ""
19955
19956 #. type: =item
19957 #: ../fish/guestfish.pod:1122
19958 msgid "EDITOR"
19959 msgstr ""
19960
19961 #. type: textblock
19962 #: ../fish/guestfish.pod:1124
19963 msgid ""
19964 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19965 "C<vi>."
19966 msgstr ""
19967
19968 #. type: =item
19969 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3198
19970 msgid "FEBOOTSTRAP_KERNEL"
19971 msgstr ""
19972
19973 #. type: =item
19974 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3200
19975 msgid "FEBOOTSTRAP_MODULES"
19976 msgstr ""
19977
19978 #. type: textblock
19979 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3202
19980 msgid ""
19981 "These two environment variables allow the kernel that libguestfs uses in the "
19982 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19983 "most recent host kernel is chosen.  For more information about kernel "
19984 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19985 "available in febootstrap E<ge> 3.8."
19986 msgstr ""
19987
19988 #. type: =item
19989 #: ../fish/guestfish.pod:1137
19990 msgid "GUESTFISH_DISPLAY_IMAGE"
19991 msgstr ""
19992
19993 #. type: textblock
19994 #: ../fish/guestfish.pod:1139
19995 msgid ""
19996 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19997 "If not set, it uses L<display(1)>."
19998 msgstr ""
19999
20000 #. type: =item
20001 #: ../fish/guestfish.pod:1142
20002 msgid "GUESTFISH_PID"
20003 msgstr ""
20004
20005 #. type: textblock
20006 #: ../fish/guestfish.pod:1144
20007 msgid ""
20008 "Used with the I<--remote> option to specify the remote guestfish process to "
20009 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20010 msgstr ""
20011
20012 #. type: =item
20013 #: ../fish/guestfish.pod:1148
20014 msgid "HEXEDITOR"
20015 msgstr ""
20016
20017 #. type: textblock
20018 #: ../fish/guestfish.pod:1150
20019 msgid ""
20020 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20021 "not specified, the external L<hexedit(1)> program is used."
20022 msgstr ""
20023
20024 #. type: =item
20025 #: ../fish/guestfish.pod:1154
20026 msgid "HOME"
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../fish/guestfish.pod:1156
20031 msgid ""
20032 "If compiled with GNU readline support, various files in the home directory "
20033 "can be used.  See L</FILES>."
20034 msgstr ""
20035
20036 #. type: =item
20037 #: ../fish/guestfish.pod:1159 ../src/guestfs.pod:3208
20038 msgid "LIBGUESTFS_APPEND"
20039 msgstr ""
20040
20041 #. type: textblock
20042 #: ../fish/guestfish.pod:1161 ../src/guestfs.pod:3210
20043 msgid "Pass additional options to the guest kernel."
20044 msgstr ""
20045
20046 #. type: =item
20047 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3212
20048 msgid "LIBGUESTFS_DEBUG"
20049 msgstr ""
20050
20051 #. type: textblock
20052 #: ../fish/guestfish.pod:1165
20053 msgid ""
20054 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20055 "effect as using the B<-v> option."
20056 msgstr ""
20057
20058 #. type: =item
20059 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3217
20060 msgid "LIBGUESTFS_MEMSIZE"
20061 msgstr ""
20062
20063 #. type: textblock
20064 #: ../fish/guestfish.pod:1170 ../src/guestfs.pod:3219
20065 msgid ""
20066 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20067 msgstr ""
20068
20069 #. type: verbatim
20070 #: ../fish/guestfish.pod:1173 ../src/guestfs.pod:3222
20071 #, no-wrap
20072 msgid ""
20073 " LIBGUESTFS_MEMSIZE=700\n"
20074 "\n"
20075 msgstr ""
20076
20077 #. type: =item
20078 #: ../fish/guestfish.pod:1175 ../src/guestfs.pod:3224
20079 msgid "LIBGUESTFS_PATH"
20080 msgstr ""
20081
20082 #. type: textblock
20083 #: ../fish/guestfish.pod:1177
20084 msgid ""
20085 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20086 "the discussion of paths in L<guestfs(3)>."
20087 msgstr ""
20088
20089 #. type: =item
20090 #: ../fish/guestfish.pod:1180 ../src/guestfs.pod:3229
20091 msgid "LIBGUESTFS_QEMU"
20092 msgstr ""
20093
20094 #. type: textblock
20095 #: ../fish/guestfish.pod:1182 ../src/guestfs.pod:3231
20096 msgid ""
20097 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
20098 "which was found at compile time by the configure script is used."
20099 msgstr ""
20100
20101 #. type: =item
20102 #: ../fish/guestfish.pod:1186 ../src/guestfs.pod:3237
20103 msgid "LIBGUESTFS_TRACE"
20104 msgstr ""
20105
20106 #. type: textblock
20107 #: ../fish/guestfish.pod:1188
20108 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20109 msgstr ""
20110
20111 #. type: =item
20112 #: ../fish/guestfish.pod:1190
20113 msgid "PAGER"
20114 msgstr ""
20115
20116 #. type: textblock
20117 #: ../fish/guestfish.pod:1192
20118 msgid ""
20119 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20120 "C<more>."
20121 msgstr ""
20122
20123 #. type: =item
20124 #: ../fish/guestfish.pod:1195 ../sparsify/virt-sparsify.pod:236
20125 #: ../src/guestfs.pod:3242
20126 msgid "TMPDIR"
20127 msgstr ""
20128
20129 #. type: textblock
20130 #: ../fish/guestfish.pod:1197 ../src/guestfs.pod:3244
20131 msgid ""
20132 "Location of temporary directory, defaults to C</tmp> except for the cached "
20133 "supermin appliance which defaults to C</var/tmp>."
20134 msgstr ""
20135
20136 #. type: textblock
20137 #: ../fish/guestfish.pod:1200 ../src/guestfs.pod:3247
20138 msgid ""
20139 "If libguestfs was compiled to use the supermin appliance then the real "
20140 "appliance is cached in this directory, shared between all handles belonging "
20141 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
20142 "use in case C</var/tmp> is not large enough."
20143 msgstr ""
20144
20145 #. type: =head1
20146 #: ../fish/guestfish.pod:1208 ../fuse/guestmount.pod:288
20147 #: ../rescue/virt-rescue.pod:273
20148 msgid "FILES"
20149 msgstr ""
20150
20151 #. type: =item
20152 #: ../fish/guestfish.pod:1212 ../fuse/guestmount.pod:292
20153 #: ../rescue/virt-rescue.pod:277
20154 msgid "$HOME/.libguestfs-tools.rc"
20155 msgstr ""
20156
20157 #. type: =item
20158 #: ../fish/guestfish.pod:1214 ../fuse/guestmount.pod:294
20159 #: ../rescue/virt-rescue.pod:279
20160 msgid "/etc/libguestfs-tools.conf"
20161 msgstr ""
20162
20163 #. type: textblock
20164 #: ../fish/guestfish.pod:1216 ../fuse/guestmount.pod:296
20165 #: ../rescue/virt-rescue.pod:281
20166 msgid ""
20167 "This configuration file controls the default read-only or read-write mode "
20168 "(I<--ro> or I<--rw>)."
20169 msgstr ""
20170
20171 #. type: textblock
20172 #: ../fish/guestfish.pod:1219
20173 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20174 msgstr ""
20175
20176 #. type: =item
20177 #: ../fish/guestfish.pod:1221
20178 msgid "$HOME/.guestfish"
20179 msgstr ""
20180
20181 #. type: textblock
20182 #: ../fish/guestfish.pod:1223
20183 msgid ""
20184 "If compiled with GNU readline support, then the command history is saved in "
20185 "this file."
20186 msgstr ""
20187
20188 #. type: =item
20189 #: ../fish/guestfish.pod:1226
20190 msgid "$HOME/.inputrc"
20191 msgstr ""
20192
20193 #. type: =item
20194 #: ../fish/guestfish.pod:1228
20195 msgid "/etc/inputrc"
20196 msgstr ""
20197
20198 #. type: textblock
20199 #: ../fish/guestfish.pod:1230
20200 msgid ""
20201 "If compiled with GNU readline support, then these files can be used to "
20202 "configure readline.  For further information, please see L<readline(3)/"
20203 "INITIALIZATION FILE>."
20204 msgstr ""
20205
20206 #. type: textblock
20207 #: ../fish/guestfish.pod:1234
20208 msgid "To write rules which only apply to guestfish, use:"
20209 msgstr ""
20210
20211 #. type: verbatim
20212 #: ../fish/guestfish.pod:1236
20213 #, no-wrap
20214 msgid ""
20215 " $if guestfish\n"
20216 " ...\n"
20217 " $endif\n"
20218 "\n"
20219 msgstr ""
20220
20221 #. type: textblock
20222 #: ../fish/guestfish.pod:1240
20223 msgid ""
20224 "Variables that you can set in inputrc that change the behaviour of guestfish "
20225 "in useful ways include:"
20226 msgstr ""
20227
20228 #. type: =item
20229 #: ../fish/guestfish.pod:1245
20230 msgid "completion-ignore-case (default: on)"
20231 msgstr ""
20232
20233 #. type: textblock
20234 #: ../fish/guestfish.pod:1247
20235 msgid ""
20236 "By default, guestfish will ignore case when tab-completing paths on the "
20237 "disk.  Use:"
20238 msgstr ""
20239
20240 #. type: verbatim
20241 #: ../fish/guestfish.pod:1250
20242 #, no-wrap
20243 msgid ""
20244 " set completion-ignore-case off\n"
20245 "\n"
20246 msgstr ""
20247
20248 #. type: textblock
20249 #: ../fish/guestfish.pod:1252
20250 msgid "to make guestfish case sensitive."
20251 msgstr ""
20252
20253 #. type: =item
20254 #: ../fish/guestfish.pod:1256
20255 msgid "test1.img"
20256 msgstr ""
20257
20258 #. type: =item
20259 #: ../fish/guestfish.pod:1258
20260 msgid "test2.img (etc)"
20261 msgstr ""
20262
20263 #. type: textblock
20264 #: ../fish/guestfish.pod:1260
20265 msgid ""
20266 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20267 "will be created in the file C<test1.img> in the current directory.  The "
20268 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20269 "the same name will be overwritten."
20270 msgstr ""
20271
20272 #. type: textblock
20273 #: ../fish/guestfish.pod:1269
20274 msgid ""
20275 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
20276 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
20277 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
20278 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
20279 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
20280 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
20281 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
20282 msgstr ""
20283
20284 #. type: textblock
20285 #: ../fish/guestfish.pod:1301 ../src/guestfs.pod:3339
20286 #: ../test-tool/libguestfs-test-tool.pod:112
20287 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20288 msgstr ""
20289
20290 #. type: textblock
20291 #: ../fish/virt-copy-in.pod:5
20292 msgid ""
20293 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20294 msgstr ""
20295
20296 #. type: verbatim
20297 #: ../fish/virt-copy-in.pod:9
20298 #, no-wrap
20299 msgid ""
20300 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20301 "\n"
20302 msgstr ""
20303
20304 #. type: verbatim
20305 #: ../fish/virt-copy-in.pod:11
20306 #, no-wrap
20307 msgid ""
20308 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20309 "\n"
20310 msgstr ""
20311
20312 #. type: textblock
20313 #: ../fish/virt-copy-in.pod:15
20314 msgid ""
20315 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20316 "causing disk corruption.  The virtual machine must be shut down before you "
20317 "use this command."
20318 msgstr ""
20319
20320 #. type: textblock
20321 #: ../fish/virt-copy-in.pod:21
20322 msgid ""
20323 "C<virt-copy-in> copies files and directories from the local disk into a "
20324 "virtual machine disk image or named libvirt domain."
20325 msgstr ""
20326
20327 #. type: textblock
20328 #: ../fish/virt-copy-in.pod:24
20329 msgid ""
20330 "You can give one of more filenames and directories on the command line.  "
20331 "Directories are copied in recursively.  The final parameter must be the "
20332 "destination directory in the disk image which must be an absolute path "
20333 "starting with a C</> character."
20334 msgstr ""
20335
20336 #. type: verbatim
20337 #: ../fish/virt-copy-in.pod:33
20338 #, no-wrap
20339 msgid ""
20340 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20341 "\n"
20342 msgstr ""
20343
20344 #. type: textblock
20345 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20346 msgid "Upload a home directory to a guest:"
20347 msgstr ""
20348
20349 #. type: verbatim
20350 #: ../fish/virt-copy-in.pod:37
20351 #, no-wrap
20352 msgid ""
20353 " virt-copy-in -d MyGuest skel /home\n"
20354 "\n"
20355 msgstr ""
20356
20357 #. type: =head1
20358 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20359 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20360 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20361 msgstr ""
20362
20363 #. type: textblock
20364 #: ../fish/virt-copy-in.pod:41
20365 msgid ""
20366 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20367 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
20368 "are probably better off using guestfish directly."
20369 msgstr ""
20370
20371 #. type: textblock
20372 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20373 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20374 msgid ""
20375 "Since the shell script just passes options straight to guestfish, read "
20376 "L<guestfish(1)> to see the full list of options."
20377 msgstr ""
20378
20379 #. type: textblock
20380 #: ../fish/virt-copy-in.pod:52
20381 msgid ""
20382 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20383 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20384 msgstr ""
20385
20386 #. type: textblock
20387 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20388 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20389 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20390 msgstr ""
20391
20392 #. type: textblock
20393 #: ../fish/virt-copy-out.pod:5
20394 msgid ""
20395 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20396 "image."
20397 msgstr ""
20398
20399 #. type: verbatim
20400 #: ../fish/virt-copy-out.pod:9
20401 #, no-wrap
20402 msgid ""
20403 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20404 "\n"
20405 msgstr ""
20406
20407 #. type: verbatim
20408 #: ../fish/virt-copy-out.pod:11
20409 #, no-wrap
20410 msgid ""
20411 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20412 "\n"
20413 msgstr ""
20414
20415 #. type: textblock
20416 #: ../fish/virt-copy-out.pod:15
20417 msgid ""
20418 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20419 "image or named libvirt domain."
20420 msgstr ""
20421
20422 #. type: textblock
20423 #: ../fish/virt-copy-out.pod:18
20424 msgid ""
20425 "You can give one of more filenames and directories on the command line.  "
20426 "Directories are copied out recursively."
20427 msgstr ""
20428
20429 #. type: textblock
20430 #: ../fish/virt-copy-out.pod:23
20431 msgid "Download the home directories from a virtual machine:"
20432 msgstr ""
20433
20434 #. type: verbatim
20435 #: ../fish/virt-copy-out.pod:25
20436 #, no-wrap
20437 msgid ""
20438 " mkdir homes\n"
20439 " virt-copy-out -d MyGuest /home homes\n"
20440 "\n"
20441 msgstr ""
20442
20443 #. type: textblock
20444 #: ../fish/virt-copy-out.pod:30
20445 msgid ""
20446 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20447 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
20448 "are probably better off using guestfish directly."
20449 msgstr ""
20450
20451 #. type: textblock
20452 #: ../fish/virt-copy-out.pod:41
20453 msgid ""
20454 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20455 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20456 msgstr ""
20457
20458 #. type: textblock
20459 #: ../fish/virt-tar-in.pod:5
20460 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20461 msgstr ""
20462
20463 #. type: verbatim
20464 #: ../fish/virt-tar-in.pod:9
20465 #, no-wrap
20466 msgid ""
20467 " virt-tar-in -a disk.img data.tar /destination\n"
20468 "\n"
20469 msgstr ""
20470
20471 #. type: verbatim
20472 #: ../fish/virt-tar-in.pod:11
20473 #, no-wrap
20474 msgid ""
20475 " virt-tar-in -d domain data.tar /destination\n"
20476 "\n"
20477 msgstr ""
20478
20479 #. type: verbatim
20480 #: ../fish/virt-tar-in.pod:13
20481 #, no-wrap
20482 msgid ""
20483 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20484 "\n"
20485 msgstr ""
20486
20487 #. type: textblock
20488 #: ../fish/virt-tar-in.pod:17
20489 msgid ""
20490 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20491 "causing disk corruption.  The virtual machine must be shut down before you "
20492 "use this command."
20493 msgstr ""
20494
20495 #. type: textblock
20496 #: ../fish/virt-tar-in.pod:23
20497 msgid ""
20498 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20499 "image or named libvirt domain."
20500 msgstr ""
20501
20502 #. type: textblock
20503 #: ../fish/virt-tar-in.pod:26
20504 msgid ""
20505 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20506 "standard input.  The second parameter is the absolute target directory to "
20507 "unpack into."
20508 msgstr ""
20509
20510 #. type: verbatim
20511 #: ../fish/virt-tar-in.pod:34
20512 #, no-wrap
20513 msgid ""
20514 " virt-tar-in -d MyGuest homes.tar /home\n"
20515 "\n"
20516 msgstr ""
20517
20518 #. type: textblock
20519 #: ../fish/virt-tar-in.pod:38
20520 msgid ""
20521 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20522 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
20523 "probably better off using guestfish directly."
20524 msgstr ""
20525
20526 #. type: textblock
20527 #: ../fish/virt-tar-in.pod:49
20528 msgid ""
20529 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20530 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20531 "org/>."
20532 msgstr ""
20533
20534 #. type: textblock
20535 #: ../fish/virt-tar-out.pod:5
20536 msgid ""
20537 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20538 msgstr ""
20539
20540 #. type: verbatim
20541 #: ../fish/virt-tar-out.pod:9
20542 #, no-wrap
20543 msgid ""
20544 " virt-tar-out -a disk.img /dir files.tar\n"
20545 "\n"
20546 msgstr ""
20547
20548 #. type: verbatim
20549 #: ../fish/virt-tar-out.pod:11
20550 #, no-wrap
20551 msgid ""
20552 " virt-tar-out -d domain /dir files.tar\n"
20553 "\n"
20554 msgstr ""
20555
20556 #. type: verbatim
20557 #: ../fish/virt-tar-out.pod:13
20558 #, no-wrap
20559 msgid ""
20560 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20561 "\n"
20562 msgstr ""
20563
20564 #. type: textblock
20565 #: ../fish/virt-tar-out.pod:17
20566 msgid ""
20567 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20568 msgstr ""
20569
20570 #. type: textblock
20571 #: ../fish/virt-tar-out.pod:20
20572 msgid ""
20573 "The first parameter is the absolute path of the virtual machine directory.  "
20574 "The second parameter is the tar file to write.  Use C<-> to write to "
20575 "standard output."
20576 msgstr ""
20577
20578 #. type: textblock
20579 #: ../fish/virt-tar-out.pod:26
20580 msgid "Download the home directories from a guest:"
20581 msgstr ""
20582
20583 #. type: verbatim
20584 #: ../fish/virt-tar-out.pod:28
20585 #, no-wrap
20586 msgid ""
20587 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20588 "\n"
20589 msgstr ""
20590
20591 #. type: textblock
20592 #: ../fish/virt-tar-out.pod:32
20593 msgid ""
20594 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20595 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
20596 "are probably better off using guestfish directly."
20597 msgstr ""
20598
20599 #. type: textblock
20600 #: ../fish/virt-tar-out.pod:43
20601 msgid ""
20602 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20603 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20604 msgstr ""
20605
20606 #. type: textblock
20607 #: ../fuse/guestmount.pod:5
20608 msgid ""
20609 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20610 msgstr ""
20611
20612 #. type: verbatim
20613 #: ../fuse/guestmount.pod:9
20614 #, no-wrap
20615 msgid ""
20616 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20617 "\n"
20618 msgstr ""
20619
20620 #. type: verbatim
20621 #: ../fuse/guestmount.pod:11
20622 #, no-wrap
20623 msgid ""
20624 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20625 "\n"
20626 msgstr ""
20627
20628 #. type: verbatim
20629 #: ../fuse/guestmount.pod:13
20630 #, no-wrap
20631 msgid ""
20632 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20633 "\n"
20634 msgstr ""
20635
20636 #. type: textblock
20637 #: ../fuse/guestmount.pod:17
20638 msgid ""
20639 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20640 "machines.  If you do this, you risk disk corruption in the VM."
20641 msgstr ""
20642
20643 #. type: textblock
20644 #: ../fuse/guestmount.pod:22
20645 msgid ""
20646 "The guestmount program can be used to mount virtual machine filesystems and "
20647 "other disk images on the host.  It uses libguestfs for access to the guest "
20648 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20649 "a mountable device."
20650 msgstr ""
20651
20652 #. type: textblock
20653 #: ../fuse/guestmount.pod:27
20654 msgid ""
20655 "Along with other options, you have to give at least one device (I<-a> "
20656 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20657 "option) or use the I<-i> inspection option.  How this works is better "
20658 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20659 "below."
20660 msgstr ""
20661
20662 #. type: textblock
20663 #: ../fuse/guestmount.pod:33
20664 msgid ""
20665 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20666 "by you, and the filesystem will not be visible to any other users unless you "
20667 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20668 "the filesystem, use the C<fusermount -u> command."
20669 msgstr ""
20670
20671 #. type: textblock
20672 #: ../fuse/guestmount.pod:41
20673 msgid ""
20674 "For a typical Windows guest which has its main filesystem on the first "
20675 "partition:"
20676 msgstr ""
20677
20678 #. type: verbatim
20679 #: ../fuse/guestmount.pod:44
20680 #, no-wrap
20681 msgid ""
20682 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20683 "\n"
20684 msgstr ""
20685
20686 #. type: textblock
20687 #: ../fuse/guestmount.pod:46
20688 msgid ""
20689 "For a typical Linux guest which has a /boot filesystem on the first "
20690 "partition, and the root filesystem on a logical volume:"
20691 msgstr ""
20692
20693 #. type: verbatim
20694 #: ../fuse/guestmount.pod:49
20695 #, no-wrap
20696 msgid ""
20697 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20698 "\n"
20699 msgstr ""
20700
20701 #. type: textblock
20702 #: ../fuse/guestmount.pod:51
20703 msgid "To get libguestfs to detect guest mountpoints for you:"
20704 msgstr ""
20705
20706 #. type: verbatim
20707 #: ../fuse/guestmount.pod:53
20708 #, no-wrap
20709 msgid ""
20710 " guestmount -a guest.img -i --ro /mnt\n"
20711 "\n"
20712 msgstr ""
20713
20714 #. type: textblock
20715 #: ../fuse/guestmount.pod:55
20716 msgid "For a libvirt guest called \"Guest\" you could do:"
20717 msgstr ""
20718
20719 #. type: verbatim
20720 #: ../fuse/guestmount.pod:57
20721 #, no-wrap
20722 msgid ""
20723 " guestmount -d Guest -i --ro /mnt\n"
20724 "\n"
20725 msgstr ""
20726
20727 #. type: textblock
20728 #: ../fuse/guestmount.pod:59
20729 msgid ""
20730 "If you don't know what filesystems are contained in a guest or disk image, "
20731 "use L<virt-filesystems(1)> first:"
20732 msgstr ""
20733
20734 #. type: verbatim
20735 #: ../fuse/guestmount.pod:62
20736 #, no-wrap
20737 msgid ""
20738 " virt-filesystems MyGuest\n"
20739 "\n"
20740 msgstr ""
20741
20742 #. type: textblock
20743 #: ../fuse/guestmount.pod:64
20744 msgid ""
20745 "If you want to trace the libguestfs calls but without excessive debugging "
20746 "information, we recommend:"
20747 msgstr ""
20748
20749 #. type: verbatim
20750 #: ../fuse/guestmount.pod:67
20751 #, no-wrap
20752 msgid ""
20753 " guestmount [...] --trace /mnt\n"
20754 "\n"
20755 msgstr ""
20756
20757 #. type: textblock
20758 #: ../fuse/guestmount.pod:69
20759 msgid "If you want to debug the program, we recommend:"
20760 msgstr ""
20761
20762 #. type: verbatim
20763 #: ../fuse/guestmount.pod:71
20764 #, no-wrap
20765 msgid ""
20766 " guestmount [...] --trace --verbose /mnt\n"
20767 "\n"
20768 msgstr ""
20769
20770 #. type: =head1
20771 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20772 #: ../resize/virt-resize.pod:544
20773 msgid "NOTES"
20774 msgstr ""
20775
20776 #. type: =head2
20777 #: ../fuse/guestmount.pod:75
20778 msgid "Other users cannot see the filesystem by default"
20779 msgstr ""
20780
20781 #. type: textblock
20782 #: ../fuse/guestmount.pod:77
20783 msgid ""
20784 "If you mount a filesystem as one user (eg. root), then other users will not "
20785 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20786 "option when mounting:"
20787 msgstr ""
20788
20789 #. type: verbatim
20790 #: ../fuse/guestmount.pod:81
20791 #, no-wrap
20792 msgid ""
20793 " sudo guestmount [...] -o allow_other /mnt\n"
20794 "\n"
20795 msgstr ""
20796
20797 #. type: textblock
20798 #: ../fuse/guestmount.pod:91
20799 msgid "Add a block device or virtual machine image."
20800 msgstr ""
20801
20802 #. type: =item
20803 #: ../fuse/guestmount.pod:114
20804 msgid "B<--dir-cache-timeout N>"
20805 msgstr ""
20806
20807 #. type: textblock
20808 #: ../fuse/guestmount.pod:116
20809 msgid ""
20810 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20811 "seconds.  The readdir cache [actually, there are several semi-independent "
20812 "caches] is populated after a readdir(2) call with the stat and extended "
20813 "attributes of the files in the directory, in anticipation that they will be "
20814 "requested soon after."
20815 msgstr ""
20816
20817 #. type: textblock
20818 #: ../fuse/guestmount.pod:122
20819 msgid ""
20820 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20821 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20822 "requests, only cache existing ones."
20823 msgstr ""
20824
20825 #. type: textblock
20826 #: ../fuse/guestmount.pod:142
20827 msgid ""
20828 "If you have untrusted raw-format guest disk images, you should use this "
20829 "option to specify the disk format.  This avoids a possible security problem "
20830 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20831 "guestfs_add_drive_opts>."
20832 msgstr ""
20833
20834 #. type: =item
20835 #: ../fuse/guestmount.pod:147
20836 msgid "B<--fuse-help>"
20837 msgstr ""
20838
20839 #. type: textblock
20840 #: ../fuse/guestmount.pod:149
20841 msgid "Display help on special FUSE options (see I<-o> below)."
20842 msgstr ""
20843
20844 #. type: textblock
20845 #: ../fuse/guestmount.pod:153
20846 msgid "Display brief help and exit."
20847 msgstr ""
20848
20849 #. type: textblock
20850 #: ../fuse/guestmount.pod:177
20851 msgid ""
20852 "Mount the named partition or logical volume on the given mountpoint B<in the "
20853 "guest> (this has nothing to do with mountpoints in the host)."
20854 msgstr ""
20855
20856 #. type: textblock
20857 #: ../fuse/guestmount.pod:180
20858 msgid ""
20859 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20860 "something on C</>."
20861 msgstr ""
20862
20863 #. type: textblock
20864 #: ../fuse/guestmount.pod:197
20865 msgid ""
20866 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20867 "unmounted.  If you specify this option, then we don't attempt to sync the "
20868 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20869 msgstr ""
20870
20871 #. type: =item
20872 #: ../fuse/guestmount.pod:202
20873 msgid "B<-o option>"
20874 msgstr ""
20875
20876 #. type: =item
20877 #: ../fuse/guestmount.pod:204
20878 msgid "B<--option option>"
20879 msgstr ""
20880
20881 #. type: textblock
20882 #: ../fuse/guestmount.pod:206
20883 msgid "Pass extra options to FUSE."
20884 msgstr ""
20885
20886 #. type: textblock
20887 #: ../fuse/guestmount.pod:208
20888 msgid ""
20889 "To get a list of all the extra options supported by FUSE, use the command "
20890 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20891 "of them are a good idea."
20892 msgstr ""
20893
20894 #. type: verbatim
20895 #: ../fuse/guestmount.pod:212
20896 #, no-wrap
20897 msgid ""
20898 " guestmount --fuse-help\n"
20899 "\n"
20900 msgstr ""
20901
20902 #. type: textblock
20903 #: ../fuse/guestmount.pod:214
20904 msgid "Some potentially useful FUSE options:"
20905 msgstr ""
20906
20907 #. type: =item
20908 #: ../fuse/guestmount.pod:218
20909 msgid "B<-o allow_other>"
20910 msgstr ""
20911
20912 #. type: textblock
20913 #: ../fuse/guestmount.pod:220
20914 msgid "Allow other users to see the filesystem."
20915 msgstr ""
20916
20917 #. type: =item
20918 #: ../fuse/guestmount.pod:222
20919 msgid "B<-o attr_timeout=N>"
20920 msgstr ""
20921
20922 #. type: textblock
20923 #: ../fuse/guestmount.pod:224
20924 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20925 msgstr ""
20926
20927 #. type: =item
20928 #: ../fuse/guestmount.pod:226
20929 msgid "B<-o kernel_cache>"
20930 msgstr ""
20931
20932 #. type: textblock
20933 #: ../fuse/guestmount.pod:228
20934 msgid ""
20935 "Allow the kernel to cache files (reduces the number of reads that have to go "
20936 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20937 "afford the extra memory usage."
20938 msgstr ""
20939
20940 #. type: =item
20941 #: ../fuse/guestmount.pod:232
20942 msgid "B<-o uid=N> B<-o gid=N>"
20943 msgstr ""
20944
20945 #. type: textblock
20946 #: ../fuse/guestmount.pod:234
20947 msgid ""
20948 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20949 "the chosen values."
20950 msgstr ""
20951
20952 #. type: textblock
20953 #: ../fuse/guestmount.pod:243
20954 msgid ""
20955 "Add devices and mount everything read-only.  Also disallow writes and make "
20956 "the disk appear read-only to FUSE."
20957 msgstr ""
20958
20959 #. type: textblock
20960 #: ../fuse/guestmount.pod:246
20961 msgid ""
20962 "This is highly recommended if you are not going to edit the guest disk.  If "
20963 "the guest is running and this option is I<not> supplied, then there is a "
20964 "strong risk of disk corruption in the guest.  We try to prevent this from "
20965 "happening, but it is not always possible."
20966 msgstr ""
20967
20968 #. type: textblock
20969 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20970 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20971 msgstr ""
20972
20973 #. type: textblock
20974 #: ../fuse/guestmount.pod:255
20975 msgid "Enable SELinux support for the guest."
20976 msgstr ""
20977
20978 #. type: textblock
20979 #: ../fuse/guestmount.pod:261
20980 msgid "Enable verbose messages from underlying libguestfs."
20981 msgstr ""
20982
20983 #. type: textblock
20984 #: ../fuse/guestmount.pod:267
20985 msgid "Display the program version and exit."
20986 msgstr ""
20987
20988 #. type: textblock
20989 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20990 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
20991 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20992 msgstr ""
20993
20994 #. type: =item
20995 #: ../fuse/guestmount.pod:280
20996 msgid "B<--trace>"
20997 msgstr ""
20998
20999 #. type: textblock
21000 #: ../fuse/guestmount.pod:282
21001 msgid "Trace libguestfs calls and entry into each FUSE function."
21002 msgstr ""
21003
21004 #. type: textblock
21005 #: ../fuse/guestmount.pod:284
21006 msgid "This also stops the daemon from forking into the background."
21007 msgstr ""
21008
21009 #. type: textblock
21010 #: ../fuse/guestmount.pod:310
21011 msgid ""
21012 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21013 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21014 "net/>."
21015 msgstr ""
21016
21017 #. type: textblock
21018 #: ../fuse/guestmount.pod:325
21019 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21020 msgstr ""
21021
21022 #. type: textblock
21023 #: ../inspector/virt-inspector.pod:5
21024 msgid ""
21025 "virt-inspector - Display operating system version and other information "
21026 "about a virtual machine"
21027 msgstr ""
21028
21029 #. type: verbatim
21030 #: ../inspector/virt-inspector.pod:9
21031 #, no-wrap
21032 msgid ""
21033 " virt-inspector [--options] -d domname\n"
21034 "\n"
21035 msgstr ""
21036
21037 #. type: verbatim
21038 #: ../inspector/virt-inspector.pod:11
21039 #, no-wrap
21040 msgid ""
21041 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21042 "\n"
21043 msgstr ""
21044
21045 #. type: verbatim
21046 #: ../inspector/virt-inspector.pod:15
21047 #, no-wrap
21048 msgid ""
21049 " virt-inspector domname\n"
21050 "\n"
21051 msgstr ""
21052
21053 #. type: verbatim
21054 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21055 #, no-wrap
21056 msgid ""
21057 " virt-inspector disk.img [disk.img ...]\n"
21058 "\n"
21059 msgstr ""
21060
21061 #. type: textblock
21062 #: ../inspector/virt-inspector.pod:21
21063 msgid ""
21064 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21065 "determine the version of the operating system and other information about "
21066 "the virtual machine."
21067 msgstr ""
21068
21069 #. type: textblock
21070 #: ../inspector/virt-inspector.pod:25
21071 msgid "Virt-inspector produces XML output for feeding into other programs."
21072 msgstr ""
21073
21074 #. type: textblock
21075 #: ../inspector/virt-inspector.pod:27
21076 msgid ""
21077 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21078 "the libvirt domain (see: C<virsh list --all>)."
21079 msgstr ""
21080
21081 #. type: textblock
21082 #: ../inspector/virt-inspector.pod:30
21083 msgid ""
21084 "You can also run virt-inspector directly on disk images from a single "
21085 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
21086 "has several block devices, in which case you should list several I<-a> "
21087 "options one after another, with the first corresponding to the guest's C</"
21088 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
21089 msgstr ""
21090
21091 #. type: textblock
21092 #: ../inspector/virt-inspector.pod:37
21093 msgid ""
21094 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21095 "keys and similar."
21096 msgstr ""
21097
21098 #. type: textblock
21099 #: ../inspector/virt-inspector.pod:40
21100 msgid ""
21101 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
21102 "inspect several virtual machines, you have to run virt-inspector several "
21103 "times (for example, from a shell script for-loop)."
21104 msgstr ""
21105
21106 #. type: textblock
21107 #: ../inspector/virt-inspector.pod:45
21108 msgid ""
21109 "Because virt-inspector needs direct access to guest images, it won't "
21110 "normally work over remote libvirt connections."
21111 msgstr ""
21112
21113 #. type: textblock
21114 #: ../inspector/virt-inspector.pod:48
21115 msgid ""
21116 "All of the information available from virt-inspector is also available "
21117 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
21118 "The same information can also be fetched using guestfish or via libguestfs "
21119 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21120 "WITH OTHER PROGRAMMING LANGUAGES>)."
21121 msgstr ""
21122
21123 #. type: textblock
21124 #: ../inspector/virt-inspector.pod:81
21125 msgid ""
21126 "Libvirt is only used if you specify a C<domname> on the command line.  If "
21127 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21128 "at all."
21129 msgstr ""
21130
21131 #. type: textblock
21132 #: ../inspector/virt-inspector.pod:94
21133 msgid ""
21134 "When prompting for keys and passphrases, virt-inspector normally turns "
21135 "echoing off so you cannot see what you are typing.  If you are not worried "
21136 "about Tempest attacks and there is no one else in the room you can specify "
21137 "this flag to see what you are typing."
21138 msgstr ""
21139
21140 #. type: textblock
21141 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
21142 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
21143 #: ../tools/virt-win-reg.pl:144
21144 msgid ""
21145 "Specify the format of disk images given on the command line.  If this is "
21146 "omitted then the format is autodetected from the content of the disk image."
21147 msgstr ""
21148
21149 #. type: textblock
21150 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
21151 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
21152 #: ../tools/virt-win-reg.pl:148
21153 msgid ""
21154 "If disk images are requested from libvirt, then this program asks libvirt "
21155 "for this information.  In this case, the value of the format parameter is "
21156 "ignored."
21157 msgstr ""
21158
21159 #. type: textblock
21160 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
21161 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
21162 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
21163 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
21164 msgid ""
21165 "If working with untrusted raw-format guest disk images, you should ensure "
21166 "the format is always specified."
21167 msgstr ""
21168
21169 #. type: textblock
21170 #: ../inspector/virt-inspector.pod:139
21171 msgid "Previous versions of virt-inspector allowed you to write either:"
21172 msgstr ""
21173
21174 #. type: verbatim
21175 #: ../inspector/virt-inspector.pod:145
21176 #, no-wrap
21177 msgid ""
21178 " virt-inspector guestname\n"
21179 "\n"
21180 msgstr ""
21181
21182 #. type: =head1
21183 #: ../inspector/virt-inspector.pod:153
21184 msgid "XML FORMAT"
21185 msgstr ""
21186
21187 #. type: textblock
21188 #: ../inspector/virt-inspector.pod:155
21189 msgid ""
21190 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21191 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21192 "just an overview."
21193 msgstr ""
21194
21195 #. type: textblock
21196 #: ../inspector/virt-inspector.pod:159
21197 msgid ""
21198 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21199 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21200 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21201 "which is vanishingly rare in real world VMs."
21202 msgstr ""
21203
21204 #. type: =head2
21205 #: ../inspector/virt-inspector.pod:164
21206 msgid "E<lt>operatingsystemE<gt>"
21207 msgstr ""
21208
21209 #. type: textblock
21210 #: ../inspector/virt-inspector.pod:166
21211 msgid ""
21212 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21213 "describe the operating system, its architecture, the descriptive \"product "
21214 "name\" string, the type of OS and so on, as in this example:"
21215 msgstr ""
21216
21217 #. type: verbatim
21218 #: ../inspector/virt-inspector.pod:170
21219 #, no-wrap
21220 msgid ""
21221 " <operatingsystems>\n"
21222 "   <operatingsystem>\n"
21223 "     <root>/dev/sda2</root>\n"
21224 "     <name>windows</name>\n"
21225 "     <arch>i386</arch>\n"
21226 "     <distro>windows</distro>\n"
21227 "     <product_name>Windows 7 Enterprise</product_name>\n"
21228 "     <product_variant>Client</product_variant>\n"
21229 "     <major_version>6</major_version>\n"
21230 "     <minor_version>1</minor_version>\n"
21231 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21232 "     <format>installed</format>\n"
21233 "\n"
21234 msgstr ""
21235
21236 #. type: textblock
21237 #: ../inspector/virt-inspector.pod:183
21238 msgid ""
21239 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21240 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21241 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21242 "architecture.  The other fields are fairly self-explanatory, but because "
21243 "these fields are taken directly from the libguestfs inspection API you can "
21244 "find precise information from L<guestfs(3)/INSPECTION>."
21245 msgstr ""
21246
21247 #. type: textblock
21248 #: ../inspector/virt-inspector.pod:191
21249 msgid ""
21250 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21251 "of view of libguestfs (block devices may have completely different names "
21252 "inside the VM itself)."
21253 msgstr ""
21254
21255 #. type: =head2
21256 #: ../inspector/virt-inspector.pod:195
21257 msgid "E<lt>mountpointsE<gt>"
21258 msgstr ""
21259
21260 #. type: textblock
21261 #: ../inspector/virt-inspector.pod:197
21262 msgid ""
21263 "Un*x-like guests typically have multiple filesystems which are mounted at "
21264 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21265 "element which looks like this:"
21266 msgstr ""
21267
21268 #. type: verbatim
21269 #: ../inspector/virt-inspector.pod:201
21270 #, no-wrap
21271 msgid ""
21272 " <operatingsystems>\n"
21273 "   <operatingsystem>\n"
21274 "     ...\n"
21275 "     <mountpoints>\n"
21276 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21277 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21278 "     </mountpoints>\n"
21279 "\n"
21280 msgstr ""
21281
21282 #. type: textblock
21283 #: ../inspector/virt-inspector.pod:209
21284 msgid ""
21285 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21286 "and may have completely different names inside the guest.  Only mountable "
21287 "filesystems appear in this list, not things like swap devices."
21288 msgstr ""
21289
21290 #. type: =head2
21291 #: ../inspector/virt-inspector.pod:214
21292 msgid "E<lt>filesystemsE<gt>"
21293 msgstr ""
21294
21295 #. type: textblock
21296 #: ../inspector/virt-inspector.pod:216
21297 msgid ""
21298 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21299 "filesystems belonging to the guest, including swap and empty partitions.  "
21300 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21301 "this OS or shared with this OS and other OSes)."
21302 msgstr ""
21303
21304 #. type: textblock
21305 #: ../inspector/virt-inspector.pod:222
21306 msgid "You might see something like this:"
21307 msgstr ""
21308
21309 #. type: verbatim
21310 #: ../inspector/virt-inspector.pod:224
21311 #, no-wrap
21312 msgid ""
21313 " <operatingsystems>\n"
21314 "   <operatingsystem>\n"
21315 "     ...\n"
21316 "     <filesystems>\n"
21317 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21318 "         <type>ext4</type>\n"
21319 "         <label>Fedora-13-x86_64</label>\n"
21320 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21321 "       </filesystem>\n"
21322 "\n"
21323 msgstr ""
21324
21325 #. type: textblock
21326 #: ../inspector/virt-inspector.pod:234
21327 msgid ""
21328 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21329 "the label, and the UUID."
21330 msgstr ""
21331
21332 #. type: =head2
21333 #: ../inspector/virt-inspector.pod:237
21334 msgid "E<lt>applicationsE<gt>"
21335 msgstr ""
21336
21337 #. type: textblock
21338 #: ../inspector/virt-inspector.pod:239
21339 msgid ""
21340 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21341 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21342 "machine."
21343 msgstr ""
21344
21345 #. type: textblock
21346 #: ../inspector/virt-inspector.pod:243
21347 msgid ""
21348 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21349 "Typical values would be C<rpm> and C<deb>."
21350 msgstr ""
21351
21352 #. type: textblock
21353 #: ../inspector/virt-inspector.pod:246
21354 msgid ""
21355 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21356 "Typical values include C<yum>, C<up2date> and C<apt>"
21357 msgstr ""
21358
21359 #. type: textblock
21360 #: ../inspector/virt-inspector.pod:249
21361 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21362 msgstr ""
21363
21364 #. type: verbatim
21365 #: ../inspector/virt-inspector.pod:252
21366 #, no-wrap
21367 msgid ""
21368 " <operatingsystems>\n"
21369 "   <operatingsystem>\n"
21370 "     ...\n"
21371 "     <applications>\n"
21372 "       <application>\n"
21373 "         <name>coreutils</name>\n"
21374 "         <version>8.5</version>\n"
21375 "         <release>1</release>\n"
21376 "       </application>\n"
21377 "\n"
21378 msgstr ""
21379
21380 #. type: textblock
21381 #: ../inspector/virt-inspector.pod:262
21382 msgid ""
21383 "The version and release fields may not be available for some types guests.  "
21384 "Other fields are possible, see L<guestfs(3)/"
21385 "guestfs_inspect_list_applications>."
21386 msgstr ""
21387
21388 #. type: =head2
21389 #: ../inspector/virt-inspector.pod:266
21390 msgid "E<lt>drive_mappingsE<gt>"
21391 msgstr ""
21392
21393 #. type: textblock
21394 #: ../inspector/virt-inspector.pod:268
21395 msgid ""
21396 "For operating systems like Windows which use drive letters, virt-inspector "
21397 "is able to find out how drive letters map to filesystems."
21398 msgstr ""
21399
21400 #. type: verbatim
21401 #: ../inspector/virt-inspector.pod:272
21402 #, no-wrap
21403 msgid ""
21404 " <operatingsystems>\n"
21405 "   <operatingsystem>\n"
21406 "     ...\n"
21407 "     <drive_mappings>\n"
21408 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21409 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21410 "     </drive_mappings>\n"
21411 "\n"
21412 msgstr ""
21413
21414 #. type: textblock
21415 #: ../inspector/virt-inspector.pod:280
21416 msgid ""
21417 "In the example above, drive C maps to the filesystem on the second partition "
21418 "on the first disk, and drive E maps to the filesystem on the first partition "
21419 "on the second disk."
21420 msgstr ""
21421
21422 #. type: textblock
21423 #: ../inspector/virt-inspector.pod:284
21424 msgid ""
21425 "Note that this only covers permanent local filesystem mappings, not things "
21426 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21427 "here."
21428 msgstr ""
21429
21430 #. type: =head2
21431 #: ../inspector/virt-inspector.pod:288
21432 msgid "E<lt>iconE<gt>"
21433 msgstr ""
21434
21435 #. type: textblock
21436 #: ../inspector/virt-inspector.pod:290
21437 msgid ""
21438 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21439 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21440 "very large and high quality."
21441 msgstr ""
21442
21443 #. type: verbatim
21444 #: ../inspector/virt-inspector.pod:294
21445 #, no-wrap
21446 msgid ""
21447 " <operatingsystems>\n"
21448 "   <operatingsystem>\n"
21449 "     ...\n"
21450 "     <icon>\n"
21451 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21452 "       [... many lines of base64 data ...]\n"
21453 "     </icon>\n"
21454 "\n"
21455 msgstr ""
21456
21457 #. type: textblock
21458 #: ../inspector/virt-inspector.pod:302
21459 msgid ""
21460 "To display the icon, you have to extract it and convert the base64 data back "
21461 "to a binary file.  Use an XPath query or simply an editor to extract the "
21462 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21463 "to a PNG file:"
21464 msgstr ""
21465
21466 #. type: verbatim
21467 #: ../inspector/virt-inspector.pod:307
21468 #, no-wrap
21469 msgid ""
21470 " base64 -i -d < icon.data > icon.png\n"
21471 "\n"
21472 msgstr ""
21473
21474 #. type: =head2
21475 #: ../inspector/virt-inspector.pod:309
21476 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../inspector/virt-inspector.pod:311
21481 msgid ""
21482 "Virt-inspector can detect some operating system installers on install disks, "
21483 "live CDs, bootable USB keys and more."
21484 msgstr ""
21485
21486 #. type: textblock
21487 #: ../inspector/virt-inspector.pod:314
21488 msgid ""
21489 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21490 "fields may be present to indicate a live CD, network installer, or one part "
21491 "of a multipart CD.  For example:"
21492 msgstr ""
21493
21494 #. type: verbatim
21495 #: ../inspector/virt-inspector.pod:318
21496 #, no-wrap
21497 msgid ""
21498 " <operatingsystems>\n"
21499 "   <operatingsystem>\n"
21500 "     <root>/dev/sda</root>\n"
21501 "     <name>linux</name>\n"
21502 "     <arch>i386</arch>\n"
21503 "     <distro>ubuntu</distro>\n"
21504 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
21505 "     <major_version>10</major_version>\n"
21506 "     <minor_version>10</minor_version>\n"
21507 "     <format>installer</format>\n"
21508 "     <live/>\n"
21509 "\n"
21510 msgstr ""
21511
21512 #. type: =head1
21513 #: ../inspector/virt-inspector.pod:330
21514 msgid "USING XPATH"
21515 msgstr ""
21516
21517 #. type: textblock
21518 #: ../inspector/virt-inspector.pod:332
21519 msgid ""
21520 "You can use the XPath query language to select parts of the XML.  We "
21521 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21522 msgstr ""
21523
21524 #. type: verbatim
21525 #: ../inspector/virt-inspector.pod:338
21526 #, no-wrap
21527 msgid ""
21528 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21529 " <filesystems>\n"
21530 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21531 "        <type>ext4</type>\n"
21532 " [...]\n"
21533 "\n"
21534 msgstr ""
21535
21536 #. type: verbatim
21537 #: ../inspector/virt-inspector.pod:344
21538 #, no-wrap
21539 msgid ""
21540 " $ virt-inspector -d Guest | \\\n"
21541 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21542 " ext4\n"
21543 "\n"
21544 msgstr ""
21545
21546 #. type: verbatim
21547 #: ../inspector/virt-inspector.pod:348
21548 #, no-wrap
21549 msgid ""
21550 " $ virt-inspector -d Guest | \\\n"
21551 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21552 " [displays the guest icon, if there is one]\n"
21553 "\n"
21554 msgstr ""
21555
21556 #. type: =head1
21557 #: ../inspector/virt-inspector.pod:359
21558 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21559 msgstr ""
21560
21561 #. type: textblock
21562 #: ../inspector/virt-inspector.pod:361
21563 msgid ""
21564 "Early versions of libguestfs shipped with a different virt-inspector program "
21565 "written in Perl (the current version is written in C).  The XML output of "
21566 "the Perl virt-inspector was different and it could also output in other "
21567 "formats like text."
21568 msgstr ""
21569
21570 #. type: textblock
21571 #: ../inspector/virt-inspector.pod:366
21572 msgid ""
21573 "The old virt-inspector is no longer supported or shipped with libguestfs."
21574 msgstr ""
21575
21576 #. type: textblock
21577 #: ../inspector/virt-inspector.pod:369
21578 msgid ""
21579 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21580 "versions of virt-inspector with different names:"
21581 msgstr ""
21582
21583 #. type: verbatim
21584 #: ../inspector/virt-inspector.pod:372
21585 #, no-wrap
21586 msgid ""
21587 " virt-inspector     Old Perl version.\n"
21588 " virt-inspector2    New C version.\n"
21589 "\n"
21590 msgstr ""
21591
21592 #. type: textblock
21593 #: ../inspector/virt-inspector.pod:382
21594 msgid ""
21595 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21596 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21597 msgstr ""
21598
21599 #. type: textblock
21600 #: ../inspector/virt-inspector.pod:399
21601 msgid "Matthew Booth L<mbooth@redhat.com>"
21602 msgstr ""
21603
21604 #. type: textblock
21605 #: ../java/examples/guestfs-java.pod:5
21606 msgid "guestfs-java - How to use libguestfs from Java"
21607 msgstr ""
21608
21609 #. type: verbatim
21610 #: ../java/examples/guestfs-java.pod:9
21611 #, no-wrap
21612 msgid ""
21613 " import com.redhat.et.libguestfs.*;\n"
21614 " \n"
21615 msgstr ""
21616
21617 #. type: verbatim
21618 #: ../java/examples/guestfs-java.pod:11
21619 #, no-wrap
21620 msgid ""
21621 " GuestFS g = new GuestFS ();\n"
21622 " g.add_drive_opts (\"disk.img\", null);\n"
21623 " g.launch ();\n"
21624 "\n"
21625 msgstr ""
21626
21627 #. type: textblock
21628 #: ../java/examples/guestfs-java.pod:17
21629 msgid ""
21630 "This manual page documents how to call libguestfs from the Java programming "
21631 "language.  This page just documents the differences from the C API and gives "
21632 "some examples.  If you are not familiar with using libguestfs, you also need "
21633 "to read L<guestfs(3)>."
21634 msgstr ""
21635
21636 #. type: =head2
21637 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21638 msgid "CLOSING THE HANDLE"
21639 msgstr ""
21640
21641 #. type: textblock
21642 #: ../java/examples/guestfs-java.pod:24
21643 msgid ""
21644 "The handle is closed when it is reaped by the garbage collector.  Because "
21645 "libguestfs handles include a lot of state, it is also possible to close (and "
21646 "hence free) them explicitly by calling the C<close> method."
21647 msgstr ""
21648
21649 #. type: =head2
21650 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21651 #: ../python/examples/guestfs-python.pod:21
21652 #: ../ruby/examples/guestfs-ruby.pod:22
21653 msgid "EXCEPTIONS"
21654 msgstr ""
21655
21656 #. type: textblock
21657 #: ../java/examples/guestfs-java.pod:31
21658 msgid ""
21659 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21660 "exception.  This has a single parameter which is the error message (a "
21661 "C<String>)."
21662 msgstr ""
21663
21664 #. type: textblock
21665 #: ../java/examples/guestfs-java.pod:35
21666 msgid "Calling any method on a closed handle raises the same exception."
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../java/examples/guestfs-java.pod:47
21671 msgid ""
21672 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
21673 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21674 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21675 msgstr ""
21676
21677 #. type: textblock
21678 #: ../ocaml/examples/guestfs-ocaml.pod:5
21679 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21680 msgstr ""
21681
21682 #. type: textblock
21683 #: ../ocaml/examples/guestfs-ocaml.pod:9
21684 msgid "Module style:"
21685 msgstr ""
21686
21687 #. type: verbatim
21688 #: ../ocaml/examples/guestfs-ocaml.pod:11
21689 #, no-wrap
21690 msgid ""
21691 " let g = Guestfs.create () in\n"
21692 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21693 " Guestfs.launch g;\n"
21694 "\n"
21695 msgstr ""
21696
21697 #. type: textblock
21698 #: ../ocaml/examples/guestfs-ocaml.pod:15
21699 msgid "Object-oriented style:"
21700 msgstr ""
21701
21702 #. type: verbatim
21703 #: ../ocaml/examples/guestfs-ocaml.pod:17
21704 #, no-wrap
21705 msgid ""
21706 " let g = new Guestfs.guestfs () in\n"
21707 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21708 " g#launch ();\n"
21709 "\n"
21710 msgstr ""
21711
21712 #. type: verbatim
21713 #: ../ocaml/examples/guestfs-ocaml.pod:21
21714 #, no-wrap
21715 msgid ""
21716 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21717 "or:\n"
21718 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21719 "\n"
21720 msgstr ""
21721
21722 #. type: textblock
21723 #: ../ocaml/examples/guestfs-ocaml.pod:27
21724 msgid ""
21725 "This manual page documents how to call libguestfs from the OCaml programming "
21726 "language.  This page just documents the differences from the C API and gives "
21727 "some examples.  If you are not familiar with using libguestfs, you also need "
21728 "to read L<guestfs(3)>."
21729 msgstr ""
21730
21731 #. type: =head2
21732 #: ../ocaml/examples/guestfs-ocaml.pod:32
21733 msgid "PROGRAMMING STYLES"
21734 msgstr ""
21735
21736 #. type: textblock
21737 #: ../ocaml/examples/guestfs-ocaml.pod:34
21738 msgid ""
21739 "There are two different programming styles supported by the OCaml bindings.  "
21740 "You can use a module style, with each C function mapped to an OCaml function:"
21741 msgstr ""
21742
21743 #. type: verbatim
21744 #: ../ocaml/examples/guestfs-ocaml.pod:38
21745 #, no-wrap
21746 msgid ""
21747 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21748 "\n"
21749 msgstr ""
21750
21751 #. type: textblock
21752 #: ../ocaml/examples/guestfs-ocaml.pod:40
21753 msgid "becomes:"
21754 msgstr ""
21755
21756 #. type: verbatim
21757 #: ../ocaml/examples/guestfs-ocaml.pod:42
21758 #, no-wrap
21759 msgid ""
21760 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21761 "\n"
21762 msgstr ""
21763
21764 #. type: textblock
21765 #: ../ocaml/examples/guestfs-ocaml.pod:44
21766 msgid ""
21767 "Alternately you can use an object-oriented style, calling methods on the "
21768 "class C<Guestfs.guestfs>:"
21769 msgstr ""
21770
21771 #. type: verbatim
21772 #: ../ocaml/examples/guestfs-ocaml.pod:47
21773 #, no-wrap
21774 msgid ""
21775 " method set_verbose : bool -> unit\n"
21776 "\n"
21777 msgstr ""
21778
21779 #. type: textblock
21780 #: ../ocaml/examples/guestfs-ocaml.pod:49
21781 msgid ""
21782 "The object-oriented style is usually briefer, and the minor performance "
21783 "penalty isn't noticable in the general overhead of performing libguestfs "
21784 "functions."
21785 msgstr ""
21786
21787 #. type: textblock
21788 #: ../ocaml/examples/guestfs-ocaml.pod:55
21789 msgid ""
21790 "The handle is closed when it is reaped by the garbage collector.  Because "
21791 "libguestfs handles include a lot of state, it is also possible to close (and "
21792 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21793 "method."
21794 msgstr ""
21795
21796 #. type: textblock
21797 #: ../ocaml/examples/guestfs-ocaml.pod:62
21798 msgid ""
21799 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21800 "exception.  This has a single parameter which is the error message (a "
21801 "string)."
21802 msgstr ""
21803
21804 #. type: textblock
21805 #: ../ocaml/examples/guestfs-ocaml.pod:66
21806 msgid ""
21807 "Calling any function/method on a closed handle raises C<Guestfs."
21808 "Handle_closed>.  The single parameter is the name of the function that you "
21809 "called."
21810 msgstr ""
21811
21812 #. type: textblock
21813 #: ../ocaml/examples/guestfs-ocaml.pod:80
21814 msgid ""
21815 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21816 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21817 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21818 msgstr ""
21819
21820 #. type: textblock
21821 #: ../perl/examples/guestfs-perl.pod:5
21822 msgid "guestfs-perl - How to use libguestfs from Perl"
21823 msgstr ""
21824
21825 #. type: verbatim
21826 #: ../perl/examples/guestfs-perl.pod:9
21827 #, no-wrap
21828 msgid ""
21829 " use Sys::Guestfs;\n"
21830 " \n"
21831 msgstr ""
21832
21833 #. type: verbatim
21834 #: ../perl/examples/guestfs-perl.pod:11
21835 #, no-wrap
21836 msgid ""
21837 " my $h = Sys::Guestfs->new ();\n"
21838 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21839 " $h->launch ();\n"
21840 " $h->mount_options ('', '/dev/sda1', '/');\n"
21841 " $h->touch ('/hello');\n"
21842 " $h->sync ();\n"
21843 "\n"
21844 msgstr ""
21845
21846 #. type: textblock
21847 #: ../perl/examples/guestfs-perl.pod:20
21848 msgid ""
21849 "This manual page documents how to call libguestfs from the Perl programming "
21850 "language.  This page just documents the differences from the C API and gives "
21851 "some examples.  If you are not familiar with using libguestfs, you also need "
21852 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21853 msgstr ""
21854
21855 #. type: =head2
21856 #: ../perl/examples/guestfs-perl.pod:26
21857 msgid "ERRORS"
21858 msgstr ""
21859
21860 #. type: textblock
21861 #: ../perl/examples/guestfs-perl.pod:28
21862 msgid ""
21863 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21864 ">)."
21865 msgstr ""
21866
21867 #. type: textblock
21868 #: ../perl/examples/guestfs-perl.pod:41
21869 msgid ""
21870 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
21871 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
21872 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21873 msgstr ""
21874
21875 #. type: textblock
21876 #: ../python/examples/guestfs-python.pod:5
21877 msgid "guestfs-python - How to use libguestfs from Python"
21878 msgstr ""
21879
21880 #. type: verbatim
21881 #: ../python/examples/guestfs-python.pod:9
21882 #, no-wrap
21883 msgid ""
21884 " import guestfs\n"
21885 " g = guestfs.GuestFS ()\n"
21886 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21887 " g.launch\n"
21888 "\n"
21889 msgstr ""
21890
21891 #. type: textblock
21892 #: ../python/examples/guestfs-python.pod:16
21893 msgid ""
21894 "This manual page documents how to call libguestfs from the Python "
21895 "programming language.  This page just documents the differences from the C "
21896 "API and gives some examples.  If you are not familiar with using libguestfs, "
21897 "you also need to read L<guestfs(3)>."
21898 msgstr ""
21899
21900 #. type: textblock
21901 #: ../python/examples/guestfs-python.pod:23
21902 msgid ""
21903 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21904 "single string argument which is the error message."
21905 msgstr ""
21906
21907 #. type: =head2
21908 #: ../python/examples/guestfs-python.pod:26
21909 msgid "MORE DOCUMENTATION"
21910 msgstr ""
21911
21912 #. type: textblock
21913 #: ../python/examples/guestfs-python.pod:28
21914 msgid "Type:"
21915 msgstr ""
21916
21917 #. type: verbatim
21918 #: ../python/examples/guestfs-python.pod:30
21919 #, no-wrap
21920 msgid ""
21921 " $ python\n"
21922 " >>> import guestfs\n"
21923 " >>> help (guestfs)\n"
21924 "\n"
21925 msgstr ""
21926
21927 #. type: textblock
21928 #: ../python/examples/guestfs-python.pod:44
21929 msgid ""
21930 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21931 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
21932 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21933 msgstr ""
21934
21935 #. type: textblock
21936 #: ../rescue/virt-rescue.pod:5
21937 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21938 msgstr ""
21939
21940 #. type: verbatim
21941 #: ../rescue/virt-rescue.pod:9
21942 #, no-wrap
21943 msgid ""
21944 " virt-rescue [--options] -d domname\n"
21945 "\n"
21946 msgstr ""
21947
21948 #. type: verbatim
21949 #: ../rescue/virt-rescue.pod:11
21950 #, no-wrap
21951 msgid ""
21952 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21953 "\n"
21954 msgstr ""
21955
21956 #. type: verbatim
21957 #: ../rescue/virt-rescue.pod:15
21958 #, no-wrap
21959 msgid ""
21960 " virt-rescue [--options] domname\n"
21961 "\n"
21962 msgstr ""
21963
21964 #. type: verbatim
21965 #: ../rescue/virt-rescue.pod:17
21966 #, no-wrap
21967 msgid ""
21968 " virt-rescue [--options] disk.img [disk.img ...]\n"
21969 "\n"
21970 msgstr ""
21971
21972 #. type: textblock
21973 #: ../rescue/virt-rescue.pod:21
21974 msgid ""
21975 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21976 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21977 "you from doing this, but doesn't catch all cases."
21978 msgstr ""
21979
21980 #. type: textblock
21981 #: ../rescue/virt-rescue.pod:25
21982 msgid ""
21983 "However if you use the I<--ro> (read only) option, then you can attach a "
21984 "shell to a live virtual machine.  The results might be strange or "
21985 "inconsistent at times but you won't get disk corruption."
21986 msgstr ""
21987
21988 #. type: textblock
21989 #: ../rescue/virt-rescue.pod:31
21990 msgid ""
21991 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21992 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21993 "recovery tools which you can use to examine or rescue a virtual machine or "
21994 "disk image."
21995 msgstr ""
21996
21997 #. type: textblock
21998 #: ../rescue/virt-rescue.pod:36
21999 msgid ""
22000 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22001 "on disk image(s):"
22002 msgstr ""
22003
22004 #. type: verbatim
22005 #: ../rescue/virt-rescue.pod:39
22006 #, no-wrap
22007 msgid ""
22008 " virt-rescue -d GuestName\n"
22009 "\n"
22010 msgstr ""
22011
22012 #. type: verbatim
22013 #: ../rescue/virt-rescue.pod:41
22014 #, no-wrap
22015 msgid ""
22016 " virt-rescue --ro -a /path/to/disk.img\n"
22017 "\n"
22018 msgstr ""
22019
22020 #. type: verbatim
22021 #: ../rescue/virt-rescue.pod:43
22022 #, no-wrap
22023 msgid ""
22024 " virt-rescue -a /dev/sdc\n"
22025 "\n"
22026 msgstr ""
22027
22028 #. type: textblock
22029 #: ../rescue/virt-rescue.pod:45
22030 msgid "For live VMs you I<must> use the --ro option."
22031 msgstr ""
22032
22033 #. type: textblock
22034 #: ../rescue/virt-rescue.pod:47
22035 msgid ""
22036 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22037 "in an interactive bash shell where you can use many ordinary Linux "
22038 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22039 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22040 "is an empty directory called C</sysroot> where you can mount filesystems."
22041 msgstr ""
22042
22043 #. type: textblock
22044 #: ../rescue/virt-rescue.pod:54
22045 msgid ""
22046 "In the example below, we list logical volumes, then choose one to mount "
22047 "under C</sysroot>:"
22048 msgstr ""
22049
22050 #. type: verbatim
22051 #: ../rescue/virt-rescue.pod:57
22052 #, no-wrap
22053 msgid ""
22054 " ><rescue> lvs\n"
22055 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22056 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22057 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22058 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22059 " ><rescue> ls /sysroot\n"
22060 "\n"
22061 msgstr ""
22062
22063 #. type: textblock
22064 #: ../rescue/virt-rescue.pod:64
22065 msgid ""
22066 "If you don't know what filesystems are available on the virtual machine then "
22067 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22068 msgstr ""
22069
22070 #. type: textblock
22071 #: ../rescue/virt-rescue.pod:70
22072 msgid ""
22073 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22074 "virtual machine.  For example you can use it on a blank file if you want to "
22075 "partition that file (although we would recommend using L<guestfish(1)> "
22076 "instead as it is more suitable for this purpose).  You can even use virt-"
22077 "rescue on things like SD cards."
22078 msgstr ""
22079
22080 #. type: textblock
22081 #: ../rescue/virt-rescue.pod:76
22082 msgid ""
22083 "Virt-rescue does not require root.  You only need to run it as root if you "
22084 "need root to open the disk image."
22085 msgstr ""
22086
22087 #. type: textblock
22088 #: ../rescue/virt-rescue.pod:79
22089 msgid ""
22090 "This tool is just designed for quick interactive hacking on a virtual "
22091 "machine.  For more structured access to a virtual machine disk image, you "
22092 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22093 "make scripted changes to guests, use L<guestfish(1)>."
22094 msgstr ""
22095
22096 #. type: =item
22097 #: ../rescue/virt-rescue.pod:103
22098 msgid "B<--append kernelopts>"
22099 msgstr ""
22100
22101 #. type: textblock
22102 #: ../rescue/virt-rescue.pod:105
22103 msgid "Pass additional options to the rescue kernel."
22104 msgstr ""
22105
22106 #. type: verbatim
22107 #: ../rescue/virt-rescue.pod:135
22108 #, no-wrap
22109 msgid ""
22110 " virt-rescue --format=raw -a disk.img\n"
22111 "\n"
22112 msgstr ""
22113
22114 #. type: verbatim
22115 #: ../rescue/virt-rescue.pod:139
22116 #, no-wrap
22117 msgid ""
22118 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22119 "\n"
22120 msgstr ""
22121
22122 #. type: =item
22123 #: ../rescue/virt-rescue.pod:148
22124 msgid "B<-m MB>"
22125 msgstr ""
22126
22127 #. type: =item
22128 #: ../rescue/virt-rescue.pod:150
22129 msgid "B<--memsize MB>"
22130 msgstr ""
22131
22132 #. type: textblock
22133 #: ../rescue/virt-rescue.pod:152
22134 msgid ""
22135 "Change the amount of memory allocated to the rescue system.  The default is "
22136 "set by libguestfs and is small but adequate for running system tools.  The "
22137 "occasional program might need more memory.  The parameter is specified in "
22138 "megabytes."
22139 msgstr ""
22140
22141 #. type: =item
22142 #: ../rescue/virt-rescue.pod:157
22143 msgid "B<--network>"
22144 msgstr ""
22145
22146 #. type: textblock
22147 #: ../rescue/virt-rescue.pod:159
22148 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22149 msgstr ""
22150
22151 #. type: textblock
22152 #: ../rescue/virt-rescue.pod:165
22153 msgid "Open the image read-only."
22154 msgstr ""
22155
22156 #. type: textblock
22157 #: ../rescue/virt-rescue.pod:175
22158 msgid ""
22159 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
22160 "SELINUX> before using this option."
22161 msgstr ""
22162
22163 #. type: =item
22164 #: ../rescue/virt-rescue.pod:178
22165 msgid "B<--smp> N"
22166 msgstr ""
22167
22168 #. type: textblock
22169 #: ../rescue/virt-rescue.pod:180
22170 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22171 msgstr ""
22172
22173 #. type: textblock
22174 #: ../rescue/virt-rescue.pod:198
22175 msgid ""
22176 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22177 "are done read-write."
22178 msgstr ""
22179
22180 #. type: textblock
22181 #: ../rescue/virt-rescue.pod:211
22182 msgid "Previous versions of virt-rescue allowed you to write either:"
22183 msgstr ""
22184
22185 #. type: verbatim
22186 #: ../rescue/virt-rescue.pod:213
22187 #, no-wrap
22188 msgid ""
22189 " virt-rescue disk.img [disk.img ...]\n"
22190 "\n"
22191 msgstr ""
22192
22193 #. type: verbatim
22194 #: ../rescue/virt-rescue.pod:217
22195 #, no-wrap
22196 msgid ""
22197 " virt-rescue guestname\n"
22198 "\n"
22199 msgstr ""
22200
22201 #. type: =head1
22202 #: ../rescue/virt-rescue.pod:225
22203 msgid "NETWORK"
22204 msgstr ""
22205
22206 #. type: textblock
22207 #: ../rescue/virt-rescue.pod:227
22208 msgid ""
22209 "Adding the I<--network> option enables QEMU user networking in the rescue "
22210 "appliance.  There are some differences between user networking and ordinary "
22211 "networking:"
22212 msgstr ""
22213
22214 #. type: =item
22215 #: ../rescue/virt-rescue.pod:233
22216 msgid "ping does not work"
22217 msgstr ""
22218
22219 #. type: textblock
22220 #: ../rescue/virt-rescue.pod:235
22221 msgid ""
22222 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22223 "send the ping packets, and because virt-rescue must be able to run as non-"
22224 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22225 "The ping command will appear to resolve addresses but will not be able to "
22226 "send or receive any packets.  This does not mean that the network is not "
22227 "working."
22228 msgstr ""
22229
22230 #. type: =item
22231 #: ../rescue/virt-rescue.pod:242
22232 msgid "cannot receive connections"
22233 msgstr ""
22234
22235 #. type: textblock
22236 #: ../rescue/virt-rescue.pod:244
22237 msgid "QEMU user networking cannot receive incoming connections."
22238 msgstr ""
22239
22240 #. type: =item
22241 #: ../rescue/virt-rescue.pod:246
22242 msgid "making TCP connections"
22243 msgstr ""
22244
22245 #. type: textblock
22246 #: ../rescue/virt-rescue.pod:248
22247 msgid ""
22248 "The virt-rescue appliance needs to be small and so does not include many "
22249 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22250 "make TCP connections from the shell using the magical C</dev/tcp/"
22251 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22252 msgstr ""
22253
22254 #. type: verbatim
22255 #: ../rescue/virt-rescue.pod:253
22256 #, no-wrap
22257 msgid ""
22258 " exec 3<>/dev/tcp/redhat.com/80\n"
22259 " echo \"GET /\" >&3\n"
22260 " cat <&3\n"
22261 "\n"
22262 msgstr ""
22263
22264 #. type: textblock
22265 #: ../rescue/virt-rescue.pod:257
22266 msgid "See L<bash(1)> for more details."
22267 msgstr ""
22268
22269 #. type: textblock
22270 #: ../rescue/virt-rescue.pod:263
22271 msgid ""
22272 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22273 "ENVIRONMENT VARIABLES> for the complete list."
22274 msgstr ""
22275
22276 #. type: textblock
22277 #: ../rescue/virt-rescue.pod:290
22278 msgid ""
22279 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22280 "libguestfs.org/>."
22281 msgstr ""
22282
22283 #. type: textblock
22284 #: ../resize/virt-resize.pod:5
22285 msgid "virt-resize - Resize a virtual machine disk"
22286 msgstr ""
22287
22288 #. type: verbatim
22289 #: ../resize/virt-resize.pod:9
22290 #, no-wrap
22291 msgid ""
22292 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22293 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22294 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22295 "\n"
22296 msgstr ""
22297
22298 #. type: textblock
22299 #: ../resize/virt-resize.pod:15
22300 msgid ""
22301 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22302 "larger or smaller overall, and resizing or deleting any partitions contained "
22303 "within."
22304 msgstr ""
22305
22306 #. type: textblock
22307 #: ../resize/virt-resize.pod:19
22308 msgid ""
22309 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22310 "not> be used on live virtual machines - for consistent results, shut the "
22311 "virtual machine down before resizing it."
22312 msgstr ""
22313
22314 #. type: textblock
22315 #: ../resize/virt-resize.pod:23
22316 msgid ""
22317 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22318 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22319 msgstr ""
22320
22321 #. type: =item
22322 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
22323 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
22324 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
22325 msgid "1."
22326 msgstr ""
22327
22328 #. type: textblock
22329 #: ../resize/virt-resize.pod:33
22330 msgid ""
22331 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22332 "fill the extra 5GB of space."
22333 msgstr ""
22334
22335 #. type: verbatim
22336 #: ../resize/virt-resize.pod:36
22337 #, no-wrap
22338 msgid ""
22339 " virt-filesystems --long -h --all -a olddisk\n"
22340 " \n"
22341 msgstr ""
22342
22343 #. type: verbatim
22344 #: ../resize/virt-resize.pod:38
22345 #, no-wrap
22346 msgid ""
22347 " truncate -r olddisk newdisk\n"
22348 " truncate -s +5G newdisk\n"
22349 " \n"
22350 msgstr ""
22351
22352 #. type: verbatim
22353 #: ../resize/virt-resize.pod:41
22354 #, no-wrap
22355 msgid ""
22356 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22357 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22358 "\n"
22359 msgstr ""
22360
22361 #. type: =item
22362 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
22363 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
22364 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
22365 msgid "2."
22366 msgstr ""
22367
22368 #. type: textblock
22369 #: ../resize/virt-resize.pod:46
22370 msgid ""
22371 "As above, but make the /boot partition 200MB bigger, while giving the "
22372 "remaining space to /dev/sda2:"
22373 msgstr ""
22374
22375 #. type: verbatim
22376 #: ../resize/virt-resize.pod:49
22377 #, no-wrap
22378 msgid ""
22379 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22380 "   olddisk newdisk\n"
22381 "\n"
22382 msgstr ""
22383
22384 #. type: =item
22385 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
22386 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
22387 #: ../src/guestfs.pod:1436
22388 msgid "3."
22389 msgstr ""
22390
22391 #. type: textblock
22392 #: ../resize/virt-resize.pod:54
22393 msgid ""
22394 "As in the first example, but expand a logical volume as the final step.  "
22395 "This is what you would typically use for Linux guests that use LVM:"
22396 msgstr ""
22397
22398 #. type: verbatim
22399 #: ../resize/virt-resize.pod:58
22400 #, no-wrap
22401 msgid ""
22402 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22403 "   olddisk newdisk\n"
22404 "\n"
22405 msgstr ""
22406
22407 #. type: =item
22408 #: ../resize/virt-resize.pod:61
22409 msgid "4."
22410 msgstr ""
22411
22412 #. type: textblock
22413 #: ../resize/virt-resize.pod:63
22414 msgid ""
22415 "As in the first example, but the output format will be qcow2 instead of a "
22416 "raw disk:"
22417 msgstr ""
22418
22419 #. type: verbatim
22420 #: ../resize/virt-resize.pod:66
22421 #, no-wrap
22422 msgid ""
22423 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22424 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22425 "\n"
22426 msgstr ""
22427
22428 #. type: =head1
22429 #: ../resize/virt-resize.pod:71
22430 msgid "DETAILED USAGE"
22431 msgstr ""
22432
22433 #. type: =head2
22434 #: ../resize/virt-resize.pod:73
22435 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22436 msgstr ""
22437
22438 #. type: =item
22439 #: ../resize/virt-resize.pod:77
22440 msgid "1. Shut down the virtual machine"
22441 msgstr ""
22442
22443 #. type: =item
22444 #: ../resize/virt-resize.pod:79
22445 msgid "2. Locate input disk image"
22446 msgstr ""
22447
22448 #. type: textblock
22449 #: ../resize/virt-resize.pod:81
22450 msgid ""
22451 "Locate the input disk image (ie. the file or device on the host containing "
22452 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22453 "dumpxml> like this to find the disk image name:"
22454 msgstr ""
22455
22456 #. type: verbatim
22457 #: ../resize/virt-resize.pod:85
22458 #, no-wrap
22459 msgid ""
22460 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22461 " Found 1 nodes:\n"
22462 " -- NODE --\n"
22463 " <source dev=\"/dev/vg/lv_guest\" />\n"
22464 "\n"
22465 msgstr ""
22466
22467 #. type: =item
22468 #: ../resize/virt-resize.pod:90
22469 msgid "3. Look at current sizing"
22470 msgstr ""
22471
22472 #. type: textblock
22473 #: ../resize/virt-resize.pod:92
22474 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22475 msgstr ""
22476
22477 #. type: verbatim
22478 #: ../resize/virt-resize.pod:95
22479 #, no-wrap
22480 msgid ""
22481 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22482 " Name       Type       Size  Parent\n"
22483 " /dev/sda1  partition  101M  /dev/sda\n"
22484 " /dev/sda2  partition  7.9G  /dev/sda\n"
22485 " /dev/sda   device     8.0G  -\n"
22486 "\n"
22487 msgstr ""
22488
22489 #. type: textblock
22490 #: ../resize/virt-resize.pod:101
22491 msgid ""
22492 "(This example is a virtual machine with an 8 GB disk which we would like to "
22493 "expand up to 10 GB)."
22494 msgstr ""
22495
22496 #. type: =item
22497 #: ../resize/virt-resize.pod:104
22498 msgid "4. Create output disk"
22499 msgstr ""
22500
22501 #. type: textblock
22502 #: ../resize/virt-resize.pod:106
22503 msgid ""
22504 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22505 "to store the resized output disk."
22506 msgstr ""
22507
22508 #. type: textblock
22509 #: ../resize/virt-resize.pod:109
22510 msgid ""
22511 "To store the resized disk image in a file, create a file of a suitable size:"
22512 msgstr ""
22513
22514 #. type: verbatim
22515 #: ../resize/virt-resize.pod:112
22516 #, no-wrap
22517 msgid ""
22518 " # rm -f outdisk\n"
22519 " # truncate -s 10G outdisk\n"
22520 "\n"
22521 msgstr ""
22522
22523 #. type: textblock
22524 #: ../resize/virt-resize.pod:115
22525 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22526 msgstr ""
22527
22528 #. type: verbatim
22529 #: ../resize/virt-resize.pod:117
22530 #, no-wrap
22531 msgid ""
22532 " # lvcreate -L 10G -n lv_name vg_name\n"
22533 "\n"
22534 msgstr ""
22535
22536 #. type: textblock
22537 #: ../resize/virt-resize.pod:119
22538 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22539 msgstr ""
22540
22541 #. type: verbatim
22542 #: ../resize/virt-resize.pod:121
22543 #, no-wrap
22544 msgid ""
22545 " # virsh pool-list\n"
22546 " # virsh vol-create-as poolname newvol 10G\n"
22547 "\n"
22548 msgstr ""
22549
22550 #. type: =item
22551 #: ../resize/virt-resize.pod:124
22552 msgid "5. Resize"
22553 msgstr ""
22554
22555 #. type: textblock
22556 #: ../resize/virt-resize.pod:126
22557 msgid ""
22558 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22559 "file) and the output disk.  The output disk is the one created in the "
22560 "previous step."
22561 msgstr ""
22562
22563 #. type: verbatim
22564 #: ../resize/virt-resize.pod:130
22565 #, no-wrap
22566 msgid ""
22567 " # virt-resize indisk outdisk\n"
22568 "\n"
22569 msgstr ""
22570
22571 #. type: textblock
22572 #: ../resize/virt-resize.pod:132
22573 msgid ""
22574 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22575 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22576 "larger, then an extra, empty partition is created at the end of the disk "
22577 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22578 "error."
22579 msgstr ""
22580
22581 #. type: textblock
22582 #: ../resize/virt-resize.pod:138
22583 msgid ""
22584 "More realistically you'd want to expand existing partitions in the disk "
22585 "image by passing extra options (for the full list see the L</OPTIONS> "
22586 "section below)."
22587 msgstr ""
22588
22589 #. type: textblock
22590 #: ../resize/virt-resize.pod:142
22591 msgid ""
22592 "L</--expand> is the most useful option.  It expands the named partition "
22593 "within the disk to fill any extra space:"
22594 msgstr ""
22595
22596 #. type: verbatim
22597 #: ../resize/virt-resize.pod:145
22598 #, no-wrap
22599 msgid ""
22600 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22601 "\n"
22602 msgstr ""
22603
22604 #. type: textblock
22605 #: ../resize/virt-resize.pod:147
22606 msgid ""
22607 "(In this case, an extra partition is I<not> created at the end of the disk, "
22608 "because there will be no unused space)."
22609 msgstr ""
22610
22611 #. type: textblock
22612 #: ../resize/virt-resize.pod:150
22613 msgid ""
22614 "L</--resize> is the other commonly used option.  The following would "
22615 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22616 "rest of the available space:"
22617 msgstr ""
22618
22619 #. type: verbatim
22620 #: ../resize/virt-resize.pod:154
22621 #, no-wrap
22622 msgid ""
22623 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22624 "     indisk outdisk\n"
22625 "\n"
22626 msgstr ""
22627
22628 #. type: textblock
22629 #: ../resize/virt-resize.pod:157
22630 msgid ""
22631 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22632 "if virt-resize knows how, it will resize the contents, the equivalent of "
22633 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22634 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22635 "filesystems, so you would have to online resize them after booting the guest."
22636 msgstr ""
22637
22638 #. type: textblock
22639 #: ../resize/virt-resize.pod:164
22640 msgid "Other options are covered below."
22641 msgstr ""
22642
22643 #. type: =item
22644 #: ../resize/virt-resize.pod:166
22645 msgid "6. Test"
22646 msgstr ""
22647
22648 #. type: textblock
22649 #: ../resize/virt-resize.pod:168
22650 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22651 msgstr ""
22652
22653 #. type: textblock
22654 #: ../resize/virt-resize.pod:170
22655 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22656 msgstr ""
22657
22658 #. type: verbatim
22659 #: ../resize/virt-resize.pod:172
22660 #, no-wrap
22661 msgid ""
22662 " # virsh edit guestname\n"
22663 "\n"
22664 msgstr ""
22665
22666 #. type: textblock
22667 #: ../resize/virt-resize.pod:174
22668 msgid ""
22669 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22670 "html#elementsDisks>"
22671 msgstr ""
22672
22673 #. type: textblock
22674 #: ../resize/virt-resize.pod:177
22675 msgid "Then start up the domain with the new, resized disk:"
22676 msgstr ""
22677
22678 #. type: verbatim
22679 #: ../resize/virt-resize.pod:179
22680 #, no-wrap
22681 msgid ""
22682 " # virsh start guestname\n"
22683 "\n"
22684 msgstr ""
22685
22686 #. type: textblock
22687 #: ../resize/virt-resize.pod:181
22688 msgid ""
22689 "and check that it still works.  See also the L</NOTES> section below for "
22690 "additional information."
22691 msgstr ""
22692
22693 #. type: =item
22694 #: ../resize/virt-resize.pod:184
22695 msgid "7. Resize LVs etc inside the guest"
22696 msgstr ""
22697
22698 #. type: textblock
22699 #: ../resize/virt-resize.pod:186
22700 msgid "(This can also be done offline using L<guestfish(1)>)"
22701 msgstr ""
22702
22703 #. type: textblock
22704 #: ../resize/virt-resize.pod:188
22705 msgid ""
22706 "Once the guest has booted you should see the new space available, at least "
22707 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22708 "may need to resize LVs inside PVs, and also resize filesystem types that "
22709 "virt-resize does not know how to expand."
22710 msgstr ""
22711
22712 #. type: =head2
22713 #: ../resize/virt-resize.pod:195
22714 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22715 msgstr ""
22716
22717 #. type: textblock
22718 #: ../resize/virt-resize.pod:197
22719 msgid ""
22720 "Shrinking is somewhat more complex than expanding, and only an overview is "
22721 "given here."
22722 msgstr ""
22723
22724 #. type: textblock
22725 #: ../resize/virt-resize.pod:200
22726 msgid ""
22727 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22728 "filesystems).  The user has to shrink content before passing the disk image "
22729 "to virt-resize, and virt-resize will check that the content has been shrunk "
22730 "properly."
22731 msgstr ""
22732
22733 #. type: textblock
22734 #: ../resize/virt-resize.pod:205
22735 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22736 msgstr ""
22737
22738 #. type: textblock
22739 #: ../resize/virt-resize.pod:207
22740 msgid ""
22741 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22742 "steps 3 and 4 above to allocate a new disk image."
22743 msgstr ""
22744
22745 #. type: textblock
22746 #: ../resize/virt-resize.pod:210
22747 msgid ""
22748 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22749 msgstr ""
22750
22751 #. type: =head2
22752 #: ../resize/virt-resize.pod:213
22753 msgid "IGNORING OR DELETING PARTITIONS"
22754 msgstr ""
22755
22756 #. type: textblock
22757 #: ../resize/virt-resize.pod:215
22758 msgid ""
22759 "virt-resize also gives a convenient way to ignore or delete partitions when "
22760 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22761 "up the copy where you don't care about the existing contents of a "
22762 "partition.  Deleting a partition removes it completely, but note that it "
22763 "also renumbers any partitions after the one which is deleted, which can "
22764 "leave some guests unbootable."
22765 msgstr ""
22766
22767 #. type: =head2
22768 #: ../resize/virt-resize.pod:222
22769 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22770 msgstr ""
22771
22772 #. type: textblock
22773 #: ../resize/virt-resize.pod:224
22774 msgid ""
22775 "If the input disk is in qcow2 format, then you may prefer that the output is "
22776 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22777 "the fly.  The output format is simply determined by the format of the empty "
22778 "output container that you provide.  Thus to create qcow2 output, use:"
22779 msgstr ""
22780
22781 #. type: verbatim
22782 #: ../resize/virt-resize.pod:230
22783 #, no-wrap
22784 msgid ""
22785 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22786 "\n"
22787 msgstr ""
22788
22789 #. type: textblock
22790 #: ../resize/virt-resize.pod:232
22791 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22792 msgstr ""
22793
22794 #. type: textblock
22795 #: ../resize/virt-resize.pod:234
22796 msgid "Similarly, to get non-sparse raw output use:"
22797 msgstr ""
22798
22799 #. type: verbatim
22800 #: ../resize/virt-resize.pod:236
22801 #, no-wrap
22802 msgid ""
22803 " fallocate -l size outdisk\n"
22804 "\n"
22805 msgstr ""
22806
22807 #. type: textblock
22808 #: ../resize/virt-resize.pod:238
22809 msgid ""
22810 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22811 "dev/zero of=outdisk bs=1M count=..>)"
22812 msgstr ""
22813
22814 #. type: textblock
22815 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
22816 msgid "Display help."
22817 msgstr ""
22818
22819 #. type: =item
22820 #: ../resize/virt-resize.pod:249
22821 msgid "B<-d>"
22822 msgstr ""
22823
22824 #. type: =item
22825 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22826 #: ../tools/virt-win-reg.pl:120
22827 msgid "B<--debug>"
22828 msgstr ""
22829
22830 #. type: textblock
22831 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22832 msgid "Enable debugging messages."
22833 msgstr ""
22834
22835 #. type: =item
22836 #: ../resize/virt-resize.pod:255
22837 msgid "B<--delete part>"
22838 msgstr ""
22839
22840 #. type: textblock
22841 #: ../resize/virt-resize.pod:257
22842 msgid ""
22843 "Delete the named partition.  It would be more accurate to describe this as "
22844 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22845 "the original disk image is left intact."
22846 msgstr ""
22847
22848 #. type: textblock
22849 #: ../resize/virt-resize.pod:261
22850 msgid ""
22851 "Note that when you delete a partition, then anything contained in the "
22852 "partition is also deleted.  Furthermore, this causes any partitions that "
22853 "come after to be I<renumbered>, which can easily make your guest unbootable."
22854 msgstr ""
22855
22856 #. type: textblock
22857 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22858 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
22859 msgid "You can give this option multiple times."
22860 msgstr ""
22861
22862 #. type: =item
22863 #: ../resize/virt-resize.pod:268
22864 msgid "B<--expand part>"
22865 msgstr ""
22866
22867 #. type: textblock
22868 #: ../resize/virt-resize.pod:270
22869 msgid ""
22870 "Expand the named partition so it uses up all extra space (space left over "
22871 "after any other resize changes that you request have been done)."
22872 msgstr ""
22873
22874 #. type: textblock
22875 #: ../resize/virt-resize.pod:273
22876 msgid ""
22877 "If virt-resize knows how, it will expand the direct content of the "
22878 "partition.  For example, if the partition is an LVM PV, it will expand the "
22879 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22880 "content it doesn't know about alone."
22881 msgstr ""
22882
22883 #. type: textblock
22884 #: ../resize/virt-resize.pod:278
22885 msgid "Currently virt-resize can resize:"
22886 msgstr ""
22887
22888 #. type: textblock
22889 #: ../resize/virt-resize.pod:284
22890 msgid "ext2, ext3 and ext4 filesystems."
22891 msgstr ""
22892
22893 #. type: textblock
22894 #: ../resize/virt-resize.pod:288
22895 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22896 msgstr ""
22897
22898 #. type: textblock
22899 #: ../resize/virt-resize.pod:290
22900 msgid ""
22901 "The filesystem must have been shut down consistently last time it was used.  "
22902 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22903 "consistency check, so at the first boot after resizing Windows will check "
22904 "the disk."
22905 msgstr ""
22906
22907 #. type: textblock
22908 #: ../resize/virt-resize.pod:297
22909 msgid ""
22910 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22911 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22912 "resize LVs as desired after boot."
22913 msgstr ""
22914
22915 #. type: textblock
22916 #: ../resize/virt-resize.pod:303
22917 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22918 msgstr ""
22919
22920 #. type: textblock
22921 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22922 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22923 msgstr ""
22924
22925 #. type: =item
22926 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
22927 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
22928 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
22929 msgid "B<--format> raw"
22930 msgstr ""
22931
22932 #. type: textblock
22933 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
22934 msgid ""
22935 "Specify the format of the input disk image.  If this flag is not given then "
22936 "it is auto-detected from the image itself."
22937 msgstr ""
22938
22939 #. type: textblock
22940 #: ../resize/virt-resize.pod:317
22941 msgid ""
22942 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22943 "AND NON-SPARSE RAW FORMATS>."
22944 msgstr ""
22945
22946 #. type: =item
22947 #: ../resize/virt-resize.pod:320
22948 msgid "B<--ignore part>"
22949 msgstr ""
22950
22951 #. type: textblock
22952 #: ../resize/virt-resize.pod:322
22953 msgid ""
22954 "Ignore the named partition.  Effectively this means the partition is "
22955 "allocated on the destination disk, but the content is not copied across from "
22956 "the source disk.  The content of the partition will be blank (all zero "
22957 "bytes)."
22958 msgstr ""
22959
22960 #. type: =item
22961 #: ../resize/virt-resize.pod:329
22962 msgid "B<--LV-expand logvol>"
22963 msgstr ""
22964
22965 #. type: textblock
22966 #: ../resize/virt-resize.pod:331
22967 msgid ""
22968 "This takes the logical volume and, as a final step, expands it to fill all "
22969 "the space available in its volume group.  A typical usage, assuming a Linux "
22970 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22971 "lv_root> would be:"
22972 msgstr ""
22973
22974 #. type: verbatim
22975 #: ../resize/virt-resize.pod:336
22976 #, no-wrap
22977 msgid ""
22978 " virt-resize indisk outdisk \\\n"
22979 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22980 "\n"
22981 msgstr ""
22982
22983 #. type: textblock
22984 #: ../resize/virt-resize.pod:339
22985 msgid ""
22986 "This would first expand the partition (and PV), and then expand the root "
22987 "device to fill the extra space in the PV."
22988 msgstr ""
22989
22990 #. type: textblock
22991 #: ../resize/virt-resize.pod:342
22992 msgid ""
22993 "The contents of the LV are also resized if virt-resize knows how to do "
22994 "that.  You can stop virt-resize from trying to expand the content by using "
22995 "the option I<--no-expand-content>."
22996 msgstr ""
22997
22998 #. type: textblock
22999 #: ../resize/virt-resize.pod:346
23000 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23001 msgstr ""
23002
23003 #. type: textblock
23004 #: ../resize/virt-resize.pod:348
23005 msgid ""
23006 "You can give this option multiple times, I<but> it doesn't make sense to do "
23007 "this unless the logical volumes you specify are all in different volume "
23008 "groups."
23009 msgstr ""
23010
23011 #. type: =item
23012 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
23013 msgid "B<--machine-readable>"
23014 msgstr ""
23015
23016 #. type: textblock
23017 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
23018 msgid ""
23019 "This option is used to make the output more machine friendly when being "
23020 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23021 msgstr ""
23022
23023 #. type: =item
23024 #: ../resize/virt-resize.pod:360
23025 msgid "B<--dryrun>"
23026 msgstr ""
23027
23028 #. type: textblock
23029 #: ../resize/virt-resize.pod:362
23030 msgid "Print a summary of what would be done, but don't do anything."
23031 msgstr ""
23032
23033 #. type: =item
23034 #: ../resize/virt-resize.pod:364
23035 msgid "B<--no-copy-boot-loader>"
23036 msgstr ""
23037
23038 #. type: textblock
23039 #: ../resize/virt-resize.pod:366
23040 msgid ""
23041 "By default, virt-resize copies over some sectors at the start of the disk "
23042 "(up to the beginning of the first partition).  Commonly these sectors "
23043 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23044 "in order for the guest to boot correctly."
23045 msgstr ""
23046
23047 #. type: textblock
23048 #: ../resize/virt-resize.pod:371
23049 msgid ""
23050 "If you specify this flag, then this initial copy is not done.  You may need "
23051 "to reinstall the boot loader in this case."
23052 msgstr ""
23053
23054 #. type: =item
23055 #: ../resize/virt-resize.pod:374
23056 msgid "B<--no-extra-partition>"
23057 msgstr ""
23058
23059 #. type: textblock
23060 #: ../resize/virt-resize.pod:376
23061 msgid ""
23062 "By default, virt-resize creates an extra partition if there is any extra, "
23063 "unused space after all resizing has happened.  Use this option to prevent "
23064 "the extra partition from being created.  If you do this then the extra space "
23065 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23066 "tool in the guest."
23067 msgstr ""
23068
23069 #. type: textblock
23070 #: ../resize/virt-resize.pod:382
23071 msgid ""
23072 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23073 "will be created."
23074 msgstr ""
23075
23076 #. type: =item
23077 #: ../resize/virt-resize.pod:385
23078 msgid "B<--no-expand-content>"
23079 msgstr ""
23080
23081 #. type: textblock
23082 #: ../resize/virt-resize.pod:387
23083 msgid ""
23084 "By default, virt-resize will try to expand the direct contents of "
23085 "partitions, if it knows how (see I<--expand> option above)."
23086 msgstr ""
23087
23088 #. type: textblock
23089 #: ../resize/virt-resize.pod:390
23090 msgid ""
23091 "If you give the I<--no-expand-content> option then virt-resize will not "
23092 "attempt this."
23093 msgstr ""
23094
23095 #. type: =item
23096 #: ../resize/virt-resize.pod:393
23097 msgid "B<--ntfsresize-force>"
23098 msgstr ""
23099
23100 #. type: textblock
23101 #: ../resize/virt-resize.pod:395
23102 msgid ""
23103 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23104 "the NTFS disk is marked as needing a consistency check.  You have to use "
23105 "this option if you want to resize a Windows guest multiple times without "
23106 "booting into Windows between each resize."
23107 msgstr ""
23108
23109 #. type: =item
23110 #: ../resize/virt-resize.pod:401
23111 msgid "B<--output-format> raw"
23112 msgstr ""
23113
23114 #. type: textblock
23115 #: ../resize/virt-resize.pod:403
23116 msgid ""
23117 "Specify the format of the output disk image.  If this flag is not given then "
23118 "it is auto-detected from the image itself."
23119 msgstr ""
23120
23121 #. type: textblock
23122 #: ../resize/virt-resize.pod:409
23123 msgid ""
23124 "Note that this option I<does not create> the output format.  This option "
23125 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23126 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23127 "SPARSE RAW FORMATS>."
23128 msgstr ""
23129
23130 #. type: textblock
23131 #: ../resize/virt-resize.pod:418
23132 msgid "Don't print the summary."
23133 msgstr ""
23134
23135 #. type: =item
23136 #: ../resize/virt-resize.pod:420
23137 msgid "B<--resize part=size>"
23138 msgstr ""
23139
23140 #. type: textblock
23141 #: ../resize/virt-resize.pod:422
23142 msgid ""
23143 "Resize the named partition (expanding or shrinking it) so that it has the "
23144 "given size."
23145 msgstr ""
23146
23147 #. type: textblock
23148 #: ../resize/virt-resize.pod:425
23149 msgid ""
23150 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23151 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23152 "size; or as a relative number or percentage.  For example:"
23153 msgstr ""
23154
23155 #. type: verbatim
23156 #: ../resize/virt-resize.pod:431
23157 #, no-wrap
23158 msgid ""
23159 " --resize /dev/sda2=10G\n"
23160 "\n"
23161 msgstr ""
23162
23163 #. type: verbatim
23164 #: ../resize/virt-resize.pod:433
23165 #, no-wrap
23166 msgid ""
23167 " --resize /dev/sda4=90%\n"
23168 "\n"
23169 msgstr ""
23170
23171 #. type: verbatim
23172 #: ../resize/virt-resize.pod:435
23173 #, no-wrap
23174 msgid ""
23175 " --resize /dev/sda2=+1G\n"
23176 "\n"
23177 msgstr ""
23178
23179 #. type: verbatim
23180 #: ../resize/virt-resize.pod:437
23181 #, no-wrap
23182 msgid ""
23183 " --resize /dev/sda2=-200M\n"
23184 "\n"
23185 msgstr ""
23186
23187 #. type: verbatim
23188 #: ../resize/virt-resize.pod:439
23189 #, no-wrap
23190 msgid ""
23191 " --resize /dev/sda1=+128K\n"
23192 "\n"
23193 msgstr ""
23194
23195 #. type: verbatim
23196 #: ../resize/virt-resize.pod:441
23197 #, no-wrap
23198 msgid ""
23199 " --resize /dev/sda1=+10%\n"
23200 "\n"
23201 msgstr ""
23202
23203 #. type: verbatim
23204 #: ../resize/virt-resize.pod:443
23205 #, no-wrap
23206 msgid ""
23207 " --resize /dev/sda1=-10%\n"
23208 "\n"
23209 msgstr ""
23210
23211 #. type: textblock
23212 #: ../resize/virt-resize.pod:445
23213 msgid ""
23214 "You can increase the size of any partition.  Virt-resize will expand the "
23215 "direct content of the partition if it knows how (see I<--expand> below)."
23216 msgstr ""
23217
23218 #. type: textblock
23219 #: ../resize/virt-resize.pod:449
23220 msgid ""
23221 "You can only I<decrease> the size of partitions that contain filesystems or "
23222 "PVs which have already been shrunk.  Virt-resize will check this has been "
23223 "done before proceeding, or else will print an error (see also I<--resize-"
23224 "force>)."
23225 msgstr ""
23226
23227 #. type: =item
23228 #: ../resize/virt-resize.pod:456
23229 msgid "B<--resize-force part=size>"
23230 msgstr ""
23231
23232 #. type: textblock
23233 #: ../resize/virt-resize.pod:458
23234 msgid ""
23235 "This is the same as I<--resize> except that it will let you decrease the "
23236 "size of any partition.  Generally this means you will lose any data which "
23237 "was at the end of the partition you shrink, but you may not care about that "
23238 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23239 "as a swap partition)."
23240 msgstr ""
23241
23242 #. type: textblock
23243 #: ../resize/virt-resize.pod:464
23244 msgid "See also the I<--ignore> option."
23245 msgstr ""
23246
23247 #. type: =item
23248 #: ../resize/virt-resize.pod:466
23249 msgid "B<--shrink part>"
23250 msgstr ""
23251
23252 #. type: textblock
23253 #: ../resize/virt-resize.pod:468
23254 msgid ""
23255 "Shrink the named partition until the overall disk image fits in the "
23256 "destination.  The named partition B<must> contain a filesystem or PV which "
23257 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23258 "online tools).  Virt-resize will check this and give an error if it has not "
23259 "been done."
23260 msgstr ""
23261
23262 #. type: textblock
23263 #: ../resize/virt-resize.pod:474
23264 msgid ""
23265 "The amount by which the overall disk must be shrunk (after carrying out all "
23266 "other operations requested by the user) is called the \"deficit\".  For "
23267 "example, a straight copy (assume no other operations)  from a 5GB disk image "
23268 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
23269 "would give an error unless the user specified a partition to shrink and that "
23270 "partition had more than a gigabyte of free space."
23271 msgstr ""
23272
23273 #. type: =head1
23274 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
23275 msgid "MACHINE READABLE OUTPUT"
23276 msgstr ""
23277
23278 #. type: textblock
23279 #: ../resize/virt-resize.pod:494
23280 msgid ""
23281 "The I<--machine-readable> option can be used to make the output more machine "
23282 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23283 "etc."
23284 msgstr ""
23285
23286 #. type: textblock
23287 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
23288 msgid "There are two ways to use this option."
23289 msgstr ""
23290
23291 #. type: textblock
23292 #: ../resize/virt-resize.pod:500
23293 msgid ""
23294 "Firstly use the option on its own to query the capabilities of the virt-"
23295 "resize binary.  Typical output looks like this:"
23296 msgstr ""
23297
23298 #. type: verbatim
23299 #: ../resize/virt-resize.pod:503
23300 #, no-wrap
23301 msgid ""
23302 " $ virt-resize --machine-readable\n"
23303 " virt-resize\n"
23304 " ntfsresize-force\n"
23305 " 32bitok\n"
23306 " ntfs\n"
23307 " btrfs\n"
23308 "\n"
23309 msgstr ""
23310
23311 #. type: textblock
23312 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
23313 msgid ""
23314 "A list of features is printed, one per line, and the program exits with "
23315 "status 0."
23316 msgstr ""
23317
23318 #. type: textblock
23319 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
23320 msgid ""
23321 "Secondly use the option in conjunction with other options to make the "
23322 "regular program output more machine friendly."
23323 msgstr ""
23324
23325 #. type: textblock
23326 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
23327 msgid "At the moment this means:"
23328 msgstr ""
23329
23330 #. type: textblock
23331 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
23332 msgid ""
23333 "Progress bar messages can be parsed from stdout by looking for this regular "
23334 "expression:"
23335 msgstr ""
23336
23337 #. type: verbatim
23338 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
23339 #, no-wrap
23340 msgid ""
23341 " ^[0-9]+/[0-9]+$\n"
23342 "\n"
23343 msgstr ""
23344
23345 #. type: textblock
23346 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
23347 msgid ""
23348 "The calling program should treat messages sent to stdout (except for "
23349 "progress bar messages) as status messages.  They can be logged and/or "
23350 "displayed to the user."
23351 msgstr ""
23352
23353 #. type: textblock
23354 #: ../resize/virt-resize.pod:535
23355 msgid ""
23356 "The calling program should treat messages sent to stderr as error messages.  "
23357 "In addition, virt-resize exits with a non-zero status code if there was a "
23358 "fatal error."
23359 msgstr ""
23360
23361 #. type: textblock
23362 #: ../resize/virt-resize.pod:541
23363 msgid ""
23364 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23365 "readable> option and will return an error."
23366 msgstr ""
23367
23368 #. type: =head2
23369 #: ../resize/virt-resize.pod:546
23370 msgid "\"Partition 1 does not end on cylinder boundary.\""
23371 msgstr ""
23372
23373 #. type: textblock
23374 #: ../resize/virt-resize.pod:548
23375 msgid ""
23376 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
23377 "means the partitions will not be aligned to the ancient CHS geometry.  "
23378 "However CHS geometry is meaningless for disks manufactured since the early "
23379 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
23380 "cylinders is not required by any modern operating system."
23381 msgstr ""
23382
23383 #. type: =head2
23384 #: ../resize/virt-resize.pod:555
23385 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23386 msgstr ""
23387
23388 #. type: textblock
23389 #: ../resize/virt-resize.pod:557
23390 msgid ""
23391 "In Windows Vista and later versions, Microsoft switched to using a separate "
23392 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23393 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
23394 "the boot partition.  Doing so seems to break the guest completely.  However "
23395 "expanding the second partition (ie. C: drive) should work."
23396 msgstr ""
23397
23398 #. type: textblock
23399 #: ../resize/virt-resize.pod:564
23400 msgid ""
23401 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23402 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23403 "it find errors) is nothing to worry about."
23404 msgstr ""
23405
23406 #. type: =head2
23407 #: ../resize/virt-resize.pod:568
23408 msgid "GUEST BOOT STUCK AT \"GRUB\""
23409 msgstr ""
23410
23411 #. type: textblock
23412 #: ../resize/virt-resize.pod:570
23413 msgid ""
23414 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23415 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
23416 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23417 "although we think is to do with partition alignment."
23418 msgstr ""
23419
23420 #. type: verbatim
23421 #: ../resize/virt-resize.pod:575
23422 #, no-wrap
23423 msgid ""
23424 " guestfish -i -a newdisk\n"
23425 " ><fs> cat /boot/grub/device.map\n"
23426 " # check the contents of this file are sensible or\n"
23427 " # edit the file if necessary\n"
23428 " ><fs> grub-install / /dev/vda\n"
23429 " ><fs> exit\n"
23430 "\n"
23431 msgstr ""
23432
23433 #. type: textblock
23434 #: ../resize/virt-resize.pod:582
23435 msgid ""
23436 "For more flexible guest reconfiguration, including if you need to specify "
23437 "other parameters to grub-install, use L<virt-rescue(1)>."
23438 msgstr ""
23439
23440 #. type: =head1
23441 #: ../resize/virt-resize.pod:585
23442 msgid "ALTERNATIVE TOOLS"
23443 msgstr ""
23444
23445 #. type: textblock
23446 #: ../resize/virt-resize.pod:587
23447 msgid ""
23448 "There are several proprietary tools for resizing partitions.  We won't "
23449 "mention any here."
23450 msgstr ""
23451
23452 #. type: textblock
23453 #: ../resize/virt-resize.pod:590
23454 msgid ""
23455 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23456 "operations on disk images.  They can resize and move partitions, but I don't "
23457 "think they can do anything with the contents, and they certainly don't "
23458 "understand LVM."
23459 msgstr ""
23460
23461 #. type: textblock
23462 #: ../resize/virt-resize.pod:595
23463 msgid ""
23464 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23465 "but at a much lower level.  You will probably end up hand-calculating sector "
23466 "offsets, which is something that virt-resize was designed to avoid.  If you "
23467 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23468 "I<--debug> flag."
23469 msgstr ""
23470
23471 #. type: textblock
23472 #: ../resize/virt-resize.pod:615
23473 msgid ""
23474 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23475 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23476 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23477 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
23478 "L<http://libguestfs.org/>."
23479 msgstr ""
23480
23481 #. type: textblock
23482 #: ../ruby/examples/guestfs-ruby.pod:5
23483 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23484 msgstr ""
23485
23486 #. type: verbatim
23487 #: ../ruby/examples/guestfs-ruby.pod:9
23488 #, no-wrap
23489 msgid ""
23490 " require 'guestfs'\n"
23491 " g = Guestfs::Guestfs.new()\n"
23492 " g.add_drive_opts(\"disk.img\",\n"
23493 "                  :readonly => 1, :format => \"raw\")\n"
23494 " g.launch()\n"
23495 "\n"
23496 msgstr ""
23497
23498 #. type: textblock
23499 #: ../ruby/examples/guestfs-ruby.pod:17
23500 msgid ""
23501 "This manual page documents how to call libguestfs from the Ruby programming "
23502 "language.  This page just documents the differences from the C API and gives "
23503 "some examples.  If you are not familiar with using libguestfs, you also need "
23504 "to read L<guestfs(3)>."
23505 msgstr ""
23506
23507 #. type: textblock
23508 #: ../ruby/examples/guestfs-ruby.pod:24
23509 msgid ""
23510 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23511 "This has a single parameter which is the error message (a string)."
23512 msgstr ""
23513
23514 #. type: textblock
23515 #: ../ruby/examples/guestfs-ruby.pod:38
23516 msgid ""
23517 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23518 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23519 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23520 msgstr ""
23521
23522 #. type: textblock
23523 #: ../sparsify/virt-sparsify.pod:5
23524 msgid "virt-sparsify - Make a virtual machine disk sparse"
23525 msgstr ""
23526
23527 #. type: verbatim
23528 #: ../sparsify/virt-sparsify.pod:9
23529 #, no-wrap
23530 msgid ""
23531 " virt-sparsify [--options] indisk outdisk\n"
23532 "\n"
23533 msgstr ""
23534
23535 #. type: textblock
23536 #: ../sparsify/virt-sparsify.pod:13
23537 msgid ""
23538 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
23539 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
23540 "the disk image can be converted back to free space on the host."
23541 msgstr ""
23542
23543 #. type: textblock
23544 #: ../sparsify/virt-sparsify.pod:18
23545 msgid ""
23546 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
23547 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
23548 msgstr ""
23549
23550 #. type: textblock
23551 #: ../sparsify/virt-sparsify.pod:21
23552 msgid ""
23553 "Virt-sparsify can also convert between some disk formats, for example "
23554 "converting a raw disk image to a thin-provisioned qcow2 image."
23555 msgstr ""
23556
23557 #. type: textblock
23558 #: ../sparsify/virt-sparsify.pod:24
23559 msgid ""
23560 "Virt-sparsify can operate on any disk image, not just ones from virtual "
23561 "machines.  If a virtual machine has more than one attached disk, you must "
23562 "sparsify each one separately."
23563 msgstr ""
23564
23565 #. type: =head2
23566 #: ../sparsify/virt-sparsify.pod:28
23567 msgid "IMPORTANT LIMITATIONS"
23568 msgstr ""
23569
23570 #. type: textblock
23571 #: ../sparsify/virt-sparsify.pod:34
23572 msgid ""
23573 "Virt-sparsify does not do in-place modifications.  It copies from a source "
23574 "image to a destination image, leaving the source unchanged.  I<Check that "
23575 "the sparsification was successful before deleting the source image>."
23576 msgstr ""
23577
23578 #. type: textblock
23579 #: ../sparsify/virt-sparsify.pod:41
23580 msgid "The virtual machine I<must be shut down> before using this tool."
23581 msgstr ""
23582
23583 #. type: textblock
23584 #: ../sparsify/virt-sparsify.pod:45
23585 msgid ""
23586 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
23587 "(1 temporary copy + 1 destination image).  This is in the worst case and "
23588 "usually much less space is required."
23589 msgstr ""
23590
23591 #. type: textblock
23592 #: ../sparsify/virt-sparsify.pod:51
23593 msgid ""
23594 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
23595 msgstr ""
23596
23597 #. type: textblock
23598 #: ../sparsify/virt-sparsify.pod:56
23599 msgid "Virt-sparsify cannot handle encrypted disks."
23600 msgstr ""
23601
23602 #. type: textblock
23603 #: ../sparsify/virt-sparsify.pod:60
23604 msgid ""
23605 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
23606 "this space is often used for critical items like bootloaders so it's not "
23607 "really unused."
23608 msgstr ""
23609
23610 #. type: textblock
23611 #: ../sparsify/virt-sparsify.pod:66
23612 msgid ""
23613 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
23614 "to do this unless we can be sure there is no hibernation data, so at the "
23615 "moment swap partitions are ignored."
23616 msgstr ""
23617
23618 #. type: textblock
23619 #: ../sparsify/virt-sparsify.pod:72
23620 msgid ""
23621 "You may also want to read the manual pages for the associated tools L<virt-"
23622 "filesystems(1)> and L<virt-df(1)> before starting."
23623 msgstr ""
23624
23625 #. type: textblock
23626 #: ../sparsify/virt-sparsify.pod:77
23627 msgid "Typical usage is:"
23628 msgstr ""
23629
23630 #. type: verbatim
23631 #: ../sparsify/virt-sparsify.pod:79
23632 #, no-wrap
23633 msgid ""
23634 " virt-sparsify indisk outdisk\n"
23635 "\n"
23636 msgstr ""
23637
23638 #. type: textblock
23639 #: ../sparsify/virt-sparsify.pod:81
23640 msgid ""
23641 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
23642 "is created, or overwritten if it already exists.  The format of the input "
23643 "disk is detected (eg. qcow2) and the same format is used for the output disk."
23644 msgstr ""
23645
23646 #. type: textblock
23647 #: ../sparsify/virt-sparsify.pod:86
23648 msgid "To convert between formats, use the I<--convert> option:"
23649 msgstr ""
23650
23651 #. type: verbatim
23652 #: ../sparsify/virt-sparsify.pod:88
23653 #, no-wrap
23654 msgid ""
23655 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
23656 "\n"
23657 msgstr ""
23658
23659 #. type: textblock
23660 #: ../sparsify/virt-sparsify.pod:90
23661 msgid ""
23662 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
23663 "can find within the source disk image.  You can get it to ignore (don't zero "
23664 "free space on) certain filesystems by doing:"
23665 msgstr ""
23666
23667 #. type: verbatim
23668 #: ../sparsify/virt-sparsify.pod:94
23669 #, no-wrap
23670 msgid ""
23671 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
23672 "\n"
23673 msgstr ""
23674
23675 #. type: textblock
23676 #: ../sparsify/virt-sparsify.pod:96
23677 msgid ""
23678 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
23679 msgstr ""
23680
23681 #. type: =item
23682 #: ../sparsify/virt-sparsify.pod:107
23683 msgid "B<--convert> raw"
23684 msgstr ""
23685
23686 #. type: =item
23687 #: ../sparsify/virt-sparsify.pod:109
23688 msgid "B<--convert> qcow2"
23689 msgstr ""
23690
23691 #. type: =item
23692 #: ../sparsify/virt-sparsify.pod:111
23693 msgid "B<--convert> [other formats]"
23694 msgstr ""
23695
23696 #. type: textblock
23697 #: ../sparsify/virt-sparsify.pod:113
23698 msgid ""
23699 "Use C<output-format> as the format for the destination image.  If this is "
23700 "not specified, then the input format is used."
23701 msgstr ""
23702
23703 #. type: textblock
23704 #: ../sparsify/virt-sparsify.pod:116
23705 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
23706 msgstr ""
23707
23708 #. type: textblock
23709 #: ../sparsify/virt-sparsify.pod:118
23710 msgid ""
23711 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
23712 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
23713 msgstr ""
23714
23715 #. type: textblock
23716 #: ../sparsify/virt-sparsify.pod:122
23717 msgid ""
23718 "Specifying the I<--convert> option is usually a good idea, because then virt-"
23719 "sparsify doesn't need to try to guess the input format."
23720 msgstr ""
23721
23722 #. type: =item
23723 #: ../sparsify/virt-sparsify.pod:127
23724 msgid "B<--format> qcow2"
23725 msgstr ""
23726
23727 #. type: =item
23728 #: ../sparsify/virt-sparsify.pod:135
23729 msgid "B<--ignore> filesystem"
23730 msgstr ""
23731
23732 #. type: =item
23733 #: ../sparsify/virt-sparsify.pod:137
23734 msgid "B<--ignore> volgroup"
23735 msgstr ""
23736
23737 #. type: textblock
23738 #: ../sparsify/virt-sparsify.pod:139
23739 msgid ""
23740 "Ignore the named filesystem.  Free space on the filesystem will not be "
23741 "zeroed, but existing blocks of zeroes will still be sparsified."
23742 msgstr ""
23743
23744 #. type: textblock
23745 #: ../sparsify/virt-sparsify.pod:142
23746 msgid ""
23747 "In the second form, this ignores the named volume group.  Use the volume "
23748 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
23749 msgstr ""
23750
23751 #. type: textblock
23752 #: ../sparsify/virt-sparsify.pod:157
23753 msgid "This disables progress bars and other unnecessary output."
23754 msgstr ""
23755
23756 #. type: textblock
23757 #: ../sparsify/virt-sparsify.pod:179
23758 msgid ""
23759 "The I<--machine-readable> option can be used to make the output more machine "
23760 "friendly, which is useful when calling virt-sparsify from other programs, "
23761 "GUIs etc."
23762 msgstr ""
23763
23764 #. type: textblock
23765 #: ../sparsify/virt-sparsify.pod:185
23766 msgid ""
23767 "Firstly use the option on its own to query the capabilities of the virt-"
23768 "sparsify binary.  Typical output looks like this:"
23769 msgstr ""
23770
23771 #. type: verbatim
23772 #: ../sparsify/virt-sparsify.pod:188
23773 #, no-wrap
23774 msgid ""
23775 " $ virt-sparsify --machine-readable\n"
23776 " virt-sparsify\n"
23777 " ntfs\n"
23778 " btrfs\n"
23779 "\n"
23780 msgstr ""
23781
23782 #. type: textblock
23783 #: ../sparsify/virt-sparsify.pod:218
23784 msgid ""
23785 "The calling program should treat messages sent to stderr as error messages.  "
23786 "In addition, virt-sparsify exits with a non-zero status code if there was a "
23787 "fatal error."
23788 msgstr ""
23789
23790 #. type: textblock
23791 #: ../sparsify/virt-sparsify.pod:224
23792 msgid ""
23793 "All versions of virt-sparsify have supported the I<--machine-readable> "
23794 "option."
23795 msgstr ""
23796
23797 #. type: textblock
23798 #: ../sparsify/virt-sparsify.pod:238
23799 msgid ""
23800 "Location of the temporary directory used for the potentially large temporary "
23801 "overlay file."
23802 msgstr ""
23803
23804 #. type: textblock
23805 #: ../sparsify/virt-sparsify.pod:241
23806 msgid ""
23807 "You should ensure there is enough free space in the worst case for a full "
23808 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
23809 "to another directory that has enough space."
23810 msgstr ""
23811
23812 #. type: textblock
23813 #: ../sparsify/virt-sparsify.pod:245
23814 msgid "This defaults to C</tmp>."
23815 msgstr ""
23816
23817 #. type: textblock
23818 #: ../sparsify/virt-sparsify.pod:249
23819 msgid ""
23820 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
23821 msgstr ""
23822
23823 #. type: textblock
23824 #: ../sparsify/virt-sparsify.pod:253
23825 msgid ""
23826 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
23827 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
23828 "(1)>, L<http://libguestfs.org/>."
23829 msgstr ""
23830
23831 #. type: =head2
23832 #: ../src/guestfs-actions.pod:1
23833 msgid "guestfs_add_cdrom"
23834 msgstr ""
23835
23836 #. type: verbatim
23837 #: ../src/guestfs-actions.pod:3
23838 #, no-wrap
23839 msgid ""
23840 " int\n"
23841 " guestfs_add_cdrom (guestfs_h *g,\n"
23842 "                    const char *filename);\n"
23843 "\n"
23844 msgstr ""
23845
23846 #. type: textblock
23847 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
23848 #: ../src/guestfs-actions.pod:270
23849 msgid ""
23850 "I<This function is deprecated.> In new code, use the L</"
23851 "guestfs_add_drive_opts> call instead."
23852 msgstr ""
23853
23854 #. type: textblock
23855 #: ../src/guestfs-actions.pod:24
23856 msgid ""
23857 "This call checks for the existence of C<filename>.  This stops you from "
23858 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23859 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23860 "instead."
23861 msgstr ""
23862
23863 #. type: textblock
23864 #: ../src/guestfs-actions.pod:31
23865 msgid ""
23866 "If you just want to add an ISO file (often you use this as an efficient way "
23867 "to transfer large files into the guest), then you should probably use "
23868 "C<guestfs_add_drive_ro> instead."
23869 msgstr ""
23870
23871 #. type: textblock
23872 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23873 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23874 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23875 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23876 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23877 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23878 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23879 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23880 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23881 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23882 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23883 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23884 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23885 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233
23886 #: ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297
23887 #: ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330
23888 #: ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420
23889 #: ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476
23890 #: ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631
23891 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873
23892 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982
23893 #: ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634
23894 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730
23895 #: ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:3789
23896 #: ../src/guestfs-actions.pod:3814 ../src/guestfs-actions.pod:4003
23897 #: ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:4030
23898 #: ../src/guestfs-actions.pod:4044 ../src/guestfs-actions.pod:4059
23899 #: ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4167
23900 #: ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4204
23901 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4250
23902 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4304
23903 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4358
23904 #: ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4406
23905 #: ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4435
23906 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4467
23907 #: ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4580
23908 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4644
23909 #: ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4680
23910 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4710
23911 #: ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4741
23912 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4783
23913 #: ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4919
23914 #: ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4969
23915 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5000
23916 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5030
23917 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5060
23918 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5118
23919 #: ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5177
23920 #: ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5208
23921 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5310
23922 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5400
23923 #: ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5445
23924 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5603
23925 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5682
23926 #: ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5732
23927 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5815
23928 #: ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5842
23929 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
23930 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6183
23931 #: ../src/guestfs-actions.pod:6195 ../src/guestfs-actions.pod:6209
23932 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6235
23933 #: ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6272
23934 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6310
23935 #: ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6358
23936 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6399
23937 #: ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6439
23938 #: ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6475
23939 #: ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6522
23940 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565
23941 #: ../src/guestfs-actions.pod:6581 ../src/guestfs-actions.pod:6605
23942 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6639
23943 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6702
23944 #: ../src/guestfs-actions.pod:6732 ../src/guestfs-actions.pod:6765
23945 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:7001
23946 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7026
23947 #: ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7061
23948 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7087
23949 #: ../src/guestfs-actions.pod:7100 ../src/guestfs-actions.pod:7115
23950 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7191
23951 #: ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7223
23952 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7253
23953 #: ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7309
23954 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7364
23955 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7395
23956 #: ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7465
23957 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7596
23958 #: ../src/guestfs-actions.pod:7610 ../src/guestfs-actions.pod:7665
23959 #: ../src/guestfs-actions.pod:7678 ../src/guestfs-actions.pod:7723
23960 #: ../src/guestfs-actions.pod:7763 ../src/guestfs-actions.pod:7819
23961 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7872
23962 #: ../src/guestfs-actions.pod:7936 ../src/guestfs-actions.pod:7959
23963 #: ../src/guestfs-actions.pod:7988
23964 msgid "This function returns 0 on success or -1 on error."
23965 msgstr ""
23966
23967 #. type: textblock
23968 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23969 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096
23970 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319
23971 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:3796
23972 #: ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:6360
23973 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6626
23974 #: ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7242
23975 #: ../src/guestfs-actions.pod:7765
23976 msgid "(Added in 0.3)"
23977 msgstr ""
23978
23979 #. type: =head2
23980 #: ../src/guestfs-actions.pod:41
23981 msgid "guestfs_add_domain"
23982 msgstr ""
23983
23984 #. type: verbatim
23985 #: ../src/guestfs-actions.pod:43
23986 #, no-wrap
23987 msgid ""
23988 " int\n"
23989 " guestfs_add_domain (guestfs_h *g,\n"
23990 "                     const char *dom,\n"
23991 "                     ...);\n"
23992 "\n"
23993 msgstr ""
23994
23995 #. type: textblock
23996 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23997 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
23998 #: ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2979
23999 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5104
24000 #: ../src/guestfs-actions.pod:5321
24001 msgid ""
24002 "You may supply a list of optional arguments to this call.  Use zero or more "
24003 "of the following pairs of parameters, and terminate the list with C<-1> on "
24004 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24005 msgstr ""
24006
24007 #. type: verbatim
24008 #: ../src/guestfs-actions.pod:53
24009 #, no-wrap
24010 msgid ""
24011 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24012 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24013 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24014 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24015 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24016 "\n"
24017 msgstr ""
24018
24019 #. type: textblock
24020 #: ../src/guestfs-actions.pod:59
24021 msgid ""
24022 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24023 "It works by connecting to libvirt, requesting the domain and domain XML from "
24024 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24025 "one."
24026 msgstr ""
24027
24028 #. type: textblock
24029 #: ../src/guestfs-actions.pod:94
24030 msgid ""
24031 "The other optional parameters are passed directly through to "
24032 "C<guestfs_add_drive_opts>."
24033 msgstr ""
24034
24035 #. type: textblock
24036 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
24037 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
24038 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
24039 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496
24040 #: ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055
24041 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217
24042 #: ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283
24043 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621
24044 #: ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3115
24045 #: ../src/guestfs-actions.pod:5280 ../src/guestfs-actions.pod:5500
24046 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5938
24047 #: ../src/guestfs-actions.pod:7350 ../src/guestfs-actions.pod:7776
24048 #: ../src/guestfs-actions.pod:7789 ../src/guestfs-actions.pod:7802
24049 msgid "On error this function returns -1."
24050 msgstr ""
24051
24052 #. type: textblock
24053 #: ../src/guestfs-actions.pod:99
24054 msgid "(Added in 1.7.4)"
24055 msgstr ""
24056
24057 #. type: =head2
24058 #: ../src/guestfs-actions.pod:101
24059 msgid "guestfs_add_domain_va"
24060 msgstr ""
24061
24062 #. type: verbatim
24063 #: ../src/guestfs-actions.pod:103
24064 #, no-wrap
24065 msgid ""
24066 " int\n"
24067 " guestfs_add_domain_va (guestfs_h *g,\n"
24068 "                        const char *dom,\n"
24069 "                        va_list args);\n"
24070 "\n"
24071 msgstr ""
24072
24073 #. type: textblock
24074 #: ../src/guestfs-actions.pod:108
24075 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24076 msgstr ""
24077
24078 #. type: textblock
24079 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
24080 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
24081 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
24082 #: ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202
24083 #: ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261
24084 #: ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3075
24085 #: ../src/guestfs-actions.pod:4860 ../src/guestfs-actions.pod:4872
24086 #: ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:5144
24087 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5381
24088 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24089 msgstr ""
24090
24091 #. type: =head2
24092 #: ../src/guestfs-actions.pod:112
24093 msgid "guestfs_add_domain_argv"
24094 msgstr ""
24095
24096 #. type: verbatim
24097 #: ../src/guestfs-actions.pod:114
24098 #, no-wrap
24099 msgid ""
24100 " int\n"
24101 " guestfs_add_domain_argv (guestfs_h *g,\n"
24102 "                          const char *dom,\n"
24103 "                          const struct guestfs_add_domain_argv *optargs);\n"
24104 "\n"
24105 msgstr ""
24106
24107 #. type: textblock
24108 #: ../src/guestfs-actions.pod:119
24109 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24110 msgstr ""
24111
24112 #. type: =head2
24113 #: ../src/guestfs-actions.pod:123
24114 msgid "guestfs_add_drive"
24115 msgstr ""
24116
24117 #. type: verbatim
24118 #: ../src/guestfs-actions.pod:125
24119 #, no-wrap
24120 msgid ""
24121 " int\n"
24122 " guestfs_add_drive (guestfs_h *g,\n"
24123 "                    const char *filename);\n"
24124 "\n"
24125 msgstr ""
24126
24127 #. type: textblock
24128 #: ../src/guestfs-actions.pod:129
24129 msgid ""
24130 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24131 "optional parameters, so the disk is added writable, with the format being "
24132 "detected automatically."
24133 msgstr ""
24134
24135 #. type: textblock
24136 #: ../src/guestfs-actions.pod:133
24137 msgid ""
24138 "Automatic detection of the format opens you up to a potential security hole "
24139 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24140 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24141 "you should think about replacing calls to this function with calls to "
24142 "C<guestfs_add_drive_opts>, and specifying the format."
24143 msgstr ""
24144
24145 #. type: =head2
24146 #: ../src/guestfs-actions.pod:144
24147 msgid "guestfs_add_drive_opts"
24148 msgstr ""
24149
24150 #. type: verbatim
24151 #: ../src/guestfs-actions.pod:146
24152 #, no-wrap
24153 msgid ""
24154 " int\n"
24155 " guestfs_add_drive_opts (guestfs_h *g,\n"
24156 "                         const char *filename,\n"
24157 "                         ...);\n"
24158 "\n"
24159 msgstr ""
24160
24161 #. type: verbatim
24162 #: ../src/guestfs-actions.pod:156
24163 #, no-wrap
24164 msgid ""
24165 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24166 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24167 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24168 "\n"
24169 msgstr ""
24170
24171 #. type: textblock
24172 #: ../src/guestfs-actions.pod:185
24173 msgid ""
24174 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24175 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24176 "Possible formats include C<raw> and C<qcow2>."
24177 msgstr ""
24178
24179 #. type: textblock
24180 #: ../src/guestfs-actions.pod:196
24181 msgid ""
24182 "This rarely-used option lets you emulate the behaviour of the deprecated "
24183 "C<guestfs_add_drive_with_if> call (q.v.)"
24184 msgstr ""
24185
24186 #. type: textblock
24187 #: ../src/guestfs-actions.pod:203
24188 msgid "(Added in 1.5.23)"
24189 msgstr ""
24190
24191 #. type: =head2
24192 #: ../src/guestfs-actions.pod:205
24193 msgid "guestfs_add_drive_opts_va"
24194 msgstr ""
24195
24196 #. type: verbatim
24197 #: ../src/guestfs-actions.pod:207
24198 #, no-wrap
24199 msgid ""
24200 " int\n"
24201 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24202 "                            const char *filename,\n"
24203 "                            va_list args);\n"
24204 "\n"
24205 msgstr ""
24206
24207 #. type: textblock
24208 #: ../src/guestfs-actions.pod:212
24209 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24210 msgstr ""
24211
24212 #. type: =head2
24213 #: ../src/guestfs-actions.pod:216
24214 msgid "guestfs_add_drive_opts_argv"
24215 msgstr ""
24216
24217 #. type: verbatim
24218 #: ../src/guestfs-actions.pod:218
24219 #, no-wrap
24220 msgid ""
24221 " int\n"
24222 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24223 "                              const char *filename,\n"
24224 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
24225 "\n"
24226 msgstr ""
24227
24228 #. type: textblock
24229 #: ../src/guestfs-actions.pod:223
24230 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24231 msgstr ""
24232
24233 #. type: =head2
24234 #: ../src/guestfs-actions.pod:227
24235 msgid "guestfs_add_drive_ro"
24236 msgstr ""
24237
24238 #. type: verbatim
24239 #: ../src/guestfs-actions.pod:229
24240 #, no-wrap
24241 msgid ""
24242 " int\n"
24243 " guestfs_add_drive_ro (guestfs_h *g,\n"
24244 "                       const char *filename);\n"
24245 "\n"
24246 msgstr ""
24247
24248 #. type: textblock
24249 #: ../src/guestfs-actions.pod:233
24250 msgid ""
24251 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24252 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24253 "disk is added read-only, with the format being detected automatically."
24254 msgstr ""
24255
24256 #. type: textblock
24257 #: ../src/guestfs-actions.pod:240
24258 msgid "(Added in 1.0.38)"
24259 msgstr ""
24260
24261 #. type: =head2
24262 #: ../src/guestfs-actions.pod:242
24263 msgid "guestfs_add_drive_ro_with_if"
24264 msgstr ""
24265
24266 #. type: verbatim
24267 #: ../src/guestfs-actions.pod:244
24268 #, no-wrap
24269 msgid ""
24270 " int\n"
24271 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
24272 "                               const char *filename,\n"
24273 "                               const char *iface);\n"
24274 "\n"
24275 msgstr ""
24276
24277 #. type: textblock
24278 #: ../src/guestfs-actions.pod:256
24279 msgid ""
24280 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
24281 "QEMU interface emulation to use at run time."
24282 msgstr ""
24283
24284 #. type: textblock
24285 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
24286 #: ../src/guestfs-actions.pod:2580
24287 msgid "(Added in 1.0.84)"
24288 msgstr ""
24289
24290 #. type: =head2
24291 #: ../src/guestfs-actions.pod:263
24292 msgid "guestfs_add_drive_with_if"
24293 msgstr ""
24294
24295 #. type: verbatim
24296 #: ../src/guestfs-actions.pod:265
24297 #, no-wrap
24298 msgid ""
24299 " int\n"
24300 " guestfs_add_drive_with_if (guestfs_h *g,\n"
24301 "                            const char *filename,\n"
24302 "                            const char *iface);\n"
24303 "\n"
24304 msgstr ""
24305
24306 #. type: textblock
24307 #: ../src/guestfs-actions.pod:277
24308 msgid ""
24309 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24310 "QEMU interface emulation to use at run time."
24311 msgstr ""
24312
24313 #. type: =head2
24314 #: ../src/guestfs-actions.pod:284
24315 msgid "guestfs_aug_clear"
24316 msgstr ""
24317
24318 #. type: verbatim
24319 #: ../src/guestfs-actions.pod:286
24320 #, no-wrap
24321 msgid ""
24322 " int\n"
24323 " guestfs_aug_clear (guestfs_h *g,\n"
24324 "                    const char *augpath);\n"
24325 "\n"
24326 msgstr ""
24327
24328 #. type: textblock
24329 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
24330 msgid "(Added in 1.3.4)"
24331 msgstr ""
24332
24333 #. type: =head2
24334 #: ../src/guestfs-actions.pod:297
24335 msgid "guestfs_aug_close"
24336 msgstr ""
24337
24338 #. type: verbatim
24339 #: ../src/guestfs-actions.pod:299
24340 #, no-wrap
24341 msgid ""
24342 " int\n"
24343 " guestfs_aug_close (guestfs_h *g);\n"
24344 "\n"
24345 msgstr ""
24346
24347 #. type: textblock
24348 #: ../src/guestfs-actions.pod:302
24349 msgid ""
24350 "Close the current Augeas handle and free up any resources used by it.  After "
24351 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24352 "any other Augeas functions."
24353 msgstr ""
24354
24355 #. type: textblock
24356 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
24357 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
24358 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
24359 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
24360 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
24361 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
24362 #: ../src/guestfs-actions.pod:5989
24363 msgid "(Added in 0.7)"
24364 msgstr ""
24365
24366 #. type: =head2
24367 #: ../src/guestfs-actions.pod:311
24368 msgid "guestfs_aug_defnode"
24369 msgstr ""
24370
24371 #. type: verbatim
24372 #: ../src/guestfs-actions.pod:313
24373 #, no-wrap
24374 msgid ""
24375 " struct guestfs_int_bool *\n"
24376 " guestfs_aug_defnode (guestfs_h *g,\n"
24377 "                      const char *name,\n"
24378 "                      const char *expr,\n"
24379 "                      const char *val);\n"
24380 "\n"
24381 msgstr ""
24382
24383 #. type: textblock
24384 #: ../src/guestfs-actions.pod:322
24385 msgid ""
24386 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24387 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
24388 "containing that single node."
24389 msgstr ""
24390
24391 #. type: textblock
24392 #: ../src/guestfs-actions.pod:330
24393 msgid ""
24394 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24395 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
24396 msgstr ""
24397
24398 #. type: =head2
24399 #: ../src/guestfs-actions.pod:336
24400 msgid "guestfs_aug_defvar"
24401 msgstr ""
24402
24403 #. type: verbatim
24404 #: ../src/guestfs-actions.pod:338
24405 #, no-wrap
24406 msgid ""
24407 " int\n"
24408 " guestfs_aug_defvar (guestfs_h *g,\n"
24409 "                     const char *name,\n"
24410 "                     const char *expr);\n"
24411 "\n"
24412 msgstr ""
24413
24414 #. type: =head2
24415 #: ../src/guestfs-actions.pod:354
24416 msgid "guestfs_aug_get"
24417 msgstr ""
24418
24419 #. type: verbatim
24420 #: ../src/guestfs-actions.pod:356
24421 #, no-wrap
24422 msgid ""
24423 " char *\n"
24424 " guestfs_aug_get (guestfs_h *g,\n"
24425 "                  const char *augpath);\n"
24426 "\n"
24427 msgstr ""
24428
24429 #. type: textblock
24430 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
24431 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
24432 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
24433 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382
24434 #: ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535
24435 #: ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835
24436 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015
24437 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125
24438 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331
24439 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749
24440 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2947
24441 #: ../src/guestfs-actions.pod:2966 ../src/guestfs-actions.pod:3180
24442 #: ../src/guestfs-actions.pod:3208 ../src/guestfs-actions.pod:3229
24443 #: ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3322
24444 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3362
24445 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4342
24446 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4622
24447 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5717
24448 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:6065
24449 #: ../src/guestfs-actions.pod:6114 ../src/guestfs-actions.pod:6786
24450 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6826
24451 #: ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:7524
24452 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7561
24453 #: ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:8052
24454 msgid ""
24455 "This function returns a string, or NULL on error.  I<The caller must free "
24456 "the returned string after use>."
24457 msgstr ""
24458
24459 #. type: =head2
24460 #: ../src/guestfs-actions.pod:368
24461 msgid "guestfs_aug_init"
24462 msgstr ""
24463
24464 #. type: verbatim
24465 #: ../src/guestfs-actions.pod:370
24466 #, no-wrap
24467 msgid ""
24468 " int\n"
24469 " guestfs_aug_init (guestfs_h *g,\n"
24470 "                   const char *root,\n"
24471 "                   int flags);\n"
24472 "\n"
24473 msgstr ""
24474
24475 #. type: textblock
24476 #: ../src/guestfs-actions.pod:379
24477 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24478 msgstr ""
24479
24480 #. type: textblock
24481 #: ../src/guestfs-actions.pod:404
24482 msgid ""
24483 "This option is only useful when debugging Augeas lenses.  Use of this option "
24484 "may require additional memory for the libguestfs appliance.  You may need to "
24485 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24486 "C<guestfs_set_memsize>."
24487 msgstr ""
24488
24489 #. type: textblock
24490 #: ../src/guestfs-actions.pod:419
24491 msgid "Do not load the tree in C<guestfs_aug_init>."
24492 msgstr ""
24493
24494 #. type: textblock
24495 #: ../src/guestfs-actions.pod:423
24496 msgid "To close the handle, you can call C<guestfs_aug_close>."
24497 msgstr ""
24498
24499 #. type: =head2
24500 #: ../src/guestfs-actions.pod:431
24501 msgid "guestfs_aug_insert"
24502 msgstr ""
24503
24504 #. type: verbatim
24505 #: ../src/guestfs-actions.pod:433
24506 #, no-wrap
24507 msgid ""
24508 " int\n"
24509 " guestfs_aug_insert (guestfs_h *g,\n"
24510 "                     const char *augpath,\n"
24511 "                     const char *label,\n"
24512 "                     int before);\n"
24513 "\n"
24514 msgstr ""
24515
24516 #. type: =head2
24517 #: ../src/guestfs-actions.pod:451
24518 msgid "guestfs_aug_load"
24519 msgstr ""
24520
24521 #. type: verbatim
24522 #: ../src/guestfs-actions.pod:453
24523 #, no-wrap
24524 msgid ""
24525 " int\n"
24526 " guestfs_aug_load (guestfs_h *g);\n"
24527 "\n"
24528 msgstr ""
24529
24530 #. type: =head2
24531 #: ../src/guestfs-actions.pod:465
24532 msgid "guestfs_aug_ls"
24533 msgstr ""
24534
24535 #. type: verbatim
24536 #: ../src/guestfs-actions.pod:467
24537 #, no-wrap
24538 msgid ""
24539 " char **\n"
24540 " guestfs_aug_ls (guestfs_h *g,\n"
24541 "                 const char *augpath);\n"
24542 "\n"
24543 msgstr ""
24544
24545 #. type: textblock
24546 #: ../src/guestfs-actions.pod:471
24547 msgid ""
24548 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24549 "sorting the resulting nodes into alphabetical order."
24550 msgstr ""
24551
24552 #. type: textblock
24553 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
24554 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
24555 #: ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569
24556 #: ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691
24557 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403
24558 #: ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438
24559 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527
24560 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647
24561 #: ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:3282
24562 #: ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3872
24563 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909
24564 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4076
24565 #: ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:5241
24566 #: ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5985
24567 #: ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6866
24568 #: ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:6982
24569 #: ../src/guestfs-actions.pod:7128 ../src/guestfs-actions.pod:7152
24570 #: ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:7648
24571 #: ../src/guestfs-actions.pod:7695 ../src/guestfs-actions.pod:7889
24572 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8002
24573 #: ../src/guestfs-actions.pod:8021 ../src/guestfs-actions.pod:8067
24574 #: ../src/guestfs-actions.pod:8086
24575 msgid ""
24576 "This function returns a NULL-terminated array of strings (like L<environ(3)"
24577 ">), or NULL if there was an error.  I<The caller must free the strings and "
24578 "the array after use>."
24579 msgstr ""
24580
24581 #. type: textblock
24582 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
24583 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607
24584 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3667
24585 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4375
24586 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4595
24587 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:5245
24588 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:6197
24589 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6223
24590 #: ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:7366
24591 #: ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7612
24592 #: ../src/guestfs-actions.pod:7877
24593 msgid "(Added in 0.8)"
24594 msgstr ""
24595
24596 #. type: =head2
24597 #: ../src/guestfs-actions.pod:480
24598 msgid "guestfs_aug_match"
24599 msgstr ""
24600
24601 #. type: verbatim
24602 #: ../src/guestfs-actions.pod:482
24603 #, no-wrap
24604 msgid ""
24605 " char **\n"
24606 " guestfs_aug_match (guestfs_h *g,\n"
24607 "                    const char *augpath);\n"
24608 "\n"
24609 msgstr ""
24610
24611 #. type: =head2
24612 #: ../src/guestfs-actions.pod:496
24613 msgid "guestfs_aug_mv"
24614 msgstr ""
24615
24616 #. type: verbatim
24617 #: ../src/guestfs-actions.pod:498
24618 #, no-wrap
24619 msgid ""
24620 " int\n"
24621 " guestfs_aug_mv (guestfs_h *g,\n"
24622 "                 const char *src,\n"
24623 "                 const char *dest);\n"
24624 "\n"
24625 msgstr ""
24626
24627 #. type: =head2
24628 #: ../src/guestfs-actions.pod:510
24629 msgid "guestfs_aug_rm"
24630 msgstr ""
24631
24632 #. type: verbatim
24633 #: ../src/guestfs-actions.pod:512
24634 #, no-wrap
24635 msgid ""
24636 " int\n"
24637 " guestfs_aug_rm (guestfs_h *g,\n"
24638 "                 const char *augpath);\n"
24639 "\n"
24640 msgstr ""
24641
24642 #. type: =head2
24643 #: ../src/guestfs-actions.pod:524
24644 msgid "guestfs_aug_save"
24645 msgstr ""
24646
24647 #. type: verbatim
24648 #: ../src/guestfs-actions.pod:526
24649 #, no-wrap
24650 msgid ""
24651 " int\n"
24652 " guestfs_aug_save (guestfs_h *g);\n"
24653 "\n"
24654 msgstr ""
24655
24656 #. type: textblock
24657 #: ../src/guestfs-actions.pod:531
24658 msgid ""
24659 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24660 "are saved."
24661 msgstr ""
24662
24663 #. type: =head2
24664 #: ../src/guestfs-actions.pod:538
24665 msgid "guestfs_aug_set"
24666 msgstr ""
24667
24668 #. type: verbatim
24669 #: ../src/guestfs-actions.pod:540
24670 #, no-wrap
24671 msgid ""
24672 " int\n"
24673 " guestfs_aug_set (guestfs_h *g,\n"
24674 "                  const char *augpath,\n"
24675 "                  const char *val);\n"
24676 "\n"
24677 msgstr ""
24678
24679 #. type: textblock
24680 #: ../src/guestfs-actions.pod:547
24681 msgid ""
24682 "In the Augeas API, it is possible to clear a node by setting the value to "
24683 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24684 "this call.  Instead you must use the C<guestfs_aug_clear> call."
24685 msgstr ""
24686
24687 #. type: =head2
24688 #: ../src/guestfs-actions.pod:556
24689 msgid "guestfs_available"
24690 msgstr ""
24691
24692 #. type: verbatim
24693 #: ../src/guestfs-actions.pod:558
24694 #, no-wrap
24695 msgid ""
24696 " int\n"
24697 " guestfs_available (guestfs_h *g,\n"
24698 "                    char *const *groups);\n"
24699 "\n"
24700 msgstr ""
24701
24702 #. type: textblock
24703 #: ../src/guestfs-actions.pod:566
24704 msgid ""
24705 "The libguestfs groups, and the functions that those groups correspond to, "
24706 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24707 "runtime by calling C<guestfs_available_all_groups>."
24708 msgstr ""
24709
24710 #. type: textblock
24711 #: ../src/guestfs-actions.pod:590
24712 msgid "You must call C<guestfs_launch> before calling this function."
24713 msgstr ""
24714
24715 #. type: textblock
24716 #: ../src/guestfs-actions.pod:612
24717 msgid ""
24718 "This call was added in version C<1.0.80>.  In previous versions of "
24719 "libguestfs all you could do would be to speculatively execute a command to "
24720 "find out if the daemon implemented it.  See also C<guestfs_version>."
24721 msgstr ""
24722
24723 #. type: textblock
24724 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
24725 msgid "(Added in 1.0.80)"
24726 msgstr ""
24727
24728 #. type: =head2
24729 #: ../src/guestfs-actions.pod:623
24730 msgid "guestfs_available_all_groups"
24731 msgstr ""
24732
24733 #. type: verbatim
24734 #: ../src/guestfs-actions.pod:625
24735 #, no-wrap
24736 msgid ""
24737 " char **\n"
24738 " guestfs_available_all_groups (guestfs_h *g);\n"
24739 "\n"
24740 msgstr ""
24741
24742 #. type: textblock
24743 #: ../src/guestfs-actions.pod:628
24744 msgid ""
24745 "This command returns a list of all optional groups that this daemon knows "
24746 "about.  Note this returns both supported and unsupported groups.  To find "
24747 "out which ones the daemon can actually support you have to call "
24748 "C<guestfs_available> on each member of the returned list."
24749 msgstr ""
24750
24751 #. type: textblock
24752 #: ../src/guestfs-actions.pod:634
24753 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24754 msgstr ""
24755
24756 #. type: textblock
24757 #: ../src/guestfs-actions.pod:640
24758 msgid "(Added in 1.3.15)"
24759 msgstr ""
24760
24761 #. type: =head2
24762 #: ../src/guestfs-actions.pod:642
24763 msgid "guestfs_base64_in"
24764 msgstr ""
24765
24766 #. type: verbatim
24767 #: ../src/guestfs-actions.pod:644
24768 #, no-wrap
24769 msgid ""
24770 " int\n"
24771 " guestfs_base64_in (guestfs_h *g,\n"
24772 "                    const char *base64file,\n"
24773 "                    const char *filename);\n"
24774 "\n"
24775 msgstr ""
24776
24777 #. type: textblock
24778 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24779 msgid "(Added in 1.3.5)"
24780 msgstr ""
24781
24782 #. type: =head2
24783 #: ../src/guestfs-actions.pod:656
24784 msgid "guestfs_base64_out"
24785 msgstr ""
24786
24787 #. type: verbatim
24788 #: ../src/guestfs-actions.pod:658
24789 #, no-wrap
24790 msgid ""
24791 " int\n"
24792 " guestfs_base64_out (guestfs_h *g,\n"
24793 "                     const char *filename,\n"
24794 "                     const char *base64file);\n"
24795 "\n"
24796 msgstr ""
24797
24798 #. type: =head2
24799 #: ../src/guestfs-actions.pod:670
24800 msgid "guestfs_blockdev_flushbufs"
24801 msgstr ""
24802
24803 #. type: verbatim
24804 #: ../src/guestfs-actions.pod:672
24805 #, no-wrap
24806 msgid ""
24807 " int\n"
24808 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24809 "                             const char *device);\n"
24810 "\n"
24811 msgstr ""
24812
24813 #. type: textblock
24814 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24815 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24816 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24817 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24818 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24819 msgid "(Added in 0.9.3)"
24820 msgstr ""
24821
24822 #. type: =head2
24823 #: ../src/guestfs-actions.pod:685
24824 msgid "guestfs_blockdev_getbsz"
24825 msgstr ""
24826
24827 #. type: verbatim
24828 #: ../src/guestfs-actions.pod:687
24829 #, no-wrap
24830 msgid ""
24831 " int\n"
24832 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24833 "                          const char *device);\n"
24834 "\n"
24835 msgstr ""
24836
24837 #. type: =head2
24838 #: ../src/guestfs-actions.pod:702
24839 msgid "guestfs_blockdev_getro"
24840 msgstr ""
24841
24842 #. type: verbatim
24843 #: ../src/guestfs-actions.pod:704
24844 #, no-wrap
24845 msgid ""
24846 " int\n"
24847 " guestfs_blockdev_getro (guestfs_h *g,\n"
24848 "                         const char *device);\n"
24849 "\n"
24850 msgstr ""
24851
24852 #. type: textblock
24853 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590
24854 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094
24855 #: ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177
24856 #: ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243
24857 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294
24858 #: ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3379
24859 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3413
24860 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3589
24861 #: ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:3618
24862 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3649
24863 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:3679
24864 #: ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3706
24865 #: ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3736
24866 #: ../src/guestfs-actions.pod:3749 ../src/guestfs-actions.pod:3763
24867 #: ../src/guestfs-actions.pod:5482
24868 msgid "This function returns a C truth value on success or -1 on error."
24869 msgstr ""
24870
24871 #. type: =head2
24872 #: ../src/guestfs-actions.pod:717
24873 msgid "guestfs_blockdev_getsize64"
24874 msgstr ""
24875
24876 #. type: verbatim
24877 #: ../src/guestfs-actions.pod:719
24878 #, no-wrap
24879 msgid ""
24880 " int64_t\n"
24881 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24882 "                             const char *device);\n"
24883 "\n"
24884 msgstr ""
24885
24886 #. type: textblock
24887 #: ../src/guestfs-actions.pod:725
24888 msgid "See also C<guestfs_blockdev_getsz>."
24889 msgstr ""
24890
24891 #. type: =head2
24892 #: ../src/guestfs-actions.pod:733
24893 msgid "guestfs_blockdev_getss"
24894 msgstr ""
24895
24896 #. type: verbatim
24897 #: ../src/guestfs-actions.pod:735
24898 #, no-wrap
24899 msgid ""
24900 " int\n"
24901 " guestfs_blockdev_getss (guestfs_h *g,\n"
24902 "                         const char *device);\n"
24903 "\n"
24904 msgstr ""
24905
24906 #. type: textblock
24907 #: ../src/guestfs-actions.pod:742
24908 msgid ""
24909 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24910 "that)."
24911 msgstr ""
24912
24913 #. type: =head2
24914 #: ../src/guestfs-actions.pod:751
24915 msgid "guestfs_blockdev_getsz"
24916 msgstr ""
24917
24918 #. type: verbatim
24919 #: ../src/guestfs-actions.pod:753
24920 #, no-wrap
24921 msgid ""
24922 " int64_t\n"
24923 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24924 "                         const char *device);\n"
24925 "\n"
24926 msgstr ""
24927
24928 #. type: textblock
24929 #: ../src/guestfs-actions.pod:760
24930 msgid ""
24931 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24932 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24933 msgstr ""
24934
24935 #. type: =head2
24936 #: ../src/guestfs-actions.pod:770
24937 msgid "guestfs_blockdev_rereadpt"
24938 msgstr ""
24939
24940 #. type: verbatim
24941 #: ../src/guestfs-actions.pod:772
24942 #, no-wrap
24943 msgid ""
24944 " int\n"
24945 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24946 "                            const char *device);\n"
24947 "\n"
24948 msgstr ""
24949
24950 #. type: =head2
24951 #: ../src/guestfs-actions.pod:784
24952 msgid "guestfs_blockdev_setbsz"
24953 msgstr ""
24954
24955 #. type: verbatim
24956 #: ../src/guestfs-actions.pod:786
24957 #, no-wrap
24958 msgid ""
24959 " int\n"
24960 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24961 "                          const char *device,\n"
24962 "                          int blocksize);\n"
24963 "\n"
24964 msgstr ""
24965
24966 #. type: =head2
24967 #: ../src/guestfs-actions.pod:802
24968 msgid "guestfs_blockdev_setro"
24969 msgstr ""
24970
24971 #. type: verbatim
24972 #: ../src/guestfs-actions.pod:804
24973 #, no-wrap
24974 msgid ""
24975 " int\n"
24976 " guestfs_blockdev_setro (guestfs_h *g,\n"
24977 "                         const char *device);\n"
24978 "\n"
24979 msgstr ""
24980
24981 #. type: =head2
24982 #: ../src/guestfs-actions.pod:816
24983 msgid "guestfs_blockdev_setrw"
24984 msgstr ""
24985
24986 #. type: verbatim
24987 #: ../src/guestfs-actions.pod:818
24988 #, no-wrap
24989 msgid ""
24990 " int\n"
24991 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24992 "                         const char *device);\n"
24993 "\n"
24994 msgstr ""
24995
24996 #. type: =head2
24997 #: ../src/guestfs-actions.pod:830
24998 msgid "guestfs_btrfs_filesystem_resize"
24999 msgstr ""
25000
25001 #. type: verbatim
25002 #: ../src/guestfs-actions.pod:832
25003 #, no-wrap
25004 msgid ""
25005 " int\n"
25006 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25007 "                                  const char *mountpoint,\n"
25008 "                                  ...);\n"
25009 "\n"
25010 msgstr ""
25011
25012 #. type: verbatim
25013 #: ../src/guestfs-actions.pod:842
25014 #, no-wrap
25015 msgid ""
25016 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25017 "\n"
25018 msgstr ""
25019
25020 #. type: textblock
25021 #: ../src/guestfs-actions.pod:865
25022 msgid "(Added in 1.11.17)"
25023 msgstr ""
25024
25025 #. type: =head2
25026 #: ../src/guestfs-actions.pod:867
25027 msgid "guestfs_btrfs_filesystem_resize_va"
25028 msgstr ""
25029
25030 #. type: verbatim
25031 #: ../src/guestfs-actions.pod:869
25032 #, no-wrap
25033 msgid ""
25034 " int\n"
25035 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25036 "                                     const char *mountpoint,\n"
25037 "                                     va_list args);\n"
25038 "\n"
25039 msgstr ""
25040
25041 #. type: textblock
25042 #: ../src/guestfs-actions.pod:874
25043 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25044 msgstr ""
25045
25046 #. type: =head2
25047 #: ../src/guestfs-actions.pod:878
25048 msgid "guestfs_btrfs_filesystem_resize_argv"
25049 msgstr ""
25050
25051 #. type: verbatim
25052 #: ../src/guestfs-actions.pod:880
25053 #, no-wrap
25054 msgid ""
25055 " int\n"
25056 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25057 "                                       const char *mountpoint,\n"
25058 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25059 "\n"
25060 msgstr ""
25061
25062 #. type: textblock
25063 #: ../src/guestfs-actions.pod:885
25064 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25065 msgstr ""
25066
25067 #. type: =head2
25068 #: ../src/guestfs-actions.pod:889
25069 msgid "guestfs_case_sensitive_path"
25070 msgstr ""
25071
25072 #. type: verbatim
25073 #: ../src/guestfs-actions.pod:891
25074 #, no-wrap
25075 msgid ""
25076 " char *\n"
25077 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25078 "                              const char *path);\n"
25079 "\n"
25080 msgstr ""
25081
25082 #. type: textblock
25083 #: ../src/guestfs-actions.pod:917
25084 msgid ""
25085 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
25086 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25087 "how the directories were originally created under Windows)."
25088 msgstr ""
25089
25090 #. type: textblock
25091 #: ../src/guestfs-actions.pod:925
25092 msgid "See also C<guestfs_realpath>."
25093 msgstr ""
25094
25095 #. type: textblock
25096 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7546
25097 msgid "(Added in 1.0.75)"
25098 msgstr ""
25099
25100 #. type: =head2
25101 #: ../src/guestfs-actions.pod:932
25102 msgid "guestfs_cat"
25103 msgstr ""
25104
25105 #. type: verbatim
25106 #: ../src/guestfs-actions.pod:934
25107 #, no-wrap
25108 msgid ""
25109 " char *\n"
25110 " guestfs_cat (guestfs_h *g,\n"
25111 "              const char *path);\n"
25112 "\n"
25113 msgstr ""
25114
25115 #. type: textblock
25116 #: ../src/guestfs-actions.pod:940
25117 msgid ""
25118 "Note that this function cannot correctly handle binary files (specifically, "
25119 "files containing C<\\0> character which is treated as end of string).  For "
25120 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25121 "functions which have a more complex interface."
25122 msgstr ""
25123
25124 #. type: textblock
25125 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3893
25126 #: ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3992
25127 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4488
25128 #: ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:5863
25129 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:7699
25130 #: ../src/guestfs-actions.pod:7713
25131 msgid "(Added in 0.4)"
25132 msgstr ""
25133
25134 #. type: =head2
25135 #: ../src/guestfs-actions.pod:953
25136 msgid "guestfs_checksum"
25137 msgstr ""
25138
25139 #. type: verbatim
25140 #: ../src/guestfs-actions.pod:955
25141 #, no-wrap
25142 msgid ""
25143 " char *\n"
25144 " guestfs_checksum (guestfs_h *g,\n"
25145 "                   const char *csumtype,\n"
25146 "                   const char *path);\n"
25147 "\n"
25148 msgstr ""
25149
25150 #. type: textblock
25151 #: ../src/guestfs-actions.pod:1001
25152 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25153 msgstr ""
25154
25155 #. type: textblock
25156 #: ../src/guestfs-actions.pod:1003
25157 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25158 msgstr ""
25159
25160 #. type: textblock
25161 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427
25162 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3591
25163 #: ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3681
25164 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:7402
25165 msgid "(Added in 1.0.2)"
25166 msgstr ""
25167
25168 #. type: =head2
25169 #: ../src/guestfs-actions.pod:1010
25170 msgid "guestfs_checksum_device"
25171 msgstr ""
25172
25173 #. type: verbatim
25174 #: ../src/guestfs-actions.pod:1012
25175 #, no-wrap
25176 msgid ""
25177 " char *\n"
25178 " guestfs_checksum_device (guestfs_h *g,\n"
25179 "                          const char *csumtype,\n"
25180 "                          const char *device);\n"
25181 "\n"
25182 msgstr ""
25183
25184 #. type: textblock
25185 #: ../src/guestfs-actions.pod:1017
25186 msgid ""
25187 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25188 "device named C<device>.  For the types of checksums supported see the "
25189 "C<guestfs_checksum> command."
25190 msgstr ""
25191
25192 #. type: textblock
25193 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5312
25194 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5484
25195 #: ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5684
25196 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7325
25197 #: ../src/guestfs-actions.pod:7725
25198 msgid "(Added in 1.3.2)"
25199 msgstr ""
25200
25201 #. type: =head2
25202 #: ../src/guestfs-actions.pod:1026
25203 msgid "guestfs_checksums_out"
25204 msgstr ""
25205
25206 #. type: verbatim
25207 #: ../src/guestfs-actions.pod:1028
25208 #, no-wrap
25209 msgid ""
25210 " int\n"
25211 " guestfs_checksums_out (guestfs_h *g,\n"
25212 "                        const char *csumtype,\n"
25213 "                        const char *directory,\n"
25214 "                        const char *sumsfile);\n"
25215 "\n"
25216 msgstr ""
25217
25218 #. type: textblock
25219 #: ../src/guestfs-actions.pod:1048
25220 msgid "(Added in 1.3.7)"
25221 msgstr ""
25222
25223 #. type: =head2
25224 #: ../src/guestfs-actions.pod:1050
25225 msgid "guestfs_chmod"
25226 msgstr ""
25227
25228 #. type: verbatim
25229 #: ../src/guestfs-actions.pod:1052
25230 #, no-wrap
25231 msgid ""
25232 " int\n"
25233 " guestfs_chmod (guestfs_h *g,\n"
25234 "                int mode,\n"
25235 "                const char *path);\n"
25236 "\n"
25237 msgstr ""
25238
25239 #. type: =head2
25240 #: ../src/guestfs-actions.pod:1070
25241 msgid "guestfs_chown"
25242 msgstr ""
25243
25244 #. type: verbatim
25245 #: ../src/guestfs-actions.pod:1072
25246 #, no-wrap
25247 msgid ""
25248 " int\n"
25249 " guestfs_chown (guestfs_h *g,\n"
25250 "                int owner,\n"
25251 "                int group,\n"
25252 "                const char *path);\n"
25253 "\n"
25254 msgstr ""
25255
25256 #. type: =head2
25257 #: ../src/guestfs-actions.pod:1088
25258 msgid "guestfs_command"
25259 msgstr ""
25260
25261 #. type: verbatim
25262 #: ../src/guestfs-actions.pod:1090
25263 #, no-wrap
25264 msgid ""
25265 " char *\n"
25266 " guestfs_command (guestfs_h *g,\n"
25267 "                  char *const *arguments);\n"
25268 "\n"
25269 msgstr ""
25270
25271 #. type: textblock
25272 #: ../src/guestfs-actions.pod:1099
25273 msgid ""
25274 "The single parameter is an argv-style list of arguments.  The first element "
25275 "is the name of the program to run.  Subsequent elements are parameters.  The "
25276 "list must be non-empty (ie. must contain a program name).  Note that the "
25277 "command runs directly, and is I<not> invoked via the shell (see "
25278 "C<guestfs_sh>)."
25279 msgstr ""
25280
25281 #. type: textblock
25282 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
25283 #: ../src/guestfs-actions.pod:1726
25284 msgid "(Added in 0.9.1)"
25285 msgstr ""
25286
25287 #. type: =head2
25288 #: ../src/guestfs-actions.pod:1132
25289 msgid "guestfs_command_lines"
25290 msgstr ""
25291
25292 #. type: verbatim
25293 #: ../src/guestfs-actions.pod:1134
25294 #, no-wrap
25295 msgid ""
25296 " char **\n"
25297 " guestfs_command_lines (guestfs_h *g,\n"
25298 "                        char *const *arguments);\n"
25299 "\n"
25300 msgstr ""
25301
25302 #. type: textblock
25303 #: ../src/guestfs-actions.pod:1138
25304 msgid ""
25305 "This is the same as C<guestfs_command>, but splits the result into a list of "
25306 "lines."
25307 msgstr ""
25308
25309 #. type: textblock
25310 #: ../src/guestfs-actions.pod:1141
25311 msgid "See also: C<guestfs_sh_lines>"
25312 msgstr ""
25313
25314 #. type: =head2
25315 #: ../src/guestfs-actions.pod:1152
25316 msgid "guestfs_compress_device_out"
25317 msgstr ""
25318
25319 #. type: verbatim
25320 #: ../src/guestfs-actions.pod:1154
25321 #, no-wrap
25322 msgid ""
25323 " int\n"
25324 " guestfs_compress_device_out (guestfs_h *g,\n"
25325 "                              const char *ctype,\n"
25326 "                              const char *device,\n"
25327 "                              const char *zdevice,\n"
25328 "                              ...);\n"
25329 "\n"
25330 msgstr ""
25331
25332 #. type: verbatim
25333 #: ../src/guestfs-actions.pod:1166
25334 #, no-wrap
25335 msgid ""
25336 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25337 "\n"
25338 msgstr ""
25339
25340 #. type: textblock
25341 #: ../src/guestfs-actions.pod:1171
25342 msgid ""
25343 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25344 "C<guestfs_compress_out>."
25345 msgstr ""
25346
25347 #. type: textblock
25348 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235
25349 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6583
25350 msgid "(Added in 1.13.15)"
25351 msgstr ""
25352
25353 #. type: =head2
25354 #: ../src/guestfs-actions.pod:1178
25355 msgid "guestfs_compress_device_out_va"
25356 msgstr ""
25357
25358 #. type: verbatim
25359 #: ../src/guestfs-actions.pod:1180
25360 #, no-wrap
25361 msgid ""
25362 " int\n"
25363 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25364 "                                 const char *ctype,\n"
25365 "                                 const char *device,\n"
25366 "                                 const char *zdevice,\n"
25367 "                                 va_list args);\n"
25368 "\n"
25369 msgstr ""
25370
25371 #. type: textblock
25372 #: ../src/guestfs-actions.pod:1187
25373 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25374 msgstr ""
25375
25376 #. type: =head2
25377 #: ../src/guestfs-actions.pod:1191
25378 msgid "guestfs_compress_device_out_argv"
25379 msgstr ""
25380
25381 #. type: verbatim
25382 #: ../src/guestfs-actions.pod:1193
25383 #, no-wrap
25384 msgid ""
25385 " int\n"
25386 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25387 "                                   const char *ctype,\n"
25388 "                                   const char *device,\n"
25389 "                                   const char *zdevice,\n"
25390 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
25391 "\n"
25392 msgstr ""
25393
25394 #. type: textblock
25395 #: ../src/guestfs-actions.pod:1200
25396 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25397 msgstr ""
25398
25399 #. type: =head2
25400 #: ../src/guestfs-actions.pod:1204
25401 msgid "guestfs_compress_out"
25402 msgstr ""
25403
25404 #. type: verbatim
25405 #: ../src/guestfs-actions.pod:1206
25406 #, no-wrap
25407 msgid ""
25408 " int\n"
25409 " guestfs_compress_out (guestfs_h *g,\n"
25410 "                       const char *ctype,\n"
25411 "                       const char *file,\n"
25412 "                       const char *zfile,\n"
25413 "                       ...);\n"
25414 "\n"
25415 msgstr ""
25416
25417 #. type: verbatim
25418 #: ../src/guestfs-actions.pod:1218
25419 #, no-wrap
25420 msgid ""
25421 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25422 "\n"
25423 msgstr ""
25424
25425 #. type: =head2
25426 #: ../src/guestfs-actions.pod:1237
25427 msgid "guestfs_compress_out_va"
25428 msgstr ""
25429
25430 #. type: verbatim
25431 #: ../src/guestfs-actions.pod:1239
25432 #, no-wrap
25433 msgid ""
25434 " int\n"
25435 " guestfs_compress_out_va (guestfs_h *g,\n"
25436 "                          const char *ctype,\n"
25437 "                          const char *file,\n"
25438 "                          const char *zfile,\n"
25439 "                          va_list args);\n"
25440 "\n"
25441 msgstr ""
25442
25443 #. type: textblock
25444 #: ../src/guestfs-actions.pod:1246
25445 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25446 msgstr ""
25447
25448 #. type: =head2
25449 #: ../src/guestfs-actions.pod:1250
25450 msgid "guestfs_compress_out_argv"
25451 msgstr ""
25452
25453 #. type: verbatim
25454 #: ../src/guestfs-actions.pod:1252
25455 #, no-wrap
25456 msgid ""
25457 " int\n"
25458 " guestfs_compress_out_argv (guestfs_h *g,\n"
25459 "                            const char *ctype,\n"
25460 "                            const char *file,\n"
25461 "                            const char *zfile,\n"
25462 "                            const struct guestfs_compress_out_argv *optargs);\n"
25463 "\n"
25464 msgstr ""
25465
25466 #. type: textblock
25467 #: ../src/guestfs-actions.pod:1259
25468 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25469 msgstr ""
25470
25471 #. type: =head2
25472 #: ../src/guestfs-actions.pod:1263
25473 msgid "guestfs_config"
25474 msgstr ""
25475
25476 #. type: verbatim
25477 #: ../src/guestfs-actions.pod:1265
25478 #, no-wrap
25479 msgid ""
25480 " int\n"
25481 " guestfs_config (guestfs_h *g,\n"
25482 "                 const char *qemuparam,\n"
25483 "                 const char *qemuvalue);\n"
25484 "\n"
25485 msgstr ""
25486
25487 #. type: =head2
25488 #: ../src/guestfs-actions.pod:1283
25489 msgid "guestfs_copy_size"
25490 msgstr ""
25491
25492 #. type: verbatim
25493 #: ../src/guestfs-actions.pod:1285
25494 #, no-wrap
25495 msgid ""
25496 " int\n"
25497 " guestfs_copy_size (guestfs_h *g,\n"
25498 "                    const char *src,\n"
25499 "                    const char *dest,\n"
25500 "                    int64_t size);\n"
25501 "\n"
25502 msgstr ""
25503
25504 #. type: textblock
25505 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422
25506 #: ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498
25507 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897
25508 #: ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:7397
25509 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7938
25510 #: ../src/guestfs-actions.pod:7961
25511 msgid ""
25512 "This long-running command can generate progress notification messages so "
25513 "that the caller can display a progress bar or indicator.  To receive these "
25514 "messages, the caller must register a progress event callback.  See L<guestfs"
25515 "(3)/GUESTFS_EVENT_PROGRESS>."
25516 msgstr ""
25517
25518 #. type: textblock
25519 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4515
25520 #: ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7632
25521 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7738
25522 msgid "(Added in 1.0.87)"
25523 msgstr ""
25524
25525 #. type: =head2
25526 #: ../src/guestfs-actions.pod:1306
25527 msgid "guestfs_cp"
25528 msgstr ""
25529
25530 #. type: verbatim
25531 #: ../src/guestfs-actions.pod:1308
25532 #, no-wrap
25533 msgid ""
25534 " int\n"
25535 " guestfs_cp (guestfs_h *g,\n"
25536 "             const char *src,\n"
25537 "             const char *dest);\n"
25538 "\n"
25539 msgstr ""
25540
25541 #. type: textblock
25542 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332
25543 #: ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478
25544 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5259
25545 #: ../src/guestfs-actions.pod:5734
25546 msgid "(Added in 1.0.18)"
25547 msgstr ""
25548
25549 #. type: =head2
25550 #: ../src/guestfs-actions.pod:1320
25551 msgid "guestfs_cp_a"
25552 msgstr ""
25553
25554 #. type: verbatim
25555 #: ../src/guestfs-actions.pod:1322
25556 #, no-wrap
25557 msgid ""
25558 " int\n"
25559 " guestfs_cp_a (guestfs_h *g,\n"
25560 "               const char *src,\n"
25561 "               const char *dest);\n"
25562 "\n"
25563 msgstr ""
25564
25565 #. type: =head2
25566 #: ../src/guestfs-actions.pod:1334
25567 msgid "guestfs_dd"
25568 msgstr ""
25569
25570 #. type: verbatim
25571 #: ../src/guestfs-actions.pod:1336
25572 #, no-wrap
25573 msgid ""
25574 " int\n"
25575 " guestfs_dd (guestfs_h *g,\n"
25576 "             const char *src,\n"
25577 "             const char *dest);\n"
25578 "\n"
25579 msgstr ""
25580
25581 #. type: textblock
25582 #: ../src/guestfs-actions.pod:1346
25583 msgid ""
25584 "If the destination is a device, it must be as large or larger than the "
25585 "source file or device, otherwise the copy will fail.  This command cannot do "
25586 "partial copies (see C<guestfs_copy_size>)."
25587 msgstr ""
25588
25589 #. type: =head2
25590 #: ../src/guestfs-actions.pod:1354
25591 msgid "guestfs_df"
25592 msgstr ""
25593
25594 #. type: verbatim
25595 #: ../src/guestfs-actions.pod:1356
25596 #, no-wrap
25597 msgid ""
25598 " char *\n"
25599 " guestfs_df (guestfs_h *g);\n"
25600 "\n"
25601 msgstr ""
25602
25603 #. type: textblock
25604 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
25605 msgid ""
25606 "This command is mostly useful for interactive sessions.  It is I<not> "
25607 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
25608 "from programs."
25609 msgstr ""
25610
25611 #. type: textblock
25612 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385
25613 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510
25614 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602
25615 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:5159
25616 #: ../src/guestfs-actions.pod:7135 ../src/guestfs-actions.pod:7159
25617 #: ../src/guestfs-actions.pod:7778 ../src/guestfs-actions.pod:7791
25618 #: ../src/guestfs-actions.pod:7804
25619 msgid "(Added in 1.0.54)"
25620 msgstr ""
25621
25622 #. type: =head2
25623 #: ../src/guestfs-actions.pod:1370
25624 msgid "guestfs_df_h"
25625 msgstr ""
25626
25627 #. type: verbatim
25628 #: ../src/guestfs-actions.pod:1372
25629 #, no-wrap
25630 msgid ""
25631 " char *\n"
25632 " guestfs_df_h (guestfs_h *g);\n"
25633 "\n"
25634 msgstr ""
25635
25636 #. type: =head2
25637 #: ../src/guestfs-actions.pod:1387
25638 msgid "guestfs_dmesg"
25639 msgstr ""
25640
25641 #. type: verbatim
25642 #: ../src/guestfs-actions.pod:1389
25643 #, no-wrap
25644 msgid ""
25645 " char *\n"
25646 " guestfs_dmesg (guestfs_h *g);\n"
25647 "\n"
25648 msgstr ""
25649
25650 #. type: textblock
25651 #: ../src/guestfs-actions.pod:1396
25652 msgid ""
25653 "Another way to get the same information is to enable verbose messages with "
25654 "C<guestfs_set_verbose> or by setting the environment variable "
25655 "C<LIBGUESTFS_DEBUG=1> before running the program."
25656 msgstr ""
25657
25658 #. type: =head2
25659 #: ../src/guestfs-actions.pod:1406
25660 msgid "guestfs_download"
25661 msgstr ""
25662
25663 #. type: verbatim
25664 #: ../src/guestfs-actions.pod:1408
25665 #, no-wrap
25666 msgid ""
25667 " int\n"
25668 " guestfs_download (guestfs_h *g,\n"
25669 "                   const char *remotefilename,\n"
25670 "                   const char *filename);\n"
25671 "\n"
25672 msgstr ""
25673
25674 #. type: textblock
25675 #: ../src/guestfs-actions.pod:1418
25676 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
25677 msgstr ""
25678
25679 #. type: =head2
25680 #: ../src/guestfs-actions.pod:1429
25681 msgid "guestfs_download_offset"
25682 msgstr ""
25683
25684 #. type: verbatim
25685 #: ../src/guestfs-actions.pod:1431
25686 #, no-wrap
25687 msgid ""
25688 " int\n"
25689 " guestfs_download_offset (guestfs_h *g,\n"
25690 "                          const char *remotefilename,\n"
25691 "                          const char *filename,\n"
25692 "                          int64_t offset,\n"
25693 "                          int64_t size);\n"
25694 "\n"
25695 msgstr ""
25696
25697 #. type: textblock
25698 #: ../src/guestfs-actions.pod:1444
25699 msgid ""
25700 "Note that there is no limit on the amount of data that can be downloaded "
25701 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
25702 "full amount unless an error occurs."
25703 msgstr ""
25704
25705 #. type: textblock
25706 #: ../src/guestfs-actions.pod:1449
25707 msgid "See also C<guestfs_download>, C<guestfs_pread>."
25708 msgstr ""
25709
25710 #. type: textblock
25711 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7436
25712 msgid "(Added in 1.5.17)"
25713 msgstr ""
25714
25715 #. type: =head2
25716 #: ../src/guestfs-actions.pod:1460
25717 msgid "guestfs_drop_caches"
25718 msgstr ""
25719
25720 #. type: verbatim
25721 #: ../src/guestfs-actions.pod:1462
25722 #, no-wrap
25723 msgid ""
25724 " int\n"
25725 " guestfs_drop_caches (guestfs_h *g,\n"
25726 "                      int whattodrop);\n"
25727 "\n"
25728 msgstr ""
25729
25730 #. type: =head2
25731 #: ../src/guestfs-actions.pod:1480
25732 msgid "guestfs_du"
25733 msgstr ""
25734
25735 #. type: verbatim
25736 #: ../src/guestfs-actions.pod:1482
25737 #, no-wrap
25738 msgid ""
25739 " int64_t\n"
25740 " guestfs_du (guestfs_h *g,\n"
25741 "             const char *path);\n"
25742 "\n"
25743 msgstr ""
25744
25745 #. type: =head2
25746 #: ../src/guestfs-actions.pod:1505
25747 msgid "guestfs_e2fsck_f"
25748 msgstr ""
25749
25750 #. type: verbatim
25751 #: ../src/guestfs-actions.pod:1507
25752 #, no-wrap
25753 msgid ""
25754 " int\n"
25755 " guestfs_e2fsck_f (guestfs_h *g,\n"
25756 "                   const char *device);\n"
25757 "\n"
25758 msgstr ""
25759
25760 #. type: textblock
25761 #: ../src/guestfs-actions.pod:1515
25762 msgid ""
25763 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
25764 "Normally you should use C<guestfs_fsck>."
25765 msgstr ""
25766
25767 #. type: textblock
25768 #: ../src/guestfs-actions.pod:1520
25769 msgid "(Added in 1.0.29)"
25770 msgstr ""
25771
25772 #. type: =head2
25773 #: ../src/guestfs-actions.pod:1522
25774 msgid "guestfs_echo_daemon"
25775 msgstr ""
25776
25777 #. type: verbatim
25778 #: ../src/guestfs-actions.pod:1524
25779 #, no-wrap
25780 msgid ""
25781 " char *\n"
25782 " guestfs_echo_daemon (guestfs_h *g,\n"
25783 "                      char *const *words);\n"
25784 "\n"
25785 msgstr ""
25786
25787 #. type: textblock
25788 #: ../src/guestfs-actions.pod:1533
25789 msgid "See also C<guestfs_ping_daemon>."
25790 msgstr ""
25791
25792 #. type: textblock
25793 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296
25794 #: ../src/guestfs-actions.pod:6607
25795 msgid "(Added in 1.0.69)"
25796 msgstr ""
25797
25798 #. type: =head2
25799 #: ../src/guestfs-actions.pod:1540
25800 msgid "guestfs_egrep"
25801 msgstr ""
25802
25803 #. type: verbatim
25804 #: ../src/guestfs-actions.pod:1542
25805 #, no-wrap
25806 msgid ""
25807 " char **\n"
25808 " guestfs_egrep (guestfs_h *g,\n"
25809 "                const char *regex,\n"
25810 "                const char *path);\n"
25811 "\n"
25812 msgstr ""
25813
25814 #. type: textblock
25815 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576
25816 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679
25817 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426
25818 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623
25819 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651
25820 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719
25821 #: ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4005
25822 #: ../src/guestfs-actions.pod:4019 ../src/guestfs-actions.pod:4032
25823 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:5047
25824 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6117
25825 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7015
25826 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7041
25827 #: ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7076
25828 #: ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7102
25829 #: ../src/guestfs-actions.pod:7896 ../src/guestfs-actions.pod:7915
25830 #: ../src/guestfs-actions.pod:8009 ../src/guestfs-actions.pod:8028
25831 #: ../src/guestfs-actions.pod:8074 ../src/guestfs-actions.pod:8093
25832 msgid "(Added in 1.0.66)"
25833 msgstr ""
25834
25835 #. type: =head2
25836 #: ../src/guestfs-actions.pod:1559
25837 msgid "guestfs_egrepi"
25838 msgstr ""
25839
25840 #. type: verbatim
25841 #: ../src/guestfs-actions.pod:1561
25842 #, no-wrap
25843 msgid ""
25844 " char **\n"
25845 " guestfs_egrepi (guestfs_h *g,\n"
25846 "                 const char *regex,\n"
25847 "                 const char *path);\n"
25848 "\n"
25849 msgstr ""
25850
25851 #. type: =head2
25852 #: ../src/guestfs-actions.pod:1578
25853 msgid "guestfs_equal"
25854 msgstr ""
25855
25856 #. type: verbatim
25857 #: ../src/guestfs-actions.pod:1580
25858 #, no-wrap
25859 msgid ""
25860 " int\n"
25861 " guestfs_equal (guestfs_h *g,\n"
25862 "                const char *file1,\n"
25863 "                const char *file2);\n"
25864 "\n"
25865 msgstr ""
25866
25867 #. type: =head2
25868 #: ../src/guestfs-actions.pod:1594
25869 msgid "guestfs_exists"
25870 msgstr ""
25871
25872 #. type: verbatim
25873 #: ../src/guestfs-actions.pod:1596
25874 #, no-wrap
25875 msgid ""
25876 " int\n"
25877 " guestfs_exists (guestfs_h *g,\n"
25878 "                 const char *path);\n"
25879 "\n"
25880 msgstr ""
25881
25882 #. type: textblock
25883 #: ../src/guestfs-actions.pod:1603
25884 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25885 msgstr ""
25886
25887 #. type: =head2
25888 #: ../src/guestfs-actions.pod:1609
25889 msgid "guestfs_fallocate"
25890 msgstr ""
25891
25892 #. type: verbatim
25893 #: ../src/guestfs-actions.pod:1611
25894 #, no-wrap
25895 msgid ""
25896 " int\n"
25897 " guestfs_fallocate (guestfs_h *g,\n"
25898 "                    const char *path,\n"
25899 "                    int len);\n"
25900 "\n"
25901 msgstr ""
25902
25903 #. type: textblock
25904 #: ../src/guestfs-actions.pod:1616
25905 msgid ""
25906 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25907 "call instead."
25908 msgstr ""
25909
25910 #. type: =head2
25911 #: ../src/guestfs-actions.pod:1635
25912 msgid "guestfs_fallocate64"
25913 msgstr ""
25914
25915 #. type: verbatim
25916 #: ../src/guestfs-actions.pod:1637
25917 #, no-wrap
25918 msgid ""
25919 " int\n"
25920 " guestfs_fallocate64 (guestfs_h *g,\n"
25921 "                      const char *path,\n"
25922 "                      int64_t len);\n"
25923 "\n"
25924 msgstr ""
25925
25926 #. type: textblock
25927 #: ../src/guestfs-actions.pod:1646
25928 msgid ""
25929 "Note that this call allocates disk blocks for the file.  To create a sparse "
25930 "file use C<guestfs_truncate_size> instead."
25931 msgstr ""
25932
25933 #. type: textblock
25934 #: ../src/guestfs-actions.pod:1649
25935 msgid ""
25936 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25937 "oversight it only allowed 30 bit lengths to be specified, effectively "
25938 "limiting the maximum size of files created through that call to 1GB."
25939 msgstr ""
25940
25941 #. type: textblock
25942 #: ../src/guestfs-actions.pod:1660
25943 msgid "(Added in 1.3.17)"
25944 msgstr ""
25945
25946 #. type: =head2
25947 #: ../src/guestfs-actions.pod:1662
25948 msgid "guestfs_fgrep"
25949 msgstr ""
25950
25951 #. type: verbatim
25952 #: ../src/guestfs-actions.pod:1664
25953 #, no-wrap
25954 msgid ""
25955 " char **\n"
25956 " guestfs_fgrep (guestfs_h *g,\n"
25957 "                const char *pattern,\n"
25958 "                const char *path);\n"
25959 "\n"
25960 msgstr ""
25961
25962 #. type: =head2
25963 #: ../src/guestfs-actions.pod:1681
25964 msgid "guestfs_fgrepi"
25965 msgstr ""
25966
25967 #. type: verbatim
25968 #: ../src/guestfs-actions.pod:1683
25969 #, no-wrap
25970 msgid ""
25971 " char **\n"
25972 " guestfs_fgrepi (guestfs_h *g,\n"
25973 "                 const char *pattern,\n"
25974 "                 const char *path);\n"
25975 "\n"
25976 msgstr ""
25977
25978 #. type: =head2
25979 #: ../src/guestfs-actions.pod:1700
25980 msgid "guestfs_file"
25981 msgstr ""
25982
25983 #. type: verbatim
25984 #: ../src/guestfs-actions.pod:1702
25985 #, no-wrap
25986 msgid ""
25987 " char *\n"
25988 " guestfs_file (guestfs_h *g,\n"
25989 "               const char *path);\n"
25990 "\n"
25991 msgstr ""
25992
25993 #. type: textblock
25994 #: ../src/guestfs-actions.pod:1720
25995 msgid ""
25996 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25997 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25998 msgstr ""
25999
26000 #. type: =head2
26001 #: ../src/guestfs-actions.pod:1728
26002 msgid "guestfs_file_architecture"
26003 msgstr ""
26004
26005 #. type: verbatim
26006 #: ../src/guestfs-actions.pod:1730
26007 #, no-wrap
26008 msgid ""
26009 " char *\n"
26010 " guestfs_file_architecture (guestfs_h *g,\n"
26011 "                            const char *filename);\n"
26012 "\n"
26013 msgstr ""
26014
26015 #. type: textblock
26016 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001
26017 #: ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752
26018 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2912
26019 #: ../src/guestfs-actions.pod:3099 ../src/guestfs-actions.pod:3117
26020 #: ../src/guestfs-actions.pod:3157 ../src/guestfs-actions.pod:3232
26021 #: ../src/guestfs-actions.pod:3325 ../src/guestfs-actions.pod:3562
26022 #: ../src/guestfs-actions.pod:3694
26023 msgid "(Added in 1.5.3)"
26024 msgstr ""
26025
26026 #. type: =head2
26027 #: ../src/guestfs-actions.pod:1840
26028 msgid "guestfs_filesize"
26029 msgstr ""
26030
26031 #. type: verbatim
26032 #: ../src/guestfs-actions.pod:1842
26033 #, no-wrap
26034 msgid ""
26035 " int64_t\n"
26036 " guestfs_filesize (guestfs_h *g,\n"
26037 "                   const char *file);\n"
26038 "\n"
26039 msgstr ""
26040
26041 #. type: textblock
26042 #: ../src/guestfs-actions.pod:1848
26043 msgid ""
26044 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
26045 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
26046 "devices, use C<guestfs_blockdev_getsize64>."
26047 msgstr ""
26048
26049 #. type: textblock
26050 #: ../src/guestfs-actions.pod:1854
26051 msgid "(Added in 1.0.82)"
26052 msgstr ""
26053
26054 #. type: =head2
26055 #: ../src/guestfs-actions.pod:1856
26056 msgid "guestfs_fill"
26057 msgstr ""
26058
26059 #. type: verbatim
26060 #: ../src/guestfs-actions.pod:1858
26061 #, no-wrap
26062 msgid ""
26063 " int\n"
26064 " guestfs_fill (guestfs_h *g,\n"
26065 "               int c,\n"
26066 "               int len,\n"
26067 "               const char *path);\n"
26068 "\n"
26069 msgstr ""
26070
26071 #. type: textblock
26072 #: ../src/guestfs-actions.pod:1868
26073 msgid ""
26074 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26075 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
26076 "bytes use C<guestfs_fill_pattern>."
26077 msgstr ""
26078
26079 #. type: textblock
26080 #: ../src/guestfs-actions.pod:1880
26081 msgid "(Added in 1.0.79)"
26082 msgstr ""
26083
26084 #. type: =head2
26085 #: ../src/guestfs-actions.pod:1882
26086 msgid "guestfs_fill_pattern"
26087 msgstr ""
26088
26089 #. type: verbatim
26090 #: ../src/guestfs-actions.pod:1884
26091 #, no-wrap
26092 msgid ""
26093 " int\n"
26094 " guestfs_fill_pattern (guestfs_h *g,\n"
26095 "                       const char *pattern,\n"
26096 "                       int len,\n"
26097 "                       const char *path);\n"
26098 "\n"
26099 msgstr ""
26100
26101 #. type: textblock
26102 #: ../src/guestfs-actions.pod:1890
26103 msgid ""
26104 "This function is like C<guestfs_fill> except that it creates a new file of "
26105 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
26106 "pattern is truncated if necessary to ensure the length of the file is "
26107 "exactly C<len> bytes."
26108 msgstr ""
26109
26110 #. type: textblock
26111 #: ../src/guestfs-actions.pod:1902
26112 msgid "(Added in 1.3.12)"
26113 msgstr ""
26114
26115 #. type: =head2
26116 #: ../src/guestfs-actions.pod:1904
26117 msgid "guestfs_find"
26118 msgstr ""
26119
26120 #. type: verbatim
26121 #: ../src/guestfs-actions.pod:1906
26122 #, no-wrap
26123 msgid ""
26124 " char **\n"
26125 " guestfs_find (guestfs_h *g,\n"
26126 "               const char *directory);\n"
26127 "\n"
26128 msgstr ""
26129
26130 #. type: textblock
26131 #: ../src/guestfs-actions.pod:1922
26132 msgid ""
26133 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
26134 msgstr ""
26135
26136 #. type: textblock
26137 #: ../src/guestfs-actions.pod:1935
26138 msgid "See also C<guestfs_find0>."
26139 msgstr ""
26140
26141 #. type: textblock
26142 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4452
26143 #: ../src/guestfs-actions.pod:6152
26144 msgid "(Added in 1.0.27)"
26145 msgstr ""
26146
26147 #. type: =head2
26148 #: ../src/guestfs-actions.pod:1946
26149 msgid "guestfs_find0"
26150 msgstr ""
26151
26152 #. type: verbatim
26153 #: ../src/guestfs-actions.pod:1948
26154 #, no-wrap
26155 msgid ""
26156 " int\n"
26157 " guestfs_find0 (guestfs_h *g,\n"
26158 "                const char *directory,\n"
26159 "                const char *files);\n"
26160 "\n"
26161 msgstr ""
26162
26163 #. type: textblock
26164 #: ../src/guestfs-actions.pod:1957
26165 msgid ""
26166 "This command works the same way as C<guestfs_find> with the following "
26167 "exceptions:"
26168 msgstr ""
26169
26170 #. type: textblock
26171 #: ../src/guestfs-actions.pod:1984
26172 msgid "(Added in 1.0.74)"
26173 msgstr ""
26174
26175 #. type: =head2
26176 #: ../src/guestfs-actions.pod:1986
26177 msgid "guestfs_findfs_label"
26178 msgstr ""
26179
26180 #. type: verbatim
26181 #: ../src/guestfs-actions.pod:1988
26182 #, no-wrap
26183 msgid ""
26184 " char *\n"
26185 " guestfs_findfs_label (guestfs_h *g,\n"
26186 "                       const char *label);\n"
26187 "\n"
26188 msgstr ""
26189
26190 #. type: textblock
26191 #: ../src/guestfs-actions.pod:1996
26192 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
26193 msgstr ""
26194
26195 #. type: =head2
26196 #: ../src/guestfs-actions.pod:2003
26197 msgid "guestfs_findfs_uuid"
26198 msgstr ""
26199
26200 #. type: verbatim
26201 #: ../src/guestfs-actions.pod:2005
26202 #, no-wrap
26203 msgid ""
26204 " char *\n"
26205 " guestfs_findfs_uuid (guestfs_h *g,\n"
26206 "                      const char *uuid);\n"
26207 "\n"
26208 msgstr ""
26209
26210 #. type: textblock
26211 #: ../src/guestfs-actions.pod:2013
26212 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
26213 msgstr ""
26214
26215 #. type: =head2
26216 #: ../src/guestfs-actions.pod:2020
26217 msgid "guestfs_fsck"
26218 msgstr ""
26219
26220 #. type: verbatim
26221 #: ../src/guestfs-actions.pod:2022
26222 #, no-wrap
26223 msgid ""
26224 " int\n"
26225 " guestfs_fsck (guestfs_h *g,\n"
26226 "               const char *fstype,\n"
26227 "               const char *device);\n"
26228 "\n"
26229 msgstr ""
26230
26231 #. type: textblock
26232 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7943
26233 msgid "(Added in 1.0.16)"
26234 msgstr ""
26235
26236 #. type: =head2
26237 #: ../src/guestfs-actions.pod:2059
26238 msgid "guestfs_get_append"
26239 msgstr ""
26240
26241 #. type: verbatim
26242 #: ../src/guestfs-actions.pod:2061
26243 #, no-wrap
26244 msgid ""
26245 " const char *\n"
26246 " guestfs_get_append (guestfs_h *g);\n"
26247 "\n"
26248 msgstr ""
26249
26250 #. type: textblock
26251 #: ../src/guestfs-actions.pod:2069
26252 msgid ""
26253 "This function returns a string which may be NULL.  There is no way to return "
26254 "an error from this function.  The string is owned by the guest handle and "
26255 "must I<not> be freed."
26256 msgstr ""
26257
26258 #. type: textblock
26259 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5830
26260 #: ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6770
26261 #: ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6805
26262 #: ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:7583
26263 #: ../src/guestfs-actions.pod:7598 ../src/guestfs-actions.pod:7990
26264 msgid "(Added in 1.0.26)"
26265 msgstr ""
26266
26267 #. type: =head2
26268 #: ../src/guestfs-actions.pod:2075
26269 msgid "guestfs_get_attach_method"
26270 msgstr ""
26271
26272 #. type: verbatim
26273 #: ../src/guestfs-actions.pod:2077
26274 #, no-wrap
26275 msgid ""
26276 " char *\n"
26277 " guestfs_get_attach_method (guestfs_h *g);\n"
26278 "\n"
26279 msgstr ""
26280
26281 #. type: textblock
26282 #: ../src/guestfs-actions.pod:2080
26283 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
26284 msgstr ""
26285
26286 #. type: textblock
26287 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6342
26288 msgid "(Added in 1.9.8)"
26289 msgstr ""
26290
26291 #. type: =head2
26292 #: ../src/guestfs-actions.pod:2087
26293 msgid "guestfs_get_autosync"
26294 msgstr ""
26295
26296 #. type: verbatim
26297 #: ../src/guestfs-actions.pod:2089
26298 #, no-wrap
26299 msgid ""
26300 " int\n"
26301 " guestfs_get_autosync (guestfs_h *g);\n"
26302 "\n"
26303 msgstr ""
26304
26305 #. type: =head2
26306 #: ../src/guestfs-actions.pod:2098
26307 msgid "guestfs_get_direct"
26308 msgstr ""
26309
26310 #. type: verbatim
26311 #: ../src/guestfs-actions.pod:2100
26312 #, no-wrap
26313 msgid ""
26314 " int\n"
26315 " guestfs_get_direct (guestfs_h *g);\n"
26316 "\n"
26317 msgstr ""
26318
26319 #. type: textblock
26320 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6383
26321 msgid "(Added in 1.0.72)"
26322 msgstr ""
26323
26324 #. type: =head2
26325 #: ../src/guestfs-actions.pod:2109
26326 msgid "guestfs_get_e2label"
26327 msgstr ""
26328
26329 #. type: verbatim
26330 #: ../src/guestfs-actions.pod:2111
26331 #, no-wrap
26332 msgid ""
26333 " char *\n"
26334 " guestfs_get_e2label (guestfs_h *g,\n"
26335 "                      const char *device);\n"
26336 "\n"
26337 msgstr ""
26338
26339 #. type: textblock
26340 #: ../src/guestfs-actions.pod:2115
26341 msgid ""
26342 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26343 "call instead."
26344 msgstr ""
26345
26346 #. type: textblock
26347 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149
26348 #: ../src/guestfs-actions.pod:6401 ../src/guestfs-actions.pod:6420
26349 msgid "(Added in 1.0.15)"
26350 msgstr ""
26351
26352 #. type: =head2
26353 #: ../src/guestfs-actions.pod:2130
26354 msgid "guestfs_get_e2uuid"
26355 msgstr ""
26356
26357 #. type: verbatim
26358 #: ../src/guestfs-actions.pod:2132
26359 #, no-wrap
26360 msgid ""
26361 " char *\n"
26362 " guestfs_get_e2uuid (guestfs_h *g,\n"
26363 "                     const char *device);\n"
26364 "\n"
26365 msgstr ""
26366
26367 #. type: textblock
26368 #: ../src/guestfs-actions.pod:2136
26369 msgid ""
26370 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26371 "call instead."
26372 msgstr ""
26373
26374 #. type: =head2
26375 #: ../src/guestfs-actions.pod:2151
26376 msgid "guestfs_get_memsize"
26377 msgstr ""
26378
26379 #. type: verbatim
26380 #: ../src/guestfs-actions.pod:2153
26381 #, no-wrap
26382 msgid ""
26383 " int\n"
26384 " guestfs_get_memsize (guestfs_h *g);\n"
26385 "\n"
26386 msgstr ""
26387
26388 #. type: textblock
26389 #: ../src/guestfs-actions.pod:2159
26390 msgid ""
26391 "If C<guestfs_set_memsize> was not called on this handle, and if "
26392 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26393 "value for memsize."
26394 msgstr ""
26395
26396 #. type: textblock
26397 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4743
26398 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4971
26399 #: ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5002
26400 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5032
26401 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6441
26402 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:7352
26403 msgid "(Added in 1.0.55)"
26404 msgstr ""
26405
26406 #. type: =head2
26407 #: ../src/guestfs-actions.pod:2170
26408 msgid "guestfs_get_network"
26409 msgstr ""
26410
26411 #. type: verbatim
26412 #: ../src/guestfs-actions.pod:2172
26413 #, no-wrap
26414 msgid ""
26415 " int\n"
26416 " guestfs_get_network (guestfs_h *g);\n"
26417 "\n"
26418 msgstr ""
26419
26420 #. type: textblock
26421 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6460
26422 msgid "(Added in 1.5.4)"
26423 msgstr ""
26424
26425 #. type: =head2
26426 #: ../src/guestfs-actions.pod:2181
26427 msgid "guestfs_get_path"
26428 msgstr ""
26429
26430 #. type: verbatim
26431 #: ../src/guestfs-actions.pod:2183
26432 #, no-wrap
26433 msgid ""
26434 " const char *\n"
26435 " guestfs_get_path (guestfs_h *g);\n"
26436 "\n"
26437 msgstr ""
26438
26439 #. type: textblock
26440 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
26441 msgid ""
26442 "This function returns a string, or NULL on error.  The string is owned by "
26443 "the guest handle and must I<not> be freed."
26444 msgstr ""
26445
26446 #. type: =head2
26447 #: ../src/guestfs-actions.pod:2196
26448 msgid "guestfs_get_pgroup"
26449 msgstr ""
26450
26451 #. type: verbatim
26452 #: ../src/guestfs-actions.pod:2198
26453 #, no-wrap
26454 msgid ""
26455 " int\n"
26456 " guestfs_get_pgroup (guestfs_h *g);\n"
26457 "\n"
26458 msgstr ""
26459
26460 #. type: textblock
26461 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6496
26462 #: ../src/guestfs-actions.pod:7844
26463 msgid "(Added in 1.11.18)"
26464 msgstr ""
26465
26466 #. type: =head2
26467 #: ../src/guestfs-actions.pod:2207
26468 msgid "guestfs_get_pid"
26469 msgstr ""
26470
26471 #. type: verbatim
26472 #: ../src/guestfs-actions.pod:2209
26473 #, no-wrap
26474 msgid ""
26475 " int\n"
26476 " guestfs_get_pid (guestfs_h *g);\n"
26477 "\n"
26478 msgstr ""
26479
26480 #. type: textblock
26481 #: ../src/guestfs-actions.pod:2219
26482 msgid "(Added in 1.0.56)"
26483 msgstr ""
26484
26485 #. type: =head2
26486 #: ../src/guestfs-actions.pod:2221
26487 msgid "guestfs_get_qemu"
26488 msgstr ""
26489
26490 #. type: verbatim
26491 #: ../src/guestfs-actions.pod:2223
26492 #, no-wrap
26493 msgid ""
26494 " const char *\n"
26495 " guestfs_get_qemu (guestfs_h *g);\n"
26496 "\n"
26497 msgstr ""
26498
26499 #. type: textblock
26500 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6524
26501 msgid "(Added in 1.0.6)"
26502 msgstr ""
26503
26504 #. type: =head2
26505 #: ../src/guestfs-actions.pod:2236
26506 msgid "guestfs_get_recovery_proc"
26507 msgstr ""
26508
26509 #. type: verbatim
26510 #: ../src/guestfs-actions.pod:2238
26511 #, no-wrap
26512 msgid ""
26513 " int\n"
26514 " guestfs_get_recovery_proc (guestfs_h *g);\n"
26515 "\n"
26516 msgstr ""
26517
26518 #. type: textblock
26519 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3816
26520 #: ../src/guestfs-actions.pod:4147 ../src/guestfs-actions.pod:4550
26521 #: ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:5760
26522 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6548
26523 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7275
26524 #: ../src/guestfs-actions.pod:7467
26525 msgid "(Added in 1.0.77)"
26526 msgstr ""
26527
26528 #. type: =head2
26529 #: ../src/guestfs-actions.pod:2247
26530 msgid "guestfs_get_selinux"
26531 msgstr ""
26532
26533 #. type: verbatim
26534 #: ../src/guestfs-actions.pod:2249
26535 #, no-wrap
26536 msgid ""
26537 " int\n"
26538 " guestfs_get_selinux (guestfs_h *g);\n"
26539 "\n"
26540 msgstr ""
26541
26542 #. type: textblock
26543 #: ../src/guestfs-actions.pod:2252
26544 msgid ""
26545 "This returns the current setting of the selinux flag which is passed to the "
26546 "appliance at boot time.  See C<guestfs_set_selinux>."
26547 msgstr ""
26548
26549 #. type: textblock
26550 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334
26551 #: ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6641
26552 msgid "(Added in 1.0.67)"
26553 msgstr ""
26554
26555 #. type: =head2
26556 #: ../src/guestfs-actions.pod:2262
26557 msgid "guestfs_get_smp"
26558 msgstr ""
26559
26560 #. type: verbatim
26561 #: ../src/guestfs-actions.pod:2264
26562 #, no-wrap
26563 msgid ""
26564 " int\n"
26565 " guestfs_get_smp (guestfs_h *g);\n"
26566 "\n"
26567 msgstr ""
26568
26569 #. type: =head2
26570 #: ../src/guestfs-actions.pod:2273
26571 msgid "guestfs_get_state"
26572 msgstr ""
26573
26574 #. type: verbatim
26575 #: ../src/guestfs-actions.pod:2275
26576 #, no-wrap
26577 msgid ""
26578 " int\n"
26579 " guestfs_get_state (guestfs_h *g);\n"
26580 "\n"
26581 msgstr ""
26582
26583 #. type: =head2
26584 #: ../src/guestfs-actions.pod:2287
26585 msgid "guestfs_get_trace"
26586 msgstr ""
26587
26588 #. type: verbatim
26589 #: ../src/guestfs-actions.pod:2289
26590 #, no-wrap
26591 msgid ""
26592 " int\n"
26593 " guestfs_get_trace (guestfs_h *g);\n"
26594 "\n"
26595 msgstr ""
26596
26597 #. type: =head2
26598 #: ../src/guestfs-actions.pod:2298
26599 msgid "guestfs_get_umask"
26600 msgstr ""
26601
26602 #. type: verbatim
26603 #: ../src/guestfs-actions.pod:2300
26604 #, no-wrap
26605 msgid ""
26606 " int\n"
26607 " guestfs_get_umask (guestfs_h *g);\n"
26608 "\n"
26609 msgstr ""
26610
26611 #. type: textblock
26612 #: ../src/guestfs-actions.pod:2303
26613 msgid ""
26614 "Return the current umask.  By default the umask is C<022> unless it has been "
26615 "set by calling C<guestfs_umask>."
26616 msgstr ""
26617
26618 #. type: =head2
26619 #: ../src/guestfs-actions.pod:2310
26620 msgid "guestfs_get_verbose"
26621 msgstr ""
26622
26623 #. type: verbatim
26624 #: ../src/guestfs-actions.pod:2312
26625 #, no-wrap
26626 msgid ""
26627 " int\n"
26628 " guestfs_get_verbose (guestfs_h *g);\n"
26629 "\n"
26630 msgstr ""
26631
26632 #. type: =head2
26633 #: ../src/guestfs-actions.pod:2321
26634 msgid "guestfs_getcon"
26635 msgstr ""
26636
26637 #. type: verbatim
26638 #: ../src/guestfs-actions.pod:2323
26639 #, no-wrap
26640 msgid ""
26641 " char *\n"
26642 " guestfs_getcon (guestfs_h *g);\n"
26643 "\n"
26644 msgstr ""
26645
26646 #. type: textblock
26647 #: ../src/guestfs-actions.pod:2328
26648 msgid ""
26649 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
26650 msgstr ""
26651
26652 #. type: =head2
26653 #: ../src/guestfs-actions.pod:2336
26654 msgid "guestfs_getxattr"
26655 msgstr ""
26656
26657 #. type: verbatim
26658 #: ../src/guestfs-actions.pod:2338
26659 #, no-wrap
26660 msgid ""
26661 " char *\n"
26662 " guestfs_getxattr (guestfs_h *g,\n"
26663 "                   const char *path,\n"
26664 "                   const char *name,\n"
26665 "                   size_t *size_r);\n"
26666 "\n"
26667 msgstr ""
26668
26669 #. type: textblock
26670 #: ../src/guestfs-actions.pod:2344
26671 msgid ""
26672 "Get a single extended attribute from file C<path> named C<name>.  This call "
26673 "follows symlinks.  If you want to lookup an extended attribute for the "
26674 "symlink itself, use C<guestfs_lgetxattr>."
26675 msgstr ""
26676
26677 #. type: textblock
26678 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3830
26679 msgid ""
26680 "Normally it is better to get all extended attributes from a file in one go "
26681 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
26682 "implementations are buggy and do not provide a way to list out attributes.  "
26683 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
26684 "extended attributes you want in advance and call this function."
26685 msgstr ""
26686
26687 #. type: textblock
26688 #: ../src/guestfs-actions.pod:2358
26689 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
26690 msgstr ""
26691
26692 #. type: textblock
26693 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573
26694 #: ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3842
26695 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5779
26696 #: ../src/guestfs-actions.pod:5960
26697 msgid ""
26698 "This function returns a buffer, or NULL on error.  The size of the returned "
26699 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
26700 "after use>."
26701 msgstr ""
26702
26703 #. type: textblock
26704 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3846
26705 msgid "(Added in 1.7.24)"
26706 msgstr ""
26707
26708 #. type: =head2
26709 #: ../src/guestfs-actions.pod:2366
26710 msgid "guestfs_getxattrs"
26711 msgstr ""
26712
26713 #. type: verbatim
26714 #: ../src/guestfs-actions.pod:2368
26715 #, no-wrap
26716 msgid ""
26717 " struct guestfs_xattr_list *\n"
26718 " guestfs_getxattrs (guestfs_h *g,\n"
26719 "                    const char *path);\n"
26720 "\n"
26721 msgstr ""
26722
26723 #. type: textblock
26724 #: ../src/guestfs-actions.pod:2378
26725 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
26726 msgstr ""
26727
26728 #. type: textblock
26729 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3858
26730 #: ../src/guestfs-actions.pod:4546
26731 msgid ""
26732 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
26733 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
26734 msgstr ""
26735
26736 #. type: textblock
26737 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3862
26738 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4097
26739 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6660
26740 #: ../src/guestfs-actions.pod:8055
26741 msgid "(Added in 1.0.59)"
26742 msgstr ""
26743
26744 #. type: =head2
26745 #: ../src/guestfs-actions.pod:2386
26746 msgid "guestfs_glob_expand"
26747 msgstr ""
26748
26749 #. type: verbatim
26750 #: ../src/guestfs-actions.pod:2388
26751 #, no-wrap
26752 msgid ""
26753 " char **\n"
26754 " guestfs_glob_expand (guestfs_h *g,\n"
26755 "                      const char *pattern);\n"
26756 "\n"
26757 msgstr ""
26758
26759 #. type: textblock
26760 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6853
26761 #: ../src/guestfs-actions.pod:6870
26762 msgid "(Added in 1.0.50)"
26763 msgstr ""
26764
26765 #. type: =head2
26766 #: ../src/guestfs-actions.pod:2409
26767 msgid "guestfs_grep"
26768 msgstr ""
26769
26770 #. type: verbatim
26771 #: ../src/guestfs-actions.pod:2411
26772 #, no-wrap
26773 msgid ""
26774 " char **\n"
26775 " guestfs_grep (guestfs_h *g,\n"
26776 "               const char *regex,\n"
26777 "               const char *path);\n"
26778 "\n"
26779 msgstr ""
26780
26781 #. type: =head2
26782 #: ../src/guestfs-actions.pod:2428
26783 msgid "guestfs_grepi"
26784 msgstr ""
26785
26786 #. type: verbatim
26787 #: ../src/guestfs-actions.pod:2430
26788 #, no-wrap
26789 msgid ""
26790 " char **\n"
26791 " guestfs_grepi (guestfs_h *g,\n"
26792 "                const char *regex,\n"
26793 "                const char *path);\n"
26794 "\n"
26795 msgstr ""
26796
26797 #. type: =head2
26798 #: ../src/guestfs-actions.pod:2447
26799 msgid "guestfs_grub_install"
26800 msgstr ""
26801
26802 #. type: verbatim
26803 #: ../src/guestfs-actions.pod:2449
26804 #, no-wrap
26805 msgid ""
26806 " int\n"
26807 " guestfs_grub_install (guestfs_h *g,\n"
26808 "                       const char *root,\n"
26809 "                       const char *device);\n"
26810 "\n"
26811 msgstr ""
26812
26813 #. type: textblock
26814 #: ../src/guestfs-actions.pod:2492
26815 msgid "(Added in 1.0.17)"
26816 msgstr ""
26817
26818 #. type: =head2
26819 #: ../src/guestfs-actions.pod:2494
26820 msgid "guestfs_head"
26821 msgstr ""
26822
26823 #. type: verbatim
26824 #: ../src/guestfs-actions.pod:2496
26825 #, no-wrap
26826 msgid ""
26827 " char **\n"
26828 " guestfs_head (guestfs_h *g,\n"
26829 "               const char *path);\n"
26830 "\n"
26831 msgstr ""
26832
26833 #. type: =head2
26834 #: ../src/guestfs-actions.pod:2512
26835 msgid "guestfs_head_n"
26836 msgstr ""
26837
26838 #. type: verbatim
26839 #: ../src/guestfs-actions.pod:2514
26840 #, no-wrap
26841 msgid ""
26842 " char **\n"
26843 " guestfs_head_n (guestfs_h *g,\n"
26844 "                 int nrlines,\n"
26845 "                 const char *path);\n"
26846 "\n"
26847 msgstr ""
26848
26849 #. type: =head2
26850 #: ../src/guestfs-actions.pod:2536
26851 msgid "guestfs_hexdump"
26852 msgstr ""
26853
26854 #. type: verbatim
26855 #: ../src/guestfs-actions.pod:2538
26856 #, no-wrap
26857 msgid ""
26858 " char *\n"
26859 " guestfs_hexdump (guestfs_h *g,\n"
26860 "                  const char *path);\n"
26861 "\n"
26862 msgstr ""
26863
26864 #. type: textblock
26865 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6934
26866 #: ../src/guestfs-actions.pod:6989
26867 msgid "(Added in 1.0.22)"
26868 msgstr ""
26869
26870 #. type: =head2
26871 #: ../src/guestfs-actions.pod:2553
26872 msgid "guestfs_initrd_cat"
26873 msgstr ""
26874
26875 #. type: verbatim
26876 #: ../src/guestfs-actions.pod:2555
26877 #, no-wrap
26878 msgid ""
26879 " char *\n"
26880 " guestfs_initrd_cat (guestfs_h *g,\n"
26881 "                     const char *initrdpath,\n"
26882 "                     const char *filename,\n"
26883 "                     size_t *size_r);\n"
26884 "\n"
26885 msgstr ""
26886
26887 #. type: textblock
26888 #: ../src/guestfs-actions.pod:2571
26889 msgid "See also C<guestfs_initrd_list>."
26890 msgstr ""
26891
26892 #. type: =head2
26893 #: ../src/guestfs-actions.pod:2582
26894 msgid "guestfs_initrd_list"
26895 msgstr ""
26896
26897 #. type: verbatim
26898 #: ../src/guestfs-actions.pod:2584
26899 #, no-wrap
26900 msgid ""
26901 " char **\n"
26902 " guestfs_initrd_list (guestfs_h *g,\n"
26903 "                      const char *path);\n"
26904 "\n"
26905 msgstr ""
26906
26907 #. type: =head2
26908 #: ../src/guestfs-actions.pod:2604
26909 msgid "guestfs_inotify_add_watch"
26910 msgstr ""
26911
26912 #. type: verbatim
26913 #: ../src/guestfs-actions.pod:2606
26914 #, no-wrap
26915 msgid ""
26916 " int64_t\n"
26917 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26918 "                            const char *path,\n"
26919 "                            int mask);\n"
26920 "\n"
26921 msgstr ""
26922
26923 #. type: =head2
26924 #: ../src/guestfs-actions.pod:2625
26925 msgid "guestfs_inotify_close"
26926 msgstr ""
26927
26928 #. type: verbatim
26929 #: ../src/guestfs-actions.pod:2627
26930 #, no-wrap
26931 msgid ""
26932 " int\n"
26933 " guestfs_inotify_close (guestfs_h *g);\n"
26934 "\n"
26935 msgstr ""
26936
26937 #. type: =head2
26938 #: ../src/guestfs-actions.pod:2638
26939 msgid "guestfs_inotify_files"
26940 msgstr ""
26941
26942 #. type: verbatim
26943 #: ../src/guestfs-actions.pod:2640
26944 #, no-wrap
26945 msgid ""
26946 " char **\n"
26947 " guestfs_inotify_files (guestfs_h *g);\n"
26948 "\n"
26949 msgstr ""
26950
26951 #. type: textblock
26952 #: ../src/guestfs-actions.pod:2643
26953 msgid ""
26954 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26955 "returns a list of pathnames of objects that were touched.  The returned "
26956 "pathnames are sorted and deduplicated."
26957 msgstr ""
26958
26959 #. type: =head2
26960 #: ../src/guestfs-actions.pod:2653
26961 msgid "guestfs_inotify_init"
26962 msgstr ""
26963
26964 #. type: verbatim
26965 #: ../src/guestfs-actions.pod:2655
26966 #, no-wrap
26967 msgid ""
26968 " int\n"
26969 " guestfs_inotify_init (guestfs_h *g,\n"
26970 "                       int maxevents);\n"
26971 "\n"
26972 msgstr ""
26973
26974 #. type: textblock
26975 #: ../src/guestfs-actions.pod:2663
26976 msgid ""
26977 "C<maxevents> is the maximum number of events which will be queued up between "
26978 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
26979 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
26980 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
26981 "throws away events, but records the fact that it threw them away by setting "
26982 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26983 "C<guestfs_inotify_read>)."
26984 msgstr ""
26985
26986 #. type: textblock
26987 #: ../src/guestfs-actions.pod:2673
26988 msgid ""
26989 "Before any events are generated, you have to add some watches to the "
26990 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
26991 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26992 msgstr ""
26993
26994 #. type: textblock
26995 #: ../src/guestfs-actions.pod:2679
26996 msgid ""
26997 "Queued up events should be read periodically by calling "
26998 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26999 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
27000 "often enough then you risk the internal queue overflowing."
27001 msgstr ""
27002
27003 #. type: textblock
27004 #: ../src/guestfs-actions.pod:2686
27005 msgid ""
27006 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
27007 "This also removes any watches automatically."
27008 msgstr ""
27009
27010 #. type: =head2
27011 #: ../src/guestfs-actions.pod:2699
27012 msgid "guestfs_inotify_read"
27013 msgstr ""
27014
27015 #. type: verbatim
27016 #: ../src/guestfs-actions.pod:2701
27017 #, no-wrap
27018 msgid ""
27019 " struct guestfs_inotify_event_list *\n"
27020 " guestfs_inotify_read (guestfs_h *g);\n"
27021 "\n"
27022 msgstr ""
27023
27024 #. type: textblock
27025 #: ../src/guestfs-actions.pod:2715
27026 msgid ""
27027 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
27028 "there was an error.  I<The caller must call "
27029 "C<guestfs_free_inotify_event_list> after use>."
27030 msgstr ""
27031
27032 #. type: =head2
27033 #: ../src/guestfs-actions.pod:2721
27034 msgid "guestfs_inotify_rm_watch"
27035 msgstr ""
27036
27037 #. type: verbatim
27038 #: ../src/guestfs-actions.pod:2723
27039 #, no-wrap
27040 msgid ""
27041 " int\n"
27042 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
27043 "                           int wd);\n"
27044 "\n"
27045 msgstr ""
27046
27047 #. type: textblock
27048 #: ../src/guestfs-actions.pod:2727
27049 msgid ""
27050 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
27051 msgstr ""
27052
27053 #. type: =head2
27054 #: ../src/guestfs-actions.pod:2734
27055 msgid "guestfs_inspect_get_arch"
27056 msgstr ""
27057
27058 #. type: verbatim
27059 #: ../src/guestfs-actions.pod:2736
27060 #, no-wrap
27061 msgid ""
27062 " char *\n"
27063 " guestfs_inspect_get_arch (guestfs_h *g,\n"
27064 "                           const char *root);\n"
27065 "\n"
27066 msgstr ""
27067
27068 #. type: textblock
27069 #: ../src/guestfs-actions.pod:2740
27070 msgid ""
27071 "This returns the architecture of the inspected operating system.  The "
27072 "possible return values are listed under C<guestfs_file_architecture>."
27073 msgstr ""
27074
27075 #. type: =head2
27076 #: ../src/guestfs-actions.pod:2754
27077 msgid "guestfs_inspect_get_distro"
27078 msgstr ""
27079
27080 #. type: verbatim
27081 #: ../src/guestfs-actions.pod:2756
27082 #, no-wrap
27083 msgid ""
27084 " char *\n"
27085 " guestfs_inspect_get_distro (guestfs_h *g,\n"
27086 "                             const char *root);\n"
27087 "\n"
27088 msgstr ""
27089
27090 #. type: =head2
27091 #: ../src/guestfs-actions.pod:2848
27092 msgid "guestfs_inspect_get_drive_mappings"
27093 msgstr ""
27094
27095 #. type: verbatim
27096 #: ../src/guestfs-actions.pod:2850
27097 #, no-wrap
27098 msgid ""
27099 " char **\n"
27100 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
27101 "                                     const char *root);\n"
27102 "\n"
27103 msgstr ""
27104
27105 #. type: textblock
27106 #: ../src/guestfs-actions.pod:2879
27107 msgid ""
27108 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27109 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
27110 msgstr ""
27111
27112 #. type: textblock
27113 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3151
27114 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5221
27115 #: ../src/guestfs-actions.pod:7291
27116 msgid ""
27117 "This function returns a NULL-terminated array of strings, or NULL if there "
27118 "was an error.  The array of strings will always have length C<2n+1>, where "
27119 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
27120 "caller must free the strings and the array after use>."
27121 msgstr ""
27122
27123 #. type: textblock
27124 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:3345
27125 msgid "(Added in 1.9.17)"
27126 msgstr ""
27127
27128 #. type: =head2
27129 #: ../src/guestfs-actions.pod:2891
27130 msgid "guestfs_inspect_get_filesystems"
27131 msgstr ""
27132
27133 #. type: verbatim
27134 #: ../src/guestfs-actions.pod:2893
27135 #, no-wrap
27136 msgid ""
27137 " char **\n"
27138 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
27139 "                                  const char *root);\n"
27140 "\n"
27141 msgstr ""
27142
27143 #. type: textblock
27144 #: ../src/guestfs-actions.pod:2905
27145 msgid ""
27146 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27147 "C<guestfs_inspect_get_mountpoints>."
27148 msgstr ""
27149
27150 #. type: =head2
27151 #: ../src/guestfs-actions.pod:2914
27152 msgid "guestfs_inspect_get_format"
27153 msgstr ""
27154
27155 #. type: verbatim
27156 #: ../src/guestfs-actions.pod:2916
27157 #, no-wrap
27158 msgid ""
27159 " char *\n"
27160 " guestfs_inspect_get_format (guestfs_h *g,\n"
27161 "                             const char *root);\n"
27162 "\n"
27163 msgstr ""
27164
27165 #. type: textblock
27166 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3381
27167 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3415
27168 #: ../src/guestfs-actions.pod:6171
27169 msgid "(Added in 1.9.4)"
27170 msgstr ""
27171
27172 #. type: =head2
27173 #: ../src/guestfs-actions.pod:2952
27174 msgid "guestfs_inspect_get_hostname"
27175 msgstr ""
27176
27177 #. type: verbatim
27178 #: ../src/guestfs-actions.pod:2954
27179 #, no-wrap
27180 msgid ""
27181 " char *\n"
27182 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
27183 "                               const char *root);\n"
27184 "\n"
27185 msgstr ""
27186
27187 #. type: textblock
27188 #: ../src/guestfs-actions.pod:2969
27189 msgid "(Added in 1.7.9)"
27190 msgstr ""
27191
27192 #. type: =head2
27193 #: ../src/guestfs-actions.pod:2971
27194 msgid "guestfs_inspect_get_icon"
27195 msgstr ""
27196
27197 #. type: verbatim
27198 #: ../src/guestfs-actions.pod:2973
27199 #, no-wrap
27200 msgid ""
27201 " char *\n"
27202 " guestfs_inspect_get_icon (guestfs_h *g,\n"
27203 "                           const char *root,\n"
27204 "                           size_t *size_r,\n"
27205 "                           ...);\n"
27206 "\n"
27207 msgstr ""
27208
27209 #. type: verbatim
27210 #: ../src/guestfs-actions.pod:2984
27211 #, no-wrap
27212 msgid ""
27213 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
27214 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
27215 "\n"
27216 msgstr ""
27217
27218 #. type: textblock
27219 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3876
27220 #: ../src/guestfs-actions.pod:5120
27221 msgid "(Added in 1.11.12)"
27222 msgstr ""
27223
27224 #. type: =head2
27225 #: ../src/guestfs-actions.pod:3053
27226 msgid "guestfs_inspect_get_icon_va"
27227 msgstr ""
27228
27229 #. type: verbatim
27230 #: ../src/guestfs-actions.pod:3055
27231 #, no-wrap
27232 msgid ""
27233 " char *\n"
27234 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27235 "                              const char *root,\n"
27236 "                              size_t *size_r,\n"
27237 "                              va_list args);\n"
27238 "\n"
27239 msgstr ""
27240
27241 #. type: textblock
27242 #: ../src/guestfs-actions.pod:3061
27243 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27244 msgstr ""
27245
27246 #. type: =head2
27247 #: ../src/guestfs-actions.pod:3065
27248 msgid "guestfs_inspect_get_icon_argv"
27249 msgstr ""
27250
27251 #. type: verbatim
27252 #: ../src/guestfs-actions.pod:3067
27253 #, no-wrap
27254 msgid ""
27255 " char *\n"
27256 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27257 "                                const char *root,\n"
27258 "                                size_t *size_r,\n"
27259 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
27260 "\n"
27261 msgstr ""
27262
27263 #. type: textblock
27264 #: ../src/guestfs-actions.pod:3073
27265 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27266 msgstr ""
27267
27268 #. type: =head2
27269 #: ../src/guestfs-actions.pod:3077
27270 msgid "guestfs_inspect_get_major_version"
27271 msgstr ""
27272
27273 #. type: verbatim
27274 #: ../src/guestfs-actions.pod:3079
27275 #, no-wrap
27276 msgid ""
27277 " int\n"
27278 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27279 "                                    const char *root);\n"
27280 "\n"
27281 msgstr ""
27282
27283 #. type: =head2
27284 #: ../src/guestfs-actions.pod:3101
27285 msgid "guestfs_inspect_get_minor_version"
27286 msgstr ""
27287
27288 #. type: verbatim
27289 #: ../src/guestfs-actions.pod:3103
27290 #, no-wrap
27291 msgid ""
27292 " int\n"
27293 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27294 "                                    const char *root);\n"
27295 "\n"
27296 msgstr ""
27297
27298 #. type: textblock
27299 #: ../src/guestfs-actions.pod:3112
27300 msgid ""
27301 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27302 "C<guestfs_inspect_get_major_version>."
27303 msgstr ""
27304
27305 #. type: =head2
27306 #: ../src/guestfs-actions.pod:3119
27307 msgid "guestfs_inspect_get_mountpoints"
27308 msgstr ""
27309
27310 #. type: verbatim
27311 #: ../src/guestfs-actions.pod:3121
27312 #, no-wrap
27313 msgid ""
27314 " char **\n"
27315 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27316 "                                  const char *root);\n"
27317 "\n"
27318 msgstr ""
27319
27320 #. type: textblock
27321 #: ../src/guestfs-actions.pod:3142
27322 msgid ""
27323 "For operating systems like Windows which still use drive letters, this call "
27324 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27325 "information about the mapping of drive letters to partitions, see "
27326 "C<guestfs_inspect_get_drive_mappings>."
27327 msgstr ""
27328
27329 #. type: textblock
27330 #: ../src/guestfs-actions.pod:3148
27331 msgid ""
27332 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27333 "C<guestfs_inspect_get_filesystems>."
27334 msgstr ""
27335
27336 #. type: =head2
27337 #: ../src/guestfs-actions.pod:3159
27338 msgid "guestfs_inspect_get_package_format"
27339 msgstr ""
27340
27341 #. type: verbatim
27342 #: ../src/guestfs-actions.pod:3161
27343 #, no-wrap
27344 msgid ""
27345 " char *\n"
27346 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27347 "                                     const char *root);\n"
27348 "\n"
27349 msgstr ""
27350
27351 #. type: textblock
27352 #: ../src/guestfs-actions.pod:3165
27353 msgid ""
27354 "This function and C<guestfs_inspect_get_package_management> return the "
27355 "package format and package management tool used by the inspected operating "
27356 "system.  For example for Fedora these functions would return C<rpm> (package "
27357 "format) and C<yum> (package management)."
27358 msgstr ""
27359
27360 #. type: textblock
27361 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:3211
27362 msgid "(Added in 1.7.5)"
27363 msgstr ""
27364
27365 #. type: =head2
27366 #: ../src/guestfs-actions.pod:3185
27367 msgid "guestfs_inspect_get_package_management"
27368 msgstr ""
27369
27370 #. type: verbatim
27371 #: ../src/guestfs-actions.pod:3187
27372 #, no-wrap
27373 msgid ""
27374 " char *\n"
27375 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27376 "                                         const char *root);\n"
27377 "\n"
27378 msgstr ""
27379
27380 #. type: textblock
27381 #: ../src/guestfs-actions.pod:3191
27382 msgid ""
27383 "C<guestfs_inspect_get_package_format> and this function return the package "
27384 "format and package management tool used by the inspected operating system.  "
27385 "For example for Fedora these functions would return C<rpm> (package format) "
27386 "and C<yum> (package management)."
27387 msgstr ""
27388
27389 #. type: =head2
27390 #: ../src/guestfs-actions.pod:3213
27391 msgid "guestfs_inspect_get_product_name"
27392 msgstr ""
27393
27394 #. type: verbatim
27395 #: ../src/guestfs-actions.pod:3215
27396 #, no-wrap
27397 msgid ""
27398 " char *\n"
27399 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27400 "                                   const char *root);\n"
27401 "\n"
27402 msgstr ""
27403
27404 #. type: =head2
27405 #: ../src/guestfs-actions.pod:3234
27406 msgid "guestfs_inspect_get_product_variant"
27407 msgstr ""
27408
27409 #. type: verbatim
27410 #: ../src/guestfs-actions.pod:3236
27411 #, no-wrap
27412 msgid ""
27413 " char *\n"
27414 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27415 "                                      const char *root);\n"
27416 "\n"
27417 msgstr ""
27418
27419 #. type: textblock
27420 #: ../src/guestfs-actions.pod:3259
27421 msgid ""
27422 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27423 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27424 msgstr ""
27425
27426 #. type: textblock
27427 #: ../src/guestfs-actions.pod:3266
27428 msgid "(Added in 1.9.13)"
27429 msgstr ""
27430
27431 #. type: =head2
27432 #: ../src/guestfs-actions.pod:3268
27433 msgid "guestfs_inspect_get_roots"
27434 msgstr ""
27435
27436 #. type: verbatim
27437 #: ../src/guestfs-actions.pod:3270
27438 #, no-wrap
27439 msgid ""
27440 " char **\n"
27441 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27442 "\n"
27443 msgstr ""
27444
27445 #. type: textblock
27446 #: ../src/guestfs-actions.pod:3273
27447 msgid ""
27448 "This function is a convenient way to get the list of root devices, as "
27449 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27450 "the whole inspection process."
27451 msgstr ""
27452
27453 #. type: textblock
27454 #: ../src/guestfs-actions.pod:3277
27455 msgid ""
27456 "This returns an empty list if either no root devices were found or the "
27457 "caller has not called C<guestfs_inspect_os>."
27458 msgstr ""
27459
27460 #. type: textblock
27461 #: ../src/guestfs-actions.pod:3286
27462 msgid "(Added in 1.7.3)"
27463 msgstr ""
27464
27465 #. type: =head2
27466 #: ../src/guestfs-actions.pod:3288
27467 msgid "guestfs_inspect_get_type"
27468 msgstr ""
27469
27470 #. type: verbatim
27471 #: ../src/guestfs-actions.pod:3290
27472 #, no-wrap
27473 msgid ""
27474 " char *\n"
27475 " guestfs_inspect_get_type (guestfs_h *g,\n"
27476 "                           const char *root);\n"
27477 "\n"
27478 msgstr ""
27479
27480 #. type: =head2
27481 #: ../src/guestfs-actions.pod:3327
27482 msgid "guestfs_inspect_get_windows_current_control_set"
27483 msgstr ""
27484
27485 #. type: verbatim
27486 #: ../src/guestfs-actions.pod:3329
27487 #, no-wrap
27488 msgid ""
27489 " char *\n"
27490 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
27491 "                                                  const char *root);\n"
27492 "\n"
27493 msgstr ""
27494
27495 #. type: =head2
27496 #: ../src/guestfs-actions.pod:3347
27497 msgid "guestfs_inspect_get_windows_systemroot"
27498 msgstr ""
27499
27500 #. type: verbatim
27501 #: ../src/guestfs-actions.pod:3349
27502 #, no-wrap
27503 msgid ""
27504 " char *\n"
27505 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
27506 "                                         const char *root);\n"
27507 "\n"
27508 msgstr ""
27509
27510 #. type: textblock
27511 #: ../src/guestfs-actions.pod:3365
27512 msgid "(Added in 1.5.25)"
27513 msgstr ""
27514
27515 #. type: =head2
27516 #: ../src/guestfs-actions.pod:3367
27517 msgid "guestfs_inspect_is_live"
27518 msgstr ""
27519
27520 #. type: verbatim
27521 #: ../src/guestfs-actions.pod:3369
27522 #, no-wrap
27523 msgid ""
27524 " int\n"
27525 " guestfs_inspect_is_live (guestfs_h *g,\n"
27526 "                          const char *root);\n"
27527 "\n"
27528 msgstr ""
27529
27530 #. type: textblock
27531 #: ../src/guestfs-actions.pod:3373
27532 msgid ""
27533 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27534 "disk), then this returns true if a live image was detected on the disk."
27535 msgstr ""
27536
27537 #. type: =head2
27538 #: ../src/guestfs-actions.pod:3383
27539 msgid "guestfs_inspect_is_multipart"
27540 msgstr ""
27541
27542 #. type: verbatim
27543 #: ../src/guestfs-actions.pod:3385
27544 #, no-wrap
27545 msgid ""
27546 " int\n"
27547 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
27548 "                               const char *root);\n"
27549 "\n"
27550 msgstr ""
27551
27552 #. type: textblock
27553 #: ../src/guestfs-actions.pod:3389
27554 msgid ""
27555 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27556 "disk), then this returns true if the disk is part of a set."
27557 msgstr ""
27558
27559 #. type: =head2
27560 #: ../src/guestfs-actions.pod:3399
27561 msgid "guestfs_inspect_is_netinst"
27562 msgstr ""
27563
27564 #. type: verbatim
27565 #: ../src/guestfs-actions.pod:3401
27566 #, no-wrap
27567 msgid ""
27568 " int\n"
27569 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
27570 "                             const char *root);\n"
27571 "\n"
27572 msgstr ""
27573
27574 #. type: textblock
27575 #: ../src/guestfs-actions.pod:3405
27576 msgid ""
27577 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27578 "disk), then this returns true if the disk is a network installer, ie. not a "
27579 "self-contained install CD but one which is likely to require network access "
27580 "to complete the install."
27581 msgstr ""
27582
27583 #. type: =head2
27584 #: ../src/guestfs-actions.pod:3417
27585 msgid "guestfs_inspect_list_applications"
27586 msgstr ""
27587
27588 #. type: verbatim
27589 #: ../src/guestfs-actions.pod:3419
27590 #, no-wrap
27591 msgid ""
27592 " struct guestfs_application_list *\n"
27593 " guestfs_inspect_list_applications (guestfs_h *g,\n"
27594 "                                    const char *root);\n"
27595 "\n"
27596 msgstr ""
27597
27598 #. type: textblock
27599 #: ../src/guestfs-actions.pod:3425
27600 msgid ""
27601 "I<Note:> This call works differently from other parts of the inspection "
27602 "API.  You have to call C<guestfs_inspect_os>, then "
27603 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
27604 "this.  Listing applications is a significantly more difficult operation "
27605 "which requires access to the full filesystem.  Also note that unlike the "
27606 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
27607 "the libguestfs handle, this call actually reads parts of the mounted "
27608 "filesystems during the call."
27609 msgstr ""
27610
27611 #. type: textblock
27612 #: ../src/guestfs-actions.pod:3515
27613 msgid ""
27614 "This function returns a C<struct guestfs_application_list *>, or NULL if "
27615 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
27616 "after use>."
27617 msgstr ""
27618
27619 #. type: textblock
27620 #: ../src/guestfs-actions.pod:3519
27621 msgid "(Added in 1.7.8)"
27622 msgstr ""
27623
27624 #. type: =head2
27625 #: ../src/guestfs-actions.pod:3521
27626 msgid "guestfs_inspect_os"
27627 msgstr ""
27628
27629 #. type: verbatim
27630 #: ../src/guestfs-actions.pod:3523
27631 #, no-wrap
27632 msgid ""
27633 " char **\n"
27634 " guestfs_inspect_os (guestfs_h *g);\n"
27635 "\n"
27636 msgstr ""
27637
27638 #. type: textblock
27639 #: ../src/guestfs-actions.pod:3539
27640 msgid ""
27641 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
27642 "functions in order to query further information about each operating system, "
27643 "such as the name and version."
27644 msgstr ""
27645
27646 #. type: textblock
27647 #: ../src/guestfs-actions.pod:3544
27648 msgid ""
27649 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
27650 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
27651 "the contents.  This should be called with no disks currently mounted.  The "
27652 "function may also use Augeas, so any existing Augeas handle will be closed."
27653 msgstr ""
27654
27655 #. type: textblock
27656 #: ../src/guestfs-actions.pod:3556 ../src/guestfs-actions.pod:3887
27657 #: ../src/guestfs-actions.pod:3969
27658 msgid "See also C<guestfs_list_filesystems>."
27659 msgstr ""
27660
27661 #. type: =head2
27662 #: ../src/guestfs-actions.pod:3564
27663 msgid "guestfs_is_blockdev"
27664 msgstr ""
27665
27666 #. type: verbatim
27667 #: ../src/guestfs-actions.pod:3566
27668 #, no-wrap
27669 msgid ""
27670 " int\n"
27671 " guestfs_is_blockdev (guestfs_h *g,\n"
27672 "                      const char *path);\n"
27673 "\n"
27674 msgstr ""
27675
27676 #. type: textblock
27677 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3602
27678 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3647
27679 #: ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3719
27680 #: ../src/guestfs-actions.pod:3734
27681 msgid "See also C<guestfs_stat>."
27682 msgstr ""
27683
27684 #. type: textblock
27685 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3606
27686 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3723
27687 #: ../src/guestfs-actions.pod:3738
27688 msgid "(Added in 1.5.10)"
27689 msgstr ""
27690
27691 #. type: =head2
27692 #: ../src/guestfs-actions.pod:3579
27693 msgid "guestfs_is_busy"
27694 msgstr ""
27695
27696 #. type: verbatim
27697 #: ../src/guestfs-actions.pod:3581
27698 #, no-wrap
27699 msgid ""
27700 " int\n"
27701 " guestfs_is_busy (guestfs_h *g);\n"
27702 "\n"
27703 msgstr ""
27704
27705 #. type: =head2
27706 #: ../src/guestfs-actions.pod:3593
27707 msgid "guestfs_is_chardev"
27708 msgstr ""
27709
27710 #. type: verbatim
27711 #: ../src/guestfs-actions.pod:3595
27712 #, no-wrap
27713 msgid ""
27714 " int\n"
27715 " guestfs_is_chardev (guestfs_h *g,\n"
27716 "                     const char *path);\n"
27717 "\n"
27718 msgstr ""
27719
27720 #. type: =head2
27721 #: ../src/guestfs-actions.pod:3608
27722 msgid "guestfs_is_config"
27723 msgstr ""
27724
27725 #. type: verbatim
27726 #: ../src/guestfs-actions.pod:3610
27727 #, no-wrap
27728 msgid ""
27729 " int\n"
27730 " guestfs_is_config (guestfs_h *g);\n"
27731 "\n"
27732 msgstr ""
27733
27734 #. type: =head2
27735 #: ../src/guestfs-actions.pod:3622
27736 msgid "guestfs_is_dir"
27737 msgstr ""
27738
27739 #. type: verbatim
27740 #: ../src/guestfs-actions.pod:3624
27741 #, no-wrap
27742 msgid ""
27743 " int\n"
27744 " guestfs_is_dir (guestfs_h *g,\n"
27745 "                 const char *path);\n"
27746 "\n"
27747 msgstr ""
27748
27749 #. type: =head2
27750 #: ../src/guestfs-actions.pod:3638
27751 msgid "guestfs_is_fifo"
27752 msgstr ""
27753
27754 #. type: verbatim
27755 #: ../src/guestfs-actions.pod:3640
27756 #, no-wrap
27757 msgid ""
27758 " int\n"
27759 " guestfs_is_fifo (guestfs_h *g,\n"
27760 "                  const char *path);\n"
27761 "\n"
27762 msgstr ""
27763
27764 #. type: =head2
27765 #: ../src/guestfs-actions.pod:3653
27766 msgid "guestfs_is_file"
27767 msgstr ""
27768
27769 #. type: verbatim
27770 #: ../src/guestfs-actions.pod:3655
27771 #, no-wrap
27772 msgid ""
27773 " int\n"
27774 " guestfs_is_file (guestfs_h *g,\n"
27775 "                  const char *path);\n"
27776 "\n"
27777 msgstr ""
27778
27779 #. type: =head2
27780 #: ../src/guestfs-actions.pod:3669
27781 msgid "guestfs_is_launching"
27782 msgstr ""
27783
27784 #. type: verbatim
27785 #: ../src/guestfs-actions.pod:3671
27786 #, no-wrap
27787 msgid ""
27788 " int\n"
27789 " guestfs_is_launching (guestfs_h *g);\n"
27790 "\n"
27791 msgstr ""
27792
27793 #. type: =head2
27794 #: ../src/guestfs-actions.pod:3683
27795 msgid "guestfs_is_lv"
27796 msgstr ""
27797
27798 #. type: verbatim
27799 #: ../src/guestfs-actions.pod:3685
27800 #, no-wrap
27801 msgid ""
27802 " int\n"
27803 " guestfs_is_lv (guestfs_h *g,\n"
27804 "                const char *device);\n"
27805 "\n"
27806 msgstr ""
27807
27808 #. type: =head2
27809 #: ../src/guestfs-actions.pod:3696
27810 msgid "guestfs_is_ready"
27811 msgstr ""
27812
27813 #. type: verbatim
27814 #: ../src/guestfs-actions.pod:3698
27815 #, no-wrap
27816 msgid ""
27817 " int\n"
27818 " guestfs_is_ready (guestfs_h *g);\n"
27819 "\n"
27820 msgstr ""
27821
27822 #. type: =head2
27823 #: ../src/guestfs-actions.pod:3710
27824 msgid "guestfs_is_socket"
27825 msgstr ""
27826
27827 #. type: verbatim
27828 #: ../src/guestfs-actions.pod:3712
27829 #, no-wrap
27830 msgid ""
27831 " int\n"
27832 " guestfs_is_socket (guestfs_h *g,\n"
27833 "                    const char *path);\n"
27834 "\n"
27835 msgstr ""
27836
27837 #. type: =head2
27838 #: ../src/guestfs-actions.pod:3725
27839 msgid "guestfs_is_symlink"
27840 msgstr ""
27841
27842 #. type: verbatim
27843 #: ../src/guestfs-actions.pod:3727
27844 #, no-wrap
27845 msgid ""
27846 " int\n"
27847 " guestfs_is_symlink (guestfs_h *g,\n"
27848 "                     const char *path);\n"
27849 "\n"
27850 msgstr ""
27851
27852 #. type: =head2
27853 #: ../src/guestfs-actions.pod:3740
27854 msgid "guestfs_is_zero"
27855 msgstr ""
27856
27857 #. type: verbatim
27858 #: ../src/guestfs-actions.pod:3742
27859 #, no-wrap
27860 msgid ""
27861 " int\n"
27862 " guestfs_is_zero (guestfs_h *g,\n"
27863 "                  const char *path);\n"
27864 "\n"
27865 msgstr ""
27866
27867 #. type: textblock
27868 #: ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3765
27869 msgid "(Added in 1.11.8)"
27870 msgstr ""
27871
27872 #. type: =head2
27873 #: ../src/guestfs-actions.pod:3753
27874 msgid "guestfs_is_zero_device"
27875 msgstr ""
27876
27877 #. type: verbatim
27878 #: ../src/guestfs-actions.pod:3755
27879 #, no-wrap
27880 msgid ""
27881 " int\n"
27882 " guestfs_is_zero_device (guestfs_h *g,\n"
27883 "                         const char *device);\n"
27884 "\n"
27885 msgstr ""
27886
27887 #. type: =head2
27888 #: ../src/guestfs-actions.pod:3767
27889 msgid "guestfs_kill_subprocess"
27890 msgstr ""
27891
27892 #. type: verbatim
27893 #: ../src/guestfs-actions.pod:3769
27894 #, no-wrap
27895 msgid ""
27896 " int\n"
27897 " guestfs_kill_subprocess (guestfs_h *g);\n"
27898 "\n"
27899 msgstr ""
27900
27901 #. type: =head2
27902 #: ../src/guestfs-actions.pod:3778
27903 msgid "guestfs_launch"
27904 msgstr ""
27905
27906 #. type: verbatim
27907 #: ../src/guestfs-actions.pod:3780
27908 #, no-wrap
27909 msgid ""
27910 " int\n"
27911 " guestfs_launch (guestfs_h *g);\n"
27912 "\n"
27913 msgstr ""
27914
27915 #. type: =head2
27916 #: ../src/guestfs-actions.pod:3798
27917 msgid "guestfs_lchown"
27918 msgstr ""
27919
27920 #. type: verbatim
27921 #: ../src/guestfs-actions.pod:3800
27922 #, no-wrap
27923 msgid ""
27924 " int\n"
27925 " guestfs_lchown (guestfs_h *g,\n"
27926 "                 int owner,\n"
27927 "                 int group,\n"
27928 "                 const char *path);\n"
27929 "\n"
27930 msgstr ""
27931
27932 #. type: textblock
27933 #: ../src/guestfs-actions.pod:3806
27934 msgid ""
27935 "Change the file owner to C<owner> and group to C<group>.  This is like "
27936 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27937 "changed, not the target."
27938 msgstr ""
27939
27940 #. type: =head2
27941 #: ../src/guestfs-actions.pod:3818
27942 msgid "guestfs_lgetxattr"
27943 msgstr ""
27944
27945 #. type: verbatim
27946 #: ../src/guestfs-actions.pod:3820
27947 #, no-wrap
27948 msgid ""
27949 " char *\n"
27950 " guestfs_lgetxattr (guestfs_h *g,\n"
27951 "                    const char *path,\n"
27952 "                    const char *name,\n"
27953 "                    size_t *size_r);\n"
27954 "\n"
27955 msgstr ""
27956
27957 #. type: textblock
27958 #: ../src/guestfs-actions.pod:3840
27959 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27960 msgstr ""
27961
27962 #. type: =head2
27963 #: ../src/guestfs-actions.pod:3848
27964 msgid "guestfs_lgetxattrs"
27965 msgstr ""
27966
27967 #. type: verbatim
27968 #: ../src/guestfs-actions.pod:3850
27969 #, no-wrap
27970 msgid ""
27971 " struct guestfs_xattr_list *\n"
27972 " guestfs_lgetxattrs (guestfs_h *g,\n"
27973 "                     const char *path);\n"
27974 "\n"
27975 msgstr ""
27976
27977 #. type: textblock
27978 #: ../src/guestfs-actions.pod:3854
27979 msgid ""
27980 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27981 "then it returns the extended attributes of the link itself."
27982 msgstr ""
27983
27984 #. type: =head2
27985 #: ../src/guestfs-actions.pod:3864
27986 msgid "guestfs_list_9p"
27987 msgstr ""
27988
27989 #. type: verbatim
27990 #: ../src/guestfs-actions.pod:3866
27991 #, no-wrap
27992 msgid ""
27993 " char **\n"
27994 " guestfs_list_9p (guestfs_h *g);\n"
27995 "\n"
27996 msgstr ""
27997
27998 #. type: =head2
27999 #: ../src/guestfs-actions.pod:3878
28000 msgid "guestfs_list_devices"
28001 msgstr ""
28002
28003 #. type: verbatim
28004 #: ../src/guestfs-actions.pod:3880
28005 #, no-wrap
28006 msgid ""
28007 " char **\n"
28008 " guestfs_list_devices (guestfs_h *g);\n"
28009 "\n"
28010 msgstr ""
28011
28012 #. type: =head2
28013 #: ../src/guestfs-actions.pod:3895
28014 msgid "guestfs_list_dm_devices"
28015 msgstr ""
28016
28017 #. type: verbatim
28018 #: ../src/guestfs-actions.pod:3897
28019 #, no-wrap
28020 msgid ""
28021 " char **\n"
28022 " guestfs_list_dm_devices (guestfs_h *g);\n"
28023 "\n"
28024 msgstr ""
28025
28026 #. type: textblock
28027 #: ../src/guestfs-actions.pod:3902
28028 msgid ""
28029 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28030 "previous call to C<guestfs_luks_open>."
28031 msgstr ""
28032
28033 #. type: textblock
28034 #: ../src/guestfs-actions.pod:3905
28035 msgid ""
28036 "Device mapper devices which correspond to logical volumes are I<not> "
28037 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
28038 "volumes."
28039 msgstr ""
28040
28041 #. type: textblock
28042 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:5359
28043 msgid "(Added in 1.11.15)"
28044 msgstr ""
28045
28046 #. type: =head2
28047 #: ../src/guestfs-actions.pod:3915
28048 msgid "guestfs_list_filesystems"
28049 msgstr ""
28050
28051 #. type: verbatim
28052 #: ../src/guestfs-actions.pod:3917
28053 #, no-wrap
28054 msgid ""
28055 " char **\n"
28056 " guestfs_list_filesystems (guestfs_h *g);\n"
28057 "\n"
28058 msgstr ""
28059
28060 #. type: textblock
28061 #: ../src/guestfs-actions.pod:3937
28062 msgid ""
28063 "This command runs other libguestfs commands, which might include "
28064 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
28065 "soon after launch and only when nothing is mounted."
28066 msgstr ""
28067
28068 #. type: textblock
28069 #: ../src/guestfs-actions.pod:3941
28070 msgid ""
28071 "Not all of the filesystems returned will be mountable.  In particular, swap "
28072 "partitions are returned in the list.  Also this command does not check that "
28073 "each filesystem found is valid and mountable, and some filesystems might be "
28074 "mountable but require special options.  Filesystems may not all belong to a "
28075 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
28076 msgstr ""
28077
28078 #. type: textblock
28079 #: ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:5720
28080 msgid "(Added in 1.5.15)"
28081 msgstr ""
28082
28083 #. type: =head2
28084 #: ../src/guestfs-actions.pod:3957
28085 msgid "guestfs_list_partitions"
28086 msgstr ""
28087
28088 #. type: verbatim
28089 #: ../src/guestfs-actions.pod:3959
28090 #, no-wrap
28091 msgid ""
28092 " char **\n"
28093 " guestfs_list_partitions (guestfs_h *g);\n"
28094 "\n"
28095 msgstr ""
28096
28097 #. type: textblock
28098 #: ../src/guestfs-actions.pod:3966
28099 msgid ""
28100 "This does not return logical volumes.  For that you will need to call "
28101 "C<guestfs_lvs>."
28102 msgstr ""
28103
28104 #. type: =head2
28105 #: ../src/guestfs-actions.pod:3977
28106 msgid "guestfs_ll"
28107 msgstr ""
28108
28109 #. type: verbatim
28110 #: ../src/guestfs-actions.pod:3979
28111 #, no-wrap
28112 msgid ""
28113 " char *\n"
28114 " guestfs_ll (guestfs_h *g,\n"
28115 "             const char *directory);\n"
28116 "\n"
28117 msgstr ""
28118
28119 #. type: =head2
28120 #: ../src/guestfs-actions.pod:3994
28121 msgid "guestfs_ln"
28122 msgstr ""
28123
28124 #. type: verbatim
28125 #: ../src/guestfs-actions.pod:3996
28126 #, no-wrap
28127 msgid ""
28128 " int\n"
28129 " guestfs_ln (guestfs_h *g,\n"
28130 "             const char *target,\n"
28131 "             const char *linkname);\n"
28132 "\n"
28133 msgstr ""
28134
28135 #. type: =head2
28136 #: ../src/guestfs-actions.pod:4007
28137 msgid "guestfs_ln_f"
28138 msgstr ""
28139
28140 #. type: verbatim
28141 #: ../src/guestfs-actions.pod:4009
28142 #, no-wrap
28143 msgid ""
28144 " int\n"
28145 " guestfs_ln_f (guestfs_h *g,\n"
28146 "               const char *target,\n"
28147 "               const char *linkname);\n"
28148 "\n"
28149 msgstr ""
28150
28151 #. type: =head2
28152 #: ../src/guestfs-actions.pod:4021
28153 msgid "guestfs_ln_s"
28154 msgstr ""
28155
28156 #. type: verbatim
28157 #: ../src/guestfs-actions.pod:4023
28158 #, no-wrap
28159 msgid ""
28160 " int\n"
28161 " guestfs_ln_s (guestfs_h *g,\n"
28162 "               const char *target,\n"
28163 "               const char *linkname);\n"
28164 "\n"
28165 msgstr ""
28166
28167 #. type: =head2
28168 #: ../src/guestfs-actions.pod:4034
28169 msgid "guestfs_ln_sf"
28170 msgstr ""
28171
28172 #. type: verbatim
28173 #: ../src/guestfs-actions.pod:4036
28174 #, no-wrap
28175 msgid ""
28176 " int\n"
28177 " guestfs_ln_sf (guestfs_h *g,\n"
28178 "                const char *target,\n"
28179 "                const char *linkname);\n"
28180 "\n"
28181 msgstr ""
28182
28183 #. type: =head2
28184 #: ../src/guestfs-actions.pod:4048
28185 msgid "guestfs_lremovexattr"
28186 msgstr ""
28187
28188 #. type: verbatim
28189 #: ../src/guestfs-actions.pod:4050
28190 #, no-wrap
28191 msgid ""
28192 " int\n"
28193 " guestfs_lremovexattr (guestfs_h *g,\n"
28194 "                       const char *xattr,\n"
28195 "                       const char *path);\n"
28196 "\n"
28197 msgstr ""
28198
28199 #. type: textblock
28200 #: ../src/guestfs-actions.pod:4055
28201 msgid ""
28202 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28203 "link, then it removes an extended attribute of the link itself."
28204 msgstr ""
28205
28206 #. type: =head2
28207 #: ../src/guestfs-actions.pod:4063
28208 msgid "guestfs_ls"
28209 msgstr ""
28210
28211 #. type: verbatim
28212 #: ../src/guestfs-actions.pod:4065
28213 #, no-wrap
28214 msgid ""
28215 " char **\n"
28216 " guestfs_ls (guestfs_h *g,\n"
28217 "             const char *directory);\n"
28218 "\n"
28219 msgstr ""
28220
28221 #. type: textblock
28222 #: ../src/guestfs-actions.pod:4073
28223 msgid ""
28224 "This command is mostly useful for interactive sessions.  Programs should "
28225 "probably use C<guestfs_readdir> instead."
28226 msgstr ""
28227
28228 #. type: =head2
28229 #: ../src/guestfs-actions.pod:4082
28230 msgid "guestfs_lsetxattr"
28231 msgstr ""
28232
28233 #. type: verbatim
28234 #: ../src/guestfs-actions.pod:4084
28235 #, no-wrap
28236 msgid ""
28237 " int\n"
28238 " guestfs_lsetxattr (guestfs_h *g,\n"
28239 "                    const char *xattr,\n"
28240 "                    const char *val,\n"
28241 "                    int vallen,\n"
28242 "                    const char *path);\n"
28243 "\n"
28244 msgstr ""
28245
28246 #. type: textblock
28247 #: ../src/guestfs-actions.pod:4091
28248 msgid ""
28249 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28250 "then it sets an extended attribute of the link itself."
28251 msgstr ""
28252
28253 #. type: =head2
28254 #: ../src/guestfs-actions.pod:4099
28255 msgid "guestfs_lstat"
28256 msgstr ""
28257
28258 #. type: verbatim
28259 #: ../src/guestfs-actions.pod:4101
28260 #, no-wrap
28261 msgid ""
28262 " struct guestfs_stat *\n"
28263 " guestfs_lstat (guestfs_h *g,\n"
28264 "                const char *path);\n"
28265 "\n"
28266 msgstr ""
28267
28268 #. type: textblock
28269 #: ../src/guestfs-actions.pod:4107
28270 msgid ""
28271 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28272 "link, then the link is stat-ed, not the file it refers to."
28273 msgstr ""
28274
28275 #. type: textblock
28276 #: ../src/guestfs-actions.pod:4113 ../src/guestfs-actions.pod:6894
28277 msgid ""
28278 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28279 "error.  I<The caller must call C<guestfs_free_stat> after use>."
28280 msgstr ""
28281
28282 #. type: textblock
28283 #: ../src/guestfs-actions.pod:4117 ../src/guestfs-actions.pod:6898
28284 #: ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:7297
28285 msgid "(Added in 0.9.2)"
28286 msgstr ""
28287
28288 #. type: =head2
28289 #: ../src/guestfs-actions.pod:4119
28290 msgid "guestfs_lstatlist"
28291 msgstr ""
28292
28293 #. type: verbatim
28294 #: ../src/guestfs-actions.pod:4121
28295 #, no-wrap
28296 msgid ""
28297 " struct guestfs_stat_list *\n"
28298 " guestfs_lstatlist (guestfs_h *g,\n"
28299 "                    const char *path,\n"
28300 "                    char *const *names);\n"
28301 "\n"
28302 msgstr ""
28303
28304 #. type: textblock
28305 #: ../src/guestfs-actions.pod:4126
28306 msgid ""
28307 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28308 "files, where all files are in the directory C<path>.  C<names> is the list "
28309 "of files from this directory."
28310 msgstr ""
28311
28312 #. type: textblock
28313 #: ../src/guestfs-actions.pod:4135
28314 msgid ""
28315 "This call is intended for programs that want to efficiently list a directory "
28316 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
28317 "for a similarly efficient call for getting extended attributes.  Very long "
28318 "directory listings might cause the protocol message size to be exceeded, "
28319 "causing this call to fail.  The caller must split up such requests into "
28320 "smaller groups of names."
28321 msgstr ""
28322
28323 #. type: textblock
28324 #: ../src/guestfs-actions.pod:4143
28325 msgid ""
28326 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28327 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
28328 msgstr ""
28329
28330 #. type: =head2
28331 #: ../src/guestfs-actions.pod:4149
28332 msgid "guestfs_luks_add_key"
28333 msgstr ""
28334
28335 #. type: verbatim
28336 #: ../src/guestfs-actions.pod:4151
28337 #, no-wrap
28338 msgid ""
28339 " int\n"
28340 " guestfs_luks_add_key (guestfs_h *g,\n"
28341 "                       const char *device,\n"
28342 "                       const char *key,\n"
28343 "                       const char *newkey,\n"
28344 "                       int keyslot);\n"
28345 "\n"
28346 msgstr ""
28347
28348 #. type: textblock
28349 #: ../src/guestfs-actions.pod:4163
28350 msgid ""
28351 "Note that if C<keyslot> already contains a key, then this command will "
28352 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
28353 msgstr ""
28354
28355 #. type: textblock
28356 #: ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4209
28357 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4252
28358 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4306
28359 msgid ""
28360 "This function takes a key or passphrase parameter which could contain "
28361 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
28362 "information."
28363 msgstr ""
28364
28365 #. type: textblock
28366 #: ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4213
28367 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4256
28368 msgid "(Added in 1.5.2)"
28369 msgstr ""
28370
28371 #. type: =head2
28372 #: ../src/guestfs-actions.pod:4175
28373 msgid "guestfs_luks_close"
28374 msgstr ""
28375
28376 #. type: verbatim
28377 #: ../src/guestfs-actions.pod:4177
28378 #, no-wrap
28379 msgid ""
28380 " int\n"
28381 " guestfs_luks_close (guestfs_h *g,\n"
28382 "                     const char *device);\n"
28383 "\n"
28384 msgstr ""
28385
28386 #. type: textblock
28387 #: ../src/guestfs-actions.pod:4181
28388 msgid ""
28389 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28390 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
28391 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28392 "underlying block device."
28393 msgstr ""
28394
28395 #. type: textblock
28396 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4291
28397 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4360
28398 #: ../src/guestfs-actions.pod:4408
28399 msgid "(Added in 1.5.1)"
28400 msgstr ""
28401
28402 #. type: =head2
28403 #: ../src/guestfs-actions.pod:4191
28404 msgid "guestfs_luks_format"
28405 msgstr ""
28406
28407 #. type: verbatim
28408 #: ../src/guestfs-actions.pod:4193
28409 #, no-wrap
28410 msgid ""
28411 " int\n"
28412 " guestfs_luks_format (guestfs_h *g,\n"
28413 "                      const char *device,\n"
28414 "                      const char *key,\n"
28415 "                      int keyslot);\n"
28416 "\n"
28417 msgstr ""
28418
28419 #. type: =head2
28420 #: ../src/guestfs-actions.pod:4215
28421 msgid "guestfs_luks_format_cipher"
28422 msgstr ""
28423
28424 #. type: verbatim
28425 #: ../src/guestfs-actions.pod:4217
28426 #, no-wrap
28427 msgid ""
28428 " int\n"
28429 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28430 "                             const char *device,\n"
28431 "                             const char *key,\n"
28432 "                             int keyslot,\n"
28433 "                             const char *cipher);\n"
28434 "\n"
28435 msgstr ""
28436
28437 #. type: textblock
28438 #: ../src/guestfs-actions.pod:4224
28439 msgid ""
28440 "This command is the same as C<guestfs_luks_format> but it also allows you to "
28441 "set the C<cipher> used."
28442 msgstr ""
28443
28444 #. type: =head2
28445 #: ../src/guestfs-actions.pod:4238
28446 msgid "guestfs_luks_kill_slot"
28447 msgstr ""
28448
28449 #. type: verbatim
28450 #: ../src/guestfs-actions.pod:4240
28451 #, no-wrap
28452 msgid ""
28453 " int\n"
28454 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28455 "                         const char *device,\n"
28456 "                         const char *key,\n"
28457 "                         int keyslot);\n"
28458 "\n"
28459 msgstr ""
28460
28461 #. type: =head2
28462 #: ../src/guestfs-actions.pod:4258
28463 msgid "guestfs_luks_open"
28464 msgstr ""
28465
28466 #. type: verbatim
28467 #: ../src/guestfs-actions.pod:4260
28468 #, no-wrap
28469 msgid ""
28470 " int\n"
28471 " guestfs_luks_open (guestfs_h *g,\n"
28472 "                    const char *device,\n"
28473 "                    const char *key,\n"
28474 "                    const char *mapname);\n"
28475 "\n"
28476 msgstr ""
28477
28478 #. type: textblock
28479 #: ../src/guestfs-actions.pod:4278
28480 msgid ""
28481 "If this block device contains LVM volume groups, then calling "
28482 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
28483 "visible."
28484 msgstr ""
28485
28486 #. type: textblock
28487 #: ../src/guestfs-actions.pod:4282
28488 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
28489 msgstr ""
28490
28491 #. type: =head2
28492 #: ../src/guestfs-actions.pod:4293
28493 msgid "guestfs_luks_open_ro"
28494 msgstr ""
28495
28496 #. type: verbatim
28497 #: ../src/guestfs-actions.pod:4295
28498 #, no-wrap
28499 msgid ""
28500 " int\n"
28501 " guestfs_luks_open_ro (guestfs_h *g,\n"
28502 "                       const char *device,\n"
28503 "                       const char *key,\n"
28504 "                       const char *mapname);\n"
28505 "\n"
28506 msgstr ""
28507
28508 #. type: textblock
28509 #: ../src/guestfs-actions.pod:4301
28510 msgid ""
28511 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
28512 "created."
28513 msgstr ""
28514
28515 #. type: =head2
28516 #: ../src/guestfs-actions.pod:4312
28517 msgid "guestfs_lvcreate"
28518 msgstr ""
28519
28520 #. type: verbatim
28521 #: ../src/guestfs-actions.pod:4314
28522 #, no-wrap
28523 msgid ""
28524 " int\n"
28525 " guestfs_lvcreate (guestfs_h *g,\n"
28526 "                   const char *logvol,\n"
28527 "                   const char *volgroup,\n"
28528 "                   int mbytes);\n"
28529 "\n"
28530 msgstr ""
28531
28532 #. type: =head2
28533 #: ../src/guestfs-actions.pod:4327
28534 msgid "guestfs_lvm_canonical_lv_name"
28535 msgstr ""
28536
28537 #. type: verbatim
28538 #: ../src/guestfs-actions.pod:4329
28539 #, no-wrap
28540 msgid ""
28541 " char *\n"
28542 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28543 "                                const char *lvname);\n"
28544 "\n"
28545 msgstr ""
28546
28547 #. type: textblock
28548 #: ../src/guestfs-actions.pod:4340
28549 msgid "See also C<guestfs_is_lv>."
28550 msgstr ""
28551
28552 #. type: textblock
28553 #: ../src/guestfs-actions.pod:4345
28554 msgid "(Added in 1.5.24)"
28555 msgstr ""
28556
28557 #. type: =head2
28558 #: ../src/guestfs-actions.pod:4347
28559 msgid "guestfs_lvm_clear_filter"
28560 msgstr ""
28561
28562 #. type: verbatim
28563 #: ../src/guestfs-actions.pod:4349
28564 #, no-wrap
28565 msgid ""
28566 " int\n"
28567 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28568 "\n"
28569 msgstr ""
28570
28571 #. type: textblock
28572 #: ../src/guestfs-actions.pod:4352
28573 msgid ""
28574 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
28575 "see every block device."
28576 msgstr ""
28577
28578 #. type: =head2
28579 #: ../src/guestfs-actions.pod:4362
28580 msgid "guestfs_lvm_remove_all"
28581 msgstr ""
28582
28583 #. type: verbatim
28584 #: ../src/guestfs-actions.pod:4364
28585 #, no-wrap
28586 msgid ""
28587 " int\n"
28588 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28589 "\n"
28590 msgstr ""
28591
28592 #. type: =head2
28593 #: ../src/guestfs-actions.pod:4377
28594 msgid "guestfs_lvm_set_filter"
28595 msgstr ""
28596
28597 #. type: verbatim
28598 #: ../src/guestfs-actions.pod:4379
28599 #, no-wrap
28600 msgid ""
28601 " int\n"
28602 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28603 "                         char *const *devices);\n"
28604 "\n"
28605 msgstr ""
28606
28607 #. type: =head2
28608 #: ../src/guestfs-actions.pod:4410
28609 msgid "guestfs_lvremove"
28610 msgstr ""
28611
28612 #. type: verbatim
28613 #: ../src/guestfs-actions.pod:4412
28614 #, no-wrap
28615 msgid ""
28616 " int\n"
28617 " guestfs_lvremove (guestfs_h *g,\n"
28618 "                   const char *device);\n"
28619 "\n"
28620 msgstr ""
28621
28622 #. type: textblock
28623 #: ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:5817
28624 #: ../src/guestfs-actions.pod:7667
28625 msgid "(Added in 1.0.13)"
28626 msgstr ""
28627
28628 #. type: =head2
28629 #: ../src/guestfs-actions.pod:4426
28630 msgid "guestfs_lvrename"
28631 msgstr ""
28632
28633 #. type: verbatim
28634 #: ../src/guestfs-actions.pod:4428
28635 #, no-wrap
28636 msgid ""
28637 " int\n"
28638 " guestfs_lvrename (guestfs_h *g,\n"
28639 "                   const char *logvol,\n"
28640 "                   const char *newlogvol);\n"
28641 "\n"
28642 msgstr ""
28643
28644 #. type: textblock
28645 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:7680
28646 msgid "(Added in 1.0.83)"
28647 msgstr ""
28648
28649 #. type: =head2
28650 #: ../src/guestfs-actions.pod:4439
28651 msgid "guestfs_lvresize"
28652 msgstr ""
28653
28654 #. type: verbatim
28655 #: ../src/guestfs-actions.pod:4441
28656 #, no-wrap
28657 msgid ""
28658 " int\n"
28659 " guestfs_lvresize (guestfs_h *g,\n"
28660 "                   const char *device,\n"
28661 "                   int mbytes);\n"
28662 "\n"
28663 msgstr ""
28664
28665 #. type: =head2
28666 #: ../src/guestfs-actions.pod:4454
28667 msgid "guestfs_lvresize_free"
28668 msgstr ""
28669
28670 #. type: verbatim
28671 #: ../src/guestfs-actions.pod:4456
28672 #, no-wrap
28673 msgid ""
28674 " int\n"
28675 " guestfs_lvresize_free (guestfs_h *g,\n"
28676 "                        const char *lv,\n"
28677 "                        int percent);\n"
28678 "\n"
28679 msgstr ""
28680
28681 #. type: textblock
28682 #: ../src/guestfs-actions.pod:4469
28683 msgid "(Added in 1.3.3)"
28684 msgstr ""
28685
28686 #. type: =head2
28687 #: ../src/guestfs-actions.pod:4471
28688 msgid "guestfs_lvs"
28689 msgstr ""
28690
28691 #. type: verbatim
28692 #: ../src/guestfs-actions.pod:4473
28693 #, no-wrap
28694 msgid ""
28695 " char **\n"
28696 " guestfs_lvs (guestfs_h *g);\n"
28697 "\n"
28698 msgstr ""
28699
28700 #. type: textblock
28701 #: ../src/guestfs-actions.pod:4482
28702 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
28703 msgstr ""
28704
28705 #. type: =head2
28706 #: ../src/guestfs-actions.pod:4490
28707 msgid "guestfs_lvs_full"
28708 msgstr ""
28709
28710 #. type: verbatim
28711 #: ../src/guestfs-actions.pod:4492
28712 #, no-wrap
28713 msgid ""
28714 " struct guestfs_lvm_lv_list *\n"
28715 " guestfs_lvs_full (guestfs_h *g);\n"
28716 "\n"
28717 msgstr ""
28718
28719 #. type: textblock
28720 #: ../src/guestfs-actions.pod:4498
28721 msgid ""
28722 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
28723 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
28724 msgstr ""
28725
28726 #. type: =head2
28727 #: ../src/guestfs-actions.pod:4504
28728 msgid "guestfs_lvuuid"
28729 msgstr ""
28730
28731 #. type: verbatim
28732 #: ../src/guestfs-actions.pod:4506
28733 #, no-wrap
28734 msgid ""
28735 " char *\n"
28736 " guestfs_lvuuid (guestfs_h *g,\n"
28737 "                 const char *device);\n"
28738 "\n"
28739 msgstr ""
28740
28741 #. type: =head2
28742 #: ../src/guestfs-actions.pod:4517
28743 msgid "guestfs_lxattrlist"
28744 msgstr ""
28745
28746 #. type: verbatim
28747 #: ../src/guestfs-actions.pod:4519
28748 #, no-wrap
28749 msgid ""
28750 " struct guestfs_xattr_list *\n"
28751 " guestfs_lxattrlist (guestfs_h *g,\n"
28752 "                     const char *path,\n"
28753 "                     char *const *names);\n"
28754 "\n"
28755 msgstr ""
28756
28757 #. type: textblock
28758 #: ../src/guestfs-actions.pod:4538
28759 msgid ""
28760 "This call is intended for programs that want to efficiently list a directory "
28761 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
28762 "a similarly efficient call for getting standard stats.  Very long directory "
28763 "listings might cause the protocol message size to be exceeded, causing this "
28764 "call to fail.  The caller must split up such requests into smaller groups of "
28765 "names."
28766 msgstr ""
28767
28768 #. type: =head2
28769 #: ../src/guestfs-actions.pod:4552
28770 msgid "guestfs_mkdir"
28771 msgstr ""
28772
28773 #. type: verbatim
28774 #: ../src/guestfs-actions.pod:4554
28775 #, no-wrap
28776 msgid ""
28777 " int\n"
28778 " guestfs_mkdir (guestfs_h *g,\n"
28779 "                const char *path);\n"
28780 "\n"
28781 msgstr ""
28782
28783 #. type: =head2
28784 #: ../src/guestfs-actions.pod:4564
28785 msgid "guestfs_mkdir_mode"
28786 msgstr ""
28787
28788 #. type: verbatim
28789 #: ../src/guestfs-actions.pod:4566
28790 #, no-wrap
28791 msgid ""
28792 " int\n"
28793 " guestfs_mkdir_mode (guestfs_h *g,\n"
28794 "                     const char *path,\n"
28795 "                     int mode);\n"
28796 "\n"
28797 msgstr ""
28798
28799 #. type: textblock
28800 #: ../src/guestfs-actions.pod:4578
28801 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28802 msgstr ""
28803
28804 #. type: =head2
28805 #: ../src/guestfs-actions.pod:4584
28806 msgid "guestfs_mkdir_p"
28807 msgstr ""
28808
28809 #. type: verbatim
28810 #: ../src/guestfs-actions.pod:4586
28811 #, no-wrap
28812 msgid ""
28813 " int\n"
28814 " guestfs_mkdir_p (guestfs_h *g,\n"
28815 "                  const char *path);\n"
28816 "\n"
28817 msgstr ""
28818
28819 #. type: =head2
28820 #: ../src/guestfs-actions.pod:4597
28821 msgid "guestfs_mkdtemp"
28822 msgstr ""
28823
28824 #. type: verbatim
28825 #: ../src/guestfs-actions.pod:4599
28826 #, no-wrap
28827 msgid ""
28828 " char *\n"
28829 " guestfs_mkdtemp (guestfs_h *g,\n"
28830 "                  const char *template);\n"
28831 "\n"
28832 msgstr ""
28833
28834 #. type: =head2
28835 #: ../src/guestfs-actions.pod:4627
28836 msgid "guestfs_mke2fs_J"
28837 msgstr ""
28838
28839 #. type: verbatim
28840 #: ../src/guestfs-actions.pod:4629
28841 #, no-wrap
28842 msgid ""
28843 " int\n"
28844 " guestfs_mke2fs_J (guestfs_h *g,\n"
28845 "                   const char *fstype,\n"
28846 "                   int blocksize,\n"
28847 "                   const char *device,\n"
28848 "                   const char *journal);\n"
28849 "\n"
28850 msgstr ""
28851
28852 #. type: textblock
28853 #: ../src/guestfs-actions.pod:4642
28854 msgid "See also C<guestfs_mke2journal>."
28855 msgstr ""
28856
28857 #. type: textblock
28858 #: ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4664
28859 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4698
28860 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4726
28861 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:5062
28862 msgid "(Added in 1.0.68)"
28863 msgstr ""
28864
28865 #. type: =head2
28866 #: ../src/guestfs-actions.pod:4648
28867 msgid "guestfs_mke2fs_JL"
28868 msgstr ""
28869
28870 #. type: verbatim
28871 #: ../src/guestfs-actions.pod:4650
28872 #, no-wrap
28873 msgid ""
28874 " int\n"
28875 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28876 "                    const char *fstype,\n"
28877 "                    int blocksize,\n"
28878 "                    const char *device,\n"
28879 "                    const char *label);\n"
28880 "\n"
28881 msgstr ""
28882
28883 #. type: textblock
28884 #: ../src/guestfs-actions.pod:4660
28885 msgid "See also C<guestfs_mke2journal_L>."
28886 msgstr ""
28887
28888 #. type: =head2
28889 #: ../src/guestfs-actions.pod:4666
28890 msgid "guestfs_mke2fs_JU"
28891 msgstr ""
28892
28893 #. type: verbatim
28894 #: ../src/guestfs-actions.pod:4668
28895 #, no-wrap
28896 msgid ""
28897 " int\n"
28898 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28899 "                    const char *fstype,\n"
28900 "                    int blocksize,\n"
28901 "                    const char *device,\n"
28902 "                    const char *uuid);\n"
28903 "\n"
28904 msgstr ""
28905
28906 #. type: textblock
28907 #: ../src/guestfs-actions.pod:4678
28908 msgid "See also C<guestfs_mke2journal_U>."
28909 msgstr ""
28910
28911 #. type: =head2
28912 #: ../src/guestfs-actions.pod:4684
28913 msgid "guestfs_mke2journal"
28914 msgstr ""
28915
28916 #. type: verbatim
28917 #: ../src/guestfs-actions.pod:4686
28918 #, no-wrap
28919 msgid ""
28920 " int\n"
28921 " guestfs_mke2journal (guestfs_h *g,\n"
28922 "                      int blocksize,\n"
28923 "                      const char *device);\n"
28924 "\n"
28925 msgstr ""
28926
28927 #. type: =head2
28928 #: ../src/guestfs-actions.pod:4700
28929 msgid "guestfs_mke2journal_L"
28930 msgstr ""
28931
28932 #. type: verbatim
28933 #: ../src/guestfs-actions.pod:4702
28934 #, no-wrap
28935 msgid ""
28936 " int\n"
28937 " guestfs_mke2journal_L (guestfs_h *g,\n"
28938 "                        int blocksize,\n"
28939 "                        const char *label,\n"
28940 "                        const char *device);\n"
28941 "\n"
28942 msgstr ""
28943
28944 #. type: =head2
28945 #: ../src/guestfs-actions.pod:4714
28946 msgid "guestfs_mke2journal_U"
28947 msgstr ""
28948
28949 #. type: verbatim
28950 #: ../src/guestfs-actions.pod:4716
28951 #, no-wrap
28952 msgid ""
28953 " int\n"
28954 " guestfs_mke2journal_U (guestfs_h *g,\n"
28955 "                        int blocksize,\n"
28956 "                        const char *uuid,\n"
28957 "                        const char *device);\n"
28958 "\n"
28959 msgstr ""
28960
28961 #. type: =head2
28962 #: ../src/guestfs-actions.pod:4728
28963 msgid "guestfs_mkfifo"
28964 msgstr ""
28965
28966 #. type: verbatim
28967 #: ../src/guestfs-actions.pod:4730
28968 #, no-wrap
28969 msgid ""
28970 " int\n"
28971 " guestfs_mkfifo (guestfs_h *g,\n"
28972 "                 int mode,\n"
28973 "                 const char *path);\n"
28974 "\n"
28975 msgstr ""
28976
28977 #. type: textblock
28978 #: ../src/guestfs-actions.pod:4735
28979 msgid ""
28980 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28981 "is just a convenient wrapper around C<guestfs_mknod>."
28982 msgstr ""
28983
28984 #. type: =head2
28985 #: ../src/guestfs-actions.pod:4745
28986 msgid "guestfs_mkfs"
28987 msgstr ""
28988
28989 #. type: verbatim
28990 #: ../src/guestfs-actions.pod:4747
28991 #, no-wrap
28992 msgid ""
28993 " int\n"
28994 " guestfs_mkfs (guestfs_h *g,\n"
28995 "               const char *fstype,\n"
28996 "               const char *device);\n"
28997 "\n"
28998 msgstr ""
28999
29000 #. type: =head2
29001 #: ../src/guestfs-actions.pod:4760
29002 msgid "guestfs_mkfs_b"
29003 msgstr ""
29004
29005 #. type: verbatim
29006 #: ../src/guestfs-actions.pod:4762
29007 #, no-wrap
29008 msgid ""
29009 " int\n"
29010 " guestfs_mkfs_b (guestfs_h *g,\n"
29011 "                 const char *fstype,\n"
29012 "                 int blocksize,\n"
29013 "                 const char *device);\n"
29014 "\n"
29015 msgstr ""
29016
29017 #. type: textblock
29018 #: ../src/guestfs-actions.pod:4768
29019 msgid ""
29020 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29021 "call instead."
29022 msgstr ""
29023
29024 #. type: textblock
29025 #: ../src/guestfs-actions.pod:4775
29026 msgid ""
29027 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29028 "block size of the resulting filesystem.  Supported block sizes depend on the "
29029 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29030 msgstr ""
29031
29032 #. type: =head2
29033 #: ../src/guestfs-actions.pod:4787
29034 msgid "guestfs_mkfs_opts"
29035 msgstr ""
29036
29037 #. type: verbatim
29038 #: ../src/guestfs-actions.pod:4789
29039 #, no-wrap
29040 msgid ""
29041 " int\n"
29042 " guestfs_mkfs_opts (guestfs_h *g,\n"
29043 "                    const char *fstype,\n"
29044 "                    const char *device,\n"
29045 "                    ...);\n"
29046 "\n"
29047 msgstr ""
29048
29049 #. type: verbatim
29050 #: ../src/guestfs-actions.pod:4800
29051 #, no-wrap
29052 msgid ""
29053 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29054 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29055 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29056 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29057 "\n"
29058 msgstr ""
29059
29060 #. type: textblock
29061 #: ../src/guestfs-actions.pod:4848
29062 msgid "(Added in 1.7.19)"
29063 msgstr ""
29064
29065 #. type: =head2
29066 #: ../src/guestfs-actions.pod:4850
29067 msgid "guestfs_mkfs_opts_va"
29068 msgstr ""
29069
29070 #. type: verbatim
29071 #: ../src/guestfs-actions.pod:4852
29072 #, no-wrap
29073 msgid ""
29074 " int\n"
29075 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29076 "                       const char *fstype,\n"
29077 "                       const char *device,\n"
29078 "                       va_list args);\n"
29079 "\n"
29080 msgstr ""
29081
29082 #. type: textblock
29083 #: ../src/guestfs-actions.pod:4858
29084 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29085 msgstr ""
29086
29087 #. type: =head2
29088 #: ../src/guestfs-actions.pod:4862
29089 msgid "guestfs_mkfs_opts_argv"
29090 msgstr ""
29091
29092 #. type: verbatim
29093 #: ../src/guestfs-actions.pod:4864
29094 #, no-wrap
29095 msgid ""
29096 " int\n"
29097 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29098 "                         const char *fstype,\n"
29099 "                         const char *device,\n"
29100 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29101 "\n"
29102 msgstr ""
29103
29104 #. type: textblock
29105 #: ../src/guestfs-actions.pod:4870
29106 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29107 msgstr ""
29108
29109 #. type: =head2
29110 #: ../src/guestfs-actions.pod:4874
29111 msgid "guestfs_mkmountpoint"
29112 msgstr ""
29113
29114 #. type: verbatim
29115 #: ../src/guestfs-actions.pod:4876
29116 #, no-wrap
29117 msgid ""
29118 " int\n"
29119 " guestfs_mkmountpoint (guestfs_h *g,\n"
29120 "                       const char *exemptpath);\n"
29121 "\n"
29122 msgstr ""
29123
29124 #. type: textblock
29125 #: ../src/guestfs-actions.pod:4880
29126 msgid ""
29127 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29128 "that can be used to create extra mountpoints before mounting the first "
29129 "filesystem."
29130 msgstr ""
29131
29132 #. type: textblock
29133 #: ../src/guestfs-actions.pod:4904
29134 msgid ""
29135 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
29136 "may get unexpected errors if you try to mix these calls.  It is safest to "
29137 "manually unmount filesystems and remove mountpoints after use."
29138 msgstr ""
29139
29140 #. type: textblock
29141 #: ../src/guestfs-actions.pod:4908
29142 msgid ""
29143 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29144 "first, so for this to work for manual mountpoints, you must ensure that the "
29145 "innermost mountpoints have the longest pathnames, as in the example code "
29146 "above."
29147 msgstr ""
29148
29149 #. type: textblock
29150 #: ../src/guestfs-actions.pod:4915
29151 msgid ""
29152 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29153 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29154 "can also trigger these issues."
29155 msgstr ""
29156
29157 #. type: textblock
29158 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5227
29159 #: ../src/guestfs-actions.pod:6237
29160 msgid "(Added in 1.0.62)"
29161 msgstr ""
29162
29163 #. type: =head2
29164 #: ../src/guestfs-actions.pod:4923
29165 msgid "guestfs_mknod"
29166 msgstr ""
29167
29168 #. type: verbatim
29169 #: ../src/guestfs-actions.pod:4925
29170 #, no-wrap
29171 msgid ""
29172 " int\n"
29173 " guestfs_mknod (guestfs_h *g,\n"
29174 "                int mode,\n"
29175 "                int devmajor,\n"
29176 "                int devminor,\n"
29177 "                const char *path);\n"
29178 "\n"
29179 msgstr ""
29180
29181 #. type: textblock
29182 #: ../src/guestfs-actions.pod:4940
29183 msgid ""
29184 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29185 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29186 "regular file).  These constants are available in the standard Linux header "
29187 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29188 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29189 "the appropriate constant for you."
29190 msgstr ""
29191
29192 #. type: =head2
29193 #: ../src/guestfs-actions.pod:4954
29194 msgid "guestfs_mknod_b"
29195 msgstr ""
29196
29197 #. type: verbatim
29198 #: ../src/guestfs-actions.pod:4956
29199 #, no-wrap
29200 msgid ""
29201 " int\n"
29202 " guestfs_mknod_b (guestfs_h *g,\n"
29203 "                  int mode,\n"
29204 "                  int devmajor,\n"
29205 "                  int devminor,\n"
29206 "                  const char *path);\n"
29207 "\n"
29208 msgstr ""
29209
29210 #. type: textblock
29211 #: ../src/guestfs-actions.pod:4963
29212 msgid ""
29213 "This call creates a block device node called C<path> with mode C<mode> and "
29214 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29215 "wrapper around C<guestfs_mknod>."
29216 msgstr ""
29217
29218 #. type: =head2
29219 #: ../src/guestfs-actions.pod:4973
29220 msgid "guestfs_mknod_c"
29221 msgstr ""
29222
29223 #. type: verbatim
29224 #: ../src/guestfs-actions.pod:4975
29225 #, no-wrap
29226 msgid ""
29227 " int\n"
29228 " guestfs_mknod_c (guestfs_h *g,\n"
29229 "                  int mode,\n"
29230 "                  int devmajor,\n"
29231 "                  int devminor,\n"
29232 "                  const char *path);\n"
29233 "\n"
29234 msgstr ""
29235
29236 #. type: textblock
29237 #: ../src/guestfs-actions.pod:4982
29238 msgid ""
29239 "This call creates a char device node called C<path> with mode C<mode> and "
29240 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29241 "wrapper around C<guestfs_mknod>."
29242 msgstr ""
29243
29244 #. type: =head2
29245 #: ../src/guestfs-actions.pod:4992
29246 msgid "guestfs_mkswap"
29247 msgstr ""
29248
29249 #. type: verbatim
29250 #: ../src/guestfs-actions.pod:4994
29251 #, no-wrap
29252 msgid ""
29253 " int\n"
29254 " guestfs_mkswap (guestfs_h *g,\n"
29255 "                 const char *device);\n"
29256 "\n"
29257 msgstr ""
29258
29259 #. type: =head2
29260 #: ../src/guestfs-actions.pod:5004
29261 msgid "guestfs_mkswap_L"
29262 msgstr ""
29263
29264 #. type: verbatim
29265 #: ../src/guestfs-actions.pod:5006
29266 #, no-wrap
29267 msgid ""
29268 " int\n"
29269 " guestfs_mkswap_L (guestfs_h *g,\n"
29270 "                   const char *label,\n"
29271 "                   const char *device);\n"
29272 "\n"
29273 msgstr ""
29274
29275 #. type: =head2
29276 #: ../src/guestfs-actions.pod:5021
29277 msgid "guestfs_mkswap_U"
29278 msgstr ""
29279
29280 #. type: verbatim
29281 #: ../src/guestfs-actions.pod:5023
29282 #, no-wrap
29283 msgid ""
29284 " int\n"
29285 " guestfs_mkswap_U (guestfs_h *g,\n"
29286 "                   const char *uuid,\n"
29287 "                   const char *device);\n"
29288 "\n"
29289 msgstr ""
29290
29291 #. type: =head2
29292 #: ../src/guestfs-actions.pod:5034
29293 msgid "guestfs_mkswap_file"
29294 msgstr ""
29295
29296 #. type: verbatim
29297 #: ../src/guestfs-actions.pod:5036
29298 #, no-wrap
29299 msgid ""
29300 " int\n"
29301 " guestfs_mkswap_file (guestfs_h *g,\n"
29302 "                      const char *path);\n"
29303 "\n"
29304 msgstr ""
29305
29306 #. type: textblock
29307 #: ../src/guestfs-actions.pod:5042
29308 msgid ""
29309 "This command just writes a swap file signature to an existing file.  To "
29310 "create the file itself, use something like C<guestfs_fallocate>."
29311 msgstr ""
29312
29313 #. type: =head2
29314 #: ../src/guestfs-actions.pod:5049
29315 msgid "guestfs_modprobe"
29316 msgstr ""
29317
29318 #. type: verbatim
29319 #: ../src/guestfs-actions.pod:5051
29320 #, no-wrap
29321 msgid ""
29322 " int\n"
29323 " guestfs_modprobe (guestfs_h *g,\n"
29324 "                   const char *modulename);\n"
29325 "\n"
29326 msgstr ""
29327
29328 #. type: =head2
29329 #: ../src/guestfs-actions.pod:5064
29330 msgid "guestfs_mount"
29331 msgstr ""
29332
29333 #. type: verbatim
29334 #: ../src/guestfs-actions.pod:5066
29335 #, no-wrap
29336 msgid ""
29337 " int\n"
29338 " guestfs_mount (guestfs_h *g,\n"
29339 "                const char *device,\n"
29340 "                const char *mountpoint);\n"
29341 "\n"
29342 msgstr ""
29343
29344 #. type: textblock
29345 #: ../src/guestfs-actions.pod:5085
29346 msgid ""
29347 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
29348 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
29349 "problems for users.  If your program might need to work with older versions "
29350 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
29351 "for the first parameter if you don't want any options)."
29352 msgstr ""
29353
29354 #. type: =head2
29355 #: ../src/guestfs-actions.pod:5096
29356 msgid "guestfs_mount_9p"
29357 msgstr ""
29358
29359 #. type: verbatim
29360 #: ../src/guestfs-actions.pod:5098
29361 #, no-wrap
29362 msgid ""
29363 " int\n"
29364 " guestfs_mount_9p (guestfs_h *g,\n"
29365 "                   const char *mounttag,\n"
29366 "                   const char *mountpoint,\n"
29367 "                   ...);\n"
29368 "\n"
29369 msgstr ""
29370
29371 #. type: verbatim
29372 #: ../src/guestfs-actions.pod:5109
29373 #, no-wrap
29374 msgid ""
29375 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29376 "\n"
29377 msgstr ""
29378
29379 #. type: =head2
29380 #: ../src/guestfs-actions.pod:5122
29381 msgid "guestfs_mount_9p_va"
29382 msgstr ""
29383
29384 #. type: verbatim
29385 #: ../src/guestfs-actions.pod:5124
29386 #, no-wrap
29387 msgid ""
29388 " int\n"
29389 " guestfs_mount_9p_va (guestfs_h *g,\n"
29390 "                      const char *mounttag,\n"
29391 "                      const char *mountpoint,\n"
29392 "                      va_list args);\n"
29393 "\n"
29394 msgstr ""
29395
29396 #. type: textblock
29397 #: ../src/guestfs-actions.pod:5130
29398 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
29399 msgstr ""
29400
29401 #. type: =head2
29402 #: ../src/guestfs-actions.pod:5134
29403 msgid "guestfs_mount_9p_argv"
29404 msgstr ""
29405
29406 #. type: verbatim
29407 #: ../src/guestfs-actions.pod:5136
29408 #, no-wrap
29409 msgid ""
29410 " int\n"
29411 " guestfs_mount_9p_argv (guestfs_h *g,\n"
29412 "                        const char *mounttag,\n"
29413 "                        const char *mountpoint,\n"
29414 "                        const struct guestfs_mount_9p_argv *optargs);\n"
29415 "\n"
29416 msgstr ""
29417
29418 #. type: textblock
29419 #: ../src/guestfs-actions.pod:5142
29420 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
29421 msgstr ""
29422
29423 #. type: =head2
29424 #: ../src/guestfs-actions.pod:5146
29425 msgid "guestfs_mount_loop"
29426 msgstr ""
29427
29428 #. type: verbatim
29429 #: ../src/guestfs-actions.pod:5148
29430 #, no-wrap
29431 msgid ""
29432 " int\n"
29433 " guestfs_mount_loop (guestfs_h *g,\n"
29434 "                     const char *file,\n"
29435 "                     const char *mountpoint);\n"
29436 "\n"
29437 msgstr ""
29438
29439 #. type: =head2
29440 #: ../src/guestfs-actions.pod:5161
29441 msgid "guestfs_mount_options"
29442 msgstr ""
29443
29444 #. type: verbatim
29445 #: ../src/guestfs-actions.pod:5163
29446 #, no-wrap
29447 msgid ""
29448 " int\n"
29449 " guestfs_mount_options (guestfs_h *g,\n"
29450 "                        const char *options,\n"
29451 "                        const char *device,\n"
29452 "                        const char *mountpoint);\n"
29453 "\n"
29454 msgstr ""
29455
29456 #. type: textblock
29457 #: ../src/guestfs-actions.pod:5169
29458 msgid ""
29459 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29460 "the mount options as for the L<mount(8)> I<-o> flag."
29461 msgstr ""
29462
29463 #. type: textblock
29464 #: ../src/guestfs-actions.pod:5179 ../src/guestfs-actions.pod:5193
29465 #: ../src/guestfs-actions.pod:5210
29466 msgid "(Added in 1.0.10)"
29467 msgstr ""
29468
29469 #. type: =head2
29470 #: ../src/guestfs-actions.pod:5181
29471 msgid "guestfs_mount_ro"
29472 msgstr ""
29473
29474 #. type: verbatim
29475 #: ../src/guestfs-actions.pod:5183
29476 #, no-wrap
29477 msgid ""
29478 " int\n"
29479 " guestfs_mount_ro (guestfs_h *g,\n"
29480 "                   const char *device,\n"
29481 "                   const char *mountpoint);\n"
29482 "\n"
29483 msgstr ""
29484
29485 #. type: textblock
29486 #: ../src/guestfs-actions.pod:5188
29487 msgid ""
29488 "This is the same as the C<guestfs_mount> command, but it mounts the "
29489 "filesystem with the read-only (I<-o ro>) flag."
29490 msgstr ""
29491
29492 #. type: =head2
29493 #: ../src/guestfs-actions.pod:5195
29494 msgid "guestfs_mount_vfs"
29495 msgstr ""
29496
29497 #. type: verbatim
29498 #: ../src/guestfs-actions.pod:5197
29499 #, no-wrap
29500 msgid ""
29501 " int\n"
29502 " guestfs_mount_vfs (guestfs_h *g,\n"
29503 "                    const char *options,\n"
29504 "                    const char *vfstype,\n"
29505 "                    const char *device,\n"
29506 "                    const char *mountpoint);\n"
29507 "\n"
29508 msgstr ""
29509
29510 #. type: textblock
29511 #: ../src/guestfs-actions.pod:5204
29512 msgid ""
29513 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29514 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
29515 "t> flags."
29516 msgstr ""
29517
29518 #. type: =head2
29519 #: ../src/guestfs-actions.pod:5212
29520 msgid "guestfs_mountpoints"
29521 msgstr ""
29522
29523 #. type: verbatim
29524 #: ../src/guestfs-actions.pod:5214
29525 #, no-wrap
29526 msgid ""
29527 " char **\n"
29528 " guestfs_mountpoints (guestfs_h *g);\n"
29529 "\n"
29530 msgstr ""
29531
29532 #. type: textblock
29533 #: ../src/guestfs-actions.pod:5217
29534 msgid ""
29535 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
29536 "devices.  This one returns a hash table (map) of device name to directory "
29537 "where the device is mounted."
29538 msgstr ""
29539
29540 #. type: =head2
29541 #: ../src/guestfs-actions.pod:5229
29542 msgid "guestfs_mounts"
29543 msgstr ""
29544
29545 #. type: verbatim
29546 #: ../src/guestfs-actions.pod:5231
29547 #, no-wrap
29548 msgid ""
29549 " char **\n"
29550 " guestfs_mounts (guestfs_h *g);\n"
29551 "\n"
29552 msgstr ""
29553
29554 #. type: textblock
29555 #: ../src/guestfs-actions.pod:5239
29556 msgid "See also: C<guestfs_mountpoints>"
29557 msgstr ""
29558
29559 #. type: =head2
29560 #: ../src/guestfs-actions.pod:5247
29561 msgid "guestfs_mv"
29562 msgstr ""
29563
29564 #. type: verbatim
29565 #: ../src/guestfs-actions.pod:5249
29566 #, no-wrap
29567 msgid ""
29568 " int\n"
29569 " guestfs_mv (guestfs_h *g,\n"
29570 "             const char *src,\n"
29571 "             const char *dest);\n"
29572 "\n"
29573 msgstr ""
29574
29575 #. type: =head2
29576 #: ../src/guestfs-actions.pod:5261
29577 msgid "guestfs_ntfs_3g_probe"
29578 msgstr ""
29579
29580 #. type: verbatim
29581 #: ../src/guestfs-actions.pod:5263
29582 #, no-wrap
29583 msgid ""
29584 " int\n"
29585 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
29586 "                        int rw,\n"
29587 "                        const char *device);\n"
29588 "\n"
29589 msgstr ""
29590
29591 #. type: textblock
29592 #: ../src/guestfs-actions.pod:5282
29593 msgid "(Added in 1.0.43)"
29594 msgstr ""
29595
29596 #. type: =head2
29597 #: ../src/guestfs-actions.pod:5284
29598 msgid "guestfs_ntfsresize"
29599 msgstr ""
29600
29601 #. type: verbatim
29602 #: ../src/guestfs-actions.pod:5286
29603 #, no-wrap
29604 msgid ""
29605 " int\n"
29606 " guestfs_ntfsresize (guestfs_h *g,\n"
29607 "                     const char *device);\n"
29608 "\n"
29609 msgstr ""
29610
29611 #. type: textblock
29612 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5390
29613 msgid ""
29614 "I<This function is deprecated.> In new code, use the L</"
29615 "guestfs_ntfsresize_opts> call instead."
29616 msgstr ""
29617
29618 #. type: =head2
29619 #: ../src/guestfs-actions.pod:5314
29620 msgid "guestfs_ntfsresize_opts"
29621 msgstr ""
29622
29623 #. type: verbatim
29624 #: ../src/guestfs-actions.pod:5316
29625 #, no-wrap
29626 msgid ""
29627 " int\n"
29628 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
29629 "                          const char *device,\n"
29630 "                          ...);\n"
29631 "\n"
29632 msgstr ""
29633
29634 #. type: verbatim
29635 #: ../src/guestfs-actions.pod:5326
29636 #, no-wrap
29637 msgid ""
29638 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
29639 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
29640 "\n"
29641 msgstr ""
29642
29643 #. type: textblock
29644 #: ../src/guestfs-actions.pod:5346
29645 msgid ""
29646 "After the resize operation, the filesystem is always marked as requiring a "
29647 "consistency check (for safety).  You have to boot into Windows to perform "
29648 "this check and clear this condition.  If you I<don't> set the C<force> "
29649 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29650 "times on a single filesystem without booting into Windows between each "
29651 "resize."
29652 msgstr ""
29653
29654 #. type: =head2
29655 #: ../src/guestfs-actions.pod:5361
29656 msgid "guestfs_ntfsresize_opts_va"
29657 msgstr ""
29658
29659 #. type: verbatim
29660 #: ../src/guestfs-actions.pod:5363
29661 #, no-wrap
29662 msgid ""
29663 " int\n"
29664 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29665 "                             const char *device,\n"
29666 "                             va_list args);\n"
29667 "\n"
29668 msgstr ""
29669
29670 #. type: textblock
29671 #: ../src/guestfs-actions.pod:5368
29672 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29673 msgstr ""
29674
29675 #. type: =head2
29676 #: ../src/guestfs-actions.pod:5372
29677 msgid "guestfs_ntfsresize_opts_argv"
29678 msgstr ""
29679
29680 #. type: verbatim
29681 #: ../src/guestfs-actions.pod:5374
29682 #, no-wrap
29683 msgid ""
29684 " int\n"
29685 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29686 "                               const char *device,\n"
29687 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
29688 "\n"
29689 msgstr ""
29690
29691 #. type: textblock
29692 #: ../src/guestfs-actions.pod:5379
29693 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29694 msgstr ""
29695
29696 #. type: =head2
29697 #: ../src/guestfs-actions.pod:5383
29698 msgid "guestfs_ntfsresize_size"
29699 msgstr ""
29700
29701 #. type: verbatim
29702 #: ../src/guestfs-actions.pod:5385
29703 #, no-wrap
29704 msgid ""
29705 " int\n"
29706 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29707 "                          const char *device,\n"
29708 "                          int64_t size);\n"
29709 "\n"
29710 msgstr ""
29711
29712 #. type: textblock
29713 #: ../src/guestfs-actions.pod:5397
29714 msgid ""
29715 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29716 "to specify the new size (in bytes) explicitly."
29717 msgstr ""
29718
29719 #. type: textblock
29720 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5844
29721 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6185
29722 #: ../src/guestfs-actions.pod:7824
29723 msgid "(Added in 1.3.14)"
29724 msgstr ""
29725
29726 #. type: =head2
29727 #: ../src/guestfs-actions.pod:5404
29728 msgid "guestfs_part_add"
29729 msgstr ""
29730
29731 #. type: verbatim
29732 #: ../src/guestfs-actions.pod:5406
29733 #, no-wrap
29734 msgid ""
29735 " int\n"
29736 " guestfs_part_add (guestfs_h *g,\n"
29737 "                   const char *device,\n"
29738 "                   const char *prlogex,\n"
29739 "                   int64_t startsect,\n"
29740 "                   int64_t endsect);\n"
29741 "\n"
29742 msgstr ""
29743
29744 #. type: textblock
29745 #: ../src/guestfs-actions.pod:5413
29746 msgid ""
29747 "This command adds a partition to C<device>.  If there is no partition table "
29748 "on the device, call C<guestfs_part_init> first."
29749 msgstr ""
29750
29751 #. type: textblock
29752 #: ../src/guestfs-actions.pod:5425
29753 msgid ""
29754 "Creating a partition which covers the whole disk is not so easy.  Use "
29755 "C<guestfs_part_disk> to do that."
29756 msgstr ""
29757
29758 #. type: textblock
29759 #: ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:5468
29760 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5605
29761 #: ../src/guestfs-actions.pod:5643 ../src/guestfs-actions.pod:5662
29762 #: ../src/guestfs-actions.pod:5702
29763 msgid "(Added in 1.0.78)"
29764 msgstr ""
29765
29766 #. type: =head2
29767 #: ../src/guestfs-actions.pod:5432
29768 msgid "guestfs_part_del"
29769 msgstr ""
29770
29771 #. type: verbatim
29772 #: ../src/guestfs-actions.pod:5434
29773 #, no-wrap
29774 msgid ""
29775 " int\n"
29776 " guestfs_part_del (guestfs_h *g,\n"
29777 "                   const char *device,\n"
29778 "                   int partnum);\n"
29779 "\n"
29780 msgstr ""
29781
29782 #. type: =head2
29783 #: ../src/guestfs-actions.pod:5449
29784 msgid "guestfs_part_disk"
29785 msgstr ""
29786
29787 #. type: verbatim
29788 #: ../src/guestfs-actions.pod:5451
29789 #, no-wrap
29790 msgid ""
29791 " int\n"
29792 " guestfs_part_disk (guestfs_h *g,\n"
29793 "                    const char *device,\n"
29794 "                    const char *parttype);\n"
29795 "\n"
29796 msgstr ""
29797
29798 #. type: textblock
29799 #: ../src/guestfs-actions.pod:5456
29800 msgid ""
29801 "This command is simply a combination of C<guestfs_part_init> followed by "
29802 "C<guestfs_part_add> to create a single primary partition covering the whole "
29803 "disk."
29804 msgstr ""
29805
29806 #. type: textblock
29807 #: ../src/guestfs-actions.pod:5460
29808 msgid ""
29809 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29810 "possible values are described in C<guestfs_part_init>."
29811 msgstr ""
29812
29813 #. type: =head2
29814 #: ../src/guestfs-actions.pod:5470
29815 msgid "guestfs_part_get_bootable"
29816 msgstr ""
29817
29818 #. type: verbatim
29819 #: ../src/guestfs-actions.pod:5472
29820 #, no-wrap
29821 msgid ""
29822 " int\n"
29823 " guestfs_part_get_bootable (guestfs_h *g,\n"
29824 "                            const char *device,\n"
29825 "                            int partnum);\n"
29826 "\n"
29827 msgstr ""
29828
29829 #. type: textblock
29830 #: ../src/guestfs-actions.pod:5480
29831 msgid "See also C<guestfs_part_set_bootable>."
29832 msgstr ""
29833
29834 #. type: =head2
29835 #: ../src/guestfs-actions.pod:5486
29836 msgid "guestfs_part_get_mbr_id"
29837 msgstr ""
29838
29839 #. type: verbatim
29840 #: ../src/guestfs-actions.pod:5488
29841 #, no-wrap
29842 msgid ""
29843 " int\n"
29844 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29845 "                          const char *device,\n"
29846 "                          int partnum);\n"
29847 "\n"
29848 msgstr ""
29849
29850 #. type: textblock
29851 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
29852 msgid ""
29853 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29854 "undefined results for other partition table types (see "
29855 "C<guestfs_part_get_parttype>)."
29856 msgstr ""
29857
29858 #. type: =head2
29859 #: ../src/guestfs-actions.pod:5504
29860 msgid "guestfs_part_get_parttype"
29861 msgstr ""
29862
29863 #. type: verbatim
29864 #: ../src/guestfs-actions.pod:5506
29865 #, no-wrap
29866 msgid ""
29867 " char *\n"
29868 " guestfs_part_get_parttype (guestfs_h *g,\n"
29869 "                            const char *device);\n"
29870 "\n"
29871 msgstr ""
29872
29873 #. type: textblock
29874 #: ../src/guestfs-actions.pod:5513
29875 msgid ""
29876 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29877 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29878 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29879 msgstr ""
29880
29881 #. type: =head2
29882 #: ../src/guestfs-actions.pod:5523
29883 msgid "guestfs_part_init"
29884 msgstr ""
29885
29886 #. type: verbatim
29887 #: ../src/guestfs-actions.pod:5525
29888 #, no-wrap
29889 msgid ""
29890 " int\n"
29891 " guestfs_part_init (guestfs_h *g,\n"
29892 "                    const char *device,\n"
29893 "                    const char *parttype);\n"
29894 "\n"
29895 msgstr ""
29896
29897 #. type: textblock
29898 #: ../src/guestfs-actions.pod:5534
29899 msgid ""
29900 "Initially there are no partitions.  Following this, you should call "
29901 "C<guestfs_part_add> for each partition required."
29902 msgstr ""
29903
29904 #. type: =head2
29905 #: ../src/guestfs-actions.pod:5607
29906 msgid "guestfs_part_list"
29907 msgstr ""
29908
29909 #. type: verbatim
29910 #: ../src/guestfs-actions.pod:5609
29911 #, no-wrap
29912 msgid ""
29913 " struct guestfs_partition_list *\n"
29914 " guestfs_part_list (guestfs_h *g,\n"
29915 "                    const char *device);\n"
29916 "\n"
29917 msgstr ""
29918
29919 #. type: textblock
29920 #: ../src/guestfs-actions.pod:5626
29921 msgid ""
29922 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29923 "the device's sector size, see C<guestfs_blockdev_getss>."
29924 msgstr ""
29925
29926 #. type: textblock
29927 #: ../src/guestfs-actions.pod:5639
29928 msgid ""
29929 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29930 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29931 "use>."
29932 msgstr ""
29933
29934 #. type: =head2
29935 #: ../src/guestfs-actions.pod:5645
29936 msgid "guestfs_part_set_bootable"
29937 msgstr ""
29938
29939 #. type: verbatim
29940 #: ../src/guestfs-actions.pod:5647
29941 #, no-wrap
29942 msgid ""
29943 " int\n"
29944 " guestfs_part_set_bootable (guestfs_h *g,\n"
29945 "                            const char *device,\n"
29946 "                            int partnum,\n"
29947 "                            int bootable);\n"
29948 "\n"
29949 msgstr ""
29950
29951 #. type: =head2
29952 #: ../src/guestfs-actions.pod:5664
29953 msgid "guestfs_part_set_mbr_id"
29954 msgstr ""
29955
29956 #. type: verbatim
29957 #: ../src/guestfs-actions.pod:5666
29958 #, no-wrap
29959 msgid ""
29960 " int\n"
29961 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29962 "                          const char *device,\n"
29963 "                          int partnum,\n"
29964 "                          int idbyte);\n"
29965 "\n"
29966 msgstr ""
29967
29968 #. type: =head2
29969 #: ../src/guestfs-actions.pod:5686
29970 msgid "guestfs_part_set_name"
29971 msgstr ""
29972
29973 #. type: verbatim
29974 #: ../src/guestfs-actions.pod:5688
29975 #, no-wrap
29976 msgid ""
29977 " int\n"
29978 " guestfs_part_set_name (guestfs_h *g,\n"
29979 "                        const char *device,\n"
29980 "                        int partnum,\n"
29981 "                        const char *name);\n"
29982 "\n"
29983 msgstr ""
29984
29985 #. type: =head2
29986 #: ../src/guestfs-actions.pod:5704
29987 msgid "guestfs_part_to_dev"
29988 msgstr ""
29989
29990 #. type: verbatim
29991 #: ../src/guestfs-actions.pod:5706
29992 #, no-wrap
29993 msgid ""
29994 " char *\n"
29995 " guestfs_part_to_dev (guestfs_h *g,\n"
29996 "                      const char *partition);\n"
29997 "\n"
29998 msgstr ""
29999
30000 #. type: textblock
30001 #: ../src/guestfs-actions.pod:5714
30002 msgid ""
30003 "The named partition must exist, for example as a string returned from "
30004 "C<guestfs_list_partitions>."
30005 msgstr ""
30006
30007 #. type: =head2
30008 #: ../src/guestfs-actions.pod:5722
30009 msgid "guestfs_ping_daemon"
30010 msgstr ""
30011
30012 #. type: verbatim
30013 #: ../src/guestfs-actions.pod:5724
30014 #, no-wrap
30015 msgid ""
30016 " int\n"
30017 " guestfs_ping_daemon (guestfs_h *g);\n"
30018 "\n"
30019 msgstr ""
30020
30021 #. type: =head2
30022 #: ../src/guestfs-actions.pod:5736
30023 msgid "guestfs_pread"
30024 msgstr ""
30025
30026 #. type: verbatim
30027 #: ../src/guestfs-actions.pod:5738
30028 #, no-wrap
30029 msgid ""
30030 " char *\n"
30031 " guestfs_pread (guestfs_h *g,\n"
30032 "                const char *path,\n"
30033 "                int count,\n"
30034 "                int64_t offset,\n"
30035 "                size_t *size_r);\n"
30036 "\n"
30037 msgstr ""
30038
30039 #. type: textblock
30040 #: ../src/guestfs-actions.pod:5751
30041 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30042 msgstr ""
30043
30044 #. type: =head2
30045 #: ../src/guestfs-actions.pod:5762
30046 msgid "guestfs_pread_device"
30047 msgstr ""
30048
30049 #. type: verbatim
30050 #: ../src/guestfs-actions.pod:5764
30051 #, no-wrap
30052 msgid ""
30053 " char *\n"
30054 " guestfs_pread_device (guestfs_h *g,\n"
30055 "                       const char *device,\n"
30056 "                       int count,\n"
30057 "                       int64_t offset,\n"
30058 "                       size_t *size_r);\n"
30059 "\n"
30060 msgstr ""
30061
30062 #. type: textblock
30063 #: ../src/guestfs-actions.pod:5777
30064 msgid "See also C<guestfs_pread>."
30065 msgstr ""
30066
30067 #. type: textblock
30068 #: ../src/guestfs-actions.pod:5786
30069 msgid "(Added in 1.5.21)"
30070 msgstr ""
30071
30072 #. type: =head2
30073 #: ../src/guestfs-actions.pod:5788
30074 msgid "guestfs_pvcreate"
30075 msgstr ""
30076
30077 #. type: verbatim
30078 #: ../src/guestfs-actions.pod:5790
30079 #, no-wrap
30080 msgid ""
30081 " int\n"
30082 " guestfs_pvcreate (guestfs_h *g,\n"
30083 "                   const char *device);\n"
30084 "\n"
30085 msgstr ""
30086
30087 #. type: =head2
30088 #: ../src/guestfs-actions.pod:5802
30089 msgid "guestfs_pvremove"
30090 msgstr ""
30091
30092 #. type: verbatim
30093 #: ../src/guestfs-actions.pod:5804
30094 #, no-wrap
30095 msgid ""
30096 " int\n"
30097 " guestfs_pvremove (guestfs_h *g,\n"
30098 "                   const char *device);\n"
30099 "\n"
30100 msgstr ""
30101
30102 #. type: =head2
30103 #: ../src/guestfs-actions.pod:5819
30104 msgid "guestfs_pvresize"
30105 msgstr ""
30106
30107 #. type: verbatim
30108 #: ../src/guestfs-actions.pod:5821
30109 #, no-wrap
30110 msgid ""
30111 " int\n"
30112 " guestfs_pvresize (guestfs_h *g,\n"
30113 "                   const char *device);\n"
30114 "\n"
30115 msgstr ""
30116
30117 #. type: =head2
30118 #: ../src/guestfs-actions.pod:5832
30119 msgid "guestfs_pvresize_size"
30120 msgstr ""
30121
30122 #. type: verbatim
30123 #: ../src/guestfs-actions.pod:5834
30124 #, no-wrap
30125 msgid ""
30126 " int\n"
30127 " guestfs_pvresize_size (guestfs_h *g,\n"
30128 "                        const char *device,\n"
30129 "                        int64_t size);\n"
30130 "\n"
30131 msgstr ""
30132
30133 #. type: textblock
30134 #: ../src/guestfs-actions.pod:5839
30135 msgid ""
30136 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30137 "specify the new size (in bytes) explicitly."
30138 msgstr ""
30139
30140 #. type: =head2
30141 #: ../src/guestfs-actions.pod:5846
30142 msgid "guestfs_pvs"
30143 msgstr ""
30144
30145 #. type: verbatim
30146 #: ../src/guestfs-actions.pod:5848
30147 #, no-wrap
30148 msgid ""
30149 " char **\n"
30150 " guestfs_pvs (guestfs_h *g);\n"
30151 "\n"
30152 msgstr ""
30153
30154 #. type: textblock
30155 #: ../src/guestfs-actions.pod:5857
30156 msgid "See also C<guestfs_pvs_full>."
30157 msgstr ""
30158
30159 #. type: =head2
30160 #: ../src/guestfs-actions.pod:5865
30161 msgid "guestfs_pvs_full"
30162 msgstr ""
30163
30164 #. type: verbatim
30165 #: ../src/guestfs-actions.pod:5867
30166 #, no-wrap
30167 msgid ""
30168 " struct guestfs_lvm_pv_list *\n"
30169 " guestfs_pvs_full (guestfs_h *g);\n"
30170 "\n"
30171 msgstr ""
30172
30173 #. type: textblock
30174 #: ../src/guestfs-actions.pod:5873
30175 msgid ""
30176 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30177 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
30178 msgstr ""
30179
30180 #. type: =head2
30181 #: ../src/guestfs-actions.pod:5879
30182 msgid "guestfs_pvuuid"
30183 msgstr ""
30184
30185 #. type: verbatim
30186 #: ../src/guestfs-actions.pod:5881
30187 #, no-wrap
30188 msgid ""
30189 " char *\n"
30190 " guestfs_pvuuid (guestfs_h *g,\n"
30191 "                 const char *device);\n"
30192 "\n"
30193 msgstr ""
30194
30195 #. type: =head2
30196 #: ../src/guestfs-actions.pod:5892
30197 msgid "guestfs_pwrite"
30198 msgstr ""
30199
30200 #. type: verbatim
30201 #: ../src/guestfs-actions.pod:5894
30202 #, no-wrap
30203 msgid ""
30204 " int\n"
30205 " guestfs_pwrite (guestfs_h *g,\n"
30206 "                 const char *path,\n"
30207 "                 const char *content,\n"
30208 "                 size_t content_size,\n"
30209 "                 int64_t offset);\n"
30210 "\n"
30211 msgstr ""
30212
30213 #. type: textblock
30214 #: ../src/guestfs-actions.pod:5910
30215 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30216 msgstr ""
30217
30218 #. type: =head2
30219 #: ../src/guestfs-actions.pod:5919
30220 msgid "guestfs_pwrite_device"
30221 msgstr ""
30222
30223 #. type: verbatim
30224 #: ../src/guestfs-actions.pod:5921
30225 #, no-wrap
30226 msgid ""
30227 " int\n"
30228 " guestfs_pwrite_device (guestfs_h *g,\n"
30229 "                        const char *device,\n"
30230 "                        const char *content,\n"
30231 "                        size_t content_size,\n"
30232 "                        int64_t offset);\n"
30233 "\n"
30234 msgstr ""
30235
30236 #. type: textblock
30237 #: ../src/guestfs-actions.pod:5936
30238 msgid "See also C<guestfs_pwrite>."
30239 msgstr ""
30240
30241 #. type: textblock
30242 #: ../src/guestfs-actions.pod:5943
30243 msgid "(Added in 1.5.20)"
30244 msgstr ""
30245
30246 #. type: =head2
30247 #: ../src/guestfs-actions.pod:5945
30248 msgid "guestfs_read_file"
30249 msgstr ""
30250
30251 #. type: verbatim
30252 #: ../src/guestfs-actions.pod:5947
30253 #, no-wrap
30254 msgid ""
30255 " char *\n"
30256 " guestfs_read_file (guestfs_h *g,\n"
30257 "                    const char *path,\n"
30258 "                    size_t *size_r);\n"
30259 "\n"
30260 msgstr ""
30261
30262 #. type: textblock
30263 #: ../src/guestfs-actions.pod:5955
30264 msgid ""
30265 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
30266 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
30267 "function is limited in the total size of file that can be handled."
30268 msgstr ""
30269
30270 #. type: textblock
30271 #: ../src/guestfs-actions.pod:5967
30272 msgid "(Added in 1.0.63)"
30273 msgstr ""
30274
30275 #. type: =head2
30276 #: ../src/guestfs-actions.pod:5969
30277 msgid "guestfs_read_lines"
30278 msgstr ""
30279
30280 #. type: verbatim
30281 #: ../src/guestfs-actions.pod:5971
30282 #, no-wrap
30283 msgid ""
30284 " char **\n"
30285 " guestfs_read_lines (guestfs_h *g,\n"
30286 "                     const char *path);\n"
30287 "\n"
30288 msgstr ""
30289
30290 #. type: textblock
30291 #: ../src/guestfs-actions.pod:5980
30292 msgid ""
30293 "Note that this function cannot correctly handle binary files (specifically, "
30294 "files containing C<\\0> character which is treated as end of line).  For "
30295 "those you need to use the C<guestfs_read_file> function which has a more "
30296 "complex interface."
30297 msgstr ""
30298
30299 #. type: =head2
30300 #: ../src/guestfs-actions.pod:5991
30301 msgid "guestfs_readdir"
30302 msgstr ""
30303
30304 #. type: verbatim
30305 #: ../src/guestfs-actions.pod:5993
30306 #, no-wrap
30307 msgid ""
30308 " struct guestfs_dirent_list *\n"
30309 " guestfs_readdir (guestfs_h *g,\n"
30310 "                  const char *dir);\n"
30311 "\n"
30312 msgstr ""
30313
30314 #. type: textblock
30315 #: ../src/guestfs-actions.pod:6047
30316 msgid ""
30317 "This function is primarily intended for use by programs.  To get a simple "
30318 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
30319 "consumption, use C<guestfs_ll>."
30320 msgstr ""
30321
30322 #. type: textblock
30323 #: ../src/guestfs-actions.pod:6051
30324 msgid ""
30325 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
30326 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
30327 msgstr ""
30328
30329 #. type: =head2
30330 #: ../src/guestfs-actions.pod:6057
30331 msgid "guestfs_readlink"
30332 msgstr ""
30333
30334 #. type: verbatim
30335 #: ../src/guestfs-actions.pod:6059
30336 #, no-wrap
30337 msgid ""
30338 " char *\n"
30339 " guestfs_readlink (guestfs_h *g,\n"
30340 "                   const char *path);\n"
30341 "\n"
30342 msgstr ""
30343
30344 #. type: =head2
30345 #: ../src/guestfs-actions.pod:6070
30346 msgid "guestfs_readlinklist"
30347 msgstr ""
30348
30349 #. type: verbatim
30350 #: ../src/guestfs-actions.pod:6072
30351 #, no-wrap
30352 msgid ""
30353 " char **\n"
30354 " guestfs_readlinklist (guestfs_h *g,\n"
30355 "                       const char *path,\n"
30356 "                       char *const *names);\n"
30357 "\n"
30358 msgstr ""
30359
30360 #. type: =head2
30361 #: ../src/guestfs-actions.pod:6105
30362 msgid "guestfs_realpath"
30363 msgstr ""
30364
30365 #. type: verbatim
30366 #: ../src/guestfs-actions.pod:6107
30367 #, no-wrap
30368 msgid ""
30369 " char *\n"
30370 " guestfs_realpath (guestfs_h *g,\n"
30371 "                   const char *path);\n"
30372 "\n"
30373 msgstr ""
30374
30375 #. type: =head2
30376 #: ../src/guestfs-actions.pod:6119
30377 msgid "guestfs_removexattr"
30378 msgstr ""
30379
30380 #. type: verbatim
30381 #: ../src/guestfs-actions.pod:6121
30382 #, no-wrap
30383 msgid ""
30384 " int\n"
30385 " guestfs_removexattr (guestfs_h *g,\n"
30386 "                      const char *xattr,\n"
30387 "                      const char *path);\n"
30388 "\n"
30389 msgstr ""
30390
30391 #. type: textblock
30392 #: ../src/guestfs-actions.pod:6129
30393 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
30394 msgstr ""
30395
30396 #. type: =head2
30397 #: ../src/guestfs-actions.pod:6135
30398 msgid "guestfs_resize2fs"
30399 msgstr ""
30400
30401 #. type: verbatim
30402 #: ../src/guestfs-actions.pod:6137
30403 #, no-wrap
30404 msgid ""
30405 " int\n"
30406 " guestfs_resize2fs (guestfs_h *g,\n"
30407 "                    const char *device);\n"
30408 "\n"
30409 msgstr ""
30410
30411 #. type: textblock
30412 #: ../src/guestfs-actions.pod:6144
30413 msgid ""
30414 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
30415 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
30416 "sometimes gives an error about this and sometimes not.  In any case, it is "
30417 "always safe to call C<guestfs_e2fsck_f> before calling this function."
30418 msgstr ""
30419
30420 #. type: =head2
30421 #: ../src/guestfs-actions.pod:6154
30422 msgid "guestfs_resize2fs_M"
30423 msgstr ""
30424
30425 #. type: verbatim
30426 #: ../src/guestfs-actions.pod:6156
30427 #, no-wrap
30428 msgid ""
30429 " int\n"
30430 " guestfs_resize2fs_M (guestfs_h *g,\n"
30431 "                      const char *device);\n"
30432 "\n"
30433 msgstr ""
30434
30435 #. type: textblock
30436 #: ../src/guestfs-actions.pod:6160
30437 msgid ""
30438 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
30439 "resized to its minimum size.  This works like the I<-M> option to the "
30440 "C<resize2fs> command."
30441 msgstr ""
30442
30443 #. type: textblock
30444 #: ../src/guestfs-actions.pod:6164
30445 msgid ""
30446 "To get the resulting size of the filesystem you should call "
30447 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
30448 "These two numbers, multiplied together, give the resulting size of the "
30449 "minimal filesystem in bytes."
30450 msgstr ""
30451
30452 #. type: =head2
30453 #: ../src/guestfs-actions.pod:6173
30454 msgid "guestfs_resize2fs_size"
30455 msgstr ""
30456
30457 #. type: verbatim
30458 #: ../src/guestfs-actions.pod:6175
30459 #, no-wrap
30460 msgid ""
30461 " int\n"
30462 " guestfs_resize2fs_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:6180
30470 msgid ""
30471 "This command is the same as C<guestfs_resize2fs> except that it allows you "
30472 "to specify the new size (in bytes) explicitly."
30473 msgstr ""
30474
30475 #. type: =head2
30476 #: ../src/guestfs-actions.pod:6187
30477 msgid "guestfs_rm"
30478 msgstr ""
30479
30480 #. type: verbatim
30481 #: ../src/guestfs-actions.pod:6189
30482 #, no-wrap
30483 msgid ""
30484 " int\n"
30485 " guestfs_rm (guestfs_h *g,\n"
30486 "             const char *path);\n"
30487 "\n"
30488 msgstr ""
30489
30490 #. type: =head2
30491 #: ../src/guestfs-actions.pod:6199
30492 msgid "guestfs_rm_rf"
30493 msgstr ""
30494
30495 #. type: verbatim
30496 #: ../src/guestfs-actions.pod:6201
30497 #, no-wrap
30498 msgid ""
30499 " int\n"
30500 " guestfs_rm_rf (guestfs_h *g,\n"
30501 "                const char *path);\n"
30502 "\n"
30503 msgstr ""
30504
30505 #. type: =head2
30506 #: ../src/guestfs-actions.pod:6213
30507 msgid "guestfs_rmdir"
30508 msgstr ""
30509
30510 #. type: verbatim
30511 #: ../src/guestfs-actions.pod:6215
30512 #, no-wrap
30513 msgid ""
30514 " int\n"
30515 " guestfs_rmdir (guestfs_h *g,\n"
30516 "                const char *path);\n"
30517 "\n"
30518 msgstr ""
30519
30520 #. type: =head2
30521 #: ../src/guestfs-actions.pod:6225
30522 msgid "guestfs_rmmountpoint"
30523 msgstr ""
30524
30525 #. type: verbatim
30526 #: ../src/guestfs-actions.pod:6227
30527 #, no-wrap
30528 msgid ""
30529 " int\n"
30530 " guestfs_rmmountpoint (guestfs_h *g,\n"
30531 "                       const char *exemptpath);\n"
30532 "\n"
30533 msgstr ""
30534
30535 #. type: textblock
30536 #: ../src/guestfs-actions.pod:6231
30537 msgid ""
30538 "This calls removes a mountpoint that was previously created with "
30539 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
30540 msgstr ""
30541
30542 #. type: =head2
30543 #: ../src/guestfs-actions.pod:6239
30544 msgid "guestfs_scrub_device"
30545 msgstr ""
30546
30547 #. type: verbatim
30548 #: ../src/guestfs-actions.pod:6241
30549 #, no-wrap
30550 msgid ""
30551 " int\n"
30552 " guestfs_scrub_device (guestfs_h *g,\n"
30553 "                       const char *device);\n"
30554 "\n"
30555 msgstr ""
30556
30557 #. type: textblock
30558 #: ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6274
30559 #: ../src/guestfs-actions.pod:6293
30560 msgid "(Added in 1.0.52)"
30561 msgstr ""
30562
30563 #. type: =head2
30564 #: ../src/guestfs-actions.pod:6258
30565 msgid "guestfs_scrub_file"
30566 msgstr ""
30567
30568 #. type: verbatim
30569 #: ../src/guestfs-actions.pod:6260
30570 #, no-wrap
30571 msgid ""
30572 " int\n"
30573 " guestfs_scrub_file (guestfs_h *g,\n"
30574 "                     const char *file);\n"
30575 "\n"
30576 msgstr ""
30577
30578 #. type: =head2
30579 #: ../src/guestfs-actions.pod:6276
30580 msgid "guestfs_scrub_freespace"
30581 msgstr ""
30582
30583 #. type: verbatim
30584 #: ../src/guestfs-actions.pod:6278
30585 #, no-wrap
30586 msgid ""
30587 " int\n"
30588 " guestfs_scrub_freespace (guestfs_h *g,\n"
30589 "                          const char *dir);\n"
30590 "\n"
30591 msgstr ""
30592
30593 #. type: textblock
30594 #: ../src/guestfs-actions.pod:6282
30595 msgid ""
30596 "This command creates the directory C<dir> and then fills it with files until "
30597 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
30598 "and deletes them.  The intention is to scrub any free space on the partition "
30599 "containing C<dir>."
30600 msgstr ""
30601
30602 #. type: =head2
30603 #: ../src/guestfs-actions.pod:6295
30604 msgid "guestfs_set_append"
30605 msgstr ""
30606
30607 #. type: verbatim
30608 #: ../src/guestfs-actions.pod:6297
30609 #, no-wrap
30610 msgid ""
30611 " int\n"
30612 " guestfs_set_append (guestfs_h *g,\n"
30613 "                     const char *append);\n"
30614 "\n"
30615 msgstr ""
30616
30617 #. type: =head2
30618 #: ../src/guestfs-actions.pod:6314
30619 msgid "guestfs_set_attach_method"
30620 msgstr ""
30621
30622 #. type: verbatim
30623 #: ../src/guestfs-actions.pod:6316
30624 #, no-wrap
30625 msgid ""
30626 " int\n"
30627 " guestfs_set_attach_method (guestfs_h *g,\n"
30628 "                            const char *attachmethod);\n"
30629 "\n"
30630 msgstr ""
30631
30632 #. type: =head2
30633 #: ../src/guestfs-actions.pod:6344
30634 msgid "guestfs_set_autosync"
30635 msgstr ""
30636
30637 #. type: verbatim
30638 #: ../src/guestfs-actions.pod:6346
30639 #, no-wrap
30640 msgid ""
30641 " int\n"
30642 " guestfs_set_autosync (guestfs_h *g,\n"
30643 "                       int autosync);\n"
30644 "\n"
30645 msgstr ""
30646
30647 #. type: =head2
30648 #: ../src/guestfs-actions.pod:6362
30649 msgid "guestfs_set_direct"
30650 msgstr ""
30651
30652 #. type: verbatim
30653 #: ../src/guestfs-actions.pod:6364
30654 #, no-wrap
30655 msgid ""
30656 " int\n"
30657 " guestfs_set_direct (guestfs_h *g,\n"
30658 "                     int direct);\n"
30659 "\n"
30660 msgstr ""
30661
30662 #. type: textblock
30663 #: ../src/guestfs-actions.pod:6372
30664 msgid ""
30665 "One consequence of this is that log messages aren't caught by the library "
30666 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30667 "stdout."
30668 msgstr ""
30669
30670 #. type: =head2
30671 #: ../src/guestfs-actions.pod:6385
30672 msgid "guestfs_set_e2label"
30673 msgstr ""
30674
30675 #. type: verbatim
30676 #: ../src/guestfs-actions.pod:6387
30677 #, no-wrap
30678 msgid ""
30679 " int\n"
30680 " guestfs_set_e2label (guestfs_h *g,\n"
30681 "                      const char *device,\n"
30682 "                      const char *label);\n"
30683 "\n"
30684 msgstr ""
30685
30686 #. type: textblock
30687 #: ../src/guestfs-actions.pod:6396
30688 msgid ""
30689 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30690 "the existing label on a filesystem."
30691 msgstr ""
30692
30693 #. type: =head2
30694 #: ../src/guestfs-actions.pod:6403
30695 msgid "guestfs_set_e2uuid"
30696 msgstr ""
30697
30698 #. type: verbatim
30699 #: ../src/guestfs-actions.pod:6405
30700 #, no-wrap
30701 msgid ""
30702 " int\n"
30703 " guestfs_set_e2uuid (guestfs_h *g,\n"
30704 "                     const char *device,\n"
30705 "                     const char *uuid);\n"
30706 "\n"
30707 msgstr ""
30708
30709 #. type: textblock
30710 #: ../src/guestfs-actions.pod:6415
30711 msgid ""
30712 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30713 "the existing UUID of a filesystem."
30714 msgstr ""
30715
30716 #. type: =head2
30717 #: ../src/guestfs-actions.pod:6422
30718 msgid "guestfs_set_memsize"
30719 msgstr ""
30720
30721 #. type: verbatim
30722 #: ../src/guestfs-actions.pod:6424
30723 #, no-wrap
30724 msgid ""
30725 " int\n"
30726 " guestfs_set_memsize (guestfs_h *g,\n"
30727 "                      int memsize);\n"
30728 "\n"
30729 msgstr ""
30730
30731 #. type: textblock
30732 #: ../src/guestfs-actions.pod:6428
30733 msgid ""
30734 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30735 "This only has any effect if called before C<guestfs_launch>."
30736 msgstr ""
30737
30738 #. type: =head2
30739 #: ../src/guestfs-actions.pod:6443
30740 msgid "guestfs_set_network"
30741 msgstr ""
30742
30743 #. type: verbatim
30744 #: ../src/guestfs-actions.pod:6445
30745 #, no-wrap
30746 msgid ""
30747 " int\n"
30748 " guestfs_set_network (guestfs_h *g,\n"
30749 "                      int network);\n"
30750 "\n"
30751 msgstr ""
30752
30753 #. type: textblock
30754 #: ../src/guestfs-actions.pod:6455
30755 msgid ""
30756 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30757 "effect."
30758 msgstr ""
30759
30760 #. type: =head2
30761 #: ../src/guestfs-actions.pod:6462
30762 msgid "guestfs_set_path"
30763 msgstr ""
30764
30765 #. type: verbatim
30766 #: ../src/guestfs-actions.pod:6464
30767 #, no-wrap
30768 msgid ""
30769 " int\n"
30770 " guestfs_set_path (guestfs_h *g,\n"
30771 "                   const char *searchpath);\n"
30772 "\n"
30773 msgstr ""
30774
30775 #. type: =head2
30776 #: ../src/guestfs-actions.pod:6479
30777 msgid "guestfs_set_pgroup"
30778 msgstr ""
30779
30780 #. type: verbatim
30781 #: ../src/guestfs-actions.pod:6481
30782 #, no-wrap
30783 msgid ""
30784 " int\n"
30785 " guestfs_set_pgroup (guestfs_h *g,\n"
30786 "                     int pgroup);\n"
30787 "\n"
30788 msgstr ""
30789
30790 #. type: =head2
30791 #: ../src/guestfs-actions.pod:6498
30792 msgid "guestfs_set_qemu"
30793 msgstr ""
30794
30795 #. type: verbatim
30796 #: ../src/guestfs-actions.pod:6500
30797 #, no-wrap
30798 msgid ""
30799 " int\n"
30800 " guestfs_set_qemu (guestfs_h *g,\n"
30801 "                   const char *qemu);\n"
30802 "\n"
30803 msgstr ""
30804
30805 #. type: =head2
30806 #: ../src/guestfs-actions.pod:6526
30807 msgid "guestfs_set_recovery_proc"
30808 msgstr ""
30809
30810 #. type: verbatim
30811 #: ../src/guestfs-actions.pod:6528
30812 #, no-wrap
30813 msgid ""
30814 " int\n"
30815 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30816 "                            int recoveryproc);\n"
30817 "\n"
30818 msgstr ""
30819
30820 #. type: textblock
30821 #: ../src/guestfs-actions.pod:6532
30822 msgid ""
30823 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30824 "not create a recovery process.  The purpose of the recovery process is to "
30825 "stop runaway qemu processes in the case where the main program aborts "
30826 "abruptly."
30827 msgstr ""
30828
30829 #. type: textblock
30830 #: ../src/guestfs-actions.pod:6537
30831 msgid ""
30832 "This only has any effect if called before C<guestfs_launch>, and the default "
30833 "is true."
30834 msgstr ""
30835
30836 #. type: =head2
30837 #: ../src/guestfs-actions.pod:6550
30838 msgid "guestfs_set_selinux"
30839 msgstr ""
30840
30841 #. type: verbatim
30842 #: ../src/guestfs-actions.pod:6552
30843 #, no-wrap
30844 msgid ""
30845 " int\n"
30846 " guestfs_set_selinux (guestfs_h *g,\n"
30847 "                      int selinux);\n"
30848 "\n"
30849 msgstr ""
30850
30851 #. type: =head2
30852 #: ../src/guestfs-actions.pod:6569
30853 msgid "guestfs_set_smp"
30854 msgstr ""
30855
30856 #. type: verbatim
30857 #: ../src/guestfs-actions.pod:6571
30858 #, no-wrap
30859 msgid ""
30860 " int\n"
30861 " guestfs_set_smp (guestfs_h *g,\n"
30862 "                  int smp);\n"
30863 "\n"
30864 msgstr ""
30865
30866 #. type: textblock
30867 #: ../src/guestfs-actions.pod:6579
30868 msgid "This function must be called before C<guestfs_launch>."
30869 msgstr ""
30870
30871 #. type: =head2
30872 #: ../src/guestfs-actions.pod:6585
30873 msgid "guestfs_set_trace"
30874 msgstr ""
30875
30876 #. type: verbatim
30877 #: ../src/guestfs-actions.pod:6587
30878 #, no-wrap
30879 msgid ""
30880 " int\n"
30881 " guestfs_set_trace (guestfs_h *g,\n"
30882 "                    int trace);\n"
30883 "\n"
30884 msgstr ""
30885
30886 #. type: textblock
30887 #: ../src/guestfs-actions.pod:6601
30888 msgid ""
30889 "Trace messages are normally sent to C<stderr>, unless you register a "
30890 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30891 msgstr ""
30892
30893 #. type: =head2
30894 #: ../src/guestfs-actions.pod:6609
30895 msgid "guestfs_set_verbose"
30896 msgstr ""
30897
30898 #. type: verbatim
30899 #: ../src/guestfs-actions.pod:6611
30900 #, no-wrap
30901 msgid ""
30902 " int\n"
30903 " guestfs_set_verbose (guestfs_h *g,\n"
30904 "                      int verbose);\n"
30905 "\n"
30906 msgstr ""
30907
30908 #. type: textblock
30909 #: ../src/guestfs-actions.pod:6620
30910 msgid ""
30911 "Verbose messages are normally sent to C<stderr>, unless you register a "
30912 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30913 msgstr ""
30914
30915 #. type: =head2
30916 #: ../src/guestfs-actions.pod:6628
30917 msgid "guestfs_setcon"
30918 msgstr ""
30919
30920 #. type: verbatim
30921 #: ../src/guestfs-actions.pod:6630
30922 #, no-wrap
30923 msgid ""
30924 " int\n"
30925 " guestfs_setcon (guestfs_h *g,\n"
30926 "                 const char *context);\n"
30927 "\n"
30928 msgstr ""
30929
30930 #. type: =head2
30931 #: ../src/guestfs-actions.pod:6643
30932 msgid "guestfs_setxattr"
30933 msgstr ""
30934
30935 #. type: verbatim
30936 #: ../src/guestfs-actions.pod:6645
30937 #, no-wrap
30938 msgid ""
30939 " int\n"
30940 " guestfs_setxattr (guestfs_h *g,\n"
30941 "                   const char *xattr,\n"
30942 "                   const char *val,\n"
30943 "                   int vallen,\n"
30944 "                   const char *path);\n"
30945 "\n"
30946 msgstr ""
30947
30948 #. type: textblock
30949 #: ../src/guestfs-actions.pod:6656
30950 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30951 msgstr ""
30952
30953 #. type: =head2
30954 #: ../src/guestfs-actions.pod:6662
30955 msgid "guestfs_sfdisk"
30956 msgstr ""
30957
30958 #. type: verbatim
30959 #: ../src/guestfs-actions.pod:6664
30960 #, no-wrap
30961 msgid ""
30962 " int\n"
30963 " guestfs_sfdisk (guestfs_h *g,\n"
30964 "                 const char *device,\n"
30965 "                 int cyls,\n"
30966 "                 int heads,\n"
30967 "                 int sectors,\n"
30968 "                 char *const *lines);\n"
30969 "\n"
30970 msgstr ""
30971
30972 #. type: textblock
30973 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6716
30974 #: ../src/guestfs-actions.pod:6750
30975 msgid ""
30976 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30977 "call instead."
30978 msgstr ""
30979
30980 #. type: textblock
30981 #: ../src/guestfs-actions.pod:6699
30982 msgid ""
30983 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30984 msgstr ""
30985
30986 #. type: =head2
30987 #: ../src/guestfs-actions.pod:6709
30988 msgid "guestfs_sfdiskM"
30989 msgstr ""
30990
30991 #. type: verbatim
30992 #: ../src/guestfs-actions.pod:6711
30993 #, no-wrap
30994 msgid ""
30995 " int\n"
30996 " guestfs_sfdiskM (guestfs_h *g,\n"
30997 "                  const char *device,\n"
30998 "                  char *const *lines);\n"
30999 "\n"
31000 msgstr ""
31001
31002 #. type: textblock
31003 #: ../src/guestfs-actions.pod:6723
31004 msgid ""
31005 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31006 "partition sizes are specified in megabytes only (rounded to the nearest "
31007 "cylinder) and you don't need to specify the cyls, heads and sectors "
31008 "parameters which were rarely if ever used anyway."
31009 msgstr ""
31010
31011 #. type: textblock
31012 #: ../src/guestfs-actions.pod:6729
31013 msgid ""
31014 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31015 "C<guestfs_part_disk>"
31016 msgstr ""
31017
31018 #. type: =head2
31019 #: ../src/guestfs-actions.pod:6739
31020 msgid "guestfs_sfdisk_N"
31021 msgstr ""
31022
31023 #. type: verbatim
31024 #: ../src/guestfs-actions.pod:6741
31025 #, no-wrap
31026 msgid ""
31027 " int\n"
31028 " guestfs_sfdisk_N (guestfs_h *g,\n"
31029 "                   const char *device,\n"
31030 "                   int partnum,\n"
31031 "                   int cyls,\n"
31032 "                   int heads,\n"
31033 "                   int sectors,\n"
31034 "                   const char *line);\n"
31035 "\n"
31036 msgstr ""
31037
31038 #. type: textblock
31039 #: ../src/guestfs-actions.pod:6760
31040 msgid ""
31041 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
31042 "for the cyls/heads/sectors parameters."
31043 msgstr ""
31044
31045 #. type: textblock
31046 #: ../src/guestfs-actions.pod:6763
31047 msgid "See also: C<guestfs_part_add>"
31048 msgstr ""
31049
31050 #. type: =head2
31051 #: ../src/guestfs-actions.pod:6772
31052 msgid "guestfs_sfdisk_disk_geometry"
31053 msgstr ""
31054
31055 #. type: verbatim
31056 #: ../src/guestfs-actions.pod:6774
31057 #, no-wrap
31058 msgid ""
31059 " char *\n"
31060 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31061 "                               const char *device);\n"
31062 "\n"
31063 msgstr ""
31064
31065 #. type: textblock
31066 #: ../src/guestfs-actions.pod:6778
31067 msgid ""
31068 "This displays the disk geometry of C<device> read from the partition table.  "
31069 "Especially in the case where the underlying block device has been resized, "
31070 "this can be different from the kernel's idea of the geometry (see "
31071 "C<guestfs_sfdisk_kernel_geometry>)."
31072 msgstr ""
31073
31074 #. type: =head2
31075 #: ../src/guestfs-actions.pod:6791
31076 msgid "guestfs_sfdisk_kernel_geometry"
31077 msgstr ""
31078
31079 #. type: verbatim
31080 #: ../src/guestfs-actions.pod:6793
31081 #, no-wrap
31082 msgid ""
31083 " char *\n"
31084 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31085 "                                 const char *device);\n"
31086 "\n"
31087 msgstr ""
31088
31089 #. type: =head2
31090 #: ../src/guestfs-actions.pod:6807
31091 msgid "guestfs_sfdisk_l"
31092 msgstr ""
31093
31094 #. type: verbatim
31095 #: ../src/guestfs-actions.pod:6809
31096 #, no-wrap
31097 msgid ""
31098 " char *\n"
31099 " guestfs_sfdisk_l (guestfs_h *g,\n"
31100 "                   const char *device);\n"
31101 "\n"
31102 msgstr ""
31103
31104 #. type: textblock
31105 #: ../src/guestfs-actions.pod:6813
31106 msgid ""
31107 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31108 "call instead."
31109 msgstr ""
31110
31111 #. type: textblock
31112 #: ../src/guestfs-actions.pod:6824
31113 msgid "See also: C<guestfs_part_list>"
31114 msgstr ""
31115
31116 #. type: =head2
31117 #: ../src/guestfs-actions.pod:6831
31118 msgid "guestfs_sh"
31119 msgstr ""
31120
31121 #. type: verbatim
31122 #: ../src/guestfs-actions.pod:6833
31123 #, no-wrap
31124 msgid ""
31125 " char *\n"
31126 " guestfs_sh (guestfs_h *g,\n"
31127 "             const char *command);\n"
31128 "\n"
31129 msgstr ""
31130
31131 #. type: textblock
31132 #: ../src/guestfs-actions.pod:6840
31133 msgid "This is like C<guestfs_command>, but passes the command to:"
31134 msgstr ""
31135
31136 #. type: textblock
31137 #: ../src/guestfs-actions.pod:6848
31138 msgid "All the provisos about C<guestfs_command> apply to this call."
31139 msgstr ""
31140
31141 #. type: =head2
31142 #: ../src/guestfs-actions.pod:6855
31143 msgid "guestfs_sh_lines"
31144 msgstr ""
31145
31146 #. type: verbatim
31147 #: ../src/guestfs-actions.pod:6857
31148 #, no-wrap
31149 msgid ""
31150 " char **\n"
31151 " guestfs_sh_lines (guestfs_h *g,\n"
31152 "                   const char *command);\n"
31153 "\n"
31154 msgstr ""
31155
31156 #. type: textblock
31157 #: ../src/guestfs-actions.pod:6861
31158 msgid ""
31159 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31160 "lines."
31161 msgstr ""
31162
31163 #. type: textblock
31164 #: ../src/guestfs-actions.pod:6864
31165 msgid "See also: C<guestfs_command_lines>"
31166 msgstr ""
31167
31168 #. type: =head2
31169 #: ../src/guestfs-actions.pod:6872
31170 msgid "guestfs_sleep"
31171 msgstr ""
31172
31173 #. type: verbatim
31174 #: ../src/guestfs-actions.pod:6874
31175 #, no-wrap
31176 msgid ""
31177 " int\n"
31178 " guestfs_sleep (guestfs_h *g,\n"
31179 "                int secs);\n"
31180 "\n"
31181 msgstr ""
31182
31183 #. type: textblock
31184 #: ../src/guestfs-actions.pod:6882
31185 msgid "(Added in 1.0.41)"
31186 msgstr ""
31187
31188 #. type: =head2
31189 #: ../src/guestfs-actions.pod:6884 ../src/guestfs-structs.pod:109
31190 msgid "guestfs_stat"
31191 msgstr ""
31192
31193 #. type: verbatim
31194 #: ../src/guestfs-actions.pod:6886
31195 #, no-wrap
31196 msgid ""
31197 " struct guestfs_stat *\n"
31198 " guestfs_stat (guestfs_h *g,\n"
31199 "               const char *path);\n"
31200 "\n"
31201 msgstr ""
31202
31203 #. type: =head2
31204 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-structs.pod:135
31205 msgid "guestfs_statvfs"
31206 msgstr ""
31207
31208 #. type: verbatim
31209 #: ../src/guestfs-actions.pod:6902
31210 #, no-wrap
31211 msgid ""
31212 " struct guestfs_statvfs *\n"
31213 " guestfs_statvfs (guestfs_h *g,\n"
31214 "                  const char *path);\n"
31215 "\n"
31216 msgstr ""
31217
31218 #. type: textblock
31219 #: ../src/guestfs-actions.pod:6912
31220 msgid ""
31221 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31222 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
31223 msgstr ""
31224
31225 #. type: =head2
31226 #: ../src/guestfs-actions.pod:6918
31227 msgid "guestfs_strings"
31228 msgstr ""
31229
31230 #. type: verbatim
31231 #: ../src/guestfs-actions.pod:6920
31232 #, no-wrap
31233 msgid ""
31234 " char **\n"
31235 " guestfs_strings (guestfs_h *g,\n"
31236 "                  const char *path);\n"
31237 "\n"
31238 msgstr ""
31239
31240 #. type: =head2
31241 #: ../src/guestfs-actions.pod:6936
31242 msgid "guestfs_strings_e"
31243 msgstr ""
31244
31245 #. type: verbatim
31246 #: ../src/guestfs-actions.pod:6938
31247 #, no-wrap
31248 msgid ""
31249 " char **\n"
31250 " guestfs_strings_e (guestfs_h *g,\n"
31251 "                    const char *encoding,\n"
31252 "                    const char *path);\n"
31253 "\n"
31254 msgstr ""
31255
31256 #. type: textblock
31257 #: ../src/guestfs-actions.pod:6943
31258 msgid ""
31259 "This is like the C<guestfs_strings> command, but allows you to specify the "
31260 "encoding of strings that are looked for in the source file C<path>."
31261 msgstr ""
31262
31263 #. type: textblock
31264 #: ../src/guestfs-actions.pod:6953
31265 msgid ""
31266 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31267 "ISO-8859-X (this is what C<guestfs_strings> uses)."
31268 msgstr ""
31269
31270 #. type: =head2
31271 #: ../src/guestfs-actions.pod:6991
31272 msgid "guestfs_swapoff_device"
31273 msgstr ""
31274
31275 #. type: verbatim
31276 #: ../src/guestfs-actions.pod:6993
31277 #, no-wrap
31278 msgid ""
31279 " int\n"
31280 " guestfs_swapoff_device (guestfs_h *g,\n"
31281 "                         const char *device);\n"
31282 "\n"
31283 msgstr ""
31284
31285 #. type: textblock
31286 #: ../src/guestfs-actions.pod:6997
31287 msgid ""
31288 "This command disables the libguestfs appliance swap device or partition "
31289 "named C<device>.  See C<guestfs_swapon_device>."
31290 msgstr ""
31291
31292 #. type: =head2
31293 #: ../src/guestfs-actions.pod:7005
31294 msgid "guestfs_swapoff_file"
31295 msgstr ""
31296
31297 #. type: verbatim
31298 #: ../src/guestfs-actions.pod:7007
31299 #, no-wrap
31300 msgid ""
31301 " int\n"
31302 " guestfs_swapoff_file (guestfs_h *g,\n"
31303 "                       const char *file);\n"
31304 "\n"
31305 msgstr ""
31306
31307 #. type: =head2
31308 #: ../src/guestfs-actions.pod:7017
31309 msgid "guestfs_swapoff_label"
31310 msgstr ""
31311
31312 #. type: verbatim
31313 #: ../src/guestfs-actions.pod:7019
31314 #, no-wrap
31315 msgid ""
31316 " int\n"
31317 " guestfs_swapoff_label (guestfs_h *g,\n"
31318 "                        const char *label);\n"
31319 "\n"
31320 msgstr ""
31321
31322 #. type: =head2
31323 #: ../src/guestfs-actions.pod:7030
31324 msgid "guestfs_swapoff_uuid"
31325 msgstr ""
31326
31327 #. type: verbatim
31328 #: ../src/guestfs-actions.pod:7032
31329 #, no-wrap
31330 msgid ""
31331 " int\n"
31332 " guestfs_swapoff_uuid (guestfs_h *g,\n"
31333 "                       const char *uuid);\n"
31334 "\n"
31335 msgstr ""
31336
31337 #. type: =head2
31338 #: ../src/guestfs-actions.pod:7043
31339 msgid "guestfs_swapon_device"
31340 msgstr ""
31341
31342 #. type: verbatim
31343 #: ../src/guestfs-actions.pod:7045
31344 #, no-wrap
31345 msgid ""
31346 " int\n"
31347 " guestfs_swapon_device (guestfs_h *g,\n"
31348 "                        const char *device);\n"
31349 "\n"
31350 msgstr ""
31351
31352 #. type: textblock
31353 #: ../src/guestfs-actions.pod:7049
31354 msgid ""
31355 "This command enables the libguestfs appliance to use the swap device or "
31356 "partition named C<device>.  The increased memory is made available for all "
31357 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
31358 msgstr ""
31359
31360 #. type: =head2
31361 #: ../src/guestfs-actions.pod:7065
31362 msgid "guestfs_swapon_file"
31363 msgstr ""
31364
31365 #. type: verbatim
31366 #: ../src/guestfs-actions.pod:7067
31367 #, no-wrap
31368 msgid ""
31369 " int\n"
31370 " guestfs_swapon_file (guestfs_h *g,\n"
31371 "                      const char *file);\n"
31372 "\n"
31373 msgstr ""
31374
31375 #. type: textblock
31376 #: ../src/guestfs-actions.pod:7071
31377 msgid ""
31378 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
31379 "notes."
31380 msgstr ""
31381
31382 #. type: =head2
31383 #: ../src/guestfs-actions.pod:7078
31384 msgid "guestfs_swapon_label"
31385 msgstr ""
31386
31387 #. type: verbatim
31388 #: ../src/guestfs-actions.pod:7080
31389 #, no-wrap
31390 msgid ""
31391 " int\n"
31392 " guestfs_swapon_label (guestfs_h *g,\n"
31393 "                       const char *label);\n"
31394 "\n"
31395 msgstr ""
31396
31397 #. type: textblock
31398 #: ../src/guestfs-actions.pod:7084
31399 msgid ""
31400 "This command enables swap to a labeled swap partition.  See "
31401 "C<guestfs_swapon_device> for other notes."
31402 msgstr ""
31403
31404 #. type: =head2
31405 #: ../src/guestfs-actions.pod:7091
31406 msgid "guestfs_swapon_uuid"
31407 msgstr ""
31408
31409 #. type: verbatim
31410 #: ../src/guestfs-actions.pod:7093
31411 #, no-wrap
31412 msgid ""
31413 " int\n"
31414 " guestfs_swapon_uuid (guestfs_h *g,\n"
31415 "                      const char *uuid);\n"
31416 "\n"
31417 msgstr ""
31418
31419 #. type: textblock
31420 #: ../src/guestfs-actions.pod:7097
31421 msgid ""
31422 "This command enables swap to a swap partition with the given UUID.  See "
31423 "C<guestfs_swapon_device> for other notes."
31424 msgstr ""
31425
31426 #. type: =head2
31427 #: ../src/guestfs-actions.pod:7104
31428 msgid "guestfs_sync"
31429 msgstr ""
31430
31431 #. type: verbatim
31432 #: ../src/guestfs-actions.pod:7106
31433 #, no-wrap
31434 msgid ""
31435 " int\n"
31436 " guestfs_sync (guestfs_h *g);\n"
31437 "\n"
31438 msgstr ""
31439
31440 #. type: =head2
31441 #: ../src/guestfs-actions.pod:7119
31442 msgid "guestfs_tail"
31443 msgstr ""
31444
31445 #. type: verbatim
31446 #: ../src/guestfs-actions.pod:7121
31447 #, no-wrap
31448 msgid ""
31449 " char **\n"
31450 " guestfs_tail (guestfs_h *g,\n"
31451 "               const char *path);\n"
31452 "\n"
31453 msgstr ""
31454
31455 #. type: =head2
31456 #: ../src/guestfs-actions.pod:7137
31457 msgid "guestfs_tail_n"
31458 msgstr ""
31459
31460 #. type: verbatim
31461 #: ../src/guestfs-actions.pod:7139
31462 #, no-wrap
31463 msgid ""
31464 " char **\n"
31465 " guestfs_tail_n (guestfs_h *g,\n"
31466 "                 int nrlines,\n"
31467 "                 const char *path);\n"
31468 "\n"
31469 msgstr ""
31470
31471 #. type: =head2
31472 #: ../src/guestfs-actions.pod:7161
31473 msgid "guestfs_tar_in"
31474 msgstr ""
31475
31476 #. type: verbatim
31477 #: ../src/guestfs-actions.pod:7163
31478 #, no-wrap
31479 msgid ""
31480 " int\n"
31481 " guestfs_tar_in (guestfs_h *g,\n"
31482 "                 const char *tarfile,\n"
31483 "                 const char *directory);\n"
31484 "\n"
31485 msgstr ""
31486
31487 #. type: textblock
31488 #: ../src/guestfs-actions.pod:7171
31489 msgid ""
31490 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
31491 msgstr ""
31492
31493 #. type: textblock
31494 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193
31495 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
31496 msgid "(Added in 1.0.3)"
31497 msgstr ""
31498
31499 #. type: =head2
31500 #: ../src/guestfs-actions.pod:7178
31501 msgid "guestfs_tar_out"
31502 msgstr ""
31503
31504 #. type: verbatim
31505 #: ../src/guestfs-actions.pod:7180
31506 #, no-wrap
31507 msgid ""
31508 " int\n"
31509 " guestfs_tar_out (guestfs_h *g,\n"
31510 "                  const char *directory,\n"
31511 "                  const char *tarfile);\n"
31512 "\n"
31513 msgstr ""
31514
31515 #. type: textblock
31516 #: ../src/guestfs-actions.pod:7188
31517 msgid ""
31518 "To download a compressed tarball, use C<guestfs_tgz_out> or "
31519 "C<guestfs_txz_out>."
31520 msgstr ""
31521
31522 #. type: =head2
31523 #: ../src/guestfs-actions.pod:7195
31524 msgid "guestfs_tgz_in"
31525 msgstr ""
31526
31527 #. type: verbatim
31528 #: ../src/guestfs-actions.pod:7197
31529 #, no-wrap
31530 msgid ""
31531 " int\n"
31532 " guestfs_tgz_in (guestfs_h *g,\n"
31533 "                 const char *tarball,\n"
31534 "                 const char *directory);\n"
31535 "\n"
31536 msgstr ""
31537
31538 #. type: textblock
31539 #: ../src/guestfs-actions.pod:7205
31540 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
31541 msgstr ""
31542
31543 #. type: =head2
31544 #: ../src/guestfs-actions.pod:7211
31545 msgid "guestfs_tgz_out"
31546 msgstr ""
31547
31548 #. type: verbatim
31549 #: ../src/guestfs-actions.pod:7213
31550 #, no-wrap
31551 msgid ""
31552 " int\n"
31553 " guestfs_tgz_out (guestfs_h *g,\n"
31554 "                  const char *directory,\n"
31555 "                  const char *tarball);\n"
31556 "\n"
31557 msgstr ""
31558
31559 #. type: textblock
31560 #: ../src/guestfs-actions.pod:7221
31561 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
31562 msgstr ""
31563
31564 #. type: =head2
31565 #: ../src/guestfs-actions.pod:7227
31566 msgid "guestfs_touch"
31567 msgstr ""
31568
31569 #. type: verbatim
31570 #: ../src/guestfs-actions.pod:7229
31571 #, no-wrap
31572 msgid ""
31573 " int\n"
31574 " guestfs_touch (guestfs_h *g,\n"
31575 "                const char *path);\n"
31576 "\n"
31577 msgstr ""
31578
31579 #. type: =head2
31580 #: ../src/guestfs-actions.pod:7244
31581 msgid "guestfs_truncate"
31582 msgstr ""
31583
31584 #. type: verbatim
31585 #: ../src/guestfs-actions.pod:7246
31586 #, no-wrap
31587 msgid ""
31588 " int\n"
31589 " guestfs_truncate (guestfs_h *g,\n"
31590 "                   const char *path);\n"
31591 "\n"
31592 msgstr ""
31593
31594 #. type: =head2
31595 #: ../src/guestfs-actions.pod:7257
31596 msgid "guestfs_truncate_size"
31597 msgstr ""
31598
31599 #. type: verbatim
31600 #: ../src/guestfs-actions.pod:7259
31601 #, no-wrap
31602 msgid ""
31603 " int\n"
31604 " guestfs_truncate_size (guestfs_h *g,\n"
31605 "                        const char *path,\n"
31606 "                        int64_t size);\n"
31607 "\n"
31608 msgstr ""
31609
31610 #. type: textblock
31611 #: ../src/guestfs-actions.pod:7267
31612 msgid ""
31613 "If the current file size is less than C<size> then the file is extended to "
31614 "the required size with zero bytes.  This creates a sparse file (ie. disk "
31615 "blocks are not allocated for the file until you write to it).  To create a "
31616 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
31617 msgstr ""
31618
31619 #. type: =head2
31620 #: ../src/guestfs-actions.pod:7277
31621 msgid "guestfs_tune2fs_l"
31622 msgstr ""
31623
31624 #. type: verbatim
31625 #: ../src/guestfs-actions.pod:7279
31626 #, no-wrap
31627 msgid ""
31628 " char **\n"
31629 " guestfs_tune2fs_l (guestfs_h *g,\n"
31630 "                    const char *device);\n"
31631 "\n"
31632 msgstr ""
31633
31634 #. type: =head2
31635 #: ../src/guestfs-actions.pod:7299
31636 msgid "guestfs_txz_in"
31637 msgstr ""
31638
31639 #. type: verbatim
31640 #: ../src/guestfs-actions.pod:7301
31641 #, no-wrap
31642 msgid ""
31643 " int\n"
31644 " guestfs_txz_in (guestfs_h *g,\n"
31645 "                 const char *tarball,\n"
31646 "                 const char *directory);\n"
31647 "\n"
31648 msgstr ""
31649
31650 #. type: =head2
31651 #: ../src/guestfs-actions.pod:7313
31652 msgid "guestfs_txz_out"
31653 msgstr ""
31654
31655 #. type: verbatim
31656 #: ../src/guestfs-actions.pod:7315
31657 #, no-wrap
31658 msgid ""
31659 " int\n"
31660 " guestfs_txz_out (guestfs_h *g,\n"
31661 "                  const char *directory,\n"
31662 "                  const char *tarball);\n"
31663 "\n"
31664 msgstr ""
31665
31666 #. type: =head2
31667 #: ../src/guestfs-actions.pod:7327
31668 msgid "guestfs_umask"
31669 msgstr ""
31670
31671 #. type: verbatim
31672 #: ../src/guestfs-actions.pod:7329
31673 #, no-wrap
31674 msgid ""
31675 " int\n"
31676 " guestfs_umask (guestfs_h *g,\n"
31677 "                int mask);\n"
31678 "\n"
31679 msgstr ""
31680
31681 #. type: textblock
31682 #: ../src/guestfs-actions.pod:7345
31683 msgid ""
31684 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31685 "C<guestfs_mkdir>."
31686 msgstr ""
31687
31688 #. type: =head2
31689 #: ../src/guestfs-actions.pod:7354
31690 msgid "guestfs_umount"
31691 msgstr ""
31692
31693 #. type: verbatim
31694 #: ../src/guestfs-actions.pod:7356
31695 #, no-wrap
31696 msgid ""
31697 " int\n"
31698 " guestfs_umount (guestfs_h *g,\n"
31699 "                 const char *pathordevice);\n"
31700 "\n"
31701 msgstr ""
31702
31703 #. type: =head2
31704 #: ../src/guestfs-actions.pod:7368
31705 msgid "guestfs_umount_all"
31706 msgstr ""
31707
31708 #. type: verbatim
31709 #: ../src/guestfs-actions.pod:7370
31710 #, no-wrap
31711 msgid ""
31712 " int\n"
31713 " guestfs_umount_all (guestfs_h *g);\n"
31714 "\n"
31715 msgstr ""
31716
31717 #. type: =head2
31718 #: ../src/guestfs-actions.pod:7381
31719 msgid "guestfs_upload"
31720 msgstr ""
31721
31722 #. type: verbatim
31723 #: ../src/guestfs-actions.pod:7383
31724 #, no-wrap
31725 msgid ""
31726 " int\n"
31727 " guestfs_upload (guestfs_h *g,\n"
31728 "                 const char *filename,\n"
31729 "                 const char *remotefilename);\n"
31730 "\n"
31731 msgstr ""
31732
31733 #. type: textblock
31734 #: ../src/guestfs-actions.pod:7393
31735 msgid "See also C<guestfs_download>."
31736 msgstr ""
31737
31738 #. type: =head2
31739 #: ../src/guestfs-actions.pod:7404
31740 msgid "guestfs_upload_offset"
31741 msgstr ""
31742
31743 #. type: verbatim
31744 #: ../src/guestfs-actions.pod:7406
31745 #, no-wrap
31746 msgid ""
31747 " int\n"
31748 " guestfs_upload_offset (guestfs_h *g,\n"
31749 "                        const char *filename,\n"
31750 "                        const char *remotefilename,\n"
31751 "                        int64_t offset);\n"
31752 "\n"
31753 msgstr ""
31754
31755 #. type: textblock
31756 #: ../src/guestfs-actions.pod:7422
31757 msgid ""
31758 "Note that there is no limit on the amount of data that can be uploaded with "
31759 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31760 "full amount unless an error occurs."
31761 msgstr ""
31762
31763 #. type: textblock
31764 #: ../src/guestfs-actions.pod:7427
31765 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31766 msgstr ""
31767
31768 #. type: =head2
31769 #: ../src/guestfs-actions.pod:7438
31770 msgid "guestfs_utimens"
31771 msgstr ""
31772
31773 #. type: verbatim
31774 #: ../src/guestfs-actions.pod:7440
31775 #, no-wrap
31776 msgid ""
31777 " int\n"
31778 " guestfs_utimens (guestfs_h *g,\n"
31779 "                  const char *path,\n"
31780 "                  int64_t atsecs,\n"
31781 "                  int64_t atnsecs,\n"
31782 "                  int64_t mtsecs,\n"
31783 "                  int64_t mtnsecs);\n"
31784 "\n"
31785 msgstr ""
31786
31787 #. type: =head2
31788 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-structs.pod:175
31789 msgid "guestfs_version"
31790 msgstr ""
31791
31792 #. type: verbatim
31793 #: ../src/guestfs-actions.pod:7471
31794 #, no-wrap
31795 msgid ""
31796 " struct guestfs_version *\n"
31797 " guestfs_version (guestfs_h *g);\n"
31798 "\n"
31799 msgstr ""
31800
31801 #. type: textblock
31802 #: ../src/guestfs-actions.pod:7499
31803 msgid ""
31804 "I<Note:> Don't use this call to test for availability of features.  In "
31805 "enterprise distributions we backport features from later versions into "
31806 "earlier versions, making this an unreliable way to test for features.  Use "
31807 "C<guestfs_available> instead."
31808 msgstr ""
31809
31810 #. type: textblock
31811 #: ../src/guestfs-actions.pod:7505
31812 msgid ""
31813 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31814 "error.  I<The caller must call C<guestfs_free_version> after use>."
31815 msgstr ""
31816
31817 #. type: textblock
31818 #: ../src/guestfs-actions.pod:7509
31819 msgid "(Added in 1.0.58)"
31820 msgstr ""
31821
31822 #. type: =head2
31823 #: ../src/guestfs-actions.pod:7511
31824 msgid "guestfs_vfs_label"
31825 msgstr ""
31826
31827 #. type: verbatim
31828 #: ../src/guestfs-actions.pod:7513
31829 #, no-wrap
31830 msgid ""
31831 " char *\n"
31832 " guestfs_vfs_label (guestfs_h *g,\n"
31833 "                    const char *device);\n"
31834 "\n"
31835 msgstr ""
31836
31837 #. type: textblock
31838 #: ../src/guestfs-actions.pod:7522
31839 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31840 msgstr ""
31841
31842 #. type: textblock
31843 #: ../src/guestfs-actions.pod:7527 ../src/guestfs-actions.pod:7564
31844 msgid "(Added in 1.3.18)"
31845 msgstr ""
31846
31847 #. type: =head2
31848 #: ../src/guestfs-actions.pod:7529
31849 msgid "guestfs_vfs_type"
31850 msgstr ""
31851
31852 #. type: verbatim
31853 #: ../src/guestfs-actions.pod:7531
31854 #, no-wrap
31855 msgid ""
31856 " char *\n"
31857 " guestfs_vfs_type (guestfs_h *g,\n"
31858 "                   const char *device);\n"
31859 "\n"
31860 msgstr ""
31861
31862 #. type: =head2
31863 #: ../src/guestfs-actions.pod:7548
31864 msgid "guestfs_vfs_uuid"
31865 msgstr ""
31866
31867 #. type: verbatim
31868 #: ../src/guestfs-actions.pod:7550
31869 #, no-wrap
31870 msgid ""
31871 " char *\n"
31872 " guestfs_vfs_uuid (guestfs_h *g,\n"
31873 "                   const char *device);\n"
31874 "\n"
31875 msgstr ""
31876
31877 #. type: textblock
31878 #: ../src/guestfs-actions.pod:7559
31879 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31880 msgstr ""
31881
31882 #. type: =head2
31883 #: ../src/guestfs-actions.pod:7566
31884 msgid "guestfs_vg_activate"
31885 msgstr ""
31886
31887 #. type: verbatim
31888 #: ../src/guestfs-actions.pod:7568
31889 #, no-wrap
31890 msgid ""
31891 " int\n"
31892 " guestfs_vg_activate (guestfs_h *g,\n"
31893 "                      int activate,\n"
31894 "                      char *const *volgroups);\n"
31895 "\n"
31896 msgstr ""
31897
31898 #. type: =head2
31899 #: ../src/guestfs-actions.pod:7585
31900 msgid "guestfs_vg_activate_all"
31901 msgstr ""
31902
31903 #. type: verbatim
31904 #: ../src/guestfs-actions.pod:7587
31905 #, no-wrap
31906 msgid ""
31907 " int\n"
31908 " guestfs_vg_activate_all (guestfs_h *g,\n"
31909 "                          int activate);\n"
31910 "\n"
31911 msgstr ""
31912
31913 #. type: =head2
31914 #: ../src/guestfs-actions.pod:7600
31915 msgid "guestfs_vgcreate"
31916 msgstr ""
31917
31918 #. type: verbatim
31919 #: ../src/guestfs-actions.pod:7602
31920 #, no-wrap
31921 msgid ""
31922 " int\n"
31923 " guestfs_vgcreate (guestfs_h *g,\n"
31924 "                   const char *volgroup,\n"
31925 "                   char *const *physvols);\n"
31926 "\n"
31927 msgstr ""
31928
31929 #. type: =head2
31930 #: ../src/guestfs-actions.pod:7614
31931 msgid "guestfs_vglvuuids"
31932 msgstr ""
31933
31934 #. type: verbatim
31935 #: ../src/guestfs-actions.pod:7616
31936 #, no-wrap
31937 msgid ""
31938 " char **\n"
31939 " guestfs_vglvuuids (guestfs_h *g,\n"
31940 "                    const char *vgname);\n"
31941 "\n"
31942 msgstr ""
31943
31944 #. type: textblock
31945 #: ../src/guestfs-actions.pod:7623
31946 msgid ""
31947 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31948 "associate logical volumes and volume groups."
31949 msgstr ""
31950
31951 #. type: textblock
31952 #: ../src/guestfs-actions.pod:7626
31953 msgid "See also C<guestfs_vgpvuuids>."
31954 msgstr ""
31955
31956 #. type: =head2
31957 #: ../src/guestfs-actions.pod:7634
31958 msgid "guestfs_vgpvuuids"
31959 msgstr ""
31960
31961 #. type: verbatim
31962 #: ../src/guestfs-actions.pod:7636
31963 #, no-wrap
31964 msgid ""
31965 " char **\n"
31966 " guestfs_vgpvuuids (guestfs_h *g,\n"
31967 "                    const char *vgname);\n"
31968 "\n"
31969 msgstr ""
31970
31971 #. type: textblock
31972 #: ../src/guestfs-actions.pod:7643
31973 msgid ""
31974 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31975 "associate physical volumes and volume groups."
31976 msgstr ""
31977
31978 #. type: textblock
31979 #: ../src/guestfs-actions.pod:7646
31980 msgid "See also C<guestfs_vglvuuids>."
31981 msgstr ""
31982
31983 #. type: =head2
31984 #: ../src/guestfs-actions.pod:7654
31985 msgid "guestfs_vgremove"
31986 msgstr ""
31987
31988 #. type: verbatim
31989 #: ../src/guestfs-actions.pod:7656
31990 #, no-wrap
31991 msgid ""
31992 " int\n"
31993 " guestfs_vgremove (guestfs_h *g,\n"
31994 "                   const char *vgname);\n"
31995 "\n"
31996 msgstr ""
31997
31998 #. type: =head2
31999 #: ../src/guestfs-actions.pod:7669
32000 msgid "guestfs_vgrename"
32001 msgstr ""
32002
32003 #. type: verbatim
32004 #: ../src/guestfs-actions.pod:7671
32005 #, no-wrap
32006 msgid ""
32007 " int\n"
32008 " guestfs_vgrename (guestfs_h *g,\n"
32009 "                   const char *volgroup,\n"
32010 "                   const char *newvolgroup);\n"
32011 "\n"
32012 msgstr ""
32013
32014 #. type: =head2
32015 #: ../src/guestfs-actions.pod:7682
32016 msgid "guestfs_vgs"
32017 msgstr ""
32018
32019 #. type: verbatim
32020 #: ../src/guestfs-actions.pod:7684
32021 #, no-wrap
32022 msgid ""
32023 " char **\n"
32024 " guestfs_vgs (guestfs_h *g);\n"
32025 "\n"
32026 msgstr ""
32027
32028 #. type: textblock
32029 #: ../src/guestfs-actions.pod:7693
32030 msgid "See also C<guestfs_vgs_full>."
32031 msgstr ""
32032
32033 #. type: =head2
32034 #: ../src/guestfs-actions.pod:7701
32035 msgid "guestfs_vgs_full"
32036 msgstr ""
32037
32038 #. type: verbatim
32039 #: ../src/guestfs-actions.pod:7703
32040 #, no-wrap
32041 msgid ""
32042 " struct guestfs_lvm_vg_list *\n"
32043 " guestfs_vgs_full (guestfs_h *g);\n"
32044 "\n"
32045 msgstr ""
32046
32047 #. type: textblock
32048 #: ../src/guestfs-actions.pod:7709
32049 msgid ""
32050 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32051 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
32052 msgstr ""
32053
32054 #. type: =head2
32055 #: ../src/guestfs-actions.pod:7715
32056 msgid "guestfs_vgscan"
32057 msgstr ""
32058
32059 #. type: verbatim
32060 #: ../src/guestfs-actions.pod:7717
32061 #, no-wrap
32062 msgid ""
32063 " int\n"
32064 " guestfs_vgscan (guestfs_h *g);\n"
32065 "\n"
32066 msgstr ""
32067
32068 #. type: =head2
32069 #: ../src/guestfs-actions.pod:7727
32070 msgid "guestfs_vguuid"
32071 msgstr ""
32072
32073 #. type: verbatim
32074 #: ../src/guestfs-actions.pod:7729
32075 #, no-wrap
32076 msgid ""
32077 " char *\n"
32078 " guestfs_vguuid (guestfs_h *g,\n"
32079 "                 const char *vgname);\n"
32080 "\n"
32081 msgstr ""
32082
32083 #. type: =head2
32084 #: ../src/guestfs-actions.pod:7740
32085 msgid "guestfs_wait_ready"
32086 msgstr ""
32087
32088 #. type: verbatim
32089 #: ../src/guestfs-actions.pod:7742
32090 #, no-wrap
32091 msgid ""
32092 " int\n"
32093 " guestfs_wait_ready (guestfs_h *g);\n"
32094 "\n"
32095 msgstr ""
32096
32097 #. type: textblock
32098 #: ../src/guestfs-actions.pod:7745
32099 msgid ""
32100 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32101 "instead."
32102 msgstr ""
32103
32104 #. type: textblock
32105 #: ../src/guestfs-actions.pod:7752
32106 msgid "This function is a no op."
32107 msgstr ""
32108
32109 #. type: textblock
32110 #: ../src/guestfs-actions.pod:7754
32111 msgid ""
32112 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32113 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
32114 "is no longer necessary because C<guestfs_launch> now does the waiting."
32115 msgstr ""
32116
32117 #. type: textblock
32118 #: ../src/guestfs-actions.pod:7759
32119 msgid ""
32120 "If you see any calls to this function in code then you can just remove them, "
32121 "unless you want to retain compatibility with older versions of the API."
32122 msgstr ""
32123
32124 #. type: =head2
32125 #: ../src/guestfs-actions.pod:7767
32126 msgid "guestfs_wc_c"
32127 msgstr ""
32128
32129 #. type: verbatim
32130 #: ../src/guestfs-actions.pod:7769
32131 #, no-wrap
32132 msgid ""
32133 " int\n"
32134 " guestfs_wc_c (guestfs_h *g,\n"
32135 "               const char *path);\n"
32136 "\n"
32137 msgstr ""
32138
32139 #. type: =head2
32140 #: ../src/guestfs-actions.pod:7780
32141 msgid "guestfs_wc_l"
32142 msgstr ""
32143
32144 #. type: verbatim
32145 #: ../src/guestfs-actions.pod:7782
32146 #, no-wrap
32147 msgid ""
32148 " int\n"
32149 " guestfs_wc_l (guestfs_h *g,\n"
32150 "               const char *path);\n"
32151 "\n"
32152 msgstr ""
32153
32154 #. type: =head2
32155 #: ../src/guestfs-actions.pod:7793
32156 msgid "guestfs_wc_w"
32157 msgstr ""
32158
32159 #. type: verbatim
32160 #: ../src/guestfs-actions.pod:7795
32161 #, no-wrap
32162 msgid ""
32163 " int\n"
32164 " guestfs_wc_w (guestfs_h *g,\n"
32165 "               const char *path);\n"
32166 "\n"
32167 msgstr ""
32168
32169 #. type: =head2
32170 #: ../src/guestfs-actions.pod:7806
32171 msgid "guestfs_write"
32172 msgstr ""
32173
32174 #. type: verbatim
32175 #: ../src/guestfs-actions.pod:7808
32176 #, no-wrap
32177 msgid ""
32178 " int\n"
32179 " guestfs_write (guestfs_h *g,\n"
32180 "                const char *path,\n"
32181 "                const char *content,\n"
32182 "                size_t content_size);\n"
32183 "\n"
32184 msgstr ""
32185
32186 #. type: textblock
32187 #: ../src/guestfs-actions.pod:7817
32188 msgid "See also C<guestfs_write_append>."
32189 msgstr ""
32190
32191 #. type: =head2
32192 #: ../src/guestfs-actions.pod:7826
32193 msgid "guestfs_write_append"
32194 msgstr ""
32195
32196 #. type: verbatim
32197 #: ../src/guestfs-actions.pod:7828
32198 #, no-wrap
32199 msgid ""
32200 " int\n"
32201 " guestfs_write_append (guestfs_h *g,\n"
32202 "                       const char *path,\n"
32203 "                       const char *content,\n"
32204 "                       size_t content_size);\n"
32205 "\n"
32206 msgstr ""
32207
32208 #. type: textblock
32209 #: ../src/guestfs-actions.pod:7837
32210 msgid "See also C<guestfs_write>."
32211 msgstr ""
32212
32213 #. type: =head2
32214 #: ../src/guestfs-actions.pod:7846
32215 msgid "guestfs_write_file"
32216 msgstr ""
32217
32218 #. type: verbatim
32219 #: ../src/guestfs-actions.pod:7848
32220 #, no-wrap
32221 msgid ""
32222 " int\n"
32223 " guestfs_write_file (guestfs_h *g,\n"
32224 "                     const char *path,\n"
32225 "                     const char *content,\n"
32226 "                     int size);\n"
32227 "\n"
32228 msgstr ""
32229
32230 #. type: textblock
32231 #: ../src/guestfs-actions.pod:7854
32232 msgid ""
32233 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32234 "instead."
32235 msgstr ""
32236
32237 #. type: =head2
32238 #: ../src/guestfs-actions.pod:7879
32239 msgid "guestfs_zegrep"
32240 msgstr ""
32241
32242 #. type: verbatim
32243 #: ../src/guestfs-actions.pod:7881
32244 #, no-wrap
32245 msgid ""
32246 " char **\n"
32247 " guestfs_zegrep (guestfs_h *g,\n"
32248 "                 const char *regex,\n"
32249 "                 const char *path);\n"
32250 "\n"
32251 msgstr ""
32252
32253 #. type: =head2
32254 #: ../src/guestfs-actions.pod:7898
32255 msgid "guestfs_zegrepi"
32256 msgstr ""
32257
32258 #. type: verbatim
32259 #: ../src/guestfs-actions.pod:7900
32260 #, no-wrap
32261 msgid ""
32262 " char **\n"
32263 " guestfs_zegrepi (guestfs_h *g,\n"
32264 "                  const char *regex,\n"
32265 "                  const char *path);\n"
32266 "\n"
32267 msgstr ""
32268
32269 #. type: =head2
32270 #: ../src/guestfs-actions.pod:7917
32271 msgid "guestfs_zero"
32272 msgstr ""
32273
32274 #. type: verbatim
32275 #: ../src/guestfs-actions.pod:7919
32276 #, no-wrap
32277 msgid ""
32278 " int\n"
32279 " guestfs_zero (guestfs_h *g,\n"
32280 "               const char *device);\n"
32281 "\n"
32282 msgstr ""
32283
32284 #. type: textblock
32285 #: ../src/guestfs-actions.pod:7933
32286 msgid ""
32287 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
32288 "C<guestfs_is_zero_device>"
32289 msgstr ""
32290
32291 #. type: =head2
32292 #: ../src/guestfs-actions.pod:7945
32293 msgid "guestfs_zero_device"
32294 msgstr ""
32295
32296 #. type: verbatim
32297 #: ../src/guestfs-actions.pod:7947
32298 #, no-wrap
32299 msgid ""
32300 " int\n"
32301 " guestfs_zero_device (guestfs_h *g,\n"
32302 "                      const char *device);\n"
32303 "\n"
32304 msgstr ""
32305
32306 #. type: textblock
32307 #: ../src/guestfs-actions.pod:7951
32308 msgid ""
32309 "This command writes zeroes over the entire C<device>.  Compare with "
32310 "C<guestfs_zero> which just zeroes the first few blocks of a device."
32311 msgstr ""
32312
32313 #. type: textblock
32314 #: ../src/guestfs-actions.pod:7969
32315 msgid "(Added in 1.3.1)"
32316 msgstr ""
32317
32318 #. type: =head2
32319 #: ../src/guestfs-actions.pod:7971
32320 msgid "guestfs_zerofree"
32321 msgstr ""
32322
32323 #. type: verbatim
32324 #: ../src/guestfs-actions.pod:7973
32325 #, no-wrap
32326 msgid ""
32327 " int\n"
32328 " guestfs_zerofree (guestfs_h *g,\n"
32329 "                   const char *device);\n"
32330 "\n"
32331 msgstr ""
32332
32333 #. type: =head2
32334 #: ../src/guestfs-actions.pod:7992
32335 msgid "guestfs_zfgrep"
32336 msgstr ""
32337
32338 #. type: verbatim
32339 #: ../src/guestfs-actions.pod:7994
32340 #, no-wrap
32341 msgid ""
32342 " char **\n"
32343 " guestfs_zfgrep (guestfs_h *g,\n"
32344 "                 const char *pattern,\n"
32345 "                 const char *path);\n"
32346 "\n"
32347 msgstr ""
32348
32349 #. type: =head2
32350 #: ../src/guestfs-actions.pod:8011
32351 msgid "guestfs_zfgrepi"
32352 msgstr ""
32353
32354 #. type: verbatim
32355 #: ../src/guestfs-actions.pod:8013
32356 #, no-wrap
32357 msgid ""
32358 " char **\n"
32359 " guestfs_zfgrepi (guestfs_h *g,\n"
32360 "                  const char *pattern,\n"
32361 "                  const char *path);\n"
32362 "\n"
32363 msgstr ""
32364
32365 #. type: =head2
32366 #: ../src/guestfs-actions.pod:8030
32367 msgid "guestfs_zfile"
32368 msgstr ""
32369
32370 #. type: verbatim
32371 #: ../src/guestfs-actions.pod:8032
32372 #, no-wrap
32373 msgid ""
32374 " char *\n"
32375 " guestfs_zfile (guestfs_h *g,\n"
32376 "                const char *meth,\n"
32377 "                const char *path);\n"
32378 "\n"
32379 msgstr ""
32380
32381 #. type: textblock
32382 #: ../src/guestfs-actions.pod:8037
32383 msgid ""
32384 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
32385 "instead."
32386 msgstr ""
32387
32388 #. type: textblock
32389 #: ../src/guestfs-actions.pod:8049
32390 msgid ""
32391 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
32392 "files."
32393 msgstr ""
32394
32395 #. type: =head2
32396 #: ../src/guestfs-actions.pod:8057
32397 msgid "guestfs_zgrep"
32398 msgstr ""
32399
32400 #. type: verbatim
32401 #: ../src/guestfs-actions.pod:8059
32402 #, no-wrap
32403 msgid ""
32404 " char **\n"
32405 " guestfs_zgrep (guestfs_h *g,\n"
32406 "                const char *regex,\n"
32407 "                const char *path);\n"
32408 "\n"
32409 msgstr ""
32410
32411 #. type: =head2
32412 #: ../src/guestfs-actions.pod:8076
32413 msgid "guestfs_zgrepi"
32414 msgstr ""
32415
32416 #. type: verbatim
32417 #: ../src/guestfs-actions.pod:8078
32418 #, no-wrap
32419 msgid ""
32420 " char **\n"
32421 " guestfs_zgrepi (guestfs_h *g,\n"
32422 "                 const char *regex,\n"
32423 "                 const char *path);\n"
32424 "\n"
32425 msgstr ""
32426
32427 #. type: =item
32428 #: ../src/guestfs-availability.pod:3
32429 msgid "B<augeas>"
32430 msgstr ""
32431
32432 #. type: textblock
32433 #: ../src/guestfs-availability.pod:5
32434 msgid ""
32435 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
32436 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
32437 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
32438 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
32439 "L</guestfs_aug_save> L</guestfs_aug_set>"
32440 msgstr ""
32441
32442 #. type: =item
32443 #: ../src/guestfs-availability.pod:21
32444 msgid "B<btrfs>"
32445 msgstr ""
32446
32447 #. type: textblock
32448 #: ../src/guestfs-availability.pod:23
32449 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
32450 msgstr ""
32451
32452 #. type: =item
32453 #: ../src/guestfs-availability.pod:26
32454 msgid "B<grub>"
32455 msgstr ""
32456
32457 #. type: textblock
32458 #: ../src/guestfs-availability.pod:28
32459 msgid "The following functions: L</guestfs_grub_install>"
32460 msgstr ""
32461
32462 #. type: =item
32463 #: ../src/guestfs-availability.pod:31
32464 msgid "B<inotify>"
32465 msgstr ""
32466
32467 #. type: textblock
32468 #: ../src/guestfs-availability.pod:33
32469 msgid ""
32470 "The following functions: L</guestfs_inotify_add_watch> L</"
32471 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
32472 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
32473 msgstr ""
32474
32475 #. type: =item
32476 #: ../src/guestfs-availability.pod:41
32477 msgid "B<linuxfsuuid>"
32478 msgstr ""
32479
32480 #. type: textblock
32481 #: ../src/guestfs-availability.pod:43
32482 msgid ""
32483 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
32484 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
32485 msgstr ""
32486
32487 #. type: =item
32488 #: ../src/guestfs-availability.pod:50
32489 msgid "B<linuxmodules>"
32490 msgstr ""
32491
32492 #. type: textblock
32493 #: ../src/guestfs-availability.pod:52
32494 msgid "The following functions: L</guestfs_modprobe>"
32495 msgstr ""
32496
32497 #. type: =item
32498 #: ../src/guestfs-availability.pod:55
32499 msgid "B<linuxxattrs>"
32500 msgstr ""
32501
32502 #. type: textblock
32503 #: ../src/guestfs-availability.pod:57
32504 msgid ""
32505 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
32506 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
32507 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
32508 "guestfs_setxattr>"
32509 msgstr ""
32510
32511 #. type: =item
32512 #: ../src/guestfs-availability.pod:68
32513 msgid "B<luks>"
32514 msgstr ""
32515
32516 #. type: textblock
32517 #: ../src/guestfs-availability.pod:70
32518 msgid ""
32519 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
32520 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
32521 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
32522 msgstr ""
32523
32524 #. type: =item
32525 #: ../src/guestfs-availability.pod:79
32526 msgid "B<lvm2>"
32527 msgstr ""
32528
32529 #. type: textblock
32530 #: ../src/guestfs-availability.pod:81
32531 msgid ""
32532 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
32533 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
32534 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
32535 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
32536 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
32537 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
32538 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
32539 msgstr ""
32540
32541 #. type: =item
32542 #: ../src/guestfs-availability.pod:104
32543 msgid "B<mknod>"
32544 msgstr ""
32545
32546 #. type: textblock
32547 #: ../src/guestfs-availability.pod:106
32548 msgid ""
32549 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
32550 "guestfs_mknod_b> L</guestfs_mknod_c>"
32551 msgstr ""
32552
32553 #. type: =item
32554 #: ../src/guestfs-availability.pod:112
32555 msgid "B<ntfs3g>"
32556 msgstr ""
32557
32558 #. type: textblock
32559 #: ../src/guestfs-availability.pod:114
32560 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
32561 msgstr ""
32562
32563 #. type: =item
32564 #: ../src/guestfs-availability.pod:117
32565 msgid "B<ntfsprogs>"
32566 msgstr ""
32567
32568 #. type: textblock
32569 #: ../src/guestfs-availability.pod:119
32570 msgid ""
32571 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
32572 "L</guestfs_ntfsresize_size>"
32573 msgstr ""
32574
32575 #. type: =item
32576 #: ../src/guestfs-availability.pod:124
32577 msgid "B<realpath>"
32578 msgstr ""
32579
32580 #. type: textblock
32581 #: ../src/guestfs-availability.pod:126
32582 msgid "The following functions: L</guestfs_realpath>"
32583 msgstr ""
32584
32585 #. type: =item
32586 #: ../src/guestfs-availability.pod:129
32587 msgid "B<scrub>"
32588 msgstr ""
32589
32590 #. type: textblock
32591 #: ../src/guestfs-availability.pod:131
32592 msgid ""
32593 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
32594 "guestfs_scrub_freespace>"
32595 msgstr ""
32596
32597 #. type: =item
32598 #: ../src/guestfs-availability.pod:136
32599 msgid "B<selinux>"
32600 msgstr ""
32601
32602 #. type: textblock
32603 #: ../src/guestfs-availability.pod:138
32604 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
32605 msgstr ""
32606
32607 #. type: =item
32608 #: ../src/guestfs-availability.pod:142
32609 msgid "B<xz>"
32610 msgstr ""
32611
32612 #. type: textblock
32613 #: ../src/guestfs-availability.pod:144
32614 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
32615 msgstr ""
32616
32617 #. type: =item
32618 #: ../src/guestfs-availability.pod:148
32619 msgid "B<zerofree>"
32620 msgstr ""
32621
32622 #. type: textblock
32623 #: ../src/guestfs-availability.pod:150
32624 msgid "The following functions: L</guestfs_zerofree>"
32625 msgstr ""
32626
32627 #. type: =head2
32628 #: ../src/guestfs-structs.pod:1
32629 msgid "guestfs_int_bool"
32630 msgstr ""
32631
32632 #. type: verbatim
32633 #: ../src/guestfs-structs.pod:3
32634 #, no-wrap
32635 msgid ""
32636 " struct guestfs_int_bool {\n"
32637 "   int32_t i;\n"
32638 "   int32_t b;\n"
32639 " };\n"
32640 " \n"
32641 msgstr ""
32642
32643 #. type: verbatim
32644 #: ../src/guestfs-structs.pod:8
32645 #, no-wrap
32646 msgid ""
32647 " struct guestfs_int_bool_list {\n"
32648 "   uint32_t len; /* Number of elements in list. */\n"
32649 "   struct guestfs_int_bool *val; /* Elements. */\n"
32650 " };\n"
32651 " \n"
32652 msgstr ""
32653
32654 #. type: verbatim
32655 #: ../src/guestfs-structs.pod:13
32656 #, no-wrap
32657 msgid ""
32658 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32659 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32660 "\n"
32661 msgstr ""
32662
32663 #. type: =head2
32664 #: ../src/guestfs-structs.pod:16
32665 msgid "guestfs_lvm_pv"
32666 msgstr ""
32667
32668 #. type: verbatim
32669 #: ../src/guestfs-structs.pod:18
32670 #, no-wrap
32671 msgid ""
32672 " struct guestfs_lvm_pv {\n"
32673 "   char *pv_name;\n"
32674 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32675 "   char pv_uuid[32];\n"
32676 "   char *pv_fmt;\n"
32677 "   uint64_t pv_size;\n"
32678 "   uint64_t dev_size;\n"
32679 "   uint64_t pv_free;\n"
32680 "   uint64_t pv_used;\n"
32681 "   char *pv_attr;\n"
32682 "   int64_t pv_pe_count;\n"
32683 "   int64_t pv_pe_alloc_count;\n"
32684 "   char *pv_tags;\n"
32685 "   uint64_t pe_start;\n"
32686 "   int64_t pv_mda_count;\n"
32687 "   uint64_t pv_mda_free;\n"
32688 " };\n"
32689 " \n"
32690 msgstr ""
32691
32692 #. type: verbatim
32693 #: ../src/guestfs-structs.pod:36
32694 #, no-wrap
32695 msgid ""
32696 " struct guestfs_lvm_pv_list {\n"
32697 "   uint32_t len; /* Number of elements in list. */\n"
32698 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
32699 " };\n"
32700 " \n"
32701 msgstr ""
32702
32703 #. type: verbatim
32704 #: ../src/guestfs-structs.pod:41
32705 #, no-wrap
32706 msgid ""
32707 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32708 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32709 "\n"
32710 msgstr ""
32711
32712 #. type: =head2
32713 #: ../src/guestfs-structs.pod:44
32714 msgid "guestfs_lvm_vg"
32715 msgstr ""
32716
32717 #. type: verbatim
32718 #: ../src/guestfs-structs.pod:46
32719 #, no-wrap
32720 msgid ""
32721 " struct guestfs_lvm_vg {\n"
32722 "   char *vg_name;\n"
32723 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32724 "   char vg_uuid[32];\n"
32725 "   char *vg_fmt;\n"
32726 "   char *vg_attr;\n"
32727 "   uint64_t vg_size;\n"
32728 "   uint64_t vg_free;\n"
32729 "   char *vg_sysid;\n"
32730 "   uint64_t vg_extent_size;\n"
32731 "   int64_t vg_extent_count;\n"
32732 "   int64_t vg_free_count;\n"
32733 "   int64_t max_lv;\n"
32734 "   int64_t max_pv;\n"
32735 "   int64_t pv_count;\n"
32736 "   int64_t lv_count;\n"
32737 "   int64_t snap_count;\n"
32738 "   int64_t vg_seqno;\n"
32739 "   char *vg_tags;\n"
32740 "   int64_t vg_mda_count;\n"
32741 "   uint64_t vg_mda_free;\n"
32742 " };\n"
32743 " \n"
32744 msgstr ""
32745
32746 #. type: verbatim
32747 #: ../src/guestfs-structs.pod:69
32748 #, no-wrap
32749 msgid ""
32750 " struct guestfs_lvm_vg_list {\n"
32751 "   uint32_t len; /* Number of elements in list. */\n"
32752 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
32753 " };\n"
32754 " \n"
32755 msgstr ""
32756
32757 #. type: verbatim
32758 #: ../src/guestfs-structs.pod:74
32759 #, no-wrap
32760 msgid ""
32761 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32762 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32763 "\n"
32764 msgstr ""
32765
32766 #. type: =head2
32767 #: ../src/guestfs-structs.pod:77
32768 msgid "guestfs_lvm_lv"
32769 msgstr ""
32770
32771 #. type: verbatim
32772 #: ../src/guestfs-structs.pod:79
32773 #, no-wrap
32774 msgid ""
32775 " struct guestfs_lvm_lv {\n"
32776 "   char *lv_name;\n"
32777 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32778 "   char lv_uuid[32];\n"
32779 "   char *lv_attr;\n"
32780 "   int64_t lv_major;\n"
32781 "   int64_t lv_minor;\n"
32782 "   int64_t lv_kernel_major;\n"
32783 "   int64_t lv_kernel_minor;\n"
32784 "   uint64_t lv_size;\n"
32785 "   int64_t seg_count;\n"
32786 "   char *origin;\n"
32787 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32788 "   float snap_percent;\n"
32789 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32790 "   float copy_percent;\n"
32791 "   char *move_pv;\n"
32792 "   char *lv_tags;\n"
32793 "   char *mirror_log;\n"
32794 "   char *modules;\n"
32795 " };\n"
32796 " \n"
32797 msgstr ""
32798
32799 #. type: verbatim
32800 #: ../src/guestfs-structs.pod:101
32801 #, no-wrap
32802 msgid ""
32803 " struct guestfs_lvm_lv_list {\n"
32804 "   uint32_t len; /* Number of elements in list. */\n"
32805 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
32806 " };\n"
32807 " \n"
32808 msgstr ""
32809
32810 #. type: verbatim
32811 #: ../src/guestfs-structs.pod:106
32812 #, no-wrap
32813 msgid ""
32814 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32815 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32816 "\n"
32817 msgstr ""
32818
32819 #. type: verbatim
32820 #: ../src/guestfs-structs.pod:111
32821 #, no-wrap
32822 msgid ""
32823 " struct guestfs_stat {\n"
32824 "   int64_t dev;\n"
32825 "   int64_t ino;\n"
32826 "   int64_t mode;\n"
32827 "   int64_t nlink;\n"
32828 "   int64_t uid;\n"
32829 "   int64_t gid;\n"
32830 "   int64_t rdev;\n"
32831 "   int64_t size;\n"
32832 "   int64_t blksize;\n"
32833 "   int64_t blocks;\n"
32834 "   int64_t atime;\n"
32835 "   int64_t mtime;\n"
32836 "   int64_t ctime;\n"
32837 " };\n"
32838 " \n"
32839 msgstr ""
32840
32841 #. type: verbatim
32842 #: ../src/guestfs-structs.pod:127
32843 #, no-wrap
32844 msgid ""
32845 " struct guestfs_stat_list {\n"
32846 "   uint32_t len; /* Number of elements in list. */\n"
32847 "   struct guestfs_stat *val; /* Elements. */\n"
32848 " };\n"
32849 " \n"
32850 msgstr ""
32851
32852 #. type: verbatim
32853 #: ../src/guestfs-structs.pod:132
32854 #, no-wrap
32855 msgid ""
32856 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32857 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32858 "\n"
32859 msgstr ""
32860
32861 #. type: verbatim
32862 #: ../src/guestfs-structs.pod:137
32863 #, no-wrap
32864 msgid ""
32865 " struct guestfs_statvfs {\n"
32866 "   int64_t bsize;\n"
32867 "   int64_t frsize;\n"
32868 "   int64_t blocks;\n"
32869 "   int64_t bfree;\n"
32870 "   int64_t bavail;\n"
32871 "   int64_t files;\n"
32872 "   int64_t ffree;\n"
32873 "   int64_t favail;\n"
32874 "   int64_t fsid;\n"
32875 "   int64_t flag;\n"
32876 "   int64_t namemax;\n"
32877 " };\n"
32878 " \n"
32879 msgstr ""
32880
32881 #. type: verbatim
32882 #: ../src/guestfs-structs.pod:151
32883 #, no-wrap
32884 msgid ""
32885 " struct guestfs_statvfs_list {\n"
32886 "   uint32_t len; /* Number of elements in list. */\n"
32887 "   struct guestfs_statvfs *val; /* Elements. */\n"
32888 " };\n"
32889 " \n"
32890 msgstr ""
32891
32892 #. type: verbatim
32893 #: ../src/guestfs-structs.pod:156
32894 #, no-wrap
32895 msgid ""
32896 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32897 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32898 "\n"
32899 msgstr ""
32900
32901 #. type: =head2
32902 #: ../src/guestfs-structs.pod:159
32903 msgid "guestfs_dirent"
32904 msgstr ""
32905
32906 #. type: verbatim
32907 #: ../src/guestfs-structs.pod:161
32908 #, no-wrap
32909 msgid ""
32910 " struct guestfs_dirent {\n"
32911 "   int64_t ino;\n"
32912 "   char ftyp;\n"
32913 "   char *name;\n"
32914 " };\n"
32915 " \n"
32916 msgstr ""
32917
32918 #. type: verbatim
32919 #: ../src/guestfs-structs.pod:167
32920 #, no-wrap
32921 msgid ""
32922 " struct guestfs_dirent_list {\n"
32923 "   uint32_t len; /* Number of elements in list. */\n"
32924 "   struct guestfs_dirent *val; /* Elements. */\n"
32925 " };\n"
32926 " \n"
32927 msgstr ""
32928
32929 #. type: verbatim
32930 #: ../src/guestfs-structs.pod:172
32931 #, no-wrap
32932 msgid ""
32933 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32934 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32935 "\n"
32936 msgstr ""
32937
32938 #. type: verbatim
32939 #: ../src/guestfs-structs.pod:177
32940 #, no-wrap
32941 msgid ""
32942 " struct guestfs_version {\n"
32943 "   int64_t major;\n"
32944 "   int64_t minor;\n"
32945 "   int64_t release;\n"
32946 "   char *extra;\n"
32947 " };\n"
32948 " \n"
32949 msgstr ""
32950
32951 #. type: verbatim
32952 #: ../src/guestfs-structs.pod:184
32953 #, no-wrap
32954 msgid ""
32955 " struct guestfs_version_list {\n"
32956 "   uint32_t len; /* Number of elements in list. */\n"
32957 "   struct guestfs_version *val; /* Elements. */\n"
32958 " };\n"
32959 " \n"
32960 msgstr ""
32961
32962 #. type: verbatim
32963 #: ../src/guestfs-structs.pod:189
32964 #, no-wrap
32965 msgid ""
32966 " void guestfs_free_version (struct guestfs_free_version *);\n"
32967 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32968 "\n"
32969 msgstr ""
32970
32971 #. type: =head2
32972 #: ../src/guestfs-structs.pod:192
32973 msgid "guestfs_xattr"
32974 msgstr ""
32975
32976 #. type: verbatim
32977 #: ../src/guestfs-structs.pod:194
32978 #, no-wrap
32979 msgid ""
32980 " struct guestfs_xattr {\n"
32981 "   char *attrname;\n"
32982 "   /* The next two fields describe a byte array. */\n"
32983 "   uint32_t attrval_len;\n"
32984 "   char *attrval;\n"
32985 " };\n"
32986 " \n"
32987 msgstr ""
32988
32989 #. type: verbatim
32990 #: ../src/guestfs-structs.pod:201
32991 #, no-wrap
32992 msgid ""
32993 " struct guestfs_xattr_list {\n"
32994 "   uint32_t len; /* Number of elements in list. */\n"
32995 "   struct guestfs_xattr *val; /* Elements. */\n"
32996 " };\n"
32997 " \n"
32998 msgstr ""
32999
33000 #. type: verbatim
33001 #: ../src/guestfs-structs.pod:206
33002 #, no-wrap
33003 msgid ""
33004 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33005 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33006 "\n"
33007 msgstr ""
33008
33009 #. type: =head2
33010 #: ../src/guestfs-structs.pod:209
33011 msgid "guestfs_inotify_event"
33012 msgstr ""
33013
33014 #. type: verbatim
33015 #: ../src/guestfs-structs.pod:211
33016 #, no-wrap
33017 msgid ""
33018 " struct guestfs_inotify_event {\n"
33019 "   int64_t in_wd;\n"
33020 "   uint32_t in_mask;\n"
33021 "   uint32_t in_cookie;\n"
33022 "   char *in_name;\n"
33023 " };\n"
33024 " \n"
33025 msgstr ""
33026
33027 #. type: verbatim
33028 #: ../src/guestfs-structs.pod:218
33029 #, no-wrap
33030 msgid ""
33031 " struct guestfs_inotify_event_list {\n"
33032 "   uint32_t len; /* Number of elements in list. */\n"
33033 "   struct guestfs_inotify_event *val; /* Elements. */\n"
33034 " };\n"
33035 " \n"
33036 msgstr ""
33037
33038 #. type: verbatim
33039 #: ../src/guestfs-structs.pod:223
33040 #, no-wrap
33041 msgid ""
33042 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33043 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
33044 "\n"
33045 msgstr ""
33046
33047 #. type: =head2
33048 #: ../src/guestfs-structs.pod:226
33049 msgid "guestfs_partition"
33050 msgstr ""
33051
33052 #. type: verbatim
33053 #: ../src/guestfs-structs.pod:228
33054 #, no-wrap
33055 msgid ""
33056 " struct guestfs_partition {\n"
33057 "   int32_t part_num;\n"
33058 "   uint64_t part_start;\n"
33059 "   uint64_t part_end;\n"
33060 "   uint64_t part_size;\n"
33061 " };\n"
33062 " \n"
33063 msgstr ""
33064
33065 #. type: verbatim
33066 #: ../src/guestfs-structs.pod:235
33067 #, no-wrap
33068 msgid ""
33069 " struct guestfs_partition_list {\n"
33070 "   uint32_t len; /* Number of elements in list. */\n"
33071 "   struct guestfs_partition *val; /* Elements. */\n"
33072 " };\n"
33073 " \n"
33074 msgstr ""
33075
33076 #. type: verbatim
33077 #: ../src/guestfs-structs.pod:240
33078 #, no-wrap
33079 msgid ""
33080 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33081 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33082 "\n"
33083 msgstr ""
33084
33085 #. type: =head2
33086 #: ../src/guestfs-structs.pod:243
33087 msgid "guestfs_application"
33088 msgstr ""
33089
33090 #. type: verbatim
33091 #: ../src/guestfs-structs.pod:245
33092 #, no-wrap
33093 msgid ""
33094 " struct guestfs_application {\n"
33095 "   char *app_name;\n"
33096 "   char *app_display_name;\n"
33097 "   int32_t app_epoch;\n"
33098 "   char *app_version;\n"
33099 "   char *app_release;\n"
33100 "   char *app_install_path;\n"
33101 "   char *app_trans_path;\n"
33102 "   char *app_publisher;\n"
33103 "   char *app_url;\n"
33104 "   char *app_source_package;\n"
33105 "   char *app_summary;\n"
33106 "   char *app_description;\n"
33107 " };\n"
33108 " \n"
33109 msgstr ""
33110
33111 #. type: verbatim
33112 #: ../src/guestfs-structs.pod:260
33113 #, no-wrap
33114 msgid ""
33115 " struct guestfs_application_list {\n"
33116 "   uint32_t len; /* Number of elements in list. */\n"
33117 "   struct guestfs_application *val; /* Elements. */\n"
33118 " };\n"
33119 " \n"
33120 msgstr ""
33121
33122 #. type: verbatim
33123 #: ../src/guestfs-structs.pod:265
33124 #, no-wrap
33125 msgid ""
33126 " void guestfs_free_application (struct guestfs_free_application *);\n"
33127 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
33128 "\n"
33129 msgstr ""
33130
33131 #. type: textblock
33132 #: ../src/guestfs.pod:5
33133 msgid "guestfs - Library for accessing and modifying virtual machine images"
33134 msgstr ""
33135
33136 #. type: verbatim
33137 #: ../src/guestfs.pod:11
33138 #, no-wrap
33139 msgid ""
33140 " guestfs_h *g = guestfs_create ();\n"
33141 " guestfs_add_drive (g, \"guest.img\");\n"
33142 " guestfs_launch (g);\n"
33143 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33144 " guestfs_touch (g, \"/hello\");\n"
33145 " guestfs_umount (g, \"/\");\n"
33146 " guestfs_close (g);\n"
33147 "\n"
33148 msgstr ""
33149
33150 #. type: textblock
33151 #: ../src/guestfs.pod:25
33152 msgid ""
33153 "Libguestfs is a library for accessing and modifying guest disk images.  "
33154 "Amongst the things this is good for: making batch configuration changes to "
33155 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33156 "between virtualization systems (see also: virt-p2v), performing partial "
33157 "backups, performing partial guest clones, cloning guests and changing "
33158 "registry/UUID/hostname info, and much else besides."
33159 msgstr ""
33160
33161 #. type: textblock
33162 #: ../src/guestfs.pod:33
33163 msgid ""
33164 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33165 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33166 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33167 "qcow2, vmdk."
33168 msgstr ""
33169
33170 #. type: textblock
33171 #: ../src/guestfs.pod:38
33172 msgid ""
33173 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33174 "what filesystem is in each LV, etc.).  It can also run commands in the "
33175 "context of the guest.  Also you can access filesystems over FUSE."
33176 msgstr ""
33177
33178 #. type: textblock
33179 #: ../src/guestfs.pod:43
33180 msgid ""
33181 "Libguestfs is a library that can be linked with C and C++ management "
33182 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33183 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
33184 "command line."
33185 msgstr ""
33186
33187 #. type: textblock
33188 #: ../src/guestfs.pod:48
33189 msgid ""
33190 "You don't need to be root to use libguestfs, although obviously you do need "
33191 "enough permissions to access the disk images."
33192 msgstr ""
33193
33194 #. type: textblock
33195 #: ../src/guestfs.pod:51
33196 msgid ""
33197 "Libguestfs is a large API because it can do many things.  For a gentle "
33198 "introduction, please read the L</API OVERVIEW> section next."
33199 msgstr ""
33200
33201 #. type: textblock
33202 #: ../src/guestfs.pod:54
33203 msgid ""
33204 "There are also some example programs in the L<guestfs-examples(3)> manual "
33205 "page."
33206 msgstr ""
33207
33208 #. type: =head1
33209 #: ../src/guestfs.pod:57
33210 msgid "API OVERVIEW"
33211 msgstr ""
33212
33213 #. type: textblock
33214 #: ../src/guestfs.pod:59
33215 msgid ""
33216 "This section provides a gentler overview of the libguestfs API.  We also try "
33217 "to group API calls together, where that may not be obvious from reading "
33218 "about the individual calls in the main section of this manual."
33219 msgstr ""
33220
33221 #. type: =head2
33222 #: ../src/guestfs.pod:64
33223 msgid "HANDLES"
33224 msgstr ""
33225
33226 #. type: textblock
33227 #: ../src/guestfs.pod:66
33228 msgid ""
33229 "Before you can use libguestfs calls, you have to create a handle.  Then you "
33230 "must add at least one disk image to the handle, followed by launching the "
33231 "handle, then performing whatever operations you want, and finally closing "
33232 "the handle.  By convention we use the single letter C<g> for the name of the "
33233 "handle variable, although of course you can use any name you want."
33234 msgstr ""
33235
33236 #. type: textblock
33237 #: ../src/guestfs.pod:73
33238 msgid "The general structure of all libguestfs-using programs looks like this:"
33239 msgstr ""
33240
33241 #. type: verbatim
33242 #: ../src/guestfs.pod:76
33243 #, no-wrap
33244 msgid ""
33245 " guestfs_h *g = guestfs_create ();\n"
33246 " \n"
33247 msgstr ""
33248
33249 #. type: verbatim
33250 #: ../src/guestfs.pod:78
33251 #, no-wrap
33252 msgid ""
33253 " /* Call guestfs_add_drive additional times if there are\n"
33254 "  * multiple disk images.\n"
33255 "  */\n"
33256 " guestfs_add_drive (g, \"guest.img\");\n"
33257 " \n"
33258 msgstr ""
33259
33260 #. type: verbatim
33261 #: ../src/guestfs.pod:83
33262 #, no-wrap
33263 msgid ""
33264 " /* Most manipulation calls won't work until you've launched\n"
33265 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
33266 "  * and _before_ other commands.\n"
33267 "  */\n"
33268 " guestfs_launch (g);\n"
33269 " \n"
33270 msgstr ""
33271
33272 #. type: verbatim
33273 #: ../src/guestfs.pod:89
33274 #, no-wrap
33275 msgid ""
33276 " /* Now you can examine what partitions, LVs etc are available.\n"
33277 "  */\n"
33278 " char **partitions = guestfs_list_partitions (g);\n"
33279 " char **logvols = guestfs_lvs (g);\n"
33280 " \n"
33281 msgstr ""
33282
33283 #. type: verbatim
33284 #: ../src/guestfs.pod:94
33285 #, no-wrap
33286 msgid ""
33287 " /* To access a filesystem in the image, you must mount it.\n"
33288 "  */\n"
33289 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33290 " \n"
33291 msgstr ""
33292
33293 #. type: verbatim
33294 #: ../src/guestfs.pod:98
33295 #, no-wrap
33296 msgid ""
33297 " /* Now you can perform filesystem actions on the guest\n"
33298 "  * disk image.\n"
33299 "  */\n"
33300 " guestfs_touch (g, \"/hello\");\n"
33301 " \n"
33302 msgstr ""
33303
33304 #. type: verbatim
33305 #: ../src/guestfs.pod:103
33306 #, no-wrap
33307 msgid ""
33308 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
33309 "  * it is done automatically when you close the handle.  See\n"
33310 "  * discussion of autosync in this page.\n"
33311 "  */\n"
33312 " guestfs_sync (g);\n"
33313 " \n"
33314 msgstr ""
33315
33316 #. type: verbatim
33317 #: ../src/guestfs.pod:109
33318 #, no-wrap
33319 msgid ""
33320 " /* Close the handle 'g'. */\n"
33321 " guestfs_close (g);\n"
33322 "\n"
33323 msgstr ""
33324
33325 #. type: textblock
33326 #: ../src/guestfs.pod:112
33327 msgid ""
33328 "The code above doesn't include any error checking.  In real code you should "
33329 "check return values carefully for errors.  In general all functions that "
33330 "return integers return C<-1> on error, and all functions that return "
33331 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
33332 "how to handle errors, and consult the documentation for each function call "
33333 "below to see precisely how they return error indications.  See L<guestfs-"
33334 "examples(3)> for fully worked examples."
33335 msgstr ""
33336
33337 #. type: =head2
33338 #: ../src/guestfs.pod:121
33339 msgid "DISK IMAGES"
33340 msgstr ""
33341
33342 #. type: textblock
33343 #: ../src/guestfs.pod:123
33344 msgid ""
33345 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
33346 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
33347 "actual block device, or simply an empty file of zeroes that you have created "
33348 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
33349 "of these."
33350 msgstr ""
33351
33352 #. type: textblock
33353 #: ../src/guestfs.pod:129
33354 msgid ""
33355 "The call you should use in modern code for adding drives is L</"
33356 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
33357 "specifying that the format is raw, do:"
33358 msgstr ""
33359
33360 #. type: verbatim
33361 #: ../src/guestfs.pod:133
33362 #, no-wrap
33363 msgid ""
33364 " guestfs_add_drive_opts (g, filename,\n"
33365 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33366 "                         -1);\n"
33367 "\n"
33368 msgstr ""
33369
33370 #. type: textblock
33371 #: ../src/guestfs.pod:137
33372 msgid "You can add a disk read-only using:"
33373 msgstr ""
33374
33375 #. type: verbatim
33376 #: ../src/guestfs.pod:139
33377 #, no-wrap
33378 msgid ""
33379 " guestfs_add_drive_opts (g, filename,\n"
33380 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33381 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33382 "                         -1);\n"
33383 "\n"
33384 msgstr ""
33385
33386 #. type: textblock
33387 #: ../src/guestfs.pod:144
33388 msgid ""
33389 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
33390 "libguestfs won't modify the file."
33391 msgstr ""
33392
33393 #. type: textblock
33394 #: ../src/guestfs.pod:147
33395 msgid ""
33396 "Be extremely cautious if the disk image is in use, eg. if it is being used "
33397 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
33398 "corruption, but adding it read-only is safe."
33399 msgstr ""
33400
33401 #. type: textblock
33402 #: ../src/guestfs.pod:151
33403 msgid ""
33404 "You must add at least one disk image, and you may add multiple disk images.  "
33405 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
33406 "first one you added), C</dev/sdb> (for the second one you added), etc."
33407 msgstr ""
33408
33409 #. type: textblock
33410 #: ../src/guestfs.pod:156
33411 msgid ""
33412 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
33413 "can call L</guestfs_list_devices> to get a list of the device names, in the "
33414 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
33415 msgstr ""
33416
33417 #. type: =head2
33418 #: ../src/guestfs.pod:161
33419 msgid "MOUNTING"
33420 msgstr ""
33421
33422 #. type: textblock
33423 #: ../src/guestfs.pod:163
33424 msgid ""
33425 "Before you can read or write files, create directories and so on in a disk "
33426 "image that contains filesystems, you have to mount those filesystems using "
33427 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
33428 "a disk image contains (for example) one partition with a filesystem on that "
33429 "partition, then you can mount it directly:"
33430 msgstr ""
33431
33432 #. type: verbatim
33433 #: ../src/guestfs.pod:170
33434 #, no-wrap
33435 msgid ""
33436 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33437 "\n"
33438 msgstr ""
33439
33440 #. type: textblock
33441 #: ../src/guestfs.pod:172
33442 msgid ""
33443 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
33444 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
33445 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
33446 "that these are libguestfs virtual devices, and are nothing to do with host "
33447 "devices."
33448 msgstr ""
33449
33450 #. type: textblock
33451 #: ../src/guestfs.pod:178
33452 msgid ""
33453 "If you are given a disk image and you don't know what it contains then you "
33454 "have to find out.  Libguestfs can do that too: use L</"
33455 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
33456 "LVs, and either try mounting each to see what is mountable, or else examine "
33457 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
33458 "filesystems, use L</guestfs_list_filesystems>."
33459 msgstr ""
33460
33461 #. type: textblock
33462 #: ../src/guestfs.pod:186
33463 msgid ""
33464 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
33465 "L</INSPECTION> below).  But you might find it easier to look at higher level "
33466 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
33467 msgstr ""
33468
33469 #. type: textblock
33470 #: ../src/guestfs.pod:191
33471 msgid ""
33472 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
33473 "several other variations of the C<guestfs_mount_*> call."
33474 msgstr ""
33475
33476 #. type: =head2
33477 #: ../src/guestfs.pod:194
33478 msgid "FILESYSTEM ACCESS AND MODIFICATION"
33479 msgstr ""
33480
33481 #. type: textblock
33482 #: ../src/guestfs.pod:196
33483 msgid ""
33484 "The majority of the libguestfs API consists of fairly low-level calls for "
33485 "accessing and modifying the files, directories, symlinks etc on mounted "
33486 "filesystems.  There are over a hundred such calls which you can find listed "
33487 "in detail below in this man page, and we don't even pretend to cover them "
33488 "all in this overview."
33489 msgstr ""
33490
33491 #. type: textblock
33492 #: ../src/guestfs.pod:202
33493 msgid ""
33494 "Specify filenames as full paths, starting with C<\"/\"> and including the "
33495 "mount point."
33496 msgstr ""
33497
33498 #. type: textblock
33499 #: ../src/guestfs.pod:205
33500 msgid ""
33501 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
33502 "the file called C<\"etc/passwd\"> then you could do:"
33503 msgstr ""
33504
33505 #. type: verbatim
33506 #: ../src/guestfs.pod:208
33507 #, no-wrap
33508 msgid ""
33509 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33510 "\n"
33511 msgstr ""
33512
33513 #. type: textblock
33514 #: ../src/guestfs.pod:210
33515 msgid ""
33516 "This would return C<data> as a newly allocated buffer containing the full "
33517 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
33518 "or C<NULL> if there was an error."
33519 msgstr ""
33520
33521 #. type: textblock
33522 #: ../src/guestfs.pod:214
33523 msgid ""
33524 "As another example, to create a top-level directory on that filesystem "
33525 "called C<\"var\"> you would do:"
33526 msgstr ""
33527
33528 #. type: verbatim
33529 #: ../src/guestfs.pod:217
33530 #, no-wrap
33531 msgid ""
33532 " guestfs_mkdir (g, \"/var\");\n"
33533 "\n"
33534 msgstr ""
33535
33536 #. type: textblock
33537 #: ../src/guestfs.pod:219
33538 msgid "To create a symlink you could do:"
33539 msgstr ""
33540
33541 #. type: verbatim
33542 #: ../src/guestfs.pod:221
33543 #, no-wrap
33544 msgid ""
33545 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33546 "               \"/etc/rc3.d/S30portmap\");\n"
33547 "\n"
33548 msgstr ""
33549
33550 #. type: textblock
33551 #: ../src/guestfs.pod:224
33552 msgid ""
33553 "Libguestfs will reject attempts to use relative paths and there is no "
33554 "concept of a current working directory."
33555 msgstr ""
33556
33557 #. type: textblock
33558 #: ../src/guestfs.pod:227
33559 msgid ""
33560 "Libguestfs can return errors in many situations: for example if the "
33561 "filesystem isn't writable, or if a file or directory that you requested "
33562 "doesn't exist.  If you are using the C API (documented here)  you have to "
33563 "check for those error conditions after each call.  (Other language bindings "
33564 "turn these errors into exceptions)."
33565 msgstr ""
33566
33567 #. type: textblock
33568 #: ../src/guestfs.pod:233
33569 msgid ""
33570 "File writes are affected by the per-handle umask, set by calling L</"
33571 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
33572 msgstr ""
33573
33574 #. type: =head2
33575 #: ../src/guestfs.pod:236
33576 msgid "PARTITIONING"
33577 msgstr ""
33578
33579 #. type: textblock
33580 #: ../src/guestfs.pod:238
33581 msgid ""
33582 "Libguestfs contains API calls to read, create and modify partition tables on "
33583 "disk images."
33584 msgstr ""
33585
33586 #. type: textblock
33587 #: ../src/guestfs.pod:241
33588 msgid ""
33589 "In the common case where you want to create a single partition covering the "
33590 "whole disk, you should use the L</guestfs_part_disk> call:"
33591 msgstr ""
33592
33593 #. type: verbatim
33594 #: ../src/guestfs.pod:245
33595 #, no-wrap
33596 msgid ""
33597 " const char *parttype = \"mbr\";\n"
33598 " if (disk_is_larger_than_2TB)\n"
33599 "   parttype = \"gpt\";\n"
33600 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33601 "\n"
33602 msgstr ""
33603
33604 #. type: textblock
33605 #: ../src/guestfs.pod:250
33606 msgid ""
33607 "Obviously this effectively wipes anything that was on that disk image before."
33608 msgstr ""
33609
33610 #. type: =head2
33611 #: ../src/guestfs.pod:253
33612 msgid "LVM2"
33613 msgstr ""
33614
33615 #. type: textblock
33616 #: ../src/guestfs.pod:255
33617 msgid ""
33618 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33619 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
33620 "you familiarize yourself with the concepts of physical volumes, volume "
33621 "groups and logical volumes."
33622 msgstr ""
33623
33624 #. type: textblock
33625 #: ../src/guestfs.pod:260
33626 msgid ""
33627 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33628 "tldp.org/HOWTO/LVM-HOWTO/>."
33629 msgstr ""
33630
33631 #. type: =head2
33632 #: ../src/guestfs.pod:263
33633 msgid "DOWNLOADING"
33634 msgstr ""
33635
33636 #. type: textblock
33637 #: ../src/guestfs.pod:265
33638 msgid ""
33639 "Use L</guestfs_cat> to download small, text only files.  This call is "
33640 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33641 "NUL (C<\\0>) characters.  However the API is very simple to use."
33642 msgstr ""
33643
33644 #. type: textblock
33645 #: ../src/guestfs.pod:269
33646 msgid ""
33647 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33648 "bit data, since it returns a (pointer, size) pair.  However it is still "
33649 "limited to \"small\" files, less than 2 MB."
33650 msgstr ""
33651
33652 #. type: textblock
33653 #: ../src/guestfs.pod:273
33654 msgid ""
33655 "L</guestfs_download> can be used to download any file, with no limits on "
33656 "content or size (even files larger than 4 GB)."
33657 msgstr ""
33658
33659 #. type: textblock
33660 #: ../src/guestfs.pod:276
33661 msgid ""
33662 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33663 msgstr ""
33664
33665 #. type: =head2
33666 #: ../src/guestfs.pod:279
33667 msgid "UPLOADING"
33668 msgstr ""
33669
33670 #. type: textblock
33671 #: ../src/guestfs.pod:281
33672 msgid ""
33673 "It's often the case that you want to write a file or files to the disk image."
33674 msgstr ""
33675
33676 #. type: textblock
33677 #: ../src/guestfs.pod:284
33678 msgid ""
33679 "To write a small file with fixed content, use L</guestfs_write>.  To create "
33680 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33681 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
33682 "of other functions for creating test files, for example L</guestfs_fill> and "
33683 "L</guestfs_fill_pattern>."
33684 msgstr ""
33685
33686 #. type: textblock
33687 #: ../src/guestfs.pod:290
33688 msgid ""
33689 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
33690 "file content or size (even files larger than 4 GB)."
33691 msgstr ""
33692
33693 #. type: textblock
33694 #: ../src/guestfs.pod:293
33695 msgid ""
33696 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33697 msgstr ""
33698
33699 #. type: textblock
33700 #: ../src/guestfs.pod:295
33701 msgid ""
33702 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33703 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33704 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
33705 "in a predictable way (eg. adding it last after all other drives) then you "
33706 "can get the device name from L</guestfs_list_devices> and mount it directly "
33707 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
33708 "portable between kernel versions, and they don't support labels or UUIDs.  "
33709 "If you want to pre-build an image or you need to mount it using a label or "
33710 "UUID, use an ISO image instead."
33711 msgstr ""
33712
33713 #. type: =head2
33714 #: ../src/guestfs.pod:306
33715 msgid "COPYING"
33716 msgstr ""
33717
33718 #. type: textblock
33719 #: ../src/guestfs.pod:308
33720 msgid ""
33721 "There are various different commands for copying between files and devices "
33722 "and in and out of the guest filesystem.  These are summarised in the table "
33723 "below."
33724 msgstr ""
33725
33726 #. type: =item
33727 #: ../src/guestfs.pod:314
33728 msgid "B<file> to B<file>"
33729 msgstr ""
33730
33731 #. type: textblock
33732 #: ../src/guestfs.pod:316
33733 msgid ""
33734 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33735 "directories recursively."
33736 msgstr ""
33737
33738 #. type: =item
33739 #: ../src/guestfs.pod:319
33740 msgid "B<file or device> to B<file or device>"
33741 msgstr ""
33742
33743 #. type: textblock
33744 #: ../src/guestfs.pod:321
33745 msgid ""
33746 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33747 "devices in the guest."
33748 msgstr ""
33749
33750 #. type: textblock
33751 #: ../src/guestfs.pod:324
33752 msgid "Example: duplicate the contents of an LV:"
33753 msgstr ""
33754
33755 #. type: verbatim
33756 #: ../src/guestfs.pod:326
33757 #, no-wrap
33758 msgid ""
33759 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33760 "\n"
33761 msgstr ""
33762
33763 #. type: textblock
33764 #: ../src/guestfs.pod:328
33765 msgid ""
33766 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33767 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
33768 "guestfs_copy_size>."
33769 msgstr ""
33770
33771 #. type: =item
33772 #: ../src/guestfs.pod:332
33773 msgid "B<file on the host> to B<file or device>"
33774 msgstr ""
33775
33776 #. type: textblock
33777 #: ../src/guestfs.pod:334
33778 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33779 msgstr ""
33780
33781 #. type: =item
33782 #: ../src/guestfs.pod:336
33783 msgid "B<file or device> to B<file on the host>"
33784 msgstr ""
33785
33786 #. type: textblock
33787 #: ../src/guestfs.pod:338
33788 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33789 msgstr ""
33790
33791 #. type: =head2
33792 #: ../src/guestfs.pod:342
33793 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33794 msgstr ""
33795
33796 #. type: textblock
33797 #: ../src/guestfs.pod:344
33798 msgid ""
33799 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33800 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33801 "appears you can only upload and download to files.  However many Un*x-like "
33802 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33803 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33804 "and arbitrary file descriptor N."
33805 msgstr ""
33806
33807 #. type: textblock
33808 #: ../src/guestfs.pod:352
33809 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33810 msgstr ""
33811
33812 #. type: verbatim
33813 #: ../src/guestfs.pod:355
33814 #, no-wrap
33815 msgid ""
33816 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33817 "\n"
33818 msgstr ""
33819
33820 #. type: textblock
33821 #: ../src/guestfs.pod:357
33822 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33823 msgstr ""
33824
33825 #. type: verbatim
33826 #: ../src/guestfs.pod:359
33827 #, no-wrap
33828 msgid ""
33829 " char devfd[64];\n"
33830 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33831 " guestfs_tar_out (g, \"/\", devfd);\n"
33832 "\n"
33833 msgstr ""
33834
33835 #. type: =head2
33836 #: ../src/guestfs.pod:363
33837 msgid "LISTING FILES"
33838 msgstr ""
33839
33840 #. type: textblock
33841 #: ../src/guestfs.pod:365
33842 msgid ""
33843 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33844 "L<guestfish(1)>-equivalent command C<ll>)."
33845 msgstr ""
33846
33847 #. type: textblock
33848 #: ../src/guestfs.pod:368
33849 msgid ""
33850 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33851 "programs, as a flat list of strings."
33852 msgstr ""
33853
33854 #. type: textblock
33855 #: ../src/guestfs.pod:371
33856 msgid ""
33857 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33858 "directory, plus additional information about each one.  It is more "
33859 "equivalent to using the L<readdir(3)> call on a local filesystem."
33860 msgstr ""
33861
33862 #. type: textblock
33863 #: ../src/guestfs.pod:375
33864 msgid ""
33865 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33866 msgstr ""
33867
33868 #. type: =head2
33869 #: ../src/guestfs.pod:378
33870 msgid "RUNNING COMMANDS"
33871 msgstr ""
33872
33873 #. type: textblock
33874 #: ../src/guestfs.pod:380
33875 msgid ""
33876 "Although libguestfs is primarily an API for manipulating files inside guest "
33877 "images, we also provide some limited facilities for running commands inside "
33878 "guests."
33879 msgstr ""
33880
33881 #. type: textblock
33882 #: ../src/guestfs.pod:384
33883 msgid "There are many limitations to this:"
33884 msgstr ""
33885
33886 #. type: textblock
33887 #: ../src/guestfs.pod:390
33888 msgid ""
33889 "The kernel version that the command runs under will be different from what "
33890 "it expects."
33891 msgstr ""
33892
33893 #. type: textblock
33894 #: ../src/guestfs.pod:395
33895 msgid ""
33896 "If the command needs to communicate with daemons, then most likely they "
33897 "won't be running."
33898 msgstr ""
33899
33900 #. type: textblock
33901 #: ../src/guestfs.pod:400
33902 msgid "The command will be running in limited memory."
33903 msgstr ""
33904
33905 #. type: textblock
33906 #: ../src/guestfs.pod:404
33907 msgid ""
33908 "The network may not be available unless you enable it (see L</"
33909 "guestfs_set_network>)."
33910 msgstr ""
33911
33912 #. type: textblock
33913 #: ../src/guestfs.pod:409
33914 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33915 msgstr ""
33916
33917 #. type: textblock
33918 #: ../src/guestfs.pod:413
33919 msgid ""
33920 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33921 msgstr ""
33922
33923 #. type: textblock
33924 #: ../src/guestfs.pod:418
33925 msgid ""
33926 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33927 "See L</SELINUX> in this manpage."
33928 msgstr ""
33929
33930 #. type: textblock
33931 #: ../src/guestfs.pod:423
33932 msgid ""
33933 "I<Security:> It is not safe to run commands from untrusted, possibly "
33934 "malicious guests.  These commands may attempt to exploit your program by "
33935 "sending unexpected output.  They could also try to exploit the Linux kernel "
33936 "or qemu provided by the libguestfs appliance.  They could use the network "
33937 "provided by the libguestfs appliance to bypass ordinary network partitions "
33938 "and firewalls.  They could use the elevated privileges or different SELinux "
33939 "context of your program to their advantage."
33940 msgstr ""
33941
33942 #. type: textblock
33943 #: ../src/guestfs.pod:432
33944 msgid ""
33945 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33946 "(a script which runs when the guest next boots normally), and to have this "
33947 "script run the commands you want in the normal context of the running guest, "
33948 "network security and so on.  For information about other security issues, "
33949 "see L</SECURITY>."
33950 msgstr ""
33951
33952 #. type: textblock
33953 #: ../src/guestfs.pod:440
33954 msgid ""
33955 "The two main API calls to run commands are L</guestfs_command> and L</"
33956 "guestfs_sh> (there are also variations)."
33957 msgstr ""
33958
33959 #. type: textblock
33960 #: ../src/guestfs.pod:443
33961 msgid ""
33962 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33963 "shell globs, redirections, etc will work."
33964 msgstr ""
33965
33966 #. type: =head2
33967 #: ../src/guestfs.pod:446
33968 msgid "CONFIGURATION FILES"
33969 msgstr ""
33970
33971 #. type: textblock
33972 #: ../src/guestfs.pod:448
33973 msgid ""
33974 "To read and write configuration files in Linux guest filesystems, we "
33975 "strongly recommend using Augeas.  For example, Augeas understands how to "
33976 "read and write, say, a Linux shadow password file or X.org configuration "
33977 "file, and so avoids you having to write that code."
33978 msgstr ""
33979
33980 #. type: textblock
33981 #: ../src/guestfs.pod:453
33982 msgid ""
33983 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33984 "document Augeas itself here because there is excellent documentation on the "
33985 "L<http://augeas.net/> website."
33986 msgstr ""
33987
33988 #. type: textblock
33989 #: ../src/guestfs.pod:457
33990 msgid ""
33991 "If you don't want to use Augeas (you fool!) then try calling L</"
33992 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33993 "over."
33994 msgstr ""
33995
33996 #. type: =head2
33997 #: ../src/guestfs.pod:461
33998 msgid "SELINUX"
33999 msgstr ""
34000
34001 #. type: textblock
34002 #: ../src/guestfs.pod:463
34003 msgid ""
34004 "We support SELinux guests.  To ensure that labeling happens correctly in "
34005 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34006 msgstr ""
34007
34008 #. type: textblock
34009 #: ../src/guestfs.pod:471
34010 msgid "Before launching, do:"
34011 msgstr ""
34012
34013 #. type: verbatim
34014 #: ../src/guestfs.pod:473
34015 #, no-wrap
34016 msgid ""
34017 " guestfs_set_selinux (g, 1);\n"
34018 "\n"
34019 msgstr ""
34020
34021 #. type: textblock
34022 #: ../src/guestfs.pod:477
34023 msgid ""
34024 "After mounting the guest's filesystem(s), load the policy.  This is best "
34025 "done by running the L<load_policy(8)> command in the guest itself:"
34026 msgstr ""
34027
34028 #. type: verbatim
34029 #: ../src/guestfs.pod:481
34030 #, no-wrap
34031 msgid ""
34032 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34033 "\n"
34034 msgstr ""
34035
34036 #. type: textblock
34037 #: ../src/guestfs.pod:483
34038 msgid ""
34039 "(Older versions of C<load_policy> require you to specify the name of the "
34040 "policy file)."
34041 msgstr ""
34042
34043 #. type: textblock
34044 #: ../src/guestfs.pod:488
34045 msgid ""
34046 "Optionally, set the security context for the API.  The correct security "
34047 "context to use can only be known by inspecting the guest.  As an example:"
34048 msgstr ""
34049
34050 #. type: verbatim
34051 #: ../src/guestfs.pod:492
34052 #, no-wrap
34053 msgid ""
34054 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34055 "\n"
34056 msgstr ""
34057
34058 #. type: textblock
34059 #: ../src/guestfs.pod:496
34060 msgid "This will work for running commands and editing existing files."
34061 msgstr ""
34062
34063 #. type: textblock
34064 #: ../src/guestfs.pod:498
34065 msgid ""
34066 "When new files are created, you may need to label them explicitly, for "
34067 "example by running the external command C<restorecon pathname>."
34068 msgstr ""
34069
34070 #. type: =head2
34071 #: ../src/guestfs.pod:502
34072 msgid "UMASK"
34073 msgstr ""
34074
34075 #. type: textblock
34076 #: ../src/guestfs.pod:504
34077 msgid ""
34078 "Certain calls are affected by the current file mode creation mask (the "
34079 "\"umask\").  In particular ones which create files or directories, such as "
34080 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
34081 "either the default mode that the file is created with or modifies the mode "
34082 "that you supply."
34083 msgstr ""
34084
34085 #. type: textblock
34086 #: ../src/guestfs.pod:510
34087 msgid ""
34088 "The default umask is C<022>, so files are created with modes such as C<0644> "
34089 "and directories with C<0755>."
34090 msgstr ""
34091
34092 #. type: textblock
34093 #: ../src/guestfs.pod:513
34094 msgid ""
34095 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
34096 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
34097 "guestfs_chmod> after creating each file or directory."
34098 msgstr ""
34099
34100 #. type: textblock
34101 #: ../src/guestfs.pod:517
34102 msgid "For more information about umask, see L<umask(2)>."
34103 msgstr ""
34104
34105 #. type: textblock
34106 #: ../src/guestfs.pod:521
34107 msgid ""
34108 "Libguestfs allows you to access Linux guests which have been encrypted using "
34109 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34110 "standard.  This includes nearly all whole disk encryption systems used by "
34111 "modern Linux guests."
34112 msgstr ""
34113
34114 #. type: textblock
34115 #: ../src/guestfs.pod:527
34116 msgid ""
34117 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34118 "returns the string C<crypto_LUKS>)."
34119 msgstr ""
34120
34121 #. type: textblock
34122 #: ../src/guestfs.pod:530
34123 msgid ""
34124 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
34125 "will require the passphrase!"
34126 msgstr ""
34127
34128 #. type: textblock
34129 #: ../src/guestfs.pod:533
34130 msgid ""
34131 "Opening a LUKS device creates a new device mapper device called C</dev/"
34132 "mapper/mapname> (where C<mapname> is the string you supply to L</"
34133 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
34134 "from and encrypted to the underlying block device respectively."
34135 msgstr ""
34136
34137 #. type: textblock
34138 #: ../src/guestfs.pod:539
34139 msgid ""
34140 "LVM volume groups on the device can be made visible by calling L</"
34141 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
34142 "(s) can now be mounted in the usual way."
34143 msgstr ""
34144
34145 #. type: textblock
34146 #: ../src/guestfs.pod:543
34147 msgid ""
34148 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
34149 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
34150 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
34151 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
34152 "underlying encrypted block device)."
34153 msgstr ""
34154
34155 #. type: =head2
34156 #: ../src/guestfs.pod:550
34157 msgid "INSPECTION"
34158 msgstr ""
34159
34160 #. type: textblock
34161 #: ../src/guestfs.pod:552
34162 msgid ""
34163 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
34164 "contains operating systems, an install CD or a live CD.  (These APIs used to "
34165 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
34166 "version 1.5.3 the most frequently used part of this library has been "
34167 "rewritten in C and moved into the core code)."
34168 msgstr ""
34169
34170 #. type: textblock
34171 #: ../src/guestfs.pod:559
34172 msgid ""
34173 "Add all disks belonging to the unknown virtual machine and call L</"
34174 "guestfs_launch> in the usual way."
34175 msgstr ""
34176
34177 #. type: textblock
34178 #: ../src/guestfs.pod:562
34179 msgid ""
34180 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
34181 "and certain heuristics, and returns a list of operating systems that were "
34182 "found.  An empty list means none were found.  A single element is the root "
34183 "filesystem of the operating system.  For dual- or multi-boot guests, "
34184 "multiple roots can be returned, each one corresponding to a separate "
34185 "operating system.  (Multi-boot virtual machines are extremely rare in the "
34186 "world of virtualization, but since this scenario can happen, we have built "
34187 "libguestfs to deal with it.)"
34188 msgstr ""
34189
34190 #. type: textblock
34191 #: ../src/guestfs.pod:571
34192 msgid ""
34193 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
34194 "to get additional details about that operating system.  For example, call L</"
34195 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
34196 "Windows and Linux-based operating systems respectively."
34197 msgstr ""
34198
34199 #. type: textblock
34200 #: ../src/guestfs.pod:577
34201 msgid ""
34202 "Un*x-like and Linux-based operating systems usually consist of several "
34203 "filesystems which are mounted at boot time (for example, a separate boot "
34204 "partition mounted on C</boot>).  The inspection rules are able to detect how "
34205 "filesystems correspond to mount points.  Call "
34206 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
34207 "hash table like this example:"
34208 msgstr ""
34209
34210 #. type: verbatim
34211 #: ../src/guestfs.pod:584
34212 #, no-wrap
34213 msgid ""
34214 " /boot => /dev/sda1\n"
34215 " /     => /dev/vg_guest/lv_root\n"
34216 " /usr  => /dev/vg_guest/lv_usr\n"
34217 "\n"
34218 msgstr ""
34219
34220 #. type: textblock
34221 #: ../src/guestfs.pod:588
34222 msgid ""
34223 "The caller can then make calls to L</guestfs_mount_options> to mount the "
34224 "filesystems as suggested."
34225 msgstr ""
34226
34227 #. type: textblock
34228 #: ../src/guestfs.pod:591
34229 msgid ""
34230 "Be careful to mount filesystems in the right order (eg. C</> before C</"
34231 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
34232 msgstr ""
34233
34234 #. type: textblock
34235 #: ../src/guestfs.pod:595
34236 msgid ""
34237 "Inspection currently only works for some common operating systems.  "
34238 "Contributors are welcome to send patches for other operating systems that we "
34239 "currently cannot detect."
34240 msgstr ""
34241
34242 #. type: textblock
34243 #: ../src/guestfs.pod:599
34244 msgid ""
34245 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
34246 "for more details.  The L</guestfs_inspect_os> function just ignores any "
34247 "encrypted devices."
34248 msgstr ""
34249
34250 #. type: textblock
34251 #: ../src/guestfs.pod:603
34252 msgid ""
34253 "A note on the implementation: The call L</guestfs_inspect_os> performs "
34254 "inspection and caches the results in the guest handle.  Subsequent calls to "
34255 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
34256 "read the disks.  If you change the content of the guest disks, you can redo "
34257 "inspection by calling L</guestfs_inspect_os> again.  (L</"
34258 "guestfs_inspect_list_applications> works a little differently from the other "
34259 "calls and does read the disks.  See documentation for that function for "
34260 "details)."
34261 msgstr ""
34262
34263 #. type: =head3
34264 #: ../src/guestfs.pod:612
34265 msgid "INSPECTING INSTALL DISKS"
34266 msgstr ""
34267
34268 #. type: textblock
34269 #: ../src/guestfs.pod:614
34270 msgid ""
34271 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
34272 "CDs and more."
34273 msgstr ""
34274
34275 #. type: textblock
34276 #: ../src/guestfs.pod:617
34277 msgid ""
34278 "Call L</guestfs_inspect_get_format> to return the format of the operating "
34279 "system, which currently can be C<installed> (a regular operating system) or "
34280 "C<installer> (some sort of install disk)."
34281 msgstr ""
34282
34283 #. type: textblock
34284 #: ../src/guestfs.pod:621
34285 msgid ""
34286 "Further information is available about the operating system that can be "
34287 "installed using the regular inspection APIs like L</"
34288 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
34289 msgstr ""
34290
34291 #. type: textblock
34292 #: ../src/guestfs.pod:626
34293 msgid ""
34294 "Some additional information specific to installer disks is also available "
34295 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
34296 "guestfs_inspect_is_multipart> calls."
34297 msgstr ""
34298
34299 #. type: =head2
34300 #: ../src/guestfs.pod:631
34301 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
34302 msgstr ""
34303
34304 #. type: textblock
34305 #: ../src/guestfs.pod:633
34306 msgid ""
34307 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
34308 "ntfs-3g.org/> driver."
34309 msgstr ""
34310
34311 #. type: =head3
34312 #: ../src/guestfs.pod:636
34313 msgid "DRIVE LETTERS AND PATHS"
34314 msgstr ""
34315
34316 #. type: textblock
34317 #: ../src/guestfs.pod:638
34318 msgid ""
34319 "DOS and Windows still use drive letters, and the filesystems are always "
34320 "treated as case insensitive by Windows itself, and therefore you might find "
34321 "a Windows configuration file referring to a path like C<c:\\windows"
34322 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
34323 "might be referred to as C</WINDOWS/System32>."
34324 msgstr ""
34325
34326 #. type: textblock
34327 #: ../src/guestfs.pod:644
34328 msgid ""
34329 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
34330 "L</guestfs_inspect_get_drive_mappings>)"
34331 msgstr ""
34332
34333 #. type: textblock
34334 #: ../src/guestfs.pod:647
34335 msgid ""
34336 "Dealing with separator characters (backslash vs forward slash) is outside "
34337 "the scope of libguestfs, but usually a simple character replacement will "
34338 "work."
34339 msgstr ""
34340
34341 #. type: textblock
34342 #: ../src/guestfs.pod:651
34343 msgid ""
34344 "To resolve the case insensitivity of paths, call L</"
34345 "guestfs_case_sensitive_path>."
34346 msgstr ""
34347
34348 #. type: =head3
34349 #: ../src/guestfs.pod:654
34350 msgid "ACCESSING THE WINDOWS REGISTRY"
34351 msgstr ""
34352
34353 #. type: textblock
34354 #: ../src/guestfs.pod:656
34355 msgid ""
34356 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
34357 "files, through the library C<hivex> which is part of the libguestfs project "
34358 "although ships as a separate tarball.  You have to locate and download the "
34359 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
34360 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
34361 "reg(1)> for more help on this issue."
34362 msgstr ""
34363
34364 #. type: =head3
34365 #: ../src/guestfs.pod:664
34366 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
34367 msgstr ""
34368
34369 #. type: textblock
34370 #: ../src/guestfs.pod:666
34371 msgid ""
34372 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
34373 "provide something which looks like a Linux symlink.  The way it tries to do "
34374 "the rewriting is described here:"
34375 msgstr ""
34376
34377 #. type: textblock
34378 #: ../src/guestfs.pod:670
34379 msgid ""
34380 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34381 "symbolic-links/>"
34382 msgstr ""
34383
34384 #. type: textblock
34385 #: ../src/guestfs.pod:672
34386 msgid ""
34387 "The essential problem is that ntfs-3g simply does not have enough "
34388 "information to do a correct job.  NTFS links can contain drive letters and "
34389 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
34390 "It is almost certainly the case that libguestfs callers should ignore what "
34391 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
34392 msgstr ""
34393
34394 #. type: textblock
34395 #: ../src/guestfs.pod:679
34396 msgid ""
34397 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
34398 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
34399 "attribute, and read the raw reparse data from that (you can find the format "
34400 "documented in various places around the web)."
34401 msgstr ""
34402
34403 #. type: =head3
34404 #: ../src/guestfs.pod:684
34405 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
34406 msgstr ""
34407
34408 #. type: textblock
34409 #: ../src/guestfs.pod:686
34410 msgid ""
34411 "There are other useful extended attributes that can be read from ntfs-3g "
34412 "filesystems (using L</guestfs_getxattr>).  See:"
34413 msgstr ""
34414
34415 #. type: textblock
34416 #: ../src/guestfs.pod:689
34417 msgid ""
34418 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34419 msgstr ""
34420
34421 #. type: =head2
34422 #: ../src/guestfs.pod:691
34423 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
34424 msgstr ""
34425
34426 #. type: textblock
34427 #: ../src/guestfs.pod:693
34428 msgid ""
34429 "Although we don't want to discourage you from using the C API, we will "
34430 "mention here that the same API is also available in other languages."
34431 msgstr ""
34432
34433 #. type: textblock
34434 #: ../src/guestfs.pod:696
34435 msgid ""
34436 "The API is broadly identical in all supported languages.  This means that "
34437 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
34438 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
34439 "OCaml.  In other words, a straightforward, predictable isomorphism between "
34440 "each language."
34441 msgstr ""
34442
34443 #. type: textblock
34444 #: ../src/guestfs.pod:702
34445 msgid ""
34446 "Error messages are automatically transformed into exceptions if the language "
34447 "supports it."
34448 msgstr ""
34449
34450 #. type: textblock
34451 #: ../src/guestfs.pod:705
34452 msgid ""
34453 "We don't try to \"object orientify\" parts of the API in OO languages, "
34454 "although contributors are welcome to write higher level APIs above what we "
34455 "provide in their favourite languages if they wish."
34456 msgstr ""
34457
34458 #. type: =item
34459 #: ../src/guestfs.pod:711
34460 msgid "B<C++>"
34461 msgstr ""
34462
34463 #. type: textblock
34464 #: ../src/guestfs.pod:713
34465 msgid ""
34466 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
34467 "identical to the C API.  C++ classes and exceptions are not used."
34468 msgstr ""
34469
34470 #. type: =item
34471 #: ../src/guestfs.pod:717
34472 msgid "B<C#>"
34473 msgstr ""
34474
34475 #. type: textblock
34476 #: ../src/guestfs.pod:719
34477 msgid ""
34478 "The C# bindings are highly experimental.  Please read the warnings at the "
34479 "top of C<csharp/Libguestfs.cs>."
34480 msgstr ""
34481
34482 #. type: =item
34483 #: ../src/guestfs.pod:722
34484 msgid "B<Erlang>"
34485 msgstr ""
34486
34487 #. type: textblock
34488 #: ../src/guestfs.pod:724
34489 msgid "See L<guestfs-erlang(3)>."
34490 msgstr ""
34491
34492 #. type: =item
34493 #: ../src/guestfs.pod:726
34494 msgid "B<Haskell>"
34495 msgstr ""
34496
34497 #. type: textblock
34498 #: ../src/guestfs.pod:728
34499 msgid ""
34500 "This is the only language binding that is working but incomplete.  Only "
34501 "calls which return simple integers have been bound in Haskell, and we are "
34502 "looking for help to complete this binding."
34503 msgstr ""
34504
34505 #. type: =item
34506 #: ../src/guestfs.pod:732
34507 msgid "B<Java>"
34508 msgstr ""
34509
34510 #. type: textblock
34511 #: ../src/guestfs.pod:734
34512 msgid ""
34513 "Full documentation is contained in the Javadoc which is distributed with "
34514 "libguestfs.  For examples, see L<guestfs-java(3)>."
34515 msgstr ""
34516
34517 #. type: =item
34518 #: ../src/guestfs.pod:737
34519 msgid "B<OCaml>"
34520 msgstr ""
34521
34522 #. type: textblock
34523 #: ../src/guestfs.pod:739
34524 msgid "See L<guestfs-ocaml(3)>."
34525 msgstr ""
34526
34527 #. type: =item
34528 #: ../src/guestfs.pod:741
34529 msgid "B<Perl>"
34530 msgstr ""
34531
34532 #. type: textblock
34533 #: ../src/guestfs.pod:743
34534 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
34535 msgstr ""
34536
34537 #. type: =item
34538 #: ../src/guestfs.pod:745
34539 msgid "B<PHP>"
34540 msgstr ""
34541
34542 #. type: textblock
34543 #: ../src/guestfs.pod:747
34544 msgid ""
34545 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
34546 "the php-libguestfs package for your distribution."
34547 msgstr ""
34548
34549 #. type: textblock
34550 #: ../src/guestfs.pod:750
34551 msgid "The PHP binding only works correctly on 64 bit machines."
34552 msgstr ""
34553
34554 #. type: =item
34555 #: ../src/guestfs.pod:752
34556 msgid "B<Python>"
34557 msgstr ""
34558
34559 #. type: textblock
34560 #: ../src/guestfs.pod:754
34561 msgid "See L<guestfs-python(3)>."
34562 msgstr ""
34563
34564 #. type: =item
34565 #: ../src/guestfs.pod:756
34566 msgid "B<Ruby>"
34567 msgstr ""
34568
34569 #. type: textblock
34570 #: ../src/guestfs.pod:758
34571 msgid "See L<guestfs-ruby(3)>."
34572 msgstr ""
34573
34574 #. type: =item
34575 #: ../src/guestfs.pod:760
34576 msgid "B<shell scripts>"
34577 msgstr ""
34578
34579 #. type: textblock
34580 #: ../src/guestfs.pod:762
34581 msgid "See L<guestfish(1)>."
34582 msgstr ""
34583
34584 #. type: =head2
34585 #: ../src/guestfs.pod:766
34586 msgid "LIBGUESTFS GOTCHAS"
34587 msgstr ""
34588
34589 #. type: textblock
34590 #: ../src/guestfs.pod:768
34591 msgid ""
34592 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34593 "system [...] that works in the way it is documented but is counterintuitive "
34594 "and almost invites mistakes.\""
34595 msgstr ""
34596
34597 #. type: textblock
34598 #: ../src/guestfs.pod:772
34599 msgid ""
34600 "Since we developed libguestfs and the associated tools, there are several "
34601 "things we would have designed differently, but are now stuck with for "
34602 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
34603 "release, you can expect these to change.  Beware of them."
34604 msgstr ""
34605
34606 #. type: =item
34607 #: ../src/guestfs.pod:780
34608 msgid "Autosync / forgetting to sync."
34609 msgstr ""
34610
34611 #. type: textblock
34612 #: ../src/guestfs.pod:782
34613 msgid ""
34614 "I<Update:> Autosync is enabled by default for all API users starting from "
34615 "libguestfs 1.5.24.  This section only applies to older versions."
34616 msgstr ""
34617
34618 #. type: textblock
34619 #: ../src/guestfs.pod:785
34620 msgid ""
34621 "When modifying a filesystem from C or another language, you B<must> unmount "
34622 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34623 "libguestfs handle.  You can also call:"
34624 msgstr ""
34625
34626 #. type: verbatim
34627 #: ../src/guestfs.pod:789
34628 #, no-wrap
34629 msgid ""
34630 " guestfs_set_autosync (g, 1);\n"
34631 "\n"
34632 msgstr ""
34633
34634 #. type: textblock
34635 #: ../src/guestfs.pod:791
34636 msgid ""
34637 "to have the unmount/sync done automatically for you when the handle 'g' is "
34638 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34639 msgstr ""
34640
34641 #. type: textblock
34642 #: ../src/guestfs.pod:795
34643 msgid ""
34644 "If you forget to do this, then it is entirely possible that your changes "
34645 "won't be written out, or will be partially written, or (very rarely) that "
34646 "you'll get disk corruption."
34647 msgstr ""
34648
34649 #. type: textblock
34650 #: ../src/guestfs.pod:799
34651 msgid ""
34652 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
34653 "guestfish scripts that forget to sync will work just fine, which can make "
34654 "this very puzzling if you are trying to debug a problem."
34655 msgstr ""
34656
34657 #. type: =item
34658 #: ../src/guestfs.pod:803
34659 msgid "Mount option C<-o sync> should not be the default."
34660 msgstr ""
34661
34662 #. type: textblock
34663 #: ../src/guestfs.pod:805
34664 msgid ""
34665 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
34666 "libguestfs 1.13.16.  This section only applies to older versions."
34667 msgstr ""
34668
34669 #. type: textblock
34670 #: ../src/guestfs.pod:808
34671 msgid ""
34672 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
34673 "However C<-o sync> does not add any reliability benefit, but does have a "
34674 "very large performance impact."
34675 msgstr ""
34676
34677 #. type: textblock
34678 #: ../src/guestfs.pod:812
34679 msgid ""
34680 "The work around is to use L</guestfs_mount_options> and set the mount "
34681 "options that you actually want to use."
34682 msgstr ""
34683
34684 #. type: =item
34685 #: ../src/guestfs.pod:815
34686 msgid "Read-only should be the default."
34687 msgstr ""
34688
34689 #. type: textblock
34690 #: ../src/guestfs.pod:817
34691 msgid ""
34692 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34693 "specify I<--rw> if you want to make changes to the image."
34694 msgstr ""
34695
34696 #. type: textblock
34697 #: ../src/guestfs.pod:820
34698 msgid "This would reduce the potential to corrupt live VM images."
34699 msgstr ""
34700
34701 #. type: textblock
34702 #: ../src/guestfs.pod:822
34703 msgid ""
34704 "Note that many filesystems change the disk when you just mount and unmount, "
34705 "even if you didn't perform any writes.  You need to use L</"
34706 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34707 msgstr ""
34708
34709 #. type: =item
34710 #: ../src/guestfs.pod:826
34711 msgid "guestfish command line is hard to use."
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs.pod:828
34716 msgid ""
34717 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34718 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
34719 "exist, so it fails.  In earlier versions of guestfish the error message was "
34720 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
34721 "we should have used C<guestfish -c command> to run commands."
34722 msgstr ""
34723
34724 #. type: =item
34725 #: ../src/guestfs.pod:835
34726 msgid "guestfish megabyte modifiers don't work right on all commands"
34727 msgstr ""
34728
34729 #. type: textblock
34730 #: ../src/guestfs.pod:837
34731 msgid ""
34732 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34733 "other modifiers).  What guestfish actually does is to multiply the number "
34734 "part by the modifier part and pass the result to the C API.  However this "
34735 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34736 "expecting some other unit (eg. megabytes)."
34737 msgstr ""
34738
34739 #. type: textblock
34740 #: ../src/guestfs.pod:844
34741 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
34742 msgstr ""
34743
34744 #. type: verbatim
34745 #: ../src/guestfs.pod:846
34746 #, no-wrap
34747 msgid ""
34748 " lvcreate LV VG 100M\n"
34749 "\n"
34750 msgstr ""
34751
34752 #. type: textblock
34753 #: ../src/guestfs.pod:848
34754 msgid ""
34755 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
34756 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34757 "megabytes * megabytes) logical volume.  The error message you get from this "
34758 "is also a little obscure."
34759 msgstr ""
34760
34761 #. type: textblock
34762 #: ../src/guestfs.pod:853
34763 msgid ""
34764 "This could be fixed in the generator by specially marking parameters and "
34765 "return values which take bytes or other units."
34766 msgstr ""
34767
34768 #. type: =item
34769 #: ../src/guestfs.pod:856
34770 msgid "Ambiguity between devices and paths"
34771 msgstr ""
34772
34773 #. type: textblock
34774 #: ../src/guestfs.pod:858
34775 msgid ""
34776 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34777 "sdb2>) and a similar pathname.  A file might just happen to be called "
34778 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34779 msgstr ""
34780
34781 #. type: textblock
34782 #: ../src/guestfs.pod:863
34783 msgid ""
34784 "In the current API we usually resolve this ambiguity by having two separate "
34785 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34786 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34787 "detecting if the path supplied begins with C</dev/>."
34788 msgstr ""
34789
34790 #. type: textblock
34791 #: ../src/guestfs.pod:869
34792 msgid ""
34793 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34794 "make paths/devices into structured names.  One way to do this would be to "
34795 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34796 "aspect of grub.  Another way would be to use a structured type, equivalent "
34797 "to this OCaml type:"
34798 msgstr ""
34799
34800 #. type: verbatim
34801 #: ../src/guestfs.pod:875
34802 #, no-wrap
34803 msgid ""
34804 " type path = Path of string | Device of int | Partition of int * int\n"
34805 "\n"
34806 msgstr ""
34807
34808 #. type: textblock
34809 #: ../src/guestfs.pod:877
34810 msgid "which would allow you to pass arguments like:"
34811 msgstr ""
34812
34813 #. type: verbatim
34814 #: ../src/guestfs.pod:879
34815 #, no-wrap
34816 msgid ""
34817 " Path \"/foo/bar\"\n"
34818 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34819 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34820 " Path \"/dev/sdb2\"    (* not a device *)\n"
34821 "\n"
34822 msgstr ""
34823
34824 #. type: textblock
34825 #: ../src/guestfs.pod:884
34826 msgid ""
34827 "As you can see there are still problems to resolve even with this "
34828 "representation.  Also consider how it might work in guestfish."
34829 msgstr ""
34830
34831 #. type: =head2
34832 #: ../src/guestfs.pod:889
34833 msgid "KEYS AND PASSPHRASES"
34834 msgstr ""
34835
34836 #. type: textblock
34837 #: ../src/guestfs.pod:891
34838 msgid ""
34839 "Certain libguestfs calls take a parameter that contains sensitive key "
34840 "material, passed in as a C string."
34841 msgstr ""
34842
34843 #. type: textblock
34844 #: ../src/guestfs.pod:894
34845 msgid ""
34846 "In the future we would hope to change the libguestfs implementation so that "
34847 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34848 "swap.  However this is I<not> done at the moment, because of the complexity "
34849 "of such an implementation."
34850 msgstr ""
34851
34852 #. type: textblock
34853 #: ../src/guestfs.pod:899
34854 msgid ""
34855 "Therefore you should be aware that any key parameter you pass to libguestfs "
34856 "might end up being written out to the swap partition.  If this is a concern, "
34857 "scrub the swap partition or don't use libguestfs on encrypted devices."
34858 msgstr ""
34859
34860 #. type: =head2
34861 #: ../src/guestfs.pod:904
34862 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34863 msgstr ""
34864
34865 #. type: textblock
34866 #: ../src/guestfs.pod:906
34867 msgid ""
34868 "All high-level libguestfs actions are synchronous.  If you want to use "
34869 "libguestfs asynchronously then you must create a thread."
34870 msgstr ""
34871
34872 #. type: textblock
34873 #: ../src/guestfs.pod:909
34874 msgid ""
34875 "Only use the handle from a single thread.  Either use the handle exclusively "
34876 "from one thread, or provide your own mutex so that two threads cannot issue "
34877 "calls on the same handle at the same time."
34878 msgstr ""
34879
34880 #. type: textblock
34881 #: ../src/guestfs.pod:913
34882 msgid ""
34883 "See the graphical program guestfs-browser for one possible architecture for "
34884 "multithreaded programs using libvirt and libguestfs."
34885 msgstr ""
34886
34887 #. type: =head2
34888 #: ../src/guestfs.pod:916
34889 msgid "PATH"
34890 msgstr ""
34891
34892 #. type: textblock
34893 #: ../src/guestfs.pod:918
34894 msgid ""
34895 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34896 "internal path."
34897 msgstr ""
34898
34899 #. type: textblock
34900 #: ../src/guestfs.pod:921
34901 msgid ""
34902 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34903 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34904 msgstr ""
34905
34906 #. type: textblock
34907 #: ../src/guestfs.pod:924
34908 msgid ""
34909 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34910 "to change the directories that libguestfs will search in.  The value is a "
34911 "colon-separated list of paths.  The current directory is I<not> searched "
34912 "unless the path contains an empty element or C<.>.  For example "
34913 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34914 "then C</usr/lib/guestfs>."
34915 msgstr ""
34916
34917 #. type: =head2
34918 #: ../src/guestfs.pod:931
34919 msgid "QEMU WRAPPERS"
34920 msgstr ""
34921
34922 #. type: textblock
34923 #: ../src/guestfs.pod:933
34924 msgid ""
34925 "If you want to compile your own qemu, run qemu from a non-standard location, "
34926 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34927 "around qemu."
34928 msgstr ""
34929
34930 #. type: textblock
34931 #: ../src/guestfs.pod:937
34932 msgid ""
34933 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34934 "last command in the shell script (so that qemu replaces the shell and "
34935 "becomes the direct child of the libguestfs-using program).  If you don't do "
34936 "this, then the qemu process won't be cleaned up correctly."
34937 msgstr ""
34938
34939 #. type: textblock
34940 #: ../src/guestfs.pod:942
34941 msgid ""
34942 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34943 "source:"
34944 msgstr ""
34945
34946 #. type: verbatim
34947 #: ../src/guestfs.pod:945
34948 #, no-wrap
34949 msgid ""
34950 " #!/bin/sh -\n"
34951 " qemudir=/home/rjones/d/qemu\n"
34952 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34953 "\n"
34954 msgstr ""
34955
34956 #. type: textblock
34957 #: ../src/guestfs.pod:949
34958 msgid ""
34959 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34960 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34961 "example:"
34962 msgstr ""
34963
34964 #. type: verbatim
34965 #: ../src/guestfs.pod:953
34966 #, no-wrap
34967 msgid ""
34968 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34969 "\n"
34970 msgstr ""
34971
34972 #. type: textblock
34973 #: ../src/guestfs.pod:955
34974 msgid ""
34975 "Note that libguestfs also calls qemu with the -help and -version options in "
34976 "order to determine features."
34977 msgstr ""
34978
34979 #. type: textblock
34980 #: ../src/guestfs.pod:958
34981 msgid ""
34982 "Wrappers can also be used to edit the options passed to qemu.  In the "
34983 "following example, the C<-machine ...> option (C<-machine> and the following "
34984 "argument) are removed from the command line and replaced with C<-machine pc,"
34985 "accel=tcg>.  The while loop iterates over the options until it finds the "
34986 "right one to remove, putting the remaining options into the C<args> array."
34987 msgstr ""
34988
34989 #. type: verbatim
34990 #: ../src/guestfs.pod:967
34991 #, no-wrap
34992 msgid ""
34993 " i=0\n"
34994 " while [ $# -gt 0 ]; do\n"
34995 "     case \"$1\" in\n"
34996 "     -machine)\n"
34997 "         shift 2;;\n"
34998 "     *)\n"
34999 "         args[i]=\"$1\"\n"
35000 "         (( i++ ))\n"
35001 "         shift ;;\n"
35002 "     esac\n"
35003 " done\n"
35004 " \n"
35005 msgstr ""
35006
35007 #. type: verbatim
35008 #: ../src/guestfs.pod:979
35009 #, no-wrap
35010 msgid ""
35011 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35012 "\n"
35013 msgstr ""
35014
35015 #. type: =head2
35016 #: ../src/guestfs.pod:981
35017 msgid "ATTACHING TO RUNNING DAEMONS"
35018 msgstr ""
35019
35020 #. type: textblock
35021 #: ../src/guestfs.pod:983
35022 msgid ""
35023 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35024 "babies.  Use with caution."
35025 msgstr ""
35026
35027 #. type: textblock
35028 #: ../src/guestfs.pod:986
35029 msgid ""
35030 "I<Note (2):> This section explains how to attach to a running daemon from a "
35031 "low level perspective.  For most users, simply using virt tools such as "
35032 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35033 msgstr ""
35034
35035 #. type: =head3
35036 #: ../src/guestfs.pod:990
35037 msgid "Using guestfs_set_attach_method"
35038 msgstr ""
35039
35040 #. type: textblock
35041 #: ../src/guestfs.pod:992
35042 msgid ""
35043 "By calling L</guestfs_set_attach_method> you can change how the library "
35044 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
35045 "ARCHITECTURE> for some background)."
35046 msgstr ""
35047
35048 #. type: textblock
35049 #: ../src/guestfs.pod:996
35050 msgid ""
35051 "The normal attach method is C<appliance>, where a small appliance is created "
35052 "containing the daemon, and then the library connects to this."
35053 msgstr ""
35054
35055 #. type: textblock
35056 #: ../src/guestfs.pod:999
35057 msgid ""
35058 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35059 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35060 "daemon over the Unix domain socket."
35061 msgstr ""
35062
35063 #. type: textblock
35064 #: ../src/guestfs.pod:1003
35065 msgid ""
35066 "The normal use for this is to connect to a running virtual machine that "
35067 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35068 "files inside the live virtual machine."
35069 msgstr ""
35070
35071 #. type: =head3
35072 #: ../src/guestfs.pod:1007
35073 msgid "Using guestfs_add_domain with live flag"
35074 msgstr ""
35075
35076 #. type: textblock
35077 #: ../src/guestfs.pod:1009
35078 msgid ""
35079 "L</guestfs_add_domain> provides some help for getting the correct attach "
35080 "method.  If you pass the C<live> option to this function, then (if the "
35081 "virtual machine is running) it will examine the libvirt XML looking for a "
35082 "virtio-serial channel to connect to:"
35083 msgstr ""
35084
35085 #. type: verbatim
35086 #: ../src/guestfs.pod:1015
35087 #, no-wrap
35088 msgid ""
35089 " <domain>\n"
35090 "   ...\n"
35091 "   <devices>\n"
35092 "     ...\n"
35093 "     <channel type='unix'>\n"
35094 "       <source mode='bind' path='/path/to/socket'/>\n"
35095 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35096 "     </channel>\n"
35097 "     ...\n"
35098 "   </devices>\n"
35099 " </domain>\n"
35100 "\n"
35101 msgstr ""
35102
35103 #. type: textblock
35104 #: ../src/guestfs.pod:1027
35105 msgid ""
35106 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35107 "method to C<unix:/path/to/socket>."
35108 msgstr ""
35109
35110 #. type: textblock
35111 #: ../src/guestfs.pod:1030
35112 msgid ""
35113 "Some of the libguestfs tools (including guestfish) support a I<--live> "
35114 "option which is passed through to L</guestfs_add_domain> thus allowing you "
35115 "to attach to and modify live virtual machines."
35116 msgstr ""
35117
35118 #. type: textblock
35119 #: ../src/guestfs.pod:1034
35120 msgid ""
35121 "The virtual machine needs to have been set up beforehand so that it has the "
35122 "virtio-serial channel and so that guestfsd is running inside it."
35123 msgstr ""
35124
35125 #. type: =head2
35126 #: ../src/guestfs.pod:1038
35127 msgid "ABI GUARANTEE"
35128 msgstr ""
35129
35130 #. type: textblock
35131 #: ../src/guestfs.pod:1040
35132 msgid ""
35133 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
35134 "actions as outlined in this section.  Although we will deprecate some "
35135 "actions, for example if they get replaced by newer calls, we will keep the "
35136 "old actions forever.  This allows you the developer to program in confidence "
35137 "against the libguestfs API."
35138 msgstr ""
35139
35140 #. type: =head2
35141 #: ../src/guestfs.pod:1046
35142 msgid "BLOCK DEVICE NAMING"
35143 msgstr ""
35144
35145 #. type: textblock
35146 #: ../src/guestfs.pod:1048
35147 msgid ""
35148 "In the kernel there is now quite a profusion of schemata for naming block "
35149 "devices (in this context, by I<block device> I mean a physical or virtual "
35150 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
35151 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
35152 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
35153 "for the old IDE driver (particularly for SATA devices) those devices also "
35154 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
35155 "paravirtualized drivers.  This has created several different naming systems, "
35156 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
35157 msgstr ""
35158
35159 #. type: textblock
35160 #: ../src/guestfs.pod:1060
35161 msgid ""
35162 "As discussed above, libguestfs uses a qemu appliance running an embedded "
35163 "Linux kernel to access block devices.  We can run a variety of appliances "
35164 "based on a variety of Linux kernels."
35165 msgstr ""
35166
35167 #. type: textblock
35168 #: ../src/guestfs.pod:1064
35169 msgid ""
35170 "This causes a problem for libguestfs because many API calls use device or "
35171 "partition names.  Working scripts and the recipe (example) scripts that we "
35172 "make available over the internet could fail if the naming scheme changes."
35173 msgstr ""
35174
35175 #. type: textblock
35176 #: ../src/guestfs.pod:1069
35177 msgid ""
35178 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
35179 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
35180 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
35181 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
35182 msgstr ""
35183
35184 #. type: textblock
35185 #: ../src/guestfs.pod:1075
35186 msgid ""
35187 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
35188 "L</guestfs_list_partitions> and similar calls return the true names of the "
35189 "devices and partitions as known to the appliance."
35190 msgstr ""
35191
35192 #. type: =head3
35193 #: ../src/guestfs.pod:1080
35194 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
35195 msgstr ""
35196
35197 #. type: textblock
35198 #: ../src/guestfs.pod:1082
35199 msgid ""
35200 "Usually this translation is transparent.  However in some (very rare)  cases "
35201 "you may need to know the exact algorithm.  Such cases include where you use "
35202 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
35203 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
35204 msgstr ""
35205
35206 #. type: textblock
35207 #: ../src/guestfs.pod:1088
35208 msgid ""
35209 "The algorithm is applied only to I<parameters> which are known to be either "
35210 "device or partition names.  Return values from functions such as L</"
35211 "guestfs_list_devices> are never changed."
35212 msgstr ""
35213
35214 #. type: textblock
35215 #: ../src/guestfs.pod:1096
35216 msgid "Is the string a parameter which is a device or partition name?"
35217 msgstr ""
35218
35219 #. type: textblock
35220 #: ../src/guestfs.pod:1100
35221 msgid "Does the string begin with C</dev/sd>?"
35222 msgstr ""
35223
35224 #. type: textblock
35225 #: ../src/guestfs.pod:1104
35226 msgid ""
35227 "Does the named device exist? If so, we use that device.  However if I<not> "
35228 "then we continue with this algorithm."
35229 msgstr ""
35230
35231 #. type: textblock
35232 #: ../src/guestfs.pod:1109
35233 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
35234 msgstr ""
35235
35236 #. type: textblock
35237 #: ../src/guestfs.pod:1111
35238 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
35239 msgstr ""
35240
35241 #. type: textblock
35242 #: ../src/guestfs.pod:1113
35243 msgid "If that named device exists, use it.  If not, continue."
35244 msgstr ""
35245
35246 #. type: textblock
35247 #: ../src/guestfs.pod:1117
35248 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
35249 msgstr ""
35250
35251 #. type: textblock
35252 #: ../src/guestfs.pod:1119
35253 msgid "If that named device exists, use it.  If not, return an error."
35254 msgstr ""
35255
35256 #. type: =head3
35257 #: ../src/guestfs.pod:1123
35258 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
35259 msgstr ""
35260
35261 #. type: textblock
35262 #: ../src/guestfs.pod:1125
35263 msgid ""
35264 "Although the standard naming scheme and automatic translation is useful for "
35265 "simple programs and guestfish scripts, for larger programs it is best not to "
35266 "rely on this mechanism."
35267 msgstr ""
35268
35269 #. type: textblock
35270 #: ../src/guestfs.pod:1129
35271 msgid ""
35272 "Where possible for maximum future portability programs using libguestfs "
35273 "should use these future-proof techniques:"
35274 msgstr ""
35275
35276 #. type: textblock
35277 #: ../src/guestfs.pod:1136
35278 msgid ""
35279 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
35280 "device names, and then use those names directly."
35281 msgstr ""
35282
35283 #. type: textblock
35284 #: ../src/guestfs.pod:1139
35285 msgid ""
35286 "Since those device names exist by definition, they will never be translated."
35287 msgstr ""
35288
35289 #. type: textblock
35290 #: ../src/guestfs.pod:1144
35291 msgid ""
35292 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
35293 "filesystem labels."
35294 msgstr ""
35295
35296 #. type: =head1
35297 #: ../src/guestfs.pod:1149
35298 msgid "SECURITY"
35299 msgstr ""
35300
35301 #. type: textblock
35302 #: ../src/guestfs.pod:1151
35303 msgid ""
35304 "This section discusses security implications of using libguestfs, "
35305 "particularly with untrusted or malicious guests or disk images."
35306 msgstr ""
35307
35308 #. type: =head2
35309 #: ../src/guestfs.pod:1154
35310 msgid "GENERAL SECURITY CONSIDERATIONS"
35311 msgstr ""
35312
35313 #. type: textblock
35314 #: ../src/guestfs.pod:1156
35315 msgid ""
35316 "Be careful with any files or data that you download from a guest (by "
35317 "\"download\" we mean not just the L</guestfs_download> command but any "
35318 "command that reads files, filenames, directories or anything else from a "
35319 "disk image).  An attacker could manipulate the data to fool your program "
35320 "into doing the wrong thing.  Consider cases such as:"
35321 msgstr ""
35322
35323 #. type: textblock
35324 #: ../src/guestfs.pod:1166
35325 msgid "the data (file etc) not being present"
35326 msgstr ""
35327
35328 #. type: textblock
35329 #: ../src/guestfs.pod:1170
35330 msgid "being present but empty"
35331 msgstr ""
35332
35333 #. type: textblock
35334 #: ../src/guestfs.pod:1174
35335 msgid "being much larger than normal"
35336 msgstr ""
35337
35338 #. type: textblock
35339 #: ../src/guestfs.pod:1178
35340 msgid "containing arbitrary 8 bit data"
35341 msgstr ""
35342
35343 #. type: textblock
35344 #: ../src/guestfs.pod:1182
35345 msgid "being in an unexpected character encoding"
35346 msgstr ""
35347
35348 #. type: textblock
35349 #: ../src/guestfs.pod:1186
35350 msgid "containing homoglyphs."
35351 msgstr ""
35352
35353 #. type: =head2
35354 #: ../src/guestfs.pod:1190
35355 msgid "SECURITY OF MOUNTING FILESYSTEMS"
35356 msgstr ""
35357
35358 #. type: textblock
35359 #: ../src/guestfs.pod:1192
35360 msgid ""
35361 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
35362 "(VFS) module can sometimes be escalated into exploits by deliberately "
35363 "creating a malicious, malformed filesystem.  These exploits are very severe "
35364 "for two reasons.  Firstly there are very many filesystem drivers in the "
35365 "kernel, and many of them are infrequently used and not much developer "
35366 "attention has been paid to the code.  Linux userspace helps potential "
35367 "crackers by detecting the filesystem type and automatically choosing the "
35368 "right VFS driver, even if that filesystem type is obscure or unexpected for "
35369 "the administrator.  Secondly, a kernel-level exploit is like a local root "
35370 "exploit (worse in some ways), giving immediate and total access to the "
35371 "system right down to the hardware level."
35372 msgstr ""
35373
35374 #. type: textblock
35375 #: ../src/guestfs.pod:1205
35376 msgid ""
35377 "That explains why you should never mount a filesystem from an untrusted "
35378 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
35379 "inside a qemu virtual machine, usually running as a non-root user.  The "
35380 "attacker would need to write a filesystem which first exploited the kernel, "
35381 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
35382 "the libguestfs protocol, and finally to be as serious as the host kernel "
35383 "exploit it would need to escalate its privileges to root.  This multi-step "
35384 "escalation, performed by a static piece of data, is thought to be extremely "
35385 "hard to do, although we never say 'never' about security issues."
35386 msgstr ""
35387
35388 #. type: textblock
35389 #: ../src/guestfs.pod:1216
35390 msgid ""
35391 "In any case callers can reduce the attack surface by forcing the filesystem "
35392 "type when mounting (use L</guestfs_mount_vfs>)."
35393 msgstr ""
35394
35395 #. type: =head2
35396 #: ../src/guestfs.pod:1219
35397 msgid "PROTOCOL SECURITY"
35398 msgstr ""
35399
35400 #. type: textblock
35401 #: ../src/guestfs.pod:1221
35402 msgid ""
35403 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
35404 "defined upper message size.  However a program that uses libguestfs must "
35405 "also take care - for example you can write a program that downloads a binary "
35406 "from a disk image and executes it locally, and no amount of protocol "
35407 "security will save you from the consequences."
35408 msgstr ""
35409
35410 #. type: =head2
35411 #: ../src/guestfs.pod:1227
35412 msgid "INSPECTION SECURITY"
35413 msgstr ""
35414
35415 #. type: textblock
35416 #: ../src/guestfs.pod:1229
35417 msgid ""
35418 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
35419 "directly from the guest, and these could contain any 8 bit data.  Callers "
35420 "should be careful to escape these before printing them to a structured file "
35421 "(for example, use HTML escaping if creating a web page)."
35422 msgstr ""
35423
35424 #. type: textblock
35425 #: ../src/guestfs.pod:1235
35426 msgid ""
35427 "Guest configuration may be altered in unusual ways by the administrator of "
35428 "the virtual machine, and may not reflect reality (particularly for untrusted "
35429 "or actively malicious guests).  For example we parse the hostname from "
35430 "configuration files like C</etc/sysconfig/network> that we find in the "
35431 "guest, but the guest administrator can easily manipulate these files to "
35432 "provide the wrong hostname."
35433 msgstr ""
35434
35435 #. type: textblock
35436 #: ../src/guestfs.pod:1243
35437 msgid ""
35438 "The inspection API parses guest configuration using two external libraries: "
35439 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
35440 "designed to be robust in the face of malicious data, although denial of "
35441 "service attacks are still possible, for example with oversized configuration "
35442 "files."
35443 msgstr ""
35444
35445 #. type: =head2
35446 #: ../src/guestfs.pod:1249
35447 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
35448 msgstr ""
35449
35450 #. type: textblock
35451 #: ../src/guestfs.pod:1251
35452 msgid ""
35453 "Be very cautious about running commands from the guest.  By running a "
35454 "command in the guest, you are giving CPU time to a binary that you do not "
35455 "control, under the same user account as the library, albeit wrapped in qemu "
35456 "virtualization.  More information and alternatives can be found in the "
35457 "section L</RUNNING COMMANDS>."
35458 msgstr ""
35459
35460 #. type: =head2
35461 #: ../src/guestfs.pod:1257
35462 msgid "CVE-2010-3851"
35463 msgstr ""
35464
35465 #. type: textblock
35466 #: ../src/guestfs.pod:1259
35467 msgid "https://bugzilla.redhat.com/642934"
35468 msgstr ""
35469
35470 #. type: textblock
35471 #: ../src/guestfs.pod:1261
35472 msgid ""
35473 "This security bug concerns the automatic disk format detection that qemu "
35474 "does on disk images."
35475 msgstr ""
35476
35477 #. type: textblock
35478 #: ../src/guestfs.pod:1264
35479 msgid ""
35480 "A raw disk image is just the raw bytes, there is no header.  Other disk "
35481 "images like qcow2 contain a special header.  Qemu deals with this by looking "
35482 "for one of the known headers, and if none is found then assuming the disk "
35483 "image must be raw."
35484 msgstr ""
35485
35486 #. type: textblock
35487 #: ../src/guestfs.pod:1269
35488 msgid ""
35489 "This allows a guest which has been given a raw disk image to write some "
35490 "other header.  At next boot (or when the disk image is accessed by "
35491 "libguestfs) qemu would do autodetection and think the disk image format was, "
35492 "say, qcow2 based on the header written by the guest."
35493 msgstr ""
35494
35495 #. type: textblock
35496 #: ../src/guestfs.pod:1274
35497 msgid ""
35498 "This in itself would not be a problem, but qcow2 offers many features, one "
35499 "of which is to allow a disk image to refer to another image (called the "
35500 "\"backing disk\").  It does this by placing the path to the backing disk "
35501 "into the qcow2 header.  This path is not validated and could point to any "
35502 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
35503 "\"holes\" in the qcow2 disk image, which of course is completely under the "
35504 "control of the attacker."
35505 msgstr ""
35506
35507 #. type: textblock
35508 #: ../src/guestfs.pod:1282
35509 msgid ""
35510 "In libguestfs this is rather hard to exploit except under two circumstances:"
35511 msgstr ""
35512
35513 #. type: textblock
35514 #: ../src/guestfs.pod:1289
35515 msgid "You have enabled the network or have opened the disk in write mode."
35516 msgstr ""
35517
35518 #. type: textblock
35519 #: ../src/guestfs.pod:1293
35520 msgid ""
35521 "You are also running untrusted code from the guest (see L</RUNNING "
35522 "COMMANDS>)."
35523 msgstr ""
35524
35525 #. type: textblock
35526 #: ../src/guestfs.pod:1298
35527 msgid ""
35528 "The way to avoid this is to specify the expected disk format when adding "
35529 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
35530 "should always do this if the disk is raw format, and it's a good idea for "
35531 "other cases too."
35532 msgstr ""
35533
35534 #. type: textblock
35535 #: ../src/guestfs.pod:1303
35536 msgid ""
35537 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
35538 "format is fetched from libvirt and passed through."
35539 msgstr ""
35540
35541 #. type: textblock
35542 #: ../src/guestfs.pod:1306
35543 msgid ""
35544 "For libguestfs tools, use the I<--format> command line parameter as "
35545 "appropriate."
35546 msgstr ""
35547
35548 #. type: =head1
35549 #: ../src/guestfs.pod:1309
35550 msgid "CONNECTION MANAGEMENT"
35551 msgstr ""
35552
35553 #. type: =head2
35554 #: ../src/guestfs.pod:1311
35555 msgid "guestfs_h *"
35556 msgstr ""
35557
35558 #. type: textblock
35559 #: ../src/guestfs.pod:1313
35560 msgid ""
35561 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
35562 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
35563 "handle and release all resources used."
35564 msgstr ""
35565
35566 #. type: textblock
35567 #: ../src/guestfs.pod:1317
35568 msgid ""
35569 "For information on using multiple handles and threads, see the section L</"
35570 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
35571 msgstr ""
35572
35573 #. type: =head2
35574 #: ../src/guestfs.pod:1320
35575 msgid "guestfs_create"
35576 msgstr ""
35577
35578 #. type: verbatim
35579 #: ../src/guestfs.pod:1322
35580 #, no-wrap
35581 msgid ""
35582 " guestfs_h *guestfs_create (void);\n"
35583 "\n"
35584 msgstr ""
35585
35586 #. type: textblock
35587 #: ../src/guestfs.pod:1324
35588 msgid "Create a connection handle."
35589 msgstr ""
35590
35591 #. type: textblock
35592 #: ../src/guestfs.pod:1326
35593 msgid ""
35594 "On success this returns a non-NULL pointer to a handle.  On error it returns "
35595 "NULL."
35596 msgstr ""
35597
35598 #. type: textblock
35599 #: ../src/guestfs.pod:1329
35600 msgid ""
35601 "You have to \"configure\" the handle after creating it.  This includes "
35602 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35603 "handle at least once."
35604 msgstr ""
35605
35606 #. type: textblock
35607 #: ../src/guestfs.pod:1333
35608 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35609 msgstr ""
35610
35611 #. type: textblock
35612 #: ../src/guestfs.pod:1335
35613 msgid ""
35614 "You may also want to configure error handling for the handle.  See the L</"
35615 "ERROR HANDLING> section below."
35616 msgstr ""
35617
35618 #. type: =head2
35619 #: ../src/guestfs.pod:1338
35620 msgid "guestfs_close"
35621 msgstr ""
35622
35623 #. type: verbatim
35624 #: ../src/guestfs.pod:1340
35625 #, no-wrap
35626 msgid ""
35627 " void guestfs_close (guestfs_h *g);\n"
35628 "\n"
35629 msgstr ""
35630
35631 #. type: textblock
35632 #: ../src/guestfs.pod:1342
35633 msgid "This closes the connection handle and frees up all resources used."
35634 msgstr ""
35635
35636 #. type: textblock
35637 #: ../src/guestfs.pod:1344
35638 msgid ""
35639 "If autosync was set on the handle and the handle was launched, then this "
35640 "implicitly calls various functions to unmount filesystems and sync the "
35641 "disk.  See L</guestfs_set_autosync> for more details."
35642 msgstr ""
35643
35644 #. type: textblock
35645 #: ../src/guestfs.pod:1348
35646 msgid "If a close callback was set on the handle, then it is called."
35647 msgstr ""
35648
35649 #. type: =head1
35650 #: ../src/guestfs.pod:1350
35651 msgid "ERROR HANDLING"
35652 msgstr ""
35653
35654 #. type: textblock
35655 #: ../src/guestfs.pod:1352
35656 msgid ""
35657 "API functions can return errors.  For example, almost all functions that "
35658 "return C<int> will return C<-1> to indicate an error."
35659 msgstr ""
35660
35661 #. type: textblock
35662 #: ../src/guestfs.pod:1355
35663 msgid ""
35664 "Additional information is available for errors: an error message string and "
35665 "optionally an error number (errno) if the thing that failed was a system "
35666 "call."
35667 msgstr ""
35668
35669 #. type: textblock
35670 #: ../src/guestfs.pod:1359
35671 msgid ""
35672 "You can get at the additional information about the last error on the handle "
35673 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35674 "up an error handler with L</guestfs_set_error_handler>."
35675 msgstr ""
35676
35677 #. type: textblock
35678 #: ../src/guestfs.pod:1364
35679 msgid ""
35680 "When the handle is created, a default error handler is installed which "
35681 "prints the error message string to C<stderr>.  For small short-running "
35682 "command line programs it is sufficient to do:"
35683 msgstr ""
35684
35685 #. type: verbatim
35686 #: ../src/guestfs.pod:1368
35687 #, no-wrap
35688 msgid ""
35689 " if (guestfs_launch (g) == -1)\n"
35690 "   exit (EXIT_FAILURE);\n"
35691 "\n"
35692 msgstr ""
35693
35694 #. type: textblock
35695 #: ../src/guestfs.pod:1371
35696 msgid ""
35697 "since the default error handler will ensure that an error message has been "
35698 "printed to C<stderr> before the program exits."
35699 msgstr ""
35700
35701 #. type: textblock
35702 #: ../src/guestfs.pod:1374
35703 msgid ""
35704 "For other programs the caller will almost certainly want to install an "
35705 "alternate error handler or do error handling in-line like this:"
35706 msgstr ""
35707
35708 #. type: verbatim
35709 #: ../src/guestfs.pod:1377
35710 #, no-wrap
35711 msgid ""
35712 " /* This disables the default behaviour of printing errors\n"
35713 "    on stderr. */\n"
35714 " guestfs_set_error_handler (g, NULL, NULL);\n"
35715 " \n"
35716 msgstr ""
35717
35718 #. type: verbatim
35719 #: ../src/guestfs.pod:1381
35720 #, no-wrap
35721 msgid ""
35722 " if (guestfs_launch (g) == -1) {\n"
35723 "   /* Examine the error message and print it etc. */\n"
35724 "   char *msg = guestfs_last_error (g);\n"
35725 "   int errnum = guestfs_last_errno (g);\n"
35726 "   fprintf (stderr, \"%s\", msg);\n"
35727 "   if (errnum != 0)\n"
35728 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
35729 "   fprintf (stderr, \"\\n\");\n"
35730 "   /* ... */\n"
35731 " }\n"
35732 "\n"
35733 msgstr ""
35734
35735 #. type: textblock
35736 #: ../src/guestfs.pod:1392
35737 msgid ""
35738 "Out of memory errors are handled differently.  The default action is to call "
35739 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
35740 "guestfs_set_out_of_memory_handler>."
35741 msgstr ""
35742
35743 #. type: textblock
35744 #: ../src/guestfs.pod:1396
35745 msgid ""
35746 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35747 "because there is no handle if this happens there is no way to get additional "
35748 "error information.  However L</guestfs_create> is supposed to be a "
35749 "lightweight operation which can only fail because of insufficient memory (it "
35750 "returns NULL in this case)."
35751 msgstr ""
35752
35753 #. type: =head2
35754 #: ../src/guestfs.pod:1402
35755 msgid "guestfs_last_error"
35756 msgstr ""
35757
35758 #. type: verbatim
35759 #: ../src/guestfs.pod:1404
35760 #, no-wrap
35761 msgid ""
35762 " const char *guestfs_last_error (guestfs_h *g);\n"
35763 "\n"
35764 msgstr ""
35765
35766 #. type: textblock
35767 #: ../src/guestfs.pod:1406
35768 msgid ""
35769 "This returns the last error message that happened on C<g>.  If there has not "
35770 "been an error since the handle was created, then this returns C<NULL>."
35771 msgstr ""
35772
35773 #. type: textblock
35774 #: ../src/guestfs.pod:1410
35775 msgid ""
35776 "The lifetime of the returned string is until the next error occurs, or L</"
35777 "guestfs_close> is called."
35778 msgstr ""
35779
35780 #. type: =head2
35781 #: ../src/guestfs.pod:1413
35782 msgid "guestfs_last_errno"
35783 msgstr ""
35784
35785 #. type: verbatim
35786 #: ../src/guestfs.pod:1415
35787 #, no-wrap
35788 msgid ""
35789 " int guestfs_last_errno (guestfs_h *g);\n"
35790 "\n"
35791 msgstr ""
35792
35793 #. type: textblock
35794 #: ../src/guestfs.pod:1417
35795 msgid "This returns the last error number (errno) that happened on C<g>."
35796 msgstr ""
35797
35798 #. type: textblock
35799 #: ../src/guestfs.pod:1419
35800 msgid "If successful, an errno integer not equal to zero is returned."
35801 msgstr ""
35802
35803 #. type: textblock
35804 #: ../src/guestfs.pod:1421
35805 msgid ""
35806 "If no error, this returns 0.  This call can return 0 in three situations:"
35807 msgstr ""
35808
35809 #. type: textblock
35810 #: ../src/guestfs.pod:1428
35811 msgid "There has not been any error on the handle."
35812 msgstr ""
35813
35814 #. type: textblock
35815 #: ../src/guestfs.pod:1432
35816 msgid ""
35817 "There has been an error but the errno was meaningless.  This corresponds to "
35818 "the case where the error did not come from a failed system call, but for "
35819 "some other reason."
35820 msgstr ""
35821
35822 #. type: textblock
35823 #: ../src/guestfs.pod:1438
35824 msgid ""
35825 "There was an error from a failed system call, but for some reason the errno "
35826 "was not captured and returned.  This usually indicates a bug in libguestfs."
35827 msgstr ""
35828
35829 #. type: textblock
35830 #: ../src/guestfs.pod:1444
35831 msgid ""
35832 "Libguestfs tries to convert the errno from inside the applicance into a "
35833 "corresponding errno for the caller (not entirely trivial: the appliance "
35834 "might be running a completely different operating system from the library "
35835 "and error numbers are not standardized across Un*xen).  If this could not be "
35836 "done, then the error is translated to C<EINVAL>.  In practice this should "
35837 "only happen in very rare circumstances."
35838 msgstr ""
35839
35840 #. type: =head2
35841 #: ../src/guestfs.pod:1452
35842 msgid "guestfs_set_error_handler"
35843 msgstr ""
35844
35845 #. type: verbatim
35846 #: ../src/guestfs.pod:1454
35847 #, no-wrap
35848 msgid ""
35849 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35850 "                                           void *opaque,\n"
35851 "                                           const char *msg);\n"
35852 " void guestfs_set_error_handler (guestfs_h *g,\n"
35853 "                                 guestfs_error_handler_cb cb,\n"
35854 "                                 void *opaque);\n"
35855 "\n"
35856 msgstr ""
35857
35858 #. type: textblock
35859 #: ../src/guestfs.pod:1461
35860 msgid ""
35861 "The callback C<cb> will be called if there is an error.  The parameters "
35862 "passed to the callback are an opaque data pointer and the error message "
35863 "string."
35864 msgstr ""
35865
35866 #. type: textblock
35867 #: ../src/guestfs.pod:1465
35868 msgid ""
35869 "C<errno> is not passed to the callback.  To get that the callback must call "
35870 "L</guestfs_last_errno>."
35871 msgstr ""
35872
35873 #. type: textblock
35874 #: ../src/guestfs.pod:1468
35875 msgid ""
35876 "Note that the message string C<msg> is freed as soon as the callback "
35877 "function returns, so if you want to stash it somewhere you must make your "
35878 "own copy."
35879 msgstr ""
35880
35881 #. type: textblock
35882 #: ../src/guestfs.pod:1472
35883 msgid "The default handler prints messages on C<stderr>."
35884 msgstr ""
35885
35886 #. type: textblock
35887 #: ../src/guestfs.pod:1474
35888 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35889 msgstr ""
35890
35891 #. type: =head2
35892 #: ../src/guestfs.pod:1476
35893 msgid "guestfs_get_error_handler"
35894 msgstr ""
35895
35896 #. type: verbatim
35897 #: ../src/guestfs.pod:1478
35898 #, no-wrap
35899 msgid ""
35900 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35901 "                                                     void **opaque_rtn);\n"
35902 "\n"
35903 msgstr ""
35904
35905 #. type: textblock
35906 #: ../src/guestfs.pod:1481
35907 msgid "Returns the current error handler callback."
35908 msgstr ""
35909
35910 #. type: =head2
35911 #: ../src/guestfs.pod:1483
35912 msgid "guestfs_set_out_of_memory_handler"
35913 msgstr ""
35914
35915 #. type: verbatim
35916 #: ../src/guestfs.pod:1485
35917 #, no-wrap
35918 msgid ""
35919 " typedef void (*guestfs_abort_cb) (void);\n"
35920 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35921 "                                         guestfs_abort_cb);\n"
35922 "\n"
35923 msgstr ""
35924
35925 #. type: textblock
35926 #: ../src/guestfs.pod:1489
35927 msgid ""
35928 "The callback C<cb> will be called if there is an out of memory situation.  "
35929 "I<Note this callback must not return>."
35930 msgstr ""
35931
35932 #. type: textblock
35933 #: ../src/guestfs.pod:1492
35934 msgid "The default is to call L<abort(3)>."
35935 msgstr ""
35936
35937 #. type: textblock
35938 #: ../src/guestfs.pod:1494
35939 msgid ""
35940 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35941 msgstr ""
35942
35943 #. type: =head2
35944 #: ../src/guestfs.pod:1497
35945 msgid "guestfs_get_out_of_memory_handler"
35946 msgstr ""
35947
35948 #. type: verbatim
35949 #: ../src/guestfs.pod:1499
35950 #, no-wrap
35951 msgid ""
35952 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35953 "\n"
35954 msgstr ""
35955
35956 #. type: textblock
35957 #: ../src/guestfs.pod:1501
35958 msgid "This returns the current out of memory handler."
35959 msgstr ""
35960
35961 #. type: =head1
35962 #: ../src/guestfs.pod:1503
35963 msgid "API CALLS"
35964 msgstr ""
35965
35966 #. type: =head1
35967 #: ../src/guestfs.pod:1507
35968 msgid "STRUCTURES"
35969 msgstr ""
35970
35971 #. type: textblock
35972 #: ../src/guestfs.pod:1509
35973 msgid "@STRUCTS@"
35974 msgstr ""
35975
35976 #. type: =head1
35977 #: ../src/guestfs.pod:1511
35978 msgid "AVAILABILITY"
35979 msgstr ""
35980
35981 #. type: =head2
35982 #: ../src/guestfs.pod:1513
35983 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35984 msgstr ""
35985
35986 #. type: textblock
35987 #: ../src/guestfs.pod:1515
35988 msgid ""
35989 "Using L</guestfs_available> you can test availability of the following "
35990 "groups of functions.  This test queries the appliance to see if the "
35991 "appliance you are currently using supports the functionality."
35992 msgstr ""
35993
35994 #. type: textblock
35995 #: ../src/guestfs.pod:1520
35996 msgid "@AVAILABILITY@"
35997 msgstr ""
35998
35999 #. type: =head2
36000 #: ../src/guestfs.pod:1522
36001 msgid "GUESTFISH supported COMMAND"
36002 msgstr ""
36003
36004 #. type: textblock
36005 #: ../src/guestfs.pod:1524
36006 msgid ""
36007 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36008 "prints out the available groups and whether they are supported by this build "
36009 "of libguestfs.  Note however that you have to do C<run> first."
36010 msgstr ""
36011
36012 #. type: =head2
36013 #: ../src/guestfs.pod:1529
36014 msgid "SINGLE CALLS AT COMPILE TIME"
36015 msgstr ""
36016
36017 #. type: textblock
36018 #: ../src/guestfs.pod:1531
36019 msgid ""
36020 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36021 "function, such as:"
36022 msgstr ""
36023
36024 #. type: verbatim
36025 #: ../src/guestfs.pod:1534
36026 #, no-wrap
36027 msgid ""
36028 " #define LIBGUESTFS_HAVE_DD 1\n"
36029 "\n"
36030 msgstr ""
36031
36032 #. type: textblock
36033 #: ../src/guestfs.pod:1536
36034 msgid "if L</guestfs_dd> is available."
36035 msgstr ""
36036
36037 #. type: textblock
36038 #: ../src/guestfs.pod:1538
36039 msgid ""
36040 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36041 "function is available at compile time, we recommended using build tools such "
36042 "as autoconf or cmake.  For example in autotools you could use:"
36043 msgstr ""
36044
36045 #. type: verbatim
36046 #: ../src/guestfs.pod:1543
36047 #, no-wrap
36048 msgid ""
36049 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36050 " AC_CHECK_FUNCS([guestfs_dd])\n"
36051 "\n"
36052 msgstr ""
36053
36054 #. type: textblock
36055 #: ../src/guestfs.pod:1546
36056 msgid ""
36057 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36058 "in your program."
36059 msgstr ""
36060
36061 #. type: =head2
36062 #: ../src/guestfs.pod:1549
36063 msgid "SINGLE CALLS AT RUN TIME"
36064 msgstr ""
36065
36066 #. type: textblock
36067 #: ../src/guestfs.pod:1551
36068 msgid ""
36069 "Testing at compile time doesn't guarantee that a function really exists in "
36070 "the library.  The reason is that you might be dynamically linked against a "
36071 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
36072 "This situation unfortunately results in a segmentation fault, which is a "
36073 "shortcoming of the C dynamic linking system itself."
36074 msgstr ""
36075
36076 #. type: textblock
36077 #: ../src/guestfs.pod:1558
36078 msgid ""
36079 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36080 "in this example program (note that you still need the compile time check as "
36081 "well):"
36082 msgstr ""
36083
36084 #. type: verbatim
36085 #: ../src/guestfs.pod:1562
36086 #, no-wrap
36087 msgid ""
36088 " #include <stdio.h>\n"
36089 " #include <stdlib.h>\n"
36090 " #include <unistd.h>\n"
36091 " #include <dlfcn.h>\n"
36092 " #include <guestfs.h>\n"
36093 " \n"
36094 msgstr ""
36095
36096 #. type: verbatim
36097 #: ../src/guestfs.pod:1568
36098 #, no-wrap
36099 msgid ""
36100 " main ()\n"
36101 " {\n"
36102 " #ifdef LIBGUESTFS_HAVE_DD\n"
36103 "   void *dl;\n"
36104 "   int has_function;\n"
36105 " \n"
36106 msgstr ""
36107
36108 #. type: verbatim
36109 #: ../src/guestfs.pod:1574
36110 #, no-wrap
36111 msgid ""
36112 "   /* Test if the function guestfs_dd is really available. */\n"
36113 "   dl = dlopen (NULL, RTLD_LAZY);\n"
36114 "   if (!dl) {\n"
36115 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36116 "     exit (EXIT_FAILURE);\n"
36117 "   }\n"
36118 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
36119 "   dlclose (dl);\n"
36120 " \n"
36121 msgstr ""
36122
36123 #. type: verbatim
36124 #: ../src/guestfs.pod:1583
36125 #, no-wrap
36126 msgid ""
36127 "   if (!has_function)\n"
36128 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
36129 "   else {\n"
36130 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
36131 "     /* Now it's safe to call\n"
36132 "     guestfs_dd (g, \"foo\", \"bar\");\n"
36133 "     */\n"
36134 "   }\n"
36135 " #else\n"
36136 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
36137 " #endif\n"
36138 "  }\n"
36139 "\n"
36140 msgstr ""
36141
36142 #. type: textblock
36143 #: ../src/guestfs.pod:1596
36144 msgid ""
36145 "You may think the above is an awful lot of hassle, and it is.  There are "
36146 "other ways outside of the C linking system to ensure that this kind of "
36147 "incompatibility never arises, such as using package versioning:"
36148 msgstr ""
36149
36150 #. type: verbatim
36151 #: ../src/guestfs.pod:1601
36152 #, no-wrap
36153 msgid ""
36154 " Requires: libguestfs >= 1.0.80\n"
36155 "\n"
36156 msgstr ""
36157
36158 #. type: =head1
36159 #: ../src/guestfs.pod:1603
36160 msgid "CALLS WITH OPTIONAL ARGUMENTS"
36161 msgstr ""
36162
36163 #. type: textblock
36164 #: ../src/guestfs.pod:1605
36165 msgid ""
36166 "A recent feature of the API is the introduction of calls which take optional "
36167 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
36168 "takes variable arguments (ie. C<...>), as in this example:"
36169 msgstr ""
36170
36171 #. type: verbatim
36172 #: ../src/guestfs.pod:1610
36173 #, no-wrap
36174 msgid ""
36175 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36176 "\n"
36177 msgstr ""
36178
36179 #. type: textblock
36180 #: ../src/guestfs.pod:1612
36181 msgid ""
36182 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
36183 "call with no optional arguments specified:"
36184 msgstr ""
36185
36186 #. type: verbatim
36187 #: ../src/guestfs.pod:1615
36188 #, no-wrap
36189 msgid ""
36190 " guestfs_add_drive_opts (g, filename, -1);\n"
36191 "\n"
36192 msgstr ""
36193
36194 #. type: textblock
36195 #: ../src/guestfs.pod:1617
36196 msgid "With a single optional argument:"
36197 msgstr ""
36198
36199 #. type: verbatim
36200 #: ../src/guestfs.pod:1619
36201 #, no-wrap
36202 msgid ""
36203 " guestfs_add_drive_opts (g, filename,\n"
36204 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36205 "                         -1);\n"
36206 "\n"
36207 msgstr ""
36208
36209 #. type: textblock
36210 #: ../src/guestfs.pod:1623
36211 msgid "With two:"
36212 msgstr ""
36213
36214 #. type: verbatim
36215 #: ../src/guestfs.pod:1625
36216 #, no-wrap
36217 msgid ""
36218 " guestfs_add_drive_opts (g, filename,\n"
36219 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36220 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36221 "                         -1);\n"
36222 "\n"
36223 msgstr ""
36224
36225 #. type: textblock
36226 #: ../src/guestfs.pod:1630
36227 msgid ""
36228 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
36229 "happen!"
36230 msgstr ""
36231
36232 #. type: =head2
36233 #: ../src/guestfs.pod:1633
36234 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36235 msgstr ""
36236
36237 #. type: textblock
36238 #: ../src/guestfs.pod:1635
36239 msgid ""
36240 "The second variant has the same name with the suffix C<_va>, which works the "
36241 "same way but takes a C<va_list>.  See the C manual for details.  For the "
36242 "example function, this is declared:"
36243 msgstr ""
36244
36245 #. type: verbatim
36246 #: ../src/guestfs.pod:1639
36247 #, no-wrap
36248 msgid ""
36249 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36250 "                                va_list args);\n"
36251 "\n"
36252 msgstr ""
36253
36254 #. type: =head2
36255 #: ../src/guestfs.pod:1642
36256 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
36257 msgstr ""
36258
36259 #. type: textblock
36260 #: ../src/guestfs.pod:1644
36261 msgid ""
36262 "The third variant is useful where you need to construct these calls.  You "
36263 "pass in a structure where you fill in the optional fields.  The structure "
36264 "has a bitmask as the first element which you must set to indicate which "
36265 "fields you have filled in.  For our example function the structure and call "
36266 "are declared:"
36267 msgstr ""
36268
36269 #. type: verbatim
36270 #: ../src/guestfs.pod:1650
36271 #, no-wrap
36272 msgid ""
36273 " struct guestfs_add_drive_opts_argv {\n"
36274 "   uint64_t bitmask;\n"
36275 "   int readonly;\n"
36276 "   const char *format;\n"
36277 "   /* ... */\n"
36278 " };\n"
36279 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36280 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
36281 "\n"
36282 msgstr ""
36283
36284 #. type: textblock
36285 #: ../src/guestfs.pod:1659
36286 msgid "You could call it like this:"
36287 msgstr ""
36288
36289 #. type: verbatim
36290 #: ../src/guestfs.pod:1661
36291 #, no-wrap
36292 msgid ""
36293 " struct guestfs_add_drive_opts_argv optargs = {\n"
36294 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36295 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36296 "   .readonly = 1,\n"
36297 "   .format = \"qcow2\"\n"
36298 " };\n"
36299 " \n"
36300 msgstr ""
36301
36302 #. type: verbatim
36303 #: ../src/guestfs.pod:1668
36304 #, no-wrap
36305 msgid ""
36306 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36307 "\n"
36308 msgstr ""
36309
36310 #. type: textblock
36311 #: ../src/guestfs.pod:1676
36312 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
36313 msgstr ""
36314
36315 #. type: textblock
36316 #: ../src/guestfs.pod:1681
36317 msgid "You do not need to fill in all fields of the structure."
36318 msgstr ""
36319
36320 #. type: textblock
36321 #: ../src/guestfs.pod:1685
36322 msgid ""
36323 "There must be a one-to-one correspondence between fields of the structure "
36324 "that are filled in, and bits set in the bitmask."
36325 msgstr ""
36326
36327 #. type: =head2
36328 #: ../src/guestfs.pod:1690
36329 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
36330 msgstr ""
36331
36332 #. type: textblock
36333 #: ../src/guestfs.pod:1692
36334 msgid ""
36335 "In other languages, optional arguments are expressed in the way that is "
36336 "natural for that language.  We refer you to the language-specific "
36337 "documentation for more details on that."
36338 msgstr ""
36339
36340 #. type: textblock
36341 #: ../src/guestfs.pod:1696
36342 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
36343 msgstr ""
36344
36345 #. type: =head2
36346 #: ../src/guestfs.pod:1698
36347 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
36348 msgstr ""
36349
36350 #. type: textblock
36351 #: ../src/guestfs.pod:1700
36352 msgid ""
36353 "B<Note:> This section documents the generic event mechanism introduced in "
36354 "libguestfs 1.10, which you should use in new code if possible.  The old "
36355 "functions C<guestfs_set_log_message_callback>, "
36356 "C<guestfs_set_subprocess_quit_callback>, "
36357 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
36358 "C<guestfs_set_progress_callback> are no longer documented in this manual "
36359 "page.  Because of the ABI guarantee, the old functions continue to work."
36360 msgstr ""
36361
36362 #. type: textblock
36363 #: ../src/guestfs.pod:1709
36364 msgid ""
36365 "Handles generate events when certain things happen, such as log messages "
36366 "being generated, progress messages during long-running operations, or the "
36367 "handle being closed.  The API calls described below let you register a "
36368 "callback to be called when events happen.  You can register multiple "
36369 "callbacks (for the same, different or overlapping sets of events), and "
36370 "individually remove callbacks.  If callbacks are not removed, then they "
36371 "remain in force until the handle is closed."
36372 msgstr ""
36373
36374 #. type: textblock
36375 #: ../src/guestfs.pod:1717
36376 msgid ""
36377 "In the current implementation, events are only generated synchronously: that "
36378 "means that events (and hence callbacks) can only happen while you are in the "
36379 "middle of making another libguestfs call.  The callback is called in the "
36380 "same thread."
36381 msgstr ""
36382
36383 #. type: textblock
36384 #: ../src/guestfs.pod:1722
36385 msgid ""
36386 "Events may contain a payload, usually nothing (void), an array of 64 bit "
36387 "unsigned integers, or a message buffer.  Payloads are discussed later on."
36388 msgstr ""
36389
36390 #. type: =head3
36391 #: ../src/guestfs.pod:1726
36392 msgid "CLASSES OF EVENTS"
36393 msgstr ""
36394
36395 #. type: =item
36396 #: ../src/guestfs.pod:1730
36397 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
36398 msgstr ""
36399
36400 #. type: textblock
36401 #: ../src/guestfs.pod:1733
36402 msgid ""
36403 "The callback function will be called while the handle is being closed "
36404 "(synchronously from L</guestfs_close>)."
36405 msgstr ""
36406
36407 #. type: textblock
36408 #: ../src/guestfs.pod:1736
36409 msgid ""
36410 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
36411 "handles that are open when the program exits.  This means that this callback "
36412 "might be called indirectly from L<exit(3)>, which can cause unexpected "
36413 "problems in higher-level languages (eg. if your HLL interpreter has already "
36414 "been cleaned up by the time this is called, and if your callback then jumps "
36415 "into some HLL function)."
36416 msgstr ""
36417
36418 #. type: textblock
36419 #: ../src/guestfs.pod:1743
36420 msgid ""
36421 "If no callback is registered: the handle is closed without any callback "
36422 "being invoked."
36423 msgstr ""
36424
36425 #. type: =item
36426 #: ../src/guestfs.pod:1746
36427 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
36428 msgstr ""
36429
36430 #. type: textblock
36431 #: ../src/guestfs.pod:1749
36432 msgid ""
36433 "The callback function will be called when the child process quits, either "
36434 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
36435 "corresponds to a transition from any state to the CONFIG state)."
36436 msgstr ""
36437
36438 #. type: textblock
36439 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
36440 msgid "If no callback is registered: the event is ignored."
36441 msgstr ""
36442
36443 #. type: =item
36444 #: ../src/guestfs.pod:1755
36445 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
36446 msgstr ""
36447
36448 #. type: textblock
36449 #: ../src/guestfs.pod:1758
36450 msgid ""
36451 "The callback function will be called when the child process becomes ready "
36452 "first time after it has been launched.  (This corresponds to a transition "
36453 "from LAUNCHING to the READY state)."
36454 msgstr ""
36455
36456 #. type: =item
36457 #: ../src/guestfs.pod:1764
36458 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
36459 msgstr ""
36460
36461 #. type: textblock
36462 #: ../src/guestfs.pod:1767
36463 msgid ""
36464 "Some long-running operations can generate progress messages.  If this "
36465 "callback is registered, then it will be called each time a progress message "
36466 "is generated (usually two seconds after the operation started, and three "
36467 "times per second thereafter until it completes, although the frequency may "
36468 "change in future versions)."
36469 msgstr ""
36470
36471 #. type: textblock
36472 #: ../src/guestfs.pod:1773
36473 msgid ""
36474 "The callback receives in the payload four unsigned 64 bit numbers which are "
36475 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36476 msgstr ""
36477
36478 #. type: textblock
36479 #: ../src/guestfs.pod:1776
36480 msgid ""
36481 "The units of C<total> are not defined, although for some operations C<total> "
36482 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36483 "or megabytes), and C<position> may be the portion which has been transferred."
36484 msgstr ""
36485
36486 #. type: textblock
36487 #: ../src/guestfs.pod:1781
36488 msgid "The only defined and stable parts of the API are:"
36489 msgstr ""
36490
36491 #. type: textblock
36492 #: ../src/guestfs.pod:1787
36493 msgid ""
36494 "The callback can display to the user some type of progress bar or indicator "
36495 "which shows the ratio of C<position>:C<total>."
36496 msgstr ""
36497
36498 #. type: textblock
36499 #: ../src/guestfs.pod:1792
36500 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36501 msgstr ""
36502
36503 #. type: textblock
36504 #: ../src/guestfs.pod:1796
36505 msgid ""
36506 "If any progress notification is sent during a call, then a final progress "
36507 "notification is always sent when C<position> = C<total> (I<unless> the call "
36508 "fails with an error)."
36509 msgstr ""
36510
36511 #. type: textblock
36512 #: ../src/guestfs.pod:1800
36513 msgid ""
36514 "This is to simplify caller code, so callers can easily set the progress "
36515 "indicator to \"100%\" at the end of the operation, without requiring special "
36516 "code to detect this case."
36517 msgstr ""
36518
36519 #. type: textblock
36520 #: ../src/guestfs.pod:1806
36521 msgid ""
36522 "For some calls we are unable to estimate the progress of the call, but we "
36523 "can still generate progress messages to indicate activity.  This is known as "
36524 "\"pulse mode\", and is directly supported by certain progress bar "
36525 "implementations (eg. GtkProgressBar)."
36526 msgstr ""
36527
36528 #. type: textblock
36529 #: ../src/guestfs.pod:1811
36530 msgid ""
36531 "For these calls, zero or more progress messages are generated with "
36532 "C<position = 0> and C<total = 1>, followed by a final message with "
36533 "C<position = total = 1>."
36534 msgstr ""
36535
36536 #. type: textblock
36537 #: ../src/guestfs.pod:1815
36538 msgid ""
36539 "As noted above, if the call fails with an error then the final message may "
36540 "not be generated."
36541 msgstr ""
36542
36543 #. type: textblock
36544 #: ../src/guestfs.pod:1820
36545 msgid ""
36546 "The callback also receives the procedure number (C<proc_nr>) and serial "
36547 "number (C<serial>) of the call.  These are only useful for debugging "
36548 "protocol issues, and the callback can normally ignore them.  The callback "
36549 "may want to print these numbers in error messages or debugging messages."
36550 msgstr ""
36551
36552 #. type: textblock
36553 #: ../src/guestfs.pod:1826
36554 msgid "If no callback is registered: progress messages are discarded."
36555 msgstr ""
36556
36557 #. type: =item
36558 #: ../src/guestfs.pod:1828
36559 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36560 msgstr ""
36561
36562 #. type: textblock
36563 #: ../src/guestfs.pod:1831
36564 msgid ""
36565 "The callback function is called whenever a log message is generated by qemu, "
36566 "the appliance kernel, guestfsd (daemon), or utility programs."
36567 msgstr ""
36568
36569 #. type: textblock
36570 #: ../src/guestfs.pod:1834
36571 msgid ""
36572 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36573 "guestfs_launch>) then additional debug messages are generated."
36574 msgstr ""
36575
36576 #. type: textblock
36577 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
36578 msgid ""
36579 "If no callback is registered: the messages are discarded unless the verbose "
36580 "flag is set in which case they are sent to stderr.  You can override the "
36581 "printing of verbose messages to stderr by setting up a callback."
36582 msgstr ""
36583
36584 #. type: =item
36585 #: ../src/guestfs.pod:1842
36586 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36587 msgstr ""
36588
36589 #. type: textblock
36590 #: ../src/guestfs.pod:1845
36591 msgid ""
36592 "The callback function is called whenever a log message is generated by the "
36593 "library part of libguestfs."
36594 msgstr ""
36595
36596 #. type: textblock
36597 #: ../src/guestfs.pod:1848
36598 msgid ""
36599 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36600 "messages are generated."
36601 msgstr ""
36602
36603 #. type: =item
36604 #: ../src/guestfs.pod:1856
36605 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36606 msgstr ""
36607
36608 #. type: textblock
36609 #: ../src/guestfs.pod:1859
36610 msgid ""
36611 "The callback function is called whenever a trace message is generated.  This "
36612 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36613 msgstr ""
36614
36615 #. type: textblock
36616 #: ../src/guestfs.pod:1862
36617 msgid ""
36618 "If no callback is registered: the messages are sent to stderr.  You can "
36619 "override the printing of trace messages to stderr by setting up a callback."
36620 msgstr ""
36621
36622 #. type: =item
36623 #: ../src/guestfs.pod:1866
36624 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36625 msgstr ""
36626
36627 #. type: textblock
36628 #: ../src/guestfs.pod:1869
36629 msgid ""
36630 "The callback function is called whenever a libguestfs function is entered."
36631 msgstr ""
36632
36633 #. type: textblock
36634 #: ../src/guestfs.pod:1872
36635 msgid ""
36636 "The payload is a string which contains the name of the function that we are "
36637 "entering (not including C<guestfs_> prefix)."
36638 msgstr ""
36639
36640 #. type: textblock
36641 #: ../src/guestfs.pod:1875
36642 msgid ""
36643 "Note that libguestfs functions can call themselves, so you may see many "
36644 "events from a single call.  A few libguestfs functions do not generate this "
36645 "event."
36646 msgstr ""
36647
36648 #. type: =head3
36649 #: ../src/guestfs.pod:1883
36650 msgid "guestfs_set_event_callback"
36651 msgstr ""
36652
36653 #. type: verbatim
36654 #: ../src/guestfs.pod:1885
36655 #, no-wrap
36656 msgid ""
36657 " int guestfs_set_event_callback (guestfs_h *g,\n"
36658 "                                 guestfs_event_callback cb,\n"
36659 "                                 uint64_t event_bitmask,\n"
36660 "                                 int flags,\n"
36661 "                                 void *opaque);\n"
36662 "\n"
36663 msgstr ""
36664
36665 #. type: textblock
36666 #: ../src/guestfs.pod:1891
36667 msgid ""
36668 "This function registers a callback (C<cb>) for all event classes in the "
36669 "C<event_bitmask>."
36670 msgstr ""
36671
36672 #. type: textblock
36673 #: ../src/guestfs.pod:1894
36674 msgid ""
36675 "For example, to register for all log message events, you could call this "
36676 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
36677 "To register a single callback for all possible classes of events, use "
36678 "C<GUESTFS_EVENT_ALL>."
36679 msgstr ""
36680
36681 #. type: textblock
36682 #: ../src/guestfs.pod:1900
36683 msgid "C<flags> should always be passed as 0."
36684 msgstr ""
36685
36686 #. type: textblock
36687 #: ../src/guestfs.pod:1902
36688 msgid ""
36689 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
36690 "it for any purpose."
36691 msgstr ""
36692
36693 #. type: textblock
36694 #: ../src/guestfs.pod:1905
36695 msgid ""
36696 "The return value is the event handle (an integer) which you can use to "
36697 "delete the callback (see below)."
36698 msgstr ""
36699
36700 #. type: textblock
36701 #: ../src/guestfs.pod:1908
36702 msgid ""
36703 "If there is an error, this function returns C<-1>, and sets the error in the "
36704 "handle in the usual way (see L</guestfs_last_error> etc.)"
36705 msgstr ""
36706
36707 #. type: textblock
36708 #: ../src/guestfs.pod:1911
36709 msgid ""
36710 "Callbacks remain in effect until they are deleted, or until the handle is "
36711 "closed."
36712 msgstr ""
36713
36714 #. type: textblock
36715 #: ../src/guestfs.pod:1914
36716 msgid ""
36717 "In the case where multiple callbacks are registered for a particular event "
36718 "class, all of the callbacks are called.  The order in which multiple "
36719 "callbacks are called is not defined."
36720 msgstr ""
36721
36722 #. type: =head3
36723 #: ../src/guestfs.pod:1918
36724 msgid "guestfs_delete_event_callback"
36725 msgstr ""
36726
36727 #. type: verbatim
36728 #: ../src/guestfs.pod:1920
36729 #, no-wrap
36730 msgid ""
36731 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36732 "\n"
36733 msgstr ""
36734
36735 #. type: textblock
36736 #: ../src/guestfs.pod:1922
36737 msgid ""
36738 "Delete a callback that was previously registered.  C<event_handle> should be "
36739 "the integer that was returned by a previous call to "
36740 "C<guestfs_set_event_callback> on the same handle."
36741 msgstr ""
36742
36743 #. type: =head3
36744 #: ../src/guestfs.pod:1926
36745 msgid "guestfs_event_callback"
36746 msgstr ""
36747
36748 #. type: verbatim
36749 #: ../src/guestfs.pod:1928
36750 #, no-wrap
36751 msgid ""
36752 " typedef void (*guestfs_event_callback) (\n"
36753 "                  guestfs_h *g,\n"
36754 "                  void *opaque,\n"
36755 "                  uint64_t event,\n"
36756 "                  int event_handle,\n"
36757 "                  int flags,\n"
36758 "                  const char *buf, size_t buf_len,\n"
36759 "                  const uint64_t *array, size_t array_len);\n"
36760 "\n"
36761 msgstr ""
36762
36763 #. type: textblock
36764 #: ../src/guestfs.pod:1937
36765 msgid ""
36766 "This is the type of the event callback function that you have to provide."
36767 msgstr ""
36768
36769 #. type: textblock
36770 #: ../src/guestfs.pod:1940
36771 msgid ""
36772 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36773 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36774 "handle, and C<flags> which in the current API you should ignore."
36775 msgstr ""
36776
36777 #. type: textblock
36778 #: ../src/guestfs.pod:1944
36779 msgid ""
36780 "The remaining parameters contain the event payload (if any).  Each event may "
36781 "contain a payload, which usually relates to the event class, but for future "
36782 "proofing your code should be written to handle any payload for any event "
36783 "class."
36784 msgstr ""
36785
36786 #. type: textblock
36787 #: ../src/guestfs.pod:1949
36788 msgid ""
36789 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36790 "there is no message buffer).  Note that this message buffer can contain "
36791 "arbitrary 8 bit data, including NUL bytes."
36792 msgstr ""
36793
36794 #. type: textblock
36795 #: ../src/guestfs.pod:1953
36796 msgid ""
36797 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36798 "moment this is only used for progress messages."
36799 msgstr ""
36800
36801 #. type: =head3
36802 #: ../src/guestfs.pod:1956
36803 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36804 msgstr ""
36805
36806 #. type: textblock
36807 #: ../src/guestfs.pod:1958
36808 msgid ""
36809 "One motivation for the generic event API was to allow GUI programs to "
36810 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36811 "unconditionally to C<stderr>."
36812 msgstr ""
36813
36814 #. type: textblock
36815 #: ../src/guestfs.pod:1962
36816 msgid ""
36817 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36818 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36819 "messages are not events; you must capture error messages separately)."
36820 msgstr ""
36821
36822 #. type: textblock
36823 #: ../src/guestfs.pod:1967
36824 msgid ""
36825 "Programs have to set up a callback to capture the classes of events of "
36826 "interest:"
36827 msgstr ""
36828
36829 #. type: verbatim
36830 #: ../src/guestfs.pod:1970
36831 #, no-wrap
36832 msgid ""
36833 " int eh =\n"
36834 "   guestfs_set_event_callback\n"
36835 "     (g, message_callback,\n"
36836 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36837 "      GUESTFS_EVENT_TRACE,\n"
36838 "      0, NULL) == -1)\n"
36839 " if (eh == -1) {\n"
36840 "   // handle error in the usual way\n"
36841 " }\n"
36842 "\n"
36843 msgstr ""
36844
36845 #. type: textblock
36846 #: ../src/guestfs.pod:1980
36847 msgid ""
36848 "The callback can then direct messages to the appropriate place.  In this "
36849 "example, messages are directed to syslog:"
36850 msgstr ""
36851
36852 #. type: verbatim
36853 #: ../src/guestfs.pod:1983
36854 #, no-wrap
36855 msgid ""
36856 " static void\n"
36857 " message_callback (\n"
36858 "         guestfs_h *g,\n"
36859 "         void *opaque,\n"
36860 "         uint64_t event,\n"
36861 "         int event_handle,\n"
36862 "         int flags,\n"
36863 "         const char *buf, size_t buf_len,\n"
36864 "         const uint64_t *array, size_t array_len)\n"
36865 " {\n"
36866 "   const int priority = LOG_USER|LOG_INFO;\n"
36867 "   if (buf_len > 0)\n"
36868 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36869 " }\n"
36870 "\n"
36871 msgstr ""
36872
36873 #. type: =head1
36874 #: ../src/guestfs.pod:1998
36875 msgid "CANCELLING LONG TRANSFERS"
36876 msgstr ""
36877
36878 #. type: textblock
36879 #: ../src/guestfs.pod:2000
36880 msgid ""
36881 "Some operations can be cancelled by the caller while they are in progress.  "
36882 "Currently only operations that involve uploading or downloading data can be "
36883 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36884 "parameters in the generator)."
36885 msgstr ""
36886
36887 #. type: =head2
36888 #: ../src/guestfs.pod:2005
36889 msgid "guestfs_user_cancel"
36890 msgstr ""
36891
36892 #. type: verbatim
36893 #: ../src/guestfs.pod:2007
36894 #, no-wrap
36895 msgid ""
36896 " void guestfs_user_cancel (guestfs_h *g);\n"
36897 "\n"
36898 msgstr ""
36899
36900 #. type: textblock
36901 #: ../src/guestfs.pod:2009
36902 msgid ""
36903 "C<guestfs_user_cancel> cancels the current upload or download operation."
36904 msgstr ""
36905
36906 #. type: textblock
36907 #: ../src/guestfs.pod:2012
36908 msgid ""
36909 "Unlike most other libguestfs calls, this function is signal safe and thread "
36910 "safe.  You can call it from a signal handler or from another thread, without "
36911 "needing to do any locking."
36912 msgstr ""
36913
36914 #. type: textblock
36915 #: ../src/guestfs.pod:2016
36916 msgid ""
36917 "The transfer that was in progress (if there is one) will stop shortly "
36918 "afterwards, and will return an error.  The errno (see L</"
36919 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36920 "out if the operation was cancelled or failed because of another error."
36921 msgstr ""
36922
36923 #. type: textblock
36924 #: ../src/guestfs.pod:2022
36925 msgid ""
36926 "No cleanup is performed: for example, if a file was being uploaded then "
36927 "after cancellation there may be a partially uploaded file.  It is the "
36928 "caller's responsibility to clean up if necessary."
36929 msgstr ""
36930
36931 #. type: textblock
36932 #: ../src/guestfs.pod:2026
36933 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36934 msgstr ""
36935
36936 #. type: textblock
36937 #: ../src/guestfs.pod:2028
36938 msgid ""
36939 "In an interactive text-based program, you might call it from a C<SIGINT> "
36940 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36941 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36942 "receive the C<^C> signal)."
36943 msgstr ""
36944
36945 #. type: textblock
36946 #: ../src/guestfs.pod:2033
36947 msgid ""
36948 "In a graphical program, when the main thread is displaying a progress bar "
36949 "with a cancel button, wire up the cancel button to call this function."
36950 msgstr ""
36951
36952 #. type: =head1
36953 #: ../src/guestfs.pod:2037
36954 msgid "PRIVATE DATA AREA"
36955 msgstr ""
36956
36957 #. type: textblock
36958 #: ../src/guestfs.pod:2039
36959 msgid ""
36960 "You can attach named pieces of private data to the libguestfs handle, fetch "
36961 "them by name, and walk over them, for the lifetime of the handle.  This is "
36962 "called the private data area and is only available from the C API."
36963 msgstr ""
36964
36965 #. type: textblock
36966 #: ../src/guestfs.pod:2044
36967 msgid "To attach a named piece of data, use the following call:"
36968 msgstr ""
36969
36970 #. type: verbatim
36971 #: ../src/guestfs.pod:2046
36972 #, no-wrap
36973 msgid ""
36974 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36975 "\n"
36976 msgstr ""
36977
36978 #. type: textblock
36979 #: ../src/guestfs.pod:2048
36980 msgid ""
36981 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36982 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36983 "overwritten."
36984 msgstr ""
36985
36986 #. type: textblock
36987 #: ../src/guestfs.pod:2052
36988 msgid ""
36989 "You can use any C<key> you want, but your key should I<not> start with an "
36990 "underscore character.  Keys beginning with an underscore character are "
36991 "reserved for internal libguestfs purposes (eg. for implementing language "
36992 "bindings).  It is recommended that you prefix the key with some unique "
36993 "string to avoid collisions with other users."
36994 msgstr ""
36995
36996 #. type: textblock
36997 #: ../src/guestfs.pod:2058
36998 msgid "To retrieve the pointer, use:"
36999 msgstr ""
37000
37001 #. type: verbatim
37002 #: ../src/guestfs.pod:2060
37003 #, no-wrap
37004 msgid ""
37005 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37006 "\n"
37007 msgstr ""
37008
37009 #. type: textblock
37010 #: ../src/guestfs.pod:2062
37011 msgid ""
37012 "This function returns C<NULL> if either no data is found associated with "
37013 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37014 "C<NULL>."
37015 msgstr ""
37016
37017 #. type: textblock
37018 #: ../src/guestfs.pod:2066
37019 msgid ""
37020 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37021 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
37022 "all.  In particular, libguestfs does I<not> try to free the data when the "
37023 "handle is closed.  If the data must be freed, then the caller must either "
37024 "free it before calling L</guestfs_close> or must set up a close callback to "
37025 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37026 msgstr ""
37027
37028 #. type: textblock
37029 #: ../src/guestfs.pod:2073
37030 msgid "To walk over all entries, use these two functions:"
37031 msgstr ""
37032
37033 #. type: verbatim
37034 #: ../src/guestfs.pod:2075
37035 #, no-wrap
37036 msgid ""
37037 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37038 "\n"
37039 msgstr ""
37040
37041 #. type: verbatim
37042 #: ../src/guestfs.pod:2077
37043 #, no-wrap
37044 msgid ""
37045 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37046 "\n"
37047 msgstr ""
37048
37049 #. type: textblock
37050 #: ../src/guestfs.pod:2079
37051 msgid ""
37052 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37053 "not have any particular meaning -- keys are not returned in any defined "
37054 "order).  A pointer to the key is returned in C<*key_rtn> and the "
37055 "corresponding data pointer is returned from the function.  C<NULL> is "
37056 "returned if there are no keys stored in the handle."
37057 msgstr ""
37058
37059 #. type: textblock
37060 #: ../src/guestfs.pod:2085
37061 msgid ""
37062 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
37063 "value of this function is also C<NULL> is there are no further entries to "
37064 "return."
37065 msgstr ""
37066
37067 #. type: textblock
37068 #: ../src/guestfs.pod:2089
37069 msgid "Notes about walking over entries:"
37070 msgstr ""
37071
37072 #. type: textblock
37073 #: ../src/guestfs.pod:2095
37074 msgid ""
37075 "You must not call C<guestfs_set_private> while walking over the entries."
37076 msgstr ""
37077
37078 #. type: textblock
37079 #: ../src/guestfs.pod:2100
37080 msgid ""
37081 "The handle maintains an internal iterator which is reset when you call "
37082 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
37083 "call C<guestfs_set_private>."
37084 msgstr ""
37085
37086 #. type: textblock
37087 #: ../src/guestfs.pod:2106
37088 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37089 msgstr ""
37090
37091 #. type: verbatim
37092 #: ../src/guestfs.pod:2108
37093 #, no-wrap
37094 msgid ""
37095 " guestfs_set_private (g, key, NULL);\n"
37096 "\n"
37097 msgstr ""
37098
37099 #. type: textblock
37100 #: ../src/guestfs.pod:2110
37101 msgid "then that C<key> is not returned when walking."
37102 msgstr ""
37103
37104 #. type: textblock
37105 #: ../src/guestfs.pod:2114
37106 msgid ""
37107 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37108 "C<guestfs_next_private> or C<guestfs_set_private>."
37109 msgstr ""
37110
37111 #. type: textblock
37112 #: ../src/guestfs.pod:2120
37113 msgid ""
37114 "The following example code shows how to print all keys and data pointers "
37115 "that are associated with the handle C<g>:"
37116 msgstr ""
37117
37118 #. type: verbatim
37119 #: ../src/guestfs.pod:2123
37120 #, no-wrap
37121 msgid ""
37122 " const char *key;\n"
37123 " void *data = guestfs_first_private (g, &key);\n"
37124 " while (data != NULL)\n"
37125 "   {\n"
37126 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
37127 "     data = guestfs_next_private (g, &key);\n"
37128 "   }\n"
37129 "\n"
37130 msgstr ""
37131
37132 #. type: textblock
37133 #: ../src/guestfs.pod:2131
37134 msgid ""
37135 "More commonly you are only interested in keys that begin with an application-"
37136 "specific prefix C<foo_>.  Modify the loop like so:"
37137 msgstr ""
37138
37139 #. type: verbatim
37140 #: ../src/guestfs.pod:2134
37141 #, no-wrap
37142 msgid ""
37143 " const char *key;\n"
37144 " void *data = guestfs_first_private (g, &key);\n"
37145 " while (data != NULL)\n"
37146 "   {\n"
37147 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37148 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
37149 "     data = guestfs_next_private (g, &key);\n"
37150 "   }\n"
37151 "\n"
37152 msgstr ""
37153
37154 #. type: textblock
37155 #: ../src/guestfs.pod:2143
37156 msgid ""
37157 "If you need to modify keys while walking, then you have to jump back to the "
37158 "beginning of the loop.  For example, to delete all keys prefixed with "
37159 "C<foo_>:"
37160 msgstr ""
37161
37162 #. type: verbatim
37163 #: ../src/guestfs.pod:2147
37164 #, no-wrap
37165 msgid ""
37166 "  const char *key;\n"
37167 "  void *data;\n"
37168 " again:\n"
37169 "  data = guestfs_first_private (g, &key);\n"
37170 "  while (data != NULL)\n"
37171 "    {\n"
37172 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37173 "        {\n"
37174 "          guestfs_set_private (g, key, NULL);\n"
37175 "          /* note that 'key' pointer is now invalid, and so is\n"
37176 "             the internal iterator */\n"
37177 "          goto again;\n"
37178 "        }\n"
37179 "      data = guestfs_next_private (g, &key);\n"
37180 "    }\n"
37181 "\n"
37182 msgstr ""
37183
37184 #. type: textblock
37185 #: ../src/guestfs.pod:2163
37186 msgid ""
37187 "Note that the above loop is guaranteed to terminate because the keys are "
37188 "being deleted, but other manipulations of keys within the loop might not "
37189 "terminate unless you also maintain an indication of which keys have been "
37190 "visited."
37191 msgstr ""
37192
37193 #. type: =head1
37194 #: ../src/guestfs.pod:2168
37195 msgid "SYSTEMTAP"
37196 msgstr ""
37197
37198 #. type: textblock
37199 #: ../src/guestfs.pod:2170
37200 msgid ""
37201 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
37202 "true of any library, not just libguestfs.  However libguestfs also contains "
37203 "static markers to help in probing internal operations."
37204 msgstr ""
37205
37206 #. type: textblock
37207 #: ../src/guestfs.pod:2174
37208 msgid "You can list all the static markers by doing:"
37209 msgstr ""
37210
37211 #. type: verbatim
37212 #: ../src/guestfs.pod:2176
37213 #, no-wrap
37214 msgid ""
37215 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
37216 "              .provider(\"guestfs\").mark(\"*\")'\n"
37217 "\n"
37218 msgstr ""
37219
37220 #. type: textblock
37221 #: ../src/guestfs.pod:2179
37222 msgid ""
37223 "B<Note:> These static markers are I<not> part of the stable API and may "
37224 "change in future versions."
37225 msgstr ""
37226
37227 #. type: =head2
37228 #: ../src/guestfs.pod:2182
37229 msgid "SYSTEMTAP SCRIPT EXAMPLE"
37230 msgstr ""
37231
37232 #. type: textblock
37233 #: ../src/guestfs.pod:2184
37234 msgid ""
37235 "This script contains examples of displaying both the static markers and some "
37236 "ordinary C entry points:"
37237 msgstr ""
37238
37239 #. type: verbatim
37240 #: ../src/guestfs.pod:2187
37241 #, no-wrap
37242 msgid ""
37243 " global last;\n"
37244 " \n"
37245 msgstr ""
37246
37247 #. type: verbatim
37248 #: ../src/guestfs.pod:2189
37249 #, no-wrap
37250 msgid ""
37251 " function display_time () {\n"
37252 "       now = gettimeofday_us ();\n"
37253 "       delta = 0;\n"
37254 "       if (last > 0)\n"
37255 "             delta = now - last;\n"
37256 "       last = now;\n"
37257 " \n"
37258 msgstr ""
37259
37260 #. type: verbatim
37261 #: ../src/guestfs.pod:2196
37262 #, no-wrap
37263 msgid ""
37264 "       printf (\"%d (+%d):\", now, delta);\n"
37265 " }\n"
37266 " \n"
37267 msgstr ""
37268
37269 #. type: verbatim
37270 #: ../src/guestfs.pod:2199
37271 #, no-wrap
37272 msgid ""
37273 " probe begin {\n"
37274 "       last = 0;\n"
37275 "       printf (\"ready\\n\");\n"
37276 " }\n"
37277 " \n"
37278 msgstr ""
37279
37280 #. type: verbatim
37281 #: ../src/guestfs.pod:2204
37282 #, no-wrap
37283 msgid ""
37284 " /* Display all calls to static markers. */\n"
37285 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
37286 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
37287 "       display_time();\n"
37288 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
37289 " }\n"
37290 " \n"
37291 msgstr ""
37292
37293 #. type: verbatim
37294 #: ../src/guestfs.pod:2211
37295 #, no-wrap
37296 msgid ""
37297 " /* Display all calls to guestfs_mkfs* functions. */\n"
37298 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
37299 "           .function(\"guestfs_mkfs*\") ? {\n"
37300 "       display_time();\n"
37301 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
37302 " }\n"
37303 "\n"
37304 msgstr ""
37305
37306 #. type: textblock
37307 #: ../src/guestfs.pod:2218
37308 msgid ""
37309 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
37310 "program.  Note that you either have to be root, or you have to add yourself "
37311 "to several special stap groups.  Consult the systemtap documentation for "
37312 "more information."
37313 msgstr ""
37314
37315 #. type: verbatim
37316 #: ../src/guestfs.pod:2223
37317 #, no-wrap
37318 msgid ""
37319 " # stap /tmp/test.stap\n"
37320 " ready\n"
37321 "\n"
37322 msgstr ""
37323
37324 #. type: textblock
37325 #: ../src/guestfs.pod:2226
37326 msgid "In another terminal, run a guestfish command such as this:"
37327 msgstr ""
37328
37329 #. type: textblock
37330 #: ../src/guestfs.pod:2230
37331 msgid "In the first terminal, stap trace output similar to this is shown:"
37332 msgstr ""
37333
37334 #. type: verbatim
37335 #: ../src/guestfs.pod:2232
37336 #, no-wrap
37337 msgid ""
37338 " 1318248056692655 (+0):\tlaunch_start\n"
37339 " 1318248056692850 (+195):       launch_build_appliance_start\n"
37340 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
37341 " 1318248056838059 (+19774):     launch_run_qemu\n"
37342 " 1318248061071167 (+4233108):   launch_end\n"
37343 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
37344 "\n"
37345 msgstr ""
37346
37347 #. type: =end
37348 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
37349 msgid "html"
37350 msgstr ""
37351
37352 #. type: textblock
37353 #: ../src/guestfs.pod:2241
37354 msgid ""
37355 "<!-- old anchor for the next section --> <a name="
37356 "\"state_machine_and_low_level_event_api\"/>"
37357 msgstr ""
37358
37359 #. type: =head1
37360 #: ../src/guestfs.pod:2246
37361 msgid "ARCHITECTURE"
37362 msgstr ""
37363
37364 #. type: textblock
37365 #: ../src/guestfs.pod:2248
37366 msgid ""
37367 "Internally, libguestfs is implemented by running an appliance (a special "
37368 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
37369 "process of the main program."
37370 msgstr ""
37371
37372 #. type: verbatim
37373 #: ../src/guestfs.pod:2252
37374 #, no-wrap
37375 msgid ""
37376 "  ___________________\n"
37377 " /                   \\\n"
37378 " | main program      |\n"
37379 " |                   |\n"
37380 " |                   |           child process / appliance\n"
37381 " |                   |           __________________________\n"
37382 " |                   |          / qemu                     \\\n"
37383 " +-------------------+   RPC    |      +-----------------+ |\n"
37384 " | libguestfs     <--------------------> guestfsd        | |\n"
37385 " |                   |          |      +-----------------+ |\n"
37386 " \\___________________/          |      | Linux kernel    | |\n"
37387 "                                |      +--^--------------+ |\n"
37388 "                                \\_________|________________/\n"
37389 "                                          |\n"
37390 "                                   _______v______\n"
37391 "                                  /              \\\n"
37392 "                                  | Device or    |\n"
37393 "                                  | disk image   |\n"
37394 "                                  \\______________/\n"
37395 "\n"
37396 msgstr ""
37397
37398 #. type: textblock
37399 #: ../src/guestfs.pod:2272
37400 msgid ""
37401 "The library, linked to the main program, creates the child process and hence "
37402 "the appliance in the L</guestfs_launch> function."
37403 msgstr ""
37404
37405 #. type: textblock
37406 #: ../src/guestfs.pod:2275
37407 msgid ""
37408 "Inside the appliance is a Linux kernel and a complete stack of userspace "
37409 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
37410 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
37411 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
37412 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
37413 "attached to the qemu process which translates device access by the "
37414 "appliance's Linux kernel into accesses to the image."
37415 msgstr ""
37416
37417 #. type: textblock
37418 #: ../src/guestfs.pod:2284
37419 msgid ""
37420 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
37421 "Although the disk image you are attached to might also be used by some "
37422 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
37423 "care if both libguestfs's qemu process and your virtual machine are trying "
37424 "to update the disk image at the same time, since these usually results in "
37425 "massive disk corruption)."
37426 msgstr ""
37427
37428 #. type: =head1
37429 #: ../src/guestfs.pod:2291
37430 msgid "STATE MACHINE"
37431 msgstr ""
37432
37433 #. type: textblock
37434 #: ../src/guestfs.pod:2293
37435 msgid "libguestfs uses a state machine to model the child process:"
37436 msgstr ""
37437
37438 #. type: verbatim
37439 #: ../src/guestfs.pod:2295
37440 #, no-wrap
37441 msgid ""
37442 "                         |\n"
37443 "                    guestfs_create\n"
37444 "                         |\n"
37445 "                         |\n"
37446 "                     ____V_____\n"
37447 "                    /          \\\n"
37448 "                    |  CONFIG  |\n"
37449 "                    \\__________/\n"
37450 "                     ^ ^   ^  \\\n"
37451 "                    /  |    \\  \\ guestfs_launch\n"
37452 "                   /   |    _\\__V______\n"
37453 "                  /    |   /           \\\n"
37454 "                 /     |   | LAUNCHING |\n"
37455 "                /      |   \\___________/\n"
37456 "               /       |       /\n"
37457 "              /        |  guestfs_launch\n"
37458 "             /         |     /\n"
37459 "    ______  /        __|____V\n"
37460 "   /      \\ ------> /        \\\n"
37461 "   | BUSY |         | READY  |\n"
37462 "   \\______/ <------ \\________/\n"
37463 "\n"
37464 msgstr ""
37465
37466 #. type: textblock
37467 #: ../src/guestfs.pod:2317
37468 msgid ""
37469 "The normal transitions are (1) CONFIG (when the handle is created, but there "
37470 "is no child process), (2) LAUNCHING (when the child process is booting up), "
37471 "(3) alternating between READY and BUSY as commands are issued to, and "
37472 "carried out by, the child process."
37473 msgstr ""
37474
37475 #. type: textblock
37476 #: ../src/guestfs.pod:2322
37477 msgid ""
37478 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
37479 "asynchronously at any time (eg. due to some internal error), and that causes "
37480 "the state to transition back to CONFIG."
37481 msgstr ""
37482
37483 #. type: textblock
37484 #: ../src/guestfs.pod:2326
37485 msgid ""
37486 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
37487 "issued when in the CONFIG state."
37488 msgstr ""
37489
37490 #. type: textblock
37491 #: ../src/guestfs.pod:2329
37492 msgid ""
37493 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
37494 "L</guestfs_launch> blocks until the child process is READY to accept "
37495 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
37496 "moves the state from CONFIG to LAUNCHING while it is running."
37497 msgstr ""
37498
37499 #. type: textblock
37500 #: ../src/guestfs.pod:2335
37501 msgid ""
37502 "API actions such as L</guestfs_mount> can only be issued when in the READY "
37503 "state.  These API calls block waiting for the command to be carried out (ie. "
37504 "the state to transition to BUSY and then back to READY).  There are no non-"
37505 "blocking versions, and no way to issue more than one command per handle at "
37506 "the same time."
37507 msgstr ""
37508
37509 #. type: textblock
37510 #: ../src/guestfs.pod:2341
37511 msgid ""
37512 "Finally, the child process sends asynchronous messages back to the main "
37513 "program, such as kernel log messages.  You can register a callback to "
37514 "receive these messages."
37515 msgstr ""
37516
37517 #. type: =head1
37518 #: ../src/guestfs.pod:2345
37519 msgid "INTERNALS"
37520 msgstr ""
37521
37522 #. type: =head2
37523 #: ../src/guestfs.pod:2347
37524 msgid "APPLIANCE BOOT PROCESS"
37525 msgstr ""
37526
37527 #. type: textblock
37528 #: ../src/guestfs.pod:2349
37529 msgid ""
37530 "This process has evolved and continues to evolve.  The description here "
37531 "corresponds only to the current version of libguestfs and is provided for "
37532 "information only."
37533 msgstr ""
37534
37535 #. type: textblock
37536 #: ../src/guestfs.pod:2353
37537 msgid ""
37538 "In order to follow the stages involved below, enable libguestfs debugging "
37539 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
37540 msgstr ""
37541
37542 #. type: =item
37543 #: ../src/guestfs.pod:2358
37544 msgid "Create the appliance"
37545 msgstr ""
37546
37547 #. type: textblock
37548 #: ../src/guestfs.pod:2360
37549 msgid ""
37550 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
37551 "initrd and the appliance."
37552 msgstr ""
37553
37554 #. type: textblock
37555 #: ../src/guestfs.pod:2363
37556 msgid ""
37557 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
37558 "directory if C<TMPDIR> is set)."
37559 msgstr ""
37560
37561 #. type: textblock
37562 #: ../src/guestfs.pod:2366
37563 msgid ""
37564 "For a complete description of how the appliance is created and cached, read "
37565 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
37566 msgstr ""
37567
37568 #. type: =item
37569 #: ../src/guestfs.pod:2370
37570 msgid "Start qemu and boot the kernel"
37571 msgstr ""
37572
37573 #. type: textblock
37574 #: ../src/guestfs.pod:2372
37575 msgid "qemu is invoked to boot the kernel."
37576 msgstr ""
37577
37578 #. type: =item
37579 #: ../src/guestfs.pod:2374
37580 msgid "Run the initrd"
37581 msgstr ""
37582
37583 #. type: textblock
37584 #: ../src/guestfs.pod:2376
37585 msgid ""
37586 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
37587 "appliance.  The purpose of the initrd is to load enough kernel modules in "
37588 "order that the appliance itself can be mounted and started."
37589 msgstr ""
37590
37591 #. type: textblock
37592 #: ../src/guestfs.pod:2380
37593 msgid ""
37594 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
37595 "initrd>."
37596 msgstr ""
37597
37598 #. type: textblock
37599 #: ../src/guestfs.pod:2383
37600 msgid ""
37601 "When the initrd has started you will see messages showing that kernel "
37602 "modules are being loaded, similar to this:"
37603 msgstr ""
37604
37605 #. type: verbatim
37606 #: ../src/guestfs.pod:2386
37607 #, no-wrap
37608 msgid ""
37609 " febootstrap: ext2 mini initrd starting up\n"
37610 " febootstrap: mounting /sys\n"
37611 " febootstrap: internal insmod libcrc32c.ko\n"
37612 " febootstrap: internal insmod crc32c-intel.ko\n"
37613 "\n"
37614 msgstr ""
37615
37616 #. type: =item
37617 #: ../src/guestfs.pod:2391
37618 msgid "Find and mount the appliance device"
37619 msgstr ""
37620
37621 #. type: textblock
37622 #: ../src/guestfs.pod:2393
37623 msgid ""
37624 "The appliance is a sparse file containing an ext2 filesystem which contains "
37625 "a familiar (although reduced in size) Linux operating system.  It would "
37626 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
37627 msgstr ""
37628
37629 #. type: textblock
37630 #: ../src/guestfs.pod:2397
37631 msgid ""
37632 "The regular disks being inspected by libguestfs are the first devices "
37633 "exposed by qemu (eg. as C</dev/vda>)."
37634 msgstr ""
37635
37636 #. type: textblock
37637 #: ../src/guestfs.pod:2400
37638 msgid ""
37639 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
37640 "there was only one regular disk)."
37641 msgstr ""
37642
37643 #. type: textblock
37644 #: ../src/guestfs.pod:2403
37645 msgid ""
37646 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
37647 "and switch root into the appliance, and run C</init> from the appliance."
37648 msgstr ""
37649
37650 #. type: textblock
37651 #: ../src/guestfs.pod:2407
37652 msgid "If this works successfully you will see messages such as:"
37653 msgstr ""
37654
37655 #. type: verbatim
37656 #: ../src/guestfs.pod:2409
37657 #, no-wrap
37658 msgid ""
37659 " febootstrap: picked /sys/block/vdb/dev as root device\n"
37660 " febootstrap: creating /dev/root as block special 252:16\n"
37661 " febootstrap: mounting new root on /root\n"
37662 " febootstrap: chroot\n"
37663 " Starting /init script ...\n"
37664 "\n"
37665 msgstr ""
37666
37667 #. type: textblock
37668 #: ../src/guestfs.pod:2415
37669 msgid ""
37670 "Note that C<Starting /init script ...> indicates that the appliance's init "
37671 "script is now running."
37672 msgstr ""
37673
37674 #. type: =item
37675 #: ../src/guestfs.pod:2418
37676 msgid "Initialize the appliance"
37677 msgstr ""
37678
37679 #. type: textblock
37680 #: ../src/guestfs.pod:2420
37681 msgid ""
37682 "The appliance itself now initializes itself.  This involves starting certain "
37683 "processes like C<udev>, possibly printing some debug information, and "
37684 "finally running the daemon (C<guestfsd>)."
37685 msgstr ""
37686
37687 #. type: =item
37688 #: ../src/guestfs.pod:2424
37689 msgid "The daemon"
37690 msgstr ""
37691
37692 #. type: textblock
37693 #: ../src/guestfs.pod:2426
37694 msgid ""
37695 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
37696 "should see:"
37697 msgstr ""
37698
37699 #. type: verbatim
37700 #: ../src/guestfs.pod:2429
37701 #, no-wrap
37702 msgid ""
37703 " verbose daemon enabled\n"
37704 "\n"
37705 msgstr ""
37706
37707 #. type: textblock
37708 #: ../src/guestfs.pod:2431
37709 msgid ""
37710 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37711 "connected on the other end to the library."
37712 msgstr ""
37713
37714 #. type: textblock
37715 #: ../src/guestfs.pod:2434
37716 msgid ""
37717 "The daemon connects to this port (and hence to the library) and sends a four "
37718 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37719 "protocol (see below)."
37720 msgstr ""
37721
37722 #. type: =head2
37723 #: ../src/guestfs.pod:2440
37724 msgid "COMMUNICATION PROTOCOL"
37725 msgstr ""
37726
37727 #. type: textblock
37728 #: ../src/guestfs.pod:2442
37729 msgid ""
37730 "Don't rely on using this protocol directly.  This section documents how it "
37731 "currently works, but it may change at any time."
37732 msgstr ""
37733
37734 #. type: textblock
37735 #: ../src/guestfs.pod:2445
37736 msgid ""
37737 "The protocol used to talk between the library and the daemon running inside "
37738 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37739 "1014, RFC 1832, RFC 4506)."
37740 msgstr ""
37741
37742 #. type: textblock
37743 #: ../src/guestfs.pod:2449
37744 msgid ""
37745 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37746 "this file is automatically generated)."
37747 msgstr ""
37748
37749 #. type: textblock
37750 #: ../src/guestfs.pod:2452
37751 msgid ""
37752 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37753 "and C<FileOut> parameters, which are handled with very simple request/reply "
37754 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
37755 "parameters, which use the same request and reply messages, but they may also "
37756 "be followed by files sent using a chunked encoding."
37757 msgstr ""
37758
37759 #. type: =head3
37760 #: ../src/guestfs.pod:2459
37761 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37762 msgstr ""
37763
37764 #. type: textblock
37765 #: ../src/guestfs.pod:2461
37766 msgid "For ordinary functions, the request message is:"
37767 msgstr ""
37768
37769 #. type: verbatim
37770 #: ../src/guestfs.pod:2463
37771 #, no-wrap
37772 msgid ""
37773 " total length (header + arguments,\n"
37774 "      but not including the length word itself)\n"
37775 " struct guestfs_message_header (encoded as XDR)\n"
37776 " struct guestfs_<foo>_args (encoded as XDR)\n"
37777 "\n"
37778 msgstr ""
37779
37780 #. type: textblock
37781 #: ../src/guestfs.pod:2468
37782 msgid ""
37783 "The total length field allows the daemon to allocate a fixed size buffer "
37784 "into which it slurps the rest of the message.  As a result, the total length "
37785 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37786 "effective size of any request is limited to somewhere under this size."
37787 msgstr ""
37788
37789 #. type: textblock
37790 #: ../src/guestfs.pod:2474
37791 msgid ""
37792 "Note also that many functions don't take any arguments, in which case the "
37793 "C<guestfs_I<foo>_args> is completely omitted."
37794 msgstr ""
37795
37796 #. type: textblock
37797 #: ../src/guestfs.pod:2477
37798 msgid ""
37799 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37800 "receiver knows what type of args structure to expect, or none at all."
37801 msgstr ""
37802
37803 #. type: textblock
37804 #: ../src/guestfs.pod:2481
37805 msgid ""
37806 "For functions that take optional arguments, the optional arguments are "
37807 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37808 "arguments.  A bitmask in the header indicates which optional arguments are "
37809 "meaningful.  The bitmask is also checked to see if it contains bits set "
37810 "which the daemon does not know about (eg. if more optional arguments were "
37811 "added in a later version of the library), and this causes the call to be "
37812 "rejected."
37813 msgstr ""
37814
37815 #. type: textblock
37816 #: ../src/guestfs.pod:2489
37817 msgid "The reply message for ordinary functions is:"
37818 msgstr ""
37819
37820 #. type: verbatim
37821 #: ../src/guestfs.pod:2491
37822 #, no-wrap
37823 msgid ""
37824 " total length (header + ret,\n"
37825 "      but not including the length word itself)\n"
37826 " struct guestfs_message_header (encoded as XDR)\n"
37827 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37828 "\n"
37829 msgstr ""
37830
37831 #. type: textblock
37832 #: ../src/guestfs.pod:2496
37833 msgid ""
37834 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
37835 "functions that return no formal return values."
37836 msgstr ""
37837
37838 #. type: textblock
37839 #: ../src/guestfs.pod:2499
37840 msgid ""
37841 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
37842 msgstr ""
37843
37844 #. type: textblock
37845 #: ../src/guestfs.pod:2502
37846 msgid ""
37847 "In the case of an error, a flag is set in the header, and the reply message "
37848 "is slightly changed:"
37849 msgstr ""
37850
37851 #. type: verbatim
37852 #: ../src/guestfs.pod:2505
37853 #, no-wrap
37854 msgid ""
37855 " total length (header + error,\n"
37856 "      but not including the length word itself)\n"
37857 " struct guestfs_message_header (encoded as XDR)\n"
37858 " struct guestfs_message_error (encoded as XDR)\n"
37859 "\n"
37860 msgstr ""
37861
37862 #. type: textblock
37863 #: ../src/guestfs.pod:2510
37864 msgid ""
37865 "The C<guestfs_message_error> structure contains the error message as a "
37866 "string."
37867 msgstr ""
37868
37869 #. type: =head3
37870 #: ../src/guestfs.pod:2513
37871 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37872 msgstr ""
37873
37874 #. type: textblock
37875 #: ../src/guestfs.pod:2515
37876 msgid ""
37877 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
37878 "The normal request message is sent (see above).  However this is followed by "
37879 "a sequence of file chunks."
37880 msgstr ""
37881
37882 #. type: verbatim
37883 #: ../src/guestfs.pod:2519
37884 #, no-wrap
37885 msgid ""
37886 " total length (header + arguments,\n"
37887 "      but not including the length word itself,\n"
37888 "      and not including the chunks)\n"
37889 " struct guestfs_message_header (encoded as XDR)\n"
37890 " struct guestfs_<foo>_args (encoded as XDR)\n"
37891 " sequence of chunks for FileIn param #0\n"
37892 " sequence of chunks for FileIn param #1 etc.\n"
37893 "\n"
37894 msgstr ""
37895
37896 #. type: textblock
37897 #: ../src/guestfs.pod:2527
37898 msgid "The \"sequence of chunks\" is:"
37899 msgstr ""
37900
37901 #. type: verbatim
37902 #: ../src/guestfs.pod:2529
37903 #, no-wrap
37904 msgid ""
37905 " length of chunk (not including length word itself)\n"
37906 " struct guestfs_chunk (encoded as XDR)\n"
37907 " length of chunk\n"
37908 " struct guestfs_chunk (encoded as XDR)\n"
37909 "   ...\n"
37910 " length of chunk\n"
37911 " struct guestfs_chunk (with data.data_len == 0)\n"
37912 "\n"
37913 msgstr ""
37914
37915 #. type: textblock
37916 #: ../src/guestfs.pod:2537
37917 msgid ""
37918 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
37919 "is set in the final chunk to indicate either successful completion or early "
37920 "cancellation."
37921 msgstr ""
37922
37923 #. type: textblock
37924 #: ../src/guestfs.pod:2541
37925 msgid ""
37926 "At time of writing there are no functions that have more than one FileIn "
37927 "parameter.  However this is (theoretically) supported, by sending the "
37928 "sequence of chunks for each FileIn parameter one after another (from left to "
37929 "right)."
37930 msgstr ""
37931
37932 #. type: textblock
37933 #: ../src/guestfs.pod:2546
37934 msgid ""
37935 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
37936 "transfer.  The library does this by sending a chunk with a special flag set "
37937 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
37938 "RPC, does I<not> send any reply, and goes back to reading the next request."
37939 msgstr ""
37940
37941 #. type: textblock
37942 #: ../src/guestfs.pod:2552
37943 msgid ""
37944 "The daemon may also cancel.  It does this by writing a special word "
37945 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
37946 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
37947 "cancel chunk).  The special word is chosen so that even if cancellation "
37948 "happens right at the end of the transfer (after the library has finished "
37949 "writing and has started listening for the reply), the \"spurious\" cancel "
37950 "flag will not be confused with the reply message."
37951 msgstr ""
37952
37953 #. type: textblock
37954 #: ../src/guestfs.pod:2561
37955 msgid ""
37956 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
37957 "limit), and also files where the size is not known in advance (eg. from "
37958 "pipes or sockets).  However the chunks are rather small "
37959 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
37960 "to keep much in memory."
37961 msgstr ""
37962
37963 #. type: =head3
37964 #: ../src/guestfs.pod:2567
37965 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
37966 msgstr ""
37967
37968 #. type: textblock
37969 #: ../src/guestfs.pod:2569
37970 msgid ""
37971 "The protocol for FileOut parameters is exactly the same as for FileIn "
37972 "parameters, but with the roles of daemon and library reversed."
37973 msgstr ""
37974
37975 #. type: verbatim
37976 #: ../src/guestfs.pod:2572
37977 #, no-wrap
37978 msgid ""
37979 " total length (header + ret,\n"
37980 "      but not including the length word itself,\n"
37981 "      and not including the chunks)\n"
37982 " struct guestfs_message_header (encoded as XDR)\n"
37983 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37984 " sequence of chunks for FileOut param #0\n"
37985 " sequence of chunks for FileOut param #1 etc.\n"
37986 "\n"
37987 msgstr ""
37988
37989 #. type: =head3
37990 #: ../src/guestfs.pod:2580
37991 msgid "INITIAL MESSAGE"
37992 msgstr ""
37993
37994 #. type: textblock
37995 #: ../src/guestfs.pod:2582
37996 msgid ""
37997 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37998 "which indicates that the guest and daemon is alive.  This is what L</"
37999 "guestfs_launch> waits for."
38000 msgstr ""
38001
38002 #. type: =head3
38003 #: ../src/guestfs.pod:2586
38004 msgid "PROGRESS NOTIFICATION MESSAGES"
38005 msgstr ""
38006
38007 #. type: textblock
38008 #: ../src/guestfs.pod:2588
38009 msgid ""
38010 "The daemon may send progress notification messages at any time.  These are "
38011 "distinguished by the normal length word being replaced by "
38012 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38013 msgstr ""
38014
38015 #. type: textblock
38016 #: ../src/guestfs.pod:2592
38017 msgid ""
38018 "The library turns them into progress callbacks (see L</"
38019 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
38020 "if not."
38021 msgstr ""
38022
38023 #. type: textblock
38024 #: ../src/guestfs.pod:2596
38025 msgid ""
38026 "The daemon self-limits the frequency of progress messages it sends (see "
38027 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
38028 "messages."
38029 msgstr ""
38030
38031 #. type: =head1
38032 #: ../src/guestfs.pod:2600
38033 msgid "LIBGUESTFS VERSION NUMBERS"
38034 msgstr ""
38035
38036 #. type: textblock
38037 #: ../src/guestfs.pod:2602
38038 msgid ""
38039 "Since April 2010, libguestfs has started to make separate development and "
38040 "stable releases, along with corresponding branches in our git repository.  "
38041 "These separate releases can be identified by version number:"
38042 msgstr ""
38043
38044 #. type: verbatim
38045 #: ../src/guestfs.pod:2607
38046 #, no-wrap
38047 msgid ""
38048 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
38049 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38050 "       |\n"
38051 "       v\n"
38052 " 1  .  3  .  5\n"
38053 " ^           ^\n"
38054 " |           |\n"
38055 " |           `-------- sub-version\n"
38056 " |\n"
38057 " `------ always '1' because we don't change the ABI\n"
38058 "\n"
38059 msgstr ""
38060
38061 #. type: textblock
38062 #: ../src/guestfs.pod:2618
38063 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38064 msgstr ""
38065
38066 #. type: textblock
38067 #: ../src/guestfs.pod:2620
38068 msgid ""
38069 "As time passes we cherry pick fixes from the development branch and backport "
38070 "those into the stable branch, the effect being that the stable branch should "
38071 "get more stable and less buggy over time.  So the stable releases are ideal "
38072 "for people who don't need new features but would just like the software to "
38073 "work."
38074 msgstr ""
38075
38076 #. type: textblock
38077 #: ../src/guestfs.pod:2626
38078 msgid "Our criteria for backporting changes are:"
38079 msgstr ""
38080
38081 #. type: textblock
38082 #: ../src/guestfs.pod:2632
38083 msgid ""
38084 "Documentation changes which don't affect any code are backported unless the "
38085 "documentation refers to a future feature which is not in stable."
38086 msgstr ""
38087
38088 #. type: textblock
38089 #: ../src/guestfs.pod:2638
38090 msgid ""
38091 "Bug fixes which are not controversial, fix obvious problems, and have been "
38092 "well tested are backported."
38093 msgstr ""
38094
38095 #. type: textblock
38096 #: ../src/guestfs.pod:2643
38097 msgid ""
38098 "Simple rearrangements of code which shouldn't affect how it works get "
38099 "backported.  This is so that the code in the two branches doesn't get too "
38100 "far out of step, allowing us to backport future fixes more easily."
38101 msgstr ""
38102
38103 #. type: textblock
38104 #: ../src/guestfs.pod:2649
38105 msgid ""
38106 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38107 "exceptional case: the new feature is required in order to implement an "
38108 "important bug fix."
38109 msgstr ""
38110
38111 #. type: textblock
38112 #: ../src/guestfs.pod:2655
38113 msgid ""
38114 "A new stable branch starts when we think the new features in development are "
38115 "substantial and compelling enough over the current stable branch to warrant "
38116 "it.  When that happens we create new stable and development versions 1.N.0 "
38117 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
38118 "stable at this point, but by backporting fixes from development, that branch "
38119 "will stabilize over time."
38120 msgstr ""
38121
38122 #. type: =head1
38123 #: ../src/guestfs.pod:2663
38124 msgid "EXTENDING LIBGUESTFS"
38125 msgstr ""
38126
38127 #. type: =head2
38128 #: ../src/guestfs.pod:2665
38129 msgid "ADDING A NEW API ACTION"
38130 msgstr ""
38131
38132 #. type: textblock
38133 #: ../src/guestfs.pod:2667
38134 msgid ""
38135 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
38136 "documentation) are generated, and this makes it easy to extend the "
38137 "libguestfs API."
38138 msgstr ""
38139
38140 #. type: textblock
38141 #: ../src/guestfs.pod:2671
38142 msgid "To add a new API action there are two changes:"
38143 msgstr ""
38144
38145 #. type: textblock
38146 #: ../src/guestfs.pod:2677
38147 msgid ""
38148 "You need to add a description of the call (name, parameters, return type, "
38149 "tests, documentation) to C<generator/generator_actions.ml>."
38150 msgstr ""
38151
38152 #. type: textblock
38153 #: ../src/guestfs.pod:2680
38154 msgid ""
38155 "There are two sorts of API action, depending on whether the call goes "
38156 "through to the daemon in the appliance, or is serviced entirely by the "
38157 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
38158 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
38159 "an example of the latter, since a trace flag is maintained in the handle and "
38160 "all tracing is done on the library side."
38161 msgstr ""
38162
38163 #. type: textblock
38164 #: ../src/guestfs.pod:2688
38165 msgid ""
38166 "Most new actions are of the first type, and get added to the "
38167 "C<daemon_functions> list.  Each function has a unique procedure number used "
38168 "in the RPC protocol which is assigned to that action when we publish "
38169 "libguestfs and cannot be reused.  Take the latest procedure number and "
38170 "increment it."
38171 msgstr ""
38172
38173 #. type: textblock
38174 #: ../src/guestfs.pod:2694
38175 msgid ""
38176 "For library-only actions of the second type, add to the "
38177 "C<non_daemon_functions> list.  Since these functions are serviced by the "
38178 "library and do not travel over the RPC mechanism to the daemon, these "
38179 "functions do not need a procedure number, and so the procedure number is set "
38180 "to C<-1>."
38181 msgstr ""
38182
38183 #. type: textblock
38184 #: ../src/guestfs.pod:2702
38185 msgid "Implement the action (in C):"
38186 msgstr ""
38187
38188 #. type: textblock
38189 #: ../src/guestfs.pod:2704
38190 msgid ""
38191 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
38192 "C<daemon/> directory."
38193 msgstr ""
38194
38195 #. type: textblock
38196 #: ../src/guestfs.pod:2707
38197 msgid ""
38198 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
38199 "(note: double underscore) in the C<src/> directory."
38200 msgstr ""
38201
38202 #. type: textblock
38203 #: ../src/guestfs.pod:2710
38204 msgid "In either case, use another function as an example of what to do."
38205 msgstr ""
38206
38207 #. type: textblock
38208 #: ../src/guestfs.pod:2714
38209 msgid "After making these changes, use C<make> to compile."
38210 msgstr ""
38211
38212 #. type: textblock
38213 #: ../src/guestfs.pod:2716
38214 msgid ""
38215 "Note that you don't need to implement the RPC, language bindings, manual "
38216 "pages or anything else.  It's all automatically generated from the OCaml "
38217 "description."
38218 msgstr ""
38219
38220 #. type: =head2
38221 #: ../src/guestfs.pod:2720
38222 msgid "ADDING TESTS FOR AN API ACTION"
38223 msgstr ""
38224
38225 #. type: textblock
38226 #: ../src/guestfs.pod:2722
38227 msgid ""
38228 "You can supply zero or as many tests as you want per API call.  The tests "
38229 "can either be added as part of the API description (C<generator/"
38230 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
38231 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
38232 "slower, so if possible use the first method."
38233 msgstr ""
38234
38235 #. type: textblock
38236 #: ../src/guestfs.pod:2728
38237 msgid ""
38238 "The following describes the test environment used when you add an API test "
38239 "in C<generator_actions.ml>."
38240 msgstr ""
38241
38242 #. type: textblock
38243 #: ../src/guestfs.pod:2731
38244 msgid "The test environment has 4 block devices:"
38245 msgstr ""
38246
38247 #. type: =item
38248 #: ../src/guestfs.pod:2735
38249 msgid "C</dev/sda> 500MB"
38250 msgstr ""
38251
38252 #. type: textblock
38253 #: ../src/guestfs.pod:2737
38254 msgid "General block device for testing."
38255 msgstr ""
38256
38257 #. type: =item
38258 #: ../src/guestfs.pod:2739
38259 msgid "C</dev/sdb> 50MB"
38260 msgstr ""
38261
38262 #. type: textblock
38263 #: ../src/guestfs.pod:2741
38264 msgid ""
38265 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
38266 "operations."
38267 msgstr ""
38268
38269 #. type: =item
38270 #: ../src/guestfs.pod:2744
38271 msgid "C</dev/sdc> 10MB"
38272 msgstr ""
38273
38274 #. type: textblock
38275 #: ../src/guestfs.pod:2746
38276 msgid "Used in a few tests where two block devices are needed."
38277 msgstr ""
38278
38279 #. type: =item
38280 #: ../src/guestfs.pod:2748
38281 msgid "C</dev/sdd>"
38282 msgstr ""
38283
38284 #. type: textblock
38285 #: ../src/guestfs.pod:2750
38286 msgid "ISO with fixed content (see C<images/test.iso>)."
38287 msgstr ""
38288
38289 #. type: textblock
38290 #: ../src/guestfs.pod:2754
38291 msgid ""
38292 "To be able to run the tests in a reasonable amount of time, the libguestfs "
38293 "appliance and block devices are reused between tests.  So don't try testing "
38294 "L</guestfs_kill_subprocess> :-x"
38295 msgstr ""
38296
38297 #. type: textblock
38298 #: ../src/guestfs.pod:2758
38299 msgid ""
38300 "Each test starts with an initial scenario, selected using one of the "
38301 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
38302 "initialize the disks mentioned above in a particular way as documented in "
38303 "C<generator_types.ml>.  You should not assume anything about the previous "
38304 "contents of other disks that are not initialized."
38305 msgstr ""
38306
38307 #. type: textblock
38308 #: ../src/guestfs.pod:2764
38309 msgid ""
38310 "You can add a prerequisite clause to any individual test.  This is a run-"
38311 "time check, which, if it fails, causes the test to be skipped.  Useful if "
38312 "testing a command which might not work on all variations of libguestfs "
38313 "builds.  A test that has prerequisite of C<Always> means to run "
38314 "unconditionally."
38315 msgstr ""
38316
38317 #. type: textblock
38318 #: ../src/guestfs.pod:2770
38319 msgid ""
38320 "In addition, packagers can skip individual tests by setting environment "
38321 "variables before running C<make check>."
38322 msgstr ""
38323
38324 #. type: verbatim
38325 #: ../src/guestfs.pod:2773
38326 #, no-wrap
38327 msgid ""
38328 " SKIP_TEST_<CMD>_<NUM>=1\n"
38329 "\n"
38330 msgstr ""
38331
38332 #. type: textblock
38333 #: ../src/guestfs.pod:2775
38334 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
38335 msgstr ""
38336
38337 #. type: textblock
38338 #: ../src/guestfs.pod:2777
38339 msgid "or:"
38340 msgstr ""
38341
38342 #. type: verbatim
38343 #: ../src/guestfs.pod:2779
38344 #, no-wrap
38345 msgid ""
38346 " SKIP_TEST_<CMD>=1\n"
38347 "\n"
38348 msgstr ""
38349
38350 #. type: textblock
38351 #: ../src/guestfs.pod:2781
38352 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
38353 msgstr ""
38354
38355 #. type: textblock
38356 #: ../src/guestfs.pod:2783
38357 msgid "Packagers can run only certain tests by setting for example:"
38358 msgstr ""
38359
38360 #. type: verbatim
38361 #: ../src/guestfs.pod:2785
38362 #, no-wrap
38363 msgid ""
38364 " TEST_ONLY=\"vfs_type zerofree\"\n"
38365 "\n"
38366 msgstr ""
38367
38368 #. type: textblock
38369 #: ../src/guestfs.pod:2787
38370 msgid ""
38371 "See C<capitests/tests.c> for more details of how these environment variables "
38372 "work."
38373 msgstr ""
38374
38375 #. type: =head2
38376 #: ../src/guestfs.pod:2790
38377 msgid "DEBUGGING NEW API ACTIONS"
38378 msgstr ""
38379
38380 #. type: textblock
38381 #: ../src/guestfs.pod:2792
38382 msgid "Test new actions work before submitting them."
38383 msgstr ""
38384
38385 #. type: textblock
38386 #: ../src/guestfs.pod:2794
38387 msgid "You can use guestfish to try out new commands."
38388 msgstr ""
38389
38390 #. type: textblock
38391 #: ../src/guestfs.pod:2796
38392 msgid ""
38393 "Debugging the daemon is a problem because it runs inside a minimal "
38394 "environment.  However you can fprintf messages in the daemon to stderr, and "
38395 "they will show up if you use C<guestfish -v>."
38396 msgstr ""
38397
38398 #. type: =head2
38399 #: ../src/guestfs.pod:2800
38400 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
38401 msgstr ""
38402
38403 #. type: textblock
38404 #: ../src/guestfs.pod:2802
38405 msgid ""
38406 "Our C source code generally adheres to some basic code-formatting "
38407 "conventions.  The existing code base is not totally consistent on this "
38408 "front, but we do prefer that contributed code be formatted similarly.  In "
38409 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
38410 "indentation level, and other than that, follow the K&R style."
38411 msgstr ""
38412
38413 #. type: textblock
38414 #: ../src/guestfs.pod:2808
38415 msgid ""
38416 "If you use Emacs, add the following to one of one of your start-up files (e."
38417 "g., ~/.emacs), to help ensure that you get indentation right:"
38418 msgstr ""
38419
38420 #. type: verbatim
38421 #: ../src/guestfs.pod:2811
38422 #, no-wrap
38423 msgid ""
38424 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
38425 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
38426 " (add-hook 'find-file-hook\n"
38427 "     '(lambda () (if (and buffer-file-name\n"
38428 "                          (string-match \"/libguestfs\\\\>\"\n"
38429 "                              (buffer-file-name))\n"
38430 "                          (not (string-equal mode-name \"Change Log\"))\n"
38431 "                          (not (string-equal mode-name \"Makefile\")))\n"
38432 "                     (setq indent-tabs-mode nil))))\n"
38433 " \n"
38434 msgstr ""
38435
38436 #. type: verbatim
38437 #: ../src/guestfs.pod:2821
38438 #, no-wrap
38439 msgid ""
38440 " ;;; When editing C sources in libguestfs, use this style.\n"
38441 " (defun libguestfs-c-mode ()\n"
38442 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
38443 "   (interactive)\n"
38444 "   (c-set-style \"K&R\")\n"
38445 "   (setq c-indent-level 2)\n"
38446 "   (setq c-basic-offset 2))\n"
38447 " (add-hook 'c-mode-hook\n"
38448 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
38449 "                               (buffer-file-name))\n"
38450 "                           (libguestfs-c-mode))))\n"
38451 "\n"
38452 msgstr ""
38453
38454 #. type: textblock
38455 #: ../src/guestfs.pod:2833
38456 msgid "Enable warnings when compiling (and fix any problems this finds):"
38457 msgstr ""
38458
38459 #. type: verbatim
38460 #: ../src/guestfs.pod:2836
38461 #, no-wrap
38462 msgid ""
38463 " ./configure --enable-gcc-warnings\n"
38464 "\n"
38465 msgstr ""
38466
38467 #. type: textblock
38468 #: ../src/guestfs.pod:2838
38469 msgid "Useful targets are:"
38470 msgstr ""
38471
38472 #. type: verbatim
38473 #: ../src/guestfs.pod:2840
38474 #, no-wrap
38475 msgid ""
38476 " make syntax-check  # checks the syntax of the C code\n"
38477 " make check         # runs the test suite\n"
38478 "\n"
38479 msgstr ""
38480
38481 #. type: =head2
38482 #: ../src/guestfs.pod:2843
38483 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
38484 msgstr ""
38485
38486 #. type: textblock
38487 #: ../src/guestfs.pod:2845
38488 msgid ""
38489 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
38490 "which are used to do shell quoting."
38491 msgstr ""
38492
38493 #. type: =item
38494 #: ../src/guestfs.pod:2850
38495 msgid "%Q"
38496 msgstr ""
38497
38498 #. type: textblock
38499 #: ../src/guestfs.pod:2852
38500 msgid ""
38501 "Simple shell quoted string.  Any spaces or other shell characters are "
38502 "escaped for you."
38503 msgstr ""
38504
38505 #. type: =item
38506 #: ../src/guestfs.pod:2855
38507 msgid "%R"
38508 msgstr ""
38509
38510 #. type: textblock
38511 #: ../src/guestfs.pod:2857
38512 msgid ""
38513 "Same as C<%Q> except the string is treated as a path which is prefixed by "
38514 "the sysroot."
38515 msgstr ""
38516
38517 #. type: verbatim
38518 #: ../src/guestfs.pod:2864
38519 #, no-wrap
38520 msgid ""
38521 " asprintf (&cmd, \"cat %R\", path);\n"
38522 "\n"
38523 msgstr ""
38524
38525 #. type: textblock
38526 #: ../src/guestfs.pod:2866
38527 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
38528 msgstr ""
38529
38530 #. type: textblock
38531 #: ../src/guestfs.pod:2868
38532 msgid ""
38533 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
38534 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
38535 "they are not passed via the shell (instead, straight to exec).  You probably "
38536 "want to use the C<sysroot_path()> function however."
38537 msgstr ""
38538
38539 #. type: =head2
38540 #: ../src/guestfs.pod:2874
38541 msgid "SUBMITTING YOUR NEW API ACTIONS"
38542 msgstr ""
38543
38544 #. type: textblock
38545 #: ../src/guestfs.pod:2876
38546 msgid ""
38547 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
38548 "libguestfs> and CC to L<rjones@redhat.com>."
38549 msgstr ""
38550
38551 #. type: =head2
38552 #: ../src/guestfs.pod:2880
38553 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
38554 msgstr ""
38555
38556 #. type: textblock
38557 #: ../src/guestfs.pod:2882
38558 msgid "We support i18n (gettext anyhow) in the library."
38559 msgstr ""
38560
38561 #. type: textblock
38562 #: ../src/guestfs.pod:2884
38563 msgid ""
38564 "However many messages come from the daemon, and we don't translate those at "
38565 "the moment.  One reason is that the appliance generally has all locale files "
38566 "removed from it, because they take up a lot of space.  So we'd have to readd "
38567 "some of those, as well as copying our PO files into the appliance."
38568 msgstr ""
38569
38570 #. type: textblock
38571 #: ../src/guestfs.pod:2890
38572 msgid ""
38573 "Debugging messages are never translated, since they are intended for the "
38574 "programmers."
38575 msgstr ""
38576
38577 #. type: =head2
38578 #: ../src/guestfs.pod:2893
38579 msgid "SOURCE CODE SUBDIRECTORIES"
38580 msgstr ""
38581
38582 #. type: =item
38583 #: ../src/guestfs.pod:2897
38584 msgid "C<align>"
38585 msgstr ""
38586
38587 #. type: textblock
38588 #: ../src/guestfs.pod:2899
38589 msgid "L<virt-alignment-scan(1)> command and documentation."
38590 msgstr ""
38591
38592 #. type: textblock
38593 #: ../src/guestfs.pod:2903
38594 msgid "The libguestfs appliance, build scripts and so on."
38595 msgstr ""
38596
38597 #. type: =item
38598 #: ../src/guestfs.pod:2905
38599 msgid "C<capitests>"
38600 msgstr ""
38601
38602 #. type: textblock
38603 #: ../src/guestfs.pod:2907
38604 msgid "Automated tests of the C API."
38605 msgstr ""
38606
38607 #. type: =item
38608 #: ../src/guestfs.pod:2909
38609 msgid "C<cat>"
38610 msgstr ""
38611
38612 #. type: textblock
38613 #: ../src/guestfs.pod:2911
38614 msgid ""
38615 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
38616 "documentation."
38617 msgstr ""
38618
38619 #. type: =item
38620 #: ../src/guestfs.pod:2914
38621 msgid "C<caution>"
38622 msgstr ""
38623
38624 #. type: textblock
38625 #: ../src/guestfs.pod:2916
38626 msgid ""
38627 "Safety and liveness tests of components that libguestfs depends upon (not of "
38628 "libguestfs itself).  Mainly this is for qemu and the kernel."
38629 msgstr ""
38630
38631 #. type: =item
38632 #: ../src/guestfs.pod:2919
38633 msgid "C<clone>"
38634 msgstr ""
38635
38636 #. type: textblock
38637 #: ../src/guestfs.pod:2921
38638 msgid ""
38639 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
38640 "command and documentation."
38641 msgstr ""
38642
38643 #. type: =item
38644 #: ../src/guestfs.pod:2924
38645 msgid "C<contrib>"
38646 msgstr ""
38647
38648 #. type: textblock
38649 #: ../src/guestfs.pod:2926
38650 msgid "Outside contributions, experimental parts."
38651 msgstr ""
38652
38653 #. type: =item
38654 #: ../src/guestfs.pod:2928
38655 msgid "C<daemon>"
38656 msgstr ""
38657
38658 #. type: textblock
38659 #: ../src/guestfs.pod:2930
38660 msgid ""
38661 "The daemon that runs inside the libguestfs appliance and carries out actions."
38662 msgstr ""
38663
38664 #. type: =item
38665 #: ../src/guestfs.pod:2933
38666 msgid "C<df>"
38667 msgstr ""
38668
38669 #. type: textblock
38670 #: ../src/guestfs.pod:2935
38671 msgid "L<virt-df(1)> command and documentation."
38672 msgstr ""
38673
38674 #. type: =item
38675 #: ../src/guestfs.pod:2937
38676 msgid "C<edit>"
38677 msgstr ""
38678
38679 #. type: textblock
38680 #: ../src/guestfs.pod:2939
38681 msgid "L<virt-edit(1)> command and documentation."
38682 msgstr ""
38683
38684 #. type: =item
38685 #: ../src/guestfs.pod:2941
38686 msgid "C<examples>"
38687 msgstr ""
38688
38689 #. type: textblock
38690 #: ../src/guestfs.pod:2943
38691 msgid "C API example code."
38692 msgstr ""
38693
38694 #. type: =item
38695 #: ../src/guestfs.pod:2945
38696 msgid "C<fish>"
38697 msgstr ""
38698
38699 #. type: textblock
38700 #: ../src/guestfs.pod:2947
38701 msgid ""
38702 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38703 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38704 "L<virt-tar-out(1)>."
38705 msgstr ""
38706
38707 #. type: =item
38708 #: ../src/guestfs.pod:2951
38709 msgid "C<fuse>"
38710 msgstr ""
38711
38712 #. type: textblock
38713 #: ../src/guestfs.pod:2953
38714 msgid ""
38715 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38716 msgstr ""
38717
38718 #. type: =item
38719 #: ../src/guestfs.pod:2955
38720 msgid "C<generator>"
38721 msgstr ""
38722
38723 #. type: textblock
38724 #: ../src/guestfs.pod:2957
38725 msgid ""
38726 "The crucially important generator, used to automatically generate large "
38727 "amounts of boilerplate C code for things like RPC and bindings."
38728 msgstr ""
38729
38730 #. type: =item
38731 #: ../src/guestfs.pod:2960
38732 msgid "C<images>"
38733 msgstr ""
38734
38735 #. type: textblock
38736 #: ../src/guestfs.pod:2962
38737 msgid "Files used by the test suite."
38738 msgstr ""
38739
38740 #. type: textblock
38741 #: ../src/guestfs.pod:2964
38742 msgid "Some \"phony\" guest images which we test against."
38743 msgstr ""
38744
38745 #. type: =item
38746 #: ../src/guestfs.pod:2966
38747 msgid "C<inspector>"
38748 msgstr ""
38749
38750 #. type: textblock
38751 #: ../src/guestfs.pod:2968
38752 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38753 msgstr ""
38754
38755 #. type: =item
38756 #: ../src/guestfs.pod:2970
38757 msgid "C<logo>"
38758 msgstr ""
38759
38760 #. type: textblock
38761 #: ../src/guestfs.pod:2972
38762 msgid "Logo used on the website.  The fish is called Arthur by the way."
38763 msgstr ""
38764
38765 #. type: =item
38766 #: ../src/guestfs.pod:2974
38767 msgid "C<m4>"
38768 msgstr ""
38769
38770 #. type: textblock
38771 #: ../src/guestfs.pod:2976
38772 msgid "M4 macros used by autoconf."
38773 msgstr ""
38774
38775 #. type: =item
38776 #: ../src/guestfs.pod:2978
38777 msgid "C<po>"
38778 msgstr ""
38779
38780 #. type: textblock
38781 #: ../src/guestfs.pod:2980
38782 msgid "Translations of simple gettext strings."
38783 msgstr ""
38784
38785 #. type: =item
38786 #: ../src/guestfs.pod:2982
38787 msgid "C<po-docs>"
38788 msgstr ""
38789
38790 #. type: textblock
38791 #: ../src/guestfs.pod:2984
38792 msgid ""
38793 "The build infrastructure and PO files for translations of manpages and POD "
38794 "files.  Eventually this will be combined with the C<po> directory, but that "
38795 "is rather complicated."
38796 msgstr ""
38797
38798 #. type: =item
38799 #: ../src/guestfs.pod:2988
38800 msgid "C<regressions>"
38801 msgstr ""
38802
38803 #. type: textblock
38804 #: ../src/guestfs.pod:2990
38805 msgid "Regression tests."
38806 msgstr ""
38807
38808 #. type: =item
38809 #: ../src/guestfs.pod:2992
38810 msgid "C<rescue>"
38811 msgstr ""
38812
38813 #. type: textblock
38814 #: ../src/guestfs.pod:2994
38815 msgid "L<virt-rescue(1)> command and documentation."
38816 msgstr ""
38817
38818 #. type: =item
38819 #: ../src/guestfs.pod:2996
38820 msgid "C<resize>"
38821 msgstr ""
38822
38823 #. type: textblock
38824 #: ../src/guestfs.pod:2998
38825 msgid "L<virt-resize(1)> command and documentation."
38826 msgstr ""
38827
38828 #. type: =item
38829 #: ../src/guestfs.pod:3000
38830 msgid "C<sparsify>"
38831 msgstr ""
38832
38833 #. type: textblock
38834 #: ../src/guestfs.pod:3002
38835 msgid "L<virt-sparsify(1)> command and documentation."
38836 msgstr ""
38837
38838 #. type: =item
38839 #: ../src/guestfs.pod:3004
38840 msgid "C<src>"
38841 msgstr ""
38842
38843 #. type: textblock
38844 #: ../src/guestfs.pod:3006
38845 msgid "Source code to the C library."
38846 msgstr ""
38847
38848 #. type: =item
38849 #: ../src/guestfs.pod:3008
38850 msgid "C<tools>"
38851 msgstr ""
38852
38853 #. type: textblock
38854 #: ../src/guestfs.pod:3010
38855 msgid ""
38856 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
38857 msgstr ""
38858
38859 #. type: =item
38860 #: ../src/guestfs.pod:3012
38861 msgid "C<test-tool>"
38862 msgstr ""
38863
38864 #. type: textblock
38865 #: ../src/guestfs.pod:3014
38866 msgid ""
38867 "Test tool for end users to test if their qemu/kernel combination will work "
38868 "with libguestfs."
38869 msgstr ""
38870
38871 #. type: =item
38872 #: ../src/guestfs.pod:3017
38873 msgid "C<csharp>"
38874 msgstr ""
38875
38876 #. type: =item
38877 #: ../src/guestfs.pod:3019
38878 msgid "C<erlang>"
38879 msgstr ""
38880
38881 #. type: =item
38882 #: ../src/guestfs.pod:3021
38883 msgid "C<haskell>"
38884 msgstr ""
38885
38886 #. type: =item
38887 #: ../src/guestfs.pod:3023
38888 msgid "C<java>"
38889 msgstr ""
38890
38891 #. type: =item
38892 #: ../src/guestfs.pod:3025
38893 msgid "C<ocaml>"
38894 msgstr ""
38895
38896 #. type: =item
38897 #: ../src/guestfs.pod:3027
38898 msgid "C<php>"
38899 msgstr ""
38900
38901 #. type: =item
38902 #: ../src/guestfs.pod:3029
38903 msgid "C<perl>"
38904 msgstr ""
38905
38906 #. type: =item
38907 #: ../src/guestfs.pod:3031
38908 msgid "C<python>"
38909 msgstr ""
38910
38911 #. type: =item
38912 #: ../src/guestfs.pod:3033
38913 msgid "C<ruby>"
38914 msgstr ""
38915
38916 #. type: textblock
38917 #: ../src/guestfs.pod:3035
38918 msgid "Language bindings."
38919 msgstr ""
38920
38921 #. type: =head2
38922 #: ../src/guestfs.pod:3039
38923 msgid "MAKING A STABLE RELEASE"
38924 msgstr ""
38925
38926 #. type: textblock
38927 #: ../src/guestfs.pod:3041
38928 msgid ""
38929 "When we make a stable release, there are several steps documented here.  See "
38930 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38931 "branch policy."
38932 msgstr ""
38933
38934 #. type: textblock
38935 #: ../src/guestfs.pod:3049
38936 msgid ""
38937 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
38938 msgstr ""
38939
38940 #. type: textblock
38941 #: ../src/guestfs.pod:3054
38942 msgid "Finalize RELEASE-NOTES."
38943 msgstr ""
38944
38945 #. type: textblock
38946 #: ../src/guestfs.pod:3058
38947 msgid "Update ROADMAP."
38948 msgstr ""
38949
38950 #. type: textblock
38951 #: ../src/guestfs.pod:3062
38952 msgid "Run C<src/api-support/update-from-tarballs.sh>."
38953 msgstr ""
38954
38955 #. type: textblock
38956 #: ../src/guestfs.pod:3066
38957 msgid "Push and pull from Transifex."
38958 msgstr ""
38959
38960 #. type: textblock
38961 #: ../src/guestfs.pod:3068
38962 msgid "Run:"
38963 msgstr ""
38964
38965 #. type: verbatim
38966 #: ../src/guestfs.pod:3070
38967 #, no-wrap
38968 msgid ""
38969 " tx push -s\n"
38970 "\n"
38971 msgstr ""
38972
38973 #. type: textblock
38974 #: ../src/guestfs.pod:3072
38975 msgid "to push the latest POT files to Transifex.  Then run:"
38976 msgstr ""
38977
38978 #. type: verbatim
38979 #: ../src/guestfs.pod:3074
38980 #, no-wrap
38981 msgid ""
38982 " ./tx-pull.sh\n"
38983 "\n"
38984 msgstr ""
38985
38986 #. type: textblock
38987 #: ../src/guestfs.pod:3076
38988 msgid "which is a wrapper to pull the latest translated C<*.po> files."
38989 msgstr ""
38990
38991 #. type: textblock
38992 #: ../src/guestfs.pod:3080
38993 msgid ""
38994 "Create new stable and development directories under L<http://libguestfs.org/"
38995 "download>."
38996 msgstr ""
38997
38998 #. type: textblock
38999 #: ../src/guestfs.pod:3085
39000 msgid "Create the branch in git:"
39001 msgstr ""
39002
39003 #. type: verbatim
39004 #: ../src/guestfs.pod:3087
39005 #, no-wrap
39006 msgid ""
39007 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39008 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39009 " git branch stable-1.XX\n"
39010 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39011 "\n"
39012 msgstr ""
39013
39014 #. type: =head1
39015 #: ../src/guestfs.pod:3094
39016 msgid "LIMITS"
39017 msgstr ""
39018
39019 #. type: =head2
39020 #: ../src/guestfs.pod:3096
39021 msgid "PROTOCOL LIMITS"
39022 msgstr ""
39023
39024 #. type: textblock
39025 #: ../src/guestfs.pod:3098
39026 msgid ""
39027 "Internally libguestfs uses a message-based protocol to pass API calls and "
39028 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39029 "plenty more detail about this).  The maximum message size used by the "
39030 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
39031 "aware of this limit.  The API calls which may be affected are individually "
39032 "documented, with a link back to this section of the documentation."
39033 msgstr ""
39034
39035 #. type: textblock
39036 #: ../src/guestfs.pod:3106
39037 msgid ""
39038 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39039 "a simple string.  Because this string is at some point internally encoded as "
39040 "a message, the maximum size that it can return is slightly under 4 MB.  If "
39041 "the requested file is larger than this then you will get an error."
39042 msgstr ""
39043
39044 #. type: textblock
39045 #: ../src/guestfs.pod:3112
39046 msgid ""
39047 "In order to transfer large files into and out of the guest filesystem, you "
39048 "need to use particular calls that support this.  The sections L</UPLOADING> "
39049 "and L</DOWNLOADING> document how to do this."
39050 msgstr ""
39051
39052 #. type: textblock
39053 #: ../src/guestfs.pod:3116
39054 msgid ""
39055 "You might also consider mounting the disk image using our FUSE filesystem "
39056 "support (L<guestmount(1)>)."
39057 msgstr ""
39058
39059 #. type: =head2
39060 #: ../src/guestfs.pod:3119
39061 msgid "MAXIMUM NUMBER OF DISKS"
39062 msgstr ""
39063
39064 #. type: textblock
39065 #: ../src/guestfs.pod:3121
39066 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39067 msgstr ""
39068
39069 #. type: textblock
39070 #: ../src/guestfs.pod:3124
39071 msgid ""
39072 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39073 "slots.  However febootstrap only understands disks with names C</dev/vda> "
39074 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39075 "purposes."
39076 msgstr ""
39077
39078 #. type: textblock
39079 #: ../src/guestfs.pod:3129
39080 msgid ""
39081 "We are working to substantially raise this limit in future versions but it "
39082 "requires complex changes to qemu."
39083 msgstr ""
39084
39085 #. type: textblock
39086 #: ../src/guestfs.pod:3132
39087 msgid ""
39088 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39089 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
39090 "requires changes to qemu."
39091 msgstr ""
39092
39093 #. type: =head2
39094 #: ../src/guestfs.pod:3136
39095 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39096 msgstr ""
39097
39098 #. type: textblock
39099 #: ../src/guestfs.pod:3138
39100 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39101 msgstr ""
39102
39103 #. type: textblock
39104 #: ../src/guestfs.pod:3140
39105 msgid ""
39106 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
39107 "vda>, and C</dev/vda1> through C</dev/vda15>)."
39108 msgstr ""
39109
39110 #. type: textblock
39111 #: ../src/guestfs.pod:3143
39112 msgid ""
39113 "If you attach a disk with more than 15 partitions, the extra partitions are "
39114 "ignored by libguestfs."
39115 msgstr ""
39116
39117 #. type: =head2
39118 #: ../src/guestfs.pod:3146
39119 msgid "MAXIMUM SIZE OF A DISK"
39120 msgstr ""
39121
39122 #. type: textblock
39123 #: ../src/guestfs.pod:3148
39124 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39125 msgstr ""
39126
39127 #. type: textblock
39128 #: ../src/guestfs.pod:3150
39129 msgid ""
39130 "We have tested block devices up to 1 exabyte (2**60 or "
39131 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
39132 "filesystem."
39133 msgstr ""
39134
39135 #. type: textblock
39136 #: ../src/guestfs.pod:3154
39137 msgid ""
39138 "Although libguestfs probably does not impose any limit, the underlying host "
39139 "storage will.  If you store disk images on a host ext4 filesystem, then the "
39140 "maximum size will be limited by the maximum ext4 file size (currently 16 "
39141 "TB).  If you store disk images as host logical volumes then you are limited "
39142 "by the maximum size of an LV."
39143 msgstr ""
39144
39145 #. type: textblock
39146 #: ../src/guestfs.pod:3160
39147 msgid ""
39148 "For the hugest disk image files, we recommend using XFS on the host for "
39149 "storage."
39150 msgstr ""
39151
39152 #. type: =head2
39153 #: ../src/guestfs.pod:3163
39154 msgid "MAXIMUM SIZE OF A PARTITION"
39155 msgstr ""
39156
39157 #. type: textblock
39158 #: ../src/guestfs.pod:3165
39159 msgid ""
39160 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
39161 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
39162 "address a partition located beyond 2 TB on the disk."
39163 msgstr ""
39164
39165 #. type: textblock
39166 #: ../src/guestfs.pod:3169
39167 msgid ""
39168 "It is recommended that you use GPT partitions on disks which are larger than "
39169 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
39170 "which are theoretically larger than the largest disk we could support."
39171 msgstr ""
39172
39173 #. type: =head2
39174 #: ../src/guestfs.pod:3174
39175 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
39176 msgstr ""
39177
39178 #. type: textblock
39179 #: ../src/guestfs.pod:3176
39180 msgid ""
39181 "This depends on the filesystem type.  libguestfs itself does not impose any "
39182 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
39183 "what these limits are."
39184 msgstr ""
39185
39186 #. type: =head2
39187 #: ../src/guestfs.pod:3180
39188 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
39189 msgstr ""
39190
39191 #. type: textblock
39192 #: ../src/guestfs.pod:3182
39193 msgid ""
39194 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
39195 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
39196 "uploads and downloads."
39197 msgstr ""
39198
39199 #. type: =head2
39200 #: ../src/guestfs.pod:3186
39201 msgid "INSPECTION LIMITS"
39202 msgstr ""
39203
39204 #. type: textblock
39205 #: ../src/guestfs.pod:3188
39206 msgid ""
39207 "The inspection code has several arbitrary limits on things like the size of "
39208 "Windows Registry hive it will read, and the length of product name.  These "
39209 "are intended to stop a malicious guest from consuming arbitrary amounts of "
39210 "memory and disk space on the host, and should not be reached in practice.  "
39211 "See the source code for more information."
39212 msgstr ""
39213
39214 #. type: textblock
39215 #: ../src/guestfs.pod:3214
39216 msgid ""
39217 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
39218 "effect as calling C<guestfs_set_verbose (g, 1)>."
39219 msgstr ""
39220
39221 #. type: textblock
39222 #: ../src/guestfs.pod:3226
39223 msgid ""
39224 "Set the path that libguestfs uses to search for a supermin appliance.  See "
39225 "the discussion of paths in section L</PATH> above."
39226 msgstr ""
39227
39228 #. type: textblock
39229 #: ../src/guestfs.pod:3235
39230 msgid "See also L</QEMU WRAPPERS> above."
39231 msgstr ""
39232
39233 #. type: textblock
39234 #: ../src/guestfs.pod:3239
39235 msgid ""
39236 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
39237 "effect as calling C<guestfs_set_trace (g, 1)>."
39238 msgstr ""
39239
39240 #. type: textblock
39241 #: ../src/guestfs.pod:3257
39242 msgid ""
39243 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
39244 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
39245 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
39246 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
39247 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
39248 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
39249 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
39250 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
39251 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
39252 ">, L<http://libguestfs.org/>."
39253 msgstr ""
39254
39255 #. type: textblock
39256 #: ../src/guestfs.pod:3293
39257 msgid ""
39258 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
39259 "(8)>, L<disktype(1)>."
39260 msgstr ""
39261
39262 #. type: =head1
39263 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:553
39264 #: ../tools/virt-win-reg.pl:761
39265 msgid "BUGS"
39266 msgstr ""
39267
39268 #. type: textblock
39269 #: ../src/guestfs.pod:3302
39270 msgid "To get a list of bugs against libguestfs use this link:"
39271 msgstr ""
39272
39273 #. type: textblock
39274 #: ../src/guestfs.pod:3304
39275 msgid ""
39276 "L<https://bugzilla.redhat.com/buglist.cgi?"
39277 "component=libguestfs&product=Virtualization+Tools>"
39278 msgstr ""
39279
39280 #. type: textblock
39281 #: ../src/guestfs.pod:3306
39282 msgid "To report a new bug against libguestfs use this link:"
39283 msgstr ""
39284
39285 #. type: textblock
39286 #: ../src/guestfs.pod:3308
39287 msgid ""
39288 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39289 "component=libguestfs&product=Virtualization+Tools>"
39290 msgstr ""
39291
39292 #. type: textblock
39293 #: ../src/guestfs.pod:3310
39294 msgid "When reporting a bug, please check:"
39295 msgstr ""
39296
39297 #. type: textblock
39298 #: ../src/guestfs.pod:3316
39299 msgid "That the bug hasn't been reported already."
39300 msgstr ""
39301
39302 #. type: textblock
39303 #: ../src/guestfs.pod:3320
39304 msgid "That you are testing a recent version."
39305 msgstr ""
39306
39307 #. type: textblock
39308 #: ../src/guestfs.pod:3324
39309 msgid "Describe the bug accurately, and give a way to reproduce it."
39310 msgstr ""
39311
39312 #. type: textblock
39313 #: ../src/guestfs.pod:3328
39314 msgid ""
39315 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
39316 "bug report."
39317 msgstr ""
39318
39319 #. type: textblock
39320 #: ../test-tool/libguestfs-test-tool.pod:5
39321 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
39322 msgstr ""
39323
39324 #. type: verbatim
39325 #: ../test-tool/libguestfs-test-tool.pod:9
39326 #, no-wrap
39327 msgid ""
39328 " libguestfs-test-tool [--options]\n"
39329 "\n"
39330 msgstr ""
39331
39332 #. type: textblock
39333 #: ../test-tool/libguestfs-test-tool.pod:13
39334 msgid ""
39335 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
39336 "to check basic libguestfs functionality is working.  This is needed because "
39337 "libguestfs occasionally breaks for reasons beyond our control: usually "
39338 "because of changes in the underlying qemu or kernel packages, or the host "
39339 "environment."
39340 msgstr ""
39341
39342 #. type: textblock
39343 #: ../test-tool/libguestfs-test-tool.pod:19
39344 msgid "If you suspect a problem in libguestfs, then just run:"
39345 msgstr ""
39346
39347 #. type: verbatim
39348 #: ../test-tool/libguestfs-test-tool.pod:21
39349 #, no-wrap
39350 msgid ""
39351 " libguestfs-test-tool\n"
39352 "\n"
39353 msgstr ""
39354
39355 #. type: textblock
39356 #: ../test-tool/libguestfs-test-tool.pod:23
39357 msgid "It will print lots of diagnostic messages."
39358 msgstr ""
39359
39360 #. type: textblock
39361 #: ../test-tool/libguestfs-test-tool.pod:25
39362 msgid "If it runs to completion successfully, you will see this near the end:"
39363 msgstr ""
39364
39365 #. type: verbatim
39366 #: ../test-tool/libguestfs-test-tool.pod:27
39367 #, no-wrap
39368 msgid ""
39369 " ===== TEST FINISHED OK =====\n"
39370 "\n"
39371 msgstr ""
39372
39373 #. type: textblock
39374 #: ../test-tool/libguestfs-test-tool.pod:29
39375 msgid "and the test tool will exit with code 0."
39376 msgstr ""
39377
39378 #. type: textblock
39379 #: ../test-tool/libguestfs-test-tool.pod:31
39380 msgid ""
39381 "If it fails (and/or exits with non-zero error code), please paste the "
39382 "I<complete, unedited> output of the test tool into a bug report.  More "
39383 "information about reporting bugs can be found on the L<http://libguestfs.org/"
39384 "> website."
39385 msgstr ""
39386
39387 #. type: textblock
39388 #: ../test-tool/libguestfs-test-tool.pod:42
39389 msgid "Display short usage information and exit."
39390 msgstr ""
39391
39392 #. type: =item
39393 #: ../test-tool/libguestfs-test-tool.pod:44
39394 msgid "B<--qemu qemu_binary>"
39395 msgstr ""
39396
39397 #. type: textblock
39398 #: ../test-tool/libguestfs-test-tool.pod:46
39399 msgid ""
39400 "If you have downloaded another qemu binary, point this option at the full "
39401 "path of the binary to try it."
39402 msgstr ""
39403
39404 #. type: =item
39405 #: ../test-tool/libguestfs-test-tool.pod:49
39406 msgid "B<--qemudir qemu_source_dir>"
39407 msgstr ""
39408
39409 #. type: textblock
39410 #: ../test-tool/libguestfs-test-tool.pod:51
39411 msgid ""
39412 "If you have compiled qemu from source, point this option at the source "
39413 "directory to try it."
39414 msgstr ""
39415
39416 #. type: =item
39417 #: ../test-tool/libguestfs-test-tool.pod:54
39418 msgid "B<-t N>"
39419 msgstr ""
39420
39421 #. type: =item
39422 #: ../test-tool/libguestfs-test-tool.pod:56
39423 msgid "B<--timeout N>"
39424 msgstr ""
39425
39426 #. type: textblock
39427 #: ../test-tool/libguestfs-test-tool.pod:58
39428 msgid ""
39429 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
39430 "minutes) which does not usually need to be adjusted."
39431 msgstr ""
39432
39433 #. type: =head1
39434 #: ../test-tool/libguestfs-test-tool.pod:63
39435 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
39436 msgstr ""
39437
39438 #. type: textblock
39439 #: ../test-tool/libguestfs-test-tool.pod:65
39440 msgid ""
39441 "If you have compiled another version of qemu from source and would like to "
39442 "try that, then you can use the I<--qemudir> option to point to the qemu "
39443 "source directory."
39444 msgstr ""
39445
39446 #. type: textblock
39447 #: ../test-tool/libguestfs-test-tool.pod:69
39448 msgid ""
39449 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
39450 "option to point to the binary."
39451 msgstr ""
39452
39453 #. type: textblock
39454 #: ../test-tool/libguestfs-test-tool.pod:72
39455 msgid ""
39456 "Note when using these options, you can ignore the business of qemu wrapper "
39457 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
39458 "wrapper script for you if one is needed."
39459 msgstr ""
39460
39461 #. type: =head1
39462 #: ../test-tool/libguestfs-test-tool.pod:76
39463 msgid "TRYING OUT A DIFFERENT KERNEL"
39464 msgstr ""
39465
39466 #. type: textblock
39467 #: ../test-tool/libguestfs-test-tool.pod:78
39468 msgid ""
39469 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
39470 "libguestfs tries.  You do this by setting the environment variables "
39471 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
39472 msgstr ""
39473
39474 #. type: textblock
39475 #: ../test-tool/libguestfs-test-tool.pod:82
39476 msgid ""
39477 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
39478 "information."
39479 msgstr ""
39480
39481 #. type: =head1
39482 #: ../test-tool/libguestfs-test-tool.pod:85
39483 msgid "SELF-DIAGNOSIS"
39484 msgstr ""
39485
39486 #. type: textblock
39487 #: ../test-tool/libguestfs-test-tool.pod:87
39488 msgid ""
39489 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
39490 "produced by libguestfs-test-tool and/or possible errors."
39491 msgstr ""
39492
39493 #. type: textblock
39494 #: ../test-tool/libguestfs-test-tool.pod:92
39495 msgid ""
39496 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
39497 "I<1> if there was an error."
39498 msgstr ""
39499
39500 #. type: textblock
39501 #: ../test-tool/libguestfs-test-tool.pod:97
39502 msgid ""
39503 "For the full list of environment variables which may affect libguestfs, "
39504 "please see the L<guestfs(3)> manual page."
39505 msgstr ""
39506
39507 #. type: textblock
39508 #: ../test-tool/libguestfs-test-tool.pod:102
39509 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
39510 msgstr ""
39511
39512 #. type: textblock
39513 #: ../tools/virt-list-filesystems.pl:32
39514 msgid ""
39515 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
39516 msgstr ""
39517
39518 #. type: verbatim
39519 #: ../tools/virt-list-filesystems.pl:36
39520 #, no-wrap
39521 msgid ""
39522 " virt-list-filesystems [--options] domname\n"
39523 "\n"
39524 msgstr ""
39525
39526 #. type: verbatim
39527 #: ../tools/virt-list-filesystems.pl:38
39528 #, no-wrap
39529 msgid ""
39530 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
39531 "\n"
39532 msgstr ""
39533
39534 #. type: textblock
39535 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
39536 msgid ""
39537 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
39538 "replacement."
39539 msgstr ""
39540
39541 #. type: textblock
39542 #: ../tools/virt-list-filesystems.pl:45
39543 msgid ""
39544 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
39545 "are contained in a virtual machine or disk image."
39546 msgstr ""
39547
39548 #. type: textblock
39549 #: ../tools/virt-list-filesystems.pl:49
39550 msgid ""
39551 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
39552 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39553 "> tool."
39554 msgstr ""
39555
39556 #. type: textblock
39557 #: ../tools/virt-list-filesystems.pl:112
39558 msgid ""
39559 "With this option, C<virt-list-filesystems> displays the type of each "
39560 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
39561 msgstr ""
39562
39563 #. type: =item
39564 #: ../tools/virt-list-filesystems.pl:119
39565 msgid "B<-a>"
39566 msgstr ""
39567
39568 #. type: textblock
39569 #: ../tools/virt-list-filesystems.pl:123
39570 msgid ""
39571 "Normally we only show mountable filesystems.  If this option is given then "
39572 "swap devices are shown too."
39573 msgstr ""
39574
39575 #. type: textblock
39576 #: ../tools/virt-list-filesystems.pl:197
39577 msgid ""
39578 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39579 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39580 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39581 msgstr ""
39582
39583 #. type: textblock
39584 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
39585 msgid "Copyright (C) 2009 Red Hat Inc."
39586 msgstr ""
39587
39588 #. type: textblock
39589 #: ../tools/virt-list-partitions.pl:32
39590 msgid ""
39591 "virt-list-partitions - List partitions in a virtual machine or disk image"
39592 msgstr ""
39593
39594 #. type: verbatim
39595 #: ../tools/virt-list-partitions.pl:36
39596 #, no-wrap
39597 msgid ""
39598 " virt-list-partitions [--options] domname\n"
39599 "\n"
39600 msgstr ""
39601
39602 #. type: verbatim
39603 #: ../tools/virt-list-partitions.pl:38
39604 #, no-wrap
39605 msgid ""
39606 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
39607 "\n"
39608 msgstr ""
39609
39610 #. type: textblock
39611 #: ../tools/virt-list-partitions.pl:45
39612 msgid ""
39613 "C<virt-list-partitions> is a command line tool to list the partitions that "
39614 "are contained in a virtual machine or disk image.  It is mainly useful as a "
39615 "first step to using L<virt-resize(1)>."
39616 msgstr ""
39617
39618 #. type: textblock
39619 #: ../tools/virt-list-partitions.pl:50
39620 msgid ""
39621 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
39622 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39623 "> tool."
39624 msgstr ""
39625
39626 #. type: textblock
39627 #: ../tools/virt-list-partitions.pl:113
39628 msgid "Show sizes in human-readable form (eg. \"1G\")."
39629 msgstr ""
39630
39631 #. type: textblock
39632 #: ../tools/virt-list-partitions.pl:123
39633 msgid ""
39634 "With this option, C<virt-list-partitions> displays the type and size of each "
39635 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
39636 msgstr ""
39637
39638 #. type: =item
39639 #: ../tools/virt-list-partitions.pl:130
39640 msgid "B<-t>"
39641 msgstr ""
39642
39643 #. type: =item
39644 #: ../tools/virt-list-partitions.pl:132
39645 msgid "B<--total>"
39646 msgstr ""
39647
39648 #. type: textblock
39649 #: ../tools/virt-list-partitions.pl:134
39650 msgid ""
39651 "Display the total size of each block device (as a separate row or rows)."
39652 msgstr ""
39653
39654 #. type: textblock
39655 #: ../tools/virt-list-partitions.pl:267
39656 msgid ""
39657 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39658 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39659 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39660 msgstr ""
39661
39662 #. type: textblock
39663 #: ../tools/virt-list-partitions.pl:283
39664 msgid "Copyright (C) 2009-2010 Red Hat Inc."
39665 msgstr ""
39666
39667 #. type: textblock
39668 #: ../tools/virt-make-fs.pl:37
39669 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
39670 msgstr ""
39671
39672 #. type: verbatim
39673 #: ../tools/virt-make-fs.pl:41
39674 #, no-wrap
39675 msgid ""
39676 " virt-make-fs [--options] input.tar output.img\n"
39677 "\n"
39678 msgstr ""
39679
39680 #. type: verbatim
39681 #: ../tools/virt-make-fs.pl:43
39682 #, no-wrap
39683 msgid ""
39684 " virt-make-fs [--options] input.tar.gz output.img\n"
39685 "\n"
39686 msgstr ""
39687
39688 #. type: verbatim
39689 #: ../tools/virt-make-fs.pl:45
39690 #, no-wrap
39691 msgid ""
39692 " virt-make-fs [--options] directory output.img\n"
39693 "\n"
39694 msgstr ""
39695
39696 #. type: textblock
39697 #: ../tools/virt-make-fs.pl:49
39698 msgid ""
39699 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
39700 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
39701 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
39702 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
39703 "you want to attach these filesystems to existing virtual machines (eg. to "
39704 "import large amounts of read-only data to a VM)."
39705 msgstr ""
39706
39707 #. type: textblock
39708 #: ../tools/virt-make-fs.pl:57
39709 msgid "Basic usage is:"
39710 msgstr ""
39711
39712 #. type: verbatim
39713 #: ../tools/virt-make-fs.pl:59
39714 #, no-wrap
39715 msgid ""
39716 " virt-make-fs input output\n"
39717 "\n"
39718 msgstr ""
39719
39720 #. type: textblock
39721 #: ../tools/virt-make-fs.pl:61
39722 msgid ""
39723 "where C<input> is either a directory containing files that you want to add, "
39724 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39725 "C<output> is a disk image.  The input type is detected automatically.  The "
39726 "output disk image defaults to a raw ext2 image unless you specify extra "
39727 "flags (see L</OPTIONS> below)."
39728 msgstr ""
39729
39730 #. type: =head2
39731 #: ../tools/virt-make-fs.pl:67
39732 msgid "EXTRA SPACE"
39733 msgstr ""
39734
39735 #. type: textblock
39736 #: ../tools/virt-make-fs.pl:69
39737 msgid ""
39738 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39739 "the files that it contains, but might have extra space.  Depending on how "
39740 "you are going to use the output, you might think this extra space is wasted "
39741 "and want to minimize it, or you might want to leave space so that more files "
39742 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
39743 "but you can use the I<--size> flag to leave space in the filesystem if you "
39744 "want it."
39745 msgstr ""
39746
39747 #. type: textblock
39748 #: ../tools/virt-make-fs.pl:77
39749 msgid ""
39750 "An alternative way to leave extra space but not make the output image any "
39751 "bigger is to use an alternative disk image format (instead of the default "
39752 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39753 "image format (check your hypervisor supports this before using it).  This "
39754 "allows you to choose a large I<--size> but the extra space won't actually be "
39755 "allocated in the image until you try to store something in it."
39756 msgstr ""
39757
39758 #. type: textblock
39759 #: ../tools/virt-make-fs.pl:85
39760 msgid ""
39761 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39762 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39763 "to build another image from scratch."
39764 msgstr ""
39765
39766 #. type: =head3
39767 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
39768 #: ../tools/virt-make-fs.pl:142
39769 msgid "EXAMPLE"
39770 msgstr ""
39771
39772 #. type: verbatim
39773 #: ../tools/virt-make-fs.pl:91
39774 #, no-wrap
39775 msgid ""
39776 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39777 "\n"
39778 msgstr ""
39779
39780 #. type: =head2
39781 #: ../tools/virt-make-fs.pl:93
39782 msgid "FILESYSTEM TYPE"
39783 msgstr ""
39784
39785 #. type: textblock
39786 #: ../tools/virt-make-fs.pl:95
39787 msgid ""
39788 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
39789 "libguestfs supports can be used (but I<not> read-only formats like "
39790 "ISO9660).  Here are some of the more common choices:"
39791 msgstr ""
39792
39793 #. type: =item
39794 #: ../tools/virt-make-fs.pl:101
39795 msgid "I<ext3>"
39796 msgstr ""
39797
39798 #. type: textblock
39799 #: ../tools/virt-make-fs.pl:103
39800 msgid ""
39801 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
39802 "you are not going to use the filesystem in a way that requires the journal, "
39803 "then this is just wasted overhead."
39804 msgstr ""
39805
39806 #. type: =item
39807 #: ../tools/virt-make-fs.pl:107
39808 msgid "I<ntfs> or I<vfat>"
39809 msgstr ""
39810
39811 #. type: textblock
39812 #: ../tools/virt-make-fs.pl:109
39813 msgid "Useful if exporting data to a Windows guest."
39814 msgstr ""
39815
39816 #. type: textblock
39817 #: ../tools/virt-make-fs.pl:111
39818 msgid ""
39819 "I<Note for vfat>: The tar archive or local directory must only contain files "
39820 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
39821 "program running within libguestfs is unable to change the ownership of non-"
39822 "root files, since vfat itself does not support this."
39823 msgstr ""
39824
39825 #. type: =item
39826 #: ../tools/virt-make-fs.pl:116
39827 msgid "I<minix>"
39828 msgstr ""
39829
39830 #. type: textblock
39831 #: ../tools/virt-make-fs.pl:118
39832 msgid ""
39833 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39834 "total filesystem size."
39835 msgstr ""
39836
39837 #. type: verbatim
39838 #: ../tools/virt-make-fs.pl:125
39839 #, no-wrap
39840 msgid ""
39841 " virt-make-fs --type=minix input minixfs.img\n"
39842 "\n"
39843 msgstr ""
39844
39845 #. type: =head2
39846 #: ../tools/virt-make-fs.pl:127
39847 msgid "TO PARTITION OR NOT TO PARTITION"
39848 msgstr ""
39849
39850 #. type: textblock
39851 #: ../tools/virt-make-fs.pl:129
39852 msgid "Optionally virt-make-fs can add a partition table to the output disk."
39853 msgstr ""
39854
39855 #. type: textblock
39856 #: ../tools/virt-make-fs.pl:131
39857 msgid ""
39858 "Adding a partition can make the disk image more compatible with certain "
39859 "virtualized operating systems which don't expect to see a filesystem "
39860 "directly located on a block device (Linux doesn't care and will happily "
39861 "handle both types)."
39862 msgstr ""
39863
39864 #. type: textblock
39865 #: ../tools/virt-make-fs.pl:136
39866 msgid ""
39867 "On the other hand, if you have a partition table then the output image is no "
39868 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
39869 "directly on a partitioned disk image.  (However libguestfs tools such as "
39870 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
39871 msgstr ""
39872
39873 #. type: textblock
39874 #: ../tools/virt-make-fs.pl:144
39875 msgid "Add an MBR partition:"
39876 msgstr ""
39877
39878 #. type: verbatim
39879 #: ../tools/virt-make-fs.pl:146
39880 #, no-wrap
39881 msgid ""
39882 " virt-make-fs --partition -- input disk.img\n"
39883 "\n"
39884 msgstr ""
39885
39886 #. type: textblock
39887 #: ../tools/virt-make-fs.pl:148
39888 msgid ""
39889 "If the output disk image could be terabyte-sized or larger, it's better to "
39890 "use an EFI/GPT-compatible partition table:"
39891 msgstr ""
39892
39893 #. type: verbatim
39894 #: ../tools/virt-make-fs.pl:151
39895 #, no-wrap
39896 msgid ""
39897 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
39898 "\n"
39899 msgstr ""
39900
39901 #. type: textblock
39902 #: ../tools/virt-make-fs.pl:179
39903 msgid "Enable debugging information."
39904 msgstr ""
39905
39906 #. type: =item
39907 #: ../tools/virt-make-fs.pl:185
39908 msgid "B<--size=E<lt>NE<gt>>"
39909 msgstr ""
39910
39911 #. type: =item
39912 #: ../tools/virt-make-fs.pl:187
39913 msgid "B<--size=+E<lt>NE<gt>>"
39914 msgstr ""
39915
39916 #. type: =item
39917 #: ../tools/virt-make-fs.pl:189
39918 msgid "B<-s E<lt>NE<gt>>"
39919 msgstr ""
39920
39921 #. type: =item
39922 #: ../tools/virt-make-fs.pl:191
39923 msgid "B<-s +E<lt>NE<gt>>"
39924 msgstr ""
39925
39926 #. type: textblock
39927 #: ../tools/virt-make-fs.pl:193
39928 msgid ""
39929 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39930 msgstr ""
39931
39932 #. type: textblock
39933 #: ../tools/virt-make-fs.pl:196
39934 msgid ""
39935 "If this option is I<not> given, then the output image will be just large "
39936 "enough to contain all the files, with not much wasted space."
39937 msgstr ""
39938
39939 #. type: textblock
39940 #: ../tools/virt-make-fs.pl:199
39941 msgid ""
39942 "To choose a fixed size output disk, specify an absolute number followed by b/"
39943 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39944 "Petabytes or Exabytes.  This must be large enough to contain all the input "
39945 "files, else you will get an error."
39946 msgstr ""
39947
39948 #. type: textblock
39949 #: ../tools/virt-make-fs.pl:204
39950 msgid ""
39951 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
39952 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39953 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
39954 "the input files, and (approximately) an extra 200 MB free space."
39955 msgstr ""
39956
39957 #. type: textblock
39958 #: ../tools/virt-make-fs.pl:210
39959 msgid ""
39960 "Note that virt-make-fs estimates free space, and therefore will not produce "
39961 "filesystems containing precisely the free space requested.  (It is much more "
39962 "expensive and time-consuming to produce a filesystem which has precisely the "
39963 "desired free space)."
39964 msgstr ""
39965
39966 #. type: =item
39967 #: ../tools/virt-make-fs.pl:219
39968 msgid "B<--format=E<lt>fmtE<gt>>"
39969 msgstr ""
39970
39971 #. type: =item
39972 #: ../tools/virt-make-fs.pl:221
39973 msgid "B<-F E<lt>fmtE<gt>>"
39974 msgstr ""
39975
39976 #. type: textblock
39977 #: ../tools/virt-make-fs.pl:223
39978 msgid "Choose the output disk image format."
39979 msgstr ""
39980
39981 #. type: textblock
39982 #: ../tools/virt-make-fs.pl:225
39983 msgid "The default is C<raw> (raw disk image)."
39984 msgstr ""
39985
39986 #. type: textblock
39987 #: ../tools/virt-make-fs.pl:227
39988 msgid ""
39989 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
39990 "that would really make sense here is C<qcow2>."
39991 msgstr ""
39992
39993 #. type: =item
39994 #: ../tools/virt-make-fs.pl:234
39995 msgid "B<--type=E<lt>fsE<gt>>"
39996 msgstr ""
39997
39998 #. type: =item
39999 #: ../tools/virt-make-fs.pl:236
40000 msgid "B<-t E<lt>fsE<gt>>"
40001 msgstr ""
40002
40003 #. type: textblock
40004 #: ../tools/virt-make-fs.pl:238
40005 msgid "Choose the output filesystem type."
40006 msgstr ""
40007
40008 #. type: textblock
40009 #: ../tools/virt-make-fs.pl:240
40010 msgid "The default is C<ext2>."
40011 msgstr ""
40012
40013 #. type: textblock
40014 #: ../tools/virt-make-fs.pl:242
40015 msgid ""
40016 "Any filesystem which is supported read-write by libguestfs can be used here."
40017 msgstr ""
40018
40019 #. type: =item
40020 #: ../tools/virt-make-fs.pl:249
40021 msgid "B<--partition>"
40022 msgstr ""
40023
40024 #. type: =item
40025 #: ../tools/virt-make-fs.pl:251
40026 msgid "B<--partition=E<lt>parttypeE<gt>>"
40027 msgstr ""
40028
40029 #. type: textblock
40030 #: ../tools/virt-make-fs.pl:253
40031 msgid ""
40032 "If specified, this flag adds an MBR partition table to the output disk image."
40033 msgstr ""
40034
40035 #. type: textblock
40036 #: ../tools/virt-make-fs.pl:256
40037 msgid ""
40038 "You can change the partition table type, eg. I<--partition=gpt> for large "
40039 "disks."
40040 msgstr ""
40041
40042 #. type: textblock
40043 #: ../tools/virt-make-fs.pl:259
40044 msgid ""
40045 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40046 "might consider the next parameter to be the partition type.  For example:"
40047 msgstr ""
40048
40049 #. type: verbatim
40050 #: ../tools/virt-make-fs.pl:263
40051 #, no-wrap
40052 msgid ""
40053 " virt-make-fs --partition input.tar ...\n"
40054 "\n"
40055 msgstr ""
40056
40057 #. type: textblock
40058 #: ../tools/virt-make-fs.pl:265
40059 msgid ""
40060 "would cause virt-make-fs to think you wanted to use a partition type of "
40061 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
40062 "dash) between options and the input file argument:"
40063 msgstr ""
40064
40065 #. type: verbatim
40066 #: ../tools/virt-make-fs.pl:269
40067 #, no-wrap
40068 msgid ""
40069 " virt-make-fs --partition -- input.tar ...\n"
40070 "\n"
40071 msgstr ""
40072
40073 #. type: textblock
40074 #: ../tools/virt-make-fs.pl:541
40075 msgid ""
40076 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40077 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40078 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40079 msgstr ""
40080
40081 #. type: textblock
40082 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
40083 msgid ""
40084 "When reporting bugs, please enable debugging and capture the I<complete> "
40085 "output:"
40086 msgstr ""
40087
40088 #. type: verbatim
40089 #: ../tools/virt-make-fs.pl:558
40090 #, no-wrap
40091 msgid ""
40092 " export LIBGUESTFS_DEBUG=1\n"
40093 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40094 "\n"
40095 msgstr ""
40096
40097 #. type: textblock
40098 #: ../tools/virt-make-fs.pl:561
40099 msgid ""
40100 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
40101 "redhat.com/>"
40102 msgstr ""
40103
40104 #. type: textblock
40105 #: ../tools/virt-tar.pl:33
40106 msgid "virt-tar - Extract or upload files to a virtual machine"
40107 msgstr ""
40108
40109 #. type: verbatim
40110 #: ../tools/virt-tar.pl:37
40111 #, no-wrap
40112 msgid ""
40113 " virt-tar [--options] -x domname directory tarball\n"
40114 "\n"
40115 msgstr ""
40116
40117 #. type: verbatim
40118 #: ../tools/virt-tar.pl:39
40119 #, no-wrap
40120 msgid ""
40121 " virt-tar [--options] -u domname tarball directory\n"
40122 "\n"
40123 msgstr ""
40124
40125 #. type: verbatim
40126 #: ../tools/virt-tar.pl:41
40127 #, no-wrap
40128 msgid ""
40129 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
40130 "\n"
40131 msgstr ""
40132
40133 #. type: verbatim
40134 #: ../tools/virt-tar.pl:43
40135 #, no-wrap
40136 msgid ""
40137 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
40138 "\n"
40139 msgstr ""
40140
40141 #. type: =head2
40142 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
40143 msgid "NOTE"
40144 msgstr ""
40145
40146 #. type: textblock
40147 #: ../tools/virt-tar.pl:47
40148 msgid ""
40149 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
40150 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
40151 msgstr ""
40152
40153 #. type: textblock
40154 #: ../tools/virt-tar.pl:52
40155 msgid "Download C</home> from the VM into a local tarball:"
40156 msgstr ""
40157
40158 #. type: verbatim
40159 #: ../tools/virt-tar.pl:54
40160 #, no-wrap
40161 msgid ""
40162 " virt-tar -x domname /home home.tar\n"
40163 "\n"
40164 msgstr ""
40165
40166 #. type: verbatim
40167 #: ../tools/virt-tar.pl:56
40168 #, no-wrap
40169 msgid ""
40170 " virt-tar -zx domname /home home.tar.gz\n"
40171 "\n"
40172 msgstr ""
40173
40174 #. type: textblock
40175 #: ../tools/virt-tar.pl:58
40176 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
40177 msgstr ""
40178
40179 #. type: verbatim
40180 #: ../tools/virt-tar.pl:60
40181 #, no-wrap
40182 msgid ""
40183 " virt-tar -u domname uploadstuff.tar /tmp\n"
40184 "\n"
40185 msgstr ""
40186
40187 #. type: verbatim
40188 #: ../tools/virt-tar.pl:62
40189 #, no-wrap
40190 msgid ""
40191 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
40192 "\n"
40193 msgstr ""
40194
40195 #. type: textblock
40196 #: ../tools/virt-tar.pl:66
40197 msgid ""
40198 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
40199 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
40200 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
40201 msgstr ""
40202
40203 #. type: textblock
40204 #: ../tools/virt-tar.pl:71
40205 msgid ""
40206 "You can use I<-x> (extract) on live virtual machines, but you might get "
40207 "inconsistent results or errors if there is filesystem activity inside the "
40208 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
40209 "work, but the only way to guarantee consistent results is if the virtual "
40210 "machine is shut down."
40211 msgstr ""
40212
40213 #. type: textblock
40214 #: ../tools/virt-tar.pl:79
40215 msgid ""
40216 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
40217 "parts of a guest filesystem.  There are many possibilities: making backups, "
40218 "uploading data files, snooping on guest activity, fixing or customizing "
40219 "guests, etc."
40220 msgstr ""
40221
40222 #. type: textblock
40223 #: ../tools/virt-tar.pl:84
40224 msgid ""
40225 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
40226 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
40227 "should look at the L<guestfish(1)> tool."
40228 msgstr ""
40229
40230 #. type: textblock
40231 #: ../tools/virt-tar.pl:88
40232 msgid ""
40233 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
40234 "its contents (recursively) from the virtual machine into a local tarball.  "
40235 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
40236 "virtual machine.  You cannot use these two options together."
40237 msgstr ""
40238
40239 #. type: textblock
40240 #: ../tools/virt-tar.pl:94
40241 msgid ""
40242 "In addition, you may need to use the I<-z> (gZip) option to enable "
40243 "compression.  When uploading, you have to specify I<-z> if the upload file "
40244 "is compressed because virt-tar won't detect this on its own."
40245 msgstr ""
40246
40247 #. type: textblock
40248 #: ../tools/virt-tar.pl:98
40249 msgid ""
40250 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
40251 "example it cannot do PKZip files or bzip2 compression.  If you want that "
40252 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
40253 "the L<libguestfs(3)> API)."
40254 msgstr ""
40255
40256 #. type: =item
40257 #: ../tools/virt-tar.pl:160
40258 msgid "B<--extract>"
40259 msgstr ""
40260
40261 #. type: =item
40262 #: ../tools/virt-tar.pl:162
40263 msgid "B<--download>"
40264 msgstr ""
40265
40266 #. type: =item
40267 #: ../tools/virt-tar.pl:164
40268 msgid "B<-u>"
40269 msgstr ""
40270
40271 #. type: =item
40272 #: ../tools/virt-tar.pl:166
40273 msgid "B<--upload>"
40274 msgstr ""
40275
40276 #. type: textblock
40277 #: ../tools/virt-tar.pl:168
40278 msgid ""
40279 "Use I<-x> to extract (download) a directory from a virtual machine to a "
40280 "local tarball."
40281 msgstr ""
40282
40283 #. type: textblock
40284 #: ../tools/virt-tar.pl:171
40285 msgid ""
40286 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
40287 "Please read the L</WARNING> section above before using this option."
40288 msgstr ""
40289
40290 #. type: textblock
40291 #: ../tools/virt-tar.pl:175
40292 msgid "You must specify exactly one of these options."
40293 msgstr ""
40294
40295 #. type: =item
40296 #: ../tools/virt-tar.pl:181
40297 msgid "B<-z>"
40298 msgstr ""
40299
40300 #. type: =item
40301 #: ../tools/virt-tar.pl:183
40302 msgid "B<--gzip>"
40303 msgstr ""
40304
40305 #. type: textblock
40306 #: ../tools/virt-tar.pl:185
40307 msgid "Specify that the input or output tarball is gzip-compressed."
40308 msgstr ""
40309
40310 #. type: textblock
40311 #: ../tools/virt-tar.pl:298
40312 msgid ""
40313 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40314 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40315 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40316 "org/>."
40317 msgstr ""
40318
40319 #. type: textblock
40320 #: ../tools/virt-win-reg.pl:37
40321 msgid ""
40322 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
40323 msgstr ""
40324
40325 #. type: verbatim
40326 #: ../tools/virt-win-reg.pl:41
40327 #, no-wrap
40328 msgid ""
40329 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
40330 "\n"
40331 msgstr ""
40332
40333 #. type: verbatim
40334 #: ../tools/virt-win-reg.pl:43
40335 #, no-wrap
40336 msgid ""
40337 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
40338 "\n"
40339 msgstr ""
40340
40341 #. type: verbatim
40342 #: ../tools/virt-win-reg.pl:45
40343 #, no-wrap
40344 msgid ""
40345 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
40346 "\n"
40347 msgstr ""
40348
40349 #. type: verbatim
40350 #: ../tools/virt-win-reg.pl:47
40351 #, no-wrap
40352 msgid ""
40353 " virt-win-reg --merge domname [input.reg ...]\n"
40354 "\n"
40355 msgstr ""
40356
40357 #. type: verbatim
40358 #: ../tools/virt-win-reg.pl:49
40359 #, no-wrap
40360 msgid ""
40361 " virt-win-reg [--options] disk.img ... # instead of domname\n"
40362 "\n"
40363 msgstr ""
40364
40365 #. type: textblock
40366 #: ../tools/virt-win-reg.pl:53
40367 msgid ""
40368 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
40369 "virtual machines.  If you do this, you I<will> get irreversible disk "
40370 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
40371 "but doesn't catch all cases."
40372 msgstr ""
40373
40374 #. type: textblock
40375 #: ../tools/virt-win-reg.pl:58
40376 msgid ""
40377 "Modifying the Windows Registry is an inherently risky operation.  The format "
40378 "is deliberately obscure and undocumented, and Registry changes can leave the "
40379 "system unbootable.  Therefore when using the I<--merge> option, make sure "
40380 "you have a reliable backup first."
40381 msgstr ""
40382
40383 #. type: textblock
40384 #: ../tools/virt-win-reg.pl:65
40385 msgid ""
40386 "This program can export and merge Windows Registry entries from a Windows "
40387 "guest."
40388 msgstr ""
40389
40390 #. type: textblock
40391 #: ../tools/virt-win-reg.pl:68
40392 msgid ""
40393 "The first parameter is the libvirt guest name or the raw disk image of a "
40394 "Windows guest."
40395 msgstr ""
40396
40397 #. type: textblock
40398 #: ../tools/virt-win-reg.pl:71
40399 msgid ""
40400 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
40401 "exported (recursively).  For example:"
40402 msgstr ""
40403
40404 #. type: verbatim
40405 #: ../tools/virt-win-reg.pl:74
40406 #, no-wrap
40407 msgid ""
40408 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
40409 "\n"
40410 msgstr ""
40411
40412 #. type: textblock
40413 #: ../tools/virt-win-reg.pl:76
40414 msgid ""
40415 "You can also display single values from within registry keys, for example:"
40416 msgstr ""
40417
40418 #. type: verbatim
40419 #: ../tools/virt-win-reg.pl:79
40420 #, no-wrap
40421 msgid ""
40422 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
40423 " $ virt-win-reg Windows7 $cvkey ProductName\n"
40424 " Windows 7 Enterprise\n"
40425 "\n"
40426 msgstr ""
40427
40428 #. type: textblock
40429 #: ../tools/virt-win-reg.pl:83
40430 msgid ""
40431 "With I<--merge>, you can merge a textual regedit file into the Windows "
40432 "Registry:"
40433 msgstr ""
40434
40435 #. type: verbatim
40436 #: ../tools/virt-win-reg.pl:86
40437 #, no-wrap
40438 msgid ""
40439 " $ virt-win-reg --merge Windows7 changes.reg\n"
40440 "\n"
40441 msgstr ""
40442
40443 #. type: textblock
40444 #: ../tools/virt-win-reg.pl:90
40445 msgid ""
40446 "This program is only meant for simple access to the registry.  If you want "
40447 "to do complicated things with the registry, we suggest you download the "
40448 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
40449 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
40450 "L<hivexregedit(1)>."
40451 msgstr ""
40452
40453 #. type: =item
40454 #: ../tools/virt-win-reg.pl:159
40455 msgid "B<--merge>"
40456 msgstr ""
40457
40458 #. type: textblock
40459 #: ../tools/virt-win-reg.pl:161
40460 msgid ""
40461 "In merge mode, this merges a textual regedit file into the Windows Registry "
40462 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
40463 "displays or exports Registry entries instead."
40464 msgstr ""
40465
40466 #. type: textblock
40467 #: ../tools/virt-win-reg.pl:165
40468 msgid ""
40469 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
40470 "result in disk corruption.  However exporting (without this flag)  is always "
40471 "safe."
40472 msgstr ""
40473
40474 #. type: =item
40475 #: ../tools/virt-win-reg.pl:173
40476 msgid "B<--encoding> UTF-16LE|ASCII"
40477 msgstr ""
40478
40479 #. type: textblock
40480 #: ../tools/virt-win-reg.pl:175
40481 msgid ""
40482 "When merging (only), you may need to specify the encoding for strings to be "
40483 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
40484 "(3)/ENCODING STRINGS>."
40485 msgstr ""
40486
40487 #. type: textblock
40488 #: ../tools/virt-win-reg.pl:179
40489 msgid ""
40490 "The default is to use UTF-16LE, which should work with recent versions of "
40491 "Windows."
40492 msgstr ""
40493
40494 #. type: =item
40495 #: ../tools/virt-win-reg.pl:186
40496 msgid "B<--unsafe-printable-strings>"
40497 msgstr ""
40498
40499 #. type: textblock
40500 #: ../tools/virt-win-reg.pl:188
40501 msgid ""
40502 "When exporting (only), assume strings are UTF-16LE and print them as strings "
40503 "instead of hex sequences.  Remove the final zero codepoint from strings if "
40504 "present."
40505 msgstr ""
40506
40507 #. type: textblock
40508 #: ../tools/virt-win-reg.pl:192
40509 msgid ""
40510 "This is unsafe and does not preserve the fidelity of strings in the original "
40511 "Registry for various reasons:"
40512 msgstr ""
40513
40514 #. type: textblock
40515 #: ../tools/virt-win-reg.pl:199
40516 msgid ""
40517 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
40518 "other encodings will be corrupted by this transformation."
40519 msgstr ""
40520
40521 #. type: textblock
40522 #: ../tools/virt-win-reg.pl:204
40523 msgid ""
40524 "Assumes that everything which has type 1 or 2 is really a string and that "
40525 "everything else is not a string, but the type field in real Registries is "
40526 "not reliable."
40527 msgstr ""
40528
40529 #. type: textblock
40530 #: ../tools/virt-win-reg.pl:210
40531 msgid ""
40532 "Loses information about whether a zero codepoint followed the string in the "
40533 "Registry or not."
40534 msgstr ""
40535
40536 #. type: textblock
40537 #: ../tools/virt-win-reg.pl:215
40538 msgid ""
40539 "This all happens because the Registry itself contains no information about "
40540 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
40541 msgstr ""
40542
40543 #. type: textblock
40544 #: ../tools/virt-win-reg.pl:219
40545 msgid ""
40546 "You should only use this option for quick hacking and debugging of the "
40547 "Registry contents, and I<never> use it if the output is going to be passed "
40548 "into another program or stored in another Registry."
40549 msgstr ""
40550
40551 #. type: =head1
40552 #: ../tools/virt-win-reg.pl:556
40553 msgid "SUPPORTED SYSTEMS"
40554 msgstr ""
40555
40556 #. type: textblock
40557 #: ../tools/virt-win-reg.pl:558
40558 msgid ""
40559 "The program currently supports Windows NT-derived guests starting with "
40560 "Windows XP through to at least Windows 7."
40561 msgstr ""
40562
40563 #. type: textblock
40564 #: ../tools/virt-win-reg.pl:561
40565 msgid "The following Registry keys are supported:"
40566 msgstr ""
40567
40568 #. type: =item
40569 #: ../tools/virt-win-reg.pl:565
40570 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
40571 msgstr ""
40572
40573 #. type: =item
40574 #: ../tools/virt-win-reg.pl:567
40575 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
40576 msgstr ""
40577
40578 #. type: =item
40579 #: ../tools/virt-win-reg.pl:569
40580 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
40581 msgstr ""
40582
40583 #. type: =item
40584 #: ../tools/virt-win-reg.pl:571
40585 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
40586 msgstr ""
40587
40588 #. type: =item
40589 #: ../tools/virt-win-reg.pl:573
40590 msgid "C<HKEY_USERS\\.DEFAULT>"
40591 msgstr ""
40592
40593 #. type: =item
40594 #: ../tools/virt-win-reg.pl:575
40595 msgid "C<HKEY_USERS\\I<SID>>"
40596 msgstr ""
40597
40598 #. type: textblock
40599 #: ../tools/virt-win-reg.pl:577
40600 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
40601 msgstr ""
40602
40603 #. type: =item
40604 #: ../tools/virt-win-reg.pl:579
40605 msgid "C<HKEY_USERS\\I<username>>"
40606 msgstr ""
40607
40608 #. type: textblock
40609 #: ../tools/virt-win-reg.pl:581
40610 msgid ""
40611 "where I<username> is a local user name (this is a libguestfs extension)."
40612 msgstr ""
40613
40614 #. type: textblock
40615 #: ../tools/virt-win-reg.pl:585
40616 msgid ""
40617 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
40618 "C<HKEY_USERS>."
40619 msgstr ""
40620
40621 #. type: textblock
40622 #: ../tools/virt-win-reg.pl:588
40623 msgid ""
40624 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
40625 "supported (there is no \"current user\")."
40626 msgstr ""
40627
40628 #. type: =head1
40629 #: ../tools/virt-win-reg.pl:591
40630 msgid "ENCODING"
40631 msgstr ""
40632
40633 #. type: textblock
40634 #: ../tools/virt-win-reg.pl:593
40635 msgid ""
40636 "C<virt-win-reg> expects that regedit files have already been reencoded in "
40637 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
40638 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
40639 "Windows-style line endings, you may need to reencode the whole file before "
40640 "or after processing."
40641 msgstr ""
40642
40643 #. type: textblock
40644 #: ../tools/virt-win-reg.pl:599
40645 msgid ""
40646 "To reencode a file from Windows format to Linux (before processing it with "
40647 "the I<--merge> option), you would do something like this:"
40648 msgstr ""
40649
40650 #. type: verbatim
40651 #: ../tools/virt-win-reg.pl:602
40652 #, no-wrap
40653 msgid ""
40654 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
40655 "\n"
40656 msgstr ""
40657
40658 #. type: textblock
40659 #: ../tools/virt-win-reg.pl:604
40660 msgid ""
40661 "To go in the opposite direction, after exporting and before sending the file "
40662 "to a Windows user, do something like this:"
40663 msgstr ""
40664
40665 #. type: verbatim
40666 #: ../tools/virt-win-reg.pl:607
40667 #, no-wrap
40668 msgid ""
40669 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
40670 "\n"
40671 msgstr ""
40672
40673 #. type: textblock
40674 #: ../tools/virt-win-reg.pl:609
40675 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
40676 msgstr ""
40677
40678 #. type: textblock
40679 #: ../tools/virt-win-reg.pl:611
40680 msgid ""
40681 "If you are unsure about the current encoding, use the L<file(1)> command.  "
40682 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
40683 "style (CRLF) line endings, like this:"
40684 msgstr ""
40685
40686 #. type: verbatim
40687 #: ../tools/virt-win-reg.pl:615
40688 #, no-wrap
40689 msgid ""
40690 " $ file software.reg\n"
40691 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
40692 " with CRLF line terminators\n"
40693 "\n"
40694 msgstr ""
40695
40696 #. type: textblock
40697 #: ../tools/virt-win-reg.pl:619
40698 msgid "This file would need conversion before you could I<--merge> it."
40699 msgstr ""
40700
40701 #. type: =head1
40702 #: ../tools/virt-win-reg.pl:621
40703 msgid "CurrentControlSet etc."
40704 msgstr ""
40705
40706 #. type: textblock
40707 #: ../tools/virt-win-reg.pl:623
40708 msgid ""
40709 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
40710 "Registry at the level of the hive file, and therefore you cannot modify "
40711 "these."
40712 msgstr ""
40713
40714 #. type: textblock
40715 #: ../tools/virt-win-reg.pl:627
40716 msgid ""
40717 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
40718 "circumstances it might refer to another control set.  The way to find out is "
40719 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40720 msgstr ""
40721
40722 #. type: verbatim
40723 #: ../tools/virt-win-reg.pl:631
40724 #, no-wrap
40725 msgid ""
40726 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40727 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40728 " \"Current\"=dword:00000001\n"
40729 " \"Default\"=dword:00000001\n"
40730 " \"Failed\"=dword:00000000\n"
40731 " \"LastKnownGood\"=dword:00000002\n"
40732 "\n"
40733 msgstr ""
40734
40735 #. type: textblock
40736 #: ../tools/virt-win-reg.pl:638
40737 msgid "\"Current\" is the one which Windows will choose when it boots."
40738 msgstr ""
40739
40740 #. type: textblock
40741 #: ../tools/virt-win-reg.pl:640
40742 msgid ""
40743 "Similarly, other C<Current...> keys in the path may need to be replaced."
40744 msgstr ""
40745
40746 #. type: =head1
40747 #: ../tools/virt-win-reg.pl:643
40748 msgid "WINDOWS TIPS"
40749 msgstr ""
40750
40751 #. type: textblock
40752 #: ../tools/virt-win-reg.pl:645
40753 msgid ""
40754 "Note that some of these tips modify the guest disk image.  The guest I<must> "
40755 "be shut off, else you will get disk corruption."
40756 msgstr ""
40757
40758 #. type: =head2
40759 #: ../tools/virt-win-reg.pl:648
40760 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40761 msgstr ""
40762
40763 #. type: textblock
40764 #: ../tools/virt-win-reg.pl:650
40765 msgid ""
40766 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
40767 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
40768 "is uploaded into C<C:\\>:"
40769 msgstr ""
40770
40771 #. type: verbatim
40772 #: ../tools/virt-win-reg.pl:654
40773 #, no-wrap
40774 msgid ""
40775 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40776 "\n"
40777 msgstr ""
40778
40779 #. type: textblock
40780 #: ../tools/virt-win-reg.pl:656
40781 msgid "Prepare a regedit file containing the registry change:"
40782 msgstr ""
40783
40784 #. type: verbatim
40785 #: ../tools/virt-win-reg.pl:658
40786 #, no-wrap
40787 msgid ""
40788 " cat > test.reg <<'EOF'\n"
40789 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40790 " \"Test\"=\"c:\\\\test.bat\"\n"
40791 " EOF\n"
40792 "\n"
40793 msgstr ""
40794
40795 #. type: textblock
40796 #: ../tools/virt-win-reg.pl:663
40797 msgid ""
40798 "In this example we use the key C<RunOnce> which means that the script will "
40799 "run precisely once when the first user logs in.  If you want it to run every "
40800 "time a user logs in, replace C<RunOnce> with C<Run>."
40801 msgstr ""
40802
40803 #. type: textblock
40804 #: ../tools/virt-win-reg.pl:667
40805 msgid "Now update the registry:"
40806 msgstr ""
40807
40808 #. type: verbatim
40809 #: ../tools/virt-win-reg.pl:669
40810 #, no-wrap
40811 msgid ""
40812 " virt-win-reg --merge WindowsGuest test.reg\n"
40813 "\n"
40814 msgstr ""
40815
40816 #. type: =head2
40817 #: ../tools/virt-win-reg.pl:671
40818 msgid "INSTALLING A SERVICE"
40819 msgstr ""
40820
40821 #. type: textblock
40822 #: ../tools/virt-win-reg.pl:673
40823 msgid ""
40824 "This section assumes you are familiar with Windows services, and you either "
40825 "have a program which handles the Windows Service Control Protocol directly "
40826 "or you want to run any program using a service wrapper like SrvAny or the "
40827 "free RHSrvAny."
40828 msgstr ""
40829
40830 #. type: textblock
40831 #: ../tools/virt-win-reg.pl:678
40832 msgid ""
40833 "First upload the program and optionally the service wrapper.  In this case "
40834 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
40835 msgstr ""
40836
40837 #. type: verbatim
40838 #: ../tools/virt-win-reg.pl:682
40839 #, no-wrap
40840 msgid ""
40841 " guestfish -i -d WindowsGuest <<EOF\n"
40842 "   upload rhsrvany.exe /rhsrvany.exe\n"
40843 "   upload test.exe /test.exe\n"
40844 " EOF\n"
40845 "\n"
40846 msgstr ""
40847
40848 #. type: textblock
40849 #: ../tools/virt-win-reg.pl:687
40850 msgid ""
40851 "Prepare a regedit file containing the registry changes.  In this example, "
40852 "the first registry change is needed for the service itself or the service "
40853 "wrapper (if used).  The second registry change is only needed because I am "
40854 "using the RHSrvAny service wrapper."
40855 msgstr ""
40856
40857 #. type: verbatim
40858 #: ../tools/virt-win-reg.pl:692
40859 #, no-wrap
40860 msgid ""
40861 " cat > service.reg <<'EOF'\n"
40862 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
40863 " \"Type\"=dword:00000010\n"
40864 " \"Start\"=dword:00000002\n"
40865 " \"ErrorControl\"=dword:00000001\n"
40866 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
40867 " \"DisplayName\"=\"RHSrvAny\"\n"
40868 " \"ObjectName\"=\"NetworkService\"\n"
40869 " \n"
40870 msgstr ""
40871
40872 #. type: verbatim
40873 #: ../tools/virt-win-reg.pl:701
40874 #, no-wrap
40875 msgid ""
40876 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
40877 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
40878 " \"PWD\"=\"c:\\\\Temp\"\n"
40879 " EOF\n"
40880 "\n"
40881 msgstr ""
40882
40883 #. type: textblock
40884 #: ../tools/virt-win-reg.pl:712
40885 msgid ""
40886 "For use of C<ControlSet001> see the section above in this manual page.  You "
40887 "may need to adjust this according to the control set that is in use by the "
40888 "guest."
40889 msgstr ""
40890
40891 #. type: textblock
40892 #: ../tools/virt-win-reg.pl:718
40893 msgid ""
40894 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
40895 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40896 "privileged account."
40897 msgstr ""
40898
40899 #. type: textblock
40900 #: ../tools/virt-win-reg.pl:724
40901 msgid ""
40902 "For the meaning of the magic numbers, see this Microsoft KB article: "
40903 "L<http://support.microsoft.com/kb/103000>."
40904 msgstr ""
40905
40906 #. type: textblock
40907 #: ../tools/virt-win-reg.pl:729
40908 msgid "Update the registry:"
40909 msgstr ""
40910
40911 #. type: verbatim
40912 #: ../tools/virt-win-reg.pl:731
40913 #, no-wrap
40914 msgid ""
40915 " virt-win-reg --merge WindowsGuest service.reg\n"
40916 "\n"
40917 msgstr ""
40918
40919 #. type: textblock
40920 #: ../tools/virt-win-reg.pl:735
40921 msgid ""
40922 "Be careful when passing parameters containing C<\\> (backslash) in the "
40923 "shell.  Usually you will have to use 'single quotes' or double backslashes "
40924 "(but not both) to protect them from the shell."
40925 msgstr ""
40926
40927 #. type: textblock
40928 #: ../tools/virt-win-reg.pl:739
40929 msgid "Paths and value names are case-insensitive."
40930 msgstr ""
40931
40932 #. type: textblock
40933 #: ../tools/virt-win-reg.pl:748
40934 msgid ""
40935 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
40936 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
40937 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40938 msgstr ""
40939
40940 #. type: verbatim
40941 #: ../tools/virt-win-reg.pl:766
40942 #, no-wrap
40943 msgid ""
40944 " export LIBGUESTFS_DEBUG=1\n"
40945 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
40946 "\n"
40947 msgstr ""
40948
40949 #. type: textblock
40950 #: ../tools/virt-win-reg.pl:769
40951 msgid ""
40952 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
40953 "redhat.com/>"
40954 msgstr ""