daemon: debug segv correct use of dereferencing NULL.
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Translators:
6 # rjones <rjones@redhat.com>, 2011.
7 #   <www.carrotsoft@gmail.com>, 2011.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: libguestfs\n"
11 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
12 "POT-Creation-Date: 2012-01-08 19:12+0000\n"
13 "PO-Revision-Date: 2011-10-27 09:15+0000\n"
14 "Last-Translator: rjones <rjones@redhat.com>\n"
15 "Language-Team: Japanese <trans-ja@lists.fedoraproject.org>\n"
16 "Language: ja\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=1; plural=0\n"
21
22 #. type: =head1
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../examples/guestfs-testing.pod:3
28 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
29 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
30 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
31 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
32 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
33 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
34 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
35 #: ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3
36 #: ../test-tool/libguestfs-test-tool.pod:3
37 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
38 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
39 #: ../tools/virt-win-reg.pl:35
40 msgid "NAME"
41 msgstr "名前"
42
43 #. type: textblock
44 #: ../align/virt-alignment-scan.pod:5
45 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
46 msgstr ""
47
48 #. type: =head1
49 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
50 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
51 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
52 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
53 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
54 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
55 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
56 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
57 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
58 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
59 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
60 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
61 #: ../test-tool/libguestfs-test-tool.pod:7
62 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
63 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
64 #: ../tools/virt-win-reg.pl:39
65 msgid "SYNOPSIS"
66 msgstr ""
67
68 #. type: verbatim
69 #: ../align/virt-alignment-scan.pod:9
70 #, no-wrap
71 msgid ""
72 " virt-alignment-scan [--options] -d domname\n"
73 "\n"
74 msgstr ""
75
76 #. type: verbatim
77 #: ../align/virt-alignment-scan.pod:11
78 #, no-wrap
79 msgid ""
80 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
81 "\n"
82 msgstr ""
83
84 #. type: =head1
85 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
86 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
87 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
88 #: ../erlang/examples/guestfs-erlang.pod:16
89 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
90 #: ../examples/guestfs-testing.pod:7 ../fish/guestfish.pod:30
91 #: ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13
92 #: ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15
93 #: ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19
94 #: ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25
95 #: ../perl/examples/guestfs-perl.pod:18
96 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:31
97 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
98 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
99 #: ../test-tool/libguestfs-test-tool.pod:11
100 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
101 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
102 #: ../tools/virt-win-reg.pl:63
103 msgid "DESCRIPTION"
104 msgstr ""
105
106 #. type: textblock
107 #: ../align/virt-alignment-scan.pod:15
108 msgid ""
109 "When older operating systems install themselves, the partitioning tools "
110 "place partitions at a sector misaligned with the underlying storage "
111 "(commonly the first partition starts on sector C<63>).  Misaligned "
112 "partitions can result in an operating system issuing more I/O than should be "
113 "necessary."
114 msgstr ""
115
116 #. type: textblock
117 #: ../align/virt-alignment-scan.pod:21
118 msgid ""
119 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
120 "machines and disk images and warns you if there are alignment problems."
121 msgstr ""
122
123 #. type: textblock
124 #: ../align/virt-alignment-scan.pod:25
125 msgid ""
126 "Currently there is no virt tool for fixing alignment problems.  You can only "
127 "reinstall the guest operating system.  The following NetApp document "
128 "summarises the problem and possible solutions: L<http://media.netapp.com/"
129 "documents/tr-3747.pdf>"
130 msgstr ""
131
132 #. type: =head1
133 #: ../align/virt-alignment-scan.pod:30
134 msgid "OUTPUT"
135 msgstr ""
136
137 #. type: textblock
138 #: ../align/virt-alignment-scan.pod:32
139 msgid "To run this tool on a disk image directly, use the I<-a> option:"
140 msgstr ""
141
142 #. type: verbatim
143 #: ../align/virt-alignment-scan.pod:34
144 #, no-wrap
145 msgid ""
146 " $ virt-alignment-scan -a winxp.img\n"
147 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
148 "\n"
149 msgstr ""
150
151 #. type: verbatim
152 #: ../align/virt-alignment-scan.pod:37
153 #, no-wrap
154 msgid ""
155 " $ virt-alignment-scan -a fedora16.img\n"
156 " /dev/sda1      1048576         1024K   ok\n"
157 " /dev/sda2      2097152         2048K   ok\n"
158 " /dev/sda3    526385152         2048K   ok\n"
159 "\n"
160 msgstr ""
161
162 #. type: textblock
163 #: ../align/virt-alignment-scan.pod:42
164 msgid ""
165 "To run the tool on a guest known to libvirt, use the I<-d> option and "
166 "possibly the I<-c> option:"
167 msgstr ""
168
169 #. type: verbatim
170 #: ../align/virt-alignment-scan.pod:45
171 #, no-wrap
172 msgid ""
173 " # virt-alignment-scan -d RHEL5\n"
174 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
175 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
176 "\n"
177 msgstr ""
178
179 #. type: verbatim
180 #: ../align/virt-alignment-scan.pod:49
181 #, no-wrap
182 msgid ""
183 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
184 " /dev/sda1      1048576         1024K   ok\n"
185 " /dev/sda2    105906176         1024K   ok\n"
186 " /dev/sdb1        65536           64K   ok\n"
187 "\n"
188 msgstr ""
189
190 #. type: textblock
191 #: ../align/virt-alignment-scan.pod:54
192 msgid ""
193 "The output consists of 4 or more whitespace-separated columns.  Only the "
194 "first 4 columns are signficant if you want to parse this from a program.  "
195 "The columns are:"
196 msgstr ""
197
198 #. type: =item
199 #: ../align/virt-alignment-scan.pod:60
200 msgid "col 1"
201 msgstr ""
202
203 #. type: textblock
204 #: ../align/virt-alignment-scan.pod:62
205 msgid ""
206 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
207 "on the first block device)"
208 msgstr ""
209
210 #. type: =item
211 #: ../align/virt-alignment-scan.pod:65
212 msgid "col 2"
213 msgstr ""
214
215 #. type: textblock
216 #: ../align/virt-alignment-scan.pod:67
217 msgid "the start of the partition in bytes"
218 msgstr ""
219
220 #. type: =item
221 #: ../align/virt-alignment-scan.pod:69
222 msgid "col 3"
223 msgstr ""
224
225 #. type: textblock
226 #: ../align/virt-alignment-scan.pod:71
227 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
228 msgstr ""
229
230 #. type: =item
231 #: ../align/virt-alignment-scan.pod:73
232 msgid "col 4"
233 msgstr ""
234
235 #. type: textblock
236 #: ../align/virt-alignment-scan.pod:75
237 msgid ""
238 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
239 "can cause performance problems"
240 msgstr ""
241
242 #. type: =item
243 #: ../align/virt-alignment-scan.pod:78
244 msgid "cols 5+"
245 msgstr ""
246
247 #. type: textblock
248 #: ../align/virt-alignment-scan.pod:80
249 msgid "optional free-text explanation."
250 msgstr ""
251
252 #. type: textblock
253 #: ../align/virt-alignment-scan.pod:84
254 msgid ""
255 "The exit code from the program changes depending on whether poorly aligned "
256 "partitions were found.  See L</EXIT STATUS> below."
257 msgstr ""
258
259 #. type: textblock
260 #: ../align/virt-alignment-scan.pod:87
261 msgid "If you just want the exit code with no output, use the I<-q> option."
262 msgstr ""
263
264 #. type: =head1
265 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
266 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
267 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
268 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
269 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
270 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
271 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:112
272 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
273 #: ../test-tool/libguestfs-test-tool.pod:36
274 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
275 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
276 #: ../tools/virt-win-reg.pl:96
277 msgid "OPTIONS"
278 msgstr ""
279
280 #. type: =item
281 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
282 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
283 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
284 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
285 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:116
286 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
287 #: ../test-tool/libguestfs-test-tool.pod:40
288 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
289 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
290 #: ../tools/virt-win-reg.pl:104
291 msgid "B<--help>"
292 msgstr ""
293
294 #. type: textblock
295 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
296 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
297 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
298 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:118
299 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
300 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
301 #: ../tools/virt-win-reg.pl:106
302 msgid "Display brief help."
303 msgstr ""
304
305 #. type: =item
306 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
307 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
308 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
309 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:120
310 msgid "B<-a> file"
311 msgstr ""
312
313 #. type: =item
314 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
315 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
316 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
317 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:122
318 msgid "B<--add> file"
319 msgstr ""
320
321 #. type: textblock
322 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
323 msgid "Add I<file> which should be a disk image from a virtual machine."
324 msgstr ""
325
326 #. type: textblock
327 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
328 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
329 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
330 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
331 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:128
332 msgid ""
333 "The format of the disk image is auto-detected.  To override this and force a "
334 "particular format use the I<--format=..> option."
335 msgstr ""
336
337 #. type: =item
338 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
339 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
340 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
341 #: ../rescue/virt-rescue.pod:135
342 msgid "B<-c> URI"
343 msgstr ""
344
345 #. type: =item
346 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
347 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
348 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
349 #: ../rescue/virt-rescue.pod:137
350 msgid "B<--connect> URI"
351 msgstr ""
352
353 #. type: textblock
354 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
355 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
356 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
357 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:139
358 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
359 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
360 msgid ""
361 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
362 "to the default libvirt hypervisor."
363 msgstr ""
364
365 #. type: textblock
366 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
367 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
368 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
369 #: ../rescue/virt-rescue.pod:142
370 msgid ""
371 "If you specify guest block devices directly (I<-a>), then libvirt is not "
372 "used at all."
373 msgstr ""
374
375 #. type: =item
376 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
377 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
378 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
379 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:145
380 msgid "B<-d> guest"
381 msgstr ""
382
383 #. type: =item
384 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
385 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
386 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
387 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:147
388 msgid "B<--domain> guest"
389 msgstr ""
390
391 #. type: textblock
392 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
393 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
394 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
395 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:149
396 msgid ""
397 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
398 "instead of names."
399 msgstr ""
400
401 #. type: =item
402 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
403 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
404 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
405 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
406 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:152
407 msgid "B<--format=raw|qcow2|..>"
408 msgstr ""
409
410 #. type: =item
411 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
412 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
413 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
414 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
415 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
416 #: ../rescue/virt-rescue.pod:154
417 msgid "B<--format>"
418 msgstr ""
419
420 #. type: textblock
421 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
422 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
423 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
424 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
425 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:156
426 msgid ""
427 "The default for the I<-a> option is to auto-detect the format of the disk "
428 "image.  Using this forces the disk format for I<-a> options which follow on "
429 "the command line.  Using I<--format> with no argument switches back to auto-"
430 "detection for subsequent I<-a> options."
431 msgstr ""
432
433 #. type: textblock
434 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
435 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
436 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
437 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
438 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351
439 #: ../rescue/virt-rescue.pod:161 ../src/guestfs.pod:2878
440 msgid "For example:"
441 msgstr ""
442
443 #. type: verbatim
444 #: ../align/virt-alignment-scan.pod:134
445 #, no-wrap
446 msgid ""
447 " virt-alignment-scan --format=raw -a disk.img\n"
448 "\n"
449 msgstr ""
450
451 #. type: textblock
452 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
453 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
454 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
455 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
456 #: ../rescue/virt-rescue.pod:165
457 msgid "forces raw format (no auto-detection) for C<disk.img>."
458 msgstr ""
459
460 #. type: verbatim
461 #: ../align/virt-alignment-scan.pod:138
462 #, no-wrap
463 msgid ""
464 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
465 "\n"
466 msgstr ""
467
468 #. type: textblock
469 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
470 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
471 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
472 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
473 #: ../rescue/virt-rescue.pod:169
474 msgid ""
475 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
476 "detection for C<another.img>."
477 msgstr ""
478
479 #. type: textblock
480 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
481 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
482 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
483 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:172
484 msgid ""
485 "If you have untrusted raw-format guest disk images, you should use this "
486 "option to specify the disk format.  This avoids a possible security problem "
487 "with malicious guests (CVE-2010-3851)."
488 msgstr ""
489
490 #. type: =item
491 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:497
492 #: ../sparsify/virt-sparsify.pod:177
493 msgid "B<-q>"
494 msgstr ""
495
496 #. type: =item
497 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:499
498 #: ../sparsify/virt-sparsify.pod:179
499 msgid "B<--quiet>"
500 msgstr ""
501
502 #. type: textblock
503 #: ../align/virt-alignment-scan.pod:151
504 msgid ""
505 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
506 "below)."
507 msgstr ""
508
509 #. type: =item
510 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
511 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
512 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
513 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
514 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
515 #: ../rescue/virt-rescue.pod:219 ../sparsify/virt-sparsify.pod:183
516 msgid "B<-v>"
517 msgstr ""
518
519 #. type: =item
520 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
521 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
522 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
523 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
524 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
525 #: ../rescue/virt-rescue.pod:221 ../sparsify/virt-sparsify.pod:185
526 msgid "B<--verbose>"
527 msgstr ""
528
529 #. type: textblock
530 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
531 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
532 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
533 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
534 #: ../rescue/virt-rescue.pod:223 ../sparsify/virt-sparsify.pod:187
535 msgid "Enable verbose messages for debugging."
536 msgstr ""
537
538 #. type: =item
539 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
540 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
541 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
542 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
543 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
544 #: ../rescue/virt-rescue.pod:225 ../resize/virt-resize.pod:567
545 #: ../sparsify/virt-sparsify.pod:189
546 msgid "B<-V>"
547 msgstr ""
548
549 #. type: =item
550 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
551 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
552 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
553 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
554 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
555 #: ../rescue/virt-rescue.pod:227 ../resize/virt-resize.pod:569
556 #: ../sparsify/virt-sparsify.pod:191 ../tools/virt-list-filesystems.pl:69
557 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
558 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
559 msgid "B<--version>"
560 msgstr ""
561
562 #. type: textblock
563 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
564 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
565 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
566 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
567 #: ../rescue/virt-rescue.pod:229 ../resize/virt-resize.pod:571
568 #: ../sparsify/virt-sparsify.pod:193 ../tools/virt-list-filesystems.pl:71
569 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
570 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
571 msgid "Display version number and exit."
572 msgstr ""
573
574 #. type: =item
575 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
576 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
577 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
578 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
579 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
580 #: ../rescue/virt-rescue.pod:240 ../sparsify/virt-sparsify.pod:195
581 #: ../tools/virt-tar.pl:158
582 msgid "B<-x>"
583 msgstr ""
584
585 #. type: textblock
586 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
587 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
588 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
589 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
590 #: ../rescue/virt-rescue.pod:242 ../sparsify/virt-sparsify.pod:197
591 msgid "Enable tracing of libguestfs API calls."
592 msgstr ""
593
594 #. type: =head1
595 #: ../align/virt-alignment-scan.pod:172
596 msgid "RECOMMENDED ALIGNMENT"
597 msgstr ""
598
599 #. type: textblock
600 #: ../align/virt-alignment-scan.pod:174
601 msgid ""
602 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
603 "first sector of the first partition at sector 63, with a 512 byte sector "
604 "size.  This happens because of a historical accident.  Drives have to report "
605 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
606 "completely meaningless on modern drives, but it happens that the geometry "
607 "reported always has 63 sectors per track.  The operating system therefore "
608 "places the first partition at the start of the second \"track\", at sector "
609 "63."
610 msgstr ""
611
612 #. type: textblock
613 #: ../align/virt-alignment-scan.pod:183
614 msgid ""
615 "When the guest OS is virtualized, the host operating system and hypervisor "
616 "may prefer accesses aligned to one of:"
617 msgstr ""
618
619 #. type: =item
620 #: ../align/virt-alignment-scan.pod:188
621 msgid "* 512 bytes"
622 msgstr ""
623
624 #. type: textblock
625 #: ../align/virt-alignment-scan.pod:190
626 msgid ""
627 "if the host OS uses local storage directly on hard drive partitions, and the "
628 "hard drive has 512 byte physical sectors."
629 msgstr ""
630
631 #. type: =item
632 #: ../align/virt-alignment-scan.pod:193
633 msgid "* 4 Kbytes"
634 msgstr ""
635
636 #. type: textblock
637 #: ../align/virt-alignment-scan.pod:195
638 msgid ""
639 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
640 "backed storage on filesystems with 4Kbyte block size; or for some types of "
641 "network-attached storage."
642 msgstr ""
643
644 #. type: =item
645 #: ../align/virt-alignment-scan.pod:199
646 msgid "* 64 Kbytes"
647 msgstr ""
648
649 #. type: textblock
650 #: ../align/virt-alignment-scan.pod:201
651 msgid ""
652 "for high-end network-attached storage.  This is the optimal block size for "
653 "some NetApp hardware."
654 msgstr ""
655
656 #. type: =item
657 #: ../align/virt-alignment-scan.pod:204
658 msgid "* 1 Mbyte"
659 msgstr ""
660
661 #. type: textblock
662 #: ../align/virt-alignment-scan.pod:206
663 msgid "see L</1 MB PARTITION ALIGNMENT> below."
664 msgstr ""
665
666 #. type: textblock
667 #: ../align/virt-alignment-scan.pod:210
668 msgid ""
669 "Partitions which are not aligned correctly to the underlying storage cause "
670 "extra I/O.  For example:"
671 msgstr ""
672
673 #. type: verbatim
674 #: ../align/virt-alignment-scan.pod:213
675 #, no-wrap
676 msgid ""
677 "                       sect#63\n"
678 "                       +--------------------------+------\n"
679 "                       |         guest            |\n"
680 "                       |    filesystem block      |\n"
681 " ---+------------------+------+-------------------+-----+---\n"
682 "    |  host block             |  host block             |\n"
683 "    |                         |                         |\n"
684 " ---+-------------------------+-------------------------+---\n"
685 "\n"
686 msgstr ""
687
688 #. type: textblock
689 #: ../align/virt-alignment-scan.pod:222
690 msgid ""
691 "In this example, each time a 4K guest block is read, two blocks on the host "
692 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
693 "written, two host blocks must first be read, the old and new data combined, "
694 "and the two blocks written back (4x I/O)."
695 msgstr ""
696
697 #. type: =head2
698 #: ../align/virt-alignment-scan.pod:227
699 msgid "LINUX HOST BLOCK AND I/O SIZE"
700 msgstr ""
701
702 #. type: textblock
703 #: ../align/virt-alignment-scan.pod:229
704 msgid ""
705 "New versions of the Linux kernel expose the physical and logical block size, "
706 "and minimum and recommended I/O size."
707 msgstr ""
708
709 #. type: textblock
710 #: ../align/virt-alignment-scan.pod:232
711 msgid "For a typical consumer hard drive with 512 byte sectors:"
712 msgstr ""
713
714 #. type: verbatim
715 #: ../align/virt-alignment-scan.pod:234
716 #, no-wrap
717 msgid ""
718 " $ cat /sys/block/sda/queue/hw_sector_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/physical_block_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/logical_block_size\n"
723 " 512\n"
724 " $ cat /sys/block/sda/queue/minimum_io_size\n"
725 " 512\n"
726 " $ cat /sys/block/sda/queue/optimal_io_size\n"
727 " 0\n"
728 "\n"
729 msgstr ""
730
731 #. type: textblock
732 #: ../align/virt-alignment-scan.pod:245
733 msgid "For a new consumer hard drive with 4Kbyte sectors:"
734 msgstr ""
735
736 #. type: verbatim
737 #: ../align/virt-alignment-scan.pod:247
738 #, no-wrap
739 msgid ""
740 " $ cat /sys/block/sda/queue/hw_sector_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sda/queue/physical_block_size\n"
743 " 4096\n"
744 " $ cat /sys/block/sda/queue/logical_block_size\n"
745 " 4096\n"
746 " $ cat /sys/block/sda/queue/minimum_io_size\n"
747 " 4096\n"
748 " $ cat /sys/block/sda/queue/optimal_io_size\n"
749 " 0\n"
750 "\n"
751 msgstr ""
752
753 #. type: textblock
754 #: ../align/virt-alignment-scan.pod:258
755 msgid "For a NetApp LUN:"
756 msgstr ""
757
758 #. type: verbatim
759 #: ../align/virt-alignment-scan.pod:260
760 #, no-wrap
761 msgid ""
762 " $ cat /sys/block/sdc/queue/logical_block_size\n"
763 " 512\n"
764 " $ cat /sys/block/sdc/queue/physical_block_size\n"
765 " 512\n"
766 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
767 " 4096\n"
768 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
769 " 65536\n"
770 "\n"
771 msgstr ""
772
773 #. type: textblock
774 #: ../align/virt-alignment-scan.pod:269
775 msgid ""
776 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
777 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
778 msgstr ""
779
780 #. type: textblock
781 #: ../align/virt-alignment-scan.pod:273
782 msgid ""
783 "For detailed information about what these numbers mean, see L<http://docs."
784 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
785 "Storage_Administration_Guide/newstorage-iolimits.html>"
786 msgstr ""
787
788 #. type: textblock
789 #: ../align/virt-alignment-scan.pod:276
790 msgid ""
791 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
792 "for providing NetApp data and additional information.]"
793 msgstr ""
794
795 #. type: =head2
796 #: ../align/virt-alignment-scan.pod:279
797 msgid "1 MB PARTITION ALIGNMENT"
798 msgstr ""
799
800 #. type: textblock
801 #: ../align/virt-alignment-scan.pod:281
802 msgid ""
803 "Microsoft picked 1 MB as the default alignment for all partitions starting "
804 "with Windows 2008 Server, and Linux has followed this."
805 msgstr ""
806
807 #. type: textblock
808 #: ../align/virt-alignment-scan.pod:284
809 msgid ""
810 "Assuming 512 byte sectors in the guest, you will now see the first partition "
811 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
812 "multiple of 2048 sectors."
813 msgstr ""
814
815 #. type: textblock
816 #: ../align/virt-alignment-scan.pod:288
817 msgid ""
818 "1 MB alignment is compatible with all current alignment requirements (4K, "
819 "64K) and provides room for future growth in physical block sizes."
820 msgstr ""
821
822 #. type: =head2
823 #: ../align/virt-alignment-scan.pod:291
824 msgid "SETTING ALIGNMENT"
825 msgstr ""
826
827 #. type: textblock
828 #: ../align/virt-alignment-scan.pod:293
829 msgid ""
830 "L<virt-resize(1)> can change the alignment of the partitions of some "
831 "guests.  Currently it can fully align all the partitions of all Windows "
832 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
833 "it can align the second and subsequent partitions, so the majority of OS "
834 "accesses except at boot will be aligned."
835 msgstr ""
836
837 #. type: textblock
838 #: ../align/virt-alignment-scan.pod:299
839 msgid ""
840 "Another way to correct partition alignment problems is to reinstall your "
841 "guest operating systems.  If you install operating systems from templates, "
842 "ensure these have correct partition alignment too."
843 msgstr ""
844
845 #. type: textblock
846 #: ../align/virt-alignment-scan.pod:303
847 msgid ""
848 "For older versions of Windows, the following NetApp document contains useful "
849 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
850 msgstr ""
851
852 #. type: textblock
853 #: ../align/virt-alignment-scan.pod:306
854 msgid ""
855 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
856 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
857 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
858 "contains an example."
859 msgstr ""
860
861 #. type: =head1
862 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
863 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
864 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:241
865 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
866 #: ../rescue/virt-rescue.pod:303 ../resize/virt-resize.pod:682
867 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
868 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
869 #: ../tools/virt-win-reg.pl:744
870 msgid "SHELL QUOTING"
871 msgstr ""
872
873 #. type: textblock
874 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
875 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
876 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243
877 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
878 #: ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:684
879 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
880 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
881 #: ../tools/virt-win-reg.pl:752
882 msgid ""
883 "Libvirt guest names can contain arbitrary characters, some of which have "
884 "meaning to the shell such as C<#> and space.  You may need to quote or "
885 "escape these characters on the command line.  See the shell manual page L<sh"
886 "(1)> for details."
887 msgstr ""
888
889 #. type: =head1
890 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
891 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
892 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:248
893 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
894 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
895 #: ../resize/virt-resize.pod:689 ../sparsify/virt-sparsify.pod:251
896 #: ../test-tool/libguestfs-test-tool.pod:90
897 msgid "EXIT STATUS"
898 msgstr ""
899
900 #. type: textblock
901 #: ../align/virt-alignment-scan.pod:320
902 msgid "This program returns:"
903 msgstr ""
904
905 #. type: =item
906 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
907 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
908 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
909 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
910 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
911 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
912 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
913 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
914 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
915 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
916 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
917 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
918 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
919 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
920 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
921 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
922 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
923 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
924 #: ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114
925 #: ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:13
926 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:441
927 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:456
928 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:1293
929 #: ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1301
930 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1313
931 #: ../fish/guestfish-actions.pod:1317 ../fish/guestfish-actions.pod:1321
932 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
933 #: ../fish/guestfish-actions.pod:1339 ../fish/guestfish-actions.pod:1429
934 #: ../fish/guestfish-actions.pod:1433 ../fish/guestfish-actions.pod:1438
935 #: ../fish/guestfish-actions.pod:1443 ../fish/guestfish-actions.pod:1485
936 #: ../fish/guestfish-actions.pod:1489 ../fish/guestfish-actions.pod:1494
937 #: ../fish/guestfish-actions.pod:1750 ../fish/guestfish-actions.pod:1757
938 #: ../fish/guestfish-actions.pod:1764 ../fish/guestfish-actions.pod:2167
939 #: ../fish/guestfish-actions.pod:2173 ../fish/guestfish-actions.pod:2181
940 #: ../fish/guestfish-actions.pod:2188 ../fish/guestfish-actions.pod:2195
941 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
942 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
943 #: ../inspector/virt-inspector.pod:408 ../inspector/virt-inspector.pod:412
944 #: ../resize/virt-resize.pod:365 ../resize/virt-resize.pod:369
945 #: ../resize/virt-resize.pod:378 ../resize/virt-resize.pod:384
946 #: ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39
947 #: ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49
948 #: ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58
949 #: ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22
950 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:641
951 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:656
952 #: ../src/guestfs-actions.pod:663 ../src/guestfs-actions.pod:2118
953 #: ../src/guestfs-actions.pod:2122 ../src/guestfs-actions.pod:2126
954 #: ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:2138
955 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2146
956 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2160
957 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2302
958 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2311
959 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2377
960 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2386
961 #: ../src/guestfs-actions.pod:2801 ../src/guestfs-actions.pod:2808
962 #: ../src/guestfs-actions.pod:2815 ../src/guestfs-actions.pod:3360
963 #: ../src/guestfs-actions.pod:3366 ../src/guestfs-actions.pod:3374
964 #: ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3388
965 #: ../src/guestfs.pod:403 ../src/guestfs.pod:408 ../src/guestfs.pod:413
966 #: ../src/guestfs.pod:417 ../src/guestfs.pod:422 ../src/guestfs.pod:426
967 #: ../src/guestfs.pod:431 ../src/guestfs.pod:436 ../src/guestfs.pod:1109
968 #: ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1122
969 #: ../src/guestfs.pod:1130 ../src/guestfs.pod:1149 ../src/guestfs.pod:1157
970 #: ../src/guestfs.pod:1179 ../src/guestfs.pod:1183 ../src/guestfs.pod:1187
971 #: ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1199
972 #: ../src/guestfs.pod:1689 ../src/guestfs.pod:1694 ../src/guestfs.pod:1698
973 #: ../src/guestfs.pod:1800 ../src/guestfs.pod:1805 ../src/guestfs.pod:1809
974 #: ../src/guestfs.pod:1819 ../src/guestfs.pod:2108 ../src/guestfs.pod:2113
975 #: ../src/guestfs.pod:2119 ../src/guestfs.pod:2127 ../src/guestfs.pod:2645
976 #: ../src/guestfs.pod:2651 ../src/guestfs.pod:2656 ../src/guestfs.pod:2662
977 #: ../src/guestfs.pod:3048 ../src/guestfs.pod:3053 ../src/guestfs.pod:3057
978 #: ../src/guestfs.pod:3061 ../src/guestfs.pod:3065 ../src/guestfs.pod:3079
979 #: ../src/guestfs.pod:3084 ../src/guestfs.pod:3316 ../src/guestfs.pod:3320
980 #: ../src/guestfs.pod:3324 ../src/guestfs.pod:3328
981 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
982 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721
983 #: ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733
984 msgid "*"
985 msgstr ""
986
987 #. type: textblock
988 #: ../align/virt-alignment-scan.pod:326
989 msgid "0"
990 msgstr ""
991
992 #. type: textblock
993 #: ../align/virt-alignment-scan.pod:328
994 msgid ""
995 "successful exit, all partitions are aligned E<ge> 64K for best performance"
996 msgstr ""
997
998 #. type: textblock
999 #: ../align/virt-alignment-scan.pod:332
1000 msgid "1"
1001 msgstr ""
1002
1003 #. type: textblock
1004 #: ../align/virt-alignment-scan.pod:334
1005 msgid "an error scanning the disk image or guest"
1006 msgstr ""
1007
1008 #. type: textblock
1009 #: ../align/virt-alignment-scan.pod:338
1010 msgid "2"
1011 msgstr ""
1012
1013 #. type: textblock
1014 #: ../align/virt-alignment-scan.pod:340
1015 msgid ""
1016 "successful exit, some partitions have alignment E<lt> 64K which can result "
1017 "in poor performance on high end network storage"
1018 msgstr ""
1019
1020 #. type: textblock
1021 #: ../align/virt-alignment-scan.pod:345
1022 msgid "3"
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../align/virt-alignment-scan.pod:347
1027 msgid ""
1028 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1029 "poor performance on most hypervisors"
1030 msgstr ""
1031
1032 #. type: =head1
1033 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1034 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1035 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253
1036 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1037 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1038 #: ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1268
1039 #: ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39
1040 #: ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41
1041 #: ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:395
1042 #: ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78
1043 #: ../perl/examples/guestfs-perl.pod:39
1044 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:325
1045 #: ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:36
1046 #: ../sparsify/virt-sparsify.pod:275 ../src/guestfs.pod:3256
1047 #: ../test-tool/libguestfs-test-tool.pod:100
1048 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1049 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1050 #: ../tools/virt-win-reg.pl:757
1051 msgid "SEE ALSO"
1052 msgstr ""
1053
1054 #. type: textblock
1055 #: ../align/virt-alignment-scan.pod:354
1056 msgid ""
1057 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1058 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1059 msgstr ""
1060
1061 #. type: =head1
1062 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1063 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1064 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:261
1065 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334
1066 #: ../resize/virt-resize.pod:717 ../sparsify/virt-sparsify.pod:288
1067 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1068 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1069 #: ../tools/virt-win-reg.pl:783
1070 msgid "AUTHOR"
1071 msgstr ""
1072
1073 #. type: textblock
1074 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1075 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1076 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:263
1077 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1078 #: ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:719
1079 #: ../sparsify/virt-sparsify.pod:290 ../tools/virt-list-filesystems.pl:210
1080 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1081 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1082 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1083 msgstr ""
1084
1085 #. type: =head1
1086 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1087 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1088 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:265
1089 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1090 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1091 #: ../examples/guestfs-testing.pod:302 ../fish/guestfish.pod:1300
1092 #: ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53
1093 #: ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55
1094 #: ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:418
1095 #: ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95
1096 #: ../perl/examples/guestfs-perl.pod:56
1097 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:338
1098 #: ../resize/virt-resize.pod:721 ../ruby/examples/guestfs-ruby.pod:52
1099 #: ../sparsify/virt-sparsify.pod:292 ../src/guestfs.pod:3339
1100 #: ../test-tool/libguestfs-test-tool.pod:110
1101 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1102 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1103 #: ../tools/virt-win-reg.pl:787
1104 msgid "COPYRIGHT"
1105 msgstr ""
1106
1107 #. type: textblock
1108 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1109 #: ../sparsify/virt-sparsify.pod:294
1110 msgid "Copyright (C) 2011 Red Hat Inc."
1111 msgstr ""
1112
1113 #. type: textblock
1114 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1115 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1116 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:269
1117 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1118 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1119 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1120 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1121 #: ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:725
1122 #: ../sparsify/virt-sparsify.pod:296 ../test-tool/libguestfs-test-tool.pod:115
1123 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1124 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1125 #: ../tools/virt-win-reg.pl:791
1126 msgid ""
1127 "This program is free software; you can redistribute it and/or modify it "
1128 "under the terms of the GNU General Public License as published by the Free "
1129 "Software Foundation; either version 2 of the License, or (at your option) "
1130 "any later version."
1131 msgstr ""
1132
1133 #. type: textblock
1134 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1135 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1136 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:274
1137 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1138 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1139 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1140 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1141 #: ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:730
1142 #: ../sparsify/virt-sparsify.pod:301 ../test-tool/libguestfs-test-tool.pod:120
1143 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1144 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1145 #: ../tools/virt-win-reg.pl:796
1146 msgid ""
1147 "This program is distributed in the hope that it will be useful, but WITHOUT "
1148 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1149 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1150 "more details."
1151 msgstr ""
1152
1153 #. type: textblock
1154 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1155 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1156 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:279
1157 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1158 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1159 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1160 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1161 #: ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:735
1162 #: ../sparsify/virt-sparsify.pod:306 ../test-tool/libguestfs-test-tool.pod:125
1163 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1164 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1165 #: ../tools/virt-win-reg.pl:801
1166 msgid ""
1167 "You should have received a copy of the GNU General Public License along with "
1168 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1169 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1170 msgstr ""
1171
1172 #. type: textblock
1173 #: ../cat/virt-cat.pod:5
1174 msgid "virt-cat - Display files in a virtual machine"
1175 msgstr ""
1176
1177 #. type: verbatim
1178 #: ../cat/virt-cat.pod:9
1179 #, no-wrap
1180 msgid ""
1181 " virt-cat [--options] -d domname file [file ...]\n"
1182 "\n"
1183 msgstr ""
1184
1185 #. type: verbatim
1186 #: ../cat/virt-cat.pod:11
1187 #, no-wrap
1188 msgid ""
1189 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1190 "\n"
1191 msgstr ""
1192
1193 #. type: textblock
1194 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1195 #: ../inspector/virt-inspector.pod:13
1196 msgid "Old-style:"
1197 msgstr ""
1198
1199 #. type: verbatim
1200 #: ../cat/virt-cat.pod:15
1201 #, no-wrap
1202 msgid ""
1203 " virt-cat domname file\n"
1204 "\n"
1205 msgstr ""
1206
1207 #. type: verbatim
1208 #: ../cat/virt-cat.pod:17
1209 #, no-wrap
1210 msgid ""
1211 " virt-cat disk.img file\n"
1212 "\n"
1213 msgstr ""
1214
1215 #. type: textblock
1216 #: ../cat/virt-cat.pod:21
1217 msgid ""
1218 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1219 "C<file> exists in the named virtual machine (or disk image)."
1220 msgstr ""
1221
1222 #. type: textblock
1223 #: ../cat/virt-cat.pod:24
1224 msgid ""
1225 "Multiple filenames can be given, in which case they are concatenated "
1226 "together.  Each filename must be a full path, starting at the root directory "
1227 "(starting with '/')."
1228 msgstr ""
1229
1230 #. type: textblock
1231 #: ../cat/virt-cat.pod:28
1232 msgid ""
1233 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1234 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1235 "(see L</USING GUESTFISH> below)."
1236 msgstr ""
1237
1238 #. type: =head1
1239 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1240 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1241 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1242 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1243 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1244 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1245 #: ../tools/virt-tar.pl:50
1246 msgid "EXAMPLES"
1247 msgstr ""
1248
1249 #. type: textblock
1250 #: ../cat/virt-cat.pod:34
1251 msgid ""
1252 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1253 msgstr ""
1254
1255 #. type: verbatim
1256 #: ../cat/virt-cat.pod:37
1257 #, no-wrap
1258 msgid ""
1259 " virt-cat -d mydomain /etc/fstab\n"
1260 "\n"
1261 msgstr ""
1262
1263 #. type: textblock
1264 #: ../cat/virt-cat.pod:39
1265 msgid "List syslog messages from a VM disk image file:"
1266 msgstr ""
1267
1268 #. type: verbatim
1269 #: ../cat/virt-cat.pod:41
1270 #, no-wrap
1271 msgid ""
1272 " virt-cat -a disk.img /var/log/messages | tail\n"
1273 "\n"
1274 msgstr ""
1275
1276 #. type: textblock
1277 #: ../cat/virt-cat.pod:43
1278 msgid "Find out what DHCP IP address a VM acquired:"
1279 msgstr ""
1280
1281 #. type: verbatim
1282 #: ../cat/virt-cat.pod:45
1283 #, no-wrap
1284 msgid ""
1285 " virt-cat -d mydomain /var/log/messages | \\\n"
1286 "   grep 'dhclient: bound to' | tail\n"
1287 "\n"
1288 msgstr ""
1289
1290 #. type: textblock
1291 #: ../cat/virt-cat.pod:48
1292 msgid "Find out what packages were recently installed:"
1293 msgstr ""
1294
1295 #. type: verbatim
1296 #: ../cat/virt-cat.pod:50
1297 #, no-wrap
1298 msgid ""
1299 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1300 "\n"
1301 msgstr ""
1302
1303 #. type: textblock
1304 #: ../cat/virt-cat.pod:52
1305 msgid "Find out who is logged on inside a virtual machine:"
1306 msgstr ""
1307
1308 #. type: verbatim
1309 #: ../cat/virt-cat.pod:54
1310 #, no-wrap
1311 msgid ""
1312 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1313 " who /tmp/utmp\n"
1314 "\n"
1315 msgstr ""
1316
1317 #. type: textblock
1318 #: ../cat/virt-cat.pod:57
1319 msgid "or who was logged on:"
1320 msgstr ""
1321
1322 #. type: verbatim
1323 #: ../cat/virt-cat.pod:59
1324 #, no-wrap
1325 msgid ""
1326 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1327 " last -f /tmp/wtmp\n"
1328 "\n"
1329 msgstr ""
1330
1331 #. type: textblock
1332 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1333 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1334 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:124
1335 msgid ""
1336 "Add I<file> which should be a disk image from a virtual machine.  If the "
1337 "virtual machine has multiple block devices, you must supply all of them with "
1338 "separate I<-a> options."
1339 msgstr ""
1340
1341 #. type: =item
1342 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1343 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1344 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1345 msgid "B<--echo-keys>"
1346 msgstr ""
1347
1348 #. type: textblock
1349 #: ../cat/virt-cat.pod:100
1350 msgid ""
1351 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1352 "so you cannot see what you are typing.  If you are not worried about Tempest "
1353 "attacks and there is no one else in the room you can specify this flag to "
1354 "see what you are typing."
1355 msgstr ""
1356
1357 #. type: verbatim
1358 #: ../cat/virt-cat.pod:116
1359 #, no-wrap
1360 msgid ""
1361 " virt-cat --format=raw -a disk.img file\n"
1362 "\n"
1363 msgstr ""
1364
1365 #. type: verbatim
1366 #: ../cat/virt-cat.pod:120
1367 #, no-wrap
1368 msgid ""
1369 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1370 "\n"
1371 msgstr ""
1372
1373 #. type: =item
1374 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1375 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1376 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1377 msgid "B<--keys-from-stdin>"
1378 msgstr ""
1379
1380 #. type: textblock
1381 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1382 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1383 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1384 msgid ""
1385 "Read key or passphrase parameters from stdin.  The default is to try to read "
1386 "passphrases from the user by opening C</dev/tty>."
1387 msgstr ""
1388
1389 #. type: =head1
1390 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1391 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:246
1392 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1393 msgstr ""
1394
1395 #. type: textblock
1396 #: ../cat/virt-cat.pod:154
1397 msgid "Previous versions of virt-cat allowed you to write either:"
1398 msgstr ""
1399
1400 #. type: verbatim
1401 #: ../cat/virt-cat.pod:156
1402 #, no-wrap
1403 msgid ""
1404 " virt-cat disk.img [disk.img ...] file\n"
1405 "\n"
1406 msgstr ""
1407
1408 #. type: textblock
1409 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1410 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:252
1411 msgid "or"
1412 msgstr ""
1413
1414 #. type: verbatim
1415 #: ../cat/virt-cat.pod:160
1416 #, no-wrap
1417 msgid ""
1418 " virt-cat guestname file\n"
1419 "\n"
1420 msgstr ""
1421
1422 #. type: textblock
1423 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1424 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:256
1425 msgid ""
1426 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1427 "the confusing case where a disk image might have the same name as a guest."
1428 msgstr ""
1429
1430 #. type: textblock
1431 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1432 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:260
1433 msgid "For compatibility the old style is still supported."
1434 msgstr ""
1435
1436 #. type: =head1
1437 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1438 msgid "WINDOWS PATHS"
1439 msgstr ""
1440
1441 #. type: textblock
1442 #: ../cat/virt-cat.pod:170
1443 msgid ""
1444 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1445 "paths (eg. C<E:\\foo\\bar.txt>)."
1446 msgstr ""
1447
1448 #. type: textblock
1449 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1450 msgid "If and only if the guest is running Windows then:"
1451 msgstr ""
1452
1453 #. type: textblock
1454 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1455 msgid ""
1456 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1457 "to the correct filesystem."
1458 msgstr ""
1459
1460 #. type: textblock
1461 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1462 msgid ""
1463 "Any backslash (C<\\>) characters in the path are replaced with forward "
1464 "slashes so that libguestfs can process it."
1465 msgstr ""
1466
1467 #. type: textblock
1468 #: ../cat/virt-cat.pod:189
1469 msgid ""
1470 "The path is resolved case insensitively to locate the file that should be "
1471 "displayed."
1472 msgstr ""
1473
1474 #. type: textblock
1475 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1476 msgid "There are some known shortcomings:"
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1481 msgid "Some NTFS symbolic links may not be followed correctly."
1482 msgstr ""
1483
1484 #. type: textblock
1485 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1486 msgid "NTFS junction points that cross filesystems are not followed."
1487 msgstr ""
1488
1489 #. type: =head1
1490 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1491 msgid "USING GUESTFISH"
1492 msgstr ""
1493
1494 #. type: textblock
1495 #: ../cat/virt-cat.pod:210
1496 msgid ""
1497 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1498 "C<virt-cat> doesn't work."
1499 msgstr ""
1500
1501 #. type: textblock
1502 #: ../cat/virt-cat.pod:213
1503 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1504 msgstr ""
1505
1506 #. type: verbatim
1507 #: ../cat/virt-cat.pod:215
1508 #, no-wrap
1509 msgid ""
1510 " guestfish --ro -i -d domname download file -\n"
1511 "\n"
1512 msgstr ""
1513
1514 #. type: textblock
1515 #: ../cat/virt-cat.pod:217
1516 msgid ""
1517 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1518 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1519 msgstr ""
1520
1521 #. type: textblock
1522 #: ../cat/virt-cat.pod:221
1523 msgid ""
1524 "The command above uses libguestfs's guest inspection feature and so does not "
1525 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1526 "disk images that don't contain guests.  To display a file from a disk image "
1527 "directly, use:"
1528 msgstr ""
1529
1530 #. type: verbatim
1531 #: ../cat/virt-cat.pod:226
1532 #, no-wrap
1533 msgid ""
1534 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1535 "\n"
1536 msgstr ""
1537
1538 #. type: textblock
1539 #: ../cat/virt-cat.pod:228
1540 msgid ""
1541 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1542 "the disk image, and C<file> is the full path to the file."
1543 msgstr ""
1544
1545 #. type: textblock
1546 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1547 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:250 ../edit/virt-edit.pod:351
1548 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1549 #: ../resize/virt-resize.pod:691 ../sparsify/virt-sparsify.pod:253
1550 msgid ""
1551 "This program returns 0 if successful, or non-zero if there was an error."
1552 msgstr ""
1553
1554 #. type: textblock
1555 #: ../cat/virt-cat.pod:245
1556 msgid ""
1557 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1558 "tar-out(1)>, L<http://libguestfs.org/>."
1559 msgstr ""
1560
1561 #. type: textblock
1562 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1563 #: ../resize/virt-resize.pod:723 ../tools/virt-make-fs.pl:588
1564 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1565 msgstr ""
1566
1567 #. type: textblock
1568 #: ../cat/virt-filesystems.pod:5
1569 msgid ""
1570 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1571 "virtual machine or disk image"
1572 msgstr ""
1573
1574 #. type: verbatim
1575 #: ../cat/virt-filesystems.pod:9
1576 #, no-wrap
1577 msgid ""
1578 " virt-filesystems [--options] -d domname\n"
1579 "\n"
1580 msgstr ""
1581
1582 #. type: verbatim
1583 #: ../cat/virt-filesystems.pod:11
1584 #, no-wrap
1585 msgid ""
1586 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1587 "\n"
1588 msgstr ""
1589
1590 #. type: textblock
1591 #: ../cat/virt-filesystems.pod:15
1592 msgid ""
1593 "This tool allows you to discover filesystems, partitions, logical volumes, "
1594 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1595 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1596 msgstr ""
1597
1598 #. type: textblock
1599 #: ../cat/virt-filesystems.pod:20
1600 msgid ""
1601 "One use for this tool is from shell scripts to iterate over all filesystems "
1602 "from a disk image:"
1603 msgstr ""
1604
1605 #. type: verbatim
1606 #: ../cat/virt-filesystems.pod:23
1607 #, no-wrap
1608 msgid ""
1609 " for fs in $(virt-filesystems -a disk.img); do\n"
1610 "   # ...\n"
1611 " done\n"
1612 "\n"
1613 msgstr ""
1614
1615 #. type: textblock
1616 #: ../cat/virt-filesystems.pod:27
1617 msgid ""
1618 "Another use is to list partitions before using another tool to modify those "
1619 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1620 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1621 msgstr ""
1622
1623 #. type: textblock
1624 #: ../cat/virt-filesystems.pod:32
1625 msgid ""
1626 "Various command line options control what this program displays.  You need "
1627 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1628 "guest respectively.  If you just specify that then the program shows "
1629 "filesystems found, one per line, like this:"
1630 msgstr ""
1631
1632 #. type: verbatim
1633 #: ../cat/virt-filesystems.pod:37
1634 #, no-wrap
1635 msgid ""
1636 " $ virt-filesystems -a disk.img\n"
1637 " /dev/sda1\n"
1638 " /dev/vg_guest/lv_root\n"
1639 "\n"
1640 msgstr ""
1641
1642 #. type: textblock
1643 #: ../cat/virt-filesystems.pod:41
1644 msgid ""
1645 "If you add I<-l> or I<--long> then the output includes extra information:"
1646 msgstr ""
1647
1648 #. type: verbatim
1649 #: ../cat/virt-filesystems.pod:44
1650 #, no-wrap
1651 msgid ""
1652 " $ virt-filesystems -a disk.img -l\n"
1653 " Name                   Type         VFS   Label  Size\n"
1654 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1655 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1656 "\n"
1657 msgstr ""
1658
1659 #. type: textblock
1660 #: ../cat/virt-filesystems.pod:49
1661 msgid ""
1662 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1663 "shown as well:"
1664 msgstr ""
1665
1666 #. type: verbatim
1667 #: ../cat/virt-filesystems.pod:52
1668 #, no-wrap
1669 msgid ""
1670 " $ virt-filesystems -a disk.img --extra\n"
1671 " /dev/sda1\n"
1672 " /dev/vg_guest/lv_root\n"
1673 " /dev/vg_guest/lv_swap\n"
1674 " /dev/vg_guest/lv_data\n"
1675 "\n"
1676 msgstr ""
1677
1678 #. type: textblock
1679 #: ../cat/virt-filesystems.pod:58
1680 msgid ""
1681 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1682 msgstr ""
1683
1684 #. type: verbatim
1685 #: ../cat/virt-filesystems.pod:60
1686 #, no-wrap
1687 msgid ""
1688 " $ virt-filesystems -a disk.img --partitions\n"
1689 " /dev/sda1\n"
1690 " /dev/sda2\n"
1691 "\n"
1692 msgstr ""
1693
1694 #. type: textblock
1695 #: ../cat/virt-filesystems.pod:64
1696 msgid ""
1697 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1698 "volumes>, I<--block-devices> to list those items."
1699 msgstr ""
1700
1701 #. type: textblock
1702 #: ../cat/virt-filesystems.pod:67
1703 msgid ""
1704 "You can use these options in combination as well (if you want a combination "
1705 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1706 "items fall into several categories (eg. C</dev/sda1> might be both a "
1707 "partition and a filesystem).  These items are listed several times.  To get "
1708 "a list which includes absolutely everything that virt-filesystems knows "
1709 "about, use the I<--all> option."
1710 msgstr ""
1711
1712 #. type: textblock
1713 #: ../cat/virt-filesystems.pod:74
1714 msgid ""
1715 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1716 "uuid> option to display device and filesystem UUIDs in the long output."
1717 msgstr ""
1718
1719 #. type: textblock
1720 #: ../cat/virt-filesystems.pod:78
1721 msgid ""
1722 "I<--all --long --uuid> is a useful combination to display all possible "
1723 "information about everything."
1724 msgstr ""
1725
1726 #. type: verbatim
1727 #: ../cat/virt-filesystems.pod:81
1728 #, no-wrap
1729 msgid ""
1730 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1731 " Name      Type       VFS  Label           Size Parent   UUID\n"
1732 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1733 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1734 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1735 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1736 " /dev/sda  device     -    -               20G  -        -\n"
1737 "\n"
1738 msgstr ""
1739
1740 #. type: textblock
1741 #: ../cat/virt-filesystems.pod:89
1742 msgid ""
1743 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1744 msgstr ""
1745
1746 #. type: =item
1747 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1748 msgid "B<--all>"
1749 msgstr ""
1750
1751 #. type: textblock
1752 #: ../cat/virt-filesystems.pod:112
1753 msgid ""
1754 "Display everything.  This is currently the same as specifying these options: "
1755 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1756 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1757 "added to this list in future)."
1758 msgstr ""
1759
1760 #. type: textblock
1761 #: ../cat/virt-filesystems.pod:117
1762 msgid "See also I<--long>."
1763 msgstr ""
1764
1765 #. type: =item
1766 #: ../cat/virt-filesystems.pod:119
1767 msgid "B<--blkdevs>"
1768 msgstr ""
1769
1770 #. type: =item
1771 #: ../cat/virt-filesystems.pod:121
1772 msgid "B<--block-devices>"
1773 msgstr ""
1774
1775 #. type: textblock
1776 #: ../cat/virt-filesystems.pod:123
1777 msgid "Display block devices."
1778 msgstr ""
1779
1780 #. type: =item
1781 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1782 msgid "B<--csv>"
1783 msgstr ""
1784
1785 #. type: textblock
1786 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1787 msgid ""
1788 "Write out the results in CSV format (comma-separated values).  This format "
1789 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1790 "ABOUT CSV FORMAT> below."
1791 msgstr ""
1792
1793 #. type: textblock
1794 #: ../cat/virt-filesystems.pod:150
1795 msgid ""
1796 "When prompting for keys and passphrases, virt-filesystems normally turns "
1797 "echoing off so you cannot see what you are typing.  If you are not worried "
1798 "about Tempest attacks and there is no one else in the room you can specify "
1799 "this flag to see what you are typing."
1800 msgstr ""
1801
1802 #. type: =item
1803 #: ../cat/virt-filesystems.pod:155
1804 msgid "B<--extra>"
1805 msgstr ""
1806
1807 #. type: textblock
1808 #: ../cat/virt-filesystems.pod:157
1809 msgid ""
1810 "This causes filesystems that are not ordinary, mountable filesystems to be "
1811 "displayed.  This category includes swapspace, and filesystems that are empty "
1812 "or contain unknown data."
1813 msgstr ""
1814
1815 #. type: textblock
1816 #: ../cat/virt-filesystems.pod:161
1817 msgid "This option implies I<--filesystems>."
1818 msgstr ""
1819
1820 #. type: =item
1821 #: ../cat/virt-filesystems.pod:163
1822 msgid "B<--filesystems>"
1823 msgstr ""
1824
1825 #. type: textblock
1826 #: ../cat/virt-filesystems.pod:165
1827 msgid ""
1828 "Display mountable filesystems.  If no display option was selected then this "
1829 "option is implied."
1830 msgstr ""
1831
1832 #. type: textblock
1833 #: ../cat/virt-filesystems.pod:168
1834 msgid "With I<--extra>, non-mountable filesystems are shown too."
1835 msgstr ""
1836
1837 #. type: verbatim
1838 #: ../cat/virt-filesystems.pod:181
1839 #, no-wrap
1840 msgid ""
1841 " virt-filesystems --format=raw -a disk.img\n"
1842 "\n"
1843 msgstr ""
1844
1845 #. type: verbatim
1846 #: ../cat/virt-filesystems.pod:185
1847 #, no-wrap
1848 msgid ""
1849 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1850 "\n"
1851 msgstr ""
1852
1853 #. type: =item
1854 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1855 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1856 #: ../tools/virt-list-partitions.pl:109
1857 msgid "B<-h>"
1858 msgstr ""
1859
1860 #. type: =item
1861 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1862 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1863 msgid "B<--human-readable>"
1864 msgstr ""
1865
1866 #. type: textblock
1867 #: ../cat/virt-filesystems.pod:198
1868 msgid "In I<--long> mode, display sizes in human-readable format."
1869 msgstr ""
1870
1871 #. type: =item
1872 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1873 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1874 msgid "B<-l>"
1875 msgstr ""
1876
1877 #. type: =item
1878 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1879 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1880 msgid "B<--long>"
1881 msgstr ""
1882
1883 #. type: textblock
1884 #: ../cat/virt-filesystems.pod:209
1885 msgid "Display extra columns of data (\"long format\")."
1886 msgstr ""
1887
1888 #. type: textblock
1889 #: ../cat/virt-filesystems.pod:211
1890 msgid "A title row is added unless you also specify I<--no-title>."
1891 msgstr ""
1892
1893 #. type: textblock
1894 #: ../cat/virt-filesystems.pod:213
1895 msgid ""
1896 "The extra columns displayed depend on what output you select, and the "
1897 "ordering of columns may change in future versions.  Use the title row, I<--"
1898 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1899 "programs."
1900 msgstr ""
1901
1902 #. type: textblock
1903 #: ../cat/virt-filesystems.pod:218
1904 msgid ""
1905 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1906 "default is to show raw numbers of I<bytes>."
1907 msgstr ""
1908
1909 #. type: textblock
1910 #: ../cat/virt-filesystems.pod:221
1911 msgid "Use I<--uuid> to display UUIDs too."
1912 msgstr ""
1913
1914 #. type: =item
1915 #: ../cat/virt-filesystems.pod:223
1916 msgid "B<--lvs>"
1917 msgstr ""
1918
1919 #. type: =item
1920 #: ../cat/virt-filesystems.pod:225
1921 msgid "B<--logvols>"
1922 msgstr ""
1923
1924 #. type: =item
1925 #: ../cat/virt-filesystems.pod:227
1926 msgid "B<--logical-volumes>"
1927 msgstr ""
1928
1929 #. type: textblock
1930 #: ../cat/virt-filesystems.pod:229
1931 msgid ""
1932 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1933 "of whether the LVs contain filesystems."
1934 msgstr ""
1935
1936 #. type: =item
1937 #: ../cat/virt-filesystems.pod:232
1938 msgid "B<--no-title>"
1939 msgstr ""
1940
1941 #. type: textblock
1942 #: ../cat/virt-filesystems.pod:234
1943 msgid "In I<--long> mode, don't add a title row."
1944 msgstr ""
1945
1946 #. type: textblock
1947 #: ../cat/virt-filesystems.pod:236
1948 msgid ""
1949 "Note that the order of the columns is not fixed, and may change in future "
1950 "versions of virt-filesystems, so using this option may give you unexpected "
1951 "surprises."
1952 msgstr ""
1953
1954 #. type: =item
1955 #: ../cat/virt-filesystems.pod:240
1956 msgid "B<--parts>"
1957 msgstr ""
1958
1959 #. type: =item
1960 #: ../cat/virt-filesystems.pod:242
1961 msgid "B<--partitions>"
1962 msgstr ""
1963
1964 #. type: textblock
1965 #: ../cat/virt-filesystems.pod:244
1966 msgid ""
1967 "Display partitions.  In this mode, these are displayed irrespective of "
1968 "whether the partitions contain filesystems."
1969 msgstr ""
1970
1971 #. type: =item
1972 #: ../cat/virt-filesystems.pod:247
1973 msgid "B<--pvs>"
1974 msgstr ""
1975
1976 #. type: =item
1977 #: ../cat/virt-filesystems.pod:249
1978 msgid "B<--physvols>"
1979 msgstr ""
1980
1981 #. type: =item
1982 #: ../cat/virt-filesystems.pod:251
1983 msgid "B<--physical-volumes>"
1984 msgstr ""
1985
1986 #. type: textblock
1987 #: ../cat/virt-filesystems.pod:253
1988 msgid "Display LVM physical volumes."
1989 msgstr ""
1990
1991 #. type: =item
1992 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1993 msgid "B<--uuid>"
1994 msgstr ""
1995
1996 #. type: =item
1997 #: ../cat/virt-filesystems.pod:257
1998 msgid "B<--uuids>"
1999 msgstr ""
2000
2001 #. type: textblock
2002 #: ../cat/virt-filesystems.pod:259
2003 msgid "In I<--long> mode, display UUIDs as well."
2004 msgstr ""
2005
2006 #. type: =item
2007 #: ../cat/virt-filesystems.pod:273
2008 msgid "B<--vgs>"
2009 msgstr ""
2010
2011 #. type: =item
2012 #: ../cat/virt-filesystems.pod:275
2013 msgid "B<--volgroups>"
2014 msgstr ""
2015
2016 #. type: =item
2017 #: ../cat/virt-filesystems.pod:277
2018 msgid "B<--volume-groups>"
2019 msgstr ""
2020
2021 #. type: textblock
2022 #: ../cat/virt-filesystems.pod:279
2023 msgid "Display LVM volume groups."
2024 msgstr ""
2025
2026 #. type: =head1
2027 #: ../cat/virt-filesystems.pod:287
2028 msgid "COLUMNS"
2029 msgstr ""
2030
2031 #. type: textblock
2032 #: ../cat/virt-filesystems.pod:289
2033 msgid ""
2034 "Note that columns in the output are subject to reordering and change in "
2035 "future versions of this tool."
2036 msgstr ""
2037
2038 #. type: =item
2039 #: ../cat/virt-filesystems.pod:294
2040 msgid "B<Name>"
2041 msgstr ""
2042
2043 #. type: textblock
2044 #: ../cat/virt-filesystems.pod:296
2045 msgid "The filesystem, partition, block device or LVM name."
2046 msgstr ""
2047
2048 #. type: textblock
2049 #: ../cat/virt-filesystems.pod:298
2050 msgid ""
2051 "For device and partition names these are displayed as canonical libguestfs "
2052 "names, so that for example C</dev/sda2> is the second partition on the first "
2053 "device."
2054 msgstr ""
2055
2056 #. type: textblock
2057 #: ../cat/virt-filesystems.pod:302
2058 msgid ""
2059 "If the I<--long> option is B<not> specified, then only the name column is "
2060 "shown in the output."
2061 msgstr ""
2062
2063 #. type: =item
2064 #: ../cat/virt-filesystems.pod:305
2065 msgid "B<Type>"
2066 msgstr ""
2067
2068 #. type: textblock
2069 #: ../cat/virt-filesystems.pod:307
2070 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2071 msgstr ""
2072
2073 #. type: =item
2074 #: ../cat/virt-filesystems.pod:309
2075 msgid "B<VFS>"
2076 msgstr ""
2077
2078 #. type: textblock
2079 #: ../cat/virt-filesystems.pod:311
2080 msgid ""
2081 "If there is a filesystem, then this column displays the filesystem type if "
2082 "one could be detected, eg. C<ext4>."
2083 msgstr ""
2084
2085 #. type: =item
2086 #: ../cat/virt-filesystems.pod:314
2087 msgid "B<Label>"
2088 msgstr ""
2089
2090 #. type: textblock
2091 #: ../cat/virt-filesystems.pod:316
2092 msgid ""
2093 "If the object has a label (used for identifying and mounting filesystems) "
2094 "then this column contains the label."
2095 msgstr ""
2096
2097 #. type: =item
2098 #: ../cat/virt-filesystems.pod:319
2099 msgid "B<MBR>"
2100 msgstr ""
2101
2102 #. type: textblock
2103 #: ../cat/virt-filesystems.pod:321
2104 msgid ""
2105 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2106 "comprehensive list of partition types can be found here: L<http://www.win."
2107 "tue.nl/~aeb/partitions/partition_types-1.html>"
2108 msgstr ""
2109
2110 #. type: textblock
2111 #: ../cat/virt-filesystems.pod:325
2112 msgid "This is only applicable for DOS (MBR) partitions."
2113 msgstr ""
2114
2115 #. type: =item
2116 #: ../cat/virt-filesystems.pod:327
2117 msgid "B<Size>"
2118 msgstr ""
2119
2120 #. type: textblock
2121 #: ../cat/virt-filesystems.pod:329
2122 msgid ""
2123 "The size of the object in bytes.  If the I<--human> option is used then the "
2124 "size is displayed in a human-readable form."
2125 msgstr ""
2126
2127 #. type: =item
2128 #: ../cat/virt-filesystems.pod:332
2129 msgid "B<Parent>"
2130 msgstr ""
2131
2132 #. type: textblock
2133 #: ../cat/virt-filesystems.pod:334
2134 msgid ""
2135 "The parent column records the parent relationship between objects.  For "
2136 "example, if the object is a partition, then this column contains the name of "
2137 "the containing device.  If the object is a logical volume, then this column "
2138 "is the name of the volume group."
2139 msgstr ""
2140
2141 #. type: =item
2142 #: ../cat/virt-filesystems.pod:339
2143 msgid "B<UUID>"
2144 msgstr ""
2145
2146 #. type: textblock
2147 #: ../cat/virt-filesystems.pod:341
2148 msgid ""
2149 "If the object has a UUID (used for identifying and mounting filesystems and "
2150 "block devices) then this column contains the UUID as a string."
2151 msgstr ""
2152
2153 #. type: textblock
2154 #: ../cat/virt-filesystems.pod:345
2155 msgid "The UUID is only displayed if the I<--uuid> option is given."
2156 msgstr ""
2157
2158 #. type: =head1
2159 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2160 #: ../df/virt-df.pod:217
2161 msgid "NOTE ABOUT CSV FORMAT"
2162 msgstr ""
2163
2164 #. type: textblock
2165 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2166 #: ../df/virt-df.pod:219
2167 msgid ""
2168 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2169 "should be easy to parse, but it is definitely not easy to parse."
2170 msgstr ""
2171
2172 #. type: textblock
2173 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2174 #: ../df/virt-df.pod:222
2175 msgid ""
2176 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2177 "reliably.  This example has two columns:"
2178 msgstr ""
2179
2180 #. type: verbatim
2181 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2182 #: ../df/virt-df.pod:225
2183 #, no-wrap
2184 msgid ""
2185 " \"foo,bar\",baz\n"
2186 "\n"
2187 msgstr ""
2188
2189 #. type: textblock
2190 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2191 #: ../df/virt-df.pod:227
2192 msgid ""
2193 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2194 "reliably.  This example has one row:"
2195 msgstr ""
2196
2197 #. type: verbatim
2198 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2199 #: ../df/virt-df.pod:230
2200 #, no-wrap
2201 msgid ""
2202 " \"foo\n"
2203 " bar\",baz\n"
2204 "\n"
2205 msgstr ""
2206
2207 #. type: textblock
2208 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2209 #: ../df/virt-df.pod:233
2210 msgid ""
2211 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2212 "packaged in major Linux distributions)."
2213 msgstr ""
2214
2215 #. type: textblock
2216 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2217 #: ../df/virt-df.pod:236
2218 msgid ""
2219 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2220 "or Python's built-in csv library)."
2221 msgstr ""
2222
2223 #. type: textblock
2224 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2225 #: ../df/virt-df.pod:239
2226 msgid "Most spreadsheets and databases can import CSV directly."
2227 msgstr ""
2228
2229 #. type: textblock
2230 #: ../cat/virt-filesystems.pod:387
2231 msgid ""
2232 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2233 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2234 "libguestfs.org/>."
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2239 msgid "Copyright (C) 2010 Red Hat Inc."
2240 msgstr ""
2241
2242 #. type: textblock
2243 #: ../cat/virt-ls.pod:5
2244 msgid "virt-ls - List files in a virtual machine"
2245 msgstr ""
2246
2247 #. type: verbatim
2248 #: ../cat/virt-ls.pod:9
2249 #, no-wrap
2250 msgid ""
2251 " virt-ls [--options] -d domname directory [directory ...]\n"
2252 "\n"
2253 msgstr ""
2254
2255 #. type: verbatim
2256 #: ../cat/virt-ls.pod:11
2257 #, no-wrap
2258 msgid ""
2259 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2260 "\n"
2261 msgstr ""
2262
2263 #. type: textblock
2264 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:15
2265 msgid "Old style:"
2266 msgstr ""
2267
2268 #. type: verbatim
2269 #: ../cat/virt-ls.pod:15
2270 #, no-wrap
2271 msgid ""
2272 " virt-ls [--options] domname directory\n"
2273 "\n"
2274 msgstr ""
2275
2276 #. type: verbatim
2277 #: ../cat/virt-ls.pod:17
2278 #, no-wrap
2279 msgid ""
2280 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2281 "\n"
2282 msgstr ""
2283
2284 #. type: textblock
2285 #: ../cat/virt-ls.pod:21
2286 msgid ""
2287 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2288 "more from a virtual machine or disk image."
2289 msgstr ""
2290
2291 #. type: textblock
2292 #: ../cat/virt-ls.pod:24
2293 msgid ""
2294 "Multiple directory names can be given, in which case the output from each is "
2295 "concatenated."
2296 msgstr ""
2297
2298 #. type: textblock
2299 #: ../cat/virt-ls.pod:27
2300 msgid ""
2301 "To list directories from a libvirt guest use the I<-d> option to specify the "
2302 "name of the guest.  For a disk image, use the I<-a> option."
2303 msgstr ""
2304
2305 #. type: textblock
2306 #: ../cat/virt-ls.pod:31
2307 msgid ""
2308 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2309 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2310 "(3)> API."
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../cat/virt-ls.pod:37
2315 msgid "Get a list of all files and directories in a virtual machine:"
2316 msgstr ""
2317
2318 #. type: verbatim
2319 #: ../cat/virt-ls.pod:39
2320 #, no-wrap
2321 msgid ""
2322 " virt-ls -R -d guest /\n"
2323 "\n"
2324 msgstr ""
2325
2326 #. type: textblock
2327 #: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:182
2328 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2329 msgstr ""
2330
2331 #. type: verbatim
2332 #: ../cat/virt-ls.pod:43
2333 #, no-wrap
2334 msgid ""
2335 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2336 "\n"
2337 msgstr ""
2338
2339 #. type: textblock
2340 #: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:186
2341 msgid "List all public-writable directories in a Linux virtual machine:"
2342 msgstr ""
2343
2344 #. type: verbatim
2345 #: ../cat/virt-ls.pod:47
2346 #, no-wrap
2347 msgid ""
2348 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2349 "\n"
2350 msgstr ""
2351
2352 #. type: textblock
2353 #: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:190
2354 msgid "List all Unix domain sockets in a Linux virtual machine:"
2355 msgstr ""
2356
2357 #. type: verbatim
2358 #: ../cat/virt-ls.pod:51
2359 #, no-wrap
2360 msgid ""
2361 " virt-ls -lR -d guest / | grep '^s'\n"
2362 "\n"
2363 msgstr ""
2364
2365 #. type: textblock
2366 #: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:194
2367 msgid "List all regular files with filenames ending in '.png':"
2368 msgstr ""
2369
2370 #. type: verbatim
2371 #: ../cat/virt-ls.pod:55
2372 #, no-wrap
2373 msgid ""
2374 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2375 "\n"
2376 msgstr ""
2377
2378 #. type: textblock
2379 #: ../cat/virt-ls.pod:57
2380 msgid "To display files larger than 10MB in home directories:"
2381 msgstr ""
2382
2383 #. type: verbatim
2384 #: ../cat/virt-ls.pod:59
2385 #, no-wrap
2386 msgid ""
2387 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2388 "\n"
2389 msgstr ""
2390
2391 #. type: textblock
2392 #: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:202
2393 msgid "Find everything modified in the last 7 days:"
2394 msgstr ""
2395
2396 #. type: verbatim
2397 #: ../cat/virt-ls.pod:63
2398 #, no-wrap
2399 msgid ""
2400 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2401 "\n"
2402 msgstr ""
2403
2404 #. type: textblock
2405 #: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:206
2406 msgid "Find regular files modified in the last 24 hours:"
2407 msgstr ""
2408
2409 #. type: verbatim
2410 #: ../cat/virt-ls.pod:67
2411 #, no-wrap
2412 msgid ""
2413 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2414 "\n"
2415 msgstr ""
2416
2417 #. type: =head2
2418 #: ../cat/virt-ls.pod:69
2419 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2420 msgstr ""
2421
2422 #. type: textblock
2423 #: ../cat/virt-ls.pod:71
2424 msgid ""
2425 "Find the differences between files in a guest and an earlier snapshot of the "
2426 "same guest."
2427 msgstr ""
2428
2429 #. type: verbatim
2430 #: ../cat/virt-ls.pod:74
2431 #, no-wrap
2432 msgid ""
2433 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2434 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2435 " diff -u old new | less\n"
2436 "\n"
2437 msgstr ""
2438
2439 #. type: textblock
2440 #: ../cat/virt-ls.pod:78
2441 msgid ""
2442 "The commands above won't find files where the content has changed but the "
2443 "metadata (eg. file size and modification date) is the same.  To do that, you "
2444 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2445 "checksum> can be quite slow since it has to read and compute a checksum of "
2446 "every regular file in the virtual machine."
2447 msgstr ""
2448
2449 #. type: =head1
2450 #: ../cat/virt-ls.pod:84
2451 msgid "OUTPUT MODES"
2452 msgstr ""
2453
2454 #. type: textblock
2455 #: ../cat/virt-ls.pod:86
2456 msgid ""
2457 "C<virt-ls> has four output modes, controlled by different combinations of "
2458 "the I<-l> and I<-R> options."
2459 msgstr ""
2460
2461 #. type: =head2
2462 #: ../cat/virt-ls.pod:89
2463 msgid "SIMPLE LISTING"
2464 msgstr ""
2465
2466 #. type: textblock
2467 #: ../cat/virt-ls.pod:91
2468 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2469 msgstr ""
2470
2471 #. type: verbatim
2472 #: ../cat/virt-ls.pod:93
2473 #, no-wrap
2474 msgid ""
2475 " $ virt-ls -d guest /\n"
2476 " bin\n"
2477 " boot\n"
2478 " [etc.]\n"
2479 "\n"
2480 msgstr ""
2481
2482 #. type: =head2
2483 #: ../cat/virt-ls.pod:98
2484 msgid "LONG LISTING"
2485 msgstr ""
2486
2487 #. type: textblock
2488 #: ../cat/virt-ls.pod:100
2489 msgid ""
2490 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2491 "(more specifically, like the C<guestfs_ll> function)."
2492 msgstr ""
2493
2494 #. type: verbatim
2495 #: ../cat/virt-ls.pod:103
2496 #, no-wrap
2497 msgid ""
2498 " $ virt-ls -l -d guest /\n"
2499 " total 204\n"
2500 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2501 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2502 " [etc.]\n"
2503 "\n"
2504 msgstr ""
2505
2506 #. type: textblock
2507 #: ../cat/virt-ls.pod:109
2508 msgid ""
2509 "Note that while this is useful for displaying a directory, do not try "
2510 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2511 "instead."
2512 msgstr ""
2513
2514 #. type: =head2
2515 #: ../cat/virt-ls.pod:113
2516 msgid "RECURSIVE LISTING"
2517 msgstr ""
2518
2519 #. type: textblock
2520 #: ../cat/virt-ls.pod:115
2521 msgid ""
2522 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2523 "and directories recursively:"
2524 msgstr ""
2525
2526 #. type: verbatim
2527 #: ../cat/virt-ls.pod:118
2528 #, no-wrap
2529 msgid ""
2530 " $ virt-ls -R -d guest /tmp\n"
2531 " foo\n"
2532 " foo/bar\n"
2533 " [etc.]\n"
2534 "\n"
2535 msgstr ""
2536
2537 #. type: textblock
2538 #: ../cat/virt-ls.pod:123
2539 msgid ""
2540 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2541 "converts C<\\0> characters to C<\\n>."
2542 msgstr ""
2543
2544 #. type: =head2
2545 #: ../cat/virt-ls.pod:126
2546 msgid "RECURSIVE LONG LISTING"
2547 msgstr ""
2548
2549 #. type: textblock
2550 #: ../cat/virt-ls.pod:128
2551 msgid ""
2552 "Using I<-lR> options together changes the output to display directories "
2553 "recursively, with file stats, and optionally other features such as "
2554 "checksums and extended attributes."
2555 msgstr ""
2556
2557 #. type: textblock
2558 #: ../cat/virt-ls.pod:132
2559 msgid ""
2560 "Most of the interesting features of C<virt-ls> are only available when using "
2561 "I<-lR> mode."
2562 msgstr ""
2563
2564 #. type: textblock
2565 #: ../cat/virt-ls.pod:135
2566 msgid ""
2567 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2568 "you cannot use the output in another program (because filenames can contain "
2569 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2570 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2571 "on you by creating filenames with embedded newline characters.  To B<safely> "
2572 "parse the output in another program, use the I<--csv> (Comma-Separated "
2573 "Values) option."
2574 msgstr ""
2575
2576 #. type: textblock
2577 #: ../cat/virt-ls.pod:143
2578 msgid ""
2579 "Note that this output format is completely unrelated to the C<ls -lR> "
2580 "command."
2581 msgstr ""
2582
2583 #. type: verbatim
2584 #: ../cat/virt-ls.pod:146
2585 #, no-wrap
2586 msgid ""
2587 " $ virt-ls -lR -d guest /bin\n"
2588 " d 0555       4096 /bin\n"
2589 " - 0755        123 /bin/alsaunmute\n"
2590 " - 0755      28328 /bin/arch\n"
2591 " l 0777          4 /bin/awk -> gawk\n"
2592 " - 0755      27216 /bin/basename\n"
2593 " - 0755     943360 /bin/bash\n"
2594 " [etc.]\n"
2595 "\n"
2596 msgstr ""
2597
2598 #. type: textblock
2599 #: ../cat/virt-ls.pod:155
2600 msgid "These basic fields are always shown:"
2601 msgstr ""
2602
2603 #. type: =item
2604 #: ../cat/virt-ls.pod:159
2605 msgid "type"
2606 msgstr ""
2607
2608 #. type: textblock
2609 #: ../cat/virt-ls.pod:161
2610 msgid ""
2611 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2612 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2613 "link), C<s> (socket) or C<u> (unknown)."
2614 msgstr ""
2615
2616 #. type: =item
2617 #: ../cat/virt-ls.pod:171
2618 msgid "permissions"
2619 msgstr ""
2620
2621 #. type: textblock
2622 #: ../cat/virt-ls.pod:173
2623 msgid "The Unix permissions, displayed as a 4 digit octal number."
2624 msgstr ""
2625
2626 #. type: =item
2627 #: ../cat/virt-ls.pod:175
2628 msgid "size"
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../cat/virt-ls.pod:177
2633 msgid ""
2634 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2635 "readable> option is given, in which case this is shown as a human-readable "
2636 "number."
2637 msgstr ""
2638
2639 #. type: =head2
2640 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4519
2641 msgid "path"
2642 msgstr ""
2643
2644 #. type: textblock
2645 #: ../cat/virt-ls.pod:183
2646 msgid "The full path of the file or directory."
2647 msgstr ""
2648
2649 #. type: =item
2650 #: ../cat/virt-ls.pod:185
2651 msgid "link"
2652 msgstr ""
2653
2654 #. type: textblock
2655 #: ../cat/virt-ls.pod:187
2656 msgid "For symbolic links only, the link target."
2657 msgstr ""
2658
2659 #. type: textblock
2660 #: ../cat/virt-ls.pod:191
2661 msgid ""
2662 "In I<-lR> mode, additional command line options enable the display of more "
2663 "fields."
2664 msgstr ""
2665
2666 #. type: textblock
2667 #: ../cat/virt-ls.pod:194
2668 msgid ""
2669 "With the I<--uids> flag, these additional fields are displayed before the "
2670 "path:"
2671 msgstr ""
2672
2673 #. type: =item
2674 #: ../cat/virt-ls.pod:199
2675 msgid "uid"
2676 msgstr ""
2677
2678 #. type: =item
2679 #: ../cat/virt-ls.pod:201
2680 msgid "gid"
2681 msgstr ""
2682
2683 #. type: textblock
2684 #: ../cat/virt-ls.pod:203
2685 msgid ""
2686 "The UID and GID of the owner of the file (displayed numerically).  Note "
2687 "these only make sense in the context of a Unix-like guest."
2688 msgstr ""
2689
2690 #. type: textblock
2691 #: ../cat/virt-ls.pod:208
2692 msgid "With the I<--times> flag, these additional fields are displayed:"
2693 msgstr ""
2694
2695 #. type: =item
2696 #: ../cat/virt-ls.pod:212
2697 msgid "atime"
2698 msgstr ""
2699
2700 #. type: textblock
2701 #: ../cat/virt-ls.pod:214
2702 msgid "The time of last access."
2703 msgstr ""
2704
2705 #. type: =item
2706 #: ../cat/virt-ls.pod:216
2707 msgid "mtime"
2708 msgstr ""
2709
2710 #. type: textblock
2711 #: ../cat/virt-ls.pod:218
2712 msgid "The time of last modification."
2713 msgstr ""
2714
2715 #. type: =item
2716 #: ../cat/virt-ls.pod:220
2717 msgid "ctime"
2718 msgstr ""
2719
2720 #. type: textblock
2721 #: ../cat/virt-ls.pod:222
2722 msgid "The time of last status change."
2723 msgstr ""
2724
2725 #. type: textblock
2726 #: ../cat/virt-ls.pod:226
2727 msgid ""
2728 "The time fields are displayed as string dates and times, unless one of the "
2729 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2730 msgstr ""
2731
2732 #. type: textblock
2733 #: ../cat/virt-ls.pod:229
2734 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2735 msgstr ""
2736
2737 #. type: =item
2738 #: ../cat/virt-ls.pod:233
2739 msgid "device"
2740 msgstr ""
2741
2742 #. type: textblock
2743 #: ../cat/virt-ls.pod:235
2744 msgid ""
2745 "The device containing the file (displayed as major:minor).  This may not "
2746 "match devices as known to the guest."
2747 msgstr ""
2748
2749 #. type: =item
2750 #: ../cat/virt-ls.pod:238
2751 msgid "inode"
2752 msgstr ""
2753
2754 #. type: textblock
2755 #: ../cat/virt-ls.pod:240
2756 msgid "The inode number."
2757 msgstr ""
2758
2759 #. type: =item
2760 #: ../cat/virt-ls.pod:242
2761 msgid "nlink"
2762 msgstr ""
2763
2764 #. type: textblock
2765 #: ../cat/virt-ls.pod:244
2766 msgid "The number of hard links."
2767 msgstr ""
2768
2769 #. type: =item
2770 #: ../cat/virt-ls.pod:246
2771 msgid "rdev"
2772 msgstr ""
2773
2774 #. type: textblock
2775 #: ../cat/virt-ls.pod:248
2776 msgid ""
2777 "For block and char special files, the device (displayed as major:minor)."
2778 msgstr ""
2779
2780 #. type: =item
2781 #: ../cat/virt-ls.pod:251
2782 msgid "blocks"
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../cat/virt-ls.pod:253
2787 msgid "The number of 512 byte blocks allocated to the file."
2788 msgstr ""
2789
2790 #. type: textblock
2791 #: ../cat/virt-ls.pod:257
2792 msgid ""
2793 "With the I<--checksum> flag, the checksum of the file contents is shown "
2794 "(only for regular files).  Computing file checksums can take a considerable "
2795 "amount of time."
2796 msgstr ""
2797
2798 #. type: =item
2799 #: ../cat/virt-ls.pod:280
2800 msgid "B<--checksum>"
2801 msgstr ""
2802
2803 #. type: =item
2804 #: ../cat/virt-ls.pod:282
2805 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2806 msgstr ""
2807
2808 #. type: textblock
2809 #: ../cat/virt-ls.pod:284
2810 msgid ""
2811 "Display checksum over file contents for regular files.  With no argument, "
2812 "this defaults to using I<md5>.  Using an argument, you can select the "
2813 "checksum type to use."
2814 msgstr ""
2815
2816 #. type: textblock
2817 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2818 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2819 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2820 msgid ""
2821 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2822 "LISTING> above."
2823 msgstr ""
2824
2825 #. type: textblock
2826 #: ../cat/virt-ls.pod:316
2827 msgid ""
2828 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2829 "so you cannot see what you are typing.  If you are not worried about Tempest "
2830 "attacks and there is no one else in the room you can specify this flag to "
2831 "see what you are typing."
2832 msgstr ""
2833
2834 #. type: =item
2835 #: ../cat/virt-ls.pod:321
2836 msgid "B<--extra-stats>"
2837 msgstr ""
2838
2839 #. type: textblock
2840 #: ../cat/virt-ls.pod:323
2841 msgid "Display extra stats."
2842 msgstr ""
2843
2844 #. type: verbatim
2845 #: ../cat/virt-ls.pod:339
2846 #, no-wrap
2847 msgid ""
2848 " virt-ls --format=raw -a disk.img /dir\n"
2849 "\n"
2850 msgstr ""
2851
2852 #. type: verbatim
2853 #: ../cat/virt-ls.pod:343
2854 #, no-wrap
2855 msgid ""
2856 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2857 "\n"
2858 msgstr ""
2859
2860 #. type: textblock
2861 #: ../cat/virt-ls.pod:356
2862 msgid "Display file sizes in human-readable format."
2863 msgstr ""
2864
2865 #. type: =item
2866 #: ../cat/virt-ls.pod:370
2867 msgid "B<-R>"
2868 msgstr ""
2869
2870 #. type: =item
2871 #: ../cat/virt-ls.pod:372
2872 msgid "B<--recursive>"
2873 msgstr ""
2874
2875 #. type: textblock
2876 #: ../cat/virt-ls.pod:374
2877 msgid ""
2878 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2879 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2880 "LISTING>."
2881 msgstr ""
2882
2883 #. type: textblock
2884 #: ../cat/virt-ls.pod:378
2885 msgid ""
2886 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2887 "LONG LISTING>."
2888 msgstr ""
2889
2890 #. type: textblock
2891 #: ../cat/virt-ls.pod:381
2892 msgid ""
2893 "C<virt-ls -R> produces a recursive list of files starting at the named "
2894 "directory.  See L</RECURSIVE LISTING>."
2895 msgstr ""
2896
2897 #. type: textblock
2898 #: ../cat/virt-ls.pod:384
2899 msgid ""
2900 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2901 "parsed.  See L</RECURSIVE LONG LISTING>."
2902 msgstr ""
2903
2904 #. type: =item
2905 #: ../cat/virt-ls.pod:387
2906 msgid "B<--times>"
2907 msgstr ""
2908
2909 #. type: textblock
2910 #: ../cat/virt-ls.pod:389
2911 msgid "Display time fields."
2912 msgstr ""
2913
2914 #. type: =item
2915 #: ../cat/virt-ls.pod:394
2916 msgid "B<--time-days>"
2917 msgstr ""
2918
2919 #. type: textblock
2920 #: ../cat/virt-ls.pod:396
2921 msgid "Display time fields as days before now (negative if in the future)."
2922 msgstr ""
2923
2924 #. type: textblock
2925 #: ../cat/virt-ls.pod:398
2926 msgid ""
2927 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2928 "of the file is between 0 and 86399 seconds."
2929 msgstr ""
2930
2931 #. type: =item
2932 #: ../cat/virt-ls.pod:404
2933 msgid "B<--time-relative>"
2934 msgstr ""
2935
2936 #. type: textblock
2937 #: ../cat/virt-ls.pod:406
2938 msgid "Display time fields as seconds before now (negative if in the future)."
2939 msgstr ""
2940
2941 #. type: =item
2942 #: ../cat/virt-ls.pod:411
2943 msgid "B<--time-t>"
2944 msgstr ""
2945
2946 #. type: textblock
2947 #: ../cat/virt-ls.pod:413
2948 msgid "Display time fields as seconds since the Unix epoch."
2949 msgstr ""
2950
2951 #. type: =item
2952 #: ../cat/virt-ls.pod:418
2953 msgid "B<--uids>"
2954 msgstr ""
2955
2956 #. type: textblock
2957 #: ../cat/virt-ls.pod:420
2958 msgid "Display UID and GID fields."
2959 msgstr ""
2960
2961 #. type: textblock
2962 #: ../cat/virt-ls.pod:445
2963 msgid "Previous versions of virt-ls allowed you to write either:"
2964 msgstr ""
2965
2966 #. type: verbatim
2967 #: ../cat/virt-ls.pod:447
2968 #, no-wrap
2969 msgid ""
2970 " virt-ls disk.img [disk.img ...] /dir\n"
2971 "\n"
2972 msgstr ""
2973
2974 #. type: verbatim
2975 #: ../cat/virt-ls.pod:451
2976 #, no-wrap
2977 msgid ""
2978 " virt-ls guestname /dir\n"
2979 "\n"
2980 msgstr ""
2981
2982 #. type: textblock
2983 #: ../cat/virt-ls.pod:497
2984 msgid ""
2985 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2986 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2987 "L<http://libguestfs.org/>."
2988 msgstr ""
2989
2990 #. type: textblock
2991 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:374
2992 #: ../rescue/virt-rescue.pod:340
2993 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2994 msgstr ""
2995
2996 #. type: textblock
2997 #: ../clone/virt-sysprep.pod:5
2998 msgid ""
2999 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3000 msgstr ""
3001
3002 #. type: verbatim
3003 #: ../clone/virt-sysprep.pod:9
3004 #, no-wrap
3005 msgid ""
3006 " virt-sysprep [--options] -d domname\n"
3007 "\n"
3008 msgstr ""
3009
3010 #. type: verbatim
3011 #: ../clone/virt-sysprep.pod:11
3012 #, no-wrap
3013 msgid ""
3014 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3015 "\n"
3016 msgstr ""
3017
3018 #. type: textblock
3019 #: ../clone/virt-sysprep.pod:15
3020 msgid ""
3021 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3022 "can be made from it.  Steps in this process include removing SSH host keys, "
3023 "removing persistent network MAC configuration, and removing user accounts.  "
3024 "Each step can be enabled or disabled as required."
3025 msgstr ""
3026
3027 #. type: textblock
3028 #: ../clone/virt-sysprep.pod:21
3029 msgid ""
3030 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3031 "customization by the system administrator."
3032 msgstr ""
3033
3034 #. type: textblock
3035 #: ../clone/virt-sysprep.pod:24
3036 msgid ""
3037 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3038 "be shut down.  If you want to preserve the existing contents of the guest, "
3039 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3040 msgstr ""
3041
3042 #. type: textblock
3043 #: ../clone/virt-sysprep.pod:29
3044 msgid ""
3045 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3046 "recommend that you don't.  The time you might want to run it as root is when "
3047 "you need root in order to access the disk image, but even in this case it "
3048 "would be better to change the permissions on the disk image to be writable "
3049 "as the non-root user running virt-sysprep."
3050 msgstr ""
3051
3052 #. type: textblock
3053 #: ../clone/virt-sysprep.pod:35
3054 msgid ""
3055 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3056 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3057 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3058 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3059 "Windows sysprepping in a future version, and we already have code to do it."
3060 msgstr ""
3061
3062 #. type: =item
3063 #: ../clone/virt-sysprep.pod:76
3064 msgid "B<--enable=...>"
3065 msgstr ""
3066
3067 #. type: textblock
3068 #: ../clone/virt-sysprep.pod:78
3069 msgid ""
3070 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3071 "operations, for example:"
3072 msgstr ""
3073
3074 #. type: verbatim
3075 #: ../clone/virt-sysprep.pod:81
3076 #, no-wrap
3077 msgid ""
3078 " --enable=ssh-hostkeys,udev-persistent-net\n"
3079 "\n"
3080 msgstr ""
3081
3082 #. type: textblock
3083 #: ../clone/virt-sysprep.pod:83
3084 msgid ""
3085 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3086 msgstr ""
3087
3088 #. type: textblock
3089 #: ../clone/virt-sysprep.pod:85
3090 msgid ""
3091 "If the I<--enable> option is not given, then we default to trying all "
3092 "possible sysprep operations.  But some sysprep operations are skipped for "
3093 "some guest types."
3094 msgstr ""
3095
3096 #. type: textblock
3097 #: ../clone/virt-sysprep.pod:89
3098 msgid ""
3099 "Use I<--list-operations> to list operations supported by a particular "
3100 "version of virt-sysprep."
3101 msgstr ""
3102
3103 #. type: textblock
3104 #: ../clone/virt-sysprep.pod:92
3105 msgid ""
3106 "See L</OPERATIONS> below for a list and an explanation of each operation."
3107 msgstr ""
3108
3109 #. type: verbatim
3110 #: ../clone/virt-sysprep.pod:106
3111 #, no-wrap
3112 msgid ""
3113 " virt-sysprep --format=raw -a disk.img\n"
3114 "\n"
3115 msgstr ""
3116
3117 #. type: verbatim
3118 #: ../clone/virt-sysprep.pod:110
3119 #, no-wrap
3120 msgid ""
3121 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3122 "\n"
3123 msgstr ""
3124
3125 #. type: =item
3126 #: ../clone/virt-sysprep.pod:119
3127 msgid "B<--hostname> newhostname"
3128 msgstr ""
3129
3130 #. type: textblock
3131 #: ../clone/virt-sysprep.pod:121
3132 msgid ""
3133 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3134 "defaults to C<localhost.localdomain>."
3135 msgstr ""
3136
3137 #. type: =item
3138 #: ../clone/virt-sysprep.pod:124
3139 msgid "B<--list-operations>"
3140 msgstr ""
3141
3142 #. type: textblock
3143 #: ../clone/virt-sysprep.pod:126
3144 msgid "List the operations supported by the virt-sysprep program."
3145 msgstr ""
3146
3147 #. type: =item
3148 #: ../clone/virt-sysprep.pod:128
3149 msgid "B<--selinux-relabel>"
3150 msgstr ""
3151
3152 #. type: =item
3153 #: ../clone/virt-sysprep.pod:130
3154 msgid "B<--no-selinux-relabel>"
3155 msgstr ""
3156
3157 #. type: textblock
3158 #: ../clone/virt-sysprep.pod:132
3159 msgid ""
3160 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3161 "I<--no-selinux-relabel> disables relabelling."
3162 msgstr ""
3163
3164 #. type: textblock
3165 #: ../clone/virt-sysprep.pod:135
3166 msgid ""
3167 "The default is to try to detect if SELinux relabelling is required.  See L</"
3168 "SELINUX RELABELLING> below for more details."
3169 msgstr ""
3170
3171 #. type: =head1
3172 #: ../clone/virt-sysprep.pod:156
3173 msgid "OPERATIONS"
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../clone/virt-sysprep.pod:158
3178 msgid ""
3179 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3180 "enabled>, although some are skipped depending on the type of guest."
3181 msgstr ""
3182
3183 #. type: textblock
3184 #: ../clone/virt-sysprep.pod:162
3185 msgid ""
3186 "Operations can be individually enabled using the I<--enable> option.  Use a "
3187 "comma-separated list, for example:"
3188 msgstr ""
3189
3190 #. type: verbatim
3191 #: ../clone/virt-sysprep.pod:165
3192 #, no-wrap
3193 msgid ""
3194 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3195 "\n"
3196 msgstr ""
3197
3198 #. type: textblock
3199 #: ../clone/virt-sysprep.pod:167
3200 msgid ""
3201 "To list the operations supported by the current version of virt-sysprep, use "
3202 "I<--list-operations>."
3203 msgstr ""
3204
3205 #. type: textblock
3206 #: ../clone/virt-sysprep.pod:170
3207 msgid ""
3208 "Future versions of virt-sysprep may add more operations.  If you are using "
3209 "virt-sysprep and want predictable behaviour, specify only the operations "
3210 "that you want to have enabled."
3211 msgstr ""
3212
3213 #. type: =head2
3214 #: ../clone/virt-sysprep.pod:174
3215 msgid "cron-spool"
3216 msgstr ""
3217
3218 #. type: textblock
3219 #: ../clone/virt-sysprep.pod:176
3220 msgid "Remove user at-jobs and cron-jobs."
3221 msgstr ""
3222
3223 #. type: =head2
3224 #: ../clone/virt-sysprep.pod:178
3225 msgid "dhcp-client-state"
3226 msgstr ""
3227
3228 #. type: textblock
3229 #: ../clone/virt-sysprep.pod:180
3230 msgid "Remove DHCP client leases."
3231 msgstr ""
3232
3233 #. type: =head2
3234 #: ../clone/virt-sysprep.pod:182
3235 msgid "dhcp-server-state"
3236 msgstr ""
3237
3238 #. type: textblock
3239 #: ../clone/virt-sysprep.pod:184
3240 msgid "Remove DHCP server leases."
3241 msgstr ""
3242
3243 #. type: =head2
3244 #: ../clone/virt-sysprep.pod:186
3245 msgid "hostname"
3246 msgstr ""
3247
3248 #. type: textblock
3249 #: ../clone/virt-sysprep.pod:188
3250 msgid ""
3251 "Changes the hostname of the guest to the value given in the I<--hostname> "
3252 "parameter."
3253 msgstr ""
3254
3255 #. type: textblock
3256 #: ../clone/virt-sysprep.pod:191
3257 msgid ""
3258 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3259 "C<localhost.localdomain>."
3260 msgstr ""
3261
3262 #. type: =head2
3263 #: ../clone/virt-sysprep.pod:194
3264 msgid "logfiles"
3265 msgstr ""
3266
3267 #. type: textblock
3268 #: ../clone/virt-sysprep.pod:196
3269 msgid "Remove many log files."
3270 msgstr ""
3271
3272 #. type: =head2
3273 #: ../clone/virt-sysprep.pod:198
3274 msgid "mail-spool"
3275 msgstr ""
3276
3277 #. type: textblock
3278 #: ../clone/virt-sysprep.pod:200
3279 msgid "Remove email from the local mail spool directory."
3280 msgstr ""
3281
3282 #. type: =head2
3283 #: ../clone/virt-sysprep.pod:202
3284 msgid "net-hwaddr"
3285 msgstr ""
3286
3287 #. type: textblock
3288 #: ../clone/virt-sysprep.pod:204
3289 msgid ""
3290 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3291 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3292 msgstr ""
3293
3294 #. type: =head2
3295 #: ../clone/virt-sysprep.pod:207
3296 msgid "random-seed"
3297 msgstr ""
3298
3299 #. type: textblock
3300 #: ../clone/virt-sysprep.pod:209
3301 msgid ""
3302 "Write some random bytes from the host into the random seed file of the guest."
3303 msgstr ""
3304
3305 #. type: textblock
3306 #: ../clone/virt-sysprep.pod:212
3307 msgid "See L</RANDOM SEED> below."
3308 msgstr ""
3309
3310 #. type: =head2
3311 #: ../clone/virt-sysprep.pod:214
3312 msgid "rhn-systemid"
3313 msgstr ""
3314
3315 #. type: textblock
3316 #: ../clone/virt-sysprep.pod:216
3317 msgid "Remove the RHN system ID."
3318 msgstr ""
3319
3320 #. type: =head2
3321 #: ../clone/virt-sysprep.pod:218
3322 msgid "smolt-uuid"
3323 msgstr ""
3324
3325 #. type: textblock
3326 #: ../clone/virt-sysprep.pod:220
3327 msgid "Remove the Smolt hardware UUID."
3328 msgstr ""
3329
3330 #. type: =head2
3331 #: ../clone/virt-sysprep.pod:222
3332 msgid "ssh-hostkeys"
3333 msgstr ""
3334
3335 #. type: textblock
3336 #: ../clone/virt-sysprep.pod:224
3337 msgid "Remove the SSH host keys in the guest."
3338 msgstr ""
3339
3340 #. type: textblock
3341 #: ../clone/virt-sysprep.pod:226
3342 msgid ""
3343 "The SSH host keys are regenerated (differently) next time the guest is "
3344 "booted."
3345 msgstr ""
3346
3347 #. type: textblock
3348 #: ../clone/virt-sysprep.pod:229
3349 msgid ""
3350 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3351 "stark warning about the host key changing:"
3352 msgstr ""
3353
3354 #. type: verbatim
3355 #: ../clone/virt-sysprep.pod:232
3356 #, no-wrap
3357 msgid ""
3358 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3359 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3360 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3361 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3362 "\n"
3363 msgstr ""
3364
3365 #. type: =head2
3366 #: ../clone/virt-sysprep.pod:237
3367 msgid "udev-persistent-net"
3368 msgstr ""
3369
3370 #. type: textblock
3371 #: ../clone/virt-sysprep.pod:239
3372 msgid ""
3373 "Remove udev persistent net rules which map the guest's existing MAC address "
3374 "to a fixed ethernet device (eg. eth0)."
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../clone/virt-sysprep.pod:242
3379 msgid ""
3380 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3381 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3382 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3383 "Erasing the udev persistent net rules avoids this."
3384 msgstr ""
3385
3386 #. type: =head2
3387 #: ../clone/virt-sysprep.pod:247
3388 msgid "utmp"
3389 msgstr ""
3390
3391 #. type: textblock
3392 #: ../clone/virt-sysprep.pod:249
3393 msgid "Remove the utmp file."
3394 msgstr ""
3395
3396 #. type: textblock
3397 #: ../clone/virt-sysprep.pod:251
3398 msgid ""
3399 "This records who is currently logged in on a machine.  In modern Linux "
3400 "distros it is stored in a ramdisk and hence not part of the virtual "
3401 "machine's disk, but it was stored on disk in older distros."
3402 msgstr ""
3403
3404 #. type: =head2
3405 #: ../clone/virt-sysprep.pod:255
3406 msgid "yum-uuid"
3407 msgstr ""
3408
3409 #. type: textblock
3410 #: ../clone/virt-sysprep.pod:257
3411 msgid "Remove the yum UUID."
3412 msgstr ""
3413
3414 #. type: textblock
3415 #: ../clone/virt-sysprep.pod:259
3416 msgid ""
3417 "Yum creates a fresh UUID the next time it runs when it notices that the "
3418 "original UUID has been erased."
3419 msgstr ""
3420
3421 #. type: =head1
3422 #: ../clone/virt-sysprep.pod:262
3423 msgid "COPYING AND CLONING"
3424 msgstr ""
3425
3426 #. type: textblock
3427 #: ../clone/virt-sysprep.pod:264
3428 msgid ""
3429 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3430 "prepare a template from which guests can be cloned.  There are many "
3431 "different ways to achieve this using the virt tools, and this section is "
3432 "just an introduction."
3433 msgstr ""
3434
3435 #. type: textblock
3436 #: ../clone/virt-sysprep.pod:269
3437 msgid "A virtual machine (when switched off) consists of two parts:"
3438 msgstr ""
3439
3440 #. type: =item
3441 #: ../clone/virt-sysprep.pod:273
3442 msgid "I<configuration>"
3443 msgstr ""
3444
3445 #. type: textblock
3446 #: ../clone/virt-sysprep.pod:275
3447 msgid ""
3448 "The configuration or description of the guest.  eg. The libvirt XML (see "
3449 "C<virsh dumpxml>), the running configuration of the guest, or another "
3450 "external format like OVF."
3451 msgstr ""
3452
3453 #. type: textblock
3454 #: ../clone/virt-sysprep.pod:279
3455 msgid "Some configuration items that might need to be changed:"
3456 msgstr ""
3457
3458 #. type: textblock
3459 #: ../clone/virt-sysprep.pod:285
3460 msgid "name"
3461 msgstr ""
3462
3463 #. type: textblock
3464 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3465 msgid "UUID"
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../clone/virt-sysprep.pod:293
3470 msgid "path to block device(s)"
3471 msgstr ""
3472
3473 #. type: textblock
3474 #: ../clone/virt-sysprep.pod:297
3475 msgid "network card MAC address"
3476 msgstr ""
3477
3478 #. type: =item
3479 #: ../clone/virt-sysprep.pod:301
3480 msgid "I<block device(s)>"
3481 msgstr ""
3482
3483 #. type: textblock
3484 #: ../clone/virt-sysprep.pod:303
3485 msgid ""
3486 "One or more hard disk images, themselves containing files, directories, "
3487 "applications, kernels, configuration, etc."
3488 msgstr ""
3489
3490 #. type: textblock
3491 #: ../clone/virt-sysprep.pod:306
3492 msgid "Some things inside the block devices that might need to be changed:"
3493 msgstr ""
3494
3495 #. type: textblock
3496 #: ../clone/virt-sysprep.pod:312
3497 msgid "hostname and other net configuration"
3498 msgstr ""
3499
3500 #. type: textblock
3501 #: ../clone/virt-sysprep.pod:320
3502 msgid "SSH host keys"
3503 msgstr ""
3504
3505 #. type: textblock
3506 #: ../clone/virt-sysprep.pod:324
3507 msgid "Windows unique security ID (SID)"
3508 msgstr ""
3509
3510 #. type: textblock
3511 #: ../clone/virt-sysprep.pod:328
3512 msgid "Puppet registration"
3513 msgstr ""
3514
3515 #. type: =head2
3516 #: ../clone/virt-sysprep.pod:334
3517 msgid "COPYING THE BLOCK DEVICE"
3518 msgstr ""
3519
3520 #. type: textblock
3521 #: ../clone/virt-sysprep.pod:336
3522 msgid ""
3523 "Starting with an original guest, you probably wish to copy the guest block "
3524 "device and its configuration to make a template.  Then once you are happy "
3525 "with the template, you will want to make many clones from it."
3526 msgstr ""
3527
3528 #. type: verbatim
3529 #: ../clone/virt-sysprep.pod:341
3530 #, no-wrap
3531 msgid ""
3532 "                        virt-sysprep\n"
3533 "                             |\n"
3534 "                             v\n"
3535 " original guest --------> template ---------->\n"
3536 "                                      \\------> cloned\n"
3537 "                                       \\-----> guests\n"
3538 "                                        \\---->\n"
3539 "\n"
3540 msgstr ""
3541
3542 #. type: textblock
3543 #: ../clone/virt-sysprep.pod:349
3544 msgid ""
3545 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3546 "L<dd(1)>."
3547 msgstr ""
3548
3549 #. type: verbatim
3550 #: ../clone/virt-sysprep.pod:352
3551 #, no-wrap
3552 msgid ""
3553 "                   dd                 dd\n"
3554 " original guest --------> template ---------->\n"
3555 "                                      \\------> cloned\n"
3556 "                                       \\-----> guests\n"
3557 "                                        \\---->\n"
3558 "\n"
3559 msgstr ""
3560
3561 #. type: textblock
3562 #: ../clone/virt-sysprep.pod:358
3563 msgid "There are some smarter (and faster) ways too:"
3564 msgstr ""
3565
3566 #. type: verbatim
3567 #: ../clone/virt-sysprep.pod:364
3568 #, no-wrap
3569 msgid ""
3570 "                          snapshot\n"
3571 "                template ---------->\n"
3572 "                            \\------> cloned\n"
3573 "                             \\-----> guests\n"
3574 "                              \\---->\n"
3575 "\n"
3576 msgstr ""
3577
3578 #. type: textblock
3579 #: ../clone/virt-sysprep.pod:370
3580 msgid ""
3581 "Use the block device as a backing file and create a snapshot on top for each "
3582 "guest.  The advantage is that you don't need to copy the block device (very "
3583 "fast) and only changes are stored (less storage required)."
3584 msgstr ""
3585
3586 #. type: textblock
3587 #: ../clone/virt-sysprep.pod:375
3588 msgid ""
3589 "Note that writing to the backing file once you have created guests on top of "
3590 "it is not possible: you will corrupt the guests."
3591 msgstr ""
3592
3593 #. type: textblock
3594 #: ../clone/virt-sysprep.pod:378
3595 msgid ""
3596 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3597 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3598 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3599 "also create cheap snapshots from files or LUNs."
3600 msgstr ""
3601
3602 #. type: textblock
3603 #: ../clone/virt-sysprep.pod:386
3604 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3605 msgstr ""
3606
3607 #. type: textblock
3608 #: ../clone/virt-sysprep.pod:390
3609 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3610 msgstr ""
3611
3612 #. type: =head2
3613 #: ../clone/virt-sysprep.pod:394
3614 msgid "VIRT-CLONE"
3615 msgstr ""
3616
3617 #. type: textblock
3618 #: ../clone/virt-sysprep.pod:396
3619 msgid ""
3620 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3621 "and/or modify the external libvirt configuration of a guest.  It will reset "
3622 "the name, UUID and MAC address of the guest in the libvirt XML."
3623 msgstr ""
3624
3625 #. type: textblock
3626 #: ../clone/virt-sysprep.pod:401
3627 msgid ""
3628 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3629 "image.  This was the original motivation to write virt-sysprep."
3630 msgstr ""
3631
3632 #. type: =head2
3633 #: ../clone/virt-sysprep.pod:404
3634 msgid "SPARSIFY"
3635 msgstr ""
3636
3637 #. type: verbatim
3638 #: ../clone/virt-sysprep.pod:406
3639 #, no-wrap
3640 msgid ""
3641 "              virt-sparsify\n"
3642 " original guest --------> template\n"
3643 "\n"
3644 msgstr ""
3645
3646 #. type: textblock
3647 #: ../clone/virt-sysprep.pod:409
3648 msgid ""
3649 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3650 "it easier to compress and/or faster to copy."
3651 msgstr ""
3652
3653 #. type: textblock
3654 #: ../clone/virt-sysprep.pod:412
3655 msgid ""
3656 "Notice that since virt-sparsify also copies the image, you can use it to "
3657 "make the initial copy (instead of C<dd>)."
3658 msgstr ""
3659
3660 #. type: =head2
3661 #: ../clone/virt-sysprep.pod:415
3662 msgid "RESIZE"
3663 msgstr ""
3664
3665 #. type: verbatim
3666 #: ../clone/virt-sysprep.pod:417
3667 #, no-wrap
3668 msgid ""
3669 "                         virt-resize\n"
3670 "                template ---------->\n"
3671 "                            \\------> cloned\n"
3672 "                             \\-----> guests\n"
3673 "                              \\---->\n"
3674 "\n"
3675 msgstr ""
3676
3677 #. type: textblock
3678 #: ../clone/virt-sysprep.pod:423
3679 msgid ""
3680 "If you want to give people cloned guests, but let them pick the size of the "
3681 "guest themselves (eg. depending on how much they are prepared to pay for "
3682 "disk space), then instead of copying the template, you can run L<virt-resize"
3683 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3684 "guests from a template."
3685 msgstr ""
3686
3687 #. type: =head1
3688 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3689 msgid "SECURITY"
3690 msgstr ""
3691
3692 #. type: textblock
3693 #: ../clone/virt-sysprep.pod:431
3694 msgid ""
3695 "Although virt-sysprep removes some sensitive information from the guest, it "
3696 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3697 "above, and the implementation of the operations in the shell script.  You "
3698 "should also examine the guest afterwards."
3699 msgstr ""
3700
3701 #. type: textblock
3702 #: ../clone/virt-sysprep.pod:436
3703 msgid ""
3704 "Sensitive files are simply removed.  The data they contained may still exist "
3705 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3706 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3707 "(1)> command to get rid of deleted content in directory entries and inodes."
3708 msgstr ""
3709
3710 #. type: =head2
3711 #: ../clone/virt-sysprep.pod:442
3712 msgid "RANDOM SEED"
3713 msgstr ""
3714
3715 #. type: textblock
3716 #: ../clone/virt-sysprep.pod:444
3717 msgid "I<(This section applies to Linux guests only)>"
3718 msgstr ""
3719
3720 #. type: textblock
3721 #: ../clone/virt-sysprep.pod:446
3722 msgid ""
3723 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3724 "from the host into the guest's random seed file."
3725 msgstr ""
3726
3727 #. type: textblock
3728 #: ../clone/virt-sysprep.pod:449
3729 msgid ""
3730 "If this is just done once and the guest is cloned from the same template, "
3731 "then each guest will start with the same entropy, and things like SSH host "
3732 "keys and TCP sequence numbers may be predictable."
3733 msgstr ""
3734
3735 #. type: textblock
3736 #: ../clone/virt-sysprep.pod:453
3737 msgid ""
3738 "Therefore you should arrange to add more randomness I<after> cloning from a "
3739 "template too, which can be done by just enabling the C<random-seed> "
3740 "operation:"
3741 msgstr ""
3742
3743 #. type: verbatim
3744 #: ../clone/virt-sysprep.pod:457
3745 #, no-wrap
3746 msgid ""
3747 " cp template.img newguest.img\n"
3748 " virt-sysprep --enable=random-seed -a newguest.img\n"
3749 "\n"
3750 msgstr ""
3751
3752 #. type: =head2
3753 #: ../clone/virt-sysprep.pod:460
3754 msgid "SELINUX RELABELLING"
3755 msgstr ""
3756
3757 #. type: textblock
3758 #: ../clone/virt-sysprep.pod:462
3759 msgid "I<(This section applies to Linux guests using SELinux only)>"
3760 msgstr ""
3761
3762 #. type: textblock
3763 #: ../clone/virt-sysprep.pod:464
3764 msgid ""
3765 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3766 "autorelabel> so that these will be correctly labelled by SELinux the next "
3767 "time the guest is booted.  This process interrupts boot and can take some "
3768 "time."
3769 msgstr ""
3770
3771 #. type: textblock
3772 #: ../clone/virt-sysprep.pod:469
3773 msgid ""
3774 "You can force relabelling for all guests by supplying the I<--selinux-"
3775 "relabel> option."
3776 msgstr ""
3777
3778 #. type: textblock
3779 #: ../clone/virt-sysprep.pod:472
3780 msgid ""
3781 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3782 "relabel> option."
3783 msgstr ""
3784
3785 #. type: textblock
3786 #: ../clone/virt-sysprep.pod:484
3787 msgid "This program returns 0 on success, or 1 if there was an error."
3788 msgstr ""
3789
3790 #. type: textblock
3791 #: ../clone/virt-sysprep.pod:488
3792 msgid ""
3793 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3794 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3795 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3796 msgstr ""
3797
3798 #. type: textblock
3799 #: ../df/virt-df.pod:5
3800 msgid "virt-df - Display free space on virtual filesystems"
3801 msgstr ""
3802
3803 #. type: verbatim
3804 #: ../df/virt-df.pod:9
3805 #, no-wrap
3806 msgid ""
3807 " virt-df [--options]\n"
3808 "\n"
3809 msgstr ""
3810
3811 #. type: verbatim
3812 #: ../df/virt-df.pod:11
3813 #, no-wrap
3814 msgid ""
3815 " virt-df [--options] -d domname\n"
3816 "\n"
3817 msgstr ""
3818
3819 #. type: verbatim
3820 #: ../df/virt-df.pod:13
3821 #, no-wrap
3822 msgid ""
3823 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3824 "\n"
3825 msgstr ""
3826
3827 #. type: verbatim
3828 #: ../df/virt-df.pod:17
3829 #, no-wrap
3830 msgid ""
3831 " virt-df [--options] domname\n"
3832 "\n"
3833 msgstr ""
3834
3835 #. type: verbatim
3836 #: ../df/virt-df.pod:19
3837 #, no-wrap
3838 msgid ""
3839 " virt-df [--options] disk.img [disk.img ...]\n"
3840 "\n"
3841 msgstr ""
3842
3843 #. type: textblock
3844 #: ../df/virt-df.pod:23
3845 msgid ""
3846 "C<virt-df> is a command line tool to display free space on virtual machine "
3847 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3848 "allocated to a virtual machine, but can look inside disk images to see how "
3849 "much space is really being used."
3850 msgstr ""
3851
3852 #. type: textblock
3853 #: ../df/virt-df.pod:28
3854 msgid ""
3855 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3856 "to get a list of all active and inactive guests, and performs a C<df>-type "
3857 "operation on each one in turn, printing out the results."
3858 msgstr ""
3859
3860 #. type: textblock
3861 #: ../df/virt-df.pod:32
3862 msgid ""
3863 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3864 "type operation on either the single named libvirt domain, or on the disk "
3865 "image(s) listed on the command line (which must all belong to a single VM).  "
3866 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3867 "guest>.  If you want to run on multiple guests, then you have to invoke "
3868 "C<virt-df> multiple times."
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../df/virt-df.pod:39
3873 msgid ""
3874 "Use the I<--csv> option to get a format which can be easily parsed by other "
3875 "programs.  Other options are similar to the standard L<df(1)> command."
3876 msgstr ""
3877
3878 #. type: textblock
3879 #: ../df/virt-df.pod:45
3880 msgid ""
3881 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3882 "output human-readable:"
3883 msgstr ""
3884
3885 #. type: verbatim
3886 #: ../df/virt-df.pod:48
3887 #, no-wrap
3888 msgid ""
3889 " # virt-df -d F14x64 -h\n"
3890 " Filesystem                       Size     Used  Available  Use%\n"
3891 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3892 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3893 "\n"
3894 msgstr ""
3895
3896 #. type: textblock
3897 #: ../df/virt-df.pod:53
3898 msgid "Show disk usage for a disk image file called C<test.img>:"
3899 msgstr ""
3900
3901 #. type: verbatim
3902 #: ../df/virt-df.pod:55
3903 #, no-wrap
3904 msgid ""
3905 " $ virt-df -a test1.img\n"
3906 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3907 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3908 "\n"
3909 msgstr ""
3910
3911 #. type: verbatim
3912 #: ../df/virt-df.pod:112
3913 #, no-wrap
3914 msgid ""
3915 " virt-df --format=raw -a disk.img\n"
3916 "\n"
3917 msgstr ""
3918
3919 #. type: verbatim
3920 #: ../df/virt-df.pod:116
3921 #, no-wrap
3922 msgid ""
3923 " virt-df --format=raw -a disk.img --format -a another.img\n"
3924 "\n"
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../df/virt-df.pod:129
3929 msgid "Print sizes in human-readable format."
3930 msgstr ""
3931
3932 #. type: textblock
3933 #: ../df/virt-df.pod:131
3934 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3935 msgstr ""
3936
3937 #. type: =item
3938 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3939 msgid "B<-i>"
3940 msgstr ""
3941
3942 #. type: =item
3943 #: ../df/virt-df.pod:135
3944 msgid "B<--inodes>"
3945 msgstr ""
3946
3947 #. type: textblock
3948 #: ../df/virt-df.pod:137
3949 msgid "Print inodes instead of blocks."
3950 msgstr ""
3951
3952 #. type: =item
3953 #: ../df/virt-df.pod:139
3954 msgid "B<--one-per-guest>"
3955 msgstr ""
3956
3957 #. type: textblock
3958 #: ../df/virt-df.pod:141
3959 msgid ""
3960 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3961 "disks from several guests to a single libguestfs appliance."
3962 msgstr ""
3963
3964 #. type: textblock
3965 #: ../df/virt-df.pod:144
3966 msgid "You might use this option in the following circumstances:"
3967 msgstr ""
3968
3969 #. type: textblock
3970 #: ../df/virt-df.pod:150
3971 msgid ""
3972 "If you think an untrusted guest might actively try to exploit the libguestfs "
3973 "appliance kernel, then this prevents one guest from interfering with the "
3974 "stats printed for another guest."
3975 msgstr ""
3976
3977 #. type: textblock
3978 #: ../df/virt-df.pod:156
3979 msgid ""
3980 "If the kernel has a bug which stops it from accessing a filesystem in one "
3981 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3982 "and report stats for further guests."
3983 msgstr ""
3984
3985 #. type: textblock
3986 #: ../df/virt-df.pod:165
3987 msgid ""
3988 "Print UUIDs instead of names.  This is useful for following a guest even "
3989 "when the guest is migrated or renamed, or when two guests happen to have the "
3990 "same name."
3991 msgstr ""
3992
3993 #. type: textblock
3994 #: ../df/virt-df.pod:169
3995 msgid ""
3996 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3997 "images, we still print the disk image name even when this option is "
3998 "specified."
3999 msgstr ""
4000
4001 #. type: =head1
4002 #: ../df/virt-df.pod:191
4003 msgid "STATVFS NUMBERS"
4004 msgstr ""
4005
4006 #. type: textblock
4007 #: ../df/virt-df.pod:193
4008 msgid ""
4009 "C<virt-df> (and L<df(1)>) get information by issuing a L<statvfs(3)> system "
4010 "call.  You can get the same information directly, either from the host "
4011 "(using libguestfs) or inside the guest:"
4012 msgstr ""
4013
4014 #. type: =item
4015 #: ../df/virt-df.pod:199
4016 msgid "From the host"
4017 msgstr ""
4018
4019 #. type: textblock
4020 #: ../df/virt-df.pod:201 ../df/virt-df.pod:209
4021 msgid "Run this command:"
4022 msgstr ""
4023
4024 #. type: verbatim
4025 #: ../df/virt-df.pod:203
4026 #, no-wrap
4027 msgid ""
4028 " guestfish --ro -d GuestName -i statvfs /\n"
4029 "\n"
4030 msgstr ""
4031
4032 #. type: textblock
4033 #: ../df/virt-df.pod:205 ../df/virt-df.pod:213
4034 msgid "(change C</> to see stats for other filesystems)."
4035 msgstr ""
4036
4037 #. type: =item
4038 #: ../df/virt-df.pod:207
4039 msgid "From inside the guest"
4040 msgstr ""
4041
4042 #. type: verbatim
4043 #: ../df/virt-df.pod:211
4044 #, no-wrap
4045 msgid ""
4046 " python -c 'import os; s = os.statvfs (\"/\"); print s'\n"
4047 "\n"
4048 msgstr ""
4049
4050 #. type: textblock
4051 #: ../df/virt-df.pod:255
4052 msgid ""
4053 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4054 "libguestfs.org/>."
4055 msgstr ""
4056
4057 #. type: textblock
4058 #: ../edit/virt-edit.pod:5
4059 msgid "virt-edit - Edit a file in a virtual machine"
4060 msgstr ""
4061
4062 #. type: verbatim
4063 #: ../edit/virt-edit.pod:9
4064 #, no-wrap
4065 msgid ""
4066 " virt-edit [--options] -d domname file [file ...]\n"
4067 "\n"
4068 msgstr ""
4069
4070 #. type: verbatim
4071 #: ../edit/virt-edit.pod:11
4072 #, no-wrap
4073 msgid ""
4074 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4075 "\n"
4076 msgstr ""
4077
4078 #. type: verbatim
4079 #: ../edit/virt-edit.pod:13
4080 #, no-wrap
4081 msgid ""
4082 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4083 "\n"
4084 msgstr ""
4085
4086 #. type: verbatim
4087 #: ../edit/virt-edit.pod:17
4088 #, no-wrap
4089 msgid ""
4090 " virt-edit domname file\n"
4091 "\n"
4092 msgstr ""
4093
4094 #. type: verbatim
4095 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4096 #, no-wrap
4097 msgid ""
4098 " virt-edit disk.img [disk.img ...] file\n"
4099 "\n"
4100 msgstr ""
4101
4102 #. type: =head1
4103 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4104 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4105 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:21
4106 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4107 msgid "WARNING"
4108 msgstr ""
4109
4110 #. type: textblock
4111 #: ../edit/virt-edit.pod:23
4112 msgid ""
4113 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4114 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4115 "doing this, but doesn't catch all cases."
4116 msgstr ""
4117
4118 #. type: textblock
4119 #: ../edit/virt-edit.pod:29
4120 msgid ""
4121 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4122 "exists in the named virtual machine (or disk image)."
4123 msgstr ""
4124
4125 #. type: textblock
4126 #: ../edit/virt-edit.pod:32
4127 msgid ""
4128 "Multiple filenames can be given, in which case they are each edited in "
4129 "turn.  Each filename must be a full path, starting at the root directory "
4130 "(starting with '/')."
4131 msgstr ""
4132
4133 #. type: textblock
4134 #: ../edit/virt-edit.pod:36
4135 msgid "If you want to just view a file, use L<virt-cat(1)>."
4136 msgstr ""
4137
4138 #. type: textblock
4139 #: ../edit/virt-edit.pod:38
4140 msgid ""
4141 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4142 "USING GUESTFISH> below)."
4143 msgstr ""
4144
4145 #. type: textblock
4146 #: ../edit/virt-edit.pod:41
4147 msgid ""
4148 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4149 "that and much more."
4150 msgstr ""
4151
4152 #. type: textblock
4153 #: ../edit/virt-edit.pod:46
4154 msgid "Edit the named files interactively:"
4155 msgstr ""
4156
4157 #. type: verbatim
4158 #: ../edit/virt-edit.pod:48
4159 #, no-wrap
4160 msgid ""
4161 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4162 "\n"
4163 msgstr ""
4164
4165 #. type: verbatim
4166 #: ../edit/virt-edit.pod:50
4167 #, no-wrap
4168 msgid ""
4169 " virt-edit -d mydomain /etc/passwd\n"
4170 "\n"
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../edit/virt-edit.pod:52
4175 msgid "For Windows guests, some Windows paths are understood:"
4176 msgstr ""
4177
4178 #. type: verbatim
4179 #: ../edit/virt-edit.pod:54
4180 #, no-wrap
4181 msgid ""
4182 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4183 "\n"
4184 msgstr ""
4185
4186 #. type: textblock
4187 #: ../edit/virt-edit.pod:56
4188 msgid ""
4189 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4190 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4191 msgstr ""
4192
4193 #. type: verbatim
4194 #: ../edit/virt-edit.pod:60
4195 #, no-wrap
4196 msgid ""
4197 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4198 "\n"
4199 msgstr ""
4200
4201 #. type: =item
4202 #: ../edit/virt-edit.pod:81
4203 msgid "B<-b> extension"
4204 msgstr ""
4205
4206 #. type: =item
4207 #: ../edit/virt-edit.pod:83
4208 msgid "B<--backup> extension"
4209 msgstr ""
4210
4211 #. type: textblock
4212 #: ../edit/virt-edit.pod:85
4213 msgid ""
4214 "Create a backup of the original file I<in the guest disk image>.  The backup "
4215 "has the original filename with C<extension> added."
4216 msgstr ""
4217
4218 #. type: textblock
4219 #: ../edit/virt-edit.pod:88
4220 msgid ""
4221 "Usually the first character of C<extension> would be a dot C<.> so you would "
4222 "write:"
4223 msgstr ""
4224
4225 #. type: verbatim
4226 #: ../edit/virt-edit.pod:91
4227 #, no-wrap
4228 msgid ""
4229 " virt-edit -b .orig [etc]\n"
4230 "\n"
4231 msgstr ""
4232
4233 #. type: textblock
4234 #: ../edit/virt-edit.pod:93
4235 msgid "By default, no backup file is made."
4236 msgstr ""
4237
4238 #. type: =item
4239 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4240 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4241 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4242 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4243 msgid "B<-c URI>"
4244 msgstr ""
4245
4246 #. type: =item
4247 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4248 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4249 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4250 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4251 msgid "B<--connect URI>"
4252 msgstr ""
4253
4254 #. type: textblock
4255 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4256 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4257 #: ../tools/virt-win-reg.pl:135
4258 msgid ""
4259 "If you specify guest block devices directly, then libvirt is not used at all."
4260 msgstr ""
4261
4262 #. type: textblock
4263 #: ../edit/virt-edit.pod:114
4264 msgid ""
4265 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4266 "off so you cannot see what you are typing.  If you are not worried about "
4267 "Tempest attacks and there is no one else in the room you can specify this "
4268 "flag to see what you are typing."
4269 msgstr ""
4270
4271 #. type: =item
4272 #: ../edit/virt-edit.pod:119
4273 msgid "B<-e> EXPR"
4274 msgstr ""
4275
4276 #. type: =item
4277 #: ../edit/virt-edit.pod:121
4278 msgid "B<--expr> EXPR"
4279 msgstr ""
4280
4281 #. type: textblock
4282 #: ../edit/virt-edit.pod:123
4283 msgid ""
4284 "Instead of launching the external editor, non-interactively apply the Perl "
4285 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4286 "EDITING> below."
4287 msgstr ""
4288
4289 #. type: textblock
4290 #: ../edit/virt-edit.pod:127
4291 msgid ""
4292 "Be careful to properly quote the expression to prevent it from being altered "
4293 "by the shell."
4294 msgstr ""
4295
4296 #. type: textblock
4297 #: ../edit/virt-edit.pod:130
4298 msgid "Note that this option is only available when Perl 5 is installed."
4299 msgstr ""
4300
4301 #. type: =item
4302 #: ../edit/virt-edit.pod:132
4303 msgid "B<--format> raw|qcow2|..."
4304 msgstr ""
4305
4306 #. type: verbatim
4307 #: ../edit/virt-edit.pod:143
4308 #, no-wrap
4309 msgid ""
4310 " virt-edit --format=raw -a disk.img file\n"
4311 "\n"
4312 msgstr ""
4313
4314 #. type: verbatim
4315 #: ../edit/virt-edit.pod:147
4316 #, no-wrap
4317 msgid ""
4318 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4319 "\n"
4320 msgstr ""
4321
4322 #. type: textblock
4323 #: ../edit/virt-edit.pod:181
4324 msgid "Previous versions of virt-edit allowed you to write either:"
4325 msgstr ""
4326
4327 #. type: verbatim
4328 #: ../edit/virt-edit.pod:187
4329 #, no-wrap
4330 msgid ""
4331 " virt-edit guestname file\n"
4332 "\n"
4333 msgstr ""
4334
4335 #. type: =head1
4336 #: ../edit/virt-edit.pod:195
4337 msgid "NON-INTERACTIVE EDITING"
4338 msgstr ""
4339
4340 #. type: textblock
4341 #: ../edit/virt-edit.pod:197
4342 msgid ""
4343 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4344 "administrator can interactively edit the file."
4345 msgstr ""
4346
4347 #. type: textblock
4348 #: ../edit/virt-edit.pod:200
4349 msgid ""
4350 "There are two ways also to use C<virt-edit> from scripts in order to make "
4351 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4352 "like this, it's less error-prone to write scripts directly using the "
4353 "libguestfs API and Augeas for configuration file editing.)"
4354 msgstr ""
4355
4356 #. type: textblock
4357 #: ../edit/virt-edit.pod:206
4358 msgid ""
4359 "The first method is to temporarily set C<$EDITOR> to any script or program "
4360 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4361 "update C<tmpfile> in place however it likes."
4362 msgstr ""
4363
4364 #. type: textblock
4365 #: ../edit/virt-edit.pod:210
4366 msgid ""
4367 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4368 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4369 "instances of C<foo> with C<bar> in a file:"
4370 msgstr ""
4371
4372 #. type: verbatim
4373 #: ../edit/virt-edit.pod:214
4374 #, no-wrap
4375 msgid ""
4376 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4377 "\n"
4378 msgstr ""
4379
4380 #. type: textblock
4381 #: ../edit/virt-edit.pod:216
4382 msgid ""
4383 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4384 "For example to delete root's password you could do:"
4385 msgstr ""
4386
4387 #. type: verbatim
4388 #: ../edit/virt-edit.pod:219
4389 #, no-wrap
4390 msgid ""
4391 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4392 "\n"
4393 msgstr ""
4394
4395 #. type: textblock
4396 #: ../edit/virt-edit.pod:221
4397 msgid ""
4398 "What really happens is that the snippet is evaluated as a Perl expression "
4399 "for each line of the file.  The line, including the final C<\\n>, is passed "
4400 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4401 msgstr ""
4402
4403 #. type: textblock
4404 #: ../edit/virt-edit.pod:226
4405 msgid ""
4406 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4407 "C<apache> user account from the password file you can do:"
4408 msgstr ""
4409
4410 #. type: verbatim
4411 #: ../edit/virt-edit.pod:229
4412 #, no-wrap
4413 msgid ""
4414 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4415 "\n"
4416 msgstr ""
4417
4418 #. type: textblock
4419 #: ../edit/virt-edit.pod:231
4420 msgid ""
4421 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4422 "the end of the file is rather difficult this way since there is no concept "
4423 "of \"last line of the file\" - your expression just doesn't get called "
4424 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4425 "want to do this."
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../edit/virt-edit.pod:237
4430 msgid ""
4431 "The variable C<$lineno> contains the current line number.  As is "
4432 "traditional, the first line in the file is number C<1>."
4433 msgstr ""
4434
4435 #. type: textblock
4436 #: ../edit/virt-edit.pod:240
4437 msgid ""
4438 "The return value from the expression is ignored, but the expression may call "
4439 "C<die> in order to abort the whole program, leaving the original file "
4440 "untouched."
4441 msgstr ""
4442
4443 #. type: textblock
4444 #: ../edit/virt-edit.pod:244
4445 msgid ""
4446 "Remember when matching the end of a line that C<$_> may contain the final C<"
4447 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4448 "newline then neither of these.  Thus to match or substitute some text at the "
4449 "end of a line, use this regular expression:"
4450 msgstr ""
4451
4452 #. type: verbatim
4453 #: ../edit/virt-edit.pod:249
4454 #, no-wrap
4455 msgid ""
4456 " /some text(\\r?\\n)?$/\n"
4457 "\n"
4458 msgstr ""
4459
4460 #. type: textblock
4461 #: ../edit/virt-edit.pod:251
4462 msgid ""
4463 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4464 "$_> itself (since that would remove all newlines from the file):"
4465 msgstr ""
4466
4467 #. type: verbatim
4468 #: ../edit/virt-edit.pod:255
4469 #, no-wrap
4470 msgid ""
4471 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4472 "\n"
4473 msgstr ""
4474
4475 #. type: textblock
4476 #: ../edit/virt-edit.pod:259
4477 msgid ""
4478 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4479 "paths (eg. C<E:\\foo\\bar.txt>)."
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../edit/virt-edit.pod:278
4484 msgid ""
4485 "The path is resolved case insensitively to locate the file that should be "
4486 "edited."
4487 msgstr ""
4488
4489 #. type: textblock
4490 #: ../edit/virt-edit.pod:299
4491 msgid ""
4492 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4493 "C<virt-edit> doesn't work."
4494 msgstr ""
4495
4496 #. type: textblock
4497 #: ../edit/virt-edit.pod:302
4498 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4499 msgstr ""
4500
4501 #. type: verbatim
4502 #: ../edit/virt-edit.pod:304
4503 #, no-wrap
4504 msgid ""
4505 " guestfish --rw -i -d domname edit /file\n"
4506 "\n"
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../edit/virt-edit.pod:306
4511 msgid ""
4512 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4513 "path to the file."
4514 msgstr ""
4515
4516 #. type: textblock
4517 #: ../edit/virt-edit.pod:309
4518 msgid ""
4519 "The command above uses libguestfs's guest inspection feature and so does not "
4520 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4521 "disk images that don't contain guests.  To edit a file on a disk image "
4522 "directly, use:"
4523 msgstr ""
4524
4525 #. type: verbatim
4526 #: ../edit/virt-edit.pod:314
4527 #, no-wrap
4528 msgid ""
4529 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4530 "\n"
4531 msgstr ""
4532
4533 #. type: textblock
4534 #: ../edit/virt-edit.pod:316
4535 msgid ""
4536 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4537 "the disk image to edit, and C</file> is the full path to the file."
4538 msgstr ""
4539
4540 #. type: textblock
4541 #: ../edit/virt-edit.pod:320
4542 msgid ""
4543 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4544 "C<write> or C<upload> instead:"
4545 msgstr ""
4546
4547 #. type: verbatim
4548 #: ../edit/virt-edit.pod:323
4549 #, no-wrap
4550 msgid ""
4551 " guestfish --rw -i -d domname touch /newfile\n"
4552 "\n"
4553 msgstr ""
4554
4555 #. type: verbatim
4556 #: ../edit/virt-edit.pod:325
4557 #, no-wrap
4558 msgid ""
4559 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4560 "\n"
4561 msgstr ""
4562
4563 #. type: verbatim
4564 #: ../edit/virt-edit.pod:327
4565 #, no-wrap
4566 msgid ""
4567 " guestfish --rw -i -d domname upload localfile /newfile\n"
4568 "\n"
4569 msgstr ""
4570
4571 #. type: =head1
4572 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4573 #: ../rescue/virt-rescue.pod:298 ../sparsify/virt-sparsify.pod:256
4574 #: ../src/guestfs.pod:3195 ../test-tool/libguestfs-test-tool.pod:95
4575 msgid "ENVIRONMENT VARIABLES"
4576 msgstr ""
4577
4578 #. type: =item
4579 #: ../edit/virt-edit.pod:333
4580 msgid "C<EDITOR>"
4581 msgstr ""
4582
4583 #. type: textblock
4584 #: ../edit/virt-edit.pod:335
4585 msgid ""
4586 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4587 "\"emacs -nw\">"
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../edit/virt-edit.pod:338
4592 msgid "If not set, C<vi> is used."
4593 msgstr ""
4594
4595 #. type: textblock
4596 #: ../edit/virt-edit.pod:356
4597 msgid ""
4598 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4599 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4600 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4601 msgstr ""
4602
4603 #. type: textblock
4604 #: ../erlang/examples/guestfs-erlang.pod:5
4605 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4606 msgstr ""
4607
4608 #. type: verbatim
4609 #: ../erlang/examples/guestfs-erlang.pod:9
4610 #, no-wrap
4611 msgid ""
4612 " {ok, G} = guestfs:create(),\n"
4613 " ok = guestfs:add_drive_opts(G, Disk,\n"
4614 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4615 " ok = guestfs:launch(G),\n"
4616 " [Device] = guestfs:list_devices(G),\n"
4617 " ok = guestfs:close(G).\n"
4618 "\n"
4619 msgstr ""
4620
4621 #. type: textblock
4622 #: ../erlang/examples/guestfs-erlang.pod:18
4623 msgid ""
4624 "This manual page documents how to call libguestfs from the Erlang "
4625 "programming language.  This page just documents the differences from the C "
4626 "API and gives some examples.  If you are not familiar with using libguestfs, "
4627 "you also need to read L<guestfs(3)>."
4628 msgstr ""
4629
4630 #. type: =head2
4631 #: ../erlang/examples/guestfs-erlang.pod:23
4632 msgid "OPENING AND CLOSING THE HANDLE"
4633 msgstr ""
4634
4635 #. type: textblock
4636 #: ../erlang/examples/guestfs-erlang.pod:25
4637 msgid ""
4638 "The Erlang bindings are implemented using an external program called C<erl-"
4639 "guestfs>.  This program must be on the current PATH, or else you should "
4640 "specify the full path to the program:"
4641 msgstr ""
4642
4643 #. type: verbatim
4644 #: ../erlang/examples/guestfs-erlang.pod:29
4645 #, no-wrap
4646 msgid ""
4647 " {ok, G} = guestfs:create().\n"
4648 "\n"
4649 msgstr ""
4650
4651 #. type: verbatim
4652 #: ../erlang/examples/guestfs-erlang.pod:31
4653 #, no-wrap
4654 msgid ""
4655 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4656 "\n"
4657 msgstr ""
4658
4659 #. type: textblock
4660 #: ../erlang/examples/guestfs-erlang.pod:33
4661 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4662 msgstr ""
4663
4664 #. type: textblock
4665 #: ../erlang/examples/guestfs-erlang.pod:36
4666 msgid "To close the handle:"
4667 msgstr ""
4668
4669 #. type: verbatim
4670 #: ../erlang/examples/guestfs-erlang.pod:38
4671 #, no-wrap
4672 msgid ""
4673 " ok = guestfs:close(G).\n"
4674 "\n"
4675 msgstr ""
4676
4677 #. type: =head2
4678 #: ../erlang/examples/guestfs-erlang.pod:40
4679 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4680 msgstr ""
4681
4682 #. type: textblock
4683 #: ../erlang/examples/guestfs-erlang.pod:42
4684 msgid ""
4685 "For functions that take optional arguments, the first arguments are the non-"
4686 "optional ones.  The last argument is a list of tuples supplying the "
4687 "remaining optional arguments."
4688 msgstr ""
4689
4690 #. type: verbatim
4691 #: ../erlang/examples/guestfs-erlang.pod:46
4692 #, no-wrap
4693 msgid ""
4694 " ok = guestfs:add_drive_opts(G, Disk,\n"
4695 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4696 "\n"
4697 msgstr ""
4698
4699 #. type: textblock
4700 #: ../erlang/examples/guestfs-erlang.pod:49
4701 msgid "If the last argument would be an empty list, you can also omit it:"
4702 msgstr ""
4703
4704 #. type: verbatim
4705 #: ../erlang/examples/guestfs-erlang.pod:51
4706 #, no-wrap
4707 msgid ""
4708 " ok = guestfs:add_drive_opts(G, Disk).\n"
4709 "\n"
4710 msgstr ""
4711
4712 #. type: =head2
4713 #: ../erlang/examples/guestfs-erlang.pod:53
4714 msgid "RETURN VALUES AND ERRORS"
4715 msgstr ""
4716
4717 #. type: textblock
4718 #: ../erlang/examples/guestfs-erlang.pod:55
4719 msgid ""
4720 "On success, most functions return a C<Result> term (which could be a list, "
4721 "string, tuple etc.).  If there is nothing for the function to return, then "
4722 "the atom C<ok> is returned."
4723 msgstr ""
4724
4725 #. type: textblock
4726 #: ../erlang/examples/guestfs-erlang.pod:59
4727 msgid "On error, you would see one of the following tuples:"
4728 msgstr ""
4729
4730 #. type: =item
4731 #: ../erlang/examples/guestfs-erlang.pod:63
4732 msgid "C<{error, Msg, Errno}>"
4733 msgstr ""
4734
4735 #. type: textblock
4736 #: ../erlang/examples/guestfs-erlang.pod:65
4737 msgid "This indicates an ordinary error from the function."
4738 msgstr ""
4739
4740 #. type: textblock
4741 #: ../erlang/examples/guestfs-erlang.pod:67
4742 msgid ""
4743 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4744 "(integer)."
4745 msgstr ""
4746
4747 #. type: textblock
4748 #: ../erlang/examples/guestfs-erlang.pod:70
4749 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4750 msgstr ""
4751
4752 #. type: =item
4753 #: ../erlang/examples/guestfs-erlang.pod:72
4754 msgid "C<{unknown, Function}>"
4755 msgstr ""
4756
4757 #. type: textblock
4758 #: ../erlang/examples/guestfs-erlang.pod:74
4759 msgid ""
4760 "This indicates that the function you called is not known.  Generally this "
4761 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4762 "which you should not do."
4763 msgstr ""
4764
4765 #. type: textblock
4766 #: ../erlang/examples/guestfs-erlang.pod:78
4767 msgid "C<Function> is the name of the unknown function."
4768 msgstr ""
4769
4770 #. type: =item
4771 #: ../erlang/examples/guestfs-erlang.pod:80
4772 msgid "C<{unknownarg, Arg}>"
4773 msgstr ""
4774
4775 #. type: textblock
4776 #: ../erlang/examples/guestfs-erlang.pod:82
4777 msgid ""
4778 "This indicates that you called a function with optional arguments, with an "
4779 "unknown argument name."
4780 msgstr ""
4781
4782 #. type: textblock
4783 #: ../erlang/examples/guestfs-erlang.pod:85
4784 msgid "C<Arg> is the name of the unknown argument."
4785 msgstr ""
4786
4787 #. type: =head1
4788 #: ../erlang/examples/guestfs-erlang.pod:89
4789 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4790 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4791 #: ../python/examples/guestfs-python.pod:34
4792 #: ../ruby/examples/guestfs-ruby.pod:28
4793 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4794 msgstr ""
4795
4796 #. type: textblock
4797 #: ../erlang/examples/guestfs-erlang.pod:91
4798 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4799 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4800 #: ../python/examples/guestfs-python.pod:36
4801 #: ../ruby/examples/guestfs-ruby.pod:30
4802 msgid "@EXAMPLE1@"
4803 msgstr ""
4804
4805 #. type: =head1
4806 #: ../erlang/examples/guestfs-erlang.pod:93
4807 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4808 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4809 #: ../python/examples/guestfs-python.pod:38
4810 #: ../ruby/examples/guestfs-ruby.pod:32
4811 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4812 msgstr ""
4813
4814 #. type: textblock
4815 #: ../erlang/examples/guestfs-erlang.pod:95
4816 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4817 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4818 #: ../python/examples/guestfs-python.pod:40
4819 #: ../ruby/examples/guestfs-ruby.pod:34
4820 msgid "@EXAMPLE2@"
4821 msgstr ""
4822
4823 #. type: textblock
4824 #: ../erlang/examples/guestfs-erlang.pod:99
4825 msgid ""
4826 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4827 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4828 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4829 msgstr ""
4830
4831 #. type: =head1
4832 #: ../erlang/examples/guestfs-erlang.pod:110
4833 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4834 #: ../examples/guestfs-testing.pod:298 ../fish/guestfish.pod:1296
4835 #: ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49
4836 #: ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51
4837 #: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:404
4838 #: ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91
4839 #: ../perl/examples/guestfs-perl.pod:52
4840 #: ../python/examples/guestfs-python.pod:54
4841 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3335
4842 #: ../test-tool/libguestfs-test-tool.pod:106
4843 msgid "AUTHORS"
4844 msgstr ""
4845
4846 #. type: textblock
4847 #: ../erlang/examples/guestfs-erlang.pod:112
4848 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4849 #: ../examples/guestfs-testing.pod:300 ../fish/guestfish.pod:1298
4850 #: ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51
4851 #: ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53
4852 #: ../fuse/guestmount.pod:330 ../java/examples/guestfs-java.pod:60
4853 #: ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54
4854 #: ../python/examples/guestfs-python.pod:56
4855 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3337
4856 #: ../test-tool/libguestfs-test-tool.pod:108
4857 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4858 msgstr ""
4859
4860 #. type: textblock
4861 #: ../erlang/examples/guestfs-erlang.pod:116
4862 #: ../examples/guestfs-testing.pod:304 ../java/examples/guestfs-java.pod:64
4863 #: ../perl/examples/guestfs-perl.pod:58
4864 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4865 msgstr ""
4866
4867 #. type: textblock
4868 #: ../erlang/examples/guestfs-erlang.pod:118
4869 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4870 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4871 #: ../perl/examples/guestfs-perl.pod:60
4872 #: ../python/examples/guestfs-python.pod:62
4873 #: ../ruby/examples/guestfs-ruby.pod:56
4874 msgid ""
4875 "The examples in this manual page may be freely copied, modified and "
4876 "distributed without any restrictions."
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../erlang/examples/guestfs-erlang.pod:121
4881 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4882 #: ../examples/guestfs-testing.pod:306 ../java/examples/guestfs-java.pod:69
4883 #: ../ocaml/examples/guestfs-ocaml.pod:102
4884 #: ../perl/examples/guestfs-perl.pod:63
4885 #: ../python/examples/guestfs-python.pod:65
4886 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3344
4887 msgid ""
4888 "This library is free software; you can redistribute it and/or modify it "
4889 "under the terms of the GNU Lesser General Public License as published by the "
4890 "Free Software Foundation; either version 2 of the License, or (at your "
4891 "option) any later version."
4892 msgstr ""
4893
4894 #. type: textblock
4895 #: ../erlang/examples/guestfs-erlang.pod:126
4896 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4897 #: ../examples/guestfs-testing.pod:311 ../java/examples/guestfs-java.pod:74
4898 #: ../ocaml/examples/guestfs-ocaml.pod:107
4899 #: ../perl/examples/guestfs-perl.pod:68
4900 #: ../python/examples/guestfs-python.pod:70
4901 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3349
4902 msgid ""
4903 "This library is distributed in the hope that it will be useful, but WITHOUT "
4904 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4905 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4906 "for more details."
4907 msgstr ""
4908
4909 #. type: textblock
4910 #: ../erlang/examples/guestfs-erlang.pod:131
4911 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4912 #: ../examples/guestfs-testing.pod:316 ../java/examples/guestfs-java.pod:79
4913 #: ../ocaml/examples/guestfs-ocaml.pod:112
4914 #: ../perl/examples/guestfs-perl.pod:73
4915 #: ../python/examples/guestfs-python.pod:75
4916 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3354
4917 msgid ""
4918 "You should have received a copy of the GNU Lesser General Public License "
4919 "along with this library; if not, write to the Free Software Foundation, "
4920 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4921 msgstr ""
4922
4923 #. type: textblock
4924 #: ../examples/guestfs-examples.pod:5
4925 msgid "guestfs-examples - Examples of using libguestfs from C"
4926 msgstr ""
4927
4928 #. type: verbatim
4929 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4930 #, no-wrap
4931 msgid ""
4932 " #include <guestfs.h>\n"
4933 " \n"
4934 msgstr "#include <guestfs.h>\n"
4935
4936 #. type: verbatim
4937 #: ../examples/guestfs-examples.pod:11
4938 #, no-wrap
4939 msgid ""
4940 " guestfs_h *g = guestfs_create ();\n"
4941 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4942 " guestfs_launch (g);\n"
4943 "\n"
4944 msgstr ""
4945
4946 #. type: verbatim
4947 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4948 #, no-wrap
4949 msgid ""
4950 " cc prog.c -o prog -lguestfs\n"
4951 "or:\n"
4952 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4953 "\n"
4954 msgstr ""
4955 " cc prog.c -o prog -lguestfs\n"
4956 "or:\n"
4957 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4958 "\n"
4959
4960 #. type: textblock
4961 #: ../examples/guestfs-examples.pod:21
4962 msgid ""
4963 "This manual page contains examples of calling libguestfs from the C "
4964 "programming language.  If you are not familiar with using libguestfs, you "
4965 "also need to read L<guestfs(3)>."
4966 msgstr ""
4967
4968 #. type: textblock
4969 #: ../examples/guestfs-examples.pod:35
4970 msgid ""
4971 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4972 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4973 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4974 msgstr ""
4975
4976 #. type: textblock
4977 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4978 #: ../python/examples/guestfs-python.pod:60
4979 #: ../ruby/examples/guestfs-ruby.pod:54
4980 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4981 msgstr ""
4982
4983 #. type: =end
4984 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4985 msgid "comment"
4986 msgstr ""
4987
4988 #. type: textblock
4989 #: ../examples/guestfs-recipes.pod:5
4990 msgid ""
4991 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4992 "here.  The only way which works for both sorts of output is to just write "
4993 "the URL directly.  Do NOT use L<...> for URLs."
4994 msgstr ""
4995
4996 #. type: textblock
4997 #: ../examples/guestfs-recipes.pod:9
4998 msgid ""
4999 "We break with tradition here and don't use ALL CAPS for the section "
5000 "headings, as this makes them much easier to read."
5001 msgstr ""
5002
5003 #. type: textblock
5004 #: ../examples/guestfs-recipes.pod:16
5005 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5006 msgstr ""
5007
5008 #. type: textblock
5009 #: ../examples/guestfs-recipes.pod:20
5010 msgid ""
5011 "This page contains recipes for and links to things you can do using "
5012 "libguestfs, L<guestfish(1)> and the virt tools."
5013 msgstr ""
5014
5015 #. type: =head1
5016 #: ../examples/guestfs-recipes.pod:23
5017 msgid "Audit a virtual machine for setuid files"
5018 msgstr ""
5019
5020 #. type: textblock
5021 #: ../examples/guestfs-recipes.pod:25
5022 msgid ""
5023 "The link below contains a small program which can be used to audit a Linux "
5024 "virtual machine to see what setuid and setgid files it contains."
5025 msgstr ""
5026
5027 #. type: textblock
5028 #: ../examples/guestfs-recipes.pod:28
5029 msgid ""
5030 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5031 "files/#content"
5032 msgstr ""
5033
5034 #. type: =head1
5035 #: ../examples/guestfs-recipes.pod:30
5036 msgid "Change the background image in a Windows XP VM"
5037 msgstr ""
5038
5039 #. type: textblock
5040 #: ../examples/guestfs-recipes.pod:32
5041 msgid ""
5042 "The links below explain how to use L<guestfish(1)> to change the background "
5043 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
5044 "be substantially different for each version of Windows."
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../examples/guestfs-recipes.pod:37
5049 msgid ""
5050 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5051 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5052 msgstr ""
5053
5054 #. type: =head1
5055 #: ../examples/guestfs-recipes.pod:40
5056 msgid "Cloning a virtual machine (Linux)"
5057 msgstr ""
5058
5059 #. type: textblock
5060 #: ../examples/guestfs-recipes.pod:42
5061 msgid ""
5062 "The guestfish technique described in the link below works well for most "
5063 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5064 "slightly."
5065 msgstr ""
5066
5067 #. type: textblock
5068 #: ../examples/guestfs-recipes.pod:46
5069 msgid ""
5070 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5071 "vm/#content"
5072 msgstr ""
5073
5074 #. type: textblock
5075 #: ../examples/guestfs-recipes.pod:48
5076 msgid ""
5077 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5078 "discussion."
5079 msgstr ""
5080
5081 #. type: textblock
5082 #: ../examples/guestfs-recipes.pod:51
5083 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5084 msgstr ""
5085
5086 #. type: =head1
5087 #: ../examples/guestfs-recipes.pod:53
5088 msgid "Cloning a virtual machine (Windows)"
5089 msgstr ""
5090
5091 #. type: textblock
5092 #: ../examples/guestfs-recipes.pod:55
5093 msgid ""
5094 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5095 "straightforward.  Currently there is code in the Aeolus Oz project which "
5096 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5097 "we may add sysprepping ability."
5098 msgstr ""
5099
5100 #. type: textblock
5101 #: ../examples/guestfs-recipes.pod:60
5102 msgid ""
5103 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5104 "list/2011-May/msg00019.html"
5105 msgstr ""
5106
5107 #. type: =head1
5108 #: ../examples/guestfs-recipes.pod:63
5109 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5110 msgstr ""
5111
5112 #. type: textblock
5113 #: ../examples/guestfs-recipes.pod:65
5114 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5115 msgstr ""
5116
5117 #. type: verbatim
5118 #: ../examples/guestfs-recipes.pod:67
5119 #, no-wrap
5120 msgid ""
5121 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5122 "\n"
5123 msgstr ""
5124
5125 #. type: textblock
5126 #: ../examples/guestfs-recipes.pod:69
5127 msgid "To export just a subdirectory, eg. C</files>, do:"
5128 msgstr ""
5129
5130 #. type: verbatim
5131 #: ../examples/guestfs-recipes.pod:71
5132 #, no-wrap
5133 msgid ""
5134 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5135 "\n"
5136 msgstr ""
5137
5138 #. type: =head1
5139 #: ../examples/guestfs-recipes.pod:73
5140 msgid "Create empty disk images"
5141 msgstr ""
5142
5143 #. type: textblock
5144 #: ../examples/guestfs-recipes.pod:75
5145 msgid ""
5146 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5147 "The useful guide below explains the options available."
5148 msgstr ""
5149
5150 #. type: textblock
5151 #: ../examples/guestfs-recipes.pod:78
5152 msgid ""
5153 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5154 "#content"
5155 msgstr ""
5156
5157 #. type: =head1
5158 #: ../examples/guestfs-recipes.pod:80
5159 msgid "Dump raw filesystem content from inside a disk image or VM"
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../examples/guestfs-recipes.pod:82
5164 msgid ""
5165 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5166 "filesystem content from any filesystem in a disk image or a VM (even one "
5167 "which is encrypted or buried inside an LV):"
5168 msgstr ""
5169
5170 #. type: verbatim
5171 #: ../examples/guestfs-recipes.pod:86
5172 #, no-wrap
5173 msgid ""
5174 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5175 "\n"
5176 msgstr ""
5177
5178 #. type: verbatim
5179 #: ../examples/guestfs-recipes.pod:88
5180 #, no-wrap
5181 msgid ""
5182 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5183 "\n"
5184 msgstr ""
5185
5186 #. type: textblock
5187 #: ../examples/guestfs-recipes.pod:90
5188 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5189 msgstr ""
5190
5191 #. type: =head1
5192 #: ../examples/guestfs-recipes.pod:92
5193 msgid "Edit grub configuration in a VM"
5194 msgstr ""
5195
5196 #. type: textblock
5197 #: ../examples/guestfs-recipes.pod:94
5198 msgid "You can use this to:"
5199 msgstr ""
5200
5201 #. type: textblock
5202 #: ../examples/guestfs-recipes.pod:100
5203 msgid "Fix a virtual machine that does not boot."
5204 msgstr ""
5205
5206 #. type: textblock
5207 #: ../examples/guestfs-recipes.pod:104
5208 msgid "Change which kernel is used to boot the VM."
5209 msgstr ""
5210
5211 #. type: textblock
5212 #: ../examples/guestfs-recipes.pod:108
5213 msgid "Change kernel command line options."
5214 msgstr ""
5215
5216 #. type: textblock
5217 #: ../examples/guestfs-recipes.pod:112
5218 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5219 msgstr ""
5220
5221 #. type: verbatim
5222 #: ../examples/guestfs-recipes.pod:114
5223 #, no-wrap
5224 msgid ""
5225 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5226 "\n"
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../examples/guestfs-recipes.pod:116
5231 msgid ""
5232 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5233 "this:"
5234 msgstr ""
5235
5236 #. type: verbatim
5237 #: ../examples/guestfs-recipes.pod:119
5238 #, no-wrap
5239 msgid ""
5240 " virt-rescue -d BrokenGuest\n"
5241 "\n"
5242 msgstr ""
5243
5244 #. type: =head1
5245 #: ../examples/guestfs-recipes.pod:121
5246 msgid "Export any directory from a VM"
5247 msgstr ""
5248
5249 #. type: textblock
5250 #: ../examples/guestfs-recipes.pod:123
5251 msgid ""
5252 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5253 msgstr ""
5254
5255 #. type: verbatim
5256 #: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93
5257 #, no-wrap
5258 msgid ""
5259 " virt-copy-out -d Guest /home .\n"
5260 "\n"
5261 msgstr ""
5262
5263 #. type: textblock
5264 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5265 #: ../fish/guestfish-actions.pod:1481 ../fish/guestfish-actions.pod:1746
5266 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:18
5267 #: ../src/guestfs-actions.pod:2373 ../src/guestfs-actions.pod:2797
5268 #: ../src/guestfs-actions.pod:3356 ../src/guestfs.pod:1685
5269 #: ../tools/virt-win-reg.pl:717
5270 msgid "Notes:"
5271 msgstr ""
5272
5273 #. type: textblock
5274 #: ../examples/guestfs-recipes.pod:134
5275 msgid ""
5276 "The final dot of the command is not a printing error.  It means we want to "
5277 "copy out to the current directory."
5278 msgstr ""
5279
5280 #. type: textblock
5281 #: ../examples/guestfs-recipes.pod:139
5282 msgid "This creates a directory called C<home> under the current directory."
5283 msgstr ""
5284
5285 #. type: textblock
5286 #: ../examples/guestfs-recipes.pod:143
5287 msgid ""
5288 "If the guest is a Windows guest then you can use drive letters and "
5289 "backslashes, but you must prefix the path with C<win:> and quote it to "
5290 "protect it from the shell, like this:"
5291 msgstr ""
5292
5293 #. type: verbatim
5294 #: ../examples/guestfs-recipes.pod:147
5295 #, no-wrap
5296 msgid ""
5297 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5298 "\n"
5299 msgstr ""
5300
5301 #. type: textblock
5302 #: ../examples/guestfs-recipes.pod:149
5303 msgid "To get the output as a compressed tarball, do:"
5304 msgstr ""
5305
5306 #. type: verbatim
5307 #: ../examples/guestfs-recipes.pod:151
5308 #, no-wrap
5309 msgid ""
5310 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5311 "\n"
5312 msgstr ""
5313
5314 #. type: textblock
5315 #: ../examples/guestfs-recipes.pod:153
5316 msgid ""
5317 "Although it sounds tempting, this is usually not a reliable way to get a "
5318 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5319 "org/FAQ.html#backup"
5320 msgstr ""
5321
5322 #. type: =head1
5323 #: ../examples/guestfs-recipes.pod:157
5324 msgid "Find out which user is using the most space"
5325 msgstr ""
5326
5327 #. type: textblock
5328 #: ../examples/guestfs-recipes.pod:159
5329 msgid ""
5330 "This simple script examines a Linux guest to find out which user is using "
5331 "the most space in their home directory:"
5332 msgstr ""
5333
5334 #. type: verbatim
5335 #: ../examples/guestfs-recipes.pod:162
5336 #, no-wrap
5337 msgid ""
5338 " #!/bin/sh -\n"
5339 " \n"
5340 msgstr ""
5341
5342 #. type: verbatim
5343 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5344 #, no-wrap
5345 msgid ""
5346 " set -e\n"
5347 " \n"
5348 msgstr ""
5349
5350 #. type: verbatim
5351 #: ../examples/guestfs-recipes.pod:166
5352 #, no-wrap
5353 msgid ""
5354 " vm=\"$1\"\n"
5355 " dir=/home\n"
5356 " \n"
5357 msgstr ""
5358
5359 #. type: verbatim
5360 #: ../examples/guestfs-recipes.pod:169
5361 #, no-wrap
5362 msgid ""
5363 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5364 " \n"
5365 msgstr ""
5366
5367 #. type: verbatim
5368 #: ../examples/guestfs-recipes.pod:171
5369 #, no-wrap
5370 msgid ""
5371 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5372 "     echo -n \"$dir/$d\"\n"
5373 "     echo -ne '\\t'\n"
5374 "     guestfish --remote du \"$dir/$d\";\n"
5375 " done | sort -nr -k 2\n"
5376 " \n"
5377 msgstr ""
5378
5379 #. type: verbatim
5380 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5381 #, no-wrap
5382 msgid ""
5383 " guestfish --remote exit\n"
5384 "\n"
5385 msgstr ""
5386
5387 #. type: =head1
5388 #: ../examples/guestfs-recipes.pod:179
5389 msgid "Get DHCP address from a VM"
5390 msgstr ""
5391
5392 #. type: textblock
5393 #: ../examples/guestfs-recipes.pod:181
5394 msgid ""
5395 "The link below explains the many different possible techniques for getting "
5396 "the last assigned DHCP address of a virtual machine."
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../examples/guestfs-recipes.pod:184
5401 msgid ""
5402 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5403 "a-virtual-machine-disk-image/#content"
5404 msgstr ""
5405
5406 #. type: textblock
5407 #: ../examples/guestfs-recipes.pod:186
5408 msgid ""
5409 "In the libguestfs source examples directory you will find the latest version "
5410 "of the C<virt-dhcp-address.c> program."
5411 msgstr ""
5412
5413 #. type: =head1
5414 #: ../examples/guestfs-recipes.pod:189
5415 msgid "Get the operating system product name string"
5416 msgstr ""
5417
5418 #. type: textblock
5419 #: ../examples/guestfs-recipes.pod:191
5420 msgid "Save the following script into a file called C<product-name.sh>:"
5421 msgstr ""
5422
5423 #. type: verbatim
5424 #: ../examples/guestfs-recipes.pod:193
5425 #, no-wrap
5426 msgid ""
5427 " #!/bin/sh -\n"
5428 " set -e\n"
5429 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5430 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5431 " guestfish --remote inspect-get-product-name \"$root\"\n"
5432 " guestfish --remote exit\n"
5433 "\n"
5434 msgstr ""
5435
5436 #. type: textblock
5437 #: ../examples/guestfs-recipes.pod:200
5438 msgid "Make the script executable and run it on a named guest:"
5439 msgstr ""
5440
5441 #. type: verbatim
5442 #: ../examples/guestfs-recipes.pod:202
5443 #, no-wrap
5444 msgid ""
5445 " # product-name.sh RHEL60x64\n"
5446 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5447 "\n"
5448 msgstr ""
5449
5450 #. type: textblock
5451 #: ../examples/guestfs-recipes.pod:205
5452 msgid ""
5453 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5454 "C<xpath> command line tool or from your favourite programming language:"
5455 msgstr ""
5456
5457 #. type: verbatim
5458 #: ../examples/guestfs-recipes.pod:209
5459 #, no-wrap
5460 msgid ""
5461 " # virt-inspector RHEL60x64 > xml\n"
5462 " # xpath '//product_name' < xml\n"
5463 " Found 1 nodes:\n"
5464 " -- NODE --\n"
5465 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5466 "\n"
5467 msgstr ""
5468
5469 #. type: =head1
5470 #: ../examples/guestfs-recipes.pod:215
5471 msgid "Get the default boot kernel for a Linux VM"
5472 msgstr ""
5473
5474 #. type: textblock
5475 #: ../examples/guestfs-recipes.pod:217
5476 msgid ""
5477 "The link below contains a program to print the default boot kernel for a "
5478 "Linux VM."
5479 msgstr ""
5480
5481 #. type: textblock
5482 #: ../examples/guestfs-recipes.pod:220
5483 msgid ""
5484 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5485 "kernel-for-a-vm/#content"
5486 msgstr ""
5487
5488 #. type: textblock
5489 #: ../examples/guestfs-recipes.pod:222
5490 msgid ""
5491 "It uses Augeas, and the technique is generally applicable for many different "
5492 "tasks, such as:"
5493 msgstr ""
5494
5495 #. type: textblock
5496 #: ../examples/guestfs-recipes.pod:229
5497 msgid "listing the user accounts in the guest"
5498 msgstr ""
5499
5500 #. type: textblock
5501 #: ../examples/guestfs-recipes.pod:233
5502 msgid "what repositories is it configured to use"
5503 msgstr ""
5504
5505 #. type: textblock
5506 #: ../examples/guestfs-recipes.pod:237
5507 msgid "what NTP servers does it connect to"
5508 msgstr ""
5509
5510 #. type: textblock
5511 #: ../examples/guestfs-recipes.pod:241
5512 msgid "what were the boot messages last time it booted"
5513 msgstr ""
5514
5515 #. type: textblock
5516 #: ../examples/guestfs-recipes.pod:245
5517 msgid "listing who was logged in recently"
5518 msgstr ""
5519
5520 #. type: textblock
5521 #: ../examples/guestfs-recipes.pod:249
5522 msgid "http://augeas.net/"
5523 msgstr ""
5524
5525 #. type: =head1
5526 #: ../examples/guestfs-recipes.pod:251
5527 msgid "Install RPMs in a guest"
5528 msgstr ""
5529
5530 #. type: textblock
5531 #: ../examples/guestfs-recipes.pod:253
5532 msgid ""
5533 "The link below contains a method to install RPMs in a guest.  In fact the "
5534 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5535 "installs them next time the guest is booted.  You could use this technique "
5536 "to install vital security updates in an offline guest."
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../examples/guestfs-recipes.pod:259
5541 msgid ""
5542 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5543 msgstr ""
5544
5545 #. type: =head1
5546 #: ../examples/guestfs-recipes.pod:261
5547 msgid "List applications installed in a VM"
5548 msgstr ""
5549
5550 #. type: textblock
5551 #: ../examples/guestfs-recipes.pod:263
5552 msgid "Save the following to a file C<list-apps.sh>:"
5553 msgstr ""
5554
5555 #. type: verbatim
5556 #: ../examples/guestfs-recipes.pod:265
5557 #, no-wrap
5558 msgid ""
5559 " #!/bin/sh -\n"
5560 " set -e\n"
5561 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5562 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5563 " guestfish --remote inspect-list-applications \"$root\"\n"
5564 " guestfish --remote exit\n"
5565 "\n"
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../examples/guestfs-recipes.pod:272
5570 msgid ""
5571 "Make the file executable and then you can run it on any named virtual "
5572 "machine:"
5573 msgstr ""
5574
5575 #. type: verbatim
5576 #: ../examples/guestfs-recipes.pod:275
5577 #, no-wrap
5578 msgid ""
5579 " # list-apps.sh WinGuest\n"
5580 " [0] = {\n"
5581 "   app_name: Mozilla Firefox (3.6.12)\n"
5582 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5583 "   app_epoch: 0\n"
5584 "   app_version: 3.6.12 (en-GB)\n"
5585 "   app_release:\n"
5586 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5587 "   app_trans_path:\n"
5588 "   app_publisher: Mozilla\n"
5589 "   app_url: http://www.mozilla.com/en-GB/\n"
5590 "   app_source_package:\n"
5591 "   app_summary:\n"
5592 "   app_description: Mozilla Firefox\n"
5593 " }\n"
5594 " [1] = {\n"
5595 "   app_name: VLC media player\n"
5596 "   app_display_name: VLC media player 1.1.5\n"
5597 "   app_epoch: 0\n"
5598 "   app_version: 1.1.5\n"
5599 "   app_release:\n"
5600 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5601 "   app_trans_path:\n"
5602 "   app_publisher: VideoLAN\n"
5603 "   app_url: http://www.videolan.org/\n"
5604 "   app_source_package:\n"
5605 "   app_summary:\n"
5606 "   app_description:\n"
5607 " }\n"
5608 "\n"
5609 msgstr ""
5610
5611 #. type: textblock
5612 #: ../examples/guestfs-recipes.pod:305
5613 msgid ""
5614 "If you want to run the script on disk images (instead of libvirt virtual "
5615 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5616 ">."
5617 msgstr ""
5618
5619 #. type: =head1
5620 #: ../examples/guestfs-recipes.pod:309
5621 msgid "List files and directories in a VM"
5622 msgstr ""
5623
5624 #. type: textblock
5625 #: ../examples/guestfs-recipes.pod:311
5626 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5627 msgstr ""
5628
5629 #. type: verbatim
5630 #: ../examples/guestfs-recipes.pod:313
5631 #, no-wrap
5632 msgid ""
5633 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5634 "\n"
5635 msgstr ""
5636
5637 #. type: =head1
5638 #: ../examples/guestfs-recipes.pod:315
5639 msgid "List services in a Windows VM"
5640 msgstr ""
5641
5642 #. type: textblock
5643 #: ../examples/guestfs-recipes.pod:317
5644 msgid ""
5645 "The link below contains a script that can be used to list out the services "
5646 "from a Windows VM, and whether those services run at boot time or are loaded "
5647 "on demand."
5648 msgstr ""
5649
5650 #. type: textblock
5651 #: ../examples/guestfs-recipes.pod:321
5652 msgid ""
5653 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5654 "#content"
5655 msgstr ""
5656
5657 #. type: =head1
5658 #: ../examples/guestfs-recipes.pod:323
5659 msgid "Make a disk image sparse"
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../examples/guestfs-recipes.pod:325
5664 msgid ""
5665 "The link below contains some guides for making a disk image sparse (or "
5666 "reintroducing sparseness)."
5667 msgstr ""
5668
5669 #. type: textblock
5670 #: ../examples/guestfs-recipes.pod:328
5671 msgid ""
5672 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5673 msgstr ""
5674
5675 #. type: =head1
5676 #: ../examples/guestfs-recipes.pod:330
5677 msgid "Monitor disk usage over time"
5678 msgstr ""
5679
5680 #. type: textblock
5681 #: ../examples/guestfs-recipes.pod:332
5682 msgid ""
5683 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5684 "The link below contains a guide."
5685 msgstr ""
5686
5687 #. type: textblock
5688 #: ../examples/guestfs-recipes.pod:335
5689 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5690 msgstr ""
5691
5692 #. type: =head1
5693 #: ../examples/guestfs-recipes.pod:337
5694 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5695 msgstr ""
5696
5697 #. type: textblock
5698 #: ../examples/guestfs-recipes.pod:339
5699 msgid ""
5700 "L<guestfish(1)> plus the tools described in the link below can be used to "
5701 "read out the Windows Event Log from any virtual machine running Windows "
5702 "Vista or a later version."
5703 msgstr ""
5704
5705 #. type: textblock
5706 #: ../examples/guestfs-recipes.pod:343
5707 msgid ""
5708 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5709 "guestfish/#content"
5710 msgstr ""
5711
5712 #. type: =head1
5713 #: ../examples/guestfs-recipes.pod:345
5714 msgid "Remove root password (Linux)"
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../examples/guestfs-recipes.pod:347
5719 msgid ""
5720 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5721 "files.  One use is to remove the root password from a Linux guest:"
5722 msgstr ""
5723
5724 #. type: verbatim
5725 #: ../examples/guestfs-recipes.pod:350
5726 #, no-wrap
5727 msgid ""
5728 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5729 "\n"
5730 msgstr ""
5731
5732 #. type: =head1
5733 #: ../examples/guestfs-recipes.pod:352
5734 msgid "Remove Administrator password (Windows)"
5735 msgstr ""
5736
5737 #. type: textblock
5738 #: ../examples/guestfs-recipes.pod:354
5739 msgid ""
5740 "The link below contains one technique for removing the Administrator "
5741 "password from a Windows VM, or to be more precise, it gives you a command "
5742 "prompt the next time you log in which you can use to bypass any security:"
5743 msgstr ""
5744
5745 #. type: textblock
5746 #: ../examples/guestfs-recipes.pod:359
5747 msgid ""
5748 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5749 "administrator-password-with-guestfish/"
5750 msgstr ""
5751
5752 #. type: =head1
5753 #: ../examples/guestfs-recipes.pod:361
5754 msgid "Unpack a live CD"
5755 msgstr ""
5756
5757 #. type: textblock
5758 #: ../examples/guestfs-recipes.pod:363
5759 msgid ""
5760 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5761 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5762 "layers, as outlined in the guide below."
5763 msgstr ""
5764
5765 #. type: textblock
5766 #: ../examples/guestfs-recipes.pod:367
5767 msgid ""
5768 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5769 "cd/#content"
5770 msgstr ""
5771
5772 #. type: =head1
5773 #: ../examples/guestfs-recipes.pod:369
5774 msgid "Uploading and downloading files"
5775 msgstr ""
5776
5777 #. type: textblock
5778 #: ../examples/guestfs-recipes.pod:371
5779 msgid ""
5780 "The link below contains general tips on uploading (copying in)  and "
5781 "downloading (copying out) files from VMs."
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../examples/guestfs-recipes.pod:374
5786 msgid ""
5787 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5788 msgstr ""
5789
5790 #. type: =head1
5791 #: ../examples/guestfs-recipes.pod:376
5792 msgid "Use libguestfs tools on VMware ESX guests"
5793 msgstr ""
5794
5795 #. type: textblock
5796 #: ../examples/guestfs-recipes.pod:378
5797 msgid ""
5798 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5799 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5800 msgstr ""
5801
5802 #. type: textblock
5803 #: ../examples/guestfs-recipes.pod:382
5804 msgid ""
5805 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5806 "guests/#content"
5807 msgstr ""
5808
5809 #. type: textblock
5810 #: ../examples/guestfs-recipes.pod:386
5811 msgid ""
5812 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5813 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5814 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5815 msgstr ""
5816
5817 #. type: textblock
5818 #: ../examples/guestfs-recipes.pod:403
5819 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5820 msgstr ""
5821
5822 #. type: textblock
5823 #: ../examples/guestfs-testing.pod:5
5824 msgid "guestfs-testing - manual testing of libguestfs, you can help!"
5825 msgstr ""
5826
5827 #. type: textblock
5828 #: ../examples/guestfs-testing.pod:9
5829 msgid ""
5830 "This page has manual tests you can try on libguestfs.  Everyone has a "
5831 "slightly different combination of platform, hardware and guests, so this "
5832 "testing is very valuable.  Thanks for helping out!"
5833 msgstr ""
5834
5835 #. type: textblock
5836 #: ../examples/guestfs-testing.pod:13
5837 msgid "These tests require libguestfs E<ge> 1.14."
5838 msgstr ""
5839
5840 #. type: textblock
5841 #: ../examples/guestfs-testing.pod:15
5842 msgid ""
5843 "Tests marked with a B<*> (asterisk) can B<destroy data> if you're not "
5844 "careful.  The others are safe and won't modify anything."
5845 msgstr ""
5846
5847 #. type: textblock
5848 #: ../examples/guestfs-testing.pod:18
5849 msgid "You can report bugs you find through this link:"
5850 msgstr ""
5851
5852 #. type: textblock
5853 #: ../examples/guestfs-testing.pod:20
5854 msgid ""
5855 "https://bugzilla.redhat.com/enter_bug.cgi?"
5856 "component=libguestfs&product=Virtualization+Tools"
5857 msgstr ""
5858
5859 #. type: textblock
5860 #: ../examples/guestfs-testing.pod:22
5861 msgid ""
5862 "or post on the mailing list (registration is B<not> required, but if you're "
5863 "not registered then you'll have to wait for a moderator to manually approve "
5864 "your message):"
5865 msgstr ""
5866
5867 #. type: textblock
5868 #: ../examples/guestfs-testing.pod:26
5869 msgid "https://www.redhat.com/mailman/listinfo/libguestfs"
5870 msgstr ""
5871
5872 #. type: =head1
5873 #: ../examples/guestfs-testing.pod:28
5874 msgid "TESTS"
5875 msgstr ""
5876
5877 #. type: =head2
5878 #: ../examples/guestfs-testing.pod:30
5879 msgid "Check KVM acceleration is being used."
5880 msgstr ""
5881
5882 #. type: textblock
5883 #: ../examples/guestfs-testing.pod:32
5884 msgid ""
5885 "If your host has hardware virt acceleration, then with a hot cache "
5886 "libguestfs should be able to start up in a few seconds.  Run the following "
5887 "command a few times:"
5888 msgstr ""
5889
5890 #. type: verbatim
5891 #: ../examples/guestfs-testing.pod:36
5892 #, no-wrap
5893 msgid ""
5894 " time guestfish -a /dev/null run\n"
5895 "\n"
5896 msgstr ""
5897
5898 #. type: textblock
5899 #: ../examples/guestfs-testing.pod:38
5900 msgid ""
5901 "After a few runs, the time should settle down to a few seconds (under 5 "
5902 "seconds on fast 64 bit hardware)."
5903 msgstr ""
5904
5905 #. type: textblock
5906 #: ../examples/guestfs-testing.pod:41
5907 msgid "How to check for hardware virt:"
5908 msgstr ""
5909
5910 #. type: textblock
5911 #: ../examples/guestfs-testing.pod:43
5912 msgid "http://virt-tools.org/learning/check-hardware-virt/"
5913 msgstr ""
5914
5915 #. type: textblock
5916 #: ../examples/guestfs-testing.pod:45
5917 msgid ""
5918 "If the command above does not work at all, use L<libguestfs-test-tool(1)>."
5919 msgstr ""
5920
5921 #. type: =head2
5922 #: ../examples/guestfs-testing.pod:48
5923 msgid "Run virt-alignment-scan on all your guests."
5924 msgstr ""
5925
5926 #. type: textblock
5927 #: ../examples/guestfs-testing.pod:50
5928 msgid "Run L<virt-alignment-scan(1)> on guests or disk images:"
5929 msgstr ""
5930
5931 #. type: verbatim
5932 #: ../examples/guestfs-testing.pod:52
5933 #, no-wrap
5934 msgid ""
5935 " virt-alignment-scan -a /path/to/disk.img\n"
5936 "\n"
5937 msgstr ""
5938
5939 #. type: textblock
5940 #: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:161
5941 #: ../examples/guestfs-testing.pod:174 ../examples/guestfs-testing.pod:234
5942 #: ../src/guestfs.pod:2793
5943 msgid "or:"
5944 msgstr ""
5945
5946 #. type: verbatim
5947 #: ../examples/guestfs-testing.pod:56
5948 #, no-wrap
5949 msgid ""
5950 " virt-alignment-scan -d Guest\n"
5951 "\n"
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../examples/guestfs-testing.pod:58
5956 msgid "Does the alignment report match how the guest partitions are aligned?"
5957 msgstr ""
5958
5959 #. type: =head2
5960 #: ../examples/guestfs-testing.pod:60
5961 msgid "Run virt-cat on some files in guests."
5962 msgstr ""
5963
5964 #. type: textblock
5965 #: ../examples/guestfs-testing.pod:62
5966 msgid "L<virt-cat(1)> can display files from guests.  For a Linux guest, try:"
5967 msgstr ""
5968
5969 #. type: verbatim
5970 #: ../examples/guestfs-testing.pod:64
5971 #, no-wrap
5972 msgid ""
5973 " virt-cat LinuxGuest /etc/passwd\n"
5974 "\n"
5975 msgstr ""
5976
5977 #. type: textblock
5978 #: ../examples/guestfs-testing.pod:66
5979 msgid "A recent feature is support for Windows paths, for example:"
5980 msgstr ""
5981
5982 #. type: verbatim
5983 #: ../examples/guestfs-testing.pod:68
5984 #, no-wrap
5985 msgid ""
5986 " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
5987 "\n"
5988 msgstr ""
5989
5990 #. type: textblock
5991 #: ../examples/guestfs-testing.pod:70
5992 msgid ""
5993 "An even better test is if you have a Windows guest with multiple drives.  Do "
5994 "C<D:>, C<E:> etc paths work correctly?"
5995 msgstr ""
5996
5997 #. type: =head2
5998 #: ../examples/guestfs-testing.pod:73
5999 msgid "B<*> Copy some files into a B<shut off> guest."
6000 msgstr ""
6001
6002 #. type: textblock
6003 #: ../examples/guestfs-testing.pod:75
6004 msgid ""
6005 "L<virt-copy-in(1)> can recursively copy files and directories into a guest "
6006 "or disk image."
6007 msgstr ""
6008
6009 #. type: verbatim
6010 #: ../examples/guestfs-testing.pod:78
6011 #, no-wrap
6012 msgid ""
6013 " virt-copy-in -d Guest /etc /tmp\n"
6014 "\n"
6015 msgstr ""
6016
6017 #. type: textblock
6018 #: ../examples/guestfs-testing.pod:80
6019 msgid ""
6020 "This should copy local directory C</etc> to C</tmp/etc> in the guest "
6021 "(recursively).  If you boot the guest, can you see all of the copied files "
6022 "and directories?"
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../examples/guestfs-testing.pod:84
6027 msgid "Shut the guest down and try copying multiple files and directories:"
6028 msgstr ""
6029
6030 #. type: verbatim
6031 #: ../examples/guestfs-testing.pod:86
6032 #, no-wrap
6033 msgid ""
6034 " virt-copy-in -d Guest /home /etc/issue /tmp\n"
6035 "\n"
6036 msgstr ""
6037
6038 #. type: =head2
6039 #: ../examples/guestfs-testing.pod:88
6040 msgid "Copy some files out of a guest."
6041 msgstr ""
6042
6043 #. type: textblock
6044 #: ../examples/guestfs-testing.pod:90
6045 msgid ""
6046 "L<virt-copy-out(1)> can recursively copy files and directories out of a "
6047 "guest or disk image."
6048 msgstr ""
6049
6050 #. type: textblock
6051 #: ../examples/guestfs-testing.pod:95
6052 msgid "Note the final space and period in the command is not a typo."
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../examples/guestfs-testing.pod:97
6057 msgid "This should copy C</home> from the guest into the current directory."
6058 msgstr ""
6059
6060 #. type: =head2
6061 #: ../examples/guestfs-testing.pod:99
6062 msgid "Run virt-df."
6063 msgstr ""
6064
6065 #. type: textblock
6066 #: ../examples/guestfs-testing.pod:101
6067 msgid "L<virt-df(1)> lists disk space.  Run:"
6068 msgstr ""
6069
6070 #. type: verbatim
6071 #: ../examples/guestfs-testing.pod:103
6072 #, no-wrap
6073 msgid ""
6074 " virt-df\n"
6075 "\n"
6076 msgstr ""
6077
6078 #. type: textblock
6079 #: ../examples/guestfs-testing.pod:105
6080 msgid ""
6081 "You can try comparing this to the results from L<df(1)> inside the guest, "
6082 "but there are some provisos:"
6083 msgstr ""
6084
6085 #. type: textblock
6086 #: ../examples/guestfs-testing.pod:112
6087 msgid "The guest must be idle."
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../examples/guestfs-testing.pod:116
6092 msgid "The guest disks must be synched using L<sync(1)>."
6093 msgstr ""
6094
6095 #. type: textblock
6096 #: ../examples/guestfs-testing.pod:120
6097 msgid ""
6098 "Any action such as booting the guest will write log files causing the "
6099 "numbers to change."
6100 msgstr ""
6101
6102 #. type: textblock
6103 #: ../examples/guestfs-testing.pod:125
6104 msgid ""
6105 "We don't guarantee that the numbers will be identical even under these "
6106 "circumstances.  They should be similar.  It would indicate a bug if you saw "
6107 "greatly differing numbers."
6108 msgstr ""
6109
6110 #. type: =head2
6111 #: ../examples/guestfs-testing.pod:129
6112 msgid "Try importing virt-df CSV output into a spreadsheet or database."
6113 msgstr ""
6114
6115 #. type: textblock
6116 #: ../examples/guestfs-testing.pod:131 ../src/guestfs.pod:3069
6117 msgid "Run:"
6118 msgstr ""
6119
6120 #. type: verbatim
6121 #: ../examples/guestfs-testing.pod:133
6122 #, no-wrap
6123 msgid ""
6124 " virt-df --csv > /tmp/report.csv\n"
6125 "\n"
6126 msgstr ""
6127
6128 #. type: textblock
6129 #: ../examples/guestfs-testing.pod:135
6130 msgid ""
6131 "Now try to load this into your favorite spreadsheet or database.  Are the "
6132 "results reproduced faithfully in the spreadsheet/database?"
6133 msgstr ""
6134
6135 #. type: textblock
6136 #: ../examples/guestfs-testing.pod:138
6137 msgid ""
6138 "http://www.postgresql.org/docs/8.1/static/sql-copy.html http://dev.mysql.com/"
6139 "doc/refman/5.1/en/load-data.html"
6140 msgstr ""
6141
6142 #. type: =head2
6143 #: ../examples/guestfs-testing.pod:141
6144 msgid "B<*> Edit a file in a B<shut off> guest."
6145 msgstr ""
6146
6147 #. type: textblock
6148 #: ../examples/guestfs-testing.pod:143
6149 msgid ""
6150 "L<virt-edit(1)> can edit files in guests.  Try this command on a RHEL or "
6151 "Fedora guest:"
6152 msgstr ""
6153
6154 #. type: verbatim
6155 #: ../examples/guestfs-testing.pod:146
6156 #, no-wrap
6157 msgid ""
6158 " virt-edit LinuxGuest /etc/sysconfig/network\n"
6159 "\n"
6160 msgstr ""
6161
6162 #. type: textblock
6163 #: ../examples/guestfs-testing.pod:148
6164 msgid "On other Linux guests try editing other files such as:"
6165 msgstr ""
6166
6167 #. type: verbatim
6168 #: ../examples/guestfs-testing.pod:150
6169 #, no-wrap
6170 msgid ""
6171 " virt-edit LinuxGuest /etc/motd\n"
6172 "\n"
6173 msgstr ""
6174
6175 #. type: textblock
6176 #: ../examples/guestfs-testing.pod:152
6177 msgid "Are the changes seen inside the guest when it is booted?"
6178 msgstr ""
6179
6180 #. type: =head2
6181 #: ../examples/guestfs-testing.pod:154
6182 msgid "Display the filesystems / partitions / LVs in a guest."
6183 msgstr ""
6184
6185 #. type: textblock
6186 #: ../examples/guestfs-testing.pod:156
6187 msgid ""
6188 "L<virt-filesystems(1)> can be used to display filesystems in a guest.  Try "
6189 "this command on any disk image or guest:"
6190 msgstr ""
6191
6192 #. type: verbatim
6193 #: ../examples/guestfs-testing.pod:159
6194 #, no-wrap
6195 msgid ""
6196 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
6197 "\n"
6198 msgstr ""
6199
6200 #. type: verbatim
6201 #: ../examples/guestfs-testing.pod:163
6202 #, no-wrap
6203 msgid ""
6204 " virt-filesystems -d Guest --all --long -h\n"
6205 "\n"
6206 msgstr ""
6207
6208 #. type: textblock
6209 #: ../examples/guestfs-testing.pod:165
6210 msgid "Do the results match what is seen in the guest?"
6211 msgstr ""
6212
6213 #. type: =head2
6214 #: ../examples/guestfs-testing.pod:167
6215 msgid "Run virt-inspector on all your guests."
6216 msgstr ""
6217
6218 #. type: textblock
6219 #: ../examples/guestfs-testing.pod:169
6220 msgid ""
6221 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
6222 "images:"
6223 msgstr ""
6224
6225 #. type: verbatim
6226 #: ../examples/guestfs-testing.pod:172
6227 #, no-wrap
6228 msgid ""
6229 " virt-inspector -a /path/to/disk.img | less\n"
6230 "\n"
6231 msgstr ""
6232
6233 #. type: verbatim
6234 #: ../examples/guestfs-testing.pod:176
6235 #, no-wrap
6236 msgid ""
6237 " virt-inspector -d Guest | less\n"
6238 "\n"
6239 msgstr ""
6240
6241 #. type: textblock
6242 #: ../examples/guestfs-testing.pod:178
6243 msgid "Do the results match what is actually in the guest?"
6244 msgstr ""
6245
6246 #. type: =head2
6247 #: ../examples/guestfs-testing.pod:180
6248 msgid "Try the auditing features of virt-ls on all your guests."
6249 msgstr ""
6250
6251 #. type: verbatim
6252 #: ../examples/guestfs-testing.pod:184
6253 #, no-wrap
6254 msgid ""
6255 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
6256 "\n"
6257 msgstr ""
6258
6259 #. type: verbatim
6260 #: ../examples/guestfs-testing.pod:188
6261 #, no-wrap
6262 msgid ""
6263 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
6264 "\n"
6265 msgstr ""
6266
6267 #. type: verbatim
6268 #: ../examples/guestfs-testing.pod:192
6269 #, no-wrap
6270 msgid ""
6271 " virt-ls -lR -d Guest / | grep '^s'\n"
6272 "\n"
6273 msgstr ""
6274
6275 #. type: verbatim
6276 #: ../examples/guestfs-testing.pod:196
6277 #, no-wrap
6278 msgid ""
6279 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
6280 "\n"
6281 msgstr ""
6282
6283 #. type: textblock
6284 #: ../examples/guestfs-testing.pod:198
6285 msgid "Display files larger than 10MB in home directories:"
6286 msgstr ""
6287
6288 #. type: verbatim
6289 #: ../examples/guestfs-testing.pod:200
6290 #, no-wrap
6291 msgid ""
6292 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
6293 "\n"
6294 msgstr ""
6295
6296 #. type: verbatim
6297 #: ../examples/guestfs-testing.pod:204
6298 #, no-wrap
6299 msgid ""
6300 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
6301 "\n"
6302 msgstr ""
6303
6304 #. type: verbatim
6305 #: ../examples/guestfs-testing.pod:208
6306 #, no-wrap
6307 msgid ""
6308 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
6309 "\n"
6310 msgstr ""
6311
6312 #. type: textblock
6313 #: ../examples/guestfs-testing.pod:210
6314 msgid "Do the results match what is in the guest?"
6315 msgstr ""
6316
6317 #. type: =head2
6318 #: ../examples/guestfs-testing.pod:212
6319 msgid "Create a disk image from a tarball."
6320 msgstr ""
6321
6322 #. type: textblock
6323 #: ../examples/guestfs-testing.pod:214
6324 msgid ""
6325 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
6326 "happen to have:"
6327 msgstr ""
6328
6329 #. type: verbatim
6330 #: ../examples/guestfs-testing.pod:217
6331 #, no-wrap
6332 msgid ""
6333 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
6334 "\n"
6335 msgstr ""
6336
6337 #. type: textblock
6338 #: ../examples/guestfs-testing.pod:219
6339 msgid ""
6340 "Add 'output.img' as a raw disk to an existing guest.  Check the guest can "
6341 "see the files.  This test is particularly useful if you try it with a "
6342 "Windows guest."
6343 msgstr ""
6344
6345 #. type: textblock
6346 #: ../examples/guestfs-testing.pod:223
6347 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
6348 msgstr ""
6349
6350 #. type: textblock
6351 #: ../examples/guestfs-testing.pod:225
6352 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
6353 msgstr ""
6354
6355 #. type: =head2
6356 #: ../examples/guestfs-testing.pod:227
6357 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
6358 msgstr ""
6359
6360 #. type: textblock
6361 #: ../examples/guestfs-testing.pod:229
6362 msgid ""
6363 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
6364 "disk image:"
6365 msgstr ""
6366
6367 #. type: verbatim
6368 #: ../examples/guestfs-testing.pod:232
6369 #, no-wrap
6370 msgid ""
6371 " virt-rescue -a /path/to/disk.img\n"
6372 "\n"
6373 msgstr ""
6374
6375 #. type: verbatim
6376 #: ../examples/guestfs-testing.pod:236
6377 #, no-wrap
6378 msgid ""
6379 " virt-rescue -d Guest\n"
6380 "\n"
6381 msgstr ""
6382
6383 #. type: textblock
6384 #: ../examples/guestfs-testing.pod:238
6385 msgid "Can you use ordinary shell commands to examine the guest?"
6386 msgstr ""
6387
6388 #. type: =head2
6389 #: ../examples/guestfs-testing.pod:240
6390 msgid "B<*> Resize your guests."
6391 msgstr ""
6392
6393 #. type: textblock
6394 #: ../examples/guestfs-testing.pod:242
6395 msgid ""
6396 "Use L<virt-resize(1)> to give a guest some more disk space.  For example, if "
6397 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
6398 msgstr ""
6399
6400 #. type: verbatim
6401 #: ../examples/guestfs-testing.pod:246
6402 #, no-wrap
6403 msgid ""
6404 " truncate -s 30G newdisk.img\n"
6405 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
6406 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
6407 " qemu-kvm -m 1024 -hda newdisk.img\n"
6408 "\n"
6409 msgstr ""
6410
6411 #. type: textblock
6412 #: ../examples/guestfs-testing.pod:251
6413 msgid "Does the guest still boot? Try expanding other partitions."
6414 msgstr ""
6415
6416 #. type: =head2
6417 #: ../examples/guestfs-testing.pod:253
6418 msgid "B<*> Sparsify a guest disk."
6419 msgstr ""
6420
6421 #. type: textblock
6422 #: ../examples/guestfs-testing.pod:255
6423 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
6424 msgstr ""
6425
6426 #. type: verbatim
6427 #: ../examples/guestfs-testing.pod:257
6428 #, no-wrap
6429 msgid ""
6430 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
6431 "\n"
6432 msgstr ""
6433
6434 #. type: textblock
6435 #: ../examples/guestfs-testing.pod:259
6436 msgid ""
6437 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
6438 "image smaller (use C<du> to check)?"
6439 msgstr ""
6440
6441 #. type: =head2
6442 #: ../examples/guestfs-testing.pod:262
6443 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../examples/guestfs-testing.pod:264
6448 msgid ""
6449 "Note that this really will mess up an existing guest, so it's better to "
6450 "clone the guest before trying this."
6451 msgstr ""
6452
6453 #. type: verbatim
6454 #: ../examples/guestfs-testing.pod:267
6455 #, no-wrap
6456 msgid ""
6457 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
6458 "\n"
6459 msgstr ""
6460
6461 #. type: textblock
6462 #: ../examples/guestfs-testing.pod:269
6463 msgid ""
6464 "Was the sysprep successful? After booting, what changes were made and were "
6465 "they successful?"
6466 msgstr ""
6467
6468 #. type: =head2
6469 #: ../examples/guestfs-testing.pod:272
6470 msgid "Dump the Windows Registry from your Windows guests."
6471 msgstr ""
6472
6473 #. type: textblock
6474 #: ../examples/guestfs-testing.pod:274
6475 msgid ""
6476 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
6477 "guests that you have."
6478 msgstr ""
6479
6480 #. type: verbatim
6481 #: ../examples/guestfs-testing.pod:277
6482 #, no-wrap
6483 msgid ""
6484 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
6485 "   less\n"
6486 "\n"
6487 msgstr ""
6488
6489 #. type: verbatim
6490 #: ../examples/guestfs-testing.pod:280
6491 #, no-wrap
6492 msgid ""
6493 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
6494 "   less\n"
6495 "\n"
6496 msgstr ""
6497
6498 #. type: textblock
6499 #: ../examples/guestfs-testing.pod:283
6500 msgid "Does the output match running C<regedit> inside the guest?"
6501 msgstr ""
6502
6503 #. type: textblock
6504 #: ../examples/guestfs-testing.pod:285
6505 msgid ""
6506 "A recent feature is the ability to dump user registries, so try this, "
6507 "replacing I<username> with the name of a local user in the guest:"
6508 msgstr ""
6509
6510 #. type: verbatim
6511 #: ../examples/guestfs-testing.pod:288
6512 #, no-wrap
6513 msgid ""
6514 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' |\n"
6515 "   less\n"
6516 "\n"
6517 msgstr ""
6518
6519 #. type: textblock
6520 #: ../examples/guestfs-testing.pod:293
6521 msgid ""
6522 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<http://libguestfs."
6523 "org/>."
6524 msgstr ""
6525
6526 #. type: =head2
6527 #: ../fish/guestfish-actions.pod:1
6528 msgid "add-cdrom"
6529 msgstr ""
6530
6531 #. type: verbatim
6532 #: ../fish/guestfish-actions.pod:3
6533 #, no-wrap
6534 msgid ""
6535 " add-cdrom filename\n"
6536 "\n"
6537 msgstr ""
6538
6539 #. type: textblock
6540 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6541 msgid "This function adds a virtual CD-ROM disk image to the guest."
6542 msgstr ""
6543
6544 #. type: textblock
6545 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6546 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6547 msgstr ""
6548
6549 #. type: textblock
6550 #: ../fish/guestfish-actions.pod:15
6551 msgid ""
6552 "This call checks for the existence of C<filename>.  This stops you from "
6553 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6554 "and C<http:> URLs.  To specify those, use the general L</config> call "
6555 "instead."
6556 msgstr ""
6557
6558 #. type: textblock
6559 #: ../fish/guestfish-actions.pod:22
6560 msgid ""
6561 "If you just want to add an ISO file (often you use this as an efficient way "
6562 "to transfer large files into the guest), then you should probably use L</add-"
6563 "drive-ro> instead."
6564 msgstr ""
6565
6566 #. type: textblock
6567 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
6568 #: ../fish/guestfish-actions.pod:228
6569 msgid ""
6570 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6571 "instead."
6572 msgstr ""
6573
6574 #. type: textblock
6575 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
6576 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:972
6577 #: ../fish/guestfish-actions.pod:1007 ../fish/guestfish-actions.pod:1180
6578 #: ../fish/guestfish-actions.pod:1540 ../fish/guestfish-actions.pod:1554
6579 #: ../fish/guestfish-actions.pod:3423 ../fish/guestfish-actions.pod:3734
6580 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:4700
6581 #: ../fish/guestfish-actions.pod:4720 ../fish/guestfish-actions.pod:4739
6582 #: ../fish/guestfish-actions.pod:4777 ../fish/guestfish-actions.pod:5505
6583 #: ../fish/guestfish-actions.pod:5608 ../src/guestfs-actions.pod:10
6584 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
6585 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1676
6586 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2458
6587 #: ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:5281
6588 #: ../src/guestfs-actions.pod:5803 ../src/guestfs-actions.pod:5903
6589 #: ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7240
6590 #: ../src/guestfs-actions.pod:7271 ../src/guestfs-actions.pod:7331
6591 #: ../src/guestfs-actions.pod:8385 ../src/guestfs-actions.pod:8494
6592 #: ../src/guestfs-actions.pod:8674
6593 msgid ""
6594 "Deprecated functions will not be removed from the API, but the fact that "
6595 "they are deprecated indicates that there are problems with correct use of "
6596 "these functions."
6597 msgstr ""
6598
6599 #. type: =head2
6600 #: ../fish/guestfish-actions.pod:35
6601 msgid "add-domain"
6602 msgstr ""
6603
6604 #. type: =head2
6605 #: ../fish/guestfish-actions.pod:37
6606 msgid "domain"
6607 msgstr ""
6608
6609 #. type: verbatim
6610 #: ../fish/guestfish-actions.pod:39
6611 #, no-wrap
6612 msgid ""
6613 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
6614 "\n"
6615 msgstr ""
6616
6617 #. type: textblock
6618 #: ../fish/guestfish-actions.pod:41
6619 msgid ""
6620 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6621 "It works by connecting to libvirt, requesting the domain and domain XML from "
6622 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6623 msgstr ""
6624
6625 #. type: textblock
6626 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
6627 msgid ""
6628 "The number of disks added is returned.  This operation is atomic: if an "
6629 "error is returned, then no disks are added."
6630 msgstr ""
6631
6632 #. type: textblock
6633 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
6634 msgid ""
6635 "This function does some minimal checks to make sure the libvirt domain is "
6636 "not running (unless C<readonly> is true).  In a future version we will try "
6637 "to acquire the libvirt lock on each disk."
6638 msgstr ""
6639
6640 #. type: textblock
6641 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6642 msgid ""
6643 "Disks must be accessible locally.  This often means that adding disks from a "
6644 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6645 "unless those disks are accessible via the same device path locally too."
6646 msgstr ""
6647
6648 #. type: textblock
6649 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6650 msgid ""
6651 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6652 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6653 "libvirt URI (or one set through an environment variable, see the libvirt "
6654 "documentation for full details)."
6655 msgstr ""
6656
6657 #. type: textblock
6658 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6659 msgid ""
6660 "The optional C<live> flag controls whether this call will try to connect to "
6661 "a running virtual machine C<guestfsd> process if it sees a suitable "
6662 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6663 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6664 "DAEMONS> for more information."
6665 msgstr ""
6666
6667 #. type: textblock
6668 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6669 msgid ""
6670 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6671 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6672 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6673 "as usual."
6674 msgstr ""
6675
6676 #. type: textblock
6677 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6678 msgid ""
6679 "The optional C<readonlydisk> parameter controls what we do for disks which "
6680 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6681 msgstr ""
6682
6683 #. type: =item
6684 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6685 msgid "readonlydisk = \"error\""
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6690 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6691 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6692 msgid "If C<readonly> is false:"
6693 msgstr ""
6694
6695 #. type: textblock
6696 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6697 msgid ""
6698 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
6699 "E<gt> flag is found."
6700 msgstr ""
6701
6702 #. type: textblock
6703 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6704 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6705 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6706 msgid "If C<readonly> is true:"
6707 msgstr ""
6708
6709 #. type: textblock
6710 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6711 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6712 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6713 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6714 msgstr ""
6715
6716 #. type: =item
6717 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6718 msgid "readonlydisk = \"read\""
6719 msgstr ""
6720
6721 #. type: textblock
6722 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6723 msgid ""
6724 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6725 "are added read/write."
6726 msgstr ""
6727
6728 #. type: =item
6729 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6730 msgid "readonlydisk = \"write\" (default)"
6731 msgstr ""
6732
6733 #. type: textblock
6734 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6735 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6736 msgstr ""
6737
6738 #. type: =item
6739 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6740 msgid "readonlydisk = \"ignore\""
6741 msgstr ""
6742
6743 #. type: textblock
6744 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6745 msgid "If C<readonly> is true or false:"
6746 msgstr ""
6747
6748 #. type: textblock
6749 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6750 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6751 msgstr ""
6752
6753 #. type: textblock
6754 #: ../fish/guestfish-actions.pod:122
6755 msgid ""
6756 "The other optional parameters are passed directly through to L</add-drive-"
6757 "opts>."
6758 msgstr ""
6759
6760 #. type: textblock
6761 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6762 #: ../fish/guestfish-actions.pod:655 ../fish/guestfish-actions.pod:866
6763 #: ../fish/guestfish-actions.pod:887 ../fish/guestfish-actions.pod:925
6764 #: ../fish/guestfish-actions.pod:934 ../fish/guestfish-actions.pod:943
6765 #: ../fish/guestfish-actions.pod:957 ../fish/guestfish-actions.pod:2202
6766 #: ../fish/guestfish-actions.pod:3250 ../fish/guestfish-actions.pod:3472
6767 #: ../fish/guestfish-actions.pod:3635 ../fish/guestfish-actions.pod:3770
6768 #: ../fish/guestfish-actions.pod:5141
6769 msgid ""
6770 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6771 msgstr ""
6772
6773 #. type: =head2
6774 #: ../fish/guestfish-actions.pod:127
6775 msgid "add-drive"
6776 msgstr ""
6777
6778 #. type: verbatim
6779 #: ../fish/guestfish-actions.pod:129
6780 #, no-wrap
6781 msgid ""
6782 " add-drive filename\n"
6783 "\n"
6784 msgstr ""
6785
6786 #. type: textblock
6787 #: ../fish/guestfish-actions.pod:131
6788 msgid ""
6789 "This function is the equivalent of calling L</add-drive-opts> with no "
6790 "optional parameters, so the disk is added writable, with the format being "
6791 "detected automatically."
6792 msgstr ""
6793
6794 #. type: textblock
6795 #: ../fish/guestfish-actions.pod:135
6796 msgid ""
6797 "Automatic detection of the format opens you up to a potential security hole "
6798 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6799 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6800 "you should think about replacing calls to this function with calls to L</add-"
6801 "drive-opts>, and specifying the format."
6802 msgstr ""
6803
6804 #. type: =head2
6805 #: ../fish/guestfish-actions.pod:142
6806 msgid "add-drive-opts"
6807 msgstr ""
6808
6809 #. type: =head2
6810 #: ../fish/guestfish-actions.pod:144
6811 msgid "add"
6812 msgstr ""
6813
6814 #. type: verbatim
6815 #: ../fish/guestfish-actions.pod:146
6816 #, no-wrap
6817 msgid ""
6818 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
6819 "\n"
6820 msgstr ""
6821
6822 #. type: textblock
6823 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6824 msgid ""
6825 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6826 "The first time you call this function, the disk appears as C</dev/sda>, the "
6827 "second time as C</dev/sdb>, and so on."
6828 msgstr ""
6829
6830 #. type: textblock
6831 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6832 msgid ""
6833 "You don't necessarily need to be root when using libguestfs.  However you "
6834 "obviously do need sufficient permissions to access the filename for whatever "
6835 "operations you want to perform (ie. read access if you just want to read the "
6836 "image or write access if you want to modify the image)."
6837 msgstr ""
6838
6839 #. type: textblock
6840 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6841 msgid "This call checks that C<filename> exists."
6842 msgstr ""
6843
6844 #. type: textblock
6845 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3434
6846 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5318
6847 msgid "The optional arguments are:"
6848 msgstr ""
6849
6850 #. type: =item
6851 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6852 msgid "C<readonly>"
6853 msgstr ""
6854
6855 #. type: textblock
6856 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6857 msgid ""
6858 "If true then the image is treated as read-only.  Writes are still allowed, "
6859 "but they are stored in a temporary snapshot overlay which is discarded at "
6860 "the end.  The disk that you add is not modified."
6861 msgstr ""
6862
6863 #. type: =item
6864 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6865 msgid "C<format>"
6866 msgstr ""
6867
6868 #. type: textblock
6869 #: ../fish/guestfish-actions.pod:173
6870 msgid ""
6871 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6872 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6873 "include C<raw> and C<qcow2>."
6874 msgstr ""
6875
6876 #. type: textblock
6877 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6878 msgid ""
6879 "Automatic detection of the format opens you up to a potential security hole "
6880 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6881 "RHBZ#642934.  Specifying the format closes this security hole."
6882 msgstr ""
6883
6884 #. type: =item
6885 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6886 msgid "C<iface>"
6887 msgstr ""
6888
6889 #. type: textblock
6890 #: ../fish/guestfish-actions.pod:184
6891 msgid ""
6892 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6893 "add-drive-with-if> call (q.v.)"
6894 msgstr ""
6895
6896 #. type: =item
6897 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3277
6898 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:5039
6899 msgid "C<name>"
6900 msgstr ""
6901
6902 #. type: textblock
6903 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6904 msgid ""
6905 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6906 "a hint to the guest inspection process if it is available."
6907 msgstr ""
6908
6909 #. type: =head2
6910 #: ../fish/guestfish-actions.pod:196
6911 msgid "add-drive-ro"
6912 msgstr ""
6913
6914 #. type: =head2
6915 #: ../fish/guestfish-actions.pod:198
6916 msgid "add-ro"
6917 msgstr ""
6918
6919 #. type: verbatim
6920 #: ../fish/guestfish-actions.pod:200
6921 #, no-wrap
6922 msgid ""
6923 " add-drive-ro filename\n"
6924 "\n"
6925 msgstr ""
6926
6927 #. type: textblock
6928 #: ../fish/guestfish-actions.pod:202
6929 msgid ""
6930 "This function is the equivalent of calling L</add-drive-opts> with the "
6931 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6932 "is added read-only, with the format being detected automatically."
6933 msgstr ""
6934
6935 #. type: =head2
6936 #: ../fish/guestfish-actions.pod:207
6937 msgid "add-drive-ro-with-if"
6938 msgstr ""
6939
6940 #. type: verbatim
6941 #: ../fish/guestfish-actions.pod:209
6942 #, no-wrap
6943 msgid ""
6944 " add-drive-ro-with-if filename iface\n"
6945 "\n"
6946 msgstr ""
6947
6948 #. type: textblock
6949 #: ../fish/guestfish-actions.pod:211
6950 msgid ""
6951 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6952 "interface emulation to use at run time."
6953 msgstr ""
6954
6955 #. type: =head2
6956 #: ../fish/guestfish-actions.pod:221
6957 msgid "add-drive-with-if"
6958 msgstr ""
6959
6960 #. type: verbatim
6961 #: ../fish/guestfish-actions.pod:223
6962 #, no-wrap
6963 msgid ""
6964 " add-drive-with-if filename iface\n"
6965 "\n"
6966 msgstr ""
6967
6968 #. type: textblock
6969 #: ../fish/guestfish-actions.pod:225
6970 msgid ""
6971 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6972 "interface emulation to use at run time."
6973 msgstr ""
6974
6975 #. type: =head2
6976 #: ../fish/guestfish-actions.pod:235
6977 msgid "aug-clear"
6978 msgstr ""
6979
6980 #. type: verbatim
6981 #: ../fish/guestfish-actions.pod:237
6982 #, no-wrap
6983 msgid ""
6984 " aug-clear augpath\n"
6985 "\n"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6990 msgid ""
6991 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6992 "L<augtool(1)> C<clear> command."
6993 msgstr ""
6994
6995 #. type: =head2
6996 #: ../fish/guestfish-actions.pod:242
6997 msgid "aug-close"
6998 msgstr ""
6999
7000 #. type: verbatim
7001 #: ../fish/guestfish-actions.pod:244
7002 #, no-wrap
7003 msgid ""
7004 " aug-close\n"
7005 "\n"
7006 msgstr ""
7007
7008 #. type: textblock
7009 #: ../fish/guestfish-actions.pod:246
7010 msgid ""
7011 "Close the current Augeas handle and free up any resources used by it.  After "
7012 "calling this, you have to call L</aug-init> again before you can use any "
7013 "other Augeas functions."
7014 msgstr ""
7015
7016 #. type: =head2
7017 #: ../fish/guestfish-actions.pod:251
7018 msgid "aug-defnode"
7019 msgstr ""
7020
7021 #. type: verbatim
7022 #: ../fish/guestfish-actions.pod:253
7023 #, no-wrap
7024 msgid ""
7025 " aug-defnode name expr val\n"
7026 "\n"
7027 msgstr ""
7028
7029 #. type: textblock
7030 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
7031 msgid ""
7032 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7033 msgstr ""
7034
7035 #. type: textblock
7036 #: ../fish/guestfish-actions.pod:258
7037 msgid ""
7038 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7039 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
7040 "containing that single node."
7041 msgstr ""
7042
7043 #. type: textblock
7044 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
7045 msgid ""
7046 "On success this returns a pair containing the number of nodes in the "
7047 "nodeset, and a boolean flag if a node was created."
7048 msgstr ""
7049
7050 #. type: =head2
7051 #: ../fish/guestfish-actions.pod:266
7052 msgid "aug-defvar"
7053 msgstr ""
7054
7055 #. type: verbatim
7056 #: ../fish/guestfish-actions.pod:268
7057 #, no-wrap
7058 msgid ""
7059 " aug-defvar name expr\n"
7060 "\n"
7061 msgstr ""
7062
7063 #. type: textblock
7064 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
7065 msgid ""
7066 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7067 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
7068 msgstr ""
7069
7070 #. type: textblock
7071 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
7072 msgid ""
7073 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7074 "evaluates to something which is not a nodeset."
7075 msgstr ""
7076
7077 #. type: =head2
7078 #: ../fish/guestfish-actions.pod:277
7079 msgid "aug-get"
7080 msgstr ""
7081
7082 #. type: verbatim
7083 #: ../fish/guestfish-actions.pod:279
7084 #, no-wrap
7085 msgid ""
7086 " aug-get augpath\n"
7087 "\n"
7088 msgstr ""
7089
7090 #. type: textblock
7091 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
7092 msgid ""
7093 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7094 "node, the C<value> is returned."
7095 msgstr ""
7096
7097 #. type: =head2
7098 #: ../fish/guestfish-actions.pod:284
7099 msgid "aug-init"
7100 msgstr ""
7101
7102 #. type: verbatim
7103 #: ../fish/guestfish-actions.pod:286
7104 #, no-wrap
7105 msgid ""
7106 " aug-init root flags\n"
7107 "\n"
7108 msgstr ""
7109
7110 #. type: textblock
7111 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
7112 msgid ""
7113 "Create a new Augeas handle for editing configuration files.  If there was "
7114 "any previous Augeas handle associated with this guestfs session, then it is "
7115 "closed."
7116 msgstr ""
7117
7118 #. type: textblock
7119 #: ../fish/guestfish-actions.pod:292
7120 msgid "You must call this before using any other L</aug-*> commands."
7121 msgstr ""
7122
7123 #. type: textblock
7124 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
7125 msgid ""
7126 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
7131 msgid ""
7132 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7133 "logical I<or> of the following integers:"
7134 msgstr ""
7135
7136 #. type: =item
7137 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
7138 msgid "C<AUG_SAVE_BACKUP> = 1"
7139 msgstr ""
7140
7141 #. type: textblock
7142 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
7143 msgid "Keep the original file with a C<.augsave> extension."
7144 msgstr ""
7145
7146 #. type: =item
7147 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
7148 msgid "C<AUG_SAVE_NEWFILE> = 2"
7149 msgstr ""
7150
7151 #. type: textblock
7152 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
7153 msgid ""
7154 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7155 "original.  Overrides C<AUG_SAVE_BACKUP>."
7156 msgstr ""
7157
7158 #. type: =item
7159 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
7160 msgid "C<AUG_TYPE_CHECK> = 4"
7161 msgstr ""
7162
7163 #. type: textblock
7164 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
7165 msgid "Typecheck lenses."
7166 msgstr ""
7167
7168 #. type: textblock
7169 #: ../fish/guestfish-actions.pod:317
7170 msgid ""
7171 "This option is only useful when debugging Augeas lenses.  Use of this option "
7172 "may require additional memory for the libguestfs appliance.  You may need to "
7173 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
7174 msgstr ""
7175
7176 #. type: =item
7177 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
7178 msgid "C<AUG_NO_STDINC> = 8"
7179 msgstr ""
7180
7181 #. type: textblock
7182 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
7183 msgid "Do not use standard load path for modules."
7184 msgstr ""
7185
7186 #. type: =item
7187 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
7188 msgid "C<AUG_SAVE_NOOP> = 16"
7189 msgstr ""
7190
7191 #. type: textblock
7192 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
7193 msgid "Make save a no-op, just record what would have been changed."
7194 msgstr ""
7195
7196 #. type: =item
7197 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
7198 msgid "C<AUG_NO_LOAD> = 32"
7199 msgstr ""
7200
7201 #. type: textblock
7202 #: ../fish/guestfish-actions.pod:332
7203 msgid "Do not load the tree in L</aug-init>."
7204 msgstr ""
7205
7206 #. type: textblock
7207 #: ../fish/guestfish-actions.pod:336
7208 msgid "To close the handle, you can call L</aug-close>."
7209 msgstr ""
7210
7211 #. type: textblock
7212 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
7213 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7214 msgstr ""
7215
7216 #. type: =head2
7217 #: ../fish/guestfish-actions.pod:340
7218 msgid "aug-insert"
7219 msgstr ""
7220
7221 #. type: verbatim
7222 #: ../fish/guestfish-actions.pod:342
7223 #, no-wrap
7224 msgid ""
7225 " aug-insert augpath label true|false\n"
7226 "\n"
7227 msgstr ""
7228
7229 #. type: textblock
7230 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
7231 msgid ""
7232 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7233 "or after C<path> (depending on the boolean flag C<before>)."
7234 msgstr ""
7235
7236 #. type: textblock
7237 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
7238 msgid ""
7239 "C<path> must match exactly one existing node in the tree, and C<label> must "
7240 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7241 msgstr ""
7242
7243 #. type: =head2
7244 #: ../fish/guestfish-actions.pod:352
7245 msgid "aug-load"
7246 msgstr ""
7247
7248 #. type: verbatim
7249 #: ../fish/guestfish-actions.pod:354
7250 #, no-wrap
7251 msgid ""
7252 " aug-load\n"
7253 "\n"
7254 msgstr ""
7255
7256 #. type: textblock
7257 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
7258 msgid "Load files into the tree."
7259 msgstr ""
7260
7261 #. type: textblock
7262 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
7263 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7264 msgstr ""
7265
7266 #. type: =head2
7267 #: ../fish/guestfish-actions.pod:361
7268 msgid "aug-ls"
7269 msgstr ""
7270
7271 #. type: verbatim
7272 #: ../fish/guestfish-actions.pod:363
7273 #, no-wrap
7274 msgid ""
7275 " aug-ls augpath\n"
7276 "\n"
7277 msgstr ""
7278
7279 #. type: textblock
7280 #: ../fish/guestfish-actions.pod:365
7281 msgid ""
7282 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
7283 "resulting nodes into alphabetical order."
7284 msgstr ""
7285
7286 #. type: =head2
7287 #: ../fish/guestfish-actions.pod:368
7288 msgid "aug-match"
7289 msgstr ""
7290
7291 #. type: verbatim
7292 #: ../fish/guestfish-actions.pod:370
7293 #, no-wrap
7294 msgid ""
7295 " aug-match augpath\n"
7296 "\n"
7297 msgstr ""
7298
7299 #. type: textblock
7300 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
7301 msgid ""
7302 "Returns a list of paths which match the path expression C<path>.  The "
7303 "returned paths are sufficiently qualified so that they match exactly one "
7304 "node in the current tree."
7305 msgstr ""
7306
7307 #. type: =head2
7308 #: ../fish/guestfish-actions.pod:376
7309 msgid "aug-mv"
7310 msgstr ""
7311
7312 #. type: verbatim
7313 #: ../fish/guestfish-actions.pod:378
7314 #, no-wrap
7315 msgid ""
7316 " aug-mv src dest\n"
7317 "\n"
7318 msgstr ""
7319
7320 #. type: textblock
7321 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
7322 msgid ""
7323 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7324 "C<dest> is overwritten if it exists."
7325 msgstr ""
7326
7327 #. type: =head2
7328 #: ../fish/guestfish-actions.pod:383
7329 msgid "aug-rm"
7330 msgstr ""
7331
7332 #. type: verbatim
7333 #: ../fish/guestfish-actions.pod:385
7334 #, no-wrap
7335 msgid ""
7336 " aug-rm augpath\n"
7337 "\n"
7338 msgstr ""
7339
7340 #. type: textblock
7341 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
7342 msgid "Remove C<path> and all of its children."
7343 msgstr ""
7344
7345 #. type: textblock
7346 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
7347 msgid "On success this returns the number of entries which were removed."
7348 msgstr ""
7349
7350 #. type: =head2
7351 #: ../fish/guestfish-actions.pod:391
7352 msgid "aug-save"
7353 msgstr ""
7354
7355 #. type: verbatim
7356 #: ../fish/guestfish-actions.pod:393
7357 #, no-wrap
7358 msgid ""
7359 " aug-save\n"
7360 "\n"
7361 msgstr ""
7362
7363 #. type: textblock
7364 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
7365 msgid "This writes all pending changes to disk."
7366 msgstr ""
7367
7368 #. type: textblock
7369 #: ../fish/guestfish-actions.pod:397
7370 msgid ""
7371 "The flags which were passed to L</aug-init> affect exactly how files are "
7372 "saved."
7373 msgstr ""
7374
7375 #. type: =head2
7376 #: ../fish/guestfish-actions.pod:400
7377 msgid "aug-set"
7378 msgstr ""
7379
7380 #. type: verbatim
7381 #: ../fish/guestfish-actions.pod:402
7382 #, no-wrap
7383 msgid ""
7384 " aug-set augpath val\n"
7385 "\n"
7386 msgstr ""
7387
7388 #. type: textblock
7389 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
7390 msgid "Set the value associated with C<path> to C<val>."
7391 msgstr ""
7392
7393 #. type: textblock
7394 #: ../fish/guestfish-actions.pod:406
7395 msgid ""
7396 "In the Augeas API, it is possible to clear a node by setting the value to "
7397 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7398 "this call.  Instead you must use the L</aug-clear> call."
7399 msgstr ""
7400
7401 #. type: =head2
7402 #: ../fish/guestfish-actions.pod:411
7403 msgid "available"
7404 msgstr ""
7405
7406 #. type: verbatim
7407 #: ../fish/guestfish-actions.pod:413
7408 #, no-wrap
7409 msgid ""
7410 " available 'groups ...'\n"
7411 "\n"
7412 msgstr ""
7413
7414 #. type: textblock
7415 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
7416 msgid ""
7417 "This command is used to check the availability of some groups of "
7418 "functionality in the appliance, which not all builds of the libguestfs "
7419 "appliance will be able to provide."
7420 msgstr ""
7421
7422 #. type: textblock
7423 #: ../fish/guestfish-actions.pod:419
7424 msgid ""
7425 "The libguestfs groups, and the functions that those groups correspond to, "
7426 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7427 "runtime by calling L</available-all-groups>."
7428 msgstr ""
7429
7430 #. type: textblock
7431 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
7432 msgid ""
7433 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7434 "\"]> would check for the availability of the Linux inotify functions and "
7435 "Augeas (configuration file editing) functions."
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
7440 msgid "The command returns no error if I<all> requested groups are available."
7441 msgstr ""
7442
7443 #. type: textblock
7444 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
7445 msgid ""
7446 "It fails with an error if one or more of the requested groups is unavailable "
7447 "in the appliance."
7448 msgstr ""
7449
7450 #. type: textblock
7451 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
7452 msgid ""
7453 "If an unknown group name is included in the list of groups then an error is "
7454 "always returned."
7455 msgstr ""
7456
7457 #. type: textblock
7458 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
7459 msgid "I<Notes:>"
7460 msgstr ""
7461
7462 #. type: textblock
7463 #: ../fish/guestfish-actions.pod:443
7464 msgid "You must call L</launch> before calling this function."
7465 msgstr ""
7466
7467 #. type: textblock
7468 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
7469 msgid ""
7470 "The reason is because we don't know what groups are supported by the "
7471 "appliance/daemon until it is running and can be queried."
7472 msgstr ""
7473
7474 #. type: textblock
7475 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
7476 msgid ""
7477 "If a group of functions is available, this does not necessarily mean that "
7478 "they will work.  You still have to check for errors when calling individual "
7479 "API functions even if they are available."
7480 msgstr ""
7481
7482 #. type: textblock
7483 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
7484 msgid ""
7485 "It is usually the job of distro packagers to build complete functionality "
7486 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7487 "with all requirements satisfied, will support everything."
7488 msgstr ""
7489
7490 #. type: textblock
7491 #: ../fish/guestfish-actions.pod:465
7492 msgid ""
7493 "This call was added in version C<1.0.80>.  In previous versions of "
7494 "libguestfs all you could do would be to speculatively execute a command to "
7495 "find out if the daemon implemented it.  See also L</version>."
7496 msgstr ""
7497
7498 #. type: =head2
7499 #: ../fish/guestfish-actions.pod:472
7500 msgid "available-all-groups"
7501 msgstr ""
7502
7503 #. type: verbatim
7504 #: ../fish/guestfish-actions.pod:474
7505 #, no-wrap
7506 msgid ""
7507 " available-all-groups\n"
7508 "\n"
7509 msgstr ""
7510
7511 #. type: textblock
7512 #: ../fish/guestfish-actions.pod:476
7513 msgid ""
7514 "This command returns a list of all optional groups that this daemon knows "
7515 "about.  Note this returns both supported and unsupported groups.  To find "
7516 "out which ones the daemon can actually support you have to call L</"
7517 "available> on each member of the returned list."
7518 msgstr ""
7519
7520 #. type: textblock
7521 #: ../fish/guestfish-actions.pod:482
7522 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
7523 msgstr ""
7524
7525 #. type: =head2
7526 #: ../fish/guestfish-actions.pod:484
7527 msgid "base64-in"
7528 msgstr ""
7529
7530 #. type: verbatim
7531 #: ../fish/guestfish-actions.pod:486
7532 #, no-wrap
7533 msgid ""
7534 " base64-in (base64file|-) filename\n"
7535 "\n"
7536 msgstr ""
7537
7538 #. type: textblock
7539 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
7540 msgid ""
7541 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7542 msgstr ""
7543
7544 #. type: textblock
7545 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
7546 #: ../fish/guestfish-actions.pod:780 ../fish/guestfish-actions.pod:864
7547 #: ../fish/guestfish-actions.pod:885 ../fish/guestfish-actions.pod:1056
7548 #: ../fish/guestfish-actions.pod:1075 ../fish/guestfish-actions.pod:1449
7549 #: ../fish/guestfish-actions.pod:4997 ../fish/guestfish-actions.pod:5009
7550 #: ../fish/guestfish-actions.pod:5020 ../fish/guestfish-actions.pod:5031
7551 #: ../fish/guestfish-actions.pod:5162 ../fish/guestfish-actions.pod:5171
7552 #: ../fish/guestfish-actions.pod:5225 ../fish/guestfish-actions.pod:5248
7553 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
7554 msgstr ""
7555
7556 #. type: =head2
7557 #: ../fish/guestfish-actions.pod:493
7558 msgid "base64-out"
7559 msgstr ""
7560
7561 #. type: verbatim
7562 #: ../fish/guestfish-actions.pod:495
7563 #, no-wrap
7564 msgid ""
7565 " base64-out filename (base64file|-)\n"
7566 "\n"
7567 msgstr ""
7568
7569 #. type: textblock
7570 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7571 msgid ""
7572 "This command downloads the contents of C<filename>, writing it out to local "
7573 "file C<base64file> encoded as base64."
7574 msgstr ""
7575
7576 #. type: =head2
7577 #: ../fish/guestfish-actions.pod:502
7578 msgid "blkid"
7579 msgstr ""
7580
7581 #. type: verbatim
7582 #: ../fish/guestfish-actions.pod:504
7583 #, no-wrap
7584 msgid ""
7585 " blkid device\n"
7586 "\n"
7587 msgstr ""
7588
7589 #. type: textblock
7590 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7591 msgid ""
7592 "This command returns block device attributes for C<device>. The following "
7593 "fields are usually present in the returned hash. Other fields may also be "
7594 "present."
7595 msgstr ""
7596
7597 #. type: =item
7598 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:734
7599 msgid "C<UUID>"
7600 msgstr ""
7601
7602 #. type: textblock
7603 #: ../fish/guestfish-actions.pod:513 ../src/guestfs-actions.pod:736
7604 msgid "The uuid of this device."
7605 msgstr ""
7606
7607 #. type: =item
7608 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:738
7609 msgid "C<LABEL>"
7610 msgstr ""
7611
7612 #. type: textblock
7613 #: ../fish/guestfish-actions.pod:517 ../src/guestfs-actions.pod:740
7614 msgid "The label of this device."
7615 msgstr ""
7616
7617 #. type: =item
7618 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:742
7619 msgid "C<VERSION>"
7620 msgstr ""
7621
7622 #. type: textblock
7623 #: ../fish/guestfish-actions.pod:521 ../src/guestfs-actions.pod:744
7624 msgid "The version of blkid command."
7625 msgstr ""
7626
7627 #. type: =item
7628 #: ../fish/guestfish-actions.pod:523 ../src/guestfs-actions.pod:746
7629 msgid "C<TYPE>"
7630 msgstr ""
7631
7632 #. type: textblock
7633 #: ../fish/guestfish-actions.pod:525 ../src/guestfs-actions.pod:748
7634 msgid "The filesystem type or RAID of this device."
7635 msgstr ""
7636
7637 #. type: =item
7638 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:750
7639 msgid "C<USAGE>"
7640 msgstr ""
7641
7642 #. type: textblock
7643 #: ../fish/guestfish-actions.pod:529 ../src/guestfs-actions.pod:752
7644 msgid "The usage of this device, for example C<filesystem> or C<raid>."
7645 msgstr ""
7646
7647 #. type: =head2
7648 #: ../fish/guestfish-actions.pod:533
7649 msgid "blockdev-flushbufs"
7650 msgstr ""
7651
7652 #. type: verbatim
7653 #: ../fish/guestfish-actions.pod:535
7654 #, no-wrap
7655 msgid ""
7656 " blockdev-flushbufs device\n"
7657 "\n"
7658 msgstr ""
7659
7660 #. type: textblock
7661 #: ../fish/guestfish-actions.pod:537 ../src/guestfs-actions.pod:768
7662 msgid ""
7663 "This tells the kernel to flush internal buffers associated with C<device>."
7664 msgstr ""
7665
7666 #. type: textblock
7667 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:551
7668 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:570
7669 #: ../fish/guestfish-actions.pod:582 ../fish/guestfish-actions.pod:595
7670 #: ../fish/guestfish-actions.pod:603 ../fish/guestfish-actions.pod:614
7671 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:630
7672 #: ../src/guestfs-actions.pod:771 ../src/guestfs-actions.pod:788
7673 #: ../src/guestfs-actions.pod:803 ../src/guestfs-actions.pod:819
7674 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:856
7675 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:888
7676 #: ../src/guestfs-actions.pod:902 ../src/guestfs-actions.pod:916
7677 msgid "This uses the L<blockdev(8)> command."
7678 msgstr ""
7679
7680 #. type: =head2
7681 #: ../fish/guestfish-actions.pod:542
7682 msgid "blockdev-getbsz"
7683 msgstr ""
7684
7685 #. type: verbatim
7686 #: ../fish/guestfish-actions.pod:544
7687 #, no-wrap
7688 msgid ""
7689 " blockdev-getbsz device\n"
7690 "\n"
7691 msgstr ""
7692
7693 #. type: textblock
7694 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:783
7695 msgid "This returns the block size of a device."
7696 msgstr ""
7697
7698 #. type: textblock
7699 #: ../fish/guestfish-actions.pod:548 ../fish/guestfish-actions.pod:611
7700 #: ../src/guestfs-actions.pod:785 ../src/guestfs-actions.pod:885
7701 msgid ""
7702 "(Note this is different from both I<size in blocks> and I<filesystem block "
7703 "size>)."
7704 msgstr ""
7705
7706 #. type: =head2
7707 #: ../fish/guestfish-actions.pod:553
7708 msgid "blockdev-getro"
7709 msgstr ""
7710
7711 #. type: verbatim
7712 #: ../fish/guestfish-actions.pod:555
7713 #, no-wrap
7714 msgid ""
7715 " blockdev-getro device\n"
7716 "\n"
7717 msgstr ""
7718
7719 #. type: textblock
7720 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:800
7721 msgid ""
7722 "Returns a boolean indicating if the block device is read-only (true if read-"
7723 "only, false if not)."
7724 msgstr ""
7725
7726 #. type: =head2
7727 #: ../fish/guestfish-actions.pod:562
7728 msgid "blockdev-getsize64"
7729 msgstr ""
7730
7731 #. type: verbatim
7732 #: ../fish/guestfish-actions.pod:564
7733 #, no-wrap
7734 msgid ""
7735 " blockdev-getsize64 device\n"
7736 "\n"
7737 msgstr ""
7738
7739 #. type: textblock
7740 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:815
7741 msgid "This returns the size of the device in bytes."
7742 msgstr ""
7743
7744 #. type: textblock
7745 #: ../fish/guestfish-actions.pod:568
7746 msgid "See also L</blockdev-getsz>."
7747 msgstr ""
7748
7749 #. type: =head2
7750 #: ../fish/guestfish-actions.pod:572
7751 msgid "blockdev-getss"
7752 msgstr ""
7753
7754 #. type: verbatim
7755 #: ../fish/guestfish-actions.pod:574
7756 #, no-wrap
7757 msgid ""
7758 " blockdev-getss device\n"
7759 "\n"
7760 msgstr ""
7761
7762 #. type: textblock
7763 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:831
7764 msgid ""
7765 "This returns the size of sectors on a block device.  Usually 512, but can be "
7766 "larger for modern devices."
7767 msgstr ""
7768
7769 #. type: textblock
7770 #: ../fish/guestfish-actions.pod:579
7771 msgid ""
7772 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7773 msgstr ""
7774
7775 #. type: =head2
7776 #: ../fish/guestfish-actions.pod:584
7777 msgid "blockdev-getsz"
7778 msgstr ""
7779
7780 #. type: verbatim
7781 #: ../fish/guestfish-actions.pod:586
7782 #, no-wrap
7783 msgid ""
7784 " blockdev-getsz device\n"
7785 "\n"
7786 msgstr ""
7787
7788 #. type: textblock
7789 #: ../fish/guestfish-actions.pod:588 ../src/guestfs-actions.pod:849
7790 msgid ""
7791 "This returns the size of the device in units of 512-byte sectors (even if "
7792 "the sectorsize isn't 512 bytes ... weird)."
7793 msgstr ""
7794
7795 #. type: textblock
7796 #: ../fish/guestfish-actions.pod:591
7797 msgid ""
7798 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7799 "blockdev-getsize64> for the more useful I<size in bytes>."
7800 msgstr ""
7801
7802 #. type: =head2
7803 #: ../fish/guestfish-actions.pod:597
7804 msgid "blockdev-rereadpt"
7805 msgstr ""
7806
7807 #. type: verbatim
7808 #: ../fish/guestfish-actions.pod:599
7809 #, no-wrap
7810 msgid ""
7811 " blockdev-rereadpt device\n"
7812 "\n"
7813 msgstr ""
7814
7815 #. type: textblock
7816 #: ../fish/guestfish-actions.pod:601 ../src/guestfs-actions.pod:868
7817 msgid "Reread the partition table on C<device>."
7818 msgstr ""
7819
7820 #. type: =head2
7821 #: ../fish/guestfish-actions.pod:605
7822 msgid "blockdev-setbsz"
7823 msgstr ""
7824
7825 #. type: verbatim
7826 #: ../fish/guestfish-actions.pod:607
7827 #, no-wrap
7828 msgid ""
7829 " blockdev-setbsz device blocksize\n"
7830 "\n"
7831 msgstr ""
7832
7833 #. type: textblock
7834 #: ../fish/guestfish-actions.pod:609 ../src/guestfs-actions.pod:883
7835 msgid "This sets the block size of a device."
7836 msgstr ""
7837
7838 #. type: =head2
7839 #: ../fish/guestfish-actions.pod:616
7840 msgid "blockdev-setro"
7841 msgstr ""
7842
7843 #. type: verbatim
7844 #: ../fish/guestfish-actions.pod:618
7845 #, no-wrap
7846 msgid ""
7847 " blockdev-setro device\n"
7848 "\n"
7849 msgstr ""
7850
7851 #. type: textblock
7852 #: ../fish/guestfish-actions.pod:620 ../src/guestfs-actions.pod:900
7853 msgid "Sets the block device named C<device> to read-only."
7854 msgstr ""
7855
7856 #. type: =head2
7857 #: ../fish/guestfish-actions.pod:624
7858 msgid "blockdev-setrw"
7859 msgstr ""
7860
7861 #. type: verbatim
7862 #: ../fish/guestfish-actions.pod:626
7863 #, no-wrap
7864 msgid ""
7865 " blockdev-setrw device\n"
7866 "\n"
7867 msgstr ""
7868
7869 #. type: textblock
7870 #: ../fish/guestfish-actions.pod:628 ../src/guestfs-actions.pod:914
7871 msgid "Sets the block device named C<device> to read-write."
7872 msgstr ""
7873
7874 #. type: =head2
7875 #: ../fish/guestfish-actions.pod:632
7876 msgid "btrfs-filesystem-resize"
7877 msgstr ""
7878
7879 #. type: verbatim
7880 #: ../fish/guestfish-actions.pod:634
7881 #, no-wrap
7882 msgid ""
7883 " btrfs-filesystem-resize mountpoint [size:N]\n"
7884 "\n"
7885 msgstr ""
7886
7887 #. type: textblock
7888 #: ../fish/guestfish-actions.pod:636 ../src/guestfs-actions.pod:936
7889 msgid "This command resizes a btrfs filesystem."
7890 msgstr ""
7891
7892 #. type: textblock
7893 #: ../fish/guestfish-actions.pod:638 ../src/guestfs-actions.pod:938
7894 msgid ""
7895 "Note that unlike other resize calls, the filesystem has to be mounted and "
7896 "the parameter is the mountpoint not the device (this is a requirement of "
7897 "btrfs itself)."
7898 msgstr ""
7899
7900 #. type: textblock
7901 #: ../fish/guestfish-actions.pod:642 ../fish/guestfish-actions.pod:3199
7902 #: ../fish/guestfish-actions.pod:3745 ../fish/guestfish-actions.pod:5071
7903 #: ../src/guestfs-actions.pod:942 ../src/guestfs-actions.pod:4935
7904 #: ../src/guestfs-actions.pod:5842 ../src/guestfs-actions.pod:7818
7905 msgid "The optional parameters are:"
7906 msgstr ""
7907
7908 #. type: =item
7909 #: ../fish/guestfish-actions.pod:646 ../fish/guestfish-actions.pod:3749
7910 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:5846
7911 msgid "C<size>"
7912 msgstr ""
7913
7914 #. type: textblock
7915 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:948
7916 msgid ""
7917 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7918 "resized to the maximum size."
7919 msgstr ""
7920
7921 #. type: textblock
7922 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:953
7923 msgid "See also L<btrfs(8)>."
7924 msgstr ""
7925
7926 #. type: =head2
7927 #: ../fish/guestfish-actions.pod:657
7928 msgid "case-sensitive-path"
7929 msgstr ""
7930
7931 #. type: verbatim
7932 #: ../fish/guestfish-actions.pod:659
7933 #, no-wrap
7934 msgid ""
7935 " case-sensitive-path path\n"
7936 "\n"
7937 msgstr ""
7938
7939 #. type: textblock
7940 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:987
7941 msgid ""
7942 "This can be used to resolve case insensitive paths on a filesystem which is "
7943 "case sensitive.  The use case is to resolve paths which you have read from "
7944 "Windows configuration files or the Windows Registry, to the true path."
7945 msgstr ""
7946
7947 #. type: textblock
7948 #: ../fish/guestfish-actions.pod:666 ../src/guestfs-actions.pod:992
7949 msgid ""
7950 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7951 "(and probably others), which is that although the underlying filesystem is "
7952 "case-insensitive, the driver exports the filesystem to Linux as case-"
7953 "sensitive."
7954 msgstr ""
7955
7956 #. type: textblock
7957 #: ../fish/guestfish-actions.pod:671 ../src/guestfs-actions.pod:997
7958 msgid ""
7959 "One consequence of this is that special directories such as C<c:\\windows> "
7960 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7961 "precise details of how they were created.  In Windows itself this would not "
7962 "be a problem."
7963 msgstr ""
7964
7965 #. type: textblock
7966 #: ../fish/guestfish-actions.pod:677 ../src/guestfs-actions.pod:1003
7967 msgid ""
7968 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7969 "#posixfilenames1>"
7970 msgstr ""
7971
7972 #. type: textblock
7973 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1006
7974 msgid ""
7975 "This function resolves the true case of each element in the path and returns "
7976 "the case-sensitive path."
7977 msgstr ""
7978
7979 #. type: textblock
7980 #: ../fish/guestfish-actions.pod:683
7981 msgid ""
7982 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7983 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7984 "the directories were originally created under Windows)."
7985 msgstr ""
7986
7987 #. type: textblock
7988 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1014
7989 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7990 msgstr ""
7991
7992 #. type: textblock
7993 #: ../fish/guestfish-actions.pod:691
7994 msgid "See also L</realpath>."
7995 msgstr ""
7996
7997 #. type: =head2
7998 #: ../fish/guestfish-actions.pod:693
7999 msgid "cat"
8000 msgstr ""
8001
8002 #. type: verbatim
8003 #: ../fish/guestfish-actions.pod:695
8004 #, no-wrap
8005 msgid ""
8006 " cat path\n"
8007 "\n"
8008 msgstr ""
8009
8010 #. type: textblock
8011 #: ../fish/guestfish-actions.pod:697 ../fish/guestfish-actions.pod:4176
8012 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:6502
8013 msgid "Return the contents of the file named C<path>."
8014 msgstr ""
8015
8016 #. type: textblock
8017 #: ../fish/guestfish-actions.pod:699
8018 msgid ""
8019 "Note that this function cannot correctly handle binary files (specifically, "
8020 "files containing C<\\0> character which is treated as end of string).  For "
8021 "those you need to use the L</read-file> or L</download> functions which have "
8022 "a more complex interface."
8023 msgstr ""
8024
8025 #. type: textblock
8026 #: ../fish/guestfish-actions.pod:704 ../fish/guestfish-actions.pod:839
8027 #: ../fish/guestfish-actions.pod:851 ../fish/guestfish-actions.pod:1134
8028 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1211
8029 #: ../fish/guestfish-actions.pod:1221 ../fish/guestfish-actions.pod:1413
8030 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1736
8031 #: ../fish/guestfish-actions.pod:1786 ../fish/guestfish-actions.pod:1801
8032 #: ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1830
8033 #: ../fish/guestfish-actions.pod:4046 ../fish/guestfish-actions.pod:4061
8034 #: ../fish/guestfish-actions.pod:4137 ../fish/guestfish-actions.pod:4154
8035 #: ../fish/guestfish-actions.pod:4169 ../fish/guestfish-actions.pod:4838
8036 #: ../fish/guestfish-actions.pod:4884 ../fish/guestfish-actions.pod:4969
8037 #: ../fish/guestfish-actions.pod:4984 ../fish/guestfish-actions.pod:5469
8038 #: ../fish/guestfish-actions.pod:5481 ../fish/guestfish-actions.pod:5499
8039 #: ../fish/guestfish-actions.pod:5516 ../fish/guestfish-actions.pod:5526
8040 #: ../fish/guestfish-actions.pod:5580 ../fish/guestfish-actions.pod:5590
8041 #: ../fish/guestfish-actions.pod:5619 ../fish/guestfish-actions.pod:5629
8042 #: ../src/guestfs-actions.pod:1040 ../src/guestfs-actions.pod:1219
8043 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1894
8044 #: ../src/guestfs-actions.pod:1913 ../src/guestfs-actions.pod:2016
8045 #: ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2281
8046 #: ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:2782
8047 #: ../src/guestfs-actions.pod:2847 ../src/guestfs-actions.pod:2871
8048 #: ../src/guestfs-actions.pod:2888 ../src/guestfs-actions.pod:2917
8049 #: ../src/guestfs-actions.pod:6284 ../src/guestfs-actions.pod:6310
8050 #: ../src/guestfs-actions.pod:6441 ../src/guestfs-actions.pod:6467
8051 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:7446
8052 #: ../src/guestfs-actions.pod:7501 ../src/guestfs-actions.pod:7647
8053 #: ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:8458
8054 #: ../src/guestfs-actions.pod:8478 ../src/guestfs-actions.pod:8511
8055 #: ../src/guestfs-actions.pod:8530 ../src/guestfs-actions.pod:8549
8056 #: ../src/guestfs-actions.pod:8640 ../src/guestfs-actions.pod:8659
8057 #: ../src/guestfs-actions.pod:8705 ../src/guestfs-actions.pod:8724
8058 msgid ""
8059 "Because of the message protocol, there is a transfer limit of somewhere "
8060 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8061 msgstr ""
8062
8063 #. type: =head2
8064 #: ../fish/guestfish-actions.pod:707
8065 msgid "checksum"
8066 msgstr ""
8067
8068 #. type: verbatim
8069 #: ../fish/guestfish-actions.pod:709
8070 #, no-wrap
8071 msgid ""
8072 " checksum csumtype path\n"
8073 "\n"
8074 msgstr ""
8075
8076 #. type: textblock
8077 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1052
8078 msgid ""
8079 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8080 msgstr ""
8081
8082 #. type: textblock
8083 #: ../fish/guestfish-actions.pod:714 ../src/guestfs-actions.pod:1055
8084 msgid ""
8085 "The type of checksum to compute is given by the C<csumtype> parameter which "
8086 "must have one of the following values:"
8087 msgstr ""
8088
8089 #. type: =item
8090 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1060
8091 msgid "C<crc>"
8092 msgstr ""
8093
8094 #. type: textblock
8095 #: ../fish/guestfish-actions.pod:721 ../src/guestfs-actions.pod:1062
8096 msgid ""
8097 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8098 "C<cksum> command."
8099 msgstr ""
8100
8101 #. type: =item
8102 #: ../fish/guestfish-actions.pod:724 ../src/guestfs-actions.pod:1065
8103 msgid "C<md5>"
8104 msgstr ""
8105
8106 #. type: textblock
8107 #: ../fish/guestfish-actions.pod:726 ../src/guestfs-actions.pod:1067
8108 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8109 msgstr ""
8110
8111 #. type: =item
8112 #: ../fish/guestfish-actions.pod:728 ../src/guestfs-actions.pod:1069
8113 msgid "C<sha1>"
8114 msgstr ""
8115
8116 #. type: textblock
8117 #: ../fish/guestfish-actions.pod:730 ../src/guestfs-actions.pod:1071
8118 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8119 msgstr ""
8120
8121 #. type: =item
8122 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1073
8123 msgid "C<sha224>"
8124 msgstr ""
8125
8126 #. type: textblock
8127 #: ../fish/guestfish-actions.pod:734 ../src/guestfs-actions.pod:1075
8128 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8129 msgstr ""
8130
8131 #. type: =item
8132 #: ../fish/guestfish-actions.pod:736 ../src/guestfs-actions.pod:1077
8133 msgid "C<sha256>"
8134 msgstr ""
8135
8136 #. type: textblock
8137 #: ../fish/guestfish-actions.pod:738 ../src/guestfs-actions.pod:1079
8138 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8139 msgstr ""
8140
8141 #. type: =item
8142 #: ../fish/guestfish-actions.pod:740 ../src/guestfs-actions.pod:1081
8143 msgid "C<sha384>"
8144 msgstr ""
8145
8146 #. type: textblock
8147 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1083
8148 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8149 msgstr ""
8150
8151 #. type: =item
8152 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1085
8153 msgid "C<sha512>"
8154 msgstr ""
8155
8156 #. type: textblock
8157 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1087
8158 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8159 msgstr ""
8160
8161 #. type: textblock
8162 #: ../fish/guestfish-actions.pod:750 ../src/guestfs-actions.pod:1091
8163 msgid "The checksum is returned as a printable string."
8164 msgstr ""
8165
8166 #. type: textblock
8167 #: ../fish/guestfish-actions.pod:752
8168 msgid "To get the checksum for a device, use L</checksum-device>."
8169 msgstr ""
8170
8171 #. type: textblock
8172 #: ../fish/guestfish-actions.pod:754
8173 msgid "To get the checksums for many files, use L</checksums-out>."
8174 msgstr ""
8175
8176 #. type: =head2
8177 #: ../fish/guestfish-actions.pod:756
8178 msgid "checksum-device"
8179 msgstr ""
8180
8181 #. type: verbatim
8182 #: ../fish/guestfish-actions.pod:758
8183 #, no-wrap
8184 msgid ""
8185 " checksum-device csumtype device\n"
8186 "\n"
8187 msgstr ""
8188
8189 #. type: textblock
8190 #: ../fish/guestfish-actions.pod:760
8191 msgid ""
8192 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8193 "device named C<device>.  For the types of checksums supported see the L</"
8194 "checksum> command."
8195 msgstr ""
8196
8197 #. type: =head2
8198 #: ../fish/guestfish-actions.pod:764
8199 msgid "checksums-out"
8200 msgstr ""
8201
8202 #. type: verbatim
8203 #: ../fish/guestfish-actions.pod:766
8204 #, no-wrap
8205 msgid ""
8206 " checksums-out csumtype directory (sumsfile|-)\n"
8207 "\n"
8208 msgstr ""
8209
8210 #. type: textblock
8211 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1126
8212 msgid ""
8213 "This command computes the checksums of all regular files in C<directory> and "
8214 "then emits a list of those checksums to the local output file C<sumsfile>."
8215 msgstr ""
8216
8217 #. type: textblock
8218 #: ../fish/guestfish-actions.pod:772 ../src/guestfs-actions.pod:1130
8219 msgid ""
8220 "This can be used for verifying the integrity of a virtual machine.  However "
8221 "to be properly secure you should pay attention to the output of the checksum "
8222 "command (it uses the ones from GNU coreutils).  In particular when the "
8223 "filename is not printable, coreutils uses a special backslash syntax.  For "
8224 "more information, see the GNU coreutils info file."
8225 msgstr ""
8226
8227 #. type: =head2
8228 #: ../fish/guestfish-actions.pod:782
8229 msgid "chmod"
8230 msgstr ""
8231
8232 #. type: verbatim
8233 #: ../fish/guestfish-actions.pod:784
8234 #, no-wrap
8235 msgid ""
8236 " chmod mode path\n"
8237 "\n"
8238 msgstr ""
8239
8240 #. type: textblock
8241 #: ../fish/guestfish-actions.pod:786 ../src/guestfs-actions.pod:1149
8242 msgid ""
8243 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8244 "supported."
8245 msgstr ""
8246
8247 #. type: textblock
8248 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1152
8249 msgid ""
8250 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8251 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8252 "C<700>."
8253 msgstr ""
8254
8255 #. type: textblock
8256 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:3398
8257 #: ../fish/guestfish-actions.pod:3537 ../fish/guestfish-actions.pod:3547
8258 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:1156
8259 #: ../src/guestfs-actions.pod:5249 ../src/guestfs-actions.pod:5458
8260 #: ../src/guestfs-actions.pod:5477 ../src/guestfs-actions.pod:5496
8261 msgid "The mode actually set is affected by the umask."
8262 msgstr ""
8263
8264 #. type: =head2
8265 #: ../fish/guestfish-actions.pod:795
8266 msgid "chown"
8267 msgstr ""
8268
8269 #. type: verbatim
8270 #: ../fish/guestfish-actions.pod:797
8271 #, no-wrap
8272 msgid ""
8273 " chown owner group path\n"
8274 "\n"
8275 msgstr ""
8276
8277 #. type: textblock
8278 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1170
8279 msgid "Change the file owner to C<owner> and group to C<group>."
8280 msgstr ""
8281
8282 #. type: textblock
8283 #: ../fish/guestfish-actions.pod:801 ../fish/guestfish-actions.pod:2738
8284 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:4167
8285 msgid ""
8286 "Only numeric uid and gid are supported.  If you want to use names, you will "
8287 "need to locate and parse the password file yourself (Augeas support makes "
8288 "this relatively easy)."
8289 msgstr ""
8290
8291 #. type: =head2
8292 #: ../fish/guestfish-actions.pod:805
8293 msgid "command"
8294 msgstr ""
8295
8296 #. type: verbatim
8297 #: ../fish/guestfish-actions.pod:807
8298 #, no-wrap
8299 msgid ""
8300 " command 'arguments ...'\n"
8301 "\n"
8302 msgstr ""
8303
8304 #. type: textblock
8305 #: ../fish/guestfish-actions.pod:809 ../src/guestfs-actions.pod:1186
8306 msgid ""
8307 "This call runs a command from the guest filesystem.  The filesystem must be "
8308 "mounted, and must contain a compatible operating system (ie. something "
8309 "Linux, with the same or compatible processor architecture)."
8310 msgstr ""
8311
8312 #. type: textblock
8313 #: ../fish/guestfish-actions.pod:814
8314 msgid ""
8315 "The single parameter is an argv-style list of arguments.  The first element "
8316 "is the name of the program to run.  Subsequent elements are parameters.  The "
8317 "list must be non-empty (ie. must contain a program name).  Note that the "
8318 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
8319 msgstr ""
8320
8321 #. type: textblock
8322 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1198
8323 msgid "The return value is anything printed to I<stdout> by the command."
8324 msgstr ""
8325
8326 #. type: textblock
8327 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1201
8328 msgid ""
8329 "If the command returns a non-zero exit status, then this function returns an "
8330 "error message.  The error message string is the content of I<stderr> from "
8331 "the command."
8332 msgstr ""
8333
8334 #. type: textblock
8335 #: ../fish/guestfish-actions.pod:828 ../src/guestfs-actions.pod:1205
8336 msgid ""
8337 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8338 "bin>.  If you require a program from another location, you should provide "
8339 "the full path in the first parameter."
8340 msgstr ""
8341
8342 #. type: textblock
8343 #: ../fish/guestfish-actions.pod:833 ../src/guestfs-actions.pod:1210
8344 msgid ""
8345 "Shared libraries and data files required by the program must be available on "
8346 "filesystems which are mounted in the correct places.  It is the caller's "
8347 "responsibility to ensure all filesystems that are needed are mounted at the "
8348 "right locations."
8349 msgstr ""
8350
8351 #. type: =head2
8352 #: ../fish/guestfish-actions.pod:842
8353 msgid "command-lines"
8354 msgstr ""
8355
8356 #. type: verbatim
8357 #: ../fish/guestfish-actions.pod:844
8358 #, no-wrap
8359 msgid ""
8360 " command-lines 'arguments ...'\n"
8361 "\n"
8362 msgstr ""
8363
8364 #. type: textblock
8365 #: ../fish/guestfish-actions.pod:846
8366 msgid ""
8367 "This is the same as L</command>, but splits the result into a list of lines."
8368 msgstr ""
8369
8370 #. type: textblock
8371 #: ../fish/guestfish-actions.pod:849
8372 msgid "See also: L</sh-lines>"
8373 msgstr ""
8374
8375 #. type: =head2
8376 #: ../fish/guestfish-actions.pod:854
8377 msgid "compress-device-out"
8378 msgstr ""
8379
8380 #. type: verbatim
8381 #: ../fish/guestfish-actions.pod:856
8382 #, no-wrap
8383 msgid ""
8384 " compress-device-out ctype device (zdevice|-) [level:N]\n"
8385 "\n"
8386 msgstr ""
8387
8388 #. type: textblock
8389 #: ../fish/guestfish-actions.pod:858 ../src/guestfs-actions.pod:1260
8390 msgid ""
8391 "This command compresses C<device> and writes it out to the local file "
8392 "C<zdevice>."
8393 msgstr ""
8394
8395 #. type: textblock
8396 #: ../fish/guestfish-actions.pod:861
8397 msgid ""
8398 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
8399 "compress-out>."
8400 msgstr ""
8401
8402 #. type: =head2
8403 #: ../fish/guestfish-actions.pod:868
8404 msgid "compress-out"
8405 msgstr ""
8406
8407 #. type: verbatim
8408 #: ../fish/guestfish-actions.pod:870
8409 #, no-wrap
8410 msgid ""
8411 " compress-out ctype file (zfile|-) [level:N]\n"
8412 "\n"
8413 msgstr ""
8414
8415 #. type: textblock
8416 #: ../fish/guestfish-actions.pod:872 ../src/guestfs-actions.pod:1312
8417 msgid ""
8418 "This command compresses C<file> and writes it out to the local file C<zfile>."
8419 msgstr ""
8420
8421 #. type: textblock
8422 #: ../fish/guestfish-actions.pod:875 ../src/guestfs-actions.pod:1315
8423 msgid ""
8424 "The compression program used is controlled by the C<ctype> parameter.  "
8425 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
8426 "Some compression types may not be supported by particular builds of "
8427 "libguestfs, in which case you will get an error containing the substring "
8428 "\"not supported\"."
8429 msgstr ""
8430
8431 #. type: textblock
8432 #: ../fish/guestfish-actions.pod:881 ../src/guestfs-actions.pod:1321
8433 msgid ""
8434 "The optional C<level> parameter controls compression level.  The meaning and "
8435 "default for this parameter depends on the compression program being used."
8436 msgstr ""
8437
8438 #. type: =head2
8439 #: ../fish/guestfish-actions.pod:889
8440 msgid "config"
8441 msgstr ""
8442
8443 #. type: verbatim
8444 #: ../fish/guestfish-actions.pod:891
8445 #, no-wrap
8446 msgid ""
8447 " config qemuparam qemuvalue\n"
8448 "\n"
8449 msgstr ""
8450
8451 #. type: textblock
8452 #: ../fish/guestfish-actions.pod:893 ../src/guestfs-actions.pod:1362
8453 msgid ""
8454 "This can be used to add arbitrary qemu command line parameters of the form "
8455 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8456 "setting some parameters which would interfere with parameters that we use."
8457 msgstr ""
8458
8459 #. type: textblock
8460 #: ../fish/guestfish-actions.pod:898 ../src/guestfs-actions.pod:1367
8461 msgid "The first character of C<param> string must be a C<-> (dash)."
8462 msgstr ""
8463
8464 #. type: textblock
8465 #: ../fish/guestfish-actions.pod:900 ../src/guestfs-actions.pod:1369
8466 msgid "C<value> can be NULL."
8467 msgstr ""
8468
8469 #. type: =head2
8470 #: ../fish/guestfish-actions.pod:902
8471 msgid "copy-device-to-device"
8472 msgstr ""
8473
8474 #. type: verbatim
8475 #: ../fish/guestfish-actions.pod:904
8476 #, no-wrap
8477 msgid ""
8478 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8479 "\n"
8480 msgstr ""
8481
8482 #. type: textblock
8483 #: ../fish/guestfish-actions.pod:906
8484 msgid ""
8485 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
8486 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
8487 "(device|file) to a destination (device|file)."
8488 msgstr ""
8489
8490 #. type: textblock
8491 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1399
8492 msgid ""
8493 "Partial copies can be made since you can specify optionally the source "
8494 "offset, destination offset and size to copy.  These values are all specified "
8495 "in bytes.  If not given, the offsets both default to zero, and the size "
8496 "defaults to copying as much as possible until we hit the end of the source."
8497 msgstr ""
8498
8499 #. type: textblock
8500 #: ../fish/guestfish-actions.pod:919 ../src/guestfs-actions.pod:1405
8501 msgid ""
8502 "The source and destination may be the same object.  However overlapping "
8503 "regions may not be copied correctly."
8504 msgstr ""
8505
8506 #. type: textblock
8507 #: ../fish/guestfish-actions.pod:922 ../src/guestfs-actions.pod:1408
8508 msgid ""
8509 "If the destination is a file, it is created if required.  If the destination "
8510 "file is not large enough, it is extended."
8511 msgstr ""
8512
8513 #. type: =head2
8514 #: ../fish/guestfish-actions.pod:927
8515 msgid "copy-device-to-file"
8516 msgstr ""
8517
8518 #. type: verbatim
8519 #: ../fish/guestfish-actions.pod:929
8520 #, no-wrap
8521 msgid ""
8522 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8523 "\n"
8524 msgstr ""
8525
8526 #. type: textblock
8527 #: ../fish/guestfish-actions.pod:931 ../fish/guestfish-actions.pod:940
8528 #: ../fish/guestfish-actions.pod:949
8529 msgid "See L</copy-device-to-device> for a general overview of this call."
8530 msgstr ""
8531
8532 #. type: =head2
8533 #: ../fish/guestfish-actions.pod:936
8534 msgid "copy-file-to-device"
8535 msgstr ""
8536
8537 #. type: verbatim
8538 #: ../fish/guestfish-actions.pod:938
8539 #, no-wrap
8540 msgid ""
8541 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8542 "\n"
8543 msgstr ""
8544
8545 #. type: =head2
8546 #: ../fish/guestfish-actions.pod:945
8547 msgid "copy-file-to-file"
8548 msgstr ""
8549
8550 #. type: verbatim
8551 #: ../fish/guestfish-actions.pod:947
8552 #, no-wrap
8553 msgid ""
8554 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8555 "\n"
8556 msgstr ""
8557
8558 #. type: textblock
8559 #: ../fish/guestfish-actions.pod:952
8560 msgid ""
8561 "This is B<not> the function you want for copying files.  This is for copying "
8562 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
8563 "file copying and moving functions."
8564 msgstr ""
8565
8566 #. type: =head2
8567 #: ../fish/guestfish-actions.pod:959
8568 msgid "copy-size"
8569 msgstr ""
8570
8571 #. type: verbatim
8572 #: ../fish/guestfish-actions.pod:961
8573 #, no-wrap
8574 msgid ""
8575 " copy-size src dest size\n"
8576 "\n"
8577 msgstr ""
8578
8579 #. type: textblock
8580 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1623
8581 msgid ""
8582 "This command copies exactly C<size> bytes from one source device or file "
8583 "C<src> to another destination device or file C<dest>."
8584 msgstr ""
8585
8586 #. type: textblock
8587 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1626
8588 msgid ""
8589 "Note this will fail if the source is too short or if the destination is not "
8590 "large enough."
8591 msgstr ""
8592
8593 #. type: textblock
8594 #: ../fish/guestfish-actions.pod:969 ../fish/guestfish-actions.pod:1004
8595 msgid ""
8596 "I<This function is deprecated.> In new code, use the L</"
8597 "copy_device_to_device> call instead."
8598 msgstr ""
8599
8600 #. type: =head2
8601 #: ../fish/guestfish-actions.pod:976
8602 msgid "cp"
8603 msgstr ""
8604
8605 #. type: verbatim
8606 #: ../fish/guestfish-actions.pod:978
8607 #, no-wrap
8608 msgid ""
8609 " cp src dest\n"
8610 "\n"
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:980 ../src/guestfs-actions.pod:1645
8615 msgid ""
8616 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8617 "destination filename or destination directory."
8618 msgstr ""
8619
8620 #. type: =head2
8621 #: ../fish/guestfish-actions.pod:983
8622 msgid "cp-a"
8623 msgstr ""
8624
8625 #. type: verbatim
8626 #: ../fish/guestfish-actions.pod:985
8627 #, no-wrap
8628 msgid ""
8629 " cp-a src dest\n"
8630 "\n"
8631 msgstr ""
8632
8633 #. type: textblock
8634 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1659
8635 msgid ""
8636 "This copies a file or directory from C<src> to C<dest> recursively using the "
8637 "C<cp -a> command."
8638 msgstr ""
8639
8640 #. type: =head2
8641 #: ../fish/guestfish-actions.pod:990
8642 msgid "dd"
8643 msgstr ""
8644
8645 #. type: verbatim
8646 #: ../fish/guestfish-actions.pod:992
8647 #, no-wrap
8648 msgid ""
8649 " dd src dest\n"
8650 "\n"
8651 msgstr ""
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1680
8655 msgid ""
8656 "This command copies from one source device or file C<src> to another "
8657 "destination device or file C<dest>.  Normally you would use this to copy to "
8658 "or from a device or partition, for example to duplicate a filesystem."
8659 msgstr ""
8660
8661 #. type: textblock
8662 #: ../fish/guestfish-actions.pod:999
8663 msgid ""
8664 "If the destination is a device, it must be as large or larger than the "
8665 "source file or device, otherwise the copy will fail.  This command cannot do "
8666 "partial copies (see L</copy-device-to-device>)."
8667 msgstr ""
8668
8669 #. type: =head2
8670 #: ../fish/guestfish-actions.pod:1011
8671 msgid "df"
8672 msgstr ""
8673
8674 #. type: verbatim
8675 #: ../fish/guestfish-actions.pod:1013
8676 #, no-wrap
8677 msgid ""
8678 " df\n"
8679 "\n"
8680 msgstr ""
8681
8682 #. type: textblock
8683 #: ../fish/guestfish-actions.pod:1015 ../src/guestfs-actions.pod:1699
8684 msgid "This command runs the C<df> command to report disk space used."
8685 msgstr ""
8686
8687 #. type: textblock
8688 #: ../fish/guestfish-actions.pod:1017 ../fish/guestfish-actions.pod:1028
8689 msgid ""
8690 "This command is mostly useful for interactive sessions.  It is I<not> "
8691 "intended that you try to parse the output string.  Use L</statvfs> from "
8692 "programs."
8693 msgstr ""
8694
8695 #. type: =head2
8696 #: ../fish/guestfish-actions.pod:1021
8697 msgid "df-h"
8698 msgstr ""
8699
8700 #. type: verbatim
8701 #: ../fish/guestfish-actions.pod:1023
8702 #, no-wrap
8703 msgid ""
8704 " df-h\n"
8705 "\n"
8706 msgstr ""
8707
8708 #. type: textblock
8709 #: ../fish/guestfish-actions.pod:1025 ../src/guestfs-actions.pod:1715
8710 msgid ""
8711 "This command runs the C<df -h> command to report disk space used in human-"
8712 "readable format."
8713 msgstr ""
8714
8715 #. type: =head2
8716 #: ../fish/guestfish-actions.pod:1032
8717 msgid "dmesg"
8718 msgstr ""
8719
8720 #. type: verbatim
8721 #: ../fish/guestfish-actions.pod:1034
8722 #, no-wrap
8723 msgid ""
8724 " dmesg\n"
8725 "\n"
8726 msgstr ""
8727
8728 #. type: textblock
8729 #: ../fish/guestfish-actions.pod:1036 ../src/guestfs-actions.pod:1732
8730 msgid ""
8731 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8732 "This is sometimes useful for extended debugging of problems."
8733 msgstr ""
8734
8735 #. type: textblock
8736 #: ../fish/guestfish-actions.pod:1040
8737 msgid ""
8738 "Another way to get the same information is to enable verbose messages with "
8739 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8740 "before running the program."
8741 msgstr ""
8742
8743 #. type: =head2
8744 #: ../fish/guestfish-actions.pod:1045
8745 msgid "download"
8746 msgstr ""
8747
8748 #. type: verbatim
8749 #: ../fish/guestfish-actions.pod:1047
8750 #, no-wrap
8751 msgid ""
8752 " download remotefilename (filename|-)\n"
8753 "\n"
8754 msgstr ""
8755
8756 #. type: textblock
8757 #: ../fish/guestfish-actions.pod:1049 ../fish/guestfish-actions.pod:1062
8758 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:1778
8759 msgid ""
8760 "Download file C<remotefilename> and save it as C<filename> on the local "
8761 "machine."
8762 msgstr ""
8763
8764 #. type: textblock
8765 #: ../fish/guestfish-actions.pod:1052 ../fish/guestfish-actions.pod:5221
8766 #: ../src/guestfs-actions.pod:1756 ../src/guestfs-actions.pod:8028
8767 msgid "C<filename> can also be a named pipe."
8768 msgstr ""
8769
8770 #. type: textblock
8771 #: ../fish/guestfish-actions.pod:1054
8772 msgid "See also L</upload>, L</cat>."
8773 msgstr ""
8774
8775 #. type: =head2
8776 #: ../fish/guestfish-actions.pod:1058
8777 msgid "download-offset"
8778 msgstr ""
8779
8780 #. type: verbatim
8781 #: ../fish/guestfish-actions.pod:1060
8782 #, no-wrap
8783 msgid ""
8784 " download-offset remotefilename (filename|-) offset size\n"
8785 "\n"
8786 msgstr ""
8787
8788 #. type: textblock
8789 #: ../fish/guestfish-actions.pod:1065 ../src/guestfs-actions.pod:1781
8790 msgid ""
8791 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8792 "region must be within the file or device)."
8793 msgstr ""
8794
8795 #. type: textblock
8796 #: ../fish/guestfish-actions.pod:1068
8797 msgid ""
8798 "Note that there is no limit on the amount of data that can be downloaded "
8799 "with this call, unlike with L</pread>, and this call always reads the full "
8800 "amount unless an error occurs."
8801 msgstr ""
8802
8803 #. type: textblock
8804 #: ../fish/guestfish-actions.pod:1073
8805 msgid "See also L</download>, L</pread>."
8806 msgstr ""
8807
8808 #. type: =head2
8809 #: ../fish/guestfish-actions.pod:1077
8810 msgid "drop-caches"
8811 msgstr ""
8812
8813 #. type: verbatim
8814 #: ../fish/guestfish-actions.pod:1079
8815 #, no-wrap
8816 msgid ""
8817 " drop-caches whattodrop\n"
8818 "\n"
8819 msgstr ""
8820
8821 #. type: textblock
8822 #: ../fish/guestfish-actions.pod:1081 ../src/guestfs-actions.pod:1806
8823 msgid ""
8824 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8825 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8826 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8827 msgstr ""
8828
8829 #. type: textblock
8830 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1811
8831 msgid "Setting C<whattodrop> to 3 should drop everything."
8832 msgstr ""
8833
8834 #. type: textblock
8835 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1813
8836 msgid ""
8837 "This automatically calls L<sync(2)> before the operation, so that the "
8838 "maximum guest memory is freed."
8839 msgstr ""
8840
8841 #. type: =head2
8842 #: ../fish/guestfish-actions.pod:1091
8843 msgid "du"
8844 msgstr ""
8845
8846 #. type: verbatim
8847 #: ../fish/guestfish-actions.pod:1093
8848 #, no-wrap
8849 msgid ""
8850 " du path\n"
8851 "\n"
8852 msgstr ""
8853
8854 #. type: textblock
8855 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1826
8856 msgid ""
8857 "This command runs the C<du -s> command to estimate file space usage for "
8858 "C<path>."
8859 msgstr ""
8860
8861 #. type: textblock
8862 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1829
8863 msgid ""
8864 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8865 "estimate includes the contents of the directory and all subdirectories "
8866 "(recursively)."
8867 msgstr ""
8868
8869 #. type: textblock
8870 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1833
8871 msgid ""
8872 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8873 msgstr ""
8874
8875 #. type: =head2
8876 #: ../fish/guestfish-actions.pod:1105
8877 msgid "e2fsck-f"
8878 msgstr ""
8879
8880 #. type: verbatim
8881 #: ../fish/guestfish-actions.pod:1107
8882 #, no-wrap
8883 msgid ""
8884 " e2fsck-f device\n"
8885 "\n"
8886 msgstr ""
8887
8888 #. type: textblock
8889 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1851
8890 msgid ""
8891 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8892 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8893 "clean (I<-f>)."
8894 msgstr ""
8895
8896 #. type: textblock
8897 #: ../fish/guestfish-actions.pod:1113
8898 msgid ""
8899 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8900 "should use L</fsck>."
8901 msgstr ""
8902
8903 #. type: =head2
8904 #: ../fish/guestfish-actions.pod:1116
8905 msgid "echo-daemon"
8906 msgstr ""
8907
8908 #. type: verbatim
8909 #: ../fish/guestfish-actions.pod:1118
8910 #, no-wrap
8911 msgid ""
8912 " echo-daemon 'words ...'\n"
8913 "\n"
8914 msgstr ""
8915
8916 #. type: textblock
8917 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1868
8918 msgid ""
8919 "This command concatenates the list of C<words> passed with single spaces "
8920 "between them and returns the resulting string."
8921 msgstr ""
8922
8923 #. type: textblock
8924 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1871
8925 msgid "You can use this command to test the connection through to the daemon."
8926 msgstr ""
8927
8928 #. type: textblock
8929 #: ../fish/guestfish-actions.pod:1125
8930 msgid "See also L</ping-daemon>."
8931 msgstr ""
8932
8933 #. type: =head2
8934 #: ../fish/guestfish-actions.pod:1127
8935 msgid "egrep"
8936 msgstr ""
8937
8938 #. type: verbatim
8939 #: ../fish/guestfish-actions.pod:1129
8940 #, no-wrap
8941 msgid ""
8942 " egrep regex path\n"
8943 "\n"
8944 msgstr ""
8945
8946 #. type: textblock
8947 #: ../fish/guestfish-actions.pod:1131 ../src/guestfs-actions.pod:1887
8948 msgid ""
8949 "This calls the external C<egrep> program and returns the matching lines."
8950 msgstr ""
8951
8952 #. type: =head2
8953 #: ../fish/guestfish-actions.pod:1137
8954 msgid "egrepi"
8955 msgstr ""
8956
8957 #. type: verbatim
8958 #: ../fish/guestfish-actions.pod:1139
8959 #, no-wrap
8960 msgid ""
8961 " egrepi regex path\n"
8962 "\n"
8963 msgstr ""
8964
8965 #. type: textblock
8966 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1906
8967 msgid ""
8968 "This calls the external C<egrep -i> program and returns the matching lines."
8969 msgstr ""
8970
8971 #. type: =head2
8972 #: ../fish/guestfish-actions.pod:1147
8973 msgid "equal"
8974 msgstr ""
8975
8976 #. type: verbatim
8977 #: ../fish/guestfish-actions.pod:1149
8978 #, no-wrap
8979 msgid ""
8980 " equal file1 file2\n"
8981 "\n"
8982 msgstr ""
8983
8984 #. type: textblock
8985 #: ../fish/guestfish-actions.pod:1151 ../src/guestfs-actions.pod:1925
8986 msgid ""
8987 "This compares the two files C<file1> and C<file2> and returns true if their "
8988 "content is exactly equal, or false otherwise."
8989 msgstr ""
8990
8991 #. type: textblock
8992 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1928
8993 msgid "The external L<cmp(1)> program is used for the comparison."
8994 msgstr ""
8995
8996 #. type: =head2
8997 #: ../fish/guestfish-actions.pod:1156
8998 msgid "exists"
8999 msgstr ""
9000
9001 #. type: verbatim
9002 #: ../fish/guestfish-actions.pod:1158
9003 #, no-wrap
9004 msgid ""
9005 " exists path\n"
9006 "\n"
9007 msgstr ""
9008
9009 #. type: textblock
9010 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1940
9011 msgid ""
9012 "This returns C<true> if and only if there is a file, directory (or anything) "
9013 "with the given C<path> name."
9014 msgstr ""
9015
9016 #. type: textblock
9017 #: ../fish/guestfish-actions.pod:1163
9018 msgid "See also L</is-file>, L</is-dir>, L</stat>."
9019 msgstr ""
9020
9021 #. type: =head2
9022 #: ../fish/guestfish-actions.pod:1165
9023 msgid "fallocate"
9024 msgstr ""
9025
9026 #. type: verbatim
9027 #: ../fish/guestfish-actions.pod:1167
9028 #, no-wrap
9029 msgid ""
9030 " fallocate path len\n"
9031 "\n"
9032 msgstr ""
9033
9034 #. type: textblock
9035 #: ../fish/guestfish-actions.pod:1169 ../fish/guestfish-actions.pod:1188
9036 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:1982
9037 msgid ""
9038 "This command preallocates a file (containing zero bytes) named C<path> of "
9039 "size C<len> bytes.  If the file exists already, it is overwritten."
9040 msgstr ""
9041
9042 #. type: textblock
9043 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1967
9044 msgid ""
9045 "Do not confuse this with the guestfish-specific C<alloc> command which "
9046 "allocates a file in the host and attaches it as a device."
9047 msgstr ""
9048
9049 #. type: textblock
9050 #: ../fish/guestfish-actions.pod:1177
9051 msgid ""
9052 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
9053 "instead."
9054 msgstr ""
9055
9056 #. type: =head2
9057 #: ../fish/guestfish-actions.pod:1184
9058 msgid "fallocate64"
9059 msgstr ""
9060
9061 #. type: verbatim
9062 #: ../fish/guestfish-actions.pod:1186
9063 #, no-wrap
9064 msgid ""
9065 " fallocate64 path len\n"
9066 "\n"
9067 msgstr ""
9068
9069 #. type: textblock
9070 #: ../fish/guestfish-actions.pod:1192
9071 msgid ""
9072 "Note that this call allocates disk blocks for the file.  To create a sparse "
9073 "file use L</truncate-size> instead."
9074 msgstr ""
9075
9076 #. type: textblock
9077 #: ../fish/guestfish-actions.pod:1195
9078 msgid ""
9079 "The deprecated call L</fallocate> does the same, but owing to an oversight "
9080 "it only allowed 30 bit lengths to be specified, effectively limiting the "
9081 "maximum size of files created through that call to 1GB."
9082 msgstr ""
9083
9084 #. type: textblock
9085 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1994
9086 msgid ""
9087 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9088 "commands which create a file in the host and attach it as a device."
9089 msgstr ""
9090
9091 #. type: =head2
9092 #: ../fish/guestfish-actions.pod:1204
9093 msgid "fgrep"
9094 msgstr ""
9095
9096 #. type: verbatim
9097 #: ../fish/guestfish-actions.pod:1206
9098 #, no-wrap
9099 msgid ""
9100 " fgrep pattern path\n"
9101 "\n"
9102 msgstr ""
9103
9104 #. type: textblock
9105 #: ../fish/guestfish-actions.pod:1208 ../src/guestfs-actions.pod:2009
9106 msgid ""
9107 "This calls the external C<fgrep> program and returns the matching lines."
9108 msgstr ""
9109
9110 #. type: =head2
9111 #: ../fish/guestfish-actions.pod:1214
9112 msgid "fgrepi"
9113 msgstr ""
9114
9115 #. type: verbatim
9116 #: ../fish/guestfish-actions.pod:1216
9117 #, no-wrap
9118 msgid ""
9119 " fgrepi pattern path\n"
9120 "\n"
9121 msgstr ""
9122
9123 #. type: textblock
9124 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2028
9125 msgid ""
9126 "This calls the external C<fgrep -i> program and returns the matching lines."
9127 msgstr ""
9128
9129 #. type: =head2
9130 #: ../fish/guestfish-actions.pod:1224
9131 msgid "file"
9132 msgstr ""
9133
9134 #. type: verbatim
9135 #: ../fish/guestfish-actions.pod:1226
9136 #, no-wrap
9137 msgid ""
9138 " file path\n"
9139 "\n"
9140 msgstr ""
9141
9142 #. type: textblock
9143 #: ../fish/guestfish-actions.pod:1228 ../src/guestfs-actions.pod:2046
9144 msgid ""
9145 "This call uses the standard L<file(1)> command to determine the type or "
9146 "contents of the file."
9147 msgstr ""
9148
9149 #. type: textblock
9150 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:2049
9151 msgid ""
9152 "This call will also transparently look inside various types of compressed "
9153 "file."
9154 msgstr ""
9155
9156 #. type: textblock
9157 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2052
9158 msgid ""
9159 "The exact command which runs is C<file -zb path>.  Note in particular that "
9160 "the filename is not prepended to the output (the I<-b> option)."
9161 msgstr ""
9162
9163 #. type: textblock
9164 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2056
9165 msgid ""
9166 "The output depends on the output of the underlying L<file(1)> command and it "
9167 "can change in future in ways beyond our control.  In other words, the output "
9168 "is not guaranteed by the ABI."
9169 msgstr ""
9170
9171 #. type: textblock
9172 #: ../fish/guestfish-actions.pod:1242
9173 msgid ""
9174 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
9175 "(etc), L</is-zero>."
9176 msgstr ""
9177
9178 #. type: =head2
9179 #: ../fish/guestfish-actions.pod:1245
9180 msgid "file-architecture"
9181 msgstr ""
9182
9183 #. type: verbatim
9184 #: ../fish/guestfish-actions.pod:1247
9185 #, no-wrap
9186 msgid ""
9187 " file-architecture filename\n"
9188 "\n"
9189 msgstr ""
9190
9191 #. type: textblock
9192 #: ../fish/guestfish-actions.pod:1249 ../src/guestfs-actions.pod:2074
9193 msgid ""
9194 "This detects the architecture of the binary C<filename>, and returns it if "
9195 "known."
9196 msgstr ""
9197
9198 #. type: textblock
9199 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2077
9200 msgid "Currently defined architectures are:"
9201 msgstr ""
9202
9203 #. type: =item
9204 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2081
9205 msgid "\"i386\""
9206 msgstr ""
9207
9208 #. type: textblock
9209 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2083
9210 msgid ""
9211 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9212 "irrespective of the precise processor requirements of the binary."
9213 msgstr ""
9214
9215 #. type: =item
9216 #: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:2086
9217 msgid "\"x86_64\""
9218 msgstr ""
9219
9220 #. type: textblock
9221 #: ../fish/guestfish-actions.pod:1263 ../src/guestfs-actions.pod:2088
9222 msgid "64 bit x86-64."
9223 msgstr ""
9224
9225 #. type: =item
9226 #: ../fish/guestfish-actions.pod:1265 ../src/guestfs-actions.pod:2090
9227 msgid "\"sparc\""
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:1267 ../src/guestfs-actions.pod:2092
9232 msgid "32 bit SPARC."
9233 msgstr ""
9234
9235 #. type: =item
9236 #: ../fish/guestfish-actions.pod:1269 ../src/guestfs-actions.pod:2094
9237 msgid "\"sparc64\""
9238 msgstr ""
9239
9240 #. type: textblock
9241 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:2096
9242 msgid "64 bit SPARC V9 and above."
9243 msgstr ""
9244
9245 #. type: =item
9246 #: ../fish/guestfish-actions.pod:1273 ../src/guestfs-actions.pod:2098
9247 msgid "\"ia64\""
9248 msgstr ""
9249
9250 #. type: textblock
9251 #: ../fish/guestfish-actions.pod:1275 ../src/guestfs-actions.pod:2100
9252 msgid "Intel Itanium."
9253 msgstr ""
9254
9255 #. type: =item
9256 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:2102
9257 msgid "\"ppc\""
9258 msgstr ""
9259
9260 #. type: textblock
9261 #: ../fish/guestfish-actions.pod:1279 ../src/guestfs-actions.pod:2104
9262 msgid "32 bit Power PC."
9263 msgstr ""
9264
9265 #. type: =item
9266 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:2106
9267 msgid "\"ppc64\""
9268 msgstr ""
9269
9270 #. type: textblock
9271 #: ../fish/guestfish-actions.pod:1283 ../src/guestfs-actions.pod:2108
9272 msgid "64 bit Power PC."
9273 msgstr ""
9274
9275 #. type: textblock
9276 #: ../fish/guestfish-actions.pod:1287 ../src/guestfs-actions.pod:2112
9277 msgid "Libguestfs may return other architecture strings in future."
9278 msgstr ""
9279
9280 #. type: textblock
9281 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:2114
9282 msgid "The function works on at least the following types of files:"
9283 msgstr ""
9284
9285 #. type: textblock
9286 #: ../fish/guestfish-actions.pod:1295 ../src/guestfs-actions.pod:2120
9287 msgid "many types of Un*x and Linux binary"
9288 msgstr ""
9289
9290 #. type: textblock
9291 #: ../fish/guestfish-actions.pod:1299 ../src/guestfs-actions.pod:2124
9292 msgid "many types of Un*x and Linux shared library"
9293 msgstr ""
9294
9295 #. type: textblock
9296 #: ../fish/guestfish-actions.pod:1303 ../src/guestfs-actions.pod:2128
9297 msgid "Windows Win32 and Win64 binaries"
9298 msgstr ""
9299
9300 #. type: textblock
9301 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:2132
9302 msgid "Windows Win32 and Win64 DLLs"
9303 msgstr ""
9304
9305 #. type: textblock
9306 #: ../fish/guestfish-actions.pod:1309 ../src/guestfs-actions.pod:2134
9307 msgid "Win32 binaries and DLLs return C<i386>."
9308 msgstr ""
9309
9310 #. type: textblock
9311 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2136
9312 msgid "Win64 binaries and DLLs return C<x86_64>."
9313 msgstr ""
9314
9315 #. type: textblock
9316 #: ../fish/guestfish-actions.pod:1315 ../src/guestfs-actions.pod:2140
9317 msgid "Linux kernel modules"
9318 msgstr ""
9319
9320 #. type: textblock
9321 #: ../fish/guestfish-actions.pod:1319 ../src/guestfs-actions.pod:2144
9322 msgid "Linux new-style initrd images"
9323 msgstr ""
9324
9325 #. type: textblock
9326 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2148
9327 msgid "some non-x86 Linux vmlinuz kernels"
9328 msgstr ""
9329
9330 #. type: textblock
9331 #: ../fish/guestfish-actions.pod:1327 ../src/guestfs-actions.pod:2152
9332 msgid "What it can't do currently:"
9333 msgstr ""
9334
9335 #. type: textblock
9336 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2158
9337 msgid "static libraries (libfoo.a)"
9338 msgstr ""
9339
9340 #. type: textblock
9341 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2162
9342 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9343 msgstr ""
9344
9345 #. type: textblock
9346 #: ../fish/guestfish-actions.pod:1341 ../src/guestfs-actions.pod:2166
9347 msgid "x86 Linux vmlinuz kernels"
9348 msgstr ""
9349
9350 #. type: textblock
9351 #: ../fish/guestfish-actions.pod:1343 ../src/guestfs-actions.pod:2168
9352 msgid ""
9353 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9354 "compressed code, and are horribly hard to unpack.  If you want to find the "
9355 "architecture of a kernel, use the architecture of the associated initrd or "
9356 "kernel module(s) instead."
9357 msgstr ""
9358
9359 #. type: =head2
9360 #: ../fish/guestfish-actions.pod:1350
9361 msgid "filesize"
9362 msgstr ""
9363
9364 #. type: verbatim
9365 #: ../fish/guestfish-actions.pod:1352
9366 #, no-wrap
9367 msgid ""
9368 " filesize file\n"
9369 "\n"
9370 msgstr ""
9371
9372 #. type: textblock
9373 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2186
9374 msgid "This command returns the size of C<file> in bytes."
9375 msgstr ""
9376
9377 #. type: textblock
9378 #: ../fish/guestfish-actions.pod:1356
9379 msgid ""
9380 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
9381 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
9382 msgstr ""
9383
9384 #. type: =head2
9385 #: ../fish/guestfish-actions.pod:1360
9386 msgid "fill"
9387 msgstr ""
9388
9389 #. type: verbatim
9390 #: ../fish/guestfish-actions.pod:1362
9391 #, no-wrap
9392 msgid ""
9393 " fill c len path\n"
9394 "\n"
9395 msgstr ""
9396
9397 #. type: textblock
9398 #: ../fish/guestfish-actions.pod:1364 ../src/guestfs-actions.pod:2204
9399 msgid ""
9400 "This command creates a new file called C<path>.  The initial content of the "
9401 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9402 "[0..255]>."
9403 msgstr ""
9404
9405 #. type: textblock
9406 #: ../fish/guestfish-actions.pod:1368
9407 msgid ""
9408 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9409 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
9410 "L</fill-pattern>."
9411 msgstr ""
9412
9413 #. type: =head2
9414 #: ../fish/guestfish-actions.pod:1373
9415 msgid "fill-pattern"
9416 msgstr ""
9417
9418 #. type: verbatim
9419 #: ../fish/guestfish-actions.pod:1375
9420 #, no-wrap
9421 msgid ""
9422 " fill-pattern pattern len path\n"
9423 "\n"
9424 msgstr ""
9425
9426 #. type: textblock
9427 #: ../fish/guestfish-actions.pod:1377
9428 msgid ""
9429 "This function is like L</fill> except that it creates a new file of length "
9430 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
9431 "is truncated if necessary to ensure the length of the file is exactly C<len> "
9432 "bytes."
9433 msgstr ""
9434
9435 #. type: =head2
9436 #: ../fish/guestfish-actions.pod:1382
9437 msgid "find"
9438 msgstr ""
9439
9440 #. type: verbatim
9441 #: ../fish/guestfish-actions.pod:1384
9442 #, no-wrap
9443 msgid ""
9444 " find directory\n"
9445 "\n"
9446 msgstr ""
9447
9448 #. type: textblock
9449 #: ../fish/guestfish-actions.pod:1386 ../src/guestfs-actions.pod:2250
9450 msgid ""
9451 "This command lists out all files and directories, recursively, starting at "
9452 "C<directory>.  It is essentially equivalent to running the shell command "
9453 "C<find directory -print> but some post-processing happens on the output, "
9454 "described below."
9455 msgstr ""
9456
9457 #. type: textblock
9458 #: ../fish/guestfish-actions.pod:1391 ../src/guestfs-actions.pod:2255
9459 msgid ""
9460 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9461 "structure was:"
9462 msgstr ""
9463
9464 #. type: verbatim
9465 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2258
9466 #, no-wrap
9467 msgid ""
9468 " /tmp/a\n"
9469 " /tmp/b\n"
9470 " /tmp/c/d\n"
9471 "\n"
9472 msgstr ""
9473
9474 #. type: textblock
9475 #: ../fish/guestfish-actions.pod:1398
9476 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
9477 msgstr ""
9478
9479 #. type: verbatim
9480 #: ../fish/guestfish-actions.pod:1401 ../src/guestfs-actions.pod:2265
9481 #, no-wrap
9482 msgid ""
9483 " a\n"
9484 " b\n"
9485 " c\n"
9486 " c/d\n"
9487 "\n"
9488 msgstr ""
9489
9490 #. type: textblock
9491 #: ../fish/guestfish-actions.pod:1406 ../src/guestfs-actions.pod:2270
9492 msgid "If C<directory> is not a directory, then this command returns an error."
9493 msgstr ""
9494
9495 #. type: textblock
9496 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2273
9497 msgid "The returned list is sorted."
9498 msgstr ""
9499
9500 #. type: textblock
9501 #: ../fish/guestfish-actions.pod:1411
9502 msgid "See also L</find0>."
9503 msgstr ""
9504
9505 #. type: =head2
9506 #: ../fish/guestfish-actions.pod:1416
9507 msgid "find0"
9508 msgstr ""
9509
9510 #. type: verbatim
9511 #: ../fish/guestfish-actions.pod:1418
9512 #, no-wrap
9513 msgid ""
9514 " find0 directory (files|-)\n"
9515 "\n"
9516 msgstr ""
9517
9518 #. type: textblock
9519 #: ../fish/guestfish-actions.pod:1420 ../src/guestfs-actions.pod:2293
9520 msgid ""
9521 "This command lists out all files and directories, recursively, starting at "
9522 "C<directory>, placing the resulting list in the external file called "
9523 "C<files>."
9524 msgstr ""
9525
9526 #. type: textblock
9527 #: ../fish/guestfish-actions.pod:1424
9528 msgid ""
9529 "This command works the same way as L</find> with the following exceptions:"
9530 msgstr ""
9531
9532 #. type: textblock
9533 #: ../fish/guestfish-actions.pod:1431 ../src/guestfs-actions.pod:2304
9534 msgid "The resulting list is written to an external file."
9535 msgstr ""
9536
9537 #. type: textblock
9538 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2308
9539 msgid ""
9540 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9541 "L<find(1)> option I<-print0>."
9542 msgstr ""
9543
9544 #. type: textblock
9545 #: ../fish/guestfish-actions.pod:1440 ../src/guestfs-actions.pod:2313
9546 msgid "This command is not limited in the number of names that it can return."
9547 msgstr ""
9548
9549 #. type: textblock
9550 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2318
9551 msgid "The result list is not sorted."
9552 msgstr ""
9553
9554 #. type: =head2
9555 #: ../fish/guestfish-actions.pod:1451
9556 msgid "findfs-label"
9557 msgstr ""
9558
9559 #. type: verbatim
9560 #: ../fish/guestfish-actions.pod:1453
9561 #, no-wrap
9562 msgid ""
9563 " findfs-label label\n"
9564 "\n"
9565 msgstr ""
9566
9567 #. type: textblock
9568 #: ../fish/guestfish-actions.pod:1455 ../src/guestfs-actions.pod:2332
9569 msgid ""
9570 "This command searches the filesystems and returns the one which has the "
9571 "given label.  An error is returned if no such filesystem can be found."
9572 msgstr ""
9573
9574 #. type: textblock
9575 #: ../fish/guestfish-actions.pod:1459
9576 msgid "To find the label of a filesystem, use L</vfs-label>."
9577 msgstr ""
9578
9579 #. type: =head2
9580 #: ../fish/guestfish-actions.pod:1461
9581 msgid "findfs-uuid"
9582 msgstr ""
9583
9584 #. type: verbatim
9585 #: ../fish/guestfish-actions.pod:1463
9586 #, no-wrap
9587 msgid ""
9588 " findfs-uuid uuid\n"
9589 "\n"
9590 msgstr ""
9591
9592 #. type: textblock
9593 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
9594 msgid ""
9595 "This command searches the filesystems and returns the one which has the "
9596 "given UUID.  An error is returned if no such filesystem can be found."
9597 msgstr ""
9598
9599 #. type: textblock
9600 #: ../fish/guestfish-actions.pod:1469
9601 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
9602 msgstr ""
9603
9604 #. type: =head2
9605 #: ../fish/guestfish-actions.pod:1471
9606 msgid "fsck"
9607 msgstr ""
9608
9609 #. type: verbatim
9610 #: ../fish/guestfish-actions.pod:1473
9611 #, no-wrap
9612 msgid ""
9613 " fsck fstype device\n"
9614 "\n"
9615 msgstr ""
9616
9617 #. type: textblock
9618 #: ../fish/guestfish-actions.pod:1475 ../src/guestfs-actions.pod:2367
9619 msgid ""
9620 "This runs the filesystem checker (fsck) on C<device> which should have "
9621 "filesystem type C<fstype>."
9622 msgstr ""
9623
9624 #. type: textblock
9625 #: ../fish/guestfish-actions.pod:1478 ../src/guestfs-actions.pod:2370
9626 msgid ""
9627 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9628 "codes from C<fsck>."
9629 msgstr ""
9630
9631 #. type: textblock
9632 #: ../fish/guestfish-actions.pod:1487 ../src/guestfs-actions.pod:2379
9633 msgid "Multiple status codes can be summed together."
9634 msgstr ""
9635
9636 #. type: textblock
9637 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2383
9638 msgid ""
9639 "A non-zero return code can mean \"success\", for example if errors have been "
9640 "corrected on the filesystem."
9641 msgstr ""
9642
9643 #. type: textblock
9644 #: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2388
9645 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9646 msgstr ""
9647
9648 #. type: textblock
9649 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2393
9650 msgid ""
9651 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9652 msgstr ""
9653
9654 #. type: =head2
9655 #: ../fish/guestfish-actions.pod:1503
9656 msgid "get-append"
9657 msgstr ""
9658
9659 #. type: verbatim
9660 #: ../fish/guestfish-actions.pod:1505
9661 #, no-wrap
9662 msgid ""
9663 " get-append\n"
9664 "\n"
9665 msgstr ""
9666
9667 #. type: textblock
9668 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2404
9669 msgid ""
9670 "Return the additional kernel options which are added to the guest kernel "
9671 "command line."
9672 msgstr ""
9673
9674 #. type: textblock
9675 #: ../fish/guestfish-actions.pod:1510 ../src/guestfs-actions.pod:2407
9676 msgid "If C<NULL> then no options are added."
9677 msgstr ""
9678
9679 #. type: =head2
9680 #: ../fish/guestfish-actions.pod:1512
9681 msgid "get-attach-method"
9682 msgstr ""
9683
9684 #. type: verbatim
9685 #: ../fish/guestfish-actions.pod:1514
9686 #, no-wrap
9687 msgid ""
9688 " get-attach-method\n"
9689 "\n"
9690 msgstr ""
9691
9692 #. type: textblock
9693 #: ../fish/guestfish-actions.pod:1516
9694 msgid "Return the current attach method.  See L</set-attach-method>."
9695 msgstr ""
9696
9697 #. type: =head2
9698 #: ../fish/guestfish-actions.pod:1518
9699 msgid "get-autosync"
9700 msgstr ""
9701
9702 #. type: verbatim
9703 #: ../fish/guestfish-actions.pod:1520
9704 #, no-wrap
9705 msgid ""
9706 " get-autosync\n"
9707 "\n"
9708 msgstr ""
9709
9710 #. type: textblock
9711 #: ../fish/guestfish-actions.pod:1522 ../src/guestfs-actions.pod:2432
9712 msgid "Get the autosync flag."
9713 msgstr ""
9714
9715 #. type: =head2
9716 #: ../fish/guestfish-actions.pod:1524
9717 msgid "get-direct"
9718 msgstr ""
9719
9720 #. type: verbatim
9721 #: ../fish/guestfish-actions.pod:1526
9722 #, no-wrap
9723 msgid ""
9724 " get-direct\n"
9725 "\n"
9726 msgstr ""
9727
9728 #. type: textblock
9729 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2443
9730 msgid "Return the direct appliance mode flag."
9731 msgstr ""
9732
9733 #. type: =head2
9734 #: ../fish/guestfish-actions.pod:1530
9735 msgid "get-e2label"
9736 msgstr ""
9737
9738 #. type: verbatim
9739 #: ../fish/guestfish-actions.pod:1532
9740 #, no-wrap
9741 msgid ""
9742 " get-e2label device\n"
9743 "\n"
9744 msgstr ""
9745
9746 #. type: textblock
9747 #: ../fish/guestfish-actions.pod:1534 ../src/guestfs-actions.pod:2462
9748 msgid ""
9749 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9750 msgstr ""
9751
9752 #. type: textblock
9753 #: ../fish/guestfish-actions.pod:1537
9754 msgid ""
9755 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9756 "instead."
9757 msgstr ""
9758
9759 #. type: =head2
9760 #: ../fish/guestfish-actions.pod:1544
9761 msgid "get-e2uuid"
9762 msgstr ""
9763
9764 #. type: verbatim
9765 #: ../fish/guestfish-actions.pod:1546
9766 #, no-wrap
9767 msgid ""
9768 " get-e2uuid device\n"
9769 "\n"
9770 msgstr ""
9771
9772 #. type: textblock
9773 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2483
9774 msgid ""
9775 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9776 msgstr ""
9777
9778 #. type: textblock
9779 #: ../fish/guestfish-actions.pod:1551
9780 msgid ""
9781 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9782 "instead."
9783 msgstr ""
9784
9785 #. type: =head2
9786 #: ../fish/guestfish-actions.pod:1558
9787 msgid "get-memsize"
9788 msgstr ""
9789
9790 #. type: verbatim
9791 #: ../fish/guestfish-actions.pod:1560
9792 #, no-wrap
9793 msgid ""
9794 " get-memsize\n"
9795 "\n"
9796 msgstr ""
9797
9798 #. type: textblock
9799 #: ../fish/guestfish-actions.pod:1562 ../src/guestfs-actions.pod:2496
9800 msgid ""
9801 "This gets the memory size in megabytes allocated to the qemu subprocess."
9802 msgstr ""
9803
9804 #. type: textblock
9805 #: ../fish/guestfish-actions.pod:1565
9806 msgid ""
9807 "If L</set-memsize> was not called on this handle, and if "
9808 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9809 "value for memsize."
9810 msgstr ""
9811
9812 #. type: textblock
9813 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1626
9814 #: ../fish/guestfish-actions.pod:4499 ../fish/guestfish-actions.pod:4601
9815 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2595
9816 #: ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7086
9817 msgid ""
9818 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9819 msgstr ""
9820
9821 #. type: =head2
9822 #: ../fish/guestfish-actions.pod:1572
9823 msgid "get-network"
9824 msgstr ""
9825
9826 #. type: verbatim
9827 #: ../fish/guestfish-actions.pod:1574
9828 #, no-wrap
9829 msgid ""
9830 " get-network\n"
9831 "\n"
9832 msgstr ""
9833
9834 #. type: textblock
9835 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2515
9836 msgid "This returns the enable network flag."
9837 msgstr ""
9838
9839 #. type: =head2
9840 #: ../fish/guestfish-actions.pod:1578
9841 msgid "get-path"
9842 msgstr ""
9843
9844 #. type: verbatim
9845 #: ../fish/guestfish-actions.pod:1580
9846 #, no-wrap
9847 msgid ""
9848 " get-path\n"
9849 "\n"
9850 msgstr ""
9851
9852 #. type: textblock
9853 #: ../fish/guestfish-actions.pod:1582 ../src/guestfs-actions.pod:2526
9854 msgid "Return the current search path."
9855 msgstr ""
9856
9857 #. type: textblock
9858 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2528
9859 msgid ""
9860 "This is always non-NULL.  If it wasn't set already, then this will return "
9861 "the default path."
9862 msgstr ""
9863
9864 #. type: =head2
9865 #: ../fish/guestfish-actions.pod:1587
9866 msgid "get-pgroup"
9867 msgstr ""
9868
9869 #. type: verbatim
9870 #: ../fish/guestfish-actions.pod:1589
9871 #, no-wrap
9872 msgid ""
9873 " get-pgroup\n"
9874 "\n"
9875 msgstr ""
9876
9877 #. type: textblock
9878 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2541
9879 msgid "This returns the process group flag."
9880 msgstr ""
9881
9882 #. type: =head2
9883 #: ../fish/guestfish-actions.pod:1593
9884 msgid "get-pid"
9885 msgstr ""
9886
9887 #. type: =head2
9888 #: ../fish/guestfish-actions.pod:1595
9889 msgid "pid"
9890 msgstr ""
9891
9892 #. type: verbatim
9893 #: ../fish/guestfish-actions.pod:1597
9894 #, no-wrap
9895 msgid ""
9896 " get-pid\n"
9897 "\n"
9898 msgstr ""
9899
9900 #. type: textblock
9901 #: ../fish/guestfish-actions.pod:1599 ../src/guestfs-actions.pod:2552
9902 msgid ""
9903 "Return the process ID of the qemu subprocess.  If there is no qemu "
9904 "subprocess, then this will return an error."
9905 msgstr ""
9906
9907 #. type: textblock
9908 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2555
9909 msgid "This is an internal call used for debugging and testing."
9910 msgstr ""
9911
9912 #. type: =head2
9913 #: ../fish/guestfish-actions.pod:1604
9914 msgid "get-qemu"
9915 msgstr ""
9916
9917 #. type: verbatim
9918 #: ../fish/guestfish-actions.pod:1606
9919 #, no-wrap
9920 msgid ""
9921 " get-qemu\n"
9922 "\n"
9923 msgstr ""
9924
9925 #. type: textblock
9926 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2566
9927 msgid "Return the current qemu binary."
9928 msgstr ""
9929
9930 #. type: textblock
9931 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2568
9932 msgid ""
9933 "This is always non-NULL.  If it wasn't set already, then this will return "
9934 "the default qemu binary name."
9935 msgstr ""
9936
9937 #. type: =head2
9938 #: ../fish/guestfish-actions.pod:1613
9939 msgid "get-recovery-proc"
9940 msgstr ""
9941
9942 #. type: verbatim
9943 #: ../fish/guestfish-actions.pod:1615
9944 #, no-wrap
9945 msgid ""
9946 " get-recovery-proc\n"
9947 "\n"
9948 msgstr ""
9949
9950 #. type: textblock
9951 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2581
9952 msgid "Return the recovery process enabled flag."
9953 msgstr ""
9954
9955 #. type: =head2
9956 #: ../fish/guestfish-actions.pod:1619
9957 msgid "get-selinux"
9958 msgstr ""
9959
9960 #. type: verbatim
9961 #: ../fish/guestfish-actions.pod:1621
9962 #, no-wrap
9963 msgid ""
9964 " get-selinux\n"
9965 "\n"
9966 msgstr ""
9967
9968 #. type: textblock
9969 #: ../fish/guestfish-actions.pod:1623
9970 msgid ""
9971 "This returns the current setting of the selinux flag which is passed to the "
9972 "appliance at boot time.  See L</set-selinux>."
9973 msgstr ""
9974
9975 #. type: =head2
9976 #: ../fish/guestfish-actions.pod:1629
9977 msgid "get-smp"
9978 msgstr ""
9979
9980 #. type: verbatim
9981 #: ../fish/guestfish-actions.pod:1631
9982 #, no-wrap
9983 msgid ""
9984 " get-smp\n"
9985 "\n"
9986 msgstr ""
9987
9988 #. type: textblock
9989 #: ../fish/guestfish-actions.pod:1633 ../src/guestfs-actions.pod:2607
9990 msgid "This returns the number of virtual CPUs assigned to the appliance."
9991 msgstr ""
9992
9993 #. type: =head2
9994 #: ../fish/guestfish-actions.pod:1635
9995 msgid "get-state"
9996 msgstr ""
9997
9998 #. type: verbatim
9999 #: ../fish/guestfish-actions.pod:1637
10000 #, no-wrap
10001 msgid ""
10002 " get-state\n"
10003 "\n"
10004 msgstr ""
10005
10006 #. type: textblock
10007 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2618
10008 msgid ""
10009 "This returns the current state as an opaque integer.  This is only useful "
10010 "for printing debug and internal error messages."
10011 msgstr ""
10012
10013 #. type: textblock
10014 #: ../fish/guestfish-actions.pod:1642 ../fish/guestfish-actions.pod:2605
10015 #: ../fish/guestfish-actions.pod:2623 ../fish/guestfish-actions.pod:2661
10016 #: ../fish/guestfish-actions.pod:2677 ../src/guestfs-actions.pod:2621
10017 #: ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:3973
10018 #: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4061
10019 msgid "For more information on states, see L<guestfs(3)>."
10020 msgstr ""
10021
10022 #. type: =head2
10023 #: ../fish/guestfish-actions.pod:1644
10024 msgid "get-trace"
10025 msgstr ""
10026
10027 #. type: verbatim
10028 #: ../fish/guestfish-actions.pod:1646
10029 #, no-wrap
10030 msgid ""
10031 " get-trace\n"
10032 "\n"
10033 msgstr ""
10034
10035 #. type: textblock
10036 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2632
10037 msgid "Return the command trace flag."
10038 msgstr ""
10039
10040 #. type: =head2
10041 #: ../fish/guestfish-actions.pod:1650
10042 msgid "get-umask"
10043 msgstr ""
10044
10045 #. type: verbatim
10046 #: ../fish/guestfish-actions.pod:1652
10047 #, no-wrap
10048 msgid ""
10049 " get-umask\n"
10050 "\n"
10051 msgstr ""
10052
10053 #. type: textblock
10054 #: ../fish/guestfish-actions.pod:1654
10055 msgid ""
10056 "Return the current umask.  By default the umask is C<022> unless it has been "
10057 "set by calling L</umask>."
10058 msgstr ""
10059
10060 #. type: =head2
10061 #: ../fish/guestfish-actions.pod:1657
10062 msgid "get-verbose"
10063 msgstr ""
10064
10065 #. type: verbatim
10066 #: ../fish/guestfish-actions.pod:1659
10067 #, no-wrap
10068 msgid ""
10069 " get-verbose\n"
10070 "\n"
10071 msgstr ""
10072
10073 #. type: textblock
10074 #: ../fish/guestfish-actions.pod:1661 ../src/guestfs-actions.pod:2655
10075 msgid "This returns the verbose messages flag."
10076 msgstr ""
10077
10078 #. type: =head2
10079 #: ../fish/guestfish-actions.pod:1663
10080 msgid "getcon"
10081 msgstr ""
10082
10083 #. type: verbatim
10084 #: ../fish/guestfish-actions.pod:1665
10085 #, no-wrap
10086 msgid ""
10087 " getcon\n"
10088 "\n"
10089 msgstr ""
10090
10091 #. type: textblock
10092 #: ../fish/guestfish-actions.pod:1667 ../src/guestfs-actions.pod:2666
10093 msgid "This gets the SELinux security context of the daemon."
10094 msgstr ""
10095
10096 #. type: textblock
10097 #: ../fish/guestfish-actions.pod:1669
10098 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
10099 msgstr ""
10100
10101 #. type: =head2
10102 #: ../fish/guestfish-actions.pod:1672
10103 msgid "getxattr"
10104 msgstr ""
10105
10106 #. type: verbatim
10107 #: ../fish/guestfish-actions.pod:1674
10108 #, no-wrap
10109 msgid ""
10110 " getxattr path name\n"
10111 "\n"
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:1676
10116 msgid ""
10117 "Get a single extended attribute from file C<path> named C<name>.  This call "
10118 "follows symlinks.  If you want to lookup an extended attribute for the "
10119 "symlink itself, use L</lgetxattr>."
10120 msgstr ""
10121
10122 #. type: textblock
10123 #: ../fish/guestfish-actions.pod:1680 ../fish/guestfish-actions.pod:2750
10124 msgid ""
10125 "Normally it is better to get all extended attributes from a file in one go "
10126 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
10127 "buggy and do not provide a way to list out attributes.  For these "
10128 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
10129 "attributes you want in advance and call this function."
10130 msgstr ""
10131
10132 #. type: textblock
10133 #: ../fish/guestfish-actions.pod:1687 ../fish/guestfish-actions.pod:2757
10134 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:4194
10135 msgid ""
10136 "Extended attribute values are blobs of binary data.  If there is no extended "
10137 "attribute named C<name>, this returns an error."
10138 msgstr ""
10139
10140 #. type: textblock
10141 #: ../fish/guestfish-actions.pod:1690
10142 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10143 msgstr ""
10144
10145 #. type: =head2
10146 #: ../fish/guestfish-actions.pod:1692
10147 msgid "getxattrs"
10148 msgstr ""
10149
10150 #. type: verbatim
10151 #: ../fish/guestfish-actions.pod:1694
10152 #, no-wrap
10153 msgid ""
10154 " getxattrs path\n"
10155 "\n"
10156 msgstr ""
10157
10158 #. type: textblock
10159 #: ../fish/guestfish-actions.pod:1696 ../src/guestfs-actions.pod:2712
10160 msgid ""
10161 "This call lists the extended attributes of the file or directory C<path>."
10162 msgstr ""
10163
10164 #. type: textblock
10165 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2715
10166 msgid ""
10167 "At the system call level, this is a combination of the L<listxattr(2)> and "
10168 "L<getxattr(2)> calls."
10169 msgstr ""
10170
10171 #. type: textblock
10172 #: ../fish/guestfish-actions.pod:1702
10173 msgid "See also: L</lgetxattrs>, L<attr(5)>."
10174 msgstr ""
10175
10176 #. type: =head2
10177 #: ../fish/guestfish-actions.pod:1704
10178 msgid "glob-expand"
10179 msgstr ""
10180
10181 #. type: verbatim
10182 #: ../fish/guestfish-actions.pod:1706
10183 #, no-wrap
10184 msgid ""
10185 " glob-expand pattern\n"
10186 "\n"
10187 msgstr ""
10188
10189 #. type: textblock
10190 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2732
10191 msgid ""
10192 "This command searches for all the pathnames matching C<pattern> according to "
10193 "the wildcard expansion rules used by the shell."
10194 msgstr ""
10195
10196 #. type: textblock
10197 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2736
10198 msgid ""
10199 "If no paths match, then this returns an empty list (note: not an error)."
10200 msgstr ""
10201
10202 #. type: textblock
10203 #: ../fish/guestfish-actions.pod:1715 ../src/guestfs-actions.pod:2739
10204 msgid ""
10205 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10206 "GLOB_BRACE>.  See that manual page for more details."
10207 msgstr ""
10208
10209 #. type: =head2
10210 #: ../fish/guestfish-actions.pod:1719
10211 msgid "grep"
10212 msgstr ""
10213
10214 #. type: verbatim
10215 #: ../fish/guestfish-actions.pod:1721
10216 #, no-wrap
10217 msgid ""
10218 " grep regex path\n"
10219 "\n"
10220 msgstr ""
10221
10222 #. type: textblock
10223 #: ../fish/guestfish-actions.pod:1723 ../src/guestfs-actions.pod:2756
10224 msgid "This calls the external C<grep> program and returns the matching lines."
10225 msgstr ""
10226
10227 #. type: =head2
10228 #: ../fish/guestfish-actions.pod:1729
10229 msgid "grepi"
10230 msgstr ""
10231
10232 #. type: verbatim
10233 #: ../fish/guestfish-actions.pod:1731
10234 #, no-wrap
10235 msgid ""
10236 " grepi regex path\n"
10237 "\n"
10238 msgstr ""
10239
10240 #. type: textblock
10241 #: ../fish/guestfish-actions.pod:1733 ../src/guestfs-actions.pod:2775
10242 msgid ""
10243 "This calls the external C<grep -i> program and returns the matching lines."
10244 msgstr ""
10245
10246 #. type: =head2
10247 #: ../fish/guestfish-actions.pod:1739
10248 msgid "grub-install"
10249 msgstr ""
10250
10251 #. type: verbatim
10252 #: ../fish/guestfish-actions.pod:1741
10253 #, no-wrap
10254 msgid ""
10255 " grub-install root device\n"
10256 "\n"
10257 msgstr ""
10258
10259 #. type: textblock
10260 #: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2794
10261 msgid ""
10262 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
10263 "with the root directory being C<root>."
10264 msgstr ""
10265
10266 #. type: textblock
10267 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2803
10268 msgid ""
10269 "There is currently no way in the API to install grub2, which is used by most "
10270 "modern Linux guests.  It is possible to run the grub2 command from the "
10271 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
10272 msgstr ""
10273
10274 #. type: textblock
10275 #: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2810
10276 msgid ""
10277 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
10278 "compatible with itself, so this only works in rather narrow circumstances.  "
10279 "Careful testing with each guest version is advisable."
10280 msgstr ""
10281
10282 #. type: textblock
10283 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2817
10284 msgid ""
10285 "If grub-install reports the error \"No suitable drive was found in the "
10286 "generated device map.\" it may be that you need to create a C</boot/grub/"
10287 "device.map> file first that contains the mapping between grub device names "
10288 "and Linux device names.  It is usually sufficient to create a file "
10289 "containing:"
10290 msgstr ""
10291
10292 #. type: verbatim
10293 #: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2824
10294 #, no-wrap
10295 msgid ""
10296 " (hd0) /dev/vda\n"
10297 "\n"
10298 msgstr ""
10299
10300 #. type: textblock
10301 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2826
10302 msgid "replacing C</dev/vda> with the name of the installation device."
10303 msgstr ""
10304
10305 #. type: =head2
10306 #: ../fish/guestfish-actions.pod:1779
10307 msgid "head"
10308 msgstr ""
10309
10310 #. type: verbatim
10311 #: ../fish/guestfish-actions.pod:1781
10312 #, no-wrap
10313 msgid ""
10314 " head path\n"
10315 "\n"
10316 msgstr ""
10317
10318 #. type: textblock
10319 #: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2840
10320 msgid ""
10321 "This command returns up to the first 10 lines of a file as a list of strings."
10322 msgstr ""
10323
10324 #. type: =head2
10325 #: ../fish/guestfish-actions.pod:1789
10326 msgid "head-n"
10327 msgstr ""
10328
10329 #. type: verbatim
10330 #: ../fish/guestfish-actions.pod:1791
10331 #, no-wrap
10332 msgid ""
10333 " head-n nrlines path\n"
10334 "\n"
10335 msgstr ""
10336
10337 #. type: textblock
10338 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2859
10339 msgid ""
10340 "If the parameter C<nrlines> is a positive number, this returns the first "
10341 "C<nrlines> lines of the file C<path>."
10342 msgstr ""
10343
10344 #. type: textblock
10345 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2862
10346 msgid ""
10347 "If the parameter C<nrlines> is a negative number, this returns lines from "
10348 "the file C<path>, excluding the last C<nrlines> lines."
10349 msgstr ""
10350
10351 #. type: textblock
10352 #: ../fish/guestfish-actions.pod:1799 ../fish/guestfish-actions.pod:4982
10353 #: ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:7665
10354 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10355 msgstr ""
10356
10357 #. type: =head2
10358 #: ../fish/guestfish-actions.pod:1804
10359 msgid "hexdump"
10360 msgstr ""
10361
10362 #. type: verbatim
10363 #: ../fish/guestfish-actions.pod:1806
10364 #, no-wrap
10365 msgid ""
10366 " hexdump path\n"
10367 "\n"
10368 msgstr ""
10369
10370 #. type: textblock
10371 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2882
10372 msgid ""
10373 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10374 "readable, canonical hex dump of the file."
10375 msgstr ""
10376
10377 #. type: =head2
10378 #: ../fish/guestfish-actions.pod:1814
10379 msgid "initrd-cat"
10380 msgstr ""
10381
10382 #. type: verbatim
10383 #: ../fish/guestfish-actions.pod:1816
10384 #, no-wrap
10385 msgid ""
10386 " initrd-cat initrdpath filename\n"
10387 "\n"
10388 msgstr ""
10389
10390 #. type: textblock
10391 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2901
10392 msgid ""
10393 "This command unpacks the file C<filename> from the initrd file called "
10394 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10395 "character."
10396 msgstr ""
10397
10398 #. type: textblock
10399 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2905
10400 msgid ""
10401 "For example, in guestfish you could use the following command to examine the "
10402 "boot script (usually called C</init>)  contained in a Linux initrd or "
10403 "initramfs image:"
10404 msgstr ""
10405
10406 #. type: verbatim
10407 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2909
10408 #, no-wrap
10409 msgid ""
10410 " initrd-cat /boot/initrd-<version>.img init\n"
10411 "\n"
10412 msgstr ""
10413
10414 #. type: textblock
10415 #: ../fish/guestfish-actions.pod:1828
10416 msgid "See also L</initrd-list>."
10417 msgstr ""
10418
10419 #. type: =head2
10420 #: ../fish/guestfish-actions.pod:1833
10421 msgid "initrd-list"
10422 msgstr ""
10423
10424 #. type: verbatim
10425 #: ../fish/guestfish-actions.pod:1835
10426 #, no-wrap
10427 msgid ""
10428 " initrd-list path\n"
10429 "\n"
10430 msgstr ""
10431
10432 #. type: textblock
10433 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2928
10434 msgid "This command lists out files contained in an initrd."
10435 msgstr ""
10436
10437 #. type: textblock
10438 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2930
10439 msgid ""
10440 "The files are listed without any initial C</> character.  The files are "
10441 "listed in the order they appear (not necessarily alphabetical).  Directory "
10442 "names are listed as separate items."
10443 msgstr ""
10444
10445 #. type: textblock
10446 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2934
10447 msgid ""
10448 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10449 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10450 "files)."
10451 msgstr ""
10452
10453 #. type: =head2
10454 #: ../fish/guestfish-actions.pod:1847
10455 msgid "inotify-add-watch"
10456 msgstr ""
10457
10458 #. type: verbatim
10459 #: ../fish/guestfish-actions.pod:1849
10460 #, no-wrap
10461 msgid ""
10462 " inotify-add-watch path mask\n"
10463 "\n"
10464 msgstr ""
10465
10466 #. type: textblock
10467 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2951
10468 msgid "Watch C<path> for the events listed in C<mask>."
10469 msgstr ""
10470
10471 #. type: textblock
10472 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2953
10473 msgid ""
10474 "Note that if C<path> is a directory then events within that directory are "
10475 "watched, but this does I<not> happen recursively (in subdirectories)."
10476 msgstr ""
10477
10478 #. type: textblock
10479 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2957
10480 msgid ""
10481 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10482 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10483 msgstr ""
10484
10485 #. type: =head2
10486 #: ../fish/guestfish-actions.pod:1861
10487 msgid "inotify-close"
10488 msgstr ""
10489
10490 #. type: verbatim
10491 #: ../fish/guestfish-actions.pod:1863
10492 #, no-wrap
10493 msgid ""
10494 " inotify-close\n"
10495 "\n"
10496 msgstr ""
10497
10498 #. type: textblock
10499 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2970
10500 msgid ""
10501 "This closes the inotify handle which was previously opened by inotify_init.  "
10502 "It removes all watches, throws away any pending events, and deallocates all "
10503 "resources."
10504 msgstr ""
10505
10506 #. type: =head2
10507 #: ../fish/guestfish-actions.pod:1869
10508 msgid "inotify-files"
10509 msgstr ""
10510
10511 #. type: verbatim
10512 #: ../fish/guestfish-actions.pod:1871
10513 #, no-wrap
10514 msgid ""
10515 " inotify-files\n"
10516 "\n"
10517 msgstr ""
10518
10519 #. type: textblock
10520 #: ../fish/guestfish-actions.pod:1873
10521 msgid ""
10522 "This function is a helpful wrapper around L</inotify-read> which just "
10523 "returns a list of pathnames of objects that were touched.  The returned "
10524 "pathnames are sorted and deduplicated."
10525 msgstr ""
10526
10527 #. type: =head2
10528 #: ../fish/guestfish-actions.pod:1877
10529 msgid "inotify-init"
10530 msgstr ""
10531
10532 #. type: verbatim
10533 #: ../fish/guestfish-actions.pod:1879
10534 #, no-wrap
10535 msgid ""
10536 " inotify-init maxevents\n"
10537 "\n"
10538 msgstr ""
10539
10540 #. type: textblock
10541 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2999
10542 msgid ""
10543 "This command creates a new inotify handle.  The inotify subsystem can be "
10544 "used to notify events which happen to objects in the guest filesystem."
10545 msgstr ""
10546
10547 #. type: textblock
10548 #: ../fish/guestfish-actions.pod:1885
10549 msgid ""
10550 "C<maxevents> is the maximum number of events which will be queued up between "
10551 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
10552 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
10553 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
10554 "but records the fact that it threw them away by setting a flag "
10555 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
10556 msgstr ""
10557
10558 #. type: textblock
10559 #: ../fish/guestfish-actions.pod:1895
10560 msgid ""
10561 "Before any events are generated, you have to add some watches to the "
10562 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
10563 "L</inotify-watch-all>."
10564 msgstr ""
10565
10566 #. type: textblock
10567 #: ../fish/guestfish-actions.pod:1901
10568 msgid ""
10569 "Queued up events should be read periodically by calling L</inotify-read> (or "
10570 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
10571 "If you don't read the events out often enough then you risk the internal "
10572 "queue overflowing."
10573 msgstr ""
10574
10575 #. type: textblock
10576 #: ../fish/guestfish-actions.pod:1908
10577 msgid ""
10578 "The handle should be closed after use by calling L</inotify-close>.  This "
10579 "also removes any watches automatically."
10580 msgstr ""
10581
10582 #. type: textblock
10583 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:3030
10584 msgid ""
10585 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10586 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10587 "that there is one global inotify handle per libguestfs instance."
10588 msgstr ""
10589
10590 #. type: =head2
10591 #: ../fish/guestfish-actions.pod:1917
10592 msgid "inotify-read"
10593 msgstr ""
10594
10595 #. type: verbatim
10596 #: ../fish/guestfish-actions.pod:1919
10597 #, no-wrap
10598 msgid ""
10599 " inotify-read\n"
10600 "\n"
10601 msgstr ""
10602
10603 #. type: textblock
10604 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:3044
10605 msgid ""
10606 "Return the complete queue of events that have happened since the previous "
10607 "read call."
10608 msgstr ""
10609
10610 #. type: textblock
10611 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:3047
10612 msgid "If no events have happened, this returns an empty list."
10613 msgstr ""
10614
10615 #. type: textblock
10616 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:3049
10617 msgid ""
10618 "I<Note>: In order to make sure that all events have been read, you must call "
10619 "this function repeatedly until it returns an empty list.  The reason is that "
10620 "the call will read events up to the maximum appliance-to-host message size "
10621 "and leave remaining events in the queue."
10622 msgstr ""
10623
10624 #. type: =head2
10625 #: ../fish/guestfish-actions.pod:1932
10626 msgid "inotify-rm-watch"
10627 msgstr ""
10628
10629 #. type: verbatim
10630 #: ../fish/guestfish-actions.pod:1934
10631 #, no-wrap
10632 msgid ""
10633 " inotify-rm-watch wd\n"
10634 "\n"
10635 msgstr ""
10636
10637 #. type: textblock
10638 #: ../fish/guestfish-actions.pod:1936
10639 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10640 msgstr ""
10641
10642 #. type: =head2
10643 #: ../fish/guestfish-actions.pod:1939
10644 msgid "inspect-get-arch"
10645 msgstr ""
10646
10647 #. type: verbatim
10648 #: ../fish/guestfish-actions.pod:1941
10649 #, no-wrap
10650 msgid ""
10651 " inspect-get-arch root\n"
10652 "\n"
10653 msgstr ""
10654
10655 #. type: textblock
10656 #: ../fish/guestfish-actions.pod:1943
10657 msgid ""
10658 "This returns the architecture of the inspected operating system.  The "
10659 "possible return values are listed under L</file-architecture>."
10660 msgstr ""
10661
10662 #. type: textblock
10663 #: ../fish/guestfish-actions.pod:1947 ../src/guestfs-actions.pod:3084
10664 msgid ""
10665 "If the architecture could not be determined, then the string C<unknown> is "
10666 "returned."
10667 msgstr ""
10668
10669 #. type: textblock
10670 #: ../fish/guestfish-actions.pod:1950 ../fish/guestfish-actions.pod:2045
10671 #: ../fish/guestfish-actions.pod:2124 ../fish/guestfish-actions.pod:2136
10672 #: ../fish/guestfish-actions.pod:2220 ../fish/guestfish-actions.pod:2282
10673 #: ../fish/guestfish-actions.pod:2303 ../fish/guestfish-actions.pod:2317
10674 #: ../fish/guestfish-actions.pod:2357 ../fish/guestfish-actions.pod:2397
10675 #: ../fish/guestfish-actions.pod:2410 ../fish/guestfish-actions.pod:2423
10676 #: ../fish/guestfish-actions.pod:2433 ../fish/guestfish-actions.pod:2443
10677 #: ../fish/guestfish-actions.pod:2455 ../fish/guestfish-actions.pod:2551
10678 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3087
10679 #: ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3293
10680 #: ../src/guestfs-actions.pod:3312 ../src/guestfs-actions.pod:3443
10681 #: ../src/guestfs-actions.pod:3527 ../src/guestfs-actions.pod:3555
10682 #: ../src/guestfs-actions.pod:3576 ../src/guestfs-actions.pod:3629
10683 #: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3697
10684 #: ../src/guestfs-actions.pod:3717 ../src/guestfs-actions.pod:3734
10685 #: ../src/guestfs-actions.pod:3750 ../src/guestfs-actions.pod:3768
10686 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:3911
10687 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10688 msgstr ""
10689
10690 #. type: =head2
10691 #: ../fish/guestfish-actions.pod:1952
10692 msgid "inspect-get-distro"
10693 msgstr ""
10694
10695 #. type: verbatim
10696 #: ../fish/guestfish-actions.pod:1954
10697 #, no-wrap
10698 msgid ""
10699 " inspect-get-distro root\n"
10700 "\n"
10701 msgstr ""
10702
10703 #. type: textblock
10704 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3100
10705 msgid ""
10706 "This returns the distro (distribution) of the inspected operating system."
10707 msgstr ""
10708
10709 #. type: textblock
10710 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:3103
10711 msgid "Currently defined distros are:"
10712 msgstr ""
10713
10714 #. type: =item
10715 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:3107
10716 msgid "\"archlinux\""
10717 msgstr ""
10718
10719 #. type: textblock
10720 #: ../fish/guestfish-actions.pod:1965 ../src/guestfs-actions.pod:3109
10721 msgid "Arch Linux."
10722 msgstr ""
10723
10724 #. type: =item
10725 #: ../fish/guestfish-actions.pod:1967 ../src/guestfs-actions.pod:3111
10726 msgid "\"centos\""
10727 msgstr ""
10728
10729 #. type: textblock
10730 #: ../fish/guestfish-actions.pod:1969 ../src/guestfs-actions.pod:3113
10731 msgid "CentOS."
10732 msgstr ""
10733
10734 #. type: =item
10735 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:3115
10736 msgid "\"debian\""
10737 msgstr ""
10738
10739 #. type: textblock
10740 #: ../fish/guestfish-actions.pod:1973 ../src/guestfs-actions.pod:3117
10741 msgid "Debian."
10742 msgstr ""
10743
10744 #. type: =item
10745 #: ../fish/guestfish-actions.pod:1975 ../src/guestfs-actions.pod:3119
10746 msgid "\"fedora\""
10747 msgstr ""
10748
10749 #. type: textblock
10750 #: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:3121
10751 msgid "Fedora."
10752 msgstr ""
10753
10754 #. type: =item
10755 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:3123
10756 msgid "\"gentoo\""
10757 msgstr ""
10758
10759 #. type: textblock
10760 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:3125
10761 msgid "Gentoo."
10762 msgstr ""
10763
10764 #. type: =item
10765 #: ../fish/guestfish-actions.pod:1983 ../src/guestfs-actions.pod:3127
10766 msgid "\"linuxmint\""
10767 msgstr ""
10768
10769 #. type: textblock
10770 #: ../fish/guestfish-actions.pod:1985 ../src/guestfs-actions.pod:3129
10771 msgid "Linux Mint."
10772 msgstr ""
10773
10774 #. type: =item
10775 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:3131
10776 msgid "\"mageia\""
10777 msgstr ""
10778
10779 #. type: textblock
10780 #: ../fish/guestfish-actions.pod:1989 ../src/guestfs-actions.pod:3133
10781 msgid "Mageia."
10782 msgstr ""
10783
10784 #. type: =item
10785 #: ../fish/guestfish-actions.pod:1991 ../src/guestfs-actions.pod:3135
10786 msgid "\"mandriva\""
10787 msgstr ""
10788
10789 #. type: textblock
10790 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3137
10791 msgid "Mandriva."
10792 msgstr ""
10793
10794 #. type: =item
10795 #: ../fish/guestfish-actions.pod:1995 ../src/guestfs-actions.pod:3139
10796 msgid "\"meego\""
10797 msgstr ""
10798
10799 #. type: textblock
10800 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3141
10801 msgid "MeeGo."
10802 msgstr ""
10803
10804 #. type: =item
10805 #: ../fish/guestfish-actions.pod:1999 ../src/guestfs-actions.pod:3143
10806 msgid "\"opensuse\""
10807 msgstr ""
10808
10809 #. type: textblock
10810 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:3145
10811 msgid "OpenSUSE."
10812 msgstr ""
10813
10814 #. type: =item
10815 #: ../fish/guestfish-actions.pod:2003 ../src/guestfs-actions.pod:3147
10816 msgid "\"pardus\""
10817 msgstr ""
10818
10819 #. type: textblock
10820 #: ../fish/guestfish-actions.pod:2005 ../src/guestfs-actions.pod:3149
10821 msgid "Pardus."
10822 msgstr ""
10823
10824 #. type: =item
10825 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3151
10826 msgid "\"redhat-based\""
10827 msgstr ""
10828
10829 #. type: textblock
10830 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3153
10831 msgid "Some Red Hat-derived distro."
10832 msgstr ""
10833
10834 #. type: =item
10835 #: ../fish/guestfish-actions.pod:2011 ../src/guestfs-actions.pod:3155
10836 msgid "\"rhel\""
10837 msgstr ""
10838
10839 #. type: textblock
10840 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3157
10841 msgid "Red Hat Enterprise Linux."
10842 msgstr ""
10843
10844 #. type: =item
10845 #: ../fish/guestfish-actions.pod:2015 ../src/guestfs-actions.pod:3159
10846 msgid "\"scientificlinux\""
10847 msgstr ""
10848
10849 #. type: textblock
10850 #: ../fish/guestfish-actions.pod:2017 ../src/guestfs-actions.pod:3161
10851 msgid "Scientific Linux."
10852 msgstr ""
10853
10854 #. type: =item
10855 #: ../fish/guestfish-actions.pod:2019 ../src/guestfs-actions.pod:3163
10856 msgid "\"slackware\""
10857 msgstr ""
10858
10859 #. type: textblock
10860 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3165
10861 msgid "Slackware."
10862 msgstr ""
10863
10864 #. type: =item
10865 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:3167
10866 msgid "\"ttylinux\""
10867 msgstr ""
10868
10869 #. type: textblock
10870 #: ../fish/guestfish-actions.pod:2025 ../src/guestfs-actions.pod:3169
10871 msgid "ttylinux."
10872 msgstr ""
10873
10874 #. type: =item
10875 #: ../fish/guestfish-actions.pod:2027 ../src/guestfs-actions.pod:3171
10876 msgid "\"ubuntu\""
10877 msgstr ""
10878
10879 #. type: textblock
10880 #: ../fish/guestfish-actions.pod:2029 ../src/guestfs-actions.pod:3173
10881 msgid "Ubuntu."
10882 msgstr ""
10883
10884 #. type: =item
10885 #: ../fish/guestfish-actions.pod:2031 ../fish/guestfish-actions.pod:2115
10886 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3175
10887 #: ../src/guestfs-actions.pod:3284 ../src/guestfs-actions.pod:3668
10888 msgid "\"unknown\""
10889 msgstr ""
10890
10891 #. type: textblock
10892 #: ../fish/guestfish-actions.pod:2033 ../src/guestfs-actions.pod:3177
10893 msgid "The distro could not be determined."
10894 msgstr ""
10895
10896 #. type: =item
10897 #: ../fish/guestfish-actions.pod:2035 ../fish/guestfish-actions.pod:2372
10898 #: ../src/guestfs-actions.pod:3179 ../src/guestfs-actions.pod:3652
10899 msgid "\"windows\""
10900 msgstr ""
10901
10902 #. type: textblock
10903 #: ../fish/guestfish-actions.pod:2037 ../src/guestfs-actions.pod:3181
10904 msgid ""
10905 "Windows does not have distributions.  This string is returned if the OS type "
10906 "is Windows."
10907 msgstr ""
10908
10909 #. type: textblock
10910 #: ../fish/guestfish-actions.pod:2042 ../fish/guestfish-actions.pod:2121
10911 #: ../fish/guestfish-actions.pod:2394 ../src/guestfs-actions.pod:3186
10912 #: ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3674
10913 msgid ""
10914 "Future versions of libguestfs may return other strings here.  The caller "
10915 "should be prepared to handle any string."
10916 msgstr ""
10917
10918 #. type: =head2
10919 #: ../fish/guestfish-actions.pod:2047
10920 msgid "inspect-get-drive-mappings"
10921 msgstr ""
10922
10923 #. type: verbatim
10924 #: ../fish/guestfish-actions.pod:2049
10925 #, no-wrap
10926 msgid ""
10927 " inspect-get-drive-mappings root\n"
10928 "\n"
10929 msgstr ""
10930
10931 #. type: textblock
10932 #: ../fish/guestfish-actions.pod:2051 ../src/guestfs-actions.pod:3202
10933 msgid ""
10934 "This call is useful for Windows which uses a primitive system of assigning "
10935 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10936 "Windows Registry to find out how disks/partitions are mapped to drive "
10937 "letters, and returns a hash table as in the example below:"
10938 msgstr ""
10939
10940 #. type: verbatim
10941 #: ../fish/guestfish-actions.pod:2057 ../src/guestfs-actions.pod:3208
10942 #, no-wrap
10943 msgid ""
10944 " C      =>     /dev/vda2\n"
10945 " E      =>     /dev/vdb1\n"
10946 " F      =>     /dev/vdc1\n"
10947 "\n"
10948 msgstr ""
10949
10950 #. type: textblock
10951 #: ../fish/guestfish-actions.pod:2061 ../src/guestfs-actions.pod:3212
10952 msgid ""
10953 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10954 "and just contains the drive letter, without the customary colon separator "
10955 "character."
10956 msgstr ""
10957
10958 #. type: textblock
10959 #: ../fish/guestfish-actions.pod:2065 ../src/guestfs-actions.pod:3216
10960 msgid ""
10961 "In future we may support other operating systems that also used drive "
10962 "letters, but the keys for those might not be case insensitive and might be "
10963 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10964 "C<h1> etc."
10965 msgstr ""
10966
10967 #. type: textblock
10968 #: ../fish/guestfish-actions.pod:2070 ../src/guestfs-actions.pod:3221
10969 msgid ""
10970 "For Windows guests, currently only hard drive mappings are returned.  "
10971 "Removable disks (eg. DVD-ROMs) are ignored."
10972 msgstr ""
10973
10974 #. type: textblock
10975 #: ../fish/guestfish-actions.pod:2073 ../src/guestfs-actions.pod:3224
10976 msgid ""
10977 "For guests that do not use drive mappings, or if the drive mappings could "
10978 "not be determined, this returns an empty hash table."
10979 msgstr ""
10980
10981 #. type: textblock
10982 #: ../fish/guestfish-actions.pod:2076
10983 msgid ""
10984 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10985 "get-mountpoints>, L</inspect-get-filesystems>."
10986 msgstr ""
10987
10988 #. type: =head2
10989 #: ../fish/guestfish-actions.pod:2080
10990 msgid "inspect-get-filesystems"
10991 msgstr ""
10992
10993 #. type: verbatim
10994 #: ../fish/guestfish-actions.pod:2082
10995 #, no-wrap
10996 msgid ""
10997 " inspect-get-filesystems root\n"
10998 "\n"
10999 msgstr ""
11000
11001 #. type: textblock
11002 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3245
11003 msgid ""
11004 "This returns a list of all the filesystems that we think are associated with "
11005 "this operating system.  This includes the root filesystem, other ordinary "
11006 "filesystems, and non-mounted devices like swap partitions."
11007 msgstr ""
11008
11009 #. type: textblock
11010 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3250
11011 msgid ""
11012 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11013 "to be shared between operating systems."
11014 msgstr ""
11015
11016 #. type: textblock
11017 #: ../fish/guestfish-actions.pod:2092
11018 msgid ""
11019 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11020 "get-mountpoints>."
11021 msgstr ""
11022
11023 #. type: =head2
11024 #: ../fish/guestfish-actions.pod:2095
11025 msgid "inspect-get-format"
11026 msgstr ""
11027
11028 #. type: verbatim
11029 #: ../fish/guestfish-actions.pod:2097
11030 #, no-wrap
11031 msgid ""
11032 " inspect-get-format root\n"
11033 "\n"
11034 msgstr ""
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3268
11038 msgid ""
11039 "This returns the format of the inspected operating system.  You can use it "
11040 "to detect install images, live CDs and similar."
11041 msgstr ""
11042
11043 #. type: textblock
11044 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3271
11045 msgid "Currently defined formats are:"
11046 msgstr ""
11047
11048 #. type: =item
11049 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3275
11050 msgid "\"installed\""
11051 msgstr ""
11052
11053 #. type: textblock
11054 #: ../fish/guestfish-actions.pod:2108 ../src/guestfs-actions.pod:3277
11055 msgid "This is an installed operating system."
11056 msgstr ""
11057
11058 #. type: =item
11059 #: ../fish/guestfish-actions.pod:2110 ../src/guestfs-actions.pod:3279
11060 msgid "\"installer\""
11061 msgstr ""
11062
11063 #. type: textblock
11064 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3281
11065 msgid ""
11066 "The disk image being inspected is not an installed operating system, but a "
11067 "I<bootable> install disk, live CD, or similar."
11068 msgstr ""
11069
11070 #. type: textblock
11071 #: ../fish/guestfish-actions.pod:2117 ../src/guestfs-actions.pod:3286
11072 msgid "The format of this disk image is not known."
11073 msgstr ""
11074
11075 #. type: =head2
11076 #: ../fish/guestfish-actions.pod:2126
11077 msgid "inspect-get-hostname"
11078 msgstr ""
11079
11080 #. type: verbatim
11081 #: ../fish/guestfish-actions.pod:2128
11082 #, no-wrap
11083 msgid ""
11084 " inspect-get-hostname root\n"
11085 "\n"
11086 msgstr ""
11087
11088 #. type: textblock
11089 #: ../fish/guestfish-actions.pod:2130 ../src/guestfs-actions.pod:3306
11090 msgid ""
11091 "This function returns the hostname of the operating system as found by "
11092 "inspection of the guest's configuration files."
11093 msgstr ""
11094
11095 #. type: textblock
11096 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3309
11097 msgid ""
11098 "If the hostname could not be determined, then the string C<unknown> is "
11099 "returned."
11100 msgstr ""
11101
11102 #. type: =head2
11103 #: ../fish/guestfish-actions.pod:2138
11104 msgid "inspect-get-icon"
11105 msgstr ""
11106
11107 #. type: verbatim
11108 #: ../fish/guestfish-actions.pod:2140
11109 #, no-wrap
11110 msgid ""
11111 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
11112 "\n"
11113 msgstr ""
11114
11115 #. type: textblock
11116 #: ../fish/guestfish-actions.pod:2142 ../src/guestfs-actions.pod:3335
11117 msgid ""
11118 "This function returns an icon corresponding to the inspected operating "
11119 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
11120 "to PNG if necessary)."
11121 msgstr ""
11122
11123 #. type: textblock
11124 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3339
11125 msgid ""
11126 "If it was not possible to get an icon this function returns a zero-length "
11127 "(non-NULL) buffer.  I<Callers must check for this case>."
11128 msgstr ""
11129
11130 #. type: textblock
11131 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3342
11132 msgid ""
11133 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
11134 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
11135 "this file will be returned.  You can disable favicons by passing the "
11136 "optional C<favicon> boolean as false (default is true)."
11137 msgstr ""
11138
11139 #. type: textblock
11140 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3348
11141 msgid ""
11142 "If finding the favicon fails, then we look in other places in the guest for "
11143 "a suitable icon."
11144 msgstr ""
11145
11146 #. type: textblock
11147 #: ../fish/guestfish-actions.pod:2158 ../src/guestfs-actions.pod:3351
11148 msgid ""
11149 "If the optional C<highquality> boolean is true then only high quality icons "
11150 "are returned, which means only icons of high resolution with an alpha "
11151 "channel.  The default (false) is to return any icon we can, even if it is of "
11152 "substandard quality."
11153 msgstr ""
11154
11155 #. type: textblock
11156 #: ../fish/guestfish-actions.pod:2169 ../src/guestfs-actions.pod:3362
11157 msgid ""
11158 "Unlike most other inspection API calls, the guest's disks must be mounted up "
11159 "before you call this, since it needs to read information from the guest "
11160 "filesystem during the call."
11161 msgstr ""
11162
11163 #. type: textblock
11164 #: ../fish/guestfish-actions.pod:2175 ../src/guestfs-actions.pod:3368
11165 msgid ""
11166 "B<Security:> The icon data comes from the untrusted guest, and should be "
11167 "treated with caution.  PNG files have been known to contain exploits.  "
11168 "Ensure that libpng (or other relevant libraries) are fully up to date before "
11169 "trying to process or display the icon."
11170 msgstr ""
11171
11172 #. type: textblock
11173 #: ../fish/guestfish-actions.pod:2183 ../src/guestfs-actions.pod:3376
11174 msgid ""
11175 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
11176 "tries to return the largest, highest quality icon available.  The "
11177 "application must scale the icon to the required size."
11178 msgstr ""
11179
11180 #. type: textblock
11181 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3383
11182 msgid ""
11183 "Extracting icons from Windows guests requires the external C<wrestool> "
11184 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
11185 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
11186 "installed separately."
11187 msgstr ""
11188
11189 #. type: textblock
11190 #: ../fish/guestfish-actions.pod:2197 ../src/guestfs-actions.pod:3390
11191 msgid ""
11192 "Operating system icons are usually trademarks.  Seek legal advice before "
11193 "using trademarks in applications."
11194 msgstr ""
11195
11196 #. type: =head2
11197 #: ../fish/guestfish-actions.pod:2204
11198 msgid "inspect-get-major-version"
11199 msgstr ""
11200
11201 #. type: verbatim
11202 #: ../fish/guestfish-actions.pod:2206
11203 #, no-wrap
11204 msgid ""
11205 " inspect-get-major-version root\n"
11206 "\n"
11207 msgstr ""
11208
11209 #. type: textblock
11210 #: ../fish/guestfish-actions.pod:2208 ../src/guestfs-actions.pod:3431
11211 msgid ""
11212 "This returns the major version number of the inspected operating system."
11213 msgstr ""
11214
11215 #. type: textblock
11216 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3434
11217 msgid ""
11218 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11219 "popular public names used by the operating system.  Notably the operating "
11220 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11221 "1).  You can find out the real versions corresponding to releases of Windows "
11222 "by consulting Wikipedia or MSDN."
11223 msgstr ""
11224
11225 #. type: textblock
11226 #: ../fish/guestfish-actions.pod:2218 ../fish/guestfish-actions.pod:2229
11227 #: ../src/guestfs-actions.pod:3441 ../src/guestfs-actions.pod:3458
11228 msgid "If the version could not be determined, then C<0> is returned."
11229 msgstr ""
11230
11231 #. type: =head2
11232 #: ../fish/guestfish-actions.pod:2222
11233 msgid "inspect-get-minor-version"
11234 msgstr ""
11235
11236 #. type: verbatim
11237 #: ../fish/guestfish-actions.pod:2224
11238 #, no-wrap
11239 msgid ""
11240 " inspect-get-minor-version root\n"
11241 "\n"
11242 msgstr ""
11243
11244 #. type: textblock
11245 #: ../fish/guestfish-actions.pod:2226 ../src/guestfs-actions.pod:3455
11246 msgid ""
11247 "This returns the minor version number of the inspected operating system."
11248 msgstr ""
11249
11250 #. type: textblock
11251 #: ../fish/guestfish-actions.pod:2231
11252 msgid ""
11253 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11254 "get-major-version>."
11255 msgstr ""
11256
11257 #. type: =head2
11258 #: ../fish/guestfish-actions.pod:2234
11259 msgid "inspect-get-mountpoints"
11260 msgstr ""
11261
11262 #. type: verbatim
11263 #: ../fish/guestfish-actions.pod:2236
11264 #, no-wrap
11265 msgid ""
11266 " inspect-get-mountpoints root\n"
11267 "\n"
11268 msgstr ""
11269
11270 #. type: textblock
11271 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3473
11272 msgid ""
11273 "This returns a hash of where we think the filesystems associated with this "
11274 "operating system should be mounted.  Callers should note that this is at "
11275 "best an educated guess made by reading configuration files such as C</etc/"
11276 "fstab>.  I<In particular note> that this may return filesystems which are "
11277 "non-existent or not mountable and callers should be prepared to handle or "
11278 "ignore failures if they try to mount them."
11279 msgstr ""
11280
11281 #. type: textblock
11282 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3482
11283 msgid ""
11284 "Each element in the returned hashtable has a key which is the path of the "
11285 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11286 "mounted there (eg. C</dev/sda1>)."
11287 msgstr ""
11288
11289 #. type: textblock
11290 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3487
11291 msgid ""
11292 "Non-mounted devices such as swap devices are I<not> returned in this list."
11293 msgstr ""
11294
11295 #. type: textblock
11296 #: ../fish/guestfish-actions.pod:2255
11297 msgid ""
11298 "For operating systems like Windows which still use drive letters, this call "
11299 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11300 "information about the mapping of drive letters to partitions, see L</inspect-"
11301 "get-drive-mappings>."
11302 msgstr ""
11303
11304 #. type: textblock
11305 #: ../fish/guestfish-actions.pod:2261
11306 msgid ""
11307 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11308 "get-filesystems>."
11309 msgstr ""
11310
11311 #. type: =head2
11312 #: ../fish/guestfish-actions.pod:2264
11313 msgid "inspect-get-package-format"
11314 msgstr ""
11315
11316 #. type: verbatim
11317 #: ../fish/guestfish-actions.pod:2266
11318 #, no-wrap
11319 msgid ""
11320 " inspect-get-package-format root\n"
11321 "\n"
11322 msgstr ""
11323
11324 #. type: textblock
11325 #: ../fish/guestfish-actions.pod:2268
11326 msgid ""
11327 "This function and L</inspect-get-package-management> return the package "
11328 "format and package management tool used by the inspected operating system.  "
11329 "For example for Fedora these functions would return C<rpm> (package format) "
11330 "and C<yum> (package management)."
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:2274 ../src/guestfs-actions.pod:3519
11335 msgid ""
11336 "This returns the string C<unknown> if we could not determine the package "
11337 "format I<or> if the operating system does not have a real packaging system "
11338 "(eg. Windows)."
11339 msgstr ""
11340
11341 #. type: textblock
11342 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3523
11343 msgid ""
11344 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
11345 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
11346 msgstr ""
11347
11348 #. type: =head2
11349 #: ../fish/guestfish-actions.pod:2284
11350 msgid "inspect-get-package-management"
11351 msgstr ""
11352
11353 #. type: verbatim
11354 #: ../fish/guestfish-actions.pod:2286
11355 #, no-wrap
11356 msgid ""
11357 " inspect-get-package-management root\n"
11358 "\n"
11359 msgstr ""
11360
11361 #. type: textblock
11362 #: ../fish/guestfish-actions.pod:2288
11363 msgid ""
11364 "L</inspect-get-package-format> and this function return the package format "
11365 "and package management tool used by the inspected operating system.  For "
11366 "example for Fedora these functions would return C<rpm> (package format) and "
11367 "C<yum> (package management)."
11368 msgstr ""
11369
11370 #. type: textblock
11371 #: ../fish/guestfish-actions.pod:2294 ../src/guestfs-actions.pod:3546
11372 msgid ""
11373 "This returns the string C<unknown> if we could not determine the package "
11374 "management tool I<or> if the operating system does not have a real packaging "
11375 "system (eg. Windows)."
11376 msgstr ""
11377
11378 #. type: textblock
11379 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3550
11380 msgid ""
11381 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11382 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
11383 "versions of libguestfs may return other strings."
11384 msgstr ""
11385
11386 #. type: =head2
11387 #: ../fish/guestfish-actions.pod:2305
11388 msgid "inspect-get-product-name"
11389 msgstr ""
11390
11391 #. type: verbatim
11392 #: ../fish/guestfish-actions.pod:2307
11393 #, no-wrap
11394 msgid ""
11395 " inspect-get-product-name root\n"
11396 "\n"
11397 msgstr ""
11398
11399 #. type: textblock
11400 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3568
11401 msgid ""
11402 "This returns the product name of the inspected operating system.  The "
11403 "product name is generally some freeform string which can be displayed to the "
11404 "user, but should not be parsed by programs."
11405 msgstr ""
11406
11407 #. type: textblock
11408 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3573
11409 msgid ""
11410 "If the product name could not be determined, then the string C<unknown> is "
11411 "returned."
11412 msgstr ""
11413
11414 #. type: =head2
11415 #: ../fish/guestfish-actions.pod:2319
11416 msgid "inspect-get-product-variant"
11417 msgstr ""
11418
11419 #. type: verbatim
11420 #: ../fish/guestfish-actions.pod:2321
11421 #, no-wrap
11422 msgid ""
11423 " inspect-get-product-variant root\n"
11424 "\n"
11425 msgstr ""
11426
11427 #. type: textblock
11428 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3589
11429 msgid "This returns the product variant of the inspected operating system."
11430 msgstr ""
11431
11432 #. type: textblock
11433 #: ../fish/guestfish-actions.pod:2326 ../src/guestfs-actions.pod:3592
11434 msgid ""
11435 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11436 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11437 "is usually a string such as C<Client> or C<Server> (other values are "
11438 "possible).  This can be used to distinguish consumer and enterprise versions "
11439 "of Windows that have the same version number (for example, Windows 7 and "
11440 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11441 "the latter is C<Server>)."
11442 msgstr ""
11443
11444 #. type: textblock
11445 #: ../fish/guestfish-actions.pod:2335 ../src/guestfs-actions.pod:3601
11446 msgid ""
11447 "For enterprise Linux guests, in future we intend this to return the product "
11448 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11449 "implemented at present."
11450 msgstr ""
11451
11452 #. type: textblock
11453 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3605
11454 msgid ""
11455 "If the product variant could not be determined, then the string C<unknown> "
11456 "is returned."
11457 msgstr ""
11458
11459 #. type: textblock
11460 #: ../fish/guestfish-actions.pod:2342
11461 msgid ""
11462 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11463 "get-product-name>, L</inspect-get-major-version>."
11464 msgstr ""
11465
11466 #. type: =head2
11467 #: ../fish/guestfish-actions.pod:2346
11468 msgid "inspect-get-roots"
11469 msgstr ""
11470
11471 #. type: verbatim
11472 #: ../fish/guestfish-actions.pod:2348
11473 #, no-wrap
11474 msgid ""
11475 " inspect-get-roots\n"
11476 "\n"
11477 msgstr ""
11478
11479 #. type: textblock
11480 #: ../fish/guestfish-actions.pod:2350
11481 msgid ""
11482 "This function is a convenient way to get the list of root devices, as "
11483 "returned from a previous call to L</inspect-os>, but without redoing the "
11484 "whole inspection process."
11485 msgstr ""
11486
11487 #. type: textblock
11488 #: ../fish/guestfish-actions.pod:2354
11489 msgid ""
11490 "This returns an empty list if either no root devices were found or the "
11491 "caller has not called L</inspect-os>."
11492 msgstr ""
11493
11494 #. type: =head2
11495 #: ../fish/guestfish-actions.pod:2359
11496 msgid "inspect-get-type"
11497 msgstr ""
11498
11499 #. type: verbatim
11500 #: ../fish/guestfish-actions.pod:2361
11501 #, no-wrap
11502 msgid ""
11503 " inspect-get-type root\n"
11504 "\n"
11505 msgstr ""
11506
11507 #. type: textblock
11508 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3643
11509 msgid ""
11510 "This returns the type of the inspected operating system.  Currently defined "
11511 "types are:"
11512 msgstr ""
11513
11514 #. type: =item
11515 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3648
11516 msgid "\"linux\""
11517 msgstr ""
11518
11519 #. type: textblock
11520 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3650
11521 msgid "Any Linux-based operating system."
11522 msgstr ""
11523
11524 #. type: textblock
11525 #: ../fish/guestfish-actions.pod:2374 ../src/guestfs-actions.pod:3654
11526 msgid "Any Microsoft Windows operating system."
11527 msgstr ""
11528
11529 #. type: =item
11530 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3656
11531 msgid "\"freebsd\""
11532 msgstr ""
11533
11534 #. type: textblock
11535 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3658
11536 msgid "FreeBSD."
11537 msgstr ""
11538
11539 #. type: =item
11540 #: ../fish/guestfish-actions.pod:2380 ../src/guestfs-actions.pod:3660
11541 msgid "\"netbsd\""
11542 msgstr ""
11543
11544 #. type: textblock
11545 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3662
11546 msgid "NetBSD."
11547 msgstr ""
11548
11549 #. type: =item
11550 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3664
11551 msgid "\"hurd\""
11552 msgstr ""
11553
11554 #. type: textblock
11555 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3666
11556 msgid "GNU/Hurd."
11557 msgstr ""
11558
11559 #. type: textblock
11560 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3670
11561 msgid "The operating system type could not be determined."
11562 msgstr ""
11563
11564 #. type: =head2
11565 #: ../fish/guestfish-actions.pod:2399
11566 msgid "inspect-get-windows-current-control-set"
11567 msgstr ""
11568
11569 #. type: verbatim
11570 #: ../fish/guestfish-actions.pod:2401
11571 #, no-wrap
11572 msgid ""
11573 " inspect-get-windows-current-control-set root\n"
11574 "\n"
11575 msgstr ""
11576
11577 #. type: textblock
11578 #: ../fish/guestfish-actions.pod:2403 ../src/guestfs-actions.pod:3690
11579 msgid ""
11580 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11581 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11582 msgstr ""
11583
11584 #. type: textblock
11585 #: ../fish/guestfish-actions.pod:2406 ../src/guestfs-actions.pod:3693
11586 msgid ""
11587 "This call assumes that the guest is Windows and that the Registry could be "
11588 "examined by inspection.  If this is not the case then an error is returned."
11589 msgstr ""
11590
11591 #. type: =head2
11592 #: ../fish/guestfish-actions.pod:2412
11593 msgid "inspect-get-windows-systemroot"
11594 msgstr ""
11595
11596 #. type: verbatim
11597 #: ../fish/guestfish-actions.pod:2414
11598 #, no-wrap
11599 msgid ""
11600 " inspect-get-windows-systemroot root\n"
11601 "\n"
11602 msgstr ""
11603
11604 #. type: textblock
11605 #: ../fish/guestfish-actions.pod:2416 ../src/guestfs-actions.pod:3710
11606 msgid ""
11607 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11608 "is a directory path such as C</WINDOWS>."
11609 msgstr ""
11610
11611 #. type: textblock
11612 #: ../fish/guestfish-actions.pod:2419 ../src/guestfs-actions.pod:3713
11613 msgid ""
11614 "This call assumes that the guest is Windows and that the systemroot could be "
11615 "determined by inspection.  If this is not the case then an error is returned."
11616 msgstr ""
11617
11618 #. type: =head2
11619 #: ../fish/guestfish-actions.pod:2425
11620 msgid "inspect-is-live"
11621 msgstr ""
11622
11623 #. type: verbatim
11624 #: ../fish/guestfish-actions.pod:2427
11625 #, no-wrap
11626 msgid ""
11627 " inspect-is-live root\n"
11628 "\n"
11629 msgstr ""
11630
11631 #. type: textblock
11632 #: ../fish/guestfish-actions.pod:2429
11633 msgid ""
11634 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11635 "then this returns true if a live image was detected on the disk."
11636 msgstr ""
11637
11638 #. type: =head2
11639 #: ../fish/guestfish-actions.pod:2435
11640 msgid "inspect-is-multipart"
11641 msgstr ""
11642
11643 #. type: verbatim
11644 #: ../fish/guestfish-actions.pod:2437
11645 #, no-wrap
11646 msgid ""
11647 " inspect-is-multipart root\n"
11648 "\n"
11649 msgstr ""
11650
11651 #. type: textblock
11652 #: ../fish/guestfish-actions.pod:2439
11653 msgid ""
11654 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11655 "then this returns true if the disk is part of a set."
11656 msgstr ""
11657
11658 #. type: =head2
11659 #: ../fish/guestfish-actions.pod:2445
11660 msgid "inspect-is-netinst"
11661 msgstr ""
11662
11663 #. type: verbatim
11664 #: ../fish/guestfish-actions.pod:2447
11665 #, no-wrap
11666 msgid ""
11667 " inspect-is-netinst root\n"
11668 "\n"
11669 msgstr ""
11670
11671 #. type: textblock
11672 #: ../fish/guestfish-actions.pod:2449
11673 msgid ""
11674 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11675 "then this returns true if the disk is a network installer, ie. not a self-"
11676 "contained install CD but one which is likely to require network access to "
11677 "complete the install."
11678 msgstr ""
11679
11680 #. type: =head2
11681 #: ../fish/guestfish-actions.pod:2457
11682 msgid "inspect-list-applications"
11683 msgstr ""
11684
11685 #. type: verbatim
11686 #: ../fish/guestfish-actions.pod:2459
11687 #, no-wrap
11688 msgid ""
11689 " inspect-list-applications root\n"
11690 "\n"
11691 msgstr ""
11692
11693 #. type: textblock
11694 #: ../fish/guestfish-actions.pod:2461 ../src/guestfs-actions.pod:3780
11695 msgid "Return the list of applications installed in the operating system."
11696 msgstr ""
11697
11698 #. type: textblock
11699 #: ../fish/guestfish-actions.pod:2463
11700 msgid ""
11701 "I<Note:> This call works differently from other parts of the inspection "
11702 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11703 "then mount up the disks, before calling this.  Listing applications is a "
11704 "significantly more difficult operation which requires access to the full "
11705 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11706 "are just returning data cached in the libguestfs handle, this call actually "
11707 "reads parts of the mounted filesystems during the call."
11708 msgstr ""
11709
11710 #. type: textblock
11711 #: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3792
11712 msgid ""
11713 "This returns an empty list if the inspection code was not able to determine "
11714 "the list of applications."
11715 msgstr ""
11716
11717 #. type: textblock
11718 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3795
11719 msgid "The application structure contains the following fields:"
11720 msgstr ""
11721
11722 #. type: =item
11723 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3799
11724 msgid "C<app_name>"
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../fish/guestfish-actions.pod:2482 ../src/guestfs-actions.pod:3801
11729 msgid ""
11730 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11731 "guests, this is the package name."
11732 msgstr ""
11733
11734 #. type: =item
11735 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3804
11736 msgid "C<app_display_name>"
11737 msgstr ""
11738
11739 #. type: textblock
11740 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3806
11741 msgid ""
11742 "The display name of the application, sometimes localized to the install "
11743 "language of the guest operating system."
11744 msgstr ""
11745
11746 #. type: textblock
11747 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3809
11748 msgid ""
11749 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11750 "to display something can use C<app_name> instead."
11751 msgstr ""
11752
11753 #. type: =item
11754 #: ../fish/guestfish-actions.pod:2493 ../src/guestfs-actions.pod:3812
11755 msgid "C<app_epoch>"
11756 msgstr ""
11757
11758 #. type: textblock
11759 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3814
11760 msgid ""
11761 "For package managers which use epochs, this contains the epoch of the "
11762 "package (an integer).  If unavailable, this is returned as C<0>."
11763 msgstr ""
11764
11765 #. type: =item
11766 #: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3817
11767 msgid "C<app_version>"
11768 msgstr ""
11769
11770 #. type: textblock
11771 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3819
11772 msgid ""
11773 "The version string of the application or package.  If unavailable this is "
11774 "returned as an empty string C<\"\">."
11775 msgstr ""
11776
11777 #. type: =item
11778 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3822
11779 msgid "C<app_release>"
11780 msgstr ""
11781
11782 #. type: textblock
11783 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3824
11784 msgid ""
11785 "The release string of the application or package, for package managers that "
11786 "use this.  If unavailable this is returned as an empty string C<\"\">."
11787 msgstr ""
11788
11789 #. type: =item
11790 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3828
11791 msgid "C<app_install_path>"
11792 msgstr ""
11793
11794 #. type: textblock
11795 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3830
11796 msgid ""
11797 "The installation path of the application (on operating systems such as "
11798 "Windows which use installation paths).  This path is in the format used by "
11799 "the guest operating system, it is not a libguestfs path."
11800 msgstr ""
11801
11802 #. type: textblock
11803 #: ../fish/guestfish-actions.pod:2516 ../src/guestfs-actions.pod:3835
11804 msgid "If unavailable this is returned as an empty string C<\"\">."
11805 msgstr ""
11806
11807 #. type: =item
11808 #: ../fish/guestfish-actions.pod:2518 ../src/guestfs-actions.pod:3837
11809 msgid "C<app_trans_path>"
11810 msgstr ""
11811
11812 #. type: textblock
11813 #: ../fish/guestfish-actions.pod:2520 ../src/guestfs-actions.pod:3839
11814 msgid ""
11815 "The install path translated into a libguestfs path.  If unavailable this is "
11816 "returned as an empty string C<\"\">."
11817 msgstr ""
11818
11819 #. type: =item
11820 #: ../fish/guestfish-actions.pod:2523 ../src/guestfs-actions.pod:3842
11821 msgid "C<app_publisher>"
11822 msgstr ""
11823
11824 #. type: textblock
11825 #: ../fish/guestfish-actions.pod:2525 ../src/guestfs-actions.pod:3844
11826 msgid ""
11827 "The name of the publisher of the application, for package managers that use "
11828 "this.  If unavailable this is returned as an empty string C<\"\">."
11829 msgstr ""
11830
11831 #. type: =item
11832 #: ../fish/guestfish-actions.pod:2529 ../src/guestfs-actions.pod:3848
11833 msgid "C<app_url>"
11834 msgstr ""
11835
11836 #. type: textblock
11837 #: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3850
11838 msgid ""
11839 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11840 "returned as an empty string C<\"\">."
11841 msgstr ""
11842
11843 #. type: =item
11844 #: ../fish/guestfish-actions.pod:2534 ../src/guestfs-actions.pod:3853
11845 msgid "C<app_source_package>"
11846 msgstr ""
11847
11848 #. type: textblock
11849 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3855
11850 msgid ""
11851 "For packaging systems which support this, the name of the source package.  "
11852 "If unavailable this is returned as an empty string C<\"\">."
11853 msgstr ""
11854
11855 #. type: =item
11856 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3858
11857 msgid "C<app_summary>"
11858 msgstr ""
11859
11860 #. type: textblock
11861 #: ../fish/guestfish-actions.pod:2541 ../src/guestfs-actions.pod:3860
11862 msgid ""
11863 "A short (usually one line) description of the application or package.  If "
11864 "unavailable this is returned as an empty string C<\"\">."
11865 msgstr ""
11866
11867 #. type: =item
11868 #: ../fish/guestfish-actions.pod:2544 ../src/guestfs-actions.pod:3863
11869 msgid "C<app_description>"
11870 msgstr ""
11871
11872 #. type: textblock
11873 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3865
11874 msgid ""
11875 "A longer description of the application or package.  If unavailable this is "
11876 "returned as an empty string C<\"\">."
11877 msgstr ""
11878
11879 #. type: =head2
11880 #: ../fish/guestfish-actions.pod:2553
11881 msgid "inspect-os"
11882 msgstr ""
11883
11884 #. type: verbatim
11885 #: ../fish/guestfish-actions.pod:2555
11886 #, no-wrap
11887 msgid ""
11888 " inspect-os\n"
11889 "\n"
11890 msgstr ""
11891
11892 #. type: textblock
11893 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3883
11894 msgid ""
11895 "This function uses other libguestfs functions and certain heuristics to "
11896 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11897 "for operating systems."
11898 msgstr ""
11899
11900 #. type: textblock
11901 #: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3887
11902 msgid "The list returned is empty if no operating systems were found."
11903 msgstr ""
11904
11905 #. type: textblock
11906 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3889
11907 msgid ""
11908 "If one operating system was found, then this returns a list with a single "
11909 "element, which is the name of the root filesystem of this operating system.  "
11910 "It is also possible for this function to return a list containing more than "
11911 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11912 "element being the root filesystem of one of the operating systems."
11913 msgstr ""
11914
11915 #. type: textblock
11916 #: ../fish/guestfish-actions.pod:2570
11917 msgid ""
11918 "You can pass the root string(s) returned to other L</inspect-get-*> "
11919 "functions in order to query further information about each operating system, "
11920 "such as the name and version."
11921 msgstr ""
11922
11923 #. type: textblock
11924 #: ../fish/guestfish-actions.pod:2575
11925 msgid ""
11926 "This function uses other libguestfs features such as L</mount-ro> and L</"
11927 "umount-all> in order to mount and unmount filesystems and look at the "
11928 "contents.  This should be called with no disks currently mounted.  The "
11929 "function may also use Augeas, so any existing Augeas handle will be closed."
11930 msgstr ""
11931
11932 #. type: textblock
11933 #: ../fish/guestfish-actions.pod:2581 ../src/guestfs-actions.pod:3907
11934 msgid ""
11935 "This function cannot decrypt encrypted disks.  The caller must do that first "
11936 "(supplying the necessary keys) if the disk is encrypted."
11937 msgstr ""
11938
11939 #. type: textblock
11940 #: ../fish/guestfish-actions.pod:2587 ../fish/guestfish-actions.pod:2785
11941 #: ../fish/guestfish-actions.pod:2850
11942 msgid "See also L</list-filesystems>."
11943 msgstr ""
11944
11945 #. type: =head2
11946 #: ../fish/guestfish-actions.pod:2589
11947 msgid "is-blockdev"
11948 msgstr ""
11949
11950 #. type: verbatim
11951 #: ../fish/guestfish-actions.pod:2591
11952 #, no-wrap
11953 msgid ""
11954 " is-blockdev path\n"
11955 "\n"
11956 msgstr ""
11957
11958 #. type: textblock
11959 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3927
11960 msgid ""
11961 "This returns C<true> if and only if there is a block device with the given "
11962 "C<path> name."
11963 msgstr ""
11964
11965 #. type: textblock
11966 #: ../fish/guestfish-actions.pod:2596 ../fish/guestfish-actions.pod:2614
11967 #: ../fish/guestfish-actions.pod:2633 ../fish/guestfish-actions.pod:2642
11968 #: ../fish/guestfish-actions.pod:2652 ../fish/guestfish-actions.pod:2686
11969 #: ../fish/guestfish-actions.pod:2695
11970 msgid "See also L</stat>."
11971 msgstr ""
11972
11973 #. type: =head2
11974 #: ../fish/guestfish-actions.pod:2598
11975 msgid "is-busy"
11976 msgstr ""
11977
11978 #. type: verbatim
11979 #: ../fish/guestfish-actions.pod:2600
11980 #, no-wrap
11981 msgid ""
11982 " is-busy\n"
11983 "\n"
11984 msgstr ""
11985
11986 #. type: textblock
11987 #: ../fish/guestfish-actions.pod:2602 ../src/guestfs-actions.pod:3941
11988 msgid ""
11989 "This returns true iff this handle is busy processing a command (in the "
11990 "C<BUSY> state)."
11991 msgstr ""
11992
11993 #. type: =head2
11994 #: ../fish/guestfish-actions.pod:2607
11995 msgid "is-chardev"
11996 msgstr ""
11997
11998 #. type: verbatim
11999 #: ../fish/guestfish-actions.pod:2609
12000 #, no-wrap
12001 msgid ""
12002 " is-chardev path\n"
12003 "\n"
12004 msgstr ""
12005
12006 #. type: textblock
12007 #: ../fish/guestfish-actions.pod:2611 ../src/guestfs-actions.pod:3956
12008 msgid ""
12009 "This returns C<true> if and only if there is a character device with the "
12010 "given C<path> name."
12011 msgstr ""
12012
12013 #. type: =head2
12014 #: ../fish/guestfish-actions.pod:2616
12015 msgid "is-config"
12016 msgstr ""
12017
12018 #. type: verbatim
12019 #: ../fish/guestfish-actions.pod:2618
12020 #, no-wrap
12021 msgid ""
12022 " is-config\n"
12023 "\n"
12024 msgstr ""
12025
12026 #. type: textblock
12027 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3970
12028 msgid ""
12029 "This returns true iff this handle is being configured (in the C<CONFIG> "
12030 "state)."
12031 msgstr ""
12032
12033 #. type: =head2
12034 #: ../fish/guestfish-actions.pod:2625
12035 msgid "is-dir"
12036 msgstr ""
12037
12038 #. type: verbatim
12039 #: ../fish/guestfish-actions.pod:2627
12040 #, no-wrap
12041 msgid ""
12042 " is-dir path\n"
12043 "\n"
12044 msgstr ""
12045
12046 #. type: textblock
12047 #: ../fish/guestfish-actions.pod:2629 ../src/guestfs-actions.pod:3985
12048 msgid ""
12049 "This returns C<true> if and only if there is a directory with the given "
12050 "C<path> name.  Note that it returns false for other objects like files."
12051 msgstr ""
12052
12053 #. type: =head2
12054 #: ../fish/guestfish-actions.pod:2635
12055 msgid "is-fifo"
12056 msgstr ""
12057
12058 #. type: verbatim
12059 #: ../fish/guestfish-actions.pod:2637
12060 #, no-wrap
12061 msgid ""
12062 " is-fifo path\n"
12063 "\n"
12064 msgstr ""
12065
12066 #. type: textblock
12067 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4001
12068 msgid ""
12069 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12070 "given C<path> name."
12071 msgstr ""
12072
12073 #. type: =head2
12074 #: ../fish/guestfish-actions.pod:2644
12075 msgid "is-file"
12076 msgstr ""
12077
12078 #. type: verbatim
12079 #: ../fish/guestfish-actions.pod:2646
12080 #, no-wrap
12081 msgid ""
12082 " is-file path\n"
12083 "\n"
12084 msgstr ""
12085
12086 #. type: textblock
12087 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4016
12088 msgid ""
12089 "This returns C<true> if and only if there is a regular file with the given "
12090 "C<path> name.  Note that it returns false for other objects like directories."
12091 msgstr ""
12092
12093 #. type: =head2
12094 #: ../fish/guestfish-actions.pod:2654
12095 msgid "is-launching"
12096 msgstr ""
12097
12098 #. type: verbatim
12099 #: ../fish/guestfish-actions.pod:2656
12100 #, no-wrap
12101 msgid ""
12102 " is-launching\n"
12103 "\n"
12104 msgstr ""
12105
12106 #. type: textblock
12107 #: ../fish/guestfish-actions.pod:2658 ../src/guestfs-actions.pod:4031
12108 msgid ""
12109 "This returns true iff this handle is launching the subprocess (in the "
12110 "C<LAUNCHING> state)."
12111 msgstr ""
12112
12113 #. type: =head2
12114 #: ../fish/guestfish-actions.pod:2663
12115 msgid "is-lv"
12116 msgstr ""
12117
12118 #. type: verbatim
12119 #: ../fish/guestfish-actions.pod:2665
12120 #, no-wrap
12121 msgid ""
12122 " is-lv device\n"
12123 "\n"
12124 msgstr ""
12125
12126 #. type: textblock
12127 #: ../fish/guestfish-actions.pod:2667 ../src/guestfs-actions.pod:4046
12128 msgid ""
12129 "This command tests whether C<device> is a logical volume, and returns true "
12130 "iff this is the case."
12131 msgstr ""
12132
12133 #. type: =head2
12134 #: ../fish/guestfish-actions.pod:2670
12135 msgid "is-ready"
12136 msgstr ""
12137
12138 #. type: verbatim
12139 #: ../fish/guestfish-actions.pod:2672
12140 #, no-wrap
12141 msgid ""
12142 " is-ready\n"
12143 "\n"
12144 msgstr ""
12145
12146 #. type: textblock
12147 #: ../fish/guestfish-actions.pod:2674 ../src/guestfs-actions.pod:4058
12148 msgid ""
12149 "This returns true iff this handle is ready to accept commands (in the "
12150 "C<READY> state)."
12151 msgstr ""
12152
12153 #. type: =head2
12154 #: ../fish/guestfish-actions.pod:2679
12155 msgid "is-socket"
12156 msgstr ""
12157
12158 #. type: verbatim
12159 #: ../fish/guestfish-actions.pod:2681
12160 #, no-wrap
12161 msgid ""
12162 " is-socket path\n"
12163 "\n"
12164 msgstr ""
12165
12166 #. type: textblock
12167 #: ../fish/guestfish-actions.pod:2683 ../src/guestfs-actions.pod:4073
12168 msgid ""
12169 "This returns C<true> if and only if there is a Unix domain socket with the "
12170 "given C<path> name."
12171 msgstr ""
12172
12173 #. type: =head2
12174 #: ../fish/guestfish-actions.pod:2688
12175 msgid "is-symlink"
12176 msgstr ""
12177
12178 #. type: verbatim
12179 #: ../fish/guestfish-actions.pod:2690
12180 #, no-wrap
12181 msgid ""
12182 " is-symlink path\n"
12183 "\n"
12184 msgstr ""
12185
12186 #. type: textblock
12187 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4088
12188 msgid ""
12189 "This returns C<true> if and only if there is a symbolic link with the given "
12190 "C<path> name."
12191 msgstr ""
12192
12193 #. type: =head2
12194 #: ../fish/guestfish-actions.pod:2697
12195 msgid "is-zero"
12196 msgstr ""
12197
12198 #. type: verbatim
12199 #: ../fish/guestfish-actions.pod:2699
12200 #, no-wrap
12201 msgid ""
12202 " is-zero path\n"
12203 "\n"
12204 msgstr ""
12205
12206 #. type: textblock
12207 #: ../fish/guestfish-actions.pod:2701 ../src/guestfs-actions.pod:4103
12208 msgid ""
12209 "This returns true iff the file exists and the file is empty or it contains "
12210 "all zero bytes."
12211 msgstr ""
12212
12213 #. type: =head2
12214 #: ../fish/guestfish-actions.pod:2704
12215 msgid "is-zero-device"
12216 msgstr ""
12217
12218 #. type: verbatim
12219 #: ../fish/guestfish-actions.pod:2706
12220 #, no-wrap
12221 msgid ""
12222 " is-zero-device device\n"
12223 "\n"
12224 msgstr ""
12225
12226 #. type: textblock
12227 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4116
12228 msgid "This returns true iff the device exists and contains all zero bytes."
12229 msgstr ""
12230
12231 #. type: textblock
12232 #: ../fish/guestfish-actions.pod:2710 ../src/guestfs-actions.pod:4118
12233 msgid "Note that for large devices this can take a long time to run."
12234 msgstr ""
12235
12236 #. type: =head2
12237 #: ../fish/guestfish-actions.pod:2712
12238 msgid "kill-subprocess"
12239 msgstr ""
12240
12241 #. type: verbatim
12242 #: ../fish/guestfish-actions.pod:2714
12243 #, no-wrap
12244 msgid ""
12245 " kill-subprocess\n"
12246 "\n"
12247 msgstr ""
12248
12249 #. type: textblock
12250 #: ../fish/guestfish-actions.pod:2716 ../src/guestfs-actions.pod:4129
12251 msgid "This kills the qemu subprocess.  You should never need to call this."
12252 msgstr ""
12253
12254 #. type: =head2
12255 #: ../fish/guestfish-actions.pod:2718
12256 msgid "launch"
12257 msgstr ""
12258
12259 #. type: =head2
12260 #: ../fish/guestfish-actions.pod:2720
12261 msgid "run"
12262 msgstr ""
12263
12264 #. type: verbatim
12265 #: ../fish/guestfish-actions.pod:2722
12266 #, no-wrap
12267 msgid ""
12268 " launch\n"
12269 "\n"
12270 msgstr ""
12271
12272 #. type: textblock
12273 #: ../fish/guestfish-actions.pod:2724 ../src/guestfs-actions.pod:4140
12274 msgid ""
12275 "Internally libguestfs is implemented by running a virtual machine using "
12276 "L<qemu(1)>."
12277 msgstr ""
12278
12279 #. type: textblock
12280 #: ../fish/guestfish-actions.pod:2727 ../src/guestfs-actions.pod:4143
12281 msgid ""
12282 "You should call this after configuring the handle (eg. adding drives) but "
12283 "before performing any actions."
12284 msgstr ""
12285
12286 #. type: =head2
12287 #: ../fish/guestfish-actions.pod:2730
12288 msgid "lchown"
12289 msgstr ""
12290
12291 #. type: verbatim
12292 #: ../fish/guestfish-actions.pod:2732
12293 #, no-wrap
12294 msgid ""
12295 " lchown owner group path\n"
12296 "\n"
12297 msgstr ""
12298
12299 #. type: textblock
12300 #: ../fish/guestfish-actions.pod:2734
12301 msgid ""
12302 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
12303 "chown> but if C<path> is a symlink then the link itself is changed, not the "
12304 "target."
12305 msgstr ""
12306
12307 #. type: =head2
12308 #: ../fish/guestfish-actions.pod:2742
12309 msgid "lgetxattr"
12310 msgstr ""
12311
12312 #. type: verbatim
12313 #: ../fish/guestfish-actions.pod:2744
12314 #, no-wrap
12315 msgid ""
12316 " lgetxattr path name\n"
12317 "\n"
12318 msgstr ""
12319
12320 #. type: textblock
12321 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4183
12322 msgid ""
12323 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12324 "is a symlink, then this call returns an extended attribute from the symlink."
12325 msgstr ""
12326
12327 #. type: textblock
12328 #: ../fish/guestfish-actions.pod:2760
12329 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12330 msgstr ""
12331
12332 #. type: =head2
12333 #: ../fish/guestfish-actions.pod:2762
12334 msgid "lgetxattrs"
12335 msgstr ""
12336
12337 #. type: verbatim
12338 #: ../fish/guestfish-actions.pod:2764
12339 #, no-wrap
12340 msgid ""
12341 " lgetxattrs path\n"
12342 "\n"
12343 msgstr ""
12344
12345 #. type: textblock
12346 #: ../fish/guestfish-actions.pod:2766
12347 msgid ""
12348 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12349 "it returns the extended attributes of the link itself."
12350 msgstr ""
12351
12352 #. type: =head2
12353 #: ../fish/guestfish-actions.pod:2770
12354 msgid "list-9p"
12355 msgstr ""
12356
12357 #. type: verbatim
12358 #: ../fish/guestfish-actions.pod:2772
12359 #, no-wrap
12360 msgid ""
12361 " list-9p\n"
12362 "\n"
12363 msgstr ""
12364
12365 #. type: textblock
12366 #: ../fish/guestfish-actions.pod:2774 ../src/guestfs-actions.pod:4226
12367 msgid ""
12368 "List all 9p filesystems attached to the guest.  A list of mount tags is "
12369 "returned."
12370 msgstr ""
12371
12372 #. type: =head2
12373 #: ../fish/guestfish-actions.pod:2777
12374 msgid "list-devices"
12375 msgstr ""
12376
12377 #. type: verbatim
12378 #: ../fish/guestfish-actions.pod:2779
12379 #, no-wrap
12380 msgid ""
12381 " list-devices\n"
12382 "\n"
12383 msgstr ""
12384
12385 #. type: textblock
12386 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4240
12387 msgid "List all the block devices."
12388 msgstr ""
12389
12390 #. type: textblock
12391 #: ../fish/guestfish-actions.pod:2783 ../src/guestfs-actions.pod:4242
12392 msgid "The full block device names are returned, eg. C</dev/sda>."
12393 msgstr ""
12394
12395 #. type: =head2
12396 #: ../fish/guestfish-actions.pod:2787
12397 msgid "list-dm-devices"
12398 msgstr ""
12399
12400 #. type: verbatim
12401 #: ../fish/guestfish-actions.pod:2789
12402 #, no-wrap
12403 msgid ""
12404 " list-dm-devices\n"
12405 "\n"
12406 msgstr ""
12407
12408 #. type: textblock
12409 #: ../fish/guestfish-actions.pod:2791 ../src/guestfs-actions.pod:4257
12410 msgid "List all device mapper devices."
12411 msgstr ""
12412
12413 #. type: textblock
12414 #: ../fish/guestfish-actions.pod:2793
12415 msgid ""
12416 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12417 "previous call to L</luks-open>."
12418 msgstr ""
12419
12420 #. type: textblock
12421 #: ../fish/guestfish-actions.pod:2796
12422 msgid ""
12423 "Device mapper devices which correspond to logical volumes are I<not> "
12424 "returned in this list.  Call L</lvs> if you want to list logical volumes."
12425 msgstr ""
12426
12427 #. type: =head2
12428 #: ../fish/guestfish-actions.pod:2800
12429 msgid "list-filesystems"
12430 msgstr ""
12431
12432 #. type: verbatim
12433 #: ../fish/guestfish-actions.pod:2802
12434 #, no-wrap
12435 msgid ""
12436 " list-filesystems\n"
12437 "\n"
12438 msgstr ""
12439
12440 #. type: textblock
12441 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4277
12442 msgid ""
12443 "This inspection command looks for filesystems on partitions, block devices "
12444 "and logical volumes, returning a list of devices containing filesystems and "
12445 "their type."
12446 msgstr ""
12447
12448 #. type: textblock
12449 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4281
12450 msgid ""
12451 "The return value is a hash, where the keys are the devices containing "
12452 "filesystems, and the values are the filesystem types.  For example:"
12453 msgstr ""
12454
12455 #. type: verbatim
12456 #: ../fish/guestfish-actions.pod:2812 ../src/guestfs-actions.pod:4285
12457 #, no-wrap
12458 msgid ""
12459 " \"/dev/sda1\" => \"ntfs\"\n"
12460 " \"/dev/sda2\" => \"ext2\"\n"
12461 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12462 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12463 "\n"
12464 msgstr ""
12465
12466 #. type: textblock
12467 #: ../fish/guestfish-actions.pod:2817 ../src/guestfs-actions.pod:4290
12468 msgid ""
12469 "The value can have the special value \"unknown\", meaning the content of the "
12470 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12471 msgstr ""
12472
12473 #. type: textblock
12474 #: ../fish/guestfish-actions.pod:2821
12475 msgid ""
12476 "This command runs other libguestfs commands, which might include L</mount> "
12477 "and L</umount>, and therefore you should use this soon after launch and only "
12478 "when nothing is mounted."
12479 msgstr ""
12480
12481 #. type: textblock
12482 #: ../fish/guestfish-actions.pod:2825
12483 msgid ""
12484 "Not all of the filesystems returned will be mountable.  In particular, swap "
12485 "partitions are returned in the list.  Also this command does not check that "
12486 "each filesystem found is valid and mountable, and some filesystems might be "
12487 "mountable but require special options.  Filesystems may not all belong to a "
12488 "single logical operating system (use L</inspect-os> to look for OSes)."
12489 msgstr ""
12490
12491 #. type: =head2
12492 #: ../fish/guestfish-actions.pod:2833
12493 msgid "list-md-devices"
12494 msgstr ""
12495
12496 #. type: verbatim
12497 #: ../fish/guestfish-actions.pod:2835
12498 #, no-wrap
12499 msgid ""
12500 " list-md-devices\n"
12501 "\n"
12502 msgstr ""
12503
12504 #. type: textblock
12505 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4319
12506 msgid "List all Linux md devices."
12507 msgstr ""
12508
12509 #. type: =head2
12510 #: ../fish/guestfish-actions.pod:2839
12511 msgid "list-partitions"
12512 msgstr ""
12513
12514 #. type: verbatim
12515 #: ../fish/guestfish-actions.pod:2841
12516 #, no-wrap
12517 msgid ""
12518 " list-partitions\n"
12519 "\n"
12520 msgstr ""
12521
12522 #. type: textblock
12523 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4332
12524 msgid "List all the partitions detected on all block devices."
12525 msgstr ""
12526
12527 #. type: textblock
12528 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4334
12529 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12530 msgstr ""
12531
12532 #. type: textblock
12533 #: ../fish/guestfish-actions.pod:2847
12534 msgid ""
12535 "This does not return logical volumes.  For that you will need to call L</"
12536 "lvs>."
12537 msgstr ""
12538
12539 #. type: =head2
12540 #: ../fish/guestfish-actions.pod:2852
12541 msgid "ll"
12542 msgstr ""
12543
12544 #. type: verbatim
12545 #: ../fish/guestfish-actions.pod:2854
12546 #, no-wrap
12547 msgid ""
12548 " ll directory\n"
12549 "\n"
12550 msgstr ""
12551
12552 #. type: textblock
12553 #: ../fish/guestfish-actions.pod:2856 ../src/guestfs-actions.pod:4353
12554 msgid ""
12555 "List the files in C<directory> (relative to the root directory, there is no "
12556 "cwd) in the format of 'ls -la'."
12557 msgstr ""
12558
12559 #. type: textblock
12560 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4356
12561 msgid ""
12562 "This command is mostly useful for interactive sessions.  It is I<not> "
12563 "intended that you try to parse the output string."
12564 msgstr ""
12565
12566 #. type: =head2
12567 #: ../fish/guestfish-actions.pod:2862
12568 msgid "ln"
12569 msgstr ""
12570
12571 #. type: verbatim
12572 #: ../fish/guestfish-actions.pod:2864
12573 #, no-wrap
12574 msgid ""
12575 " ln target linkname\n"
12576 "\n"
12577 msgstr ""
12578
12579 #. type: textblock
12580 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4371
12581 msgid "This command creates a hard link using the C<ln> command."
12582 msgstr ""
12583
12584 #. type: =head2
12585 #: ../fish/guestfish-actions.pod:2868
12586 msgid "ln-f"
12587 msgstr ""
12588
12589 #. type: verbatim
12590 #: ../fish/guestfish-actions.pod:2870
12591 #, no-wrap
12592 msgid ""
12593 " ln-f target linkname\n"
12594 "\n"
12595 msgstr ""
12596
12597 #. type: textblock
12598 #: ../fish/guestfish-actions.pod:2872 ../src/guestfs-actions.pod:4384
12599 msgid ""
12600 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12601 "option removes the link (C<linkname>) if it exists already."
12602 msgstr ""
12603
12604 #. type: =head2
12605 #: ../fish/guestfish-actions.pod:2875
12606 msgid "ln-s"
12607 msgstr ""
12608
12609 #. type: verbatim
12610 #: ../fish/guestfish-actions.pod:2877
12611 #, no-wrap
12612 msgid ""
12613 " ln-s target linkname\n"
12614 "\n"
12615 msgstr ""
12616
12617 #. type: textblock
12618 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4398
12619 msgid "This command creates a symbolic link using the C<ln -s> command."
12620 msgstr ""
12621
12622 #. type: =head2
12623 #: ../fish/guestfish-actions.pod:2881
12624 msgid "ln-sf"
12625 msgstr ""
12626
12627 #. type: verbatim
12628 #: ../fish/guestfish-actions.pod:2883
12629 #, no-wrap
12630 msgid ""
12631 " ln-sf target linkname\n"
12632 "\n"
12633 msgstr ""
12634
12635 #. type: textblock
12636 #: ../fish/guestfish-actions.pod:2885 ../src/guestfs-actions.pod:4411
12637 msgid ""
12638 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12639 "option removes the link (C<linkname>) if it exists already."
12640 msgstr ""
12641
12642 #. type: =head2
12643 #: ../fish/guestfish-actions.pod:2888
12644 msgid "lremovexattr"
12645 msgstr ""
12646
12647 #. type: verbatim
12648 #: ../fish/guestfish-actions.pod:2890
12649 #, no-wrap
12650 msgid ""
12651 " lremovexattr xattr path\n"
12652 "\n"
12653 msgstr ""
12654
12655 #. type: textblock
12656 #: ../fish/guestfish-actions.pod:2892
12657 msgid ""
12658 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12659 "it removes an extended attribute of the link itself."
12660 msgstr ""
12661
12662 #. type: =head2
12663 #: ../fish/guestfish-actions.pod:2896
12664 msgid "ls"
12665 msgstr ""
12666
12667 #. type: verbatim
12668 #: ../fish/guestfish-actions.pod:2898
12669 #, no-wrap
12670 msgid ""
12671 " ls directory\n"
12672 "\n"
12673 msgstr ""
12674
12675 #. type: textblock
12676 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4439
12677 msgid ""
12678 "List the files in C<directory> (relative to the root directory, there is no "
12679 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12680 msgstr ""
12681
12682 #. type: textblock
12683 #: ../fish/guestfish-actions.pod:2904
12684 msgid ""
12685 "This command is mostly useful for interactive sessions.  Programs should "
12686 "probably use L</readdir> instead."
12687 msgstr ""
12688
12689 #. type: =head2
12690 #: ../fish/guestfish-actions.pod:2907
12691 msgid "lsetxattr"
12692 msgstr ""
12693
12694 #. type: verbatim
12695 #: ../fish/guestfish-actions.pod:2909
12696 #, no-wrap
12697 msgid ""
12698 " lsetxattr xattr val vallen path\n"
12699 "\n"
12700 msgstr ""
12701
12702 #. type: textblock
12703 #: ../fish/guestfish-actions.pod:2911
12704 msgid ""
12705 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12706 "sets an extended attribute of the link itself."
12707 msgstr ""
12708
12709 #. type: =head2
12710 #: ../fish/guestfish-actions.pod:2915
12711 msgid "lstat"
12712 msgstr ""
12713
12714 #. type: verbatim
12715 #: ../fish/guestfish-actions.pod:2917
12716 #, no-wrap
12717 msgid ""
12718 " lstat path\n"
12719 "\n"
12720 msgstr ""
12721
12722 #. type: textblock
12723 #: ../fish/guestfish-actions.pod:2919 ../fish/guestfish-actions.pod:4817
12724 #: ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:7405
12725 msgid "Returns file information for the given C<path>."
12726 msgstr ""
12727
12728 #. type: textblock
12729 #: ../fish/guestfish-actions.pod:2921
12730 msgid ""
12731 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12732 "the link is stat-ed, not the file it refers to."
12733 msgstr ""
12734
12735 #. type: textblock
12736 #: ../fish/guestfish-actions.pod:2925 ../src/guestfs-actions.pod:4481
12737 msgid "This is the same as the C<lstat(2)> system call."
12738 msgstr ""
12739
12740 #. type: =head2
12741 #: ../fish/guestfish-actions.pod:2927
12742 msgid "lstatlist"
12743 msgstr ""
12744
12745 #. type: verbatim
12746 #: ../fish/guestfish-actions.pod:2929
12747 #, no-wrap
12748 msgid ""
12749 " lstatlist path 'names ...'\n"
12750 "\n"
12751 msgstr ""
12752
12753 #. type: textblock
12754 #: ../fish/guestfish-actions.pod:2931
12755 msgid ""
12756 "This call allows you to perform the L</lstat> operation on multiple files, "
12757 "where all files are in the directory C<path>.  C<names> is the list of files "
12758 "from this directory."
12759 msgstr ""
12760
12761 #. type: textblock
12762 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4500
12763 msgid ""
12764 "On return you get a list of stat structs, with a one-to-one correspondence "
12765 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12766 "then the C<ino> field of that structure is set to C<-1>."
12767 msgstr ""
12768
12769 #. type: textblock
12770 #: ../fish/guestfish-actions.pod:2940
12771 msgid ""
12772 "This call is intended for programs that want to efficiently list a directory "
12773 "contents without making many round-trips.  See also L</lxattrlist> for a "
12774 "similarly efficient call for getting extended attributes.  Very long "
12775 "directory listings might cause the protocol message size to be exceeded, "
12776 "causing this call to fail.  The caller must split up such requests into "
12777 "smaller groups of names."
12778 msgstr ""
12779
12780 #. type: =head2
12781 #: ../fish/guestfish-actions.pod:2948
12782 msgid "luks-add-key"
12783 msgstr ""
12784
12785 #. type: verbatim
12786 #: ../fish/guestfish-actions.pod:2950
12787 #, no-wrap
12788 msgid ""
12789 " luks-add-key device keyslot\n"
12790 "\n"
12791 msgstr ""
12792
12793 #. type: textblock
12794 #: ../fish/guestfish-actions.pod:2952 ../src/guestfs-actions.pod:4528
12795 msgid ""
12796 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12797 "existing key, and is used to access the device.  C<newkey> is the new key to "
12798 "add.  C<keyslot> is the key slot that will be replaced."
12799 msgstr ""
12800
12801 #. type: textblock
12802 #: ../fish/guestfish-actions.pod:2957
12803 msgid ""
12804 "Note that if C<keyslot> already contains a key, then this command will "
12805 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12806 msgstr ""
12807
12808 #. type: textblock
12809 #: ../fish/guestfish-actions.pod:2961 ../fish/guestfish-actions.pod:2983
12810 #: ../fish/guestfish-actions.pod:2993 ../fish/guestfish-actions.pod:3004
12811 #: ../fish/guestfish-actions.pod:3030 ../fish/guestfish-actions.pod:3040
12812 msgid ""
12813 "This command has one or more key or passphrase parameters.  Guestfish will "
12814 "prompt for these separately."
12815 msgstr ""
12816
12817 #. type: =head2
12818 #: ../fish/guestfish-actions.pod:2964
12819 msgid "luks-close"
12820 msgstr ""
12821
12822 #. type: verbatim
12823 #: ../fish/guestfish-actions.pod:2966
12824 #, no-wrap
12825 msgid ""
12826 " luks-close device\n"
12827 "\n"
12828 msgstr ""
12829
12830 #. type: textblock
12831 #: ../fish/guestfish-actions.pod:2968
12832 msgid ""
12833 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12834 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12835 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12836 "block device."
12837 msgstr ""
12838
12839 #. type: =head2
12840 #: ../fish/guestfish-actions.pod:2974
12841 msgid "luks-format"
12842 msgstr ""
12843
12844 #. type: verbatim
12845 #: ../fish/guestfish-actions.pod:2976
12846 #, no-wrap
12847 msgid ""
12848 " luks-format device keyslot\n"
12849 "\n"
12850 msgstr ""
12851
12852 #. type: textblock
12853 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4569
12854 msgid ""
12855 "This command erases existing data on C<device> and formats the device as a "
12856 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12857 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12858 msgstr ""
12859
12860 #. type: =head2
12861 #: ../fish/guestfish-actions.pod:2986
12862 msgid "luks-format-cipher"
12863 msgstr ""
12864
12865 #. type: verbatim
12866 #: ../fish/guestfish-actions.pod:2988
12867 #, no-wrap
12868 msgid ""
12869 " luks-format-cipher device keyslot cipher\n"
12870 "\n"
12871 msgstr ""
12872
12873 #. type: textblock
12874 #: ../fish/guestfish-actions.pod:2990
12875 msgid ""
12876 "This command is the same as L</luks-format> but it also allows you to set "
12877 "the C<cipher> used."
12878 msgstr ""
12879
12880 #. type: =head2
12881 #: ../fish/guestfish-actions.pod:2996
12882 msgid "luks-kill-slot"
12883 msgstr ""
12884
12885 #. type: verbatim
12886 #: ../fish/guestfish-actions.pod:2998
12887 #, no-wrap
12888 msgid ""
12889 " luks-kill-slot device keyslot\n"
12890 "\n"
12891 msgstr ""
12892
12893 #. type: textblock
12894 #: ../fish/guestfish-actions.pod:3000 ../src/guestfs-actions.pod:4610
12895 msgid ""
12896 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12897 "device C<device>.  C<key> must be one of the I<other> keys."
12898 msgstr ""
12899
12900 #. type: =head2
12901 #: ../fish/guestfish-actions.pod:3007
12902 msgid "luks-open"
12903 msgstr ""
12904
12905 #. type: verbatim
12906 #: ../fish/guestfish-actions.pod:3009
12907 #, no-wrap
12908 msgid ""
12909 " luks-open device mapname\n"
12910 "\n"
12911 msgstr ""
12912
12913 #. type: textblock
12914 #: ../fish/guestfish-actions.pod:3011 ../src/guestfs-actions.pod:4630
12915 msgid ""
12916 "This command opens a block device which has been encrypted according to the "
12917 "Linux Unified Key Setup (LUKS) standard."
12918 msgstr ""
12919
12920 #. type: textblock
12921 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4633
12922 msgid "C<device> is the encrypted block device or partition."
12923 msgstr ""
12924
12925 #. type: textblock
12926 #: ../fish/guestfish-actions.pod:3016 ../src/guestfs-actions.pod:4635
12927 msgid ""
12928 "The caller must supply one of the keys associated with the LUKS block "
12929 "device, in the C<key> parameter."
12930 msgstr ""
12931
12932 #. type: textblock
12933 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4638
12934 msgid ""
12935 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12936 "writes to this block device are decrypted from and encrypted to the "
12937 "underlying C<device> respectively."
12938 msgstr ""
12939
12940 #. type: textblock
12941 #: ../fish/guestfish-actions.pod:3023
12942 msgid ""
12943 "If this block device contains LVM volume groups, then calling L</vgscan> "
12944 "followed by L</vg-activate-all> will make them visible."
12945 msgstr ""
12946
12947 #. type: textblock
12948 #: ../fish/guestfish-actions.pod:3027
12949 msgid "Use L</list-dm-devices> to list all device mapper devices."
12950 msgstr ""
12951
12952 #. type: =head2
12953 #: ../fish/guestfish-actions.pod:3033
12954 msgid "luks-open-ro"
12955 msgstr ""
12956
12957 #. type: verbatim
12958 #: ../fish/guestfish-actions.pod:3035
12959 #, no-wrap
12960 msgid ""
12961 " luks-open-ro device mapname\n"
12962 "\n"
12963 msgstr ""
12964
12965 #. type: textblock
12966 #: ../fish/guestfish-actions.pod:3037
12967 msgid ""
12968 "This is the same as L</luks-open> except that a read-only mapping is created."
12969 msgstr ""
12970
12971 #. type: =head2
12972 #: ../fish/guestfish-actions.pod:3043
12973 msgid "lvcreate"
12974 msgstr ""
12975
12976 #. type: verbatim
12977 #: ../fish/guestfish-actions.pod:3045
12978 #, no-wrap
12979 msgid ""
12980 " lvcreate logvol volgroup mbytes\n"
12981 "\n"
12982 msgstr ""
12983
12984 #. type: textblock
12985 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4684
12986 msgid ""
12987 "This creates an LVM logical volume called C<logvol> on the volume group "
12988 "C<volgroup>, with C<size> megabytes."
12989 msgstr ""
12990
12991 #. type: =head2
12992 #: ../fish/guestfish-actions.pod:3050
12993 msgid "lvm-canonical-lv-name"
12994 msgstr ""
12995
12996 #. type: verbatim
12997 #: ../fish/guestfish-actions.pod:3052
12998 #, no-wrap
12999 msgid ""
13000 " lvm-canonical-lv-name lvname\n"
13001 "\n"
13002 msgstr ""
13003
13004 #. type: textblock
13005 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4697
13006 msgid ""
13007 "This converts alternative naming schemes for LVs that you might find to the "
13008 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13009 "LV>."
13010 msgstr ""
13011
13012 #. type: textblock
13013 #: ../fish/guestfish-actions.pod:3058 ../src/guestfs-actions.pod:4701
13014 msgid ""
13015 "This command returns an error if the C<lvname> parameter does not refer to a "
13016 "logical volume."
13017 msgstr ""
13018
13019 #. type: textblock
13020 #: ../fish/guestfish-actions.pod:3061
13021 msgid "See also L</is-lv>."
13022 msgstr ""
13023
13024 #. type: =head2
13025 #: ../fish/guestfish-actions.pod:3063
13026 msgid "lvm-clear-filter"
13027 msgstr ""
13028
13029 #. type: verbatim
13030 #: ../fish/guestfish-actions.pod:3065
13031 #, no-wrap
13032 msgid ""
13033 " lvm-clear-filter\n"
13034 "\n"
13035 msgstr ""
13036
13037 #. type: textblock
13038 #: ../fish/guestfish-actions.pod:3067
13039 msgid ""
13040 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
13041 "block device."
13042 msgstr ""
13043
13044 #. type: textblock
13045 #: ../fish/guestfish-actions.pod:3070 ../fish/guestfish-actions.pod:3098
13046 #: ../src/guestfs-actions.pod:4719 ../src/guestfs-actions.pod:4758
13047 msgid ""
13048 "This command also clears the LVM cache and performs a volume group scan."
13049 msgstr ""
13050
13051 #. type: =head2
13052 #: ../fish/guestfish-actions.pod:3073
13053 msgid "lvm-remove-all"
13054 msgstr ""
13055
13056 #. type: verbatim
13057 #: ../fish/guestfish-actions.pod:3075
13058 #, no-wrap
13059 msgid ""
13060 " lvm-remove-all\n"
13061 "\n"
13062 msgstr ""
13063
13064 #. type: textblock
13065 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4731
13066 msgid ""
13067 "This command removes all LVM logical volumes, volume groups and physical "
13068 "volumes."
13069 msgstr ""
13070
13071 #. type: =head2
13072 #: ../fish/guestfish-actions.pod:3080
13073 msgid "lvm-set-filter"
13074 msgstr ""
13075
13076 #. type: verbatim
13077 #: ../fish/guestfish-actions.pod:3082
13078 #, no-wrap
13079 msgid ""
13080 " lvm-set-filter 'devices ...'\n"
13081 "\n"
13082 msgstr ""
13083
13084 #. type: textblock
13085 #: ../fish/guestfish-actions.pod:3084 ../src/guestfs-actions.pod:4744
13086 msgid ""
13087 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13088 "block devices in the list C<devices>, and will ignore all other attached "
13089 "block devices."
13090 msgstr ""
13091
13092 #. type: textblock
13093 #: ../fish/guestfish-actions.pod:3088 ../src/guestfs-actions.pod:4748
13094 msgid ""
13095 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13096 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13097 "there are two types of duplication possible: either cloned PVs/VGs which "
13098 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13099 "same name.  In normal operation you cannot create this situation, but you "
13100 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13101 "inside the LVM metadata."
13102 msgstr ""
13103
13104 #. type: textblock
13105 #: ../fish/guestfish-actions.pod:3101 ../src/guestfs-actions.pod:4761
13106 msgid "You can filter whole block devices or individual partitions."
13107 msgstr ""
13108
13109 #. type: textblock
13110 #: ../fish/guestfish-actions.pod:3103 ../src/guestfs-actions.pod:4763
13111 msgid ""
13112 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13113 "filesystem), even if you are not filtering out that VG."
13114 msgstr ""
13115
13116 #. type: =head2
13117 #: ../fish/guestfish-actions.pod:3107
13118 msgid "lvremove"
13119 msgstr ""
13120
13121 #. type: verbatim
13122 #: ../fish/guestfish-actions.pod:3109
13123 #, no-wrap
13124 msgid ""
13125 " lvremove device\n"
13126 "\n"
13127 msgstr ""
13128
13129 #. type: textblock
13130 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4777
13131 msgid ""
13132 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13133 "LV, such as C</dev/VG/LV>."
13134 msgstr ""
13135
13136 #. type: textblock
13137 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4780
13138 msgid ""
13139 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13140 "dev/VG>."
13141 msgstr ""
13142
13143 #. type: =head2
13144 #: ../fish/guestfish-actions.pod:3117
13145 msgid "lvrename"
13146 msgstr ""
13147
13148 #. type: verbatim
13149 #: ../fish/guestfish-actions.pod:3119
13150 #, no-wrap
13151 msgid ""
13152 " lvrename logvol newlogvol\n"
13153 "\n"
13154 msgstr ""
13155
13156 #. type: textblock
13157 #: ../fish/guestfish-actions.pod:3121 ../src/guestfs-actions.pod:4794
13158 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13159 msgstr ""
13160
13161 #. type: =head2
13162 #: ../fish/guestfish-actions.pod:3123
13163 msgid "lvresize"
13164 msgstr ""
13165
13166 #. type: verbatim
13167 #: ../fish/guestfish-actions.pod:3125
13168 #, no-wrap
13169 msgid ""
13170 " lvresize device mbytes\n"
13171 "\n"
13172 msgstr ""
13173
13174 #. type: textblock
13175 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4807
13176 msgid ""
13177 "This resizes (expands or shrinks) an existing LVM logical volume to "
13178 "C<mbytes>.  When reducing, data in the reduced part is lost."
13179 msgstr ""
13180
13181 #. type: =head2
13182 #: ../fish/guestfish-actions.pod:3131
13183 msgid "lvresize-free"
13184 msgstr ""
13185
13186 #. type: verbatim
13187 #: ../fish/guestfish-actions.pod:3133
13188 #, no-wrap
13189 msgid ""
13190 " lvresize-free lv percent\n"
13191 "\n"
13192 msgstr ""
13193
13194 #. type: textblock
13195 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4822
13196 msgid ""
13197 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13198 "remaining free space in the volume group.  Commonly you would call this with "
13199 "pc = 100 which expands the logical volume as much as possible, using all "
13200 "remaining free space in the volume group."
13201 msgstr ""
13202
13203 #. type: =head2
13204 #: ../fish/guestfish-actions.pod:3141
13205 msgid "lvs"
13206 msgstr ""
13207
13208 #. type: verbatim
13209 #: ../fish/guestfish-actions.pod:3143
13210 #, no-wrap
13211 msgid ""
13212 " lvs\n"
13213 "\n"
13214 msgstr ""
13215
13216 #. type: textblock
13217 #: ../fish/guestfish-actions.pod:3145 ../src/guestfs-actions.pod:4837
13218 msgid ""
13219 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13220 "(8)> command."
13221 msgstr ""
13222
13223 #. type: textblock
13224 #: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4840
13225 msgid ""
13226 "This returns a list of the logical volume device names (eg. C</dev/"
13227 "VolGroup00/LogVol00>)."
13228 msgstr ""
13229
13230 #. type: textblock
13231 #: ../fish/guestfish-actions.pod:3151
13232 msgid "See also L</lvs-full>, L</list-filesystems>."
13233 msgstr ""
13234
13235 #. type: =head2
13236 #: ../fish/guestfish-actions.pod:3153
13237 msgid "lvs-full"
13238 msgstr ""
13239
13240 #. type: verbatim
13241 #: ../fish/guestfish-actions.pod:3155
13242 #, no-wrap
13243 msgid ""
13244 " lvs-full\n"
13245 "\n"
13246 msgstr ""
13247
13248 #. type: textblock
13249 #: ../fish/guestfish-actions.pod:3157 ../src/guestfs-actions.pod:4856
13250 msgid ""
13251 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13252 "(8)> command.  The \"full\" version includes all fields."
13253 msgstr ""
13254
13255 #. type: =head2
13256 #: ../fish/guestfish-actions.pod:3160
13257 msgid "lvuuid"
13258 msgstr ""
13259
13260 #. type: verbatim
13261 #: ../fish/guestfish-actions.pod:3162
13262 #, no-wrap
13263 msgid ""
13264 " lvuuid device\n"
13265 "\n"
13266 msgstr ""
13267
13268 #. type: textblock
13269 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4871
13270 msgid "This command returns the UUID of the LVM LV C<device>."
13271 msgstr ""
13272
13273 #. type: =head2
13274 #: ../fish/guestfish-actions.pod:3166
13275 msgid "lxattrlist"
13276 msgstr ""
13277
13278 #. type: verbatim
13279 #: ../fish/guestfish-actions.pod:3168
13280 #, no-wrap
13281 msgid ""
13282 " lxattrlist path 'names ...'\n"
13283 "\n"
13284 msgstr ""
13285
13286 #. type: textblock
13287 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4885
13288 msgid ""
13289 "This call allows you to get the extended attributes of multiple files, where "
13290 "all files are in the directory C<path>.  C<names> is the list of files from "
13291 "this directory."
13292 msgstr ""
13293
13294 #. type: textblock
13295 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4889
13296 msgid ""
13297 "On return you get a flat list of xattr structs which must be interpreted "
13298 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13299 "C<attrval> in this struct is zero-length to indicate there was an error "
13300 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13301 "number (the number of following attributes for this file, which could be C<"
13302 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13303 "for the first named file.  This repeats for the second and subsequent files."
13304 msgstr ""
13305
13306 #. type: textblock
13307 #: ../fish/guestfish-actions.pod:3184
13308 msgid ""
13309 "This call is intended for programs that want to efficiently list a directory "
13310 "contents without making many round-trips.  See also L</lstatlist> for a "
13311 "similarly efficient call for getting standard stats.  Very long directory "
13312 "listings might cause the protocol message size to be exceeded, causing this "
13313 "call to fail.  The caller must split up such requests into smaller groups of "
13314 "names."
13315 msgstr ""
13316
13317 #. type: =head2
13318 #: ../fish/guestfish-actions.pod:3192
13319 msgid "md-create"
13320 msgstr ""
13321
13322 #. type: verbatim
13323 #: ../fish/guestfish-actions.pod:3194
13324 #, no-wrap
13325 msgid ""
13326 " md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..]\n"
13327 "\n"
13328 msgstr ""
13329
13330 #. type: textblock
13331 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4932
13332 msgid ""
13333 "Create a Linux md (RAID) device named C<name> on the devices in the list "
13334 "C<devices>."
13335 msgstr ""
13336
13337 #. type: =item
13338 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4939
13339 msgid "C<missingbitmap>"
13340 msgstr ""
13341
13342 #. type: textblock
13343 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4941
13344 msgid ""
13345 "A bitmap of missing devices.  If a bit is set it means that a missing device "
13346 "is added to the array.  The least significant bit corresponds to the first "
13347 "device in the array."
13348 msgstr ""
13349
13350 #. type: textblock
13351 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4945
13352 msgid "As examples:"
13353 msgstr ""
13354
13355 #. type: textblock
13356 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4947
13357 msgid ""
13358 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
13359 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
13360 msgstr ""
13361
13362 #. type: textblock
13363 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4950
13364 msgid ""
13365 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
13366 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
13367 msgstr ""
13368
13369 #. type: textblock
13370 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4953
13371 msgid "This defaults to C<0> (no missing devices)."
13372 msgstr ""
13373
13374 #. type: textblock
13375 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4955
13376 msgid ""
13377 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
13378 "equal C<nrdevices> + C<spare>."
13379 msgstr ""
13380
13381 #. type: =item
13382 #: ../fish/guestfish-actions.pod:3222 ../src/guestfs-actions.pod:4958
13383 msgid "C<nrdevices>"
13384 msgstr ""
13385
13386 #. type: textblock
13387 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:4960
13388 msgid "The number of active RAID devices."
13389 msgstr ""
13390
13391 #. type: textblock
13392 #: ../fish/guestfish-actions.pod:3226 ../src/guestfs-actions.pod:4962
13393 msgid ""
13394 "If not set, this defaults to the length of C<devices> plus the number of "
13395 "bits set in C<missingbitmap>."
13396 msgstr ""
13397
13398 #. type: =item
13399 #: ../fish/guestfish-actions.pod:3229 ../src/guestfs-actions.pod:4965
13400 msgid "C<spare>"
13401 msgstr ""
13402
13403 #. type: textblock
13404 #: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4967
13405 msgid "The number of spare devices."
13406 msgstr ""
13407
13408 #. type: textblock
13409 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4969
13410 msgid "If not set, this defaults to C<0>."
13411 msgstr ""
13412
13413 #. type: =item
13414 #: ../fish/guestfish-actions.pod:3235 ../src/guestfs-actions.pod:4971
13415 msgid "C<chunk>"
13416 msgstr ""
13417
13418 #. type: textblock
13419 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4973
13420 msgid "The chunk size in bytes."
13421 msgstr ""
13422
13423 #. type: =item
13424 #: ../fish/guestfish-actions.pod:3239 ../fish/guestfish-actions.pod:3261
13425 #: ../src/guestfs-actions.pod:4975 ../src/guestfs-actions.pod:5023
13426 msgid "C<level>"
13427 msgstr ""
13428
13429 #. type: textblock
13430 #: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4977
13431 msgid ""
13432 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
13433 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
13434 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
13435 "added in future."
13436 msgstr ""
13437
13438 #. type: textblock
13439 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4982
13440 msgid "If not set, this defaults to C<raid1>."
13441 msgstr ""
13442
13443 #. type: =head2
13444 #: ../fish/guestfish-actions.pod:3252
13445 msgid "md-detail"
13446 msgstr ""
13447
13448 #. type: verbatim
13449 #: ../fish/guestfish-actions.pod:3254
13450 #, no-wrap
13451 msgid ""
13452 " md-detail md\n"
13453 "\n"
13454 msgstr ""
13455
13456 #. type: textblock
13457 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:5018
13458 msgid ""
13459 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
13460 "are usually present in the returned hash. Other fields may also be present."
13461 msgstr ""
13462
13463 #. type: textblock
13464 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:5025
13465 msgid "The raid level of the MD device."
13466 msgstr ""
13467
13468 #. type: =item
13469 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5027
13470 msgid "C<devices>"
13471 msgstr ""
13472
13473 #. type: textblock
13474 #: ../fish/guestfish-actions.pod:3267 ../src/guestfs-actions.pod:5029
13475 msgid "The number of underlying devices in the MD device."
13476 msgstr ""
13477
13478 #. type: =item
13479 #: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5031
13480 msgid "C<metadata>"
13481 msgstr ""
13482
13483 #. type: textblock
13484 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5033
13485 msgid "The metadata version used."
13486 msgstr ""
13487
13488 #. type: =item
13489 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:5035
13490 msgid "C<uuid>"
13491 msgstr ""
13492
13493 #. type: textblock
13494 #: ../fish/guestfish-actions.pod:3275 ../src/guestfs-actions.pod:5037
13495 msgid "The UUID of the MD device."
13496 msgstr ""
13497
13498 #. type: textblock
13499 #: ../fish/guestfish-actions.pod:3279 ../src/guestfs-actions.pod:5041
13500 msgid "The name of the MD device."
13501 msgstr ""
13502
13503 #. type: =head2
13504 #: ../fish/guestfish-actions.pod:3283
13505 msgid "md-stop"
13506 msgstr ""
13507
13508 #. type: verbatim
13509 #: ../fish/guestfish-actions.pod:3285
13510 #, no-wrap
13511 msgid ""
13512 " md-stop md\n"
13513 "\n"
13514 msgstr ""
13515
13516 #. type: textblock
13517 #: ../fish/guestfish-actions.pod:3287 ../src/guestfs-actions.pod:5057
13518 msgid ""
13519 "This command deactivates the MD array named C<md>.  The device is stopped, "
13520 "but it is not destroyed or zeroed."
13521 msgstr ""
13522
13523 #. type: =head2
13524 #: ../fish/guestfish-actions.pod:3290
13525 msgid "mkdir"
13526 msgstr ""
13527
13528 #. type: verbatim
13529 #: ../fish/guestfish-actions.pod:3292
13530 #, no-wrap
13531 msgid ""
13532 " mkdir path\n"
13533 "\n"
13534 msgstr ""
13535
13536 #. type: textblock
13537 #: ../fish/guestfish-actions.pod:3294 ../src/guestfs-actions.pod:5068
13538 msgid "Create a directory named C<path>."
13539 msgstr ""
13540
13541 #. type: =head2
13542 #: ../fish/guestfish-actions.pod:3296
13543 msgid "mkdir-mode"
13544 msgstr ""
13545
13546 #. type: verbatim
13547 #: ../fish/guestfish-actions.pod:3298
13548 #, no-wrap
13549 msgid ""
13550 " mkdir-mode path mode\n"
13551 "\n"
13552 msgstr ""
13553
13554 #. type: textblock
13555 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5081
13556 msgid ""
13557 "This command creates a directory, setting the initial permissions of the "
13558 "directory to C<mode>."
13559 msgstr ""
13560
13561 #. type: textblock
13562 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5084
13563 msgid ""
13564 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13565 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13566 "other ways."
13567 msgstr ""
13568
13569 #. type: textblock
13570 #: ../fish/guestfish-actions.pod:3307
13571 msgid "See also L</mkdir>, L</umask>"
13572 msgstr ""
13573
13574 #. type: =head2
13575 #: ../fish/guestfish-actions.pod:3309
13576 msgid "mkdir-p"
13577 msgstr ""
13578
13579 #. type: verbatim
13580 #: ../fish/guestfish-actions.pod:3311
13581 #, no-wrap
13582 msgid ""
13583 " mkdir-p path\n"
13584 "\n"
13585 msgstr ""
13586
13587 #. type: textblock
13588 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5100
13589 msgid ""
13590 "Create a directory named C<path>, creating any parent directories as "
13591 "necessary.  This is like the C<mkdir -p> shell command."
13592 msgstr ""
13593
13594 #. type: =head2
13595 #: ../fish/guestfish-actions.pod:3316
13596 msgid "mkdtemp"
13597 msgstr ""
13598
13599 #. type: verbatim
13600 #: ../fish/guestfish-actions.pod:3318
13601 #, no-wrap
13602 msgid ""
13603 " mkdtemp template\n"
13604 "\n"
13605 msgstr ""
13606
13607 #. type: textblock
13608 #: ../fish/guestfish-actions.pod:3320 ../src/guestfs-actions.pod:5113
13609 msgid ""
13610 "This command creates a temporary directory.  The C<template> parameter "
13611 "should be a full pathname for the temporary directory name with the final "
13612 "six characters being \"XXXXXX\"."
13613 msgstr ""
13614
13615 #. type: textblock
13616 #: ../fish/guestfish-actions.pod:3325 ../src/guestfs-actions.pod:5118
13617 msgid ""
13618 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13619 "being suitable for Windows filesystems."
13620 msgstr ""
13621
13622 #. type: textblock
13623 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5121
13624 msgid "The name of the temporary directory that was created is returned."
13625 msgstr ""
13626
13627 #. type: textblock
13628 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5124
13629 msgid "The temporary directory is created with mode 0700 and is owned by root."
13630 msgstr ""
13631
13632 #. type: textblock
13633 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5127
13634 msgid ""
13635 "The caller is responsible for deleting the temporary directory and its "
13636 "contents after use."
13637 msgstr ""
13638
13639 #. type: textblock
13640 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5130
13641 msgid "See also: L<mkdtemp(3)>"
13642 msgstr ""
13643
13644 #. type: =head2
13645 #: ../fish/guestfish-actions.pod:3339
13646 msgid "mke2fs-J"
13647 msgstr ""
13648
13649 #. type: verbatim
13650 #: ../fish/guestfish-actions.pod:3341
13651 #, no-wrap
13652 msgid ""
13653 " mke2fs-J fstype blocksize device journal\n"
13654 "\n"
13655 msgstr ""
13656
13657 #. type: textblock
13658 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5146
13659 msgid ""
13660 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13661 "C<journal>.  It is equivalent to the command:"
13662 msgstr ""
13663
13664 #. type: verbatim
13665 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5150
13666 #, no-wrap
13667 msgid ""
13668 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13669 "\n"
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../fish/guestfish-actions.pod:3349
13674 msgid "See also L</mke2journal>."
13675 msgstr ""
13676
13677 #. type: =head2
13678 #: ../fish/guestfish-actions.pod:3351
13679 msgid "mke2fs-JL"
13680 msgstr ""
13681
13682 #. type: verbatim
13683 #: ../fish/guestfish-actions.pod:3353
13684 #, no-wrap
13685 msgid ""
13686 " mke2fs-JL fstype blocksize device label\n"
13687 "\n"
13688 msgstr ""
13689
13690 #. type: textblock
13691 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5167
13692 msgid ""
13693 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13694 "the journal labeled C<label>."
13695 msgstr ""
13696
13697 #. type: textblock
13698 #: ../fish/guestfish-actions.pod:3358
13699 msgid "See also L</mke2journal-L>."
13700 msgstr ""
13701
13702 #. type: =head2
13703 #: ../fish/guestfish-actions.pod:3360
13704 msgid "mke2fs-JU"
13705 msgstr ""
13706
13707 #. type: verbatim
13708 #: ../fish/guestfish-actions.pod:3362
13709 #, no-wrap
13710 msgid ""
13711 " mke2fs-JU fstype blocksize device uuid\n"
13712 "\n"
13713 msgstr ""
13714
13715 #. type: textblock
13716 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5185
13717 msgid ""
13718 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13719 "the journal with UUID C<uuid>."
13720 msgstr ""
13721
13722 #. type: textblock
13723 #: ../fish/guestfish-actions.pod:3367
13724 msgid "See also L</mke2journal-U>."
13725 msgstr ""
13726
13727 #. type: =head2
13728 #: ../fish/guestfish-actions.pod:3369
13729 msgid "mke2journal"
13730 msgstr ""
13731
13732 #. type: verbatim
13733 #: ../fish/guestfish-actions.pod:3371
13734 #, no-wrap
13735 msgid ""
13736 " mke2journal blocksize device\n"
13737 "\n"
13738 msgstr ""
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:3373 ../src/guestfs-actions.pod:5201
13742 msgid ""
13743 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13744 "command:"
13745 msgstr ""
13746
13747 #. type: verbatim
13748 #: ../fish/guestfish-actions.pod:3376 ../src/guestfs-actions.pod:5204
13749 #, no-wrap
13750 msgid ""
13751 " mke2fs -O journal_dev -b blocksize device\n"
13752 "\n"
13753 msgstr ""
13754
13755 #. type: =head2
13756 #: ../fish/guestfish-actions.pod:3378
13757 msgid "mke2journal-L"
13758 msgstr ""
13759
13760 #. type: verbatim
13761 #: ../fish/guestfish-actions.pod:3380
13762 #, no-wrap
13763 msgid ""
13764 " mke2journal-L blocksize label device\n"
13765 "\n"
13766 msgstr ""
13767
13768 #. type: textblock
13769 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5218
13770 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13771 msgstr ""
13772
13773 #. type: =head2
13774 #: ../fish/guestfish-actions.pod:3384
13775 msgid "mke2journal-U"
13776 msgstr ""
13777
13778 #. type: verbatim
13779 #: ../fish/guestfish-actions.pod:3386
13780 #, no-wrap
13781 msgid ""
13782 " mke2journal-U blocksize uuid device\n"
13783 "\n"
13784 msgstr ""
13785
13786 #. type: textblock
13787 #: ../fish/guestfish-actions.pod:3388 ../src/guestfs-actions.pod:5232
13788 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13789 msgstr ""
13790
13791 #. type: =head2
13792 #: ../fish/guestfish-actions.pod:3390
13793 msgid "mkfifo"
13794 msgstr ""
13795
13796 #. type: verbatim
13797 #: ../fish/guestfish-actions.pod:3392
13798 #, no-wrap
13799 msgid ""
13800 " mkfifo mode path\n"
13801 "\n"
13802 msgstr ""
13803
13804 #. type: textblock
13805 #: ../fish/guestfish-actions.pod:3394
13806 msgid ""
13807 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13808 "is just a convenient wrapper around L</mknod>."
13809 msgstr ""
13810
13811 #. type: =head2
13812 #: ../fish/guestfish-actions.pod:3400
13813 msgid "mkfs"
13814 msgstr ""
13815
13816 #. type: verbatim
13817 #: ../fish/guestfish-actions.pod:3402
13818 #, no-wrap
13819 msgid ""
13820 " mkfs fstype device\n"
13821 "\n"
13822 msgstr ""
13823
13824 #. type: textblock
13825 #: ../fish/guestfish-actions.pod:3404 ../src/guestfs-actions.pod:5262
13826 msgid ""
13827 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13828 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13829 msgstr ""
13830
13831 #. type: =head2
13832 #: ../fish/guestfish-actions.pod:3408
13833 msgid "mkfs-b"
13834 msgstr ""
13835
13836 #. type: verbatim
13837 #: ../fish/guestfish-actions.pod:3410
13838 #, no-wrap
13839 msgid ""
13840 " mkfs-b fstype blocksize device\n"
13841 "\n"
13842 msgstr ""
13843
13844 #. type: textblock
13845 #: ../fish/guestfish-actions.pod:3412
13846 msgid ""
13847 "This call is similar to L</mkfs>, but it allows you to control the block "
13848 "size of the resulting filesystem.  Supported block sizes depend on the "
13849 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13850 msgstr ""
13851
13852 #. type: textblock
13853 #: ../fish/guestfish-actions.pod:3417 ../fish/guestfish-actions.pod:3444
13854 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5328
13855 msgid ""
13856 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13857 "cluster size."
13858 msgstr ""
13859
13860 #. type: textblock
13861 #: ../fish/guestfish-actions.pod:3420
13862 msgid ""
13863 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13864 "instead."
13865 msgstr ""
13866
13867 #. type: =head2
13868 #: ../fish/guestfish-actions.pod:3427
13869 msgid "mkfs-opts"
13870 msgstr ""
13871
13872 #. type: verbatim
13873 #: ../fish/guestfish-actions.pod:3429
13874 #, no-wrap
13875 msgid ""
13876 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
13877 "\n"
13878 msgstr ""
13879
13880 #. type: textblock
13881 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5315
13882 msgid ""
13883 "This function creates a filesystem on C<device>.  The filesystem type is "
13884 "C<fstype>, for example C<ext3>."
13885 msgstr ""
13886
13887 #. type: =item
13888 #: ../fish/guestfish-actions.pod:3438 ../src/guestfs-actions.pod:5322
13889 msgid "C<blocksize>"
13890 msgstr ""
13891
13892 #. type: textblock
13893 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5324
13894 msgid ""
13895 "The filesystem block size.  Supported block sizes depend on the filesystem "
13896 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13897 "filesystems."
13898 msgstr ""
13899
13900 #. type: textblock
13901 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5331
13902 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13903 msgstr ""
13904
13905 #. type: =item
13906 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5333
13907 msgid "C<features>"
13908 msgstr ""
13909
13910 #. type: textblock
13911 #: ../fish/guestfish-actions.pod:3451 ../src/guestfs-actions.pod:5335
13912 msgid "This passes the I<-O> parameter to the external mkfs program."
13913 msgstr ""
13914
13915 #. type: textblock
13916 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5337
13917 msgid ""
13918 "For certain filesystem types, this allows extra filesystem features to be "
13919 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13920 msgstr ""
13921
13922 #. type: textblock
13923 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5341
13924 msgid ""
13925 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13926 "type."
13927 msgstr ""
13928
13929 #. type: =item
13930 #: ../fish/guestfish-actions.pod:3460 ../src/guestfs-actions.pod:5344
13931 msgid "C<inode>"
13932 msgstr ""
13933
13934 #. type: textblock
13935 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5346
13936 msgid ""
13937 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13938 "sets the inode size (only for ext2/3/4 filesystems at present)."
13939 msgstr ""
13940
13941 #. type: =item
13942 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5349
13943 msgid "C<sectorsize>"
13944 msgstr ""
13945
13946 #. type: textblock
13947 #: ../fish/guestfish-actions.pod:3467 ../src/guestfs-actions.pod:5351
13948 msgid ""
13949 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13950 "sets sector size for ufs filesystem."
13951 msgstr ""
13952
13953 #. type: =head2
13954 #: ../fish/guestfish-actions.pod:3474
13955 msgid "mkmountpoint"
13956 msgstr ""
13957
13958 #. type: verbatim
13959 #: ../fish/guestfish-actions.pod:3476
13960 #, no-wrap
13961 msgid ""
13962 " mkmountpoint exemptpath\n"
13963 "\n"
13964 msgstr ""
13965
13966 #. type: textblock
13967 #: ../fish/guestfish-actions.pod:3478
13968 msgid ""
13969 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13970 "to create extra mountpoints before mounting the first filesystem."
13971 msgstr ""
13972
13973 #. type: textblock
13974 #: ../fish/guestfish-actions.pod:3482 ../src/guestfs-actions.pod:5394
13975 msgid ""
13976 "These calls are I<only> necessary in some very limited circumstances, mainly "
13977 "the case where you want to mount a mix of unrelated and/or read-only "
13978 "filesystems together."
13979 msgstr ""
13980
13981 #. type: textblock
13982 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5398
13983 msgid ""
13984 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13985 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13986 "inside that.  You can unpack this as follows in guestfish:"
13987 msgstr ""
13988
13989 #. type: verbatim
13990 #: ../fish/guestfish-actions.pod:3491 ../src/guestfs-actions.pod:5403
13991 #, no-wrap
13992 msgid ""
13993 " add-ro Fedora-11-i686-Live.iso\n"
13994 " run\n"
13995 " mkmountpoint /cd\n"
13996 " mkmountpoint /sqsh\n"
13997 " mkmountpoint /ext3fs\n"
13998 " mount /dev/sda /cd\n"
13999 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14000 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14001 "\n"
14002 msgstr ""
14003
14004 #. type: textblock
14005 #: ../fish/guestfish-actions.pod:3500 ../src/guestfs-actions.pod:5412
14006 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14007 msgstr ""
14008
14009 #. type: textblock
14010 #: ../fish/guestfish-actions.pod:3502
14011 msgid ""
14012 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
14013 "unexpected errors if you try to mix these calls.  It is safest to manually "
14014 "unmount filesystems and remove mountpoints after use."
14015 msgstr ""
14016
14017 #. type: textblock
14018 #: ../fish/guestfish-actions.pod:3506
14019 msgid ""
14020 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
14021 "for this to work for manual mountpoints, you must ensure that the innermost "
14022 "mountpoints have the longest pathnames, as in the example code above."
14023 msgstr ""
14024
14025 #. type: textblock
14026 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5423
14027 msgid ""
14028 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14029 msgstr ""
14030
14031 #. type: textblock
14032 #: ../fish/guestfish-actions.pod:3513
14033 msgid ""
14034 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
14035 "L</umount-all> to be called when the handle is closed which can also trigger "
14036 "these issues."
14037 msgstr ""
14038
14039 #. type: =head2
14040 #: ../fish/guestfish-actions.pod:3517
14041 msgid "mknod"
14042 msgstr ""
14043
14044 #. type: verbatim
14045 #: ../fish/guestfish-actions.pod:3519
14046 #, no-wrap
14047 msgid ""
14048 " mknod mode devmajor devminor path\n"
14049 "\n"
14050 msgstr ""
14051
14052 #. type: textblock
14053 #: ../fish/guestfish-actions.pod:3521 ../src/guestfs-actions.pod:5442
14054 msgid ""
14055 "This call creates block or character special devices, or named pipes (FIFOs)."
14056 msgstr ""
14057
14058 #. type: textblock
14059 #: ../fish/guestfish-actions.pod:3524 ../src/guestfs-actions.pod:5445
14060 msgid ""
14061 "The C<mode> parameter should be the mode, using the standard constants.  "
14062 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14063 "used when creating block and character special devices."
14064 msgstr ""
14065
14066 #. type: textblock
14067 #: ../fish/guestfish-actions.pod:3529
14068 msgid ""
14069 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14070 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14071 "regular file).  These constants are available in the standard Linux header "
14072 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
14073 "wrappers around this command which bitwise OR in the appropriate constant "
14074 "for you."
14075 msgstr ""
14076
14077 #. type: =head2
14078 #: ../fish/guestfish-actions.pod:3539
14079 msgid "mknod-b"
14080 msgstr ""
14081
14082 #. type: verbatim
14083 #: ../fish/guestfish-actions.pod:3541
14084 #, no-wrap
14085 msgid ""
14086 " mknod-b mode devmajor devminor path\n"
14087 "\n"
14088 msgstr ""
14089
14090 #. type: textblock
14091 #: ../fish/guestfish-actions.pod:3543
14092 msgid ""
14093 "This call creates a block device node called C<path> with mode C<mode> and "
14094 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14095 "wrapper around L</mknod>."
14096 msgstr ""
14097
14098 #. type: =head2
14099 #: ../fish/guestfish-actions.pod:3549
14100 msgid "mknod-c"
14101 msgstr ""
14102
14103 #. type: verbatim
14104 #: ../fish/guestfish-actions.pod:3551
14105 #, no-wrap
14106 msgid ""
14107 " mknod-c mode devmajor devminor path\n"
14108 "\n"
14109 msgstr ""
14110
14111 #. type: textblock
14112 #: ../fish/guestfish-actions.pod:3553
14113 msgid ""
14114 "This call creates a char device node called C<path> with mode C<mode> and "
14115 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14116 "wrapper around L</mknod>."
14117 msgstr ""
14118
14119 #. type: =head2
14120 #: ../fish/guestfish-actions.pod:3559
14121 msgid "mkswap"
14122 msgstr ""
14123
14124 #. type: verbatim
14125 #: ../fish/guestfish-actions.pod:3561
14126 #, no-wrap
14127 msgid ""
14128 " mkswap device\n"
14129 "\n"
14130 msgstr ""
14131
14132 #. type: textblock
14133 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5508
14134 msgid "Create a swap partition on C<device>."
14135 msgstr ""
14136
14137 #. type: =head2
14138 #: ../fish/guestfish-actions.pod:3565
14139 msgid "mkswap-L"
14140 msgstr ""
14141
14142 #. type: verbatim
14143 #: ../fish/guestfish-actions.pod:3567
14144 #, no-wrap
14145 msgid ""
14146 " mkswap-L label device\n"
14147 "\n"
14148 msgstr ""
14149
14150 #. type: textblock
14151 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5521
14152 msgid "Create a swap partition on C<device> with label C<label>."
14153 msgstr ""
14154
14155 #. type: textblock
14156 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5523
14157 msgid ""
14158 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14159 "sda>), just to a partition.  This appears to be a limitation of the kernel "
14160 "or swap tools."
14161 msgstr ""
14162
14163 #. type: =head2
14164 #: ../fish/guestfish-actions.pod:3575
14165 msgid "mkswap-U"
14166 msgstr ""
14167
14168 #. type: verbatim
14169 #: ../fish/guestfish-actions.pod:3577
14170 #, no-wrap
14171 msgid ""
14172 " mkswap-U uuid device\n"
14173 "\n"
14174 msgstr ""
14175
14176 #. type: textblock
14177 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5538
14178 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14179 msgstr ""
14180
14181 #. type: =head2
14182 #: ../fish/guestfish-actions.pod:3581
14183 msgid "mkswap-file"
14184 msgstr ""
14185
14186 #. type: verbatim
14187 #: ../fish/guestfish-actions.pod:3583
14188 #, no-wrap
14189 msgid ""
14190 " mkswap-file path\n"
14191 "\n"
14192 msgstr ""
14193
14194 #. type: textblock
14195 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5550
14196 msgid "Create a swap file."
14197 msgstr ""
14198
14199 #. type: textblock
14200 #: ../fish/guestfish-actions.pod:3587
14201 msgid ""
14202 "This command just writes a swap file signature to an existing file.  To "
14203 "create the file itself, use something like L</fallocate>."
14204 msgstr ""
14205
14206 #. type: =head2
14207 #: ../fish/guestfish-actions.pod:3590
14208 msgid "modprobe"
14209 msgstr ""
14210
14211 #. type: verbatim
14212 #: ../fish/guestfish-actions.pod:3592
14213 #, no-wrap
14214 msgid ""
14215 " modprobe modulename\n"
14216 "\n"
14217 msgstr ""
14218
14219 #. type: textblock
14220 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5565
14221 msgid "This loads a kernel module in the appliance."
14222 msgstr ""
14223
14224 #. type: textblock
14225 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5567
14226 msgid ""
14227 "The kernel module must have been whitelisted when libguestfs was built (see "
14228 "C<appliance/kmod.whitelist.in> in the source)."
14229 msgstr ""
14230
14231 #. type: =head2
14232 #: ../fish/guestfish-actions.pod:3599
14233 msgid "mount"
14234 msgstr ""
14235
14236 #. type: verbatim
14237 #: ../fish/guestfish-actions.pod:3601
14238 #, no-wrap
14239 msgid ""
14240 " mount device mountpoint\n"
14241 "\n"
14242 msgstr ""
14243
14244 #. type: textblock
14245 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5581
14246 msgid ""
14247 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14248 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14249 "those block devices contain partitions, they will have the usual names (eg. "
14250 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14251 msgstr ""
14252
14253 #. type: textblock
14254 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5587
14255 msgid ""
14256 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14257 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14258 "mounted on directories which already exist."
14259 msgstr ""
14260
14261 #. type: textblock
14262 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5592
14263 msgid ""
14264 "The mounted filesystem is writable, if we have sufficient permissions on the "
14265 "underlying device."
14266 msgstr ""
14267
14268 #. type: textblock
14269 #: ../fish/guestfish-actions.pod:3617
14270 msgid ""
14271 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
14272 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
14273 "problems for users.  If your program might need to work with older versions "
14274 "of libguestfs, use L</mount-options> instead (using an empty string for the "
14275 "first parameter if you don't want any options)."
14276 msgstr ""
14277
14278 #. type: =head2
14279 #: ../fish/guestfish-actions.pod:3624
14280 msgid "mount-9p"
14281 msgstr ""
14282
14283 #. type: verbatim
14284 #: ../fish/guestfish-actions.pod:3626
14285 #, no-wrap
14286 msgid ""
14287 " mount-9p mounttag mountpoint [options:..]\n"
14288 "\n"
14289 msgstr ""
14290
14291 #. type: textblock
14292 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5621
14293 msgid ""
14294 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
14295 "C<mountpoint>."
14296 msgstr ""
14297
14298 #. type: textblock
14299 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5624
14300 msgid ""
14301 "If required, C<trans=virtio> will be automatically added to the options.  "
14302 "Any other options required can be passed in the optional C<options> "
14303 "parameter."
14304 msgstr ""
14305
14306 #. type: =head2
14307 #: ../fish/guestfish-actions.pod:3637
14308 msgid "mount-loop"
14309 msgstr ""
14310
14311 #. type: verbatim
14312 #: ../fish/guestfish-actions.pod:3639
14313 #, no-wrap
14314 msgid ""
14315 " mount-loop file mountpoint\n"
14316 "\n"
14317 msgstr ""
14318
14319 #. type: textblock
14320 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5663
14321 msgid ""
14322 "This command lets you mount C<file> (a filesystem image in a file) on a "
14323 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14324 "mountpoint>."
14325 msgstr ""
14326
14327 #. type: =head2
14328 #: ../fish/guestfish-actions.pod:3645
14329 msgid "mount-options"
14330 msgstr ""
14331
14332 #. type: verbatim
14333 #: ../fish/guestfish-actions.pod:3647
14334 #, no-wrap
14335 msgid ""
14336 " mount-options options device mountpoint\n"
14337 "\n"
14338 msgstr ""
14339
14340 #. type: textblock
14341 #: ../fish/guestfish-actions.pod:3649
14342 msgid ""
14343 "This is the same as the L</mount> command, but it allows you to set the "
14344 "mount options as for the L<mount(8)> I<-o> flag."
14345 msgstr ""
14346
14347 #. type: textblock
14348 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5683
14349 msgid ""
14350 "If the C<options> parameter is an empty string, then no options are passed "
14351 "(all options default to whatever the filesystem uses)."
14352 msgstr ""
14353
14354 #. type: =head2
14355 #: ../fish/guestfish-actions.pod:3657
14356 msgid "mount-ro"
14357 msgstr ""
14358
14359 #. type: verbatim
14360 #: ../fish/guestfish-actions.pod:3659
14361 #, no-wrap
14362 msgid ""
14363 " mount-ro device mountpoint\n"
14364 "\n"
14365 msgstr ""
14366
14367 #. type: textblock
14368 #: ../fish/guestfish-actions.pod:3661
14369 msgid ""
14370 "This is the same as the L</mount> command, but it mounts the filesystem with "
14371 "the read-only (I<-o ro>) flag."
14372 msgstr ""
14373
14374 #. type: =head2
14375 #: ../fish/guestfish-actions.pod:3664
14376 msgid "mount-vfs"
14377 msgstr ""
14378
14379 #. type: verbatim
14380 #: ../fish/guestfish-actions.pod:3666
14381 #, no-wrap
14382 msgid ""
14383 " mount-vfs options vfstype device mountpoint\n"
14384 "\n"
14385 msgstr ""
14386
14387 #. type: textblock
14388 #: ../fish/guestfish-actions.pod:3668
14389 msgid ""
14390 "This is the same as the L</mount> command, but it allows you to set both the "
14391 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
14392 msgstr ""
14393
14394 #. type: =head2
14395 #: ../fish/guestfish-actions.pod:3672
14396 msgid "mountpoints"
14397 msgstr ""
14398
14399 #. type: verbatim
14400 #: ../fish/guestfish-actions.pod:3674
14401 #, no-wrap
14402 msgid ""
14403 " mountpoints\n"
14404 "\n"
14405 msgstr ""
14406
14407 #. type: textblock
14408 #: ../fish/guestfish-actions.pod:3676
14409 msgid ""
14410 "This call is similar to L</mounts>.  That call returns a list of devices.  "
14411 "This one returns a hash table (map) of device name to directory where the "
14412 "device is mounted."
14413 msgstr ""
14414
14415 #. type: =head2
14416 #: ../fish/guestfish-actions.pod:3680
14417 msgid "mounts"
14418 msgstr ""
14419
14420 #. type: verbatim
14421 #: ../fish/guestfish-actions.pod:3682
14422 #, no-wrap
14423 msgid ""
14424 " mounts\n"
14425 "\n"
14426 msgstr ""
14427
14428 #. type: textblock
14429 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5744
14430 msgid ""
14431 "This returns the list of currently mounted filesystems.  It returns the list "
14432 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14433 msgstr ""
14434
14435 #. type: textblock
14436 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5747
14437 msgid "Some internal mounts are not shown."
14438 msgstr ""
14439
14440 #. type: textblock
14441 #: ../fish/guestfish-actions.pod:3689
14442 msgid "See also: L</mountpoints>"
14443 msgstr ""
14444
14445 #. type: =head2
14446 #: ../fish/guestfish-actions.pod:3691
14447 msgid "mv"
14448 msgstr ""
14449
14450 #. type: verbatim
14451 #: ../fish/guestfish-actions.pod:3693
14452 #, no-wrap
14453 msgid ""
14454 " mv src dest\n"
14455 "\n"
14456 msgstr ""
14457
14458 #. type: textblock
14459 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5764
14460 msgid ""
14461 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14462 "destination filename or destination directory."
14463 msgstr ""
14464
14465 #. type: =head2
14466 #: ../fish/guestfish-actions.pod:3698
14467 msgid "ntfs-3g-probe"
14468 msgstr ""
14469
14470 #. type: verbatim
14471 #: ../fish/guestfish-actions.pod:3700
14472 #, no-wrap
14473 msgid ""
14474 " ntfs-3g-probe true|false device\n"
14475 "\n"
14476 msgstr ""
14477
14478 #. type: textblock
14479 #: ../fish/guestfish-actions.pod:3702 ../src/guestfs-actions.pod:5778
14480 msgid ""
14481 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14482 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14483 "write, and some cannot be mounted at all)."
14484 msgstr ""
14485
14486 #. type: textblock
14487 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5782
14488 msgid ""
14489 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14490 "can be mounted read-write.  Set it to false if you want to test if the "
14491 "volume can be mounted read-only."
14492 msgstr ""
14493
14494 #. type: textblock
14495 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5786
14496 msgid ""
14497 "The return value is an integer which C<0> if the operation would succeed, or "
14498 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14499 msgstr ""
14500
14501 #. type: =head2
14502 #: ../fish/guestfish-actions.pod:3714
14503 msgid "ntfsresize"
14504 msgstr ""
14505
14506 #. type: verbatim
14507 #: ../fish/guestfish-actions.pod:3716
14508 #, no-wrap
14509 msgid ""
14510 " ntfsresize device\n"
14511 "\n"
14512 msgstr ""
14513
14514 #. type: textblock
14515 #: ../fish/guestfish-actions.pod:3718 ../fish/guestfish-actions.pod:3742
14516 #: ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:5839
14517 msgid ""
14518 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14519 "size of the underlying device."
14520 msgstr ""
14521
14522 #. type: textblock
14523 #: ../fish/guestfish-actions.pod:3721 ../src/guestfs-actions.pod:5810
14524 msgid ""
14525 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14526 "consistency check (for safety).  You have to boot into Windows to perform "
14527 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
14528 "resize filesystems which have been marked in this way.  So in effect it is "
14529 "not possible to call ntfsresize multiple times on a single filesystem "
14530 "without booting into Windows between each resize."
14531 msgstr ""
14532
14533 #. type: textblock
14534 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:3768
14535 #: ../src/guestfs-actions.pod:5818 ../src/guestfs-actions.pod:5865
14536 msgid "See also L<ntfsresize(8)>."
14537 msgstr ""
14538
14539 #. type: textblock
14540 #: ../fish/guestfish-actions.pod:3731 ../fish/guestfish-actions.pod:3779
14541 msgid ""
14542 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14543 "call instead."
14544 msgstr ""
14545
14546 #. type: =head2
14547 #: ../fish/guestfish-actions.pod:3738
14548 msgid "ntfsresize-opts"
14549 msgstr ""
14550
14551 #. type: verbatim
14552 #: ../fish/guestfish-actions.pod:3740
14553 #, no-wrap
14554 msgid ""
14555 " ntfsresize-opts device [size:N] [force:true|false]\n"
14556 "\n"
14557 msgstr ""
14558
14559 #. type: textblock
14560 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5848
14561 msgid ""
14562 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
14563 "resized to fit the container (eg. partition)."
14564 msgstr ""
14565
14566 #. type: =item
14567 #: ../fish/guestfish-actions.pod:3754 ../fish/guestfish-actions.pod:5075
14568 #: ../src/guestfs-actions.pod:5851 ../src/guestfs-actions.pod:7822
14569 msgid "C<force>"
14570 msgstr ""
14571
14572 #. type: textblock
14573 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5853
14574 msgid ""
14575 "If this option is true, then force the resize of the filesystem even if the "
14576 "filesystem is marked as requiring a consistency check."
14577 msgstr ""
14578
14579 #. type: textblock
14580 #: ../fish/guestfish-actions.pod:3759
14581 msgid ""
14582 "After the resize operation, the filesystem is always marked as requiring a "
14583 "consistency check (for safety).  You have to boot into Windows to perform "
14584 "this check and clear this condition.  If you I<don't> set the C<force> "
14585 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
14586 "a single filesystem without booting into Windows between each resize."
14587 msgstr ""
14588
14589 #. type: =head2
14590 #: ../fish/guestfish-actions.pod:3772
14591 msgid "ntfsresize-size"
14592 msgstr ""
14593
14594 #. type: verbatim
14595 #: ../fish/guestfish-actions.pod:3774
14596 #, no-wrap
14597 msgid ""
14598 " ntfsresize-size device size\n"
14599 "\n"
14600 msgstr ""
14601
14602 #. type: textblock
14603 #: ../fish/guestfish-actions.pod:3776
14604 msgid ""
14605 "This command is the same as L</ntfsresize> except that it allows you to "
14606 "specify the new size (in bytes) explicitly."
14607 msgstr ""
14608
14609 #. type: =head2
14610 #: ../fish/guestfish-actions.pod:3786
14611 msgid "part-add"
14612 msgstr ""
14613
14614 #. type: verbatim
14615 #: ../fish/guestfish-actions.pod:3788
14616 #, no-wrap
14617 msgid ""
14618 " part-add device prlogex startsect endsect\n"
14619 "\n"
14620 msgstr ""
14621
14622 #. type: textblock
14623 #: ../fish/guestfish-actions.pod:3790
14624 msgid ""
14625 "This command adds a partition to C<device>.  If there is no partition table "
14626 "on the device, call L</part-init> first."
14627 msgstr ""
14628
14629 #. type: textblock
14630 #: ../fish/guestfish-actions.pod:3793 ../src/guestfs-actions.pod:5926
14631 msgid ""
14632 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14633 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14634 "C<logical>) and C<e> (or C<extended>) partition types."
14635 msgstr ""
14636
14637 #. type: textblock
14638 #: ../fish/guestfish-actions.pod:3798 ../src/guestfs-actions.pod:5931
14639 msgid ""
14640 "C<startsect> and C<endsect> are the start and end of the partition in "
14641 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14642 "from the end of the disk (C<-1> is the last sector)."
14643 msgstr ""
14644
14645 #. type: textblock
14646 #: ../fish/guestfish-actions.pod:3802
14647 msgid ""
14648 "Creating a partition which covers the whole disk is not so easy.  Use L</"
14649 "part-disk> to do that."
14650 msgstr ""
14651
14652 #. type: =head2
14653 #: ../fish/guestfish-actions.pod:3805
14654 msgid "part-del"
14655 msgstr ""
14656
14657 #. type: verbatim
14658 #: ../fish/guestfish-actions.pod:3807
14659 #, no-wrap
14660 msgid ""
14661 " part-del device partnum\n"
14662 "\n"
14663 msgstr ""
14664
14665 #. type: textblock
14666 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5949
14667 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14668 msgstr ""
14669
14670 #. type: textblock
14671 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5951
14672 msgid ""
14673 "Note that in the case of MBR partitioning, deleting an extended partition "
14674 "also deletes any logical partitions it contains."
14675 msgstr ""
14676
14677 #. type: =head2
14678 #: ../fish/guestfish-actions.pod:3815
14679 msgid "part-disk"
14680 msgstr ""
14681
14682 #. type: verbatim
14683 #: ../fish/guestfish-actions.pod:3817
14684 #, no-wrap
14685 msgid ""
14686 " part-disk device parttype\n"
14687 "\n"
14688 msgstr ""
14689
14690 #. type: textblock
14691 #: ../fish/guestfish-actions.pod:3819
14692 msgid ""
14693 "This command is simply a combination of L</part-init> followed by L</part-"
14694 "add> to create a single primary partition covering the whole disk."
14695 msgstr ""
14696
14697 #. type: textblock
14698 #: ../fish/guestfish-actions.pod:3823
14699 msgid ""
14700 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14701 "possible values are described in L</part-init>."
14702 msgstr ""
14703
14704 #. type: =head2
14705 #: ../fish/guestfish-actions.pod:3826
14706 msgid "part-get-bootable"
14707 msgstr ""
14708
14709 #. type: verbatim
14710 #: ../fish/guestfish-actions.pod:3828
14711 #, no-wrap
14712 msgid ""
14713 " part-get-bootable device partnum\n"
14714 "\n"
14715 msgstr ""
14716
14717 #. type: textblock
14718 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5984
14719 msgid ""
14720 "This command returns true if the partition C<partnum> on C<device> has the "
14721 "bootable flag set."
14722 msgstr ""
14723
14724 #. type: textblock
14725 #: ../fish/guestfish-actions.pod:3833
14726 msgid "See also L</part-set-bootable>."
14727 msgstr ""
14728
14729 #. type: =head2
14730 #: ../fish/guestfish-actions.pod:3835
14731 msgid "part-get-mbr-id"
14732 msgstr ""
14733
14734 #. type: verbatim
14735 #: ../fish/guestfish-actions.pod:3837
14736 #, no-wrap
14737 msgid ""
14738 " part-get-mbr-id device partnum\n"
14739 "\n"
14740 msgstr ""
14741
14742 #. type: textblock
14743 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:6000
14744 msgid ""
14745 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14746 "partition C<partnum>."
14747 msgstr ""
14748
14749 #. type: textblock
14750 #: ../fish/guestfish-actions.pod:3842 ../fish/guestfish-actions.pod:3986
14751 msgid ""
14752 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14753 "undefined results for other partition table types (see L</part-get-"
14754 "parttype>)."
14755 msgstr ""
14756
14757 #. type: =head2
14758 #: ../fish/guestfish-actions.pod:3846
14759 msgid "part-get-parttype"
14760 msgstr ""
14761
14762 #. type: verbatim
14763 #: ../fish/guestfish-actions.pod:3848
14764 #, no-wrap
14765 msgid ""
14766 " part-get-parttype device\n"
14767 "\n"
14768 msgstr ""
14769
14770 #. type: textblock
14771 #: ../fish/guestfish-actions.pod:3850 ../src/guestfs-actions.pod:6017
14772 msgid ""
14773 "This command examines the partition table on C<device> and returns the "
14774 "partition table type (format) being used."
14775 msgstr ""
14776
14777 #. type: textblock
14778 #: ../fish/guestfish-actions.pod:3853
14779 msgid ""
14780 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14781 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14782 "possible, although unusual.  See L</part-init> for a full list."
14783 msgstr ""
14784
14785 #. type: =head2
14786 #: ../fish/guestfish-actions.pod:3858
14787 msgid "part-init"
14788 msgstr ""
14789
14790 #. type: verbatim
14791 #: ../fish/guestfish-actions.pod:3860
14792 #, no-wrap
14793 msgid ""
14794 " part-init device parttype\n"
14795 "\n"
14796 msgstr ""
14797
14798 #. type: textblock
14799 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:6037
14800 msgid ""
14801 "This creates an empty partition table on C<device> of one of the partition "
14802 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14803 "(for large disks)."
14804 msgstr ""
14805
14806 #. type: textblock
14807 #: ../fish/guestfish-actions.pod:3866
14808 msgid ""
14809 "Initially there are no partitions.  Following this, you should call L</part-"
14810 "add> for each partition required."
14811 msgstr ""
14812
14813 #. type: textblock
14814 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6044
14815 msgid "Possible values for C<parttype> are:"
14816 msgstr ""
14817
14818 #. type: =item
14819 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:6048
14820 msgid "B<efi>"
14821 msgstr ""
14822
14823 #. type: =item
14824 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:6050
14825 msgid "B<gpt>"
14826 msgstr ""
14827
14828 #. type: textblock
14829 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6052
14830 msgid "Intel EFI / GPT partition table."
14831 msgstr ""
14832
14833 #. type: textblock
14834 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:6054
14835 msgid ""
14836 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14837 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14838 "the C<mbr> format."
14839 msgstr ""
14840
14841 #. type: =item
14842 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:6058
14843 msgid "B<mbr>"
14844 msgstr ""
14845
14846 #. type: =item
14847 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:6060
14848 msgid "B<msdos>"
14849 msgstr ""
14850
14851 #. type: textblock
14852 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:6062
14853 msgid ""
14854 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14855 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14856 "TB.  For large disks we recommend using C<gpt>."
14857 msgstr ""
14858
14859 #. type: textblock
14860 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:6069
14861 msgid ""
14862 "Other partition table types that may work but are not supported include:"
14863 msgstr ""
14864
14865 #. type: =item
14866 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6074
14867 msgid "B<aix>"
14868 msgstr ""
14869
14870 #. type: textblock
14871 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:6076
14872 msgid "AIX disk labels."
14873 msgstr ""
14874
14875 #. type: =item
14876 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:6078
14877 msgid "B<amiga>"
14878 msgstr ""
14879
14880 #. type: =item
14881 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:6080
14882 msgid "B<rdb>"
14883 msgstr ""
14884
14885 #. type: textblock
14886 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:6082
14887 msgid "Amiga \"Rigid Disk Block\" format."
14888 msgstr ""
14889
14890 #. type: =item
14891 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:6084
14892 msgid "B<bsd>"
14893 msgstr ""
14894
14895 #. type: textblock
14896 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6086
14897 msgid "BSD disk labels."
14898 msgstr ""
14899
14900 #. type: =item
14901 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:6088
14902 msgid "B<dasd>"
14903 msgstr ""
14904
14905 #. type: textblock
14906 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6090
14907 msgid "DASD, used on IBM mainframes."
14908 msgstr ""
14909
14910 #. type: =item
14911 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6092
14912 msgid "B<dvh>"
14913 msgstr ""
14914
14915 #. type: textblock
14916 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6094
14917 msgid "MIPS/SGI volumes."
14918 msgstr ""
14919
14920 #. type: =item
14921 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:6096
14922 msgid "B<mac>"
14923 msgstr ""
14924
14925 #. type: textblock
14926 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:6098
14927 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14928 msgstr ""
14929
14930 #. type: =item
14931 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:6100
14932 msgid "B<pc98>"
14933 msgstr ""
14934
14935 #. type: textblock
14936 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:6102
14937 msgid "NEC PC-98 format, common in Japan apparently."
14938 msgstr ""
14939
14940 #. type: =item
14941 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6104
14942 msgid "B<sun>"
14943 msgstr ""
14944
14945 #. type: textblock
14946 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6106
14947 msgid "Sun disk labels."
14948 msgstr ""
14949
14950 #. type: =head2
14951 #: ../fish/guestfish-actions.pod:3935
14952 msgid "part-list"
14953 msgstr ""
14954
14955 #. type: verbatim
14956 #: ../fish/guestfish-actions.pod:3937
14957 #, no-wrap
14958 msgid ""
14959 " part-list device\n"
14960 "\n"
14961 msgstr ""
14962
14963 #. type: textblock
14964 #: ../fish/guestfish-actions.pod:3939 ../src/guestfs-actions.pod:6120
14965 msgid ""
14966 "This command parses the partition table on C<device> and returns the list of "
14967 "partitions found."
14968 msgstr ""
14969
14970 #. type: textblock
14971 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6123
14972 msgid "The fields in the returned structure are:"
14973 msgstr ""
14974
14975 #. type: =item
14976 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6127
14977 msgid "B<part_num>"
14978 msgstr ""
14979
14980 #. type: textblock
14981 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6129
14982 msgid "Partition number, counting from 1."
14983 msgstr ""
14984
14985 #. type: =item
14986 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6131
14987 msgid "B<part_start>"
14988 msgstr ""
14989
14990 #. type: textblock
14991 #: ../fish/guestfish-actions.pod:3952
14992 msgid ""
14993 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14994 "the device's sector size, see L</blockdev-getss>."
14995 msgstr ""
14996
14997 #. type: =item
14998 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6136
14999 msgid "B<part_end>"
15000 msgstr ""
15001
15002 #. type: textblock
15003 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:6138
15004 msgid "End of the partition in bytes."
15005 msgstr ""
15006
15007 #. type: =item
15008 #: ../fish/guestfish-actions.pod:3959 ../src/guestfs-actions.pod:6140
15009 msgid "B<part_size>"
15010 msgstr ""
15011
15012 #. type: textblock
15013 #: ../fish/guestfish-actions.pod:3961 ../src/guestfs-actions.pod:6142
15014 msgid "Size of the partition in bytes."
15015 msgstr ""
15016
15017 #. type: =head2
15018 #: ../fish/guestfish-actions.pod:3965
15019 msgid "part-set-bootable"
15020 msgstr ""
15021
15022 #. type: verbatim
15023 #: ../fish/guestfish-actions.pod:3967
15024 #, no-wrap
15025 msgid ""
15026 " part-set-bootable device partnum true|false\n"
15027 "\n"
15028 msgstr ""
15029
15030 #. type: textblock
15031 #: ../fish/guestfish-actions.pod:3969 ../src/guestfs-actions.pod:6160
15032 msgid ""
15033 "This sets the bootable flag on partition numbered C<partnum> on device "
15034 "C<device>.  Note that partitions are numbered from 1."
15035 msgstr ""
15036
15037 #. type: textblock
15038 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6163
15039 msgid ""
15040 "The bootable flag is used by some operating systems (notably Windows) to "
15041 "determine which partition to boot from.  It is by no means universally "
15042 "recognized."
15043 msgstr ""
15044
15045 #. type: =head2
15046 #: ../fish/guestfish-actions.pod:3976
15047 msgid "part-set-mbr-id"
15048 msgstr ""
15049
15050 #. type: verbatim
15051 #: ../fish/guestfish-actions.pod:3978
15052 #, no-wrap
15053 msgid ""
15054 " part-set-mbr-id device partnum idbyte\n"
15055 "\n"
15056 msgstr ""
15057
15058 #. type: textblock
15059 #: ../fish/guestfish-actions.pod:3980 ../src/guestfs-actions.pod:6179
15060 msgid ""
15061 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15062 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
15063 "documentation are in fact hexadecimal numbers, but usually documented "
15064 "without any leading \"0x\" which might be confusing."
15065 msgstr ""
15066
15067 #. type: =head2
15068 #: ../fish/guestfish-actions.pod:3990
15069 msgid "part-set-name"
15070 msgstr ""
15071
15072 #. type: verbatim
15073 #: ../fish/guestfish-actions.pod:3992
15074 #, no-wrap
15075 msgid ""
15076 " part-set-name device partnum name\n"
15077 "\n"
15078 msgstr ""
15079
15080 #. type: textblock
15081 #: ../fish/guestfish-actions.pod:3994 ../src/guestfs-actions.pod:6201
15082 msgid ""
15083 "This sets the partition name on partition numbered C<partnum> on device "
15084 "C<device>.  Note that partitions are numbered from 1."
15085 msgstr ""
15086
15087 #. type: textblock
15088 #: ../fish/guestfish-actions.pod:3997 ../src/guestfs-actions.pod:6204
15089 msgid ""
15090 "The partition name can only be set on certain types of partition table.  "
15091 "This works on C<gpt> but not on C<mbr> partitions."
15092 msgstr ""
15093
15094 #. type: =head2
15095 #: ../fish/guestfish-actions.pod:4000
15096 msgid "part-to-dev"
15097 msgstr ""
15098
15099 #. type: verbatim
15100 #: ../fish/guestfish-actions.pod:4002
15101 #, no-wrap
15102 msgid ""
15103 " part-to-dev partition\n"
15104 "\n"
15105 msgstr ""
15106
15107 #. type: textblock
15108 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6217
15109 msgid ""
15110 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15111 "partition number, returning the device name (eg. \"/dev/sdb\")."
15112 msgstr ""
15113
15114 #. type: textblock
15115 #: ../fish/guestfish-actions.pod:4008 ../fish/guestfish-actions.pod:4020
15116 msgid ""
15117 "The named partition must exist, for example as a string returned from L</"
15118 "list-partitions>."
15119 msgstr ""
15120
15121 #. type: textblock
15122 #: ../fish/guestfish-actions.pod:4011
15123 msgid "See also L</part-to-partnum>."
15124 msgstr ""
15125
15126 #. type: =head2
15127 #: ../fish/guestfish-actions.pod:4013
15128 msgid "part-to-partnum"
15129 msgstr ""
15130
15131 #. type: verbatim
15132 #: ../fish/guestfish-actions.pod:4015
15133 #, no-wrap
15134 msgid ""
15135 " part-to-partnum partition\n"
15136 "\n"
15137 msgstr ""
15138
15139 #. type: textblock
15140 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6237
15141 msgid ""
15142 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
15143 "partition number (eg. C<1>)."
15144 msgstr ""
15145
15146 #. type: textblock
15147 #: ../fish/guestfish-actions.pod:4023
15148 msgid "See also L</part-to-dev>."
15149 msgstr ""
15150
15151 #. type: =head2
15152 #: ../fish/guestfish-actions.pod:4025
15153 msgid "ping-daemon"
15154 msgstr ""
15155
15156 #. type: verbatim
15157 #: ../fish/guestfish-actions.pod:4027
15158 #, no-wrap
15159 msgid ""
15160 " ping-daemon\n"
15161 "\n"
15162 msgstr ""
15163
15164 #. type: textblock
15165 #: ../fish/guestfish-actions.pod:4029 ../src/guestfs-actions.pod:6254
15166 msgid ""
15167 "This is a test probe into the guestfs daemon running inside the qemu "
15168 "subprocess.  Calling this function checks that the daemon responds to the "
15169 "ping message, without affecting the daemon or attached block device(s) in "
15170 "any other way."
15171 msgstr ""
15172
15173 #. type: =head2
15174 #: ../fish/guestfish-actions.pod:4034
15175 msgid "pread"
15176 msgstr ""
15177
15178 #. type: verbatim
15179 #: ../fish/guestfish-actions.pod:4036
15180 #, no-wrap
15181 msgid ""
15182 " pread path count offset\n"
15183 "\n"
15184 msgstr ""
15185
15186 #. type: textblock
15187 #: ../fish/guestfish-actions.pod:4038 ../src/guestfs-actions.pod:6272
15188 msgid ""
15189 "This command lets you read part of a file.  It reads C<count> bytes of the "
15190 "file, starting at C<offset>, from file C<path>."
15191 msgstr ""
15192
15193 #. type: textblock
15194 #: ../fish/guestfish-actions.pod:4041 ../fish/guestfish-actions.pod:4056
15195 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6301
15196 msgid ""
15197 "This may read fewer bytes than requested.  For further details see the "
15198 "L<pread(2)> system call."
15199 msgstr ""
15200
15201 #. type: textblock
15202 #: ../fish/guestfish-actions.pod:4044
15203 msgid "See also L</pwrite>, L</pread-device>."
15204 msgstr ""
15205
15206 #. type: =head2
15207 #: ../fish/guestfish-actions.pod:4049
15208 msgid "pread-device"
15209 msgstr ""
15210
15211 #. type: verbatim
15212 #: ../fish/guestfish-actions.pod:4051
15213 #, no-wrap
15214 msgid ""
15215 " pread-device device count offset\n"
15216 "\n"
15217 msgstr ""
15218
15219 #. type: textblock
15220 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6298
15221 msgid ""
15222 "This command lets you read part of a file.  It reads C<count> bytes of "
15223 "C<device>, starting at C<offset>."
15224 msgstr ""
15225
15226 #. type: textblock
15227 #: ../fish/guestfish-actions.pod:4059
15228 msgid "See also L</pread>."
15229 msgstr ""
15230
15231 #. type: =head2
15232 #: ../fish/guestfish-actions.pod:4064
15233 msgid "pvcreate"
15234 msgstr ""
15235
15236 #. type: verbatim
15237 #: ../fish/guestfish-actions.pod:4066
15238 #, no-wrap
15239 msgid ""
15240 " pvcreate device\n"
15241 "\n"
15242 msgstr ""
15243
15244 #. type: textblock
15245 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6321
15246 msgid ""
15247 "This creates an LVM physical volume on the named C<device>, where C<device> "
15248 "should usually be a partition name such as C</dev/sda1>."
15249 msgstr ""
15250
15251 #. type: =head2
15252 #: ../fish/guestfish-actions.pod:4072
15253 msgid "pvremove"
15254 msgstr ""
15255
15256 #. type: verbatim
15257 #: ../fish/guestfish-actions.pod:4074
15258 #, no-wrap
15259 msgid ""
15260 " pvremove device\n"
15261 "\n"
15262 msgstr ""
15263
15264 #. type: textblock
15265 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6335
15266 msgid ""
15267 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15268 "it."
15269 msgstr ""
15270
15271 #. type: textblock
15272 #: ../fish/guestfish-actions.pod:4079 ../src/guestfs-actions.pod:6338
15273 msgid ""
15274 "The implementation uses the C<pvremove> command which refuses to wipe "
15275 "physical volumes that contain any volume groups, so you have to remove those "
15276 "first."
15277 msgstr ""
15278
15279 #. type: =head2
15280 #: ../fish/guestfish-actions.pod:4083
15281 msgid "pvresize"
15282 msgstr ""
15283
15284 #. type: verbatim
15285 #: ../fish/guestfish-actions.pod:4085
15286 #, no-wrap
15287 msgid ""
15288 " pvresize device\n"
15289 "\n"
15290 msgstr ""
15291
15292 #. type: textblock
15293 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6352
15294 msgid ""
15295 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15296 "the new size of the underlying device."
15297 msgstr ""
15298
15299 #. type: =head2
15300 #: ../fish/guestfish-actions.pod:4090
15301 msgid "pvresize-size"
15302 msgstr ""
15303
15304 #. type: verbatim
15305 #: ../fish/guestfish-actions.pod:4092
15306 #, no-wrap
15307 msgid ""
15308 " pvresize-size device size\n"
15309 "\n"
15310 msgstr ""
15311
15312 #. type: textblock
15313 #: ../fish/guestfish-actions.pod:4094
15314 msgid ""
15315 "This command is the same as L</pvresize> except that it allows you to "
15316 "specify the new size (in bytes) explicitly."
15317 msgstr ""
15318
15319 #. type: =head2
15320 #: ../fish/guestfish-actions.pod:4097
15321 msgid "pvs"
15322 msgstr ""
15323
15324 #. type: verbatim
15325 #: ../fish/guestfish-actions.pod:4099
15326 #, no-wrap
15327 msgid ""
15328 " pvs\n"
15329 "\n"
15330 msgstr ""
15331
15332 #. type: textblock
15333 #: ../fish/guestfish-actions.pod:4101 ../src/guestfs-actions.pod:6378
15334 msgid ""
15335 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15336 "(8)> command."
15337 msgstr ""
15338
15339 #. type: textblock
15340 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6381
15341 msgid ""
15342 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15343 "sda2>)."
15344 msgstr ""
15345
15346 #. type: textblock
15347 #: ../fish/guestfish-actions.pod:4107
15348 msgid "See also L</pvs-full>."
15349 msgstr ""
15350
15351 #. type: =head2
15352 #: ../fish/guestfish-actions.pod:4109
15353 msgid "pvs-full"
15354 msgstr ""
15355
15356 #. type: verbatim
15357 #: ../fish/guestfish-actions.pod:4111
15358 #, no-wrap
15359 msgid ""
15360 " pvs-full\n"
15361 "\n"
15362 msgstr ""
15363
15364 #. type: textblock
15365 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6397
15366 msgid ""
15367 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15368 "(8)> command.  The \"full\" version includes all fields."
15369 msgstr ""
15370
15371 #. type: =head2
15372 #: ../fish/guestfish-actions.pod:4116
15373 msgid "pvuuid"
15374 msgstr ""
15375
15376 #. type: verbatim
15377 #: ../fish/guestfish-actions.pod:4118
15378 #, no-wrap
15379 msgid ""
15380 " pvuuid device\n"
15381 "\n"
15382 msgstr ""
15383
15384 #. type: textblock
15385 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6412
15386 msgid "This command returns the UUID of the LVM PV C<device>."
15387 msgstr ""
15388
15389 #. type: =head2
15390 #: ../fish/guestfish-actions.pod:4122
15391 msgid "pwrite"
15392 msgstr ""
15393
15394 #. type: verbatim
15395 #: ../fish/guestfish-actions.pod:4124
15396 #, no-wrap
15397 msgid ""
15398 " pwrite path content offset\n"
15399 "\n"
15400 msgstr ""
15401
15402 #. type: textblock
15403 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6428
15404 msgid ""
15405 "This command writes to part of a file.  It writes the data buffer C<content> "
15406 "to the file C<path> starting at offset C<offset>."
15407 msgstr ""
15408
15409 #. type: textblock
15410 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6431
15411 msgid ""
15412 "This command implements the L<pwrite(2)> system call, and like that system "
15413 "call it may not write the full data requested.  The return value is the "
15414 "number of bytes that were actually written to the file.  This could even be "
15415 "0, although short writes are unlikely for regular files in ordinary "
15416 "circumstances."
15417 msgstr ""
15418
15419 #. type: textblock
15420 #: ../fish/guestfish-actions.pod:4135
15421 msgid "See also L</pread>, L</pwrite-device>."
15422 msgstr ""
15423
15424 #. type: =head2
15425 #: ../fish/guestfish-actions.pod:4140
15426 msgid "pwrite-device"
15427 msgstr ""
15428
15429 #. type: verbatim
15430 #: ../fish/guestfish-actions.pod:4142
15431 #, no-wrap
15432 msgid ""
15433 " pwrite-device device content offset\n"
15434 "\n"
15435 msgstr ""
15436
15437 #. type: textblock
15438 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6455
15439 msgid ""
15440 "This command writes to part of a device.  It writes the data buffer "
15441 "C<content> to C<device> starting at offset C<offset>."
15442 msgstr ""
15443
15444 #. type: textblock
15445 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6458
15446 msgid ""
15447 "This command implements the L<pwrite(2)> system call, and like that system "
15448 "call it may not write the full data requested (although short writes to disk "
15449 "devices and partitions are probably impossible with standard Linux kernels)."
15450 msgstr ""
15451
15452 #. type: textblock
15453 #: ../fish/guestfish-actions.pod:4152
15454 msgid "See also L</pwrite>."
15455 msgstr ""
15456
15457 #. type: =head2
15458 #: ../fish/guestfish-actions.pod:4157
15459 msgid "read-file"
15460 msgstr ""
15461
15462 #. type: verbatim
15463 #: ../fish/guestfish-actions.pod:4159
15464 #, no-wrap
15465 msgid ""
15466 " read-file path\n"
15467 "\n"
15468 msgstr ""
15469
15470 #. type: textblock
15471 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6479
15472 msgid "This calls returns the contents of the file C<path> as a buffer."
15473 msgstr ""
15474
15475 #. type: textblock
15476 #: ../fish/guestfish-actions.pod:4164
15477 msgid ""
15478 "Unlike L</cat>, this function can correctly handle files that contain "
15479 "embedded ASCII NUL characters.  However unlike L</download>, this function "
15480 "is limited in the total size of file that can be handled."
15481 msgstr ""
15482
15483 #. type: =head2
15484 #: ../fish/guestfish-actions.pod:4172
15485 msgid "read-lines"
15486 msgstr ""
15487
15488 #. type: verbatim
15489 #: ../fish/guestfish-actions.pod:4174
15490 #, no-wrap
15491 msgid ""
15492 " read-lines path\n"
15493 "\n"
15494 msgstr ""
15495
15496 #. type: textblock
15497 #: ../fish/guestfish-actions.pod:4178 ../src/guestfs-actions.pod:6504
15498 msgid ""
15499 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15500 "C<CRLF> character sequences are I<not> returned."
15501 msgstr ""
15502
15503 #. type: textblock
15504 #: ../fish/guestfish-actions.pod:4181
15505 msgid ""
15506 "Note that this function cannot correctly handle binary files (specifically, "
15507 "files containing C<\\0> character which is treated as end of line).  For "
15508 "those you need to use the L</read-file> function which has a more complex "
15509 "interface."
15510 msgstr ""
15511
15512 #. type: =head2
15513 #: ../fish/guestfish-actions.pod:4186
15514 msgid "readdir"
15515 msgstr ""
15516
15517 #. type: verbatim
15518 #: ../fish/guestfish-actions.pod:4188
15519 #, no-wrap
15520 msgid ""
15521 " readdir dir\n"
15522 "\n"
15523 msgstr ""
15524
15525 #. type: textblock
15526 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6524
15527 msgid "This returns the list of directory entries in directory C<dir>."
15528 msgstr ""
15529
15530 #. type: textblock
15531 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6526
15532 msgid ""
15533 "All entries in the directory are returned, including C<.> and C<..>.  The "
15534 "entries are I<not> sorted, but returned in the same order as the underlying "
15535 "filesystem."
15536 msgstr ""
15537
15538 #. type: textblock
15539 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6530
15540 msgid ""
15541 "Also this call returns basic file type information about each file.  The "
15542 "C<ftyp> field will contain one of the following characters:"
15543 msgstr ""
15544
15545 #. type: =item
15546 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6535
15547 msgid "'b'"
15548 msgstr ""
15549
15550 #. type: textblock
15551 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6537
15552 msgid "Block special"
15553 msgstr ""
15554
15555 #. type: =item
15556 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6539
15557 msgid "'c'"
15558 msgstr ""
15559
15560 #. type: textblock
15561 #: ../fish/guestfish-actions.pod:4207 ../src/guestfs-actions.pod:6541
15562 msgid "Char special"
15563 msgstr ""
15564
15565 #. type: =item
15566 #: ../fish/guestfish-actions.pod:4209 ../src/guestfs-actions.pod:6543
15567 msgid "'d'"
15568 msgstr ""
15569
15570 #. type: textblock
15571 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6545
15572 msgid "Directory"
15573 msgstr ""
15574
15575 #. type: =item
15576 #: ../fish/guestfish-actions.pod:4213 ../src/guestfs-actions.pod:6547
15577 msgid "'f'"
15578 msgstr ""
15579
15580 #. type: textblock
15581 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6549
15582 msgid "FIFO (named pipe)"
15583 msgstr ""
15584
15585 #. type: =item
15586 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6551
15587 msgid "'l'"
15588 msgstr ""
15589
15590 #. type: textblock
15591 #: ../fish/guestfish-actions.pod:4219 ../src/guestfs-actions.pod:6553
15592 msgid "Symbolic link"
15593 msgstr ""
15594
15595 #. type: =item
15596 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6555
15597 msgid "'r'"
15598 msgstr ""
15599
15600 #. type: textblock
15601 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6557
15602 msgid "Regular file"
15603 msgstr ""
15604
15605 #. type: =item
15606 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6559
15607 msgid "'s'"
15608 msgstr ""
15609
15610 #. type: textblock
15611 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6561
15612 msgid "Socket"
15613 msgstr ""
15614
15615 #. type: =item
15616 #: ../fish/guestfish-actions.pod:4229 ../src/guestfs-actions.pod:6563
15617 msgid "'u'"
15618 msgstr ""
15619
15620 #. type: textblock
15621 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6565
15622 msgid "Unknown file type"
15623 msgstr ""
15624
15625 #. type: =item
15626 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6567
15627 msgid "'?'"
15628 msgstr ""
15629
15630 #. type: textblock
15631 #: ../fish/guestfish-actions.pod:4235 ../src/guestfs-actions.pod:6569
15632 msgid ""
15633 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15634 msgstr ""
15635
15636 #. type: textblock
15637 #: ../fish/guestfish-actions.pod:4240
15638 msgid ""
15639 "This function is primarily intended for use by programs.  To get a simple "
15640 "list of names, use L</ls>.  To get a printable directory for human "
15641 "consumption, use L</ll>."
15642 msgstr ""
15643
15644 #. type: =head2
15645 #: ../fish/guestfish-actions.pod:4244
15646 msgid "readlink"
15647 msgstr ""
15648
15649 #. type: verbatim
15650 #: ../fish/guestfish-actions.pod:4246
15651 #, no-wrap
15652 msgid ""
15653 " readlink path\n"
15654 "\n"
15655 msgstr ""
15656
15657 #. type: textblock
15658 #: ../fish/guestfish-actions.pod:4248 ../src/guestfs-actions.pod:6590
15659 msgid "This command reads the target of a symbolic link."
15660 msgstr ""
15661
15662 #. type: =head2
15663 #: ../fish/guestfish-actions.pod:4250
15664 msgid "readlinklist"
15665 msgstr ""
15666
15667 #. type: verbatim
15668 #: ../fish/guestfish-actions.pod:4252
15669 #, no-wrap
15670 msgid ""
15671 " readlinklist path 'names ...'\n"
15672 "\n"
15673 msgstr ""
15674
15675 #. type: textblock
15676 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6604
15677 msgid ""
15678 "This call allows you to do a C<readlink> operation on multiple files, where "
15679 "all files are in the directory C<path>.  C<names> is the list of files from "
15680 "this directory."
15681 msgstr ""
15682
15683 #. type: textblock
15684 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6608
15685 msgid ""
15686 "On return you get a list of strings, with a one-to-one correspondence to the "
15687 "C<names> list.  Each string is the value of the symbolic link."
15688 msgstr ""
15689
15690 #. type: textblock
15691 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6612
15692 msgid ""
15693 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15694 "result string is the empty string C<\"\">.  However the whole operation is "
15695 "completed even if there were C<readlink(2)> errors, and so you can call this "
15696 "function with names where you don't know if they are symbolic links already "
15697 "(albeit slightly less efficient)."
15698 msgstr ""
15699
15700 #. type: textblock
15701 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6619
15702 msgid ""
15703 "This call is intended for programs that want to efficiently list a directory "
15704 "contents without making many round-trips.  Very long directory listings "
15705 "might cause the protocol message size to be exceeded, causing this call to "
15706 "fail.  The caller must split up such requests into smaller groups of names."
15707 msgstr ""
15708
15709 #. type: =head2
15710 #: ../fish/guestfish-actions.pod:4276
15711 msgid "realpath"
15712 msgstr ""
15713
15714 #. type: verbatim
15715 #: ../fish/guestfish-actions.pod:4278
15716 #, no-wrap
15717 msgid ""
15718 " realpath path\n"
15719 "\n"
15720 msgstr ""
15721
15722 #. type: textblock
15723 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6638
15724 msgid ""
15725 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15726 "has no C<.>, C<..> or symbolic link path elements."
15727 msgstr ""
15728
15729 #. type: =head2
15730 #: ../fish/guestfish-actions.pod:4283
15731 msgid "removexattr"
15732 msgstr ""
15733
15734 #. type: verbatim
15735 #: ../fish/guestfish-actions.pod:4285
15736 #, no-wrap
15737 msgid ""
15738 " removexattr xattr path\n"
15739 "\n"
15740 msgstr ""
15741
15742 #. type: textblock
15743 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6653
15744 msgid ""
15745 "This call removes the extended attribute named C<xattr> of the file C<path>."
15746 msgstr ""
15747
15748 #. type: textblock
15749 #: ../fish/guestfish-actions.pod:4290
15750 msgid "See also: L</lremovexattr>, L<attr(5)>."
15751 msgstr ""
15752
15753 #. type: =head2
15754 #: ../fish/guestfish-actions.pod:4292
15755 msgid "resize2fs"
15756 msgstr ""
15757
15758 #. type: verbatim
15759 #: ../fish/guestfish-actions.pod:4294
15760 #, no-wrap
15761 msgid ""
15762 " resize2fs device\n"
15763 "\n"
15764 msgstr ""
15765
15766 #. type: textblock
15767 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6668
15768 msgid ""
15769 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15770 "underlying device."
15771 msgstr ""
15772
15773 #. type: textblock
15774 #: ../fish/guestfish-actions.pod:4299
15775 msgid ""
15776 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15777 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15778 "gives an error about this and sometimes not.  In any case, it is always safe "
15779 "to call L</e2fsck-f> before calling this function."
15780 msgstr ""
15781
15782 #. type: =head2
15783 #: ../fish/guestfish-actions.pod:4305
15784 msgid "resize2fs-M"
15785 msgstr ""
15786
15787 #. type: verbatim
15788 #: ../fish/guestfish-actions.pod:4307
15789 #, no-wrap
15790 msgid ""
15791 " resize2fs-M device\n"
15792 "\n"
15793 msgstr ""
15794
15795 #. type: textblock
15796 #: ../fish/guestfish-actions.pod:4309
15797 msgid ""
15798 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15799 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15800 "command."
15801 msgstr ""
15802
15803 #. type: textblock
15804 #: ../fish/guestfish-actions.pod:4313
15805 msgid ""
15806 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15807 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15808 "multiplied together, give the resulting size of the minimal filesystem in "
15809 "bytes."
15810 msgstr ""
15811
15812 #. type: =head2
15813 #: ../fish/guestfish-actions.pod:4318
15814 msgid "resize2fs-size"
15815 msgstr ""
15816
15817 #. type: verbatim
15818 #: ../fish/guestfish-actions.pod:4320
15819 #, no-wrap
15820 msgid ""
15821 " resize2fs-size device size\n"
15822 "\n"
15823 msgstr ""
15824
15825 #. type: textblock
15826 #: ../fish/guestfish-actions.pod:4322
15827 msgid ""
15828 "This command is the same as L</resize2fs> except that it allows you to "
15829 "specify the new size (in bytes) explicitly."
15830 msgstr ""
15831
15832 #. type: =head2
15833 #: ../fish/guestfish-actions.pod:4325
15834 msgid "rm"
15835 msgstr ""
15836
15837 #. type: verbatim
15838 #: ../fish/guestfish-actions.pod:4327
15839 #, no-wrap
15840 msgid ""
15841 " rm path\n"
15842 "\n"
15843 msgstr ""
15844
15845 #. type: textblock
15846 #: ../fish/guestfish-actions.pod:4329 ../src/guestfs-actions.pod:6720
15847 msgid "Remove the single file C<path>."
15848 msgstr ""
15849
15850 #. type: =head2
15851 #: ../fish/guestfish-actions.pod:4331
15852 msgid "rm-rf"
15853 msgstr ""
15854
15855 #. type: verbatim
15856 #: ../fish/guestfish-actions.pod:4333
15857 #, no-wrap
15858 msgid ""
15859 " rm-rf path\n"
15860 "\n"
15861 msgstr ""
15862
15863 #. type: textblock
15864 #: ../fish/guestfish-actions.pod:4335 ../src/guestfs-actions.pod:6732
15865 msgid ""
15866 "Remove the file or directory C<path>, recursively removing the contents if "
15867 "its a directory.  This is like the C<rm -rf> shell command."
15868 msgstr ""
15869
15870 #. type: =head2
15871 #: ../fish/guestfish-actions.pod:4339
15872 msgid "rmdir"
15873 msgstr ""
15874
15875 #. type: verbatim
15876 #: ../fish/guestfish-actions.pod:4341
15877 #, no-wrap
15878 msgid ""
15879 " rmdir path\n"
15880 "\n"
15881 msgstr ""
15882
15883 #. type: textblock
15884 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6746
15885 msgid "Remove the single directory C<path>."
15886 msgstr ""
15887
15888 #. type: =head2
15889 #: ../fish/guestfish-actions.pod:4345
15890 msgid "rmmountpoint"
15891 msgstr ""
15892
15893 #. type: verbatim
15894 #: ../fish/guestfish-actions.pod:4347
15895 #, no-wrap
15896 msgid ""
15897 " rmmountpoint exemptpath\n"
15898 "\n"
15899 msgstr ""
15900
15901 #. type: textblock
15902 #: ../fish/guestfish-actions.pod:4349
15903 msgid ""
15904 "This calls removes a mountpoint that was previously created with L</"
15905 "mkmountpoint>.  See L</mkmountpoint> for full details."
15906 msgstr ""
15907
15908 #. type: =head2
15909 #: ../fish/guestfish-actions.pod:4353
15910 msgid "scrub-device"
15911 msgstr ""
15912
15913 #. type: verbatim
15914 #: ../fish/guestfish-actions.pod:4355
15915 #, no-wrap
15916 msgid ""
15917 " scrub-device device\n"
15918 "\n"
15919 msgstr ""
15920
15921 #. type: textblock
15922 #: ../fish/guestfish-actions.pod:4357 ../src/guestfs-actions.pod:6772
15923 msgid ""
15924 "This command writes patterns over C<device> to make data retrieval more "
15925 "difficult."
15926 msgstr ""
15927
15928 #. type: textblock
15929 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4372
15930 #: ../fish/guestfish-actions.pod:4385 ../src/guestfs-actions.pod:6775
15931 #: ../src/guestfs-actions.pod:6793 ../src/guestfs-actions.pod:6812
15932 msgid ""
15933 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15934 "more details."
15935 msgstr ""
15936
15937 #. type: =head2
15938 #: ../fish/guestfish-actions.pod:4363
15939 msgid "scrub-file"
15940 msgstr ""
15941
15942 #. type: verbatim
15943 #: ../fish/guestfish-actions.pod:4365
15944 #, no-wrap
15945 msgid ""
15946 " scrub-file file\n"
15947 "\n"
15948 msgstr ""
15949
15950 #. type: textblock
15951 #: ../fish/guestfish-actions.pod:4367 ../src/guestfs-actions.pod:6788
15952 msgid ""
15953 "This command writes patterns over a file to make data retrieval more "
15954 "difficult."
15955 msgstr ""
15956
15957 #. type: textblock
15958 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6791
15959 msgid "The file is I<removed> after scrubbing."
15960 msgstr ""
15961
15962 #. type: =head2
15963 #: ../fish/guestfish-actions.pod:4375
15964 msgid "scrub-freespace"
15965 msgstr ""
15966
15967 #. type: verbatim
15968 #: ../fish/guestfish-actions.pod:4377
15969 #, no-wrap
15970 msgid ""
15971 " scrub-freespace dir\n"
15972 "\n"
15973 msgstr ""
15974
15975 #. type: textblock
15976 #: ../fish/guestfish-actions.pod:4379
15977 msgid ""
15978 "This command creates the directory C<dir> and then fills it with files until "
15979 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15980 "deletes them.  The intention is to scrub any free space on the partition "
15981 "containing C<dir>."
15982 msgstr ""
15983
15984 #. type: =head2
15985 #: ../fish/guestfish-actions.pod:4388
15986 msgid "set-append"
15987 msgstr ""
15988
15989 #. type: =head2
15990 #: ../fish/guestfish-actions.pod:4390
15991 msgid "append"
15992 msgstr ""
15993
15994 #. type: verbatim
15995 #: ../fish/guestfish-actions.pod:4392
15996 #, no-wrap
15997 msgid ""
15998 " set-append append\n"
15999 "\n"
16000 msgstr ""
16001
16002 #. type: textblock
16003 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6825
16004 msgid ""
16005 "This function is used to add additional options to the guest kernel command "
16006 "line."
16007 msgstr ""
16008
16009 #. type: textblock
16010 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6828
16011 msgid ""
16012 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16013 "environment variable."
16014 msgstr ""
16015
16016 #. type: textblock
16017 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6831
16018 msgid ""
16019 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16020 "(libguestfs always adds a few of its own)."
16021 msgstr ""
16022
16023 #. type: =head2
16024 #: ../fish/guestfish-actions.pod:4403
16025 msgid "set-attach-method"
16026 msgstr ""
16027
16028 #. type: =head2
16029 #: ../fish/guestfish-actions.pod:4405
16030 msgid "attach-method"
16031 msgstr ""
16032
16033 #. type: verbatim
16034 #: ../fish/guestfish-actions.pod:4407
16035 #, no-wrap
16036 msgid ""
16037 " set-attach-method attachmethod\n"
16038 "\n"
16039 msgstr ""
16040
16041 #. type: textblock
16042 #: ../fish/guestfish-actions.pod:4409 ../src/guestfs-actions.pod:6844
16043 msgid ""
16044 "Set the method that libguestfs uses to connect to the back end guestfsd "
16045 "daemon.  Possible methods are:"
16046 msgstr ""
16047
16048 #. type: =item
16049 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6849
16050 #: ../src/guestfs.pod:2917
16051 msgid "C<appliance>"
16052 msgstr ""
16053
16054 #. type: textblock
16055 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6851
16056 msgid ""
16057 "Launch an appliance and connect to it.  This is the ordinary method and the "
16058 "default."
16059 msgstr ""
16060
16061 #. type: =item
16062 #: ../fish/guestfish-actions.pod:4419 ../src/guestfs-actions.pod:6854
16063 msgid "C<unix:I<path>>"
16064 msgstr ""
16065
16066 #. type: textblock
16067 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6856
16068 msgid "Connect to the Unix domain socket I<path>."
16069 msgstr ""
16070
16071 #. type: textblock
16072 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6858
16073 msgid ""
16074 "This method lets you connect to an existing daemon or (using virtio-serial) "
16075 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
16076 "RUNNING DAEMONS>."
16077 msgstr ""
16078
16079 #. type: =head2
16080 #: ../fish/guestfish-actions.pod:4429
16081 msgid "set-autosync"
16082 msgstr ""
16083
16084 #. type: =head2
16085 #: ../fish/guestfish-actions.pod:4431
16086 msgid "autosync"
16087 msgstr ""
16088
16089 #. type: verbatim
16090 #: ../fish/guestfish-actions.pod:4433
16091 #, no-wrap
16092 msgid ""
16093 " set-autosync true|false\n"
16094 "\n"
16095 msgstr ""
16096
16097 #. type: textblock
16098 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6874
16099 msgid ""
16100 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16101 "effort attempt to make filesystems consistent and synchronized when the "
16102 "handle is closed (also if the program exits without closing handles)."
16103 msgstr ""
16104
16105 #. type: textblock
16106 #: ../fish/guestfish-actions.pod:4440 ../src/guestfs-actions.pod:6879
16107 msgid ""
16108 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16109 "disabled by default)."
16110 msgstr ""
16111
16112 #. type: =head2
16113 #: ../fish/guestfish-actions.pod:4443
16114 msgid "set-direct"
16115 msgstr ""
16116
16117 #. type: =head2
16118 #: ../fish/guestfish-actions.pod:4445
16119 msgid "direct"
16120 msgstr ""
16121
16122 #. type: verbatim
16123 #: ../fish/guestfish-actions.pod:4447
16124 #, no-wrap
16125 msgid ""
16126 " set-direct true|false\n"
16127 "\n"
16128 msgstr ""
16129
16130 #. type: textblock
16131 #: ../fish/guestfish-actions.pod:4449 ../src/guestfs-actions.pod:6892
16132 msgid ""
16133 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16134 "passed directly through to the appliance once it is launched."
16135 msgstr ""
16136
16137 #. type: textblock
16138 #: ../fish/guestfish-actions.pod:4453
16139 msgid ""
16140 "One consequence of this is that log messages aren't caught by the library "
16141 "and handled by L</set-log-message-callback>, but go straight to stdout."
16142 msgstr ""
16143
16144 #. type: textblock
16145 #: ../fish/guestfish-actions.pod:4457 ../src/guestfs-actions.pod:6900
16146 msgid "You probably don't want to use this unless you know what you are doing."
16147 msgstr ""
16148
16149 #. type: textblock
16150 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6903
16151 msgid "The default is disabled."
16152 msgstr ""
16153
16154 #. type: =head2
16155 #: ../fish/guestfish-actions.pod:4462
16156 msgid "set-e2label"
16157 msgstr ""
16158
16159 #. type: verbatim
16160 #: ../fish/guestfish-actions.pod:4464
16161 #, no-wrap
16162 msgid ""
16163 " set-e2label device label\n"
16164 "\n"
16165 msgstr ""
16166
16167 #. type: textblock
16168 #: ../fish/guestfish-actions.pod:4466 ../src/guestfs-actions.pod:6916
16169 msgid ""
16170 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16171 "C<label>.  Filesystem labels are limited to 16 characters."
16172 msgstr ""
16173
16174 #. type: textblock
16175 #: ../fish/guestfish-actions.pod:4470
16176 msgid ""
16177 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
16178 "label on a filesystem."
16179 msgstr ""
16180
16181 #. type: =head2
16182 #: ../fish/guestfish-actions.pod:4473
16183 msgid "set-e2uuid"
16184 msgstr ""
16185
16186 #. type: verbatim
16187 #: ../fish/guestfish-actions.pod:4475
16188 #, no-wrap
16189 msgid ""
16190 " set-e2uuid device uuid\n"
16191 "\n"
16192 msgstr ""
16193
16194 #. type: textblock
16195 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6934
16196 msgid ""
16197 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16198 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16199 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16200 msgstr ""
16201
16202 #. type: textblock
16203 #: ../fish/guestfish-actions.pod:4482
16204 msgid ""
16205 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
16206 "UUID of a filesystem."
16207 msgstr ""
16208
16209 #. type: =head2
16210 #: ../fish/guestfish-actions.pod:4485
16211 msgid "set-memsize"
16212 msgstr ""
16213
16214 #. type: =head2
16215 #: ../fish/guestfish-actions.pod:4487
16216 msgid "memsize"
16217 msgstr ""
16218
16219 #. type: verbatim
16220 #: ../fish/guestfish-actions.pod:4489
16221 #, no-wrap
16222 msgid ""
16223 " set-memsize memsize\n"
16224 "\n"
16225 msgstr ""
16226
16227 #. type: textblock
16228 #: ../fish/guestfish-actions.pod:4491
16229 msgid ""
16230 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16231 "This only has any effect if called before L</launch>."
16232 msgstr ""
16233
16234 #. type: textblock
16235 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6956
16236 msgid ""
16237 "You can also change this by setting the environment variable "
16238 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16239 msgstr ""
16240
16241 #. type: =head2
16242 #: ../fish/guestfish-actions.pod:4502
16243 msgid "set-network"
16244 msgstr ""
16245
16246 #. type: =head2
16247 #: ../fish/guestfish-actions.pod:4504
16248 msgid "network"
16249 msgstr ""
16250
16251 #. type: verbatim
16252 #: ../fish/guestfish-actions.pod:4506
16253 #, no-wrap
16254 msgid ""
16255 " set-network true|false\n"
16256 "\n"
16257 msgstr ""
16258
16259 #. type: textblock
16260 #: ../fish/guestfish-actions.pod:4508 ../src/guestfs-actions.pod:6973
16261 msgid ""
16262 "If C<network> is true, then the network is enabled in the libguestfs "
16263 "appliance.  The default is false."
16264 msgstr ""
16265
16266 #. type: textblock
16267 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6976
16268 msgid ""
16269 "This affects whether commands are able to access the network (see L<guestfs"
16270 "(3)/RUNNING COMMANDS>)."
16271 msgstr ""
16272
16273 #. type: textblock
16274 #: ../fish/guestfish-actions.pod:4514
16275 msgid ""
16276 "You must call this before calling L</launch>, otherwise it has no effect."
16277 msgstr ""
16278
16279 #. type: =head2
16280 #: ../fish/guestfish-actions.pod:4517
16281 msgid "set-path"
16282 msgstr ""
16283
16284 #. type: verbatim
16285 #: ../fish/guestfish-actions.pod:4521
16286 #, no-wrap
16287 msgid ""
16288 " set-path searchpath\n"
16289 "\n"
16290 msgstr ""
16291
16292 #. type: textblock
16293 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6992
16294 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16295 msgstr ""
16296
16297 #. type: textblock
16298 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6994
16299 msgid ""
16300 "The default is C<$libdir/guestfs> unless overridden by setting "
16301 "C<LIBGUESTFS_PATH> environment variable."
16302 msgstr ""
16303
16304 #. type: textblock
16305 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6997
16306 msgid "Setting C<path> to C<NULL> restores the default path."
16307 msgstr ""
16308
16309 #. type: =head2
16310 #: ../fish/guestfish-actions.pod:4530
16311 msgid "set-pgroup"
16312 msgstr ""
16313
16314 #. type: =head2
16315 #: ../fish/guestfish-actions.pod:4532
16316 msgid "pgroup"
16317 msgstr ""
16318
16319 #. type: verbatim
16320 #: ../fish/guestfish-actions.pod:4534
16321 #, no-wrap
16322 msgid ""
16323 " set-pgroup true|false\n"
16324 "\n"
16325 msgstr ""
16326
16327 #. type: textblock
16328 #: ../fish/guestfish-actions.pod:4536 ../src/guestfs-actions.pod:7009
16329 msgid ""
16330 "If C<pgroup> is true, child processes are placed into their own process "
16331 "group."
16332 msgstr ""
16333
16334 #. type: textblock
16335 #: ../fish/guestfish-actions.pod:4539 ../src/guestfs-actions.pod:7012
16336 msgid ""
16337 "The practical upshot of this is that signals like C<SIGINT> (from users "
16338 "pressing C<^C>) won't be received by the child process."
16339 msgstr ""
16340
16341 #. type: textblock
16342 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:7015
16343 msgid ""
16344 "The default for this flag is false, because usually you want C<^C> to kill "
16345 "the subprocess."
16346 msgstr ""
16347
16348 #. type: =head2
16349 #: ../fish/guestfish-actions.pod:4545
16350 msgid "set-qemu"
16351 msgstr ""
16352
16353 #. type: =head2
16354 #: ../fish/guestfish-actions.pod:4547
16355 msgid "qemu"
16356 msgstr ""
16357
16358 #. type: verbatim
16359 #: ../fish/guestfish-actions.pod:4549
16360 #, no-wrap
16361 msgid ""
16362 " set-qemu qemu\n"
16363 "\n"
16364 msgstr ""
16365
16366 #. type: textblock
16367 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7028
16368 msgid "Set the qemu binary that we will use."
16369 msgstr ""
16370
16371 #. type: textblock
16372 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7030
16373 msgid ""
16374 "The default is chosen when the library was compiled by the configure script."
16375 msgstr ""
16376
16377 #. type: textblock
16378 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:7033
16379 msgid ""
16380 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16381 "variable."
16382 msgstr ""
16383
16384 #. type: textblock
16385 #: ../fish/guestfish-actions.pod:4559 ../src/guestfs-actions.pod:7036
16386 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16387 msgstr ""
16388
16389 #. type: textblock
16390 #: ../fish/guestfish-actions.pod:4561 ../src/guestfs-actions.pod:7038
16391 msgid ""
16392 "Note that you should call this function as early as possible after creating "
16393 "the handle.  This is because some pre-launch operations depend on testing "
16394 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16395 "don't retest features, and so you might see inconsistent results.  Using the "
16396 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16397 "the qemu binary at the same time as the handle is created."
16398 msgstr ""
16399
16400 #. type: =head2
16401 #: ../fish/guestfish-actions.pod:4569
16402 msgid "set-recovery-proc"
16403 msgstr ""
16404
16405 #. type: =head2
16406 #: ../fish/guestfish-actions.pod:4571
16407 msgid "recovery-proc"
16408 msgstr ""
16409
16410 #. type: verbatim
16411 #: ../fish/guestfish-actions.pod:4573
16412 #, no-wrap
16413 msgid ""
16414 " set-recovery-proc true|false\n"
16415 "\n"
16416 msgstr ""
16417
16418 #. type: textblock
16419 #: ../fish/guestfish-actions.pod:4575
16420 msgid ""
16421 "If this is called with the parameter C<false> then L</launch> does not "
16422 "create a recovery process.  The purpose of the recovery process is to stop "
16423 "runaway qemu processes in the case where the main program aborts abruptly."
16424 msgstr ""
16425
16426 #. type: textblock
16427 #: ../fish/guestfish-actions.pod:4580
16428 msgid ""
16429 "This only has any effect if called before L</launch>, and the default is "
16430 "true."
16431 msgstr ""
16432
16433 #. type: textblock
16434 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:7064
16435 msgid ""
16436 "About the only time when you would want to disable this is if the main "
16437 "process will fork itself into the background (\"daemonize\" itself).  In "
16438 "this case the recovery process thinks that the main program has disappeared "
16439 "and so kills qemu, which is not very helpful."
16440 msgstr ""
16441
16442 #. type: =head2
16443 #: ../fish/guestfish-actions.pod:4589
16444 msgid "set-selinux"
16445 msgstr ""
16446
16447 #. type: =head2
16448 #: ../fish/guestfish-actions.pod:4591
16449 msgid "selinux"
16450 msgstr ""
16451
16452 #. type: verbatim
16453 #: ../fish/guestfish-actions.pod:4593
16454 #, no-wrap
16455 msgid ""
16456 " set-selinux true|false\n"
16457 "\n"
16458 msgstr ""
16459
16460 #. type: textblock
16461 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:7080
16462 msgid ""
16463 "This sets the selinux flag that is passed to the appliance at boot time.  "
16464 "The default is C<selinux=0> (disabled)."
16465 msgstr ""
16466
16467 #. type: textblock
16468 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:7083
16469 msgid ""
16470 "Note that if SELinux is enabled, it is always in Permissive mode "
16471 "(C<enforcing=0>)."
16472 msgstr ""
16473
16474 #. type: =head2
16475 #: ../fish/guestfish-actions.pod:4604
16476 msgid "set-smp"
16477 msgstr ""
16478
16479 #. type: =head2
16480 #: ../fish/guestfish-actions.pod:4606
16481 msgid "smp"
16482 msgstr ""
16483
16484 #. type: verbatim
16485 #: ../fish/guestfish-actions.pod:4608
16486 #, no-wrap
16487 msgid ""
16488 " set-smp smp\n"
16489 "\n"
16490 msgstr ""
16491
16492 #. type: textblock
16493 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:7099
16494 msgid ""
16495 "Change the number of virtual CPUs assigned to the appliance.  The default is "
16496 "C<1>.  Increasing this may improve performance, though often it has no "
16497 "effect."
16498 msgstr ""
16499
16500 #. type: textblock
16501 #: ../fish/guestfish-actions.pod:4614
16502 msgid "This function must be called before L</launch>."
16503 msgstr ""
16504
16505 #. type: =head2
16506 #: ../fish/guestfish-actions.pod:4616
16507 msgid "set-trace"
16508 msgstr ""
16509
16510 #. type: =head2
16511 #: ../fish/guestfish-actions.pod:4618
16512 msgid "trace"
16513 msgstr ""
16514
16515 #. type: verbatim
16516 #: ../fish/guestfish-actions.pod:4620
16517 #, no-wrap
16518 msgid ""
16519 " set-trace true|false\n"
16520 "\n"
16521 msgstr ""
16522
16523 #. type: textblock
16524 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:7115
16525 msgid ""
16526 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16527 "return values are traced."
16528 msgstr ""
16529
16530 #. type: textblock
16531 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:7118
16532 msgid ""
16533 "If you want to trace C API calls into libguestfs (and other libraries) then "
16534 "possibly a better way is to use the external ltrace(1) command."
16535 msgstr ""
16536
16537 #. type: textblock
16538 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7122
16539 msgid ""
16540 "Command traces are disabled unless the environment variable "
16541 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16542 msgstr ""
16543
16544 #. type: textblock
16545 #: ../fish/guestfish-actions.pod:4632
16546 msgid ""
16547 "Trace messages are normally sent to C<stderr>, unless you register a "
16548 "callback to send them somewhere else (see L</set-event-callback>)."
16549 msgstr ""
16550
16551 #. type: =head2
16552 #: ../fish/guestfish-actions.pod:4636
16553 msgid "set-verbose"
16554 msgstr ""
16555
16556 #. type: =head2
16557 #: ../fish/guestfish-actions.pod:4638
16558 msgid "verbose"
16559 msgstr ""
16560
16561 #. type: verbatim
16562 #: ../fish/guestfish-actions.pod:4640
16563 #, no-wrap
16564 msgid ""
16565 " set-verbose true|false\n"
16566 "\n"
16567 msgstr ""
16568
16569 #. type: textblock
16570 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:7139
16571 msgid "If C<verbose> is true, this turns on verbose messages."
16572 msgstr ""
16573
16574 #. type: textblock
16575 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7141
16576 msgid ""
16577 "Verbose messages are disabled unless the environment variable "
16578 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16579 msgstr ""
16580
16581 #. type: textblock
16582 #: ../fish/guestfish-actions.pod:4647
16583 msgid ""
16584 "Verbose messages are normally sent to C<stderr>, unless you register a "
16585 "callback to send them somewhere else (see L</set-event-callback>)."
16586 msgstr ""
16587
16588 #. type: =head2
16589 #: ../fish/guestfish-actions.pod:4651
16590 msgid "setcon"
16591 msgstr ""
16592
16593 #. type: verbatim
16594 #: ../fish/guestfish-actions.pod:4653
16595 #, no-wrap
16596 msgid ""
16597 " setcon context\n"
16598 "\n"
16599 msgstr ""
16600
16601 #. type: textblock
16602 #: ../fish/guestfish-actions.pod:4655 ../src/guestfs-actions.pod:7158
16603 msgid ""
16604 "This sets the SELinux security context of the daemon to the string "
16605 "C<context>."
16606 msgstr ""
16607
16608 #. type: textblock
16609 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7161
16610 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16611 msgstr ""
16612
16613 #. type: =head2
16614 #: ../fish/guestfish-actions.pod:4660
16615 msgid "setxattr"
16616 msgstr ""
16617
16618 #. type: verbatim
16619 #: ../fish/guestfish-actions.pod:4662
16620 #, no-wrap
16621 msgid ""
16622 " setxattr xattr val vallen path\n"
16623 "\n"
16624 msgstr ""
16625
16626 #. type: textblock
16627 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7176
16628 msgid ""
16629 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16630 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16631 msgstr ""
16632
16633 #. type: textblock
16634 #: ../fish/guestfish-actions.pod:4668
16635 msgid "See also: L</lsetxattr>, L<attr(5)>."
16636 msgstr ""
16637
16638 #. type: =head2
16639 #: ../fish/guestfish-actions.pod:4670
16640 msgid "sfdisk"
16641 msgstr ""
16642
16643 #. type: verbatim
16644 #: ../fish/guestfish-actions.pod:4672
16645 #, no-wrap
16646 msgid ""
16647 " sfdisk device cyls heads sectors 'lines ...'\n"
16648 "\n"
16649 msgstr ""
16650
16651 #. type: textblock
16652 #: ../fish/guestfish-actions.pod:4674 ../src/guestfs-actions.pod:7203
16653 msgid ""
16654 "This is a direct interface to the L<sfdisk(8)> program for creating "
16655 "partitions on block devices."
16656 msgstr ""
16657
16658 #. type: textblock
16659 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7206
16660 msgid "C<device> should be a block device, for example C</dev/sda>."
16661 msgstr ""
16662
16663 #. type: textblock
16664 #: ../fish/guestfish-actions.pod:4679 ../src/guestfs-actions.pod:7208
16665 msgid ""
16666 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16667 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16668 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16669 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16670 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16671 "the kernel) cannot work out the right geometry and you will need to tell it."
16672 msgstr ""
16673
16674 #. type: textblock
16675 #: ../fish/guestfish-actions.pod:4687 ../src/guestfs-actions.pod:7216
16676 msgid ""
16677 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16678 "refer to the L<sfdisk(8)> manpage."
16679 msgstr ""
16680
16681 #. type: textblock
16682 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7219
16683 msgid ""
16684 "To create a single partition occupying the whole disk, you would pass "
16685 "C<lines> as a single element list, when the single element being the string "
16686 "C<,> (comma)."
16687 msgstr ""
16688
16689 #. type: textblock
16690 #: ../fish/guestfish-actions.pod:4694
16691 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16692 msgstr ""
16693
16694 #. type: textblock
16695 #: ../fish/guestfish-actions.pod:4697 ../fish/guestfish-actions.pod:4717
16696 #: ../fish/guestfish-actions.pod:4736
16697 msgid ""
16698 "I<This function is deprecated.> In new code, use the L</part_add> call "
16699 "instead."
16700 msgstr ""
16701
16702 #. type: =head2
16703 #: ../fish/guestfish-actions.pod:4704
16704 msgid "sfdiskM"
16705 msgstr ""
16706
16707 #. type: verbatim
16708 #: ../fish/guestfish-actions.pod:4706
16709 #, no-wrap
16710 msgid ""
16711 " sfdiskM device 'lines ...'\n"
16712 "\n"
16713 msgstr ""
16714
16715 #. type: textblock
16716 #: ../fish/guestfish-actions.pod:4708
16717 msgid ""
16718 "This is a simplified interface to the L</sfdisk> command, where partition "
16719 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16720 "you don't need to specify the cyls, heads and sectors parameters which were "
16721 "rarely if ever used anyway."
16722 msgstr ""
16723
16724 #. type: textblock
16725 #: ../fish/guestfish-actions.pod:4714
16726 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16727 msgstr ""
16728
16729 #. type: =head2
16730 #: ../fish/guestfish-actions.pod:4724
16731 msgid "sfdisk-N"
16732 msgstr ""
16733
16734 #. type: verbatim
16735 #: ../fish/guestfish-actions.pod:4726
16736 #, no-wrap
16737 msgid ""
16738 " sfdisk-N device partnum cyls heads sectors line\n"
16739 "\n"
16740 msgstr ""
16741
16742 #. type: textblock
16743 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
16744 msgid ""
16745 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16746 "(note: C<n> counts from 1)."
16747 msgstr ""
16748
16749 #. type: textblock
16750 #: ../fish/guestfish-actions.pod:4731
16751 msgid ""
16752 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16753 "cyls/heads/sectors parameters."
16754 msgstr ""
16755
16756 #. type: textblock
16757 #: ../fish/guestfish-actions.pod:4734
16758 msgid "See also: L</part-add>"
16759 msgstr ""
16760
16761 #. type: =head2
16762 #: ../fish/guestfish-actions.pod:4743
16763 msgid "sfdisk-disk-geometry"
16764 msgstr ""
16765
16766 #. type: verbatim
16767 #: ../fish/guestfish-actions.pod:4745
16768 #, no-wrap
16769 msgid ""
16770 " sfdisk-disk-geometry device\n"
16771 "\n"
16772 msgstr ""
16773
16774 #. type: textblock
16775 #: ../fish/guestfish-actions.pod:4747
16776 msgid ""
16777 "This displays the disk geometry of C<device> read from the partition table.  "
16778 "Especially in the case where the underlying block device has been resized, "
16779 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16780 "kernel-geometry>)."
16781 msgstr ""
16782
16783 #. type: textblock
16784 #: ../fish/guestfish-actions.pod:4752 ../fish/guestfish-actions.pod:4761
16785 #: ../src/guestfs-actions.pod:7298 ../src/guestfs-actions.pod:7314
16786 msgid "The result is in human-readable format, and not designed to be parsed."
16787 msgstr ""
16788
16789 #. type: =head2
16790 #: ../fish/guestfish-actions.pod:4755
16791 msgid "sfdisk-kernel-geometry"
16792 msgstr ""
16793
16794 #. type: verbatim
16795 #: ../fish/guestfish-actions.pod:4757
16796 #, no-wrap
16797 msgid ""
16798 " sfdisk-kernel-geometry device\n"
16799 "\n"
16800 msgstr ""
16801
16802 #. type: textblock
16803 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7312
16804 msgid "This displays the kernel's idea of the geometry of C<device>."
16805 msgstr ""
16806
16807 #. type: =head2
16808 #: ../fish/guestfish-actions.pod:4764
16809 msgid "sfdisk-l"
16810 msgstr ""
16811
16812 #. type: verbatim
16813 #: ../fish/guestfish-actions.pod:4766
16814 #, no-wrap
16815 msgid ""
16816 " sfdisk-l device\n"
16817 "\n"
16818 msgstr ""
16819
16820 #. type: textblock
16821 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7335
16822 msgid ""
16823 "This displays the partition table on C<device>, in the human-readable output "
16824 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16825 msgstr ""
16826
16827 #. type: textblock
16828 #: ../fish/guestfish-actions.pod:4772
16829 msgid "See also: L</part-list>"
16830 msgstr ""
16831
16832 #. type: textblock
16833 #: ../fish/guestfish-actions.pod:4774
16834 msgid ""
16835 "I<This function is deprecated.> In new code, use the L</part_list> call "
16836 "instead."
16837 msgstr ""
16838
16839 #. type: =head2
16840 #: ../fish/guestfish-actions.pod:4781
16841 msgid "sh"
16842 msgstr ""
16843
16844 #. type: verbatim
16845 #: ../fish/guestfish-actions.pod:4783
16846 #, no-wrap
16847 msgid ""
16848 " sh command\n"
16849 "\n"
16850 msgstr ""
16851
16852 #. type: textblock
16853 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7352
16854 msgid ""
16855 "This call runs a command from the guest filesystem via the guest's C</bin/"
16856 "sh>."
16857 msgstr ""
16858
16859 #. type: textblock
16860 #: ../fish/guestfish-actions.pod:4788
16861 msgid "This is like L</command>, but passes the command to:"
16862 msgstr ""
16863
16864 #. type: verbatim
16865 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7357
16866 #, no-wrap
16867 msgid ""
16868 " /bin/sh -c \"command\"\n"
16869 "\n"
16870 msgstr ""
16871
16872 #. type: textblock
16873 #: ../fish/guestfish-actions.pod:4792 ../src/guestfs-actions.pod:7359
16874 msgid ""
16875 "Depending on the guest's shell, this usually results in wildcards being "
16876 "expanded, shell expressions being interpolated and so on."
16877 msgstr ""
16878
16879 #. type: textblock
16880 #: ../fish/guestfish-actions.pod:4796
16881 msgid "All the provisos about L</command> apply to this call."
16882 msgstr ""
16883
16884 #. type: =head2
16885 #: ../fish/guestfish-actions.pod:4798
16886 msgid "sh-lines"
16887 msgstr ""
16888
16889 #. type: verbatim
16890 #: ../fish/guestfish-actions.pod:4800
16891 #, no-wrap
16892 msgid ""
16893 " sh-lines command\n"
16894 "\n"
16895 msgstr ""
16896
16897 #. type: textblock
16898 #: ../fish/guestfish-actions.pod:4802
16899 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16900 msgstr ""
16901
16902 #. type: textblock
16903 #: ../fish/guestfish-actions.pod:4805
16904 msgid "See also: L</command-lines>"
16905 msgstr ""
16906
16907 #. type: =head2
16908 #: ../fish/guestfish-actions.pod:4807
16909 msgid "sleep"
16910 msgstr ""
16911
16912 #. type: verbatim
16913 #: ../fish/guestfish-actions.pod:4809
16914 #, no-wrap
16915 msgid ""
16916 " sleep secs\n"
16917 "\n"
16918 msgstr ""
16919
16920 #. type: textblock
16921 #: ../fish/guestfish-actions.pod:4811 ../src/guestfs-actions.pod:7393
16922 msgid "Sleep for C<secs> seconds."
16923 msgstr ""
16924
16925 #. type: =head2
16926 #: ../fish/guestfish-actions.pod:4813
16927 msgid "stat"
16928 msgstr ""
16929
16930 #. type: verbatim
16931 #: ../fish/guestfish-actions.pod:4815
16932 #, no-wrap
16933 msgid ""
16934 " stat path\n"
16935 "\n"
16936 msgstr ""
16937
16938 #. type: textblock
16939 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7407
16940 msgid "This is the same as the C<stat(2)> system call."
16941 msgstr ""
16942
16943 #. type: =head2
16944 #: ../fish/guestfish-actions.pod:4821
16945 msgid "statvfs"
16946 msgstr ""
16947
16948 #. type: verbatim
16949 #: ../fish/guestfish-actions.pod:4823
16950 #, no-wrap
16951 msgid ""
16952 " statvfs path\n"
16953 "\n"
16954 msgstr ""
16955
16956 #. type: textblock
16957 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7421
16958 msgid ""
16959 "Returns file system statistics for any mounted file system.  C<path> should "
16960 "be a file or directory in the mounted file system (typically it is the mount "
16961 "point itself, but it doesn't need to be)."
16962 msgstr ""
16963
16964 #. type: textblock
16965 #: ../fish/guestfish-actions.pod:4829 ../src/guestfs-actions.pod:7425
16966 msgid "This is the same as the C<statvfs(2)> system call."
16967 msgstr ""
16968
16969 #. type: =head2
16970 #: ../fish/guestfish-actions.pod:4831
16971 msgid "strings"
16972 msgstr ""
16973
16974 #. type: verbatim
16975 #: ../fish/guestfish-actions.pod:4833
16976 #, no-wrap
16977 msgid ""
16978 " strings path\n"
16979 "\n"
16980 msgstr ""
16981
16982 #. type: textblock
16983 #: ../fish/guestfish-actions.pod:4835 ../src/guestfs-actions.pod:7439
16984 msgid ""
16985 "This runs the L<strings(1)> command on a file and returns the list of "
16986 "printable strings found."
16987 msgstr ""
16988
16989 #. type: =head2
16990 #: ../fish/guestfish-actions.pod:4841
16991 msgid "strings-e"
16992 msgstr ""
16993
16994 #. type: verbatim
16995 #: ../fish/guestfish-actions.pod:4843
16996 #, no-wrap
16997 msgid ""
16998 " strings-e encoding path\n"
16999 "\n"
17000 msgstr ""
17001
17002 #. type: textblock
17003 #: ../fish/guestfish-actions.pod:4845
17004 msgid ""
17005 "This is like the L</strings> command, but allows you to specify the encoding "
17006 "of strings that are looked for in the source file C<path>."
17007 msgstr ""
17008
17009 #. type: textblock
17010 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7462
17011 msgid "Allowed encodings are:"
17012 msgstr ""
17013
17014 #. type: =item
17015 #: ../fish/guestfish-actions.pod:4853 ../src/guestfs-actions.pod:7466
17016 msgid "s"
17017 msgstr ""
17018
17019 #. type: textblock
17020 #: ../fish/guestfish-actions.pod:4855
17021 msgid ""
17022 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17023 "ISO-8859-X (this is what L</strings> uses)."
17024 msgstr ""
17025
17026 #. type: =item
17027 #: ../fish/guestfish-actions.pod:4858 ../src/guestfs-actions.pod:7471
17028 msgid "S"
17029 msgstr ""
17030
17031 #. type: textblock
17032 #: ../fish/guestfish-actions.pod:4860 ../src/guestfs-actions.pod:7473
17033 msgid "Single 8-bit-byte characters."
17034 msgstr ""
17035
17036 #. type: =item
17037 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7475
17038 msgid "b"
17039 msgstr ""
17040
17041 #. type: textblock
17042 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7477
17043 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17044 msgstr ""
17045
17046 #. type: =item
17047 #: ../fish/guestfish-actions.pod:4867 ../src/guestfs-actions.pod:7480
17048 msgid "l (lower case letter L)"
17049 msgstr ""
17050
17051 #. type: textblock
17052 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7482
17053 msgid ""
17054 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
17055 "examining binaries in Windows guests."
17056 msgstr ""
17057
17058 #. type: =item
17059 #: ../fish/guestfish-actions.pod:4872 ../src/guestfs-actions.pod:7485
17060 msgid "B"
17061 msgstr ""
17062
17063 #. type: textblock
17064 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7487
17065 msgid "32-bit big endian such as UCS-4BE."
17066 msgstr ""
17067
17068 #. type: =item
17069 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7489
17070 msgid "L"
17071 msgstr ""
17072
17073 #. type: textblock
17074 #: ../fish/guestfish-actions.pod:4878 ../src/guestfs-actions.pod:7491
17075 msgid "32-bit little endian such as UCS-4LE."
17076 msgstr ""
17077
17078 #. type: textblock
17079 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7495
17080 msgid "The returned strings are transcoded to UTF-8."
17081 msgstr ""
17082
17083 #. type: =head2
17084 #: ../fish/guestfish-actions.pod:4887
17085 msgid "swapoff-device"
17086 msgstr ""
17087
17088 #. type: verbatim
17089 #: ../fish/guestfish-actions.pod:4889
17090 #, no-wrap
17091 msgid ""
17092 " swapoff-device device\n"
17093 "\n"
17094 msgstr ""
17095
17096 #. type: textblock
17097 #: ../fish/guestfish-actions.pod:4891
17098 msgid ""
17099 "This command disables the libguestfs appliance swap device or partition "
17100 "named C<device>.  See L</swapon-device>."
17101 msgstr ""
17102
17103 #. type: =head2
17104 #: ../fish/guestfish-actions.pod:4895
17105 msgid "swapoff-file"
17106 msgstr ""
17107
17108 #. type: verbatim
17109 #: ../fish/guestfish-actions.pod:4897
17110 #, no-wrap
17111 msgid ""
17112 " swapoff-file file\n"
17113 "\n"
17114 msgstr ""
17115
17116 #. type: textblock
17117 #: ../fish/guestfish-actions.pod:4899 ../src/guestfs-actions.pod:7526
17118 msgid "This command disables the libguestfs appliance swap on file."
17119 msgstr ""
17120
17121 #. type: =head2
17122 #: ../fish/guestfish-actions.pod:4901
17123 msgid "swapoff-label"
17124 msgstr ""
17125
17126 #. type: verbatim
17127 #: ../fish/guestfish-actions.pod:4903
17128 #, no-wrap
17129 msgid ""
17130 " swapoff-label label\n"
17131 "\n"
17132 msgstr ""
17133
17134 #. type: textblock
17135 #: ../fish/guestfish-actions.pod:4905 ../src/guestfs-actions.pod:7538
17136 msgid ""
17137 "This command disables the libguestfs appliance swap on labeled swap "
17138 "partition."
17139 msgstr ""
17140
17141 #. type: =head2
17142 #: ../fish/guestfish-actions.pod:4908
17143 msgid "swapoff-uuid"
17144 msgstr ""
17145
17146 #. type: verbatim
17147 #: ../fish/guestfish-actions.pod:4910
17148 #, no-wrap
17149 msgid ""
17150 " swapoff-uuid uuid\n"
17151 "\n"
17152 msgstr ""
17153
17154 #. type: textblock
17155 #: ../fish/guestfish-actions.pod:4912 ../src/guestfs-actions.pod:7551
17156 msgid ""
17157 "This command disables the libguestfs appliance swap partition with the given "
17158 "UUID."
17159 msgstr ""
17160
17161 #. type: =head2
17162 #: ../fish/guestfish-actions.pod:4915
17163 msgid "swapon-device"
17164 msgstr ""
17165
17166 #. type: verbatim
17167 #: ../fish/guestfish-actions.pod:4917
17168 #, no-wrap
17169 msgid ""
17170 " swapon-device device\n"
17171 "\n"
17172 msgstr ""
17173
17174 #. type: textblock
17175 #: ../fish/guestfish-actions.pod:4919
17176 msgid ""
17177 "This command enables the libguestfs appliance to use the swap device or "
17178 "partition named C<device>.  The increased memory is made available for all "
17179 "commands, for example those run using L</command> or L</sh>."
17180 msgstr ""
17181
17182 #. type: textblock
17183 #: ../fish/guestfish-actions.pod:4924 ../src/guestfs-actions.pod:7569
17184 msgid ""
17185 "Note that you should not swap to existing guest swap partitions unless you "
17186 "know what you are doing.  They may contain hibernation information, or other "
17187 "information that the guest doesn't want you to trash.  You also risk leaking "
17188 "information about the host to the guest this way.  Instead, attach a new "
17189 "host device to the guest and swap on that."
17190 msgstr ""
17191
17192 #. type: =head2
17193 #: ../fish/guestfish-actions.pod:4931
17194 msgid "swapon-file"
17195 msgstr ""
17196
17197 #. type: verbatim
17198 #: ../fish/guestfish-actions.pod:4933
17199 #, no-wrap
17200 msgid ""
17201 " swapon-file file\n"
17202 "\n"
17203 msgstr ""
17204
17205 #. type: textblock
17206 #: ../fish/guestfish-actions.pod:4935
17207 msgid ""
17208 "This command enables swap to a file.  See L</swapon-device> for other notes."
17209 msgstr ""
17210
17211 #. type: =head2
17212 #: ../fish/guestfish-actions.pod:4938
17213 msgid "swapon-label"
17214 msgstr ""
17215
17216 #. type: verbatim
17217 #: ../fish/guestfish-actions.pod:4940
17218 #, no-wrap
17219 msgid ""
17220 " swapon-label label\n"
17221 "\n"
17222 msgstr ""
17223
17224 #. type: textblock
17225 #: ../fish/guestfish-actions.pod:4942
17226 msgid ""
17227 "This command enables swap to a labeled swap partition.  See L</swapon-"
17228 "device> for other notes."
17229 msgstr ""
17230
17231 #. type: =head2
17232 #: ../fish/guestfish-actions.pod:4945
17233 msgid "swapon-uuid"
17234 msgstr ""
17235
17236 #. type: verbatim
17237 #: ../fish/guestfish-actions.pod:4947
17238 #, no-wrap
17239 msgid ""
17240 " swapon-uuid uuid\n"
17241 "\n"
17242 msgstr ""
17243
17244 #. type: textblock
17245 #: ../fish/guestfish-actions.pod:4949
17246 msgid ""
17247 "This command enables swap to a swap partition with the given UUID.  See L</"
17248 "swapon-device> for other notes."
17249 msgstr ""
17250
17251 #. type: =head2
17252 #: ../fish/guestfish-actions.pod:4952
17253 msgid "sync"
17254 msgstr ""
17255
17256 #. type: verbatim
17257 #: ../fish/guestfish-actions.pod:4954
17258 #, no-wrap
17259 msgid ""
17260 " sync\n"
17261 "\n"
17262 msgstr ""
17263
17264 #. type: textblock
17265 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7624
17266 msgid ""
17267 "This syncs the disk, so that any writes are flushed through to the "
17268 "underlying disk image."
17269 msgstr ""
17270
17271 #. type: textblock
17272 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7627
17273 msgid ""
17274 "You should always call this if you have modified a disk image, before "
17275 "closing the handle."
17276 msgstr ""
17277
17278 #. type: =head2
17279 #: ../fish/guestfish-actions.pod:4962
17280 msgid "tail"
17281 msgstr ""
17282
17283 #. type: verbatim
17284 #: ../fish/guestfish-actions.pod:4964
17285 #, no-wrap
17286 msgid ""
17287 " tail path\n"
17288 "\n"
17289 msgstr ""
17290
17291 #. type: textblock
17292 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7640
17293 msgid ""
17294 "This command returns up to the last 10 lines of a file as a list of strings."
17295 msgstr ""
17296
17297 #. type: =head2
17298 #: ../fish/guestfish-actions.pod:4972
17299 msgid "tail-n"
17300 msgstr ""
17301
17302 #. type: verbatim
17303 #: ../fish/guestfish-actions.pod:4974
17304 #, no-wrap
17305 msgid ""
17306 " tail-n nrlines path\n"
17307 "\n"
17308 msgstr ""
17309
17310 #. type: textblock
17311 #: ../fish/guestfish-actions.pod:4976 ../src/guestfs-actions.pod:7659
17312 msgid ""
17313 "If the parameter C<nrlines> is a positive number, this returns the last "
17314 "C<nrlines> lines of the file C<path>."
17315 msgstr ""
17316
17317 #. type: textblock
17318 #: ../fish/guestfish-actions.pod:4979 ../src/guestfs-actions.pod:7662
17319 msgid ""
17320 "If the parameter C<nrlines> is a negative number, this returns lines from "
17321 "the file C<path>, starting with the C<-nrlines>th line."
17322 msgstr ""
17323
17324 #. type: =head2
17325 #: ../fish/guestfish-actions.pod:4987
17326 msgid "tar-in"
17327 msgstr ""
17328
17329 #. type: verbatim
17330 #: ../fish/guestfish-actions.pod:4989
17331 #, no-wrap
17332 msgid ""
17333 " tar-in (tarfile|-) directory\n"
17334 "\n"
17335 msgstr ""
17336
17337 #. type: textblock
17338 #: ../fish/guestfish-actions.pod:4991 ../src/guestfs-actions.pod:7683
17339 msgid ""
17340 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17341 "tar file) into C<directory>."
17342 msgstr ""
17343
17344 #. type: textblock
17345 #: ../fish/guestfish-actions.pod:4994
17346 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17347 msgstr ""
17348
17349 #. type: =head2
17350 #: ../fish/guestfish-actions.pod:4999
17351 msgid "tar-out"
17352 msgstr ""
17353
17354 #. type: verbatim
17355 #: ../fish/guestfish-actions.pod:5001
17356 #, no-wrap
17357 msgid ""
17358 " tar-out directory (tarfile|-)\n"
17359 "\n"
17360 msgstr ""
17361
17362 #. type: textblock
17363 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7700
17364 msgid ""
17365 "This command packs the contents of C<directory> and downloads it to local "
17366 "file C<tarfile>."
17367 msgstr ""
17368
17369 #. type: textblock
17370 #: ../fish/guestfish-actions.pod:5006
17371 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17372 msgstr ""
17373
17374 #. type: =head2
17375 #: ../fish/guestfish-actions.pod:5011
17376 msgid "tgz-in"
17377 msgstr ""
17378
17379 #. type: verbatim
17380 #: ../fish/guestfish-actions.pod:5013
17381 #, no-wrap
17382 msgid ""
17383 " tgz-in (tarball|-) directory\n"
17384 "\n"
17385 msgstr ""
17386
17387 #. type: textblock
17388 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7717
17389 msgid ""
17390 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17391 "tar file) into C<directory>."
17392 msgstr ""
17393
17394 #. type: textblock
17395 #: ../fish/guestfish-actions.pod:5018
17396 msgid "To upload an uncompressed tarball, use L</tar-in>."
17397 msgstr ""
17398
17399 #. type: =head2
17400 #: ../fish/guestfish-actions.pod:5022
17401 msgid "tgz-out"
17402 msgstr ""
17403
17404 #. type: verbatim
17405 #: ../fish/guestfish-actions.pod:5024
17406 #, no-wrap
17407 msgid ""
17408 " tgz-out directory (tarball|-)\n"
17409 "\n"
17410 msgstr ""
17411
17412 #. type: textblock
17413 #: ../fish/guestfish-actions.pod:5026 ../src/guestfs-actions.pod:7733
17414 msgid ""
17415 "This command packs the contents of C<directory> and downloads it to local "
17416 "file C<tarball>."
17417 msgstr ""
17418
17419 #. type: textblock
17420 #: ../fish/guestfish-actions.pod:5029
17421 msgid "To download an uncompressed tarball, use L</tar-out>."
17422 msgstr ""
17423
17424 #. type: =head2
17425 #: ../fish/guestfish-actions.pod:5033
17426 msgid "touch"
17427 msgstr ""
17428
17429 #. type: verbatim
17430 #: ../fish/guestfish-actions.pod:5035
17431 #, no-wrap
17432 msgid ""
17433 " touch path\n"
17434 "\n"
17435 msgstr ""
17436
17437 #. type: textblock
17438 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7748
17439 msgid ""
17440 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17441 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17442 "length file."
17443 msgstr ""
17444
17445 #. type: textblock
17446 #: ../fish/guestfish-actions.pod:5041 ../src/guestfs-actions.pod:7752
17447 msgid ""
17448 "This command only works on regular files, and will fail on other file types "
17449 "such as directories, symbolic links, block special etc."
17450 msgstr ""
17451
17452 #. type: =head2
17453 #: ../fish/guestfish-actions.pod:5044
17454 msgid "truncate"
17455 msgstr ""
17456
17457 #. type: verbatim
17458 #: ../fish/guestfish-actions.pod:5046
17459 #, no-wrap
17460 msgid ""
17461 " truncate path\n"
17462 "\n"
17463 msgstr ""
17464
17465 #. type: textblock
17466 #: ../fish/guestfish-actions.pod:5048 ../src/guestfs-actions.pod:7765
17467 msgid ""
17468 "This command truncates C<path> to a zero-length file.  The file must exist "
17469 "already."
17470 msgstr ""
17471
17472 #. type: =head2
17473 #: ../fish/guestfish-actions.pod:5051
17474 msgid "truncate-size"
17475 msgstr ""
17476
17477 #. type: verbatim
17478 #: ../fish/guestfish-actions.pod:5053
17479 #, no-wrap
17480 msgid ""
17481 " truncate-size path size\n"
17482 "\n"
17483 msgstr ""
17484
17485 #. type: textblock
17486 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7779
17487 msgid ""
17488 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17489 "already."
17490 msgstr ""
17491
17492 #. type: textblock
17493 #: ../fish/guestfish-actions.pod:5058
17494 msgid ""
17495 "If the current file size is less than C<size> then the file is extended to "
17496 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17497 "blocks are not allocated for the file until you write to it).  To create a "
17498 "non-sparse file of zeroes, use L</fallocate64> instead."
17499 msgstr ""
17500
17501 #. type: =head2
17502 #: ../fish/guestfish-actions.pod:5064
17503 msgid "tune2fs"
17504 msgstr ""
17505
17506 #. type: verbatim
17507 #: ../fish/guestfish-actions.pod:5066
17508 #, no-wrap
17509 msgid ""
17510 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] [errorbehavior:..] [group:N] [intervalbetweenchecks:N] [reservedblockspercentage:N] [lastmounteddirectory:..] [reservedblockscount:N] [user:N]\n"
17511 "\n"
17512 msgstr ""
17513
17514 #. type: textblock
17515 #: ../fish/guestfish-actions.pod:5068 ../src/guestfs-actions.pod:7815
17516 msgid ""
17517 "This call allows you to adjust various filesystem parameters of an ext2/ext3/"
17518 "ext4 filesystem called C<device>."
17519 msgstr ""
17520
17521 #. type: textblock
17522 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7824
17523 msgid ""
17524 "Force tune2fs to complete the operation even in the face of errors.  This is "
17525 "the same as the tune2fs C<-f> option."
17526 msgstr ""
17527
17528 #. type: =item
17529 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7827
17530 msgid "C<maxmountcount>"
17531 msgstr ""
17532
17533 #. type: textblock
17534 #: ../fish/guestfish-actions.pod:5082 ../src/guestfs-actions.pod:7829
17535 msgid ""
17536 "Set the number of mounts after which the filesystem is checked by L<e2fsck(8)"
17537 ">.  If this is C<0> then the number of mounts is disregarded.  This is the "
17538 "same as the tune2fs C<-c> option."
17539 msgstr ""
17540
17541 #. type: =item
17542 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7833
17543 msgid "C<mountcount>"
17544 msgstr ""
17545
17546 #. type: textblock
17547 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7835
17548 msgid ""
17549 "Set the number of times the filesystem has been mounted.  This is the same "
17550 "as the tune2fs C<-C> option."
17551 msgstr ""
17552
17553 #. type: =item
17554 #: ../fish/guestfish-actions.pod:5091 ../src/guestfs-actions.pod:7838
17555 msgid "C<errorbehavior>"
17556 msgstr ""
17557
17558 #. type: textblock
17559 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7840
17560 msgid ""
17561 "Change the behavior of the kernel code when errors are detected.  Possible "
17562 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
17563 "these options don't really make any difference, particularly for write "
17564 "errors."
17565 msgstr ""
17566
17567 #. type: textblock
17568 #: ../fish/guestfish-actions.pod:5098 ../src/guestfs-actions.pod:7845
17569 msgid "This is the same as the tune2fs C<-e> option."
17570 msgstr ""
17571
17572 #. type: =item
17573 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7847
17574 msgid "C<group>"
17575 msgstr ""
17576
17577 #. type: textblock
17578 #: ../fish/guestfish-actions.pod:5102 ../src/guestfs-actions.pod:7849
17579 msgid ""
17580 "Set the group which can use reserved filesystem blocks.  This is the same as "
17581 "the tune2fs C<-g> option except that it can only be specified as a number."
17582 msgstr ""
17583
17584 #. type: =item
17585 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7853
17586 msgid "C<intervalbetweenchecks>"
17587 msgstr ""
17588
17589 #. type: textblock
17590 #: ../fish/guestfish-actions.pod:5108 ../src/guestfs-actions.pod:7855
17591 msgid ""
17592 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
17593 "option is passed as C<0> then time-dependent checking is disabled."
17594 msgstr ""
17595
17596 #. type: textblock
17597 #: ../fish/guestfish-actions.pod:5112 ../src/guestfs-actions.pod:7859
17598 msgid "This is the same as the tune2fs C<-i> option."
17599 msgstr ""
17600
17601 #. type: =item
17602 #: ../fish/guestfish-actions.pod:5114 ../src/guestfs-actions.pod:7861
17603 msgid "C<reservedblockspercentage>"
17604 msgstr ""
17605
17606 #. type: textblock
17607 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7863
17608 msgid ""
17609 "Set the percentage of the filesystem which may only be allocated by "
17610 "privileged processes.  This is the same as the tune2fs C<-m> option."
17611 msgstr ""
17612
17613 #. type: =item
17614 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7867
17615 msgid "C<lastmounteddirectory>"
17616 msgstr ""
17617
17618 #. type: textblock
17619 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7869
17620 msgid ""
17621 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
17622 "option."
17623 msgstr ""
17624
17625 #. type: =item
17626 #: ../fish/guestfish-actions.pod:5125 ../src/guestfs-actions.pod:7872
17627 msgid ""
17628 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
17629 "is the same as the tune2fs C<-r> option."
17630 msgstr ""
17631
17632 #. type: =item
17633 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7876
17634 msgid "C<user>"
17635 msgstr ""
17636
17637 #. type: textblock
17638 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7878
17639 msgid ""
17640 "Set the user who can use the reserved filesystem blocks.  This is the same "
17641 "as the tune2fs C<-u> option except that it can only be specified as a number."
17642 msgstr ""
17643
17644 #. type: textblock
17645 #: ../fish/guestfish-actions.pod:5137
17646 msgid ""
17647 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
17648 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
17649 msgstr ""
17650
17651 #. type: =head2
17652 #: ../fish/guestfish-actions.pod:5143
17653 msgid "tune2fs-l"
17654 msgstr ""
17655
17656 #. type: verbatim
17657 #: ../fish/guestfish-actions.pod:5145
17658 #, no-wrap
17659 msgid ""
17660 " tune2fs-l device\n"
17661 "\n"
17662 msgstr ""
17663
17664 #. type: textblock
17665 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7920
17666 msgid ""
17667 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17668 "C<device>."
17669 msgstr ""
17670
17671 #. type: textblock
17672 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7923
17673 msgid ""
17674 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17675 "for more details.  The list of fields returned isn't clearly defined, and "
17676 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17677 "and the filesystem itself."
17678 msgstr ""
17679
17680 #. type: =head2
17681 #: ../fish/guestfish-actions.pod:5155
17682 msgid "txz-in"
17683 msgstr ""
17684
17685 #. type: verbatim
17686 #: ../fish/guestfish-actions.pod:5157
17687 #, no-wrap
17688 msgid ""
17689 " txz-in (tarball|-) directory\n"
17690 "\n"
17691 msgstr ""
17692
17693 #. type: textblock
17694 #: ../fish/guestfish-actions.pod:5159 ../src/guestfs-actions.pod:7943
17695 msgid ""
17696 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17697 "tar file) into C<directory>."
17698 msgstr ""
17699
17700 #. type: =head2
17701 #: ../fish/guestfish-actions.pod:5164
17702 msgid "txz-out"
17703 msgstr ""
17704
17705 #. type: verbatim
17706 #: ../fish/guestfish-actions.pod:5166
17707 #, no-wrap
17708 msgid ""
17709 " txz-out directory (tarball|-)\n"
17710 "\n"
17711 msgstr ""
17712
17713 #. type: textblock
17714 #: ../fish/guestfish-actions.pod:5168 ../src/guestfs-actions.pod:7957
17715 msgid ""
17716 "This command packs the contents of C<directory> and downloads it to local "
17717 "file C<tarball> (as an xz compressed tar archive)."
17718 msgstr ""
17719
17720 #. type: =head2
17721 #: ../fish/guestfish-actions.pod:5173
17722 msgid "umask"
17723 msgstr ""
17724
17725 #. type: verbatim
17726 #: ../fish/guestfish-actions.pod:5175
17727 #, no-wrap
17728 msgid ""
17729 " umask mask\n"
17730 "\n"
17731 msgstr ""
17732
17733 #. type: textblock
17734 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7970
17735 msgid ""
17736 "This function sets the mask used for creating new files and device nodes to "
17737 "C<mask & 0777>."
17738 msgstr ""
17739
17740 #. type: textblock
17741 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7973
17742 msgid ""
17743 "Typical umask values would be C<022> which creates new files with "
17744 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17745 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17746 msgstr ""
17747
17748 #. type: textblock
17749 #: ../fish/guestfish-actions.pod:5185 ../src/guestfs-actions.pod:7978
17750 msgid ""
17751 "The default umask is C<022>.  This is important because it means that "
17752 "directories and device nodes will be created with C<0644> or C<0755> mode "
17753 "even if you specify C<0777>."
17754 msgstr ""
17755
17756 #. type: textblock
17757 #: ../fish/guestfish-actions.pod:5189
17758 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17759 msgstr ""
17760
17761 #. type: textblock
17762 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7985
17763 msgid "This call returns the previous umask."
17764 msgstr ""
17765
17766 #. type: =head2
17767 #: ../fish/guestfish-actions.pod:5194
17768 msgid "umount"
17769 msgstr ""
17770
17771 #. type: =head2
17772 #: ../fish/guestfish-actions.pod:5196
17773 msgid "unmount"
17774 msgstr ""
17775
17776 #. type: verbatim
17777 #: ../fish/guestfish-actions.pod:5198
17778 #, no-wrap
17779 msgid ""
17780 " umount pathordevice\n"
17781 "\n"
17782 msgstr ""
17783
17784 #. type: textblock
17785 #: ../fish/guestfish-actions.pod:5200 ../src/guestfs-actions.pod:7997
17786 msgid ""
17787 "This unmounts the given filesystem.  The filesystem may be specified either "
17788 "by its mountpoint (path) or the device which contains the filesystem."
17789 msgstr ""
17790
17791 #. type: =head2
17792 #: ../fish/guestfish-actions.pod:5204
17793 msgid "umount-all"
17794 msgstr ""
17795
17796 #. type: =head2
17797 #: ../fish/guestfish-actions.pod:5206
17798 msgid "unmount-all"
17799 msgstr ""
17800
17801 #. type: verbatim
17802 #: ../fish/guestfish-actions.pod:5208
17803 #, no-wrap
17804 msgid ""
17805 " umount-all\n"
17806 "\n"
17807 msgstr ""
17808
17809 #. type: textblock
17810 #: ../fish/guestfish-actions.pod:5210 ../src/guestfs-actions.pod:8010
17811 msgid "This unmounts all mounted filesystems."
17812 msgstr ""
17813
17814 #. type: textblock
17815 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8012
17816 msgid "Some internal mounts are not unmounted by this call."
17817 msgstr ""
17818
17819 #. type: =head2
17820 #: ../fish/guestfish-actions.pod:5214
17821 msgid "upload"
17822 msgstr ""
17823
17824 #. type: verbatim
17825 #: ../fish/guestfish-actions.pod:5216
17826 #, no-wrap
17827 msgid ""
17828 " upload (filename|-) remotefilename\n"
17829 "\n"
17830 msgstr ""
17831
17832 #. type: textblock
17833 #: ../fish/guestfish-actions.pod:5218 ../fish/guestfish-actions.pod:5231
17834 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8049
17835 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17836 msgstr ""
17837
17838 #. type: textblock
17839 #: ../fish/guestfish-actions.pod:5223
17840 msgid "See also L</download>."
17841 msgstr ""
17842
17843 #. type: =head2
17844 #: ../fish/guestfish-actions.pod:5227
17845 msgid "upload-offset"
17846 msgstr ""
17847
17848 #. type: verbatim
17849 #: ../fish/guestfish-actions.pod:5229
17850 #, no-wrap
17851 msgid ""
17852 " upload-offset (filename|-) remotefilename offset\n"
17853 "\n"
17854 msgstr ""
17855
17856 #. type: textblock
17857 #: ../fish/guestfish-actions.pod:5234 ../src/guestfs-actions.pod:8052
17858 msgid ""
17859 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17860 "The intention is to overwrite parts of existing files or devices, although "
17861 "if a non-existant file is specified then it is created with a \"hole\" "
17862 "before C<offset>.  The size of the data written is implicit in the size of "
17863 "the source C<filename>."
17864 msgstr ""
17865
17866 #. type: textblock
17867 #: ../fish/guestfish-actions.pod:5241
17868 msgid ""
17869 "Note that there is no limit on the amount of data that can be uploaded with "
17870 "this call, unlike with L</pwrite>, and this call always writes the full "
17871 "amount unless an error occurs."
17872 msgstr ""
17873
17874 #. type: textblock
17875 #: ../fish/guestfish-actions.pod:5246
17876 msgid "See also L</upload>, L</pwrite>."
17877 msgstr ""
17878
17879 #. type: =head2
17880 #: ../fish/guestfish-actions.pod:5250
17881 msgid "utimens"
17882 msgstr ""
17883
17884 #. type: verbatim
17885 #: ../fish/guestfish-actions.pod:5252
17886 #, no-wrap
17887 msgid ""
17888 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17889 "\n"
17890 msgstr ""
17891
17892 #. type: textblock
17893 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8085
17894 msgid "This command sets the timestamps of a file with nanosecond precision."
17895 msgstr ""
17896
17897 #. type: textblock
17898 #: ../fish/guestfish-actions.pod:5257 ../src/guestfs-actions.pod:8088
17899 msgid ""
17900 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17901 "from the epoch."
17902 msgstr ""
17903
17904 #. type: textblock
17905 #: ../fish/guestfish-actions.pod:5260 ../src/guestfs-actions.pod:8091
17906 msgid ""
17907 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17908 "nanoseconds from the epoch."
17909 msgstr ""
17910
17911 #. type: textblock
17912 #: ../fish/guestfish-actions.pod:5263 ../src/guestfs-actions.pod:8094
17913 msgid ""
17914 "If the C<*nsecs> field contains the special value C<-1> then the "
17915 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17916 "ignored in this case)."
17917 msgstr ""
17918
17919 #. type: textblock
17920 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:8098
17921 msgid ""
17922 "If the C<*nsecs> field contains the special value C<-2> then the "
17923 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17924 "in this case)."
17925 msgstr ""
17926
17927 #. type: =head2
17928 #: ../fish/guestfish-actions.pod:5271
17929 msgid "version"
17930 msgstr ""
17931
17932 #. type: verbatim
17933 #: ../fish/guestfish-actions.pod:5273
17934 #, no-wrap
17935 msgid ""
17936 " version\n"
17937 "\n"
17938 msgstr ""
17939
17940 #. type: textblock
17941 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8111
17942 msgid ""
17943 "Return the libguestfs version number that the program is linked against."
17944 msgstr ""
17945
17946 #. type: textblock
17947 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8114
17948 msgid ""
17949 "Note that because of dynamic linking this is not necessarily the version of "
17950 "libguestfs that you compiled against.  You can compile the program, and then "
17951 "at runtime dynamically link against a completely different C<libguestfs.so> "
17952 "library."
17953 msgstr ""
17954
17955 #. type: textblock
17956 #: ../fish/guestfish-actions.pod:5283 ../src/guestfs-actions.pod:8119
17957 msgid ""
17958 "This call was added in version C<1.0.58>.  In previous versions of "
17959 "libguestfs there was no way to get the version number.  From C code you can "
17960 "use dynamic linker functions to find out if this symbol exists (if it "
17961 "doesn't, then it's an earlier version)."
17962 msgstr ""
17963
17964 #. type: textblock
17965 #: ../fish/guestfish-actions.pod:5289 ../src/guestfs-actions.pod:8125
17966 msgid ""
17967 "The call returns a structure with four elements.  The first three (C<major>, "
17968 "C<minor> and C<release>) are numbers and correspond to the usual version "
17969 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17970 "but may be used for distro-specific information."
17971 msgstr ""
17972
17973 #. type: textblock
17974 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8131
17975 msgid ""
17976 "To construct the original version string: C<$major.$minor.$release$extra>"
17977 msgstr ""
17978
17979 #. type: textblock
17980 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8134
17981 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17982 msgstr ""
17983
17984 #. type: textblock
17985 #: ../fish/guestfish-actions.pod:5300
17986 msgid ""
17987 "I<Note:> Don't use this call to test for availability of features.  In "
17988 "enterprise distributions we backport features from later versions into "
17989 "earlier versions, making this an unreliable way to test for features.  Use "
17990 "L</available> instead."
17991 msgstr ""
17992
17993 #. type: =head2
17994 #: ../fish/guestfish-actions.pod:5306
17995 msgid "vfs-label"
17996 msgstr ""
17997
17998 #. type: verbatim
17999 #: ../fish/guestfish-actions.pod:5308
18000 #, no-wrap
18001 msgid ""
18002 " vfs-label device\n"
18003 "\n"
18004 msgstr ""
18005
18006 #. type: textblock
18007 #: ../fish/guestfish-actions.pod:5310 ../src/guestfs-actions.pod:8154
18008 msgid "This returns the filesystem label of the filesystem on C<device>."
18009 msgstr ""
18010
18011 #. type: textblock
18012 #: ../fish/guestfish-actions.pod:5313 ../src/guestfs-actions.pod:8157
18013 msgid "If the filesystem is unlabeled, this returns the empty string."
18014 msgstr ""
18015
18016 #. type: textblock
18017 #: ../fish/guestfish-actions.pod:5315
18018 msgid "To find a filesystem from the label, use L</findfs-label>."
18019 msgstr ""
18020
18021 #. type: =head2
18022 #: ../fish/guestfish-actions.pod:5317
18023 msgid "vfs-type"
18024 msgstr ""
18025
18026 #. type: verbatim
18027 #: ../fish/guestfish-actions.pod:5319
18028 #, no-wrap
18029 msgid ""
18030 " vfs-type device\n"
18031 "\n"
18032 msgstr ""
18033
18034 #. type: textblock
18035 #: ../fish/guestfish-actions.pod:5321 ../src/guestfs-actions.pod:8172
18036 msgid ""
18037 "This command gets the filesystem type corresponding to the filesystem on "
18038 "C<device>."
18039 msgstr ""
18040
18041 #. type: textblock
18042 #: ../fish/guestfish-actions.pod:5324 ../src/guestfs-actions.pod:8175
18043 msgid ""
18044 "For most filesystems, the result is the name of the Linux VFS module which "
18045 "would be used to mount this filesystem if you mounted it without specifying "
18046 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
18047 msgstr ""
18048
18049 #. type: =head2
18050 #: ../fish/guestfish-actions.pod:5329
18051 msgid "vfs-uuid"
18052 msgstr ""
18053
18054 #. type: verbatim
18055 #: ../fish/guestfish-actions.pod:5331
18056 #, no-wrap
18057 msgid ""
18058 " vfs-uuid device\n"
18059 "\n"
18060 msgstr ""
18061
18062 #. type: textblock
18063 #: ../fish/guestfish-actions.pod:5333 ../src/guestfs-actions.pod:8191
18064 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18065 msgstr ""
18066
18067 #. type: textblock
18068 #: ../fish/guestfish-actions.pod:5336 ../src/guestfs-actions.pod:8194
18069 msgid "If the filesystem does not have a UUID, this returns the empty string."
18070 msgstr ""
18071
18072 #. type: textblock
18073 #: ../fish/guestfish-actions.pod:5338
18074 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
18075 msgstr ""
18076
18077 #. type: =head2
18078 #: ../fish/guestfish-actions.pod:5340
18079 msgid "vg-activate"
18080 msgstr ""
18081
18082 #. type: verbatim
18083 #: ../fish/guestfish-actions.pod:5342
18084 #, no-wrap
18085 msgid ""
18086 " vg-activate true|false 'volgroups ...'\n"
18087 "\n"
18088 msgstr ""
18089
18090 #. type: textblock
18091 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8210
18092 msgid ""
18093 "This command activates or (if C<activate> is false) deactivates all logical "
18094 "volumes in the listed volume groups C<volgroups>."
18095 msgstr ""
18096
18097 #. type: textblock
18098 #: ../fish/guestfish-actions.pod:5347 ../src/guestfs-actions.pod:8213
18099 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18100 msgstr ""
18101
18102 #. type: textblock
18103 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8215
18104 msgid ""
18105 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18106 "activated or deactivated."
18107 msgstr ""
18108
18109 #. type: =head2
18110 #: ../fish/guestfish-actions.pod:5352
18111 msgid "vg-activate-all"
18112 msgstr ""
18113
18114 #. type: verbatim
18115 #: ../fish/guestfish-actions.pod:5354
18116 #, no-wrap
18117 msgid ""
18118 " vg-activate-all true|false\n"
18119 "\n"
18120 msgstr ""
18121
18122 #. type: textblock
18123 #: ../fish/guestfish-actions.pod:5356 ../src/guestfs-actions.pod:8228
18124 msgid ""
18125 "This command activates or (if C<activate> is false) deactivates all logical "
18126 "volumes in all volume groups."
18127 msgstr ""
18128
18129 #. type: textblock
18130 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8231
18131 msgid "This command is the same as running C<vgchange -a y|n>"
18132 msgstr ""
18133
18134 #. type: =head2
18135 #: ../fish/guestfish-actions.pod:5361
18136 msgid "vgcreate"
18137 msgstr ""
18138
18139 #. type: verbatim
18140 #: ../fish/guestfish-actions.pod:5363
18141 #, no-wrap
18142 msgid ""
18143 " vgcreate volgroup 'physvols ...'\n"
18144 "\n"
18145 msgstr ""
18146
18147 #. type: textblock
18148 #: ../fish/guestfish-actions.pod:5365 ../src/guestfs-actions.pod:8244
18149 msgid ""
18150 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18151 "of physical volumes C<physvols>."
18152 msgstr ""
18153
18154 #. type: =head2
18155 #: ../fish/guestfish-actions.pod:5368
18156 msgid "vglvuuids"
18157 msgstr ""
18158
18159 #. type: verbatim
18160 #: ../fish/guestfish-actions.pod:5370
18161 #, no-wrap
18162 msgid ""
18163 " vglvuuids vgname\n"
18164 "\n"
18165 msgstr ""
18166
18167 #. type: textblock
18168 #: ../fish/guestfish-actions.pod:5372 ../src/guestfs-actions.pod:8257
18169 msgid ""
18170 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18171 "volumes created in this volume group."
18172 msgstr ""
18173
18174 #. type: textblock
18175 #: ../fish/guestfish-actions.pod:5375
18176 msgid ""
18177 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
18178 "logical volumes and volume groups."
18179 msgstr ""
18180
18181 #. type: textblock
18182 #: ../fish/guestfish-actions.pod:5378
18183 msgid "See also L</vgpvuuids>."
18184 msgstr ""
18185
18186 #. type: =head2
18187 #: ../fish/guestfish-actions.pod:5380
18188 msgid "vgpvuuids"
18189 msgstr ""
18190
18191 #. type: verbatim
18192 #: ../fish/guestfish-actions.pod:5382
18193 #, no-wrap
18194 msgid ""
18195 " vgpvuuids vgname\n"
18196 "\n"
18197 msgstr ""
18198
18199 #. type: textblock
18200 #: ../fish/guestfish-actions.pod:5384 ../src/guestfs-actions.pod:8277
18201 msgid ""
18202 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18203 "volumes that this volume group resides on."
18204 msgstr ""
18205
18206 #. type: textblock
18207 #: ../fish/guestfish-actions.pod:5387
18208 msgid ""
18209 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
18210 "physical volumes and volume groups."
18211 msgstr ""
18212
18213 #. type: textblock
18214 #: ../fish/guestfish-actions.pod:5390
18215 msgid "See also L</vglvuuids>."
18216 msgstr ""
18217
18218 #. type: =head2
18219 #: ../fish/guestfish-actions.pod:5392
18220 msgid "vgremove"
18221 msgstr ""
18222
18223 #. type: verbatim
18224 #: ../fish/guestfish-actions.pod:5394
18225 #, no-wrap
18226 msgid ""
18227 " vgremove vgname\n"
18228 "\n"
18229 msgstr ""
18230
18231 #. type: textblock
18232 #: ../fish/guestfish-actions.pod:5396 ../src/guestfs-actions.pod:8297
18233 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18234 msgstr ""
18235
18236 #. type: textblock
18237 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8299
18238 msgid ""
18239 "This also forcibly removes all logical volumes in the volume group (if any)."
18240 msgstr ""
18241
18242 #. type: =head2
18243 #: ../fish/guestfish-actions.pod:5401
18244 msgid "vgrename"
18245 msgstr ""
18246
18247 #. type: verbatim
18248 #: ../fish/guestfish-actions.pod:5403
18249 #, no-wrap
18250 msgid ""
18251 " vgrename volgroup newvolgroup\n"
18252 "\n"
18253 msgstr ""
18254
18255 #. type: textblock
18256 #: ../fish/guestfish-actions.pod:5405 ../src/guestfs-actions.pod:8313
18257 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18258 msgstr ""
18259
18260 #. type: =head2
18261 #: ../fish/guestfish-actions.pod:5407
18262 msgid "vgs"
18263 msgstr ""
18264
18265 #. type: verbatim
18266 #: ../fish/guestfish-actions.pod:5409
18267 #, no-wrap
18268 msgid ""
18269 " vgs\n"
18270 "\n"
18271 msgstr ""
18272
18273 #. type: textblock
18274 #: ../fish/guestfish-actions.pod:5411 ../src/guestfs-actions.pod:8324
18275 msgid ""
18276 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18277 "> command."
18278 msgstr ""
18279
18280 #. type: textblock
18281 #: ../fish/guestfish-actions.pod:5414 ../src/guestfs-actions.pod:8327
18282 msgid ""
18283 "This returns a list of just the volume group names that were detected (eg. "
18284 "C<VolGroup00>)."
18285 msgstr ""
18286
18287 #. type: textblock
18288 #: ../fish/guestfish-actions.pod:5417
18289 msgid "See also L</vgs-full>."
18290 msgstr ""
18291
18292 #. type: =head2
18293 #: ../fish/guestfish-actions.pod:5419
18294 msgid "vgs-full"
18295 msgstr ""
18296
18297 #. type: verbatim
18298 #: ../fish/guestfish-actions.pod:5421
18299 #, no-wrap
18300 msgid ""
18301 " vgs-full\n"
18302 "\n"
18303 msgstr ""
18304
18305 #. type: textblock
18306 #: ../fish/guestfish-actions.pod:5423 ../src/guestfs-actions.pod:8343
18307 msgid ""
18308 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18309 "> command.  The \"full\" version includes all fields."
18310 msgstr ""
18311
18312 #. type: =head2
18313 #: ../fish/guestfish-actions.pod:5426
18314 msgid "vgscan"
18315 msgstr ""
18316
18317 #. type: verbatim
18318 #: ../fish/guestfish-actions.pod:5428
18319 #, no-wrap
18320 msgid ""
18321 " vgscan\n"
18322 "\n"
18323 msgstr ""
18324
18325 #. type: textblock
18326 #: ../fish/guestfish-actions.pod:5430 ../src/guestfs-actions.pod:8357
18327 msgid ""
18328 "This rescans all block devices and rebuilds the list of LVM physical "
18329 "volumes, volume groups and logical volumes."
18330 msgstr ""
18331
18332 #. type: =head2
18333 #: ../fish/guestfish-actions.pod:5433
18334 msgid "vguuid"
18335 msgstr ""
18336
18337 #. type: verbatim
18338 #: ../fish/guestfish-actions.pod:5435
18339 #, no-wrap
18340 msgid ""
18341 " vguuid vgname\n"
18342 "\n"
18343 msgstr ""
18344
18345 #. type: textblock
18346 #: ../fish/guestfish-actions.pod:5437 ../src/guestfs-actions.pod:8370
18347 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18348 msgstr ""
18349
18350 #. type: =head2
18351 #: ../fish/guestfish-actions.pod:5439
18352 msgid "wc-c"
18353 msgstr ""
18354
18355 #. type: verbatim
18356 #: ../fish/guestfish-actions.pod:5441
18357 #, no-wrap
18358 msgid ""
18359 " wc-c path\n"
18360 "\n"
18361 msgstr ""
18362
18363 #. type: textblock
18364 #: ../fish/guestfish-actions.pod:5443 ../src/guestfs-actions.pod:8410
18365 msgid ""
18366 "This command counts the characters in a file, using the C<wc -c> external "
18367 "command."
18368 msgstr ""
18369
18370 #. type: =head2
18371 #: ../fish/guestfish-actions.pod:5446
18372 msgid "wc-l"
18373 msgstr ""
18374
18375 #. type: verbatim
18376 #: ../fish/guestfish-actions.pod:5448
18377 #, no-wrap
18378 msgid ""
18379 " wc-l path\n"
18380 "\n"
18381 msgstr ""
18382
18383 #. type: textblock
18384 #: ../fish/guestfish-actions.pod:5450 ../src/guestfs-actions.pod:8423
18385 msgid ""
18386 "This command counts the lines in a file, using the C<wc -l> external command."
18387 msgstr ""
18388
18389 #. type: =head2
18390 #: ../fish/guestfish-actions.pod:5453
18391 msgid "wc-w"
18392 msgstr ""
18393
18394 #. type: verbatim
18395 #: ../fish/guestfish-actions.pod:5455
18396 #, no-wrap
18397 msgid ""
18398 " wc-w path\n"
18399 "\n"
18400 msgstr ""
18401
18402 #. type: textblock
18403 #: ../fish/guestfish-actions.pod:5457 ../src/guestfs-actions.pod:8436
18404 msgid ""
18405 "This command counts the words in a file, using the C<wc -w> external command."
18406 msgstr ""
18407
18408 #. type: =head2
18409 #: ../fish/guestfish-actions.pod:5460
18410 msgid "write"
18411 msgstr ""
18412
18413 #. type: verbatim
18414 #: ../fish/guestfish-actions.pod:5462
18415 #, no-wrap
18416 msgid ""
18417 " write path content\n"
18418 "\n"
18419 msgstr ""
18420
18421 #. type: textblock
18422 #: ../fish/guestfish-actions.pod:5464 ../src/guestfs-actions.pod:8451
18423 msgid ""
18424 "This call creates a file called C<path>.  The content of the file is the "
18425 "string C<content> (which can contain any 8 bit data)."
18426 msgstr ""
18427
18428 #. type: textblock
18429 #: ../fish/guestfish-actions.pod:5467
18430 msgid "See also L</write-append>."
18431 msgstr ""
18432
18433 #. type: =head2
18434 #: ../fish/guestfish-actions.pod:5472
18435 msgid "write-append"
18436 msgstr ""
18437
18438 #. type: verbatim
18439 #: ../fish/guestfish-actions.pod:5474
18440 #, no-wrap
18441 msgid ""
18442 " write-append path content\n"
18443 "\n"
18444 msgstr ""
18445
18446 #. type: textblock
18447 #: ../fish/guestfish-actions.pod:5476 ../src/guestfs-actions.pod:8471
18448 msgid ""
18449 "This call appends C<content> to the end of file C<path>.  If C<path> does "
18450 "not exist, then a new file is created."
18451 msgstr ""
18452
18453 #. type: textblock
18454 #: ../fish/guestfish-actions.pod:5479
18455 msgid "See also L</write>."
18456 msgstr ""
18457
18458 #. type: =head2
18459 #: ../fish/guestfish-actions.pod:5484
18460 msgid "write-file"
18461 msgstr ""
18462
18463 #. type: verbatim
18464 #: ../fish/guestfish-actions.pod:5486
18465 #, no-wrap
18466 msgid ""
18467 " write-file path content size\n"
18468 "\n"
18469 msgstr ""
18470
18471 #. type: textblock
18472 #: ../fish/guestfish-actions.pod:5488 ../src/guestfs-actions.pod:8498
18473 msgid ""
18474 "This call creates a file called C<path>.  The contents of the file is the "
18475 "string C<content> (which can contain any 8 bit data), with length C<size>."
18476 msgstr ""
18477
18478 #. type: textblock
18479 #: ../fish/guestfish-actions.pod:5492 ../src/guestfs-actions.pod:8502
18480 msgid ""
18481 "As a special case, if C<size> is C<0> then the length is calculated using "
18482 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18483 msgstr ""
18484
18485 #. type: textblock
18486 #: ../fish/guestfish-actions.pod:5496 ../src/guestfs-actions.pod:8506
18487 msgid ""
18488 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18489 "I<not> work, even if the length is specified."
18490 msgstr ""
18491
18492 #. type: textblock
18493 #: ../fish/guestfish-actions.pod:5502
18494 msgid ""
18495 "I<This function is deprecated.> In new code, use the L</write> call instead."
18496 msgstr ""
18497
18498 #. type: =head2
18499 #: ../fish/guestfish-actions.pod:5509
18500 msgid "zegrep"
18501 msgstr ""
18502
18503 #. type: verbatim
18504 #: ../fish/guestfish-actions.pod:5511
18505 #, no-wrap
18506 msgid ""
18507 " zegrep regex path\n"
18508 "\n"
18509 msgstr ""
18510
18511 #. type: textblock
18512 #: ../fish/guestfish-actions.pod:5513 ../src/guestfs-actions.pod:8523
18513 msgid ""
18514 "This calls the external C<zegrep> program and returns the matching lines."
18515 msgstr ""
18516
18517 #. type: =head2
18518 #: ../fish/guestfish-actions.pod:5519
18519 msgid "zegrepi"
18520 msgstr ""
18521
18522 #. type: verbatim
18523 #: ../fish/guestfish-actions.pod:5521
18524 #, no-wrap
18525 msgid ""
18526 " zegrepi regex path\n"
18527 "\n"
18528 msgstr ""
18529
18530 #. type: textblock
18531 #: ../fish/guestfish-actions.pod:5523 ../src/guestfs-actions.pod:8542
18532 msgid ""
18533 "This calls the external C<zegrep -i> program and returns the matching lines."
18534 msgstr ""
18535
18536 #. type: =head2
18537 #: ../fish/guestfish-actions.pod:5529
18538 msgid "zero"
18539 msgstr ""
18540
18541 #. type: verbatim
18542 #: ../fish/guestfish-actions.pod:5531
18543 #, no-wrap
18544 msgid ""
18545 " zero device\n"
18546 "\n"
18547 msgstr ""
18548
18549 #. type: textblock
18550 #: ../fish/guestfish-actions.pod:5533 ../src/guestfs-actions.pod:8560
18551 msgid "This command writes zeroes over the first few blocks of C<device>."
18552 msgstr ""
18553
18554 #. type: textblock
18555 #: ../fish/guestfish-actions.pod:5535 ../src/guestfs-actions.pod:8562
18556 msgid ""
18557 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18558 "securely wipe the device).  It should be sufficient to remove any partition "
18559 "tables, filesystem superblocks and so on."
18560 msgstr ""
18561
18562 #. type: textblock
18563 #: ../fish/guestfish-actions.pod:5539 ../fish/guestfish-actions.pod:5554
18564 #: ../src/guestfs-actions.pod:8566 ../src/guestfs-actions.pod:8592
18565 msgid ""
18566 "If blocks are already zero, then this command avoids writing zeroes.  This "
18567 "prevents the underlying device from becoming non-sparse or growing "
18568 "unnecessarily."
18569 msgstr ""
18570
18571 #. type: textblock
18572 #: ../fish/guestfish-actions.pod:5543
18573 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
18574 msgstr ""
18575
18576 #. type: =head2
18577 #: ../fish/guestfish-actions.pod:5546
18578 msgid "zero-device"
18579 msgstr ""
18580
18581 #. type: verbatim
18582 #: ../fish/guestfish-actions.pod:5548
18583 #, no-wrap
18584 msgid ""
18585 " zero-device device\n"
18586 "\n"
18587 msgstr ""
18588
18589 #. type: textblock
18590 #: ../fish/guestfish-actions.pod:5550
18591 msgid ""
18592 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
18593 "which just zeroes the first few blocks of a device."
18594 msgstr ""
18595
18596 #. type: =head2
18597 #: ../fish/guestfish-actions.pod:5558
18598 msgid "zerofree"
18599 msgstr ""
18600
18601 #. type: verbatim
18602 #: ../fish/guestfish-actions.pod:5560
18603 #, no-wrap
18604 msgid ""
18605 " zerofree device\n"
18606 "\n"
18607 msgstr ""
18608
18609 #. type: textblock
18610 #: ../fish/guestfish-actions.pod:5562 ../src/guestfs-actions.pod:8611
18611 msgid ""
18612 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18613 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18614 "possible to compress the filesystem more effectively."
18615 msgstr ""
18616
18617 #. type: textblock
18618 #: ../fish/guestfish-actions.pod:5567 ../src/guestfs-actions.pod:8616
18619 msgid "You should B<not> run this program if the filesystem is mounted."
18620 msgstr ""
18621
18622 #. type: textblock
18623 #: ../fish/guestfish-actions.pod:5570 ../src/guestfs-actions.pod:8619
18624 msgid ""
18625 "It is possible that using this program can damage the filesystem or data on "
18626 "the filesystem."
18627 msgstr ""
18628
18629 #. type: =head2
18630 #: ../fish/guestfish-actions.pod:5573
18631 msgid "zfgrep"
18632 msgstr ""
18633
18634 #. type: verbatim
18635 #: ../fish/guestfish-actions.pod:5575
18636 #, no-wrap
18637 msgid ""
18638 " zfgrep pattern path\n"
18639 "\n"
18640 msgstr ""
18641
18642 #. type: textblock
18643 #: ../fish/guestfish-actions.pod:5577 ../src/guestfs-actions.pod:8633
18644 msgid ""
18645 "This calls the external C<zfgrep> program and returns the matching lines."
18646 msgstr ""
18647
18648 #. type: =head2
18649 #: ../fish/guestfish-actions.pod:5583
18650 msgid "zfgrepi"
18651 msgstr ""
18652
18653 #. type: verbatim
18654 #: ../fish/guestfish-actions.pod:5585
18655 #, no-wrap
18656 msgid ""
18657 " zfgrepi pattern path\n"
18658 "\n"
18659 msgstr ""
18660
18661 #. type: textblock
18662 #: ../fish/guestfish-actions.pod:5587 ../src/guestfs-actions.pod:8652
18663 msgid ""
18664 "This calls the external C<zfgrep -i> program and returns the matching lines."
18665 msgstr ""
18666
18667 #. type: =head2
18668 #: ../fish/guestfish-actions.pod:5593
18669 msgid "zfile"
18670 msgstr ""
18671
18672 #. type: verbatim
18673 #: ../fish/guestfish-actions.pod:5595
18674 #, no-wrap
18675 msgid ""
18676 " zfile meth path\n"
18677 "\n"
18678 msgstr ""
18679
18680 #. type: textblock
18681 #: ../fish/guestfish-actions.pod:5597 ../src/guestfs-actions.pod:8678
18682 msgid ""
18683 "This command runs C<file> after first decompressing C<path> using C<method>."
18684 msgstr ""
18685
18686 #. type: textblock
18687 #: ../fish/guestfish-actions.pod:5600 ../src/guestfs-actions.pod:8681
18688 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18689 msgstr ""
18690
18691 #. type: textblock
18692 #: ../fish/guestfish-actions.pod:5602
18693 msgid ""
18694 "Since 1.0.63, use L</file> instead which can now process compressed files."
18695 msgstr ""
18696
18697 #. type: textblock
18698 #: ../fish/guestfish-actions.pod:5605
18699 msgid ""
18700 "I<This function is deprecated.> In new code, use the L</file> call instead."
18701 msgstr ""
18702
18703 #. type: =head2
18704 #: ../fish/guestfish-actions.pod:5612
18705 msgid "zgrep"
18706 msgstr ""
18707
18708 #. type: verbatim
18709 #: ../fish/guestfish-actions.pod:5614
18710 #, no-wrap
18711 msgid ""
18712 " zgrep regex path\n"
18713 "\n"
18714 msgstr ""
18715
18716 #. type: textblock
18717 #: ../fish/guestfish-actions.pod:5616 ../src/guestfs-actions.pod:8698
18718 msgid ""
18719 "This calls the external C<zgrep> program and returns the matching lines."
18720 msgstr ""
18721
18722 #. type: =head2
18723 #: ../fish/guestfish-actions.pod:5622
18724 msgid "zgrepi"
18725 msgstr ""
18726
18727 #. type: verbatim
18728 #: ../fish/guestfish-actions.pod:5624
18729 #, no-wrap
18730 msgid ""
18731 " zgrepi regex path\n"
18732 "\n"
18733 msgstr ""
18734
18735 #. type: textblock
18736 #: ../fish/guestfish-actions.pod:5626 ../src/guestfs-actions.pod:8717
18737 msgid ""
18738 "This calls the external C<zgrep -i> program and returns the matching lines."
18739 msgstr ""
18740
18741 #. type: =head2
18742 #: ../fish/guestfish-commands.pod:1
18743 msgid "alloc"
18744 msgstr ""
18745
18746 #. type: =head2
18747 #: ../fish/guestfish-commands.pod:3
18748 msgid "allocate"
18749 msgstr ""
18750
18751 #. type: verbatim
18752 #: ../fish/guestfish-commands.pod:5
18753 #, no-wrap
18754 msgid ""
18755 " alloc filename size\n"
18756 "\n"
18757 msgstr ""
18758
18759 #. type: textblock
18760 #: ../fish/guestfish-commands.pod:7
18761 msgid ""
18762 "This creates an empty (zeroed) file of the given size, and then adds so it "
18763 "can be further examined."
18764 msgstr ""
18765
18766 #. type: textblock
18767 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:243
18768 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18769 msgstr ""
18770
18771 #. type: textblock
18772 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:245
18773 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18774 msgstr ""
18775
18776 #. type: textblock
18777 #: ../fish/guestfish-commands.pod:14
18778 msgid ""
18779 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18780 "image, see L</PREPARED DISK IMAGES>."
18781 msgstr ""
18782
18783 #. type: =head2
18784 #: ../fish/guestfish-commands.pod:17
18785 msgid "copy-in"
18786 msgstr ""
18787
18788 #. type: verbatim
18789 #: ../fish/guestfish-commands.pod:19
18790 #, no-wrap
18791 msgid ""
18792 " copy-in local [local ...] /remotedir\n"
18793 "\n"
18794 msgstr ""
18795
18796 #. type: textblock
18797 #: ../fish/guestfish-commands.pod:21
18798 msgid ""
18799 "C<copy-in> copies local files or directories recursively into the disk "
18800 "image, placing them in the directory called C</remotedir> (which must "
18801 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18802 "other commands as necessary."
18803 msgstr ""
18804
18805 #. type: textblock
18806 #: ../fish/guestfish-commands.pod:26
18807 msgid ""
18808 "Multiple local files and directories can be specified, but the last "
18809 "parameter must always be a remote directory.  Wildcards cannot be used."
18810 msgstr ""
18811
18812 #. type: =head2
18813 #: ../fish/guestfish-commands.pod:30
18814 msgid "copy-out"
18815 msgstr ""
18816
18817 #. type: verbatim
18818 #: ../fish/guestfish-commands.pod:32
18819 #, no-wrap
18820 msgid ""
18821 " copy-out remote [remote ...] localdir\n"
18822 "\n"
18823 msgstr ""
18824
18825 #. type: textblock
18826 #: ../fish/guestfish-commands.pod:34
18827 msgid ""
18828 "C<copy-out> copies remote files or directories recursively out of the disk "
18829 "image, placing them on the host disk in a local directory called C<localdir> "
18830 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
18831 "download>, L</tar-out> and other commands as necessary."
18832 msgstr ""
18833
18834 #. type: textblock
18835 #: ../fish/guestfish-commands.pod:40
18836 msgid ""
18837 "Multiple remote files and directories can be specified, but the last "
18838 "parameter must always be a local directory.  To download to the current "
18839 "directory, use C<.> as in:"
18840 msgstr ""
18841
18842 #. type: verbatim
18843 #: ../fish/guestfish-commands.pod:44
18844 #, no-wrap
18845 msgid ""
18846 " copy-out /home .\n"
18847 "\n"
18848 msgstr ""
18849
18850 #. type: textblock
18851 #: ../fish/guestfish-commands.pod:46
18852 msgid ""
18853 "Wildcards cannot be used in the ordinary command, but you can use them with "
18854 "the help of L</glob> like this:"
18855 msgstr ""
18856
18857 #. type: verbatim
18858 #: ../fish/guestfish-commands.pod:49
18859 #, no-wrap
18860 msgid ""
18861 " glob copy-out /home/* .\n"
18862 "\n"
18863 msgstr ""
18864
18865 #. type: =head2
18866 #: ../fish/guestfish-commands.pod:51
18867 msgid "delete-event"
18868 msgstr ""
18869
18870 #. type: verbatim
18871 #: ../fish/guestfish-commands.pod:53
18872 #, no-wrap
18873 msgid ""
18874 " delete-event name\n"
18875 "\n"
18876 msgstr ""
18877
18878 #. type: textblock
18879 #: ../fish/guestfish-commands.pod:55
18880 msgid ""
18881 "Delete the event handler which was previously registered as C<name>.  If "
18882 "multiple event handlers were registered with the same name, they are all "
18883 "deleted."
18884 msgstr ""
18885
18886 #. type: textblock
18887 #: ../fish/guestfish-commands.pod:59
18888 msgid "See also the guestfish commands C<event> and C<list-events>."
18889 msgstr ""
18890
18891 #. type: =head2
18892 #: ../fish/guestfish-commands.pod:61
18893 msgid "display"
18894 msgstr ""
18895
18896 #. type: verbatim
18897 #: ../fish/guestfish-commands.pod:63
18898 #, no-wrap
18899 msgid ""
18900 " display filename\n"
18901 "\n"
18902 msgstr ""
18903
18904 #. type: textblock
18905 #: ../fish/guestfish-commands.pod:65
18906 msgid ""
18907 "Use C<display> (a graphical display program) to display an image file.  It "
18908 "downloads the file, and runs C<display> on it."
18909 msgstr ""
18910
18911 #. type: textblock
18912 #: ../fish/guestfish-commands.pod:68
18913 msgid ""
18914 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18915 "environment variable.  For example to use the GNOME display program:"
18916 msgstr ""
18917
18918 #. type: verbatim
18919 #: ../fish/guestfish-commands.pod:71
18920 #, no-wrap
18921 msgid ""
18922 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18923 "\n"
18924 msgstr ""
18925
18926 #. type: textblock
18927 #: ../fish/guestfish-commands.pod:73
18928 msgid "See also L<display(1)>."
18929 msgstr ""
18930
18931 #. type: =head2
18932 #: ../fish/guestfish-commands.pod:75
18933 msgid "echo"
18934 msgstr ""
18935
18936 #. type: verbatim
18937 #: ../fish/guestfish-commands.pod:77
18938 #, no-wrap
18939 msgid ""
18940 " echo [params ...]\n"
18941 "\n"
18942 msgstr ""
18943
18944 #. type: textblock
18945 #: ../fish/guestfish-commands.pod:79
18946 msgid "This echos the parameters to the terminal."
18947 msgstr ""
18948
18949 #. type: =head2
18950 #: ../fish/guestfish-commands.pod:81
18951 msgid "edit"
18952 msgstr ""
18953
18954 #. type: =head2
18955 #: ../fish/guestfish-commands.pod:83
18956 msgid "vi"
18957 msgstr ""
18958
18959 #. type: =head2
18960 #: ../fish/guestfish-commands.pod:85
18961 msgid "emacs"
18962 msgstr ""
18963
18964 #. type: verbatim
18965 #: ../fish/guestfish-commands.pod:87
18966 #, no-wrap
18967 msgid ""
18968 " edit filename\n"
18969 "\n"
18970 msgstr ""
18971
18972 #. type: textblock
18973 #: ../fish/guestfish-commands.pod:89
18974 msgid ""
18975 "This is used to edit a file.  It downloads the file, edits it locally using "
18976 "your editor, then uploads the result."
18977 msgstr ""
18978
18979 #. type: textblock
18980 #: ../fish/guestfish-commands.pod:92
18981 msgid ""
18982 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18983 "or C<emacs> you will get those corresponding editors."
18984 msgstr ""
18985
18986 #. type: =head2
18987 #: ../fish/guestfish-commands.pod:96
18988 msgid "event"
18989 msgstr ""
18990
18991 #. type: verbatim
18992 #: ../fish/guestfish-commands.pod:98
18993 #, no-wrap
18994 msgid ""
18995 " event name eventset \"shell script ...\"\n"
18996 "\n"
18997 msgstr ""
18998
18999 #. type: textblock
19000 #: ../fish/guestfish-commands.pod:100
19001 msgid ""
19002 "Register a shell script fragment which is executed when an event is raised.  "
19003 "See L<guestfs(3)/guestfs_set_event_callback> for a discussion of the event "
19004 "API in libguestfs."
19005 msgstr ""
19006
19007 #. type: textblock
19008 #: ../fish/guestfish-commands.pod:104
19009 msgid ""
19010 "The C<name> parameter is a name that you give to this event handler.  It can "
19011 "be any string (even the empty string) and is simply there so you can delete "
19012 "the handler using the guestfish C<delete-event> command."
19013 msgstr ""
19014
19015 #. type: textblock
19016 #: ../fish/guestfish-commands.pod:109
19017 msgid ""
19018 "The C<eventset> parameter is a comma-separated list of one or more events, "
19019 "for example C<close> or C<close,trace>.  The special value C<*> means all "
19020 "events."
19021 msgstr ""
19022
19023 #. type: textblock
19024 #: ../fish/guestfish-commands.pod:113
19025 msgid ""
19026 "The third and final parameter is the shell script fragment (or any external "
19027 "command) that is executed when any of the events in the eventset occurs.  It "
19028 "is executed using C<$SHELL -c>, or if C<$SHELL> is not set then C</bin/sh -"
19029 "c>."
19030 msgstr ""
19031
19032 #. type: textblock
19033 #: ../fish/guestfish-commands.pod:118
19034 msgid ""
19035 "The shell script fragment receives callback parameters as arguments C<$1>, C<"
19036 "$2> etc.  The actual event that was called is available in the environment "
19037 "variable C<$EVENT>."
19038 msgstr ""
19039
19040 #. type: verbatim
19041 #: ../fish/guestfish-commands.pod:122
19042 #, no-wrap
19043 msgid ""
19044 " event \"\" close \"echo closed\"\n"
19045 " event messages appliance,library,trace \"echo $@\"\n"
19046 " event \"\" progress \"echo progress: $3/$4\"\n"
19047 " event \"\" * \"echo $EVENT $@\"\n"
19048 "\n"
19049 msgstr ""
19050
19051 #. type: textblock
19052 #: ../fish/guestfish-commands.pod:127
19053 msgid "See also the guestfish commands C<delete-event> and C<list-events>."
19054 msgstr ""
19055
19056 #. type: =head2
19057 #: ../fish/guestfish-commands.pod:129
19058 msgid "glob"
19059 msgstr ""
19060
19061 #. type: verbatim
19062 #: ../fish/guestfish-commands.pod:131
19063 #, no-wrap
19064 msgid ""
19065 " glob command args...\n"
19066 "\n"
19067 msgstr ""
19068
19069 #. type: textblock
19070 #: ../fish/guestfish-commands.pod:133
19071 msgid ""
19072 "Expand wildcards in any paths in the args list, and run C<command> "
19073 "repeatedly on each matching path."
19074 msgstr ""
19075
19076 #. type: textblock
19077 #: ../fish/guestfish-commands.pod:136
19078 msgid "See L</WILDCARDS AND GLOBBING>."
19079 msgstr ""
19080
19081 #. type: =head2
19082 #: ../fish/guestfish-commands.pod:138
19083 msgid "hexedit"
19084 msgstr ""
19085
19086 #. type: verbatim
19087 #: ../fish/guestfish-commands.pod:140
19088 #, no-wrap
19089 msgid ""
19090 " hexedit <filename|device>\n"
19091 " hexedit <filename|device> <max>\n"
19092 " hexedit <filename|device> <start> <max>\n"
19093 "\n"
19094 msgstr ""
19095
19096 #. type: textblock
19097 #: ../fish/guestfish-commands.pod:144
19098 msgid ""
19099 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
19100 "device."
19101 msgstr ""
19102
19103 #. type: textblock
19104 #: ../fish/guestfish-commands.pod:147
19105 msgid ""
19106 "This command works by downloading potentially the whole file or device, "
19107 "editing it locally, then uploading it.  If the file or device is large, you "
19108 "have to specify which part you wish to edit by using C<max> and/or C<start> "
19109 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
19110 "usual modifiers allowed such as C<1M> (1 megabyte)."
19111 msgstr ""
19112
19113 #. type: textblock
19114 #: ../fish/guestfish-commands.pod:154
19115 msgid "For example to edit the first few sectors of a disk you might do:"
19116 msgstr ""
19117
19118 #. type: verbatim
19119 #: ../fish/guestfish-commands.pod:157
19120 #, no-wrap
19121 msgid ""
19122 " hexedit /dev/sda 1M\n"
19123 "\n"
19124 msgstr ""
19125
19126 #. type: textblock
19127 #: ../fish/guestfish-commands.pod:159
19128 msgid ""
19129 "which would allow you to edit anywhere within the first megabyte of the disk."
19130 msgstr ""
19131
19132 #. type: textblock
19133 #: ../fish/guestfish-commands.pod:162
19134 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
19135 msgstr ""
19136
19137 #. type: verbatim
19138 #: ../fish/guestfish-commands.pod:164
19139 #, no-wrap
19140 msgid ""
19141 " hexedit /dev/sda1 0x400 0x400\n"
19142 "\n"
19143 msgstr ""
19144
19145 #. type: textblock
19146 #: ../fish/guestfish-commands.pod:166
19147 msgid "(assuming the superblock is in the standard location)."
19148 msgstr ""
19149
19150 #. type: textblock
19151 #: ../fish/guestfish-commands.pod:168
19152 msgid ""
19153 "This command requires the external L<hexedit(1)> program.  You can specify "
19154 "another program to use by setting the C<HEXEDITOR> environment variable."
19155 msgstr ""
19156
19157 #. type: textblock
19158 #: ../fish/guestfish-commands.pod:172
19159 msgid "See also L</hexdump>."
19160 msgstr ""
19161
19162 #. type: =head2
19163 #: ../fish/guestfish-commands.pod:174
19164 msgid "lcd"
19165 msgstr ""
19166
19167 #. type: verbatim
19168 #: ../fish/guestfish-commands.pod:176
19169 #, no-wrap
19170 msgid ""
19171 " lcd directory\n"
19172 "\n"
19173 msgstr ""
19174
19175 #. type: textblock
19176 #: ../fish/guestfish-commands.pod:178
19177 msgid ""
19178 "Change the local directory, ie. the current directory of guestfish itself."
19179 msgstr ""
19180
19181 #. type: textblock
19182 #: ../fish/guestfish-commands.pod:181
19183 msgid "Note that C<!cd> won't do what you might expect."
19184 msgstr ""
19185
19186 #. type: =head2
19187 #: ../fish/guestfish-commands.pod:183
19188 msgid "list-events"
19189 msgstr ""
19190
19191 #. type: verbatim
19192 #: ../fish/guestfish-commands.pod:185
19193 #, no-wrap
19194 msgid ""
19195 " list-events\n"
19196 "\n"
19197 msgstr ""
19198
19199 #. type: textblock
19200 #: ../fish/guestfish-commands.pod:187
19201 msgid ""
19202 "List the event handlers registered using the guestfish C<event> command."
19203 msgstr ""
19204
19205 #. type: =head2
19206 #: ../fish/guestfish-commands.pod:190
19207 msgid "man"
19208 msgstr ""
19209
19210 #. type: =head2
19211 #: ../fish/guestfish-commands.pod:192
19212 msgid "manual"
19213 msgstr ""
19214
19215 #. type: verbatim
19216 #: ../fish/guestfish-commands.pod:194
19217 #, no-wrap
19218 msgid ""
19219 "  man\n"
19220 "\n"
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fish/guestfish-commands.pod:196
19225 msgid "Opens the manual page for guestfish."
19226 msgstr ""
19227
19228 #. type: =head2
19229 #: ../fish/guestfish-commands.pod:198
19230 msgid "more"
19231 msgstr ""
19232
19233 #. type: =head2
19234 #: ../fish/guestfish-commands.pod:200
19235 msgid "less"
19236 msgstr ""
19237
19238 #. type: verbatim
19239 #: ../fish/guestfish-commands.pod:202
19240 #, no-wrap
19241 msgid ""
19242 " more filename\n"
19243 "\n"
19244 msgstr ""
19245
19246 #. type: verbatim
19247 #: ../fish/guestfish-commands.pod:204
19248 #, no-wrap
19249 msgid ""
19250 " less filename\n"
19251 "\n"
19252 msgstr ""
19253
19254 #. type: textblock
19255 #: ../fish/guestfish-commands.pod:206
19256 msgid "This is used to view a file."
19257 msgstr ""
19258
19259 #. type: textblock
19260 #: ../fish/guestfish-commands.pod:208
19261 msgid ""
19262 "The default viewer is C<$PAGER>.  However if you use the alternate command "
19263 "C<less> you will get the C<less> command specifically."
19264 msgstr ""
19265
19266 #. type: =head2
19267 #: ../fish/guestfish-commands.pod:211
19268 msgid "reopen"
19269 msgstr ""
19270
19271 #. type: verbatim
19272 #: ../fish/guestfish-commands.pod:213
19273 #, no-wrap
19274 msgid ""
19275 "  reopen\n"
19276 "\n"
19277 msgstr ""
19278
19279 #. type: textblock
19280 #: ../fish/guestfish-commands.pod:215
19281 msgid ""
19282 "Close and reopen the libguestfs handle.  It is not necessary to use this "
19283 "normally, because the handle is closed properly when guestfish exits.  "
19284 "However this is occasionally useful for testing."
19285 msgstr ""
19286
19287 #. type: =head2
19288 #: ../fish/guestfish-commands.pod:219
19289 msgid "setenv"
19290 msgstr ""
19291
19292 #. type: verbatim
19293 #: ../fish/guestfish-commands.pod:221
19294 #, no-wrap
19295 msgid ""
19296 "  setenv VAR value\n"
19297 "\n"
19298 msgstr ""
19299
19300 #. type: textblock
19301 #: ../fish/guestfish-commands.pod:223
19302 msgid "Set the environment variable C<VAR> to the string C<value>."
19303 msgstr ""
19304
19305 #. type: textblock
19306 #: ../fish/guestfish-commands.pod:225
19307 msgid ""
19308 "To print the value of an environment variable use a shell command such as:"
19309 msgstr ""
19310
19311 #. type: verbatim
19312 #: ../fish/guestfish-commands.pod:228
19313 #, no-wrap
19314 msgid ""
19315 " !echo $VAR\n"
19316 "\n"
19317 msgstr ""
19318
19319 #. type: =head2
19320 #: ../fish/guestfish-commands.pod:230
19321 msgid "sparse"
19322 msgstr ""
19323
19324 #. type: verbatim
19325 #: ../fish/guestfish-commands.pod:232
19326 #, no-wrap
19327 msgid ""
19328 " sparse filename size\n"
19329 "\n"
19330 msgstr ""
19331
19332 #. type: textblock
19333 #: ../fish/guestfish-commands.pod:234
19334 msgid ""
19335 "This creates an empty sparse file of the given size, and then adds so it can "
19336 "be further examined."
19337 msgstr ""
19338
19339 #. type: textblock
19340 #: ../fish/guestfish-commands.pod:237
19341 msgid ""
19342 "In all respects it works the same as the L</alloc> command, except that the "
19343 "image file is allocated sparsely, which means that disk blocks are not "
19344 "assigned to the file until they are needed.  Sparse disk files only use "
19345 "space when written to, but they are slower and there is a danger you could "
19346 "run out of real disk space during a write operation."
19347 msgstr ""
19348
19349 #. type: =head2
19350 #: ../fish/guestfish-commands.pod:247
19351 msgid "supported"
19352 msgstr ""
19353
19354 #. type: verbatim
19355 #: ../fish/guestfish-commands.pod:249
19356 #, no-wrap
19357 msgid ""
19358 " supported\n"
19359 "\n"
19360 msgstr ""
19361
19362 #. type: textblock
19363 #: ../fish/guestfish-commands.pod:251
19364 msgid ""
19365 "This command returns a list of the optional groups known to the daemon, and "
19366 "indicates which ones are supported by this build of the libguestfs appliance."
19367 msgstr ""
19368
19369 #. type: textblock
19370 #: ../fish/guestfish-commands.pod:255
19371 msgid "See also L<guestfs(3)/AVAILABILITY>."
19372 msgstr ""
19373
19374 #. type: =head2
19375 #: ../fish/guestfish-commands.pod:257
19376 msgid "time"
19377 msgstr ""
19378
19379 #. type: verbatim
19380 #: ../fish/guestfish-commands.pod:259
19381 #, no-wrap
19382 msgid ""
19383 " time command args...\n"
19384 "\n"
19385 msgstr ""
19386
19387 #. type: textblock
19388 #: ../fish/guestfish-commands.pod:261
19389 msgid ""
19390 "Run the command as usual, but print the elapsed time afterwards.  This can "
19391 "be useful for benchmarking operations."
19392 msgstr ""
19393
19394 #. type: =head2
19395 #: ../fish/guestfish-commands.pod:264
19396 msgid "unsetenv"
19397 msgstr ""
19398
19399 #. type: verbatim
19400 #: ../fish/guestfish-commands.pod:266
19401 #, no-wrap
19402 msgid ""
19403 "  unsetenv VAR\n"
19404 "\n"
19405 msgstr ""
19406
19407 #. type: textblock
19408 #: ../fish/guestfish-commands.pod:268
19409 msgid "Remove C<VAR> from the environment."
19410 msgstr ""
19411
19412 #. type: textblock
19413 #: ../fish/guestfish.pod:5
19414 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19415 msgstr ""
19416
19417 #. type: verbatim
19418 #: ../fish/guestfish.pod:9
19419 #, no-wrap
19420 msgid ""
19421 " guestfish [--options] [commands]\n"
19422 "\n"
19423 msgstr ""
19424
19425 #. type: verbatim
19426 #: ../fish/guestfish.pod:11
19427 #, no-wrap
19428 msgid ""
19429 " guestfish\n"
19430 "\n"
19431 msgstr ""
19432
19433 #. type: verbatim
19434 #: ../fish/guestfish.pod:13
19435 #, no-wrap
19436 msgid ""
19437 " guestfish [--ro|--rw] -a disk.img\n"
19438 "\n"
19439 msgstr ""
19440
19441 #. type: verbatim
19442 #: ../fish/guestfish.pod:15
19443 #, no-wrap
19444 msgid ""
19445 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19446 "\n"
19447 msgstr ""
19448
19449 #. type: verbatim
19450 #: ../fish/guestfish.pod:17
19451 #, no-wrap
19452 msgid ""
19453 " guestfish -d libvirt-domain\n"
19454 "\n"
19455 msgstr ""
19456
19457 #. type: verbatim
19458 #: ../fish/guestfish.pod:19
19459 #, no-wrap
19460 msgid ""
19461 " guestfish [--ro|--rw] -a disk.img -i\n"
19462 "\n"
19463 msgstr ""
19464
19465 #. type: verbatim
19466 #: ../fish/guestfish.pod:21
19467 #, no-wrap
19468 msgid ""
19469 " guestfish -d libvirt-domain -i\n"
19470 "\n"
19471 msgstr ""
19472
19473 #. type: textblock
19474 #: ../fish/guestfish.pod:25
19475 msgid ""
19476 "Using guestfish in read/write mode on live virtual machines can be "
19477 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
19478 "option to use guestfish safely if the disk image or virtual machine might be "
19479 "live."
19480 msgstr ""
19481
19482 #. type: textblock
19483 #: ../fish/guestfish.pod:32
19484 msgid ""
19485 "Guestfish is a shell and command-line tool for examining and modifying "
19486 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
19487 "functionality of the guestfs API, see L<guestfs(3)>."
19488 msgstr ""
19489
19490 #. type: textblock
19491 #: ../fish/guestfish.pod:36
19492 msgid ""
19493 "Guestfish gives you structured access to the libguestfs API, from shell "
19494 "scripts or the command line or interactively.  If you want to rescue a "
19495 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19496 "command."
19497 msgstr ""
19498
19499 #. type: =head2
19500 #: ../fish/guestfish.pod:43
19501 msgid "As an interactive shell"
19502 msgstr ""
19503
19504 #. type: verbatim
19505 #: ../fish/guestfish.pod:45
19506 #, no-wrap
19507 msgid ""
19508 " $ guestfish\n"
19509 " \n"
19510 msgstr ""
19511
19512 #. type: verbatim
19513 #: ../fish/guestfish.pod:47
19514 #, no-wrap
19515 msgid ""
19516 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19517 " editing virtual machine filesystems.\n"
19518 " \n"
19519 msgstr ""
19520
19521 #. type: verbatim
19522 #: ../fish/guestfish.pod:50
19523 #, no-wrap
19524 msgid ""
19525 " Type: 'help' for a list of commands\n"
19526 "       'man' to read the manual\n"
19527 "       'quit' to quit the shell\n"
19528 " \n"
19529 msgstr ""
19530
19531 #. type: verbatim
19532 #: ../fish/guestfish.pod:54
19533 #, no-wrap
19534 msgid ""
19535 " ><fs> add-ro disk.img\n"
19536 " ><fs> run\n"
19537 " ><fs> list-filesystems\n"
19538 " /dev/sda1: ext4\n"
19539 " /dev/vg_guest/lv_root: ext4\n"
19540 " /dev/vg_guest/lv_swap: swap\n"
19541 " ><fs> mount /dev/vg_guest/lv_root /\n"
19542 " ><fs> cat /etc/fstab\n"
19543 " # /etc/fstab\n"
19544 " # Created by anaconda\n"
19545 " [...]\n"
19546 " ><fs> exit\n"
19547 "\n"
19548 msgstr ""
19549
19550 #. type: =head2
19551 #: ../fish/guestfish.pod:67
19552 msgid "From shell scripts"
19553 msgstr ""
19554
19555 #. type: textblock
19556 #: ../fish/guestfish.pod:69
19557 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19558 msgstr ""
19559
19560 #. type: verbatim
19561 #: ../fish/guestfish.pod:71
19562 #, no-wrap
19563 msgid ""
19564 " guestfish <<_EOF_\n"
19565 " add disk.img\n"
19566 " run\n"
19567 " mount /dev/vg_guest/lv_root /\n"
19568 " write /etc/motd \"Welcome, new users\"\n"
19569 " _EOF_\n"
19570 "\n"
19571 msgstr ""
19572
19573 #. type: textblock
19574 #: ../fish/guestfish.pod:78
19575 msgid "List the LVM logical volumes in a disk image:"
19576 msgstr ""
19577
19578 #. type: verbatim
19579 #: ../fish/guestfish.pod:80
19580 #, no-wrap
19581 msgid ""
19582 " guestfish -a disk.img --ro <<_EOF_\n"
19583 " run\n"
19584 " lvs\n"
19585 " _EOF_\n"
19586 "\n"
19587 msgstr ""
19588
19589 #. type: textblock
19590 #: ../fish/guestfish.pod:85
19591 msgid "List all the filesystems in a disk image:"
19592 msgstr ""
19593
19594 #. type: verbatim
19595 #: ../fish/guestfish.pod:87
19596 #, no-wrap
19597 msgid ""
19598 " guestfish -a disk.img --ro <<_EOF_\n"
19599 " run\n"
19600 " list-filesystems\n"
19601 " _EOF_\n"
19602 "\n"
19603 msgstr ""
19604
19605 #. type: =head2
19606 #: ../fish/guestfish.pod:92
19607 msgid "On one command line"
19608 msgstr ""
19609
19610 #. type: textblock
19611 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
19612 msgid "Update C</etc/resolv.conf> in a guest:"
19613 msgstr ""
19614
19615 #. type: verbatim
19616 #: ../fish/guestfish.pod:96
19617 #, no-wrap
19618 msgid ""
19619 " guestfish \\\n"
19620 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19621 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19622 "\n"
19623 msgstr ""
19624
19625 #. type: textblock
19626 #: ../fish/guestfish.pod:100
19627 msgid "Edit C</boot/grub/grub.conf> interactively:"
19628 msgstr ""
19629
19630 #. type: verbatim
19631 #: ../fish/guestfish.pod:102
19632 #, no-wrap
19633 msgid ""
19634 " guestfish --rw --add disk.img \\\n"
19635 "   --mount /dev/vg_guest/lv_root \\\n"
19636 "   --mount /dev/sda1:/boot \\\n"
19637 "   edit /boot/grub/grub.conf\n"
19638 "\n"
19639 msgstr ""
19640
19641 #. type: =head2
19642 #: ../fish/guestfish.pod:107
19643 msgid "Mount disks automatically"
19644 msgstr ""
19645
19646 #. type: textblock
19647 #: ../fish/guestfish.pod:109
19648 msgid ""
19649 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19650 msgstr ""
19651
19652 #. type: verbatim
19653 #: ../fish/guestfish.pod:112
19654 #, no-wrap
19655 msgid ""
19656 " guestfish --ro -a disk.img -i cat /etc/group\n"
19657 "\n"
19658 msgstr ""
19659
19660 #. type: verbatim
19661 #: ../fish/guestfish.pod:114
19662 #, no-wrap
19663 msgid ""
19664 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19665 "\n"
19666 msgstr ""
19667
19668 #. type: textblock
19669 #: ../fish/guestfish.pod:116
19670 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19671 msgstr ""
19672
19673 #. type: verbatim
19674 #: ../fish/guestfish.pod:118
19675 #, no-wrap
19676 msgid ""
19677 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19678 "\n"
19679 msgstr ""
19680
19681 #. type: =head2
19682 #: ../fish/guestfish.pod:120
19683 msgid "As a script interpreter"
19684 msgstr ""
19685
19686 #. type: textblock
19687 #: ../fish/guestfish.pod:122
19688 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19689 msgstr ""
19690
19691 #. type: verbatim
19692 #: ../fish/guestfish.pod:124
19693 #, no-wrap
19694 msgid ""
19695 " #!/usr/bin/guestfish -f\n"
19696 " sparse test1.img 100M\n"
19697 " run\n"
19698 " part-disk /dev/sda mbr\n"
19699 " mkfs ext2 /dev/sda1\n"
19700 "\n"
19701 msgstr ""
19702
19703 #. type: =head2
19704 #: ../fish/guestfish.pod:130
19705 msgid "Start with a prepared disk"
19706 msgstr ""
19707
19708 #. type: textblock
19709 #: ../fish/guestfish.pod:132
19710 msgid ""
19711 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19712 "single ext2-formatted partition:"
19713 msgstr ""
19714
19715 #. type: verbatim
19716 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
19717 #, no-wrap
19718 msgid ""
19719 " guestfish -N fs\n"
19720 "\n"
19721 msgstr ""
19722
19723 #. type: textblock
19724 #: ../fish/guestfish.pod:137
19725 msgid "To list what is available do:"
19726 msgstr ""
19727
19728 #. type: verbatim
19729 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
19730 #, no-wrap
19731 msgid ""
19732 " guestfish -N help | less\n"
19733 "\n"
19734 msgstr ""
19735
19736 #. type: =head2
19737 #: ../fish/guestfish.pod:141
19738 msgid "Remote control"
19739 msgstr ""
19740
19741 #. type: verbatim
19742 #: ../fish/guestfish.pod:143
19743 #, no-wrap
19744 msgid ""
19745 " eval \"`guestfish --listen`\"\n"
19746 " guestfish --remote add-ro disk.img\n"
19747 " guestfish --remote run\n"
19748 " guestfish --remote lvs\n"
19749 "\n"
19750 msgstr ""
19751
19752 #. type: textblock
19753 #: ../fish/guestfish.pod:154
19754 msgid "Displays general help on options."
19755 msgstr ""
19756
19757 #. type: =item
19758 #: ../fish/guestfish.pod:158
19759 msgid "B<--cmd-help>"
19760 msgstr ""
19761
19762 #. type: textblock
19763 #: ../fish/guestfish.pod:160
19764 msgid "Lists all available guestfish commands."
19765 msgstr ""
19766
19767 #. type: =item
19768 #: ../fish/guestfish.pod:162
19769 msgid "B<-h cmd>"
19770 msgstr ""
19771
19772 #. type: =item
19773 #: ../fish/guestfish.pod:164
19774 msgid "B<--cmd-help cmd>"
19775 msgstr ""
19776
19777 #. type: textblock
19778 #: ../fish/guestfish.pod:166
19779 msgid "Displays detailed help on a single command C<cmd>."
19780 msgstr ""
19781
19782 #. type: =item
19783 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19784 msgid "B<-a image>"
19785 msgstr ""
19786
19787 #. type: =item
19788 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19789 msgid "B<--add image>"
19790 msgstr ""
19791
19792 #. type: textblock
19793 #: ../fish/guestfish.pod:172
19794 msgid "Add a block device or virtual machine image to the shell."
19795 msgstr ""
19796
19797 #. type: textblock
19798 #: ../fish/guestfish.pod:177
19799 msgid ""
19800 "Using this flag is mostly equivalent to using the C<add> command, with "
19801 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19802 "the I<--format=...> flag was given."
19803 msgstr ""
19804
19805 #. type: textblock
19806 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19807 msgid ""
19808 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19809 "URI to use.  The default is to use the default libvirt connection."
19810 msgstr ""
19811
19812 #. type: =item
19813 #: ../fish/guestfish.pod:189
19814 msgid "B<--csh>"
19815 msgstr ""
19816
19817 #. type: textblock
19818 #: ../fish/guestfish.pod:191
19819 msgid ""
19820 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19821 "section L</REMOTE CONTROL AND CSH> below."
19822 msgstr ""
19823
19824 #. type: =item
19825 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19826 msgid "B<-d libvirt-domain>"
19827 msgstr ""
19828
19829 #. type: =item
19830 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19831 msgid "B<--domain libvirt-domain>"
19832 msgstr ""
19833
19834 #. type: textblock
19835 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19836 msgid ""
19837 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19838 "used, then any libvirt domain can be used.  However in write mode, only "
19839 "libvirt domains which are shut down can be named here."
19840 msgstr ""
19841
19842 #. type: textblock
19843 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19844 msgid "Domain UUIDs can be used instead of names."
19845 msgstr ""
19846
19847 #. type: textblock
19848 #: ../fish/guestfish.pod:204
19849 msgid ""
19850 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19851 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19852 "if the I<--format=...> flag was given."
19853 msgstr ""
19854
19855 #. type: =item
19856 #: ../fish/guestfish.pod:208
19857 msgid "B<-D>"
19858 msgstr ""
19859
19860 #. type: =item
19861 #: ../fish/guestfish.pod:210
19862 msgid "B<--no-dest-paths>"
19863 msgstr ""
19864
19865 #. type: textblock
19866 #: ../fish/guestfish.pod:212
19867 msgid ""
19868 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19869 "to hit the tab key to complete paths on the guest filesystem, but this "
19870 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19871 "allow this feature to be disabled."
19872 msgstr ""
19873
19874 #. type: textblock
19875 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19876 msgid ""
19877 "When prompting for keys and passphrases, guestfish normally turns echoing "
19878 "off so you cannot see what you are typing.  If you are not worried about "
19879 "Tempest attacks and there is no one else in the room you can specify this "
19880 "flag to see what you are typing."
19881 msgstr ""
19882
19883 #. type: =item
19884 #: ../fish/guestfish.pod:224
19885 msgid "B<-f file>"
19886 msgstr ""
19887
19888 #. type: =item
19889 #: ../fish/guestfish.pod:226
19890 msgid "B<--file file>"
19891 msgstr ""
19892
19893 #. type: textblock
19894 #: ../fish/guestfish.pod:228
19895 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19896 msgstr ""
19897
19898 #. type: verbatim
19899 #: ../fish/guestfish.pod:231
19900 #, no-wrap
19901 msgid ""
19902 " #!/usr/bin/guestfish -f\n"
19903 "\n"
19904 msgstr ""
19905
19906 #. type: verbatim
19907 #: ../fish/guestfish.pod:244
19908 #, no-wrap
19909 msgid ""
19910 " guestfish --format=raw -a disk.img\n"
19911 "\n"
19912 msgstr ""
19913
19914 #. type: verbatim
19915 #: ../fish/guestfish.pod:248
19916 #, no-wrap
19917 msgid ""
19918 " guestfish --format=raw -a disk.img --format -a another.img\n"
19919 "\n"
19920 msgstr ""
19921
19922 #. type: textblock
19923 #: ../fish/guestfish.pod:253
19924 msgid ""
19925 "If you have untrusted raw-format guest disk images, you should use this "
19926 "option to specify the disk format.  This avoids a possible security problem "
19927 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19928 msgstr ""
19929
19930 #. type: =item
19931 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19932 msgid "B<--inspector>"
19933 msgstr ""
19934
19935 #. type: textblock
19936 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19937 msgid ""
19938 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19939 "system and mount filesystems as they would be mounted on the real virtual "
19940 "machine."
19941 msgstr ""
19942
19943 #. type: textblock
19944 #: ../fish/guestfish.pod:266
19945 msgid "Typical usage is either:"
19946 msgstr ""
19947
19948 #. type: verbatim
19949 #: ../fish/guestfish.pod:268
19950 #, no-wrap
19951 msgid ""
19952 " guestfish -d myguest -i\n"
19953 "\n"
19954 msgstr ""
19955
19956 #. type: textblock
19957 #: ../fish/guestfish.pod:270
19958 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19959 msgstr ""
19960
19961 #. type: verbatim
19962 #: ../fish/guestfish.pod:272
19963 #, no-wrap
19964 msgid ""
19965 " guestfish --ro -d myguest -i\n"
19966 "\n"
19967 msgstr ""
19968
19969 #. type: textblock
19970 #: ../fish/guestfish.pod:274
19971 msgid "(for active domains, readonly), or specify the block device directly:"
19972 msgstr ""
19973
19974 #. type: verbatim
19975 #: ../fish/guestfish.pod:276
19976 #, no-wrap
19977 msgid ""
19978 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19979 "\n"
19980 msgstr ""
19981
19982 #. type: textblock
19983 #: ../fish/guestfish.pod:278
19984 msgid ""
19985 "Note that the command line syntax changed slightly over older versions of "
19986 "guestfish.  You can still use the old syntax:"
19987 msgstr ""
19988
19989 #. type: verbatim
19990 #: ../fish/guestfish.pod:281
19991 #, no-wrap
19992 msgid ""
19993 " guestfish [--ro] -i disk.img\n"
19994 "\n"
19995 msgstr ""
19996
19997 #. type: verbatim
19998 #: ../fish/guestfish.pod:283
19999 #, no-wrap
20000 msgid ""
20001 " guestfish [--ro] -i libvirt-domain\n"
20002 "\n"
20003 msgstr ""
20004
20005 #. type: textblock
20006 #: ../fish/guestfish.pod:285
20007 msgid ""
20008 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
20009 "then using other commands to mount the filesystems that were found."
20010 msgstr ""
20011
20012 #. type: =item
20013 #: ../fish/guestfish.pod:294
20014 msgid "B<--listen>"
20015 msgstr ""
20016
20017 #. type: textblock
20018 #: ../fish/guestfish.pod:296
20019 msgid ""
20020 "Fork into the background and listen for remote commands.  See section L</"
20021 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
20022 msgstr ""
20023
20024 #. type: =item
20025 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
20026 msgid "B<--live>"
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
20031 msgid ""
20032 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
20033 "ATTACHING TO RUNNING DAEMONS>)."
20034 msgstr ""
20035
20036 #. type: =item
20037 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
20038 msgid "B<-m dev[:mountpoint[:options]]>"
20039 msgstr ""
20040
20041 #. type: =item
20042 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
20043 msgid "B<--mount dev[:mountpoint[:options]]>"
20044 msgstr ""
20045
20046 #. type: textblock
20047 #: ../fish/guestfish.pod:308
20048 msgid "Mount the named partition or logical volume on the given mountpoint."
20049 msgstr ""
20050
20051 #. type: textblock
20052 #: ../fish/guestfish.pod:310
20053 msgid "If the mountpoint is omitted, it defaults to C</>."
20054 msgstr ""
20055
20056 #. type: textblock
20057 #: ../fish/guestfish.pod:312
20058 msgid "You have to mount something on C</> before most commands will work."
20059 msgstr ""
20060
20061 #. type: textblock
20062 #: ../fish/guestfish.pod:314
20063 msgid ""
20064 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20065 "launched."
20066 msgstr ""
20067
20068 #. type: textblock
20069 #: ../fish/guestfish.pod:317
20070 msgid ""
20071 "If you don't know what filesystems a disk image contains, you can either run "
20072 "guestfish without this option, then list the partitions, filesystems and LVs "
20073 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20074 "commands), or you can use the L<virt-filesystems(1)> program."
20075 msgstr ""
20076
20077 #. type: textblock
20078 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
20079 msgid ""
20080 "The third (and rarely used) part of the mount parameter is the list of mount "
20081 "options used to mount the underlying filesystem.  If this is not given, then "
20082 "the mount options are either the empty string or C<ro> (the latter if the "
20083 "I<--ro> flag is used).  By specifying the mount options, you override this "
20084 "default choice.  Probably the only time you would use this is to enable ACLs "
20085 "and/or extended attributes if the filesystem can support them:"
20086 msgstr ""
20087
20088 #. type: verbatim
20089 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
20090 #, no-wrap
20091 msgid ""
20092 " -m /dev/sda1:/:acl,user_xattr\n"
20093 "\n"
20094 msgstr ""
20095
20096 #. type: textblock
20097 #: ../fish/guestfish.pod:333
20098 msgid "Using this flag is equivalent to using the C<mount-options> command."
20099 msgstr ""
20100
20101 #. type: =item
20102 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
20103 #: ../resize/virt-resize.pod:441
20104 msgid "B<-n>"
20105 msgstr ""
20106
20107 #. type: =item
20108 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
20109 msgid "B<--no-sync>"
20110 msgstr ""
20111
20112 #. type: textblock
20113 #: ../fish/guestfish.pod:339
20114 msgid ""
20115 "Disable autosync.  This is enabled by default.  See the discussion of "
20116 "autosync in the L<guestfs(3)> manpage."
20117 msgstr ""
20118
20119 #. type: =item
20120 #: ../fish/guestfish.pod:342
20121 msgid "B<-N type>"
20122 msgstr ""
20123
20124 #. type: =item
20125 #: ../fish/guestfish.pod:344
20126 msgid "B<--new type>"
20127 msgstr ""
20128
20129 #. type: =item
20130 #: ../fish/guestfish.pod:346
20131 msgid "B<-N help>"
20132 msgstr ""
20133
20134 #. type: textblock
20135 #: ../fish/guestfish.pod:348
20136 msgid ""
20137 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
20138 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20139 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
20140 "IMAGES> below."
20141 msgstr ""
20142
20143 #. type: =item
20144 #: ../fish/guestfish.pod:353
20145 msgid "B<--progress-bars>"
20146 msgstr ""
20147
20148 #. type: textblock
20149 #: ../fish/guestfish.pod:355
20150 msgid "Enable progress bars, even when guestfish is used non-interactively."
20151 msgstr ""
20152
20153 #. type: textblock
20154 #: ../fish/guestfish.pod:357
20155 msgid ""
20156 "Progress bars are enabled by default when guestfish is used as an "
20157 "interactive shell."
20158 msgstr ""
20159
20160 #. type: =item
20161 #: ../fish/guestfish.pod:360
20162 msgid "B<--no-progress-bars>"
20163 msgstr ""
20164
20165 #. type: textblock
20166 #: ../fish/guestfish.pod:362
20167 msgid "Disable progress bars."
20168 msgstr ""
20169
20170 #. type: =item
20171 #: ../fish/guestfish.pod:364
20172 msgid "B<--remote[=pid]>"
20173 msgstr ""
20174
20175 #. type: textblock
20176 #: ../fish/guestfish.pod:366
20177 msgid ""
20178 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
20179 "CONTROL GUESTFISH OVER A SOCKET> below."
20180 msgstr ""
20181
20182 #. type: =item
20183 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
20184 #: ../rescue/virt-rescue.pod:189
20185 msgid "B<-r>"
20186 msgstr ""
20187
20188 #. type: =item
20189 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
20190 #: ../rescue/virt-rescue.pod:191
20191 msgid "B<--ro>"
20192 msgstr ""
20193
20194 #. type: textblock
20195 #: ../fish/guestfish.pod:373
20196 msgid ""
20197 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20198 "mounts are done read-only."
20199 msgstr ""
20200
20201 #. type: textblock
20202 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
20203 msgid ""
20204 "The option must always be used if the disk image or virtual machine might be "
20205 "running, and is generally recommended in cases where you don't need write "
20206 "access to the disk."
20207 msgstr ""
20208
20209 #. type: textblock
20210 #: ../fish/guestfish.pod:380
20211 msgid ""
20212 "Note that prepared disk images created with I<-N> are not affected by this "
20213 "option.  Also commands like C<add> are not affected - you have to specify "
20214 "the C<readonly:true> option explicitly if you need it."
20215 msgstr ""
20216
20217 #. type: textblock
20218 #: ../fish/guestfish.pod:384
20219 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20220 msgstr ""
20221
20222 #. type: =item
20223 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
20224 #: ../rescue/virt-rescue.pod:201
20225 msgid "B<--selinux>"
20226 msgstr ""
20227
20228 #. type: textblock
20229 #: ../fish/guestfish.pod:388
20230 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
20231 msgstr ""
20232
20233 #. type: textblock
20234 #: ../fish/guestfish.pod:394
20235 msgid ""
20236 "Enable very verbose messages.  This is particularly useful if you find a bug."
20237 msgstr ""
20238
20239 #. type: textblock
20240 #: ../fish/guestfish.pod:401
20241 msgid "Display the guestfish / libguestfs version number and exit."
20242 msgstr ""
20243
20244 #. type: =item
20245 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
20246 #: ../rescue/virt-rescue.pod:231
20247 msgid "B<-w>"
20248 msgstr ""
20249
20250 #. type: =item
20251 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
20252 #: ../rescue/virt-rescue.pod:233
20253 msgid "B<--rw>"
20254 msgstr ""
20255
20256 #. type: textblock
20257 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
20258 msgid ""
20259 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20260 "mounts are done read-write."
20261 msgstr ""
20262
20263 #. type: textblock
20264 #: ../fish/guestfish.pod:410
20265 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20266 msgstr ""
20267
20268 #. type: textblock
20269 #: ../fish/guestfish.pod:414
20270 msgid "Echo each command before executing it."
20271 msgstr ""
20272
20273 #. type: =head1
20274 #: ../fish/guestfish.pod:418
20275 msgid "COMMANDS ON COMMAND LINE"
20276 msgstr ""
20277
20278 #. type: textblock
20279 #: ../fish/guestfish.pod:420
20280 msgid ""
20281 "Any additional (non-option) arguments are treated as commands to execute."
20282 msgstr ""
20283
20284 #. type: textblock
20285 #: ../fish/guestfish.pod:423
20286 msgid ""
20287 "Commands to execute should be separated by a colon (C<:>), where the colon "
20288 "is a separate parameter.  Thus:"
20289 msgstr ""
20290
20291 #. type: verbatim
20292 #: ../fish/guestfish.pod:426
20293 #, no-wrap
20294 msgid ""
20295 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20296 "\n"
20297 msgstr ""
20298
20299 #. type: textblock
20300 #: ../fish/guestfish.pod:428
20301 msgid ""
20302 "If there are no additional arguments, then we enter a shell, either an "
20303 "interactive shell with a prompt (if the input is a terminal) or a non-"
20304 "interactive shell."
20305 msgstr ""
20306
20307 #. type: textblock
20308 #: ../fish/guestfish.pod:432
20309 msgid ""
20310 "In either command line mode or non-interactive shell, the first command that "
20311 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20312 "prompt) if a command fails, you can continue to enter commands."
20313 msgstr ""
20314
20315 #. type: =head1
20316 #: ../fish/guestfish.pod:437
20317 msgid "USING launch (OR run)"
20318 msgstr ""
20319
20320 #. type: textblock
20321 #: ../fish/guestfish.pod:439
20322 msgid ""
20323 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20324 "then launch it, then mount any disks you need, and finally issue actions/"
20325 "commands.  So the general order of the day is:"
20326 msgstr ""
20327
20328 #. type: textblock
20329 #: ../fish/guestfish.pod:447
20330 msgid "add or -a/--add"
20331 msgstr ""
20332
20333 #. type: textblock
20334 #: ../fish/guestfish.pod:451
20335 msgid "launch (aka run)"
20336 msgstr ""
20337
20338 #. type: textblock
20339 #: ../fish/guestfish.pod:455
20340 msgid "mount or -m/--mount"
20341 msgstr ""
20342
20343 #. type: textblock
20344 #: ../fish/guestfish.pod:459
20345 msgid "any other commands"
20346 msgstr ""
20347
20348 #. type: textblock
20349 #: ../fish/guestfish.pod:463
20350 msgid ""
20351 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20352 "guest before mounting or performing any other commands."
20353 msgstr ""
20354
20355 #. type: textblock
20356 #: ../fish/guestfish.pod:466
20357 msgid ""
20358 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20359 "I<--new> options were given then C<run> is done automatically, simply "
20360 "because guestfish can't perform the action you asked for without doing this."
20361 msgstr ""
20362
20363 #. type: =head1
20364 #: ../fish/guestfish.pod:471
20365 msgid "OPENING DISKS FOR READ AND WRITE"
20366 msgstr ""
20367
20368 #. type: textblock
20369 #: ../fish/guestfish.pod:473
20370 msgid ""
20371 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20372 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20373 "I<-i> and I<-m> open disk images read-only or for writing."
20374 msgstr ""
20375
20376 #. type: textblock
20377 #: ../fish/guestfish.pod:478
20378 msgid ""
20379 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20380 "opening disk images supplied on the command line for write.  To open a disk "
20381 "image read-only you have to do I<-a image --ro>."
20382 msgstr ""
20383
20384 #. type: textblock
20385 #: ../fish/guestfish.pod:482
20386 msgid ""
20387 "This matters: If you accidentally open a live VM disk image writable then "
20388 "you will cause irreversible disk corruption."
20389 msgstr ""
20390
20391 #. type: textblock
20392 #: ../fish/guestfish.pod:485
20393 msgid ""
20394 "In a future libguestfs we intend to change the default the other way.  Disk "
20395 "images will be opened read-only.  You will have to either specify "
20396 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20397 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20398 "access for disk images specified by those other command line options."
20399 msgstr ""
20400
20401 #. type: textblock
20402 #: ../fish/guestfish.pod:492
20403 msgid ""
20404 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20405 "which does nothing (it is already the default).  However it is highly "
20406 "recommended that you use this option to indicate that you need write access, "
20407 "and prepare your scripts for the day when this option will be required for "
20408 "write access."
20409 msgstr ""
20410
20411 #. type: textblock
20412 #: ../fish/guestfish.pod:498
20413 msgid ""
20414 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20415 "other libguestfs program apart from guestfish and guestmount."
20416 msgstr ""
20417
20418 #. type: =head1
20419 #: ../fish/guestfish.pod:501
20420 msgid "QUOTING"
20421 msgstr ""
20422
20423 #. type: textblock
20424 #: ../fish/guestfish.pod:503
20425 msgid ""
20426 "You can quote ordinary parameters using either single or double quotes.  For "
20427 "example:"
20428 msgstr ""
20429
20430 #. type: verbatim
20431 #: ../fish/guestfish.pod:506
20432 #, no-wrap
20433 msgid ""
20434 " add \"file with a space.img\"\n"
20435 "\n"
20436 msgstr ""
20437
20438 #. type: verbatim
20439 #: ../fish/guestfish.pod:508
20440 #, no-wrap
20441 msgid ""
20442 " rm '/file name'\n"
20443 "\n"
20444 msgstr ""
20445
20446 #. type: verbatim
20447 #: ../fish/guestfish.pod:510
20448 #, no-wrap
20449 msgid ""
20450 " rm '/\"'\n"
20451 "\n"
20452 msgstr ""
20453
20454 #. type: textblock
20455 #: ../fish/guestfish.pod:512
20456 msgid ""
20457 "A few commands require a list of strings to be passed.  For these, use a "
20458 "whitespace-separated list, enclosed in quotes.  Strings containing "
20459 "whitespace to be passed through must be enclosed in single quotes.  A "
20460 "literal single quote must be escaped with a backslash."
20461 msgstr ""
20462
20463 #. type: verbatim
20464 #: ../fish/guestfish.pod:517
20465 #, no-wrap
20466 msgid ""
20467 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20468 " command \"/bin/echo 'foo      bar'\"\n"
20469 " command \"/bin/echo \\'foo\\'\"\n"
20470 "\n"
20471 msgstr ""
20472
20473 #. type: =head2
20474 #: ../fish/guestfish.pod:521
20475 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
20476 msgstr ""
20477
20478 #. type: textblock
20479 #: ../fish/guestfish.pod:523
20480 msgid ""
20481 "In double-quoted arguments (only) use backslash to insert special characters:"
20482 msgstr ""
20483
20484 #. type: =item
20485 #: ../fish/guestfish.pod:528
20486 msgid "C<\\a>"
20487 msgstr ""
20488
20489 #. type: textblock
20490 #: ../fish/guestfish.pod:530
20491 msgid "Alert (bell) character."
20492 msgstr ""
20493
20494 #. type: =item
20495 #: ../fish/guestfish.pod:532
20496 msgid "C<\\b>"
20497 msgstr ""
20498
20499 #. type: textblock
20500 #: ../fish/guestfish.pod:534
20501 msgid "Backspace character."
20502 msgstr ""
20503
20504 #. type: =item
20505 #: ../fish/guestfish.pod:536
20506 msgid "C<\\f>"
20507 msgstr ""
20508
20509 #. type: textblock
20510 #: ../fish/guestfish.pod:538
20511 msgid "Form feed character."
20512 msgstr ""
20513
20514 #. type: =item
20515 #: ../fish/guestfish.pod:540
20516 msgid "C<\\n>"
20517 msgstr ""
20518
20519 #. type: textblock
20520 #: ../fish/guestfish.pod:542
20521 msgid "Newline character."
20522 msgstr ""
20523
20524 #. type: =item
20525 #: ../fish/guestfish.pod:544
20526 msgid "C<\\r>"
20527 msgstr ""
20528
20529 #. type: textblock
20530 #: ../fish/guestfish.pod:546
20531 msgid "Carriage return character."
20532 msgstr ""
20533
20534 #. type: =item
20535 #: ../fish/guestfish.pod:548
20536 msgid "C<\\t>"
20537 msgstr ""
20538
20539 #. type: textblock
20540 #: ../fish/guestfish.pod:550
20541 msgid "Horizontal tab character."
20542 msgstr ""
20543
20544 #. type: =item
20545 #: ../fish/guestfish.pod:552
20546 msgid "C<\\v>"
20547 msgstr ""
20548
20549 #. type: textblock
20550 #: ../fish/guestfish.pod:554
20551 msgid "Vertical tab character."
20552 msgstr ""
20553
20554 #. type: =item
20555 #: ../fish/guestfish.pod:556
20556 msgid "C<\\\">"
20557 msgstr ""
20558
20559 #. type: textblock
20560 #: ../fish/guestfish.pod:558
20561 msgid "A literal double quote character."
20562 msgstr ""
20563
20564 #. type: =item
20565 #: ../fish/guestfish.pod:560
20566 msgid "C<\\ooo>"
20567 msgstr ""
20568
20569 #. type: textblock
20570 #: ../fish/guestfish.pod:562
20571 msgid ""
20572 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
20573 "(unlike C)."
20574 msgstr ""
20575
20576 #. type: =item
20577 #: ../fish/guestfish.pod:565
20578 msgid "C<\\xhh>"
20579 msgstr ""
20580
20581 #. type: textblock
20582 #: ../fish/guestfish.pod:567
20583 msgid ""
20584 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
20585 msgstr ""
20586
20587 #. type: textblock
20588 #: ../fish/guestfish.pod:570
20589 msgid ""
20590 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
20591 "strings."
20592 msgstr ""
20593
20594 #. type: =item
20595 #: ../fish/guestfish.pod:573
20596 msgid "C<\\\\>"
20597 msgstr ""
20598
20599 #. type: textblock
20600 #: ../fish/guestfish.pod:575
20601 msgid "A literal backslash character."
20602 msgstr ""
20603
20604 #. type: =head1
20605 #: ../fish/guestfish.pod:579
20606 msgid "OPTIONAL ARGUMENTS"
20607 msgstr ""
20608
20609 #. type: textblock
20610 #: ../fish/guestfish.pod:581
20611 msgid ""
20612 "Some commands take optional arguments.  These arguments appear in this "
20613 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20614 msgstr ""
20615
20616 #. type: verbatim
20617 #: ../fish/guestfish.pod:585
20618 #, no-wrap
20619 msgid ""
20620 " add-drive-opts filename\n"
20621 "\n"
20622 msgstr ""
20623
20624 #. type: verbatim
20625 #: ../fish/guestfish.pod:587
20626 #, no-wrap
20627 msgid ""
20628 " add-drive-opts filename readonly:true\n"
20629 "\n"
20630 msgstr ""
20631
20632 #. type: verbatim
20633 #: ../fish/guestfish.pod:589
20634 #, no-wrap
20635 msgid ""
20636 " add-drive-opts filename format:qcow2 readonly:false\n"
20637 "\n"
20638 msgstr ""
20639
20640 #. type: textblock
20641 #: ../fish/guestfish.pod:591
20642 msgid ""
20643 "Each optional argument can appear at most once.  All optional arguments must "
20644 "appear after the required ones."
20645 msgstr ""
20646
20647 #. type: =head1
20648 #: ../fish/guestfish.pod:594
20649 msgid "NUMBERS"
20650 msgstr ""
20651
20652 #. type: textblock
20653 #: ../fish/guestfish.pod:596
20654 msgid ""
20655 "This section applies to all commands which can take integers as parameters."
20656 msgstr ""
20657
20658 #. type: =head2
20659 #: ../fish/guestfish.pod:599
20660 msgid "SIZE SUFFIX"
20661 msgstr ""
20662
20663 #. type: textblock
20664 #: ../fish/guestfish.pod:601
20665 msgid ""
20666 "When the command takes a parameter measured in bytes, you can use one of the "
20667 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20668 msgstr ""
20669
20670 #. type: =item
20671 #: ../fish/guestfish.pod:607
20672 msgid "B<k> or B<K> or B<KiB>"
20673 msgstr ""
20674
20675 #. type: textblock
20676 #: ../fish/guestfish.pod:609
20677 msgid "The size in kilobytes (multiplied by 1024)."
20678 msgstr ""
20679
20680 #. type: =item
20681 #: ../fish/guestfish.pod:611
20682 msgid "B<KB>"
20683 msgstr ""
20684
20685 #. type: textblock
20686 #: ../fish/guestfish.pod:613
20687 msgid "The size in SI 1000 byte units."
20688 msgstr ""
20689
20690 #. type: =item
20691 #: ../fish/guestfish.pod:615
20692 msgid "B<M> or B<MiB>"
20693 msgstr ""
20694
20695 #. type: textblock
20696 #: ../fish/guestfish.pod:617
20697 msgid "The size in megabytes (multiplied by 1048576)."
20698 msgstr ""
20699
20700 #. type: =item
20701 #: ../fish/guestfish.pod:619
20702 msgid "B<MB>"
20703 msgstr ""
20704
20705 #. type: textblock
20706 #: ../fish/guestfish.pod:621
20707 msgid "The size in SI 1000000 byte units."
20708 msgstr ""
20709
20710 #. type: =item
20711 #: ../fish/guestfish.pod:623
20712 msgid "B<G> or B<GiB>"
20713 msgstr ""
20714
20715 #. type: textblock
20716 #: ../fish/guestfish.pod:625
20717 msgid "The size in gigabytes (multiplied by 2**30)."
20718 msgstr ""
20719
20720 #. type: =item
20721 #: ../fish/guestfish.pod:627
20722 msgid "B<GB>"
20723 msgstr ""
20724
20725 #. type: textblock
20726 #: ../fish/guestfish.pod:629
20727 msgid "The size in SI 10**9 byte units."
20728 msgstr ""
20729
20730 #. type: =item
20731 #: ../fish/guestfish.pod:631
20732 msgid "B<T> or B<TiB>"
20733 msgstr ""
20734
20735 #. type: textblock
20736 #: ../fish/guestfish.pod:633
20737 msgid "The size in terabytes (multiplied by 2**40)."
20738 msgstr ""
20739
20740 #. type: =item
20741 #: ../fish/guestfish.pod:635
20742 msgid "B<TB>"
20743 msgstr ""
20744
20745 #. type: textblock
20746 #: ../fish/guestfish.pod:637
20747 msgid "The size in SI 10**12 byte units."
20748 msgstr ""
20749
20750 #. type: =item
20751 #: ../fish/guestfish.pod:639
20752 msgid "B<P> or B<PiB>"
20753 msgstr ""
20754
20755 #. type: textblock
20756 #: ../fish/guestfish.pod:641
20757 msgid "The size in petabytes (multiplied by 2**50)."
20758 msgstr ""
20759
20760 #. type: =item
20761 #: ../fish/guestfish.pod:643
20762 msgid "B<PB>"
20763 msgstr ""
20764
20765 #. type: textblock
20766 #: ../fish/guestfish.pod:645
20767 msgid "The size in SI 10**15 byte units."
20768 msgstr ""
20769
20770 #. type: =item
20771 #: ../fish/guestfish.pod:647
20772 msgid "B<E> or B<EiB>"
20773 msgstr ""
20774
20775 #. type: textblock
20776 #: ../fish/guestfish.pod:649
20777 msgid "The size in exabytes (multiplied by 2**60)."
20778 msgstr ""
20779
20780 #. type: =item
20781 #: ../fish/guestfish.pod:651
20782 msgid "B<EB>"
20783 msgstr ""
20784
20785 #. type: textblock
20786 #: ../fish/guestfish.pod:653
20787 msgid "The size in SI 10**18 byte units."
20788 msgstr ""
20789
20790 #. type: =item
20791 #: ../fish/guestfish.pod:655
20792 msgid "B<Z> or B<ZiB>"
20793 msgstr ""
20794
20795 #. type: textblock
20796 #: ../fish/guestfish.pod:657
20797 msgid "The size in zettabytes (multiplied by 2**70)."
20798 msgstr ""
20799
20800 #. type: =item
20801 #: ../fish/guestfish.pod:659
20802 msgid "B<ZB>"
20803 msgstr ""
20804
20805 #. type: textblock
20806 #: ../fish/guestfish.pod:661
20807 msgid "The size in SI 10**21 byte units."
20808 msgstr ""
20809
20810 #. type: =item
20811 #: ../fish/guestfish.pod:663
20812 msgid "B<Y> or B<YiB>"
20813 msgstr ""
20814
20815 #. type: textblock
20816 #: ../fish/guestfish.pod:665
20817 msgid "The size in yottabytes (multiplied by 2**80)."
20818 msgstr ""
20819
20820 #. type: =item
20821 #: ../fish/guestfish.pod:667
20822 msgid "B<YB>"
20823 msgstr ""
20824
20825 #. type: textblock
20826 #: ../fish/guestfish.pod:669
20827 msgid "The size in SI 10**24 byte units."
20828 msgstr ""
20829
20830 #. type: verbatim
20831 #: ../fish/guestfish.pod:675
20832 #, no-wrap
20833 msgid ""
20834 " truncate-size /file 1G\n"
20835 "\n"
20836 msgstr ""
20837
20838 #. type: textblock
20839 #: ../fish/guestfish.pod:677
20840 msgid "would truncate the file to 1 gigabyte."
20841 msgstr ""
20842
20843 #. type: textblock
20844 #: ../fish/guestfish.pod:679
20845 msgid ""
20846 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20847 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20848 "suffix will probably not do what you expect."
20849 msgstr ""
20850
20851 #. type: =head2
20852 #: ../fish/guestfish.pod:683
20853 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20854 msgstr ""
20855
20856 #. type: textblock
20857 #: ../fish/guestfish.pod:685
20858 msgid ""
20859 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20860 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20861 msgstr ""
20862
20863 #. type: verbatim
20864 #: ../fish/guestfish.pod:688
20865 #, no-wrap
20866 msgid ""
20867 " 1234      decimal number 1234\n"
20868 " 02322     octal number, equivalent to decimal 1234\n"
20869 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20870 "\n"
20871 msgstr ""
20872
20873 #. type: textblock
20874 #: ../fish/guestfish.pod:692
20875 msgid ""
20876 "When using the C<chmod> command, you almost always want to specify an octal "
20877 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20878 "L<chmod(1)> program):"
20879 msgstr ""
20880
20881 #. type: verbatim
20882 #: ../fish/guestfish.pod:696
20883 #, no-wrap
20884 msgid ""
20885 " chmod 0777 /public  # OK\n"
20886 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20887 "\n"
20888 msgstr ""
20889
20890 #. type: textblock
20891 #: ../fish/guestfish.pod:699
20892 msgid ""
20893 "Commands that return numbers usually print them in decimal, but some "
20894 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20895 "octal, preceeded by C<0>)."
20896 msgstr ""
20897
20898 #. type: =head1
20899 #: ../fish/guestfish.pod:703
20900 msgid "WILDCARDS AND GLOBBING"
20901 msgstr ""
20902
20903 #. type: textblock
20904 #: ../fish/guestfish.pod:705
20905 msgid ""
20906 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20907 "(globbing) by default.  So for example the following will not do what you "
20908 "expect:"
20909 msgstr ""
20910
20911 #. type: verbatim
20912 #: ../fish/guestfish.pod:709
20913 #, no-wrap
20914 msgid ""
20915 " rm-rf /home/*\n"
20916 "\n"
20917 msgstr ""
20918
20919 #. type: textblock
20920 #: ../fish/guestfish.pod:711
20921 msgid ""
20922 "Assuming you don't have a directory called literally C</home/*> then the "
20923 "above command will return an error."
20924 msgstr ""
20925
20926 #. type: textblock
20927 #: ../fish/guestfish.pod:714
20928 msgid "To perform wildcard expansion, use the C<glob> command."
20929 msgstr ""
20930
20931 #. type: verbatim
20932 #: ../fish/guestfish.pod:716
20933 #, no-wrap
20934 msgid ""
20935 " glob rm-rf /home/*\n"
20936 "\n"
20937 msgstr ""
20938
20939 #. type: textblock
20940 #: ../fish/guestfish.pod:718
20941 msgid ""
20942 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20943 "many times), equivalent to:"
20944 msgstr ""
20945
20946 #. type: verbatim
20947 #: ../fish/guestfish.pod:721
20948 #, no-wrap
20949 msgid ""
20950 " rm-rf /home/jim\n"
20951 " rm-rf /home/joe\n"
20952 " rm-rf /home/mary\n"
20953 "\n"
20954 msgstr ""
20955
20956 #. type: textblock
20957 #: ../fish/guestfish.pod:725
20958 msgid "C<glob> only works on simple guest paths and not on device names."
20959 msgstr ""
20960
20961 #. type: textblock
20962 #: ../fish/guestfish.pod:727
20963 msgid ""
20964 "If you have several parameters, each containing a wildcard, then glob will "
20965 "perform a Cartesian product."
20966 msgstr ""
20967
20968 #. type: =head1
20969 #: ../fish/guestfish.pod:730
20970 msgid "COMMENTS"
20971 msgstr ""
20972
20973 #. type: textblock
20974 #: ../fish/guestfish.pod:732
20975 msgid ""
20976 "Any line which starts with a I<#> character is treated as a comment and "
20977 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20978 "a command.  For example:"
20979 msgstr ""
20980
20981 #. type: verbatim
20982 #: ../fish/guestfish.pod:736
20983 #, no-wrap
20984 msgid ""
20985 " # this is a comment\n"
20986 "         # this is a comment\n"
20987 " foo # NOT a comment\n"
20988 "\n"
20989 msgstr ""
20990
20991 #. type: textblock
20992 #: ../fish/guestfish.pod:740
20993 msgid "Blank lines are also ignored."
20994 msgstr ""
20995
20996 #. type: =head1
20997 #: ../fish/guestfish.pod:742
20998 msgid "RUNNING COMMANDS LOCALLY"
20999 msgstr ""
21000
21001 #. type: textblock
21002 #: ../fish/guestfish.pod:744
21003 msgid ""
21004 "Any line which starts with a I<!> character is treated as a command sent to "
21005 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
21006 msgstr ""
21007
21008 #. type: verbatim
21009 #: ../fish/guestfish.pod:748
21010 #, no-wrap
21011 msgid ""
21012 " !mkdir local\n"
21013 " tgz-out /remote local/remote-data.tar.gz\n"
21014 "\n"
21015 msgstr ""
21016
21017 #. type: textblock
21018 #: ../fish/guestfish.pod:751
21019 msgid ""
21020 "will create a directory C<local> on the host, and then export the contents "
21021 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
21022 "(See C<tgz-out>)."
21023 msgstr ""
21024
21025 #. type: textblock
21026 #: ../fish/guestfish.pod:755
21027 msgid ""
21028 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
21029 "effect, due to the way that subprocesses work in Unix."
21030 msgstr ""
21031
21032 #. type: =head2
21033 #: ../fish/guestfish.pod:758
21034 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
21035 msgstr ""
21036
21037 #. type: textblock
21038 #: ../fish/guestfish.pod:760
21039 msgid ""
21040 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
21041 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
21042 "and executed as guestfish commands."
21043 msgstr ""
21044
21045 #. type: textblock
21046 #: ../fish/guestfish.pod:764
21047 msgid ""
21048 "Thus you can use shell script to construct arbitrary guestfish commands "
21049 "which are then parsed by guestfish."
21050 msgstr ""
21051
21052 #. type: textblock
21053 #: ../fish/guestfish.pod:767
21054 msgid ""
21055 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
21056 "through C</foo.100>) using guestfish commands alone.  However this is simple "
21057 "if we use a shell script to create the guestfish commands for us:"
21058 msgstr ""
21059
21060 #. type: verbatim
21061 #: ../fish/guestfish.pod:772
21062 #, no-wrap
21063 msgid ""
21064 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
21065 "\n"
21066 msgstr ""
21067
21068 #. type: textblock
21069 #: ../fish/guestfish.pod:774
21070 msgid "or with names like C</foo.001>:"
21071 msgstr ""
21072
21073 #. type: verbatim
21074 #: ../fish/guestfish.pod:776
21075 #, no-wrap
21076 msgid ""
21077 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
21078 "\n"
21079 msgstr ""
21080
21081 #. type: textblock
21082 #: ../fish/guestfish.pod:778
21083 msgid ""
21084 "When using guestfish interactively it can be helpful to just run the shell "
21085 "script first (ie. remove the initial C<E<lt>> character so it is just an "
21086 "ordinary I<!> local command), see what guestfish commands it would run, and "
21087 "when you are happy with those prepend the C<E<lt>> character to run the "
21088 "guestfish commands for real."
21089 msgstr ""
21090
21091 #. type: =head1
21092 #: ../fish/guestfish.pod:784
21093 msgid "PIPES"
21094 msgstr ""
21095
21096 #. type: textblock
21097 #: ../fish/guestfish.pod:786
21098 msgid ""
21099 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
21100 "command (a guestfish command) to the second command (any host command).  For "
21101 "example:"
21102 msgstr ""
21103
21104 #. type: verbatim
21105 #: ../fish/guestfish.pod:790
21106 #, no-wrap
21107 msgid ""
21108 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
21109 "\n"
21110 msgstr ""
21111
21112 #. type: textblock
21113 #: ../fish/guestfish.pod:792
21114 msgid ""
21115 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
21116 "program).  The above command would list all accounts in the guest filesystem "
21117 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
21118 msgstr ""
21119
21120 #. type: verbatim
21121 #: ../fish/guestfish.pod:797
21122 #, no-wrap
21123 msgid ""
21124 " hexdump /bin/ls | head\n"
21125 " list-devices | tail -1\n"
21126 " tgz-out / - | tar ztf -\n"
21127 "\n"
21128 msgstr ""
21129
21130 #. type: textblock
21131 #: ../fish/guestfish.pod:801
21132 msgid ""
21133 "The space before the pipe symbol is required, any space after the pipe "
21134 "symbol is optional.  Everything after the pipe symbol is just passed "
21135 "straight to the host shell, so it can contain redirections, globs and "
21136 "anything else that makes sense on the host side."
21137 msgstr ""
21138
21139 #. type: textblock
21140 #: ../fish/guestfish.pod:806
21141 msgid ""
21142 "To use a literal argument which begins with a pipe symbol, you have to quote "
21143 "it, eg:"
21144 msgstr ""
21145
21146 #. type: verbatim
21147 #: ../fish/guestfish.pod:809
21148 #, no-wrap
21149 msgid ""
21150 " echo \"|\"\n"
21151 "\n"
21152 msgstr ""
21153
21154 #. type: =head1
21155 #: ../fish/guestfish.pod:811
21156 msgid "HOME DIRECTORIES"
21157 msgstr ""
21158
21159 #. type: textblock
21160 #: ../fish/guestfish.pod:813
21161 msgid ""
21162 "If a parameter starts with the character C<~> then the tilde may be expanded "
21163 "as a home directory path (either C<~> for the current user's home directory, "
21164 "or C<~user> for another user)."
21165 msgstr ""
21166
21167 #. type: textblock
21168 #: ../fish/guestfish.pod:817
21169 msgid ""
21170 "Note that home directory expansion happens for users known I<on the host>, "
21171 "not in the guest filesystem."
21172 msgstr ""
21173
21174 #. type: textblock
21175 #: ../fish/guestfish.pod:820
21176 msgid ""
21177 "To use a literal argument which begins with a tilde, you have to quote it, "
21178 "eg:"
21179 msgstr ""
21180
21181 #. type: verbatim
21182 #: ../fish/guestfish.pod:823
21183 #, no-wrap
21184 msgid ""
21185 " echo \"~\"\n"
21186 "\n"
21187 msgstr ""
21188
21189 #. type: =head2
21190 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
21191 msgid "ENCRYPTED DISKS"
21192 msgstr ""
21193
21194 #. type: textblock
21195 #: ../fish/guestfish.pod:827
21196 msgid ""
21197 "Libguestfs has some support for Linux guests encrypted according to the "
21198 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21199 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
21200 "LUKS is supported."
21201 msgstr ""
21202
21203 #. type: textblock
21204 #: ../fish/guestfish.pod:832
21205 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21206 msgstr ""
21207
21208 #. type: verbatim
21209 #: ../fish/guestfish.pod:834
21210 #, no-wrap
21211 msgid ""
21212 " ><fs> vfs-type /dev/sda2\n"
21213 " crypto_LUKS\n"
21214 "\n"
21215 msgstr ""
21216
21217 #. type: textblock
21218 #: ../fish/guestfish.pod:837
21219 msgid ""
21220 "Then open those devices using L</luks-open>.  This creates a device-mapper "
21221 "device called C</dev/mapper/luksdev>."
21222 msgstr ""
21223
21224 #. type: verbatim
21225 #: ../fish/guestfish.pod:840
21226 #, no-wrap
21227 msgid ""
21228 " ><fs> luks-open /dev/sda2 luksdev\n"
21229 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21230 "\n"
21231 msgstr ""
21232
21233 #. type: textblock
21234 #: ../fish/guestfish.pod:843
21235 msgid ""
21236 "Finally you have to tell LVM to scan for volume groups on the newly created "
21237 "mapper device:"
21238 msgstr ""
21239
21240 #. type: verbatim
21241 #: ../fish/guestfish.pod:846
21242 #, no-wrap
21243 msgid ""
21244 " vgscan\n"
21245 " vg-activate-all true\n"
21246 "\n"
21247 msgstr ""
21248
21249 #. type: textblock
21250 #: ../fish/guestfish.pod:849
21251 msgid "The logical volume(s) can now be mounted in the usual way."
21252 msgstr ""
21253
21254 #. type: textblock
21255 #: ../fish/guestfish.pod:851
21256 msgid ""
21257 "Before closing a LUKS device you must unmount any logical volumes on it and "
21258 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21259 "one.  Then you can close the mapper device:"
21260 msgstr ""
21261
21262 #. type: verbatim
21263 #: ../fish/guestfish.pod:855
21264 #, no-wrap
21265 msgid ""
21266 " vg-activate false /dev/VG\n"
21267 " luks-close /dev/mapper/luksdev\n"
21268 "\n"
21269 msgstr ""
21270
21271 #. type: textblock
21272 #: ../fish/guestfish.pod:860
21273 msgid ""
21274 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21275 "letters and paths (with some limitations).  The following commands are "
21276 "equivalent:"
21277 msgstr ""
21278
21279 #. type: verbatim
21280 #: ../fish/guestfish.pod:864
21281 #, no-wrap
21282 msgid ""
21283 " file /WINDOWS/system32/config/system.LOG\n"
21284 "\n"
21285 msgstr ""
21286
21287 #. type: verbatim
21288 #: ../fish/guestfish.pod:866
21289 #, no-wrap
21290 msgid ""
21291 " file win:\\windows\\system32\\config\\system.log\n"
21292 "\n"
21293 msgstr ""
21294
21295 #. type: verbatim
21296 #: ../fish/guestfish.pod:868
21297 #, no-wrap
21298 msgid ""
21299 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21300 "\n"
21301 msgstr ""
21302
21303 #. type: textblock
21304 #: ../fish/guestfish.pod:870
21305 msgid ""
21306 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21307 "where the drive is mounted, prepending that to the path, changing all "
21308 "backslash characters to forward slash, then resolving the result using L</"
21309 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
21310 "the parameter might be rewritten like this:"
21311 msgstr ""
21312
21313 #. type: verbatim
21314 #: ../fish/guestfish.pod:876
21315 #, no-wrap
21316 msgid ""
21317 " win:e:\\foo\\bar => /e/FOO/bar\n"
21318 "\n"
21319 msgstr ""
21320
21321 #. type: textblock
21322 #: ../fish/guestfish.pod:878
21323 msgid "This only works in argument positions that expect a path."
21324 msgstr ""
21325
21326 #. type: =head1
21327 #: ../fish/guestfish.pod:880
21328 msgid "UPLOADING AND DOWNLOADING FILES"
21329 msgstr ""
21330
21331 #. type: textblock
21332 #: ../fish/guestfish.pod:882
21333 msgid ""
21334 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21335 "others which upload from or download to a local file, you can use the "
21336 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
21337 msgstr ""
21338
21339 #. type: verbatim
21340 #: ../fish/guestfish.pod:886
21341 #, no-wrap
21342 msgid ""
21343 " upload - /foo\n"
21344 "\n"
21345 msgstr ""
21346
21347 #. type: textblock
21348 #: ../fish/guestfish.pod:888
21349 msgid ""
21350 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21351 msgstr ""
21352
21353 #. type: verbatim
21354 #: ../fish/guestfish.pod:891
21355 #, no-wrap
21356 msgid ""
21357 " tar-out /etc - | tar tf -\n"
21358 "\n"
21359 msgstr ""
21360
21361 #. type: textblock
21362 #: ../fish/guestfish.pod:893
21363 msgid ""
21364 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21365 "command (see L</PIPES>)."
21366 msgstr ""
21367
21368 #. type: textblock
21369 #: ../fish/guestfish.pod:896
21370 msgid ""
21371 "When using C<-> to read from stdin, the input is read up to the end of "
21372 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21373 "some arbitrary end marker:"
21374 msgstr ""
21375
21376 #. type: verbatim
21377 #: ../fish/guestfish.pod:900
21378 #, no-wrap
21379 msgid ""
21380 " upload -<<END /foo\n"
21381 " input line 1\n"
21382 " input line 2\n"
21383 " input line 3\n"
21384 " END\n"
21385 "\n"
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../fish/guestfish.pod:906
21390 msgid ""
21391 "Any string of characters can be used instead of C<END>.  The end marker must "
21392 "appear on a line of its own, without any preceeding or following characters "
21393 "(not even spaces)."
21394 msgstr ""
21395
21396 #. type: textblock
21397 #: ../fish/guestfish.pod:910
21398 msgid ""
21399 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21400 "upload local files (so-called \"FileIn\" parameters in the generator)."
21401 msgstr ""
21402
21403 #. type: =head1
21404 #: ../fish/guestfish.pod:913
21405 msgid "EXIT ON ERROR BEHAVIOUR"
21406 msgstr ""
21407
21408 #. type: textblock
21409 #: ../fish/guestfish.pod:915
21410 msgid ""
21411 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21412 "taking commands from a human over a tty), and will exit on the first error "
21413 "in non-interactive mode (scripts, commands given on the command line)."
21414 msgstr ""
21415
21416 #. type: textblock
21417 #: ../fish/guestfish.pod:920
21418 msgid ""
21419 "If you prefix a command with a I<-> character, then that command will not "
21420 "cause guestfish to exit, even if that (one) command returns an error."
21421 msgstr ""
21422
21423 #. type: =head1
21424 #: ../fish/guestfish.pod:924
21425 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21426 msgstr ""
21427
21428 #. type: textblock
21429 #: ../fish/guestfish.pod:926
21430 msgid ""
21431 "Guestfish can be remote-controlled over a socket.  This is useful "
21432 "particularly in shell scripts where you want to make several different "
21433 "changes to a filesystem, but you don't want the overhead of starting up a "
21434 "guestfish process each time."
21435 msgstr ""
21436
21437 #. type: textblock
21438 #: ../fish/guestfish.pod:931
21439 msgid "Start a guestfish server process using:"
21440 msgstr ""
21441
21442 #. type: verbatim
21443 #: ../fish/guestfish.pod:933
21444 #, no-wrap
21445 msgid ""
21446 " eval \"`guestfish --listen`\"\n"
21447 "\n"
21448 msgstr ""
21449
21450 #. type: textblock
21451 #: ../fish/guestfish.pod:935
21452 msgid "and then send it commands by doing:"
21453 msgstr ""
21454
21455 #. type: verbatim
21456 #: ../fish/guestfish.pod:937
21457 #, no-wrap
21458 msgid ""
21459 " guestfish --remote cmd [...]\n"
21460 "\n"
21461 msgstr ""
21462
21463 #. type: textblock
21464 #: ../fish/guestfish.pod:939
21465 msgid "To cause the server to exit, send it the exit command:"
21466 msgstr ""
21467
21468 #. type: textblock
21469 #: ../fish/guestfish.pod:943
21470 msgid ""
21471 "Note that the server will normally exit if there is an error in a command.  "
21472 "You can change this in the usual way.  See section L</EXIT ON ERROR "
21473 "BEHAVIOUR>."
21474 msgstr ""
21475
21476 #. type: =head2
21477 #: ../fish/guestfish.pod:947
21478 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21479 msgstr ""
21480
21481 #. type: textblock
21482 #: ../fish/guestfish.pod:949
21483 msgid ""
21484 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21485 "is how the I<--remote> option knows where to send the commands.  You can "
21486 "have several guestfish listener processes running using:"
21487 msgstr ""
21488
21489 #. type: verbatim
21490 #: ../fish/guestfish.pod:953
21491 #, no-wrap
21492 msgid ""
21493 " eval \"`guestfish --listen`\"\n"
21494 " pid1=$GUESTFISH_PID\n"
21495 " eval \"`guestfish --listen`\"\n"
21496 " pid2=$GUESTFISH_PID\n"
21497 " ...\n"
21498 " guestfish --remote=$pid1 cmd\n"
21499 " guestfish --remote=$pid2 cmd\n"
21500 "\n"
21501 msgstr ""
21502
21503 #. type: =head2
21504 #: ../fish/guestfish.pod:961
21505 msgid "REMOTE CONTROL AND CSH"
21506 msgstr ""
21507
21508 #. type: textblock
21509 #: ../fish/guestfish.pod:963
21510 msgid ""
21511 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21512 "option:"
21513 msgstr ""
21514
21515 #. type: verbatim
21516 #: ../fish/guestfish.pod:966
21517 #, no-wrap
21518 msgid ""
21519 " eval \"`guestfish --listen --csh`\"\n"
21520 "\n"
21521 msgstr ""
21522
21523 #. type: =head2
21524 #: ../fish/guestfish.pod:968
21525 msgid "REMOTE CONTROL DETAILS"
21526 msgstr ""
21527
21528 #. type: textblock
21529 #: ../fish/guestfish.pod:970
21530 msgid ""
21531 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21532 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21533 "and C<$PID> is the process ID of the server."
21534 msgstr ""
21535
21536 #. type: textblock
21537 #: ../fish/guestfish.pod:974
21538 msgid "Guestfish client and server versions must match exactly."
21539 msgstr ""
21540
21541 #. type: =head2
21542 #: ../fish/guestfish.pod:976
21543 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
21544 msgstr ""
21545
21546 #. type: textblock
21547 #: ../fish/guestfish.pod:978
21548 msgid ""
21549 "From Bash, you can use the following code which creates a guestfish "
21550 "instance, correctly quotes the command line, handles failure to start, and "
21551 "cleans up guestfish when the script exits:"
21552 msgstr ""
21553
21554 #. type: verbatim
21555 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
21556 #, no-wrap
21557 msgid ""
21558 " #!/bin/bash -\n"
21559 " \n"
21560 msgstr ""
21561
21562 #. type: verbatim
21563 #: ../fish/guestfish.pod:986
21564 #, no-wrap
21565 msgid ""
21566 " guestfish[0]=\"guestfish\"\n"
21567 " guestfish[1]=\"--listen\"\n"
21568 " guestfish[2]=\"--ro\"\n"
21569 " guestfish[3]=\"-a\"\n"
21570 " guestfish[4]=\"disk.img\"\n"
21571 " \n"
21572 msgstr ""
21573
21574 #. type: verbatim
21575 #: ../fish/guestfish.pod:992
21576 #, no-wrap
21577 msgid ""
21578 " GUESTFISH_PID=\n"
21579 " eval $(\"${guestfish[@]}\")\n"
21580 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
21581 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
21582 "     exit 1\n"
21583 " fi\n"
21584 " \n"
21585 msgstr ""
21586
21587 #. type: verbatim
21588 #: ../fish/guestfish.pod:999
21589 #, no-wrap
21590 msgid ""
21591 " cleanup_guestfish ()\n"
21592 " {\n"
21593 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
21594 " }\n"
21595 " trap cleanup_guestfish EXIT ERR\n"
21596 " \n"
21597 msgstr ""
21598
21599 #. type: verbatim
21600 #: ../fish/guestfish.pod:1005
21601 #, no-wrap
21602 msgid ""
21603 " guestfish --remote -- run\n"
21604 " \n"
21605 msgstr ""
21606
21607 #. type: verbatim
21608 #: ../fish/guestfish.pod:1007
21609 #, no-wrap
21610 msgid ""
21611 " # ...\n"
21612 "\n"
21613 msgstr ""
21614
21615 #. type: =head2
21616 #: ../fish/guestfish.pod:1009
21617 msgid "REMOTE CONTROL RUN COMMAND HANGING"
21618 msgstr ""
21619
21620 #. type: textblock
21621 #: ../fish/guestfish.pod:1011
21622 msgid ""
21623 "Using the C<run> (or C<launch>) command remotely in a command substitution "
21624 "context hangs, ie. don't do (note the backquotes):"
21625 msgstr ""
21626
21627 #. type: verbatim
21628 #: ../fish/guestfish.pod:1014
21629 #, no-wrap
21630 msgid ""
21631 " a=`guestfish --remote run`\n"
21632 "\n"
21633 msgstr ""
21634
21635 #. type: textblock
21636 #: ../fish/guestfish.pod:1016
21637 msgid ""
21638 "Since the C<run> command produces no output on stdout, this is not useful "
21639 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
21640 "cgi?id=592910>."
21641 msgstr ""
21642
21643 #. type: =head1
21644 #: ../fish/guestfish.pod:1020
21645 msgid "PREPARED DISK IMAGES"
21646 msgstr ""
21647
21648 #. type: textblock
21649 #: ../fish/guestfish.pod:1022
21650 msgid ""
21651 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21652 "preformatted disk images that guestfish can make for you to save typing.  "
21653 "This is particularly useful for testing purposes.  This option is used "
21654 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21655 "can be mixed with I<-a>)."
21656 msgstr ""
21657
21658 #. type: textblock
21659 #: ../fish/guestfish.pod:1028
21660 msgid ""
21661 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21662 "the second and so on.  Existing files in the current directory are "
21663 "I<overwritten>."
21664 msgstr ""
21665
21666 #. type: textblock
21667 #: ../fish/guestfish.pod:1032
21668 msgid ""
21669 "The type briefly describes how the disk should be sized, partitioned, how "
21670 "filesystem(s) should be created, and how content should be added.  "
21671 "Optionally the type can be followed by extra parameters, separated by C<:> "
21672 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21673 "allocated disk, containing a single partition, with the partition formatted "
21674 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21675 "disk instead."
21676 msgstr ""
21677
21678 #. type: textblock
21679 #: ../fish/guestfish.pod:1040
21680 msgid "To list the available types and any extra parameters they take, run:"
21681 msgstr ""
21682
21683 #. type: textblock
21684 #: ../fish/guestfish.pod:1044
21685 msgid ""
21686 "Note that the prepared filesystem is not mounted.  You would usually have to "
21687 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21688 msgstr ""
21689
21690 #. type: textblock
21691 #: ../fish/guestfish.pod:1048
21692 msgid ""
21693 "If any I<-N> or I<--new> options are given, the guest is automatically "
21694 "launched."
21695 msgstr ""
21696
21697 #. type: textblock
21698 #: ../fish/guestfish.pod:1053
21699 msgid "Create a 100MB disk with an ext4-formatted partition:"
21700 msgstr ""
21701
21702 #. type: verbatim
21703 #: ../fish/guestfish.pod:1055
21704 #, no-wrap
21705 msgid ""
21706 " guestfish -N fs:ext4\n"
21707 "\n"
21708 msgstr ""
21709
21710 #. type: textblock
21711 #: ../fish/guestfish.pod:1057
21712 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21713 msgstr ""
21714
21715 #. type: verbatim
21716 #: ../fish/guestfish.pod:1059
21717 #, no-wrap
21718 msgid ""
21719 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21720 "\n"
21721 msgstr ""
21722
21723 #. type: textblock
21724 #: ../fish/guestfish.pod:1061
21725 msgid "Create a blank 200MB disk:"
21726 msgstr ""
21727
21728 #. type: verbatim
21729 #: ../fish/guestfish.pod:1063
21730 #, no-wrap
21731 msgid ""
21732 " guestfish -N disk:200M\n"
21733 "\n"
21734 msgstr ""
21735
21736 #. type: =head1
21737 #: ../fish/guestfish.pod:1065
21738 msgid "PROGRESS BARS"
21739 msgstr ""
21740
21741 #. type: textblock
21742 #: ../fish/guestfish.pod:1067
21743 msgid ""
21744 "Some (not all) long-running commands send progress notification messages as "
21745 "they are running.  Guestfish turns these messages into progress bars."
21746 msgstr ""
21747
21748 #. type: textblock
21749 #: ../fish/guestfish.pod:1071
21750 msgid ""
21751 "When a command that supports progress bars takes longer than two seconds to "
21752 "run, and if progress bars are enabled, then you will see one appearing below "
21753 "the command:"
21754 msgstr ""
21755
21756 #. type: verbatim
21757 #: ../fish/guestfish.pod:1075
21758 #, no-wrap
21759 msgid ""
21760 " ><fs> copy-size /large-file /another-file 2048M\n"
21761 " / 10% [#####-----------------------------------------] 00:30\n"
21762 "\n"
21763 msgstr ""
21764
21765 #. type: textblock
21766 #: ../fish/guestfish.pod:1078
21767 msgid ""
21768 "The spinner on the left hand side moves round once for every progress "
21769 "notification received from the backend.  This is a (reasonably) golden "
21770 "assurance that the command is \"doing something\" even if the progress bar "
21771 "is not moving, because the command is able to send the progress "
21772 "notifications.  When the bar reaches 100% and the command finishes, the "
21773 "spinner disappears."
21774 msgstr ""
21775
21776 #. type: textblock
21777 #: ../fish/guestfish.pod:1085
21778 msgid ""
21779 "Progress bars are enabled by default when guestfish is used interactively.  "
21780 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21781 "and you can disable them completely using I<--no-progress-bars>."
21782 msgstr ""
21783
21784 #. type: =head1
21785 #: ../fish/guestfish.pod:1090
21786 msgid "GUESTFISH COMMANDS"
21787 msgstr ""
21788
21789 #. type: textblock
21790 #: ../fish/guestfish.pod:1092
21791 msgid ""
21792 "The commands in this section are guestfish convenience commands, in other "
21793 "words, they are not part of the L<guestfs(3)> API."
21794 msgstr ""
21795
21796 #. type: =head2
21797 #: ../fish/guestfish.pod:1095
21798 msgid "help"
21799 msgstr ""
21800
21801 #. type: verbatim
21802 #: ../fish/guestfish.pod:1097
21803 #, no-wrap
21804 msgid ""
21805 " help\n"
21806 " help cmd\n"
21807 "\n"
21808 msgstr ""
21809
21810 #. type: textblock
21811 #: ../fish/guestfish.pod:1100
21812 msgid "Without any parameter, this provides general help."
21813 msgstr ""
21814
21815 #. type: textblock
21816 #: ../fish/guestfish.pod:1102
21817 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21818 msgstr ""
21819
21820 #. type: =head2
21821 #: ../fish/guestfish.pod:1104
21822 msgid "quit | exit"
21823 msgstr ""
21824
21825 #. type: textblock
21826 #: ../fish/guestfish.pod:1106
21827 msgid "This exits guestfish.  You can also use C<^D> key."
21828 msgstr ""
21829
21830 #. type: textblock
21831 #: ../fish/guestfish.pod:1108
21832 msgid "@FISH_COMMANDS@"
21833 msgstr ""
21834
21835 #. type: =head1
21836 #: ../fish/guestfish.pod:1110
21837 msgid "COMMANDS"
21838 msgstr ""
21839
21840 #. type: textblock
21841 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21842 msgid "@ACTIONS@"
21843 msgstr ""
21844
21845 #. type: textblock
21846 #: ../fish/guestfish.pod:1116
21847 msgid ""
21848 "guestfish returns 0 if the commands completed without error, or 1 if there "
21849 "was an error."
21850 msgstr ""
21851
21852 #. type: =item
21853 #: ../fish/guestfish.pod:1123
21854 msgid "EDITOR"
21855 msgstr ""
21856
21857 #. type: textblock
21858 #: ../fish/guestfish.pod:1125
21859 msgid ""
21860 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21861 "C<vi>."
21862 msgstr ""
21863
21864 #. type: =item
21865 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3199
21866 msgid "FEBOOTSTRAP_KERNEL"
21867 msgstr ""
21868
21869 #. type: =item
21870 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3201
21871 msgid "FEBOOTSTRAP_MODULES"
21872 msgstr ""
21873
21874 #. type: textblock
21875 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3203
21876 msgid ""
21877 "These two environment variables allow the kernel that libguestfs uses in the "
21878 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21879 "most recent host kernel is chosen.  For more information about kernel "
21880 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21881 "available in febootstrap E<ge> 3.8."
21882 msgstr ""
21883
21884 #. type: =item
21885 #: ../fish/guestfish.pod:1138
21886 msgid "GUESTFISH_DISPLAY_IMAGE"
21887 msgstr ""
21888
21889 #. type: textblock
21890 #: ../fish/guestfish.pod:1140
21891 msgid ""
21892 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21893 "If not set, it uses L<display(1)>."
21894 msgstr ""
21895
21896 #. type: =item
21897 #: ../fish/guestfish.pod:1143
21898 msgid "GUESTFISH_PID"
21899 msgstr ""
21900
21901 #. type: textblock
21902 #: ../fish/guestfish.pod:1145
21903 msgid ""
21904 "Used with the I<--remote> option to specify the remote guestfish process to "
21905 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21906 msgstr ""
21907
21908 #. type: =item
21909 #: ../fish/guestfish.pod:1149
21910 msgid "HEXEDITOR"
21911 msgstr ""
21912
21913 #. type: textblock
21914 #: ../fish/guestfish.pod:1151
21915 msgid ""
21916 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21917 "not specified, the external L<hexedit(1)> program is used."
21918 msgstr ""
21919
21920 #. type: =item
21921 #: ../fish/guestfish.pod:1155
21922 msgid "HOME"
21923 msgstr ""
21924
21925 #. type: textblock
21926 #: ../fish/guestfish.pod:1157
21927 msgid ""
21928 "If compiled with GNU readline support, various files in the home directory "
21929 "can be used.  See L</FILES>."
21930 msgstr ""
21931
21932 #. type: =item
21933 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3209
21934 msgid "LIBGUESTFS_APPEND"
21935 msgstr ""
21936
21937 #. type: textblock
21938 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3211
21939 msgid "Pass additional options to the guest kernel."
21940 msgstr ""
21941
21942 #. type: =item
21943 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3213
21944 msgid "LIBGUESTFS_DEBUG"
21945 msgstr ""
21946
21947 #. type: textblock
21948 #: ../fish/guestfish.pod:1166
21949 msgid ""
21950 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21951 "effect as using the B<-v> option."
21952 msgstr ""
21953
21954 #. type: =item
21955 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3218
21956 msgid "LIBGUESTFS_MEMSIZE"
21957 msgstr ""
21958
21959 #. type: textblock
21960 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3220
21961 msgid ""
21962 "Set the memory allocated to the qemu process, in megabytes.  For example:"
21963 msgstr ""
21964
21965 #. type: verbatim
21966 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3223
21967 #, no-wrap
21968 msgid ""
21969 " LIBGUESTFS_MEMSIZE=700\n"
21970 "\n"
21971 msgstr ""
21972
21973 #. type: =item
21974 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3225
21975 msgid "LIBGUESTFS_PATH"
21976 msgstr ""
21977
21978 #. type: textblock
21979 #: ../fish/guestfish.pod:1178
21980 msgid ""
21981 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21982 "the discussion of paths in L<guestfs(3)>."
21983 msgstr ""
21984
21985 #. type: =item
21986 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3230
21987 msgid "LIBGUESTFS_QEMU"
21988 msgstr ""
21989
21990 #. type: textblock
21991 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3232
21992 msgid ""
21993 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21994 "which was found at compile time by the configure script is used."
21995 msgstr ""
21996
21997 #. type: =item
21998 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3238
21999 msgid "LIBGUESTFS_TRACE"
22000 msgstr ""
22001
22002 #. type: textblock
22003 #: ../fish/guestfish.pod:1189
22004 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
22005 msgstr ""
22006
22007 #. type: =item
22008 #: ../fish/guestfish.pod:1191
22009 msgid "PAGER"
22010 msgstr ""
22011
22012 #. type: textblock
22013 #: ../fish/guestfish.pod:1193
22014 msgid ""
22015 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
22016 "C<more>."
22017 msgstr ""
22018
22019 #. type: =item
22020 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:260
22021 #: ../src/guestfs.pod:3243
22022 msgid "TMPDIR"
22023 msgstr ""
22024
22025 #. type: textblock
22026 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3245
22027 msgid ""
22028 "Location of temporary directory, defaults to C</tmp> except for the cached "
22029 "supermin appliance which defaults to C</var/tmp>."
22030 msgstr ""
22031
22032 #. type: textblock
22033 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3248
22034 msgid ""
22035 "If libguestfs was compiled to use the supermin appliance then the real "
22036 "appliance is cached in this directory, shared between all handles belonging "
22037 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
22038 "use in case C</var/tmp> is not large enough."
22039 msgstr ""
22040
22041 #. type: =head1
22042 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
22043 #: ../rescue/virt-rescue.pod:310
22044 msgid "FILES"
22045 msgstr ""
22046
22047 #. type: =item
22048 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
22049 #: ../rescue/virt-rescue.pod:314
22050 msgid "$HOME/.libguestfs-tools.rc"
22051 msgstr ""
22052
22053 #. type: =item
22054 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
22055 #: ../rescue/virt-rescue.pod:316
22056 msgid "/etc/libguestfs-tools.conf"
22057 msgstr ""
22058
22059 #. type: textblock
22060 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
22061 #: ../rescue/virt-rescue.pod:318
22062 msgid ""
22063 "This configuration file controls the default read-only or read-write mode "
22064 "(I<--ro> or I<--rw>)."
22065 msgstr ""
22066
22067 #. type: textblock
22068 #: ../fish/guestfish.pod:1220
22069 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
22070 msgstr ""
22071
22072 #. type: =item
22073 #: ../fish/guestfish.pod:1222
22074 msgid "$HOME/.guestfish"
22075 msgstr ""
22076
22077 #. type: textblock
22078 #: ../fish/guestfish.pod:1224
22079 msgid ""
22080 "If compiled with GNU readline support, then the command history is saved in "
22081 "this file."
22082 msgstr ""
22083
22084 #. type: =item
22085 #: ../fish/guestfish.pod:1227
22086 msgid "$HOME/.inputrc"
22087 msgstr ""
22088
22089 #. type: =item
22090 #: ../fish/guestfish.pod:1229
22091 msgid "/etc/inputrc"
22092 msgstr ""
22093
22094 #. type: textblock
22095 #: ../fish/guestfish.pod:1231
22096 msgid ""
22097 "If compiled with GNU readline support, then these files can be used to "
22098 "configure readline.  For further information, please see L<readline(3)/"
22099 "INITIALIZATION FILE>."
22100 msgstr ""
22101
22102 #. type: textblock
22103 #: ../fish/guestfish.pod:1235
22104 msgid "To write rules which only apply to guestfish, use:"
22105 msgstr ""
22106
22107 #. type: verbatim
22108 #: ../fish/guestfish.pod:1237
22109 #, no-wrap
22110 msgid ""
22111 " $if guestfish\n"
22112 " ...\n"
22113 " $endif\n"
22114 "\n"
22115 msgstr ""
22116
22117 #. type: textblock
22118 #: ../fish/guestfish.pod:1241
22119 msgid ""
22120 "Variables that you can set in inputrc that change the behaviour of guestfish "
22121 "in useful ways include:"
22122 msgstr ""
22123
22124 #. type: =item
22125 #: ../fish/guestfish.pod:1246
22126 msgid "completion-ignore-case (default: on)"
22127 msgstr ""
22128
22129 #. type: textblock
22130 #: ../fish/guestfish.pod:1248
22131 msgid ""
22132 "By default, guestfish will ignore case when tab-completing paths on the "
22133 "disk.  Use:"
22134 msgstr ""
22135
22136 #. type: verbatim
22137 #: ../fish/guestfish.pod:1251
22138 #, no-wrap
22139 msgid ""
22140 " set completion-ignore-case off\n"
22141 "\n"
22142 msgstr ""
22143
22144 #. type: textblock
22145 #: ../fish/guestfish.pod:1253
22146 msgid "to make guestfish case sensitive."
22147 msgstr ""
22148
22149 #. type: =item
22150 #: ../fish/guestfish.pod:1257
22151 msgid "test1.img"
22152 msgstr ""
22153
22154 #. type: =item
22155 #: ../fish/guestfish.pod:1259
22156 msgid "test2.img (etc)"
22157 msgstr ""
22158
22159 #. type: textblock
22160 #: ../fish/guestfish.pod:1261
22161 msgid ""
22162 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
22163 "will be created in the file C<test1.img> in the current directory.  The "
22164 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
22165 "the same name will be overwritten."
22166 msgstr ""
22167
22168 #. type: textblock
22169 #: ../fish/guestfish.pod:1270
22170 msgid ""
22171 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
22172 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
22173 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
22174 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
22175 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
22176 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
22177 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
22178 msgstr ""
22179
22180 #. type: textblock
22181 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3341
22182 #: ../test-tool/libguestfs-test-tool.pod:112
22183 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
22184 msgstr ""
22185
22186 #. type: textblock
22187 #: ../fish/virt-copy-in.pod:5
22188 msgid ""
22189 "virt-copy-in - Copy files and directories into a virtual machine disk image."
22190 msgstr ""
22191
22192 #. type: verbatim
22193 #: ../fish/virt-copy-in.pod:9
22194 #, no-wrap
22195 msgid ""
22196 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
22197 "\n"
22198 msgstr ""
22199
22200 #. type: verbatim
22201 #: ../fish/virt-copy-in.pod:11
22202 #, no-wrap
22203 msgid ""
22204 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
22205 "\n"
22206 msgstr ""
22207
22208 #. type: textblock
22209 #: ../fish/virt-copy-in.pod:15
22210 msgid ""
22211 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
22212 "causing disk corruption.  The virtual machine must be shut down before you "
22213 "use this command."
22214 msgstr ""
22215
22216 #. type: textblock
22217 #: ../fish/virt-copy-in.pod:21
22218 msgid ""
22219 "C<virt-copy-in> copies files and directories from the local disk into a "
22220 "virtual machine disk image or named libvirt domain."
22221 msgstr ""
22222
22223 #. type: textblock
22224 #: ../fish/virt-copy-in.pod:24
22225 msgid ""
22226 "You can give one of more filenames and directories on the command line.  "
22227 "Directories are copied in recursively.  The final parameter must be the "
22228 "destination directory in the disk image which must be an absolute path "
22229 "starting with a C</> character."
22230 msgstr ""
22231
22232 #. type: verbatim
22233 #: ../fish/virt-copy-in.pod:33
22234 #, no-wrap
22235 msgid ""
22236 " virt-copy-in -d MyGuest resolv.conf /etc\n"
22237 "\n"
22238 msgstr ""
22239
22240 #. type: textblock
22241 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
22242 msgid "Upload a home directory to a guest:"
22243 msgstr ""
22244
22245 #. type: verbatim
22246 #: ../fish/virt-copy-in.pod:37
22247 #, no-wrap
22248 msgid ""
22249 " virt-copy-in -d MyGuest skel /home\n"
22250 "\n"
22251 msgstr ""
22252
22253 #. type: =head1
22254 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
22255 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
22256 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
22257 msgstr ""
22258
22259 #. type: textblock
22260 #: ../fish/virt-copy-in.pod:41
22261 msgid ""
22262 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22263 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
22264 "are probably better off using guestfish directly."
22265 msgstr ""
22266
22267 #. type: textblock
22268 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
22269 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
22270 msgid ""
22271 "Since the shell script just passes options straight to guestfish, read "
22272 "L<guestfish(1)> to see the full list of options."
22273 msgstr ""
22274
22275 #. type: textblock
22276 #: ../fish/virt-copy-in.pod:52
22277 msgid ""
22278 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
22279 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22280 msgstr ""
22281
22282 #. type: textblock
22283 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
22284 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
22285 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
22286 msgstr ""
22287
22288 #. type: textblock
22289 #: ../fish/virt-copy-out.pod:5
22290 msgid ""
22291 "virt-copy-out - Copy files and directories out of a virtual machine disk "
22292 "image."
22293 msgstr ""
22294
22295 #. type: verbatim
22296 #: ../fish/virt-copy-out.pod:9
22297 #, no-wrap
22298 msgid ""
22299 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
22300 "\n"
22301 msgstr ""
22302
22303 #. type: verbatim
22304 #: ../fish/virt-copy-out.pod:11
22305 #, no-wrap
22306 msgid ""
22307 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
22308 "\n"
22309 msgstr ""
22310
22311 #. type: textblock
22312 #: ../fish/virt-copy-out.pod:15
22313 msgid ""
22314 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
22315 "image or named libvirt domain."
22316 msgstr ""
22317
22318 #. type: textblock
22319 #: ../fish/virt-copy-out.pod:18
22320 msgid ""
22321 "You can give one of more filenames and directories on the command line.  "
22322 "Directories are copied out recursively."
22323 msgstr ""
22324
22325 #. type: textblock
22326 #: ../fish/virt-copy-out.pod:23
22327 msgid "Download the home directories from a virtual machine:"
22328 msgstr ""
22329
22330 #. type: verbatim
22331 #: ../fish/virt-copy-out.pod:25
22332 #, no-wrap
22333 msgid ""
22334 " mkdir homes\n"
22335 " virt-copy-out -d MyGuest /home homes\n"
22336 "\n"
22337 msgstr ""
22338
22339 #. type: textblock
22340 #: ../fish/virt-copy-out.pod:30
22341 msgid ""
22342 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22343 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
22344 "are probably better off using guestfish directly."
22345 msgstr ""
22346
22347 #. type: textblock
22348 #: ../fish/virt-copy-out.pod:41
22349 msgid ""
22350 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
22351 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22352 msgstr ""
22353
22354 #. type: textblock
22355 #: ../fish/virt-tar-in.pod:5
22356 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
22357 msgstr ""
22358
22359 #. type: verbatim
22360 #: ../fish/virt-tar-in.pod:9
22361 #, no-wrap
22362 msgid ""
22363 " virt-tar-in -a disk.img data.tar /destination\n"
22364 "\n"
22365 msgstr ""
22366
22367 #. type: verbatim
22368 #: ../fish/virt-tar-in.pod:11
22369 #, no-wrap
22370 msgid ""
22371 " virt-tar-in -d domain data.tar /destination\n"
22372 "\n"
22373 msgstr ""
22374
22375 #. type: verbatim
22376 #: ../fish/virt-tar-in.pod:13
22377 #, no-wrap
22378 msgid ""
22379 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
22380 "\n"
22381 msgstr ""
22382
22383 #. type: textblock
22384 #: ../fish/virt-tar-in.pod:17
22385 msgid ""
22386 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
22387 "causing disk corruption.  The virtual machine must be shut down before you "
22388 "use this command."
22389 msgstr ""
22390
22391 #. type: textblock
22392 #: ../fish/virt-tar-in.pod:23
22393 msgid ""
22394 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
22395 "image or named libvirt domain."
22396 msgstr ""
22397
22398 #. type: textblock
22399 #: ../fish/virt-tar-in.pod:26
22400 msgid ""
22401 "The first parameter is the tar file.  Use C<-> to read the tar file from "
22402 "standard input.  The second parameter is the absolute target directory to "
22403 "unpack into."
22404 msgstr ""
22405
22406 #. type: verbatim
22407 #: ../fish/virt-tar-in.pod:34
22408 #, no-wrap
22409 msgid ""
22410 " virt-tar-in -d MyGuest homes.tar /home\n"
22411 "\n"
22412 msgstr ""
22413
22414 #. type: textblock
22415 #: ../fish/virt-tar-in.pod:38
22416 msgid ""
22417 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22418 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
22419 "probably better off using guestfish directly."
22420 msgstr ""
22421
22422 #. type: textblock
22423 #: ../fish/virt-tar-in.pod:49
22424 msgid ""
22425 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22426 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
22427 "org/>."
22428 msgstr ""
22429
22430 #. type: textblock
22431 #: ../fish/virt-tar-out.pod:5
22432 msgid ""
22433 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
22434 msgstr ""
22435
22436 #. type: verbatim
22437 #: ../fish/virt-tar-out.pod:9
22438 #, no-wrap
22439 msgid ""
22440 " virt-tar-out -a disk.img /dir files.tar\n"
22441 "\n"
22442 msgstr ""
22443
22444 #. type: verbatim
22445 #: ../fish/virt-tar-out.pod:11
22446 #, no-wrap
22447 msgid ""
22448 " virt-tar-out -d domain /dir files.tar\n"
22449 "\n"
22450 msgstr ""
22451
22452 #. type: verbatim
22453 #: ../fish/virt-tar-out.pod:13
22454 #, no-wrap
22455 msgid ""
22456 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
22457 "\n"
22458 msgstr ""
22459
22460 #. type: textblock
22461 #: ../fish/virt-tar-out.pod:17
22462 msgid ""
22463 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
22464 msgstr ""
22465
22466 #. type: textblock
22467 #: ../fish/virt-tar-out.pod:20
22468 msgid ""
22469 "The first parameter is the absolute path of the virtual machine directory.  "
22470 "The second parameter is the tar file to write.  Use C<-> to write to "
22471 "standard output."
22472 msgstr ""
22473
22474 #. type: textblock
22475 #: ../fish/virt-tar-out.pod:26
22476 msgid "Download the home directories from a guest:"
22477 msgstr ""
22478
22479 #. type: verbatim
22480 #: ../fish/virt-tar-out.pod:28
22481 #, no-wrap
22482 msgid ""
22483 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
22484 "\n"
22485 msgstr ""
22486
22487 #. type: textblock
22488 #: ../fish/virt-tar-out.pod:32
22489 msgid ""
22490 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22491 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
22492 "are probably better off using guestfish directly."
22493 msgstr ""
22494
22495 #. type: textblock
22496 #: ../fish/virt-tar-out.pod:43
22497 msgid ""
22498 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22499 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
22500 msgstr ""
22501
22502 #. type: textblock
22503 #: ../fuse/guestmount.pod:5
22504 msgid ""
22505 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22506 msgstr ""
22507
22508 #. type: verbatim
22509 #: ../fuse/guestmount.pod:9
22510 #, no-wrap
22511 msgid ""
22512 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22513 "\n"
22514 msgstr ""
22515
22516 #. type: verbatim
22517 #: ../fuse/guestmount.pod:11
22518 #, no-wrap
22519 msgid ""
22520 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
22521 "\n"
22522 msgstr ""
22523
22524 #. type: verbatim
22525 #: ../fuse/guestmount.pod:13
22526 #, no-wrap
22527 msgid ""
22528 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
22529 "\n"
22530 msgstr ""
22531
22532 #. type: textblock
22533 #: ../fuse/guestmount.pod:17
22534 msgid ""
22535 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22536 "machines.  If you do this, you risk disk corruption in the VM."
22537 msgstr ""
22538
22539 #. type: textblock
22540 #: ../fuse/guestmount.pod:22
22541 msgid ""
22542 "The guestmount program can be used to mount virtual machine filesystems and "
22543 "other disk images on the host.  It uses libguestfs for access to the guest "
22544 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22545 "a mountable device."
22546 msgstr ""
22547
22548 #. type: textblock
22549 #: ../fuse/guestmount.pod:27
22550 msgid ""
22551 "Along with other options, you have to give at least one device (I<-a> "
22552 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
22553 "option) or use the I<-i> inspection option or the I<--live> option.  How "
22554 "this works is better explained in the L<guestfish(1)> manual page, or by "
22555 "looking at the examples below."
22556 msgstr ""
22557
22558 #. type: textblock
22559 #: ../fuse/guestmount.pod:33
22560 msgid ""
22561 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22562 "by you, and the filesystem will not be visible to any other users unless you "
22563 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22564 "the filesystem, use the C<fusermount -u> command."
22565 msgstr ""
22566
22567 #. type: textblock
22568 #: ../fuse/guestmount.pod:41
22569 msgid ""
22570 "For a typical Windows guest which has its main filesystem on the first "
22571 "partition:"
22572 msgstr ""
22573
22574 #. type: verbatim
22575 #: ../fuse/guestmount.pod:44
22576 #, no-wrap
22577 msgid ""
22578 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22579 "\n"
22580 msgstr ""
22581
22582 #. type: textblock
22583 #: ../fuse/guestmount.pod:46
22584 msgid ""
22585 "For a typical Linux guest which has a /boot filesystem on the first "
22586 "partition, and the root filesystem on a logical volume:"
22587 msgstr ""
22588
22589 #. type: verbatim
22590 #: ../fuse/guestmount.pod:49
22591 #, no-wrap
22592 msgid ""
22593 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22594 "\n"
22595 msgstr ""
22596
22597 #. type: textblock
22598 #: ../fuse/guestmount.pod:51
22599 msgid "To get libguestfs to detect guest mountpoints for you:"
22600 msgstr ""
22601
22602 #. type: verbatim
22603 #: ../fuse/guestmount.pod:53
22604 #, no-wrap
22605 msgid ""
22606 " guestmount -a guest.img -i --ro /mnt\n"
22607 "\n"
22608 msgstr ""
22609
22610 #. type: textblock
22611 #: ../fuse/guestmount.pod:55
22612 msgid "For a libvirt guest called \"Guest\" you could do:"
22613 msgstr ""
22614
22615 #. type: verbatim
22616 #: ../fuse/guestmount.pod:57
22617 #, no-wrap
22618 msgid ""
22619 " guestmount -d Guest -i --ro /mnt\n"
22620 "\n"
22621 msgstr ""
22622
22623 #. type: textblock
22624 #: ../fuse/guestmount.pod:59
22625 msgid ""
22626 "If you don't know what filesystems are contained in a guest or disk image, "
22627 "use L<virt-filesystems(1)> first:"
22628 msgstr ""
22629
22630 #. type: verbatim
22631 #: ../fuse/guestmount.pod:62
22632 #, no-wrap
22633 msgid ""
22634 " virt-filesystems MyGuest\n"
22635 "\n"
22636 msgstr ""
22637
22638 #. type: textblock
22639 #: ../fuse/guestmount.pod:64
22640 msgid ""
22641 "If you want to trace the libguestfs calls but without excessive debugging "
22642 "information, we recommend:"
22643 msgstr ""
22644
22645 #. type: verbatim
22646 #: ../fuse/guestmount.pod:67
22647 #, no-wrap
22648 msgid ""
22649 " guestmount [...] --trace /mnt\n"
22650 "\n"
22651 msgstr ""
22652
22653 #. type: textblock
22654 #: ../fuse/guestmount.pod:69
22655 msgid "If you want to debug the program, we recommend:"
22656 msgstr ""
22657
22658 #. type: verbatim
22659 #: ../fuse/guestmount.pod:71
22660 #, no-wrap
22661 msgid ""
22662 " guestmount [...] --trace --verbose /mnt\n"
22663 "\n"
22664 msgstr ""
22665
22666 #. type: =head1
22667 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
22668 #: ../resize/virt-resize.pod:627
22669 msgid "NOTES"
22670 msgstr ""
22671
22672 #. type: =head2
22673 #: ../fuse/guestmount.pod:75
22674 msgid "Other users cannot see the filesystem by default"
22675 msgstr ""
22676
22677 #. type: textblock
22678 #: ../fuse/guestmount.pod:77
22679 msgid ""
22680 "If you mount a filesystem as one user (eg. root), then other users will not "
22681 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
22682 "option when mounting:"
22683 msgstr ""
22684
22685 #. type: verbatim
22686 #: ../fuse/guestmount.pod:81
22687 #, no-wrap
22688 msgid ""
22689 " sudo guestmount [...] -o allow_other /mnt\n"
22690 "\n"
22691 msgstr ""
22692
22693 #. type: =head2
22694 #: ../fuse/guestmount.pod:83
22695 msgid "Enabling FUSE"
22696 msgstr ""
22697
22698 #. type: textblock
22699 #: ../fuse/guestmount.pod:85
22700 msgid ""
22701 "On some distros, you may need to add yourself to a special group (eg. "
22702 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
22703 "Debian and derivatives."
22704 msgstr ""
22705
22706 #. type: textblock
22707 #: ../fuse/guestmount.pod:89
22708 msgid ""
22709 "On other distros, no special group is required.  It is not necessary on "
22710 "Fedora or Red Hat Enterprise Linux."
22711 msgstr ""
22712
22713 #. type: textblock
22714 #: ../fuse/guestmount.pod:100
22715 msgid "Add a block device or virtual machine image."
22716 msgstr ""
22717
22718 #. type: =item
22719 #: ../fuse/guestmount.pod:123
22720 msgid "B<--dir-cache-timeout N>"
22721 msgstr ""
22722
22723 #. type: textblock
22724 #: ../fuse/guestmount.pod:125
22725 msgid ""
22726 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22727 "seconds.  The readdir cache [actually, there are several semi-independent "
22728 "caches] is populated after a readdir(2) call with the stat and extended "
22729 "attributes of the files in the directory, in anticipation that they will be "
22730 "requested soon after."
22731 msgstr ""
22732
22733 #. type: textblock
22734 #: ../fuse/guestmount.pod:131
22735 msgid ""
22736 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22737 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22738 "requests, only cache existing ones."
22739 msgstr ""
22740
22741 #. type: textblock
22742 #: ../fuse/guestmount.pod:151
22743 msgid ""
22744 "If you have untrusted raw-format guest disk images, you should use this "
22745 "option to specify the disk format.  This avoids a possible security problem "
22746 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
22747 "guestfs_add_drive_opts>."
22748 msgstr ""
22749
22750 #. type: =item
22751 #: ../fuse/guestmount.pod:156
22752 msgid "B<--fuse-help>"
22753 msgstr ""
22754
22755 #. type: textblock
22756 #: ../fuse/guestmount.pod:158
22757 msgid "Display help on special FUSE options (see I<-o> below)."
22758 msgstr ""
22759
22760 #. type: textblock
22761 #: ../fuse/guestmount.pod:162
22762 msgid "Display brief help and exit."
22763 msgstr ""
22764
22765 #. type: textblock
22766 #: ../fuse/guestmount.pod:186
22767 msgid ""
22768 "Mount the named partition or logical volume on the given mountpoint B<in the "
22769 "guest> (this has nothing to do with mountpoints in the host)."
22770 msgstr ""
22771
22772 #. type: textblock
22773 #: ../fuse/guestmount.pod:189
22774 msgid ""
22775 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22776 "something on C</>."
22777 msgstr ""
22778
22779 #. type: textblock
22780 #: ../fuse/guestmount.pod:206
22781 msgid ""
22782 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22783 "unmounted.  If you specify this option, then we don't attempt to sync the "
22784 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22785 msgstr ""
22786
22787 #. type: =item
22788 #: ../fuse/guestmount.pod:211
22789 msgid "B<-o option>"
22790 msgstr ""
22791
22792 #. type: =item
22793 #: ../fuse/guestmount.pod:213
22794 msgid "B<--option option>"
22795 msgstr ""
22796
22797 #. type: textblock
22798 #: ../fuse/guestmount.pod:215
22799 msgid "Pass extra options to FUSE."
22800 msgstr ""
22801
22802 #. type: textblock
22803 #: ../fuse/guestmount.pod:217
22804 msgid ""
22805 "To get a list of all the extra options supported by FUSE, use the command "
22806 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22807 "of them are a good idea."
22808 msgstr ""
22809
22810 #. type: verbatim
22811 #: ../fuse/guestmount.pod:221
22812 #, no-wrap
22813 msgid ""
22814 " guestmount --fuse-help\n"
22815 "\n"
22816 msgstr ""
22817
22818 #. type: textblock
22819 #: ../fuse/guestmount.pod:223
22820 msgid "Some potentially useful FUSE options:"
22821 msgstr ""
22822
22823 #. type: =item
22824 #: ../fuse/guestmount.pod:227
22825 msgid "B<-o allow_other>"
22826 msgstr ""
22827
22828 #. type: textblock
22829 #: ../fuse/guestmount.pod:229
22830 msgid "Allow other users to see the filesystem."
22831 msgstr ""
22832
22833 #. type: =item
22834 #: ../fuse/guestmount.pod:231
22835 msgid "B<-o attr_timeout=N>"
22836 msgstr ""
22837
22838 #. type: textblock
22839 #: ../fuse/guestmount.pod:233
22840 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22841 msgstr ""
22842
22843 #. type: =item
22844 #: ../fuse/guestmount.pod:235
22845 msgid "B<-o kernel_cache>"
22846 msgstr ""
22847
22848 #. type: textblock
22849 #: ../fuse/guestmount.pod:237
22850 msgid ""
22851 "Allow the kernel to cache files (reduces the number of reads that have to go "
22852 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22853 "afford the extra memory usage."
22854 msgstr ""
22855
22856 #. type: =item
22857 #: ../fuse/guestmount.pod:241
22858 msgid "B<-o uid=N> B<-o gid=N>"
22859 msgstr ""
22860
22861 #. type: textblock
22862 #: ../fuse/guestmount.pod:243
22863 msgid ""
22864 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22865 "the chosen values."
22866 msgstr ""
22867
22868 #. type: textblock
22869 #: ../fuse/guestmount.pod:252
22870 msgid ""
22871 "Add devices and mount everything read-only.  Also disallow writes and make "
22872 "the disk appear read-only to FUSE."
22873 msgstr ""
22874
22875 #. type: textblock
22876 #: ../fuse/guestmount.pod:255
22877 msgid ""
22878 "This is highly recommended if you are not going to edit the guest disk.  If "
22879 "the guest is running and this option is I<not> supplied, then there is a "
22880 "strong risk of disk corruption in the guest.  We try to prevent this from "
22881 "happening, but it is not always possible."
22882 msgstr ""
22883
22884 #. type: textblock
22885 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
22886 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22887 msgstr ""
22888
22889 #. type: textblock
22890 #: ../fuse/guestmount.pod:264
22891 msgid "Enable SELinux support for the guest."
22892 msgstr ""
22893
22894 #. type: textblock
22895 #: ../fuse/guestmount.pod:270
22896 msgid "Enable verbose messages from underlying libguestfs."
22897 msgstr ""
22898
22899 #. type: textblock
22900 #: ../fuse/guestmount.pod:276
22901 msgid "Display the program version and exit."
22902 msgstr ""
22903
22904 #. type: textblock
22905 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22906 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
22907 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22908 msgstr ""
22909
22910 #. type: =item
22911 #: ../fuse/guestmount.pod:289
22912 msgid "B<--trace>"
22913 msgstr ""
22914
22915 #. type: textblock
22916 #: ../fuse/guestmount.pod:291
22917 msgid "Trace libguestfs calls and entry into each FUSE function."
22918 msgstr ""
22919
22920 #. type: textblock
22921 #: ../fuse/guestmount.pod:293
22922 msgid "This also stops the daemon from forking into the background."
22923 msgstr ""
22924
22925 #. type: textblock
22926 #: ../fuse/guestmount.pod:319
22927 msgid ""
22928 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22929 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22930 "net/>."
22931 msgstr ""
22932
22933 #. type: textblock
22934 #: ../fuse/guestmount.pod:334
22935 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22936 msgstr ""
22937
22938 #. type: textblock
22939 #: ../inspector/virt-inspector.pod:5
22940 msgid ""
22941 "virt-inspector - Display operating system version and other information "
22942 "about a virtual machine"
22943 msgstr ""
22944
22945 #. type: verbatim
22946 #: ../inspector/virt-inspector.pod:9
22947 #, no-wrap
22948 msgid ""
22949 " virt-inspector [--options] -d domname\n"
22950 "\n"
22951 msgstr ""
22952
22953 #. type: verbatim
22954 #: ../inspector/virt-inspector.pod:11
22955 #, no-wrap
22956 msgid ""
22957 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22958 "\n"
22959 msgstr ""
22960
22961 #. type: verbatim
22962 #: ../inspector/virt-inspector.pod:15
22963 #, no-wrap
22964 msgid ""
22965 " virt-inspector domname\n"
22966 "\n"
22967 msgstr ""
22968
22969 #. type: verbatim
22970 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22971 #, no-wrap
22972 msgid ""
22973 " virt-inspector disk.img [disk.img ...]\n"
22974 "\n"
22975 msgstr ""
22976
22977 #. type: textblock
22978 #: ../inspector/virt-inspector.pod:21
22979 msgid ""
22980 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22981 "determine the version of the operating system and other information about "
22982 "the virtual machine."
22983 msgstr ""
22984
22985 #. type: textblock
22986 #: ../inspector/virt-inspector.pod:25
22987 msgid "Virt-inspector produces XML output for feeding into other programs."
22988 msgstr ""
22989
22990 #. type: textblock
22991 #: ../inspector/virt-inspector.pod:27
22992 msgid ""
22993 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22994 "the libvirt domain (see: C<virsh list --all>)."
22995 msgstr ""
22996
22997 #. type: textblock
22998 #: ../inspector/virt-inspector.pod:30
22999 msgid ""
23000 "You can also run virt-inspector directly on disk images from a single "
23001 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
23002 "has several block devices, in which case you should list several I<-a> "
23003 "options one after another, with the first corresponding to the guest's C</"
23004 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
23005 msgstr ""
23006
23007 #. type: textblock
23008 #: ../inspector/virt-inspector.pod:37
23009 msgid ""
23010 "You can also run virt-inspector on install disks, live CDs, bootable USB "
23011 "keys and similar."
23012 msgstr ""
23013
23014 #. type: textblock
23015 #: ../inspector/virt-inspector.pod:40
23016 msgid ""
23017 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
23018 "inspect several virtual machines, you have to run virt-inspector several "
23019 "times (for example, from a shell script for-loop)."
23020 msgstr ""
23021
23022 #. type: textblock
23023 #: ../inspector/virt-inspector.pod:45
23024 msgid ""
23025 "Because virt-inspector needs direct access to guest images, it won't "
23026 "normally work over remote libvirt connections."
23027 msgstr ""
23028
23029 #. type: textblock
23030 #: ../inspector/virt-inspector.pod:48
23031 msgid ""
23032 "All of the information available from virt-inspector is also available "
23033 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
23034 "The same information can also be fetched using guestfish or via libguestfs "
23035 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
23036 "WITH OTHER PROGRAMMING LANGUAGES>)."
23037 msgstr ""
23038
23039 #. type: textblock
23040 #: ../inspector/virt-inspector.pod:81
23041 msgid ""
23042 "Libvirt is only used if you specify a C<domname> on the command line.  If "
23043 "you specify guest block devices directly (I<-a>), then libvirt is not used "
23044 "at all."
23045 msgstr ""
23046
23047 #. type: textblock
23048 #: ../inspector/virt-inspector.pod:94
23049 msgid ""
23050 "When prompting for keys and passphrases, virt-inspector normally turns "
23051 "echoing off so you cannot see what you are typing.  If you are not worried "
23052 "about Tempest attacks and there is no one else in the room you can specify "
23053 "this flag to see what you are typing."
23054 msgstr ""
23055
23056 #. type: textblock
23057 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
23058 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
23059 #: ../tools/virt-win-reg.pl:144
23060 msgid ""
23061 "Specify the format of disk images given on the command line.  If this is "
23062 "omitted then the format is autodetected from the content of the disk image."
23063 msgstr ""
23064
23065 #. type: textblock
23066 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
23067 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
23068 #: ../tools/virt-win-reg.pl:148
23069 msgid ""
23070 "If disk images are requested from libvirt, then this program asks libvirt "
23071 "for this information.  In this case, the value of the format parameter is "
23072 "ignored."
23073 msgstr ""
23074
23075 #. type: textblock
23076 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:397
23077 #: ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:144
23078 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
23079 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
23080 msgid ""
23081 "If working with untrusted raw-format guest disk images, you should ensure "
23082 "the format is always specified."
23083 msgstr ""
23084
23085 #. type: =item
23086 #: ../inspector/virt-inspector.pod:135
23087 msgid "B<--xpath> query"
23088 msgstr ""
23089
23090 #. type: textblock
23091 #: ../inspector/virt-inspector.pod:137
23092 msgid ""
23093 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
23094 "In this mode virt-inspector simply runs an XPath query; all other inspection "
23095 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
23096 msgstr ""
23097
23098 #. type: textblock
23099 #: ../inspector/virt-inspector.pod:146
23100 msgid "Previous versions of virt-inspector allowed you to write either:"
23101 msgstr ""
23102
23103 #. type: verbatim
23104 #: ../inspector/virt-inspector.pod:152
23105 #, no-wrap
23106 msgid ""
23107 " virt-inspector guestname\n"
23108 "\n"
23109 msgstr ""
23110
23111 #. type: =head1
23112 #: ../inspector/virt-inspector.pod:160
23113 msgid "XML FORMAT"
23114 msgstr ""
23115
23116 #. type: textblock
23117 #: ../inspector/virt-inspector.pod:162
23118 msgid ""
23119 "The virt-inspector XML is described precisely in a RELAX NG schema file "
23120 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
23121 "just an overview."
23122 msgstr ""
23123
23124 #. type: textblock
23125 #: ../inspector/virt-inspector.pod:166
23126 msgid ""
23127 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
23128 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
23129 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
23130 "which is vanishingly rare in real world VMs."
23131 msgstr ""
23132
23133 #. type: =head2
23134 #: ../inspector/virt-inspector.pod:171
23135 msgid "E<lt>operatingsystemE<gt>"
23136 msgstr ""
23137
23138 #. type: textblock
23139 #: ../inspector/virt-inspector.pod:173
23140 msgid ""
23141 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
23142 "describe the operating system, its architecture, the descriptive \"product "
23143 "name\" string, the type of OS and so on, as in this example:"
23144 msgstr ""
23145
23146 #. type: verbatim
23147 #: ../inspector/virt-inspector.pod:177
23148 #, no-wrap
23149 msgid ""
23150 " <operatingsystems>\n"
23151 "   <operatingsystem>\n"
23152 "     <root>/dev/sda2</root>\n"
23153 "     <name>windows</name>\n"
23154 "     <arch>i386</arch>\n"
23155 "     <distro>windows</distro>\n"
23156 "     <product_name>Windows 7 Enterprise</product_name>\n"
23157 "     <product_variant>Client</product_variant>\n"
23158 "     <major_version>6</major_version>\n"
23159 "     <minor_version>1</minor_version>\n"
23160 "     <windows_systemroot>/Windows</windows_systemroot>\n"
23161 "     <format>installed</format>\n"
23162 "\n"
23163 msgstr ""
23164
23165 #. type: textblock
23166 #: ../inspector/virt-inspector.pod:190
23167 msgid ""
23168 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
23169 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
23170 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
23171 "architecture.  The other fields are fairly self-explanatory, but because "
23172 "these fields are taken directly from the libguestfs inspection API you can "
23173 "find precise information from L<guestfs(3)/INSPECTION>."
23174 msgstr ""
23175
23176 #. type: textblock
23177 #: ../inspector/virt-inspector.pod:198
23178 msgid ""
23179 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
23180 "of view of libguestfs (block devices may have completely different names "
23181 "inside the VM itself)."
23182 msgstr ""
23183
23184 #. type: =head2
23185 #: ../inspector/virt-inspector.pod:202
23186 msgid "E<lt>mountpointsE<gt>"
23187 msgstr ""
23188
23189 #. type: textblock
23190 #: ../inspector/virt-inspector.pod:204
23191 msgid ""
23192 "Un*x-like guests typically have multiple filesystems which are mounted at "
23193 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
23194 "element which looks like this:"
23195 msgstr ""
23196
23197 #. type: verbatim
23198 #: ../inspector/virt-inspector.pod:208
23199 #, no-wrap
23200 msgid ""
23201 " <operatingsystems>\n"
23202 "   <operatingsystem>\n"
23203 "     ...\n"
23204 "     <mountpoints>\n"
23205 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
23206 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
23207 "     </mountpoints>\n"
23208 "\n"
23209 msgstr ""
23210
23211 #. type: textblock
23212 #: ../inspector/virt-inspector.pod:216
23213 msgid ""
23214 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
23215 "and may have completely different names inside the guest.  Only mountable "
23216 "filesystems appear in this list, not things like swap devices."
23217 msgstr ""
23218
23219 #. type: =head2
23220 #: ../inspector/virt-inspector.pod:221
23221 msgid "E<lt>filesystemsE<gt>"
23222 msgstr ""
23223
23224 #. type: textblock
23225 #: ../inspector/virt-inspector.pod:223
23226 msgid ""
23227 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
23228 "filesystems belonging to the guest, including swap and empty partitions.  "
23229 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
23230 "this OS or shared with this OS and other OSes)."
23231 msgstr ""
23232
23233 #. type: textblock
23234 #: ../inspector/virt-inspector.pod:229
23235 msgid "You might see something like this:"
23236 msgstr ""
23237
23238 #. type: verbatim
23239 #: ../inspector/virt-inspector.pod:231
23240 #, no-wrap
23241 msgid ""
23242 " <operatingsystems>\n"
23243 "   <operatingsystem>\n"
23244 "     ...\n"
23245 "     <filesystems>\n"
23246 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23247 "         <type>ext4</type>\n"
23248 "         <label>Fedora-13-x86_64</label>\n"
23249 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
23250 "       </filesystem>\n"
23251 "\n"
23252 msgstr ""
23253
23254 #. type: textblock
23255 #: ../inspector/virt-inspector.pod:241
23256 msgid ""
23257 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
23258 "the label, and the UUID."
23259 msgstr ""
23260
23261 #. type: =head2
23262 #: ../inspector/virt-inspector.pod:244
23263 msgid "E<lt>applicationsE<gt>"
23264 msgstr ""
23265
23266 #. type: textblock
23267 #: ../inspector/virt-inspector.pod:246
23268 msgid ""
23269 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
23270 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
23271 "machine."
23272 msgstr ""
23273
23274 #. type: textblock
23275 #: ../inspector/virt-inspector.pod:250
23276 msgid ""
23277 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
23278 "Typical values would be C<rpm> and C<deb>."
23279 msgstr ""
23280
23281 #. type: textblock
23282 #: ../inspector/virt-inspector.pod:253
23283 msgid ""
23284 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
23285 "Typical values include C<yum>, C<up2date> and C<apt>"
23286 msgstr ""
23287
23288 #. type: textblock
23289 #: ../inspector/virt-inspector.pod:256
23290 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
23291 msgstr ""
23292
23293 #. type: verbatim
23294 #: ../inspector/virt-inspector.pod:259
23295 #, no-wrap
23296 msgid ""
23297 " <operatingsystems>\n"
23298 "   <operatingsystem>\n"
23299 "     ...\n"
23300 "     <applications>\n"
23301 "       <application>\n"
23302 "         <name>coreutils</name>\n"
23303 "         <version>8.5</version>\n"
23304 "         <release>1</release>\n"
23305 "       </application>\n"
23306 "\n"
23307 msgstr ""
23308
23309 #. type: textblock
23310 #: ../inspector/virt-inspector.pod:269
23311 msgid ""
23312 "The version and release fields may not be available for some types guests.  "
23313 "Other fields are possible, see L<guestfs(3)/"
23314 "guestfs_inspect_list_applications>."
23315 msgstr ""
23316
23317 #. type: =head2
23318 #: ../inspector/virt-inspector.pod:273
23319 msgid "E<lt>drive_mappingsE<gt>"
23320 msgstr ""
23321
23322 #. type: textblock
23323 #: ../inspector/virt-inspector.pod:275
23324 msgid ""
23325 "For operating systems like Windows which use drive letters, virt-inspector "
23326 "is able to find out how drive letters map to filesystems."
23327 msgstr ""
23328
23329 #. type: verbatim
23330 #: ../inspector/virt-inspector.pod:279
23331 #, no-wrap
23332 msgid ""
23333 " <operatingsystems>\n"
23334 "   <operatingsystem>\n"
23335 "     ...\n"
23336 "     <drive_mappings>\n"
23337 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
23338 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
23339 "     </drive_mappings>\n"
23340 "\n"
23341 msgstr ""
23342
23343 #. type: textblock
23344 #: ../inspector/virt-inspector.pod:287
23345 msgid ""
23346 "In the example above, drive C maps to the filesystem on the second partition "
23347 "on the first disk, and drive E maps to the filesystem on the first partition "
23348 "on the second disk."
23349 msgstr ""
23350
23351 #. type: textblock
23352 #: ../inspector/virt-inspector.pod:291
23353 msgid ""
23354 "Note that this only covers permanent local filesystem mappings, not things "
23355 "like network shares.  Furthermore NTFS volume mount points may not be listed "
23356 "here."
23357 msgstr ""
23358
23359 #. type: =head2
23360 #: ../inspector/virt-inspector.pod:295
23361 msgid "E<lt>iconE<gt>"
23362 msgstr ""
23363
23364 #. type: textblock
23365 #: ../inspector/virt-inspector.pod:297
23366 msgid ""
23367 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
23368 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
23369 "very large and high quality."
23370 msgstr ""
23371
23372 #. type: verbatim
23373 #: ../inspector/virt-inspector.pod:301
23374 #, no-wrap
23375 msgid ""
23376 " <operatingsystems>\n"
23377 "   <operatingsystem>\n"
23378 "     ...\n"
23379 "     <icon>\n"
23380 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
23381 "       [... many lines of base64 data ...]\n"
23382 "     </icon>\n"
23383 "\n"
23384 msgstr ""
23385
23386 #. type: textblock
23387 #: ../inspector/virt-inspector.pod:309
23388 msgid ""
23389 "To display the icon, you have to extract it and convert the base64 data back "
23390 "to a binary file.  Use an XPath query or simply an editor to extract the "
23391 "data, then use the coreutils L<base64(1)> program to do the conversion back "
23392 "to a PNG file:"
23393 msgstr ""
23394
23395 #. type: verbatim
23396 #: ../inspector/virt-inspector.pod:314
23397 #, no-wrap
23398 msgid ""
23399 " base64 -i -d < icon.data > icon.png\n"
23400 "\n"
23401 msgstr ""
23402
23403 #. type: =head2
23404 #: ../inspector/virt-inspector.pod:316
23405 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
23406 msgstr ""
23407
23408 #. type: textblock
23409 #: ../inspector/virt-inspector.pod:318
23410 msgid ""
23411 "Virt-inspector can detect some operating system installers on install disks, "
23412 "live CDs, bootable USB keys and more."
23413 msgstr ""
23414
23415 #. type: textblock
23416 #: ../inspector/virt-inspector.pod:321
23417 msgid ""
23418 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
23419 "fields may be present to indicate a live CD, network installer, or one part "
23420 "of a multipart CD.  For example:"
23421 msgstr ""
23422
23423 #. type: verbatim
23424 #: ../inspector/virt-inspector.pod:325
23425 #, no-wrap
23426 msgid ""
23427 " <operatingsystems>\n"
23428 "   <operatingsystem>\n"
23429 "     <root>/dev/sda</root>\n"
23430 "     <name>linux</name>\n"
23431 "     <arch>i386</arch>\n"
23432 "     <distro>ubuntu</distro>\n"
23433 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
23434 "     <major_version>10</major_version>\n"
23435 "     <minor_version>10</minor_version>\n"
23436 "     <format>installer</format>\n"
23437 "     <live/>\n"
23438 "\n"
23439 msgstr ""
23440
23441 #. type: =head1
23442 #: ../inspector/virt-inspector.pod:337
23443 msgid "XPATH QUERIES"
23444 msgstr ""
23445
23446 #. type: textblock
23447 #: ../inspector/virt-inspector.pod:339
23448 msgid ""
23449 "Virt-inspector includes built in support for running XPath queries.  The "
23450 "reason for including XPath support directly in virt-inspector is simply that "
23451 "there are no good and widely available command line programs that can do "
23452 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
23453 "available on Red Hat Enterprise Linux."
23454 msgstr ""
23455
23456 #. type: textblock
23457 #: ../inspector/virt-inspector.pod:346
23458 msgid ""
23459 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
23460 "mode, virt-inspector simply reads XML from stdin and outputs the query "
23461 "result on stdout.  All other inspection features are disabled in this mode."
23462 msgstr ""
23463
23464 #. type: verbatim
23465 #: ../inspector/virt-inspector.pod:353
23466 #, no-wrap
23467 msgid ""
23468 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
23469 " <filesystems>\n"
23470 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23471 "        <type>ext4</type>\n"
23472 " [...]\n"
23473 "\n"
23474 msgstr ""
23475
23476 #. type: verbatim
23477 #: ../inspector/virt-inspector.pod:359
23478 #, no-wrap
23479 msgid ""
23480 " $ virt-inspector -d Guest | \\\n"
23481 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
23482 " ext4\n"
23483 "\n"
23484 msgstr ""
23485
23486 #. type: verbatim
23487 #: ../inspector/virt-inspector.pod:363
23488 #, no-wrap
23489 msgid ""
23490 " $ virt-inspector -d Guest | \\\n"
23491 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
23492 " [displays the guest icon, if there is one]\n"
23493 "\n"
23494 msgstr ""
23495
23496 #. type: =head1
23497 #: ../inspector/virt-inspector.pod:374
23498 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
23499 msgstr ""
23500
23501 #. type: textblock
23502 #: ../inspector/virt-inspector.pod:376
23503 msgid ""
23504 "Early versions of libguestfs shipped with a different virt-inspector program "
23505 "written in Perl (the current version is written in C).  The XML output of "
23506 "the Perl virt-inspector was different and it could also output in other "
23507 "formats like text."
23508 msgstr ""
23509
23510 #. type: textblock
23511 #: ../inspector/virt-inspector.pod:381
23512 msgid ""
23513 "The old virt-inspector is no longer supported or shipped with libguestfs."
23514 msgstr ""
23515
23516 #. type: textblock
23517 #: ../inspector/virt-inspector.pod:384
23518 msgid ""
23519 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
23520 "versions of virt-inspector with different names:"
23521 msgstr ""
23522
23523 #. type: verbatim
23524 #: ../inspector/virt-inspector.pod:387
23525 #, no-wrap
23526 msgid ""
23527 " virt-inspector     Old Perl version.\n"
23528 " virt-inspector2    New C version.\n"
23529 "\n"
23530 msgstr ""
23531
23532 #. type: textblock
23533 #: ../inspector/virt-inspector.pod:397
23534 msgid ""
23535 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
23536 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
23537 msgstr ""
23538
23539 #. type: textblock
23540 #: ../inspector/virt-inspector.pod:414
23541 msgid "Matthew Booth L<mbooth@redhat.com>"
23542 msgstr ""
23543
23544 #. type: textblock
23545 #: ../java/examples/guestfs-java.pod:5
23546 msgid "guestfs-java - How to use libguestfs from Java"
23547 msgstr ""
23548
23549 #. type: verbatim
23550 #: ../java/examples/guestfs-java.pod:9
23551 #, no-wrap
23552 msgid ""
23553 " import com.redhat.et.libguestfs.*;\n"
23554 " \n"
23555 msgstr ""
23556
23557 #. type: verbatim
23558 #: ../java/examples/guestfs-java.pod:11
23559 #, no-wrap
23560 msgid ""
23561 " GuestFS g = new GuestFS ();\n"
23562 " g.add_drive_opts (\"disk.img\", null);\n"
23563 " g.launch ();\n"
23564 "\n"
23565 msgstr ""
23566
23567 #. type: textblock
23568 #: ../java/examples/guestfs-java.pod:17
23569 msgid ""
23570 "This manual page documents how to call libguestfs from the Java programming "
23571 "language.  This page just documents the differences from the C API and gives "
23572 "some examples.  If you are not familiar with using libguestfs, you also need "
23573 "to read L<guestfs(3)>."
23574 msgstr ""
23575
23576 #. type: =head2
23577 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
23578 msgid "CLOSING THE HANDLE"
23579 msgstr ""
23580
23581 #. type: textblock
23582 #: ../java/examples/guestfs-java.pod:24
23583 msgid ""
23584 "The handle is closed when it is reaped by the garbage collector.  Because "
23585 "libguestfs handles include a lot of state, it is also possible to close (and "
23586 "hence free) them explicitly by calling the C<close> method."
23587 msgstr ""
23588
23589 #. type: =head2
23590 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
23591 #: ../python/examples/guestfs-python.pod:21
23592 #: ../ruby/examples/guestfs-ruby.pod:22
23593 msgid "EXCEPTIONS"
23594 msgstr ""
23595
23596 #. type: textblock
23597 #: ../java/examples/guestfs-java.pod:31
23598 msgid ""
23599 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
23600 "exception.  This has a single parameter which is the error message (a "
23601 "C<String>)."
23602 msgstr ""
23603
23604 #. type: textblock
23605 #: ../java/examples/guestfs-java.pod:35
23606 msgid "Calling any method on a closed handle raises the same exception."
23607 msgstr ""
23608
23609 #. type: textblock
23610 #: ../java/examples/guestfs-java.pod:47
23611 msgid ""
23612 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
23613 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23614 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23615 msgstr ""
23616
23617 #. type: textblock
23618 #: ../ocaml/examples/guestfs-ocaml.pod:5
23619 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
23620 msgstr ""
23621
23622 #. type: textblock
23623 #: ../ocaml/examples/guestfs-ocaml.pod:9
23624 msgid "Module style:"
23625 msgstr ""
23626
23627 #. type: verbatim
23628 #: ../ocaml/examples/guestfs-ocaml.pod:11
23629 #, no-wrap
23630 msgid ""
23631 " let g = Guestfs.create () in\n"
23632 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23633 " Guestfs.launch g;\n"
23634 "\n"
23635 msgstr ""
23636
23637 #. type: textblock
23638 #: ../ocaml/examples/guestfs-ocaml.pod:15
23639 msgid "Object-oriented style:"
23640 msgstr ""
23641
23642 #. type: verbatim
23643 #: ../ocaml/examples/guestfs-ocaml.pod:17
23644 #, no-wrap
23645 msgid ""
23646 " let g = new Guestfs.guestfs () in\n"
23647 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23648 " g#launch ();\n"
23649 "\n"
23650 msgstr ""
23651
23652 #. type: verbatim
23653 #: ../ocaml/examples/guestfs-ocaml.pod:21
23654 #, no-wrap
23655 msgid ""
23656 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
23657 "or:\n"
23658 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
23659 "\n"
23660 msgstr ""
23661
23662 #. type: textblock
23663 #: ../ocaml/examples/guestfs-ocaml.pod:27
23664 msgid ""
23665 "This manual page documents how to call libguestfs from the OCaml programming "
23666 "language.  This page just documents the differences from the C API and gives "
23667 "some examples.  If you are not familiar with using libguestfs, you also need "
23668 "to read L<guestfs(3)>."
23669 msgstr ""
23670
23671 #. type: =head2
23672 #: ../ocaml/examples/guestfs-ocaml.pod:32
23673 msgid "PROGRAMMING STYLES"
23674 msgstr ""
23675
23676 #. type: textblock
23677 #: ../ocaml/examples/guestfs-ocaml.pod:34
23678 msgid ""
23679 "There are two different programming styles supported by the OCaml bindings.  "
23680 "You can use a module style, with each C function mapped to an OCaml function:"
23681 msgstr ""
23682
23683 #. type: verbatim
23684 #: ../ocaml/examples/guestfs-ocaml.pod:38
23685 #, no-wrap
23686 msgid ""
23687 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
23688 "\n"
23689 msgstr ""
23690
23691 #. type: textblock
23692 #: ../ocaml/examples/guestfs-ocaml.pod:40
23693 msgid "becomes:"
23694 msgstr ""
23695
23696 #. type: verbatim
23697 #: ../ocaml/examples/guestfs-ocaml.pod:42
23698 #, no-wrap
23699 msgid ""
23700 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
23701 "\n"
23702 msgstr ""
23703
23704 #. type: textblock
23705 #: ../ocaml/examples/guestfs-ocaml.pod:44
23706 msgid ""
23707 "Alternately you can use an object-oriented style, calling methods on the "
23708 "class C<Guestfs.guestfs>:"
23709 msgstr ""
23710
23711 #. type: verbatim
23712 #: ../ocaml/examples/guestfs-ocaml.pod:47
23713 #, no-wrap
23714 msgid ""
23715 " method set_verbose : bool -> unit\n"
23716 "\n"
23717 msgstr ""
23718
23719 #. type: textblock
23720 #: ../ocaml/examples/guestfs-ocaml.pod:49
23721 msgid ""
23722 "The object-oriented style is usually briefer, and the minor performance "
23723 "penalty isn't noticable in the general overhead of performing libguestfs "
23724 "functions."
23725 msgstr ""
23726
23727 #. type: textblock
23728 #: ../ocaml/examples/guestfs-ocaml.pod:55
23729 msgid ""
23730 "The handle is closed when it is reaped by the garbage collector.  Because "
23731 "libguestfs handles include a lot of state, it is also possible to close (and "
23732 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23733 "method."
23734 msgstr ""
23735
23736 #. type: textblock
23737 #: ../ocaml/examples/guestfs-ocaml.pod:62
23738 msgid ""
23739 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23740 "exception.  This has a single parameter which is the error message (a "
23741 "string)."
23742 msgstr ""
23743
23744 #. type: textblock
23745 #: ../ocaml/examples/guestfs-ocaml.pod:66
23746 msgid ""
23747 "Calling any function/method on a closed handle raises C<Guestfs."
23748 "Handle_closed>.  The single parameter is the name of the function that you "
23749 "called."
23750 msgstr ""
23751
23752 #. type: textblock
23753 #: ../ocaml/examples/guestfs-ocaml.pod:80
23754 msgid ""
23755 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23756 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23757 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23758 msgstr ""
23759
23760 #. type: textblock
23761 #: ../perl/examples/guestfs-perl.pod:5
23762 msgid "guestfs-perl - How to use libguestfs from Perl"
23763 msgstr ""
23764
23765 #. type: verbatim
23766 #: ../perl/examples/guestfs-perl.pod:9
23767 #, no-wrap
23768 msgid ""
23769 " use Sys::Guestfs;\n"
23770 " \n"
23771 msgstr ""
23772
23773 #. type: verbatim
23774 #: ../perl/examples/guestfs-perl.pod:11
23775 #, no-wrap
23776 msgid ""
23777 " my $h = Sys::Guestfs->new ();\n"
23778 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23779 " $h->launch ();\n"
23780 " $h->mount_options ('', '/dev/sda1', '/');\n"
23781 " $h->touch ('/hello');\n"
23782 " $h->sync ();\n"
23783 "\n"
23784 msgstr ""
23785
23786 #. type: textblock
23787 #: ../perl/examples/guestfs-perl.pod:20
23788 msgid ""
23789 "This manual page documents how to call libguestfs from the Perl programming "
23790 "language.  This page just documents the differences from the C API and gives "
23791 "some examples.  If you are not familiar with using libguestfs, you also need "
23792 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23793 msgstr ""
23794
23795 #. type: =head2
23796 #: ../perl/examples/guestfs-perl.pod:26
23797 msgid "ERRORS"
23798 msgstr ""
23799
23800 #. type: textblock
23801 #: ../perl/examples/guestfs-perl.pod:28
23802 msgid ""
23803 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23804 ">)."
23805 msgstr ""
23806
23807 #. type: textblock
23808 #: ../perl/examples/guestfs-perl.pod:41
23809 msgid ""
23810 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23811 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23812 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23813 msgstr ""
23814
23815 #. type: textblock
23816 #: ../python/examples/guestfs-python.pod:5
23817 msgid "guestfs-python - How to use libguestfs from Python"
23818 msgstr ""
23819
23820 #. type: verbatim
23821 #: ../python/examples/guestfs-python.pod:9
23822 #, no-wrap
23823 msgid ""
23824 " import guestfs\n"
23825 " g = guestfs.GuestFS ()\n"
23826 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23827 " g.launch ()\n"
23828 "\n"
23829 msgstr ""
23830
23831 #. type: textblock
23832 #: ../python/examples/guestfs-python.pod:16
23833 msgid ""
23834 "This manual page documents how to call libguestfs from the Python "
23835 "programming language.  This page just documents the differences from the C "
23836 "API and gives some examples.  If you are not familiar with using libguestfs, "
23837 "you also need to read L<guestfs(3)>."
23838 msgstr ""
23839
23840 #. type: textblock
23841 #: ../python/examples/guestfs-python.pod:23
23842 msgid ""
23843 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23844 "single string argument which is the error message."
23845 msgstr ""
23846
23847 #. type: =head2
23848 #: ../python/examples/guestfs-python.pod:26
23849 msgid "MORE DOCUMENTATION"
23850 msgstr ""
23851
23852 #. type: textblock
23853 #: ../python/examples/guestfs-python.pod:28
23854 msgid "Type:"
23855 msgstr ""
23856
23857 #. type: verbatim
23858 #: ../python/examples/guestfs-python.pod:30
23859 #, no-wrap
23860 msgid ""
23861 " $ python\n"
23862 " >>> import guestfs\n"
23863 " >>> help (guestfs)\n"
23864 "\n"
23865 msgstr ""
23866
23867 #. type: textblock
23868 #: ../python/examples/guestfs-python.pod:44
23869 msgid ""
23870 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23871 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23872 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23873 msgstr ""
23874
23875 #. type: textblock
23876 #: ../rescue/virt-rescue.pod:5
23877 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23878 msgstr ""
23879
23880 #. type: verbatim
23881 #: ../rescue/virt-rescue.pod:9
23882 #, no-wrap
23883 msgid ""
23884 " virt-rescue [--options] -d domname\n"
23885 "\n"
23886 msgstr ""
23887
23888 #. type: verbatim
23889 #: ../rescue/virt-rescue.pod:11
23890 #, no-wrap
23891 msgid ""
23892 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23893 "\n"
23894 msgstr ""
23895
23896 #. type: verbatim
23897 #: ../rescue/virt-rescue.pod:13
23898 #, no-wrap
23899 msgid ""
23900 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
23901 "\n"
23902 msgstr ""
23903
23904 #. type: verbatim
23905 #: ../rescue/virt-rescue.pod:17
23906 #, no-wrap
23907 msgid ""
23908 " virt-rescue [--options] domname\n"
23909 "\n"
23910 msgstr ""
23911
23912 #. type: verbatim
23913 #: ../rescue/virt-rescue.pod:19
23914 #, no-wrap
23915 msgid ""
23916 " virt-rescue [--options] disk.img [disk.img ...]\n"
23917 "\n"
23918 msgstr ""
23919
23920 #. type: textblock
23921 #: ../rescue/virt-rescue.pod:23
23922 msgid ""
23923 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23924 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23925 "you from doing this, but doesn't catch all cases."
23926 msgstr ""
23927
23928 #. type: textblock
23929 #: ../rescue/virt-rescue.pod:27
23930 msgid ""
23931 "However if you use the I<--ro> (read only) option, then you can attach a "
23932 "shell to a live virtual machine.  The results might be strange or "
23933 "inconsistent at times but you won't get disk corruption."
23934 msgstr ""
23935
23936 #. type: textblock
23937 #: ../rescue/virt-rescue.pod:33
23938 msgid ""
23939 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23940 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23941 "recovery tools which you can use to examine or rescue a virtual machine or "
23942 "disk image."
23943 msgstr ""
23944
23945 #. type: textblock
23946 #: ../rescue/virt-rescue.pod:38
23947 msgid ""
23948 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23949 "on disk image(s):"
23950 msgstr ""
23951
23952 #. type: verbatim
23953 #: ../rescue/virt-rescue.pod:41
23954 #, no-wrap
23955 msgid ""
23956 " virt-rescue -d GuestName\n"
23957 "\n"
23958 msgstr ""
23959
23960 #. type: verbatim
23961 #: ../rescue/virt-rescue.pod:43
23962 #, no-wrap
23963 msgid ""
23964 " virt-rescue --ro -a /path/to/disk.img\n"
23965 "\n"
23966 msgstr ""
23967
23968 #. type: verbatim
23969 #: ../rescue/virt-rescue.pod:45
23970 #, no-wrap
23971 msgid ""
23972 " virt-rescue -a /dev/sdc\n"
23973 "\n"
23974 msgstr ""
23975
23976 #. type: textblock
23977 #: ../rescue/virt-rescue.pod:47
23978 msgid "For live VMs you I<must> use the --ro option."
23979 msgstr ""
23980
23981 #. type: textblock
23982 #: ../rescue/virt-rescue.pod:49
23983 msgid ""
23984 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23985 "in an interactive bash shell where you can use many ordinary Linux "
23986 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23987 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23988 "is an empty directory called C</sysroot> where you can mount filesystems."
23989 msgstr ""
23990
23991 #. type: textblock
23992 #: ../rescue/virt-rescue.pod:56
23993 msgid ""
23994 "You can get virt-rescue to suggest mount commands for you by using the I<--"
23995 "suggest> option (in another terminal):"
23996 msgstr ""
23997
23998 #. type: verbatim
23999 #: ../rescue/virt-rescue.pod:59
24000 #, no-wrap
24001 msgid ""
24002 " $ virt-rescue --suggest -d Fedora15\n"
24003 " Inspecting the virtual machine or disk image ...\n"
24004 " \n"
24005 msgstr ""
24006
24007 #. type: verbatim
24008 #: ../rescue/virt-rescue.pod:62
24009 #, no-wrap
24010 msgid ""
24011 " This disk contains one or more operating systems.  You can use these\n"
24012 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
24013 " filesystems.\n"
24014 " \n"
24015 msgstr ""
24016
24017 #. type: verbatim
24018 #: ../rescue/virt-rescue.pod:66
24019 #, no-wrap
24020 msgid ""
24021 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
24022 " # type: linux, distro: fedora, version: 15.0\n"
24023 " # Fedora release 15 (Lovelock)\n"
24024 " \n"
24025 msgstr ""
24026
24027 #. type: verbatim
24028 #: ../rescue/virt-rescue.pod:70
24029 #, no-wrap
24030 msgid ""
24031 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
24032 " mount /dev/vda1 /sysroot/boot\n"
24033 " mount --bind /dev /sysroot/dev\n"
24034 " mount --bind /dev/pts /sysroot/dev/pts\n"
24035 " mount --bind /proc /sysroot/proc\n"
24036 " mount --bind /sys /sysroot/sys\n"
24037 "\n"
24038 msgstr ""
24039
24040 #. type: textblock
24041 #: ../rescue/virt-rescue.pod:77
24042 msgid ""
24043 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
24044 "(with L<parted(8)>) and mount them by hand:"
24045 msgstr ""
24046
24047 #. type: verbatim
24048 #: ../rescue/virt-rescue.pod:80
24049 #, no-wrap
24050 msgid ""
24051 " ><rescue> lvs\n"
24052 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
24053 " lv_root vg_f15x32 -wi-a-   8.83G\n"
24054 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
24055 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
24056 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
24057 " ><rescue> ls /sysroot\n"
24058 "\n"
24059 msgstr ""
24060
24061 #. type: textblock
24062 #: ../rescue/virt-rescue.pod:88
24063 msgid ""
24064 "Another command to list available filesystems is L<virt-filesystems(1)>."
24065 msgstr ""
24066
24067 #. type: textblock
24068 #: ../rescue/virt-rescue.pod:91
24069 msgid ""
24070 "To run commands in a Linux guest (for example, grub), you should chroot into "
24071 "the /sysroot directory first:"
24072 msgstr ""
24073
24074 #. type: verbatim
24075 #: ../rescue/virt-rescue.pod:94
24076 #, no-wrap
24077 msgid ""
24078 " ><rescue> chroot /sysroot\n"
24079 "\n"
24080 msgstr ""
24081
24082 #. type: textblock
24083 #: ../rescue/virt-rescue.pod:98
24084 msgid ""
24085 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24086 "virtual machine.  For example you can use it on a blank file if you want to "
24087 "partition that file (although we would recommend using L<guestfish(1)> "
24088 "instead as it is more suitable for this purpose).  You can even use virt-"
24089 "rescue on things like SD cards."
24090 msgstr ""
24091
24092 #. type: textblock
24093 #: ../rescue/virt-rescue.pod:104
24094 msgid ""
24095 "Virt-rescue does not require root.  You only need to run it as root if you "
24096 "need root to open the disk image."
24097 msgstr ""
24098
24099 #. type: textblock
24100 #: ../rescue/virt-rescue.pod:107
24101 msgid ""
24102 "This tool is just designed for quick interactive hacking on a virtual "
24103 "machine.  For more structured access to a virtual machine disk image, you "
24104 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
24105 "make scripted changes to guests, use L<guestfish(1)>."
24106 msgstr ""
24107
24108 #. type: =item
24109 #: ../rescue/virt-rescue.pod:131
24110 msgid "B<--append kernelopts>"
24111 msgstr ""
24112
24113 #. type: textblock
24114 #: ../rescue/virt-rescue.pod:133
24115 msgid "Pass additional options to the rescue kernel."
24116 msgstr ""
24117
24118 #. type: verbatim
24119 #: ../rescue/virt-rescue.pod:163
24120 #, no-wrap
24121 msgid ""
24122 " virt-rescue --format=raw -a disk.img\n"
24123 "\n"
24124 msgstr ""
24125
24126 #. type: verbatim
24127 #: ../rescue/virt-rescue.pod:167
24128 #, no-wrap
24129 msgid ""
24130 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
24131 "\n"
24132 msgstr ""
24133
24134 #. type: =item
24135 #: ../rescue/virt-rescue.pod:176
24136 msgid "B<-m MB>"
24137 msgstr ""
24138
24139 #. type: =item
24140 #: ../rescue/virt-rescue.pod:178
24141 msgid "B<--memsize MB>"
24142 msgstr ""
24143
24144 #. type: textblock
24145 #: ../rescue/virt-rescue.pod:180
24146 msgid ""
24147 "Change the amount of memory allocated to the rescue system.  The default is "
24148 "set by libguestfs and is small but adequate for running system tools.  The "
24149 "occasional program might need more memory.  The parameter is specified in "
24150 "megabytes."
24151 msgstr ""
24152
24153 #. type: =item
24154 #: ../rescue/virt-rescue.pod:185
24155 msgid "B<--network>"
24156 msgstr ""
24157
24158 #. type: textblock
24159 #: ../rescue/virt-rescue.pod:187
24160 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
24161 msgstr ""
24162
24163 #. type: textblock
24164 #: ../rescue/virt-rescue.pod:193
24165 msgid "Open the image read-only."
24166 msgstr ""
24167
24168 #. type: textblock
24169 #: ../rescue/virt-rescue.pod:203
24170 msgid ""
24171 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
24172 "SELINUX> before using this option."
24173 msgstr ""
24174
24175 #. type: =item
24176 #: ../rescue/virt-rescue.pod:206
24177 msgid "B<--smp> N"
24178 msgstr ""
24179
24180 #. type: textblock
24181 #: ../rescue/virt-rescue.pod:208
24182 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
24183 msgstr ""
24184
24185 #. type: =item
24186 #: ../rescue/virt-rescue.pod:210
24187 msgid "B<--suggest>"
24188 msgstr ""
24189
24190 #. type: textblock
24191 #: ../rescue/virt-rescue.pod:212
24192 msgid ""
24193 "Inspect the disk image and suggest what mount commands should be used to "
24194 "mount the disks.  You should use the I<--suggest> option in a second "
24195 "terminal, then paste the commands into another virt-rescue."
24196 msgstr ""
24197
24198 #. type: textblock
24199 #: ../rescue/virt-rescue.pod:216
24200 msgid ""
24201 "This option implies I<--ro> and is safe to use even if the guest is up or if "
24202 "another virt-rescue is running."
24203 msgstr ""
24204
24205 #. type: textblock
24206 #: ../rescue/virt-rescue.pod:235
24207 msgid ""
24208 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
24209 "are done read-write."
24210 msgstr ""
24211
24212 #. type: textblock
24213 #: ../rescue/virt-rescue.pod:248
24214 msgid "Previous versions of virt-rescue allowed you to write either:"
24215 msgstr ""
24216
24217 #. type: verbatim
24218 #: ../rescue/virt-rescue.pod:250
24219 #, no-wrap
24220 msgid ""
24221 " virt-rescue disk.img [disk.img ...]\n"
24222 "\n"
24223 msgstr ""
24224
24225 #. type: verbatim
24226 #: ../rescue/virt-rescue.pod:254
24227 #, no-wrap
24228 msgid ""
24229 " virt-rescue guestname\n"
24230 "\n"
24231 msgstr ""
24232
24233 #. type: =head1
24234 #: ../rescue/virt-rescue.pod:262
24235 msgid "NETWORK"
24236 msgstr ""
24237
24238 #. type: textblock
24239 #: ../rescue/virt-rescue.pod:264
24240 msgid ""
24241 "Adding the I<--network> option enables QEMU user networking in the rescue "
24242 "appliance.  There are some differences between user networking and ordinary "
24243 "networking:"
24244 msgstr ""
24245
24246 #. type: =item
24247 #: ../rescue/virt-rescue.pod:270
24248 msgid "ping does not work"
24249 msgstr ""
24250
24251 #. type: textblock
24252 #: ../rescue/virt-rescue.pod:272
24253 msgid ""
24254 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
24255 "send the ping packets, and because virt-rescue must be able to run as non-"
24256 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
24257 "The ping command will appear to resolve addresses but will not be able to "
24258 "send or receive any packets.  This does not mean that the network is not "
24259 "working."
24260 msgstr ""
24261
24262 #. type: =item
24263 #: ../rescue/virt-rescue.pod:279
24264 msgid "cannot receive connections"
24265 msgstr ""
24266
24267 #. type: textblock
24268 #: ../rescue/virt-rescue.pod:281
24269 msgid "QEMU user networking cannot receive incoming connections."
24270 msgstr ""
24271
24272 #. type: =item
24273 #: ../rescue/virt-rescue.pod:283
24274 msgid "making TCP connections"
24275 msgstr ""
24276
24277 #. type: textblock
24278 #: ../rescue/virt-rescue.pod:285
24279 msgid ""
24280 "The virt-rescue appliance needs to be small and so does not include many "
24281 "network tools.  In particular there is no L<telnet(1)> command.  You can "
24282 "make TCP connections from the shell using the magical C</dev/tcp/"
24283 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
24284 msgstr ""
24285
24286 #. type: verbatim
24287 #: ../rescue/virt-rescue.pod:290
24288 #, no-wrap
24289 msgid ""
24290 " exec 3<>/dev/tcp/redhat.com/80\n"
24291 " echo \"GET /\" >&3\n"
24292 " cat <&3\n"
24293 "\n"
24294 msgstr ""
24295
24296 #. type: textblock
24297 #: ../rescue/virt-rescue.pod:294
24298 msgid "See L<bash(1)> for more details."
24299 msgstr ""
24300
24301 #. type: textblock
24302 #: ../rescue/virt-rescue.pod:300
24303 msgid ""
24304 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
24305 "ENVIRONMENT VARIABLES> for the complete list."
24306 msgstr ""
24307
24308 #. type: textblock
24309 #: ../rescue/virt-rescue.pod:327
24310 msgid ""
24311 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
24312 "filesystems(1)>, L<http://libguestfs.org/>."
24313 msgstr ""
24314
24315 #. type: textblock
24316 #: ../resize/virt-resize.pod:5
24317 msgid "virt-resize - Resize a virtual machine disk"
24318 msgstr ""
24319
24320 #. type: verbatim
24321 #: ../resize/virt-resize.pod:9
24322 #, no-wrap
24323 msgid ""
24324 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24325 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24326 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24327 "\n"
24328 msgstr ""
24329
24330 #. type: textblock
24331 #: ../resize/virt-resize.pod:15
24332 msgid ""
24333 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24334 "larger or smaller overall, and resizing or deleting any partitions contained "
24335 "within."
24336 msgstr ""
24337
24338 #. type: textblock
24339 #: ../resize/virt-resize.pod:19
24340 msgid ""
24341 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24342 "not> be used on live virtual machines - for consistent results, shut the "
24343 "virtual machine down before resizing it."
24344 msgstr ""
24345
24346 #. type: textblock
24347 #: ../resize/virt-resize.pod:23
24348 msgid ""
24349 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
24350 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
24351 msgstr ""
24352
24353 #. type: =item
24354 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603
24355 #: ../sparsify/virt-sparsify.pod:227 ../src/guestfs.pod:484
24356 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
24357 msgid "1."
24358 msgstr ""
24359
24360 #. type: textblock
24361 #: ../resize/virt-resize.pod:33
24362 msgid ""
24363 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24364 "fill the extra 5GB of space."
24365 msgstr ""
24366
24367 #. type: verbatim
24368 #: ../resize/virt-resize.pod:36
24369 #, no-wrap
24370 msgid ""
24371 " virt-filesystems --long -h --all -a olddisk\n"
24372 " \n"
24373 msgstr ""
24374
24375 #. type: verbatim
24376 #: ../resize/virt-resize.pod:38
24377 #, no-wrap
24378 msgid ""
24379 " truncate -r olddisk newdisk\n"
24380 " truncate -s +5G newdisk\n"
24381 " \n"
24382 msgstr ""
24383
24384 #. type: verbatim
24385 #: ../resize/virt-resize.pod:41
24386 #, no-wrap
24387 msgid ""
24388 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24389 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24390 "\n"
24391 msgstr ""
24392
24393 #. type: =item
24394 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610
24395 #: ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:490
24396 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
24397 msgid "2."
24398 msgstr ""
24399
24400 #. type: textblock
24401 #: ../resize/virt-resize.pod:46
24402 msgid ""
24403 "As above, but make the /boot partition 200MB bigger, while giving the "
24404 "remaining space to /dev/sda2:"
24405 msgstr ""
24406
24407 #. type: verbatim
24408 #: ../resize/virt-resize.pod:49
24409 #, no-wrap
24410 msgid ""
24411 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24412 "   olddisk newdisk\n"
24413 "\n"
24414 msgstr ""
24415
24416 #. type: =item
24417 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616
24418 #: ../sparsify/virt-sparsify.pod:240 ../src/guestfs.pod:501
24419 #: ../src/guestfs.pod:1451
24420 msgid "3."
24421 msgstr ""
24422
24423 #. type: textblock
24424 #: ../resize/virt-resize.pod:54
24425 msgid ""
24426 "As in the first example, but expand a logical volume as the final step.  "
24427 "This is what you would typically use for Linux guests that use LVM:"
24428 msgstr ""
24429
24430 #. type: verbatim
24431 #: ../resize/virt-resize.pod:58
24432 #, no-wrap
24433 msgid ""
24434 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
24435 "   olddisk newdisk\n"
24436 "\n"
24437 msgstr ""
24438
24439 #. type: =item
24440 #: ../resize/virt-resize.pod:61
24441 msgid "4."
24442 msgstr ""
24443
24444 #. type: textblock
24445 #: ../resize/virt-resize.pod:63
24446 msgid ""
24447 "As in the first example, but the output format will be qcow2 instead of a "
24448 "raw disk:"
24449 msgstr ""
24450
24451 #. type: verbatim
24452 #: ../resize/virt-resize.pod:66
24453 #, no-wrap
24454 msgid ""
24455 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
24456 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
24457 "\n"
24458 msgstr ""
24459
24460 #. type: =head1
24461 #: ../resize/virt-resize.pod:71
24462 msgid "DETAILED USAGE"
24463 msgstr ""
24464
24465 #. type: =head2
24466 #: ../resize/virt-resize.pod:73
24467 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24468 msgstr ""
24469
24470 #. type: =item
24471 #: ../resize/virt-resize.pod:77
24472 msgid "1. Shut down the virtual machine"
24473 msgstr ""
24474
24475 #. type: =item
24476 #: ../resize/virt-resize.pod:79
24477 msgid "2. Locate input disk image"
24478 msgstr ""
24479
24480 #. type: textblock
24481 #: ../resize/virt-resize.pod:81
24482 msgid ""
24483 "Locate the input disk image (ie. the file or device on the host containing "
24484 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24485 "dumpxml> like this to find the disk image name:"
24486 msgstr ""
24487
24488 #. type: verbatim
24489 #: ../resize/virt-resize.pod:85
24490 #, no-wrap
24491 msgid ""
24492 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24493 " Found 1 nodes:\n"
24494 " -- NODE --\n"
24495 " <source dev=\"/dev/vg/lv_guest\" />\n"
24496 "\n"
24497 msgstr ""
24498
24499 #. type: =item
24500 #: ../resize/virt-resize.pod:90
24501 msgid "3. Look at current sizing"
24502 msgstr ""
24503
24504 #. type: textblock
24505 #: ../resize/virt-resize.pod:92
24506 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
24507 msgstr ""
24508
24509 #. type: verbatim
24510 #: ../resize/virt-resize.pod:95
24511 #, no-wrap
24512 msgid ""
24513 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
24514 " Name       Type       Size  Parent\n"
24515 " /dev/sda1  partition  101M  /dev/sda\n"
24516 " /dev/sda2  partition  7.9G  /dev/sda\n"
24517 " /dev/sda   device     8.0G  -\n"
24518 "\n"
24519 msgstr ""
24520
24521 #. type: textblock
24522 #: ../resize/virt-resize.pod:101
24523 msgid ""
24524 "(This example is a virtual machine with an 8 GB disk which we would like to "
24525 "expand up to 10 GB)."
24526 msgstr ""
24527
24528 #. type: =item
24529 #: ../resize/virt-resize.pod:104
24530 msgid "4. Create output disk"
24531 msgstr ""
24532
24533 #. type: textblock
24534 #: ../resize/virt-resize.pod:106
24535 msgid ""
24536 "Virt-resize cannot do in-place disk modifications.  You have to have space "
24537 "to store the resized output disk."
24538 msgstr ""
24539
24540 #. type: textblock
24541 #: ../resize/virt-resize.pod:109
24542 msgid ""
24543 "To store the resized disk image in a file, create a file of a suitable size:"
24544 msgstr ""
24545
24546 #. type: verbatim
24547 #: ../resize/virt-resize.pod:112
24548 #, no-wrap
24549 msgid ""
24550 " # rm -f outdisk\n"
24551 " # truncate -s 10G outdisk\n"
24552 "\n"
24553 msgstr ""
24554
24555 #. type: textblock
24556 #: ../resize/virt-resize.pod:115
24557 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24558 msgstr ""
24559
24560 #. type: verbatim
24561 #: ../resize/virt-resize.pod:117
24562 #, no-wrap
24563 msgid ""
24564 " # lvcreate -L 10G -n lv_name vg_name\n"
24565 "\n"
24566 msgstr ""
24567
24568 #. type: textblock
24569 #: ../resize/virt-resize.pod:119
24570 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24571 msgstr ""
24572
24573 #. type: verbatim
24574 #: ../resize/virt-resize.pod:121
24575 #, no-wrap
24576 msgid ""
24577 " # virsh pool-list\n"
24578 " # virsh vol-create-as poolname newvol 10G\n"
24579 "\n"
24580 msgstr ""
24581
24582 #. type: =item
24583 #: ../resize/virt-resize.pod:124
24584 msgid "5. Resize"
24585 msgstr ""
24586
24587 #. type: textblock
24588 #: ../resize/virt-resize.pod:126
24589 msgid ""
24590 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24591 "file) and the output disk.  The output disk is the one created in the "
24592 "previous step."
24593 msgstr ""
24594
24595 #. type: verbatim
24596 #: ../resize/virt-resize.pod:130
24597 #, no-wrap
24598 msgid ""
24599 " # virt-resize indisk outdisk\n"
24600 "\n"
24601 msgstr ""
24602
24603 #. type: textblock
24604 #: ../resize/virt-resize.pod:132
24605 msgid ""
24606 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24607 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
24608 "larger, then an extra, empty partition is created at the end of the disk "
24609 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
24610 "error."
24611 msgstr ""
24612
24613 #. type: textblock
24614 #: ../resize/virt-resize.pod:138
24615 msgid ""
24616 "More realistically you'd want to expand existing partitions in the disk "
24617 "image by passing extra options (for the full list see the L</OPTIONS> "
24618 "section below)."
24619 msgstr ""
24620
24621 #. type: textblock
24622 #: ../resize/virt-resize.pod:142
24623 msgid ""
24624 "L</--expand> is the most useful option.  It expands the named partition "
24625 "within the disk to fill any extra space:"
24626 msgstr ""
24627
24628 #. type: verbatim
24629 #: ../resize/virt-resize.pod:145
24630 #, no-wrap
24631 msgid ""
24632 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24633 "\n"
24634 msgstr ""
24635
24636 #. type: textblock
24637 #: ../resize/virt-resize.pod:147
24638 msgid ""
24639 "(In this case, an extra partition is I<not> created at the end of the disk, "
24640 "because there will be no unused space)."
24641 msgstr ""
24642
24643 #. type: textblock
24644 #: ../resize/virt-resize.pod:150
24645 msgid ""
24646 "L</--resize> is the other commonly used option.  The following would "
24647 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24648 "rest of the available space:"
24649 msgstr ""
24650
24651 #. type: verbatim
24652 #: ../resize/virt-resize.pod:154
24653 #, no-wrap
24654 msgid ""
24655 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24656 "     indisk outdisk\n"
24657 "\n"
24658 msgstr ""
24659
24660 #. type: textblock
24661 #: ../resize/virt-resize.pod:157
24662 msgid ""
24663 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24664 "if virt-resize knows how, it will resize the contents, the equivalent of "
24665 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
24666 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
24667 "filesystems, so you would have to online resize them after booting the guest."
24668 msgstr ""
24669
24670 #. type: textblock
24671 #: ../resize/virt-resize.pod:164
24672 msgid "Other options are covered below."
24673 msgstr ""
24674
24675 #. type: =item
24676 #: ../resize/virt-resize.pod:166
24677 msgid "6. Test"
24678 msgstr ""
24679
24680 #. type: textblock
24681 #: ../resize/virt-resize.pod:168
24682 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24683 msgstr ""
24684
24685 #. type: textblock
24686 #: ../resize/virt-resize.pod:170
24687 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24688 msgstr ""
24689
24690 #. type: verbatim
24691 #: ../resize/virt-resize.pod:172
24692 #, no-wrap
24693 msgid ""
24694 " # virsh edit guestname\n"
24695 "\n"
24696 msgstr ""
24697
24698 #. type: textblock
24699 #: ../resize/virt-resize.pod:174
24700 msgid ""
24701 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
24702 "html#elementsDisks>"
24703 msgstr ""
24704
24705 #. type: textblock
24706 #: ../resize/virt-resize.pod:177
24707 msgid "Then start up the domain with the new, resized disk:"
24708 msgstr ""
24709
24710 #. type: verbatim
24711 #: ../resize/virt-resize.pod:179
24712 #, no-wrap
24713 msgid ""
24714 " # virsh start guestname\n"
24715 "\n"
24716 msgstr ""
24717
24718 #. type: textblock
24719 #: ../resize/virt-resize.pod:181
24720 msgid ""
24721 "and check that it still works.  See also the L</NOTES> section below for "
24722 "additional information."
24723 msgstr ""
24724
24725 #. type: =item
24726 #: ../resize/virt-resize.pod:184
24727 msgid "7. Resize LVs etc inside the guest"
24728 msgstr ""
24729
24730 #. type: textblock
24731 #: ../resize/virt-resize.pod:186
24732 msgid "(This can also be done offline using L<guestfish(1)>)"
24733 msgstr ""
24734
24735 #. type: textblock
24736 #: ../resize/virt-resize.pod:188
24737 msgid ""
24738 "Once the guest has booted you should see the new space available, at least "
24739 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24740 "may need to resize LVs inside PVs, and also resize filesystem types that "
24741 "virt-resize does not know how to expand."
24742 msgstr ""
24743
24744 #. type: =head2
24745 #: ../resize/virt-resize.pod:195
24746 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24747 msgstr ""
24748
24749 #. type: textblock
24750 #: ../resize/virt-resize.pod:197
24751 msgid ""
24752 "Shrinking is somewhat more complex than expanding, and only an overview is "
24753 "given here."
24754 msgstr ""
24755
24756 #. type: textblock
24757 #: ../resize/virt-resize.pod:200
24758 msgid ""
24759 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24760 "filesystems).  The user has to shrink content before passing the disk image "
24761 "to virt-resize, and virt-resize will check that the content has been shrunk "
24762 "properly."
24763 msgstr ""
24764
24765 #. type: textblock
24766 #: ../resize/virt-resize.pod:205
24767 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24768 msgstr ""
24769
24770 #. type: textblock
24771 #: ../resize/virt-resize.pod:207
24772 msgid ""
24773 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24774 "steps 3 and 4 above to allocate a new disk image."
24775 msgstr ""
24776
24777 #. type: textblock
24778 #: ../resize/virt-resize.pod:210
24779 msgid ""
24780 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24781 msgstr ""
24782
24783 #. type: =head2
24784 #: ../resize/virt-resize.pod:213
24785 msgid "IGNORING OR DELETING PARTITIONS"
24786 msgstr ""
24787
24788 #. type: textblock
24789 #: ../resize/virt-resize.pod:215
24790 msgid ""
24791 "virt-resize also gives a convenient way to ignore or delete partitions when "
24792 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24793 "up the copy where you don't care about the existing contents of a "
24794 "partition.  Deleting a partition removes it completely, but note that it "
24795 "also renumbers any partitions after the one which is deleted, which can "
24796 "leave some guests unbootable."
24797 msgstr ""
24798
24799 #. type: =head2
24800 #: ../resize/virt-resize.pod:222
24801 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24802 msgstr ""
24803
24804 #. type: textblock
24805 #: ../resize/virt-resize.pod:224
24806 msgid ""
24807 "If the input disk is in qcow2 format, then you may prefer that the output is "
24808 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
24809 "the fly.  The output format is simply determined by the format of the empty "
24810 "output container that you provide.  Thus to create qcow2 output, use:"
24811 msgstr ""
24812
24813 #. type: verbatim
24814 #: ../resize/virt-resize.pod:230
24815 #, no-wrap
24816 msgid ""
24817 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24818 "\n"
24819 msgstr ""
24820
24821 #. type: textblock
24822 #: ../resize/virt-resize.pod:232
24823 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24824 msgstr ""
24825
24826 #. type: textblock
24827 #: ../resize/virt-resize.pod:234
24828 msgid "Similarly, to get non-sparse raw output use:"
24829 msgstr ""
24830
24831 #. type: verbatim
24832 #: ../resize/virt-resize.pod:236
24833 #, no-wrap
24834 msgid ""
24835 " fallocate -l size outdisk\n"
24836 "\n"
24837 msgstr ""
24838
24839 #. type: textblock
24840 #: ../resize/virt-resize.pod:238
24841 msgid ""
24842 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24843 "dev/zero of=outdisk bs=1M count=..>)"
24844 msgstr ""
24845
24846 #. type: =head2
24847 #: ../resize/virt-resize.pod:241
24848 msgid "LOGICAL PARTITIONS"
24849 msgstr ""
24850
24851 #. type: textblock
24852 #: ../resize/virt-resize.pod:243
24853 msgid ""
24854 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24855 "tables) cannot be resized."
24856 msgstr ""
24857
24858 #. type: textblock
24859 #: ../resize/virt-resize.pod:246
24860 msgid ""
24861 "To understand what is going on, firstly one of the four partitions C</dev/"
24862 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
24863 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
24864 "type."
24865 msgstr ""
24866
24867 #. type: textblock
24868 #: ../resize/virt-resize.pod:251
24869 msgid "Logical partitions live inside the extended partition."
24870 msgstr ""
24871
24872 #. type: textblock
24873 #: ../resize/virt-resize.pod:253
24874 msgid ""
24875 "The extended partition can be expanded, but not shrunk (unless you force it, "
24876 "which is not advisable).  When the extended partition is copied across, all "
24877 "the logical partitions contained inside are copied over implicitly.  Virt-"
24878 "resize does not look inside the extended partition, so it copies the logical "
24879 "partitions blindly."
24880 msgstr ""
24881
24882 #. type: textblock
24883 #: ../resize/virt-resize.pod:259
24884 msgid ""
24885 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24886 "line.  Doing so will give an error."
24887 msgstr ""
24888
24889 #. type: textblock
24890 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24891 msgid "Display help."
24892 msgstr ""
24893
24894 #. type: =item
24895 #: ../resize/virt-resize.pod:270
24896 msgid "B<--align-first auto>"
24897 msgstr ""
24898
24899 #. type: =item
24900 #: ../resize/virt-resize.pod:272
24901 msgid "B<--align-first never>"
24902 msgstr ""
24903
24904 #. type: =item
24905 #: ../resize/virt-resize.pod:274
24906 msgid "B<--align-first always>"
24907 msgstr ""
24908
24909 #. type: textblock
24910 #: ../resize/virt-resize.pod:276
24911 msgid ""
24912 "Align the first partition for improved performance (see also the I<--"
24913 "alignment> option)."
24914 msgstr ""
24915
24916 #. type: textblock
24917 #: ../resize/virt-resize.pod:279
24918 msgid ""
24919 "The default is I<--align-first auto> which only aligns the first partition "
24920 "if it is safe to do so.  That is, only when we know how to fix the "
24921 "bootloader automatically, and at the moment that can only be done for "
24922 "Windows guests."
24923 msgstr ""
24924
24925 #. type: textblock
24926 #: ../resize/virt-resize.pod:284
24927 msgid ""
24928 "I<--align-first never> means we never move the first partition.  This is the "
24929 "safest option.  Try this if the guest does not boot after resizing."
24930 msgstr ""
24931
24932 #. type: textblock
24933 #: ../resize/virt-resize.pod:288
24934 msgid ""
24935 "I<--align-first always> means we always align the first partition (if it "
24936 "needs to be aligned).  For some guests this will break the bootloader, "
24937 "making the guest unbootable."
24938 msgstr ""
24939
24940 #. type: =item
24941 #: ../resize/virt-resize.pod:292
24942 msgid "B<--alignment N>"
24943 msgstr ""
24944
24945 #. type: textblock
24946 #: ../resize/virt-resize.pod:294
24947 msgid ""
24948 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24949 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24950 msgstr ""
24951
24952 #. type: textblock
24953 #: ../resize/virt-resize.pod:298
24954 msgid ""
24955 "Assuming 512 byte sector size inside the guest, here are some suitable "
24956 "values for this:"
24957 msgstr ""
24958
24959 #. type: =item
24960 #: ../resize/virt-resize.pod:303
24961 msgid "I<--alignment 1> (512 bytes)"
24962 msgstr ""
24963
24964 #. type: textblock
24965 #: ../resize/virt-resize.pod:305
24966 msgid ""
24967 "The partitions would be packed together as closely as possible, but would be "
24968 "completely unaligned.  In some cases this can cause very poor performance.  "
24969 "See L<virt-alignment-scan(1)> for further details."
24970 msgstr ""
24971
24972 #. type: =item
24973 #: ../resize/virt-resize.pod:309
24974 msgid "I<--alignment 8> (4K)"
24975 msgstr ""
24976
24977 #. type: textblock
24978 #: ../resize/virt-resize.pod:311
24979 msgid ""
24980 "This would be the minimum acceptable alignment for reasonable performance on "
24981 "modern hosts."
24982 msgstr ""
24983
24984 #. type: =item
24985 #: ../resize/virt-resize.pod:314
24986 msgid "I<--alignment 128> (64K)"
24987 msgstr ""
24988
24989 #. type: textblock
24990 #: ../resize/virt-resize.pod:316
24991 msgid ""
24992 "This alignment provides good performance when the host is using high end "
24993 "network storage."
24994 msgstr ""
24995
24996 #. type: =item
24997 #: ../resize/virt-resize.pod:319
24998 msgid "I<--alignment 2048> (1M)"
24999 msgstr ""
25000
25001 #. type: textblock
25002 #: ../resize/virt-resize.pod:321
25003 msgid ""
25004 "This is the standard alignment used by all newly installed guests since "
25005 "around 2008."
25006 msgstr ""
25007
25008 #. type: =item
25009 #: ../resize/virt-resize.pod:326
25010 msgid "B<-d>"
25011 msgstr ""
25012
25013 #. type: =item
25014 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
25015 #: ../tools/virt-win-reg.pl:120
25016 msgid "B<--debug>"
25017 msgstr ""
25018
25019 #. type: textblock
25020 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
25021 msgid "Enable debugging messages."
25022 msgstr ""
25023
25024 #. type: =item
25025 #: ../resize/virt-resize.pod:332 ../sparsify/virt-sparsify.pod:131
25026 msgid "B<--debug-gc>"
25027 msgstr ""
25028
25029 #. type: textblock
25030 #: ../resize/virt-resize.pod:334
25031 msgid ""
25032 "Debug garbage collection and memory allocation.  This is only useful when "
25033 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
25034 msgstr ""
25035
25036 #. type: =item
25037 #: ../resize/virt-resize.pod:338
25038 msgid "B<--delete part>"
25039 msgstr ""
25040
25041 #. type: textblock
25042 #: ../resize/virt-resize.pod:340
25043 msgid ""
25044 "Delete the named partition.  It would be more accurate to describe this as "
25045 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25046 "the original disk image is left intact."
25047 msgstr ""
25048
25049 #. type: textblock
25050 #: ../resize/virt-resize.pod:344
25051 msgid ""
25052 "Note that when you delete a partition, then anything contained in the "
25053 "partition is also deleted.  Furthermore, this causes any partitions that "
25054 "come after to be I<renumbered>, which can easily make your guest unbootable."
25055 msgstr ""
25056
25057 #. type: textblock
25058 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410
25059 #: ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:157
25060 msgid "You can give this option multiple times."
25061 msgstr ""
25062
25063 #. type: =item
25064 #: ../resize/virt-resize.pod:351
25065 msgid "B<--expand part>"
25066 msgstr ""
25067
25068 #. type: textblock
25069 #: ../resize/virt-resize.pod:353
25070 msgid ""
25071 "Expand the named partition so it uses up all extra space (space left over "
25072 "after any other resize changes that you request have been done)."
25073 msgstr ""
25074
25075 #. type: textblock
25076 #: ../resize/virt-resize.pod:356
25077 msgid ""
25078 "If virt-resize knows how, it will expand the direct content of the "
25079 "partition.  For example, if the partition is an LVM PV, it will expand the "
25080 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25081 "content it doesn't know about alone."
25082 msgstr ""
25083
25084 #. type: textblock
25085 #: ../resize/virt-resize.pod:361
25086 msgid "Currently virt-resize can resize:"
25087 msgstr ""
25088
25089 #. type: textblock
25090 #: ../resize/virt-resize.pod:367
25091 msgid "ext2, ext3 and ext4 filesystems."
25092 msgstr ""
25093
25094 #. type: textblock
25095 #: ../resize/virt-resize.pod:371
25096 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
25097 msgstr ""
25098
25099 #. type: textblock
25100 #: ../resize/virt-resize.pod:373
25101 msgid ""
25102 "The filesystem must have been shut down consistently last time it was used.  "
25103 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25104 "consistency check, so at the first boot after resizing Windows will check "
25105 "the disk."
25106 msgstr ""
25107
25108 #. type: textblock
25109 #: ../resize/virt-resize.pod:380
25110 msgid ""
25111 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
25112 "inside the PV, but see the I<--LV-expand> option.  The user could also "
25113 "resize LVs as desired after boot."
25114 msgstr ""
25115
25116 #. type: textblock
25117 #: ../resize/virt-resize.pod:386
25118 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
25119 msgstr ""
25120
25121 #. type: textblock
25122 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
25123 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
25124 msgstr ""
25125
25126 #. type: =item
25127 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:137
25128 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
25129 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
25130 msgid "B<--format> raw"
25131 msgstr ""
25132
25133 #. type: textblock
25134 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:141
25135 msgid ""
25136 "Specify the format of the input disk image.  If this flag is not given then "
25137 "it is auto-detected from the image itself."
25138 msgstr ""
25139
25140 #. type: textblock
25141 #: ../resize/virt-resize.pod:400
25142 msgid ""
25143 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
25144 "AND NON-SPARSE RAW FORMATS>."
25145 msgstr ""
25146
25147 #. type: =item
25148 #: ../resize/virt-resize.pod:403
25149 msgid "B<--ignore part>"
25150 msgstr ""
25151
25152 #. type: textblock
25153 #: ../resize/virt-resize.pod:405
25154 msgid ""
25155 "Ignore the named partition.  Effectively this means the partition is "
25156 "allocated on the destination disk, but the content is not copied across from "
25157 "the source disk.  The content of the partition will be blank (all zero "
25158 "bytes)."
25159 msgstr ""
25160
25161 #. type: =item
25162 #: ../resize/virt-resize.pod:412
25163 msgid "B<--LV-expand logvol>"
25164 msgstr ""
25165
25166 #. type: textblock
25167 #: ../resize/virt-resize.pod:414
25168 msgid ""
25169 "This takes the logical volume and, as a final step, expands it to fill all "
25170 "the space available in its volume group.  A typical usage, assuming a Linux "
25171 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25172 "lv_root> would be:"
25173 msgstr ""
25174
25175 #. type: verbatim
25176 #: ../resize/virt-resize.pod:419
25177 #, no-wrap
25178 msgid ""
25179 " virt-resize indisk outdisk \\\n"
25180 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25181 "\n"
25182 msgstr ""
25183
25184 #. type: textblock
25185 #: ../resize/virt-resize.pod:422
25186 msgid ""
25187 "This would first expand the partition (and PV), and then expand the root "
25188 "device to fill the extra space in the PV."
25189 msgstr ""
25190
25191 #. type: textblock
25192 #: ../resize/virt-resize.pod:425
25193 msgid ""
25194 "The contents of the LV are also resized if virt-resize knows how to do "
25195 "that.  You can stop virt-resize from trying to expand the content by using "
25196 "the option I<--no-expand-content>."
25197 msgstr ""
25198
25199 #. type: textblock
25200 #: ../resize/virt-resize.pod:429
25201 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25202 msgstr ""
25203
25204 #. type: textblock
25205 #: ../resize/virt-resize.pod:431
25206 msgid ""
25207 "You can give this option multiple times, I<but> it doesn't make sense to do "
25208 "this unless the logical volumes you specify are all in different volume "
25209 "groups."
25210 msgstr ""
25211
25212 #. type: =item
25213 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:159
25214 msgid "B<--machine-readable>"
25215 msgstr ""
25216
25217 #. type: textblock
25218 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:161
25219 msgid ""
25220 "This option is used to make the output more machine friendly when being "
25221 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
25222 msgstr ""
25223
25224 #. type: =item
25225 #: ../resize/virt-resize.pod:443
25226 msgid "B<--dryrun>"
25227 msgstr ""
25228
25229 #. type: textblock
25230 #: ../resize/virt-resize.pod:445
25231 msgid "Print a summary of what would be done, but don't do anything."
25232 msgstr ""
25233
25234 #. type: =item
25235 #: ../resize/virt-resize.pod:447
25236 msgid "B<--no-copy-boot-loader>"
25237 msgstr ""
25238
25239 #. type: textblock
25240 #: ../resize/virt-resize.pod:449
25241 msgid ""
25242 "By default, virt-resize copies over some sectors at the start of the disk "
25243 "(up to the beginning of the first partition).  Commonly these sectors "
25244 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25245 "in order for the guest to boot correctly."
25246 msgstr ""
25247
25248 #. type: textblock
25249 #: ../resize/virt-resize.pod:454
25250 msgid ""
25251 "If you specify this flag, then this initial copy is not done.  You may need "
25252 "to reinstall the boot loader in this case."
25253 msgstr ""
25254
25255 #. type: =item
25256 #: ../resize/virt-resize.pod:457
25257 msgid "B<--no-extra-partition>"
25258 msgstr ""
25259
25260 #. type: textblock
25261 #: ../resize/virt-resize.pod:459
25262 msgid ""
25263 "By default, virt-resize creates an extra partition if there is any extra, "
25264 "unused space after all resizing has happened.  Use this option to prevent "
25265 "the extra partition from being created.  If you do this then the extra space "
25266 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25267 "tool in the guest."
25268 msgstr ""
25269
25270 #. type: textblock
25271 #: ../resize/virt-resize.pod:465
25272 msgid ""
25273 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25274 "will be created."
25275 msgstr ""
25276
25277 #. type: =item
25278 #: ../resize/virt-resize.pod:468
25279 msgid "B<--no-expand-content>"
25280 msgstr ""
25281
25282 #. type: textblock
25283 #: ../resize/virt-resize.pod:470
25284 msgid ""
25285 "By default, virt-resize will try to expand the direct contents of "
25286 "partitions, if it knows how (see I<--expand> option above)."
25287 msgstr ""
25288
25289 #. type: textblock
25290 #: ../resize/virt-resize.pod:473
25291 msgid ""
25292 "If you give the I<--no-expand-content> option then virt-resize will not "
25293 "attempt this."
25294 msgstr ""
25295
25296 #. type: =item
25297 #: ../resize/virt-resize.pod:476
25298 msgid "B<--ntfsresize-force>"
25299 msgstr ""
25300
25301 #. type: textblock
25302 #: ../resize/virt-resize.pod:478
25303 msgid ""
25304 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
25305 "the NTFS disk is marked as needing a consistency check.  You have to use "
25306 "this option if you want to resize a Windows guest multiple times without "
25307 "booting into Windows between each resize."
25308 msgstr ""
25309
25310 #. type: =item
25311 #: ../resize/virt-resize.pod:484
25312 msgid "B<--output-format> raw"
25313 msgstr ""
25314
25315 #. type: textblock
25316 #: ../resize/virt-resize.pod:486
25317 msgid ""
25318 "Specify the format of the output disk image.  If this flag is not given then "
25319 "it is auto-detected from the image itself."
25320 msgstr ""
25321
25322 #. type: textblock
25323 #: ../resize/virt-resize.pod:492
25324 msgid ""
25325 "Note that this option I<does not create> the output format.  This option "
25326 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
25327 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
25328 "SPARSE RAW FORMATS>."
25329 msgstr ""
25330
25331 #. type: textblock
25332 #: ../resize/virt-resize.pod:501
25333 msgid "Don't print the summary."
25334 msgstr ""
25335
25336 #. type: =item
25337 #: ../resize/virt-resize.pod:503
25338 msgid "B<--resize part=size>"
25339 msgstr ""
25340
25341 #. type: textblock
25342 #: ../resize/virt-resize.pod:505
25343 msgid ""
25344 "Resize the named partition (expanding or shrinking it) so that it has the "
25345 "given size."
25346 msgstr ""
25347
25348 #. type: textblock
25349 #: ../resize/virt-resize.pod:508
25350 msgid ""
25351 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25352 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25353 "size; or as a relative number or percentage.  For example:"
25354 msgstr ""
25355
25356 #. type: verbatim
25357 #: ../resize/virt-resize.pod:514
25358 #, no-wrap
25359 msgid ""
25360 " --resize /dev/sda2=10G\n"
25361 "\n"
25362 msgstr ""
25363
25364 #. type: verbatim
25365 #: ../resize/virt-resize.pod:516
25366 #, no-wrap
25367 msgid ""
25368 " --resize /dev/sda4=90%\n"
25369 "\n"
25370 msgstr ""
25371
25372 #. type: verbatim
25373 #: ../resize/virt-resize.pod:518
25374 #, no-wrap
25375 msgid ""
25376 " --resize /dev/sda2=+1G\n"
25377 "\n"
25378 msgstr ""
25379
25380 #. type: verbatim
25381 #: ../resize/virt-resize.pod:520
25382 #, no-wrap
25383 msgid ""
25384 " --resize /dev/sda2=-200M\n"
25385 "\n"
25386 msgstr ""
25387
25388 #. type: verbatim
25389 #: ../resize/virt-resize.pod:522
25390 #, no-wrap
25391 msgid ""
25392 " --resize /dev/sda1=+128K\n"
25393 "\n"
25394 msgstr ""
25395
25396 #. type: verbatim
25397 #: ../resize/virt-resize.pod:524
25398 #, no-wrap
25399 msgid ""
25400 " --resize /dev/sda1=+10%\n"
25401 "\n"
25402 msgstr ""
25403
25404 #. type: verbatim
25405 #: ../resize/virt-resize.pod:526
25406 #, no-wrap
25407 msgid ""
25408 " --resize /dev/sda1=-10%\n"
25409 "\n"
25410 msgstr ""
25411
25412 #. type: textblock
25413 #: ../resize/virt-resize.pod:528
25414 msgid ""
25415 "You can increase the size of any partition.  Virt-resize will expand the "
25416 "direct content of the partition if it knows how (see I<--expand> below)."
25417 msgstr ""
25418
25419 #. type: textblock
25420 #: ../resize/virt-resize.pod:532
25421 msgid ""
25422 "You can only I<decrease> the size of partitions that contain filesystems or "
25423 "PVs which have already been shrunk.  Virt-resize will check this has been "
25424 "done before proceeding, or else will print an error (see also I<--resize-"
25425 "force>)."
25426 msgstr ""
25427
25428 #. type: =item
25429 #: ../resize/virt-resize.pod:539
25430 msgid "B<--resize-force part=size>"
25431 msgstr ""
25432
25433 #. type: textblock
25434 #: ../resize/virt-resize.pod:541
25435 msgid ""
25436 "This is the same as I<--resize> except that it will let you decrease the "
25437 "size of any partition.  Generally this means you will lose any data which "
25438 "was at the end of the partition you shrink, but you may not care about that "
25439 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25440 "as a swap partition)."
25441 msgstr ""
25442
25443 #. type: textblock
25444 #: ../resize/virt-resize.pod:547
25445 msgid "See also the I<--ignore> option."
25446 msgstr ""
25447
25448 #. type: =item
25449 #: ../resize/virt-resize.pod:549
25450 msgid "B<--shrink part>"
25451 msgstr ""
25452
25453 #. type: textblock
25454 #: ../resize/virt-resize.pod:551
25455 msgid ""
25456 "Shrink the named partition until the overall disk image fits in the "
25457 "destination.  The named partition B<must> contain a filesystem or PV which "
25458 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25459 "online tools).  Virt-resize will check this and give an error if it has not "
25460 "been done."
25461 msgstr ""
25462
25463 #. type: textblock
25464 #: ../resize/virt-resize.pod:557
25465 msgid ""
25466 "The amount by which the overall disk must be shrunk (after carrying out all "
25467 "other operations requested by the user) is called the \"deficit\".  For "
25468 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25469 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25470 "would give an error unless the user specified a partition to shrink and that "
25471 "partition had more than a gigabyte of free space."
25472 msgstr ""
25473
25474 #. type: =head1
25475 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
25476 msgid "MACHINE READABLE OUTPUT"
25477 msgstr ""
25478
25479 #. type: textblock
25480 #: ../resize/virt-resize.pod:577
25481 msgid ""
25482 "The I<--machine-readable> option can be used to make the output more machine "
25483 "friendly, which is useful when calling virt-resize from other programs, GUIs "
25484 "etc."
25485 msgstr ""
25486
25487 #. type: textblock
25488 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:207
25489 msgid "There are two ways to use this option."
25490 msgstr ""
25491
25492 #. type: textblock
25493 #: ../resize/virt-resize.pod:583
25494 msgid ""
25495 "Firstly use the option on its own to query the capabilities of the virt-"
25496 "resize binary.  Typical output looks like this:"
25497 msgstr ""
25498
25499 #. type: verbatim
25500 #: ../resize/virt-resize.pod:586
25501 #, no-wrap
25502 msgid ""
25503 " $ virt-resize --machine-readable\n"
25504 " virt-resize\n"
25505 " ntfsresize-force\n"
25506 " 32bitok\n"
25507 " ntfs\n"
25508 " btrfs\n"
25509 "\n"
25510 msgstr ""
25511
25512 #. type: textblock
25513 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
25514 msgid ""
25515 "A list of features is printed, one per line, and the program exits with "
25516 "status 0."
25517 msgstr ""
25518
25519 #. type: textblock
25520 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:220
25521 msgid ""
25522 "Secondly use the option in conjunction with other options to make the "
25523 "regular program output more machine friendly."
25524 msgstr ""
25525
25526 #. type: textblock
25527 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
25528 msgid "At the moment this means:"
25529 msgstr ""
25530
25531 #. type: textblock
25532 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:229
25533 msgid ""
25534 "Progress bar messages can be parsed from stdout by looking for this regular "
25535 "expression:"
25536 msgstr ""
25537
25538 #. type: verbatim
25539 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:232
25540 #, no-wrap
25541 msgid ""
25542 " ^[0-9]+/[0-9]+$\n"
25543 "\n"
25544 msgstr ""
25545
25546 #. type: textblock
25547 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:236
25548 msgid ""
25549 "The calling program should treat messages sent to stdout (except for "
25550 "progress bar messages) as status messages.  They can be logged and/or "
25551 "displayed to the user."
25552 msgstr ""
25553
25554 #. type: textblock
25555 #: ../resize/virt-resize.pod:618
25556 msgid ""
25557 "The calling program should treat messages sent to stderr as error messages.  "
25558 "In addition, virt-resize exits with a non-zero status code if there was a "
25559 "fatal error."
25560 msgstr ""
25561
25562 #. type: textblock
25563 #: ../resize/virt-resize.pod:624
25564 msgid ""
25565 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
25566 "readable> option and will return an error."
25567 msgstr ""
25568
25569 #. type: =head2
25570 #: ../resize/virt-resize.pod:629
25571 msgid "\"Partition 1 does not end on cylinder boundary.\""
25572 msgstr ""
25573
25574 #. type: textblock
25575 #: ../resize/virt-resize.pod:631
25576 msgid ""
25577 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
25578 "alignment> parameter).  Usually this means the partitions will not be "
25579 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
25580 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
25581 "drives.  Alignment of partitions to cylinders is not required by any modern "
25582 "operating system."
25583 msgstr ""
25584
25585 #. type: =head2
25586 #: ../resize/virt-resize.pod:638
25587 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25588 msgstr ""
25589
25590 #. type: textblock
25591 #: ../resize/virt-resize.pod:640
25592 msgid ""
25593 "In Windows Vista and later versions, Microsoft switched to using a separate "
25594 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25595 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
25596 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
25597 "the second partition (ie. C: drive)  should work."
25598 msgstr ""
25599
25600 #. type: textblock
25601 #: ../resize/virt-resize.pod:647
25602 msgid ""
25603 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25604 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25605 "it find errors) is nothing to worry about."
25606 msgstr ""
25607
25608 #. type: =head2
25609 #: ../resize/virt-resize.pod:651
25610 msgid "GUEST BOOT STUCK AT \"GRUB\""
25611 msgstr ""
25612
25613 #. type: textblock
25614 #: ../resize/virt-resize.pod:653
25615 msgid ""
25616 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25617 "printing C<GRUB> on the console, try reinstalling grub."
25618 msgstr ""
25619
25620 #. type: verbatim
25621 #: ../resize/virt-resize.pod:656
25622 #, no-wrap
25623 msgid ""
25624 " guestfish -i -a newdisk\n"
25625 " ><fs> cat /boot/grub/device.map\n"
25626 " # check the contents of this file are sensible or\n"
25627 " # edit the file if necessary\n"
25628 " ><fs> grub-install / /dev/vda\n"
25629 " ><fs> exit\n"
25630 "\n"
25631 msgstr ""
25632
25633 #. type: textblock
25634 #: ../resize/virt-resize.pod:663
25635 msgid ""
25636 "For more flexible guest reconfiguration, including if you need to specify "
25637 "other parameters to grub-install, use L<virt-rescue(1)>."
25638 msgstr ""
25639
25640 #. type: =head1
25641 #: ../resize/virt-resize.pod:666
25642 msgid "ALTERNATIVE TOOLS"
25643 msgstr ""
25644
25645 #. type: textblock
25646 #: ../resize/virt-resize.pod:668
25647 msgid ""
25648 "There are several proprietary tools for resizing partitions.  We won't "
25649 "mention any here."
25650 msgstr ""
25651
25652 #. type: textblock
25653 #: ../resize/virt-resize.pod:671
25654 msgid ""
25655 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25656 "operations on disk images.  They can resize and move partitions, but I don't "
25657 "think they can do anything with the contents, and they certainly don't "
25658 "understand LVM."
25659 msgstr ""
25660
25661 #. type: textblock
25662 #: ../resize/virt-resize.pod:676
25663 msgid ""
25664 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25665 "but at a much lower level.  You will probably end up hand-calculating sector "
25666 "offsets, which is something that virt-resize was designed to avoid.  If you "
25667 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25668 "I<--debug> flag."
25669 msgstr ""
25670
25671 #. type: textblock
25672 #: ../resize/virt-resize.pod:696
25673 msgid ""
25674 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
25675 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
25676 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
25677 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
25678 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
25679 msgstr ""
25680
25681 #. type: textblock
25682 #: ../ruby/examples/guestfs-ruby.pod:5
25683 msgid "guestfs-ruby - How to use libguestfs from Ruby"
25684 msgstr ""
25685
25686 #. type: verbatim
25687 #: ../ruby/examples/guestfs-ruby.pod:9
25688 #, no-wrap
25689 msgid ""
25690 " require 'guestfs'\n"
25691 " g = Guestfs::Guestfs.new()\n"
25692 " g.add_drive_opts(\"disk.img\",\n"
25693 "                  :readonly => 1, :format => \"raw\")\n"
25694 " g.launch()\n"
25695 "\n"
25696 msgstr ""
25697
25698 #. type: textblock
25699 #: ../ruby/examples/guestfs-ruby.pod:17
25700 msgid ""
25701 "This manual page documents how to call libguestfs from the Ruby programming "
25702 "language.  This page just documents the differences from the C API and gives "
25703 "some examples.  If you are not familiar with using libguestfs, you also need "
25704 "to read L<guestfs(3)>."
25705 msgstr ""
25706
25707 #. type: textblock
25708 #: ../ruby/examples/guestfs-ruby.pod:24
25709 msgid ""
25710 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
25711 "This has a single parameter which is the error message (a string)."
25712 msgstr ""
25713
25714 #. type: textblock
25715 #: ../ruby/examples/guestfs-ruby.pod:38
25716 msgid ""
25717 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
25718 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
25719 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
25720 msgstr ""
25721
25722 #. type: textblock
25723 #: ../sparsify/virt-sparsify.pod:5
25724 msgid "virt-sparsify - Make a virtual machine disk sparse"
25725 msgstr ""
25726
25727 #. type: verbatim
25728 #: ../sparsify/virt-sparsify.pod:9
25729 #, no-wrap
25730 msgid ""
25731 " virt-sparsify [--options] indisk outdisk\n"
25732 "\n"
25733 msgstr ""
25734
25735 #. type: textblock
25736 #: ../sparsify/virt-sparsify.pod:13
25737 msgid ""
25738 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25739 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
25740 "the disk image can be converted back to free space on the host."
25741 msgstr ""
25742
25743 #. type: textblock
25744 #: ../sparsify/virt-sparsify.pod:18
25745 msgid ""
25746 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25747 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25748 msgstr ""
25749
25750 #. type: textblock
25751 #: ../sparsify/virt-sparsify.pod:21
25752 msgid ""
25753 "Virt-sparsify can also convert between some disk formats, for example "
25754 "converting a raw disk image to a thin-provisioned qcow2 image."
25755 msgstr ""
25756
25757 #. type: textblock
25758 #: ../sparsify/virt-sparsify.pod:24
25759 msgid ""
25760 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25761 "machines.  If a virtual machine has more than one attached disk, you must "
25762 "sparsify each one separately."
25763 msgstr ""
25764
25765 #. type: =head2
25766 #: ../sparsify/virt-sparsify.pod:28
25767 msgid "IMPORTANT LIMITATIONS"
25768 msgstr ""
25769
25770 #. type: textblock
25771 #: ../sparsify/virt-sparsify.pod:34
25772 msgid ""
25773 "Virt-sparsify does not do in-place modifications.  It copies from a source "
25774 "image to a destination image, leaving the source unchanged.  I<Check that "
25775 "the sparsification was successful before deleting the source image>."
25776 msgstr ""
25777
25778 #. type: textblock
25779 #: ../sparsify/virt-sparsify.pod:41
25780 msgid "The virtual machine I<must be shut down> before using this tool."
25781 msgstr ""
25782
25783 #. type: textblock
25784 #: ../sparsify/virt-sparsify.pod:45
25785 msgid ""
25786 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25787 "(1 temporary copy + 1 destination image).  This is in the worst case and "
25788 "usually much less space is required."
25789 msgstr ""
25790
25791 #. type: textblock
25792 #: ../sparsify/virt-sparsify.pod:51
25793 msgid ""
25794 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
25795 msgstr ""
25796
25797 #. type: textblock
25798 #: ../sparsify/virt-sparsify.pod:56
25799 msgid "Virt-sparsify cannot handle encrypted disks."
25800 msgstr ""
25801
25802 #. type: textblock
25803 #: ../sparsify/virt-sparsify.pod:60
25804 msgid ""
25805 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
25806 "this space is often used for critical items like bootloaders so it's not "
25807 "really unused."
25808 msgstr ""
25809
25810 #. type: textblock
25811 #: ../sparsify/virt-sparsify.pod:66
25812 msgid ""
25813 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
25814 "to do this unless we can be sure there is no hibernation data, so at the "
25815 "moment swap partitions are ignored."
25816 msgstr ""
25817
25818 #. type: textblock
25819 #: ../sparsify/virt-sparsify.pod:72
25820 msgid ""
25821 "You may also want to read the manual pages for the associated tools L<virt-"
25822 "filesystems(1)> and L<virt-df(1)> before starting."
25823 msgstr ""
25824
25825 #. type: textblock
25826 #: ../sparsify/virt-sparsify.pod:77
25827 msgid "Typical usage is:"
25828 msgstr ""
25829
25830 #. type: verbatim
25831 #: ../sparsify/virt-sparsify.pod:79
25832 #, no-wrap
25833 msgid ""
25834 " virt-sparsify indisk outdisk\n"
25835 "\n"
25836 msgstr ""
25837
25838 #. type: textblock
25839 #: ../sparsify/virt-sparsify.pod:81
25840 msgid ""
25841 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25842 "is created, or overwritten if it already exists.  The format of the input "
25843 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25844 msgstr ""
25845
25846 #. type: textblock
25847 #: ../sparsify/virt-sparsify.pod:86
25848 msgid "To convert between formats, use the I<--convert> option:"
25849 msgstr ""
25850
25851 #. type: verbatim
25852 #: ../sparsify/virt-sparsify.pod:88
25853 #, no-wrap
25854 msgid ""
25855 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25856 "\n"
25857 msgstr ""
25858
25859 #. type: textblock
25860 #: ../sparsify/virt-sparsify.pod:90
25861 msgid ""
25862 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25863 "can find within the source disk image.  You can get it to ignore (don't zero "
25864 "free space on) certain filesystems by doing:"
25865 msgstr ""
25866
25867 #. type: verbatim
25868 #: ../sparsify/virt-sparsify.pod:94
25869 #, no-wrap
25870 msgid ""
25871 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25872 "\n"
25873 msgstr ""
25874
25875 #. type: textblock
25876 #: ../sparsify/virt-sparsify.pod:96
25877 msgid ""
25878 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25879 msgstr ""
25880
25881 #. type: =item
25882 #: ../sparsify/virt-sparsify.pod:107
25883 msgid "B<--compress>"
25884 msgstr ""
25885
25886 #. type: textblock
25887 #: ../sparsify/virt-sparsify.pod:109
25888 msgid ""
25889 "Compress the output file.  This I<only> works if the output format is "
25890 "C<qcow2>."
25891 msgstr ""
25892
25893 #. type: =item
25894 #: ../sparsify/virt-sparsify.pod:112
25895 msgid "B<--convert> raw"
25896 msgstr ""
25897
25898 #. type: =item
25899 #: ../sparsify/virt-sparsify.pod:114
25900 msgid "B<--convert> qcow2"
25901 msgstr ""
25902
25903 #. type: =item
25904 #: ../sparsify/virt-sparsify.pod:116
25905 msgid "B<--convert> [other formats]"
25906 msgstr ""
25907
25908 #. type: textblock
25909 #: ../sparsify/virt-sparsify.pod:118
25910 msgid ""
25911 "Use C<output-format> as the format for the destination image.  If this is "
25912 "not specified, then the input format is used."
25913 msgstr ""
25914
25915 #. type: textblock
25916 #: ../sparsify/virt-sparsify.pod:121
25917 msgid ""
25918 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
25919 msgstr ""
25920
25921 #. type: textblock
25922 #: ../sparsify/virt-sparsify.pod:123
25923 msgid ""
25924 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25925 "C<vmdk>, but support for other formats is reliant on qemu."
25926 msgstr ""
25927
25928 #. type: textblock
25929 #: ../sparsify/virt-sparsify.pod:126
25930 msgid ""
25931 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25932 "sparsify doesn't need to try to guess the input format."
25933 msgstr ""
25934
25935 #. type: textblock
25936 #: ../sparsify/virt-sparsify.pod:129
25937 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
25938 msgstr ""
25939
25940 #. type: textblock
25941 #: ../sparsify/virt-sparsify.pod:133
25942 msgid ""
25943 "Debug garbage collection and memory allocation.  This is only useful when "
25944 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
25945 msgstr ""
25946
25947 #. type: =item
25948 #: ../sparsify/virt-sparsify.pod:139
25949 msgid "B<--format> qcow2"
25950 msgstr ""
25951
25952 #. type: =item
25953 #: ../sparsify/virt-sparsify.pod:147
25954 msgid "B<--ignore> filesystem"
25955 msgstr ""
25956
25957 #. type: =item
25958 #: ../sparsify/virt-sparsify.pod:149
25959 msgid "B<--ignore> volgroup"
25960 msgstr ""
25961
25962 #. type: textblock
25963 #: ../sparsify/virt-sparsify.pod:151
25964 msgid ""
25965 "Ignore the named filesystem.  Free space on the filesystem will not be "
25966 "zeroed, but existing blocks of zeroes will still be sparsified."
25967 msgstr ""
25968
25969 #. type: textblock
25970 #: ../sparsify/virt-sparsify.pod:154
25971 msgid ""
25972 "In the second form, this ignores the named volume group.  Use the volume "
25973 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25974 msgstr ""
25975
25976 #. type: =item
25977 #: ../sparsify/virt-sparsify.pod:165
25978 msgid "B<-o> option[,option,...]"
25979 msgstr ""
25980
25981 #. type: textblock
25982 #: ../sparsify/virt-sparsify.pod:167
25983 msgid ""
25984 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
25985 "format.  Options available depend on the output format (see I<--convert>) "
25986 "and the installed version of the qemu-img program."
25987 msgstr ""
25988
25989 #. type: textblock
25990 #: ../sparsify/virt-sparsify.pod:171
25991 msgid ""
25992 "You should use I<-o> at most once.  To pass multiple options, separate them "
25993 "with commas, eg:"
25994 msgstr ""
25995
25996 #. type: verbatim
25997 #: ../sparsify/virt-sparsify.pod:174
25998 #, no-wrap
25999 msgid ""
26000 " virt-sparsify --convert qcow2 \\\n"
26001 "   -o cluster_size=512,preallocation=metadata ...\n"
26002 "\n"
26003 msgstr ""
26004
26005 #. type: textblock
26006 #: ../sparsify/virt-sparsify.pod:181
26007 msgid "This disables progress bars and other unnecessary output."
26008 msgstr ""
26009
26010 #. type: textblock
26011 #: ../sparsify/virt-sparsify.pod:203
26012 msgid ""
26013 "The I<--machine-readable> option can be used to make the output more machine "
26014 "friendly, which is useful when calling virt-sparsify from other programs, "
26015 "GUIs etc."
26016 msgstr ""
26017
26018 #. type: textblock
26019 #: ../sparsify/virt-sparsify.pod:209
26020 msgid ""
26021 "Firstly use the option on its own to query the capabilities of the virt-"
26022 "sparsify binary.  Typical output looks like this:"
26023 msgstr ""
26024
26025 #. type: verbatim
26026 #: ../sparsify/virt-sparsify.pod:212
26027 #, no-wrap
26028 msgid ""
26029 " $ virt-sparsify --machine-readable\n"
26030 " virt-sparsify\n"
26031 " ntfs\n"
26032 " btrfs\n"
26033 "\n"
26034 msgstr ""
26035
26036 #. type: textblock
26037 #: ../sparsify/virt-sparsify.pod:242
26038 msgid ""
26039 "The calling program should treat messages sent to stderr as error messages.  "
26040 "In addition, virt-sparsify exits with a non-zero status code if there was a "
26041 "fatal error."
26042 msgstr ""
26043
26044 #. type: textblock
26045 #: ../sparsify/virt-sparsify.pod:248
26046 msgid ""
26047 "All versions of virt-sparsify have supported the I<--machine-readable> "
26048 "option."
26049 msgstr ""
26050
26051 #. type: textblock
26052 #: ../sparsify/virt-sparsify.pod:262
26053 msgid ""
26054 "Location of the temporary directory used for the potentially large temporary "
26055 "overlay file."
26056 msgstr ""
26057
26058 #. type: textblock
26059 #: ../sparsify/virt-sparsify.pod:265
26060 msgid ""
26061 "You should ensure there is enough free space in the worst case for a full "
26062 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
26063 "to another directory that has enough space."
26064 msgstr ""
26065
26066 #. type: textblock
26067 #: ../sparsify/virt-sparsify.pod:269
26068 msgid "This defaults to C</tmp>."
26069 msgstr ""
26070
26071 #. type: textblock
26072 #: ../sparsify/virt-sparsify.pod:273
26073 msgid ""
26074 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
26075 msgstr ""
26076
26077 #. type: textblock
26078 #: ../sparsify/virt-sparsify.pod:277
26079 msgid ""
26080 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
26081 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
26082 "(1)>, L<http://libguestfs.org/>."
26083 msgstr ""
26084
26085 #. type: =head2
26086 #: ../src/guestfs-actions.pod:1
26087 msgid "guestfs_add_cdrom"
26088 msgstr ""
26089
26090 #. type: verbatim
26091 #: ../src/guestfs-actions.pod:3
26092 #, no-wrap
26093 msgid ""
26094 " int\n"
26095 " guestfs_add_cdrom (guestfs_h *g,\n"
26096 "                    const char *filename);\n"
26097 "\n"
26098 msgstr ""
26099
26100 #. type: textblock
26101 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
26102 #: ../src/guestfs-actions.pod:323
26103 msgid ""
26104 "I<This function is deprecated.> In new code, use the L</"
26105 "guestfs_add_drive_opts> call instead."
26106 msgstr ""
26107
26108 #. type: textblock
26109 #: ../src/guestfs-actions.pod:24
26110 msgid ""
26111 "This call checks for the existence of C<filename>.  This stops you from "
26112 "specifying other types of drive which are supported by qemu such as C<nbd:> "
26113 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
26114 "instead."
26115 msgstr ""
26116
26117 #. type: textblock
26118 #: ../src/guestfs-actions.pod:31
26119 msgid ""
26120 "If you just want to add an ISO file (often you use this as an efficient way "
26121 "to transfer large files into the guest), then you should probably use "
26122 "C<guestfs_add_drive_ro> instead."
26123 msgstr ""
26124
26125 #. type: textblock
26126 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
26127 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
26128 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
26129 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
26130 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
26131 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
26132 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
26133 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
26134 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:773
26135 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:890
26136 #: ../src/guestfs-actions.pod:904 ../src/guestfs-actions.pod:918
26137 #: ../src/guestfs-actions.pod:955 ../src/guestfs-actions.pod:1138
26138 #: ../src/guestfs-actions.pod:1158 ../src/guestfs-actions.pod:1176
26139 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1325
26140 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1411
26141 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1517
26142 #: ../src/guestfs-actions.pod:1575 ../src/guestfs-actions.pod:1629
26143 #: ../src/guestfs-actions.pod:1648 ../src/guestfs-actions.pod:1662
26144 #: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1760
26145 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1816
26146 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1971
26147 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2213
26148 #: ../src/guestfs-actions.pod:2235 ../src/guestfs-actions.pod:2322
26149 #: ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2974
26150 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3070
26151 #: ../src/guestfs-actions.pod:4131 ../src/guestfs-actions.pod:4146
26152 #: ../src/guestfs-actions.pod:4171 ../src/guestfs-actions.pod:4373
26153 #: ../src/guestfs-actions.pod:4387 ../src/guestfs-actions.pod:4400
26154 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4429
26155 #: ../src/guestfs-actions.pod:4465 ../src/guestfs-actions.pod:4537
26156 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4574
26157 #: ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4614
26158 #: ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4668
26159 #: ../src/guestfs-actions.pod:4687 ../src/guestfs-actions.pod:4722
26160 #: ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4767
26161 #: ../src/guestfs-actions.pod:4783 ../src/guestfs-actions.pod:4796
26162 #: ../src/guestfs-actions.pod:4811 ../src/guestfs-actions.pod:4828
26163 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5060
26164 #: ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5090
26165 #: ../src/guestfs-actions.pod:5103 ../src/guestfs-actions.pod:5154
26166 #: ../src/guestfs-actions.pod:5172 ../src/guestfs-actions.pod:5190
26167 #: ../src/guestfs-actions.pod:5206 ../src/guestfs-actions.pod:5220
26168 #: ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5251
26169 #: ../src/guestfs-actions.pod:5266 ../src/guestfs-actions.pod:5293
26170 #: ../src/guestfs-actions.pod:5356 ../src/guestfs-actions.pod:5429
26171 #: ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5479
26172 #: ../src/guestfs-actions.pod:5498 ../src/guestfs-actions.pod:5510
26173 #: ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5540
26174 #: ../src/guestfs-actions.pod:5555 ../src/guestfs-actions.pod:5570
26175 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5628
26176 #: ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5687
26177 #: ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5718
26178 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5820
26179 #: ../src/guestfs-actions.pod:5867 ../src/guestfs-actions.pod:5910
26180 #: ../src/guestfs-actions.pod:5938 ../src/guestfs-actions.pod:5955
26181 #: ../src/guestfs-actions.pod:5973 ../src/guestfs-actions.pod:6110
26182 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6189
26183 #: ../src/guestfs-actions.pod:6207 ../src/guestfs-actions.pod:6259
26184 #: ../src/guestfs-actions.pod:6325 ../src/guestfs-actions.pod:6342
26185 #: ../src/guestfs-actions.pod:6355 ../src/guestfs-actions.pod:6369
26186 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6677
26187 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:6710
26188 #: ../src/guestfs-actions.pod:6722 ../src/guestfs-actions.pod:6736
26189 #: ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6762
26190 #: ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6796
26191 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6834
26192 #: ../src/guestfs-actions.pod:6864 ../src/guestfs-actions.pod:6882
26193 #: ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6923
26194 #: ../src/guestfs-actions.pod:6942 ../src/guestfs-actions.pod:6963
26195 #: ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:6999
26196 #: ../src/guestfs-actions.pod:7018 ../src/guestfs-actions.pod:7046
26197 #: ../src/guestfs-actions.pod:7070 ../src/guestfs-actions.pod:7089
26198 #: ../src/guestfs-actions.pod:7105 ../src/guestfs-actions.pod:7129
26199 #: ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7163
26200 #: ../src/guestfs-actions.pod:7182 ../src/guestfs-actions.pod:7226
26201 #: ../src/guestfs-actions.pod:7253 ../src/guestfs-actions.pod:7283
26202 #: ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7516
26203 #: ../src/guestfs-actions.pod:7528 ../src/guestfs-actions.pod:7541
26204 #: ../src/guestfs-actions.pod:7554 ../src/guestfs-actions.pod:7576
26205 #: ../src/guestfs-actions.pod:7589 ../src/guestfs-actions.pod:7602
26206 #: ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:7630
26207 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7706
26208 #: ../src/guestfs-actions.pod:7722 ../src/guestfs-actions.pod:7738
26209 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7768
26210 #: ../src/guestfs-actions.pod:7788 ../src/guestfs-actions.pod:7888
26211 #: ../src/guestfs-actions.pod:7946 ../src/guestfs-actions.pod:7960
26212 #: ../src/guestfs-actions.pod:8001 ../src/guestfs-actions.pod:8014
26213 #: ../src/guestfs-actions.pod:8032 ../src/guestfs-actions.pod:8066
26214 #: ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8218
26215 #: ../src/guestfs-actions.pod:8233 ../src/guestfs-actions.pod:8247
26216 #: ../src/guestfs-actions.pod:8302 ../src/guestfs-actions.pod:8315
26217 #: ../src/guestfs-actions.pod:8360 ../src/guestfs-actions.pod:8400
26218 #: ../src/guestfs-actions.pod:8456 ../src/guestfs-actions.pod:8476
26219 #: ../src/guestfs-actions.pod:8509 ../src/guestfs-actions.pod:8573
26220 #: ../src/guestfs-actions.pod:8596 ../src/guestfs-actions.pod:8622
26221 msgid "This function returns 0 on success or -1 on error."
26222 msgstr ""
26223
26224 #. type: textblock
26225 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
26226 #: ../src/guestfs-actions.pod:1373 ../src/guestfs-actions.pod:2436
26227 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2659
26228 #: ../src/guestfs-actions.pod:4133 ../src/guestfs-actions.pod:4153
26229 #: ../src/guestfs-actions.pod:5604 ../src/guestfs-actions.pod:6884
26230 #: ../src/guestfs-actions.pod:7001 ../src/guestfs-actions.pod:7150
26231 #: ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7757
26232 #: ../src/guestfs-actions.pod:8402
26233 msgid "(Added in 0.3)"
26234 msgstr ""
26235
26236 #. type: =head2
26237 #: ../src/guestfs-actions.pod:41
26238 msgid "guestfs_add_domain"
26239 msgstr ""
26240
26241 #. type: verbatim
26242 #: ../src/guestfs-actions.pod:43
26243 #, no-wrap
26244 msgid ""
26245 " int\n"
26246 " guestfs_add_domain (guestfs_h *g,\n"
26247 "                     const char *dom,\n"
26248 "                     ...);\n"
26249 "\n"
26250 msgstr ""
26251
26252 #. type: textblock
26253 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
26254 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:1253
26255 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1383
26256 #: ../src/guestfs-actions.pod:1452 ../src/guestfs-actions.pod:1505
26257 #: ../src/guestfs-actions.pod:1558 ../src/guestfs-actions.pod:3327
26258 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5305
26259 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5831
26260 #: ../src/guestfs-actions.pod:7799
26261 msgid ""
26262 "You may supply a list of optional arguments to this call.  Use zero or more "
26263 "of the following pairs of parameters, and terminate the list with C<-1> on "
26264 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
26265 msgstr ""
26266
26267 #. type: verbatim
26268 #: ../src/guestfs-actions.pod:53
26269 #, no-wrap
26270 msgid ""
26271 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
26272 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
26273 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
26274 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
26275 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
26276 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
26277 "\n"
26278 msgstr ""
26279
26280 #. type: textblock
26281 #: ../src/guestfs-actions.pod:60
26282 msgid ""
26283 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
26284 "It works by connecting to libvirt, requesting the domain and domain XML from "
26285 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
26286 "one."
26287 msgstr ""
26288
26289 #. type: textblock
26290 #: ../src/guestfs-actions.pod:141
26291 msgid ""
26292 "The other optional parameters are passed directly through to "
26293 "C<guestfs_add_drive_opts>."
26294 msgstr ""
26295
26296 #. type: textblock
26297 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
26298 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:790
26299 #: ../src/guestfs-actions.pod:821 ../src/guestfs-actions.pod:839
26300 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1836
26301 #: ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:2395
26302 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:2557
26303 #: ../src/guestfs-actions.pod:2609 ../src/guestfs-actions.pod:2623
26304 #: ../src/guestfs-actions.pod:2646 ../src/guestfs-actions.pod:2961
26305 #: ../src/guestfs-actions.pod:3445 ../src/guestfs-actions.pod:3463
26306 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:6007
26307 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6439
26308 #: ../src/guestfs-actions.pod:6465 ../src/guestfs-actions.pod:7987
26309 #: ../src/guestfs-actions.pod:8413 ../src/guestfs-actions.pod:8426
26310 #: ../src/guestfs-actions.pod:8439
26311 msgid "On error this function returns -1."
26312 msgstr ""
26313
26314 #. type: textblock
26315 #: ../src/guestfs-actions.pod:146
26316 msgid "(Added in 1.7.4)"
26317 msgstr ""
26318
26319 #. type: =head2
26320 #: ../src/guestfs-actions.pod:148
26321 msgid "guestfs_add_domain_va"
26322 msgstr ""
26323
26324 #. type: verbatim
26325 #: ../src/guestfs-actions.pod:150
26326 #, no-wrap
26327 msgid ""
26328 " int\n"
26329 " guestfs_add_domain_va (guestfs_h *g,\n"
26330 "                        const char *dom,\n"
26331 "                        va_list args);\n"
26332 "\n"
26333 msgstr ""
26334
26335 #. type: textblock
26336 #: ../src/guestfs-actions.pod:155
26337 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
26338 msgstr ""
26339
26340 #. type: textblock
26341 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
26342 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
26343 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:979
26344 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:1294
26345 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1353
26346 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1442
26347 #: ../src/guestfs-actions.pod:1483 ../src/guestfs-actions.pod:1495
26348 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1548
26349 #: ../src/guestfs-actions.pod:1594 ../src/guestfs-actions.pod:1606
26350 #: ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3423
26351 #: ../src/guestfs-actions.pod:4998 ../src/guestfs-actions.pod:5010
26352 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5382
26353 #: ../src/guestfs-actions.pod:5642 ../src/guestfs-actions.pod:5654
26354 #: ../src/guestfs-actions.pod:5880 ../src/guestfs-actions.pod:5891
26355 #: ../src/guestfs-actions.pod:7901 ../src/guestfs-actions.pod:7912
26356 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
26357 msgstr ""
26358
26359 #. type: =head2
26360 #: ../src/guestfs-actions.pod:159
26361 msgid "guestfs_add_domain_argv"
26362 msgstr ""
26363
26364 #. type: verbatim
26365 #: ../src/guestfs-actions.pod:161
26366 #, no-wrap
26367 msgid ""
26368 " int\n"
26369 " guestfs_add_domain_argv (guestfs_h *g,\n"
26370 "                          const char *dom,\n"
26371 "                          const struct guestfs_add_domain_argv *optargs);\n"
26372 "\n"
26373 msgstr ""
26374
26375 #. type: textblock
26376 #: ../src/guestfs-actions.pod:166
26377 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
26378 msgstr ""
26379
26380 #. type: =head2
26381 #: ../src/guestfs-actions.pod:170
26382 msgid "guestfs_add_drive"
26383 msgstr ""
26384
26385 #. type: verbatim
26386 #: ../src/guestfs-actions.pod:172
26387 #, no-wrap
26388 msgid ""
26389 " int\n"
26390 " guestfs_add_drive (guestfs_h *g,\n"
26391 "                    const char *filename);\n"
26392 "\n"
26393 msgstr ""
26394
26395 #. type: textblock
26396 #: ../src/guestfs-actions.pod:176
26397 msgid ""
26398 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26399 "optional parameters, so the disk is added writable, with the format being "
26400 "detected automatically."
26401 msgstr ""
26402
26403 #. type: textblock
26404 #: ../src/guestfs-actions.pod:180
26405 msgid ""
26406 "Automatic detection of the format opens you up to a potential security hole "
26407 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
26408 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
26409 "you should think about replacing calls to this function with calls to "
26410 "C<guestfs_add_drive_opts>, and specifying the format."
26411 msgstr ""
26412
26413 #. type: =head2
26414 #: ../src/guestfs-actions.pod:191
26415 msgid "guestfs_add_drive_opts"
26416 msgstr ""
26417
26418 #. type: verbatim
26419 #: ../src/guestfs-actions.pod:193
26420 #, no-wrap
26421 msgid ""
26422 " int\n"
26423 " guestfs_add_drive_opts (guestfs_h *g,\n"
26424 "                         const char *filename,\n"
26425 "                         ...);\n"
26426 "\n"
26427 msgstr ""
26428
26429 #. type: verbatim
26430 #: ../src/guestfs-actions.pod:203
26431 #, no-wrap
26432 msgid ""
26433 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
26434 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
26435 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
26436 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
26437 "\n"
26438 msgstr ""
26439
26440 #. type: textblock
26441 #: ../src/guestfs-actions.pod:233
26442 msgid ""
26443 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
26444 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
26445 "Possible formats include C<raw> and C<qcow2>."
26446 msgstr ""
26447
26448 #. type: textblock
26449 #: ../src/guestfs-actions.pod:244
26450 msgid ""
26451 "This rarely-used option lets you emulate the behaviour of the deprecated "
26452 "C<guestfs_add_drive_with_if> call (q.v.)"
26453 msgstr ""
26454
26455 #. type: textblock
26456 #: ../src/guestfs-actions.pod:256
26457 msgid "(Added in 1.5.23)"
26458 msgstr ""
26459
26460 #. type: =head2
26461 #: ../src/guestfs-actions.pod:258
26462 msgid "guestfs_add_drive_opts_va"
26463 msgstr ""
26464
26465 #. type: verbatim
26466 #: ../src/guestfs-actions.pod:260
26467 #, no-wrap
26468 msgid ""
26469 " int\n"
26470 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
26471 "                            const char *filename,\n"
26472 "                            va_list args);\n"
26473 "\n"
26474 msgstr ""
26475
26476 #. type: textblock
26477 #: ../src/guestfs-actions.pod:265
26478 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
26479 msgstr ""
26480
26481 #. type: =head2
26482 #: ../src/guestfs-actions.pod:269
26483 msgid "guestfs_add_drive_opts_argv"
26484 msgstr ""
26485
26486 #. type: verbatim
26487 #: ../src/guestfs-actions.pod:271
26488 #, no-wrap
26489 msgid ""
26490 " int\n"
26491 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
26492 "                              const char *filename,\n"
26493 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
26494 "\n"
26495 msgstr ""
26496
26497 #. type: textblock
26498 #: ../src/guestfs-actions.pod:276
26499 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
26500 msgstr ""
26501
26502 #. type: =head2
26503 #: ../src/guestfs-actions.pod:280
26504 msgid "guestfs_add_drive_ro"
26505 msgstr ""
26506
26507 #. type: verbatim
26508 #: ../src/guestfs-actions.pod:282
26509 #, no-wrap
26510 msgid ""
26511 " int\n"
26512 " guestfs_add_drive_ro (guestfs_h *g,\n"
26513 "                       const char *filename);\n"
26514 "\n"
26515 msgstr ""
26516
26517 #. type: textblock
26518 #: ../src/guestfs-actions.pod:286
26519 msgid ""
26520 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
26521 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
26522 "disk is added read-only, with the format being detected automatically."
26523 msgstr ""
26524
26525 #. type: textblock
26526 #: ../src/guestfs-actions.pod:293
26527 msgid "(Added in 1.0.38)"
26528 msgstr ""
26529
26530 #. type: =head2
26531 #: ../src/guestfs-actions.pod:295
26532 msgid "guestfs_add_drive_ro_with_if"
26533 msgstr ""
26534
26535 #. type: verbatim
26536 #: ../src/guestfs-actions.pod:297
26537 #, no-wrap
26538 msgid ""
26539 " int\n"
26540 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
26541 "                               const char *filename,\n"
26542 "                               const char *iface);\n"
26543 "\n"
26544 msgstr ""
26545
26546 #. type: textblock
26547 #: ../src/guestfs-actions.pod:309
26548 msgid ""
26549 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
26550 "QEMU interface emulation to use at run time."
26551 msgstr ""
26552
26553 #. type: textblock
26554 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
26555 #: ../src/guestfs-actions.pod:2920
26556 msgid "(Added in 1.0.84)"
26557 msgstr ""
26558
26559 #. type: =head2
26560 #: ../src/guestfs-actions.pod:316
26561 msgid "guestfs_add_drive_with_if"
26562 msgstr ""
26563
26564 #. type: verbatim
26565 #: ../src/guestfs-actions.pod:318
26566 #, no-wrap
26567 msgid ""
26568 " int\n"
26569 " guestfs_add_drive_with_if (guestfs_h *g,\n"
26570 "                            const char *filename,\n"
26571 "                            const char *iface);\n"
26572 "\n"
26573 msgstr ""
26574
26575 #. type: textblock
26576 #: ../src/guestfs-actions.pod:330
26577 msgid ""
26578 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
26579 "QEMU interface emulation to use at run time."
26580 msgstr ""
26581
26582 #. type: =head2
26583 #: ../src/guestfs-actions.pod:337
26584 msgid "guestfs_aug_clear"
26585 msgstr ""
26586
26587 #. type: verbatim
26588 #: ../src/guestfs-actions.pod:339
26589 #, no-wrap
26590 msgid ""
26591 " int\n"
26592 " guestfs_aug_clear (guestfs_h *g,\n"
26593 "                    const char *augpath);\n"
26594 "\n"
26595 msgstr ""
26596
26597 #. type: textblock
26598 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2648
26599 msgid "(Added in 1.3.4)"
26600 msgstr ""
26601
26602 #. type: =head2
26603 #: ../src/guestfs-actions.pod:350
26604 msgid "guestfs_aug_close"
26605 msgstr ""
26606
26607 #. type: verbatim
26608 #: ../src/guestfs-actions.pod:352
26609 #, no-wrap
26610 msgid ""
26611 " int\n"
26612 " guestfs_aug_close (guestfs_h *g);\n"
26613 "\n"
26614 msgstr ""
26615
26616 #. type: textblock
26617 #: ../src/guestfs-actions.pod:355
26618 msgid ""
26619 "Close the current Augeas handle and free up any resources used by it.  After "
26620 "calling this, you have to call C<guestfs_aug_init> again before you can use "
26621 "any other Augeas functions."
26622 msgstr ""
26623
26624 #. type: textblock
26625 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
26626 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
26627 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
26628 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
26629 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
26630 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
26631 #: ../src/guestfs-actions.pod:6516
26632 msgid "(Added in 0.7)"
26633 msgstr ""
26634
26635 #. type: =head2
26636 #: ../src/guestfs-actions.pod:364
26637 msgid "guestfs_aug_defnode"
26638 msgstr ""
26639
26640 #. type: verbatim
26641 #: ../src/guestfs-actions.pod:366
26642 #, no-wrap
26643 msgid ""
26644 " struct guestfs_int_bool *\n"
26645 " guestfs_aug_defnode (guestfs_h *g,\n"
26646 "                      const char *name,\n"
26647 "                      const char *expr,\n"
26648 "                      const char *val);\n"
26649 "\n"
26650 msgstr ""
26651
26652 #. type: textblock
26653 #: ../src/guestfs-actions.pod:375
26654 msgid ""
26655 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
26656 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
26657 "containing that single node."
26658 msgstr ""
26659
26660 #. type: textblock
26661 #: ../src/guestfs-actions.pod:383
26662 msgid ""
26663 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
26664 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
26665 msgstr ""
26666
26667 #. type: =head2
26668 #: ../src/guestfs-actions.pod:389
26669 msgid "guestfs_aug_defvar"
26670 msgstr ""
26671
26672 #. type: verbatim
26673 #: ../src/guestfs-actions.pod:391
26674 #, no-wrap
26675 msgid ""
26676 " int\n"
26677 " guestfs_aug_defvar (guestfs_h *g,\n"
26678 "                     const char *name,\n"
26679 "                     const char *expr);\n"
26680 "\n"
26681 msgstr ""
26682
26683 #. type: =head2
26684 #: ../src/guestfs-actions.pod:407
26685 msgid "guestfs_aug_get"
26686 msgstr ""
26687
26688 #. type: verbatim
26689 #: ../src/guestfs-actions.pod:409
26690 #, no-wrap
26691 msgid ""
26692 " char *\n"
26693 " guestfs_aug_get (guestfs_h *g,\n"
26694 "                  const char *augpath);\n"
26695 "\n"
26696 msgstr ""
26697
26698 #. type: textblock
26699 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:1019
26700 #: ../src/guestfs-actions.pod:1037 ../src/guestfs-actions.pod:1097
26701 #: ../src/guestfs-actions.pod:1113 ../src/guestfs-actions.pod:1216
26702 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1722
26703 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1875
26704 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:2175
26705 #: ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2355
26706 #: ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:2465
26707 #: ../src/guestfs-actions.pod:2486 ../src/guestfs-actions.pod:2671
26708 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:3089
26709 #: ../src/guestfs-actions.pod:3191 ../src/guestfs-actions.pod:3295
26710 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3529
26711 #: ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3578
26712 #: ../src/guestfs-actions.pod:3612 ../src/guestfs-actions.pod:3679
26713 #: ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3719
26714 #: ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4706
26715 #: ../src/guestfs-actions.pod:4873 ../src/guestfs-actions.pod:5132
26716 #: ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6226
26717 #: ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6592
26718 #: ../src/guestfs-actions.pod:6641 ../src/guestfs-actions.pod:7301
26719 #: ../src/guestfs-actions.pod:7317 ../src/guestfs-actions.pod:7341
26720 #: ../src/guestfs-actions.pod:7365 ../src/guestfs-actions.pod:8161
26721 #: ../src/guestfs-actions.pod:8180 ../src/guestfs-actions.pod:8198
26722 #: ../src/guestfs-actions.pod:8372 ../src/guestfs-actions.pod:8686
26723 msgid ""
26724 "This function returns a string, or NULL on error.  I<The caller must free "
26725 "the returned string after use>."
26726 msgstr ""
26727
26728 #. type: =head2
26729 #: ../src/guestfs-actions.pod:421
26730 msgid "guestfs_aug_init"
26731 msgstr ""
26732
26733 #. type: verbatim
26734 #: ../src/guestfs-actions.pod:423
26735 #, no-wrap
26736 msgid ""
26737 " int\n"
26738 " guestfs_aug_init (guestfs_h *g,\n"
26739 "                   const char *root,\n"
26740 "                   int flags);\n"
26741 "\n"
26742 msgstr ""
26743
26744 #. type: textblock
26745 #: ../src/guestfs-actions.pod:432
26746 msgid "You must call this before using any other C<guestfs_aug_*> commands."
26747 msgstr ""
26748
26749 #. type: textblock
26750 #: ../src/guestfs-actions.pod:457
26751 msgid ""
26752 "This option is only useful when debugging Augeas lenses.  Use of this option "
26753 "may require additional memory for the libguestfs appliance.  You may need to "
26754 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
26755 "C<guestfs_set_memsize>."
26756 msgstr ""
26757
26758 #. type: textblock
26759 #: ../src/guestfs-actions.pod:472
26760 msgid "Do not load the tree in C<guestfs_aug_init>."
26761 msgstr ""
26762
26763 #. type: textblock
26764 #: ../src/guestfs-actions.pod:476
26765 msgid "To close the handle, you can call C<guestfs_aug_close>."
26766 msgstr ""
26767
26768 #. type: =head2
26769 #: ../src/guestfs-actions.pod:484
26770 msgid "guestfs_aug_insert"
26771 msgstr ""
26772
26773 #. type: verbatim
26774 #: ../src/guestfs-actions.pod:486
26775 #, no-wrap
26776 msgid ""
26777 " int\n"
26778 " guestfs_aug_insert (guestfs_h *g,\n"
26779 "                     const char *augpath,\n"
26780 "                     const char *label,\n"
26781 "                     int before);\n"
26782 "\n"
26783 msgstr ""
26784
26785 #. type: =head2
26786 #: ../src/guestfs-actions.pod:504
26787 msgid "guestfs_aug_load"
26788 msgstr ""
26789
26790 #. type: verbatim
26791 #: ../src/guestfs-actions.pod:506
26792 #, no-wrap
26793 msgid ""
26794 " int\n"
26795 " guestfs_aug_load (guestfs_h *g);\n"
26796 "\n"
26797 msgstr ""
26798
26799 #. type: =head2
26800 #: ../src/guestfs-actions.pod:518
26801 msgid "guestfs_aug_ls"
26802 msgstr ""
26803
26804 #. type: verbatim
26805 #: ../src/guestfs-actions.pod:520
26806 #, no-wrap
26807 msgid ""
26808 " char **\n"
26809 " guestfs_aug_ls (guestfs_h *g,\n"
26810 "                 const char *augpath);\n"
26811 "\n"
26812 msgstr ""
26813
26814 #. type: textblock
26815 #: ../src/guestfs-actions.pod:524
26816 msgid ""
26817 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26818 "sorting the resulting nodes into alphabetical order."
26819 msgstr ""
26820
26821 #. type: textblock
26822 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
26823 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1235
26824 #: ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:1909
26825 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2031
26826 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2743
26827 #: ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:2778
26828 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2867
26829 #: ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2987
26830 #: ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3631
26831 #: ../src/guestfs-actions.pod:3915 ../src/guestfs-actions.pod:4229
26832 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4266
26833 #: ../src/guestfs-actions.pod:4321 ../src/guestfs-actions.pod:4341
26834 #: ../src/guestfs-actions.pod:4446 ../src/guestfs-actions.pod:4845
26835 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:6386
26836 #: ../src/guestfs-actions.pod:6512 ../src/guestfs-actions.pod:6626
26837 #: ../src/guestfs-actions.pod:7381 ../src/guestfs-actions.pod:7442
26838 #: ../src/guestfs-actions.pod:7497 ../src/guestfs-actions.pod:7643
26839 #: ../src/guestfs-actions.pod:7667 ../src/guestfs-actions.pod:8265
26840 #: ../src/guestfs-actions.pod:8285 ../src/guestfs-actions.pod:8332
26841 #: ../src/guestfs-actions.pod:8526 ../src/guestfs-actions.pod:8545
26842 #: ../src/guestfs-actions.pod:8636 ../src/guestfs-actions.pod:8655
26843 #: ../src/guestfs-actions.pod:8701 ../src/guestfs-actions.pod:8720
26844 msgid ""
26845 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26846 ">), or NULL if there was an error.  I<The caller must free the strings and "
26847 "the array after use>."
26848 msgstr ""
26849
26850 #. type: textblock
26851 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1160
26852 #: ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1947
26853 #: ../src/guestfs-actions.pod:3993 ../src/guestfs-actions.pod:4024
26854 #: ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4736
26855 #: ../src/guestfs-actions.pod:5072 ../src/guestfs-actions.pod:5105
26856 #: ../src/guestfs-actions.pod:5268 ../src/guestfs-actions.pod:5755
26857 #: ../src/guestfs-actions.pod:6327 ../src/guestfs-actions.pod:6724
26858 #: ../src/guestfs-actions.pod:6738 ../src/guestfs-actions.pod:6750
26859 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:8003
26860 #: ../src/guestfs-actions.pod:8016 ../src/guestfs-actions.pod:8249
26861 #: ../src/guestfs-actions.pod:8514
26862 msgid "(Added in 0.8)"
26863 msgstr ""
26864
26865 #. type: =head2
26866 #: ../src/guestfs-actions.pod:533
26867 msgid "guestfs_aug_match"
26868 msgstr ""
26869
26870 #. type: verbatim
26871 #: ../src/guestfs-actions.pod:535
26872 #, no-wrap
26873 msgid ""
26874 " char **\n"
26875 " guestfs_aug_match (guestfs_h *g,\n"
26876 "                    const char *augpath);\n"
26877 "\n"
26878 msgstr ""
26879
26880 #. type: =head2
26881 #: ../src/guestfs-actions.pod:549
26882 msgid "guestfs_aug_mv"
26883 msgstr ""
26884
26885 #. type: verbatim
26886 #: ../src/guestfs-actions.pod:551
26887 #, no-wrap
26888 msgid ""
26889 " int\n"
26890 " guestfs_aug_mv (guestfs_h *g,\n"
26891 "                 const char *src,\n"
26892 "                 const char *dest);\n"
26893 "\n"
26894 msgstr ""
26895
26896 #. type: =head2
26897 #: ../src/guestfs-actions.pod:563
26898 msgid "guestfs_aug_rm"
26899 msgstr ""
26900
26901 #. type: verbatim
26902 #: ../src/guestfs-actions.pod:565
26903 #, no-wrap
26904 msgid ""
26905 " int\n"
26906 " guestfs_aug_rm (guestfs_h *g,\n"
26907 "                 const char *augpath);\n"
26908 "\n"
26909 msgstr ""
26910
26911 #. type: =head2
26912 #: ../src/guestfs-actions.pod:577
26913 msgid "guestfs_aug_save"
26914 msgstr ""
26915
26916 #. type: verbatim
26917 #: ../src/guestfs-actions.pod:579
26918 #, no-wrap
26919 msgid ""
26920 " int\n"
26921 " guestfs_aug_save (guestfs_h *g);\n"
26922 "\n"
26923 msgstr ""
26924
26925 #. type: textblock
26926 #: ../src/guestfs-actions.pod:584
26927 msgid ""
26928 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26929 "are saved."
26930 msgstr ""
26931
26932 #. type: =head2
26933 #: ../src/guestfs-actions.pod:591
26934 msgid "guestfs_aug_set"
26935 msgstr ""
26936
26937 #. type: verbatim
26938 #: ../src/guestfs-actions.pod:593
26939 #, no-wrap
26940 msgid ""
26941 " int\n"
26942 " guestfs_aug_set (guestfs_h *g,\n"
26943 "                  const char *augpath,\n"
26944 "                  const char *val);\n"
26945 "\n"
26946 msgstr ""
26947
26948 #. type: textblock
26949 #: ../src/guestfs-actions.pod:600
26950 msgid ""
26951 "In the Augeas API, it is possible to clear a node by setting the value to "
26952 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26953 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26954 msgstr ""
26955
26956 #. type: =head2
26957 #: ../src/guestfs-actions.pod:609
26958 msgid "guestfs_available"
26959 msgstr ""
26960
26961 #. type: verbatim
26962 #: ../src/guestfs-actions.pod:611
26963 #, no-wrap
26964 msgid ""
26965 " int\n"
26966 " guestfs_available (guestfs_h *g,\n"
26967 "                    char *const *groups);\n"
26968 "\n"
26969 msgstr ""
26970
26971 #. type: textblock
26972 #: ../src/guestfs-actions.pod:619
26973 msgid ""
26974 "The libguestfs groups, and the functions that those groups correspond to, "
26975 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26976 "runtime by calling C<guestfs_available_all_groups>."
26977 msgstr ""
26978
26979 #. type: textblock
26980 #: ../src/guestfs-actions.pod:643
26981 msgid "You must call C<guestfs_launch> before calling this function."
26982 msgstr ""
26983
26984 #. type: textblock
26985 #: ../src/guestfs-actions.pod:665
26986 msgid ""
26987 "This call was added in version C<1.0.80>.  In previous versions of "
26988 "libguestfs all you could do would be to speculatively execute a command to "
26989 "find out if the daemon implemented it.  See also C<guestfs_version>."
26990 msgstr ""
26991
26992 #. type: textblock
26993 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1692
26994 msgid "(Added in 1.0.80)"
26995 msgstr ""
26996
26997 #. type: =head2
26998 #: ../src/guestfs-actions.pod:676
26999 msgid "guestfs_available_all_groups"
27000 msgstr ""
27001
27002 #. type: verbatim
27003 #: ../src/guestfs-actions.pod:678
27004 #, no-wrap
27005 msgid ""
27006 " char **\n"
27007 " guestfs_available_all_groups (guestfs_h *g);\n"
27008 "\n"
27009 msgstr ""
27010
27011 #. type: textblock
27012 #: ../src/guestfs-actions.pod:681
27013 msgid ""
27014 "This command returns a list of all optional groups that this daemon knows "
27015 "about.  Note this returns both supported and unsupported groups.  To find "
27016 "out which ones the daemon can actually support you have to call "
27017 "C<guestfs_available> on each member of the returned list."
27018 msgstr ""
27019
27020 #. type: textblock
27021 #: ../src/guestfs-actions.pod:687
27022 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
27023 msgstr ""
27024
27025 #. type: textblock
27026 #: ../src/guestfs-actions.pod:693
27027 msgid "(Added in 1.3.15)"
27028 msgstr ""
27029
27030 #. type: =head2
27031 #: ../src/guestfs-actions.pod:695
27032 msgid "guestfs_base64_in"
27033 msgstr ""
27034
27035 #. type: verbatim
27036 #: ../src/guestfs-actions.pod:697
27037 #, no-wrap
27038 msgid ""
27039 " int\n"
27040 " guestfs_base64_in (guestfs_h *g,\n"
27041 "                    const char *base64file,\n"
27042 "                    const char *filename);\n"
27043 "\n"
27044 msgstr ""
27045
27046 #. type: textblock
27047 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
27048 msgid "(Added in 1.3.5)"
27049 msgstr ""
27050
27051 #. type: =head2
27052 #: ../src/guestfs-actions.pod:709
27053 msgid "guestfs_base64_out"
27054 msgstr ""
27055
27056 #. type: verbatim
27057 #: ../src/guestfs-actions.pod:711
27058 #, no-wrap
27059 msgid ""
27060 " int\n"
27061 " guestfs_base64_out (guestfs_h *g,\n"
27062 "                     const char *filename,\n"
27063 "                     const char *base64file);\n"
27064 "\n"
27065 msgstr ""
27066
27067 #. type: =head2
27068 #: ../src/guestfs-actions.pod:723
27069 msgid "guestfs_blkid"
27070 msgstr ""
27071
27072 #. type: verbatim
27073 #: ../src/guestfs-actions.pod:725
27074 #, no-wrap
27075 msgid ""
27076 " char **\n"
27077 " guestfs_blkid (guestfs_h *g,\n"
27078 "                const char *device);\n"
27079 "\n"
27080 msgstr ""
27081
27082 #. type: textblock
27083 #: ../src/guestfs-actions.pod:756 ../src/guestfs-actions.pod:3231
27084 #: ../src/guestfs-actions.pod:3499 ../src/guestfs-actions.pod:4306
27085 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5731
27086 #: ../src/guestfs-actions.pod:7928
27087 msgid ""
27088 "This function returns a NULL-terminated array of strings, or NULL if there "
27089 "was an error.  The array of strings will always have length C<2n+1>, where "
27090 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
27091 "caller must free the strings and the array after use>."
27092 msgstr ""
27093
27094 #. type: =head2
27095 #: ../src/guestfs-actions.pod:762
27096 msgid "guestfs_blockdev_flushbufs"
27097 msgstr ""
27098
27099 #. type: verbatim
27100 #: ../src/guestfs-actions.pod:764
27101 #, no-wrap
27102 msgid ""
27103 " int\n"
27104 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27105 "                             const char *device);\n"
27106 "\n"
27107 msgstr ""
27108
27109 #. type: textblock
27110 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:792
27111 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:823
27112 #: ../src/guestfs-actions.pod:841 ../src/guestfs-actions.pod:860
27113 #: ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:892
27114 #: ../src/guestfs-actions.pod:906 ../src/guestfs-actions.pod:920
27115 msgid "(Added in 0.9.3)"
27116 msgstr ""
27117
27118 #. type: =head2
27119 #: ../src/guestfs-actions.pod:777
27120 msgid "guestfs_blockdev_getbsz"
27121 msgstr ""
27122
27123 #. type: verbatim
27124 #: ../src/guestfs-actions.pod:779
27125 #, no-wrap
27126 msgid ""
27127 " int\n"
27128 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27129 "                          const char *device);\n"
27130 "\n"
27131 msgstr ""
27132
27133 #. type: =head2
27134 #: ../src/guestfs-actions.pod:794
27135 msgid "guestfs_blockdev_getro"
27136 msgstr ""
27137
27138 #. type: verbatim
27139 #: ../src/guestfs-actions.pod:796
27140 #, no-wrap
27141 msgid ""
27142 " int\n"
27143 " guestfs_blockdev_getro (guestfs_h *g,\n"
27144 "                         const char *device);\n"
27145 "\n"
27146 msgstr ""
27147
27148 #. type: textblock
27149 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:1930
27150 #: ../src/guestfs-actions.pod:1945 ../src/guestfs-actions.pod:2434
27151 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2517
27152 #: ../src/guestfs-actions.pod:2543 ../src/guestfs-actions.pod:2583
27153 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2634
27154 #: ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:3736
27155 #: ../src/guestfs-actions.pod:3752 ../src/guestfs-actions.pod:3770
27156 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:3946
27157 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:3975
27158 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4006
27159 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:4036
27160 #: ../src/guestfs-actions.pod:4049 ../src/guestfs-actions.pod:4063
27161 #: ../src/guestfs-actions.pod:4078 ../src/guestfs-actions.pod:4093
27162 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4120
27163 #: ../src/guestfs-actions.pod:5989
27164 msgid "This function returns a C truth value on success or -1 on error."
27165 msgstr ""
27166
27167 #. type: =head2
27168 #: ../src/guestfs-actions.pod:809
27169 msgid "guestfs_blockdev_getsize64"
27170 msgstr ""
27171
27172 #. type: verbatim
27173 #: ../src/guestfs-actions.pod:811
27174 #, no-wrap
27175 msgid ""
27176 " int64_t\n"
27177 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27178 "                             const char *device);\n"
27179 "\n"
27180 msgstr ""
27181
27182 #. type: textblock
27183 #: ../src/guestfs-actions.pod:817
27184 msgid "See also C<guestfs_blockdev_getsz>."
27185 msgstr ""
27186
27187 #. type: =head2
27188 #: ../src/guestfs-actions.pod:825
27189 msgid "guestfs_blockdev_getss"
27190 msgstr ""
27191
27192 #. type: verbatim
27193 #: ../src/guestfs-actions.pod:827
27194 #, no-wrap
27195 msgid ""
27196 " int\n"
27197 " guestfs_blockdev_getss (guestfs_h *g,\n"
27198 "                         const char *device);\n"
27199 "\n"
27200 msgstr ""
27201
27202 #. type: textblock
27203 #: ../src/guestfs-actions.pod:834
27204 msgid ""
27205 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
27206 "that)."
27207 msgstr ""
27208
27209 #. type: =head2
27210 #: ../src/guestfs-actions.pod:843
27211 msgid "guestfs_blockdev_getsz"
27212 msgstr ""
27213
27214 #. type: verbatim
27215 #: ../src/guestfs-actions.pod:845
27216 #, no-wrap
27217 msgid ""
27218 " int64_t\n"
27219 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27220 "                         const char *device);\n"
27221 "\n"
27222 msgstr ""
27223
27224 #. type: textblock
27225 #: ../src/guestfs-actions.pod:852
27226 msgid ""
27227 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
27228 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
27229 msgstr ""
27230
27231 #. type: =head2
27232 #: ../src/guestfs-actions.pod:862
27233 msgid "guestfs_blockdev_rereadpt"
27234 msgstr ""
27235
27236 #. type: verbatim
27237 #: ../src/guestfs-actions.pod:864
27238 #, no-wrap
27239 msgid ""
27240 " int\n"
27241 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27242 "                            const char *device);\n"
27243 "\n"
27244 msgstr ""
27245
27246 #. type: =head2
27247 #: ../src/guestfs-actions.pod:876
27248 msgid "guestfs_blockdev_setbsz"
27249 msgstr ""
27250
27251 #. type: verbatim
27252 #: ../src/guestfs-actions.pod:878
27253 #, no-wrap
27254 msgid ""
27255 " int\n"
27256 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27257 "                          const char *device,\n"
27258 "                          int blocksize);\n"
27259 "\n"
27260 msgstr ""
27261
27262 #. type: =head2
27263 #: ../src/guestfs-actions.pod:894
27264 msgid "guestfs_blockdev_setro"
27265 msgstr ""
27266
27267 #. type: verbatim
27268 #: ../src/guestfs-actions.pod:896
27269 #, no-wrap
27270 msgid ""
27271 " int\n"
27272 " guestfs_blockdev_setro (guestfs_h *g,\n"
27273 "                         const char *device);\n"
27274 "\n"
27275 msgstr ""
27276
27277 #. type: =head2
27278 #: ../src/guestfs-actions.pod:908
27279 msgid "guestfs_blockdev_setrw"
27280 msgstr ""
27281
27282 #. type: verbatim
27283 #: ../src/guestfs-actions.pod:910
27284 #, no-wrap
27285 msgid ""
27286 " int\n"
27287 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27288 "                         const char *device);\n"
27289 "\n"
27290 msgstr ""
27291
27292 #. type: =head2
27293 #: ../src/guestfs-actions.pod:922
27294 msgid "guestfs_btrfs_filesystem_resize"
27295 msgstr ""
27296
27297 #. type: verbatim
27298 #: ../src/guestfs-actions.pod:924
27299 #, no-wrap
27300 msgid ""
27301 " int\n"
27302 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27303 "                                  const char *mountpoint,\n"
27304 "                                  ...);\n"
27305 "\n"
27306 msgstr ""
27307
27308 #. type: verbatim
27309 #: ../src/guestfs-actions.pod:934
27310 #, no-wrap
27311 msgid ""
27312 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27313 "\n"
27314 msgstr ""
27315
27316 #. type: textblock
27317 #: ../src/guestfs-actions.pod:957
27318 msgid "(Added in 1.11.17)"
27319 msgstr ""
27320
27321 #. type: =head2
27322 #: ../src/guestfs-actions.pod:959
27323 msgid "guestfs_btrfs_filesystem_resize_va"
27324 msgstr ""
27325
27326 #. type: verbatim
27327 #: ../src/guestfs-actions.pod:961
27328 #, no-wrap
27329 msgid ""
27330 " int\n"
27331 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27332 "                                     const char *mountpoint,\n"
27333 "                                     va_list args);\n"
27334 "\n"
27335 msgstr ""
27336
27337 #. type: textblock
27338 #: ../src/guestfs-actions.pod:966
27339 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
27340 msgstr ""
27341
27342 #. type: =head2
27343 #: ../src/guestfs-actions.pod:970
27344 msgid "guestfs_btrfs_filesystem_resize_argv"
27345 msgstr ""
27346
27347 #. type: verbatim
27348 #: ../src/guestfs-actions.pod:972
27349 #, no-wrap
27350 msgid ""
27351 " int\n"
27352 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27353 "                                       const char *mountpoint,\n"
27354 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27355 "\n"
27356 msgstr ""
27357
27358 #. type: textblock
27359 #: ../src/guestfs-actions.pod:977
27360 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
27361 msgstr ""
27362
27363 #. type: =head2
27364 #: ../src/guestfs-actions.pod:981
27365 msgid "guestfs_case_sensitive_path"
27366 msgstr ""
27367
27368 #. type: verbatim
27369 #: ../src/guestfs-actions.pod:983
27370 #, no-wrap
27371 msgid ""
27372 " char *\n"
27373 " guestfs_case_sensitive_path (guestfs_h *g,\n"
27374 "                              const char *path);\n"
27375 "\n"
27376 msgstr ""
27377
27378 #. type: textblock
27379 #: ../src/guestfs-actions.pod:1009
27380 msgid ""
27381 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
27382 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
27383 "how the directories were originally created under Windows)."
27384 msgstr ""
27385
27386 #. type: textblock
27387 #: ../src/guestfs-actions.pod:1017
27388 msgid "See also C<guestfs_realpath>."
27389 msgstr ""
27390
27391 #. type: textblock
27392 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:8183
27393 msgid "(Added in 1.0.75)"
27394 msgstr ""
27395
27396 #. type: =head2
27397 #: ../src/guestfs-actions.pod:1024
27398 msgid "guestfs_cat"
27399 msgstr ""
27400
27401 #. type: verbatim
27402 #: ../src/guestfs-actions.pod:1026
27403 #, no-wrap
27404 msgid ""
27405 " char *\n"
27406 " guestfs_cat (guestfs_h *g,\n"
27407 "              const char *path);\n"
27408 "\n"
27409 msgstr ""
27410
27411 #. type: textblock
27412 #: ../src/guestfs-actions.pod:1032
27413 msgid ""
27414 "Note that this function cannot correctly handle binary files (specifically, "
27415 "files containing C<\\0> character which is treated as end of string).  For "
27416 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
27417 "functions which have a more complex interface."
27418 msgstr ""
27419
27420 #. type: textblock
27421 #: ../src/guestfs-actions.pod:1043 ../src/guestfs-actions.pod:4250
27422 #: ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4362
27423 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4849
27424 #: ../src/guestfs-actions.pod:4863 ../src/guestfs-actions.pod:6390
27425 #: ../src/guestfs-actions.pod:6404 ../src/guestfs-actions.pod:8336
27426 #: ../src/guestfs-actions.pod:8350
27427 msgid "(Added in 0.4)"
27428 msgstr ""
27429
27430 #. type: =head2
27431 #: ../src/guestfs-actions.pod:1045
27432 msgid "guestfs_checksum"
27433 msgstr ""
27434
27435 #. type: verbatim
27436 #: ../src/guestfs-actions.pod:1047
27437 #, no-wrap
27438 msgid ""
27439 " char *\n"
27440 " guestfs_checksum (guestfs_h *g,\n"
27441 "                   const char *csumtype,\n"
27442 "                   const char *path);\n"
27443 "\n"
27444 msgstr ""
27445
27446 #. type: textblock
27447 #: ../src/guestfs-actions.pod:1093
27448 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
27449 msgstr ""
27450
27451 #. type: textblock
27452 #: ../src/guestfs-actions.pod:1095
27453 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
27454 msgstr ""
27455
27456 #. type: textblock
27457 #: ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1767
27458 #: ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:3948
27459 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4038
27460 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:8039
27461 msgid "(Added in 1.0.2)"
27462 msgstr ""
27463
27464 #. type: =head2
27465 #: ../src/guestfs-actions.pod:1102
27466 msgid "guestfs_checksum_device"
27467 msgstr ""
27468
27469 #. type: verbatim
27470 #: ../src/guestfs-actions.pod:1104
27471 #, no-wrap
27472 msgid ""
27473 " char *\n"
27474 " guestfs_checksum_device (guestfs_h *g,\n"
27475 "                          const char *csumtype,\n"
27476 "                          const char *device);\n"
27477 "\n"
27478 msgstr ""
27479
27480 #. type: textblock
27481 #: ../src/guestfs-actions.pod:1109
27482 msgid ""
27483 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
27484 "device named C<device>.  For the types of checksums supported see the "
27485 "C<guestfs_checksum> command."
27486 msgstr ""
27487
27488 #. type: textblock
27489 #: ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:5822
27490 #: ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:5991
27491 #: ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6191
27492 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7962
27493 #: ../src/guestfs-actions.pod:8362
27494 msgid "(Added in 1.3.2)"
27495 msgstr ""
27496
27497 #. type: =head2
27498 #: ../src/guestfs-actions.pod:1118
27499 msgid "guestfs_checksums_out"
27500 msgstr ""
27501
27502 #. type: verbatim
27503 #: ../src/guestfs-actions.pod:1120
27504 #, no-wrap
27505 msgid ""
27506 " int\n"
27507 " guestfs_checksums_out (guestfs_h *g,\n"
27508 "                        const char *csumtype,\n"
27509 "                        const char *directory,\n"
27510 "                        const char *sumsfile);\n"
27511 "\n"
27512 msgstr ""
27513
27514 #. type: textblock
27515 #: ../src/guestfs-actions.pod:1140
27516 msgid "(Added in 1.3.7)"
27517 msgstr ""
27518
27519 #. type: =head2
27520 #: ../src/guestfs-actions.pod:1142
27521 msgid "guestfs_chmod"
27522 msgstr ""
27523
27524 #. type: verbatim
27525 #: ../src/guestfs-actions.pod:1144
27526 #, no-wrap
27527 msgid ""
27528 " int\n"
27529 " guestfs_chmod (guestfs_h *g,\n"
27530 "                int mode,\n"
27531 "                const char *path);\n"
27532 "\n"
27533 msgstr ""
27534
27535 #. type: =head2
27536 #: ../src/guestfs-actions.pod:1162
27537 msgid "guestfs_chown"
27538 msgstr ""
27539
27540 #. type: verbatim
27541 #: ../src/guestfs-actions.pod:1164
27542 #, no-wrap
27543 msgid ""
27544 " int\n"
27545 " guestfs_chown (guestfs_h *g,\n"
27546 "                int owner,\n"
27547 "                int group,\n"
27548 "                const char *path);\n"
27549 "\n"
27550 msgstr ""
27551
27552 #. type: =head2
27553 #: ../src/guestfs-actions.pod:1180
27554 msgid "guestfs_command"
27555 msgstr ""
27556
27557 #. type: verbatim
27558 #: ../src/guestfs-actions.pod:1182
27559 #, no-wrap
27560 msgid ""
27561 " char *\n"
27562 " guestfs_command (guestfs_h *g,\n"
27563 "                  char *const *arguments);\n"
27564 "\n"
27565 msgstr ""
27566
27567 #. type: textblock
27568 #: ../src/guestfs-actions.pod:1191
27569 msgid ""
27570 "The single parameter is an argv-style list of arguments.  The first element "
27571 "is the name of the program to run.  Subsequent elements are parameters.  The "
27572 "list must be non-empty (ie. must contain a program name).  Note that the "
27573 "command runs directly, and is I<not> invoked via the shell (see "
27574 "C<guestfs_sh>)."
27575 msgstr ""
27576
27577 #. type: textblock
27578 #: ../src/guestfs-actions.pod:1222 ../src/guestfs-actions.pod:1242
27579 #: ../src/guestfs-actions.pod:2066
27580 msgid "(Added in 0.9.1)"
27581 msgstr ""
27582
27583 #. type: =head2
27584 #: ../src/guestfs-actions.pod:1224
27585 msgid "guestfs_command_lines"
27586 msgstr ""
27587
27588 #. type: verbatim
27589 #: ../src/guestfs-actions.pod:1226
27590 #, no-wrap
27591 msgid ""
27592 " char **\n"
27593 " guestfs_command_lines (guestfs_h *g,\n"
27594 "                        char *const *arguments);\n"
27595 "\n"
27596 msgstr ""
27597
27598 #. type: textblock
27599 #: ../src/guestfs-actions.pod:1230
27600 msgid ""
27601 "This is the same as C<guestfs_command>, but splits the result into a list of "
27602 "lines."
27603 msgstr ""
27604
27605 #. type: textblock
27606 #: ../src/guestfs-actions.pod:1233
27607 msgid "See also: C<guestfs_sh_lines>"
27608 msgstr ""
27609
27610 #. type: =head2
27611 #: ../src/guestfs-actions.pod:1244
27612 msgid "guestfs_compress_device_out"
27613 msgstr ""
27614
27615 #. type: verbatim
27616 #: ../src/guestfs-actions.pod:1246
27617 #, no-wrap
27618 msgid ""
27619 " int\n"
27620 " guestfs_compress_device_out (guestfs_h *g,\n"
27621 "                              const char *ctype,\n"
27622 "                              const char *device,\n"
27623 "                              const char *zdevice,\n"
27624 "                              ...);\n"
27625 "\n"
27626 msgstr ""
27627
27628 #. type: verbatim
27629 #: ../src/guestfs-actions.pod:1258
27630 #, no-wrap
27631 msgid ""
27632 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
27633 "\n"
27634 msgstr ""
27635
27636 #. type: textblock
27637 #: ../src/guestfs-actions.pod:1263
27638 msgid ""
27639 "The C<ctype> and optional C<level> parameters have the same meaning as in "
27640 "C<guestfs_compress_out>."
27641 msgstr ""
27642
27643 #. type: textblock
27644 #: ../src/guestfs-actions.pod:1268 ../src/guestfs-actions.pod:1327
27645 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:7107
27646 msgid "(Added in 1.13.15)"
27647 msgstr ""
27648
27649 #. type: =head2
27650 #: ../src/guestfs-actions.pod:1270
27651 msgid "guestfs_compress_device_out_va"
27652 msgstr ""
27653
27654 #. type: verbatim
27655 #: ../src/guestfs-actions.pod:1272
27656 #, no-wrap
27657 msgid ""
27658 " int\n"
27659 " guestfs_compress_device_out_va (guestfs_h *g,\n"
27660 "                                 const char *ctype,\n"
27661 "                                 const char *device,\n"
27662 "                                 const char *zdevice,\n"
27663 "                                 va_list args);\n"
27664 "\n"
27665 msgstr ""
27666
27667 #. type: textblock
27668 #: ../src/guestfs-actions.pod:1279
27669 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
27670 msgstr ""
27671
27672 #. type: =head2
27673 #: ../src/guestfs-actions.pod:1283
27674 msgid "guestfs_compress_device_out_argv"
27675 msgstr ""
27676
27677 #. type: verbatim
27678 #: ../src/guestfs-actions.pod:1285
27679 #, no-wrap
27680 msgid ""
27681 " int\n"
27682 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
27683 "                                   const char *ctype,\n"
27684 "                                   const char *device,\n"
27685 "                                   const char *zdevice,\n"
27686 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
27687 "\n"
27688 msgstr ""
27689
27690 #. type: textblock
27691 #: ../src/guestfs-actions.pod:1292
27692 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
27693 msgstr ""
27694
27695 #. type: =head2
27696 #: ../src/guestfs-actions.pod:1296
27697 msgid "guestfs_compress_out"
27698 msgstr ""
27699
27700 #. type: verbatim
27701 #: ../src/guestfs-actions.pod:1298
27702 #, no-wrap
27703 msgid ""
27704 " int\n"
27705 " guestfs_compress_out (guestfs_h *g,\n"
27706 "                       const char *ctype,\n"
27707 "                       const char *file,\n"
27708 "                       const char *zfile,\n"
27709 "                       ...);\n"
27710 "\n"
27711 msgstr ""
27712
27713 #. type: verbatim
27714 #: ../src/guestfs-actions.pod:1310
27715 #, no-wrap
27716 msgid ""
27717 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
27718 "\n"
27719 msgstr ""
27720
27721 #. type: =head2
27722 #: ../src/guestfs-actions.pod:1329
27723 msgid "guestfs_compress_out_va"
27724 msgstr ""
27725
27726 #. type: verbatim
27727 #: ../src/guestfs-actions.pod:1331
27728 #, no-wrap
27729 msgid ""
27730 " int\n"
27731 " guestfs_compress_out_va (guestfs_h *g,\n"
27732 "                          const char *ctype,\n"
27733 "                          const char *file,\n"
27734 "                          const char *zfile,\n"
27735 "                          va_list args);\n"
27736 "\n"
27737 msgstr ""
27738
27739 #. type: textblock
27740 #: ../src/guestfs-actions.pod:1338
27741 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27742 msgstr ""
27743
27744 #. type: =head2
27745 #: ../src/guestfs-actions.pod:1342
27746 msgid "guestfs_compress_out_argv"
27747 msgstr ""
27748
27749 #. type: verbatim
27750 #: ../src/guestfs-actions.pod:1344
27751 #, no-wrap
27752 msgid ""
27753 " int\n"
27754 " guestfs_compress_out_argv (guestfs_h *g,\n"
27755 "                            const char *ctype,\n"
27756 "                            const char *file,\n"
27757 "                            const char *zfile,\n"
27758 "                            const struct guestfs_compress_out_argv *optargs);\n"
27759 "\n"
27760 msgstr ""
27761
27762 #. type: textblock
27763 #: ../src/guestfs-actions.pod:1351
27764 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27765 msgstr ""
27766
27767 #. type: =head2
27768 #: ../src/guestfs-actions.pod:1355
27769 msgid "guestfs_config"
27770 msgstr ""
27771
27772 #. type: verbatim
27773 #: ../src/guestfs-actions.pod:1357
27774 #, no-wrap
27775 msgid ""
27776 " int\n"
27777 " guestfs_config (guestfs_h *g,\n"
27778 "                 const char *qemuparam,\n"
27779 "                 const char *qemuvalue);\n"
27780 "\n"
27781 msgstr ""
27782
27783 #. type: =head2
27784 #: ../src/guestfs-actions.pod:1375
27785 msgid "guestfs_copy_device_to_device"
27786 msgstr ""
27787
27788 #. type: verbatim
27789 #: ../src/guestfs-actions.pod:1377
27790 #, no-wrap
27791 msgid ""
27792 " int\n"
27793 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27794 "                                const char *src,\n"
27795 "                                const char *dest,\n"
27796 "                                ...);\n"
27797 "\n"
27798 msgstr ""
27799
27800 #. type: verbatim
27801 #: ../src/guestfs-actions.pod:1388
27802 #, no-wrap
27803 msgid ""
27804 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27805 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27806 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27807 "\n"
27808 msgstr ""
27809
27810 #. type: textblock
27811 #: ../src/guestfs-actions.pod:1392
27812 msgid ""
27813 "The four calls C<guestfs_copy_device_to_device>, "
27814 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27815 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27816 "destination (device|file)."
27817 msgstr ""
27818
27819 #. type: textblock
27820 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
27821 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:1577
27822 #: ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1762
27823 #: ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:1838
27824 #: ../src/guestfs-actions.pod:2215 ../src/guestfs-actions.pod:2237
27825 #: ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:8034
27826 #: ../src/guestfs-actions.pod:8068 ../src/guestfs-actions.pod:8575
27827 #: ../src/guestfs-actions.pod:8598
27828 msgid ""
27829 "This long-running command can generate progress notification messages so "
27830 "that the caller can display a progress bar or indicator.  To receive these "
27831 "messages, the caller must register a progress event callback.  See L<guestfs"
27832 "(3)/GUESTFS_EVENT_PROGRESS>."
27833 msgstr ""
27834
27835 #. type: textblock
27836 #: ../src/guestfs-actions.pod:1418 ../src/guestfs-actions.pod:1471
27837 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1582
27838 #: ../src/guestfs-actions.pod:6247
27839 msgid "(Added in 1.13.25)"
27840 msgstr ""
27841
27842 #. type: =head2
27843 #: ../src/guestfs-actions.pod:1420
27844 msgid "guestfs_copy_device_to_device_va"
27845 msgstr ""
27846
27847 #. type: verbatim
27848 #: ../src/guestfs-actions.pod:1422
27849 #, no-wrap
27850 msgid ""
27851 " int\n"
27852 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27853 "                                   const char *src,\n"
27854 "                                   const char *dest,\n"
27855 "                                   va_list args);\n"
27856 "\n"
27857 msgstr ""
27858
27859 #. type: textblock
27860 #: ../src/guestfs-actions.pod:1428
27861 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27862 msgstr ""
27863
27864 #. type: =head2
27865 #: ../src/guestfs-actions.pod:1432
27866 msgid "guestfs_copy_device_to_device_argv"
27867 msgstr ""
27868
27869 #. type: verbatim
27870 #: ../src/guestfs-actions.pod:1434
27871 #, no-wrap
27872 msgid ""
27873 " int\n"
27874 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27875 "                                     const char *src,\n"
27876 "                                     const char *dest,\n"
27877 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
27878 "\n"
27879 msgstr ""
27880
27881 #. type: textblock
27882 #: ../src/guestfs-actions.pod:1440
27883 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27884 msgstr ""
27885
27886 #. type: =head2
27887 #: ../src/guestfs-actions.pod:1444
27888 msgid "guestfs_copy_device_to_file"
27889 msgstr ""
27890
27891 #. type: verbatim
27892 #: ../src/guestfs-actions.pod:1446
27893 #, no-wrap
27894 msgid ""
27895 " int\n"
27896 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27897 "                              const char *src,\n"
27898 "                              const char *dest,\n"
27899 "                              ...);\n"
27900 "\n"
27901 msgstr ""
27902
27903 #. type: verbatim
27904 #: ../src/guestfs-actions.pod:1457
27905 #, no-wrap
27906 msgid ""
27907 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27908 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27909 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27910 "\n"
27911 msgstr ""
27912
27913 #. type: textblock
27914 #: ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:1514
27915 #: ../src/guestfs-actions.pod:1567
27916 msgid ""
27917 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27918 msgstr ""
27919
27920 #. type: =head2
27921 #: ../src/guestfs-actions.pod:1473
27922 msgid "guestfs_copy_device_to_file_va"
27923 msgstr ""
27924
27925 #. type: verbatim
27926 #: ../src/guestfs-actions.pod:1475
27927 #, no-wrap
27928 msgid ""
27929 " int\n"
27930 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27931 "                                 const char *src,\n"
27932 "                                 const char *dest,\n"
27933 "                                 va_list args);\n"
27934 "\n"
27935 msgstr ""
27936
27937 #. type: textblock
27938 #: ../src/guestfs-actions.pod:1481
27939 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27940 msgstr ""
27941
27942 #. type: =head2
27943 #: ../src/guestfs-actions.pod:1485
27944 msgid "guestfs_copy_device_to_file_argv"
27945 msgstr ""
27946
27947 #. type: verbatim
27948 #: ../src/guestfs-actions.pod:1487
27949 #, no-wrap
27950 msgid ""
27951 " int\n"
27952 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27953 "                                   const char *src,\n"
27954 "                                   const char *dest,\n"
27955 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
27956 "\n"
27957 msgstr ""
27958
27959 #. type: textblock
27960 #: ../src/guestfs-actions.pod:1493
27961 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27962 msgstr ""
27963
27964 #. type: =head2
27965 #: ../src/guestfs-actions.pod:1497
27966 msgid "guestfs_copy_file_to_device"
27967 msgstr ""
27968
27969 #. type: verbatim
27970 #: ../src/guestfs-actions.pod:1499
27971 #, no-wrap
27972 msgid ""
27973 " int\n"
27974 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27975 "                              const char *src,\n"
27976 "                              const char *dest,\n"
27977 "                              ...);\n"
27978 "\n"
27979 msgstr ""
27980
27981 #. type: verbatim
27982 #: ../src/guestfs-actions.pod:1510
27983 #, no-wrap
27984 msgid ""
27985 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27986 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27987 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27988 "\n"
27989 msgstr ""
27990
27991 #. type: =head2
27992 #: ../src/guestfs-actions.pod:1526
27993 msgid "guestfs_copy_file_to_device_va"
27994 msgstr ""
27995
27996 #. type: verbatim
27997 #: ../src/guestfs-actions.pod:1528
27998 #, no-wrap
27999 msgid ""
28000 " int\n"
28001 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
28002 "                                 const char *src,\n"
28003 "                                 const char *dest,\n"
28004 "                                 va_list args);\n"
28005 "\n"
28006 msgstr ""
28007
28008 #. type: textblock
28009 #: ../src/guestfs-actions.pod:1534
28010 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
28011 msgstr ""
28012
28013 #. type: =head2
28014 #: ../src/guestfs-actions.pod:1538
28015 msgid "guestfs_copy_file_to_device_argv"
28016 msgstr ""
28017
28018 #. type: verbatim
28019 #: ../src/guestfs-actions.pod:1540
28020 #, no-wrap
28021 msgid ""
28022 " int\n"
28023 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
28024 "                                   const char *src,\n"
28025 "                                   const char *dest,\n"
28026 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
28027 "\n"
28028 msgstr ""
28029
28030 #. type: textblock
28031 #: ../src/guestfs-actions.pod:1546
28032 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
28033 msgstr ""
28034
28035 #. type: =head2
28036 #: ../src/guestfs-actions.pod:1550
28037 msgid "guestfs_copy_file_to_file"
28038 msgstr ""
28039
28040 #. type: verbatim
28041 #: ../src/guestfs-actions.pod:1552
28042 #, no-wrap
28043 msgid ""
28044 " int\n"
28045 " guestfs_copy_file_to_file (guestfs_h *g,\n"
28046 "                            const char *src,\n"
28047 "                            const char *dest,\n"
28048 "                            ...);\n"
28049 "\n"
28050 msgstr ""
28051
28052 #. type: verbatim
28053 #: ../src/guestfs-actions.pod:1563
28054 #, no-wrap
28055 msgid ""
28056 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28057 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28058 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
28059 "\n"
28060 msgstr ""
28061
28062 #. type: textblock
28063 #: ../src/guestfs-actions.pod:1570
28064 msgid ""
28065 "This is B<not> the function you want for copying files.  This is for copying "
28066 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
28067 "C<guestfs_mv> for general file copying and moving functions."
28068 msgstr ""
28069
28070 #. type: =head2
28071 #: ../src/guestfs-actions.pod:1584
28072 msgid "guestfs_copy_file_to_file_va"
28073 msgstr ""
28074
28075 #. type: verbatim
28076 #: ../src/guestfs-actions.pod:1586
28077 #, no-wrap
28078 msgid ""
28079 " int\n"
28080 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
28081 "                               const char *src,\n"
28082 "                               const char *dest,\n"
28083 "                               va_list args);\n"
28084 "\n"
28085 msgstr ""
28086
28087 #. type: textblock
28088 #: ../src/guestfs-actions.pod:1592
28089 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
28090 msgstr ""
28091
28092 #. type: =head2
28093 #: ../src/guestfs-actions.pod:1596
28094 msgid "guestfs_copy_file_to_file_argv"
28095 msgstr ""
28096
28097 #. type: verbatim
28098 #: ../src/guestfs-actions.pod:1598
28099 #, no-wrap
28100 msgid ""
28101 " int\n"
28102 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
28103 "                                 const char *src,\n"
28104 "                                 const char *dest,\n"
28105 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
28106 "\n"
28107 msgstr ""
28108
28109 #. type: textblock
28110 #: ../src/guestfs-actions.pod:1604
28111 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
28112 msgstr ""
28113
28114 #. type: =head2
28115 #: ../src/guestfs-actions.pod:1608
28116 msgid "guestfs_copy_size"
28117 msgstr ""
28118
28119 #. type: verbatim
28120 #: ../src/guestfs-actions.pod:1610
28121 #, no-wrap
28122 msgid ""
28123 " int\n"
28124 " guestfs_copy_size (guestfs_h *g,\n"
28125 "                    const char *src,\n"
28126 "                    const char *dest,\n"
28127 "                    int64_t size);\n"
28128 "\n"
28129 msgstr ""
28130
28131 #. type: textblock
28132 #: ../src/guestfs-actions.pod:1616 ../src/guestfs-actions.pod:1673
28133 msgid ""
28134 "I<This function is deprecated.> In new code, use the L</"
28135 "guestfs_copy_device_to_device> call instead."
28136 msgstr ""
28137
28138 #. type: textblock
28139 #: ../src/guestfs-actions.pod:1636 ../src/guestfs-actions.pod:4876
28140 #: ../src/guestfs-actions.pod:6417 ../src/guestfs-actions.pod:8269
28141 #: ../src/guestfs-actions.pod:8289 ../src/guestfs-actions.pod:8375
28142 msgid "(Added in 1.0.87)"
28143 msgstr ""
28144
28145 #. type: =head2
28146 #: ../src/guestfs-actions.pod:1638
28147 msgid "guestfs_cp"
28148 msgstr ""
28149
28150 #. type: verbatim
28151 #: ../src/guestfs-actions.pod:1640
28152 #, no-wrap
28153 msgid ""
28154 " int\n"
28155 " guestfs_cp (guestfs_h *g,\n"
28156 "             const char *src,\n"
28157 "             const char *dest);\n"
28158 "\n"
28159 msgstr ""
28160
28161 #. type: textblock
28162 #: ../src/guestfs-actions.pod:1650 ../src/guestfs-actions.pod:1664
28163 #: ../src/guestfs-actions.pod:1744 ../src/guestfs-actions.pod:1818
28164 #: ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:5769
28165 #: ../src/guestfs-actions.pod:6261
28166 msgid "(Added in 1.0.18)"
28167 msgstr ""
28168
28169 #. type: =head2
28170 #: ../src/guestfs-actions.pod:1652
28171 msgid "guestfs_cp_a"
28172 msgstr ""
28173
28174 #. type: verbatim
28175 #: ../src/guestfs-actions.pod:1654
28176 #, no-wrap
28177 msgid ""
28178 " int\n"
28179 " guestfs_cp_a (guestfs_h *g,\n"
28180 "               const char *src,\n"
28181 "               const char *dest);\n"
28182 "\n"
28183 msgstr ""
28184
28185 #. type: =head2
28186 #: ../src/guestfs-actions.pod:1666
28187 msgid "guestfs_dd"
28188 msgstr ""
28189
28190 #. type: verbatim
28191 #: ../src/guestfs-actions.pod:1668
28192 #, no-wrap
28193 msgid ""
28194 " int\n"
28195 " guestfs_dd (guestfs_h *g,\n"
28196 "             const char *src,\n"
28197 "             const char *dest);\n"
28198 "\n"
28199 msgstr ""
28200
28201 #. type: textblock
28202 #: ../src/guestfs-actions.pod:1685
28203 msgid ""
28204 "If the destination is a device, it must be as large or larger than the "
28205 "source file or device, otherwise the copy will fail.  This command cannot do "
28206 "partial copies (see C<guestfs_copy_device_to_device>)."
28207 msgstr ""
28208
28209 #. type: =head2
28210 #: ../src/guestfs-actions.pod:1694
28211 msgid "guestfs_df"
28212 msgstr ""
28213
28214 #. type: verbatim
28215 #: ../src/guestfs-actions.pod:1696
28216 #, no-wrap
28217 msgid ""
28218 " char *\n"
28219 " guestfs_df (guestfs_h *g);\n"
28220 "\n"
28221 msgstr ""
28222
28223 #. type: textblock
28224 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1718
28225 msgid ""
28226 "This command is mostly useful for interactive sessions.  It is I<not> "
28227 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
28228 "from programs."
28229 msgstr ""
28230
28231 #. type: textblock
28232 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:1725
28233 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:2850
28234 #: ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:2942
28235 #: ../src/guestfs-actions.pod:5135 ../src/guestfs-actions.pod:5669
28236 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7674
28237 #: ../src/guestfs-actions.pod:8415 ../src/guestfs-actions.pod:8428
28238 #: ../src/guestfs-actions.pod:8441
28239 msgid "(Added in 1.0.54)"
28240 msgstr ""
28241
28242 #. type: =head2
28243 #: ../src/guestfs-actions.pod:1710
28244 msgid "guestfs_df_h"
28245 msgstr ""
28246
28247 #. type: verbatim
28248 #: ../src/guestfs-actions.pod:1712
28249 #, no-wrap
28250 msgid ""
28251 " char *\n"
28252 " guestfs_df_h (guestfs_h *g);\n"
28253 "\n"
28254 msgstr ""
28255
28256 #. type: =head2
28257 #: ../src/guestfs-actions.pod:1727
28258 msgid "guestfs_dmesg"
28259 msgstr ""
28260
28261 #. type: verbatim
28262 #: ../src/guestfs-actions.pod:1729
28263 #, no-wrap
28264 msgid ""
28265 " char *\n"
28266 " guestfs_dmesg (guestfs_h *g);\n"
28267 "\n"
28268 msgstr ""
28269
28270 #. type: textblock
28271 #: ../src/guestfs-actions.pod:1736
28272 msgid ""
28273 "Another way to get the same information is to enable verbose messages with "
28274 "C<guestfs_set_verbose> or by setting the environment variable "
28275 "C<LIBGUESTFS_DEBUG=1> before running the program."
28276 msgstr ""
28277
28278 #. type: =head2
28279 #: ../src/guestfs-actions.pod:1746
28280 msgid "guestfs_download"
28281 msgstr ""
28282
28283 #. type: verbatim
28284 #: ../src/guestfs-actions.pod:1748
28285 #, no-wrap
28286 msgid ""
28287 " int\n"
28288 " guestfs_download (guestfs_h *g,\n"
28289 "                   const char *remotefilename,\n"
28290 "                   const char *filename);\n"
28291 "\n"
28292 msgstr ""
28293
28294 #. type: textblock
28295 #: ../src/guestfs-actions.pod:1758
28296 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
28297 msgstr ""
28298
28299 #. type: =head2
28300 #: ../src/guestfs-actions.pod:1769
28301 msgid "guestfs_download_offset"
28302 msgstr ""
28303
28304 #. type: verbatim
28305 #: ../src/guestfs-actions.pod:1771
28306 #, no-wrap
28307 msgid ""
28308 " int\n"
28309 " guestfs_download_offset (guestfs_h *g,\n"
28310 "                          const char *remotefilename,\n"
28311 "                          const char *filename,\n"
28312 "                          int64_t offset,\n"
28313 "                          int64_t size);\n"
28314 "\n"
28315 msgstr ""
28316
28317 #. type: textblock
28318 #: ../src/guestfs-actions.pod:1784
28319 msgid ""
28320 "Note that there is no limit on the amount of data that can be downloaded "
28321 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
28322 "full amount unless an error occurs."
28323 msgstr ""
28324
28325 #. type: textblock
28326 #: ../src/guestfs-actions.pod:1789
28327 msgid "See also C<guestfs_download>, C<guestfs_pread>."
28328 msgstr ""
28329
28330 #. type: textblock
28331 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:8073
28332 msgid "(Added in 1.5.17)"
28333 msgstr ""
28334
28335 #. type: =head2
28336 #: ../src/guestfs-actions.pod:1800
28337 msgid "guestfs_drop_caches"
28338 msgstr ""
28339
28340 #. type: verbatim
28341 #: ../src/guestfs-actions.pod:1802
28342 #, no-wrap
28343 msgid ""
28344 " int\n"
28345 " guestfs_drop_caches (guestfs_h *g,\n"
28346 "                      int whattodrop);\n"
28347 "\n"
28348 msgstr ""
28349
28350 #. type: =head2
28351 #: ../src/guestfs-actions.pod:1820
28352 msgid "guestfs_du"
28353 msgstr ""
28354
28355 #. type: verbatim
28356 #: ../src/guestfs-actions.pod:1822
28357 #, no-wrap
28358 msgid ""
28359 " int64_t\n"
28360 " guestfs_du (guestfs_h *g,\n"
28361 "             const char *path);\n"
28362 "\n"
28363 msgstr ""
28364
28365 #. type: =head2
28366 #: ../src/guestfs-actions.pod:1845
28367 msgid "guestfs_e2fsck_f"
28368 msgstr ""
28369
28370 #. type: verbatim
28371 #: ../src/guestfs-actions.pod:1847
28372 #, no-wrap
28373 msgid ""
28374 " int\n"
28375 " guestfs_e2fsck_f (guestfs_h *g,\n"
28376 "                   const char *device);\n"
28377 "\n"
28378 msgstr ""
28379
28380 #. type: textblock
28381 #: ../src/guestfs-actions.pod:1855
28382 msgid ""
28383 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
28384 "Normally you should use C<guestfs_fsck>."
28385 msgstr ""
28386
28387 #. type: textblock
28388 #: ../src/guestfs-actions.pod:1860
28389 msgid "(Added in 1.0.29)"
28390 msgstr ""
28391
28392 #. type: =head2
28393 #: ../src/guestfs-actions.pod:1862
28394 msgid "guestfs_echo_daemon"
28395 msgstr ""
28396
28397 #. type: verbatim
28398 #: ../src/guestfs-actions.pod:1864
28399 #, no-wrap
28400 msgid ""
28401 " char *\n"
28402 " guestfs_echo_daemon (guestfs_h *g,\n"
28403 "                      char *const *words);\n"
28404 "\n"
28405 msgstr ""
28406
28407 #. type: textblock
28408 #: ../src/guestfs-actions.pod:1873
28409 msgid "See also C<guestfs_ping_daemon>."
28410 msgstr ""
28411
28412 #. type: textblock
28413 #: ../src/guestfs-actions.pod:1878 ../src/guestfs-actions.pod:2636
28414 #: ../src/guestfs-actions.pod:7131
28415 msgid "(Added in 1.0.69)"
28416 msgstr ""
28417
28418 #. type: =head2
28419 #: ../src/guestfs-actions.pod:1880
28420 msgid "guestfs_egrep"
28421 msgstr ""
28422
28423 #. type: verbatim
28424 #: ../src/guestfs-actions.pod:1882
28425 #, no-wrap
28426 msgid ""
28427 " char **\n"
28428 " guestfs_egrep (guestfs_h *g,\n"
28429 "                const char *regex,\n"
28430 "                const char *path);\n"
28431 "\n"
28432 msgstr ""
28433
28434 #. type: textblock
28435 #: ../src/guestfs-actions.pod:1897 ../src/guestfs-actions.pod:1916
28436 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:2019
28437 #: ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:2766
28438 #: ../src/guestfs-actions.pod:2785 ../src/guestfs-actions.pod:2963
28439 #: ../src/guestfs-actions.pod:2976 ../src/guestfs-actions.pod:2991
28440 #: ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3059
28441 #: ../src/guestfs-actions.pod:3072 ../src/guestfs-actions.pod:4375
28442 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4402
28443 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:5557
28444 #: ../src/guestfs-actions.pod:6595 ../src/guestfs-actions.pod:6644
28445 #: ../src/guestfs-actions.pod:7518 ../src/guestfs-actions.pod:7530
28446 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7556
28447 #: ../src/guestfs-actions.pod:7578 ../src/guestfs-actions.pod:7591
28448 #: ../src/guestfs-actions.pod:7604 ../src/guestfs-actions.pod:7617
28449 #: ../src/guestfs-actions.pod:8533 ../src/guestfs-actions.pod:8552
28450 #: ../src/guestfs-actions.pod:8643 ../src/guestfs-actions.pod:8662
28451 #: ../src/guestfs-actions.pod:8708 ../src/guestfs-actions.pod:8727
28452 msgid "(Added in 1.0.66)"
28453 msgstr ""
28454
28455 #. type: =head2
28456 #: ../src/guestfs-actions.pod:1899
28457 msgid "guestfs_egrepi"
28458 msgstr ""
28459
28460 #. type: verbatim
28461 #: ../src/guestfs-actions.pod:1901
28462 #, no-wrap
28463 msgid ""
28464 " char **\n"
28465 " guestfs_egrepi (guestfs_h *g,\n"
28466 "                 const char *regex,\n"
28467 "                 const char *path);\n"
28468 "\n"
28469 msgstr ""
28470
28471 #. type: =head2
28472 #: ../src/guestfs-actions.pod:1918
28473 msgid "guestfs_equal"
28474 msgstr ""
28475
28476 #. type: verbatim
28477 #: ../src/guestfs-actions.pod:1920
28478 #, no-wrap
28479 msgid ""
28480 " int\n"
28481 " guestfs_equal (guestfs_h *g,\n"
28482 "                const char *file1,\n"
28483 "                const char *file2);\n"
28484 "\n"
28485 msgstr ""
28486
28487 #. type: =head2
28488 #: ../src/guestfs-actions.pod:1934
28489 msgid "guestfs_exists"
28490 msgstr ""
28491
28492 #. type: verbatim
28493 #: ../src/guestfs-actions.pod:1936
28494 #, no-wrap
28495 msgid ""
28496 " int\n"
28497 " guestfs_exists (guestfs_h *g,\n"
28498 "                 const char *path);\n"
28499 "\n"
28500 msgstr ""
28501
28502 #. type: textblock
28503 #: ../src/guestfs-actions.pod:1943
28504 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
28505 msgstr ""
28506
28507 #. type: =head2
28508 #: ../src/guestfs-actions.pod:1949
28509 msgid "guestfs_fallocate"
28510 msgstr ""
28511
28512 #. type: verbatim
28513 #: ../src/guestfs-actions.pod:1951
28514 #, no-wrap
28515 msgid ""
28516 " int\n"
28517 " guestfs_fallocate (guestfs_h *g,\n"
28518 "                    const char *path,\n"
28519 "                    int len);\n"
28520 "\n"
28521 msgstr ""
28522
28523 #. type: textblock
28524 #: ../src/guestfs-actions.pod:1956
28525 msgid ""
28526 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
28527 "call instead."
28528 msgstr ""
28529
28530 #. type: =head2
28531 #: ../src/guestfs-actions.pod:1975
28532 msgid "guestfs_fallocate64"
28533 msgstr ""
28534
28535 #. type: verbatim
28536 #: ../src/guestfs-actions.pod:1977
28537 #, no-wrap
28538 msgid ""
28539 " int\n"
28540 " guestfs_fallocate64 (guestfs_h *g,\n"
28541 "                      const char *path,\n"
28542 "                      int64_t len);\n"
28543 "\n"
28544 msgstr ""
28545
28546 #. type: textblock
28547 #: ../src/guestfs-actions.pod:1986
28548 msgid ""
28549 "Note that this call allocates disk blocks for the file.  To create a sparse "
28550 "file use C<guestfs_truncate_size> instead."
28551 msgstr ""
28552
28553 #. type: textblock
28554 #: ../src/guestfs-actions.pod:1989
28555 msgid ""
28556 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
28557 "oversight it only allowed 30 bit lengths to be specified, effectively "
28558 "limiting the maximum size of files created through that call to 1GB."
28559 msgstr ""
28560
28561 #. type: textblock
28562 #: ../src/guestfs-actions.pod:2000
28563 msgid "(Added in 1.3.17)"
28564 msgstr ""
28565
28566 #. type: =head2
28567 #: ../src/guestfs-actions.pod:2002
28568 msgid "guestfs_fgrep"
28569 msgstr ""
28570
28571 #. type: verbatim
28572 #: ../src/guestfs-actions.pod:2004
28573 #, no-wrap
28574 msgid ""
28575 " char **\n"
28576 " guestfs_fgrep (guestfs_h *g,\n"
28577 "                const char *pattern,\n"
28578 "                const char *path);\n"
28579 "\n"
28580 msgstr ""
28581
28582 #. type: =head2
28583 #: ../src/guestfs-actions.pod:2021
28584 msgid "guestfs_fgrepi"
28585 msgstr ""
28586
28587 #. type: verbatim
28588 #: ../src/guestfs-actions.pod:2023
28589 #, no-wrap
28590 msgid ""
28591 " char **\n"
28592 " guestfs_fgrepi (guestfs_h *g,\n"
28593 "                 const char *pattern,\n"
28594 "                 const char *path);\n"
28595 "\n"
28596 msgstr ""
28597
28598 #. type: =head2
28599 #: ../src/guestfs-actions.pod:2040
28600 msgid "guestfs_file"
28601 msgstr ""
28602
28603 #. type: verbatim
28604 #: ../src/guestfs-actions.pod:2042
28605 #, no-wrap
28606 msgid ""
28607 " char *\n"
28608 " guestfs_file (guestfs_h *g,\n"
28609 "               const char *path);\n"
28610 "\n"
28611 msgstr ""
28612
28613 #. type: textblock
28614 #: ../src/guestfs-actions.pod:2060
28615 msgid ""
28616 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
28617 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
28618 msgstr ""
28619
28620 #. type: =head2
28621 #: ../src/guestfs-actions.pod:2068
28622 msgid "guestfs_file_architecture"
28623 msgstr ""
28624
28625 #. type: verbatim
28626 #: ../src/guestfs-actions.pod:2070
28627 #, no-wrap
28628 msgid ""
28629 " char *\n"
28630 " guestfs_file_architecture (guestfs_h *g,\n"
28631 "                            const char *filename);\n"
28632 "\n"
28633 msgstr ""
28634
28635 #. type: textblock
28636 #: ../src/guestfs-actions.pod:2178 ../src/guestfs-actions.pod:2341
28637 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3092
28638 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3260
28639 #: ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3465
28640 #: ../src/guestfs-actions.pod:3505 ../src/guestfs-actions.pod:3581
28641 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3919
28642 #: ../src/guestfs-actions.pod:4051
28643 msgid "(Added in 1.5.3)"
28644 msgstr ""
28645
28646 #. type: =head2
28647 #: ../src/guestfs-actions.pod:2180
28648 msgid "guestfs_filesize"
28649 msgstr ""
28650
28651 #. type: verbatim
28652 #: ../src/guestfs-actions.pod:2182
28653 #, no-wrap
28654 msgid ""
28655 " int64_t\n"
28656 " guestfs_filesize (guestfs_h *g,\n"
28657 "                   const char *file);\n"
28658 "\n"
28659 msgstr ""
28660
28661 #. type: textblock
28662 #: ../src/guestfs-actions.pod:2188
28663 msgid ""
28664 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
28665 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
28666 "devices, use C<guestfs_blockdev_getsize64>."
28667 msgstr ""
28668
28669 #. type: textblock
28670 #: ../src/guestfs-actions.pod:2194
28671 msgid "(Added in 1.0.82)"
28672 msgstr ""
28673
28674 #. type: =head2
28675 #: ../src/guestfs-actions.pod:2196
28676 msgid "guestfs_fill"
28677 msgstr ""
28678
28679 #. type: verbatim
28680 #: ../src/guestfs-actions.pod:2198
28681 #, no-wrap
28682 msgid ""
28683 " int\n"
28684 " guestfs_fill (guestfs_h *g,\n"
28685 "               int c,\n"
28686 "               int len,\n"
28687 "               const char *path);\n"
28688 "\n"
28689 msgstr ""
28690
28691 #. type: textblock
28692 #: ../src/guestfs-actions.pod:2208
28693 msgid ""
28694 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
28695 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
28696 "bytes use C<guestfs_fill_pattern>."
28697 msgstr ""
28698
28699 #. type: textblock
28700 #: ../src/guestfs-actions.pod:2220
28701 msgid "(Added in 1.0.79)"
28702 msgstr ""
28703
28704 #. type: =head2
28705 #: ../src/guestfs-actions.pod:2222
28706 msgid "guestfs_fill_pattern"
28707 msgstr ""
28708
28709 #. type: verbatim
28710 #: ../src/guestfs-actions.pod:2224
28711 #, no-wrap
28712 msgid ""
28713 " int\n"
28714 " guestfs_fill_pattern (guestfs_h *g,\n"
28715 "                       const char *pattern,\n"
28716 "                       int len,\n"
28717 "                       const char *path);\n"
28718 "\n"
28719 msgstr ""
28720
28721 #. type: textblock
28722 #: ../src/guestfs-actions.pod:2230
28723 msgid ""
28724 "This function is like C<guestfs_fill> except that it creates a new file of "
28725 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
28726 "pattern is truncated if necessary to ensure the length of the file is "
28727 "exactly C<len> bytes."
28728 msgstr ""
28729
28730 #. type: textblock
28731 #: ../src/guestfs-actions.pod:2242
28732 msgid "(Added in 1.3.12)"
28733 msgstr ""
28734
28735 #. type: =head2
28736 #: ../src/guestfs-actions.pod:2244
28737 msgid "guestfs_find"
28738 msgstr ""
28739
28740 #. type: verbatim
28741 #: ../src/guestfs-actions.pod:2246
28742 #, no-wrap
28743 msgid ""
28744 " char **\n"
28745 " guestfs_find (guestfs_h *g,\n"
28746 "               const char *directory);\n"
28747 "\n"
28748 msgstr ""
28749
28750 #. type: textblock
28751 #: ../src/guestfs-actions.pod:2262
28752 msgid ""
28753 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28754 msgstr ""
28755
28756 #. type: textblock
28757 #: ../src/guestfs-actions.pod:2275
28758 msgid "See also C<guestfs_find0>."
28759 msgstr ""
28760
28761 #. type: textblock
28762 #: ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:4813
28763 #: ../src/guestfs-actions.pod:6679
28764 msgid "(Added in 1.0.27)"
28765 msgstr ""
28766
28767 #. type: =head2
28768 #: ../src/guestfs-actions.pod:2286
28769 msgid "guestfs_find0"
28770 msgstr ""
28771
28772 #. type: verbatim
28773 #: ../src/guestfs-actions.pod:2288
28774 #, no-wrap
28775 msgid ""
28776 " int\n"
28777 " guestfs_find0 (guestfs_h *g,\n"
28778 "                const char *directory,\n"
28779 "                const char *files);\n"
28780 "\n"
28781 msgstr ""
28782
28783 #. type: textblock
28784 #: ../src/guestfs-actions.pod:2297
28785 msgid ""
28786 "This command works the same way as C<guestfs_find> with the following "
28787 "exceptions:"
28788 msgstr ""
28789
28790 #. type: textblock
28791 #: ../src/guestfs-actions.pod:2324
28792 msgid "(Added in 1.0.74)"
28793 msgstr ""
28794
28795 #. type: =head2
28796 #: ../src/guestfs-actions.pod:2326
28797 msgid "guestfs_findfs_label"
28798 msgstr ""
28799
28800 #. type: verbatim
28801 #: ../src/guestfs-actions.pod:2328
28802 #, no-wrap
28803 msgid ""
28804 " char *\n"
28805 " guestfs_findfs_label (guestfs_h *g,\n"
28806 "                       const char *label);\n"
28807 "\n"
28808 msgstr ""
28809
28810 #. type: textblock
28811 #: ../src/guestfs-actions.pod:2336
28812 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28813 msgstr ""
28814
28815 #. type: =head2
28816 #: ../src/guestfs-actions.pod:2343
28817 msgid "guestfs_findfs_uuid"
28818 msgstr ""
28819
28820 #. type: verbatim
28821 #: ../src/guestfs-actions.pod:2345
28822 #, no-wrap
28823 msgid ""
28824 " char *\n"
28825 " guestfs_findfs_uuid (guestfs_h *g,\n"
28826 "                      const char *uuid);\n"
28827 "\n"
28828 msgstr ""
28829
28830 #. type: textblock
28831 #: ../src/guestfs-actions.pod:2353
28832 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28833 msgstr ""
28834
28835 #. type: =head2
28836 #: ../src/guestfs-actions.pod:2360
28837 msgid "guestfs_fsck"
28838 msgstr ""
28839
28840 #. type: verbatim
28841 #: ../src/guestfs-actions.pod:2362
28842 #, no-wrap
28843 msgid ""
28844 " int\n"
28845 " guestfs_fsck (guestfs_h *g,\n"
28846 "               const char *fstype,\n"
28847 "               const char *device);\n"
28848 "\n"
28849 msgstr ""
28850
28851 #. type: textblock
28852 #: ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:8580
28853 msgid "(Added in 1.0.16)"
28854 msgstr ""
28855
28856 #. type: =head2
28857 #: ../src/guestfs-actions.pod:2399
28858 msgid "guestfs_get_append"
28859 msgstr ""
28860
28861 #. type: verbatim
28862 #: ../src/guestfs-actions.pod:2401
28863 #, no-wrap
28864 msgid ""
28865 " const char *\n"
28866 " guestfs_get_append (guestfs_h *g);\n"
28867 "\n"
28868 msgstr ""
28869
28870 #. type: textblock
28871 #: ../src/guestfs-actions.pod:2409
28872 msgid ""
28873 "This function returns a string which may be NULL.  There is no way to return "
28874 "an error from this function.  The string is owned by the guest handle and "
28875 "must I<not> be freed."
28876 msgstr ""
28877
28878 #. type: textblock
28879 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6357
28880 #: ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:7285
28881 #: ../src/guestfs-actions.pod:7304 ../src/guestfs-actions.pod:7320
28882 #: ../src/guestfs-actions.pod:7344 ../src/guestfs-actions.pod:8220
28883 #: ../src/guestfs-actions.pod:8235 ../src/guestfs-actions.pod:8624
28884 msgid "(Added in 1.0.26)"
28885 msgstr ""
28886
28887 #. type: =head2
28888 #: ../src/guestfs-actions.pod:2415
28889 msgid "guestfs_get_attach_method"
28890 msgstr ""
28891
28892 #. type: verbatim
28893 #: ../src/guestfs-actions.pod:2417
28894 #, no-wrap
28895 msgid ""
28896 " char *\n"
28897 " guestfs_get_attach_method (guestfs_h *g);\n"
28898 "\n"
28899 msgstr ""
28900
28901 #. type: textblock
28902 #: ../src/guestfs-actions.pod:2420
28903 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28904 msgstr ""
28905
28906 #. type: textblock
28907 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:6866
28908 msgid "(Added in 1.9.8)"
28909 msgstr ""
28910
28911 #. type: =head2
28912 #: ../src/guestfs-actions.pod:2427
28913 msgid "guestfs_get_autosync"
28914 msgstr ""
28915
28916 #. type: verbatim
28917 #: ../src/guestfs-actions.pod:2429
28918 #, no-wrap
28919 msgid ""
28920 " int\n"
28921 " guestfs_get_autosync (guestfs_h *g);\n"
28922 "\n"
28923 msgstr ""
28924
28925 #. type: =head2
28926 #: ../src/guestfs-actions.pod:2438
28927 msgid "guestfs_get_direct"
28928 msgstr ""
28929
28930 #. type: verbatim
28931 #: ../src/guestfs-actions.pod:2440
28932 #, no-wrap
28933 msgid ""
28934 " int\n"
28935 " guestfs_get_direct (guestfs_h *g);\n"
28936 "\n"
28937 msgstr ""
28938
28939 #. type: textblock
28940 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:6907
28941 msgid "(Added in 1.0.72)"
28942 msgstr ""
28943
28944 #. type: =head2
28945 #: ../src/guestfs-actions.pod:2449
28946 msgid "guestfs_get_e2label"
28947 msgstr ""
28948
28949 #. type: verbatim
28950 #: ../src/guestfs-actions.pod:2451
28951 #, no-wrap
28952 msgid ""
28953 " char *\n"
28954 " guestfs_get_e2label (guestfs_h *g,\n"
28955 "                      const char *device);\n"
28956 "\n"
28957 msgstr ""
28958
28959 #. type: textblock
28960 #: ../src/guestfs-actions.pod:2455
28961 msgid ""
28962 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28963 "call instead."
28964 msgstr ""
28965
28966 #. type: textblock
28967 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2489
28968 #: ../src/guestfs-actions.pod:6925 ../src/guestfs-actions.pod:6944
28969 msgid "(Added in 1.0.15)"
28970 msgstr ""
28971
28972 #. type: =head2
28973 #: ../src/guestfs-actions.pod:2470
28974 msgid "guestfs_get_e2uuid"
28975 msgstr ""
28976
28977 #. type: verbatim
28978 #: ../src/guestfs-actions.pod:2472
28979 #, no-wrap
28980 msgid ""
28981 " char *\n"
28982 " guestfs_get_e2uuid (guestfs_h *g,\n"
28983 "                     const char *device);\n"
28984 "\n"
28985 msgstr ""
28986
28987 #. type: textblock
28988 #: ../src/guestfs-actions.pod:2476
28989 msgid ""
28990 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28991 "call instead."
28992 msgstr ""
28993
28994 #. type: =head2
28995 #: ../src/guestfs-actions.pod:2491
28996 msgid "guestfs_get_memsize"
28997 msgstr ""
28998
28999 #. type: verbatim
29000 #: ../src/guestfs-actions.pod:2493
29001 #, no-wrap
29002 msgid ""
29003 " int\n"
29004 " guestfs_get_memsize (guestfs_h *g);\n"
29005 "\n"
29006 msgstr ""
29007
29008 #. type: textblock
29009 #: ../src/guestfs-actions.pod:2499
29010 msgid ""
29011 "If C<guestfs_set_memsize> was not called on this handle, and if "
29012 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
29013 "value for memsize."
29014 msgstr ""
29015
29016 #. type: textblock
29017 #: ../src/guestfs-actions.pod:2508 ../src/guestfs-actions.pod:5253
29018 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5481
29019 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5512
29020 #: ../src/guestfs-actions.pod:5529 ../src/guestfs-actions.pod:5542
29021 #: ../src/guestfs-actions.pod:6582 ../src/guestfs-actions.pod:6965
29022 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7989
29023 msgid "(Added in 1.0.55)"
29024 msgstr ""
29025
29026 #. type: =head2
29027 #: ../src/guestfs-actions.pod:2510
29028 msgid "guestfs_get_network"
29029 msgstr ""
29030
29031 #. type: verbatim
29032 #: ../src/guestfs-actions.pod:2512
29033 #, no-wrap
29034 msgid ""
29035 " int\n"
29036 " guestfs_get_network (guestfs_h *g);\n"
29037 "\n"
29038 msgstr ""
29039
29040 #. type: textblock
29041 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:6984
29042 msgid "(Added in 1.5.4)"
29043 msgstr ""
29044
29045 #. type: =head2
29046 #: ../src/guestfs-actions.pod:2521
29047 msgid "guestfs_get_path"
29048 msgstr ""
29049
29050 #. type: verbatim
29051 #: ../src/guestfs-actions.pod:2523
29052 #, no-wrap
29053 msgid ""
29054 " const char *\n"
29055 " guestfs_get_path (guestfs_h *g);\n"
29056 "\n"
29057 msgstr ""
29058
29059 #. type: textblock
29060 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:2571
29061 msgid ""
29062 "This function returns a string, or NULL on error.  The string is owned by "
29063 "the guest handle and must I<not> be freed."
29064 msgstr ""
29065
29066 #. type: =head2
29067 #: ../src/guestfs-actions.pod:2536
29068 msgid "guestfs_get_pgroup"
29069 msgstr ""
29070
29071 #. type: verbatim
29072 #: ../src/guestfs-actions.pod:2538
29073 #, no-wrap
29074 msgid ""
29075 " int\n"
29076 " guestfs_get_pgroup (guestfs_h *g);\n"
29077 "\n"
29078 msgstr ""
29079
29080 #. type: textblock
29081 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:7020
29082 #: ../src/guestfs-actions.pod:8481
29083 msgid "(Added in 1.11.18)"
29084 msgstr ""
29085
29086 #. type: =head2
29087 #: ../src/guestfs-actions.pod:2547
29088 msgid "guestfs_get_pid"
29089 msgstr ""
29090
29091 #. type: verbatim
29092 #: ../src/guestfs-actions.pod:2549
29093 #, no-wrap
29094 msgid ""
29095 " int\n"
29096 " guestfs_get_pid (guestfs_h *g);\n"
29097 "\n"
29098 msgstr ""
29099
29100 #. type: textblock
29101 #: ../src/guestfs-actions.pod:2559
29102 msgid "(Added in 1.0.56)"
29103 msgstr ""
29104
29105 #. type: =head2
29106 #: ../src/guestfs-actions.pod:2561
29107 msgid "guestfs_get_qemu"
29108 msgstr ""
29109
29110 #. type: verbatim
29111 #: ../src/guestfs-actions.pod:2563
29112 #, no-wrap
29113 msgid ""
29114 " const char *\n"
29115 " guestfs_get_qemu (guestfs_h *g);\n"
29116 "\n"
29117 msgstr ""
29118
29119 #. type: textblock
29120 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:7048
29121 msgid "(Added in 1.0.6)"
29122 msgstr ""
29123
29124 #. type: =head2
29125 #: ../src/guestfs-actions.pod:2576
29126 msgid "guestfs_get_recovery_proc"
29127 msgstr ""
29128
29129 #. type: verbatim
29130 #: ../src/guestfs-actions.pod:2578
29131 #, no-wrap
29132 msgid ""
29133 " int\n"
29134 " guestfs_get_recovery_proc (guestfs_h *g);\n"
29135 "\n"
29136 msgstr ""
29137
29138 #. type: textblock
29139 #: ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:4173
29140 #: ../src/guestfs-actions.pod:4517 ../src/guestfs-actions.pod:4911
29141 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:6287
29142 #: ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:7072
29143 #: ../src/guestfs-actions.pod:7770 ../src/guestfs-actions.pod:7790
29144 #: ../src/guestfs-actions.pod:8104
29145 msgid "(Added in 1.0.77)"
29146 msgstr ""
29147
29148 #. type: =head2
29149 #: ../src/guestfs-actions.pod:2587
29150 msgid "guestfs_get_selinux"
29151 msgstr ""
29152
29153 #. type: verbatim
29154 #: ../src/guestfs-actions.pod:2589
29155 #, no-wrap
29156 msgid ""
29157 " int\n"
29158 " guestfs_get_selinux (guestfs_h *g);\n"
29159 "\n"
29160 msgstr ""
29161
29162 #. type: textblock
29163 #: ../src/guestfs-actions.pod:2592
29164 msgid ""
29165 "This returns the current setting of the selinux flag which is passed to the "
29166 "appliance at boot time.  See C<guestfs_set_selinux>."
29167 msgstr ""
29168
29169 #. type: textblock
29170 #: ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2674
29171 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7165
29172 msgid "(Added in 1.0.67)"
29173 msgstr ""
29174
29175 #. type: =head2
29176 #: ../src/guestfs-actions.pod:2602
29177 msgid "guestfs_get_smp"
29178 msgstr ""
29179
29180 #. type: verbatim
29181 #: ../src/guestfs-actions.pod:2604
29182 #, no-wrap
29183 msgid ""
29184 " int\n"
29185 " guestfs_get_smp (guestfs_h *g);\n"
29186 "\n"
29187 msgstr ""
29188
29189 #. type: =head2
29190 #: ../src/guestfs-actions.pod:2613
29191 msgid "guestfs_get_state"
29192 msgstr ""
29193
29194 #. type: verbatim
29195 #: ../src/guestfs-actions.pod:2615
29196 #, no-wrap
29197 msgid ""
29198 " int\n"
29199 " guestfs_get_state (guestfs_h *g);\n"
29200 "\n"
29201 msgstr ""
29202
29203 #. type: =head2
29204 #: ../src/guestfs-actions.pod:2627
29205 msgid "guestfs_get_trace"
29206 msgstr ""
29207
29208 #. type: verbatim
29209 #: ../src/guestfs-actions.pod:2629
29210 #, no-wrap
29211 msgid ""
29212 " int\n"
29213 " guestfs_get_trace (guestfs_h *g);\n"
29214 "\n"
29215 msgstr ""
29216
29217 #. type: =head2
29218 #: ../src/guestfs-actions.pod:2638
29219 msgid "guestfs_get_umask"
29220 msgstr ""
29221
29222 #. type: verbatim
29223 #: ../src/guestfs-actions.pod:2640
29224 #, no-wrap
29225 msgid ""
29226 " int\n"
29227 " guestfs_get_umask (guestfs_h *g);\n"
29228 "\n"
29229 msgstr ""
29230
29231 #. type: textblock
29232 #: ../src/guestfs-actions.pod:2643
29233 msgid ""
29234 "Return the current umask.  By default the umask is C<022> unless it has been "
29235 "set by calling C<guestfs_umask>."
29236 msgstr ""
29237
29238 #. type: =head2
29239 #: ../src/guestfs-actions.pod:2650
29240 msgid "guestfs_get_verbose"
29241 msgstr ""
29242
29243 #. type: verbatim
29244 #: ../src/guestfs-actions.pod:2652
29245 #, no-wrap
29246 msgid ""
29247 " int\n"
29248 " guestfs_get_verbose (guestfs_h *g);\n"
29249 "\n"
29250 msgstr ""
29251
29252 #. type: =head2
29253 #: ../src/guestfs-actions.pod:2661
29254 msgid "guestfs_getcon"
29255 msgstr ""
29256
29257 #. type: verbatim
29258 #: ../src/guestfs-actions.pod:2663
29259 #, no-wrap
29260 msgid ""
29261 " char *\n"
29262 " guestfs_getcon (guestfs_h *g);\n"
29263 "\n"
29264 msgstr ""
29265
29266 #. type: textblock
29267 #: ../src/guestfs-actions.pod:2668
29268 msgid ""
29269 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
29270 msgstr ""
29271
29272 #. type: =head2
29273 #: ../src/guestfs-actions.pod:2676
29274 msgid "guestfs_getxattr"
29275 msgstr ""
29276
29277 #. type: verbatim
29278 #: ../src/guestfs-actions.pod:2678
29279 #, no-wrap
29280 msgid ""
29281 " char *\n"
29282 " guestfs_getxattr (guestfs_h *g,\n"
29283 "                   const char *path,\n"
29284 "                   const char *name,\n"
29285 "                   size_t *size_r);\n"
29286 "\n"
29287 msgstr ""
29288
29289 #. type: textblock
29290 #: ../src/guestfs-actions.pod:2684
29291 msgid ""
29292 "Get a single extended attribute from file C<path> named C<name>.  This call "
29293 "follows symlinks.  If you want to lookup an extended attribute for the "
29294 "symlink itself, use C<guestfs_lgetxattr>."
29295 msgstr ""
29296
29297 #. type: textblock
29298 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:4187
29299 msgid ""
29300 "Normally it is better to get all extended attributes from a file in one go "
29301 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
29302 "implementations are buggy and do not provide a way to list out attributes.  "
29303 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
29304 "extended attributes you want in advance and call this function."
29305 msgstr ""
29306
29307 #. type: textblock
29308 #: ../src/guestfs-actions.pod:2698
29309 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
29310 msgstr ""
29311
29312 #. type: textblock
29313 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:2913
29314 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:4199
29315 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6306
29316 #: ../src/guestfs-actions.pod:6487
29317 msgid ""
29318 "This function returns a buffer, or NULL on error.  The size of the returned "
29319 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
29320 "after use>."
29321 msgstr ""
29322
29323 #. type: textblock
29324 #: ../src/guestfs-actions.pod:2704 ../src/guestfs-actions.pod:4203
29325 msgid "(Added in 1.7.24)"
29326 msgstr ""
29327
29328 #. type: =head2
29329 #: ../src/guestfs-actions.pod:2706
29330 msgid "guestfs_getxattrs"
29331 msgstr ""
29332
29333 #. type: verbatim
29334 #: ../src/guestfs-actions.pod:2708
29335 #, no-wrap
29336 msgid ""
29337 " struct guestfs_xattr_list *\n"
29338 " guestfs_getxattrs (guestfs_h *g,\n"
29339 "                    const char *path);\n"
29340 "\n"
29341 msgstr ""
29342
29343 #. type: textblock
29344 #: ../src/guestfs-actions.pod:2718
29345 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
29346 msgstr ""
29347
29348 #. type: textblock
29349 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:4215
29350 #: ../src/guestfs-actions.pod:4907
29351 msgid ""
29352 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
29353 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
29354 msgstr ""
29355
29356 #. type: textblock
29357 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:4219
29358 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:4467
29359 #: ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:7184
29360 #: ../src/guestfs-actions.pod:8689
29361 msgid "(Added in 1.0.59)"
29362 msgstr ""
29363
29364 #. type: =head2
29365 #: ../src/guestfs-actions.pod:2726
29366 msgid "guestfs_glob_expand"
29367 msgstr ""
29368
29369 #. type: verbatim
29370 #: ../src/guestfs-actions.pod:2728
29371 #, no-wrap
29372 msgid ""
29373 " char **\n"
29374 " guestfs_glob_expand (guestfs_h *g,\n"
29375 "                      const char *pattern);\n"
29376 "\n"
29377 msgstr ""
29378
29379 #. type: textblock
29380 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:7368
29381 #: ../src/guestfs-actions.pod:7385
29382 msgid "(Added in 1.0.50)"
29383 msgstr ""
29384
29385 #. type: =head2
29386 #: ../src/guestfs-actions.pod:2749
29387 msgid "guestfs_grep"
29388 msgstr ""
29389
29390 #. type: verbatim
29391 #: ../src/guestfs-actions.pod:2751
29392 #, no-wrap
29393 msgid ""
29394 " char **\n"
29395 " guestfs_grep (guestfs_h *g,\n"
29396 "               const char *regex,\n"
29397 "               const char *path);\n"
29398 "\n"
29399 msgstr ""
29400
29401 #. type: =head2
29402 #: ../src/guestfs-actions.pod:2768
29403 msgid "guestfs_grepi"
29404 msgstr ""
29405
29406 #. type: verbatim
29407 #: ../src/guestfs-actions.pod:2770
29408 #, no-wrap
29409 msgid ""
29410 " char **\n"
29411 " guestfs_grepi (guestfs_h *g,\n"
29412 "                const char *regex,\n"
29413 "                const char *path);\n"
29414 "\n"
29415 msgstr ""
29416
29417 #. type: =head2
29418 #: ../src/guestfs-actions.pod:2787
29419 msgid "guestfs_grub_install"
29420 msgstr ""
29421
29422 #. type: verbatim
29423 #: ../src/guestfs-actions.pod:2789
29424 #, no-wrap
29425 msgid ""
29426 " int\n"
29427 " guestfs_grub_install (guestfs_h *g,\n"
29428 "                       const char *root,\n"
29429 "                       const char *device);\n"
29430 "\n"
29431 msgstr ""
29432
29433 #. type: textblock
29434 #: ../src/guestfs-actions.pod:2832
29435 msgid "(Added in 1.0.17)"
29436 msgstr ""
29437
29438 #. type: =head2
29439 #: ../src/guestfs-actions.pod:2834
29440 msgid "guestfs_head"
29441 msgstr ""
29442
29443 #. type: verbatim
29444 #: ../src/guestfs-actions.pod:2836
29445 #, no-wrap
29446 msgid ""
29447 " char **\n"
29448 " guestfs_head (guestfs_h *g,\n"
29449 "               const char *path);\n"
29450 "\n"
29451 msgstr ""
29452
29453 #. type: =head2
29454 #: ../src/guestfs-actions.pod:2852
29455 msgid "guestfs_head_n"
29456 msgstr ""
29457
29458 #. type: verbatim
29459 #: ../src/guestfs-actions.pod:2854
29460 #, no-wrap
29461 msgid ""
29462 " char **\n"
29463 " guestfs_head_n (guestfs_h *g,\n"
29464 "                 int nrlines,\n"
29465 "                 const char *path);\n"
29466 "\n"
29467 msgstr ""
29468
29469 #. type: =head2
29470 #: ../src/guestfs-actions.pod:2876
29471 msgid "guestfs_hexdump"
29472 msgstr ""
29473
29474 #. type: verbatim
29475 #: ../src/guestfs-actions.pod:2878
29476 #, no-wrap
29477 msgid ""
29478 " char *\n"
29479 " guestfs_hexdump (guestfs_h *g,\n"
29480 "                  const char *path);\n"
29481 "\n"
29482 msgstr ""
29483
29484 #. type: textblock
29485 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:7449
29486 #: ../src/guestfs-actions.pod:7504
29487 msgid "(Added in 1.0.22)"
29488 msgstr ""
29489
29490 #. type: =head2
29491 #: ../src/guestfs-actions.pod:2893
29492 msgid "guestfs_initrd_cat"
29493 msgstr ""
29494
29495 #. type: verbatim
29496 #: ../src/guestfs-actions.pod:2895
29497 #, no-wrap
29498 msgid ""
29499 " char *\n"
29500 " guestfs_initrd_cat (guestfs_h *g,\n"
29501 "                     const char *initrdpath,\n"
29502 "                     const char *filename,\n"
29503 "                     size_t *size_r);\n"
29504 "\n"
29505 msgstr ""
29506
29507 #. type: textblock
29508 #: ../src/guestfs-actions.pod:2911
29509 msgid "See also C<guestfs_initrd_list>."
29510 msgstr ""
29511
29512 #. type: =head2
29513 #: ../src/guestfs-actions.pod:2922
29514 msgid "guestfs_initrd_list"
29515 msgstr ""
29516
29517 #. type: verbatim
29518 #: ../src/guestfs-actions.pod:2924
29519 #, no-wrap
29520 msgid ""
29521 " char **\n"
29522 " guestfs_initrd_list (guestfs_h *g,\n"
29523 "                      const char *path);\n"
29524 "\n"
29525 msgstr ""
29526
29527 #. type: =head2
29528 #: ../src/guestfs-actions.pod:2944
29529 msgid "guestfs_inotify_add_watch"
29530 msgstr ""
29531
29532 #. type: verbatim
29533 #: ../src/guestfs-actions.pod:2946
29534 #, no-wrap
29535 msgid ""
29536 " int64_t\n"
29537 " guestfs_inotify_add_watch (guestfs_h *g,\n"
29538 "                            const char *path,\n"
29539 "                            int mask);\n"
29540 "\n"
29541 msgstr ""
29542
29543 #. type: =head2
29544 #: ../src/guestfs-actions.pod:2965
29545 msgid "guestfs_inotify_close"
29546 msgstr ""
29547
29548 #. type: verbatim
29549 #: ../src/guestfs-actions.pod:2967
29550 #, no-wrap
29551 msgid ""
29552 " int\n"
29553 " guestfs_inotify_close (guestfs_h *g);\n"
29554 "\n"
29555 msgstr ""
29556
29557 #. type: =head2
29558 #: ../src/guestfs-actions.pod:2978
29559 msgid "guestfs_inotify_files"
29560 msgstr ""
29561
29562 #. type: verbatim
29563 #: ../src/guestfs-actions.pod:2980
29564 #, no-wrap
29565 msgid ""
29566 " char **\n"
29567 " guestfs_inotify_files (guestfs_h *g);\n"
29568 "\n"
29569 msgstr ""
29570
29571 #. type: textblock
29572 #: ../src/guestfs-actions.pod:2983
29573 msgid ""
29574 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
29575 "returns a list of pathnames of objects that were touched.  The returned "
29576 "pathnames are sorted and deduplicated."
29577 msgstr ""
29578
29579 #. type: =head2
29580 #: ../src/guestfs-actions.pod:2993
29581 msgid "guestfs_inotify_init"
29582 msgstr ""
29583
29584 #. type: verbatim
29585 #: ../src/guestfs-actions.pod:2995
29586 #, no-wrap
29587 msgid ""
29588 " int\n"
29589 " guestfs_inotify_init (guestfs_h *g,\n"
29590 "                       int maxevents);\n"
29591 "\n"
29592 msgstr ""
29593
29594 #. type: textblock
29595 #: ../src/guestfs-actions.pod:3003
29596 msgid ""
29597 "C<maxevents> is the maximum number of events which will be queued up between "
29598 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
29599 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
29600 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
29601 "throws away events, but records the fact that it threw them away by setting "
29602 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
29603 "C<guestfs_inotify_read>)."
29604 msgstr ""
29605
29606 #. type: textblock
29607 #: ../src/guestfs-actions.pod:3013
29608 msgid ""
29609 "Before any events are generated, you have to add some watches to the "
29610 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
29611 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
29612 msgstr ""
29613
29614 #. type: textblock
29615 #: ../src/guestfs-actions.pod:3019
29616 msgid ""
29617 "Queued up events should be read periodically by calling "
29618 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
29619 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
29620 "often enough then you risk the internal queue overflowing."
29621 msgstr ""
29622
29623 #. type: textblock
29624 #: ../src/guestfs-actions.pod:3026
29625 msgid ""
29626 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
29627 "This also removes any watches automatically."
29628 msgstr ""
29629
29630 #. type: =head2
29631 #: ../src/guestfs-actions.pod:3039
29632 msgid "guestfs_inotify_read"
29633 msgstr ""
29634
29635 #. type: verbatim
29636 #: ../src/guestfs-actions.pod:3041
29637 #, no-wrap
29638 msgid ""
29639 " struct guestfs_inotify_event_list *\n"
29640 " guestfs_inotify_read (guestfs_h *g);\n"
29641 "\n"
29642 msgstr ""
29643
29644 #. type: textblock
29645 #: ../src/guestfs-actions.pod:3055
29646 msgid ""
29647 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
29648 "there was an error.  I<The caller must call "
29649 "C<guestfs_free_inotify_event_list> after use>."
29650 msgstr ""
29651
29652 #. type: =head2
29653 #: ../src/guestfs-actions.pod:3061
29654 msgid "guestfs_inotify_rm_watch"
29655 msgstr ""
29656
29657 #. type: verbatim
29658 #: ../src/guestfs-actions.pod:3063
29659 #, no-wrap
29660 msgid ""
29661 " int\n"
29662 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
29663 "                           int wd);\n"
29664 "\n"
29665 msgstr ""
29666
29667 #. type: textblock
29668 #: ../src/guestfs-actions.pod:3067
29669 msgid ""
29670 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
29671 msgstr ""
29672
29673 #. type: =head2
29674 #: ../src/guestfs-actions.pod:3074
29675 msgid "guestfs_inspect_get_arch"
29676 msgstr ""
29677
29678 #. type: verbatim
29679 #: ../src/guestfs-actions.pod:3076
29680 #, no-wrap
29681 msgid ""
29682 " char *\n"
29683 " guestfs_inspect_get_arch (guestfs_h *g,\n"
29684 "                           const char *root);\n"
29685 "\n"
29686 msgstr ""
29687
29688 #. type: textblock
29689 #: ../src/guestfs-actions.pod:3080
29690 msgid ""
29691 "This returns the architecture of the inspected operating system.  The "
29692 "possible return values are listed under C<guestfs_file_architecture>."
29693 msgstr ""
29694
29695 #. type: =head2
29696 #: ../src/guestfs-actions.pod:3094
29697 msgid "guestfs_inspect_get_distro"
29698 msgstr ""
29699
29700 #. type: verbatim
29701 #: ../src/guestfs-actions.pod:3096
29702 #, no-wrap
29703 msgid ""
29704 " char *\n"
29705 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29706 "                             const char *root);\n"
29707 "\n"
29708 msgstr ""
29709
29710 #. type: =head2
29711 #: ../src/guestfs-actions.pod:3196
29712 msgid "guestfs_inspect_get_drive_mappings"
29713 msgstr ""
29714
29715 #. type: verbatim
29716 #: ../src/guestfs-actions.pod:3198
29717 #, no-wrap
29718 msgid ""
29719 " char **\n"
29720 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29721 "                                     const char *root);\n"
29722 "\n"
29723 msgstr ""
29724
29725 #. type: textblock
29726 #: ../src/guestfs-actions.pod:3227
29727 msgid ""
29728 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29729 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29730 msgstr ""
29731
29732 #. type: textblock
29733 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3702
29734 msgid "(Added in 1.9.17)"
29735 msgstr ""
29736
29737 #. type: =head2
29738 #: ../src/guestfs-actions.pod:3239
29739 msgid "guestfs_inspect_get_filesystems"
29740 msgstr ""
29741
29742 #. type: verbatim
29743 #: ../src/guestfs-actions.pod:3241
29744 #, no-wrap
29745 msgid ""
29746 " char **\n"
29747 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29748 "                                  const char *root);\n"
29749 "\n"
29750 msgstr ""
29751
29752 #. type: textblock
29753 #: ../src/guestfs-actions.pod:3253
29754 msgid ""
29755 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29756 "C<guestfs_inspect_get_mountpoints>."
29757 msgstr ""
29758
29759 #. type: =head2
29760 #: ../src/guestfs-actions.pod:3262
29761 msgid "guestfs_inspect_get_format"
29762 msgstr ""
29763
29764 #. type: verbatim
29765 #: ../src/guestfs-actions.pod:3264
29766 #, no-wrap
29767 msgid ""
29768 " char *\n"
29769 " guestfs_inspect_get_format (guestfs_h *g,\n"
29770 "                             const char *root);\n"
29771 "\n"
29772 msgstr ""
29773
29774 #. type: textblock
29775 #: ../src/guestfs-actions.pod:3298 ../src/guestfs-actions.pod:3738
29776 #: ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:3772
29777 #: ../src/guestfs-actions.pod:6698
29778 msgid "(Added in 1.9.4)"
29779 msgstr ""
29780
29781 #. type: =head2
29782 #: ../src/guestfs-actions.pod:3300
29783 msgid "guestfs_inspect_get_hostname"
29784 msgstr ""
29785
29786 #. type: verbatim
29787 #: ../src/guestfs-actions.pod:3302
29788 #, no-wrap
29789 msgid ""
29790 " char *\n"
29791 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29792 "                               const char *root);\n"
29793 "\n"
29794 msgstr ""
29795
29796 #. type: textblock
29797 #: ../src/guestfs-actions.pod:3317
29798 msgid "(Added in 1.7.9)"
29799 msgstr ""
29800
29801 #. type: =head2
29802 #: ../src/guestfs-actions.pod:3319
29803 msgid "guestfs_inspect_get_icon"
29804 msgstr ""
29805
29806 #. type: verbatim
29807 #: ../src/guestfs-actions.pod:3321
29808 #, no-wrap
29809 msgid ""
29810 " char *\n"
29811 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29812 "                           const char *root,\n"
29813 "                           size_t *size_r,\n"
29814 "                           ...);\n"
29815 "\n"
29816 msgstr ""
29817
29818 #. type: verbatim
29819 #: ../src/guestfs-actions.pod:3332
29820 #, no-wrap
29821 msgid ""
29822 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29823 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29824 "\n"
29825 msgstr ""
29826
29827 #. type: textblock
29828 #: ../src/guestfs-actions.pod:3399 ../src/guestfs-actions.pod:4233
29829 #: ../src/guestfs-actions.pod:5630
29830 msgid "(Added in 1.11.12)"
29831 msgstr ""
29832
29833 #. type: =head2
29834 #: ../src/guestfs-actions.pod:3401
29835 msgid "guestfs_inspect_get_icon_va"
29836 msgstr ""
29837
29838 #. type: verbatim
29839 #: ../src/guestfs-actions.pod:3403
29840 #, no-wrap
29841 msgid ""
29842 " char *\n"
29843 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29844 "                              const char *root,\n"
29845 "                              size_t *size_r,\n"
29846 "                              va_list args);\n"
29847 "\n"
29848 msgstr ""
29849
29850 #. type: textblock
29851 #: ../src/guestfs-actions.pod:3409
29852 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29853 msgstr ""
29854
29855 #. type: =head2
29856 #: ../src/guestfs-actions.pod:3413
29857 msgid "guestfs_inspect_get_icon_argv"
29858 msgstr ""
29859
29860 #. type: verbatim
29861 #: ../src/guestfs-actions.pod:3415
29862 #, no-wrap
29863 msgid ""
29864 " char *\n"
29865 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29866 "                                const char *root,\n"
29867 "                                size_t *size_r,\n"
29868 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29869 "\n"
29870 msgstr ""
29871
29872 #. type: textblock
29873 #: ../src/guestfs-actions.pod:3421
29874 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29875 msgstr ""
29876
29877 #. type: =head2
29878 #: ../src/guestfs-actions.pod:3425
29879 msgid "guestfs_inspect_get_major_version"
29880 msgstr ""
29881
29882 #. type: verbatim
29883 #: ../src/guestfs-actions.pod:3427
29884 #, no-wrap
29885 msgid ""
29886 " int\n"
29887 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29888 "                                    const char *root);\n"
29889 "\n"
29890 msgstr ""
29891
29892 #. type: =head2
29893 #: ../src/guestfs-actions.pod:3449
29894 msgid "guestfs_inspect_get_minor_version"
29895 msgstr ""
29896
29897 #. type: verbatim
29898 #: ../src/guestfs-actions.pod:3451
29899 #, no-wrap
29900 msgid ""
29901 " int\n"
29902 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29903 "                                    const char *root);\n"
29904 "\n"
29905 msgstr ""
29906
29907 #. type: textblock
29908 #: ../src/guestfs-actions.pod:3460
29909 msgid ""
29910 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29911 "C<guestfs_inspect_get_major_version>."
29912 msgstr ""
29913
29914 #. type: =head2
29915 #: ../src/guestfs-actions.pod:3467
29916 msgid "guestfs_inspect_get_mountpoints"
29917 msgstr ""
29918
29919 #. type: verbatim
29920 #: ../src/guestfs-actions.pod:3469
29921 #, no-wrap
29922 msgid ""
29923 " char **\n"
29924 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29925 "                                  const char *root);\n"
29926 "\n"
29927 msgstr ""
29928
29929 #. type: textblock
29930 #: ../src/guestfs-actions.pod:3490
29931 msgid ""
29932 "For operating systems like Windows which still use drive letters, this call "
29933 "will only return an entry for the first drive \"mounted on\" C</>.  For "
29934 "information about the mapping of drive letters to partitions, see "
29935 "C<guestfs_inspect_get_drive_mappings>."
29936 msgstr ""
29937
29938 #. type: textblock
29939 #: ../src/guestfs-actions.pod:3496
29940 msgid ""
29941 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29942 "C<guestfs_inspect_get_filesystems>."
29943 msgstr ""
29944
29945 #. type: =head2
29946 #: ../src/guestfs-actions.pod:3507
29947 msgid "guestfs_inspect_get_package_format"
29948 msgstr ""
29949
29950 #. type: verbatim
29951 #: ../src/guestfs-actions.pod:3509
29952 #, no-wrap
29953 msgid ""
29954 " char *\n"
29955 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29956 "                                     const char *root);\n"
29957 "\n"
29958 msgstr ""
29959
29960 #. type: textblock
29961 #: ../src/guestfs-actions.pod:3513
29962 msgid ""
29963 "This function and C<guestfs_inspect_get_package_management> return the "
29964 "package format and package management tool used by the inspected operating "
29965 "system.  For example for Fedora these functions would return C<rpm> (package "
29966 "format) and C<yum> (package management)."
29967 msgstr ""
29968
29969 #. type: textblock
29970 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3560
29971 msgid "(Added in 1.7.5)"
29972 msgstr ""
29973
29974 #. type: =head2
29975 #: ../src/guestfs-actions.pod:3534
29976 msgid "guestfs_inspect_get_package_management"
29977 msgstr ""
29978
29979 #. type: verbatim
29980 #: ../src/guestfs-actions.pod:3536
29981 #, no-wrap
29982 msgid ""
29983 " char *\n"
29984 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29985 "                                         const char *root);\n"
29986 "\n"
29987 msgstr ""
29988
29989 #. type: textblock
29990 #: ../src/guestfs-actions.pod:3540
29991 msgid ""
29992 "C<guestfs_inspect_get_package_format> and this function return the package "
29993 "format and package management tool used by the inspected operating system.  "
29994 "For example for Fedora these functions would return C<rpm> (package format) "
29995 "and C<yum> (package management)."
29996 msgstr ""
29997
29998 #. type: =head2
29999 #: ../src/guestfs-actions.pod:3562
30000 msgid "guestfs_inspect_get_product_name"
30001 msgstr ""
30002
30003 #. type: verbatim
30004 #: ../src/guestfs-actions.pod:3564
30005 #, no-wrap
30006 msgid ""
30007 " char *\n"
30008 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
30009 "                                   const char *root);\n"
30010 "\n"
30011 msgstr ""
30012
30013 #. type: =head2
30014 #: ../src/guestfs-actions.pod:3583
30015 msgid "guestfs_inspect_get_product_variant"
30016 msgstr ""
30017
30018 #. type: verbatim
30019 #: ../src/guestfs-actions.pod:3585
30020 #, no-wrap
30021 msgid ""
30022 " char *\n"
30023 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
30024 "                                      const char *root);\n"
30025 "\n"
30026 msgstr ""
30027
30028 #. type: textblock
30029 #: ../src/guestfs-actions.pod:3608
30030 msgid ""
30031 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30032 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
30033 msgstr ""
30034
30035 #. type: textblock
30036 #: ../src/guestfs-actions.pod:3615
30037 msgid "(Added in 1.9.13)"
30038 msgstr ""
30039
30040 #. type: =head2
30041 #: ../src/guestfs-actions.pod:3617
30042 msgid "guestfs_inspect_get_roots"
30043 msgstr ""
30044
30045 #. type: verbatim
30046 #: ../src/guestfs-actions.pod:3619
30047 #, no-wrap
30048 msgid ""
30049 " char **\n"
30050 " guestfs_inspect_get_roots (guestfs_h *g);\n"
30051 "\n"
30052 msgstr ""
30053
30054 #. type: textblock
30055 #: ../src/guestfs-actions.pod:3622
30056 msgid ""
30057 "This function is a convenient way to get the list of root devices, as "
30058 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
30059 "the whole inspection process."
30060 msgstr ""
30061
30062 #. type: textblock
30063 #: ../src/guestfs-actions.pod:3626
30064 msgid ""
30065 "This returns an empty list if either no root devices were found or the "
30066 "caller has not called C<guestfs_inspect_os>."
30067 msgstr ""
30068
30069 #. type: textblock
30070 #: ../src/guestfs-actions.pod:3635
30071 msgid "(Added in 1.7.3)"
30072 msgstr ""
30073
30074 #. type: =head2
30075 #: ../src/guestfs-actions.pod:3637
30076 msgid "guestfs_inspect_get_type"
30077 msgstr ""
30078
30079 #. type: verbatim
30080 #: ../src/guestfs-actions.pod:3639
30081 #, no-wrap
30082 msgid ""
30083 " char *\n"
30084 " guestfs_inspect_get_type (guestfs_h *g,\n"
30085 "                           const char *root);\n"
30086 "\n"
30087 msgstr ""
30088
30089 #. type: =head2
30090 #: ../src/guestfs-actions.pod:3684
30091 msgid "guestfs_inspect_get_windows_current_control_set"
30092 msgstr ""
30093
30094 #. type: verbatim
30095 #: ../src/guestfs-actions.pod:3686
30096 #, no-wrap
30097 msgid ""
30098 " char *\n"
30099 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
30100 "                                                  const char *root);\n"
30101 "\n"
30102 msgstr ""
30103
30104 #. type: =head2
30105 #: ../src/guestfs-actions.pod:3704
30106 msgid "guestfs_inspect_get_windows_systemroot"
30107 msgstr ""
30108
30109 #. type: verbatim
30110 #: ../src/guestfs-actions.pod:3706
30111 #, no-wrap
30112 msgid ""
30113 " char *\n"
30114 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
30115 "                                         const char *root);\n"
30116 "\n"
30117 msgstr ""
30118
30119 #. type: textblock
30120 #: ../src/guestfs-actions.pod:3722
30121 msgid "(Added in 1.5.25)"
30122 msgstr ""
30123
30124 #. type: =head2
30125 #: ../src/guestfs-actions.pod:3724
30126 msgid "guestfs_inspect_is_live"
30127 msgstr ""
30128
30129 #. type: verbatim
30130 #: ../src/guestfs-actions.pod:3726
30131 #, no-wrap
30132 msgid ""
30133 " int\n"
30134 " guestfs_inspect_is_live (guestfs_h *g,\n"
30135 "                          const char *root);\n"
30136 "\n"
30137 msgstr ""
30138
30139 #. type: textblock
30140 #: ../src/guestfs-actions.pod:3730
30141 msgid ""
30142 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30143 "disk), then this returns true if a live image was detected on the disk."
30144 msgstr ""
30145
30146 #. type: =head2
30147 #: ../src/guestfs-actions.pod:3740
30148 msgid "guestfs_inspect_is_multipart"
30149 msgstr ""
30150
30151 #. type: verbatim
30152 #: ../src/guestfs-actions.pod:3742
30153 #, no-wrap
30154 msgid ""
30155 " int\n"
30156 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
30157 "                               const char *root);\n"
30158 "\n"
30159 msgstr ""
30160
30161 #. type: textblock
30162 #: ../src/guestfs-actions.pod:3746
30163 msgid ""
30164 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30165 "disk), then this returns true if the disk is part of a set."
30166 msgstr ""
30167
30168 #. type: =head2
30169 #: ../src/guestfs-actions.pod:3756
30170 msgid "guestfs_inspect_is_netinst"
30171 msgstr ""
30172
30173 #. type: verbatim
30174 #: ../src/guestfs-actions.pod:3758
30175 #, no-wrap
30176 msgid ""
30177 " int\n"
30178 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
30179 "                             const char *root);\n"
30180 "\n"
30181 msgstr ""
30182
30183 #. type: textblock
30184 #: ../src/guestfs-actions.pod:3762
30185 msgid ""
30186 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30187 "disk), then this returns true if the disk is a network installer, ie. not a "
30188 "self-contained install CD but one which is likely to require network access "
30189 "to complete the install."
30190 msgstr ""
30191
30192 #. type: =head2
30193 #: ../src/guestfs-actions.pod:3774
30194 msgid "guestfs_inspect_list_applications"
30195 msgstr ""
30196
30197 #. type: verbatim
30198 #: ../src/guestfs-actions.pod:3776
30199 #, no-wrap
30200 msgid ""
30201 " struct guestfs_application_list *\n"
30202 " guestfs_inspect_list_applications (guestfs_h *g,\n"
30203 "                                    const char *root);\n"
30204 "\n"
30205 msgstr ""
30206
30207 #. type: textblock
30208 #: ../src/guestfs-actions.pod:3782
30209 msgid ""
30210 "I<Note:> This call works differently from other parts of the inspection "
30211 "API.  You have to call C<guestfs_inspect_os>, then "
30212 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
30213 "this.  Listing applications is a significantly more difficult operation "
30214 "which requires access to the full filesystem.  Also note that unlike the "
30215 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
30216 "the libguestfs handle, this call actually reads parts of the mounted "
30217 "filesystems during the call."
30218 msgstr ""
30219
30220 #. type: textblock
30221 #: ../src/guestfs-actions.pod:3872
30222 msgid ""
30223 "This function returns a C<struct guestfs_application_list *>, or NULL if "
30224 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
30225 "after use>."
30226 msgstr ""
30227
30228 #. type: textblock
30229 #: ../src/guestfs-actions.pod:3876
30230 msgid "(Added in 1.7.8)"
30231 msgstr ""
30232
30233 #. type: =head2
30234 #: ../src/guestfs-actions.pod:3878
30235 msgid "guestfs_inspect_os"
30236 msgstr ""
30237
30238 #. type: verbatim
30239 #: ../src/guestfs-actions.pod:3880
30240 #, no-wrap
30241 msgid ""
30242 " char **\n"
30243 " guestfs_inspect_os (guestfs_h *g);\n"
30244 "\n"
30245 msgstr ""
30246
30247 #. type: textblock
30248 #: ../src/guestfs-actions.pod:3896
30249 msgid ""
30250 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
30251 "functions in order to query further information about each operating system, "
30252 "such as the name and version."
30253 msgstr ""
30254
30255 #. type: textblock
30256 #: ../src/guestfs-actions.pod:3901
30257 msgid ""
30258 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
30259 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
30260 "the contents.  This should be called with no disks currently mounted.  The "
30261 "function may also use Augeas, so any existing Augeas handle will be closed."
30262 msgstr ""
30263
30264 #. type: textblock
30265 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:4244
30266 #: ../src/guestfs-actions.pod:4339
30267 msgid "See also C<guestfs_list_filesystems>."
30268 msgstr ""
30269
30270 #. type: =head2
30271 #: ../src/guestfs-actions.pod:3921
30272 msgid "guestfs_is_blockdev"
30273 msgstr ""
30274
30275 #. type: verbatim
30276 #: ../src/guestfs-actions.pod:3923
30277 #, no-wrap
30278 msgid ""
30279 " int\n"
30280 " guestfs_is_blockdev (guestfs_h *g,\n"
30281 "                      const char *path);\n"
30282 "\n"
30283 msgstr ""
30284
30285 #. type: textblock
30286 #: ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:3959
30287 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4004
30288 #: ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4076
30289 #: ../src/guestfs-actions.pod:4091
30290 msgid "See also C<guestfs_stat>."
30291 msgstr ""
30292
30293 #. type: textblock
30294 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3963
30295 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4080
30296 #: ../src/guestfs-actions.pod:4095
30297 msgid "(Added in 1.5.10)"
30298 msgstr ""
30299
30300 #. type: =head2
30301 #: ../src/guestfs-actions.pod:3936
30302 msgid "guestfs_is_busy"
30303 msgstr ""
30304
30305 #. type: verbatim
30306 #: ../src/guestfs-actions.pod:3938
30307 #, no-wrap
30308 msgid ""
30309 " int\n"
30310 " guestfs_is_busy (guestfs_h *g);\n"
30311 "\n"
30312 msgstr ""
30313
30314 #. type: =head2
30315 #: ../src/guestfs-actions.pod:3950
30316 msgid "guestfs_is_chardev"
30317 msgstr ""
30318
30319 #. type: verbatim
30320 #: ../src/guestfs-actions.pod:3952
30321 #, no-wrap
30322 msgid ""
30323 " int\n"
30324 " guestfs_is_chardev (guestfs_h *g,\n"
30325 "                     const char *path);\n"
30326 "\n"
30327 msgstr ""
30328
30329 #. type: =head2
30330 #: ../src/guestfs-actions.pod:3965
30331 msgid "guestfs_is_config"
30332 msgstr ""
30333
30334 #. type: verbatim
30335 #: ../src/guestfs-actions.pod:3967
30336 #, no-wrap
30337 msgid ""
30338 " int\n"
30339 " guestfs_is_config (guestfs_h *g);\n"
30340 "\n"
30341 msgstr ""
30342
30343 #. type: =head2
30344 #: ../src/guestfs-actions.pod:3979
30345 msgid "guestfs_is_dir"
30346 msgstr ""
30347
30348 #. type: verbatim
30349 #: ../src/guestfs-actions.pod:3981
30350 #, no-wrap
30351 msgid ""
30352 " int\n"
30353 " guestfs_is_dir (guestfs_h *g,\n"
30354 "                 const char *path);\n"
30355 "\n"
30356 msgstr ""
30357
30358 #. type: =head2
30359 #: ../src/guestfs-actions.pod:3995
30360 msgid "guestfs_is_fifo"
30361 msgstr ""
30362
30363 #. type: verbatim
30364 #: ../src/guestfs-actions.pod:3997
30365 #, no-wrap
30366 msgid ""
30367 " int\n"
30368 " guestfs_is_fifo (guestfs_h *g,\n"
30369 "                  const char *path);\n"
30370 "\n"
30371 msgstr ""
30372
30373 #. type: =head2
30374 #: ../src/guestfs-actions.pod:4010
30375 msgid "guestfs_is_file"
30376 msgstr ""
30377
30378 #. type: verbatim
30379 #: ../src/guestfs-actions.pod:4012
30380 #, no-wrap
30381 msgid ""
30382 " int\n"
30383 " guestfs_is_file (guestfs_h *g,\n"
30384 "                  const char *path);\n"
30385 "\n"
30386 msgstr ""
30387
30388 #. type: =head2
30389 #: ../src/guestfs-actions.pod:4026
30390 msgid "guestfs_is_launching"
30391 msgstr ""
30392
30393 #. type: verbatim
30394 #: ../src/guestfs-actions.pod:4028
30395 #, no-wrap
30396 msgid ""
30397 " int\n"
30398 " guestfs_is_launching (guestfs_h *g);\n"
30399 "\n"
30400 msgstr ""
30401
30402 #. type: =head2
30403 #: ../src/guestfs-actions.pod:4040
30404 msgid "guestfs_is_lv"
30405 msgstr ""
30406
30407 #. type: verbatim
30408 #: ../src/guestfs-actions.pod:4042
30409 #, no-wrap
30410 msgid ""
30411 " int\n"
30412 " guestfs_is_lv (guestfs_h *g,\n"
30413 "                const char *device);\n"
30414 "\n"
30415 msgstr ""
30416
30417 #. type: =head2
30418 #: ../src/guestfs-actions.pod:4053
30419 msgid "guestfs_is_ready"
30420 msgstr ""
30421
30422 #. type: verbatim
30423 #: ../src/guestfs-actions.pod:4055
30424 #, no-wrap
30425 msgid ""
30426 " int\n"
30427 " guestfs_is_ready (guestfs_h *g);\n"
30428 "\n"
30429 msgstr ""
30430
30431 #. type: =head2
30432 #: ../src/guestfs-actions.pod:4067
30433 msgid "guestfs_is_socket"
30434 msgstr ""
30435
30436 #. type: verbatim
30437 #: ../src/guestfs-actions.pod:4069
30438 #, no-wrap
30439 msgid ""
30440 " int\n"
30441 " guestfs_is_socket (guestfs_h *g,\n"
30442 "                    const char *path);\n"
30443 "\n"
30444 msgstr ""
30445
30446 #. type: =head2
30447 #: ../src/guestfs-actions.pod:4082
30448 msgid "guestfs_is_symlink"
30449 msgstr ""
30450
30451 #. type: verbatim
30452 #: ../src/guestfs-actions.pod:4084
30453 #, no-wrap
30454 msgid ""
30455 " int\n"
30456 " guestfs_is_symlink (guestfs_h *g,\n"
30457 "                     const char *path);\n"
30458 "\n"
30459 msgstr ""
30460
30461 #. type: =head2
30462 #: ../src/guestfs-actions.pod:4097
30463 msgid "guestfs_is_zero"
30464 msgstr ""
30465
30466 #. type: verbatim
30467 #: ../src/guestfs-actions.pod:4099
30468 #, no-wrap
30469 msgid ""
30470 " int\n"
30471 " guestfs_is_zero (guestfs_h *g,\n"
30472 "                  const char *path);\n"
30473 "\n"
30474 msgstr ""
30475
30476 #. type: textblock
30477 #: ../src/guestfs-actions.pod:4108 ../src/guestfs-actions.pod:4122
30478 msgid "(Added in 1.11.8)"
30479 msgstr ""
30480
30481 #. type: =head2
30482 #: ../src/guestfs-actions.pod:4110
30483 msgid "guestfs_is_zero_device"
30484 msgstr ""
30485
30486 #. type: verbatim
30487 #: ../src/guestfs-actions.pod:4112
30488 #, no-wrap
30489 msgid ""
30490 " int\n"
30491 " guestfs_is_zero_device (guestfs_h *g,\n"
30492 "                         const char *device);\n"
30493 "\n"
30494 msgstr ""
30495
30496 #. type: =head2
30497 #: ../src/guestfs-actions.pod:4124
30498 msgid "guestfs_kill_subprocess"
30499 msgstr ""
30500
30501 #. type: verbatim
30502 #: ../src/guestfs-actions.pod:4126
30503 #, no-wrap
30504 msgid ""
30505 " int\n"
30506 " guestfs_kill_subprocess (guestfs_h *g);\n"
30507 "\n"
30508 msgstr ""
30509
30510 #. type: =head2
30511 #: ../src/guestfs-actions.pod:4135
30512 msgid "guestfs_launch"
30513 msgstr ""
30514
30515 #. type: verbatim
30516 #: ../src/guestfs-actions.pod:4137
30517 #, no-wrap
30518 msgid ""
30519 " int\n"
30520 " guestfs_launch (guestfs_h *g);\n"
30521 "\n"
30522 msgstr ""
30523
30524 #. type: =head2
30525 #: ../src/guestfs-actions.pod:4155
30526 msgid "guestfs_lchown"
30527 msgstr ""
30528
30529 #. type: verbatim
30530 #: ../src/guestfs-actions.pod:4157
30531 #, no-wrap
30532 msgid ""
30533 " int\n"
30534 " guestfs_lchown (guestfs_h *g,\n"
30535 "                 int owner,\n"
30536 "                 int group,\n"
30537 "                 const char *path);\n"
30538 "\n"
30539 msgstr ""
30540
30541 #. type: textblock
30542 #: ../src/guestfs-actions.pod:4163
30543 msgid ""
30544 "Change the file owner to C<owner> and group to C<group>.  This is like "
30545 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
30546 "changed, not the target."
30547 msgstr ""
30548
30549 #. type: =head2
30550 #: ../src/guestfs-actions.pod:4175
30551 msgid "guestfs_lgetxattr"
30552 msgstr ""
30553
30554 #. type: verbatim
30555 #: ../src/guestfs-actions.pod:4177
30556 #, no-wrap
30557 msgid ""
30558 " char *\n"
30559 " guestfs_lgetxattr (guestfs_h *g,\n"
30560 "                    const char *path,\n"
30561 "                    const char *name,\n"
30562 "                    size_t *size_r);\n"
30563 "\n"
30564 msgstr ""
30565
30566 #. type: textblock
30567 #: ../src/guestfs-actions.pod:4197
30568 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
30569 msgstr ""
30570
30571 #. type: =head2
30572 #: ../src/guestfs-actions.pod:4205
30573 msgid "guestfs_lgetxattrs"
30574 msgstr ""
30575
30576 #. type: verbatim
30577 #: ../src/guestfs-actions.pod:4207
30578 #, no-wrap
30579 msgid ""
30580 " struct guestfs_xattr_list *\n"
30581 " guestfs_lgetxattrs (guestfs_h *g,\n"
30582 "                     const char *path);\n"
30583 "\n"
30584 msgstr ""
30585
30586 #. type: textblock
30587 #: ../src/guestfs-actions.pod:4211
30588 msgid ""
30589 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
30590 "then it returns the extended attributes of the link itself."
30591 msgstr ""
30592
30593 #. type: =head2
30594 #: ../src/guestfs-actions.pod:4221
30595 msgid "guestfs_list_9p"
30596 msgstr ""
30597
30598 #. type: verbatim
30599 #: ../src/guestfs-actions.pod:4223
30600 #, no-wrap
30601 msgid ""
30602 " char **\n"
30603 " guestfs_list_9p (guestfs_h *g);\n"
30604 "\n"
30605 msgstr ""
30606
30607 #. type: =head2
30608 #: ../src/guestfs-actions.pod:4235
30609 msgid "guestfs_list_devices"
30610 msgstr ""
30611
30612 #. type: verbatim
30613 #: ../src/guestfs-actions.pod:4237
30614 #, no-wrap
30615 msgid ""
30616 " char **\n"
30617 " guestfs_list_devices (guestfs_h *g);\n"
30618 "\n"
30619 msgstr ""
30620
30621 #. type: =head2
30622 #: ../src/guestfs-actions.pod:4252
30623 msgid "guestfs_list_dm_devices"
30624 msgstr ""
30625
30626 #. type: verbatim
30627 #: ../src/guestfs-actions.pod:4254
30628 #, no-wrap
30629 msgid ""
30630 " char **\n"
30631 " guestfs_list_dm_devices (guestfs_h *g);\n"
30632 "\n"
30633 msgstr ""
30634
30635 #. type: textblock
30636 #: ../src/guestfs-actions.pod:4259
30637 msgid ""
30638 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
30639 "previous call to C<guestfs_luks_open>."
30640 msgstr ""
30641
30642 #. type: textblock
30643 #: ../src/guestfs-actions.pod:4262
30644 msgid ""
30645 "Device mapper devices which correspond to logical volumes are I<not> "
30646 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
30647 "volumes."
30648 msgstr ""
30649
30650 #. type: textblock
30651 #: ../src/guestfs-actions.pod:4270 ../src/guestfs-actions.pod:5869
30652 msgid "(Added in 1.11.15)"
30653 msgstr ""
30654
30655 #. type: =head2
30656 #: ../src/guestfs-actions.pod:4272
30657 msgid "guestfs_list_filesystems"
30658 msgstr ""
30659
30660 #. type: verbatim
30661 #: ../src/guestfs-actions.pod:4274
30662 #, no-wrap
30663 msgid ""
30664 " char **\n"
30665 " guestfs_list_filesystems (guestfs_h *g);\n"
30666 "\n"
30667 msgstr ""
30668
30669 #. type: textblock
30670 #: ../src/guestfs-actions.pod:4294
30671 msgid ""
30672 "This command runs other libguestfs commands, which might include "
30673 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
30674 "soon after launch and only when nothing is mounted."
30675 msgstr ""
30676
30677 #. type: textblock
30678 #: ../src/guestfs-actions.pod:4298
30679 msgid ""
30680 "Not all of the filesystems returned will be mountable.  In particular, swap "
30681 "partitions are returned in the list.  Also this command does not check that "
30682 "each filesystem found is valid and mountable, and some filesystems might be "
30683 "mountable but require special options.  Filesystems may not all belong to a "
30684 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
30685 msgstr ""
30686
30687 #. type: textblock
30688 #: ../src/guestfs-actions.pod:4312 ../src/guestfs-actions.pod:6229
30689 msgid "(Added in 1.5.15)"
30690 msgstr ""
30691
30692 #. type: =head2
30693 #: ../src/guestfs-actions.pod:4314
30694 msgid "guestfs_list_md_devices"
30695 msgstr ""
30696
30697 #. type: verbatim
30698 #: ../src/guestfs-actions.pod:4316
30699 #, no-wrap
30700 msgid ""
30701 " char **\n"
30702 " guestfs_list_md_devices (guestfs_h *g);\n"
30703 "\n"
30704 msgstr ""
30705
30706 #. type: textblock
30707 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:7890
30708 msgid "(Added in 1.15.4)"
30709 msgstr ""
30710
30711 #. type: =head2
30712 #: ../src/guestfs-actions.pod:4327
30713 msgid "guestfs_list_partitions"
30714 msgstr ""
30715
30716 #. type: verbatim
30717 #: ../src/guestfs-actions.pod:4329
30718 #, no-wrap
30719 msgid ""
30720 " char **\n"
30721 " guestfs_list_partitions (guestfs_h *g);\n"
30722 "\n"
30723 msgstr ""
30724
30725 #. type: textblock
30726 #: ../src/guestfs-actions.pod:4336
30727 msgid ""
30728 "This does not return logical volumes.  For that you will need to call "
30729 "C<guestfs_lvs>."
30730 msgstr ""
30731
30732 #. type: =head2
30733 #: ../src/guestfs-actions.pod:4347
30734 msgid "guestfs_ll"
30735 msgstr ""
30736
30737 #. type: verbatim
30738 #: ../src/guestfs-actions.pod:4349
30739 #, no-wrap
30740 msgid ""
30741 " char *\n"
30742 " guestfs_ll (guestfs_h *g,\n"
30743 "             const char *directory);\n"
30744 "\n"
30745 msgstr ""
30746
30747 #. type: =head2
30748 #: ../src/guestfs-actions.pod:4364
30749 msgid "guestfs_ln"
30750 msgstr ""
30751
30752 #. type: verbatim
30753 #: ../src/guestfs-actions.pod:4366
30754 #, no-wrap
30755 msgid ""
30756 " int\n"
30757 " guestfs_ln (guestfs_h *g,\n"
30758 "             const char *target,\n"
30759 "             const char *linkname);\n"
30760 "\n"
30761 msgstr ""
30762
30763 #. type: =head2
30764 #: ../src/guestfs-actions.pod:4377
30765 msgid "guestfs_ln_f"
30766 msgstr ""
30767
30768 #. type: verbatim
30769 #: ../src/guestfs-actions.pod:4379
30770 #, no-wrap
30771 msgid ""
30772 " int\n"
30773 " guestfs_ln_f (guestfs_h *g,\n"
30774 "               const char *target,\n"
30775 "               const char *linkname);\n"
30776 "\n"
30777 msgstr ""
30778
30779 #. type: =head2
30780 #: ../src/guestfs-actions.pod:4391
30781 msgid "guestfs_ln_s"
30782 msgstr ""
30783
30784 #. type: verbatim
30785 #: ../src/guestfs-actions.pod:4393
30786 #, no-wrap
30787 msgid ""
30788 " int\n"
30789 " guestfs_ln_s (guestfs_h *g,\n"
30790 "               const char *target,\n"
30791 "               const char *linkname);\n"
30792 "\n"
30793 msgstr ""
30794
30795 #. type: =head2
30796 #: ../src/guestfs-actions.pod:4404
30797 msgid "guestfs_ln_sf"
30798 msgstr ""
30799
30800 #. type: verbatim
30801 #: ../src/guestfs-actions.pod:4406
30802 #, no-wrap
30803 msgid ""
30804 " int\n"
30805 " guestfs_ln_sf (guestfs_h *g,\n"
30806 "                const char *target,\n"
30807 "                const char *linkname);\n"
30808 "\n"
30809 msgstr ""
30810
30811 #. type: =head2
30812 #: ../src/guestfs-actions.pod:4418
30813 msgid "guestfs_lremovexattr"
30814 msgstr ""
30815
30816 #. type: verbatim
30817 #: ../src/guestfs-actions.pod:4420
30818 #, no-wrap
30819 msgid ""
30820 " int\n"
30821 " guestfs_lremovexattr (guestfs_h *g,\n"
30822 "                       const char *xattr,\n"
30823 "                       const char *path);\n"
30824 "\n"
30825 msgstr ""
30826
30827 #. type: textblock
30828 #: ../src/guestfs-actions.pod:4425
30829 msgid ""
30830 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30831 "link, then it removes an extended attribute of the link itself."
30832 msgstr ""
30833
30834 #. type: =head2
30835 #: ../src/guestfs-actions.pod:4433
30836 msgid "guestfs_ls"
30837 msgstr ""
30838
30839 #. type: verbatim
30840 #: ../src/guestfs-actions.pod:4435
30841 #, no-wrap
30842 msgid ""
30843 " char **\n"
30844 " guestfs_ls (guestfs_h *g,\n"
30845 "             const char *directory);\n"
30846 "\n"
30847 msgstr ""
30848
30849 #. type: textblock
30850 #: ../src/guestfs-actions.pod:4443
30851 msgid ""
30852 "This command is mostly useful for interactive sessions.  Programs should "
30853 "probably use C<guestfs_readdir> instead."
30854 msgstr ""
30855
30856 #. type: =head2
30857 #: ../src/guestfs-actions.pod:4452
30858 msgid "guestfs_lsetxattr"
30859 msgstr ""
30860
30861 #. type: verbatim
30862 #: ../src/guestfs-actions.pod:4454
30863 #, no-wrap
30864 msgid ""
30865 " int\n"
30866 " guestfs_lsetxattr (guestfs_h *g,\n"
30867 "                    const char *xattr,\n"
30868 "                    const char *val,\n"
30869 "                    int vallen,\n"
30870 "                    const char *path);\n"
30871 "\n"
30872 msgstr ""
30873
30874 #. type: textblock
30875 #: ../src/guestfs-actions.pod:4461
30876 msgid ""
30877 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30878 "then it sets an extended attribute of the link itself."
30879 msgstr ""
30880
30881 #. type: =head2
30882 #: ../src/guestfs-actions.pod:4469
30883 msgid "guestfs_lstat"
30884 msgstr ""
30885
30886 #. type: verbatim
30887 #: ../src/guestfs-actions.pod:4471
30888 #, no-wrap
30889 msgid ""
30890 " struct guestfs_stat *\n"
30891 " guestfs_lstat (guestfs_h *g,\n"
30892 "                const char *path);\n"
30893 "\n"
30894 msgstr ""
30895
30896 #. type: textblock
30897 #: ../src/guestfs-actions.pod:4477
30898 msgid ""
30899 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30900 "link, then the link is stat-ed, not the file it refers to."
30901 msgstr ""
30902
30903 #. type: textblock
30904 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:7409
30905 msgid ""
30906 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30907 "error.  I<The caller must call C<guestfs_free_stat> after use>."
30908 msgstr ""
30909
30910 #. type: textblock
30911 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:7413
30912 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7934
30913 msgid "(Added in 0.9.2)"
30914 msgstr ""
30915
30916 #. type: =head2
30917 #: ../src/guestfs-actions.pod:4489
30918 msgid "guestfs_lstatlist"
30919 msgstr ""
30920
30921 #. type: verbatim
30922 #: ../src/guestfs-actions.pod:4491
30923 #, no-wrap
30924 msgid ""
30925 " struct guestfs_stat_list *\n"
30926 " guestfs_lstatlist (guestfs_h *g,\n"
30927 "                    const char *path,\n"
30928 "                    char *const *names);\n"
30929 "\n"
30930 msgstr ""
30931
30932 #. type: textblock
30933 #: ../src/guestfs-actions.pod:4496
30934 msgid ""
30935 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30936 "files, where all files are in the directory C<path>.  C<names> is the list "
30937 "of files from this directory."
30938 msgstr ""
30939
30940 #. type: textblock
30941 #: ../src/guestfs-actions.pod:4505
30942 msgid ""
30943 "This call is intended for programs that want to efficiently list a directory "
30944 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
30945 "for a similarly efficient call for getting extended attributes.  Very long "
30946 "directory listings might cause the protocol message size to be exceeded, "
30947 "causing this call to fail.  The caller must split up such requests into "
30948 "smaller groups of names."
30949 msgstr ""
30950
30951 #. type: textblock
30952 #: ../src/guestfs-actions.pod:4513
30953 msgid ""
30954 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30955 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
30956 msgstr ""
30957
30958 #. type: =head2
30959 #: ../src/guestfs-actions.pod:4519
30960 msgid "guestfs_luks_add_key"
30961 msgstr ""
30962
30963 #. type: verbatim
30964 #: ../src/guestfs-actions.pod:4521
30965 #, no-wrap
30966 msgid ""
30967 " int\n"
30968 " guestfs_luks_add_key (guestfs_h *g,\n"
30969 "                       const char *device,\n"
30970 "                       const char *key,\n"
30971 "                       const char *newkey,\n"
30972 "                       int keyslot);\n"
30973 "\n"
30974 msgstr ""
30975
30976 #. type: textblock
30977 #: ../src/guestfs-actions.pod:4533
30978 msgid ""
30979 "Note that if C<keyslot> already contains a key, then this command will "
30980 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
30981 msgstr ""
30982
30983 #. type: textblock
30984 #: ../src/guestfs-actions.pod:4539 ../src/guestfs-actions.pod:4576
30985 #: ../src/guestfs-actions.pod:4596 ../src/guestfs-actions.pod:4616
30986 #: ../src/guestfs-actions.pod:4651 ../src/guestfs-actions.pod:4670
30987 msgid ""
30988 "This function takes a key or passphrase parameter which could contain "
30989 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
30990 "information."
30991 msgstr ""
30992
30993 #. type: textblock
30994 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4580
30995 #: ../src/guestfs-actions.pod:4600 ../src/guestfs-actions.pod:4620
30996 msgid "(Added in 1.5.2)"
30997 msgstr ""
30998
30999 #. type: =head2
31000 #: ../src/guestfs-actions.pod:4545
31001 msgid "guestfs_luks_close"
31002 msgstr ""
31003
31004 #. type: verbatim
31005 #: ../src/guestfs-actions.pod:4547
31006 #, no-wrap
31007 msgid ""
31008 " int\n"
31009 " guestfs_luks_close (guestfs_h *g,\n"
31010 "                     const char *device);\n"
31011 "\n"
31012 msgstr ""
31013
31014 #. type: textblock
31015 #: ../src/guestfs-actions.pod:4551
31016 msgid ""
31017 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
31018 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
31019 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
31020 "underlying block device."
31021 msgstr ""
31022
31023 #. type: textblock
31024 #: ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4655
31025 #: ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4724
31026 #: ../src/guestfs-actions.pod:4769
31027 msgid "(Added in 1.5.1)"
31028 msgstr ""
31029
31030 #. type: =head2
31031 #: ../src/guestfs-actions.pod:4561
31032 msgid "guestfs_luks_format"
31033 msgstr ""
31034
31035 #. type: verbatim
31036 #: ../src/guestfs-actions.pod:4563
31037 #, no-wrap
31038 msgid ""
31039 " int\n"
31040 " guestfs_luks_format (guestfs_h *g,\n"
31041 "                      const char *device,\n"
31042 "                      const char *key,\n"
31043 "                      int keyslot);\n"
31044 "\n"
31045 msgstr ""
31046
31047 #. type: =head2
31048 #: ../src/guestfs-actions.pod:4582
31049 msgid "guestfs_luks_format_cipher"
31050 msgstr ""
31051
31052 #. type: verbatim
31053 #: ../src/guestfs-actions.pod:4584
31054 #, no-wrap
31055 msgid ""
31056 " int\n"
31057 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31058 "                             const char *device,\n"
31059 "                             const char *key,\n"
31060 "                             int keyslot,\n"
31061 "                             const char *cipher);\n"
31062 "\n"
31063 msgstr ""
31064
31065 #. type: textblock
31066 #: ../src/guestfs-actions.pod:4591
31067 msgid ""
31068 "This command is the same as C<guestfs_luks_format> but it also allows you to "
31069 "set the C<cipher> used."
31070 msgstr ""
31071
31072 #. type: =head2
31073 #: ../src/guestfs-actions.pod:4602
31074 msgid "guestfs_luks_kill_slot"
31075 msgstr ""
31076
31077 #. type: verbatim
31078 #: ../src/guestfs-actions.pod:4604
31079 #, no-wrap
31080 msgid ""
31081 " int\n"
31082 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31083 "                         const char *device,\n"
31084 "                         const char *key,\n"
31085 "                         int keyslot);\n"
31086 "\n"
31087 msgstr ""
31088
31089 #. type: =head2
31090 #: ../src/guestfs-actions.pod:4622
31091 msgid "guestfs_luks_open"
31092 msgstr ""
31093
31094 #. type: verbatim
31095 #: ../src/guestfs-actions.pod:4624
31096 #, no-wrap
31097 msgid ""
31098 " int\n"
31099 " guestfs_luks_open (guestfs_h *g,\n"
31100 "                    const char *device,\n"
31101 "                    const char *key,\n"
31102 "                    const char *mapname);\n"
31103 "\n"
31104 msgstr ""
31105
31106 #. type: textblock
31107 #: ../src/guestfs-actions.pod:4642
31108 msgid ""
31109 "If this block device contains LVM volume groups, then calling "
31110 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
31111 "visible."
31112 msgstr ""
31113
31114 #. type: textblock
31115 #: ../src/guestfs-actions.pod:4646
31116 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
31117 msgstr ""
31118
31119 #. type: =head2
31120 #: ../src/guestfs-actions.pod:4657
31121 msgid "guestfs_luks_open_ro"
31122 msgstr ""
31123
31124 #. type: verbatim
31125 #: ../src/guestfs-actions.pod:4659
31126 #, no-wrap
31127 msgid ""
31128 " int\n"
31129 " guestfs_luks_open_ro (guestfs_h *g,\n"
31130 "                       const char *device,\n"
31131 "                       const char *key,\n"
31132 "                       const char *mapname);\n"
31133 "\n"
31134 msgstr ""
31135
31136 #. type: textblock
31137 #: ../src/guestfs-actions.pod:4665
31138 msgid ""
31139 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
31140 "created."
31141 msgstr ""
31142
31143 #. type: =head2
31144 #: ../src/guestfs-actions.pod:4676
31145 msgid "guestfs_lvcreate"
31146 msgstr ""
31147
31148 #. type: verbatim
31149 #: ../src/guestfs-actions.pod:4678
31150 #, no-wrap
31151 msgid ""
31152 " int\n"
31153 " guestfs_lvcreate (guestfs_h *g,\n"
31154 "                   const char *logvol,\n"
31155 "                   const char *volgroup,\n"
31156 "                   int mbytes);\n"
31157 "\n"
31158 msgstr ""
31159
31160 #. type: =head2
31161 #: ../src/guestfs-actions.pod:4691
31162 msgid "guestfs_lvm_canonical_lv_name"
31163 msgstr ""
31164
31165 #. type: verbatim
31166 #: ../src/guestfs-actions.pod:4693
31167 #, no-wrap
31168 msgid ""
31169 " char *\n"
31170 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31171 "                                const char *lvname);\n"
31172 "\n"
31173 msgstr ""
31174
31175 #. type: textblock
31176 #: ../src/guestfs-actions.pod:4704
31177 msgid "See also C<guestfs_is_lv>."
31178 msgstr ""
31179
31180 #. type: textblock
31181 #: ../src/guestfs-actions.pod:4709
31182 msgid "(Added in 1.5.24)"
31183 msgstr ""
31184
31185 #. type: =head2
31186 #: ../src/guestfs-actions.pod:4711
31187 msgid "guestfs_lvm_clear_filter"
31188 msgstr ""
31189
31190 #. type: verbatim
31191 #: ../src/guestfs-actions.pod:4713
31192 #, no-wrap
31193 msgid ""
31194 " int\n"
31195 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31196 "\n"
31197 msgstr ""
31198
31199 #. type: textblock
31200 #: ../src/guestfs-actions.pod:4716
31201 msgid ""
31202 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
31203 "see every block device."
31204 msgstr ""
31205
31206 #. type: =head2
31207 #: ../src/guestfs-actions.pod:4726
31208 msgid "guestfs_lvm_remove_all"
31209 msgstr ""
31210
31211 #. type: verbatim
31212 #: ../src/guestfs-actions.pod:4728
31213 #, no-wrap
31214 msgid ""
31215 " int\n"
31216 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31217 "\n"
31218 msgstr ""
31219
31220 #. type: =head2
31221 #: ../src/guestfs-actions.pod:4738
31222 msgid "guestfs_lvm_set_filter"
31223 msgstr ""
31224
31225 #. type: verbatim
31226 #: ../src/guestfs-actions.pod:4740
31227 #, no-wrap
31228 msgid ""
31229 " int\n"
31230 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31231 "                         char *const *devices);\n"
31232 "\n"
31233 msgstr ""
31234
31235 #. type: =head2
31236 #: ../src/guestfs-actions.pod:4771
31237 msgid "guestfs_lvremove"
31238 msgstr ""
31239
31240 #. type: verbatim
31241 #: ../src/guestfs-actions.pod:4773
31242 #, no-wrap
31243 msgid ""
31244 " int\n"
31245 " guestfs_lvremove (guestfs_h *g,\n"
31246 "                   const char *device);\n"
31247 "\n"
31248 msgstr ""
31249
31250 #. type: textblock
31251 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:6344
31252 #: ../src/guestfs-actions.pod:8304
31253 msgid "(Added in 1.0.13)"
31254 msgstr ""
31255
31256 #. type: =head2
31257 #: ../src/guestfs-actions.pod:4787
31258 msgid "guestfs_lvrename"
31259 msgstr ""
31260
31261 #. type: verbatim
31262 #: ../src/guestfs-actions.pod:4789
31263 #, no-wrap
31264 msgid ""
31265 " int\n"
31266 " guestfs_lvrename (guestfs_h *g,\n"
31267 "                   const char *logvol,\n"
31268 "                   const char *newlogvol);\n"
31269 "\n"
31270 msgstr ""
31271
31272 #. type: textblock
31273 #: ../src/guestfs-actions.pod:4798 ../src/guestfs-actions.pod:8317
31274 msgid "(Added in 1.0.83)"
31275 msgstr ""
31276
31277 #. type: =head2
31278 #: ../src/guestfs-actions.pod:4800
31279 msgid "guestfs_lvresize"
31280 msgstr ""
31281
31282 #. type: verbatim
31283 #: ../src/guestfs-actions.pod:4802
31284 #, no-wrap
31285 msgid ""
31286 " int\n"
31287 " guestfs_lvresize (guestfs_h *g,\n"
31288 "                   const char *device,\n"
31289 "                   int mbytes);\n"
31290 "\n"
31291 msgstr ""
31292
31293 #. type: =head2
31294 #: ../src/guestfs-actions.pod:4815
31295 msgid "guestfs_lvresize_free"
31296 msgstr ""
31297
31298 #. type: verbatim
31299 #: ../src/guestfs-actions.pod:4817
31300 #, no-wrap
31301 msgid ""
31302 " int\n"
31303 " guestfs_lvresize_free (guestfs_h *g,\n"
31304 "                        const char *lv,\n"
31305 "                        int percent);\n"
31306 "\n"
31307 msgstr ""
31308
31309 #. type: textblock
31310 #: ../src/guestfs-actions.pod:4830
31311 msgid "(Added in 1.3.3)"
31312 msgstr ""
31313
31314 #. type: =head2
31315 #: ../src/guestfs-actions.pod:4832
31316 msgid "guestfs_lvs"
31317 msgstr ""
31318
31319 #. type: verbatim
31320 #: ../src/guestfs-actions.pod:4834
31321 #, no-wrap
31322 msgid ""
31323 " char **\n"
31324 " guestfs_lvs (guestfs_h *g);\n"
31325 "\n"
31326 msgstr ""
31327
31328 #. type: textblock
31329 #: ../src/guestfs-actions.pod:4843
31330 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
31331 msgstr ""
31332
31333 #. type: =head2
31334 #: ../src/guestfs-actions.pod:4851
31335 msgid "guestfs_lvs_full"
31336 msgstr ""
31337
31338 #. type: verbatim
31339 #: ../src/guestfs-actions.pod:4853
31340 #, no-wrap
31341 msgid ""
31342 " struct guestfs_lvm_lv_list *\n"
31343 " guestfs_lvs_full (guestfs_h *g);\n"
31344 "\n"
31345 msgstr ""
31346
31347 #. type: textblock
31348 #: ../src/guestfs-actions.pod:4859
31349 msgid ""
31350 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
31351 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
31352 msgstr ""
31353
31354 #. type: =head2
31355 #: ../src/guestfs-actions.pod:4865
31356 msgid "guestfs_lvuuid"
31357 msgstr ""
31358
31359 #. type: verbatim
31360 #: ../src/guestfs-actions.pod:4867
31361 #, no-wrap
31362 msgid ""
31363 " char *\n"
31364 " guestfs_lvuuid (guestfs_h *g,\n"
31365 "                 const char *device);\n"
31366 "\n"
31367 msgstr ""
31368
31369 #. type: =head2
31370 #: ../src/guestfs-actions.pod:4878
31371 msgid "guestfs_lxattrlist"
31372 msgstr ""
31373
31374 #. type: verbatim
31375 #: ../src/guestfs-actions.pod:4880
31376 #, no-wrap
31377 msgid ""
31378 " struct guestfs_xattr_list *\n"
31379 " guestfs_lxattrlist (guestfs_h *g,\n"
31380 "                     const char *path,\n"
31381 "                     char *const *names);\n"
31382 "\n"
31383 msgstr ""
31384
31385 #. type: textblock
31386 #: ../src/guestfs-actions.pod:4899
31387 msgid ""
31388 "This call is intended for programs that want to efficiently list a directory "
31389 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
31390 "a similarly efficient call for getting standard stats.  Very long directory "
31391 "listings might cause the protocol message size to be exceeded, causing this "
31392 "call to fail.  The caller must split up such requests into smaller groups of "
31393 "names."
31394 msgstr ""
31395
31396 #. type: =head2
31397 #: ../src/guestfs-actions.pod:4913
31398 msgid "guestfs_md_create"
31399 msgstr ""
31400
31401 #. type: verbatim
31402 #: ../src/guestfs-actions.pod:4915
31403 #, no-wrap
31404 msgid ""
31405 " int\n"
31406 " guestfs_md_create (guestfs_h *g,\n"
31407 "                    const char *name,\n"
31408 "                    char *const *devices,\n"
31409 "                    ...);\n"
31410 "\n"
31411 msgstr ""
31412
31413 #. type: verbatim
31414 #: ../src/guestfs-actions.pod:4926
31415 #, no-wrap
31416 msgid ""
31417 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
31418 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
31419 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
31420 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
31421 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
31422 "\n"
31423 msgstr ""
31424
31425 #. type: =head2
31426 #: ../src/guestfs-actions.pod:4988
31427 msgid "guestfs_md_create_va"
31428 msgstr ""
31429
31430 #. type: verbatim
31431 #: ../src/guestfs-actions.pod:4990
31432 #, no-wrap
31433 msgid ""
31434 " int\n"
31435 " guestfs_md_create_va (guestfs_h *g,\n"
31436 "                       const char *name,\n"
31437 "                       char *const *devices,\n"
31438 "                       va_list args);\n"
31439 "\n"
31440 msgstr ""
31441
31442 #. type: textblock
31443 #: ../src/guestfs-actions.pod:4996
31444 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
31445 msgstr ""
31446
31447 #. type: =head2
31448 #: ../src/guestfs-actions.pod:5000
31449 msgid "guestfs_md_create_argv"
31450 msgstr ""
31451
31452 #. type: verbatim
31453 #: ../src/guestfs-actions.pod:5002
31454 #, no-wrap
31455 msgid ""
31456 " int\n"
31457 " guestfs_md_create_argv (guestfs_h *g,\n"
31458 "                         const char *name,\n"
31459 "                         char *const *devices,\n"
31460 "                         const struct guestfs_md_create_argv *optargs);\n"
31461 "\n"
31462 msgstr ""
31463
31464 #. type: textblock
31465 #: ../src/guestfs-actions.pod:5008
31466 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
31467 msgstr ""
31468
31469 #. type: =head2
31470 #: ../src/guestfs-actions.pod:5012
31471 msgid "guestfs_md_detail"
31472 msgstr ""
31473
31474 #. type: verbatim
31475 #: ../src/guestfs-actions.pod:5014
31476 #, no-wrap
31477 msgid ""
31478 " char **\n"
31479 " guestfs_md_detail (guestfs_h *g,\n"
31480 "                    const char *md);\n"
31481 "\n"
31482 msgstr ""
31483
31484 #. type: =head2
31485 #: ../src/guestfs-actions.pod:5051
31486 msgid "guestfs_md_stop"
31487 msgstr ""
31488
31489 #. type: verbatim
31490 #: ../src/guestfs-actions.pod:5053
31491 #, no-wrap
31492 msgid ""
31493 " int\n"
31494 " guestfs_md_stop (guestfs_h *g,\n"
31495 "                  const char *md);\n"
31496 "\n"
31497 msgstr ""
31498
31499 #. type: =head2
31500 #: ../src/guestfs-actions.pod:5062
31501 msgid "guestfs_mkdir"
31502 msgstr ""
31503
31504 #. type: verbatim
31505 #: ../src/guestfs-actions.pod:5064
31506 #, no-wrap
31507 msgid ""
31508 " int\n"
31509 " guestfs_mkdir (guestfs_h *g,\n"
31510 "                const char *path);\n"
31511 "\n"
31512 msgstr ""
31513
31514 #. type: =head2
31515 #: ../src/guestfs-actions.pod:5074
31516 msgid "guestfs_mkdir_mode"
31517 msgstr ""
31518
31519 #. type: verbatim
31520 #: ../src/guestfs-actions.pod:5076
31521 #, no-wrap
31522 msgid ""
31523 " int\n"
31524 " guestfs_mkdir_mode (guestfs_h *g,\n"
31525 "                     const char *path,\n"
31526 "                     int mode);\n"
31527 "\n"
31528 msgstr ""
31529
31530 #. type: textblock
31531 #: ../src/guestfs-actions.pod:5088
31532 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
31533 msgstr ""
31534
31535 #. type: =head2
31536 #: ../src/guestfs-actions.pod:5094
31537 msgid "guestfs_mkdir_p"
31538 msgstr ""
31539
31540 #. type: verbatim
31541 #: ../src/guestfs-actions.pod:5096
31542 #, no-wrap
31543 msgid ""
31544 " int\n"
31545 " guestfs_mkdir_p (guestfs_h *g,\n"
31546 "                  const char *path);\n"
31547 "\n"
31548 msgstr ""
31549
31550 #. type: =head2
31551 #: ../src/guestfs-actions.pod:5107
31552 msgid "guestfs_mkdtemp"
31553 msgstr ""
31554
31555 #. type: verbatim
31556 #: ../src/guestfs-actions.pod:5109
31557 #, no-wrap
31558 msgid ""
31559 " char *\n"
31560 " guestfs_mkdtemp (guestfs_h *g,\n"
31561 "                  const char *template);\n"
31562 "\n"
31563 msgstr ""
31564
31565 #. type: =head2
31566 #: ../src/guestfs-actions.pod:5137
31567 msgid "guestfs_mke2fs_J"
31568 msgstr ""
31569
31570 #. type: verbatim
31571 #: ../src/guestfs-actions.pod:5139
31572 #, no-wrap
31573 msgid ""
31574 " int\n"
31575 " guestfs_mke2fs_J (guestfs_h *g,\n"
31576 "                   const char *fstype,\n"
31577 "                   int blocksize,\n"
31578 "                   const char *device,\n"
31579 "                   const char *journal);\n"
31580 "\n"
31581 msgstr ""
31582
31583 #. type: textblock
31584 #: ../src/guestfs-actions.pod:5152
31585 msgid "See also C<guestfs_mke2journal>."
31586 msgstr ""
31587
31588 #. type: textblock
31589 #: ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5174
31590 #: ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5208
31591 #: ../src/guestfs-actions.pod:5222 ../src/guestfs-actions.pod:5236
31592 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5572
31593 msgid "(Added in 1.0.68)"
31594 msgstr ""
31595
31596 #. type: =head2
31597 #: ../src/guestfs-actions.pod:5158
31598 msgid "guestfs_mke2fs_JL"
31599 msgstr ""
31600
31601 #. type: verbatim
31602 #: ../src/guestfs-actions.pod:5160
31603 #, no-wrap
31604 msgid ""
31605 " int\n"
31606 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31607 "                    const char *fstype,\n"
31608 "                    int blocksize,\n"
31609 "                    const char *device,\n"
31610 "                    const char *label);\n"
31611 "\n"
31612 msgstr ""
31613
31614 #. type: textblock
31615 #: ../src/guestfs-actions.pod:5170
31616 msgid "See also C<guestfs_mke2journal_L>."
31617 msgstr ""
31618
31619 #. type: =head2
31620 #: ../src/guestfs-actions.pod:5176
31621 msgid "guestfs_mke2fs_JU"
31622 msgstr ""
31623
31624 #. type: verbatim
31625 #: ../src/guestfs-actions.pod:5178
31626 #, no-wrap
31627 msgid ""
31628 " int\n"
31629 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31630 "                    const char *fstype,\n"
31631 "                    int blocksize,\n"
31632 "                    const char *device,\n"
31633 "                    const char *uuid);\n"
31634 "\n"
31635 msgstr ""
31636
31637 #. type: textblock
31638 #: ../src/guestfs-actions.pod:5188
31639 msgid "See also C<guestfs_mke2journal_U>."
31640 msgstr ""
31641
31642 #. type: =head2
31643 #: ../src/guestfs-actions.pod:5194
31644 msgid "guestfs_mke2journal"
31645 msgstr ""
31646
31647 #. type: verbatim
31648 #: ../src/guestfs-actions.pod:5196
31649 #, no-wrap
31650 msgid ""
31651 " int\n"
31652 " guestfs_mke2journal (guestfs_h *g,\n"
31653 "                      int blocksize,\n"
31654 "                      const char *device);\n"
31655 "\n"
31656 msgstr ""
31657
31658 #. type: =head2
31659 #: ../src/guestfs-actions.pod:5210
31660 msgid "guestfs_mke2journal_L"
31661 msgstr ""
31662
31663 #. type: verbatim
31664 #: ../src/guestfs-actions.pod:5212
31665 #, no-wrap
31666 msgid ""
31667 " int\n"
31668 " guestfs_mke2journal_L (guestfs_h *g,\n"
31669 "                        int blocksize,\n"
31670 "                        const char *label,\n"
31671 "                        const char *device);\n"
31672 "\n"
31673 msgstr ""
31674
31675 #. type: =head2
31676 #: ../src/guestfs-actions.pod:5224
31677 msgid "guestfs_mke2journal_U"
31678 msgstr ""
31679
31680 #. type: verbatim
31681 #: ../src/guestfs-actions.pod:5226
31682 #, no-wrap
31683 msgid ""
31684 " int\n"
31685 " guestfs_mke2journal_U (guestfs_h *g,\n"
31686 "                        int blocksize,\n"
31687 "                        const char *uuid,\n"
31688 "                        const char *device);\n"
31689 "\n"
31690 msgstr ""
31691
31692 #. type: =head2
31693 #: ../src/guestfs-actions.pod:5238
31694 msgid "guestfs_mkfifo"
31695 msgstr ""
31696
31697 #. type: verbatim
31698 #: ../src/guestfs-actions.pod:5240
31699 #, no-wrap
31700 msgid ""
31701 " int\n"
31702 " guestfs_mkfifo (guestfs_h *g,\n"
31703 "                 int mode,\n"
31704 "                 const char *path);\n"
31705 "\n"
31706 msgstr ""
31707
31708 #. type: textblock
31709 #: ../src/guestfs-actions.pod:5245
31710 msgid ""
31711 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
31712 "is just a convenient wrapper around C<guestfs_mknod>."
31713 msgstr ""
31714
31715 #. type: =head2
31716 #: ../src/guestfs-actions.pod:5255
31717 msgid "guestfs_mkfs"
31718 msgstr ""
31719
31720 #. type: verbatim
31721 #: ../src/guestfs-actions.pod:5257
31722 #, no-wrap
31723 msgid ""
31724 " int\n"
31725 " guestfs_mkfs (guestfs_h *g,\n"
31726 "               const char *fstype,\n"
31727 "               const char *device);\n"
31728 "\n"
31729 msgstr ""
31730
31731 #. type: =head2
31732 #: ../src/guestfs-actions.pod:5270
31733 msgid "guestfs_mkfs_b"
31734 msgstr ""
31735
31736 #. type: verbatim
31737 #: ../src/guestfs-actions.pod:5272
31738 #, no-wrap
31739 msgid ""
31740 " int\n"
31741 " guestfs_mkfs_b (guestfs_h *g,\n"
31742 "                 const char *fstype,\n"
31743 "                 int blocksize,\n"
31744 "                 const char *device);\n"
31745 "\n"
31746 msgstr ""
31747
31748 #. type: textblock
31749 #: ../src/guestfs-actions.pod:5278
31750 msgid ""
31751 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31752 "call instead."
31753 msgstr ""
31754
31755 #. type: textblock
31756 #: ../src/guestfs-actions.pod:5285
31757 msgid ""
31758 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31759 "block size of the resulting filesystem.  Supported block sizes depend on the "
31760 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31761 msgstr ""
31762
31763 #. type: =head2
31764 #: ../src/guestfs-actions.pod:5297
31765 msgid "guestfs_mkfs_opts"
31766 msgstr ""
31767
31768 #. type: verbatim
31769 #: ../src/guestfs-actions.pod:5299
31770 #, no-wrap
31771 msgid ""
31772 " int\n"
31773 " guestfs_mkfs_opts (guestfs_h *g,\n"
31774 "                    const char *fstype,\n"
31775 "                    const char *device,\n"
31776 "                    ...);\n"
31777 "\n"
31778 msgstr ""
31779
31780 #. type: verbatim
31781 #: ../src/guestfs-actions.pod:5310
31782 #, no-wrap
31783 msgid ""
31784 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31785 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31786 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31787 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31788 "\n"
31789 msgstr ""
31790
31791 #. type: textblock
31792 #: ../src/guestfs-actions.pod:5358
31793 msgid "(Added in 1.7.19)"
31794 msgstr ""
31795
31796 #. type: =head2
31797 #: ../src/guestfs-actions.pod:5360
31798 msgid "guestfs_mkfs_opts_va"
31799 msgstr ""
31800
31801 #. type: verbatim
31802 #: ../src/guestfs-actions.pod:5362
31803 #, no-wrap
31804 msgid ""
31805 " int\n"
31806 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31807 "                       const char *fstype,\n"
31808 "                       const char *device,\n"
31809 "                       va_list args);\n"
31810 "\n"
31811 msgstr ""
31812
31813 #. type: textblock
31814 #: ../src/guestfs-actions.pod:5368
31815 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31816 msgstr ""
31817
31818 #. type: =head2
31819 #: ../src/guestfs-actions.pod:5372
31820 msgid "guestfs_mkfs_opts_argv"
31821 msgstr ""
31822
31823 #. type: verbatim
31824 #: ../src/guestfs-actions.pod:5374
31825 #, no-wrap
31826 msgid ""
31827 " int\n"
31828 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31829 "                         const char *fstype,\n"
31830 "                         const char *device,\n"
31831 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31832 "\n"
31833 msgstr ""
31834
31835 #. type: textblock
31836 #: ../src/guestfs-actions.pod:5380
31837 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31838 msgstr ""
31839
31840 #. type: =head2
31841 #: ../src/guestfs-actions.pod:5384
31842 msgid "guestfs_mkmountpoint"
31843 msgstr ""
31844
31845 #. type: verbatim
31846 #: ../src/guestfs-actions.pod:5386
31847 #, no-wrap
31848 msgid ""
31849 " int\n"
31850 " guestfs_mkmountpoint (guestfs_h *g,\n"
31851 "                       const char *exemptpath);\n"
31852 "\n"
31853 msgstr ""
31854
31855 #. type: textblock
31856 #: ../src/guestfs-actions.pod:5390
31857 msgid ""
31858 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31859 "that can be used to create extra mountpoints before mounting the first "
31860 "filesystem."
31861 msgstr ""
31862
31863 #. type: textblock
31864 #: ../src/guestfs-actions.pod:5414
31865 msgid ""
31866 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
31867 "may get unexpected errors if you try to mix these calls.  It is safest to "
31868 "manually unmount filesystems and remove mountpoints after use."
31869 msgstr ""
31870
31871 #. type: textblock
31872 #: ../src/guestfs-actions.pod:5418
31873 msgid ""
31874 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31875 "first, so for this to work for manual mountpoints, you must ensure that the "
31876 "innermost mountpoints have the longest pathnames, as in the example code "
31877 "above."
31878 msgstr ""
31879
31880 #. type: textblock
31881 #: ../src/guestfs-actions.pod:5425
31882 msgid ""
31883 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31884 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31885 "can also trigger these issues."
31886 msgstr ""
31887
31888 #. type: textblock
31889 #: ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5737
31890 #: ../src/guestfs-actions.pod:6764
31891 msgid "(Added in 1.0.62)"
31892 msgstr ""
31893
31894 #. type: =head2
31895 #: ../src/guestfs-actions.pod:5433
31896 msgid "guestfs_mknod"
31897 msgstr ""
31898
31899 #. type: verbatim
31900 #: ../src/guestfs-actions.pod:5435
31901 #, no-wrap
31902 msgid ""
31903 " int\n"
31904 " guestfs_mknod (guestfs_h *g,\n"
31905 "                int mode,\n"
31906 "                int devmajor,\n"
31907 "                int devminor,\n"
31908 "                const char *path);\n"
31909 "\n"
31910 msgstr ""
31911
31912 #. type: textblock
31913 #: ../src/guestfs-actions.pod:5450
31914 msgid ""
31915 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31916 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31917 "regular file).  These constants are available in the standard Linux header "
31918 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31919 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31920 "the appropriate constant for you."
31921 msgstr ""
31922
31923 #. type: =head2
31924 #: ../src/guestfs-actions.pod:5464
31925 msgid "guestfs_mknod_b"
31926 msgstr ""
31927
31928 #. type: verbatim
31929 #: ../src/guestfs-actions.pod:5466
31930 #, no-wrap
31931 msgid ""
31932 " int\n"
31933 " guestfs_mknod_b (guestfs_h *g,\n"
31934 "                  int mode,\n"
31935 "                  int devmajor,\n"
31936 "                  int devminor,\n"
31937 "                  const char *path);\n"
31938 "\n"
31939 msgstr ""
31940
31941 #. type: textblock
31942 #: ../src/guestfs-actions.pod:5473
31943 msgid ""
31944 "This call creates a block device node called C<path> with mode C<mode> and "
31945 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31946 "wrapper around C<guestfs_mknod>."
31947 msgstr ""
31948
31949 #. type: =head2
31950 #: ../src/guestfs-actions.pod:5483
31951 msgid "guestfs_mknod_c"
31952 msgstr ""
31953
31954 #. type: verbatim
31955 #: ../src/guestfs-actions.pod:5485
31956 #, no-wrap
31957 msgid ""
31958 " int\n"
31959 " guestfs_mknod_c (guestfs_h *g,\n"
31960 "                  int mode,\n"
31961 "                  int devmajor,\n"
31962 "                  int devminor,\n"
31963 "                  const char *path);\n"
31964 "\n"
31965 msgstr ""
31966
31967 #. type: textblock
31968 #: ../src/guestfs-actions.pod:5492
31969 msgid ""
31970 "This call creates a char device node called C<path> with mode C<mode> and "
31971 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31972 "wrapper around C<guestfs_mknod>."
31973 msgstr ""
31974
31975 #. type: =head2
31976 #: ../src/guestfs-actions.pod:5502
31977 msgid "guestfs_mkswap"
31978 msgstr ""
31979
31980 #. type: verbatim
31981 #: ../src/guestfs-actions.pod:5504
31982 #, no-wrap
31983 msgid ""
31984 " int\n"
31985 " guestfs_mkswap (guestfs_h *g,\n"
31986 "                 const char *device);\n"
31987 "\n"
31988 msgstr ""
31989
31990 #. type: =head2
31991 #: ../src/guestfs-actions.pod:5514
31992 msgid "guestfs_mkswap_L"
31993 msgstr ""
31994
31995 #. type: verbatim
31996 #: ../src/guestfs-actions.pod:5516
31997 #, no-wrap
31998 msgid ""
31999 " int\n"
32000 " guestfs_mkswap_L (guestfs_h *g,\n"
32001 "                   const char *label,\n"
32002 "                   const char *device);\n"
32003 "\n"
32004 msgstr ""
32005
32006 #. type: =head2
32007 #: ../src/guestfs-actions.pod:5531
32008 msgid "guestfs_mkswap_U"
32009 msgstr ""
32010
32011 #. type: verbatim
32012 #: ../src/guestfs-actions.pod:5533
32013 #, no-wrap
32014 msgid ""
32015 " int\n"
32016 " guestfs_mkswap_U (guestfs_h *g,\n"
32017 "                   const char *uuid,\n"
32018 "                   const char *device);\n"
32019 "\n"
32020 msgstr ""
32021
32022 #. type: =head2
32023 #: ../src/guestfs-actions.pod:5544
32024 msgid "guestfs_mkswap_file"
32025 msgstr ""
32026
32027 #. type: verbatim
32028 #: ../src/guestfs-actions.pod:5546
32029 #, no-wrap
32030 msgid ""
32031 " int\n"
32032 " guestfs_mkswap_file (guestfs_h *g,\n"
32033 "                      const char *path);\n"
32034 "\n"
32035 msgstr ""
32036
32037 #. type: textblock
32038 #: ../src/guestfs-actions.pod:5552
32039 msgid ""
32040 "This command just writes a swap file signature to an existing file.  To "
32041 "create the file itself, use something like C<guestfs_fallocate>."
32042 msgstr ""
32043
32044 #. type: =head2
32045 #: ../src/guestfs-actions.pod:5559
32046 msgid "guestfs_modprobe"
32047 msgstr ""
32048
32049 #. type: verbatim
32050 #: ../src/guestfs-actions.pod:5561
32051 #, no-wrap
32052 msgid ""
32053 " int\n"
32054 " guestfs_modprobe (guestfs_h *g,\n"
32055 "                   const char *modulename);\n"
32056 "\n"
32057 msgstr ""
32058
32059 #. type: =head2
32060 #: ../src/guestfs-actions.pod:5574
32061 msgid "guestfs_mount"
32062 msgstr ""
32063
32064 #. type: verbatim
32065 #: ../src/guestfs-actions.pod:5576
32066 #, no-wrap
32067 msgid ""
32068 " int\n"
32069 " guestfs_mount (guestfs_h *g,\n"
32070 "                const char *device,\n"
32071 "                const char *mountpoint);\n"
32072 "\n"
32073 msgstr ""
32074
32075 #. type: textblock
32076 #: ../src/guestfs-actions.pod:5595
32077 msgid ""
32078 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
32079 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
32080 "problems for users.  If your program might need to work with older versions "
32081 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
32082 "for the first parameter if you don't want any options)."
32083 msgstr ""
32084
32085 #. type: =head2
32086 #: ../src/guestfs-actions.pod:5606
32087 msgid "guestfs_mount_9p"
32088 msgstr ""
32089
32090 #. type: verbatim
32091 #: ../src/guestfs-actions.pod:5608
32092 #, no-wrap
32093 msgid ""
32094 " int\n"
32095 " guestfs_mount_9p (guestfs_h *g,\n"
32096 "                   const char *mounttag,\n"
32097 "                   const char *mountpoint,\n"
32098 "                   ...);\n"
32099 "\n"
32100 msgstr ""
32101
32102 #. type: verbatim
32103 #: ../src/guestfs-actions.pod:5619
32104 #, no-wrap
32105 msgid ""
32106 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
32107 "\n"
32108 msgstr ""
32109
32110 #. type: =head2
32111 #: ../src/guestfs-actions.pod:5632
32112 msgid "guestfs_mount_9p_va"
32113 msgstr ""
32114
32115 #. type: verbatim
32116 #: ../src/guestfs-actions.pod:5634
32117 #, no-wrap
32118 msgid ""
32119 " int\n"
32120 " guestfs_mount_9p_va (guestfs_h *g,\n"
32121 "                      const char *mounttag,\n"
32122 "                      const char *mountpoint,\n"
32123 "                      va_list args);\n"
32124 "\n"
32125 msgstr ""
32126
32127 #. type: textblock
32128 #: ../src/guestfs-actions.pod:5640
32129 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
32130 msgstr ""
32131
32132 #. type: =head2
32133 #: ../src/guestfs-actions.pod:5644
32134 msgid "guestfs_mount_9p_argv"
32135 msgstr ""
32136
32137 #. type: verbatim
32138 #: ../src/guestfs-actions.pod:5646
32139 #, no-wrap
32140 msgid ""
32141 " int\n"
32142 " guestfs_mount_9p_argv (guestfs_h *g,\n"
32143 "                        const char *mounttag,\n"
32144 "                        const char *mountpoint,\n"
32145 "                        const struct guestfs_mount_9p_argv *optargs);\n"
32146 "\n"
32147 msgstr ""
32148
32149 #. type: textblock
32150 #: ../src/guestfs-actions.pod:5652
32151 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
32152 msgstr ""
32153
32154 #. type: =head2
32155 #: ../src/guestfs-actions.pod:5656
32156 msgid "guestfs_mount_loop"
32157 msgstr ""
32158
32159 #. type: verbatim
32160 #: ../src/guestfs-actions.pod:5658
32161 #, no-wrap
32162 msgid ""
32163 " int\n"
32164 " guestfs_mount_loop (guestfs_h *g,\n"
32165 "                     const char *file,\n"
32166 "                     const char *mountpoint);\n"
32167 "\n"
32168 msgstr ""
32169
32170 #. type: =head2
32171 #: ../src/guestfs-actions.pod:5671
32172 msgid "guestfs_mount_options"
32173 msgstr ""
32174
32175 #. type: verbatim
32176 #: ../src/guestfs-actions.pod:5673
32177 #, no-wrap
32178 msgid ""
32179 " int\n"
32180 " guestfs_mount_options (guestfs_h *g,\n"
32181 "                        const char *options,\n"
32182 "                        const char *device,\n"
32183 "                        const char *mountpoint);\n"
32184 "\n"
32185 msgstr ""
32186
32187 #. type: textblock
32188 #: ../src/guestfs-actions.pod:5679
32189 msgid ""
32190 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32191 "the mount options as for the L<mount(8)> I<-o> flag."
32192 msgstr ""
32193
32194 #. type: textblock
32195 #: ../src/guestfs-actions.pod:5689 ../src/guestfs-actions.pod:5703
32196 #: ../src/guestfs-actions.pod:5720
32197 msgid "(Added in 1.0.10)"
32198 msgstr ""
32199
32200 #. type: =head2
32201 #: ../src/guestfs-actions.pod:5691
32202 msgid "guestfs_mount_ro"
32203 msgstr ""
32204
32205 #. type: verbatim
32206 #: ../src/guestfs-actions.pod:5693
32207 #, no-wrap
32208 msgid ""
32209 " int\n"
32210 " guestfs_mount_ro (guestfs_h *g,\n"
32211 "                   const char *device,\n"
32212 "                   const char *mountpoint);\n"
32213 "\n"
32214 msgstr ""
32215
32216 #. type: textblock
32217 #: ../src/guestfs-actions.pod:5698
32218 msgid ""
32219 "This is the same as the C<guestfs_mount> command, but it mounts the "
32220 "filesystem with the read-only (I<-o ro>) flag."
32221 msgstr ""
32222
32223 #. type: =head2
32224 #: ../src/guestfs-actions.pod:5705
32225 msgid "guestfs_mount_vfs"
32226 msgstr ""
32227
32228 #. type: verbatim
32229 #: ../src/guestfs-actions.pod:5707
32230 #, no-wrap
32231 msgid ""
32232 " int\n"
32233 " guestfs_mount_vfs (guestfs_h *g,\n"
32234 "                    const char *options,\n"
32235 "                    const char *vfstype,\n"
32236 "                    const char *device,\n"
32237 "                    const char *mountpoint);\n"
32238 "\n"
32239 msgstr ""
32240
32241 #. type: textblock
32242 #: ../src/guestfs-actions.pod:5714
32243 msgid ""
32244 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32245 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
32246 "t> flags."
32247 msgstr ""
32248
32249 #. type: =head2
32250 #: ../src/guestfs-actions.pod:5722
32251 msgid "guestfs_mountpoints"
32252 msgstr ""
32253
32254 #. type: verbatim
32255 #: ../src/guestfs-actions.pod:5724
32256 #, no-wrap
32257 msgid ""
32258 " char **\n"
32259 " guestfs_mountpoints (guestfs_h *g);\n"
32260 "\n"
32261 msgstr ""
32262
32263 #. type: textblock
32264 #: ../src/guestfs-actions.pod:5727
32265 msgid ""
32266 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
32267 "devices.  This one returns a hash table (map) of device name to directory "
32268 "where the device is mounted."
32269 msgstr ""
32270
32271 #. type: =head2
32272 #: ../src/guestfs-actions.pod:5739
32273 msgid "guestfs_mounts"
32274 msgstr ""
32275
32276 #. type: verbatim
32277 #: ../src/guestfs-actions.pod:5741
32278 #, no-wrap
32279 msgid ""
32280 " char **\n"
32281 " guestfs_mounts (guestfs_h *g);\n"
32282 "\n"
32283 msgstr ""
32284
32285 #. type: textblock
32286 #: ../src/guestfs-actions.pod:5749
32287 msgid "See also: C<guestfs_mountpoints>"
32288 msgstr ""
32289
32290 #. type: =head2
32291 #: ../src/guestfs-actions.pod:5757
32292 msgid "guestfs_mv"
32293 msgstr ""
32294
32295 #. type: verbatim
32296 #: ../src/guestfs-actions.pod:5759
32297 #, no-wrap
32298 msgid ""
32299 " int\n"
32300 " guestfs_mv (guestfs_h *g,\n"
32301 "             const char *src,\n"
32302 "             const char *dest);\n"
32303 "\n"
32304 msgstr ""
32305
32306 #. type: =head2
32307 #: ../src/guestfs-actions.pod:5771
32308 msgid "guestfs_ntfs_3g_probe"
32309 msgstr ""
32310
32311 #. type: verbatim
32312 #: ../src/guestfs-actions.pod:5773
32313 #, no-wrap
32314 msgid ""
32315 " int\n"
32316 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
32317 "                        int rw,\n"
32318 "                        const char *device);\n"
32319 "\n"
32320 msgstr ""
32321
32322 #. type: textblock
32323 #: ../src/guestfs-actions.pod:5792
32324 msgid "(Added in 1.0.43)"
32325 msgstr ""
32326
32327 #. type: =head2
32328 #: ../src/guestfs-actions.pod:5794
32329 msgid "guestfs_ntfsresize"
32330 msgstr ""
32331
32332 #. type: verbatim
32333 #: ../src/guestfs-actions.pod:5796
32334 #, no-wrap
32335 msgid ""
32336 " int\n"
32337 " guestfs_ntfsresize (guestfs_h *g,\n"
32338 "                     const char *device);\n"
32339 "\n"
32340 msgstr ""
32341
32342 #. type: textblock
32343 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:5900
32344 msgid ""
32345 "I<This function is deprecated.> In new code, use the L</"
32346 "guestfs_ntfsresize_opts> call instead."
32347 msgstr ""
32348
32349 #. type: =head2
32350 #: ../src/guestfs-actions.pod:5824
32351 msgid "guestfs_ntfsresize_opts"
32352 msgstr ""
32353
32354 #. type: verbatim
32355 #: ../src/guestfs-actions.pod:5826
32356 #, no-wrap
32357 msgid ""
32358 " int\n"
32359 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
32360 "                          const char *device,\n"
32361 "                          ...);\n"
32362 "\n"
32363 msgstr ""
32364
32365 #. type: verbatim
32366 #: ../src/guestfs-actions.pod:5836
32367 #, no-wrap
32368 msgid ""
32369 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
32370 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
32371 "\n"
32372 msgstr ""
32373
32374 #. type: textblock
32375 #: ../src/guestfs-actions.pod:5856
32376 msgid ""
32377 "After the resize operation, the filesystem is always marked as requiring a "
32378 "consistency check (for safety).  You have to boot into Windows to perform "
32379 "this check and clear this condition.  If you I<don't> set the C<force> "
32380 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
32381 "times on a single filesystem without booting into Windows between each "
32382 "resize."
32383 msgstr ""
32384
32385 #. type: =head2
32386 #: ../src/guestfs-actions.pod:5871
32387 msgid "guestfs_ntfsresize_opts_va"
32388 msgstr ""
32389
32390 #. type: verbatim
32391 #: ../src/guestfs-actions.pod:5873
32392 #, no-wrap
32393 msgid ""
32394 " int\n"
32395 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
32396 "                             const char *device,\n"
32397 "                             va_list args);\n"
32398 "\n"
32399 msgstr ""
32400
32401 #. type: textblock
32402 #: ../src/guestfs-actions.pod:5878
32403 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
32404 msgstr ""
32405
32406 #. type: =head2
32407 #: ../src/guestfs-actions.pod:5882
32408 msgid "guestfs_ntfsresize_opts_argv"
32409 msgstr ""
32410
32411 #. type: verbatim
32412 #: ../src/guestfs-actions.pod:5884
32413 #, no-wrap
32414 msgid ""
32415 " int\n"
32416 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
32417 "                               const char *device,\n"
32418 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
32419 "\n"
32420 msgstr ""
32421
32422 #. type: textblock
32423 #: ../src/guestfs-actions.pod:5889
32424 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
32425 msgstr ""
32426
32427 #. type: =head2
32428 #: ../src/guestfs-actions.pod:5893
32429 msgid "guestfs_ntfsresize_size"
32430 msgstr ""
32431
32432 #. type: verbatim
32433 #: ../src/guestfs-actions.pod:5895
32434 #, no-wrap
32435 msgid ""
32436 " int\n"
32437 " guestfs_ntfsresize_size (guestfs_h *g,\n"
32438 "                          const char *device,\n"
32439 "                          int64_t size);\n"
32440 "\n"
32441 msgstr ""
32442
32443 #. type: textblock
32444 #: ../src/guestfs-actions.pod:5907
32445 msgid ""
32446 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
32447 "to specify the new size (in bytes) explicitly."
32448 msgstr ""
32449
32450 #. type: textblock
32451 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6371
32452 #: ../src/guestfs-actions.pod:6444 ../src/guestfs-actions.pod:6712
32453 #: ../src/guestfs-actions.pod:8461
32454 msgid "(Added in 1.3.14)"
32455 msgstr ""
32456
32457 #. type: =head2
32458 #: ../src/guestfs-actions.pod:5914
32459 msgid "guestfs_part_add"
32460 msgstr ""
32461
32462 #. type: verbatim
32463 #: ../src/guestfs-actions.pod:5916
32464 #, no-wrap
32465 msgid ""
32466 " int\n"
32467 " guestfs_part_add (guestfs_h *g,\n"
32468 "                   const char *device,\n"
32469 "                   const char *prlogex,\n"
32470 "                   int64_t startsect,\n"
32471 "                   int64_t endsect);\n"
32472 "\n"
32473 msgstr ""
32474
32475 #. type: textblock
32476 #: ../src/guestfs-actions.pod:5923
32477 msgid ""
32478 "This command adds a partition to C<device>.  If there is no partition table "
32479 "on the device, call C<guestfs_part_init> first."
32480 msgstr ""
32481
32482 #. type: textblock
32483 #: ../src/guestfs-actions.pod:5935
32484 msgid ""
32485 "Creating a partition which covers the whole disk is not so easy.  Use "
32486 "C<guestfs_part_disk> to do that."
32487 msgstr ""
32488
32489 #. type: textblock
32490 #: ../src/guestfs-actions.pod:5940 ../src/guestfs-actions.pod:5975
32491 #: ../src/guestfs-actions.pod:6028 ../src/guestfs-actions.pod:6112
32492 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
32493 #: ../src/guestfs-actions.pod:6209
32494 msgid "(Added in 1.0.78)"
32495 msgstr ""
32496
32497 #. type: =head2
32498 #: ../src/guestfs-actions.pod:5942
32499 msgid "guestfs_part_del"
32500 msgstr ""
32501
32502 #. type: verbatim
32503 #: ../src/guestfs-actions.pod:5944
32504 #, no-wrap
32505 msgid ""
32506 " int\n"
32507 " guestfs_part_del (guestfs_h *g,\n"
32508 "                   const char *device,\n"
32509 "                   int partnum);\n"
32510 "\n"
32511 msgstr ""
32512
32513 #. type: =head2
32514 #: ../src/guestfs-actions.pod:5959
32515 msgid "guestfs_part_disk"
32516 msgstr ""
32517
32518 #. type: verbatim
32519 #: ../src/guestfs-actions.pod:5961
32520 #, no-wrap
32521 msgid ""
32522 " int\n"
32523 " guestfs_part_disk (guestfs_h *g,\n"
32524 "                    const char *device,\n"
32525 "                    const char *parttype);\n"
32526 "\n"
32527 msgstr ""
32528
32529 #. type: textblock
32530 #: ../src/guestfs-actions.pod:5966
32531 msgid ""
32532 "This command is simply a combination of C<guestfs_part_init> followed by "
32533 "C<guestfs_part_add> to create a single primary partition covering the whole "
32534 "disk."
32535 msgstr ""
32536
32537 #. type: textblock
32538 #: ../src/guestfs-actions.pod:5970
32539 msgid ""
32540 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
32541 "possible values are described in C<guestfs_part_init>."
32542 msgstr ""
32543
32544 #. type: =head2
32545 #: ../src/guestfs-actions.pod:5977
32546 msgid "guestfs_part_get_bootable"
32547 msgstr ""
32548
32549 #. type: verbatim
32550 #: ../src/guestfs-actions.pod:5979
32551 #, no-wrap
32552 msgid ""
32553 " int\n"
32554 " guestfs_part_get_bootable (guestfs_h *g,\n"
32555 "                            const char *device,\n"
32556 "                            int partnum);\n"
32557 "\n"
32558 msgstr ""
32559
32560 #. type: textblock
32561 #: ../src/guestfs-actions.pod:5987
32562 msgid "See also C<guestfs_part_set_bootable>."
32563 msgstr ""
32564
32565 #. type: =head2
32566 #: ../src/guestfs-actions.pod:5993
32567 msgid "guestfs_part_get_mbr_id"
32568 msgstr ""
32569
32570 #. type: verbatim
32571 #: ../src/guestfs-actions.pod:5995
32572 #, no-wrap
32573 msgid ""
32574 " int\n"
32575 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32576 "                          const char *device,\n"
32577 "                          int partnum);\n"
32578 "\n"
32579 msgstr ""
32580
32581 #. type: textblock
32582 #: ../src/guestfs-actions.pod:6003 ../src/guestfs-actions.pod:6185
32583 msgid ""
32584 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
32585 "undefined results for other partition table types (see "
32586 "C<guestfs_part_get_parttype>)."
32587 msgstr ""
32588
32589 #. type: =head2
32590 #: ../src/guestfs-actions.pod:6011
32591 msgid "guestfs_part_get_parttype"
32592 msgstr ""
32593
32594 #. type: verbatim
32595 #: ../src/guestfs-actions.pod:6013
32596 #, no-wrap
32597 msgid ""
32598 " char *\n"
32599 " guestfs_part_get_parttype (guestfs_h *g,\n"
32600 "                            const char *device);\n"
32601 "\n"
32602 msgstr ""
32603
32604 #. type: textblock
32605 #: ../src/guestfs-actions.pod:6020
32606 msgid ""
32607 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32608 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
32609 "possible, although unusual.  See C<guestfs_part_init> for a full list."
32610 msgstr ""
32611
32612 #. type: =head2
32613 #: ../src/guestfs-actions.pod:6030
32614 msgid "guestfs_part_init"
32615 msgstr ""
32616
32617 #. type: verbatim
32618 #: ../src/guestfs-actions.pod:6032
32619 #, no-wrap
32620 msgid ""
32621 " int\n"
32622 " guestfs_part_init (guestfs_h *g,\n"
32623 "                    const char *device,\n"
32624 "                    const char *parttype);\n"
32625 "\n"
32626 msgstr ""
32627
32628 #. type: textblock
32629 #: ../src/guestfs-actions.pod:6041
32630 msgid ""
32631 "Initially there are no partitions.  Following this, you should call "
32632 "C<guestfs_part_add> for each partition required."
32633 msgstr ""
32634
32635 #. type: =head2
32636 #: ../src/guestfs-actions.pod:6114
32637 msgid "guestfs_part_list"
32638 msgstr ""
32639
32640 #. type: verbatim
32641 #: ../src/guestfs-actions.pod:6116
32642 #, no-wrap
32643 msgid ""
32644 " struct guestfs_partition_list *\n"
32645 " guestfs_part_list (guestfs_h *g,\n"
32646 "                    const char *device);\n"
32647 "\n"
32648 msgstr ""
32649
32650 #. type: textblock
32651 #: ../src/guestfs-actions.pod:6133
32652 msgid ""
32653 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
32654 "the device's sector size, see C<guestfs_blockdev_getss>."
32655 msgstr ""
32656
32657 #. type: textblock
32658 #: ../src/guestfs-actions.pod:6146
32659 msgid ""
32660 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32661 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
32662 "use>."
32663 msgstr ""
32664
32665 #. type: =head2
32666 #: ../src/guestfs-actions.pod:6152
32667 msgid "guestfs_part_set_bootable"
32668 msgstr ""
32669
32670 #. type: verbatim
32671 #: ../src/guestfs-actions.pod:6154
32672 #, no-wrap
32673 msgid ""
32674 " int\n"
32675 " guestfs_part_set_bootable (guestfs_h *g,\n"
32676 "                            const char *device,\n"
32677 "                            int partnum,\n"
32678 "                            int bootable);\n"
32679 "\n"
32680 msgstr ""
32681
32682 #. type: =head2
32683 #: ../src/guestfs-actions.pod:6171
32684 msgid "guestfs_part_set_mbr_id"
32685 msgstr ""
32686
32687 #. type: verbatim
32688 #: ../src/guestfs-actions.pod:6173
32689 #, no-wrap
32690 msgid ""
32691 " int\n"
32692 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32693 "                          const char *device,\n"
32694 "                          int partnum,\n"
32695 "                          int idbyte);\n"
32696 "\n"
32697 msgstr ""
32698
32699 #. type: =head2
32700 #: ../src/guestfs-actions.pod:6193
32701 msgid "guestfs_part_set_name"
32702 msgstr ""
32703
32704 #. type: verbatim
32705 #: ../src/guestfs-actions.pod:6195
32706 #, no-wrap
32707 msgid ""
32708 " int\n"
32709 " guestfs_part_set_name (guestfs_h *g,\n"
32710 "                        const char *device,\n"
32711 "                        int partnum,\n"
32712 "                        const char *name);\n"
32713 "\n"
32714 msgstr ""
32715
32716 #. type: =head2
32717 #: ../src/guestfs-actions.pod:6211
32718 msgid "guestfs_part_to_dev"
32719 msgstr ""
32720
32721 #. type: verbatim
32722 #: ../src/guestfs-actions.pod:6213
32723 #, no-wrap
32724 msgid ""
32725 " char *\n"
32726 " guestfs_part_to_dev (guestfs_h *g,\n"
32727 "                      const char *partition);\n"
32728 "\n"
32729 msgstr ""
32730
32731 #. type: textblock
32732 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6240
32733 msgid ""
32734 "The named partition must exist, for example as a string returned from "
32735 "C<guestfs_list_partitions>."
32736 msgstr ""
32737
32738 #. type: textblock
32739 #: ../src/guestfs-actions.pod:6224
32740 msgid "See also C<guestfs_part_to_partnum>."
32741 msgstr ""
32742
32743 #. type: =head2
32744 #: ../src/guestfs-actions.pod:6231
32745 msgid "guestfs_part_to_partnum"
32746 msgstr ""
32747
32748 #. type: verbatim
32749 #: ../src/guestfs-actions.pod:6233
32750 #, no-wrap
32751 msgid ""
32752 " int\n"
32753 " guestfs_part_to_partnum (guestfs_h *g,\n"
32754 "                          const char *partition);\n"
32755 "\n"
32756 msgstr ""
32757
32758 #. type: textblock
32759 #: ../src/guestfs-actions.pod:6243
32760 msgid "See also C<guestfs_part_to_dev>."
32761 msgstr ""
32762
32763 #. type: =head2
32764 #: ../src/guestfs-actions.pod:6249
32765 msgid "guestfs_ping_daemon"
32766 msgstr ""
32767
32768 #. type: verbatim
32769 #: ../src/guestfs-actions.pod:6251
32770 #, no-wrap
32771 msgid ""
32772 " int\n"
32773 " guestfs_ping_daemon (guestfs_h *g);\n"
32774 "\n"
32775 msgstr ""
32776
32777 #. type: =head2
32778 #: ../src/guestfs-actions.pod:6263
32779 msgid "guestfs_pread"
32780 msgstr ""
32781
32782 #. type: verbatim
32783 #: ../src/guestfs-actions.pod:6265
32784 #, no-wrap
32785 msgid ""
32786 " char *\n"
32787 " guestfs_pread (guestfs_h *g,\n"
32788 "                const char *path,\n"
32789 "                int count,\n"
32790 "                int64_t offset,\n"
32791 "                size_t *size_r);\n"
32792 "\n"
32793 msgstr ""
32794
32795 #. type: textblock
32796 #: ../src/guestfs-actions.pod:6278
32797 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32798 msgstr ""
32799
32800 #. type: =head2
32801 #: ../src/guestfs-actions.pod:6289
32802 msgid "guestfs_pread_device"
32803 msgstr ""
32804
32805 #. type: verbatim
32806 #: ../src/guestfs-actions.pod:6291
32807 #, no-wrap
32808 msgid ""
32809 " char *\n"
32810 " guestfs_pread_device (guestfs_h *g,\n"
32811 "                       const char *device,\n"
32812 "                       int count,\n"
32813 "                       int64_t offset,\n"
32814 "                       size_t *size_r);\n"
32815 "\n"
32816 msgstr ""
32817
32818 #. type: textblock
32819 #: ../src/guestfs-actions.pod:6304
32820 msgid "See also C<guestfs_pread>."
32821 msgstr ""
32822
32823 #. type: textblock
32824 #: ../src/guestfs-actions.pod:6313
32825 msgid "(Added in 1.5.21)"
32826 msgstr ""
32827
32828 #. type: =head2
32829 #: ../src/guestfs-actions.pod:6315
32830 msgid "guestfs_pvcreate"
32831 msgstr ""
32832
32833 #. type: verbatim
32834 #: ../src/guestfs-actions.pod:6317
32835 #, no-wrap
32836 msgid ""
32837 " int\n"
32838 " guestfs_pvcreate (guestfs_h *g,\n"
32839 "                   const char *device);\n"
32840 "\n"
32841 msgstr ""
32842
32843 #. type: =head2
32844 #: ../src/guestfs-actions.pod:6329
32845 msgid "guestfs_pvremove"
32846 msgstr ""
32847
32848 #. type: verbatim
32849 #: ../src/guestfs-actions.pod:6331
32850 #, no-wrap
32851 msgid ""
32852 " int\n"
32853 " guestfs_pvremove (guestfs_h *g,\n"
32854 "                   const char *device);\n"
32855 "\n"
32856 msgstr ""
32857
32858 #. type: =head2
32859 #: ../src/guestfs-actions.pod:6346
32860 msgid "guestfs_pvresize"
32861 msgstr ""
32862
32863 #. type: verbatim
32864 #: ../src/guestfs-actions.pod:6348
32865 #, no-wrap
32866 msgid ""
32867 " int\n"
32868 " guestfs_pvresize (guestfs_h *g,\n"
32869 "                   const char *device);\n"
32870 "\n"
32871 msgstr ""
32872
32873 #. type: =head2
32874 #: ../src/guestfs-actions.pod:6359
32875 msgid "guestfs_pvresize_size"
32876 msgstr ""
32877
32878 #. type: verbatim
32879 #: ../src/guestfs-actions.pod:6361
32880 #, no-wrap
32881 msgid ""
32882 " int\n"
32883 " guestfs_pvresize_size (guestfs_h *g,\n"
32884 "                        const char *device,\n"
32885 "                        int64_t size);\n"
32886 "\n"
32887 msgstr ""
32888
32889 #. type: textblock
32890 #: ../src/guestfs-actions.pod:6366
32891 msgid ""
32892 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32893 "specify the new size (in bytes) explicitly."
32894 msgstr ""
32895
32896 #. type: =head2
32897 #: ../src/guestfs-actions.pod:6373
32898 msgid "guestfs_pvs"
32899 msgstr ""
32900
32901 #. type: verbatim
32902 #: ../src/guestfs-actions.pod:6375
32903 #, no-wrap
32904 msgid ""
32905 " char **\n"
32906 " guestfs_pvs (guestfs_h *g);\n"
32907 "\n"
32908 msgstr ""
32909
32910 #. type: textblock
32911 #: ../src/guestfs-actions.pod:6384
32912 msgid "See also C<guestfs_pvs_full>."
32913 msgstr ""
32914
32915 #. type: =head2
32916 #: ../src/guestfs-actions.pod:6392
32917 msgid "guestfs_pvs_full"
32918 msgstr ""
32919
32920 #. type: verbatim
32921 #: ../src/guestfs-actions.pod:6394
32922 #, no-wrap
32923 msgid ""
32924 " struct guestfs_lvm_pv_list *\n"
32925 " guestfs_pvs_full (guestfs_h *g);\n"
32926 "\n"
32927 msgstr ""
32928
32929 #. type: textblock
32930 #: ../src/guestfs-actions.pod:6400
32931 msgid ""
32932 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32933 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32934 msgstr ""
32935
32936 #. type: =head2
32937 #: ../src/guestfs-actions.pod:6406
32938 msgid "guestfs_pvuuid"
32939 msgstr ""
32940
32941 #. type: verbatim
32942 #: ../src/guestfs-actions.pod:6408
32943 #, no-wrap
32944 msgid ""
32945 " char *\n"
32946 " guestfs_pvuuid (guestfs_h *g,\n"
32947 "                 const char *device);\n"
32948 "\n"
32949 msgstr ""
32950
32951 #. type: =head2
32952 #: ../src/guestfs-actions.pod:6419
32953 msgid "guestfs_pwrite"
32954 msgstr ""
32955
32956 #. type: verbatim
32957 #: ../src/guestfs-actions.pod:6421
32958 #, no-wrap
32959 msgid ""
32960 " int\n"
32961 " guestfs_pwrite (guestfs_h *g,\n"
32962 "                 const char *path,\n"
32963 "                 const char *content,\n"
32964 "                 size_t content_size,\n"
32965 "                 int64_t offset);\n"
32966 "\n"
32967 msgstr ""
32968
32969 #. type: textblock
32970 #: ../src/guestfs-actions.pod:6437
32971 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32972 msgstr ""
32973
32974 #. type: =head2
32975 #: ../src/guestfs-actions.pod:6446
32976 msgid "guestfs_pwrite_device"
32977 msgstr ""
32978
32979 #. type: verbatim
32980 #: ../src/guestfs-actions.pod:6448
32981 #, no-wrap
32982 msgid ""
32983 " int\n"
32984 " guestfs_pwrite_device (guestfs_h *g,\n"
32985 "                        const char *device,\n"
32986 "                        const char *content,\n"
32987 "                        size_t content_size,\n"
32988 "                        int64_t offset);\n"
32989 "\n"
32990 msgstr ""
32991
32992 #. type: textblock
32993 #: ../src/guestfs-actions.pod:6463
32994 msgid "See also C<guestfs_pwrite>."
32995 msgstr ""
32996
32997 #. type: textblock
32998 #: ../src/guestfs-actions.pod:6470
32999 msgid "(Added in 1.5.20)"
33000 msgstr ""
33001
33002 #. type: =head2
33003 #: ../src/guestfs-actions.pod:6472
33004 msgid "guestfs_read_file"
33005 msgstr ""
33006
33007 #. type: verbatim
33008 #: ../src/guestfs-actions.pod:6474
33009 #, no-wrap
33010 msgid ""
33011 " char *\n"
33012 " guestfs_read_file (guestfs_h *g,\n"
33013 "                    const char *path,\n"
33014 "                    size_t *size_r);\n"
33015 "\n"
33016 msgstr ""
33017
33018 #. type: textblock
33019 #: ../src/guestfs-actions.pod:6482
33020 msgid ""
33021 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
33022 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
33023 "function is limited in the total size of file that can be handled."
33024 msgstr ""
33025
33026 #. type: textblock
33027 #: ../src/guestfs-actions.pod:6494
33028 msgid "(Added in 1.0.63)"
33029 msgstr ""
33030
33031 #. type: =head2
33032 #: ../src/guestfs-actions.pod:6496
33033 msgid "guestfs_read_lines"
33034 msgstr ""
33035
33036 #. type: verbatim
33037 #: ../src/guestfs-actions.pod:6498
33038 #, no-wrap
33039 msgid ""
33040 " char **\n"
33041 " guestfs_read_lines (guestfs_h *g,\n"
33042 "                     const char *path);\n"
33043 "\n"
33044 msgstr ""
33045
33046 #. type: textblock
33047 #: ../src/guestfs-actions.pod:6507
33048 msgid ""
33049 "Note that this function cannot correctly handle binary files (specifically, "
33050 "files containing C<\\0> character which is treated as end of line).  For "
33051 "those you need to use the C<guestfs_read_file> function which has a more "
33052 "complex interface."
33053 msgstr ""
33054
33055 #. type: =head2
33056 #: ../src/guestfs-actions.pod:6518
33057 msgid "guestfs_readdir"
33058 msgstr ""
33059
33060 #. type: verbatim
33061 #: ../src/guestfs-actions.pod:6520
33062 #, no-wrap
33063 msgid ""
33064 " struct guestfs_dirent_list *\n"
33065 " guestfs_readdir (guestfs_h *g,\n"
33066 "                  const char *dir);\n"
33067 "\n"
33068 msgstr ""
33069
33070 #. type: textblock
33071 #: ../src/guestfs-actions.pod:6574
33072 msgid ""
33073 "This function is primarily intended for use by programs.  To get a simple "
33074 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
33075 "consumption, use C<guestfs_ll>."
33076 msgstr ""
33077
33078 #. type: textblock
33079 #: ../src/guestfs-actions.pod:6578
33080 msgid ""
33081 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
33082 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
33083 msgstr ""
33084
33085 #. type: =head2
33086 #: ../src/guestfs-actions.pod:6584
33087 msgid "guestfs_readlink"
33088 msgstr ""
33089
33090 #. type: verbatim
33091 #: ../src/guestfs-actions.pod:6586
33092 #, no-wrap
33093 msgid ""
33094 " char *\n"
33095 " guestfs_readlink (guestfs_h *g,\n"
33096 "                   const char *path);\n"
33097 "\n"
33098 msgstr ""
33099
33100 #. type: =head2
33101 #: ../src/guestfs-actions.pod:6597
33102 msgid "guestfs_readlinklist"
33103 msgstr ""
33104
33105 #. type: verbatim
33106 #: ../src/guestfs-actions.pod:6599
33107 #, no-wrap
33108 msgid ""
33109 " char **\n"
33110 " guestfs_readlinklist (guestfs_h *g,\n"
33111 "                       const char *path,\n"
33112 "                       char *const *names);\n"
33113 "\n"
33114 msgstr ""
33115
33116 #. type: =head2
33117 #: ../src/guestfs-actions.pod:6632
33118 msgid "guestfs_realpath"
33119 msgstr ""
33120
33121 #. type: verbatim
33122 #: ../src/guestfs-actions.pod:6634
33123 #, no-wrap
33124 msgid ""
33125 " char *\n"
33126 " guestfs_realpath (guestfs_h *g,\n"
33127 "                   const char *path);\n"
33128 "\n"
33129 msgstr ""
33130
33131 #. type: =head2
33132 #: ../src/guestfs-actions.pod:6646
33133 msgid "guestfs_removexattr"
33134 msgstr ""
33135
33136 #. type: verbatim
33137 #: ../src/guestfs-actions.pod:6648
33138 #, no-wrap
33139 msgid ""
33140 " int\n"
33141 " guestfs_removexattr (guestfs_h *g,\n"
33142 "                      const char *xattr,\n"
33143 "                      const char *path);\n"
33144 "\n"
33145 msgstr ""
33146
33147 #. type: textblock
33148 #: ../src/guestfs-actions.pod:6656
33149 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
33150 msgstr ""
33151
33152 #. type: =head2
33153 #: ../src/guestfs-actions.pod:6662
33154 msgid "guestfs_resize2fs"
33155 msgstr ""
33156
33157 #. type: verbatim
33158 #: ../src/guestfs-actions.pod:6664
33159 #, no-wrap
33160 msgid ""
33161 " int\n"
33162 " guestfs_resize2fs (guestfs_h *g,\n"
33163 "                    const char *device);\n"
33164 "\n"
33165 msgstr ""
33166
33167 #. type: textblock
33168 #: ../src/guestfs-actions.pod:6671
33169 msgid ""
33170 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
33171 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
33172 "sometimes gives an error about this and sometimes not.  In any case, it is "
33173 "always safe to call C<guestfs_e2fsck_f> before calling this function."
33174 msgstr ""
33175
33176 #. type: =head2
33177 #: ../src/guestfs-actions.pod:6681
33178 msgid "guestfs_resize2fs_M"
33179 msgstr ""
33180
33181 #. type: verbatim
33182 #: ../src/guestfs-actions.pod:6683
33183 #, no-wrap
33184 msgid ""
33185 " int\n"
33186 " guestfs_resize2fs_M (guestfs_h *g,\n"
33187 "                      const char *device);\n"
33188 "\n"
33189 msgstr ""
33190
33191 #. type: textblock
33192 #: ../src/guestfs-actions.pod:6687
33193 msgid ""
33194 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
33195 "resized to its minimum size.  This works like the I<-M> option to the "
33196 "C<resize2fs> command."
33197 msgstr ""
33198
33199 #. type: textblock
33200 #: ../src/guestfs-actions.pod:6691
33201 msgid ""
33202 "To get the resulting size of the filesystem you should call "
33203 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
33204 "These two numbers, multiplied together, give the resulting size of the "
33205 "minimal filesystem in bytes."
33206 msgstr ""
33207
33208 #. type: =head2
33209 #: ../src/guestfs-actions.pod:6700
33210 msgid "guestfs_resize2fs_size"
33211 msgstr ""
33212
33213 #. type: verbatim
33214 #: ../src/guestfs-actions.pod:6702
33215 #, no-wrap
33216 msgid ""
33217 " int\n"
33218 " guestfs_resize2fs_size (guestfs_h *g,\n"
33219 "                         const char *device,\n"
33220 "                         int64_t size);\n"
33221 "\n"
33222 msgstr ""
33223
33224 #. type: textblock
33225 #: ../src/guestfs-actions.pod:6707
33226 msgid ""
33227 "This command is the same as C<guestfs_resize2fs> except that it allows you "
33228 "to specify the new size (in bytes) explicitly."
33229 msgstr ""
33230
33231 #. type: =head2
33232 #: ../src/guestfs-actions.pod:6714
33233 msgid "guestfs_rm"
33234 msgstr ""
33235
33236 #. type: verbatim
33237 #: ../src/guestfs-actions.pod:6716
33238 #, no-wrap
33239 msgid ""
33240 " int\n"
33241 " guestfs_rm (guestfs_h *g,\n"
33242 "             const char *path);\n"
33243 "\n"
33244 msgstr ""
33245
33246 #. type: =head2
33247 #: ../src/guestfs-actions.pod:6726
33248 msgid "guestfs_rm_rf"
33249 msgstr ""
33250
33251 #. type: verbatim
33252 #: ../src/guestfs-actions.pod:6728
33253 #, no-wrap
33254 msgid ""
33255 " int\n"
33256 " guestfs_rm_rf (guestfs_h *g,\n"
33257 "                const char *path);\n"
33258 "\n"
33259 msgstr ""
33260
33261 #. type: =head2
33262 #: ../src/guestfs-actions.pod:6740
33263 msgid "guestfs_rmdir"
33264 msgstr ""
33265
33266 #. type: verbatim
33267 #: ../src/guestfs-actions.pod:6742
33268 #, no-wrap
33269 msgid ""
33270 " int\n"
33271 " guestfs_rmdir (guestfs_h *g,\n"
33272 "                const char *path);\n"
33273 "\n"
33274 msgstr ""
33275
33276 #. type: =head2
33277 #: ../src/guestfs-actions.pod:6752
33278 msgid "guestfs_rmmountpoint"
33279 msgstr ""
33280
33281 #. type: verbatim
33282 #: ../src/guestfs-actions.pod:6754
33283 #, no-wrap
33284 msgid ""
33285 " int\n"
33286 " guestfs_rmmountpoint (guestfs_h *g,\n"
33287 "                       const char *exemptpath);\n"
33288 "\n"
33289 msgstr ""
33290
33291 #. type: textblock
33292 #: ../src/guestfs-actions.pod:6758
33293 msgid ""
33294 "This calls removes a mountpoint that was previously created with "
33295 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
33296 msgstr ""
33297
33298 #. type: =head2
33299 #: ../src/guestfs-actions.pod:6766
33300 msgid "guestfs_scrub_device"
33301 msgstr ""
33302
33303 #. type: verbatim
33304 #: ../src/guestfs-actions.pod:6768
33305 #, no-wrap
33306 msgid ""
33307 " int\n"
33308 " guestfs_scrub_device (guestfs_h *g,\n"
33309 "                       const char *device);\n"
33310 "\n"
33311 msgstr ""
33312
33313 #. type: textblock
33314 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:6798
33315 #: ../src/guestfs-actions.pod:6817
33316 msgid "(Added in 1.0.52)"
33317 msgstr ""
33318
33319 #. type: =head2
33320 #: ../src/guestfs-actions.pod:6782
33321 msgid "guestfs_scrub_file"
33322 msgstr ""
33323
33324 #. type: verbatim
33325 #: ../src/guestfs-actions.pod:6784
33326 #, no-wrap
33327 msgid ""
33328 " int\n"
33329 " guestfs_scrub_file (guestfs_h *g,\n"
33330 "                     const char *file);\n"
33331 "\n"
33332 msgstr ""
33333
33334 #. type: =head2
33335 #: ../src/guestfs-actions.pod:6800
33336 msgid "guestfs_scrub_freespace"
33337 msgstr ""
33338
33339 #. type: verbatim
33340 #: ../src/guestfs-actions.pod:6802
33341 #, no-wrap
33342 msgid ""
33343 " int\n"
33344 " guestfs_scrub_freespace (guestfs_h *g,\n"
33345 "                          const char *dir);\n"
33346 "\n"
33347 msgstr ""
33348
33349 #. type: textblock
33350 #: ../src/guestfs-actions.pod:6806
33351 msgid ""
33352 "This command creates the directory C<dir> and then fills it with files until "
33353 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
33354 "and deletes them.  The intention is to scrub any free space on the partition "
33355 "containing C<dir>."
33356 msgstr ""
33357
33358 #. type: =head2
33359 #: ../src/guestfs-actions.pod:6819
33360 msgid "guestfs_set_append"
33361 msgstr ""
33362
33363 #. type: verbatim
33364 #: ../src/guestfs-actions.pod:6821
33365 #, no-wrap
33366 msgid ""
33367 " int\n"
33368 " guestfs_set_append (guestfs_h *g,\n"
33369 "                     const char *append);\n"
33370 "\n"
33371 msgstr ""
33372
33373 #. type: =head2
33374 #: ../src/guestfs-actions.pod:6838
33375 msgid "guestfs_set_attach_method"
33376 msgstr ""
33377
33378 #. type: verbatim
33379 #: ../src/guestfs-actions.pod:6840
33380 #, no-wrap
33381 msgid ""
33382 " int\n"
33383 " guestfs_set_attach_method (guestfs_h *g,\n"
33384 "                            const char *attachmethod);\n"
33385 "\n"
33386 msgstr ""
33387
33388 #. type: =head2
33389 #: ../src/guestfs-actions.pod:6868
33390 msgid "guestfs_set_autosync"
33391 msgstr ""
33392
33393 #. type: verbatim
33394 #: ../src/guestfs-actions.pod:6870
33395 #, no-wrap
33396 msgid ""
33397 " int\n"
33398 " guestfs_set_autosync (guestfs_h *g,\n"
33399 "                       int autosync);\n"
33400 "\n"
33401 msgstr ""
33402
33403 #. type: =head2
33404 #: ../src/guestfs-actions.pod:6886
33405 msgid "guestfs_set_direct"
33406 msgstr ""
33407
33408 #. type: verbatim
33409 #: ../src/guestfs-actions.pod:6888
33410 #, no-wrap
33411 msgid ""
33412 " int\n"
33413 " guestfs_set_direct (guestfs_h *g,\n"
33414 "                     int direct);\n"
33415 "\n"
33416 msgstr ""
33417
33418 #. type: textblock
33419 #: ../src/guestfs-actions.pod:6896
33420 msgid ""
33421 "One consequence of this is that log messages aren't caught by the library "
33422 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
33423 "stdout."
33424 msgstr ""
33425
33426 #. type: =head2
33427 #: ../src/guestfs-actions.pod:6909
33428 msgid "guestfs_set_e2label"
33429 msgstr ""
33430
33431 #. type: verbatim
33432 #: ../src/guestfs-actions.pod:6911
33433 #, no-wrap
33434 msgid ""
33435 " int\n"
33436 " guestfs_set_e2label (guestfs_h *g,\n"
33437 "                      const char *device,\n"
33438 "                      const char *label);\n"
33439 "\n"
33440 msgstr ""
33441
33442 #. type: textblock
33443 #: ../src/guestfs-actions.pod:6920
33444 msgid ""
33445 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
33446 "the existing label on a filesystem."
33447 msgstr ""
33448
33449 #. type: =head2
33450 #: ../src/guestfs-actions.pod:6927
33451 msgid "guestfs_set_e2uuid"
33452 msgstr ""
33453
33454 #. type: verbatim
33455 #: ../src/guestfs-actions.pod:6929
33456 #, no-wrap
33457 msgid ""
33458 " int\n"
33459 " guestfs_set_e2uuid (guestfs_h *g,\n"
33460 "                     const char *device,\n"
33461 "                     const char *uuid);\n"
33462 "\n"
33463 msgstr ""
33464
33465 #. type: textblock
33466 #: ../src/guestfs-actions.pod:6939
33467 msgid ""
33468 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
33469 "the existing UUID of a filesystem."
33470 msgstr ""
33471
33472 #. type: =head2
33473 #: ../src/guestfs-actions.pod:6946
33474 msgid "guestfs_set_memsize"
33475 msgstr ""
33476
33477 #. type: verbatim
33478 #: ../src/guestfs-actions.pod:6948
33479 #, no-wrap
33480 msgid ""
33481 " int\n"
33482 " guestfs_set_memsize (guestfs_h *g,\n"
33483 "                      int memsize);\n"
33484 "\n"
33485 msgstr ""
33486
33487 #. type: textblock
33488 #: ../src/guestfs-actions.pod:6952
33489 msgid ""
33490 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
33491 "This only has any effect if called before C<guestfs_launch>."
33492 msgstr ""
33493
33494 #. type: =head2
33495 #: ../src/guestfs-actions.pod:6967
33496 msgid "guestfs_set_network"
33497 msgstr ""
33498
33499 #. type: verbatim
33500 #: ../src/guestfs-actions.pod:6969
33501 #, no-wrap
33502 msgid ""
33503 " int\n"
33504 " guestfs_set_network (guestfs_h *g,\n"
33505 "                      int network);\n"
33506 "\n"
33507 msgstr ""
33508
33509 #. type: textblock
33510 #: ../src/guestfs-actions.pod:6979
33511 msgid ""
33512 "You must call this before calling C<guestfs_launch>, otherwise it has no "
33513 "effect."
33514 msgstr ""
33515
33516 #. type: =head2
33517 #: ../src/guestfs-actions.pod:6986
33518 msgid "guestfs_set_path"
33519 msgstr ""
33520
33521 #. type: verbatim
33522 #: ../src/guestfs-actions.pod:6988
33523 #, no-wrap
33524 msgid ""
33525 " int\n"
33526 " guestfs_set_path (guestfs_h *g,\n"
33527 "                   const char *searchpath);\n"
33528 "\n"
33529 msgstr ""
33530
33531 #. type: =head2
33532 #: ../src/guestfs-actions.pod:7003
33533 msgid "guestfs_set_pgroup"
33534 msgstr ""
33535
33536 #. type: verbatim
33537 #: ../src/guestfs-actions.pod:7005
33538 #, no-wrap
33539 msgid ""
33540 " int\n"
33541 " guestfs_set_pgroup (guestfs_h *g,\n"
33542 "                     int pgroup);\n"
33543 "\n"
33544 msgstr ""
33545
33546 #. type: =head2
33547 #: ../src/guestfs-actions.pod:7022
33548 msgid "guestfs_set_qemu"
33549 msgstr ""
33550
33551 #. type: verbatim
33552 #: ../src/guestfs-actions.pod:7024
33553 #, no-wrap
33554 msgid ""
33555 " int\n"
33556 " guestfs_set_qemu (guestfs_h *g,\n"
33557 "                   const char *qemu);\n"
33558 "\n"
33559 msgstr ""
33560
33561 #. type: =head2
33562 #: ../src/guestfs-actions.pod:7050
33563 msgid "guestfs_set_recovery_proc"
33564 msgstr ""
33565
33566 #. type: verbatim
33567 #: ../src/guestfs-actions.pod:7052
33568 #, no-wrap
33569 msgid ""
33570 " int\n"
33571 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33572 "                            int recoveryproc);\n"
33573 "\n"
33574 msgstr ""
33575
33576 #. type: textblock
33577 #: ../src/guestfs-actions.pod:7056
33578 msgid ""
33579 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33580 "not create a recovery process.  The purpose of the recovery process is to "
33581 "stop runaway qemu processes in the case where the main program aborts "
33582 "abruptly."
33583 msgstr ""
33584
33585 #. type: textblock
33586 #: ../src/guestfs-actions.pod:7061
33587 msgid ""
33588 "This only has any effect if called before C<guestfs_launch>, and the default "
33589 "is true."
33590 msgstr ""
33591
33592 #. type: =head2
33593 #: ../src/guestfs-actions.pod:7074
33594 msgid "guestfs_set_selinux"
33595 msgstr ""
33596
33597 #. type: verbatim
33598 #: ../src/guestfs-actions.pod:7076
33599 #, no-wrap
33600 msgid ""
33601 " int\n"
33602 " guestfs_set_selinux (guestfs_h *g,\n"
33603 "                      int selinux);\n"
33604 "\n"
33605 msgstr ""
33606
33607 #. type: =head2
33608 #: ../src/guestfs-actions.pod:7093
33609 msgid "guestfs_set_smp"
33610 msgstr ""
33611
33612 #. type: verbatim
33613 #: ../src/guestfs-actions.pod:7095
33614 #, no-wrap
33615 msgid ""
33616 " int\n"
33617 " guestfs_set_smp (guestfs_h *g,\n"
33618 "                  int smp);\n"
33619 "\n"
33620 msgstr ""
33621
33622 #. type: textblock
33623 #: ../src/guestfs-actions.pod:7103
33624 msgid "This function must be called before C<guestfs_launch>."
33625 msgstr ""
33626
33627 #. type: =head2
33628 #: ../src/guestfs-actions.pod:7109
33629 msgid "guestfs_set_trace"
33630 msgstr ""
33631
33632 #. type: verbatim
33633 #: ../src/guestfs-actions.pod:7111
33634 #, no-wrap
33635 msgid ""
33636 " int\n"
33637 " guestfs_set_trace (guestfs_h *g,\n"
33638 "                    int trace);\n"
33639 "\n"
33640 msgstr ""
33641
33642 #. type: textblock
33643 #: ../src/guestfs-actions.pod:7125
33644 msgid ""
33645 "Trace messages are normally sent to C<stderr>, unless you register a "
33646 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33647 msgstr ""
33648
33649 #. type: =head2
33650 #: ../src/guestfs-actions.pod:7133
33651 msgid "guestfs_set_verbose"
33652 msgstr ""
33653
33654 #. type: verbatim
33655 #: ../src/guestfs-actions.pod:7135
33656 #, no-wrap
33657 msgid ""
33658 " int\n"
33659 " guestfs_set_verbose (guestfs_h *g,\n"
33660 "                      int verbose);\n"
33661 "\n"
33662 msgstr ""
33663
33664 #. type: textblock
33665 #: ../src/guestfs-actions.pod:7144
33666 msgid ""
33667 "Verbose messages are normally sent to C<stderr>, unless you register a "
33668 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33669 msgstr ""
33670
33671 #. type: =head2
33672 #: ../src/guestfs-actions.pod:7152
33673 msgid "guestfs_setcon"
33674 msgstr ""
33675
33676 #. type: verbatim
33677 #: ../src/guestfs-actions.pod:7154
33678 #, no-wrap
33679 msgid ""
33680 " int\n"
33681 " guestfs_setcon (guestfs_h *g,\n"
33682 "                 const char *context);\n"
33683 "\n"
33684 msgstr ""
33685
33686 #. type: =head2
33687 #: ../src/guestfs-actions.pod:7167
33688 msgid "guestfs_setxattr"
33689 msgstr ""
33690
33691 #. type: verbatim
33692 #: ../src/guestfs-actions.pod:7169
33693 #, no-wrap
33694 msgid ""
33695 " int\n"
33696 " guestfs_setxattr (guestfs_h *g,\n"
33697 "                   const char *xattr,\n"
33698 "                   const char *val,\n"
33699 "                   int vallen,\n"
33700 "                   const char *path);\n"
33701 "\n"
33702 msgstr ""
33703
33704 #. type: textblock
33705 #: ../src/guestfs-actions.pod:7180
33706 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33707 msgstr ""
33708
33709 #. type: =head2
33710 #: ../src/guestfs-actions.pod:7186
33711 msgid "guestfs_sfdisk"
33712 msgstr ""
33713
33714 #. type: verbatim
33715 #: ../src/guestfs-actions.pod:7188
33716 #, no-wrap
33717 msgid ""
33718 " int\n"
33719 " guestfs_sfdisk (guestfs_h *g,\n"
33720 "                 const char *device,\n"
33721 "                 int cyls,\n"
33722 "                 int heads,\n"
33723 "                 int sectors,\n"
33724 "                 char *const *lines);\n"
33725 "\n"
33726 msgstr ""
33727
33728 #. type: textblock
33729 #: ../src/guestfs-actions.pod:7196 ../src/guestfs-actions.pod:7237
33730 #: ../src/guestfs-actions.pod:7268
33731 msgid ""
33732 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33733 "call instead."
33734 msgstr ""
33735
33736 #. type: textblock
33737 #: ../src/guestfs-actions.pod:7223
33738 msgid ""
33739 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33740 msgstr ""
33741
33742 #. type: =head2
33743 #: ../src/guestfs-actions.pod:7230
33744 msgid "guestfs_sfdiskM"
33745 msgstr ""
33746
33747 #. type: verbatim
33748 #: ../src/guestfs-actions.pod:7232
33749 #, no-wrap
33750 msgid ""
33751 " int\n"
33752 " guestfs_sfdiskM (guestfs_h *g,\n"
33753 "                  const char *device,\n"
33754 "                  char *const *lines);\n"
33755 "\n"
33756 msgstr ""
33757
33758 #. type: textblock
33759 #: ../src/guestfs-actions.pod:7244
33760 msgid ""
33761 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33762 "partition sizes are specified in megabytes only (rounded to the nearest "
33763 "cylinder) and you don't need to specify the cyls, heads and sectors "
33764 "parameters which were rarely if ever used anyway."
33765 msgstr ""
33766
33767 #. type: textblock
33768 #: ../src/guestfs-actions.pod:7250
33769 msgid ""
33770 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33771 "C<guestfs_part_disk>"
33772 msgstr ""
33773
33774 #. type: =head2
33775 #: ../src/guestfs-actions.pod:7257
33776 msgid "guestfs_sfdisk_N"
33777 msgstr ""
33778
33779 #. type: verbatim
33780 #: ../src/guestfs-actions.pod:7259
33781 #, no-wrap
33782 msgid ""
33783 " int\n"
33784 " guestfs_sfdisk_N (guestfs_h *g,\n"
33785 "                   const char *device,\n"
33786 "                   int partnum,\n"
33787 "                   int cyls,\n"
33788 "                   int heads,\n"
33789 "                   int sectors,\n"
33790 "                   const char *line);\n"
33791 "\n"
33792 msgstr ""
33793
33794 #. type: textblock
33795 #: ../src/guestfs-actions.pod:7278
33796 msgid ""
33797 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
33798 "for the cyls/heads/sectors parameters."
33799 msgstr ""
33800
33801 #. type: textblock
33802 #: ../src/guestfs-actions.pod:7281
33803 msgid "See also: C<guestfs_part_add>"
33804 msgstr ""
33805
33806 #. type: =head2
33807 #: ../src/guestfs-actions.pod:7287
33808 msgid "guestfs_sfdisk_disk_geometry"
33809 msgstr ""
33810
33811 #. type: verbatim
33812 #: ../src/guestfs-actions.pod:7289
33813 #, no-wrap
33814 msgid ""
33815 " char *\n"
33816 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33817 "                               const char *device);\n"
33818 "\n"
33819 msgstr ""
33820
33821 #. type: textblock
33822 #: ../src/guestfs-actions.pod:7293
33823 msgid ""
33824 "This displays the disk geometry of C<device> read from the partition table.  "
33825 "Especially in the case where the underlying block device has been resized, "
33826 "this can be different from the kernel's idea of the geometry (see "
33827 "C<guestfs_sfdisk_kernel_geometry>)."
33828 msgstr ""
33829
33830 #. type: =head2
33831 #: ../src/guestfs-actions.pod:7306
33832 msgid "guestfs_sfdisk_kernel_geometry"
33833 msgstr ""
33834
33835 #. type: verbatim
33836 #: ../src/guestfs-actions.pod:7308
33837 #, no-wrap
33838 msgid ""
33839 " char *\n"
33840 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33841 "                                 const char *device);\n"
33842 "\n"
33843 msgstr ""
33844
33845 #. type: =head2
33846 #: ../src/guestfs-actions.pod:7322
33847 msgid "guestfs_sfdisk_l"
33848 msgstr ""
33849
33850 #. type: verbatim
33851 #: ../src/guestfs-actions.pod:7324
33852 #, no-wrap
33853 msgid ""
33854 " char *\n"
33855 " guestfs_sfdisk_l (guestfs_h *g,\n"
33856 "                   const char *device);\n"
33857 "\n"
33858 msgstr ""
33859
33860 #. type: textblock
33861 #: ../src/guestfs-actions.pod:7328
33862 msgid ""
33863 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33864 "call instead."
33865 msgstr ""
33866
33867 #. type: textblock
33868 #: ../src/guestfs-actions.pod:7339
33869 msgid "See also: C<guestfs_part_list>"
33870 msgstr ""
33871
33872 #. type: =head2
33873 #: ../src/guestfs-actions.pod:7346
33874 msgid "guestfs_sh"
33875 msgstr ""
33876
33877 #. type: verbatim
33878 #: ../src/guestfs-actions.pod:7348
33879 #, no-wrap
33880 msgid ""
33881 " char *\n"
33882 " guestfs_sh (guestfs_h *g,\n"
33883 "             const char *command);\n"
33884 "\n"
33885 msgstr ""
33886
33887 #. type: textblock
33888 #: ../src/guestfs-actions.pod:7355
33889 msgid "This is like C<guestfs_command>, but passes the command to:"
33890 msgstr ""
33891
33892 #. type: textblock
33893 #: ../src/guestfs-actions.pod:7363
33894 msgid "All the provisos about C<guestfs_command> apply to this call."
33895 msgstr ""
33896
33897 #. type: =head2
33898 #: ../src/guestfs-actions.pod:7370
33899 msgid "guestfs_sh_lines"
33900 msgstr ""
33901
33902 #. type: verbatim
33903 #: ../src/guestfs-actions.pod:7372
33904 #, no-wrap
33905 msgid ""
33906 " char **\n"
33907 " guestfs_sh_lines (guestfs_h *g,\n"
33908 "                   const char *command);\n"
33909 "\n"
33910 msgstr ""
33911
33912 #. type: textblock
33913 #: ../src/guestfs-actions.pod:7376
33914 msgid ""
33915 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33916 "lines."
33917 msgstr ""
33918
33919 #. type: textblock
33920 #: ../src/guestfs-actions.pod:7379
33921 msgid "See also: C<guestfs_command_lines>"
33922 msgstr ""
33923
33924 #. type: =head2
33925 #: ../src/guestfs-actions.pod:7387
33926 msgid "guestfs_sleep"
33927 msgstr ""
33928
33929 #. type: verbatim
33930 #: ../src/guestfs-actions.pod:7389
33931 #, no-wrap
33932 msgid ""
33933 " int\n"
33934 " guestfs_sleep (guestfs_h *g,\n"
33935 "                int secs);\n"
33936 "\n"
33937 msgstr ""
33938
33939 #. type: textblock
33940 #: ../src/guestfs-actions.pod:7397
33941 msgid "(Added in 1.0.41)"
33942 msgstr ""
33943
33944 #. type: =head2
33945 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-structs.pod:109
33946 msgid "guestfs_stat"
33947 msgstr ""
33948
33949 #. type: verbatim
33950 #: ../src/guestfs-actions.pod:7401
33951 #, no-wrap
33952 msgid ""
33953 " struct guestfs_stat *\n"
33954 " guestfs_stat (guestfs_h *g,\n"
33955 "               const char *path);\n"
33956 "\n"
33957 msgstr ""
33958
33959 #. type: =head2
33960 #: ../src/guestfs-actions.pod:7415 ../src/guestfs-structs.pod:135
33961 msgid "guestfs_statvfs"
33962 msgstr ""
33963
33964 #. type: verbatim
33965 #: ../src/guestfs-actions.pod:7417
33966 #, no-wrap
33967 msgid ""
33968 " struct guestfs_statvfs *\n"
33969 " guestfs_statvfs (guestfs_h *g,\n"
33970 "                  const char *path);\n"
33971 "\n"
33972 msgstr ""
33973
33974 #. type: textblock
33975 #: ../src/guestfs-actions.pod:7427
33976 msgid ""
33977 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33978 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
33979 msgstr ""
33980
33981 #. type: =head2
33982 #: ../src/guestfs-actions.pod:7433
33983 msgid "guestfs_strings"
33984 msgstr ""
33985
33986 #. type: verbatim
33987 #: ../src/guestfs-actions.pod:7435
33988 #, no-wrap
33989 msgid ""
33990 " char **\n"
33991 " guestfs_strings (guestfs_h *g,\n"
33992 "                  const char *path);\n"
33993 "\n"
33994 msgstr ""
33995
33996 #. type: =head2
33997 #: ../src/guestfs-actions.pod:7451
33998 msgid "guestfs_strings_e"
33999 msgstr ""
34000
34001 #. type: verbatim
34002 #: ../src/guestfs-actions.pod:7453
34003 #, no-wrap
34004 msgid ""
34005 " char **\n"
34006 " guestfs_strings_e (guestfs_h *g,\n"
34007 "                    const char *encoding,\n"
34008 "                    const char *path);\n"
34009 "\n"
34010 msgstr ""
34011
34012 #. type: textblock
34013 #: ../src/guestfs-actions.pod:7458
34014 msgid ""
34015 "This is like the C<guestfs_strings> command, but allows you to specify the "
34016 "encoding of strings that are looked for in the source file C<path>."
34017 msgstr ""
34018
34019 #. type: textblock
34020 #: ../src/guestfs-actions.pod:7468
34021 msgid ""
34022 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
34023 "ISO-8859-X (this is what C<guestfs_strings> uses)."
34024 msgstr ""
34025
34026 #. type: =head2
34027 #: ../src/guestfs-actions.pod:7506
34028 msgid "guestfs_swapoff_device"
34029 msgstr ""
34030
34031 #. type: verbatim
34032 #: ../src/guestfs-actions.pod:7508
34033 #, no-wrap
34034 msgid ""
34035 " int\n"
34036 " guestfs_swapoff_device (guestfs_h *g,\n"
34037 "                         const char *device);\n"
34038 "\n"
34039 msgstr ""
34040
34041 #. type: textblock
34042 #: ../src/guestfs-actions.pod:7512
34043 msgid ""
34044 "This command disables the libguestfs appliance swap device or partition "
34045 "named C<device>.  See C<guestfs_swapon_device>."
34046 msgstr ""
34047
34048 #. type: =head2
34049 #: ../src/guestfs-actions.pod:7520
34050 msgid "guestfs_swapoff_file"
34051 msgstr ""
34052
34053 #. type: verbatim
34054 #: ../src/guestfs-actions.pod:7522
34055 #, no-wrap
34056 msgid ""
34057 " int\n"
34058 " guestfs_swapoff_file (guestfs_h *g,\n"
34059 "                       const char *file);\n"
34060 "\n"
34061 msgstr ""
34062
34063 #. type: =head2
34064 #: ../src/guestfs-actions.pod:7532
34065 msgid "guestfs_swapoff_label"
34066 msgstr ""
34067
34068 #. type: verbatim
34069 #: ../src/guestfs-actions.pod:7534
34070 #, no-wrap
34071 msgid ""
34072 " int\n"
34073 " guestfs_swapoff_label (guestfs_h *g,\n"
34074 "                        const char *label);\n"
34075 "\n"
34076 msgstr ""
34077
34078 #. type: =head2
34079 #: ../src/guestfs-actions.pod:7545
34080 msgid "guestfs_swapoff_uuid"
34081 msgstr ""
34082
34083 #. type: verbatim
34084 #: ../src/guestfs-actions.pod:7547
34085 #, no-wrap
34086 msgid ""
34087 " int\n"
34088 " guestfs_swapoff_uuid (guestfs_h *g,\n"
34089 "                       const char *uuid);\n"
34090 "\n"
34091 msgstr ""
34092
34093 #. type: =head2
34094 #: ../src/guestfs-actions.pod:7558
34095 msgid "guestfs_swapon_device"
34096 msgstr ""
34097
34098 #. type: verbatim
34099 #: ../src/guestfs-actions.pod:7560
34100 #, no-wrap
34101 msgid ""
34102 " int\n"
34103 " guestfs_swapon_device (guestfs_h *g,\n"
34104 "                        const char *device);\n"
34105 "\n"
34106 msgstr ""
34107
34108 #. type: textblock
34109 #: ../src/guestfs-actions.pod:7564
34110 msgid ""
34111 "This command enables the libguestfs appliance to use the swap device or "
34112 "partition named C<device>.  The increased memory is made available for all "
34113 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
34114 msgstr ""
34115
34116 #. type: =head2
34117 #: ../src/guestfs-actions.pod:7580
34118 msgid "guestfs_swapon_file"
34119 msgstr ""
34120
34121 #. type: verbatim
34122 #: ../src/guestfs-actions.pod:7582
34123 #, no-wrap
34124 msgid ""
34125 " int\n"
34126 " guestfs_swapon_file (guestfs_h *g,\n"
34127 "                      const char *file);\n"
34128 "\n"
34129 msgstr ""
34130
34131 #. type: textblock
34132 #: ../src/guestfs-actions.pod:7586
34133 msgid ""
34134 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
34135 "notes."
34136 msgstr ""
34137
34138 #. type: =head2
34139 #: ../src/guestfs-actions.pod:7593
34140 msgid "guestfs_swapon_label"
34141 msgstr ""
34142
34143 #. type: verbatim
34144 #: ../src/guestfs-actions.pod:7595
34145 #, no-wrap
34146 msgid ""
34147 " int\n"
34148 " guestfs_swapon_label (guestfs_h *g,\n"
34149 "                       const char *label);\n"
34150 "\n"
34151 msgstr ""
34152
34153 #. type: textblock
34154 #: ../src/guestfs-actions.pod:7599
34155 msgid ""
34156 "This command enables swap to a labeled swap partition.  See "
34157 "C<guestfs_swapon_device> for other notes."
34158 msgstr ""
34159
34160 #. type: =head2
34161 #: ../src/guestfs-actions.pod:7606
34162 msgid "guestfs_swapon_uuid"
34163 msgstr ""
34164
34165 #. type: verbatim
34166 #: ../src/guestfs-actions.pod:7608
34167 #, no-wrap
34168 msgid ""
34169 " int\n"
34170 " guestfs_swapon_uuid (guestfs_h *g,\n"
34171 "                      const char *uuid);\n"
34172 "\n"
34173 msgstr ""
34174
34175 #. type: textblock
34176 #: ../src/guestfs-actions.pod:7612
34177 msgid ""
34178 "This command enables swap to a swap partition with the given UUID.  See "
34179 "C<guestfs_swapon_device> for other notes."
34180 msgstr ""
34181
34182 #. type: =head2
34183 #: ../src/guestfs-actions.pod:7619
34184 msgid "guestfs_sync"
34185 msgstr ""
34186
34187 #. type: verbatim
34188 #: ../src/guestfs-actions.pod:7621
34189 #, no-wrap
34190 msgid ""
34191 " int\n"
34192 " guestfs_sync (guestfs_h *g);\n"
34193 "\n"
34194 msgstr ""
34195
34196 #. type: =head2
34197 #: ../src/guestfs-actions.pod:7634
34198 msgid "guestfs_tail"
34199 msgstr ""
34200
34201 #. type: verbatim
34202 #: ../src/guestfs-actions.pod:7636
34203 #, no-wrap
34204 msgid ""
34205 " char **\n"
34206 " guestfs_tail (guestfs_h *g,\n"
34207 "               const char *path);\n"
34208 "\n"
34209 msgstr ""
34210
34211 #. type: =head2
34212 #: ../src/guestfs-actions.pod:7652
34213 msgid "guestfs_tail_n"
34214 msgstr ""
34215
34216 #. type: verbatim
34217 #: ../src/guestfs-actions.pod:7654
34218 #, no-wrap
34219 msgid ""
34220 " char **\n"
34221 " guestfs_tail_n (guestfs_h *g,\n"
34222 "                 int nrlines,\n"
34223 "                 const char *path);\n"
34224 "\n"
34225 msgstr ""
34226
34227 #. type: =head2
34228 #: ../src/guestfs-actions.pod:7676
34229 msgid "guestfs_tar_in"
34230 msgstr ""
34231
34232 #. type: verbatim
34233 #: ../src/guestfs-actions.pod:7678
34234 #, no-wrap
34235 msgid ""
34236 " int\n"
34237 " guestfs_tar_in (guestfs_h *g,\n"
34238 "                 const char *tarfile,\n"
34239 "                 const char *directory);\n"
34240 "\n"
34241 msgstr ""
34242
34243 #. type: textblock
34244 #: ../src/guestfs-actions.pod:7686
34245 msgid ""
34246 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
34247 msgstr ""
34248
34249 #. type: textblock
34250 #: ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7708
34251 #: ../src/guestfs-actions.pod:7724 ../src/guestfs-actions.pod:7740
34252 msgid "(Added in 1.0.3)"
34253 msgstr ""
34254
34255 #. type: =head2
34256 #: ../src/guestfs-actions.pod:7693
34257 msgid "guestfs_tar_out"
34258 msgstr ""
34259
34260 #. type: verbatim
34261 #: ../src/guestfs-actions.pod:7695
34262 #, no-wrap
34263 msgid ""
34264 " int\n"
34265 " guestfs_tar_out (guestfs_h *g,\n"
34266 "                  const char *directory,\n"
34267 "                  const char *tarfile);\n"
34268 "\n"
34269 msgstr ""
34270
34271 #. type: textblock
34272 #: ../src/guestfs-actions.pod:7703
34273 msgid ""
34274 "To download a compressed tarball, use C<guestfs_tgz_out> or "
34275 "C<guestfs_txz_out>."
34276 msgstr ""
34277
34278 #. type: =head2
34279 #: ../src/guestfs-actions.pod:7710
34280 msgid "guestfs_tgz_in"
34281 msgstr ""
34282
34283 #. type: verbatim
34284 #: ../src/guestfs-actions.pod:7712
34285 #, no-wrap
34286 msgid ""
34287 " int\n"
34288 " guestfs_tgz_in (guestfs_h *g,\n"
34289 "                 const char *tarball,\n"
34290 "                 const char *directory);\n"
34291 "\n"
34292 msgstr ""
34293
34294 #. type: textblock
34295 #: ../src/guestfs-actions.pod:7720
34296 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
34297 msgstr ""
34298
34299 #. type: =head2
34300 #: ../src/guestfs-actions.pod:7726
34301 msgid "guestfs_tgz_out"
34302 msgstr ""
34303
34304 #. type: verbatim
34305 #: ../src/guestfs-actions.pod:7728
34306 #, no-wrap
34307 msgid ""
34308 " int\n"
34309 " guestfs_tgz_out (guestfs_h *g,\n"
34310 "                  const char *directory,\n"
34311 "                  const char *tarball);\n"
34312 "\n"
34313 msgstr ""
34314
34315 #. type: textblock
34316 #: ../src/guestfs-actions.pod:7736
34317 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
34318 msgstr ""
34319
34320 #. type: =head2
34321 #: ../src/guestfs-actions.pod:7742
34322 msgid "guestfs_touch"
34323 msgstr ""
34324
34325 #. type: verbatim
34326 #: ../src/guestfs-actions.pod:7744
34327 #, no-wrap
34328 msgid ""
34329 " int\n"
34330 " guestfs_touch (guestfs_h *g,\n"
34331 "                const char *path);\n"
34332 "\n"
34333 msgstr ""
34334
34335 #. type: =head2
34336 #: ../src/guestfs-actions.pod:7759
34337 msgid "guestfs_truncate"
34338 msgstr ""
34339
34340 #. type: verbatim
34341 #: ../src/guestfs-actions.pod:7761
34342 #, no-wrap
34343 msgid ""
34344 " int\n"
34345 " guestfs_truncate (guestfs_h *g,\n"
34346 "                   const char *path);\n"
34347 "\n"
34348 msgstr ""
34349
34350 #. type: =head2
34351 #: ../src/guestfs-actions.pod:7772
34352 msgid "guestfs_truncate_size"
34353 msgstr ""
34354
34355 #. type: verbatim
34356 #: ../src/guestfs-actions.pod:7774
34357 #, no-wrap
34358 msgid ""
34359 " int\n"
34360 " guestfs_truncate_size (guestfs_h *g,\n"
34361 "                        const char *path,\n"
34362 "                        int64_t size);\n"
34363 "\n"
34364 msgstr ""
34365
34366 #. type: textblock
34367 #: ../src/guestfs-actions.pod:7782
34368 msgid ""
34369 "If the current file size is less than C<size> then the file is extended to "
34370 "the required size with zero bytes.  This creates a sparse file (ie. disk "
34371 "blocks are not allocated for the file until you write to it).  To create a "
34372 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
34373 msgstr ""
34374
34375 #. type: =head2
34376 #: ../src/guestfs-actions.pod:7792
34377 msgid "guestfs_tune2fs"
34378 msgstr ""
34379
34380 #. type: verbatim
34381 #: ../src/guestfs-actions.pod:7794
34382 #, no-wrap
34383 msgid ""
34384 " int\n"
34385 " guestfs_tune2fs (guestfs_h *g,\n"
34386 "                  const char *device,\n"
34387 "                  ...);\n"
34388 "\n"
34389 msgstr ""
34390
34391 #. type: verbatim
34392 #: ../src/guestfs-actions.pod:7804
34393 #, no-wrap
34394 msgid ""
34395 " GUESTFS_TUNE2FS_FORCE, int force,\n"
34396 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
34397 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
34398 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
34399 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
34400 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
34401 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
34402 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
34403 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
34404 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
34405 "\n"
34406 msgstr ""
34407
34408 #. type: textblock
34409 #: ../src/guestfs-actions.pod:7884
34410 msgid ""
34411 "To get the current values of filesystem parameters, see "
34412 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
34413 "L<tune2fs(8)> man page."
34414 msgstr ""
34415
34416 #. type: =head2
34417 #: ../src/guestfs-actions.pod:7892
34418 msgid "guestfs_tune2fs_va"
34419 msgstr ""
34420
34421 #. type: verbatim
34422 #: ../src/guestfs-actions.pod:7894
34423 #, no-wrap
34424 msgid ""
34425 " int\n"
34426 " guestfs_tune2fs_va (guestfs_h *g,\n"
34427 "                     const char *device,\n"
34428 "                     va_list args);\n"
34429 "\n"
34430 msgstr ""
34431
34432 #. type: textblock
34433 #: ../src/guestfs-actions.pod:7899
34434 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
34435 msgstr ""
34436
34437 #. type: =head2
34438 #: ../src/guestfs-actions.pod:7903
34439 msgid "guestfs_tune2fs_argv"
34440 msgstr ""
34441
34442 #. type: verbatim
34443 #: ../src/guestfs-actions.pod:7905
34444 #, no-wrap
34445 msgid ""
34446 " int\n"
34447 " guestfs_tune2fs_argv (guestfs_h *g,\n"
34448 "                       const char *device,\n"
34449 "                       const struct guestfs_tune2fs_argv *optargs);\n"
34450 "\n"
34451 msgstr ""
34452
34453 #. type: textblock
34454 #: ../src/guestfs-actions.pod:7910
34455 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
34456 msgstr ""
34457
34458 #. type: =head2
34459 #: ../src/guestfs-actions.pod:7914
34460 msgid "guestfs_tune2fs_l"
34461 msgstr ""
34462
34463 #. type: verbatim
34464 #: ../src/guestfs-actions.pod:7916
34465 #, no-wrap
34466 msgid ""
34467 " char **\n"
34468 " guestfs_tune2fs_l (guestfs_h *g,\n"
34469 "                    const char *device);\n"
34470 "\n"
34471 msgstr ""
34472
34473 #. type: =head2
34474 #: ../src/guestfs-actions.pod:7936
34475 msgid "guestfs_txz_in"
34476 msgstr ""
34477
34478 #. type: verbatim
34479 #: ../src/guestfs-actions.pod:7938
34480 #, no-wrap
34481 msgid ""
34482 " int\n"
34483 " guestfs_txz_in (guestfs_h *g,\n"
34484 "                 const char *tarball,\n"
34485 "                 const char *directory);\n"
34486 "\n"
34487 msgstr ""
34488
34489 #. type: =head2
34490 #: ../src/guestfs-actions.pod:7950
34491 msgid "guestfs_txz_out"
34492 msgstr ""
34493
34494 #. type: verbatim
34495 #: ../src/guestfs-actions.pod:7952
34496 #, no-wrap
34497 msgid ""
34498 " int\n"
34499 " guestfs_txz_out (guestfs_h *g,\n"
34500 "                  const char *directory,\n"
34501 "                  const char *tarball);\n"
34502 "\n"
34503 msgstr ""
34504
34505 #. type: =head2
34506 #: ../src/guestfs-actions.pod:7964
34507 msgid "guestfs_umask"
34508 msgstr ""
34509
34510 #. type: verbatim
34511 #: ../src/guestfs-actions.pod:7966
34512 #, no-wrap
34513 msgid ""
34514 " int\n"
34515 " guestfs_umask (guestfs_h *g,\n"
34516 "                int mask);\n"
34517 "\n"
34518 msgstr ""
34519
34520 #. type: textblock
34521 #: ../src/guestfs-actions.pod:7982
34522 msgid ""
34523 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
34524 "C<guestfs_mkdir>."
34525 msgstr ""
34526
34527 #. type: =head2
34528 #: ../src/guestfs-actions.pod:7991
34529 msgid "guestfs_umount"
34530 msgstr ""
34531
34532 #. type: verbatim
34533 #: ../src/guestfs-actions.pod:7993
34534 #, no-wrap
34535 msgid ""
34536 " int\n"
34537 " guestfs_umount (guestfs_h *g,\n"
34538 "                 const char *pathordevice);\n"
34539 "\n"
34540 msgstr ""
34541
34542 #. type: =head2
34543 #: ../src/guestfs-actions.pod:8005
34544 msgid "guestfs_umount_all"
34545 msgstr ""
34546
34547 #. type: verbatim
34548 #: ../src/guestfs-actions.pod:8007
34549 #, no-wrap
34550 msgid ""
34551 " int\n"
34552 " guestfs_umount_all (guestfs_h *g);\n"
34553 "\n"
34554 msgstr ""
34555
34556 #. type: =head2
34557 #: ../src/guestfs-actions.pod:8018
34558 msgid "guestfs_upload"
34559 msgstr ""
34560
34561 #. type: verbatim
34562 #: ../src/guestfs-actions.pod:8020
34563 #, no-wrap
34564 msgid ""
34565 " int\n"
34566 " guestfs_upload (guestfs_h *g,\n"
34567 "                 const char *filename,\n"
34568 "                 const char *remotefilename);\n"
34569 "\n"
34570 msgstr ""
34571
34572 #. type: textblock
34573 #: ../src/guestfs-actions.pod:8030
34574 msgid "See also C<guestfs_download>."
34575 msgstr ""
34576
34577 #. type: =head2
34578 #: ../src/guestfs-actions.pod:8041
34579 msgid "guestfs_upload_offset"
34580 msgstr ""
34581
34582 #. type: verbatim
34583 #: ../src/guestfs-actions.pod:8043
34584 #, no-wrap
34585 msgid ""
34586 " int\n"
34587 " guestfs_upload_offset (guestfs_h *g,\n"
34588 "                        const char *filename,\n"
34589 "                        const char *remotefilename,\n"
34590 "                        int64_t offset);\n"
34591 "\n"
34592 msgstr ""
34593
34594 #. type: textblock
34595 #: ../src/guestfs-actions.pod:8059
34596 msgid ""
34597 "Note that there is no limit on the amount of data that can be uploaded with "
34598 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
34599 "full amount unless an error occurs."
34600 msgstr ""
34601
34602 #. type: textblock
34603 #: ../src/guestfs-actions.pod:8064
34604 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
34605 msgstr ""
34606
34607 #. type: =head2
34608 #: ../src/guestfs-actions.pod:8075
34609 msgid "guestfs_utimens"
34610 msgstr ""
34611
34612 #. type: verbatim
34613 #: ../src/guestfs-actions.pod:8077
34614 #, no-wrap
34615 msgid ""
34616 " int\n"
34617 " guestfs_utimens (guestfs_h *g,\n"
34618 "                  const char *path,\n"
34619 "                  int64_t atsecs,\n"
34620 "                  int64_t atnsecs,\n"
34621 "                  int64_t mtsecs,\n"
34622 "                  int64_t mtnsecs);\n"
34623 "\n"
34624 msgstr ""
34625
34626 #. type: =head2
34627 #: ../src/guestfs-actions.pod:8106 ../src/guestfs-structs.pod:175
34628 msgid "guestfs_version"
34629 msgstr ""
34630
34631 #. type: verbatim
34632 #: ../src/guestfs-actions.pod:8108
34633 #, no-wrap
34634 msgid ""
34635 " struct guestfs_version *\n"
34636 " guestfs_version (guestfs_h *g);\n"
34637 "\n"
34638 msgstr ""
34639
34640 #. type: textblock
34641 #: ../src/guestfs-actions.pod:8136
34642 msgid ""
34643 "I<Note:> Don't use this call to test for availability of features.  In "
34644 "enterprise distributions we backport features from later versions into "
34645 "earlier versions, making this an unreliable way to test for features.  Use "
34646 "C<guestfs_available> instead."
34647 msgstr ""
34648
34649 #. type: textblock
34650 #: ../src/guestfs-actions.pod:8142
34651 msgid ""
34652 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34653 "error.  I<The caller must call C<guestfs_free_version> after use>."
34654 msgstr ""
34655
34656 #. type: textblock
34657 #: ../src/guestfs-actions.pod:8146
34658 msgid "(Added in 1.0.58)"
34659 msgstr ""
34660
34661 #. type: =head2
34662 #: ../src/guestfs-actions.pod:8148
34663 msgid "guestfs_vfs_label"
34664 msgstr ""
34665
34666 #. type: verbatim
34667 #: ../src/guestfs-actions.pod:8150
34668 #, no-wrap
34669 msgid ""
34670 " char *\n"
34671 " guestfs_vfs_label (guestfs_h *g,\n"
34672 "                    const char *device);\n"
34673 "\n"
34674 msgstr ""
34675
34676 #. type: textblock
34677 #: ../src/guestfs-actions.pod:8159
34678 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34679 msgstr ""
34680
34681 #. type: textblock
34682 #: ../src/guestfs-actions.pod:8164 ../src/guestfs-actions.pod:8201
34683 msgid "(Added in 1.3.18)"
34684 msgstr ""
34685
34686 #. type: =head2
34687 #: ../src/guestfs-actions.pod:8166
34688 msgid "guestfs_vfs_type"
34689 msgstr ""
34690
34691 #. type: verbatim
34692 #: ../src/guestfs-actions.pod:8168
34693 #, no-wrap
34694 msgid ""
34695 " char *\n"
34696 " guestfs_vfs_type (guestfs_h *g,\n"
34697 "                   const char *device);\n"
34698 "\n"
34699 msgstr ""
34700
34701 #. type: =head2
34702 #: ../src/guestfs-actions.pod:8185
34703 msgid "guestfs_vfs_uuid"
34704 msgstr ""
34705
34706 #. type: verbatim
34707 #: ../src/guestfs-actions.pod:8187
34708 #, no-wrap
34709 msgid ""
34710 " char *\n"
34711 " guestfs_vfs_uuid (guestfs_h *g,\n"
34712 "                   const char *device);\n"
34713 "\n"
34714 msgstr ""
34715
34716 #. type: textblock
34717 #: ../src/guestfs-actions.pod:8196
34718 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34719 msgstr ""
34720
34721 #. type: =head2
34722 #: ../src/guestfs-actions.pod:8203
34723 msgid "guestfs_vg_activate"
34724 msgstr ""
34725
34726 #. type: verbatim
34727 #: ../src/guestfs-actions.pod:8205
34728 #, no-wrap
34729 msgid ""
34730 " int\n"
34731 " guestfs_vg_activate (guestfs_h *g,\n"
34732 "                      int activate,\n"
34733 "                      char *const *volgroups);\n"
34734 "\n"
34735 msgstr ""
34736
34737 #. type: =head2
34738 #: ../src/guestfs-actions.pod:8222
34739 msgid "guestfs_vg_activate_all"
34740 msgstr ""
34741
34742 #. type: verbatim
34743 #: ../src/guestfs-actions.pod:8224
34744 #, no-wrap
34745 msgid ""
34746 " int\n"
34747 " guestfs_vg_activate_all (guestfs_h *g,\n"
34748 "                          int activate);\n"
34749 "\n"
34750 msgstr ""
34751
34752 #. type: =head2
34753 #: ../src/guestfs-actions.pod:8237
34754 msgid "guestfs_vgcreate"
34755 msgstr ""
34756
34757 #. type: verbatim
34758 #: ../src/guestfs-actions.pod:8239
34759 #, no-wrap
34760 msgid ""
34761 " int\n"
34762 " guestfs_vgcreate (guestfs_h *g,\n"
34763 "                   const char *volgroup,\n"
34764 "                   char *const *physvols);\n"
34765 "\n"
34766 msgstr ""
34767
34768 #. type: =head2
34769 #: ../src/guestfs-actions.pod:8251
34770 msgid "guestfs_vglvuuids"
34771 msgstr ""
34772
34773 #. type: verbatim
34774 #: ../src/guestfs-actions.pod:8253
34775 #, no-wrap
34776 msgid ""
34777 " char **\n"
34778 " guestfs_vglvuuids (guestfs_h *g,\n"
34779 "                    const char *vgname);\n"
34780 "\n"
34781 msgstr ""
34782
34783 #. type: textblock
34784 #: ../src/guestfs-actions.pod:8260
34785 msgid ""
34786 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34787 "associate logical volumes and volume groups."
34788 msgstr ""
34789
34790 #. type: textblock
34791 #: ../src/guestfs-actions.pod:8263
34792 msgid "See also C<guestfs_vgpvuuids>."
34793 msgstr ""
34794
34795 #. type: =head2
34796 #: ../src/guestfs-actions.pod:8271
34797 msgid "guestfs_vgpvuuids"
34798 msgstr ""
34799
34800 #. type: verbatim
34801 #: ../src/guestfs-actions.pod:8273
34802 #, no-wrap
34803 msgid ""
34804 " char **\n"
34805 " guestfs_vgpvuuids (guestfs_h *g,\n"
34806 "                    const char *vgname);\n"
34807 "\n"
34808 msgstr ""
34809
34810 #. type: textblock
34811 #: ../src/guestfs-actions.pod:8280
34812 msgid ""
34813 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34814 "associate physical volumes and volume groups."
34815 msgstr ""
34816
34817 #. type: textblock
34818 #: ../src/guestfs-actions.pod:8283
34819 msgid "See also C<guestfs_vglvuuids>."
34820 msgstr ""
34821
34822 #. type: =head2
34823 #: ../src/guestfs-actions.pod:8291
34824 msgid "guestfs_vgremove"
34825 msgstr ""
34826
34827 #. type: verbatim
34828 #: ../src/guestfs-actions.pod:8293
34829 #, no-wrap
34830 msgid ""
34831 " int\n"
34832 " guestfs_vgremove (guestfs_h *g,\n"
34833 "                   const char *vgname);\n"
34834 "\n"
34835 msgstr ""
34836
34837 #. type: =head2
34838 #: ../src/guestfs-actions.pod:8306
34839 msgid "guestfs_vgrename"
34840 msgstr ""
34841
34842 #. type: verbatim
34843 #: ../src/guestfs-actions.pod:8308
34844 #, no-wrap
34845 msgid ""
34846 " int\n"
34847 " guestfs_vgrename (guestfs_h *g,\n"
34848 "                   const char *volgroup,\n"
34849 "                   const char *newvolgroup);\n"
34850 "\n"
34851 msgstr ""
34852
34853 #. type: =head2
34854 #: ../src/guestfs-actions.pod:8319
34855 msgid "guestfs_vgs"
34856 msgstr ""
34857
34858 #. type: verbatim
34859 #: ../src/guestfs-actions.pod:8321
34860 #, no-wrap
34861 msgid ""
34862 " char **\n"
34863 " guestfs_vgs (guestfs_h *g);\n"
34864 "\n"
34865 msgstr ""
34866
34867 #. type: textblock
34868 #: ../src/guestfs-actions.pod:8330
34869 msgid "See also C<guestfs_vgs_full>."
34870 msgstr ""
34871
34872 #. type: =head2
34873 #: ../src/guestfs-actions.pod:8338
34874 msgid "guestfs_vgs_full"
34875 msgstr ""
34876
34877 #. type: verbatim
34878 #: ../src/guestfs-actions.pod:8340
34879 #, no-wrap
34880 msgid ""
34881 " struct guestfs_lvm_vg_list *\n"
34882 " guestfs_vgs_full (guestfs_h *g);\n"
34883 "\n"
34884 msgstr ""
34885
34886 #. type: textblock
34887 #: ../src/guestfs-actions.pod:8346
34888 msgid ""
34889 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34890 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34891 msgstr ""
34892
34893 #. type: =head2
34894 #: ../src/guestfs-actions.pod:8352
34895 msgid "guestfs_vgscan"
34896 msgstr ""
34897
34898 #. type: verbatim
34899 #: ../src/guestfs-actions.pod:8354
34900 #, no-wrap
34901 msgid ""
34902 " int\n"
34903 " guestfs_vgscan (guestfs_h *g);\n"
34904 "\n"
34905 msgstr ""
34906
34907 #. type: =head2
34908 #: ../src/guestfs-actions.pod:8364
34909 msgid "guestfs_vguuid"
34910 msgstr ""
34911
34912 #. type: verbatim
34913 #: ../src/guestfs-actions.pod:8366
34914 #, no-wrap
34915 msgid ""
34916 " char *\n"
34917 " guestfs_vguuid (guestfs_h *g,\n"
34918 "                 const char *vgname);\n"
34919 "\n"
34920 msgstr ""
34921
34922 #. type: =head2
34923 #: ../src/guestfs-actions.pod:8377
34924 msgid "guestfs_wait_ready"
34925 msgstr ""
34926
34927 #. type: verbatim
34928 #: ../src/guestfs-actions.pod:8379
34929 #, no-wrap
34930 msgid ""
34931 " int\n"
34932 " guestfs_wait_ready (guestfs_h *g);\n"
34933 "\n"
34934 msgstr ""
34935
34936 #. type: textblock
34937 #: ../src/guestfs-actions.pod:8382
34938 msgid ""
34939 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34940 "instead."
34941 msgstr ""
34942
34943 #. type: textblock
34944 #: ../src/guestfs-actions.pod:8389
34945 msgid "This function is a no op."
34946 msgstr ""
34947
34948 #. type: textblock
34949 #: ../src/guestfs-actions.pod:8391
34950 msgid ""
34951 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34952 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
34953 "is no longer necessary because C<guestfs_launch> now does the waiting."
34954 msgstr ""
34955
34956 #. type: textblock
34957 #: ../src/guestfs-actions.pod:8396
34958 msgid ""
34959 "If you see any calls to this function in code then you can just remove them, "
34960 "unless you want to retain compatibility with older versions of the API."
34961 msgstr ""
34962
34963 #. type: =head2
34964 #: ../src/guestfs-actions.pod:8404
34965 msgid "guestfs_wc_c"
34966 msgstr ""
34967
34968 #. type: verbatim
34969 #: ../src/guestfs-actions.pod:8406
34970 #, no-wrap
34971 msgid ""
34972 " int\n"
34973 " guestfs_wc_c (guestfs_h *g,\n"
34974 "               const char *path);\n"
34975 "\n"
34976 msgstr ""
34977
34978 #. type: =head2
34979 #: ../src/guestfs-actions.pod:8417
34980 msgid "guestfs_wc_l"
34981 msgstr ""
34982
34983 #. type: verbatim
34984 #: ../src/guestfs-actions.pod:8419
34985 #, no-wrap
34986 msgid ""
34987 " int\n"
34988 " guestfs_wc_l (guestfs_h *g,\n"
34989 "               const char *path);\n"
34990 "\n"
34991 msgstr ""
34992
34993 #. type: =head2
34994 #: ../src/guestfs-actions.pod:8430
34995 msgid "guestfs_wc_w"
34996 msgstr ""
34997
34998 #. type: verbatim
34999 #: ../src/guestfs-actions.pod:8432
35000 #, no-wrap
35001 msgid ""
35002 " int\n"
35003 " guestfs_wc_w (guestfs_h *g,\n"
35004 "               const char *path);\n"
35005 "\n"
35006 msgstr ""
35007
35008 #. type: =head2
35009 #: ../src/guestfs-actions.pod:8443
35010 msgid "guestfs_write"
35011 msgstr ""
35012
35013 #. type: verbatim
35014 #: ../src/guestfs-actions.pod:8445
35015 #, no-wrap
35016 msgid ""
35017 " int\n"
35018 " guestfs_write (guestfs_h *g,\n"
35019 "                const char *path,\n"
35020 "                const char *content,\n"
35021 "                size_t content_size);\n"
35022 "\n"
35023 msgstr ""
35024
35025 #. type: textblock
35026 #: ../src/guestfs-actions.pod:8454
35027 msgid "See also C<guestfs_write_append>."
35028 msgstr ""
35029
35030 #. type: =head2
35031 #: ../src/guestfs-actions.pod:8463
35032 msgid "guestfs_write_append"
35033 msgstr ""
35034
35035 #. type: verbatim
35036 #: ../src/guestfs-actions.pod:8465
35037 #, no-wrap
35038 msgid ""
35039 " int\n"
35040 " guestfs_write_append (guestfs_h *g,\n"
35041 "                       const char *path,\n"
35042 "                       const char *content,\n"
35043 "                       size_t content_size);\n"
35044 "\n"
35045 msgstr ""
35046
35047 #. type: textblock
35048 #: ../src/guestfs-actions.pod:8474
35049 msgid "See also C<guestfs_write>."
35050 msgstr ""
35051
35052 #. type: =head2
35053 #: ../src/guestfs-actions.pod:8483
35054 msgid "guestfs_write_file"
35055 msgstr ""
35056
35057 #. type: verbatim
35058 #: ../src/guestfs-actions.pod:8485
35059 #, no-wrap
35060 msgid ""
35061 " int\n"
35062 " guestfs_write_file (guestfs_h *g,\n"
35063 "                     const char *path,\n"
35064 "                     const char *content,\n"
35065 "                     int size);\n"
35066 "\n"
35067 msgstr ""
35068
35069 #. type: textblock
35070 #: ../src/guestfs-actions.pod:8491
35071 msgid ""
35072 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
35073 "instead."
35074 msgstr ""
35075
35076 #. type: =head2
35077 #: ../src/guestfs-actions.pod:8516
35078 msgid "guestfs_zegrep"
35079 msgstr ""
35080
35081 #. type: verbatim
35082 #: ../src/guestfs-actions.pod:8518
35083 #, no-wrap
35084 msgid ""
35085 " char **\n"
35086 " guestfs_zegrep (guestfs_h *g,\n"
35087 "                 const char *regex,\n"
35088 "                 const char *path);\n"
35089 "\n"
35090 msgstr ""
35091
35092 #. type: =head2
35093 #: ../src/guestfs-actions.pod:8535
35094 msgid "guestfs_zegrepi"
35095 msgstr ""
35096
35097 #. type: verbatim
35098 #: ../src/guestfs-actions.pod:8537
35099 #, no-wrap
35100 msgid ""
35101 " char **\n"
35102 " guestfs_zegrepi (guestfs_h *g,\n"
35103 "                  const char *regex,\n"
35104 "                  const char *path);\n"
35105 "\n"
35106 msgstr ""
35107
35108 #. type: =head2
35109 #: ../src/guestfs-actions.pod:8554
35110 msgid "guestfs_zero"
35111 msgstr ""
35112
35113 #. type: verbatim
35114 #: ../src/guestfs-actions.pod:8556
35115 #, no-wrap
35116 msgid ""
35117 " int\n"
35118 " guestfs_zero (guestfs_h *g,\n"
35119 "               const char *device);\n"
35120 "\n"
35121 msgstr ""
35122
35123 #. type: textblock
35124 #: ../src/guestfs-actions.pod:8570
35125 msgid ""
35126 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
35127 "C<guestfs_is_zero_device>"
35128 msgstr ""
35129
35130 #. type: =head2
35131 #: ../src/guestfs-actions.pod:8582
35132 msgid "guestfs_zero_device"
35133 msgstr ""
35134
35135 #. type: verbatim
35136 #: ../src/guestfs-actions.pod:8584
35137 #, no-wrap
35138 msgid ""
35139 " int\n"
35140 " guestfs_zero_device (guestfs_h *g,\n"
35141 "                      const char *device);\n"
35142 "\n"
35143 msgstr ""
35144
35145 #. type: textblock
35146 #: ../src/guestfs-actions.pod:8588
35147 msgid ""
35148 "This command writes zeroes over the entire C<device>.  Compare with "
35149 "C<guestfs_zero> which just zeroes the first few blocks of a device."
35150 msgstr ""
35151
35152 #. type: textblock
35153 #: ../src/guestfs-actions.pod:8603
35154 msgid "(Added in 1.3.1)"
35155 msgstr ""
35156
35157 #. type: =head2
35158 #: ../src/guestfs-actions.pod:8605
35159 msgid "guestfs_zerofree"
35160 msgstr ""
35161
35162 #. type: verbatim
35163 #: ../src/guestfs-actions.pod:8607
35164 #, no-wrap
35165 msgid ""
35166 " int\n"
35167 " guestfs_zerofree (guestfs_h *g,\n"
35168 "                   const char *device);\n"
35169 "\n"
35170 msgstr ""
35171
35172 #. type: =head2
35173 #: ../src/guestfs-actions.pod:8626
35174 msgid "guestfs_zfgrep"
35175 msgstr ""
35176
35177 #. type: verbatim
35178 #: ../src/guestfs-actions.pod:8628
35179 #, no-wrap
35180 msgid ""
35181 " char **\n"
35182 " guestfs_zfgrep (guestfs_h *g,\n"
35183 "                 const char *pattern,\n"
35184 "                 const char *path);\n"
35185 "\n"
35186 msgstr ""
35187
35188 #. type: =head2
35189 #: ../src/guestfs-actions.pod:8645
35190 msgid "guestfs_zfgrepi"
35191 msgstr ""
35192
35193 #. type: verbatim
35194 #: ../src/guestfs-actions.pod:8647
35195 #, no-wrap
35196 msgid ""
35197 " char **\n"
35198 " guestfs_zfgrepi (guestfs_h *g,\n"
35199 "                  const char *pattern,\n"
35200 "                  const char *path);\n"
35201 "\n"
35202 msgstr ""
35203
35204 #. type: =head2
35205 #: ../src/guestfs-actions.pod:8664
35206 msgid "guestfs_zfile"
35207 msgstr ""
35208
35209 #. type: verbatim
35210 #: ../src/guestfs-actions.pod:8666
35211 #, no-wrap
35212 msgid ""
35213 " char *\n"
35214 " guestfs_zfile (guestfs_h *g,\n"
35215 "                const char *meth,\n"
35216 "                const char *path);\n"
35217 "\n"
35218 msgstr ""
35219
35220 #. type: textblock
35221 #: ../src/guestfs-actions.pod:8671
35222 msgid ""
35223 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
35224 "instead."
35225 msgstr ""
35226
35227 #. type: textblock
35228 #: ../src/guestfs-actions.pod:8683
35229 msgid ""
35230 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
35231 "files."
35232 msgstr ""
35233
35234 #. type: =head2
35235 #: ../src/guestfs-actions.pod:8691
35236 msgid "guestfs_zgrep"
35237 msgstr ""
35238
35239 #. type: verbatim
35240 #: ../src/guestfs-actions.pod:8693
35241 #, no-wrap
35242 msgid ""
35243 " char **\n"
35244 " guestfs_zgrep (guestfs_h *g,\n"
35245 "                const char *regex,\n"
35246 "                const char *path);\n"
35247 "\n"
35248 msgstr ""
35249
35250 #. type: =head2
35251 #: ../src/guestfs-actions.pod:8710
35252 msgid "guestfs_zgrepi"
35253 msgstr ""
35254
35255 #. type: verbatim
35256 #: ../src/guestfs-actions.pod:8712
35257 #, no-wrap
35258 msgid ""
35259 " char **\n"
35260 " guestfs_zgrepi (guestfs_h *g,\n"
35261 "                 const char *regex,\n"
35262 "                 const char *path);\n"
35263 "\n"
35264 msgstr ""
35265
35266 #. type: =item
35267 #: ../src/guestfs-availability.pod:3
35268 msgid "B<augeas>"
35269 msgstr ""
35270
35271 #. type: textblock
35272 #: ../src/guestfs-availability.pod:5
35273 msgid ""
35274 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
35275 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
35276 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
35277 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
35278 "L</guestfs_aug_save> L</guestfs_aug_set>"
35279 msgstr ""
35280
35281 #. type: =item
35282 #: ../src/guestfs-availability.pod:21
35283 msgid "B<btrfs>"
35284 msgstr ""
35285
35286 #. type: textblock
35287 #: ../src/guestfs-availability.pod:23
35288 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
35289 msgstr ""
35290
35291 #. type: =item
35292 #: ../src/guestfs-availability.pod:26
35293 msgid "B<grub>"
35294 msgstr ""
35295
35296 #. type: textblock
35297 #: ../src/guestfs-availability.pod:28
35298 msgid "The following functions: L</guestfs_grub_install>"
35299 msgstr ""
35300
35301 #. type: =item
35302 #: ../src/guestfs-availability.pod:31
35303 msgid "B<inotify>"
35304 msgstr ""
35305
35306 #. type: textblock
35307 #: ../src/guestfs-availability.pod:33
35308 msgid ""
35309 "The following functions: L</guestfs_inotify_add_watch> L</"
35310 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
35311 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
35312 msgstr ""
35313
35314 #. type: =item
35315 #: ../src/guestfs-availability.pod:41
35316 msgid "B<linuxfsuuid>"
35317 msgstr ""
35318
35319 #. type: textblock
35320 #: ../src/guestfs-availability.pod:43
35321 msgid ""
35322 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
35323 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
35324 msgstr ""
35325
35326 #. type: =item
35327 #: ../src/guestfs-availability.pod:50
35328 msgid "B<linuxmodules>"
35329 msgstr ""
35330
35331 #. type: textblock
35332 #: ../src/guestfs-availability.pod:52
35333 msgid "The following functions: L</guestfs_modprobe>"
35334 msgstr ""
35335
35336 #. type: =item
35337 #: ../src/guestfs-availability.pod:55
35338 msgid "B<linuxxattrs>"
35339 msgstr ""
35340
35341 #. type: textblock
35342 #: ../src/guestfs-availability.pod:57
35343 msgid ""
35344 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
35345 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
35346 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
35347 "guestfs_setxattr>"
35348 msgstr ""
35349
35350 #. type: =item
35351 #: ../src/guestfs-availability.pod:68
35352 msgid "B<luks>"
35353 msgstr ""
35354
35355 #. type: textblock
35356 #: ../src/guestfs-availability.pod:70
35357 msgid ""
35358 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
35359 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
35360 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
35361 msgstr ""
35362
35363 #. type: =item
35364 #: ../src/guestfs-availability.pod:79
35365 msgid "B<lvm2>"
35366 msgstr ""
35367
35368 #. type: textblock
35369 #: ../src/guestfs-availability.pod:81
35370 msgid ""
35371 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
35372 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
35373 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
35374 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
35375 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
35376 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
35377 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
35378 msgstr ""
35379
35380 #. type: =item
35381 #: ../src/guestfs-availability.pod:104
35382 msgid "B<mdadm>"
35383 msgstr ""
35384
35385 #. type: textblock
35386 #: ../src/guestfs-availability.pod:106
35387 msgid ""
35388 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> L</"
35389 "guestfs_md_stop>"
35390 msgstr ""
35391
35392 #. type: =item
35393 #: ../src/guestfs-availability.pod:111
35394 msgid "B<mknod>"
35395 msgstr ""
35396
35397 #. type: textblock
35398 #: ../src/guestfs-availability.pod:113
35399 msgid ""
35400 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
35401 "guestfs_mknod_b> L</guestfs_mknod_c>"
35402 msgstr ""
35403
35404 #. type: =item
35405 #: ../src/guestfs-availability.pod:119
35406 msgid "B<ntfs3g>"
35407 msgstr ""
35408
35409 #. type: textblock
35410 #: ../src/guestfs-availability.pod:121
35411 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
35412 msgstr ""
35413
35414 #. type: =item
35415 #: ../src/guestfs-availability.pod:124
35416 msgid "B<ntfsprogs>"
35417 msgstr ""
35418
35419 #. type: textblock
35420 #: ../src/guestfs-availability.pod:126
35421 msgid ""
35422 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
35423 "L</guestfs_ntfsresize_size>"
35424 msgstr ""
35425
35426 #. type: =item
35427 #: ../src/guestfs-availability.pod:131
35428 msgid "B<realpath>"
35429 msgstr ""
35430
35431 #. type: textblock
35432 #: ../src/guestfs-availability.pod:133
35433 msgid "The following functions: L</guestfs_realpath>"
35434 msgstr ""
35435
35436 #. type: =item
35437 #: ../src/guestfs-availability.pod:136
35438 msgid "B<scrub>"
35439 msgstr ""
35440
35441 #. type: textblock
35442 #: ../src/guestfs-availability.pod:138
35443 msgid ""
35444 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
35445 "guestfs_scrub_freespace>"
35446 msgstr ""
35447
35448 #. type: =item
35449 #: ../src/guestfs-availability.pod:143
35450 msgid "B<selinux>"
35451 msgstr ""
35452
35453 #. type: textblock
35454 #: ../src/guestfs-availability.pod:145
35455 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
35456 msgstr ""
35457
35458 #. type: =item
35459 #: ../src/guestfs-availability.pod:149
35460 msgid "B<xz>"
35461 msgstr ""
35462
35463 #. type: textblock
35464 #: ../src/guestfs-availability.pod:151
35465 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
35466 msgstr ""
35467
35468 #. type: =item
35469 #: ../src/guestfs-availability.pod:155
35470 msgid "B<zerofree>"
35471 msgstr ""
35472
35473 #. type: textblock
35474 #: ../src/guestfs-availability.pod:157
35475 msgid "The following functions: L</guestfs_zerofree>"
35476 msgstr ""
35477
35478 #. type: =head2
35479 #: ../src/guestfs-structs.pod:1
35480 msgid "guestfs_int_bool"
35481 msgstr ""
35482
35483 #. type: verbatim
35484 #: ../src/guestfs-structs.pod:3
35485 #, no-wrap
35486 msgid ""
35487 " struct guestfs_int_bool {\n"
35488 "   int32_t i;\n"
35489 "   int32_t b;\n"
35490 " };\n"
35491 " \n"
35492 msgstr ""
35493
35494 #. type: verbatim
35495 #: ../src/guestfs-structs.pod:8
35496 #, no-wrap
35497 msgid ""
35498 " struct guestfs_int_bool_list {\n"
35499 "   uint32_t len; /* Number of elements in list. */\n"
35500 "   struct guestfs_int_bool *val; /* Elements. */\n"
35501 " };\n"
35502 " \n"
35503 msgstr ""
35504
35505 #. type: verbatim
35506 #: ../src/guestfs-structs.pod:13
35507 #, no-wrap
35508 msgid ""
35509 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
35510 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
35511 "\n"
35512 msgstr ""
35513
35514 #. type: =head2
35515 #: ../src/guestfs-structs.pod:16
35516 msgid "guestfs_lvm_pv"
35517 msgstr ""
35518
35519 #. type: verbatim
35520 #: ../src/guestfs-structs.pod:18
35521 #, no-wrap
35522 msgid ""
35523 " struct guestfs_lvm_pv {\n"
35524 "   char *pv_name;\n"
35525 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35526 "   char pv_uuid[32];\n"
35527 "   char *pv_fmt;\n"
35528 "   uint64_t pv_size;\n"
35529 "   uint64_t dev_size;\n"
35530 "   uint64_t pv_free;\n"
35531 "   uint64_t pv_used;\n"
35532 "   char *pv_attr;\n"
35533 "   int64_t pv_pe_count;\n"
35534 "   int64_t pv_pe_alloc_count;\n"
35535 "   char *pv_tags;\n"
35536 "   uint64_t pe_start;\n"
35537 "   int64_t pv_mda_count;\n"
35538 "   uint64_t pv_mda_free;\n"
35539 " };\n"
35540 " \n"
35541 msgstr ""
35542
35543 #. type: verbatim
35544 #: ../src/guestfs-structs.pod:36
35545 #, no-wrap
35546 msgid ""
35547 " struct guestfs_lvm_pv_list {\n"
35548 "   uint32_t len; /* Number of elements in list. */\n"
35549 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
35550 " };\n"
35551 " \n"
35552 msgstr ""
35553
35554 #. type: verbatim
35555 #: ../src/guestfs-structs.pod:41
35556 #, no-wrap
35557 msgid ""
35558 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
35559 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
35560 "\n"
35561 msgstr ""
35562
35563 #. type: =head2
35564 #: ../src/guestfs-structs.pod:44
35565 msgid "guestfs_lvm_vg"
35566 msgstr ""
35567
35568 #. type: verbatim
35569 #: ../src/guestfs-structs.pod:46
35570 #, no-wrap
35571 msgid ""
35572 " struct guestfs_lvm_vg {\n"
35573 "   char *vg_name;\n"
35574 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35575 "   char vg_uuid[32];\n"
35576 "   char *vg_fmt;\n"
35577 "   char *vg_attr;\n"
35578 "   uint64_t vg_size;\n"
35579 "   uint64_t vg_free;\n"
35580 "   char *vg_sysid;\n"
35581 "   uint64_t vg_extent_size;\n"
35582 "   int64_t vg_extent_count;\n"
35583 "   int64_t vg_free_count;\n"
35584 "   int64_t max_lv;\n"
35585 "   int64_t max_pv;\n"
35586 "   int64_t pv_count;\n"
35587 "   int64_t lv_count;\n"
35588 "   int64_t snap_count;\n"
35589 "   int64_t vg_seqno;\n"
35590 "   char *vg_tags;\n"
35591 "   int64_t vg_mda_count;\n"
35592 "   uint64_t vg_mda_free;\n"
35593 " };\n"
35594 " \n"
35595 msgstr ""
35596
35597 #. type: verbatim
35598 #: ../src/guestfs-structs.pod:69
35599 #, no-wrap
35600 msgid ""
35601 " struct guestfs_lvm_vg_list {\n"
35602 "   uint32_t len; /* Number of elements in list. */\n"
35603 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
35604 " };\n"
35605 " \n"
35606 msgstr ""
35607
35608 #. type: verbatim
35609 #: ../src/guestfs-structs.pod:74
35610 #, no-wrap
35611 msgid ""
35612 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35613 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35614 "\n"
35615 msgstr ""
35616
35617 #. type: =head2
35618 #: ../src/guestfs-structs.pod:77
35619 msgid "guestfs_lvm_lv"
35620 msgstr ""
35621
35622 #. type: verbatim
35623 #: ../src/guestfs-structs.pod:79
35624 #, no-wrap
35625 msgid ""
35626 " struct guestfs_lvm_lv {\n"
35627 "   char *lv_name;\n"
35628 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35629 "   char lv_uuid[32];\n"
35630 "   char *lv_attr;\n"
35631 "   int64_t lv_major;\n"
35632 "   int64_t lv_minor;\n"
35633 "   int64_t lv_kernel_major;\n"
35634 "   int64_t lv_kernel_minor;\n"
35635 "   uint64_t lv_size;\n"
35636 "   int64_t seg_count;\n"
35637 "   char *origin;\n"
35638 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35639 "   float snap_percent;\n"
35640 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35641 "   float copy_percent;\n"
35642 "   char *move_pv;\n"
35643 "   char *lv_tags;\n"
35644 "   char *mirror_log;\n"
35645 "   char *modules;\n"
35646 " };\n"
35647 " \n"
35648 msgstr ""
35649
35650 #. type: verbatim
35651 #: ../src/guestfs-structs.pod:101
35652 #, no-wrap
35653 msgid ""
35654 " struct guestfs_lvm_lv_list {\n"
35655 "   uint32_t len; /* Number of elements in list. */\n"
35656 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
35657 " };\n"
35658 " \n"
35659 msgstr ""
35660
35661 #. type: verbatim
35662 #: ../src/guestfs-structs.pod:106
35663 #, no-wrap
35664 msgid ""
35665 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35666 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35667 "\n"
35668 msgstr ""
35669
35670 #. type: verbatim
35671 #: ../src/guestfs-structs.pod:111
35672 #, no-wrap
35673 msgid ""
35674 " struct guestfs_stat {\n"
35675 "   int64_t dev;\n"
35676 "   int64_t ino;\n"
35677 "   int64_t mode;\n"
35678 "   int64_t nlink;\n"
35679 "   int64_t uid;\n"
35680 "   int64_t gid;\n"
35681 "   int64_t rdev;\n"
35682 "   int64_t size;\n"
35683 "   int64_t blksize;\n"
35684 "   int64_t blocks;\n"
35685 "   int64_t atime;\n"
35686 "   int64_t mtime;\n"
35687 "   int64_t ctime;\n"
35688 " };\n"
35689 " \n"
35690 msgstr ""
35691
35692 #. type: verbatim
35693 #: ../src/guestfs-structs.pod:127
35694 #, no-wrap
35695 msgid ""
35696 " struct guestfs_stat_list {\n"
35697 "   uint32_t len; /* Number of elements in list. */\n"
35698 "   struct guestfs_stat *val; /* Elements. */\n"
35699 " };\n"
35700 " \n"
35701 msgstr ""
35702
35703 #. type: verbatim
35704 #: ../src/guestfs-structs.pod:132
35705 #, no-wrap
35706 msgid ""
35707 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35708 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35709 "\n"
35710 msgstr ""
35711
35712 #. type: verbatim
35713 #: ../src/guestfs-structs.pod:137
35714 #, no-wrap
35715 msgid ""
35716 " struct guestfs_statvfs {\n"
35717 "   int64_t bsize;\n"
35718 "   int64_t frsize;\n"
35719 "   int64_t blocks;\n"
35720 "   int64_t bfree;\n"
35721 "   int64_t bavail;\n"
35722 "   int64_t files;\n"
35723 "   int64_t ffree;\n"
35724 "   int64_t favail;\n"
35725 "   int64_t fsid;\n"
35726 "   int64_t flag;\n"
35727 "   int64_t namemax;\n"
35728 " };\n"
35729 " \n"
35730 msgstr ""
35731
35732 #. type: verbatim
35733 #: ../src/guestfs-structs.pod:151
35734 #, no-wrap
35735 msgid ""
35736 " struct guestfs_statvfs_list {\n"
35737 "   uint32_t len; /* Number of elements in list. */\n"
35738 "   struct guestfs_statvfs *val; /* Elements. */\n"
35739 " };\n"
35740 " \n"
35741 msgstr ""
35742
35743 #. type: verbatim
35744 #: ../src/guestfs-structs.pod:156
35745 #, no-wrap
35746 msgid ""
35747 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35748 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35749 "\n"
35750 msgstr ""
35751
35752 #. type: =head2
35753 #: ../src/guestfs-structs.pod:159
35754 msgid "guestfs_dirent"
35755 msgstr ""
35756
35757 #. type: verbatim
35758 #: ../src/guestfs-structs.pod:161
35759 #, no-wrap
35760 msgid ""
35761 " struct guestfs_dirent {\n"
35762 "   int64_t ino;\n"
35763 "   char ftyp;\n"
35764 "   char *name;\n"
35765 " };\n"
35766 " \n"
35767 msgstr ""
35768
35769 #. type: verbatim
35770 #: ../src/guestfs-structs.pod:167
35771 #, no-wrap
35772 msgid ""
35773 " struct guestfs_dirent_list {\n"
35774 "   uint32_t len; /* Number of elements in list. */\n"
35775 "   struct guestfs_dirent *val; /* Elements. */\n"
35776 " };\n"
35777 " \n"
35778 msgstr ""
35779
35780 #. type: verbatim
35781 #: ../src/guestfs-structs.pod:172
35782 #, no-wrap
35783 msgid ""
35784 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35785 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35786 "\n"
35787 msgstr ""
35788
35789 #. type: verbatim
35790 #: ../src/guestfs-structs.pod:177
35791 #, no-wrap
35792 msgid ""
35793 " struct guestfs_version {\n"
35794 "   int64_t major;\n"
35795 "   int64_t minor;\n"
35796 "   int64_t release;\n"
35797 "   char *extra;\n"
35798 " };\n"
35799 " \n"
35800 msgstr ""
35801
35802 #. type: verbatim
35803 #: ../src/guestfs-structs.pod:184
35804 #, no-wrap
35805 msgid ""
35806 " struct guestfs_version_list {\n"
35807 "   uint32_t len; /* Number of elements in list. */\n"
35808 "   struct guestfs_version *val; /* Elements. */\n"
35809 " };\n"
35810 " \n"
35811 msgstr ""
35812
35813 #. type: verbatim
35814 #: ../src/guestfs-structs.pod:189
35815 #, no-wrap
35816 msgid ""
35817 " void guestfs_free_version (struct guestfs_free_version *);\n"
35818 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35819 "\n"
35820 msgstr ""
35821
35822 #. type: =head2
35823 #: ../src/guestfs-structs.pod:192
35824 msgid "guestfs_xattr"
35825 msgstr ""
35826
35827 #. type: verbatim
35828 #: ../src/guestfs-structs.pod:194
35829 #, no-wrap
35830 msgid ""
35831 " struct guestfs_xattr {\n"
35832 "   char *attrname;\n"
35833 "   /* The next two fields describe a byte array. */\n"
35834 "   uint32_t attrval_len;\n"
35835 "   char *attrval;\n"
35836 " };\n"
35837 " \n"
35838 msgstr ""
35839
35840 #. type: verbatim
35841 #: ../src/guestfs-structs.pod:201
35842 #, no-wrap
35843 msgid ""
35844 " struct guestfs_xattr_list {\n"
35845 "   uint32_t len; /* Number of elements in list. */\n"
35846 "   struct guestfs_xattr *val; /* Elements. */\n"
35847 " };\n"
35848 " \n"
35849 msgstr ""
35850
35851 #. type: verbatim
35852 #: ../src/guestfs-structs.pod:206
35853 #, no-wrap
35854 msgid ""
35855 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35856 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35857 "\n"
35858 msgstr ""
35859
35860 #. type: =head2
35861 #: ../src/guestfs-structs.pod:209
35862 msgid "guestfs_inotify_event"
35863 msgstr ""
35864
35865 #. type: verbatim
35866 #: ../src/guestfs-structs.pod:211
35867 #, no-wrap
35868 msgid ""
35869 " struct guestfs_inotify_event {\n"
35870 "   int64_t in_wd;\n"
35871 "   uint32_t in_mask;\n"
35872 "   uint32_t in_cookie;\n"
35873 "   char *in_name;\n"
35874 " };\n"
35875 " \n"
35876 msgstr ""
35877
35878 #. type: verbatim
35879 #: ../src/guestfs-structs.pod:218
35880 #, no-wrap
35881 msgid ""
35882 " struct guestfs_inotify_event_list {\n"
35883 "   uint32_t len; /* Number of elements in list. */\n"
35884 "   struct guestfs_inotify_event *val; /* Elements. */\n"
35885 " };\n"
35886 " \n"
35887 msgstr ""
35888
35889 #. type: verbatim
35890 #: ../src/guestfs-structs.pod:223
35891 #, no-wrap
35892 msgid ""
35893 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35894 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35895 "\n"
35896 msgstr ""
35897
35898 #. type: =head2
35899 #: ../src/guestfs-structs.pod:226
35900 msgid "guestfs_partition"
35901 msgstr ""
35902
35903 #. type: verbatim
35904 #: ../src/guestfs-structs.pod:228
35905 #, no-wrap
35906 msgid ""
35907 " struct guestfs_partition {\n"
35908 "   int32_t part_num;\n"
35909 "   uint64_t part_start;\n"
35910 "   uint64_t part_end;\n"
35911 "   uint64_t part_size;\n"
35912 " };\n"
35913 " \n"
35914 msgstr ""
35915
35916 #. type: verbatim
35917 #: ../src/guestfs-structs.pod:235
35918 #, no-wrap
35919 msgid ""
35920 " struct guestfs_partition_list {\n"
35921 "   uint32_t len; /* Number of elements in list. */\n"
35922 "   struct guestfs_partition *val; /* Elements. */\n"
35923 " };\n"
35924 " \n"
35925 msgstr ""
35926
35927 #. type: verbatim
35928 #: ../src/guestfs-structs.pod:240
35929 #, no-wrap
35930 msgid ""
35931 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35932 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35933 "\n"
35934 msgstr ""
35935
35936 #. type: =head2
35937 #: ../src/guestfs-structs.pod:243
35938 msgid "guestfs_application"
35939 msgstr ""
35940
35941 #. type: verbatim
35942 #: ../src/guestfs-structs.pod:245
35943 #, no-wrap
35944 msgid ""
35945 " struct guestfs_application {\n"
35946 "   char *app_name;\n"
35947 "   char *app_display_name;\n"
35948 "   int32_t app_epoch;\n"
35949 "   char *app_version;\n"
35950 "   char *app_release;\n"
35951 "   char *app_install_path;\n"
35952 "   char *app_trans_path;\n"
35953 "   char *app_publisher;\n"
35954 "   char *app_url;\n"
35955 "   char *app_source_package;\n"
35956 "   char *app_summary;\n"
35957 "   char *app_description;\n"
35958 " };\n"
35959 " \n"
35960 msgstr ""
35961
35962 #. type: verbatim
35963 #: ../src/guestfs-structs.pod:260
35964 #, no-wrap
35965 msgid ""
35966 " struct guestfs_application_list {\n"
35967 "   uint32_t len; /* Number of elements in list. */\n"
35968 "   struct guestfs_application *val; /* Elements. */\n"
35969 " };\n"
35970 " \n"
35971 msgstr ""
35972
35973 #. type: verbatim
35974 #: ../src/guestfs-structs.pod:265
35975 #, no-wrap
35976 msgid ""
35977 " void guestfs_free_application (struct guestfs_free_application *);\n"
35978 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35979 "\n"
35980 msgstr ""
35981
35982 #. type: textblock
35983 #: ../src/guestfs.pod:5
35984 msgid "guestfs - Library for accessing and modifying virtual machine images"
35985 msgstr ""
35986
35987 #. type: verbatim
35988 #: ../src/guestfs.pod:11
35989 #, no-wrap
35990 msgid ""
35991 " guestfs_h *g = guestfs_create ();\n"
35992 " guestfs_add_drive (g, \"guest.img\");\n"
35993 " guestfs_launch (g);\n"
35994 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35995 " guestfs_touch (g, \"/hello\");\n"
35996 " guestfs_umount (g, \"/\");\n"
35997 " guestfs_close (g);\n"
35998 "\n"
35999 msgstr ""
36000 " guestfs_h *g = guestfs_create ();\n"
36001 " guestfs_add_drive (g, \"guest.img\");\n"
36002 " guestfs_launch (g);\n"
36003 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36004 " guestfs_touch (g, \"/hello\");\n"
36005 " guestfs_umount (g, \"/\");\n"
36006 " guestfs_close (g);\n"
36007 "\n"
36008
36009 #. type: textblock
36010 #: ../src/guestfs.pod:25
36011 msgid ""
36012 "Libguestfs is a library for accessing and modifying guest disk images.  "
36013 "Amongst the things this is good for: making batch configuration changes to "
36014 "guests, getting disk used/free statistics (see also: virt-df), migrating "
36015 "between virtualization systems (see also: virt-p2v), performing partial "
36016 "backups, performing partial guest clones, cloning guests and changing "
36017 "registry/UUID/hostname info, and much else besides."
36018 msgstr ""
36019
36020 #. type: textblock
36021 #: ../src/guestfs.pod:33
36022 msgid ""
36023 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
36024 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
36025 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
36026 "qcow2, vmdk."
36027 msgstr ""
36028
36029 #. type: textblock
36030 #: ../src/guestfs.pod:38
36031 msgid ""
36032 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
36033 "what filesystem is in each LV, etc.).  It can also run commands in the "
36034 "context of the guest.  Also you can access filesystems over FUSE."
36035 msgstr ""
36036
36037 #. type: textblock
36038 #: ../src/guestfs.pod:43
36039 msgid ""
36040 "Libguestfs is a library that can be linked with C and C++ management "
36041 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
36042 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
36043 "command line."
36044 msgstr ""
36045
36046 #. type: textblock
36047 #: ../src/guestfs.pod:48
36048 msgid ""
36049 "You don't need to be root to use libguestfs, although obviously you do need "
36050 "enough permissions to access the disk images."
36051 msgstr ""
36052
36053 #. type: textblock
36054 #: ../src/guestfs.pod:51
36055 msgid ""
36056 "Libguestfs is a large API because it can do many things.  For a gentle "
36057 "introduction, please read the L</API OVERVIEW> section next."
36058 msgstr ""
36059
36060 #. type: textblock
36061 #: ../src/guestfs.pod:54
36062 msgid ""
36063 "There are also some example programs in the L<guestfs-examples(3)> manual "
36064 "page."
36065 msgstr ""
36066
36067 #. type: =head1
36068 #: ../src/guestfs.pod:57
36069 msgid "API OVERVIEW"
36070 msgstr ""
36071
36072 #. type: textblock
36073 #: ../src/guestfs.pod:59
36074 msgid ""
36075 "This section provides a gentler overview of the libguestfs API.  We also try "
36076 "to group API calls together, where that may not be obvious from reading "
36077 "about the individual calls in the main section of this manual."
36078 msgstr ""
36079
36080 #. type: =head2
36081 #: ../src/guestfs.pod:64
36082 msgid "HANDLES"
36083 msgstr ""
36084
36085 #. type: textblock
36086 #: ../src/guestfs.pod:66
36087 msgid ""
36088 "Before you can use libguestfs calls, you have to create a handle.  Then you "
36089 "must add at least one disk image to the handle, followed by launching the "
36090 "handle, then performing whatever operations you want, and finally closing "
36091 "the handle.  By convention we use the single letter C<g> for the name of the "
36092 "handle variable, although of course you can use any name you want."
36093 msgstr ""
36094
36095 #. type: textblock
36096 #: ../src/guestfs.pod:73
36097 msgid "The general structure of all libguestfs-using programs looks like this:"
36098 msgstr ""
36099
36100 #. type: verbatim
36101 #: ../src/guestfs.pod:76
36102 #, no-wrap
36103 msgid ""
36104 " guestfs_h *g = guestfs_create ();\n"
36105 " \n"
36106 msgstr ""
36107
36108 #. type: verbatim
36109 #: ../src/guestfs.pod:78
36110 #, no-wrap
36111 msgid ""
36112 " /* Call guestfs_add_drive additional times if there are\n"
36113 "  * multiple disk images.\n"
36114 "  */\n"
36115 " guestfs_add_drive (g, \"guest.img\");\n"
36116 " \n"
36117 msgstr ""
36118
36119 #. type: verbatim
36120 #: ../src/guestfs.pod:83
36121 #, no-wrap
36122 msgid ""
36123 " /* Most manipulation calls won't work until you've launched\n"
36124 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
36125 "  * and _before_ other commands.\n"
36126 "  */\n"
36127 " guestfs_launch (g);\n"
36128 " \n"
36129 msgstr ""
36130
36131 #. type: verbatim
36132 #: ../src/guestfs.pod:89
36133 #, no-wrap
36134 msgid ""
36135 " /* Now you can examine what partitions, LVs etc are available.\n"
36136 "  */\n"
36137 " char **partitions = guestfs_list_partitions (g);\n"
36138 " char **logvols = guestfs_lvs (g);\n"
36139 " \n"
36140 msgstr ""
36141
36142 #. type: verbatim
36143 #: ../src/guestfs.pod:94
36144 #, no-wrap
36145 msgid ""
36146 " /* To access a filesystem in the image, you must mount it.\n"
36147 "  */\n"
36148 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36149 " \n"
36150 msgstr ""
36151
36152 #. type: verbatim
36153 #: ../src/guestfs.pod:98
36154 #, no-wrap
36155 msgid ""
36156 " /* Now you can perform filesystem actions on the guest\n"
36157 "  * disk image.\n"
36158 "  */\n"
36159 " guestfs_touch (g, \"/hello\");\n"
36160 " \n"
36161 msgstr ""
36162
36163 #. type: verbatim
36164 #: ../src/guestfs.pod:103
36165 #, no-wrap
36166 msgid ""
36167 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
36168 "  * it is done automatically when you close the handle.  See\n"
36169 "  * discussion of autosync in this page.\n"
36170 "  */\n"
36171 " guestfs_sync (g);\n"
36172 " \n"
36173 msgstr ""
36174
36175 #. type: verbatim
36176 #: ../src/guestfs.pod:109
36177 #, no-wrap
36178 msgid ""
36179 " /* Close the handle 'g'. */\n"
36180 " guestfs_close (g);\n"
36181 "\n"
36182 msgstr ""
36183
36184 #. type: textblock
36185 #: ../src/guestfs.pod:112
36186 msgid ""
36187 "The code above doesn't include any error checking.  In real code you should "
36188 "check return values carefully for errors.  In general all functions that "
36189 "return integers return C<-1> on error, and all functions that return "
36190 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
36191 "how to handle errors, and consult the documentation for each function call "
36192 "below to see precisely how they return error indications.  See L<guestfs-"
36193 "examples(3)> for fully worked examples."
36194 msgstr ""
36195
36196 #. type: =head2
36197 #: ../src/guestfs.pod:121
36198 msgid "DISK IMAGES"
36199 msgstr ""
36200
36201 #. type: textblock
36202 #: ../src/guestfs.pod:123
36203 msgid ""
36204 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
36205 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
36206 "actual block device, or simply an empty file of zeroes that you have created "
36207 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
36208 "of these."
36209 msgstr ""
36210
36211 #. type: textblock
36212 #: ../src/guestfs.pod:129
36213 msgid ""
36214 "The call you should use in modern code for adding drives is L</"
36215 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
36216 "specifying that the format is raw, do:"
36217 msgstr ""
36218
36219 #. type: verbatim
36220 #: ../src/guestfs.pod:133
36221 #, no-wrap
36222 msgid ""
36223 " guestfs_add_drive_opts (g, filename,\n"
36224 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36225 "                         -1);\n"
36226 "\n"
36227 msgstr ""
36228
36229 #. type: textblock
36230 #: ../src/guestfs.pod:137
36231 msgid "You can add a disk read-only using:"
36232 msgstr ""
36233
36234 #. type: verbatim
36235 #: ../src/guestfs.pod:139
36236 #, no-wrap
36237 msgid ""
36238 " guestfs_add_drive_opts (g, filename,\n"
36239 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36240 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36241 "                         -1);\n"
36242 "\n"
36243 msgstr ""
36244
36245 #. type: textblock
36246 #: ../src/guestfs.pod:144
36247 msgid ""
36248 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
36249 "libguestfs won't modify the file."
36250 msgstr ""
36251
36252 #. type: textblock
36253 #: ../src/guestfs.pod:147
36254 msgid ""
36255 "Be extremely cautious if the disk image is in use, eg. if it is being used "
36256 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
36257 "corruption, but adding it read-only is safe."
36258 msgstr ""
36259
36260 #. type: textblock
36261 #: ../src/guestfs.pod:151
36262 msgid ""
36263 "You must add at least one disk image, and you may add multiple disk images.  "
36264 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
36265 "first one you added), C</dev/sdb> (for the second one you added), etc."
36266 msgstr ""
36267
36268 #. type: textblock
36269 #: ../src/guestfs.pod:156
36270 msgid ""
36271 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
36272 "can call L</guestfs_list_devices> to get a list of the device names, in the "
36273 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
36274 msgstr ""
36275
36276 #. type: =head2
36277 #: ../src/guestfs.pod:161
36278 msgid "MOUNTING"
36279 msgstr ""
36280
36281 #. type: textblock
36282 #: ../src/guestfs.pod:163
36283 msgid ""
36284 "Before you can read or write files, create directories and so on in a disk "
36285 "image that contains filesystems, you have to mount those filesystems using "
36286 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
36287 "a disk image contains (for example) one partition with a filesystem on that "
36288 "partition, then you can mount it directly:"
36289 msgstr ""
36290
36291 #. type: verbatim
36292 #: ../src/guestfs.pod:170
36293 #, no-wrap
36294 msgid ""
36295 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36296 "\n"
36297 msgstr ""
36298
36299 #. type: textblock
36300 #: ../src/guestfs.pod:172
36301 msgid ""
36302 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
36303 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
36304 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
36305 "that these are libguestfs virtual devices, and are nothing to do with host "
36306 "devices."
36307 msgstr ""
36308
36309 #. type: textblock
36310 #: ../src/guestfs.pod:178
36311 msgid ""
36312 "If you are given a disk image and you don't know what it contains then you "
36313 "have to find out.  Libguestfs can do that too: use L</"
36314 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
36315 "LVs, and either try mounting each to see what is mountable, or else examine "
36316 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
36317 "filesystems, use L</guestfs_list_filesystems>."
36318 msgstr ""
36319
36320 #. type: textblock
36321 #: ../src/guestfs.pod:186
36322 msgid ""
36323 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
36324 "L</INSPECTION> below).  But you might find it easier to look at higher level "
36325 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
36326 msgstr ""
36327
36328 #. type: textblock
36329 #: ../src/guestfs.pod:191
36330 msgid ""
36331 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
36332 "several other variations of the C<guestfs_mount_*> call."
36333 msgstr ""
36334
36335 #. type: =head2
36336 #: ../src/guestfs.pod:194
36337 msgid "FILESYSTEM ACCESS AND MODIFICATION"
36338 msgstr ""
36339
36340 #. type: textblock
36341 #: ../src/guestfs.pod:196
36342 msgid ""
36343 "The majority of the libguestfs API consists of fairly low-level calls for "
36344 "accessing and modifying the files, directories, symlinks etc on mounted "
36345 "filesystems.  There are over a hundred such calls which you can find listed "
36346 "in detail below in this man page, and we don't even pretend to cover them "
36347 "all in this overview."
36348 msgstr ""
36349
36350 #. type: textblock
36351 #: ../src/guestfs.pod:202
36352 msgid ""
36353 "Specify filenames as full paths, starting with C<\"/\"> and including the "
36354 "mount point."
36355 msgstr ""
36356
36357 #. type: textblock
36358 #: ../src/guestfs.pod:205
36359 msgid ""
36360 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
36361 "the file called C<\"etc/passwd\"> then you could do:"
36362 msgstr ""
36363
36364 #. type: verbatim
36365 #: ../src/guestfs.pod:208
36366 #, no-wrap
36367 msgid ""
36368 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36369 "\n"
36370 msgstr ""
36371
36372 #. type: textblock
36373 #: ../src/guestfs.pod:210
36374 msgid ""
36375 "This would return C<data> as a newly allocated buffer containing the full "
36376 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
36377 "or C<NULL> if there was an error."
36378 msgstr ""
36379
36380 #. type: textblock
36381 #: ../src/guestfs.pod:214
36382 msgid ""
36383 "As another example, to create a top-level directory on that filesystem "
36384 "called C<\"var\"> you would do:"
36385 msgstr ""
36386
36387 #. type: verbatim
36388 #: ../src/guestfs.pod:217
36389 #, no-wrap
36390 msgid ""
36391 " guestfs_mkdir (g, \"/var\");\n"
36392 "\n"
36393 msgstr ""
36394
36395 #. type: textblock
36396 #: ../src/guestfs.pod:219
36397 msgid "To create a symlink you could do:"
36398 msgstr ""
36399
36400 #. type: verbatim
36401 #: ../src/guestfs.pod:221
36402 #, no-wrap
36403 msgid ""
36404 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36405 "               \"/etc/rc3.d/S30portmap\");\n"
36406 "\n"
36407 msgstr ""
36408
36409 #. type: textblock
36410 #: ../src/guestfs.pod:224
36411 msgid ""
36412 "Libguestfs will reject attempts to use relative paths and there is no "
36413 "concept of a current working directory."
36414 msgstr ""
36415
36416 #. type: textblock
36417 #: ../src/guestfs.pod:227
36418 msgid ""
36419 "Libguestfs can return errors in many situations: for example if the "
36420 "filesystem isn't writable, or if a file or directory that you requested "
36421 "doesn't exist.  If you are using the C API (documented here)  you have to "
36422 "check for those error conditions after each call.  (Other language bindings "
36423 "turn these errors into exceptions)."
36424 msgstr ""
36425
36426 #. type: textblock
36427 #: ../src/guestfs.pod:233
36428 msgid ""
36429 "File writes are affected by the per-handle umask, set by calling L</"
36430 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
36431 msgstr ""
36432
36433 #. type: =head2
36434 #: ../src/guestfs.pod:236
36435 msgid "PARTITIONING"
36436 msgstr ""
36437
36438 #. type: textblock
36439 #: ../src/guestfs.pod:238
36440 msgid ""
36441 "Libguestfs contains API calls to read, create and modify partition tables on "
36442 "disk images."
36443 msgstr ""
36444
36445 #. type: textblock
36446 #: ../src/guestfs.pod:241
36447 msgid ""
36448 "In the common case where you want to create a single partition covering the "
36449 "whole disk, you should use the L</guestfs_part_disk> call:"
36450 msgstr ""
36451
36452 #. type: verbatim
36453 #: ../src/guestfs.pod:245
36454 #, no-wrap
36455 msgid ""
36456 " const char *parttype = \"mbr\";\n"
36457 " if (disk_is_larger_than_2TB)\n"
36458 "   parttype = \"gpt\";\n"
36459 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36460 "\n"
36461 msgstr ""
36462
36463 #. type: textblock
36464 #: ../src/guestfs.pod:250
36465 msgid ""
36466 "Obviously this effectively wipes anything that was on that disk image before."
36467 msgstr ""
36468
36469 #. type: =head2
36470 #: ../src/guestfs.pod:253
36471 msgid "LVM2"
36472 msgstr ""
36473
36474 #. type: textblock
36475 #: ../src/guestfs.pod:255
36476 msgid ""
36477 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
36478 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
36479 "you familiarize yourself with the concepts of physical volumes, volume "
36480 "groups and logical volumes."
36481 msgstr ""
36482
36483 #. type: textblock
36484 #: ../src/guestfs.pod:260
36485 msgid ""
36486 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
36487 "tldp.org/HOWTO/LVM-HOWTO/>."
36488 msgstr ""
36489
36490 #. type: =head2
36491 #: ../src/guestfs.pod:263
36492 msgid "DOWNLOADING"
36493 msgstr ""
36494
36495 #. type: textblock
36496 #: ../src/guestfs.pod:265
36497 msgid ""
36498 "Use L</guestfs_cat> to download small, text only files.  This call is "
36499 "limited to files which are less than 2 MB and which cannot contain any ASCII "
36500 "NUL (C<\\0>) characters.  However the API is very simple to use."
36501 msgstr ""
36502
36503 #. type: textblock
36504 #: ../src/guestfs.pod:269
36505 msgid ""
36506 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
36507 "bit data, since it returns a (pointer, size) pair.  However it is still "
36508 "limited to \"small\" files, less than 2 MB."
36509 msgstr ""
36510
36511 #. type: textblock
36512 #: ../src/guestfs.pod:273
36513 msgid ""
36514 "L</guestfs_download> can be used to download any file, with no limits on "
36515 "content or size (even files larger than 4 GB)."
36516 msgstr ""
36517
36518 #. type: textblock
36519 #: ../src/guestfs.pod:276
36520 msgid ""
36521 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
36522 msgstr ""
36523
36524 #. type: =head2
36525 #: ../src/guestfs.pod:279
36526 msgid "UPLOADING"
36527 msgstr ""
36528
36529 #. type: textblock
36530 #: ../src/guestfs.pod:281
36531 msgid ""
36532 "It's often the case that you want to write a file or files to the disk image."
36533 msgstr ""
36534
36535 #. type: textblock
36536 #: ../src/guestfs.pod:284
36537 msgid ""
36538 "To write a small file with fixed content, use L</guestfs_write>.  To create "
36539 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
36540 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
36541 "of other functions for creating test files, for example L</guestfs_fill> and "
36542 "L</guestfs_fill_pattern>."
36543 msgstr ""
36544
36545 #. type: textblock
36546 #: ../src/guestfs.pod:290
36547 msgid ""
36548 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
36549 "file content or size (even files larger than 4 GB)."
36550 msgstr ""
36551
36552 #. type: textblock
36553 #: ../src/guestfs.pod:293
36554 msgid ""
36555 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36556 msgstr ""
36557
36558 #. type: textblock
36559 #: ../src/guestfs.pod:295
36560 msgid ""
36561 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36562 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36563 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
36564 "in a predictable way (eg. adding it last after all other drives) then you "
36565 "can get the device name from L</guestfs_list_devices> and mount it directly "
36566 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
36567 "portable between kernel versions, and they don't support labels or UUIDs.  "
36568 "If you want to pre-build an image or you need to mount it using a label or "
36569 "UUID, use an ISO image instead."
36570 msgstr ""
36571
36572 #. type: =head2
36573 #: ../src/guestfs.pod:306
36574 msgid "COPYING"
36575 msgstr ""
36576
36577 #. type: textblock
36578 #: ../src/guestfs.pod:308
36579 msgid ""
36580 "There are various different commands for copying between files and devices "
36581 "and in and out of the guest filesystem.  These are summarised in the table "
36582 "below."
36583 msgstr ""
36584
36585 #. type: =item
36586 #: ../src/guestfs.pod:314
36587 msgid "B<file> to B<file>"
36588 msgstr ""
36589
36590 #. type: textblock
36591 #: ../src/guestfs.pod:316
36592 msgid ""
36593 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36594 "directories recursively."
36595 msgstr ""
36596
36597 #. type: textblock
36598 #: ../src/guestfs.pod:319
36599 msgid ""
36600 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36601 msgstr ""
36602
36603 #. type: =item
36604 #: ../src/guestfs.pod:322
36605 msgid "B<file> to B<device>"
36606 msgstr ""
36607
36608 #. type: =item
36609 #: ../src/guestfs.pod:324
36610 msgid "B<device> to B<file>"
36611 msgstr ""
36612
36613 #. type: =item
36614 #: ../src/guestfs.pod:326
36615 msgid "B<device> to B<device>"
36616 msgstr ""
36617
36618 #. type: textblock
36619 #: ../src/guestfs.pod:328
36620 msgid ""
36621 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36622 "guestfs_copy_device_to_device>."
36623 msgstr ""
36624
36625 #. type: textblock
36626 #: ../src/guestfs.pod:331
36627 msgid "Example: duplicate the contents of an LV:"
36628 msgstr ""
36629
36630 #. type: verbatim
36631 #: ../src/guestfs.pod:333
36632 #, no-wrap
36633 msgid ""
36634 " guestfs_copy_device_to_device (g,\n"
36635 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36636 "         /* -1 marks the end of the list of optional parameters */\n"
36637 "         -1);\n"
36638 "\n"
36639 msgstr ""
36640
36641 #. type: textblock
36642 #: ../src/guestfs.pod:338
36643 msgid ""
36644 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36645 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
36646 "optional C<size> parameter:"
36647 msgstr ""
36648
36649 #. type: verbatim
36650 #: ../src/guestfs.pod:342
36651 #, no-wrap
36652 msgid ""
36653 " guestfs_copy_device_to_device (g,\n"
36654 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36655 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36656 "         -1);\n"
36657 "\n"
36658 msgstr ""
36659
36660 #. type: =item
36661 #: ../src/guestfs.pod:347
36662 msgid "B<file on the host> to B<file or device>"
36663 msgstr ""
36664
36665 #. type: textblock
36666 #: ../src/guestfs.pod:349
36667 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
36668 msgstr ""
36669
36670 #. type: =item
36671 #: ../src/guestfs.pod:351
36672 msgid "B<file or device> to B<file on the host>"
36673 msgstr ""
36674
36675 #. type: textblock
36676 #: ../src/guestfs.pod:353
36677 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
36678 msgstr ""
36679
36680 #. type: =head2
36681 #: ../src/guestfs.pod:357
36682 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36683 msgstr ""
36684
36685 #. type: textblock
36686 #: ../src/guestfs.pod:359
36687 msgid ""
36688 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36689 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36690 "appears you can only upload and download to files.  However many Un*x-like "
36691 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36692 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36693 "and arbitrary file descriptor N."
36694 msgstr ""
36695
36696 #. type: textblock
36697 #: ../src/guestfs.pod:367
36698 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36699 msgstr ""
36700
36701 #. type: verbatim
36702 #: ../src/guestfs.pod:370
36703 #, no-wrap
36704 msgid ""
36705 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36706 "\n"
36707 msgstr ""
36708
36709 #. type: textblock
36710 #: ../src/guestfs.pod:372
36711 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36712 msgstr ""
36713
36714 #. type: verbatim
36715 #: ../src/guestfs.pod:374
36716 #, no-wrap
36717 msgid ""
36718 " char devfd[64];\n"
36719 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36720 " guestfs_tar_out (g, \"/\", devfd);\n"
36721 "\n"
36722 msgstr ""
36723
36724 #. type: =head2
36725 #: ../src/guestfs.pod:378
36726 msgid "LISTING FILES"
36727 msgstr ""
36728
36729 #. type: textblock
36730 #: ../src/guestfs.pod:380
36731 msgid ""
36732 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36733 "L<guestfish(1)>-equivalent command C<ll>)."
36734 msgstr ""
36735
36736 #. type: textblock
36737 #: ../src/guestfs.pod:383
36738 msgid ""
36739 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36740 "programs, as a flat list of strings."
36741 msgstr ""
36742
36743 #. type: textblock
36744 #: ../src/guestfs.pod:386
36745 msgid ""
36746 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36747 "directory, plus additional information about each one.  It is more "
36748 "equivalent to using the L<readdir(3)> call on a local filesystem."
36749 msgstr ""
36750
36751 #. type: textblock
36752 #: ../src/guestfs.pod:390
36753 msgid ""
36754 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36755 msgstr ""
36756
36757 #. type: =head2
36758 #: ../src/guestfs.pod:393
36759 msgid "RUNNING COMMANDS"
36760 msgstr ""
36761
36762 #. type: textblock
36763 #: ../src/guestfs.pod:395
36764 msgid ""
36765 "Although libguestfs is primarily an API for manipulating files inside guest "
36766 "images, we also provide some limited facilities for running commands inside "
36767 "guests."
36768 msgstr ""
36769
36770 #. type: textblock
36771 #: ../src/guestfs.pod:399
36772 msgid "There are many limitations to this:"
36773 msgstr ""
36774
36775 #. type: textblock
36776 #: ../src/guestfs.pod:405
36777 msgid ""
36778 "The kernel version that the command runs under will be different from what "
36779 "it expects."
36780 msgstr ""
36781
36782 #. type: textblock
36783 #: ../src/guestfs.pod:410
36784 msgid ""
36785 "If the command needs to communicate with daemons, then most likely they "
36786 "won't be running."
36787 msgstr ""
36788
36789 #. type: textblock
36790 #: ../src/guestfs.pod:415
36791 msgid "The command will be running in limited memory."
36792 msgstr ""
36793
36794 #. type: textblock
36795 #: ../src/guestfs.pod:419
36796 msgid ""
36797 "The network may not be available unless you enable it (see L</"
36798 "guestfs_set_network>)."
36799 msgstr ""
36800
36801 #. type: textblock
36802 #: ../src/guestfs.pod:424
36803 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36804 msgstr ""
36805
36806 #. type: textblock
36807 #: ../src/guestfs.pod:428
36808 msgid ""
36809 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36810 msgstr ""
36811
36812 #. type: textblock
36813 #: ../src/guestfs.pod:433
36814 msgid ""
36815 "For SELinux guests, you may need to enable SELinux and load policy first.  "
36816 "See L</SELINUX> in this manpage."
36817 msgstr ""
36818
36819 #. type: textblock
36820 #: ../src/guestfs.pod:438
36821 msgid ""
36822 "I<Security:> It is not safe to run commands from untrusted, possibly "
36823 "malicious guests.  These commands may attempt to exploit your program by "
36824 "sending unexpected output.  They could also try to exploit the Linux kernel "
36825 "or qemu provided by the libguestfs appliance.  They could use the network "
36826 "provided by the libguestfs appliance to bypass ordinary network partitions "
36827 "and firewalls.  They could use the elevated privileges or different SELinux "
36828 "context of your program to their advantage."
36829 msgstr ""
36830
36831 #. type: textblock
36832 #: ../src/guestfs.pod:447
36833 msgid ""
36834 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36835 "(a script which runs when the guest next boots normally), and to have this "
36836 "script run the commands you want in the normal context of the running guest, "
36837 "network security and so on.  For information about other security issues, "
36838 "see L</SECURITY>."
36839 msgstr ""
36840
36841 #. type: textblock
36842 #: ../src/guestfs.pod:455
36843 msgid ""
36844 "The two main API calls to run commands are L</guestfs_command> and L</"
36845 "guestfs_sh> (there are also variations)."
36846 msgstr ""
36847
36848 #. type: textblock
36849 #: ../src/guestfs.pod:458
36850 msgid ""
36851 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36852 "shell globs, redirections, etc will work."
36853 msgstr ""
36854
36855 #. type: =head2
36856 #: ../src/guestfs.pod:461
36857 msgid "CONFIGURATION FILES"
36858 msgstr ""
36859
36860 #. type: textblock
36861 #: ../src/guestfs.pod:463
36862 msgid ""
36863 "To read and write configuration files in Linux guest filesystems, we "
36864 "strongly recommend using Augeas.  For example, Augeas understands how to "
36865 "read and write, say, a Linux shadow password file or X.org configuration "
36866 "file, and so avoids you having to write that code."
36867 msgstr ""
36868
36869 #. type: textblock
36870 #: ../src/guestfs.pod:468
36871 msgid ""
36872 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
36873 "document Augeas itself here because there is excellent documentation on the "
36874 "L<http://augeas.net/> website."
36875 msgstr ""
36876
36877 #. type: textblock
36878 #: ../src/guestfs.pod:472
36879 msgid ""
36880 "If you don't want to use Augeas (you fool!) then try calling L</"
36881 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36882 "over."
36883 msgstr ""
36884
36885 #. type: =head2
36886 #: ../src/guestfs.pod:476
36887 msgid "SELINUX"
36888 msgstr ""
36889
36890 #. type: textblock
36891 #: ../src/guestfs.pod:478
36892 msgid ""
36893 "We support SELinux guests.  To ensure that labeling happens correctly in "
36894 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36895 msgstr ""
36896
36897 #. type: textblock
36898 #: ../src/guestfs.pod:486
36899 msgid "Before launching, do:"
36900 msgstr ""
36901
36902 #. type: verbatim
36903 #: ../src/guestfs.pod:488
36904 #, no-wrap
36905 msgid ""
36906 " guestfs_set_selinux (g, 1);\n"
36907 "\n"
36908 msgstr ""
36909
36910 #. type: textblock
36911 #: ../src/guestfs.pod:492
36912 msgid ""
36913 "After mounting the guest's filesystem(s), load the policy.  This is best "
36914 "done by running the L<load_policy(8)> command in the guest itself:"
36915 msgstr ""
36916
36917 #. type: verbatim
36918 #: ../src/guestfs.pod:496
36919 #, no-wrap
36920 msgid ""
36921 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36922 "\n"
36923 msgstr ""
36924
36925 #. type: textblock
36926 #: ../src/guestfs.pod:498
36927 msgid ""
36928 "(Older versions of C<load_policy> require you to specify the name of the "
36929 "policy file)."
36930 msgstr ""
36931
36932 #. type: textblock
36933 #: ../src/guestfs.pod:503
36934 msgid ""
36935 "Optionally, set the security context for the API.  The correct security "
36936 "context to use can only be known by inspecting the guest.  As an example:"
36937 msgstr ""
36938
36939 #. type: verbatim
36940 #: ../src/guestfs.pod:507
36941 #, no-wrap
36942 msgid ""
36943 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36944 "\n"
36945 msgstr ""
36946
36947 #. type: textblock
36948 #: ../src/guestfs.pod:511
36949 msgid "This will work for running commands and editing existing files."
36950 msgstr ""
36951
36952 #. type: textblock
36953 #: ../src/guestfs.pod:513
36954 msgid ""
36955 "When new files are created, you may need to label them explicitly, for "
36956 "example by running the external command C<restorecon pathname>."
36957 msgstr ""
36958
36959 #. type: =head2
36960 #: ../src/guestfs.pod:517
36961 msgid "UMASK"
36962 msgstr ""
36963
36964 #. type: textblock
36965 #: ../src/guestfs.pod:519
36966 msgid ""
36967 "Certain calls are affected by the current file mode creation mask (the "
36968 "\"umask\").  In particular ones which create files or directories, such as "
36969 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
36970 "either the default mode that the file is created with or modifies the mode "
36971 "that you supply."
36972 msgstr ""
36973
36974 #. type: textblock
36975 #: ../src/guestfs.pod:525
36976 msgid ""
36977 "The default umask is C<022>, so files are created with modes such as C<0644> "
36978 "and directories with C<0755>."
36979 msgstr ""
36980
36981 #. type: textblock
36982 #: ../src/guestfs.pod:528
36983 msgid ""
36984 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
36985 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
36986 "guestfs_chmod> after creating each file or directory."
36987 msgstr ""
36988
36989 #. type: textblock
36990 #: ../src/guestfs.pod:532
36991 msgid "For more information about umask, see L<umask(2)>."
36992 msgstr ""
36993
36994 #. type: textblock
36995 #: ../src/guestfs.pod:536
36996 msgid ""
36997 "Libguestfs allows you to access Linux guests which have been encrypted using "
36998 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36999 "standard.  This includes nearly all whole disk encryption systems used by "
37000 "modern Linux guests."
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:542
37005 msgid ""
37006 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
37007 "returns the string C<crypto_LUKS>)."
37008 msgstr ""
37009
37010 #. type: textblock
37011 #: ../src/guestfs.pod:545
37012 msgid ""
37013 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
37014 "will require the passphrase!"
37015 msgstr ""
37016
37017 #. type: textblock
37018 #: ../src/guestfs.pod:548
37019 msgid ""
37020 "Opening a LUKS device creates a new device mapper device called C</dev/"
37021 "mapper/mapname> (where C<mapname> is the string you supply to L</"
37022 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
37023 "from and encrypted to the underlying block device respectively."
37024 msgstr ""
37025
37026 #. type: textblock
37027 #: ../src/guestfs.pod:554
37028 msgid ""
37029 "LVM volume groups on the device can be made visible by calling L</"
37030 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
37031 "(s) can now be mounted in the usual way."
37032 msgstr ""
37033
37034 #. type: textblock
37035 #: ../src/guestfs.pod:558
37036 msgid ""
37037 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
37038 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
37039 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
37040 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
37041 "underlying encrypted block device)."
37042 msgstr ""
37043
37044 #. type: =head2
37045 #: ../src/guestfs.pod:565
37046 msgid "INSPECTION"
37047 msgstr ""
37048
37049 #. type: textblock
37050 #: ../src/guestfs.pod:567
37051 msgid ""
37052 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
37053 "contains operating systems, an install CD or a live CD.  (These APIs used to "
37054 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
37055 "version 1.5.3 the most frequently used part of this library has been "
37056 "rewritten in C and moved into the core code)."
37057 msgstr ""
37058
37059 #. type: textblock
37060 #: ../src/guestfs.pod:574
37061 msgid ""
37062 "Add all disks belonging to the unknown virtual machine and call L</"
37063 "guestfs_launch> in the usual way."
37064 msgstr ""
37065
37066 #. type: textblock
37067 #: ../src/guestfs.pod:577
37068 msgid ""
37069 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
37070 "and certain heuristics, and returns a list of operating systems that were "
37071 "found.  An empty list means none were found.  A single element is the root "
37072 "filesystem of the operating system.  For dual- or multi-boot guests, "
37073 "multiple roots can be returned, each one corresponding to a separate "
37074 "operating system.  (Multi-boot virtual machines are extremely rare in the "
37075 "world of virtualization, but since this scenario can happen, we have built "
37076 "libguestfs to deal with it.)"
37077 msgstr ""
37078
37079 #. type: textblock
37080 #: ../src/guestfs.pod:586
37081 msgid ""
37082 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
37083 "to get additional details about that operating system.  For example, call L</"
37084 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
37085 "Windows and Linux-based operating systems respectively."
37086 msgstr ""
37087
37088 #. type: textblock
37089 #: ../src/guestfs.pod:592
37090 msgid ""
37091 "Un*x-like and Linux-based operating systems usually consist of several "
37092 "filesystems which are mounted at boot time (for example, a separate boot "
37093 "partition mounted on C</boot>).  The inspection rules are able to detect how "
37094 "filesystems correspond to mount points.  Call "
37095 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
37096 "hash table like this example:"
37097 msgstr ""
37098
37099 #. type: verbatim
37100 #: ../src/guestfs.pod:599
37101 #, no-wrap
37102 msgid ""
37103 " /boot => /dev/sda1\n"
37104 " /     => /dev/vg_guest/lv_root\n"
37105 " /usr  => /dev/vg_guest/lv_usr\n"
37106 "\n"
37107 msgstr ""
37108
37109 #. type: textblock
37110 #: ../src/guestfs.pod:603
37111 msgid ""
37112 "The caller can then make calls to L</guestfs_mount_options> to mount the "
37113 "filesystems as suggested."
37114 msgstr ""
37115
37116 #. type: textblock
37117 #: ../src/guestfs.pod:606
37118 msgid ""
37119 "Be careful to mount filesystems in the right order (eg. C</> before C</"
37120 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
37121 msgstr ""
37122
37123 #. type: textblock
37124 #: ../src/guestfs.pod:610
37125 msgid ""
37126 "Inspection currently only works for some common operating systems.  "
37127 "Contributors are welcome to send patches for other operating systems that we "
37128 "currently cannot detect."
37129 msgstr ""
37130
37131 #. type: textblock
37132 #: ../src/guestfs.pod:614
37133 msgid ""
37134 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
37135 "for more details.  The L</guestfs_inspect_os> function just ignores any "
37136 "encrypted devices."
37137 msgstr ""
37138
37139 #. type: textblock
37140 #: ../src/guestfs.pod:618
37141 msgid ""
37142 "A note on the implementation: The call L</guestfs_inspect_os> performs "
37143 "inspection and caches the results in the guest handle.  Subsequent calls to "
37144 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
37145 "read the disks.  If you change the content of the guest disks, you can redo "
37146 "inspection by calling L</guestfs_inspect_os> again.  (L</"
37147 "guestfs_inspect_list_applications> works a little differently from the other "
37148 "calls and does read the disks.  See documentation for that function for "
37149 "details)."
37150 msgstr ""
37151
37152 #. type: =head3
37153 #: ../src/guestfs.pod:627
37154 msgid "INSPECTING INSTALL DISKS"
37155 msgstr ""
37156
37157 #. type: textblock
37158 #: ../src/guestfs.pod:629
37159 msgid ""
37160 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
37161 "CDs and more."
37162 msgstr ""
37163
37164 #. type: textblock
37165 #: ../src/guestfs.pod:632
37166 msgid ""
37167 "Call L</guestfs_inspect_get_format> to return the format of the operating "
37168 "system, which currently can be C<installed> (a regular operating system) or "
37169 "C<installer> (some sort of install disk)."
37170 msgstr ""
37171
37172 #. type: textblock
37173 #: ../src/guestfs.pod:636
37174 msgid ""
37175 "Further information is available about the operating system that can be "
37176 "installed using the regular inspection APIs like L</"
37177 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
37178 msgstr ""
37179
37180 #. type: textblock
37181 #: ../src/guestfs.pod:641
37182 msgid ""
37183 "Some additional information specific to installer disks is also available "
37184 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
37185 "guestfs_inspect_is_multipart> calls."
37186 msgstr ""
37187
37188 #. type: =head2
37189 #: ../src/guestfs.pod:646
37190 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
37191 msgstr ""
37192
37193 #. type: textblock
37194 #: ../src/guestfs.pod:648
37195 msgid ""
37196 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
37197 "ntfs-3g.org/> driver."
37198 msgstr ""
37199
37200 #. type: =head3
37201 #: ../src/guestfs.pod:651
37202 msgid "DRIVE LETTERS AND PATHS"
37203 msgstr ""
37204
37205 #. type: textblock
37206 #: ../src/guestfs.pod:653
37207 msgid ""
37208 "DOS and Windows still use drive letters, and the filesystems are always "
37209 "treated as case insensitive by Windows itself, and therefore you might find "
37210 "a Windows configuration file referring to a path like C<c:\\windows"
37211 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
37212 "might be referred to as C</WINDOWS/System32>."
37213 msgstr ""
37214
37215 #. type: textblock
37216 #: ../src/guestfs.pod:659
37217 msgid ""
37218 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
37219 "L</guestfs_inspect_get_drive_mappings>)"
37220 msgstr ""
37221
37222 #. type: textblock
37223 #: ../src/guestfs.pod:662
37224 msgid ""
37225 "Dealing with separator characters (backslash vs forward slash) is outside "
37226 "the scope of libguestfs, but usually a simple character replacement will "
37227 "work."
37228 msgstr ""
37229
37230 #. type: textblock
37231 #: ../src/guestfs.pod:666
37232 msgid ""
37233 "To resolve the case insensitivity of paths, call L</"
37234 "guestfs_case_sensitive_path>."
37235 msgstr ""
37236
37237 #. type: =head3
37238 #: ../src/guestfs.pod:669
37239 msgid "ACCESSING THE WINDOWS REGISTRY"
37240 msgstr ""
37241
37242 #. type: textblock
37243 #: ../src/guestfs.pod:671
37244 msgid ""
37245 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
37246 "files, through the library C<hivex> which is part of the libguestfs project "
37247 "although ships as a separate tarball.  You have to locate and download the "
37248 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
37249 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
37250 "reg(1)> for more help on this issue."
37251 msgstr ""
37252
37253 #. type: =head3
37254 #: ../src/guestfs.pod:679
37255 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
37256 msgstr ""
37257
37258 #. type: textblock
37259 #: ../src/guestfs.pod:681
37260 msgid ""
37261 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
37262 "provide something which looks like a Linux symlink.  The way it tries to do "
37263 "the rewriting is described here:"
37264 msgstr ""
37265
37266 #. type: textblock
37267 #: ../src/guestfs.pod:685
37268 msgid ""
37269 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37270 "symbolic-links/>"
37271 msgstr ""
37272
37273 #. type: textblock
37274 #: ../src/guestfs.pod:687
37275 msgid ""
37276 "The essential problem is that ntfs-3g simply does not have enough "
37277 "information to do a correct job.  NTFS links can contain drive letters and "
37278 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
37279 "It is almost certainly the case that libguestfs callers should ignore what "
37280 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
37281 msgstr ""
37282
37283 #. type: textblock
37284 #: ../src/guestfs.pod:694
37285 msgid ""
37286 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
37287 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
37288 "attribute, and read the raw reparse data from that (you can find the format "
37289 "documented in various places around the web)."
37290 msgstr ""
37291
37292 #. type: =head3
37293 #: ../src/guestfs.pod:699
37294 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
37295 msgstr ""
37296
37297 #. type: textblock
37298 #: ../src/guestfs.pod:701
37299 msgid ""
37300 "There are other useful extended attributes that can be read from ntfs-3g "
37301 "filesystems (using L</guestfs_getxattr>).  See:"
37302 msgstr ""
37303
37304 #. type: textblock
37305 #: ../src/guestfs.pod:704
37306 msgid ""
37307 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37308 msgstr ""
37309
37310 #. type: =head2
37311 #: ../src/guestfs.pod:706
37312 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
37313 msgstr ""
37314
37315 #. type: textblock
37316 #: ../src/guestfs.pod:708
37317 msgid ""
37318 "Although we don't want to discourage you from using the C API, we will "
37319 "mention here that the same API is also available in other languages."
37320 msgstr ""
37321
37322 #. type: textblock
37323 #: ../src/guestfs.pod:711
37324 msgid ""
37325 "The API is broadly identical in all supported languages.  This means that "
37326 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
37327 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
37328 "OCaml.  In other words, a straightforward, predictable isomorphism between "
37329 "each language."
37330 msgstr ""
37331
37332 #. type: textblock
37333 #: ../src/guestfs.pod:717
37334 msgid ""
37335 "Error messages are automatically transformed into exceptions if the language "
37336 "supports it."
37337 msgstr ""
37338
37339 #. type: textblock
37340 #: ../src/guestfs.pod:720
37341 msgid ""
37342 "We don't try to \"object orientify\" parts of the API in OO languages, "
37343 "although contributors are welcome to write higher level APIs above what we "
37344 "provide in their favourite languages if they wish."
37345 msgstr ""
37346
37347 #. type: =item
37348 #: ../src/guestfs.pod:726
37349 msgid "B<C++>"
37350 msgstr ""
37351
37352 #. type: textblock
37353 #: ../src/guestfs.pod:728
37354 msgid ""
37355 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
37356 "identical to the C API.  C++ classes and exceptions are not used."
37357 msgstr ""
37358
37359 #. type: =item
37360 #: ../src/guestfs.pod:732
37361 msgid "B<C#>"
37362 msgstr ""
37363
37364 #. type: textblock
37365 #: ../src/guestfs.pod:734
37366 msgid ""
37367 "The C# bindings are highly experimental.  Please read the warnings at the "
37368 "top of C<csharp/Libguestfs.cs>."
37369 msgstr ""
37370
37371 #. type: =item
37372 #: ../src/guestfs.pod:737
37373 msgid "B<Erlang>"
37374 msgstr ""
37375
37376 #. type: textblock
37377 #: ../src/guestfs.pod:739
37378 msgid "See L<guestfs-erlang(3)>."
37379 msgstr ""
37380
37381 #. type: =item
37382 #: ../src/guestfs.pod:741
37383 msgid "B<Haskell>"
37384 msgstr ""
37385
37386 #. type: textblock
37387 #: ../src/guestfs.pod:743
37388 msgid ""
37389 "This is the only language binding that is working but incomplete.  Only "
37390 "calls which return simple integers have been bound in Haskell, and we are "
37391 "looking for help to complete this binding."
37392 msgstr ""
37393
37394 #. type: =item
37395 #: ../src/guestfs.pod:747
37396 msgid "B<Java>"
37397 msgstr ""
37398
37399 #. type: textblock
37400 #: ../src/guestfs.pod:749
37401 msgid ""
37402 "Full documentation is contained in the Javadoc which is distributed with "
37403 "libguestfs.  For examples, see L<guestfs-java(3)>."
37404 msgstr ""
37405
37406 #. type: =item
37407 #: ../src/guestfs.pod:752
37408 msgid "B<OCaml>"
37409 msgstr ""
37410
37411 #. type: textblock
37412 #: ../src/guestfs.pod:754
37413 msgid "See L<guestfs-ocaml(3)>."
37414 msgstr ""
37415
37416 #. type: =item
37417 #: ../src/guestfs.pod:756
37418 msgid "B<Perl>"
37419 msgstr ""
37420
37421 #. type: textblock
37422 #: ../src/guestfs.pod:758
37423 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
37424 msgstr ""
37425
37426 #. type: =item
37427 #: ../src/guestfs.pod:760
37428 msgid "B<PHP>"
37429 msgstr ""
37430
37431 #. type: textblock
37432 #: ../src/guestfs.pod:762
37433 msgid ""
37434 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
37435 "the php-libguestfs package for your distribution."
37436 msgstr ""
37437
37438 #. type: textblock
37439 #: ../src/guestfs.pod:765
37440 msgid "The PHP binding only works correctly on 64 bit machines."
37441 msgstr ""
37442
37443 #. type: =item
37444 #: ../src/guestfs.pod:767
37445 msgid "B<Python>"
37446 msgstr ""
37447
37448 #. type: textblock
37449 #: ../src/guestfs.pod:769
37450 msgid "See L<guestfs-python(3)>."
37451 msgstr ""
37452
37453 #. type: =item
37454 #: ../src/guestfs.pod:771
37455 msgid "B<Ruby>"
37456 msgstr ""
37457
37458 #. type: textblock
37459 #: ../src/guestfs.pod:773
37460 msgid "See L<guestfs-ruby(3)>."
37461 msgstr ""
37462
37463 #. type: =item
37464 #: ../src/guestfs.pod:775
37465 msgid "B<shell scripts>"
37466 msgstr ""
37467
37468 #. type: textblock
37469 #: ../src/guestfs.pod:777
37470 msgid "See L<guestfish(1)>."
37471 msgstr ""
37472
37473 #. type: =head2
37474 #: ../src/guestfs.pod:781
37475 msgid "LIBGUESTFS GOTCHAS"
37476 msgstr ""
37477
37478 #. type: textblock
37479 #: ../src/guestfs.pod:783
37480 msgid ""
37481 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
37482 "system [...] that works in the way it is documented but is counterintuitive "
37483 "and almost invites mistakes.\""
37484 msgstr ""
37485
37486 #. type: textblock
37487 #: ../src/guestfs.pod:787
37488 msgid ""
37489 "Since we developed libguestfs and the associated tools, there are several "
37490 "things we would have designed differently, but are now stuck with for "
37491 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
37492 "release, you can expect these to change.  Beware of them."
37493 msgstr ""
37494
37495 #. type: =item
37496 #: ../src/guestfs.pod:795
37497 msgid "Autosync / forgetting to sync."
37498 msgstr ""
37499
37500 #. type: textblock
37501 #: ../src/guestfs.pod:797
37502 msgid ""
37503 "I<Update:> Autosync is enabled by default for all API users starting from "
37504 "libguestfs 1.5.24.  This section only applies to older versions."
37505 msgstr ""
37506
37507 #. type: textblock
37508 #: ../src/guestfs.pod:800
37509 msgid ""
37510 "When modifying a filesystem from C or another language, you B<must> unmount "
37511 "all filesystems and call L</guestfs_sync> explicitly before you close the "
37512 "libguestfs handle.  You can also call:"
37513 msgstr ""
37514
37515 #. type: verbatim
37516 #: ../src/guestfs.pod:804
37517 #, no-wrap
37518 msgid ""
37519 " guestfs_set_autosync (g, 1);\n"
37520 "\n"
37521 msgstr ""
37522
37523 #. type: textblock
37524 #: ../src/guestfs.pod:806
37525 msgid ""
37526 "to have the unmount/sync done automatically for you when the handle 'g' is "
37527 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37528 msgstr ""
37529
37530 #. type: textblock
37531 #: ../src/guestfs.pod:810
37532 msgid ""
37533 "If you forget to do this, then it is entirely possible that your changes "
37534 "won't be written out, or will be partially written, or (very rarely) that "
37535 "you'll get disk corruption."
37536 msgstr ""
37537
37538 #. type: textblock
37539 #: ../src/guestfs.pod:814
37540 msgid ""
37541 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
37542 "guestfish scripts that forget to sync will work just fine, which can make "
37543 "this very puzzling if you are trying to debug a problem."
37544 msgstr ""
37545
37546 #. type: =item
37547 #: ../src/guestfs.pod:818
37548 msgid "Mount option C<-o sync> should not be the default."
37549 msgstr ""
37550
37551 #. type: textblock
37552 #: ../src/guestfs.pod:820
37553 msgid ""
37554 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37555 "libguestfs 1.13.16.  This section only applies to older versions."
37556 msgstr ""
37557
37558 #. type: textblock
37559 #: ../src/guestfs.pod:823
37560 msgid ""
37561 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
37562 "However C<-o sync> does not add any reliability benefit, but does have a "
37563 "very large performance impact."
37564 msgstr ""
37565
37566 #. type: textblock
37567 #: ../src/guestfs.pod:827
37568 msgid ""
37569 "The work around is to use L</guestfs_mount_options> and set the mount "
37570 "options that you actually want to use."
37571 msgstr ""
37572
37573 #. type: =item
37574 #: ../src/guestfs.pod:830
37575 msgid "Read-only should be the default."
37576 msgstr ""
37577
37578 #. type: textblock
37579 #: ../src/guestfs.pod:832
37580 msgid ""
37581 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37582 "specify I<--rw> if you want to make changes to the image."
37583 msgstr ""
37584
37585 #. type: textblock
37586 #: ../src/guestfs.pod:835
37587 msgid "This would reduce the potential to corrupt live VM images."
37588 msgstr ""
37589
37590 #. type: textblock
37591 #: ../src/guestfs.pod:837
37592 msgid ""
37593 "Note that many filesystems change the disk when you just mount and unmount, "
37594 "even if you didn't perform any writes.  You need to use L</"
37595 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37596 msgstr ""
37597
37598 #. type: =item
37599 #: ../src/guestfs.pod:841
37600 msgid "guestfish command line is hard to use."
37601 msgstr ""
37602
37603 #. type: textblock
37604 #: ../src/guestfs.pod:843
37605 msgid ""
37606 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37607 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
37608 "exist, so it fails.  In earlier versions of guestfish the error message was "
37609 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
37610 "we should have used C<guestfish -c command> to run commands."
37611 msgstr ""
37612
37613 #. type: =item
37614 #: ../src/guestfs.pod:850
37615 msgid "guestfish megabyte modifiers don't work right on all commands"
37616 msgstr ""
37617
37618 #. type: textblock
37619 #: ../src/guestfs.pod:852
37620 msgid ""
37621 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37622 "other modifiers).  What guestfish actually does is to multiply the number "
37623 "part by the modifier part and pass the result to the C API.  However this "
37624 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37625 "expecting some other unit (eg. megabytes)."
37626 msgstr ""
37627
37628 #. type: textblock
37629 #: ../src/guestfs.pod:859
37630 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
37631 msgstr ""
37632
37633 #. type: verbatim
37634 #: ../src/guestfs.pod:861
37635 #, no-wrap
37636 msgid ""
37637 " lvcreate LV VG 100M\n"
37638 "\n"
37639 msgstr ""
37640
37641 #. type: textblock
37642 #: ../src/guestfs.pod:863
37643 msgid ""
37644 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
37645 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37646 "megabytes * megabytes) logical volume.  The error message you get from this "
37647 "is also a little obscure."
37648 msgstr ""
37649
37650 #. type: textblock
37651 #: ../src/guestfs.pod:868
37652 msgid ""
37653 "This could be fixed in the generator by specially marking parameters and "
37654 "return values which take bytes or other units."
37655 msgstr ""
37656
37657 #. type: =item
37658 #: ../src/guestfs.pod:871
37659 msgid "Ambiguity between devices and paths"
37660 msgstr ""
37661
37662 #. type: textblock
37663 #: ../src/guestfs.pod:873
37664 msgid ""
37665 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37666 "sdb2>) and a similar pathname.  A file might just happen to be called "
37667 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37668 msgstr ""
37669
37670 #. type: textblock
37671 #: ../src/guestfs.pod:878
37672 msgid ""
37673 "In the current API we usually resolve this ambiguity by having two separate "
37674 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
37675 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37676 "detecting if the path supplied begins with C</dev/>."
37677 msgstr ""
37678
37679 #. type: textblock
37680 #: ../src/guestfs.pod:884
37681 msgid ""
37682 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37683 "make paths/devices into structured names.  One way to do this would be to "
37684 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37685 "aspect of grub.  Another way would be to use a structured type, equivalent "
37686 "to this OCaml type:"
37687 msgstr ""
37688
37689 #. type: verbatim
37690 #: ../src/guestfs.pod:890
37691 #, no-wrap
37692 msgid ""
37693 " type path = Path of string | Device of int | Partition of int * int\n"
37694 "\n"
37695 msgstr ""
37696
37697 #. type: textblock
37698 #: ../src/guestfs.pod:892
37699 msgid "which would allow you to pass arguments like:"
37700 msgstr ""
37701
37702 #. type: verbatim
37703 #: ../src/guestfs.pod:894
37704 #, no-wrap
37705 msgid ""
37706 " Path \"/foo/bar\"\n"
37707 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
37708 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37709 " Path \"/dev/sdb2\"    (* not a device *)\n"
37710 "\n"
37711 msgstr ""
37712
37713 #. type: textblock
37714 #: ../src/guestfs.pod:899
37715 msgid ""
37716 "As you can see there are still problems to resolve even with this "
37717 "representation.  Also consider how it might work in guestfish."
37718 msgstr ""
37719
37720 #. type: =head2
37721 #: ../src/guestfs.pod:904
37722 msgid "KEYS AND PASSPHRASES"
37723 msgstr ""
37724
37725 #. type: textblock
37726 #: ../src/guestfs.pod:906
37727 msgid ""
37728 "Certain libguestfs calls take a parameter that contains sensitive key "
37729 "material, passed in as a C string."
37730 msgstr ""
37731
37732 #. type: textblock
37733 #: ../src/guestfs.pod:909
37734 msgid ""
37735 "In the future we would hope to change the libguestfs implementation so that "
37736 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37737 "swap.  However this is I<not> done at the moment, because of the complexity "
37738 "of such an implementation."
37739 msgstr ""
37740
37741 #. type: textblock
37742 #: ../src/guestfs.pod:914
37743 msgid ""
37744 "Therefore you should be aware that any key parameter you pass to libguestfs "
37745 "might end up being written out to the swap partition.  If this is a concern, "
37746 "scrub the swap partition or don't use libguestfs on encrypted devices."
37747 msgstr ""
37748
37749 #. type: =head2
37750 #: ../src/guestfs.pod:919
37751 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37752 msgstr ""
37753
37754 #. type: textblock
37755 #: ../src/guestfs.pod:921
37756 msgid ""
37757 "All high-level libguestfs actions are synchronous.  If you want to use "
37758 "libguestfs asynchronously then you must create a thread."
37759 msgstr ""
37760
37761 #. type: textblock
37762 #: ../src/guestfs.pod:924
37763 msgid ""
37764 "Only use the handle from a single thread.  Either use the handle exclusively "
37765 "from one thread, or provide your own mutex so that two threads cannot issue "
37766 "calls on the same handle at the same time."
37767 msgstr ""
37768
37769 #. type: textblock
37770 #: ../src/guestfs.pod:928
37771 msgid ""
37772 "See the graphical program guestfs-browser for one possible architecture for "
37773 "multithreaded programs using libvirt and libguestfs."
37774 msgstr ""
37775
37776 #. type: =head2
37777 #: ../src/guestfs.pod:931
37778 msgid "PATH"
37779 msgstr ""
37780
37781 #. type: textblock
37782 #: ../src/guestfs.pod:933
37783 msgid ""
37784 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37785 "internal path."
37786 msgstr ""
37787
37788 #. type: textblock
37789 #: ../src/guestfs.pod:936
37790 msgid ""
37791 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37792 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37793 msgstr ""
37794
37795 #. type: textblock
37796 #: ../src/guestfs.pod:939
37797 msgid ""
37798 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37799 "to change the directories that libguestfs will search in.  The value is a "
37800 "colon-separated list of paths.  The current directory is I<not> searched "
37801 "unless the path contains an empty element or C<.>.  For example "
37802 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37803 "then C</usr/lib/guestfs>."
37804 msgstr ""
37805
37806 #. type: =head2
37807 #: ../src/guestfs.pod:946
37808 msgid "QEMU WRAPPERS"
37809 msgstr ""
37810
37811 #. type: textblock
37812 #: ../src/guestfs.pod:948
37813 msgid ""
37814 "If you want to compile your own qemu, run qemu from a non-standard location, "
37815 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37816 "around qemu."
37817 msgstr ""
37818
37819 #. type: textblock
37820 #: ../src/guestfs.pod:952
37821 msgid ""
37822 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37823 "last command in the shell script (so that qemu replaces the shell and "
37824 "becomes the direct child of the libguestfs-using program).  If you don't do "
37825 "this, then the qemu process won't be cleaned up correctly."
37826 msgstr ""
37827
37828 #. type: textblock
37829 #: ../src/guestfs.pod:957
37830 msgid ""
37831 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37832 "source:"
37833 msgstr ""
37834
37835 #. type: verbatim
37836 #: ../src/guestfs.pod:960
37837 #, no-wrap
37838 msgid ""
37839 " #!/bin/sh -\n"
37840 " qemudir=/home/rjones/d/qemu\n"
37841 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37842 "\n"
37843 msgstr ""
37844
37845 #. type: textblock
37846 #: ../src/guestfs.pod:964
37847 msgid ""
37848 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37849 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
37850 "example:"
37851 msgstr ""
37852
37853 #. type: verbatim
37854 #: ../src/guestfs.pod:968
37855 #, no-wrap
37856 msgid ""
37857 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37858 "\n"
37859 msgstr ""
37860
37861 #. type: textblock
37862 #: ../src/guestfs.pod:970
37863 msgid ""
37864 "Note that libguestfs also calls qemu with the -help and -version options in "
37865 "order to determine features."
37866 msgstr ""
37867
37868 #. type: textblock
37869 #: ../src/guestfs.pod:973
37870 msgid ""
37871 "Wrappers can also be used to edit the options passed to qemu.  In the "
37872 "following example, the C<-machine ...> option (C<-machine> and the following "
37873 "argument) are removed from the command line and replaced with C<-machine pc,"
37874 "accel=tcg>.  The while loop iterates over the options until it finds the "
37875 "right one to remove, putting the remaining options into the C<args> array."
37876 msgstr ""
37877
37878 #. type: verbatim
37879 #: ../src/guestfs.pod:982
37880 #, no-wrap
37881 msgid ""
37882 " i=0\n"
37883 " while [ $# -gt 0 ]; do\n"
37884 "     case \"$1\" in\n"
37885 "     -machine)\n"
37886 "         shift 2;;\n"
37887 "     *)\n"
37888 "         args[i]=\"$1\"\n"
37889 "         (( i++ ))\n"
37890 "         shift ;;\n"
37891 "     esac\n"
37892 " done\n"
37893 " \n"
37894 msgstr ""
37895
37896 #. type: verbatim
37897 #: ../src/guestfs.pod:994
37898 #, no-wrap
37899 msgid ""
37900 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37901 "\n"
37902 msgstr ""
37903
37904 #. type: =head2
37905 #: ../src/guestfs.pod:996
37906 msgid "ATTACHING TO RUNNING DAEMONS"
37907 msgstr ""
37908
37909 #. type: textblock
37910 #: ../src/guestfs.pod:998
37911 msgid ""
37912 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37913 "babies.  Use with caution."
37914 msgstr ""
37915
37916 #. type: textblock
37917 #: ../src/guestfs.pod:1001
37918 msgid ""
37919 "I<Note (2):> This section explains how to attach to a running daemon from a "
37920 "low level perspective.  For most users, simply using virt tools such as "
37921 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37922 msgstr ""
37923
37924 #. type: =head3
37925 #: ../src/guestfs.pod:1005
37926 msgid "Using guestfs_set_attach_method"
37927 msgstr ""
37928
37929 #. type: textblock
37930 #: ../src/guestfs.pod:1007
37931 msgid ""
37932 "By calling L</guestfs_set_attach_method> you can change how the library "
37933 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37934 "ARCHITECTURE> for some background)."
37935 msgstr ""
37936
37937 #. type: textblock
37938 #: ../src/guestfs.pod:1011
37939 msgid ""
37940 "The normal attach method is C<appliance>, where a small appliance is created "
37941 "containing the daemon, and then the library connects to this."
37942 msgstr ""
37943
37944 #. type: textblock
37945 #: ../src/guestfs.pod:1014
37946 msgid ""
37947 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37948 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37949 "daemon over the Unix domain socket."
37950 msgstr ""
37951
37952 #. type: textblock
37953 #: ../src/guestfs.pod:1018
37954 msgid ""
37955 "The normal use for this is to connect to a running virtual machine that "
37956 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37957 "files inside the live virtual machine."
37958 msgstr ""
37959
37960 #. type: =head3
37961 #: ../src/guestfs.pod:1022
37962 msgid "Using guestfs_add_domain with live flag"
37963 msgstr ""
37964
37965 #. type: textblock
37966 #: ../src/guestfs.pod:1024
37967 msgid ""
37968 "L</guestfs_add_domain> provides some help for getting the correct attach "
37969 "method.  If you pass the C<live> option to this function, then (if the "
37970 "virtual machine is running) it will examine the libvirt XML looking for a "
37971 "virtio-serial channel to connect to:"
37972 msgstr ""
37973
37974 #. type: verbatim
37975 #: ../src/guestfs.pod:1030
37976 #, no-wrap
37977 msgid ""
37978 " <domain>\n"
37979 "   ...\n"
37980 "   <devices>\n"
37981 "     ...\n"
37982 "     <channel type='unix'>\n"
37983 "       <source mode='bind' path='/path/to/socket'/>\n"
37984 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37985 "     </channel>\n"
37986 "     ...\n"
37987 "   </devices>\n"
37988 " </domain>\n"
37989 "\n"
37990 msgstr ""
37991
37992 #. type: textblock
37993 #: ../src/guestfs.pod:1042
37994 msgid ""
37995 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37996 "method to C<unix:/path/to/socket>."
37997 msgstr ""
37998
37999 #. type: textblock
38000 #: ../src/guestfs.pod:1045
38001 msgid ""
38002 "Some of the libguestfs tools (including guestfish) support a I<--live> "
38003 "option which is passed through to L</guestfs_add_domain> thus allowing you "
38004 "to attach to and modify live virtual machines."
38005 msgstr ""
38006
38007 #. type: textblock
38008 #: ../src/guestfs.pod:1049
38009 msgid ""
38010 "The virtual machine needs to have been set up beforehand so that it has the "
38011 "virtio-serial channel and so that guestfsd is running inside it."
38012 msgstr ""
38013
38014 #. type: =head2
38015 #: ../src/guestfs.pod:1053
38016 msgid "ABI GUARANTEE"
38017 msgstr ""
38018
38019 #. type: textblock
38020 #: ../src/guestfs.pod:1055
38021 msgid ""
38022 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
38023 "actions as outlined in this section.  Although we will deprecate some "
38024 "actions, for example if they get replaced by newer calls, we will keep the "
38025 "old actions forever.  This allows you the developer to program in confidence "
38026 "against the libguestfs API."
38027 msgstr ""
38028
38029 #. type: =head2
38030 #: ../src/guestfs.pod:1061
38031 msgid "BLOCK DEVICE NAMING"
38032 msgstr ""
38033
38034 #. type: textblock
38035 #: ../src/guestfs.pod:1063
38036 msgid ""
38037 "In the kernel there is now quite a profusion of schemata for naming block "
38038 "devices (in this context, by I<block device> I mean a physical or virtual "
38039 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
38040 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
38041 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
38042 "for the old IDE driver (particularly for SATA devices) those devices also "
38043 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
38044 "paravirtualized drivers.  This has created several different naming systems, "
38045 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
38046 msgstr ""
38047
38048 #. type: textblock
38049 #: ../src/guestfs.pod:1075
38050 msgid ""
38051 "As discussed above, libguestfs uses a qemu appliance running an embedded "
38052 "Linux kernel to access block devices.  We can run a variety of appliances "
38053 "based on a variety of Linux kernels."
38054 msgstr ""
38055
38056 #. type: textblock
38057 #: ../src/guestfs.pod:1079
38058 msgid ""
38059 "This causes a problem for libguestfs because many API calls use device or "
38060 "partition names.  Working scripts and the recipe (example) scripts that we "
38061 "make available over the internet could fail if the naming scheme changes."
38062 msgstr ""
38063
38064 #. type: textblock
38065 #: ../src/guestfs.pod:1084
38066 msgid ""
38067 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
38068 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
38069 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
38070 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
38071 msgstr ""
38072
38073 #. type: textblock
38074 #: ../src/guestfs.pod:1090
38075 msgid ""
38076 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
38077 "L</guestfs_list_partitions> and similar calls return the true names of the "
38078 "devices and partitions as known to the appliance."
38079 msgstr ""
38080
38081 #. type: =head3
38082 #: ../src/guestfs.pod:1095
38083 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
38084 msgstr ""
38085
38086 #. type: textblock
38087 #: ../src/guestfs.pod:1097
38088 msgid ""
38089 "Usually this translation is transparent.  However in some (very rare)  cases "
38090 "you may need to know the exact algorithm.  Such cases include where you use "
38091 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
38092 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
38093 msgstr ""
38094
38095 #. type: textblock
38096 #: ../src/guestfs.pod:1103
38097 msgid ""
38098 "The algorithm is applied only to I<parameters> which are known to be either "
38099 "device or partition names.  Return values from functions such as L</"
38100 "guestfs_list_devices> are never changed."
38101 msgstr ""
38102
38103 #. type: textblock
38104 #: ../src/guestfs.pod:1111
38105 msgid "Is the string a parameter which is a device or partition name?"
38106 msgstr ""
38107
38108 #. type: textblock
38109 #: ../src/guestfs.pod:1115
38110 msgid "Does the string begin with C</dev/sd>?"
38111 msgstr ""
38112
38113 #. type: textblock
38114 #: ../src/guestfs.pod:1119
38115 msgid ""
38116 "Does the named device exist? If so, we use that device.  However if I<not> "
38117 "then we continue with this algorithm."
38118 msgstr ""
38119
38120 #. type: textblock
38121 #: ../src/guestfs.pod:1124
38122 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
38123 msgstr ""
38124
38125 #. type: textblock
38126 #: ../src/guestfs.pod:1126
38127 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
38128 msgstr ""
38129
38130 #. type: textblock
38131 #: ../src/guestfs.pod:1128
38132 msgid "If that named device exists, use it.  If not, continue."
38133 msgstr ""
38134
38135 #. type: textblock
38136 #: ../src/guestfs.pod:1132
38137 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
38138 msgstr ""
38139
38140 #. type: textblock
38141 #: ../src/guestfs.pod:1134
38142 msgid "If that named device exists, use it.  If not, return an error."
38143 msgstr ""
38144
38145 #. type: =head3
38146 #: ../src/guestfs.pod:1138
38147 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
38148 msgstr ""
38149
38150 #. type: textblock
38151 #: ../src/guestfs.pod:1140
38152 msgid ""
38153 "Although the standard naming scheme and automatic translation is useful for "
38154 "simple programs and guestfish scripts, for larger programs it is best not to "
38155 "rely on this mechanism."
38156 msgstr ""
38157
38158 #. type: textblock
38159 #: ../src/guestfs.pod:1144
38160 msgid ""
38161 "Where possible for maximum future portability programs using libguestfs "
38162 "should use these future-proof techniques:"
38163 msgstr ""
38164
38165 #. type: textblock
38166 #: ../src/guestfs.pod:1151
38167 msgid ""
38168 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
38169 "device names, and then use those names directly."
38170 msgstr ""
38171
38172 #. type: textblock
38173 #: ../src/guestfs.pod:1154
38174 msgid ""
38175 "Since those device names exist by definition, they will never be translated."
38176 msgstr ""
38177
38178 #. type: textblock
38179 #: ../src/guestfs.pod:1159
38180 msgid ""
38181 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
38182 "filesystem labels."
38183 msgstr ""
38184
38185 #. type: textblock
38186 #: ../src/guestfs.pod:1166
38187 msgid ""
38188 "This section discusses security implications of using libguestfs, "
38189 "particularly with untrusted or malicious guests or disk images."
38190 msgstr ""
38191
38192 #. type: =head2
38193 #: ../src/guestfs.pod:1169
38194 msgid "GENERAL SECURITY CONSIDERATIONS"
38195 msgstr ""
38196
38197 #. type: textblock
38198 #: ../src/guestfs.pod:1171
38199 msgid ""
38200 "Be careful with any files or data that you download from a guest (by "
38201 "\"download\" we mean not just the L</guestfs_download> command but any "
38202 "command that reads files, filenames, directories or anything else from a "
38203 "disk image).  An attacker could manipulate the data to fool your program "
38204 "into doing the wrong thing.  Consider cases such as:"
38205 msgstr ""
38206
38207 #. type: textblock
38208 #: ../src/guestfs.pod:1181
38209 msgid "the data (file etc) not being present"
38210 msgstr ""
38211
38212 #. type: textblock
38213 #: ../src/guestfs.pod:1185
38214 msgid "being present but empty"
38215 msgstr ""
38216
38217 #. type: textblock
38218 #: ../src/guestfs.pod:1189
38219 msgid "being much larger than normal"
38220 msgstr ""
38221
38222 #. type: textblock
38223 #: ../src/guestfs.pod:1193
38224 msgid "containing arbitrary 8 bit data"
38225 msgstr ""
38226
38227 #. type: textblock
38228 #: ../src/guestfs.pod:1197
38229 msgid "being in an unexpected character encoding"
38230 msgstr ""
38231
38232 #. type: textblock
38233 #: ../src/guestfs.pod:1201
38234 msgid "containing homoglyphs."
38235 msgstr ""
38236
38237 #. type: =head2
38238 #: ../src/guestfs.pod:1205
38239 msgid "SECURITY OF MOUNTING FILESYSTEMS"
38240 msgstr ""
38241
38242 #. type: textblock
38243 #: ../src/guestfs.pod:1207
38244 msgid ""
38245 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
38246 "(VFS) module can sometimes be escalated into exploits by deliberately "
38247 "creating a malicious, malformed filesystem.  These exploits are very severe "
38248 "for two reasons.  Firstly there are very many filesystem drivers in the "
38249 "kernel, and many of them are infrequently used and not much developer "
38250 "attention has been paid to the code.  Linux userspace helps potential "
38251 "crackers by detecting the filesystem type and automatically choosing the "
38252 "right VFS driver, even if that filesystem type is obscure or unexpected for "
38253 "the administrator.  Secondly, a kernel-level exploit is like a local root "
38254 "exploit (worse in some ways), giving immediate and total access to the "
38255 "system right down to the hardware level."
38256 msgstr ""
38257
38258 #. type: textblock
38259 #: ../src/guestfs.pod:1220
38260 msgid ""
38261 "That explains why you should never mount a filesystem from an untrusted "
38262 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
38263 "inside a qemu virtual machine, usually running as a non-root user.  The "
38264 "attacker would need to write a filesystem which first exploited the kernel, "
38265 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
38266 "the libguestfs protocol, and finally to be as serious as the host kernel "
38267 "exploit it would need to escalate its privileges to root.  This multi-step "
38268 "escalation, performed by a static piece of data, is thought to be extremely "
38269 "hard to do, although we never say 'never' about security issues."
38270 msgstr ""
38271
38272 #. type: textblock
38273 #: ../src/guestfs.pod:1231
38274 msgid ""
38275 "In any case callers can reduce the attack surface by forcing the filesystem "
38276 "type when mounting (use L</guestfs_mount_vfs>)."
38277 msgstr ""
38278
38279 #. type: =head2
38280 #: ../src/guestfs.pod:1234
38281 msgid "PROTOCOL SECURITY"
38282 msgstr ""
38283
38284 #. type: textblock
38285 #: ../src/guestfs.pod:1236
38286 msgid ""
38287 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
38288 "defined upper message size.  However a program that uses libguestfs must "
38289 "also take care - for example you can write a program that downloads a binary "
38290 "from a disk image and executes it locally, and no amount of protocol "
38291 "security will save you from the consequences."
38292 msgstr ""
38293
38294 #. type: =head2
38295 #: ../src/guestfs.pod:1242
38296 msgid "INSPECTION SECURITY"
38297 msgstr ""
38298
38299 #. type: textblock
38300 #: ../src/guestfs.pod:1244
38301 msgid ""
38302 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
38303 "directly from the guest, and these could contain any 8 bit data.  Callers "
38304 "should be careful to escape these before printing them to a structured file "
38305 "(for example, use HTML escaping if creating a web page)."
38306 msgstr ""
38307
38308 #. type: textblock
38309 #: ../src/guestfs.pod:1250
38310 msgid ""
38311 "Guest configuration may be altered in unusual ways by the administrator of "
38312 "the virtual machine, and may not reflect reality (particularly for untrusted "
38313 "or actively malicious guests).  For example we parse the hostname from "
38314 "configuration files like C</etc/sysconfig/network> that we find in the "
38315 "guest, but the guest administrator can easily manipulate these files to "
38316 "provide the wrong hostname."
38317 msgstr ""
38318
38319 #. type: textblock
38320 #: ../src/guestfs.pod:1258
38321 msgid ""
38322 "The inspection API parses guest configuration using two external libraries: "
38323 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
38324 "designed to be robust in the face of malicious data, although denial of "
38325 "service attacks are still possible, for example with oversized configuration "
38326 "files."
38327 msgstr ""
38328
38329 #. type: =head2
38330 #: ../src/guestfs.pod:1264
38331 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
38332 msgstr ""
38333
38334 #. type: textblock
38335 #: ../src/guestfs.pod:1266
38336 msgid ""
38337 "Be very cautious about running commands from the guest.  By running a "
38338 "command in the guest, you are giving CPU time to a binary that you do not "
38339 "control, under the same user account as the library, albeit wrapped in qemu "
38340 "virtualization.  More information and alternatives can be found in the "
38341 "section L</RUNNING COMMANDS>."
38342 msgstr ""
38343
38344 #. type: =head2
38345 #: ../src/guestfs.pod:1272
38346 msgid "CVE-2010-3851"
38347 msgstr ""
38348
38349 #. type: textblock
38350 #: ../src/guestfs.pod:1274
38351 msgid "https://bugzilla.redhat.com/642934"
38352 msgstr ""
38353
38354 #. type: textblock
38355 #: ../src/guestfs.pod:1276
38356 msgid ""
38357 "This security bug concerns the automatic disk format detection that qemu "
38358 "does on disk images."
38359 msgstr ""
38360
38361 #. type: textblock
38362 #: ../src/guestfs.pod:1279
38363 msgid ""
38364 "A raw disk image is just the raw bytes, there is no header.  Other disk "
38365 "images like qcow2 contain a special header.  Qemu deals with this by looking "
38366 "for one of the known headers, and if none is found then assuming the disk "
38367 "image must be raw."
38368 msgstr ""
38369
38370 #. type: textblock
38371 #: ../src/guestfs.pod:1284
38372 msgid ""
38373 "This allows a guest which has been given a raw disk image to write some "
38374 "other header.  At next boot (or when the disk image is accessed by "
38375 "libguestfs) qemu would do autodetection and think the disk image format was, "
38376 "say, qcow2 based on the header written by the guest."
38377 msgstr ""
38378
38379 #. type: textblock
38380 #: ../src/guestfs.pod:1289
38381 msgid ""
38382 "This in itself would not be a problem, but qcow2 offers many features, one "
38383 "of which is to allow a disk image to refer to another image (called the "
38384 "\"backing disk\").  It does this by placing the path to the backing disk "
38385 "into the qcow2 header.  This path is not validated and could point to any "
38386 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
38387 "\"holes\" in the qcow2 disk image, which of course is completely under the "
38388 "control of the attacker."
38389 msgstr ""
38390
38391 #. type: textblock
38392 #: ../src/guestfs.pod:1297
38393 msgid ""
38394 "In libguestfs this is rather hard to exploit except under two circumstances:"
38395 msgstr ""
38396
38397 #. type: textblock
38398 #: ../src/guestfs.pod:1304
38399 msgid "You have enabled the network or have opened the disk in write mode."
38400 msgstr ""
38401
38402 #. type: textblock
38403 #: ../src/guestfs.pod:1308
38404 msgid ""
38405 "You are also running untrusted code from the guest (see L</RUNNING "
38406 "COMMANDS>)."
38407 msgstr ""
38408
38409 #. type: textblock
38410 #: ../src/guestfs.pod:1313
38411 msgid ""
38412 "The way to avoid this is to specify the expected disk format when adding "
38413 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
38414 "should always do this if the disk is raw format, and it's a good idea for "
38415 "other cases too."
38416 msgstr ""
38417
38418 #. type: textblock
38419 #: ../src/guestfs.pod:1318
38420 msgid ""
38421 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
38422 "format is fetched from libvirt and passed through."
38423 msgstr ""
38424
38425 #. type: textblock
38426 #: ../src/guestfs.pod:1321
38427 msgid ""
38428 "For libguestfs tools, use the I<--format> command line parameter as "
38429 "appropriate."
38430 msgstr ""
38431
38432 #. type: =head1
38433 #: ../src/guestfs.pod:1324
38434 msgid "CONNECTION MANAGEMENT"
38435 msgstr ""
38436
38437 #. type: =head2
38438 #: ../src/guestfs.pod:1326
38439 msgid "guestfs_h *"
38440 msgstr ""
38441
38442 #. type: textblock
38443 #: ../src/guestfs.pod:1328
38444 msgid ""
38445 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
38446 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
38447 "handle and release all resources used."
38448 msgstr ""
38449
38450 #. type: textblock
38451 #: ../src/guestfs.pod:1332
38452 msgid ""
38453 "For information on using multiple handles and threads, see the section L</"
38454 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
38455 msgstr ""
38456
38457 #. type: =head2
38458 #: ../src/guestfs.pod:1335
38459 msgid "guestfs_create"
38460 msgstr ""
38461
38462 #. type: verbatim
38463 #: ../src/guestfs.pod:1337
38464 #, no-wrap
38465 msgid ""
38466 " guestfs_h *guestfs_create (void);\n"
38467 "\n"
38468 msgstr ""
38469
38470 #. type: textblock
38471 #: ../src/guestfs.pod:1339
38472 msgid "Create a connection handle."
38473 msgstr ""
38474
38475 #. type: textblock
38476 #: ../src/guestfs.pod:1341
38477 msgid ""
38478 "On success this returns a non-NULL pointer to a handle.  On error it returns "
38479 "NULL."
38480 msgstr ""
38481
38482 #. type: textblock
38483 #: ../src/guestfs.pod:1344
38484 msgid ""
38485 "You have to \"configure\" the handle after creating it.  This includes "
38486 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
38487 "handle at least once."
38488 msgstr ""
38489
38490 #. type: textblock
38491 #: ../src/guestfs.pod:1348
38492 msgid "After configuring the handle, you have to call L</guestfs_launch>."
38493 msgstr ""
38494
38495 #. type: textblock
38496 #: ../src/guestfs.pod:1350
38497 msgid ""
38498 "You may also want to configure error handling for the handle.  See the L</"
38499 "ERROR HANDLING> section below."
38500 msgstr ""
38501
38502 #. type: =head2
38503 #: ../src/guestfs.pod:1353
38504 msgid "guestfs_close"
38505 msgstr ""
38506
38507 #. type: verbatim
38508 #: ../src/guestfs.pod:1355
38509 #, no-wrap
38510 msgid ""
38511 " void guestfs_close (guestfs_h *g);\n"
38512 "\n"
38513 msgstr ""
38514
38515 #. type: textblock
38516 #: ../src/guestfs.pod:1357
38517 msgid "This closes the connection handle and frees up all resources used."
38518 msgstr ""
38519
38520 #. type: textblock
38521 #: ../src/guestfs.pod:1359
38522 msgid ""
38523 "If autosync was set on the handle and the handle was launched, then this "
38524 "implicitly calls various functions to unmount filesystems and sync the "
38525 "disk.  See L</guestfs_set_autosync> for more details."
38526 msgstr ""
38527
38528 #. type: textblock
38529 #: ../src/guestfs.pod:1363
38530 msgid "If a close callback was set on the handle, then it is called."
38531 msgstr ""
38532
38533 #. type: =head1
38534 #: ../src/guestfs.pod:1365
38535 msgid "ERROR HANDLING"
38536 msgstr ""
38537
38538 #. type: textblock
38539 #: ../src/guestfs.pod:1367
38540 msgid ""
38541 "API functions can return errors.  For example, almost all functions that "
38542 "return C<int> will return C<-1> to indicate an error."
38543 msgstr ""
38544
38545 #. type: textblock
38546 #: ../src/guestfs.pod:1370
38547 msgid ""
38548 "Additional information is available for errors: an error message string and "
38549 "optionally an error number (errno) if the thing that failed was a system "
38550 "call."
38551 msgstr ""
38552
38553 #. type: textblock
38554 #: ../src/guestfs.pod:1374
38555 msgid ""
38556 "You can get at the additional information about the last error on the handle "
38557 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38558 "up an error handler with L</guestfs_set_error_handler>."
38559 msgstr ""
38560
38561 #. type: textblock
38562 #: ../src/guestfs.pod:1379
38563 msgid ""
38564 "When the handle is created, a default error handler is installed which "
38565 "prints the error message string to C<stderr>.  For small short-running "
38566 "command line programs it is sufficient to do:"
38567 msgstr ""
38568
38569 #. type: verbatim
38570 #: ../src/guestfs.pod:1383
38571 #, no-wrap
38572 msgid ""
38573 " if (guestfs_launch (g) == -1)\n"
38574 "   exit (EXIT_FAILURE);\n"
38575 "\n"
38576 msgstr ""
38577
38578 #. type: textblock
38579 #: ../src/guestfs.pod:1386
38580 msgid ""
38581 "since the default error handler will ensure that an error message has been "
38582 "printed to C<stderr> before the program exits."
38583 msgstr ""
38584
38585 #. type: textblock
38586 #: ../src/guestfs.pod:1389
38587 msgid ""
38588 "For other programs the caller will almost certainly want to install an "
38589 "alternate error handler or do error handling in-line like this:"
38590 msgstr ""
38591
38592 #. type: verbatim
38593 #: ../src/guestfs.pod:1392
38594 #, no-wrap
38595 msgid ""
38596 " /* This disables the default behaviour of printing errors\n"
38597 "    on stderr. */\n"
38598 " guestfs_set_error_handler (g, NULL, NULL);\n"
38599 " \n"
38600 msgstr ""
38601
38602 #. type: verbatim
38603 #: ../src/guestfs.pod:1396
38604 #, no-wrap
38605 msgid ""
38606 " if (guestfs_launch (g) == -1) {\n"
38607 "   /* Examine the error message and print it etc. */\n"
38608 "   char *msg = guestfs_last_error (g);\n"
38609 "   int errnum = guestfs_last_errno (g);\n"
38610 "   fprintf (stderr, \"%s\", msg);\n"
38611 "   if (errnum != 0)\n"
38612 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
38613 "   fprintf (stderr, \"\\n\");\n"
38614 "   /* ... */\n"
38615 " }\n"
38616 "\n"
38617 msgstr ""
38618
38619 #. type: textblock
38620 #: ../src/guestfs.pod:1407
38621 msgid ""
38622 "Out of memory errors are handled differently.  The default action is to call "
38623 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
38624 "guestfs_set_out_of_memory_handler>."
38625 msgstr ""
38626
38627 #. type: textblock
38628 #: ../src/guestfs.pod:1411
38629 msgid ""
38630 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38631 "because there is no handle if this happens there is no way to get additional "
38632 "error information.  However L</guestfs_create> is supposed to be a "
38633 "lightweight operation which can only fail because of insufficient memory (it "
38634 "returns NULL in this case)."
38635 msgstr ""
38636
38637 #. type: =head2
38638 #: ../src/guestfs.pod:1417
38639 msgid "guestfs_last_error"
38640 msgstr ""
38641
38642 #. type: verbatim
38643 #: ../src/guestfs.pod:1419
38644 #, no-wrap
38645 msgid ""
38646 " const char *guestfs_last_error (guestfs_h *g);\n"
38647 "\n"
38648 msgstr ""
38649
38650 #. type: textblock
38651 #: ../src/guestfs.pod:1421
38652 msgid ""
38653 "This returns the last error message that happened on C<g>.  If there has not "
38654 "been an error since the handle was created, then this returns C<NULL>."
38655 msgstr ""
38656
38657 #. type: textblock
38658 #: ../src/guestfs.pod:1425
38659 msgid ""
38660 "The lifetime of the returned string is until the next error occurs, or L</"
38661 "guestfs_close> is called."
38662 msgstr ""
38663
38664 #. type: =head2
38665 #: ../src/guestfs.pod:1428
38666 msgid "guestfs_last_errno"
38667 msgstr ""
38668
38669 #. type: verbatim
38670 #: ../src/guestfs.pod:1430
38671 #, no-wrap
38672 msgid ""
38673 " int guestfs_last_errno (guestfs_h *g);\n"
38674 "\n"
38675 msgstr ""
38676
38677 #. type: textblock
38678 #: ../src/guestfs.pod:1432
38679 msgid "This returns the last error number (errno) that happened on C<g>."
38680 msgstr ""
38681
38682 #. type: textblock
38683 #: ../src/guestfs.pod:1434
38684 msgid "If successful, an errno integer not equal to zero is returned."
38685 msgstr ""
38686
38687 #. type: textblock
38688 #: ../src/guestfs.pod:1436
38689 msgid ""
38690 "If no error, this returns 0.  This call can return 0 in three situations:"
38691 msgstr ""
38692
38693 #. type: textblock
38694 #: ../src/guestfs.pod:1443
38695 msgid "There has not been any error on the handle."
38696 msgstr ""
38697
38698 #. type: textblock
38699 #: ../src/guestfs.pod:1447
38700 msgid ""
38701 "There has been an error but the errno was meaningless.  This corresponds to "
38702 "the case where the error did not come from a failed system call, but for "
38703 "some other reason."
38704 msgstr ""
38705
38706 #. type: textblock
38707 #: ../src/guestfs.pod:1453
38708 msgid ""
38709 "There was an error from a failed system call, but for some reason the errno "
38710 "was not captured and returned.  This usually indicates a bug in libguestfs."
38711 msgstr ""
38712
38713 #. type: textblock
38714 #: ../src/guestfs.pod:1459
38715 msgid ""
38716 "Libguestfs tries to convert the errno from inside the applicance into a "
38717 "corresponding errno for the caller (not entirely trivial: the appliance "
38718 "might be running a completely different operating system from the library "
38719 "and error numbers are not standardized across Un*xen).  If this could not be "
38720 "done, then the error is translated to C<EINVAL>.  In practice this should "
38721 "only happen in very rare circumstances."
38722 msgstr ""
38723
38724 #. type: =head2
38725 #: ../src/guestfs.pod:1467
38726 msgid "guestfs_set_error_handler"
38727 msgstr ""
38728
38729 #. type: verbatim
38730 #: ../src/guestfs.pod:1469
38731 #, no-wrap
38732 msgid ""
38733 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38734 "                                           void *opaque,\n"
38735 "                                           const char *msg);\n"
38736 " void guestfs_set_error_handler (guestfs_h *g,\n"
38737 "                                 guestfs_error_handler_cb cb,\n"
38738 "                                 void *opaque);\n"
38739 "\n"
38740 msgstr ""
38741
38742 #. type: textblock
38743 #: ../src/guestfs.pod:1476
38744 msgid ""
38745 "The callback C<cb> will be called if there is an error.  The parameters "
38746 "passed to the callback are an opaque data pointer and the error message "
38747 "string."
38748 msgstr ""
38749
38750 #. type: textblock
38751 #: ../src/guestfs.pod:1480
38752 msgid ""
38753 "C<errno> is not passed to the callback.  To get that the callback must call "
38754 "L</guestfs_last_errno>."
38755 msgstr ""
38756
38757 #. type: textblock
38758 #: ../src/guestfs.pod:1483
38759 msgid ""
38760 "Note that the message string C<msg> is freed as soon as the callback "
38761 "function returns, so if you want to stash it somewhere you must make your "
38762 "own copy."
38763 msgstr ""
38764
38765 #. type: textblock
38766 #: ../src/guestfs.pod:1487
38767 msgid "The default handler prints messages on C<stderr>."
38768 msgstr ""
38769
38770 #. type: textblock
38771 #: ../src/guestfs.pod:1489
38772 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38773 msgstr ""
38774
38775 #. type: =head2
38776 #: ../src/guestfs.pod:1491
38777 msgid "guestfs_get_error_handler"
38778 msgstr ""
38779
38780 #. type: verbatim
38781 #: ../src/guestfs.pod:1493
38782 #, no-wrap
38783 msgid ""
38784 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38785 "                                                     void **opaque_rtn);\n"
38786 "\n"
38787 msgstr ""
38788
38789 #. type: textblock
38790 #: ../src/guestfs.pod:1496
38791 msgid "Returns the current error handler callback."
38792 msgstr ""
38793
38794 #. type: =head2
38795 #: ../src/guestfs.pod:1498
38796 msgid "guestfs_set_out_of_memory_handler"
38797 msgstr ""
38798
38799 #. type: verbatim
38800 #: ../src/guestfs.pod:1500
38801 #, no-wrap
38802 msgid ""
38803 " typedef void (*guestfs_abort_cb) (void);\n"
38804 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38805 "                                         guestfs_abort_cb);\n"
38806 "\n"
38807 msgstr ""
38808
38809 #. type: textblock
38810 #: ../src/guestfs.pod:1504
38811 msgid ""
38812 "The callback C<cb> will be called if there is an out of memory situation.  "
38813 "I<Note this callback must not return>."
38814 msgstr ""
38815
38816 #. type: textblock
38817 #: ../src/guestfs.pod:1507
38818 msgid "The default is to call L<abort(3)>."
38819 msgstr ""
38820
38821 #. type: textblock
38822 #: ../src/guestfs.pod:1509
38823 msgid ""
38824 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
38825 msgstr ""
38826
38827 #. type: =head2
38828 #: ../src/guestfs.pod:1512
38829 msgid "guestfs_get_out_of_memory_handler"
38830 msgstr ""
38831
38832 #. type: verbatim
38833 #: ../src/guestfs.pod:1514
38834 #, no-wrap
38835 msgid ""
38836 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38837 "\n"
38838 msgstr ""
38839
38840 #. type: textblock
38841 #: ../src/guestfs.pod:1516
38842 msgid "This returns the current out of memory handler."
38843 msgstr ""
38844
38845 #. type: =head1
38846 #: ../src/guestfs.pod:1518
38847 msgid "API CALLS"
38848 msgstr ""
38849
38850 #. type: =head1
38851 #: ../src/guestfs.pod:1522
38852 msgid "STRUCTURES"
38853 msgstr ""
38854
38855 #. type: textblock
38856 #: ../src/guestfs.pod:1524
38857 msgid "@STRUCTS@"
38858 msgstr ""
38859
38860 #. type: =head1
38861 #: ../src/guestfs.pod:1526
38862 msgid "AVAILABILITY"
38863 msgstr ""
38864
38865 #. type: =head2
38866 #: ../src/guestfs.pod:1528
38867 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38868 msgstr ""
38869
38870 #. type: textblock
38871 #: ../src/guestfs.pod:1530
38872 msgid ""
38873 "Using L</guestfs_available> you can test availability of the following "
38874 "groups of functions.  This test queries the appliance to see if the "
38875 "appliance you are currently using supports the functionality."
38876 msgstr ""
38877
38878 #. type: textblock
38879 #: ../src/guestfs.pod:1535
38880 msgid "@AVAILABILITY@"
38881 msgstr ""
38882
38883 #. type: =head2
38884 #: ../src/guestfs.pod:1537
38885 msgid "GUESTFISH supported COMMAND"
38886 msgstr ""
38887
38888 #. type: textblock
38889 #: ../src/guestfs.pod:1539
38890 msgid ""
38891 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38892 "prints out the available groups and whether they are supported by this build "
38893 "of libguestfs.  Note however that you have to do C<run> first."
38894 msgstr ""
38895
38896 #. type: =head2
38897 #: ../src/guestfs.pod:1544
38898 msgid "SINGLE CALLS AT COMPILE TIME"
38899 msgstr ""
38900
38901 #. type: textblock
38902 #: ../src/guestfs.pod:1546
38903 msgid ""
38904 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38905 "function, such as:"
38906 msgstr ""
38907
38908 #. type: verbatim
38909 #: ../src/guestfs.pod:1549
38910 #, no-wrap
38911 msgid ""
38912 " #define LIBGUESTFS_HAVE_DD 1\n"
38913 "\n"
38914 msgstr ""
38915
38916 #. type: textblock
38917 #: ../src/guestfs.pod:1551
38918 msgid "if L</guestfs_dd> is available."
38919 msgstr ""
38920
38921 #. type: textblock
38922 #: ../src/guestfs.pod:1553
38923 msgid ""
38924 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38925 "function is available at compile time, we recommended using build tools such "
38926 "as autoconf or cmake.  For example in autotools you could use:"
38927 msgstr ""
38928
38929 #. type: verbatim
38930 #: ../src/guestfs.pod:1558
38931 #, no-wrap
38932 msgid ""
38933 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38934 " AC_CHECK_FUNCS([guestfs_dd])\n"
38935 "\n"
38936 msgstr ""
38937
38938 #. type: textblock
38939 #: ../src/guestfs.pod:1561
38940 msgid ""
38941 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38942 "in your program."
38943 msgstr ""
38944
38945 #. type: =head2
38946 #: ../src/guestfs.pod:1564
38947 msgid "SINGLE CALLS AT RUN TIME"
38948 msgstr ""
38949
38950 #. type: textblock
38951 #: ../src/guestfs.pod:1566
38952 msgid ""
38953 "Testing at compile time doesn't guarantee that a function really exists in "
38954 "the library.  The reason is that you might be dynamically linked against a "
38955 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
38956 "This situation unfortunately results in a segmentation fault, which is a "
38957 "shortcoming of the C dynamic linking system itself."
38958 msgstr ""
38959
38960 #. type: textblock
38961 #: ../src/guestfs.pod:1573
38962 msgid ""
38963 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38964 "in this example program (note that you still need the compile time check as "
38965 "well):"
38966 msgstr ""
38967
38968 #. type: verbatim
38969 #: ../src/guestfs.pod:1577
38970 #, no-wrap
38971 msgid ""
38972 " #include <stdio.h>\n"
38973 " #include <stdlib.h>\n"
38974 " #include <unistd.h>\n"
38975 " #include <dlfcn.h>\n"
38976 " #include <guestfs.h>\n"
38977 " \n"
38978 msgstr ""
38979
38980 #. type: verbatim
38981 #: ../src/guestfs.pod:1583
38982 #, no-wrap
38983 msgid ""
38984 " main ()\n"
38985 " {\n"
38986 " #ifdef LIBGUESTFS_HAVE_DD\n"
38987 "   void *dl;\n"
38988 "   int has_function;\n"
38989 " \n"
38990 msgstr ""
38991
38992 #. type: verbatim
38993 #: ../src/guestfs.pod:1589
38994 #, no-wrap
38995 msgid ""
38996 "   /* Test if the function guestfs_dd is really available. */\n"
38997 "   dl = dlopen (NULL, RTLD_LAZY);\n"
38998 "   if (!dl) {\n"
38999 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
39000 "     exit (EXIT_FAILURE);\n"
39001 "   }\n"
39002 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
39003 "   dlclose (dl);\n"
39004 " \n"
39005 msgstr ""
39006
39007 #. type: verbatim
39008 #: ../src/guestfs.pod:1598
39009 #, no-wrap
39010 msgid ""
39011 "   if (!has_function)\n"
39012 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
39013 "   else {\n"
39014 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
39015 "     /* Now it's safe to call\n"
39016 "     guestfs_dd (g, \"foo\", \"bar\");\n"
39017 "     */\n"
39018 "   }\n"
39019 " #else\n"
39020 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
39021 " #endif\n"
39022 "  }\n"
39023 "\n"
39024 msgstr ""
39025
39026 #. type: textblock
39027 #: ../src/guestfs.pod:1611
39028 msgid ""
39029 "You may think the above is an awful lot of hassle, and it is.  There are "
39030 "other ways outside of the C linking system to ensure that this kind of "
39031 "incompatibility never arises, such as using package versioning:"
39032 msgstr ""
39033
39034 #. type: verbatim
39035 #: ../src/guestfs.pod:1616
39036 #, no-wrap
39037 msgid ""
39038 " Requires: libguestfs >= 1.0.80\n"
39039 "\n"
39040 msgstr ""
39041
39042 #. type: =head1
39043 #: ../src/guestfs.pod:1618
39044 msgid "CALLS WITH OPTIONAL ARGUMENTS"
39045 msgstr ""
39046
39047 #. type: textblock
39048 #: ../src/guestfs.pod:1620
39049 msgid ""
39050 "A recent feature of the API is the introduction of calls which take optional "
39051 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
39052 "takes variable arguments (ie. C<...>), as in this example:"
39053 msgstr ""
39054
39055 #. type: verbatim
39056 #: ../src/guestfs.pod:1625
39057 #, no-wrap
39058 msgid ""
39059 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
39060 "\n"
39061 msgstr ""
39062
39063 #. type: textblock
39064 #: ../src/guestfs.pod:1627
39065 msgid ""
39066 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
39067 "call with no optional arguments specified:"
39068 msgstr ""
39069
39070 #. type: verbatim
39071 #: ../src/guestfs.pod:1630
39072 #, no-wrap
39073 msgid ""
39074 " guestfs_add_drive_opts (g, filename, -1);\n"
39075 "\n"
39076 msgstr ""
39077
39078 #. type: textblock
39079 #: ../src/guestfs.pod:1632
39080 msgid "With a single optional argument:"
39081 msgstr ""
39082
39083 #. type: verbatim
39084 #: ../src/guestfs.pod:1634
39085 #, no-wrap
39086 msgid ""
39087 " guestfs_add_drive_opts (g, filename,\n"
39088 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39089 "                         -1);\n"
39090 "\n"
39091 msgstr ""
39092
39093 #. type: textblock
39094 #: ../src/guestfs.pod:1638
39095 msgid "With two:"
39096 msgstr ""
39097
39098 #. type: verbatim
39099 #: ../src/guestfs.pod:1640
39100 #, no-wrap
39101 msgid ""
39102 " guestfs_add_drive_opts (g, filename,\n"
39103 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39104 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
39105 "                         -1);\n"
39106 "\n"
39107 msgstr ""
39108
39109 #. type: textblock
39110 #: ../src/guestfs.pod:1645
39111 msgid ""
39112 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
39113 "happen!"
39114 msgstr ""
39115
39116 #. type: =head2
39117 #: ../src/guestfs.pod:1648
39118 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
39119 msgstr ""
39120
39121 #. type: textblock
39122 #: ../src/guestfs.pod:1650
39123 msgid ""
39124 "The second variant has the same name with the suffix C<_va>, which works the "
39125 "same way but takes a C<va_list>.  See the C manual for details.  For the "
39126 "example function, this is declared:"
39127 msgstr ""
39128
39129 #. type: verbatim
39130 #: ../src/guestfs.pod:1654
39131 #, no-wrap
39132 msgid ""
39133 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
39134 "                                va_list args);\n"
39135 "\n"
39136 msgstr ""
39137
39138 #. type: =head2
39139 #: ../src/guestfs.pod:1657
39140 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
39141 msgstr ""
39142
39143 #. type: textblock
39144 #: ../src/guestfs.pod:1659
39145 msgid ""
39146 "The third variant is useful where you need to construct these calls.  You "
39147 "pass in a structure where you fill in the optional fields.  The structure "
39148 "has a bitmask as the first element which you must set to indicate which "
39149 "fields you have filled in.  For our example function the structure and call "
39150 "are declared:"
39151 msgstr ""
39152
39153 #. type: verbatim
39154 #: ../src/guestfs.pod:1665
39155 #, no-wrap
39156 msgid ""
39157 " struct guestfs_add_drive_opts_argv {\n"
39158 "   uint64_t bitmask;\n"
39159 "   int readonly;\n"
39160 "   const char *format;\n"
39161 "   /* ... */\n"
39162 " };\n"
39163 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
39164 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
39165 "\n"
39166 msgstr ""
39167
39168 #. type: textblock
39169 #: ../src/guestfs.pod:1674
39170 msgid "You could call it like this:"
39171 msgstr ""
39172
39173 #. type: verbatim
39174 #: ../src/guestfs.pod:1676
39175 #, no-wrap
39176 msgid ""
39177 " struct guestfs_add_drive_opts_argv optargs = {\n"
39178 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
39179 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
39180 "   .readonly = 1,\n"
39181 "   .format = \"qcow2\"\n"
39182 " };\n"
39183 " \n"
39184 msgstr ""
39185
39186 #. type: verbatim
39187 #: ../src/guestfs.pod:1683
39188 #, no-wrap
39189 msgid ""
39190 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
39191 "\n"
39192 msgstr ""
39193
39194 #. type: textblock
39195 #: ../src/guestfs.pod:1691
39196 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
39197 msgstr ""
39198
39199 #. type: textblock
39200 #: ../src/guestfs.pod:1696
39201 msgid "You do not need to fill in all fields of the structure."
39202 msgstr ""
39203
39204 #. type: textblock
39205 #: ../src/guestfs.pod:1700
39206 msgid ""
39207 "There must be a one-to-one correspondence between fields of the structure "
39208 "that are filled in, and bits set in the bitmask."
39209 msgstr ""
39210
39211 #. type: =head2
39212 #: ../src/guestfs.pod:1705
39213 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
39214 msgstr ""
39215
39216 #. type: textblock
39217 #: ../src/guestfs.pod:1707
39218 msgid ""
39219 "In other languages, optional arguments are expressed in the way that is "
39220 "natural for that language.  We refer you to the language-specific "
39221 "documentation for more details on that."
39222 msgstr ""
39223
39224 #. type: textblock
39225 #: ../src/guestfs.pod:1711
39226 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
39227 msgstr ""
39228
39229 #. type: =head2
39230 #: ../src/guestfs.pod:1713
39231 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
39232 msgstr ""
39233
39234 #. type: textblock
39235 #: ../src/guestfs.pod:1715
39236 msgid ""
39237 "B<Note:> This section documents the generic event mechanism introduced in "
39238 "libguestfs 1.10, which you should use in new code if possible.  The old "
39239 "functions C<guestfs_set_log_message_callback>, "
39240 "C<guestfs_set_subprocess_quit_callback>, "
39241 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
39242 "C<guestfs_set_progress_callback> are no longer documented in this manual "
39243 "page.  Because of the ABI guarantee, the old functions continue to work."
39244 msgstr ""
39245
39246 #. type: textblock
39247 #: ../src/guestfs.pod:1724
39248 msgid ""
39249 "Handles generate events when certain things happen, such as log messages "
39250 "being generated, progress messages during long-running operations, or the "
39251 "handle being closed.  The API calls described below let you register a "
39252 "callback to be called when events happen.  You can register multiple "
39253 "callbacks (for the same, different or overlapping sets of events), and "
39254 "individually remove callbacks.  If callbacks are not removed, then they "
39255 "remain in force until the handle is closed."
39256 msgstr ""
39257
39258 #. type: textblock
39259 #: ../src/guestfs.pod:1732
39260 msgid ""
39261 "In the current implementation, events are only generated synchronously: that "
39262 "means that events (and hence callbacks) can only happen while you are in the "
39263 "middle of making another libguestfs call.  The callback is called in the "
39264 "same thread."
39265 msgstr ""
39266
39267 #. type: textblock
39268 #: ../src/guestfs.pod:1737
39269 msgid ""
39270 "Events may contain a payload, usually nothing (void), an array of 64 bit "
39271 "unsigned integers, or a message buffer.  Payloads are discussed later on."
39272 msgstr ""
39273
39274 #. type: =head3
39275 #: ../src/guestfs.pod:1741
39276 msgid "CLASSES OF EVENTS"
39277 msgstr ""
39278
39279 #. type: =item
39280 #: ../src/guestfs.pod:1745
39281 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
39282 msgstr ""
39283
39284 #. type: textblock
39285 #: ../src/guestfs.pod:1748
39286 msgid ""
39287 "The callback function will be called while the handle is being closed "
39288 "(synchronously from L</guestfs_close>)."
39289 msgstr ""
39290
39291 #. type: textblock
39292 #: ../src/guestfs.pod:1751
39293 msgid ""
39294 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
39295 "handles that are open when the program exits.  This means that this callback "
39296 "might be called indirectly from L<exit(3)>, which can cause unexpected "
39297 "problems in higher-level languages (eg. if your HLL interpreter has already "
39298 "been cleaned up by the time this is called, and if your callback then jumps "
39299 "into some HLL function)."
39300 msgstr ""
39301
39302 #. type: textblock
39303 #: ../src/guestfs.pod:1758
39304 msgid ""
39305 "If no callback is registered: the handle is closed without any callback "
39306 "being invoked."
39307 msgstr ""
39308
39309 #. type: =item
39310 #: ../src/guestfs.pod:1761
39311 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
39312 msgstr ""
39313
39314 #. type: textblock
39315 #: ../src/guestfs.pod:1764
39316 msgid ""
39317 "The callback function will be called when the child process quits, either "
39318 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
39319 "corresponds to a transition from any state to the CONFIG state)."
39320 msgstr ""
39321
39322 #. type: textblock
39323 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
39324 msgid "If no callback is registered: the event is ignored."
39325 msgstr ""
39326
39327 #. type: =item
39328 #: ../src/guestfs.pod:1770
39329 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
39330 msgstr ""
39331
39332 #. type: textblock
39333 #: ../src/guestfs.pod:1773
39334 msgid ""
39335 "The callback function will be called when the child process becomes ready "
39336 "first time after it has been launched.  (This corresponds to a transition "
39337 "from LAUNCHING to the READY state)."
39338 msgstr ""
39339
39340 #. type: =item
39341 #: ../src/guestfs.pod:1779
39342 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
39343 msgstr ""
39344
39345 #. type: textblock
39346 #: ../src/guestfs.pod:1782
39347 msgid ""
39348 "Some long-running operations can generate progress messages.  If this "
39349 "callback is registered, then it will be called each time a progress message "
39350 "is generated (usually two seconds after the operation started, and three "
39351 "times per second thereafter until it completes, although the frequency may "
39352 "change in future versions)."
39353 msgstr ""
39354
39355 #. type: textblock
39356 #: ../src/guestfs.pod:1788
39357 msgid ""
39358 "The callback receives in the payload four unsigned 64 bit numbers which are "
39359 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
39360 msgstr ""
39361
39362 #. type: textblock
39363 #: ../src/guestfs.pod:1791
39364 msgid ""
39365 "The units of C<total> are not defined, although for some operations C<total> "
39366 "may relate in some way to the amount of data to be transferred (eg. in bytes "
39367 "or megabytes), and C<position> may be the portion which has been transferred."
39368 msgstr ""
39369
39370 #. type: textblock
39371 #: ../src/guestfs.pod:1796
39372 msgid "The only defined and stable parts of the API are:"
39373 msgstr ""
39374
39375 #. type: textblock
39376 #: ../src/guestfs.pod:1802
39377 msgid ""
39378 "The callback can display to the user some type of progress bar or indicator "
39379 "which shows the ratio of C<position>:C<total>."
39380 msgstr ""
39381
39382 #. type: textblock
39383 #: ../src/guestfs.pod:1807
39384 msgid "0 E<lt>= C<position> E<lt>= C<total>"
39385 msgstr ""
39386
39387 #. type: textblock
39388 #: ../src/guestfs.pod:1811
39389 msgid ""
39390 "If any progress notification is sent during a call, then a final progress "
39391 "notification is always sent when C<position> = C<total> (I<unless> the call "
39392 "fails with an error)."
39393 msgstr ""
39394
39395 #. type: textblock
39396 #: ../src/guestfs.pod:1815
39397 msgid ""
39398 "This is to simplify caller code, so callers can easily set the progress "
39399 "indicator to \"100%\" at the end of the operation, without requiring special "
39400 "code to detect this case."
39401 msgstr ""
39402
39403 #. type: textblock
39404 #: ../src/guestfs.pod:1821
39405 msgid ""
39406 "For some calls we are unable to estimate the progress of the call, but we "
39407 "can still generate progress messages to indicate activity.  This is known as "
39408 "\"pulse mode\", and is directly supported by certain progress bar "
39409 "implementations (eg. GtkProgressBar)."
39410 msgstr ""
39411
39412 #. type: textblock
39413 #: ../src/guestfs.pod:1826
39414 msgid ""
39415 "For these calls, zero or more progress messages are generated with "
39416 "C<position = 0> and C<total = 1>, followed by a final message with "
39417 "C<position = total = 1>."
39418 msgstr ""
39419
39420 #. type: textblock
39421 #: ../src/guestfs.pod:1830
39422 msgid ""
39423 "As noted above, if the call fails with an error then the final message may "
39424 "not be generated."
39425 msgstr ""
39426
39427 #. type: textblock
39428 #: ../src/guestfs.pod:1835
39429 msgid ""
39430 "The callback also receives the procedure number (C<proc_nr>) and serial "
39431 "number (C<serial>) of the call.  These are only useful for debugging "
39432 "protocol issues, and the callback can normally ignore them.  The callback "
39433 "may want to print these numbers in error messages or debugging messages."
39434 msgstr ""
39435
39436 #. type: textblock
39437 #: ../src/guestfs.pod:1841
39438 msgid "If no callback is registered: progress messages are discarded."
39439 msgstr ""
39440
39441 #. type: =item
39442 #: ../src/guestfs.pod:1843
39443 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39444 msgstr ""
39445
39446 #. type: textblock
39447 #: ../src/guestfs.pod:1846
39448 msgid ""
39449 "The callback function is called whenever a log message is generated by qemu, "
39450 "the appliance kernel, guestfsd (daemon), or utility programs."
39451 msgstr ""
39452
39453 #. type: textblock
39454 #: ../src/guestfs.pod:1849
39455 msgid ""
39456 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39457 "guestfs_launch>) then additional debug messages are generated."
39458 msgstr ""
39459
39460 #. type: textblock
39461 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39462 msgid ""
39463 "If no callback is registered: the messages are discarded unless the verbose "
39464 "flag is set in which case they are sent to stderr.  You can override the "
39465 "printing of verbose messages to stderr by setting up a callback."
39466 msgstr ""
39467
39468 #. type: =item
39469 #: ../src/guestfs.pod:1857
39470 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39471 msgstr ""
39472
39473 #. type: textblock
39474 #: ../src/guestfs.pod:1860
39475 msgid ""
39476 "The callback function is called whenever a log message is generated by the "
39477 "library part of libguestfs."
39478 msgstr ""
39479
39480 #. type: textblock
39481 #: ../src/guestfs.pod:1863
39482 msgid ""
39483 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39484 "messages are generated."
39485 msgstr ""
39486
39487 #. type: =item
39488 #: ../src/guestfs.pod:1871
39489 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39490 msgstr ""
39491
39492 #. type: textblock
39493 #: ../src/guestfs.pod:1874
39494 msgid ""
39495 "The callback function is called whenever a trace message is generated.  This "
39496 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39497 msgstr ""
39498
39499 #. type: textblock
39500 #: ../src/guestfs.pod:1877
39501 msgid ""
39502 "If no callback is registered: the messages are sent to stderr.  You can "
39503 "override the printing of trace messages to stderr by setting up a callback."
39504 msgstr ""
39505
39506 #. type: =item
39507 #: ../src/guestfs.pod:1881
39508 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39509 msgstr ""
39510
39511 #. type: textblock
39512 #: ../src/guestfs.pod:1884
39513 msgid ""
39514 "The callback function is called whenever a libguestfs function is entered."
39515 msgstr ""
39516
39517 #. type: textblock
39518 #: ../src/guestfs.pod:1887
39519 msgid ""
39520 "The payload is a string which contains the name of the function that we are "
39521 "entering (not including C<guestfs_> prefix)."
39522 msgstr ""
39523
39524 #. type: textblock
39525 #: ../src/guestfs.pod:1890
39526 msgid ""
39527 "Note that libguestfs functions can call themselves, so you may see many "
39528 "events from a single call.  A few libguestfs functions do not generate this "
39529 "event."
39530 msgstr ""
39531
39532 #. type: =head3
39533 #: ../src/guestfs.pod:1898
39534 msgid "guestfs_set_event_callback"
39535 msgstr ""
39536
39537 #. type: verbatim
39538 #: ../src/guestfs.pod:1900
39539 #, no-wrap
39540 msgid ""
39541 " int guestfs_set_event_callback (guestfs_h *g,\n"
39542 "                                 guestfs_event_callback cb,\n"
39543 "                                 uint64_t event_bitmask,\n"
39544 "                                 int flags,\n"
39545 "                                 void *opaque);\n"
39546 "\n"
39547 msgstr ""
39548
39549 #. type: textblock
39550 #: ../src/guestfs.pod:1906
39551 msgid ""
39552 "This function registers a callback (C<cb>) for all event classes in the "
39553 "C<event_bitmask>."
39554 msgstr ""
39555
39556 #. type: textblock
39557 #: ../src/guestfs.pod:1909
39558 msgid ""
39559 "For example, to register for all log message events, you could call this "
39560 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
39561 "To register a single callback for all possible classes of events, use "
39562 "C<GUESTFS_EVENT_ALL>."
39563 msgstr ""
39564
39565 #. type: textblock
39566 #: ../src/guestfs.pod:1915
39567 msgid "C<flags> should always be passed as 0."
39568 msgstr ""
39569
39570 #. type: textblock
39571 #: ../src/guestfs.pod:1917
39572 msgid ""
39573 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
39574 "it for any purpose."
39575 msgstr ""
39576
39577 #. type: textblock
39578 #: ../src/guestfs.pod:1920
39579 msgid ""
39580 "The return value is the event handle (an integer) which you can use to "
39581 "delete the callback (see below)."
39582 msgstr ""
39583
39584 #. type: textblock
39585 #: ../src/guestfs.pod:1923
39586 msgid ""
39587 "If there is an error, this function returns C<-1>, and sets the error in the "
39588 "handle in the usual way (see L</guestfs_last_error> etc.)"
39589 msgstr ""
39590
39591 #. type: textblock
39592 #: ../src/guestfs.pod:1926
39593 msgid ""
39594 "Callbacks remain in effect until they are deleted, or until the handle is "
39595 "closed."
39596 msgstr ""
39597
39598 #. type: textblock
39599 #: ../src/guestfs.pod:1929
39600 msgid ""
39601 "In the case where multiple callbacks are registered for a particular event "
39602 "class, all of the callbacks are called.  The order in which multiple "
39603 "callbacks are called is not defined."
39604 msgstr ""
39605
39606 #. type: =head3
39607 #: ../src/guestfs.pod:1933
39608 msgid "guestfs_delete_event_callback"
39609 msgstr ""
39610
39611 #. type: verbatim
39612 #: ../src/guestfs.pod:1935
39613 #, no-wrap
39614 msgid ""
39615 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39616 "\n"
39617 msgstr ""
39618
39619 #. type: textblock
39620 #: ../src/guestfs.pod:1937
39621 msgid ""
39622 "Delete a callback that was previously registered.  C<event_handle> should be "
39623 "the integer that was returned by a previous call to "
39624 "C<guestfs_set_event_callback> on the same handle."
39625 msgstr ""
39626
39627 #. type: =head3
39628 #: ../src/guestfs.pod:1941
39629 msgid "guestfs_event_callback"
39630 msgstr ""
39631
39632 #. type: verbatim
39633 #: ../src/guestfs.pod:1943
39634 #, no-wrap
39635 msgid ""
39636 " typedef void (*guestfs_event_callback) (\n"
39637 "                  guestfs_h *g,\n"
39638 "                  void *opaque,\n"
39639 "                  uint64_t event,\n"
39640 "                  int event_handle,\n"
39641 "                  int flags,\n"
39642 "                  const char *buf, size_t buf_len,\n"
39643 "                  const uint64_t *array, size_t array_len);\n"
39644 "\n"
39645 msgstr ""
39646
39647 #. type: textblock
39648 #: ../src/guestfs.pod:1952
39649 msgid ""
39650 "This is the type of the event callback function that you have to provide."
39651 msgstr ""
39652
39653 #. type: textblock
39654 #: ../src/guestfs.pod:1955
39655 msgid ""
39656 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39657 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39658 "handle, and C<flags> which in the current API you should ignore."
39659 msgstr ""
39660
39661 #. type: textblock
39662 #: ../src/guestfs.pod:1959
39663 msgid ""
39664 "The remaining parameters contain the event payload (if any).  Each event may "
39665 "contain a payload, which usually relates to the event class, but for future "
39666 "proofing your code should be written to handle any payload for any event "
39667 "class."
39668 msgstr ""
39669
39670 #. type: textblock
39671 #: ../src/guestfs.pod:1964
39672 msgid ""
39673 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39674 "there is no message buffer).  Note that this message buffer can contain "
39675 "arbitrary 8 bit data, including NUL bytes."
39676 msgstr ""
39677
39678 #. type: textblock
39679 #: ../src/guestfs.pod:1968
39680 msgid ""
39681 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
39682 "moment this is only used for progress messages."
39683 msgstr ""
39684
39685 #. type: =head3
39686 #: ../src/guestfs.pod:1971
39687 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39688 msgstr ""
39689
39690 #. type: textblock
39691 #: ../src/guestfs.pod:1973
39692 msgid ""
39693 "One motivation for the generic event API was to allow GUI programs to "
39694 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
39695 "unconditionally to C<stderr>."
39696 msgstr ""
39697
39698 #. type: textblock
39699 #: ../src/guestfs.pod:1977
39700 msgid ""
39701 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39702 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
39703 "messages are not events; you must capture error messages separately)."
39704 msgstr ""
39705
39706 #. type: textblock
39707 #: ../src/guestfs.pod:1982
39708 msgid ""
39709 "Programs have to set up a callback to capture the classes of events of "
39710 "interest:"
39711 msgstr ""
39712
39713 #. type: verbatim
39714 #: ../src/guestfs.pod:1985
39715 #, no-wrap
39716 msgid ""
39717 " int eh =\n"
39718 "   guestfs_set_event_callback\n"
39719 "     (g, message_callback,\n"
39720 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39721 "      GUESTFS_EVENT_TRACE,\n"
39722 "      0, NULL) == -1)\n"
39723 " if (eh == -1) {\n"
39724 "   // handle error in the usual way\n"
39725 " }\n"
39726 "\n"
39727 msgstr ""
39728
39729 #. type: textblock
39730 #: ../src/guestfs.pod:1995
39731 msgid ""
39732 "The callback can then direct messages to the appropriate place.  In this "
39733 "example, messages are directed to syslog:"
39734 msgstr ""
39735
39736 #. type: verbatim
39737 #: ../src/guestfs.pod:1998
39738 #, no-wrap
39739 msgid ""
39740 " static void\n"
39741 " message_callback (\n"
39742 "         guestfs_h *g,\n"
39743 "         void *opaque,\n"
39744 "         uint64_t event,\n"
39745 "         int event_handle,\n"
39746 "         int flags,\n"
39747 "         const char *buf, size_t buf_len,\n"
39748 "         const uint64_t *array, size_t array_len)\n"
39749 " {\n"
39750 "   const int priority = LOG_USER|LOG_INFO;\n"
39751 "   if (buf_len > 0)\n"
39752 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39753 " }\n"
39754 "\n"
39755 msgstr ""
39756
39757 #. type: =head1
39758 #: ../src/guestfs.pod:2013
39759 msgid "CANCELLING LONG TRANSFERS"
39760 msgstr ""
39761
39762 #. type: textblock
39763 #: ../src/guestfs.pod:2015
39764 msgid ""
39765 "Some operations can be cancelled by the caller while they are in progress.  "
39766 "Currently only operations that involve uploading or downloading data can be "
39767 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39768 "parameters in the generator)."
39769 msgstr ""
39770
39771 #. type: =head2
39772 #: ../src/guestfs.pod:2020
39773 msgid "guestfs_user_cancel"
39774 msgstr ""
39775
39776 #. type: verbatim
39777 #: ../src/guestfs.pod:2022
39778 #, no-wrap
39779 msgid ""
39780 " void guestfs_user_cancel (guestfs_h *g);\n"
39781 "\n"
39782 msgstr ""
39783
39784 #. type: textblock
39785 #: ../src/guestfs.pod:2024
39786 msgid ""
39787 "C<guestfs_user_cancel> cancels the current upload or download operation."
39788 msgstr ""
39789
39790 #. type: textblock
39791 #: ../src/guestfs.pod:2027
39792 msgid ""
39793 "Unlike most other libguestfs calls, this function is signal safe and thread "
39794 "safe.  You can call it from a signal handler or from another thread, without "
39795 "needing to do any locking."
39796 msgstr ""
39797
39798 #. type: textblock
39799 #: ../src/guestfs.pod:2031
39800 msgid ""
39801 "The transfer that was in progress (if there is one) will stop shortly "
39802 "afterwards, and will return an error.  The errno (see L</"
39803 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39804 "out if the operation was cancelled or failed because of another error."
39805 msgstr ""
39806
39807 #. type: textblock
39808 #: ../src/guestfs.pod:2037
39809 msgid ""
39810 "No cleanup is performed: for example, if a file was being uploaded then "
39811 "after cancellation there may be a partially uploaded file.  It is the "
39812 "caller's responsibility to clean up if necessary."
39813 msgstr ""
39814
39815 #. type: textblock
39816 #: ../src/guestfs.pod:2041
39817 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39818 msgstr ""
39819
39820 #. type: textblock
39821 #: ../src/guestfs.pod:2043
39822 msgid ""
39823 "In an interactive text-based program, you might call it from a C<SIGINT> "
39824 "signal handler so that pressing C<^C> cancels the current operation.  (You "
39825 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39826 "receive the C<^C> signal)."
39827 msgstr ""
39828
39829 #. type: textblock
39830 #: ../src/guestfs.pod:2048
39831 msgid ""
39832 "In a graphical program, when the main thread is displaying a progress bar "
39833 "with a cancel button, wire up the cancel button to call this function."
39834 msgstr ""
39835
39836 #. type: =head1
39837 #: ../src/guestfs.pod:2052
39838 msgid "PRIVATE DATA AREA"
39839 msgstr ""
39840
39841 #. type: textblock
39842 #: ../src/guestfs.pod:2054
39843 msgid ""
39844 "You can attach named pieces of private data to the libguestfs handle, fetch "
39845 "them by name, and walk over them, for the lifetime of the handle.  This is "
39846 "called the private data area and is only available from the C API."
39847 msgstr ""
39848
39849 #. type: textblock
39850 #: ../src/guestfs.pod:2059
39851 msgid "To attach a named piece of data, use the following call:"
39852 msgstr ""
39853
39854 #. type: verbatim
39855 #: ../src/guestfs.pod:2061
39856 #, no-wrap
39857 msgid ""
39858 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39859 "\n"
39860 msgstr ""
39861
39862 #. type: textblock
39863 #: ../src/guestfs.pod:2063
39864 msgid ""
39865 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39866 "pointer (which can be C<NULL>).  Any previous item with the same key is "
39867 "overwritten."
39868 msgstr ""
39869
39870 #. type: textblock
39871 #: ../src/guestfs.pod:2067
39872 msgid ""
39873 "You can use any C<key> you want, but your key should I<not> start with an "
39874 "underscore character.  Keys beginning with an underscore character are "
39875 "reserved for internal libguestfs purposes (eg. for implementing language "
39876 "bindings).  It is recommended that you prefix the key with some unique "
39877 "string to avoid collisions with other users."
39878 msgstr ""
39879
39880 #. type: textblock
39881 #: ../src/guestfs.pod:2073
39882 msgid "To retrieve the pointer, use:"
39883 msgstr ""
39884
39885 #. type: verbatim
39886 #: ../src/guestfs.pod:2075
39887 #, no-wrap
39888 msgid ""
39889 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39890 "\n"
39891 msgstr ""
39892
39893 #. type: textblock
39894 #: ../src/guestfs.pod:2077
39895 msgid ""
39896 "This function returns C<NULL> if either no data is found associated with "
39897 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39898 "C<NULL>."
39899 msgstr ""
39900
39901 #. type: textblock
39902 #: ../src/guestfs.pod:2081
39903 msgid ""
39904 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39905 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
39906 "all.  In particular, libguestfs does I<not> try to free the data when the "
39907 "handle is closed.  If the data must be freed, then the caller must either "
39908 "free it before calling L</guestfs_close> or must set up a close callback to "
39909 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39910 msgstr ""
39911
39912 #. type: textblock
39913 #: ../src/guestfs.pod:2088
39914 msgid "To walk over all entries, use these two functions:"
39915 msgstr ""
39916
39917 #. type: verbatim
39918 #: ../src/guestfs.pod:2090
39919 #, no-wrap
39920 msgid ""
39921 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39922 "\n"
39923 msgstr ""
39924
39925 #. type: verbatim
39926 #: ../src/guestfs.pod:2092
39927 #, no-wrap
39928 msgid ""
39929 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39930 "\n"
39931 msgstr ""
39932
39933 #. type: textblock
39934 #: ../src/guestfs.pod:2094
39935 msgid ""
39936 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39937 "not have any particular meaning -- keys are not returned in any defined "
39938 "order).  A pointer to the key is returned in C<*key_rtn> and the "
39939 "corresponding data pointer is returned from the function.  C<NULL> is "
39940 "returned if there are no keys stored in the handle."
39941 msgstr ""
39942
39943 #. type: textblock
39944 #: ../src/guestfs.pod:2100
39945 msgid ""
39946 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
39947 "value of this function is also C<NULL> is there are no further entries to "
39948 "return."
39949 msgstr ""
39950
39951 #. type: textblock
39952 #: ../src/guestfs.pod:2104
39953 msgid "Notes about walking over entries:"
39954 msgstr ""
39955
39956 #. type: textblock
39957 #: ../src/guestfs.pod:2110
39958 msgid ""
39959 "You must not call C<guestfs_set_private> while walking over the entries."
39960 msgstr ""
39961
39962 #. type: textblock
39963 #: ../src/guestfs.pod:2115
39964 msgid ""
39965 "The handle maintains an internal iterator which is reset when you call "
39966 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
39967 "call C<guestfs_set_private>."
39968 msgstr ""
39969
39970 #. type: textblock
39971 #: ../src/guestfs.pod:2121
39972 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39973 msgstr ""
39974
39975 #. type: verbatim
39976 #: ../src/guestfs.pod:2123
39977 #, no-wrap
39978 msgid ""
39979 " guestfs_set_private (g, key, NULL);\n"
39980 "\n"
39981 msgstr ""
39982
39983 #. type: textblock
39984 #: ../src/guestfs.pod:2125
39985 msgid "then that C<key> is not returned when walking."
39986 msgstr ""
39987
39988 #. type: textblock
39989 #: ../src/guestfs.pod:2129
39990 msgid ""
39991 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39992 "C<guestfs_next_private> or C<guestfs_set_private>."
39993 msgstr ""
39994
39995 #. type: textblock
39996 #: ../src/guestfs.pod:2135
39997 msgid ""
39998 "The following example code shows how to print all keys and data pointers "
39999 "that are associated with the handle C<g>:"
40000 msgstr ""
40001
40002 #. type: verbatim
40003 #: ../src/guestfs.pod:2138
40004 #, no-wrap
40005 msgid ""
40006 " const char *key;\n"
40007 " void *data = guestfs_first_private (g, &key);\n"
40008 " while (data != NULL)\n"
40009 "   {\n"
40010 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
40011 "     data = guestfs_next_private (g, &key);\n"
40012 "   }\n"
40013 "\n"
40014 msgstr ""
40015
40016 #. type: textblock
40017 #: ../src/guestfs.pod:2146
40018 msgid ""
40019 "More commonly you are only interested in keys that begin with an application-"
40020 "specific prefix C<foo_>.  Modify the loop like so:"
40021 msgstr ""
40022
40023 #. type: verbatim
40024 #: ../src/guestfs.pod:2149
40025 #, no-wrap
40026 msgid ""
40027 " const char *key;\n"
40028 " void *data = guestfs_first_private (g, &key);\n"
40029 " while (data != NULL)\n"
40030 "   {\n"
40031 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
40032 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
40033 "     data = guestfs_next_private (g, &key);\n"
40034 "   }\n"
40035 "\n"
40036 msgstr ""
40037
40038 #. type: textblock
40039 #: ../src/guestfs.pod:2158
40040 msgid ""
40041 "If you need to modify keys while walking, then you have to jump back to the "
40042 "beginning of the loop.  For example, to delete all keys prefixed with "
40043 "C<foo_>:"
40044 msgstr ""
40045
40046 #. type: verbatim
40047 #: ../src/guestfs.pod:2162
40048 #, no-wrap
40049 msgid ""
40050 "  const char *key;\n"
40051 "  void *data;\n"
40052 " again:\n"
40053 "  data = guestfs_first_private (g, &key);\n"
40054 "  while (data != NULL)\n"
40055 "    {\n"
40056 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
40057 "        {\n"
40058 "          guestfs_set_private (g, key, NULL);\n"
40059 "          /* note that 'key' pointer is now invalid, and so is\n"
40060 "             the internal iterator */\n"
40061 "          goto again;\n"
40062 "        }\n"
40063 "      data = guestfs_next_private (g, &key);\n"
40064 "    }\n"
40065 "\n"
40066 msgstr ""
40067
40068 #. type: textblock
40069 #: ../src/guestfs.pod:2178
40070 msgid ""
40071 "Note that the above loop is guaranteed to terminate because the keys are "
40072 "being deleted, but other manipulations of keys within the loop might not "
40073 "terminate unless you also maintain an indication of which keys have been "
40074 "visited."
40075 msgstr ""
40076
40077 #. type: =head1
40078 #: ../src/guestfs.pod:2183
40079 msgid "SYSTEMTAP"
40080 msgstr ""
40081
40082 #. type: textblock
40083 #: ../src/guestfs.pod:2185
40084 msgid ""
40085 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
40086 "true of any library, not just libguestfs.  However libguestfs also contains "
40087 "static markers to help in probing internal operations."
40088 msgstr ""
40089
40090 #. type: textblock
40091 #: ../src/guestfs.pod:2189
40092 msgid "You can list all the static markers by doing:"
40093 msgstr ""
40094
40095 #. type: verbatim
40096 #: ../src/guestfs.pod:2191
40097 #, no-wrap
40098 msgid ""
40099 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
40100 "              .provider(\"guestfs\").mark(\"*\")'\n"
40101 "\n"
40102 msgstr ""
40103
40104 #. type: textblock
40105 #: ../src/guestfs.pod:2194
40106 msgid ""
40107 "B<Note:> These static markers are I<not> part of the stable API and may "
40108 "change in future versions."
40109 msgstr ""
40110
40111 #. type: =head2
40112 #: ../src/guestfs.pod:2197
40113 msgid "SYSTEMTAP SCRIPT EXAMPLE"
40114 msgstr ""
40115
40116 #. type: textblock
40117 #: ../src/guestfs.pod:2199
40118 msgid ""
40119 "This script contains examples of displaying both the static markers and some "
40120 "ordinary C entry points:"
40121 msgstr ""
40122
40123 #. type: verbatim
40124 #: ../src/guestfs.pod:2202
40125 #, no-wrap
40126 msgid ""
40127 " global last;\n"
40128 " \n"
40129 msgstr ""
40130
40131 #. type: verbatim
40132 #: ../src/guestfs.pod:2204
40133 #, no-wrap
40134 msgid ""
40135 " function display_time () {\n"
40136 "       now = gettimeofday_us ();\n"
40137 "       delta = 0;\n"
40138 "       if (last > 0)\n"
40139 "             delta = now - last;\n"
40140 "       last = now;\n"
40141 " \n"
40142 msgstr ""
40143
40144 #. type: verbatim
40145 #: ../src/guestfs.pod:2211
40146 #, no-wrap
40147 msgid ""
40148 "       printf (\"%d (+%d):\", now, delta);\n"
40149 " }\n"
40150 " \n"
40151 msgstr ""
40152
40153 #. type: verbatim
40154 #: ../src/guestfs.pod:2214
40155 #, no-wrap
40156 msgid ""
40157 " probe begin {\n"
40158 "       last = 0;\n"
40159 "       printf (\"ready\\n\");\n"
40160 " }\n"
40161 " \n"
40162 msgstr ""
40163
40164 #. type: verbatim
40165 #: ../src/guestfs.pod:2219
40166 #, no-wrap
40167 msgid ""
40168 " /* Display all calls to static markers. */\n"
40169 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40170 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
40171 "       display_time();\n"
40172 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
40173 " }\n"
40174 " \n"
40175 msgstr ""
40176
40177 #. type: verbatim
40178 #: ../src/guestfs.pod:2226
40179 #, no-wrap
40180 msgid ""
40181 " /* Display all calls to guestfs_mkfs* functions. */\n"
40182 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40183 "           .function(\"guestfs_mkfs*\") ? {\n"
40184 "       display_time();\n"
40185 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
40186 " }\n"
40187 "\n"
40188 msgstr ""
40189
40190 #. type: textblock
40191 #: ../src/guestfs.pod:2233
40192 msgid ""
40193 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
40194 "program.  Note that you either have to be root, or you have to add yourself "
40195 "to several special stap groups.  Consult the systemtap documentation for "
40196 "more information."
40197 msgstr ""
40198
40199 #. type: verbatim
40200 #: ../src/guestfs.pod:2238
40201 #, no-wrap
40202 msgid ""
40203 " # stap /tmp/test.stap\n"
40204 " ready\n"
40205 "\n"
40206 msgstr ""
40207
40208 #. type: textblock
40209 #: ../src/guestfs.pod:2241
40210 msgid "In another terminal, run a guestfish command such as this:"
40211 msgstr ""
40212
40213 #. type: textblock
40214 #: ../src/guestfs.pod:2245
40215 msgid "In the first terminal, stap trace output similar to this is shown:"
40216 msgstr ""
40217
40218 #. type: verbatim
40219 #: ../src/guestfs.pod:2247
40220 #, no-wrap
40221 msgid ""
40222 " 1318248056692655 (+0):\tlaunch_start\n"
40223 " 1318248056692850 (+195):       launch_build_appliance_start\n"
40224 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
40225 " 1318248056838059 (+19774):     launch_run_qemu\n"
40226 " 1318248061071167 (+4233108):   launch_end\n"
40227 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
40228 "\n"
40229 msgstr ""
40230
40231 #. type: =end
40232 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
40233 msgid "html"
40234 msgstr ""
40235
40236 #. type: textblock
40237 #: ../src/guestfs.pod:2256
40238 msgid ""
40239 "<!-- old anchor for the next section --> <a name="
40240 "\"state_machine_and_low_level_event_api\"/>"
40241 msgstr ""
40242
40243 #. type: =head1
40244 #: ../src/guestfs.pod:2261
40245 msgid "ARCHITECTURE"
40246 msgstr ""
40247
40248 #. type: textblock
40249 #: ../src/guestfs.pod:2263
40250 msgid ""
40251 "Internally, libguestfs is implemented by running an appliance (a special "
40252 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
40253 "process of the main program."
40254 msgstr ""
40255
40256 #. type: verbatim
40257 #: ../src/guestfs.pod:2267
40258 #, no-wrap
40259 msgid ""
40260 "  ___________________\n"
40261 " /                   \\\n"
40262 " | main program      |\n"
40263 " |                   |\n"
40264 " |                   |           child process / appliance\n"
40265 " |                   |           __________________________\n"
40266 " |                   |          / qemu                     \\\n"
40267 " +-------------------+   RPC    |      +-----------------+ |\n"
40268 " | libguestfs     <--------------------> guestfsd        | |\n"
40269 " |                   |          |      +-----------------+ |\n"
40270 " \\___________________/          |      | Linux kernel    | |\n"
40271 "                                |      +--^--------------+ |\n"
40272 "                                \\_________|________________/\n"
40273 "                                          |\n"
40274 "                                   _______v______\n"
40275 "                                  /              \\\n"
40276 "                                  | Device or    |\n"
40277 "                                  | disk image   |\n"
40278 "                                  \\______________/\n"
40279 "\n"
40280 msgstr ""
40281
40282 #. type: textblock
40283 #: ../src/guestfs.pod:2287
40284 msgid ""
40285 "The library, linked to the main program, creates the child process and hence "
40286 "the appliance in the L</guestfs_launch> function."
40287 msgstr ""
40288
40289 #. type: textblock
40290 #: ../src/guestfs.pod:2290
40291 msgid ""
40292 "Inside the appliance is a Linux kernel and a complete stack of userspace "
40293 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
40294 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
40295 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
40296 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
40297 "attached to the qemu process which translates device access by the "
40298 "appliance's Linux kernel into accesses to the image."
40299 msgstr ""
40300
40301 #. type: textblock
40302 #: ../src/guestfs.pod:2299
40303 msgid ""
40304 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
40305 "Although the disk image you are attached to might also be used by some "
40306 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
40307 "care if both libguestfs's qemu process and your virtual machine are trying "
40308 "to update the disk image at the same time, since these usually results in "
40309 "massive disk corruption)."
40310 msgstr ""
40311
40312 #. type: =head1
40313 #: ../src/guestfs.pod:2306
40314 msgid "STATE MACHINE"
40315 msgstr ""
40316
40317 #. type: textblock
40318 #: ../src/guestfs.pod:2308
40319 msgid "libguestfs uses a state machine to model the child process:"
40320 msgstr ""
40321
40322 #. type: verbatim
40323 #: ../src/guestfs.pod:2310
40324 #, no-wrap
40325 msgid ""
40326 "                         |\n"
40327 "                    guestfs_create\n"
40328 "                         |\n"
40329 "                         |\n"
40330 "                     ____V_____\n"
40331 "                    /          \\\n"
40332 "                    |  CONFIG  |\n"
40333 "                    \\__________/\n"
40334 "                     ^ ^   ^  \\\n"
40335 "                    /  |    \\  \\ guestfs_launch\n"
40336 "                   /   |    _\\__V______\n"
40337 "                  /    |   /           \\\n"
40338 "                 /     |   | LAUNCHING |\n"
40339 "                /      |   \\___________/\n"
40340 "               /       |       /\n"
40341 "              /        |  guestfs_launch\n"
40342 "             /         |     /\n"
40343 "    ______  /        __|____V\n"
40344 "   /      \\ ------> /        \\\n"
40345 "   | BUSY |         | READY  |\n"
40346 "   \\______/ <------ \\________/\n"
40347 "\n"
40348 msgstr ""
40349
40350 #. type: textblock
40351 #: ../src/guestfs.pod:2332
40352 msgid ""
40353 "The normal transitions are (1) CONFIG (when the handle is created, but there "
40354 "is no child process), (2) LAUNCHING (when the child process is booting up), "
40355 "(3) alternating between READY and BUSY as commands are issued to, and "
40356 "carried out by, the child process."
40357 msgstr ""
40358
40359 #. type: textblock
40360 #: ../src/guestfs.pod:2337
40361 msgid ""
40362 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
40363 "asynchronously at any time (eg. due to some internal error), and that causes "
40364 "the state to transition back to CONFIG."
40365 msgstr ""
40366
40367 #. type: textblock
40368 #: ../src/guestfs.pod:2341
40369 msgid ""
40370 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
40371 "issued when in the CONFIG state."
40372 msgstr ""
40373
40374 #. type: textblock
40375 #: ../src/guestfs.pod:2344
40376 msgid ""
40377 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
40378 "L</guestfs_launch> blocks until the child process is READY to accept "
40379 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
40380 "moves the state from CONFIG to LAUNCHING while it is running."
40381 msgstr ""
40382
40383 #. type: textblock
40384 #: ../src/guestfs.pod:2350
40385 msgid ""
40386 "API actions such as L</guestfs_mount> can only be issued when in the READY "
40387 "state.  These API calls block waiting for the command to be carried out (ie. "
40388 "the state to transition to BUSY and then back to READY).  There are no non-"
40389 "blocking versions, and no way to issue more than one command per handle at "
40390 "the same time."
40391 msgstr ""
40392
40393 #. type: textblock
40394 #: ../src/guestfs.pod:2356
40395 msgid ""
40396 "Finally, the child process sends asynchronous messages back to the main "
40397 "program, such as kernel log messages.  You can register a callback to "
40398 "receive these messages."
40399 msgstr ""
40400
40401 #. type: =head1
40402 #: ../src/guestfs.pod:2360
40403 msgid "INTERNALS"
40404 msgstr ""
40405
40406 #. type: =head2
40407 #: ../src/guestfs.pod:2362
40408 msgid "APPLIANCE BOOT PROCESS"
40409 msgstr ""
40410
40411 #. type: textblock
40412 #: ../src/guestfs.pod:2364
40413 msgid ""
40414 "This process has evolved and continues to evolve.  The description here "
40415 "corresponds only to the current version of libguestfs and is provided for "
40416 "information only."
40417 msgstr ""
40418
40419 #. type: textblock
40420 #: ../src/guestfs.pod:2368
40421 msgid ""
40422 "In order to follow the stages involved below, enable libguestfs debugging "
40423 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40424 msgstr ""
40425
40426 #. type: =item
40427 #: ../src/guestfs.pod:2373
40428 msgid "Create the appliance"
40429 msgstr ""
40430
40431 #. type: textblock
40432 #: ../src/guestfs.pod:2375
40433 msgid ""
40434 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40435 "initrd and the appliance."
40436 msgstr ""
40437
40438 #. type: textblock
40439 #: ../src/guestfs.pod:2378
40440 msgid ""
40441 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40442 "directory if C<TMPDIR> is set)."
40443 msgstr ""
40444
40445 #. type: textblock
40446 #: ../src/guestfs.pod:2381
40447 msgid ""
40448 "For a complete description of how the appliance is created and cached, read "
40449 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40450 msgstr ""
40451
40452 #. type: =item
40453 #: ../src/guestfs.pod:2385
40454 msgid "Start qemu and boot the kernel"
40455 msgstr ""
40456
40457 #. type: textblock
40458 #: ../src/guestfs.pod:2387
40459 msgid "qemu is invoked to boot the kernel."
40460 msgstr ""
40461
40462 #. type: =item
40463 #: ../src/guestfs.pod:2389
40464 msgid "Run the initrd"
40465 msgstr ""
40466
40467 #. type: textblock
40468 #: ../src/guestfs.pod:2391
40469 msgid ""
40470 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
40471 "appliance.  The purpose of the initrd is to load enough kernel modules in "
40472 "order that the appliance itself can be mounted and started."
40473 msgstr ""
40474
40475 #. type: textblock
40476 #: ../src/guestfs.pod:2395
40477 msgid ""
40478 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40479 "initrd>."
40480 msgstr ""
40481
40482 #. type: textblock
40483 #: ../src/guestfs.pod:2398
40484 msgid ""
40485 "When the initrd has started you will see messages showing that kernel "
40486 "modules are being loaded, similar to this:"
40487 msgstr ""
40488
40489 #. type: verbatim
40490 #: ../src/guestfs.pod:2401
40491 #, no-wrap
40492 msgid ""
40493 " febootstrap: ext2 mini initrd starting up\n"
40494 " febootstrap: mounting /sys\n"
40495 " febootstrap: internal insmod libcrc32c.ko\n"
40496 " febootstrap: internal insmod crc32c-intel.ko\n"
40497 "\n"
40498 msgstr ""
40499
40500 #. type: =item
40501 #: ../src/guestfs.pod:2406
40502 msgid "Find and mount the appliance device"
40503 msgstr ""
40504
40505 #. type: textblock
40506 #: ../src/guestfs.pod:2408
40507 msgid ""
40508 "The appliance is a sparse file containing an ext2 filesystem which contains "
40509 "a familiar (although reduced in size) Linux operating system.  It would "
40510 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40511 msgstr ""
40512
40513 #. type: textblock
40514 #: ../src/guestfs.pod:2412
40515 msgid ""
40516 "The regular disks being inspected by libguestfs are the first devices "
40517 "exposed by qemu (eg. as C</dev/vda>)."
40518 msgstr ""
40519
40520 #. type: textblock
40521 #: ../src/guestfs.pod:2415
40522 msgid ""
40523 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40524 "there was only one regular disk)."
40525 msgstr ""
40526
40527 #. type: textblock
40528 #: ../src/guestfs.pod:2418
40529 msgid ""
40530 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40531 "and switch root into the appliance, and run C</init> from the appliance."
40532 msgstr ""
40533
40534 #. type: textblock
40535 #: ../src/guestfs.pod:2422
40536 msgid "If this works successfully you will see messages such as:"
40537 msgstr ""
40538
40539 #. type: verbatim
40540 #: ../src/guestfs.pod:2424
40541 #, no-wrap
40542 msgid ""
40543 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40544 " febootstrap: creating /dev/root as block special 252:16\n"
40545 " febootstrap: mounting new root on /root\n"
40546 " febootstrap: chroot\n"
40547 " Starting /init script ...\n"
40548 "\n"
40549 msgstr ""
40550
40551 #. type: textblock
40552 #: ../src/guestfs.pod:2430
40553 msgid ""
40554 "Note that C<Starting /init script ...> indicates that the appliance's init "
40555 "script is now running."
40556 msgstr ""
40557
40558 #. type: =item
40559 #: ../src/guestfs.pod:2433
40560 msgid "Initialize the appliance"
40561 msgstr ""
40562
40563 #. type: textblock
40564 #: ../src/guestfs.pod:2435
40565 msgid ""
40566 "The appliance itself now initializes itself.  This involves starting certain "
40567 "processes like C<udev>, possibly printing some debug information, and "
40568 "finally running the daemon (C<guestfsd>)."
40569 msgstr ""
40570
40571 #. type: =item
40572 #: ../src/guestfs.pod:2439
40573 msgid "The daemon"
40574 msgstr ""
40575
40576 #. type: textblock
40577 #: ../src/guestfs.pod:2441
40578 msgid ""
40579 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
40580 "should see:"
40581 msgstr ""
40582
40583 #. type: verbatim
40584 #: ../src/guestfs.pod:2444
40585 #, no-wrap
40586 msgid ""
40587 " verbose daemon enabled\n"
40588 "\n"
40589 msgstr ""
40590
40591 #. type: textblock
40592 #: ../src/guestfs.pod:2446
40593 msgid ""
40594 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40595 "connected on the other end to the library."
40596 msgstr ""
40597
40598 #. type: textblock
40599 #: ../src/guestfs.pod:2449
40600 msgid ""
40601 "The daemon connects to this port (and hence to the library) and sends a four "
40602 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40603 "protocol (see below)."
40604 msgstr ""
40605
40606 #. type: =head2
40607 #: ../src/guestfs.pod:2455
40608 msgid "COMMUNICATION PROTOCOL"
40609 msgstr ""
40610
40611 #. type: textblock
40612 #: ../src/guestfs.pod:2457
40613 msgid ""
40614 "Don't rely on using this protocol directly.  This section documents how it "
40615 "currently works, but it may change at any time."
40616 msgstr ""
40617
40618 #. type: textblock
40619 #: ../src/guestfs.pod:2460
40620 msgid ""
40621 "The protocol used to talk between the library and the daemon running inside "
40622 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40623 "1014, RFC 1832, RFC 4506)."
40624 msgstr ""
40625
40626 #. type: textblock
40627 #: ../src/guestfs.pod:2464
40628 msgid ""
40629 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40630 "this file is automatically generated)."
40631 msgstr ""
40632
40633 #. type: textblock
40634 #: ../src/guestfs.pod:2467
40635 msgid ""
40636 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40637 "and C<FileOut> parameters, which are handled with very simple request/reply "
40638 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
40639 "parameters, which use the same request and reply messages, but they may also "
40640 "be followed by files sent using a chunked encoding."
40641 msgstr ""
40642
40643 #. type: =head3
40644 #: ../src/guestfs.pod:2474
40645 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40646 msgstr ""
40647
40648 #. type: textblock
40649 #: ../src/guestfs.pod:2476
40650 msgid "For ordinary functions, the request message is:"
40651 msgstr ""
40652
40653 #. type: verbatim
40654 #: ../src/guestfs.pod:2478
40655 #, no-wrap
40656 msgid ""
40657 " total length (header + arguments,\n"
40658 "      but not including the length word itself)\n"
40659 " struct guestfs_message_header (encoded as XDR)\n"
40660 " struct guestfs_<foo>_args (encoded as XDR)\n"
40661 "\n"
40662 msgstr ""
40663
40664 #. type: textblock
40665 #: ../src/guestfs.pod:2483
40666 msgid ""
40667 "The total length field allows the daemon to allocate a fixed size buffer "
40668 "into which it slurps the rest of the message.  As a result, the total length "
40669 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40670 "effective size of any request is limited to somewhere under this size."
40671 msgstr ""
40672
40673 #. type: textblock
40674 #: ../src/guestfs.pod:2489
40675 msgid ""
40676 "Note also that many functions don't take any arguments, in which case the "
40677 "C<guestfs_I<foo>_args> is completely omitted."
40678 msgstr ""
40679
40680 #. type: textblock
40681 #: ../src/guestfs.pod:2492
40682 msgid ""
40683 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40684 "receiver knows what type of args structure to expect, or none at all."
40685 msgstr ""
40686
40687 #. type: textblock
40688 #: ../src/guestfs.pod:2496
40689 msgid ""
40690 "For functions that take optional arguments, the optional arguments are "
40691 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40692 "arguments.  A bitmask in the header indicates which optional arguments are "
40693 "meaningful.  The bitmask is also checked to see if it contains bits set "
40694 "which the daemon does not know about (eg. if more optional arguments were "
40695 "added in a later version of the library), and this causes the call to be "
40696 "rejected."
40697 msgstr ""
40698
40699 #. type: textblock
40700 #: ../src/guestfs.pod:2504
40701 msgid "The reply message for ordinary functions is:"
40702 msgstr ""
40703
40704 #. type: verbatim
40705 #: ../src/guestfs.pod:2506
40706 #, no-wrap
40707 msgid ""
40708 " total length (header + ret,\n"
40709 "      but not including the length word itself)\n"
40710 " struct guestfs_message_header (encoded as XDR)\n"
40711 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40712 "\n"
40713 msgstr ""
40714
40715 #. type: textblock
40716 #: ../src/guestfs.pod:2511
40717 msgid ""
40718 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40719 "functions that return no formal return values."
40720 msgstr ""
40721
40722 #. type: textblock
40723 #: ../src/guestfs.pod:2514
40724 msgid ""
40725 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40726 msgstr ""
40727
40728 #. type: textblock
40729 #: ../src/guestfs.pod:2517
40730 msgid ""
40731 "In the case of an error, a flag is set in the header, and the reply message "
40732 "is slightly changed:"
40733 msgstr ""
40734
40735 #. type: verbatim
40736 #: ../src/guestfs.pod:2520
40737 #, no-wrap
40738 msgid ""
40739 " total length (header + error,\n"
40740 "      but not including the length word itself)\n"
40741 " struct guestfs_message_header (encoded as XDR)\n"
40742 " struct guestfs_message_error (encoded as XDR)\n"
40743 "\n"
40744 msgstr ""
40745
40746 #. type: textblock
40747 #: ../src/guestfs.pod:2525
40748 msgid ""
40749 "The C<guestfs_message_error> structure contains the error message as a "
40750 "string."
40751 msgstr ""
40752
40753 #. type: =head3
40754 #: ../src/guestfs.pod:2528
40755 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40756 msgstr ""
40757
40758 #. type: textblock
40759 #: ../src/guestfs.pod:2530
40760 msgid ""
40761 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
40762 "The normal request message is sent (see above).  However this is followed by "
40763 "a sequence of file chunks."
40764 msgstr ""
40765
40766 #. type: verbatim
40767 #: ../src/guestfs.pod:2534
40768 #, no-wrap
40769 msgid ""
40770 " total length (header + arguments,\n"
40771 "      but not including the length word itself,\n"
40772 "      and not including the chunks)\n"
40773 " struct guestfs_message_header (encoded as XDR)\n"
40774 " struct guestfs_<foo>_args (encoded as XDR)\n"
40775 " sequence of chunks for FileIn param #0\n"
40776 " sequence of chunks for FileIn param #1 etc.\n"
40777 "\n"
40778 msgstr ""
40779
40780 #. type: textblock
40781 #: ../src/guestfs.pod:2542
40782 msgid "The \"sequence of chunks\" is:"
40783 msgstr ""
40784
40785 #. type: verbatim
40786 #: ../src/guestfs.pod:2544
40787 #, no-wrap
40788 msgid ""
40789 " length of chunk (not including length word itself)\n"
40790 " struct guestfs_chunk (encoded as XDR)\n"
40791 " length of chunk\n"
40792 " struct guestfs_chunk (encoded as XDR)\n"
40793 "   ...\n"
40794 " length of chunk\n"
40795 " struct guestfs_chunk (with data.data_len == 0)\n"
40796 "\n"
40797 msgstr ""
40798
40799 #. type: textblock
40800 #: ../src/guestfs.pod:2552
40801 msgid ""
40802 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
40803 "is set in the final chunk to indicate either successful completion or early "
40804 "cancellation."
40805 msgstr ""
40806
40807 #. type: textblock
40808 #: ../src/guestfs.pod:2556
40809 msgid ""
40810 "At time of writing there are no functions that have more than one FileIn "
40811 "parameter.  However this is (theoretically) supported, by sending the "
40812 "sequence of chunks for each FileIn parameter one after another (from left to "
40813 "right)."
40814 msgstr ""
40815
40816 #. type: textblock
40817 #: ../src/guestfs.pod:2561
40818 msgid ""
40819 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40820 "transfer.  The library does this by sending a chunk with a special flag set "
40821 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
40822 "RPC, does I<not> send any reply, and goes back to reading the next request."
40823 msgstr ""
40824
40825 #. type: textblock
40826 #: ../src/guestfs.pod:2567
40827 msgid ""
40828 "The daemon may also cancel.  It does this by writing a special word "
40829 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
40830 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40831 "cancel chunk).  The special word is chosen so that even if cancellation "
40832 "happens right at the end of the transfer (after the library has finished "
40833 "writing and has started listening for the reply), the \"spurious\" cancel "
40834 "flag will not be confused with the reply message."
40835 msgstr ""
40836
40837 #. type: textblock
40838 #: ../src/guestfs.pod:2576
40839 msgid ""
40840 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40841 "limit), and also files where the size is not known in advance (eg. from "
40842 "pipes or sockets).  However the chunks are rather small "
40843 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40844 "to keep much in memory."
40845 msgstr ""
40846
40847 #. type: =head3
40848 #: ../src/guestfs.pod:2582
40849 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40850 msgstr ""
40851
40852 #. type: textblock
40853 #: ../src/guestfs.pod:2584
40854 msgid ""
40855 "The protocol for FileOut parameters is exactly the same as for FileIn "
40856 "parameters, but with the roles of daemon and library reversed."
40857 msgstr ""
40858
40859 #. type: verbatim
40860 #: ../src/guestfs.pod:2587
40861 #, no-wrap
40862 msgid ""
40863 " total length (header + ret,\n"
40864 "      but not including the length word itself,\n"
40865 "      and not including the chunks)\n"
40866 " struct guestfs_message_header (encoded as XDR)\n"
40867 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40868 " sequence of chunks for FileOut param #0\n"
40869 " sequence of chunks for FileOut param #1 etc.\n"
40870 "\n"
40871 msgstr ""
40872
40873 #. type: =head3
40874 #: ../src/guestfs.pod:2595
40875 msgid "INITIAL MESSAGE"
40876 msgstr ""
40877
40878 #. type: textblock
40879 #: ../src/guestfs.pod:2597
40880 msgid ""
40881 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40882 "which indicates that the guest and daemon is alive.  This is what L</"
40883 "guestfs_launch> waits for."
40884 msgstr ""
40885
40886 #. type: =head3
40887 #: ../src/guestfs.pod:2601
40888 msgid "PROGRESS NOTIFICATION MESSAGES"
40889 msgstr ""
40890
40891 #. type: textblock
40892 #: ../src/guestfs.pod:2603
40893 msgid ""
40894 "The daemon may send progress notification messages at any time.  These are "
40895 "distinguished by the normal length word being replaced by "
40896 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40897 msgstr ""
40898
40899 #. type: textblock
40900 #: ../src/guestfs.pod:2607
40901 msgid ""
40902 "The library turns them into progress callbacks (see L</"
40903 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40904 "if not."
40905 msgstr ""
40906
40907 #. type: textblock
40908 #: ../src/guestfs.pod:2611
40909 msgid ""
40910 "The daemon self-limits the frequency of progress messages it sends (see "
40911 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
40912 "messages."
40913 msgstr ""
40914
40915 #. type: =head1
40916 #: ../src/guestfs.pod:2615
40917 msgid "LIBGUESTFS VERSION NUMBERS"
40918 msgstr ""
40919
40920 #. type: textblock
40921 #: ../src/guestfs.pod:2617
40922 msgid ""
40923 "Since April 2010, libguestfs has started to make separate development and "
40924 "stable releases, along with corresponding branches in our git repository.  "
40925 "These separate releases can be identified by version number:"
40926 msgstr ""
40927
40928 #. type: verbatim
40929 #: ../src/guestfs.pod:2622
40930 #, no-wrap
40931 msgid ""
40932 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
40933 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40934 "       |\n"
40935 "       v\n"
40936 " 1  .  3  .  5\n"
40937 " ^           ^\n"
40938 " |           |\n"
40939 " |           `-------- sub-version\n"
40940 " |\n"
40941 " `------ always '1' because we don't change the ABI\n"
40942 "\n"
40943 msgstr ""
40944
40945 #. type: textblock
40946 #: ../src/guestfs.pod:2633
40947 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40948 msgstr ""
40949
40950 #. type: textblock
40951 #: ../src/guestfs.pod:2635
40952 msgid ""
40953 "As time passes we cherry pick fixes from the development branch and backport "
40954 "those into the stable branch, the effect being that the stable branch should "
40955 "get more stable and less buggy over time.  So the stable releases are ideal "
40956 "for people who don't need new features but would just like the software to "
40957 "work."
40958 msgstr ""
40959
40960 #. type: textblock
40961 #: ../src/guestfs.pod:2641
40962 msgid "Our criteria for backporting changes are:"
40963 msgstr ""
40964
40965 #. type: textblock
40966 #: ../src/guestfs.pod:2647
40967 msgid ""
40968 "Documentation changes which don't affect any code are backported unless the "
40969 "documentation refers to a future feature which is not in stable."
40970 msgstr ""
40971
40972 #. type: textblock
40973 #: ../src/guestfs.pod:2653
40974 msgid ""
40975 "Bug fixes which are not controversial, fix obvious problems, and have been "
40976 "well tested are backported."
40977 msgstr ""
40978
40979 #. type: textblock
40980 #: ../src/guestfs.pod:2658
40981 msgid ""
40982 "Simple rearrangements of code which shouldn't affect how it works get "
40983 "backported.  This is so that the code in the two branches doesn't get too "
40984 "far out of step, allowing us to backport future fixes more easily."
40985 msgstr ""
40986
40987 #. type: textblock
40988 #: ../src/guestfs.pod:2664
40989 msgid ""
40990 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40991 "exceptional case: the new feature is required in order to implement an "
40992 "important bug fix."
40993 msgstr ""
40994
40995 #. type: textblock
40996 #: ../src/guestfs.pod:2670
40997 msgid ""
40998 "A new stable branch starts when we think the new features in development are "
40999 "substantial and compelling enough over the current stable branch to warrant "
41000 "it.  When that happens we create new stable and development versions 1.N.0 "
41001 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
41002 "stable at this point, but by backporting fixes from development, that branch "
41003 "will stabilize over time."
41004 msgstr ""
41005
41006 #. type: =head1
41007 #: ../src/guestfs.pod:2678
41008 msgid "EXTENDING LIBGUESTFS"
41009 msgstr ""
41010
41011 #. type: =head2
41012 #: ../src/guestfs.pod:2680
41013 msgid "ADDING A NEW API ACTION"
41014 msgstr ""
41015
41016 #. type: textblock
41017 #: ../src/guestfs.pod:2682
41018 msgid ""
41019 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
41020 "documentation) are generated, and this makes it easy to extend the "
41021 "libguestfs API."
41022 msgstr ""
41023
41024 #. type: textblock
41025 #: ../src/guestfs.pod:2686
41026 msgid "To add a new API action there are two changes:"
41027 msgstr ""
41028
41029 #. type: textblock
41030 #: ../src/guestfs.pod:2692
41031 msgid ""
41032 "You need to add a description of the call (name, parameters, return type, "
41033 "tests, documentation) to C<generator/generator_actions.ml>."
41034 msgstr ""
41035
41036 #. type: textblock
41037 #: ../src/guestfs.pod:2695
41038 msgid ""
41039 "There are two sorts of API action, depending on whether the call goes "
41040 "through to the daemon in the appliance, or is serviced entirely by the "
41041 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
41042 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
41043 "an example of the latter, since a trace flag is maintained in the handle and "
41044 "all tracing is done on the library side."
41045 msgstr ""
41046
41047 #. type: textblock
41048 #: ../src/guestfs.pod:2703
41049 msgid ""
41050 "Most new actions are of the first type, and get added to the "
41051 "C<daemon_functions> list.  Each function has a unique procedure number used "
41052 "in the RPC protocol which is assigned to that action when we publish "
41053 "libguestfs and cannot be reused.  Take the latest procedure number and "
41054 "increment it."
41055 msgstr ""
41056
41057 #. type: textblock
41058 #: ../src/guestfs.pod:2709
41059 msgid ""
41060 "For library-only actions of the second type, add to the "
41061 "C<non_daemon_functions> list.  Since these functions are serviced by the "
41062 "library and do not travel over the RPC mechanism to the daemon, these "
41063 "functions do not need a procedure number, and so the procedure number is set "
41064 "to C<-1>."
41065 msgstr ""
41066
41067 #. type: textblock
41068 #: ../src/guestfs.pod:2717
41069 msgid "Implement the action (in C):"
41070 msgstr ""
41071
41072 #. type: textblock
41073 #: ../src/guestfs.pod:2719
41074 msgid ""
41075 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
41076 "C<daemon/> directory."
41077 msgstr ""
41078
41079 #. type: textblock
41080 #: ../src/guestfs.pod:2722
41081 msgid ""
41082 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
41083 "(note: double underscore) in the C<src/> directory."
41084 msgstr ""
41085
41086 #. type: textblock
41087 #: ../src/guestfs.pod:2725
41088 msgid "In either case, use another function as an example of what to do."
41089 msgstr ""
41090
41091 #. type: textblock
41092 #: ../src/guestfs.pod:2729
41093 msgid "After making these changes, use C<make> to compile."
41094 msgstr ""
41095
41096 #. type: textblock
41097 #: ../src/guestfs.pod:2731
41098 msgid ""
41099 "Note that you don't need to implement the RPC, language bindings, manual "
41100 "pages or anything else.  It's all automatically generated from the OCaml "
41101 "description."
41102 msgstr ""
41103
41104 #. type: =head2
41105 #: ../src/guestfs.pod:2735
41106 msgid "ADDING TESTS FOR AN API ACTION"
41107 msgstr ""
41108
41109 #. type: textblock
41110 #: ../src/guestfs.pod:2737
41111 msgid ""
41112 "You can supply zero or as many tests as you want per API call.  The tests "
41113 "can either be added as part of the API description (C<generator/"
41114 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
41115 "into C<tests/*/>.  Note that adding a script to C<tests/*/> is slower, so if "
41116 "possible use the first method."
41117 msgstr ""
41118
41119 #. type: textblock
41120 #: ../src/guestfs.pod:2744
41121 msgid ""
41122 "The following describes the test environment used when you add an API test "
41123 "in C<generator_actions.ml>."
41124 msgstr ""
41125
41126 #. type: textblock
41127 #: ../src/guestfs.pod:2747
41128 msgid "The test environment has 4 block devices:"
41129 msgstr ""
41130
41131 #. type: =item
41132 #: ../src/guestfs.pod:2751
41133 msgid "C</dev/sda> 500MB"
41134 msgstr ""
41135
41136 #. type: textblock
41137 #: ../src/guestfs.pod:2753
41138 msgid "General block device for testing."
41139 msgstr ""
41140
41141 #. type: =item
41142 #: ../src/guestfs.pod:2755
41143 msgid "C</dev/sdb> 50MB"
41144 msgstr ""
41145
41146 #. type: textblock
41147 #: ../src/guestfs.pod:2757
41148 msgid ""
41149 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
41150 "operations."
41151 msgstr ""
41152
41153 #. type: =item
41154 #: ../src/guestfs.pod:2760
41155 msgid "C</dev/sdc> 10MB"
41156 msgstr ""
41157
41158 #. type: textblock
41159 #: ../src/guestfs.pod:2762
41160 msgid "Used in a few tests where two block devices are needed."
41161 msgstr ""
41162
41163 #. type: =item
41164 #: ../src/guestfs.pod:2764
41165 msgid "C</dev/sdd>"
41166 msgstr ""
41167
41168 #. type: textblock
41169 #: ../src/guestfs.pod:2766
41170 msgid "ISO with fixed content (see C<images/test.iso>)."
41171 msgstr ""
41172
41173 #. type: textblock
41174 #: ../src/guestfs.pod:2770
41175 msgid ""
41176 "To be able to run the tests in a reasonable amount of time, the libguestfs "
41177 "appliance and block devices are reused between tests.  So don't try testing "
41178 "L</guestfs_kill_subprocess> :-x"
41179 msgstr ""
41180
41181 #. type: textblock
41182 #: ../src/guestfs.pod:2774
41183 msgid ""
41184 "Each test starts with an initial scenario, selected using one of the "
41185 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
41186 "initialize the disks mentioned above in a particular way as documented in "
41187 "C<generator_types.ml>.  You should not assume anything about the previous "
41188 "contents of other disks that are not initialized."
41189 msgstr ""
41190
41191 #. type: textblock
41192 #: ../src/guestfs.pod:2780
41193 msgid ""
41194 "You can add a prerequisite clause to any individual test.  This is a run-"
41195 "time check, which, if it fails, causes the test to be skipped.  Useful if "
41196 "testing a command which might not work on all variations of libguestfs "
41197 "builds.  A test that has prerequisite of C<Always> means to run "
41198 "unconditionally."
41199 msgstr ""
41200
41201 #. type: textblock
41202 #: ../src/guestfs.pod:2786
41203 msgid ""
41204 "In addition, packagers can skip individual tests by setting environment "
41205 "variables before running C<make check>."
41206 msgstr ""
41207
41208 #. type: verbatim
41209 #: ../src/guestfs.pod:2789
41210 #, no-wrap
41211 msgid ""
41212 " SKIP_TEST_<CMD>_<NUM>=1\n"
41213 "\n"
41214 msgstr ""
41215
41216 #. type: textblock
41217 #: ../src/guestfs.pod:2791
41218 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
41219 msgstr ""
41220
41221 #. type: verbatim
41222 #: ../src/guestfs.pod:2795
41223 #, no-wrap
41224 msgid ""
41225 " SKIP_TEST_<CMD>=1\n"
41226 "\n"
41227 msgstr ""
41228
41229 #. type: textblock
41230 #: ../src/guestfs.pod:2797
41231 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
41232 msgstr ""
41233
41234 #. type: textblock
41235 #: ../src/guestfs.pod:2799
41236 msgid "Packagers can run only certain tests by setting for example:"
41237 msgstr ""
41238
41239 #. type: verbatim
41240 #: ../src/guestfs.pod:2801
41241 #, no-wrap
41242 msgid ""
41243 " TEST_ONLY=\"vfs_type zerofree\"\n"
41244 "\n"
41245 msgstr ""
41246
41247 #. type: textblock
41248 #: ../src/guestfs.pod:2803
41249 msgid ""
41250 "See C<tests/c-api/tests.c> for more details of how these environment "
41251 "variables work."
41252 msgstr ""
41253
41254 #. type: =head2
41255 #: ../src/guestfs.pod:2806
41256 msgid "DEBUGGING NEW API ACTIONS"
41257 msgstr ""
41258
41259 #. type: textblock
41260 #: ../src/guestfs.pod:2808
41261 msgid "Test new actions work before submitting them."
41262 msgstr ""
41263
41264 #. type: textblock
41265 #: ../src/guestfs.pod:2810
41266 msgid "You can use guestfish to try out new commands."
41267 msgstr ""
41268
41269 #. type: textblock
41270 #: ../src/guestfs.pod:2812
41271 msgid ""
41272 "Debugging the daemon is a problem because it runs inside a minimal "
41273 "environment.  However you can fprintf messages in the daemon to stderr, and "
41274 "they will show up if you use C<guestfish -v>."
41275 msgstr ""
41276
41277 #. type: =head2
41278 #: ../src/guestfs.pod:2816
41279 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
41280 msgstr ""
41281
41282 #. type: textblock
41283 #: ../src/guestfs.pod:2818
41284 msgid ""
41285 "Our C source code generally adheres to some basic code-formatting "
41286 "conventions.  The existing code base is not totally consistent on this "
41287 "front, but we do prefer that contributed code be formatted similarly.  In "
41288 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
41289 "indentation level, and other than that, follow the K&R style."
41290 msgstr ""
41291
41292 #. type: textblock
41293 #: ../src/guestfs.pod:2824
41294 msgid ""
41295 "If you use Emacs, add the following to one of one of your start-up files (e."
41296 "g., ~/.emacs), to help ensure that you get indentation right:"
41297 msgstr ""
41298
41299 #. type: verbatim
41300 #: ../src/guestfs.pod:2827
41301 #, no-wrap
41302 msgid ""
41303 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
41304 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
41305 " (add-hook 'find-file-hook\n"
41306 "     '(lambda () (if (and buffer-file-name\n"
41307 "                          (string-match \"/libguestfs\\\\>\"\n"
41308 "                              (buffer-file-name))\n"
41309 "                          (not (string-equal mode-name \"Change Log\"))\n"
41310 "                          (not (string-equal mode-name \"Makefile\")))\n"
41311 "                     (setq indent-tabs-mode nil))))\n"
41312 " \n"
41313 msgstr ""
41314
41315 #. type: verbatim
41316 #: ../src/guestfs.pod:2837
41317 #, no-wrap
41318 msgid ""
41319 " ;;; When editing C sources in libguestfs, use this style.\n"
41320 " (defun libguestfs-c-mode ()\n"
41321 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
41322 "   (interactive)\n"
41323 "   (c-set-style \"K&R\")\n"
41324 "   (setq c-indent-level 2)\n"
41325 "   (setq c-basic-offset 2))\n"
41326 " (add-hook 'c-mode-hook\n"
41327 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
41328 "                               (buffer-file-name))\n"
41329 "                           (libguestfs-c-mode))))\n"
41330 "\n"
41331 msgstr ""
41332
41333 #. type: textblock
41334 #: ../src/guestfs.pod:2849
41335 msgid "Enable warnings when compiling (and fix any problems this finds):"
41336 msgstr ""
41337
41338 #. type: verbatim
41339 #: ../src/guestfs.pod:2852
41340 #, no-wrap
41341 msgid ""
41342 " ./configure --enable-gcc-warnings\n"
41343 "\n"
41344 msgstr ""
41345
41346 #. type: textblock
41347 #: ../src/guestfs.pod:2854
41348 msgid "Useful targets are:"
41349 msgstr ""
41350
41351 #. type: verbatim
41352 #: ../src/guestfs.pod:2856
41353 #, no-wrap
41354 msgid ""
41355 " make syntax-check  # checks the syntax of the C code\n"
41356 " make check         # runs the test suite\n"
41357 "\n"
41358 msgstr ""
41359
41360 #. type: =head2
41361 #: ../src/guestfs.pod:2859
41362 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
41363 msgstr ""
41364
41365 #. type: textblock
41366 #: ../src/guestfs.pod:2861
41367 msgid ""
41368 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
41369 "which are used to do shell quoting."
41370 msgstr ""
41371
41372 #. type: =item
41373 #: ../src/guestfs.pod:2866
41374 msgid "%Q"
41375 msgstr ""
41376
41377 #. type: textblock
41378 #: ../src/guestfs.pod:2868
41379 msgid ""
41380 "Simple shell quoted string.  Any spaces or other shell characters are "
41381 "escaped for you."
41382 msgstr ""
41383
41384 #. type: =item
41385 #: ../src/guestfs.pod:2871
41386 msgid "%R"
41387 msgstr ""
41388
41389 #. type: textblock
41390 #: ../src/guestfs.pod:2873
41391 msgid ""
41392 "Same as C<%Q> except the string is treated as a path which is prefixed by "
41393 "the sysroot."
41394 msgstr ""
41395
41396 #. type: verbatim
41397 #: ../src/guestfs.pod:2880
41398 #, no-wrap
41399 msgid ""
41400 " asprintf (&cmd, \"cat %R\", path);\n"
41401 "\n"
41402 msgstr ""
41403
41404 #. type: textblock
41405 #: ../src/guestfs.pod:2882
41406 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
41407 msgstr ""
41408
41409 #. type: textblock
41410 #: ../src/guestfs.pod:2884
41411 msgid ""
41412 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41413 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
41414 "they are not passed via the shell (instead, straight to exec).  You probably "
41415 "want to use the C<sysroot_path()> function however."
41416 msgstr ""
41417
41418 #. type: =head2
41419 #: ../src/guestfs.pod:2890
41420 msgid "SUBMITTING YOUR NEW API ACTIONS"
41421 msgstr ""
41422
41423 #. type: textblock
41424 #: ../src/guestfs.pod:2892
41425 msgid ""
41426 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41427 "libguestfs> and CC to L<rjones@redhat.com>."
41428 msgstr ""
41429
41430 #. type: =head2
41431 #: ../src/guestfs.pod:2896
41432 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41433 msgstr ""
41434
41435 #. type: textblock
41436 #: ../src/guestfs.pod:2898
41437 msgid "We support i18n (gettext anyhow) in the library."
41438 msgstr ""
41439
41440 #. type: textblock
41441 #: ../src/guestfs.pod:2900
41442 msgid ""
41443 "However many messages come from the daemon, and we don't translate those at "
41444 "the moment.  One reason is that the appliance generally has all locale files "
41445 "removed from it, because they take up a lot of space.  So we'd have to readd "
41446 "some of those, as well as copying our PO files into the appliance."
41447 msgstr ""
41448
41449 #. type: textblock
41450 #: ../src/guestfs.pod:2906
41451 msgid ""
41452 "Debugging messages are never translated, since they are intended for the "
41453 "programmers."
41454 msgstr ""
41455
41456 #. type: =head2
41457 #: ../src/guestfs.pod:2909
41458 msgid "SOURCE CODE SUBDIRECTORIES"
41459 msgstr ""
41460
41461 #. type: =item
41462 #: ../src/guestfs.pod:2913
41463 msgid "C<align>"
41464 msgstr ""
41465
41466 #. type: textblock
41467 #: ../src/guestfs.pod:2915
41468 msgid "L<virt-alignment-scan(1)> command and documentation."
41469 msgstr ""
41470
41471 #. type: textblock
41472 #: ../src/guestfs.pod:2919
41473 msgid "The libguestfs appliance, build scripts and so on."
41474 msgstr ""
41475
41476 #. type: =item
41477 #: ../src/guestfs.pod:2921
41478 msgid "C<cat>"
41479 msgstr ""
41480
41481 #. type: textblock
41482 #: ../src/guestfs.pod:2923
41483 msgid ""
41484 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41485 "documentation."
41486 msgstr ""
41487
41488 #. type: =item
41489 #: ../src/guestfs.pod:2926
41490 msgid "C<clone>"
41491 msgstr ""
41492
41493 #. type: textblock
41494 #: ../src/guestfs.pod:2928
41495 msgid ""
41496 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
41497 "command and documentation."
41498 msgstr ""
41499
41500 #. type: =item
41501 #: ../src/guestfs.pod:2931
41502 msgid "C<contrib>"
41503 msgstr ""
41504
41505 #. type: textblock
41506 #: ../src/guestfs.pod:2933
41507 msgid "Outside contributions, experimental parts."
41508 msgstr ""
41509
41510 #. type: =item
41511 #: ../src/guestfs.pod:2935
41512 msgid "C<daemon>"
41513 msgstr ""
41514
41515 #. type: textblock
41516 #: ../src/guestfs.pod:2937
41517 msgid ""
41518 "The daemon that runs inside the libguestfs appliance and carries out actions."
41519 msgstr ""
41520
41521 #. type: =item
41522 #: ../src/guestfs.pod:2940
41523 msgid "C<df>"
41524 msgstr ""
41525
41526 #. type: textblock
41527 #: ../src/guestfs.pod:2942
41528 msgid "L<virt-df(1)> command and documentation."
41529 msgstr ""
41530
41531 #. type: =item
41532 #: ../src/guestfs.pod:2944
41533 msgid "C<edit>"
41534 msgstr ""
41535
41536 #. type: textblock
41537 #: ../src/guestfs.pod:2946
41538 msgid "L<virt-edit(1)> command and documentation."
41539 msgstr ""
41540
41541 #. type: =item
41542 #: ../src/guestfs.pod:2948
41543 msgid "C<examples>"
41544 msgstr ""
41545
41546 #. type: textblock
41547 #: ../src/guestfs.pod:2950
41548 msgid "C API example code."
41549 msgstr ""
41550
41551 #. type: =item
41552 #: ../src/guestfs.pod:2952
41553 msgid "C<fish>"
41554 msgstr ""
41555
41556 #. type: textblock
41557 #: ../src/guestfs.pod:2954
41558 msgid ""
41559 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41560 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41561 "L<virt-tar-out(1)>."
41562 msgstr ""
41563
41564 #. type: =item
41565 #: ../src/guestfs.pod:2958
41566 msgid "C<fuse>"
41567 msgstr ""
41568
41569 #. type: textblock
41570 #: ../src/guestfs.pod:2960
41571 msgid ""
41572 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41573 msgstr ""
41574
41575 #. type: =item
41576 #: ../src/guestfs.pod:2962
41577 msgid "C<generator>"
41578 msgstr ""
41579
41580 #. type: textblock
41581 #: ../src/guestfs.pod:2964
41582 msgid ""
41583 "The crucially important generator, used to automatically generate large "
41584 "amounts of boilerplate C code for things like RPC and bindings."
41585 msgstr ""
41586
41587 #. type: =item
41588 #: ../src/guestfs.pod:2967
41589 msgid "C<inspector>"
41590 msgstr ""
41591
41592 #. type: textblock
41593 #: ../src/guestfs.pod:2969
41594 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41595 msgstr ""
41596
41597 #. type: =item
41598 #: ../src/guestfs.pod:2971
41599 msgid "C<logo>"
41600 msgstr ""
41601
41602 #. type: textblock
41603 #: ../src/guestfs.pod:2973
41604 msgid "Logo used on the website.  The fish is called Arthur by the way."
41605 msgstr ""
41606
41607 #. type: =item
41608 #: ../src/guestfs.pod:2975
41609 msgid "C<m4>"
41610 msgstr ""
41611
41612 #. type: textblock
41613 #: ../src/guestfs.pod:2977
41614 msgid "M4 macros used by autoconf."
41615 msgstr ""
41616
41617 #. type: =item
41618 #: ../src/guestfs.pod:2979
41619 msgid "C<po>"
41620 msgstr ""
41621
41622 #. type: textblock
41623 #: ../src/guestfs.pod:2981
41624 msgid "Translations of simple gettext strings."
41625 msgstr ""
41626
41627 #. type: =item
41628 #: ../src/guestfs.pod:2983
41629 msgid "C<po-docs>"
41630 msgstr ""
41631
41632 #. type: textblock
41633 #: ../src/guestfs.pod:2985
41634 msgid ""
41635 "The build infrastructure and PO files for translations of manpages and POD "
41636 "files.  Eventually this will be combined with the C<po> directory, but that "
41637 "is rather complicated."
41638 msgstr ""
41639
41640 #. type: =item
41641 #: ../src/guestfs.pod:2989
41642 msgid "C<rescue>"
41643 msgstr ""
41644
41645 #. type: textblock
41646 #: ../src/guestfs.pod:2991
41647 msgid "L<virt-rescue(1)> command and documentation."
41648 msgstr ""
41649
41650 #. type: =item
41651 #: ../src/guestfs.pod:2993
41652 msgid "C<resize>"
41653 msgstr ""
41654
41655 #. type: textblock
41656 #: ../src/guestfs.pod:2995
41657 msgid "L<virt-resize(1)> command and documentation."
41658 msgstr ""
41659
41660 #. type: =item
41661 #: ../src/guestfs.pod:2997
41662 msgid "C<sparsify>"
41663 msgstr ""
41664
41665 #. type: textblock
41666 #: ../src/guestfs.pod:2999
41667 msgid "L<virt-sparsify(1)> command and documentation."
41668 msgstr ""
41669
41670 #. type: =item
41671 #: ../src/guestfs.pod:3001
41672 msgid "C<src>"
41673 msgstr ""
41674
41675 #. type: textblock
41676 #: ../src/guestfs.pod:3003
41677 msgid "Source code to the C library."
41678 msgstr ""
41679
41680 #. type: =item
41681 #: ../src/guestfs.pod:3005
41682 msgid "C<test-tool>"
41683 msgstr ""
41684
41685 #. type: textblock
41686 #: ../src/guestfs.pod:3007
41687 msgid ""
41688 "Test tool for end users to test if their qemu/kernel combination will work "
41689 "with libguestfs."
41690 msgstr ""
41691
41692 #. type: =item
41693 #: ../src/guestfs.pod:3010
41694 msgid "C<tests>"
41695 msgstr ""
41696
41697 #. type: textblock
41698 #: ../src/guestfs.pod:3012
41699 msgid "Tests."
41700 msgstr ""
41701
41702 #. type: =item
41703 #: ../src/guestfs.pod:3014
41704 msgid "C<tools>"
41705 msgstr ""
41706
41707 #. type: textblock
41708 #: ../src/guestfs.pod:3016
41709 msgid ""
41710 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41711 msgstr ""
41712
41713 #. type: =item
41714 #: ../src/guestfs.pod:3018
41715 msgid "C<csharp>"
41716 msgstr ""
41717
41718 #. type: =item
41719 #: ../src/guestfs.pod:3020
41720 msgid "C<erlang>"
41721 msgstr ""
41722
41723 #. type: =item
41724 #: ../src/guestfs.pod:3022
41725 msgid "C<haskell>"
41726 msgstr ""
41727
41728 #. type: =item
41729 #: ../src/guestfs.pod:3024
41730 msgid "C<java>"
41731 msgstr ""
41732
41733 #. type: =item
41734 #: ../src/guestfs.pod:3026
41735 msgid "C<ocaml>"
41736 msgstr ""
41737
41738 #. type: =item
41739 #: ../src/guestfs.pod:3028
41740 msgid "C<php>"
41741 msgstr ""
41742
41743 #. type: =item
41744 #: ../src/guestfs.pod:3030
41745 msgid "C<perl>"
41746 msgstr ""
41747
41748 #. type: =item
41749 #: ../src/guestfs.pod:3032
41750 msgid "C<python>"
41751 msgstr ""
41752
41753 #. type: =item
41754 #: ../src/guestfs.pod:3034
41755 msgid "C<ruby>"
41756 msgstr ""
41757
41758 #. type: textblock
41759 #: ../src/guestfs.pod:3036
41760 msgid "Language bindings."
41761 msgstr ""
41762
41763 #. type: =head2
41764 #: ../src/guestfs.pod:3040
41765 msgid "MAKING A STABLE RELEASE"
41766 msgstr ""
41767
41768 #. type: textblock
41769 #: ../src/guestfs.pod:3042
41770 msgid ""
41771 "When we make a stable release, there are several steps documented here.  See "
41772 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41773 "branch policy."
41774 msgstr ""
41775
41776 #. type: textblock
41777 #: ../src/guestfs.pod:3050
41778 msgid ""
41779 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41780 msgstr ""
41781
41782 #. type: textblock
41783 #: ../src/guestfs.pod:3055
41784 msgid "Finalize RELEASE-NOTES."
41785 msgstr ""
41786
41787 #. type: textblock
41788 #: ../src/guestfs.pod:3059
41789 msgid "Update ROADMAP."
41790 msgstr ""
41791
41792 #. type: textblock
41793 #: ../src/guestfs.pod:3063
41794 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41795 msgstr ""
41796
41797 #. type: textblock
41798 #: ../src/guestfs.pod:3067
41799 msgid "Push and pull from Transifex."
41800 msgstr ""
41801
41802 #. type: verbatim
41803 #: ../src/guestfs.pod:3071
41804 #, no-wrap
41805 msgid ""
41806 " tx push -s\n"
41807 "\n"
41808 msgstr ""
41809
41810 #. type: textblock
41811 #: ../src/guestfs.pod:3073
41812 msgid "to push the latest POT files to Transifex.  Then run:"
41813 msgstr ""
41814
41815 #. type: verbatim
41816 #: ../src/guestfs.pod:3075
41817 #, no-wrap
41818 msgid ""
41819 " ./tx-pull.sh\n"
41820 "\n"
41821 msgstr ""
41822
41823 #. type: textblock
41824 #: ../src/guestfs.pod:3077
41825 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41826 msgstr ""
41827
41828 #. type: textblock
41829 #: ../src/guestfs.pod:3081
41830 msgid ""
41831 "Create new stable and development directories under L<http://libguestfs.org/"
41832 "download>."
41833 msgstr ""
41834
41835 #. type: textblock
41836 #: ../src/guestfs.pod:3086
41837 msgid "Create the branch in git:"
41838 msgstr ""
41839
41840 #. type: verbatim
41841 #: ../src/guestfs.pod:3088
41842 #, no-wrap
41843 msgid ""
41844 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41845 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41846 " git branch stable-1.XX\n"
41847 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41848 "\n"
41849 msgstr ""
41850
41851 #. type: =head1
41852 #: ../src/guestfs.pod:3095
41853 msgid "LIMITS"
41854 msgstr ""
41855
41856 #. type: =head2
41857 #: ../src/guestfs.pod:3097
41858 msgid "PROTOCOL LIMITS"
41859 msgstr ""
41860
41861 #. type: textblock
41862 #: ../src/guestfs.pod:3099
41863 msgid ""
41864 "Internally libguestfs uses a message-based protocol to pass API calls and "
41865 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41866 "plenty more detail about this).  The maximum message size used by the "
41867 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
41868 "aware of this limit.  The API calls which may be affected are individually "
41869 "documented, with a link back to this section of the documentation."
41870 msgstr ""
41871
41872 #. type: textblock
41873 #: ../src/guestfs.pod:3107
41874 msgid ""
41875 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41876 "a simple string.  Because this string is at some point internally encoded as "
41877 "a message, the maximum size that it can return is slightly under 4 MB.  If "
41878 "the requested file is larger than this then you will get an error."
41879 msgstr ""
41880
41881 #. type: textblock
41882 #: ../src/guestfs.pod:3113
41883 msgid ""
41884 "In order to transfer large files into and out of the guest filesystem, you "
41885 "need to use particular calls that support this.  The sections L</UPLOADING> "
41886 "and L</DOWNLOADING> document how to do this."
41887 msgstr ""
41888
41889 #. type: textblock
41890 #: ../src/guestfs.pod:3117
41891 msgid ""
41892 "You might also consider mounting the disk image using our FUSE filesystem "
41893 "support (L<guestmount(1)>)."
41894 msgstr ""
41895
41896 #. type: =head2
41897 #: ../src/guestfs.pod:3120
41898 msgid "MAXIMUM NUMBER OF DISKS"
41899 msgstr ""
41900
41901 #. type: textblock
41902 #: ../src/guestfs.pod:3122
41903 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41904 msgstr ""
41905
41906 #. type: textblock
41907 #: ../src/guestfs.pod:3125
41908 msgid ""
41909 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41910 "slots.  However febootstrap only understands disks with names C</dev/vda> "
41911 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41912 "purposes."
41913 msgstr ""
41914
41915 #. type: textblock
41916 #: ../src/guestfs.pod:3130
41917 msgid ""
41918 "We are working to substantially raise this limit in future versions but it "
41919 "requires complex changes to qemu."
41920 msgstr ""
41921
41922 #. type: textblock
41923 #: ../src/guestfs.pod:3133
41924 msgid ""
41925 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41926 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
41927 "requires changes to qemu."
41928 msgstr ""
41929
41930 #. type: =head2
41931 #: ../src/guestfs.pod:3137
41932 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41933 msgstr ""
41934
41935 #. type: textblock
41936 #: ../src/guestfs.pod:3139
41937 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41938 msgstr ""
41939
41940 #. type: textblock
41941 #: ../src/guestfs.pod:3141
41942 msgid ""
41943 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41944 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41945 msgstr ""
41946
41947 #. type: textblock
41948 #: ../src/guestfs.pod:3144
41949 msgid ""
41950 "If you attach a disk with more than 15 partitions, the extra partitions are "
41951 "ignored by libguestfs."
41952 msgstr ""
41953
41954 #. type: =head2
41955 #: ../src/guestfs.pod:3147
41956 msgid "MAXIMUM SIZE OF A DISK"
41957 msgstr ""
41958
41959 #. type: textblock
41960 #: ../src/guestfs.pod:3149
41961 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41962 msgstr ""
41963
41964 #. type: textblock
41965 #: ../src/guestfs.pod:3151
41966 msgid ""
41967 "We have tested block devices up to 1 exabyte (2**60 or "
41968 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41969 "filesystem."
41970 msgstr ""
41971
41972 #. type: textblock
41973 #: ../src/guestfs.pod:3155
41974 msgid ""
41975 "Although libguestfs probably does not impose any limit, the underlying host "
41976 "storage will.  If you store disk images on a host ext4 filesystem, then the "
41977 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41978 "TB).  If you store disk images as host logical volumes then you are limited "
41979 "by the maximum size of an LV."
41980 msgstr ""
41981
41982 #. type: textblock
41983 #: ../src/guestfs.pod:3161
41984 msgid ""
41985 "For the hugest disk image files, we recommend using XFS on the host for "
41986 "storage."
41987 msgstr ""
41988
41989 #. type: =head2
41990 #: ../src/guestfs.pod:3164
41991 msgid "MAXIMUM SIZE OF A PARTITION"
41992 msgstr ""
41993
41994 #. type: textblock
41995 #: ../src/guestfs.pod:3166
41996 msgid ""
41997 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41998 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
41999 "address a partition located beyond 2 TB on the disk."
42000 msgstr ""
42001
42002 #. type: textblock
42003 #: ../src/guestfs.pod:3170
42004 msgid ""
42005 "It is recommended that you use GPT partitions on disks which are larger than "
42006 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
42007 "which are theoretically larger than the largest disk we could support."
42008 msgstr ""
42009
42010 #. type: =head2
42011 #: ../src/guestfs.pod:3175
42012 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
42013 msgstr ""
42014
42015 #. type: textblock
42016 #: ../src/guestfs.pod:3177
42017 msgid ""
42018 "This depends on the filesystem type.  libguestfs itself does not impose any "
42019 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
42020 "what these limits are."
42021 msgstr ""
42022
42023 #. type: =head2
42024 #: ../src/guestfs.pod:3181
42025 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
42026 msgstr ""
42027
42028 #. type: textblock
42029 #: ../src/guestfs.pod:3183
42030 msgid ""
42031 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
42032 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
42033 "uploads and downloads."
42034 msgstr ""
42035
42036 #. type: =head2
42037 #: ../src/guestfs.pod:3187
42038 msgid "INSPECTION LIMITS"
42039 msgstr ""
42040
42041 #. type: textblock
42042 #: ../src/guestfs.pod:3189
42043 msgid ""
42044 "The inspection code has several arbitrary limits on things like the size of "
42045 "Windows Registry hive it will read, and the length of product name.  These "
42046 "are intended to stop a malicious guest from consuming arbitrary amounts of "
42047 "memory and disk space on the host, and should not be reached in practice.  "
42048 "See the source code for more information."
42049 msgstr ""
42050
42051 #. type: textblock
42052 #: ../src/guestfs.pod:3215
42053 msgid ""
42054 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
42055 "effect as calling C<guestfs_set_verbose (g, 1)>."
42056 msgstr ""
42057
42058 #. type: textblock
42059 #: ../src/guestfs.pod:3227
42060 msgid ""
42061 "Set the path that libguestfs uses to search for a supermin appliance.  See "
42062 "the discussion of paths in section L</PATH> above."
42063 msgstr ""
42064
42065 #. type: textblock
42066 #: ../src/guestfs.pod:3236
42067 msgid "See also L</QEMU WRAPPERS> above."
42068 msgstr ""
42069
42070 #. type: textblock
42071 #: ../src/guestfs.pod:3240
42072 msgid ""
42073 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
42074 "effect as calling C<guestfs_set_trace (g, 1)>."
42075 msgstr ""
42076
42077 #. type: textblock
42078 #: ../src/guestfs.pod:3258
42079 msgid ""
42080 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
42081 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
42082 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
42083 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
42084 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
42085 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
42086 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
42087 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
42088 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
42089 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
42090 msgstr ""
42091
42092 #. type: textblock
42093 #: ../src/guestfs.pod:3295
42094 msgid ""
42095 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
42096 "(8)>, L<disktype(1)>."
42097 msgstr ""
42098
42099 #. type: =head1
42100 #: ../src/guestfs.pod:3302 ../tools/virt-make-fs.pl:571
42101 #: ../tools/virt-win-reg.pl:772
42102 msgid "BUGS"
42103 msgstr ""
42104
42105 #. type: textblock
42106 #: ../src/guestfs.pod:3304
42107 msgid "To get a list of bugs against libguestfs use this link:"
42108 msgstr ""
42109
42110 #. type: textblock
42111 #: ../src/guestfs.pod:3306
42112 msgid ""
42113 "L<https://bugzilla.redhat.com/buglist.cgi?"
42114 "component=libguestfs&product=Virtualization+Tools>"
42115 msgstr ""
42116
42117 #. type: textblock
42118 #: ../src/guestfs.pod:3308
42119 msgid "To report a new bug against libguestfs use this link:"
42120 msgstr ""
42121
42122 #. type: textblock
42123 #: ../src/guestfs.pod:3310
42124 msgid ""
42125 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
42126 "component=libguestfs&product=Virtualization+Tools>"
42127 msgstr ""
42128
42129 #. type: textblock
42130 #: ../src/guestfs.pod:3312
42131 msgid "When reporting a bug, please check:"
42132 msgstr ""
42133
42134 #. type: textblock
42135 #: ../src/guestfs.pod:3318
42136 msgid "That the bug hasn't been reported already."
42137 msgstr ""
42138
42139 #. type: textblock
42140 #: ../src/guestfs.pod:3322
42141 msgid "That you are testing a recent version."
42142 msgstr ""
42143
42144 #. type: textblock
42145 #: ../src/guestfs.pod:3326
42146 msgid "Describe the bug accurately, and give a way to reproduce it."
42147 msgstr ""
42148
42149 #. type: textblock
42150 #: ../src/guestfs.pod:3330
42151 msgid ""
42152 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
42153 "bug report."
42154 msgstr ""
42155
42156 #. type: textblock
42157 #: ../test-tool/libguestfs-test-tool.pod:5
42158 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
42159 msgstr ""
42160
42161 #. type: verbatim
42162 #: ../test-tool/libguestfs-test-tool.pod:9
42163 #, no-wrap
42164 msgid ""
42165 " libguestfs-test-tool [--options]\n"
42166 "\n"
42167 msgstr ""
42168
42169 #. type: textblock
42170 #: ../test-tool/libguestfs-test-tool.pod:13
42171 msgid ""
42172 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
42173 "to check basic libguestfs functionality is working.  This is needed because "
42174 "libguestfs occasionally breaks for reasons beyond our control: usually "
42175 "because of changes in the underlying qemu or kernel packages, or the host "
42176 "environment."
42177 msgstr ""
42178
42179 #. type: textblock
42180 #: ../test-tool/libguestfs-test-tool.pod:19
42181 msgid "If you suspect a problem in libguestfs, then just run:"
42182 msgstr ""
42183
42184 #. type: verbatim
42185 #: ../test-tool/libguestfs-test-tool.pod:21
42186 #, no-wrap
42187 msgid ""
42188 " libguestfs-test-tool\n"
42189 "\n"
42190 msgstr ""
42191
42192 #. type: textblock
42193 #: ../test-tool/libguestfs-test-tool.pod:23
42194 msgid "It will print lots of diagnostic messages."
42195 msgstr ""
42196
42197 #. type: textblock
42198 #: ../test-tool/libguestfs-test-tool.pod:25
42199 msgid "If it runs to completion successfully, you will see this near the end:"
42200 msgstr ""
42201
42202 #. type: verbatim
42203 #: ../test-tool/libguestfs-test-tool.pod:27
42204 #, no-wrap
42205 msgid ""
42206 " ===== TEST FINISHED OK =====\n"
42207 "\n"
42208 msgstr ""
42209
42210 #. type: textblock
42211 #: ../test-tool/libguestfs-test-tool.pod:29
42212 msgid "and the test tool will exit with code 0."
42213 msgstr ""
42214
42215 #. type: textblock
42216 #: ../test-tool/libguestfs-test-tool.pod:31
42217 msgid ""
42218 "If it fails (and/or exits with non-zero error code), please paste the "
42219 "I<complete, unedited> output of the test tool into a bug report.  More "
42220 "information about reporting bugs can be found on the L<http://libguestfs.org/"
42221 "> website."
42222 msgstr ""
42223
42224 #. type: textblock
42225 #: ../test-tool/libguestfs-test-tool.pod:42
42226 msgid "Display short usage information and exit."
42227 msgstr ""
42228
42229 #. type: =item
42230 #: ../test-tool/libguestfs-test-tool.pod:44
42231 msgid "B<--qemu qemu_binary>"
42232 msgstr ""
42233
42234 #. type: textblock
42235 #: ../test-tool/libguestfs-test-tool.pod:46
42236 msgid ""
42237 "If you have downloaded another qemu binary, point this option at the full "
42238 "path of the binary to try it."
42239 msgstr ""
42240
42241 #. type: =item
42242 #: ../test-tool/libguestfs-test-tool.pod:49
42243 msgid "B<--qemudir qemu_source_dir>"
42244 msgstr ""
42245
42246 #. type: textblock
42247 #: ../test-tool/libguestfs-test-tool.pod:51
42248 msgid ""
42249 "If you have compiled qemu from source, point this option at the source "
42250 "directory to try it."
42251 msgstr ""
42252
42253 #. type: =item
42254 #: ../test-tool/libguestfs-test-tool.pod:54
42255 msgid "B<-t N>"
42256 msgstr ""
42257
42258 #. type: =item
42259 #: ../test-tool/libguestfs-test-tool.pod:56
42260 msgid "B<--timeout N>"
42261 msgstr ""
42262
42263 #. type: textblock
42264 #: ../test-tool/libguestfs-test-tool.pod:58
42265 msgid ""
42266 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
42267 "minutes) which does not usually need to be adjusted."
42268 msgstr ""
42269
42270 #. type: =head1
42271 #: ../test-tool/libguestfs-test-tool.pod:63
42272 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
42273 msgstr ""
42274
42275 #. type: textblock
42276 #: ../test-tool/libguestfs-test-tool.pod:65
42277 msgid ""
42278 "If you have compiled another version of qemu from source and would like to "
42279 "try that, then you can use the I<--qemudir> option to point to the qemu "
42280 "source directory."
42281 msgstr ""
42282
42283 #. type: textblock
42284 #: ../test-tool/libguestfs-test-tool.pod:69
42285 msgid ""
42286 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
42287 "option to point to the binary."
42288 msgstr ""
42289
42290 #. type: textblock
42291 #: ../test-tool/libguestfs-test-tool.pod:72
42292 msgid ""
42293 "Note when using these options, you can ignore the business of qemu wrapper "
42294 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
42295 "wrapper script for you if one is needed."
42296 msgstr ""
42297
42298 #. type: =head1
42299 #: ../test-tool/libguestfs-test-tool.pod:76
42300 msgid "TRYING OUT A DIFFERENT KERNEL"
42301 msgstr ""
42302
42303 #. type: textblock
42304 #: ../test-tool/libguestfs-test-tool.pod:78
42305 msgid ""
42306 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
42307 "libguestfs tries.  You do this by setting the environment variables "
42308 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
42309 msgstr ""
42310
42311 #. type: textblock
42312 #: ../test-tool/libguestfs-test-tool.pod:82
42313 msgid ""
42314 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
42315 "information."
42316 msgstr ""
42317
42318 #. type: =head1
42319 #: ../test-tool/libguestfs-test-tool.pod:85
42320 msgid "SELF-DIAGNOSIS"
42321 msgstr ""
42322
42323 #. type: textblock
42324 #: ../test-tool/libguestfs-test-tool.pod:87
42325 msgid ""
42326 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
42327 "produced by libguestfs-test-tool and/or possible errors."
42328 msgstr ""
42329
42330 #. type: textblock
42331 #: ../test-tool/libguestfs-test-tool.pod:92
42332 msgid ""
42333 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
42334 "I<1> if there was an error."
42335 msgstr ""
42336
42337 #. type: textblock
42338 #: ../test-tool/libguestfs-test-tool.pod:97
42339 msgid ""
42340 "For the full list of environment variables which may affect libguestfs, "
42341 "please see the L<guestfs(3)> manual page."
42342 msgstr ""
42343
42344 #. type: textblock
42345 #: ../test-tool/libguestfs-test-tool.pod:102
42346 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
42347 msgstr ""
42348
42349 #. type: textblock
42350 #: ../tools/virt-list-filesystems.pl:32
42351 msgid ""
42352 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
42353 msgstr ""
42354
42355 #. type: verbatim
42356 #: ../tools/virt-list-filesystems.pl:36
42357 #, no-wrap
42358 msgid ""
42359 " virt-list-filesystems [--options] domname\n"
42360 "\n"
42361 msgstr ""
42362
42363 #. type: verbatim
42364 #: ../tools/virt-list-filesystems.pl:38
42365 #, no-wrap
42366 msgid ""
42367 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42368 "\n"
42369 msgstr ""
42370
42371 #. type: textblock
42372 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42373 msgid ""
42374 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
42375 "replacement."
42376 msgstr ""
42377
42378 #. type: textblock
42379 #: ../tools/virt-list-filesystems.pl:45
42380 msgid ""
42381 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42382 "are contained in a virtual machine or disk image."
42383 msgstr ""
42384
42385 #. type: textblock
42386 #: ../tools/virt-list-filesystems.pl:49
42387 msgid ""
42388 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42389 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42390 "> tool."
42391 msgstr ""
42392
42393 #. type: textblock
42394 #: ../tools/virt-list-filesystems.pl:112
42395 msgid ""
42396 "With this option, C<virt-list-filesystems> displays the type of each "
42397 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42398 msgstr ""
42399
42400 #. type: =item
42401 #: ../tools/virt-list-filesystems.pl:119
42402 msgid "B<-a>"
42403 msgstr ""
42404
42405 #. type: textblock
42406 #: ../tools/virt-list-filesystems.pl:123
42407 msgid ""
42408 "Normally we only show mountable filesystems.  If this option is given then "
42409 "swap devices are shown too."
42410 msgstr ""
42411
42412 #. type: textblock
42413 #: ../tools/virt-list-filesystems.pl:197
42414 msgid ""
42415 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42416 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42417 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42418 msgstr ""
42419
42420 #. type: textblock
42421 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42422 msgid "Copyright (C) 2009 Red Hat Inc."
42423 msgstr ""
42424
42425 #. type: textblock
42426 #: ../tools/virt-list-partitions.pl:32
42427 msgid ""
42428 "virt-list-partitions - List partitions in a virtual machine or disk image"
42429 msgstr ""
42430
42431 #. type: verbatim
42432 #: ../tools/virt-list-partitions.pl:36
42433 #, no-wrap
42434 msgid ""
42435 " virt-list-partitions [--options] domname\n"
42436 "\n"
42437 msgstr ""
42438
42439 #. type: verbatim
42440 #: ../tools/virt-list-partitions.pl:38
42441 #, no-wrap
42442 msgid ""
42443 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42444 "\n"
42445 msgstr ""
42446
42447 #. type: textblock
42448 #: ../tools/virt-list-partitions.pl:45
42449 msgid ""
42450 "C<virt-list-partitions> is a command line tool to list the partitions that "
42451 "are contained in a virtual machine or disk image.  It is mainly useful as a "
42452 "first step to using L<virt-resize(1)>."
42453 msgstr ""
42454
42455 #. type: textblock
42456 #: ../tools/virt-list-partitions.pl:50
42457 msgid ""
42458 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42459 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42460 "> tool."
42461 msgstr ""
42462
42463 #. type: textblock
42464 #: ../tools/virt-list-partitions.pl:113
42465 msgid "Show sizes in human-readable form (eg. \"1G\")."
42466 msgstr ""
42467
42468 #. type: textblock
42469 #: ../tools/virt-list-partitions.pl:123
42470 msgid ""
42471 "With this option, C<virt-list-partitions> displays the type and size of each "
42472 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42473 msgstr ""
42474
42475 #. type: =item
42476 #: ../tools/virt-list-partitions.pl:130
42477 msgid "B<-t>"
42478 msgstr ""
42479
42480 #. type: =item
42481 #: ../tools/virt-list-partitions.pl:132
42482 msgid "B<--total>"
42483 msgstr ""
42484
42485 #. type: textblock
42486 #: ../tools/virt-list-partitions.pl:134
42487 msgid ""
42488 "Display the total size of each block device (as a separate row or rows)."
42489 msgstr ""
42490
42491 #. type: textblock
42492 #: ../tools/virt-list-partitions.pl:267
42493 msgid ""
42494 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42495 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42496 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42497 msgstr ""
42498
42499 #. type: textblock
42500 #: ../tools/virt-list-partitions.pl:283
42501 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42502 msgstr ""
42503
42504 #. type: textblock
42505 #: ../tools/virt-make-fs.pl:37
42506 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42507 msgstr ""
42508
42509 #. type: verbatim
42510 #: ../tools/virt-make-fs.pl:41
42511 #, no-wrap
42512 msgid ""
42513 " virt-make-fs [--options] input.tar output.img\n"
42514 "\n"
42515 msgstr ""
42516
42517 #. type: verbatim
42518 #: ../tools/virt-make-fs.pl:43
42519 #, no-wrap
42520 msgid ""
42521 " virt-make-fs [--options] input.tar.gz output.img\n"
42522 "\n"
42523 msgstr ""
42524
42525 #. type: verbatim
42526 #: ../tools/virt-make-fs.pl:45
42527 #, no-wrap
42528 msgid ""
42529 " virt-make-fs [--options] directory output.img\n"
42530 "\n"
42531 msgstr ""
42532
42533 #. type: textblock
42534 #: ../tools/virt-make-fs.pl:49
42535 msgid ""
42536 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42537 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
42538 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
42539 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42540 "you want to attach these filesystems to existing virtual machines (eg. to "
42541 "import large amounts of read-only data to a VM)."
42542 msgstr ""
42543
42544 #. type: textblock
42545 #: ../tools/virt-make-fs.pl:57
42546 msgid "Basic usage is:"
42547 msgstr ""
42548
42549 #. type: verbatim
42550 #: ../tools/virt-make-fs.pl:59
42551 #, no-wrap
42552 msgid ""
42553 " virt-make-fs input output.img\n"
42554 "\n"
42555 msgstr ""
42556
42557 #. type: textblock
42558 #: ../tools/virt-make-fs.pl:61
42559 msgid ""
42560 "where C<input> is either a directory containing files that you want to add, "
42561 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42562 "C<output.img> is a disk image.  The input type is detected automatically.  "
42563 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42564 "extra flags (see L</OPTIONS> below)."
42565 msgstr ""
42566
42567 #. type: =head2
42568 #: ../tools/virt-make-fs.pl:67
42569 msgid "FILESYSTEM TYPE"
42570 msgstr ""
42571
42572 #. type: textblock
42573 #: ../tools/virt-make-fs.pl:69
42574 msgid ""
42575 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
42576 "libguestfs supports can be used (but I<not> read-only formats like "
42577 "ISO9660).  Here are some of the more common choices:"
42578 msgstr ""
42579
42580 #. type: =item
42581 #: ../tools/virt-make-fs.pl:75
42582 msgid "I<ext3>"
42583 msgstr ""
42584
42585 #. type: textblock
42586 #: ../tools/virt-make-fs.pl:77
42587 msgid ""
42588 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
42589 "you are not going to use the filesystem in a way that requires the journal, "
42590 "then this is just wasted overhead."
42591 msgstr ""
42592
42593 #. type: =item
42594 #: ../tools/virt-make-fs.pl:81
42595 msgid "I<ntfs> or I<vfat>"
42596 msgstr ""
42597
42598 #. type: textblock
42599 #: ../tools/virt-make-fs.pl:83
42600 msgid "Useful if exporting data to a Windows guest."
42601 msgstr ""
42602
42603 #. type: textblock
42604 #: ../tools/virt-make-fs.pl:85
42605 msgid ""
42606 "I<Note for vfat>: The tar archive or local directory must only contain files "
42607 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
42608 "program running within libguestfs is unable to change the ownership of non-"
42609 "root files, since vfat itself does not support this."
42610 msgstr ""
42611
42612 #. type: =item
42613 #: ../tools/virt-make-fs.pl:90
42614 msgid "I<minix>"
42615 msgstr ""
42616
42617 #. type: textblock
42618 #: ../tools/virt-make-fs.pl:92
42619 msgid ""
42620 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42621 "total filesystem size."
42622 msgstr ""
42623
42624 #. type: =head3
42625 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42626 #: ../tools/virt-make-fs.pl:149
42627 msgid "EXAMPLE"
42628 msgstr ""
42629
42630 #. type: verbatim
42631 #: ../tools/virt-make-fs.pl:99
42632 #, no-wrap
42633 msgid ""
42634 " virt-make-fs --type=minix input minixfs.img\n"
42635 "\n"
42636 msgstr ""
42637
42638 #. type: =head2
42639 #: ../tools/virt-make-fs.pl:101
42640 msgid "TO PARTITION OR NOT TO PARTITION"
42641 msgstr ""
42642
42643 #. type: textblock
42644 #: ../tools/virt-make-fs.pl:103
42645 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42646 msgstr ""
42647
42648 #. type: textblock
42649 #: ../tools/virt-make-fs.pl:105
42650 msgid ""
42651 "Adding a partition can make the disk image more compatible with certain "
42652 "virtualized operating systems which don't expect to see a filesystem "
42653 "directly located on a block device (Linux doesn't care and will happily "
42654 "handle both types)."
42655 msgstr ""
42656
42657 #. type: textblock
42658 #: ../tools/virt-make-fs.pl:110
42659 msgid ""
42660 "On the other hand, if you have a partition table then the output image is no "
42661 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
42662 "directly on a partitioned disk image.  (However libguestfs tools such as "
42663 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42664 msgstr ""
42665
42666 #. type: textblock
42667 #: ../tools/virt-make-fs.pl:118
42668 msgid "Add an MBR partition:"
42669 msgstr ""
42670
42671 #. type: verbatim
42672 #: ../tools/virt-make-fs.pl:120
42673 #, no-wrap
42674 msgid ""
42675 " virt-make-fs --partition -- input disk.img\n"
42676 "\n"
42677 msgstr ""
42678
42679 #. type: textblock
42680 #: ../tools/virt-make-fs.pl:122
42681 msgid ""
42682 "If the output disk image could be terabyte-sized or larger, it's better to "
42683 "use an EFI/GPT-compatible partition table:"
42684 msgstr ""
42685
42686 #. type: verbatim
42687 #: ../tools/virt-make-fs.pl:125
42688 #, no-wrap
42689 msgid ""
42690 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42691 "\n"
42692 msgstr ""
42693
42694 #. type: =head2
42695 #: ../tools/virt-make-fs.pl:127
42696 msgid "EXTRA SPACE"
42697 msgstr ""
42698
42699 #. type: textblock
42700 #: ../tools/virt-make-fs.pl:129
42701 msgid ""
42702 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42703 "the files that it contains, but might have extra space.  Depending on how "
42704 "you are going to use the output, you might think this extra space is wasted "
42705 "and want to minimize it, or you might want to leave space so that more files "
42706 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
42707 "but you can use the I<--size> flag to leave space in the filesystem if you "
42708 "want it."
42709 msgstr ""
42710
42711 #. type: textblock
42712 #: ../tools/virt-make-fs.pl:137
42713 msgid ""
42714 "An alternative way to leave extra space but not make the output image any "
42715 "bigger is to use an alternative disk image format (instead of the default "
42716 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42717 "image format (check your hypervisor supports this before using it).  This "
42718 "allows you to choose a large I<--size> but the extra space won't actually be "
42719 "allocated in the image until you try to store something in it."
42720 msgstr ""
42721
42722 #. type: textblock
42723 #: ../tools/virt-make-fs.pl:145
42724 msgid ""
42725 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42726 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42727 "to build another image from scratch."
42728 msgstr ""
42729
42730 #. type: verbatim
42731 #: ../tools/virt-make-fs.pl:151
42732 #, no-wrap
42733 msgid ""
42734 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42735 "\n"
42736 msgstr ""
42737
42738 #. type: textblock
42739 #: ../tools/virt-make-fs.pl:179
42740 msgid "Enable debugging information."
42741 msgstr ""
42742
42743 #. type: =item
42744 #: ../tools/virt-make-fs.pl:185
42745 msgid "B<--size=E<lt>NE<gt>>"
42746 msgstr ""
42747
42748 #. type: =item
42749 #: ../tools/virt-make-fs.pl:187
42750 msgid "B<--size=+E<lt>NE<gt>>"
42751 msgstr ""
42752
42753 #. type: =item
42754 #: ../tools/virt-make-fs.pl:189
42755 msgid "B<-s E<lt>NE<gt>>"
42756 msgstr ""
42757
42758 #. type: =item
42759 #: ../tools/virt-make-fs.pl:191
42760 msgid "B<-s +E<lt>NE<gt>>"
42761 msgstr ""
42762
42763 #. type: textblock
42764 #: ../tools/virt-make-fs.pl:193
42765 msgid ""
42766 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42767 msgstr ""
42768
42769 #. type: textblock
42770 #: ../tools/virt-make-fs.pl:196
42771 msgid ""
42772 "If this option is I<not> given, then the output image will be just large "
42773 "enough to contain all the files, with not much wasted space."
42774 msgstr ""
42775
42776 #. type: textblock
42777 #: ../tools/virt-make-fs.pl:199
42778 msgid ""
42779 "To choose a fixed size output disk, specify an absolute number followed by b/"
42780 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42781 "Petabytes or Exabytes.  This must be large enough to contain all the input "
42782 "files, else you will get an error."
42783 msgstr ""
42784
42785 #. type: textblock
42786 #: ../tools/virt-make-fs.pl:204
42787 msgid ""
42788 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42789 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42790 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
42791 "the input files, and (approximately) an extra 200 MB free space."
42792 msgstr ""
42793
42794 #. type: textblock
42795 #: ../tools/virt-make-fs.pl:210
42796 msgid ""
42797 "Note that virt-make-fs estimates free space, and therefore will not produce "
42798 "filesystems containing precisely the free space requested.  (It is much more "
42799 "expensive and time-consuming to produce a filesystem which has precisely the "
42800 "desired free space)."
42801 msgstr ""
42802
42803 #. type: =item
42804 #: ../tools/virt-make-fs.pl:219
42805 msgid "B<--format=E<lt>fmtE<gt>>"
42806 msgstr ""
42807
42808 #. type: =item
42809 #: ../tools/virt-make-fs.pl:221
42810 msgid "B<-F E<lt>fmtE<gt>>"
42811 msgstr ""
42812
42813 #. type: textblock
42814 #: ../tools/virt-make-fs.pl:223
42815 msgid "Choose the output disk image format."
42816 msgstr ""
42817
42818 #. type: textblock
42819 #: ../tools/virt-make-fs.pl:225
42820 msgid "The default is C<raw> (raw sparse disk image)."
42821 msgstr ""
42822
42823 #. type: textblock
42824 #: ../tools/virt-make-fs.pl:227
42825 msgid ""
42826 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
42827 "that would really make sense here is C<qcow2>."
42828 msgstr ""
42829
42830 #. type: =item
42831 #: ../tools/virt-make-fs.pl:234
42832 msgid "B<--type=E<lt>fsE<gt>>"
42833 msgstr ""
42834
42835 #. type: =item
42836 #: ../tools/virt-make-fs.pl:236
42837 msgid "B<-t E<lt>fsE<gt>>"
42838 msgstr ""
42839
42840 #. type: textblock
42841 #: ../tools/virt-make-fs.pl:238
42842 msgid "Choose the output filesystem type."
42843 msgstr ""
42844
42845 #. type: textblock
42846 #: ../tools/virt-make-fs.pl:240
42847 msgid "The default is C<ext2>."
42848 msgstr ""
42849
42850 #. type: textblock
42851 #: ../tools/virt-make-fs.pl:242
42852 msgid ""
42853 "Any filesystem which is supported read-write by libguestfs can be used here."
42854 msgstr ""
42855
42856 #. type: =item
42857 #: ../tools/virt-make-fs.pl:249
42858 msgid "B<--partition>"
42859 msgstr ""
42860
42861 #. type: =item
42862 #: ../tools/virt-make-fs.pl:251
42863 msgid "B<--partition=E<lt>parttypeE<gt>>"
42864 msgstr ""
42865
42866 #. type: textblock
42867 #: ../tools/virt-make-fs.pl:253
42868 msgid ""
42869 "If specified, this flag adds an MBR partition table to the output disk image."
42870 msgstr ""
42871
42872 #. type: textblock
42873 #: ../tools/virt-make-fs.pl:256
42874 msgid ""
42875 "You can change the partition table type, eg. I<--partition=gpt> for large "
42876 "disks."
42877 msgstr ""
42878
42879 #. type: textblock
42880 #: ../tools/virt-make-fs.pl:259
42881 msgid ""
42882 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42883 "might consider the next parameter to be the partition type.  For example:"
42884 msgstr ""
42885
42886 #. type: verbatim
42887 #: ../tools/virt-make-fs.pl:263
42888 #, no-wrap
42889 msgid ""
42890 " virt-make-fs --partition input.tar output.img\n"
42891 "\n"
42892 msgstr ""
42893
42894 #. type: textblock
42895 #: ../tools/virt-make-fs.pl:265
42896 msgid ""
42897 "would cause virt-make-fs to think you wanted to use a partition type of "
42898 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
42899 "dash) between options and the input and output arguments:"
42900 msgstr ""
42901
42902 #. type: verbatim
42903 #: ../tools/virt-make-fs.pl:269
42904 #, no-wrap
42905 msgid ""
42906 " virt-make-fs --partition -- input.tar output.img\n"
42907 "\n"
42908 msgstr ""
42909
42910 #. type: textblock
42911 #: ../tools/virt-make-fs.pl:271
42912 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42913 msgstr ""
42914
42915 #. type: textblock
42916 #: ../tools/virt-make-fs.pl:559
42917 msgid ""
42918 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42919 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42920 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42921 msgstr ""
42922
42923 #. type: textblock
42924 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42925 msgid ""
42926 "When reporting bugs, please enable debugging and capture the I<complete> "
42927 "output:"
42928 msgstr ""
42929
42930 #. type: verbatim
42931 #: ../tools/virt-make-fs.pl:576
42932 #, no-wrap
42933 msgid ""
42934 " export LIBGUESTFS_DEBUG=1\n"
42935 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42936 "\n"
42937 msgstr ""
42938
42939 #. type: textblock
42940 #: ../tools/virt-make-fs.pl:579
42941 msgid ""
42942 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42943 "redhat.com/>"
42944 msgstr ""
42945
42946 #. type: textblock
42947 #: ../tools/virt-tar.pl:33
42948 msgid "virt-tar - Extract or upload files to a virtual machine"
42949 msgstr ""
42950
42951 #. type: verbatim
42952 #: ../tools/virt-tar.pl:37
42953 #, no-wrap
42954 msgid ""
42955 " virt-tar [--options] -x domname directory tarball\n"
42956 "\n"
42957 msgstr ""
42958
42959 #. type: verbatim
42960 #: ../tools/virt-tar.pl:39
42961 #, no-wrap
42962 msgid ""
42963 " virt-tar [--options] -u domname tarball directory\n"
42964 "\n"
42965 msgstr ""
42966
42967 #. type: verbatim
42968 #: ../tools/virt-tar.pl:41
42969 #, no-wrap
42970 msgid ""
42971 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42972 "\n"
42973 msgstr ""
42974
42975 #. type: verbatim
42976 #: ../tools/virt-tar.pl:43
42977 #, no-wrap
42978 msgid ""
42979 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42980 "\n"
42981 msgstr ""
42982
42983 #. type: =head2
42984 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42985 msgid "NOTE"
42986 msgstr ""
42987
42988 #. type: textblock
42989 #: ../tools/virt-tar.pl:47
42990 msgid ""
42991 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42992 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42993 msgstr ""
42994
42995 #. type: textblock
42996 #: ../tools/virt-tar.pl:52
42997 msgid "Download C</home> from the VM into a local tarball:"
42998 msgstr ""
42999
43000 #. type: verbatim
43001 #: ../tools/virt-tar.pl:54
43002 #, no-wrap
43003 msgid ""
43004 " virt-tar -x domname /home home.tar\n"
43005 "\n"
43006 msgstr ""
43007
43008 #. type: verbatim
43009 #: ../tools/virt-tar.pl:56
43010 #, no-wrap
43011 msgid ""
43012 " virt-tar -zx domname /home home.tar.gz\n"
43013 "\n"
43014 msgstr ""
43015
43016 #. type: textblock
43017 #: ../tools/virt-tar.pl:58
43018 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
43019 msgstr ""
43020
43021 #. type: verbatim
43022 #: ../tools/virt-tar.pl:60
43023 #, no-wrap
43024 msgid ""
43025 " virt-tar -u domname uploadstuff.tar /tmp\n"
43026 "\n"
43027 msgstr ""
43028
43029 #. type: verbatim
43030 #: ../tools/virt-tar.pl:62
43031 #, no-wrap
43032 msgid ""
43033 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
43034 "\n"
43035 msgstr ""
43036
43037 #. type: textblock
43038 #: ../tools/virt-tar.pl:66
43039 msgid ""
43040 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
43041 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
43042 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
43043 msgstr ""
43044
43045 #. type: textblock
43046 #: ../tools/virt-tar.pl:71
43047 msgid ""
43048 "You can use I<-x> (extract) on live virtual machines, but you might get "
43049 "inconsistent results or errors if there is filesystem activity inside the "
43050 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
43051 "work, but the only way to guarantee consistent results is if the virtual "
43052 "machine is shut down."
43053 msgstr ""
43054
43055 #. type: textblock
43056 #: ../tools/virt-tar.pl:79
43057 msgid ""
43058 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
43059 "parts of a guest filesystem.  There are many possibilities: making backups, "
43060 "uploading data files, snooping on guest activity, fixing or customizing "
43061 "guests, etc."
43062 msgstr ""
43063
43064 #. type: textblock
43065 #: ../tools/virt-tar.pl:84
43066 msgid ""
43067 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
43068 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
43069 "should look at the L<guestfish(1)> tool."
43070 msgstr ""
43071
43072 #. type: textblock
43073 #: ../tools/virt-tar.pl:88
43074 msgid ""
43075 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
43076 "its contents (recursively) from the virtual machine into a local tarball.  "
43077 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
43078 "virtual machine.  You cannot use these two options together."
43079 msgstr ""
43080
43081 #. type: textblock
43082 #: ../tools/virt-tar.pl:94
43083 msgid ""
43084 "In addition, you may need to use the I<-z> (gZip) option to enable "
43085 "compression.  When uploading, you have to specify I<-z> if the upload file "
43086 "is compressed because virt-tar won't detect this on its own."
43087 msgstr ""
43088
43089 #. type: textblock
43090 #: ../tools/virt-tar.pl:98
43091 msgid ""
43092 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
43093 "example it cannot do PKZip files or bzip2 compression.  If you want that "
43094 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
43095 "the L<libguestfs(3)> API)."
43096 msgstr ""
43097
43098 #. type: =item
43099 #: ../tools/virt-tar.pl:160
43100 msgid "B<--extract>"
43101 msgstr ""
43102
43103 #. type: =item
43104 #: ../tools/virt-tar.pl:162
43105 msgid "B<--download>"
43106 msgstr ""
43107
43108 #. type: =item
43109 #: ../tools/virt-tar.pl:164
43110 msgid "B<-u>"
43111 msgstr ""
43112
43113 #. type: =item
43114 #: ../tools/virt-tar.pl:166
43115 msgid "B<--upload>"
43116 msgstr ""
43117
43118 #. type: textblock
43119 #: ../tools/virt-tar.pl:168
43120 msgid ""
43121 "Use I<-x> to extract (download) a directory from a virtual machine to a "
43122 "local tarball."
43123 msgstr ""
43124
43125 #. type: textblock
43126 #: ../tools/virt-tar.pl:171
43127 msgid ""
43128 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
43129 "Please read the L</WARNING> section above before using this option."
43130 msgstr ""
43131
43132 #. type: textblock
43133 #: ../tools/virt-tar.pl:175
43134 msgid "You must specify exactly one of these options."
43135 msgstr ""
43136
43137 #. type: =item
43138 #: ../tools/virt-tar.pl:181
43139 msgid "B<-z>"
43140 msgstr ""
43141
43142 #. type: =item
43143 #: ../tools/virt-tar.pl:183
43144 msgid "B<--gzip>"
43145 msgstr ""
43146
43147 #. type: textblock
43148 #: ../tools/virt-tar.pl:185
43149 msgid "Specify that the input or output tarball is gzip-compressed."
43150 msgstr ""
43151
43152 #. type: textblock
43153 #: ../tools/virt-tar.pl:298
43154 msgid ""
43155 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
43156 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
43157 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
43158 "org/>."
43159 msgstr ""
43160
43161 #. type: textblock
43162 #: ../tools/virt-win-reg.pl:37
43163 msgid ""
43164 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
43165 msgstr ""
43166
43167 #. type: verbatim
43168 #: ../tools/virt-win-reg.pl:41
43169 #, no-wrap
43170 msgid ""
43171 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
43172 "\n"
43173 msgstr ""
43174
43175 #. type: verbatim
43176 #: ../tools/virt-win-reg.pl:43
43177 #, no-wrap
43178 msgid ""
43179 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
43180 "\n"
43181 msgstr ""
43182
43183 #. type: verbatim
43184 #: ../tools/virt-win-reg.pl:45
43185 #, no-wrap
43186 msgid ""
43187 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
43188 "\n"
43189 msgstr ""
43190
43191 #. type: verbatim
43192 #: ../tools/virt-win-reg.pl:47
43193 #, no-wrap
43194 msgid ""
43195 " virt-win-reg --merge domname [input.reg ...]\n"
43196 "\n"
43197 msgstr ""
43198
43199 #. type: verbatim
43200 #: ../tools/virt-win-reg.pl:49
43201 #, no-wrap
43202 msgid ""
43203 " virt-win-reg [--options] disk.img ... # instead of domname\n"
43204 "\n"
43205 msgstr ""
43206
43207 #. type: textblock
43208 #: ../tools/virt-win-reg.pl:53
43209 msgid ""
43210 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
43211 "virtual machines.  If you do this, you I<will> get irreversible disk "
43212 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
43213 "but doesn't catch all cases."
43214 msgstr ""
43215
43216 #. type: textblock
43217 #: ../tools/virt-win-reg.pl:58
43218 msgid ""
43219 "Modifying the Windows Registry is an inherently risky operation.  The format "
43220 "is deliberately obscure and undocumented, and Registry changes can leave the "
43221 "system unbootable.  Therefore when using the I<--merge> option, make sure "
43222 "you have a reliable backup first."
43223 msgstr ""
43224
43225 #. type: textblock
43226 #: ../tools/virt-win-reg.pl:65
43227 msgid ""
43228 "This program can export and merge Windows Registry entries from a Windows "
43229 "guest."
43230 msgstr ""
43231
43232 #. type: textblock
43233 #: ../tools/virt-win-reg.pl:68
43234 msgid ""
43235 "The first parameter is the libvirt guest name or the raw disk image of a "
43236 "Windows guest."
43237 msgstr ""
43238
43239 #. type: textblock
43240 #: ../tools/virt-win-reg.pl:71
43241 msgid ""
43242 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
43243 "exported (recursively).  For example:"
43244 msgstr ""
43245
43246 #. type: verbatim
43247 #: ../tools/virt-win-reg.pl:74
43248 #, no-wrap
43249 msgid ""
43250 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43251 "\n"
43252 msgstr ""
43253
43254 #. type: textblock
43255 #: ../tools/virt-win-reg.pl:76
43256 msgid ""
43257 "You can also display single values from within registry keys, for example:"
43258 msgstr ""
43259
43260 #. type: verbatim
43261 #: ../tools/virt-win-reg.pl:79
43262 #, no-wrap
43263 msgid ""
43264 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43265 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43266 " Windows 7 Enterprise\n"
43267 "\n"
43268 msgstr ""
43269
43270 #. type: textblock
43271 #: ../tools/virt-win-reg.pl:83
43272 msgid ""
43273 "With I<--merge>, you can merge a textual regedit file into the Windows "
43274 "Registry:"
43275 msgstr ""
43276
43277 #. type: verbatim
43278 #: ../tools/virt-win-reg.pl:86
43279 #, no-wrap
43280 msgid ""
43281 " $ virt-win-reg --merge Windows7 changes.reg\n"
43282 "\n"
43283 msgstr ""
43284
43285 #. type: textblock
43286 #: ../tools/virt-win-reg.pl:90
43287 msgid ""
43288 "This program is only meant for simple access to the registry.  If you want "
43289 "to do complicated things with the registry, we suggest you download the "
43290 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
43291 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
43292 "L<hivexregedit(1)>."
43293 msgstr ""
43294
43295 #. type: =item
43296 #: ../tools/virt-win-reg.pl:159
43297 msgid "B<--merge>"
43298 msgstr ""
43299
43300 #. type: textblock
43301 #: ../tools/virt-win-reg.pl:161
43302 msgid ""
43303 "In merge mode, this merges a textual regedit file into the Windows Registry "
43304 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
43305 "displays or exports Registry entries instead."
43306 msgstr ""
43307
43308 #. type: textblock
43309 #: ../tools/virt-win-reg.pl:165
43310 msgid ""
43311 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
43312 "result in disk corruption.  However exporting (without this flag)  is always "
43313 "safe."
43314 msgstr ""
43315
43316 #. type: =item
43317 #: ../tools/virt-win-reg.pl:173
43318 msgid "B<--encoding> UTF-16LE|ASCII"
43319 msgstr ""
43320
43321 #. type: textblock
43322 #: ../tools/virt-win-reg.pl:175
43323 msgid ""
43324 "When merging (only), you may need to specify the encoding for strings to be "
43325 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
43326 "(3)/ENCODING STRINGS>."
43327 msgstr ""
43328
43329 #. type: textblock
43330 #: ../tools/virt-win-reg.pl:179
43331 msgid ""
43332 "The default is to use UTF-16LE, which should work with recent versions of "
43333 "Windows."
43334 msgstr ""
43335
43336 #. type: =item
43337 #: ../tools/virt-win-reg.pl:186
43338 msgid "B<--unsafe-printable-strings>"
43339 msgstr ""
43340
43341 #. type: textblock
43342 #: ../tools/virt-win-reg.pl:188
43343 msgid ""
43344 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43345 "instead of hex sequences.  Remove the final zero codepoint from strings if "
43346 "present."
43347 msgstr ""
43348
43349 #. type: textblock
43350 #: ../tools/virt-win-reg.pl:192
43351 msgid ""
43352 "This is unsafe and does not preserve the fidelity of strings in the original "
43353 "Registry for various reasons:"
43354 msgstr ""
43355
43356 #. type: textblock
43357 #: ../tools/virt-win-reg.pl:199
43358 msgid ""
43359 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
43360 "other encodings will be corrupted by this transformation."
43361 msgstr ""
43362
43363 #. type: textblock
43364 #: ../tools/virt-win-reg.pl:204
43365 msgid ""
43366 "Assumes that everything which has type 1 or 2 is really a string and that "
43367 "everything else is not a string, but the type field in real Registries is "
43368 "not reliable."
43369 msgstr ""
43370
43371 #. type: textblock
43372 #: ../tools/virt-win-reg.pl:210
43373 msgid ""
43374 "Loses information about whether a zero codepoint followed the string in the "
43375 "Registry or not."
43376 msgstr ""
43377
43378 #. type: textblock
43379 #: ../tools/virt-win-reg.pl:215
43380 msgid ""
43381 "This all happens because the Registry itself contains no information about "
43382 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43383 msgstr ""
43384
43385 #. type: textblock
43386 #: ../tools/virt-win-reg.pl:219
43387 msgid ""
43388 "You should only use this option for quick hacking and debugging of the "
43389 "Registry contents, and I<never> use it if the output is going to be passed "
43390 "into another program or stored in another Registry."
43391 msgstr ""
43392
43393 #. type: =head1
43394 #: ../tools/virt-win-reg.pl:556
43395 msgid "SUPPORTED SYSTEMS"
43396 msgstr ""
43397
43398 #. type: textblock
43399 #: ../tools/virt-win-reg.pl:558
43400 msgid ""
43401 "The program currently supports Windows NT-derived guests starting with "
43402 "Windows XP through to at least Windows 7."
43403 msgstr ""
43404
43405 #. type: textblock
43406 #: ../tools/virt-win-reg.pl:561
43407 msgid "The following Registry keys are supported:"
43408 msgstr ""
43409
43410 #. type: =item
43411 #: ../tools/virt-win-reg.pl:565
43412 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43413 msgstr ""
43414
43415 #. type: =item
43416 #: ../tools/virt-win-reg.pl:567
43417 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43418 msgstr ""
43419
43420 #. type: =item
43421 #: ../tools/virt-win-reg.pl:569
43422 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43423 msgstr ""
43424
43425 #. type: =item
43426 #: ../tools/virt-win-reg.pl:571
43427 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43428 msgstr ""
43429
43430 #. type: =item
43431 #: ../tools/virt-win-reg.pl:573
43432 msgid "C<HKEY_USERS\\.DEFAULT>"
43433 msgstr ""
43434
43435 #. type: =item
43436 #: ../tools/virt-win-reg.pl:575
43437 msgid "C<HKEY_USERS\\I<SID>>"
43438 msgstr ""
43439
43440 #. type: textblock
43441 #: ../tools/virt-win-reg.pl:577
43442 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43443 msgstr ""
43444
43445 #. type: =item
43446 #: ../tools/virt-win-reg.pl:579
43447 msgid "C<HKEY_USERS\\I<username>>"
43448 msgstr ""
43449
43450 #. type: textblock
43451 #: ../tools/virt-win-reg.pl:581
43452 msgid ""
43453 "where I<username> is a local user name (this is a libguestfs extension)."
43454 msgstr ""
43455
43456 #. type: textblock
43457 #: ../tools/virt-win-reg.pl:585
43458 msgid ""
43459 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43460 "C<HKEY_USERS>."
43461 msgstr ""
43462
43463 #. type: textblock
43464 #: ../tools/virt-win-reg.pl:588
43465 msgid ""
43466 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43467 "supported (there is no \"current user\")."
43468 msgstr ""
43469
43470 #. type: =head1
43471 #: ../tools/virt-win-reg.pl:591
43472 msgid "ENCODING"
43473 msgstr ""
43474
43475 #. type: textblock
43476 #: ../tools/virt-win-reg.pl:593
43477 msgid ""
43478 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43479 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
43480 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
43481 "Windows-style line endings, you may need to reencode the whole file before "
43482 "or after processing."
43483 msgstr ""
43484
43485 #. type: textblock
43486 #: ../tools/virt-win-reg.pl:599
43487 msgid ""
43488 "To reencode a file from Windows format to Linux (before processing it with "
43489 "the I<--merge> option), you would do something like this:"
43490 msgstr ""
43491
43492 #. type: verbatim
43493 #: ../tools/virt-win-reg.pl:602
43494 #, no-wrap
43495 msgid ""
43496 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43497 "\n"
43498 msgstr ""
43499
43500 #. type: textblock
43501 #: ../tools/virt-win-reg.pl:604
43502 msgid ""
43503 "To go in the opposite direction, after exporting and before sending the file "
43504 "to a Windows user, do something like this:"
43505 msgstr ""
43506
43507 #. type: verbatim
43508 #: ../tools/virt-win-reg.pl:607
43509 #, no-wrap
43510 msgid ""
43511 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43512 "\n"
43513 msgstr ""
43514
43515 #. type: textblock
43516 #: ../tools/virt-win-reg.pl:609
43517 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43518 msgstr ""
43519
43520 #. type: textblock
43521 #: ../tools/virt-win-reg.pl:611
43522 msgid ""
43523 "If you are unsure about the current encoding, use the L<file(1)> command.  "
43524 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43525 "style (CRLF) line endings, like this:"
43526 msgstr ""
43527
43528 #. type: verbatim
43529 #: ../tools/virt-win-reg.pl:615
43530 #, no-wrap
43531 msgid ""
43532 " $ file software.reg\n"
43533 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43534 " with CRLF line terminators\n"
43535 "\n"
43536 msgstr ""
43537
43538 #. type: textblock
43539 #: ../tools/virt-win-reg.pl:619
43540 msgid "This file would need conversion before you could I<--merge> it."
43541 msgstr ""
43542
43543 #. type: =head1
43544 #: ../tools/virt-win-reg.pl:621
43545 msgid "CurrentControlSet etc."
43546 msgstr ""
43547
43548 #. type: textblock
43549 #: ../tools/virt-win-reg.pl:623
43550 msgid ""
43551 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43552 "Registry at the level of the hive file, and therefore you cannot modify "
43553 "these."
43554 msgstr ""
43555
43556 #. type: textblock
43557 #: ../tools/virt-win-reg.pl:627
43558 msgid ""
43559 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
43560 "circumstances it might refer to another control set.  The way to find out is "
43561 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43562 msgstr ""
43563
43564 #. type: verbatim
43565 #: ../tools/virt-win-reg.pl:631
43566 #, no-wrap
43567 msgid ""
43568 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43569 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43570 " \"Current\"=dword:00000001\n"
43571 " \"Default\"=dword:00000001\n"
43572 " \"Failed\"=dword:00000000\n"
43573 " \"LastKnownGood\"=dword:00000002\n"
43574 "\n"
43575 msgstr ""
43576
43577 #. type: textblock
43578 #: ../tools/virt-win-reg.pl:638
43579 msgid "\"Current\" is the one which Windows will choose when it boots."
43580 msgstr ""
43581
43582 #. type: textblock
43583 #: ../tools/virt-win-reg.pl:640
43584 msgid ""
43585 "Similarly, other C<Current...> keys in the path may need to be replaced."
43586 msgstr ""
43587
43588 #. type: =head1
43589 #: ../tools/virt-win-reg.pl:643
43590 msgid "DELETING REGISTRY KEYS AND VALUES"
43591 msgstr ""
43592
43593 #. type: textblock
43594 #: ../tools/virt-win-reg.pl:645
43595 msgid "To delete a whole registry key, use the syntax:"
43596 msgstr ""
43597
43598 #. type: verbatim
43599 #: ../tools/virt-win-reg.pl:647
43600 #, no-wrap
43601 msgid ""
43602 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43603 "\n"
43604 msgstr ""
43605
43606 #. type: textblock
43607 #: ../tools/virt-win-reg.pl:649
43608 msgid "To delete a single value within a key, use the syntax:"
43609 msgstr ""
43610
43611 #. type: verbatim
43612 #: ../tools/virt-win-reg.pl:651
43613 #, no-wrap
43614 msgid ""
43615 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43616 " \"Value\"=-\n"
43617 "\n"
43618 msgstr ""
43619
43620 #. type: =head1
43621 #: ../tools/virt-win-reg.pl:654
43622 msgid "WINDOWS TIPS"
43623 msgstr ""
43624
43625 #. type: textblock
43626 #: ../tools/virt-win-reg.pl:656
43627 msgid ""
43628 "Note that some of these tips modify the guest disk image.  The guest I<must> "
43629 "be shut off, else you will get disk corruption."
43630 msgstr ""
43631
43632 #. type: =head2
43633 #: ../tools/virt-win-reg.pl:659
43634 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43635 msgstr ""
43636
43637 #. type: textblock
43638 #: ../tools/virt-win-reg.pl:661
43639 msgid ""
43640 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
43641 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
43642 "is uploaded into C<C:\\>:"
43643 msgstr ""
43644
43645 #. type: verbatim
43646 #: ../tools/virt-win-reg.pl:665
43647 #, no-wrap
43648 msgid ""
43649 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43650 "\n"
43651 msgstr ""
43652
43653 #. type: textblock
43654 #: ../tools/virt-win-reg.pl:667
43655 msgid "Prepare a regedit file containing the registry change:"
43656 msgstr ""
43657
43658 #. type: verbatim
43659 #: ../tools/virt-win-reg.pl:669
43660 #, no-wrap
43661 msgid ""
43662 " cat > test.reg <<'EOF'\n"
43663 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43664 " \"Test\"=\"c:\\\\test.bat\"\n"
43665 " EOF\n"
43666 "\n"
43667 msgstr ""
43668
43669 #. type: textblock
43670 #: ../tools/virt-win-reg.pl:674
43671 msgid ""
43672 "In this example we use the key C<RunOnce> which means that the script will "
43673 "run precisely once when the first user logs in.  If you want it to run every "
43674 "time a user logs in, replace C<RunOnce> with C<Run>."
43675 msgstr ""
43676
43677 #. type: textblock
43678 #: ../tools/virt-win-reg.pl:678
43679 msgid "Now update the registry:"
43680 msgstr ""
43681
43682 #. type: verbatim
43683 #: ../tools/virt-win-reg.pl:680
43684 #, no-wrap
43685 msgid ""
43686 " virt-win-reg --merge WindowsGuest test.reg\n"
43687 "\n"
43688 msgstr ""
43689
43690 #. type: =head2
43691 #: ../tools/virt-win-reg.pl:682
43692 msgid "INSTALLING A SERVICE"
43693 msgstr ""
43694
43695 #. type: textblock
43696 #: ../tools/virt-win-reg.pl:684
43697 msgid ""
43698 "This section assumes you are familiar with Windows services, and you either "
43699 "have a program which handles the Windows Service Control Protocol directly "
43700 "or you want to run any program using a service wrapper like SrvAny or the "
43701 "free RHSrvAny."
43702 msgstr ""
43703
43704 #. type: textblock
43705 #: ../tools/virt-win-reg.pl:689
43706 msgid ""
43707 "First upload the program and optionally the service wrapper.  In this case "
43708 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43709 msgstr ""
43710
43711 #. type: verbatim
43712 #: ../tools/virt-win-reg.pl:693
43713 #, no-wrap
43714 msgid ""
43715 " guestfish -i -d WindowsGuest <<EOF\n"
43716 "   upload rhsrvany.exe /rhsrvany.exe\n"
43717 "   upload test.exe /test.exe\n"
43718 " EOF\n"
43719 "\n"
43720 msgstr ""
43721
43722 #. type: textblock
43723 #: ../tools/virt-win-reg.pl:698
43724 msgid ""
43725 "Prepare a regedit file containing the registry changes.  In this example, "
43726 "the first registry change is needed for the service itself or the service "
43727 "wrapper (if used).  The second registry change is only needed because I am "
43728 "using the RHSrvAny service wrapper."
43729 msgstr ""
43730
43731 #. type: verbatim
43732 #: ../tools/virt-win-reg.pl:703
43733 #, no-wrap
43734 msgid ""
43735 " cat > service.reg <<'EOF'\n"
43736 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43737 " \"Type\"=dword:00000010\n"
43738 " \"Start\"=dword:00000002\n"
43739 " \"ErrorControl\"=dword:00000001\n"
43740 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43741 " \"DisplayName\"=\"RHSrvAny\"\n"
43742 " \"ObjectName\"=\"NetworkService\"\n"
43743 " \n"
43744 msgstr ""
43745
43746 #. type: verbatim
43747 #: ../tools/virt-win-reg.pl:712
43748 #, no-wrap
43749 msgid ""
43750 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43751 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43752 " \"PWD\"=\"c:\\\\Temp\"\n"
43753 " EOF\n"
43754 "\n"
43755 msgstr ""
43756
43757 #. type: textblock
43758 #: ../tools/virt-win-reg.pl:723
43759 msgid ""
43760 "For use of C<ControlSet001> see the section above in this manual page.  You "
43761 "may need to adjust this according to the control set that is in use by the "
43762 "guest."
43763 msgstr ""
43764
43765 #. type: textblock
43766 #: ../tools/virt-win-reg.pl:729
43767 msgid ""
43768 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
43769 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43770 "privileged account."
43771 msgstr ""
43772
43773 #. type: textblock
43774 #: ../tools/virt-win-reg.pl:735
43775 msgid ""
43776 "For the meaning of the magic numbers, see this Microsoft KB article: "
43777 "L<http://support.microsoft.com/kb/103000>."
43778 msgstr ""
43779
43780 #. type: textblock
43781 #: ../tools/virt-win-reg.pl:740
43782 msgid "Update the registry:"
43783 msgstr ""
43784
43785 #. type: verbatim
43786 #: ../tools/virt-win-reg.pl:742
43787 #, no-wrap
43788 msgid ""
43789 " virt-win-reg --merge WindowsGuest service.reg\n"
43790 "\n"
43791 msgstr ""
43792
43793 #. type: textblock
43794 #: ../tools/virt-win-reg.pl:746
43795 msgid ""
43796 "Be careful when passing parameters containing C<\\> (backslash) in the "
43797 "shell.  Usually you will have to use 'single quotes' or double backslashes "
43798 "(but not both) to protect them from the shell."
43799 msgstr ""
43800
43801 #. type: textblock
43802 #: ../tools/virt-win-reg.pl:750
43803 msgid "Paths and value names are case-insensitive."
43804 msgstr ""
43805
43806 #. type: textblock
43807 #: ../tools/virt-win-reg.pl:759
43808 msgid ""
43809 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43810 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43811 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43812 msgstr ""
43813
43814 #. type: verbatim
43815 #: ../tools/virt-win-reg.pl:777
43816 #, no-wrap
43817 msgid ""
43818 " export LIBGUESTFS_DEBUG=1\n"
43819 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43820 "\n"
43821 msgstr ""
43822
43823 #. type: textblock
43824 #: ../tools/virt-win-reg.pl:780
43825 msgid ""
43826 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43827 "redhat.com/>"
43828 msgstr ""