Version 1.15.11.
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Translators:
6 # rjones <rjones@redhat.com>, 2011.
7 #   <www.carrotsoft@gmail.com>, 2011.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: libguestfs\n"
11 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
12 "POT-Creation-Date: 2011-12-03 11:24+0000\n"
13 "PO-Revision-Date: 2011-10-27 09:15+0000\n"
14 "Last-Translator: rjones <rjones@redhat.com>\n"
15 "Language-Team: Japanese <trans-ja@lists.fedoraproject.org>\n"
16 "Language: ja\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=1; plural=0\n"
21
22 #. type: =head1
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../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:2877
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:3067 ../src/guestfs.pod:3072 ../src/guestfs.pod:3076
978 #: ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3098
979 #: ../src/guestfs.pod:3103 ../src/guestfs.pod:3335 ../src/guestfs.pod:3339
980 #: ../src/guestfs.pod:3343 ../src/guestfs.pod:3347
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:3275
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:3358
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:3214 ../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:3354
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:3356
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:3363
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:3368
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:3373
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:2792
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:3088
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:2916
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:193
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:195
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 "display"
18868 msgstr ""
18869
18870 #. type: verbatim
18871 #: ../fish/guestfish-commands.pod:53
18872 #, no-wrap
18873 msgid ""
18874 " display filename\n"
18875 "\n"
18876 msgstr ""
18877
18878 #. type: textblock
18879 #: ../fish/guestfish-commands.pod:55
18880 msgid ""
18881 "Use C<display> (a graphical display program) to display an image file.  It "
18882 "downloads the file, and runs C<display> on it."
18883 msgstr ""
18884
18885 #. type: textblock
18886 #: ../fish/guestfish-commands.pod:58
18887 msgid ""
18888 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18889 "environment variable.  For example to use the GNOME display program:"
18890 msgstr ""
18891
18892 #. type: verbatim
18893 #: ../fish/guestfish-commands.pod:61
18894 #, no-wrap
18895 msgid ""
18896 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18897 "\n"
18898 msgstr ""
18899
18900 #. type: textblock
18901 #: ../fish/guestfish-commands.pod:63
18902 msgid "See also L<display(1)>."
18903 msgstr ""
18904
18905 #. type: =head2
18906 #: ../fish/guestfish-commands.pod:65
18907 msgid "echo"
18908 msgstr ""
18909
18910 #. type: verbatim
18911 #: ../fish/guestfish-commands.pod:67
18912 #, no-wrap
18913 msgid ""
18914 " echo [params ...]\n"
18915 "\n"
18916 msgstr ""
18917
18918 #. type: textblock
18919 #: ../fish/guestfish-commands.pod:69
18920 msgid "This echos the parameters to the terminal."
18921 msgstr ""
18922
18923 #. type: =head2
18924 #: ../fish/guestfish-commands.pod:71
18925 msgid "edit"
18926 msgstr ""
18927
18928 #. type: =head2
18929 #: ../fish/guestfish-commands.pod:73
18930 msgid "vi"
18931 msgstr ""
18932
18933 #. type: =head2
18934 #: ../fish/guestfish-commands.pod:75
18935 msgid "emacs"
18936 msgstr ""
18937
18938 #. type: verbatim
18939 #: ../fish/guestfish-commands.pod:77
18940 #, no-wrap
18941 msgid ""
18942 " edit filename\n"
18943 "\n"
18944 msgstr ""
18945
18946 #. type: textblock
18947 #: ../fish/guestfish-commands.pod:79
18948 msgid ""
18949 "This is used to edit a file.  It downloads the file, edits it locally using "
18950 "your editor, then uploads the result."
18951 msgstr ""
18952
18953 #. type: textblock
18954 #: ../fish/guestfish-commands.pod:82
18955 msgid ""
18956 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18957 "or C<emacs> you will get those corresponding editors."
18958 msgstr ""
18959
18960 #. type: =head2
18961 #: ../fish/guestfish-commands.pod:86
18962 msgid "glob"
18963 msgstr ""
18964
18965 #. type: verbatim
18966 #: ../fish/guestfish-commands.pod:88
18967 #, no-wrap
18968 msgid ""
18969 " glob command args...\n"
18970 "\n"
18971 msgstr ""
18972
18973 #. type: textblock
18974 #: ../fish/guestfish-commands.pod:90
18975 msgid ""
18976 "Expand wildcards in any paths in the args list, and run C<command> "
18977 "repeatedly on each matching path."
18978 msgstr ""
18979
18980 #. type: textblock
18981 #: ../fish/guestfish-commands.pod:93
18982 msgid "See L</WILDCARDS AND GLOBBING>."
18983 msgstr ""
18984
18985 #. type: =head2
18986 #: ../fish/guestfish-commands.pod:95
18987 msgid "hexedit"
18988 msgstr ""
18989
18990 #. type: verbatim
18991 #: ../fish/guestfish-commands.pod:97
18992 #, no-wrap
18993 msgid ""
18994 " hexedit <filename|device>\n"
18995 " hexedit <filename|device> <max>\n"
18996 " hexedit <filename|device> <start> <max>\n"
18997 "\n"
18998 msgstr ""
18999
19000 #. type: textblock
19001 #: ../fish/guestfish-commands.pod:101
19002 msgid ""
19003 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
19004 "device."
19005 msgstr ""
19006
19007 #. type: textblock
19008 #: ../fish/guestfish-commands.pod:104
19009 msgid ""
19010 "This command works by downloading potentially the whole file or device, "
19011 "editing it locally, then uploading it.  If the file or device is large, you "
19012 "have to specify which part you wish to edit by using C<max> and/or C<start> "
19013 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
19014 "usual modifiers allowed such as C<1M> (1 megabyte)."
19015 msgstr ""
19016
19017 #. type: textblock
19018 #: ../fish/guestfish-commands.pod:111
19019 msgid "For example to edit the first few sectors of a disk you might do:"
19020 msgstr ""
19021
19022 #. type: verbatim
19023 #: ../fish/guestfish-commands.pod:114
19024 #, no-wrap
19025 msgid ""
19026 " hexedit /dev/sda 1M\n"
19027 "\n"
19028 msgstr ""
19029
19030 #. type: textblock
19031 #: ../fish/guestfish-commands.pod:116
19032 msgid ""
19033 "which would allow you to edit anywhere within the first megabyte of the disk."
19034 msgstr ""
19035
19036 #. type: textblock
19037 #: ../fish/guestfish-commands.pod:119
19038 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
19039 msgstr ""
19040
19041 #. type: verbatim
19042 #: ../fish/guestfish-commands.pod:121
19043 #, no-wrap
19044 msgid ""
19045 " hexedit /dev/sda1 0x400 0x400\n"
19046 "\n"
19047 msgstr ""
19048
19049 #. type: textblock
19050 #: ../fish/guestfish-commands.pod:123
19051 msgid "(assuming the superblock is in the standard location)."
19052 msgstr ""
19053
19054 #. type: textblock
19055 #: ../fish/guestfish-commands.pod:125
19056 msgid ""
19057 "This command requires the external L<hexedit(1)> program.  You can specify "
19058 "another program to use by setting the C<HEXEDITOR> environment variable."
19059 msgstr ""
19060
19061 #. type: textblock
19062 #: ../fish/guestfish-commands.pod:129
19063 msgid "See also L</hexdump>."
19064 msgstr ""
19065
19066 #. type: =head2
19067 #: ../fish/guestfish-commands.pod:131
19068 msgid "lcd"
19069 msgstr ""
19070
19071 #. type: verbatim
19072 #: ../fish/guestfish-commands.pod:133
19073 #, no-wrap
19074 msgid ""
19075 " lcd directory\n"
19076 "\n"
19077 msgstr ""
19078
19079 #. type: textblock
19080 #: ../fish/guestfish-commands.pod:135
19081 msgid ""
19082 "Change the local directory, ie. the current directory of guestfish itself."
19083 msgstr ""
19084
19085 #. type: textblock
19086 #: ../fish/guestfish-commands.pod:138
19087 msgid "Note that C<!cd> won't do what you might expect."
19088 msgstr ""
19089
19090 #. type: =head2
19091 #: ../fish/guestfish-commands.pod:140
19092 msgid "man"
19093 msgstr ""
19094
19095 #. type: =head2
19096 #: ../fish/guestfish-commands.pod:142
19097 msgid "manual"
19098 msgstr ""
19099
19100 #. type: verbatim
19101 #: ../fish/guestfish-commands.pod:144
19102 #, no-wrap
19103 msgid ""
19104 "  man\n"
19105 "\n"
19106 msgstr ""
19107
19108 #. type: textblock
19109 #: ../fish/guestfish-commands.pod:146
19110 msgid "Opens the manual page for guestfish."
19111 msgstr ""
19112
19113 #. type: =head2
19114 #: ../fish/guestfish-commands.pod:148
19115 msgid "more"
19116 msgstr ""
19117
19118 #. type: =head2
19119 #: ../fish/guestfish-commands.pod:150
19120 msgid "less"
19121 msgstr ""
19122
19123 #. type: verbatim
19124 #: ../fish/guestfish-commands.pod:152
19125 #, no-wrap
19126 msgid ""
19127 " more filename\n"
19128 "\n"
19129 msgstr ""
19130
19131 #. type: verbatim
19132 #: ../fish/guestfish-commands.pod:154
19133 #, no-wrap
19134 msgid ""
19135 " less filename\n"
19136 "\n"
19137 msgstr ""
19138
19139 #. type: textblock
19140 #: ../fish/guestfish-commands.pod:156
19141 msgid "This is used to view a file."
19142 msgstr ""
19143
19144 #. type: textblock
19145 #: ../fish/guestfish-commands.pod:158
19146 msgid ""
19147 "The default viewer is C<$PAGER>.  However if you use the alternate command "
19148 "C<less> you will get the C<less> command specifically."
19149 msgstr ""
19150
19151 #. type: =head2
19152 #: ../fish/guestfish-commands.pod:161
19153 msgid "reopen"
19154 msgstr ""
19155
19156 #. type: verbatim
19157 #: ../fish/guestfish-commands.pod:163
19158 #, no-wrap
19159 msgid ""
19160 "  reopen\n"
19161 "\n"
19162 msgstr ""
19163
19164 #. type: textblock
19165 #: ../fish/guestfish-commands.pod:165
19166 msgid ""
19167 "Close and reopen the libguestfs handle.  It is not necessary to use this "
19168 "normally, because the handle is closed properly when guestfish exits.  "
19169 "However this is occasionally useful for testing."
19170 msgstr ""
19171
19172 #. type: =head2
19173 #: ../fish/guestfish-commands.pod:169
19174 msgid "setenv"
19175 msgstr ""
19176
19177 #. type: verbatim
19178 #: ../fish/guestfish-commands.pod:171
19179 #, no-wrap
19180 msgid ""
19181 "  setenv VAR value\n"
19182 "\n"
19183 msgstr ""
19184
19185 #. type: textblock
19186 #: ../fish/guestfish-commands.pod:173
19187 msgid "Set the environment variable C<VAR> to the string C<value>."
19188 msgstr ""
19189
19190 #. type: textblock
19191 #: ../fish/guestfish-commands.pod:175
19192 msgid ""
19193 "To print the value of an environment variable use a shell command such as:"
19194 msgstr ""
19195
19196 #. type: verbatim
19197 #: ../fish/guestfish-commands.pod:178
19198 #, no-wrap
19199 msgid ""
19200 " !echo $VAR\n"
19201 "\n"
19202 msgstr ""
19203
19204 #. type: =head2
19205 #: ../fish/guestfish-commands.pod:180
19206 msgid "sparse"
19207 msgstr ""
19208
19209 #. type: verbatim
19210 #: ../fish/guestfish-commands.pod:182
19211 #, no-wrap
19212 msgid ""
19213 " sparse filename size\n"
19214 "\n"
19215 msgstr ""
19216
19217 #. type: textblock
19218 #: ../fish/guestfish-commands.pod:184
19219 msgid ""
19220 "This creates an empty sparse file of the given size, and then adds so it can "
19221 "be further examined."
19222 msgstr ""
19223
19224 #. type: textblock
19225 #: ../fish/guestfish-commands.pod:187
19226 msgid ""
19227 "In all respects it works the same as the L</alloc> command, except that the "
19228 "image file is allocated sparsely, which means that disk blocks are not "
19229 "assigned to the file until they are needed.  Sparse disk files only use "
19230 "space when written to, but they are slower and there is a danger you could "
19231 "run out of real disk space during a write operation."
19232 msgstr ""
19233
19234 #. type: =head2
19235 #: ../fish/guestfish-commands.pod:197
19236 msgid "supported"
19237 msgstr ""
19238
19239 #. type: verbatim
19240 #: ../fish/guestfish-commands.pod:199
19241 #, no-wrap
19242 msgid ""
19243 " supported\n"
19244 "\n"
19245 msgstr ""
19246
19247 #. type: textblock
19248 #: ../fish/guestfish-commands.pod:201
19249 msgid ""
19250 "This command returns a list of the optional groups known to the daemon, and "
19251 "indicates which ones are supported by this build of the libguestfs appliance."
19252 msgstr ""
19253
19254 #. type: textblock
19255 #: ../fish/guestfish-commands.pod:205
19256 msgid "See also L<guestfs(3)/AVAILABILITY>."
19257 msgstr ""
19258
19259 #. type: =head2
19260 #: ../fish/guestfish-commands.pod:207
19261 msgid "time"
19262 msgstr ""
19263
19264 #. type: verbatim
19265 #: ../fish/guestfish-commands.pod:209
19266 #, no-wrap
19267 msgid ""
19268 " time command args...\n"
19269 "\n"
19270 msgstr ""
19271
19272 #. type: textblock
19273 #: ../fish/guestfish-commands.pod:211
19274 msgid ""
19275 "Run the command as usual, but print the elapsed time afterwards.  This can "
19276 "be useful for benchmarking operations."
19277 msgstr ""
19278
19279 #. type: =head2
19280 #: ../fish/guestfish-commands.pod:214
19281 msgid "unsetenv"
19282 msgstr ""
19283
19284 #. type: verbatim
19285 #: ../fish/guestfish-commands.pod:216
19286 #, no-wrap
19287 msgid ""
19288 "  unsetenv VAR\n"
19289 "\n"
19290 msgstr ""
19291
19292 #. type: textblock
19293 #: ../fish/guestfish-commands.pod:218
19294 msgid "Remove C<VAR> from the environment."
19295 msgstr ""
19296
19297 #. type: textblock
19298 #: ../fish/guestfish.pod:5
19299 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19300 msgstr ""
19301
19302 #. type: verbatim
19303 #: ../fish/guestfish.pod:9
19304 #, no-wrap
19305 msgid ""
19306 " guestfish [--options] [commands]\n"
19307 "\n"
19308 msgstr ""
19309
19310 #. type: verbatim
19311 #: ../fish/guestfish.pod:11
19312 #, no-wrap
19313 msgid ""
19314 " guestfish\n"
19315 "\n"
19316 msgstr ""
19317
19318 #. type: verbatim
19319 #: ../fish/guestfish.pod:13
19320 #, no-wrap
19321 msgid ""
19322 " guestfish [--ro|--rw] -a disk.img\n"
19323 "\n"
19324 msgstr ""
19325
19326 #. type: verbatim
19327 #: ../fish/guestfish.pod:15
19328 #, no-wrap
19329 msgid ""
19330 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19331 "\n"
19332 msgstr ""
19333
19334 #. type: verbatim
19335 #: ../fish/guestfish.pod:17
19336 #, no-wrap
19337 msgid ""
19338 " guestfish -d libvirt-domain\n"
19339 "\n"
19340 msgstr ""
19341
19342 #. type: verbatim
19343 #: ../fish/guestfish.pod:19
19344 #, no-wrap
19345 msgid ""
19346 " guestfish [--ro|--rw] -a disk.img -i\n"
19347 "\n"
19348 msgstr ""
19349
19350 #. type: verbatim
19351 #: ../fish/guestfish.pod:21
19352 #, no-wrap
19353 msgid ""
19354 " guestfish -d libvirt-domain -i\n"
19355 "\n"
19356 msgstr ""
19357
19358 #. type: textblock
19359 #: ../fish/guestfish.pod:25
19360 msgid ""
19361 "Using guestfish in read/write mode on live virtual machines can be "
19362 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
19363 "option to use guestfish safely if the disk image or virtual machine might be "
19364 "live."
19365 msgstr ""
19366
19367 #. type: textblock
19368 #: ../fish/guestfish.pod:32
19369 msgid ""
19370 "Guestfish is a shell and command-line tool for examining and modifying "
19371 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
19372 "functionality of the guestfs API, see L<guestfs(3)>."
19373 msgstr ""
19374
19375 #. type: textblock
19376 #: ../fish/guestfish.pod:36
19377 msgid ""
19378 "Guestfish gives you structured access to the libguestfs API, from shell "
19379 "scripts or the command line or interactively.  If you want to rescue a "
19380 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19381 "command."
19382 msgstr ""
19383
19384 #. type: =head2
19385 #: ../fish/guestfish.pod:43
19386 msgid "As an interactive shell"
19387 msgstr ""
19388
19389 #. type: verbatim
19390 #: ../fish/guestfish.pod:45
19391 #, no-wrap
19392 msgid ""
19393 " $ guestfish\n"
19394 " \n"
19395 msgstr ""
19396
19397 #. type: verbatim
19398 #: ../fish/guestfish.pod:47
19399 #, no-wrap
19400 msgid ""
19401 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19402 " editing virtual machine filesystems.\n"
19403 " \n"
19404 msgstr ""
19405
19406 #. type: verbatim
19407 #: ../fish/guestfish.pod:50
19408 #, no-wrap
19409 msgid ""
19410 " Type: 'help' for a list of commands\n"
19411 "       'man' to read the manual\n"
19412 "       'quit' to quit the shell\n"
19413 " \n"
19414 msgstr ""
19415
19416 #. type: verbatim
19417 #: ../fish/guestfish.pod:54
19418 #, no-wrap
19419 msgid ""
19420 " ><fs> add-ro disk.img\n"
19421 " ><fs> run\n"
19422 " ><fs> list-filesystems\n"
19423 " /dev/sda1: ext4\n"
19424 " /dev/vg_guest/lv_root: ext4\n"
19425 " /dev/vg_guest/lv_swap: swap\n"
19426 " ><fs> mount /dev/vg_guest/lv_root /\n"
19427 " ><fs> cat /etc/fstab\n"
19428 " # /etc/fstab\n"
19429 " # Created by anaconda\n"
19430 " [...]\n"
19431 " ><fs> exit\n"
19432 "\n"
19433 msgstr ""
19434
19435 #. type: =head2
19436 #: ../fish/guestfish.pod:67
19437 msgid "From shell scripts"
19438 msgstr ""
19439
19440 #. type: textblock
19441 #: ../fish/guestfish.pod:69
19442 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19443 msgstr ""
19444
19445 #. type: verbatim
19446 #: ../fish/guestfish.pod:71
19447 #, no-wrap
19448 msgid ""
19449 " guestfish <<_EOF_\n"
19450 " add disk.img\n"
19451 " run\n"
19452 " mount /dev/vg_guest/lv_root /\n"
19453 " write /etc/motd \"Welcome, new users\"\n"
19454 " _EOF_\n"
19455 "\n"
19456 msgstr ""
19457
19458 #. type: textblock
19459 #: ../fish/guestfish.pod:78
19460 msgid "List the LVM logical volumes in a disk image:"
19461 msgstr ""
19462
19463 #. type: verbatim
19464 #: ../fish/guestfish.pod:80
19465 #, no-wrap
19466 msgid ""
19467 " guestfish -a disk.img --ro <<_EOF_\n"
19468 " run\n"
19469 " lvs\n"
19470 " _EOF_\n"
19471 "\n"
19472 msgstr ""
19473
19474 #. type: textblock
19475 #: ../fish/guestfish.pod:85
19476 msgid "List all the filesystems in a disk image:"
19477 msgstr ""
19478
19479 #. type: verbatim
19480 #: ../fish/guestfish.pod:87
19481 #, no-wrap
19482 msgid ""
19483 " guestfish -a disk.img --ro <<_EOF_\n"
19484 " run\n"
19485 " list-filesystems\n"
19486 " _EOF_\n"
19487 "\n"
19488 msgstr ""
19489
19490 #. type: =head2
19491 #: ../fish/guestfish.pod:92
19492 msgid "On one command line"
19493 msgstr ""
19494
19495 #. type: textblock
19496 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
19497 msgid "Update C</etc/resolv.conf> in a guest:"
19498 msgstr ""
19499
19500 #. type: verbatim
19501 #: ../fish/guestfish.pod:96
19502 #, no-wrap
19503 msgid ""
19504 " guestfish \\\n"
19505 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19506 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19507 "\n"
19508 msgstr ""
19509
19510 #. type: textblock
19511 #: ../fish/guestfish.pod:100
19512 msgid "Edit C</boot/grub/grub.conf> interactively:"
19513 msgstr ""
19514
19515 #. type: verbatim
19516 #: ../fish/guestfish.pod:102
19517 #, no-wrap
19518 msgid ""
19519 " guestfish --rw --add disk.img \\\n"
19520 "   --mount /dev/vg_guest/lv_root \\\n"
19521 "   --mount /dev/sda1:/boot \\\n"
19522 "   edit /boot/grub/grub.conf\n"
19523 "\n"
19524 msgstr ""
19525
19526 #. type: =head2
19527 #: ../fish/guestfish.pod:107
19528 msgid "Mount disks automatically"
19529 msgstr ""
19530
19531 #. type: textblock
19532 #: ../fish/guestfish.pod:109
19533 msgid ""
19534 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19535 msgstr ""
19536
19537 #. type: verbatim
19538 #: ../fish/guestfish.pod:112
19539 #, no-wrap
19540 msgid ""
19541 " guestfish --ro -a disk.img -i cat /etc/group\n"
19542 "\n"
19543 msgstr ""
19544
19545 #. type: verbatim
19546 #: ../fish/guestfish.pod:114
19547 #, no-wrap
19548 msgid ""
19549 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19550 "\n"
19551 msgstr ""
19552
19553 #. type: textblock
19554 #: ../fish/guestfish.pod:116
19555 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19556 msgstr ""
19557
19558 #. type: verbatim
19559 #: ../fish/guestfish.pod:118
19560 #, no-wrap
19561 msgid ""
19562 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19563 "\n"
19564 msgstr ""
19565
19566 #. type: =head2
19567 #: ../fish/guestfish.pod:120
19568 msgid "As a script interpreter"
19569 msgstr ""
19570
19571 #. type: textblock
19572 #: ../fish/guestfish.pod:122
19573 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19574 msgstr ""
19575
19576 #. type: verbatim
19577 #: ../fish/guestfish.pod:124
19578 #, no-wrap
19579 msgid ""
19580 " #!/usr/bin/guestfish -f\n"
19581 " sparse test1.img 100M\n"
19582 " run\n"
19583 " part-disk /dev/sda mbr\n"
19584 " mkfs ext2 /dev/sda1\n"
19585 "\n"
19586 msgstr ""
19587
19588 #. type: =head2
19589 #: ../fish/guestfish.pod:130
19590 msgid "Start with a prepared disk"
19591 msgstr ""
19592
19593 #. type: textblock
19594 #: ../fish/guestfish.pod:132
19595 msgid ""
19596 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19597 "single ext2-formatted partition:"
19598 msgstr ""
19599
19600 #. type: verbatim
19601 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
19602 #, no-wrap
19603 msgid ""
19604 " guestfish -N fs\n"
19605 "\n"
19606 msgstr ""
19607
19608 #. type: textblock
19609 #: ../fish/guestfish.pod:137
19610 msgid "To list what is available do:"
19611 msgstr ""
19612
19613 #. type: verbatim
19614 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
19615 #, no-wrap
19616 msgid ""
19617 " guestfish -N help | less\n"
19618 "\n"
19619 msgstr ""
19620
19621 #. type: =head2
19622 #: ../fish/guestfish.pod:141
19623 msgid "Remote control"
19624 msgstr ""
19625
19626 #. type: verbatim
19627 #: ../fish/guestfish.pod:143
19628 #, no-wrap
19629 msgid ""
19630 " eval \"`guestfish --listen`\"\n"
19631 " guestfish --remote add-ro disk.img\n"
19632 " guestfish --remote run\n"
19633 " guestfish --remote lvs\n"
19634 "\n"
19635 msgstr ""
19636
19637 #. type: textblock
19638 #: ../fish/guestfish.pod:154
19639 msgid "Displays general help on options."
19640 msgstr ""
19641
19642 #. type: =item
19643 #: ../fish/guestfish.pod:158
19644 msgid "B<--cmd-help>"
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:160
19649 msgid "Lists all available guestfish commands."
19650 msgstr ""
19651
19652 #. type: =item
19653 #: ../fish/guestfish.pod:162
19654 msgid "B<-h cmd>"
19655 msgstr ""
19656
19657 #. type: =item
19658 #: ../fish/guestfish.pod:164
19659 msgid "B<--cmd-help cmd>"
19660 msgstr ""
19661
19662 #. type: textblock
19663 #: ../fish/guestfish.pod:166
19664 msgid "Displays detailed help on a single command C<cmd>."
19665 msgstr ""
19666
19667 #. type: =item
19668 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19669 msgid "B<-a image>"
19670 msgstr ""
19671
19672 #. type: =item
19673 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19674 msgid "B<--add image>"
19675 msgstr ""
19676
19677 #. type: textblock
19678 #: ../fish/guestfish.pod:172
19679 msgid "Add a block device or virtual machine image to the shell."
19680 msgstr ""
19681
19682 #. type: textblock
19683 #: ../fish/guestfish.pod:177
19684 msgid ""
19685 "Using this flag is mostly equivalent to using the C<add> command, with "
19686 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19687 "the I<--format=...> flag was given."
19688 msgstr ""
19689
19690 #. type: textblock
19691 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19692 msgid ""
19693 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19694 "URI to use.  The default is to use the default libvirt connection."
19695 msgstr ""
19696
19697 #. type: =item
19698 #: ../fish/guestfish.pod:189
19699 msgid "B<--csh>"
19700 msgstr ""
19701
19702 #. type: textblock
19703 #: ../fish/guestfish.pod:191
19704 msgid ""
19705 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19706 "section L</REMOTE CONTROL AND CSH> below."
19707 msgstr ""
19708
19709 #. type: =item
19710 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19711 msgid "B<-d libvirt-domain>"
19712 msgstr ""
19713
19714 #. type: =item
19715 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19716 msgid "B<--domain libvirt-domain>"
19717 msgstr ""
19718
19719 #. type: textblock
19720 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19721 msgid ""
19722 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19723 "used, then any libvirt domain can be used.  However in write mode, only "
19724 "libvirt domains which are shut down can be named here."
19725 msgstr ""
19726
19727 #. type: textblock
19728 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19729 msgid "Domain UUIDs can be used instead of names."
19730 msgstr ""
19731
19732 #. type: textblock
19733 #: ../fish/guestfish.pod:204
19734 msgid ""
19735 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19736 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19737 "if the I<--format:...> flag was given."
19738 msgstr ""
19739
19740 #. type: =item
19741 #: ../fish/guestfish.pod:208
19742 msgid "B<-D>"
19743 msgstr ""
19744
19745 #. type: =item
19746 #: ../fish/guestfish.pod:210
19747 msgid "B<--no-dest-paths>"
19748 msgstr ""
19749
19750 #. type: textblock
19751 #: ../fish/guestfish.pod:212
19752 msgid ""
19753 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19754 "to hit the tab key to complete paths on the guest filesystem, but this "
19755 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19756 "allow this feature to be disabled."
19757 msgstr ""
19758
19759 #. type: textblock
19760 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19761 msgid ""
19762 "When prompting for keys and passphrases, guestfish normally turns echoing "
19763 "off so you cannot see what you are typing.  If you are not worried about "
19764 "Tempest attacks and there is no one else in the room you can specify this "
19765 "flag to see what you are typing."
19766 msgstr ""
19767
19768 #. type: =item
19769 #: ../fish/guestfish.pod:224
19770 msgid "B<-f file>"
19771 msgstr ""
19772
19773 #. type: =item
19774 #: ../fish/guestfish.pod:226
19775 msgid "B<--file file>"
19776 msgstr ""
19777
19778 #. type: textblock
19779 #: ../fish/guestfish.pod:228
19780 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19781 msgstr ""
19782
19783 #. type: verbatim
19784 #: ../fish/guestfish.pod:231
19785 #, no-wrap
19786 msgid ""
19787 " #!/usr/bin/guestfish -f\n"
19788 "\n"
19789 msgstr ""
19790
19791 #. type: verbatim
19792 #: ../fish/guestfish.pod:244
19793 #, no-wrap
19794 msgid ""
19795 " guestfish --format=raw -a disk.img\n"
19796 "\n"
19797 msgstr ""
19798
19799 #. type: verbatim
19800 #: ../fish/guestfish.pod:248
19801 #, no-wrap
19802 msgid ""
19803 " guestfish --format=raw -a disk.img --format -a another.img\n"
19804 "\n"
19805 msgstr ""
19806
19807 #. type: textblock
19808 #: ../fish/guestfish.pod:253
19809 msgid ""
19810 "If you have untrusted raw-format guest disk images, you should use this "
19811 "option to specify the disk format.  This avoids a possible security problem "
19812 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19813 msgstr ""
19814
19815 #. type: =item
19816 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19817 msgid "B<--inspector>"
19818 msgstr ""
19819
19820 #. type: textblock
19821 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19822 msgid ""
19823 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19824 "system and mount filesystems as they would be mounted on the real virtual "
19825 "machine."
19826 msgstr ""
19827
19828 #. type: textblock
19829 #: ../fish/guestfish.pod:266
19830 msgid "Typical usage is either:"
19831 msgstr ""
19832
19833 #. type: verbatim
19834 #: ../fish/guestfish.pod:268
19835 #, no-wrap
19836 msgid ""
19837 " guestfish -d myguest -i\n"
19838 "\n"
19839 msgstr ""
19840
19841 #. type: textblock
19842 #: ../fish/guestfish.pod:270
19843 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19844 msgstr ""
19845
19846 #. type: verbatim
19847 #: ../fish/guestfish.pod:272
19848 #, no-wrap
19849 msgid ""
19850 " guestfish --ro -d myguest -i\n"
19851 "\n"
19852 msgstr ""
19853
19854 #. type: textblock
19855 #: ../fish/guestfish.pod:274
19856 msgid "(for active domains, readonly), or specify the block device directly:"
19857 msgstr ""
19858
19859 #. type: verbatim
19860 #: ../fish/guestfish.pod:276
19861 #, no-wrap
19862 msgid ""
19863 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19864 "\n"
19865 msgstr ""
19866
19867 #. type: textblock
19868 #: ../fish/guestfish.pod:278
19869 msgid ""
19870 "Note that the command line syntax changed slightly over older versions of "
19871 "guestfish.  You can still use the old syntax:"
19872 msgstr ""
19873
19874 #. type: verbatim
19875 #: ../fish/guestfish.pod:281
19876 #, no-wrap
19877 msgid ""
19878 " guestfish [--ro] -i disk.img\n"
19879 "\n"
19880 msgstr ""
19881
19882 #. type: verbatim
19883 #: ../fish/guestfish.pod:283
19884 #, no-wrap
19885 msgid ""
19886 " guestfish [--ro] -i libvirt-domain\n"
19887 "\n"
19888 msgstr ""
19889
19890 #. type: textblock
19891 #: ../fish/guestfish.pod:285
19892 msgid ""
19893 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19894 "then using other commands to mount the filesystems that were found."
19895 msgstr ""
19896
19897 #. type: =item
19898 #: ../fish/guestfish.pod:294
19899 msgid "B<--listen>"
19900 msgstr ""
19901
19902 #. type: textblock
19903 #: ../fish/guestfish.pod:296
19904 msgid ""
19905 "Fork into the background and listen for remote commands.  See section L</"
19906 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19907 msgstr ""
19908
19909 #. type: =item
19910 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19911 msgid "B<--live>"
19912 msgstr ""
19913
19914 #. type: textblock
19915 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19916 msgid ""
19917 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19918 "ATTACHING TO RUNNING DAEMONS>)."
19919 msgstr ""
19920
19921 #. type: =item
19922 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19923 msgid "B<-m dev[:mountpoint[:options]]>"
19924 msgstr ""
19925
19926 #. type: =item
19927 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19928 msgid "B<--mount dev[:mountpoint[:options]]>"
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../fish/guestfish.pod:308
19933 msgid "Mount the named partition or logical volume on the given mountpoint."
19934 msgstr ""
19935
19936 #. type: textblock
19937 #: ../fish/guestfish.pod:310
19938 msgid "If the mountpoint is omitted, it defaults to C</>."
19939 msgstr ""
19940
19941 #. type: textblock
19942 #: ../fish/guestfish.pod:312
19943 msgid "You have to mount something on C</> before most commands will work."
19944 msgstr ""
19945
19946 #. type: textblock
19947 #: ../fish/guestfish.pod:314
19948 msgid ""
19949 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19950 "launched."
19951 msgstr ""
19952
19953 #. type: textblock
19954 #: ../fish/guestfish.pod:317
19955 msgid ""
19956 "If you don't know what filesystems a disk image contains, you can either run "
19957 "guestfish without this option, then list the partitions, filesystems and LVs "
19958 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19959 "commands), or you can use the L<virt-filesystems(1)> program."
19960 msgstr ""
19961
19962 #. type: textblock
19963 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19964 msgid ""
19965 "The third (and rarely used) part of the mount parameter is the list of mount "
19966 "options used to mount the underlying filesystem.  If this is not given, then "
19967 "the mount options are either the empty string or C<ro> (the latter if the "
19968 "I<--ro> flag is used).  By specifying the mount options, you override this "
19969 "default choice.  Probably the only time you would use this is to enable ACLs "
19970 "and/or extended attributes if the filesystem can support them:"
19971 msgstr ""
19972
19973 #. type: verbatim
19974 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19975 #, no-wrap
19976 msgid ""
19977 " -m /dev/sda1:/:acl,user_xattr\n"
19978 "\n"
19979 msgstr ""
19980
19981 #. type: textblock
19982 #: ../fish/guestfish.pod:333
19983 msgid "Using this flag is equivalent to using the C<mount-options> command."
19984 msgstr ""
19985
19986 #. type: =item
19987 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19988 #: ../resize/virt-resize.pod:441
19989 msgid "B<-n>"
19990 msgstr ""
19991
19992 #. type: =item
19993 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19994 msgid "B<--no-sync>"
19995 msgstr ""
19996
19997 #. type: textblock
19998 #: ../fish/guestfish.pod:339
19999 msgid ""
20000 "Disable autosync.  This is enabled by default.  See the discussion of "
20001 "autosync in the L<guestfs(3)> manpage."
20002 msgstr ""
20003
20004 #. type: =item
20005 #: ../fish/guestfish.pod:342
20006 msgid "B<-N type>"
20007 msgstr ""
20008
20009 #. type: =item
20010 #: ../fish/guestfish.pod:344
20011 msgid "B<--new type>"
20012 msgstr ""
20013
20014 #. type: =item
20015 #: ../fish/guestfish.pod:346
20016 msgid "B<-N help>"
20017 msgstr ""
20018
20019 #. type: textblock
20020 #: ../fish/guestfish.pod:348
20021 msgid ""
20022 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
20023 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20024 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
20025 "IMAGES> below."
20026 msgstr ""
20027
20028 #. type: =item
20029 #: ../fish/guestfish.pod:353
20030 msgid "B<--progress-bars>"
20031 msgstr ""
20032
20033 #. type: textblock
20034 #: ../fish/guestfish.pod:355
20035 msgid "Enable progress bars, even when guestfish is used non-interactively."
20036 msgstr ""
20037
20038 #. type: textblock
20039 #: ../fish/guestfish.pod:357
20040 msgid ""
20041 "Progress bars are enabled by default when guestfish is used as an "
20042 "interactive shell."
20043 msgstr ""
20044
20045 #. type: =item
20046 #: ../fish/guestfish.pod:360
20047 msgid "B<--no-progress-bars>"
20048 msgstr ""
20049
20050 #. type: textblock
20051 #: ../fish/guestfish.pod:362
20052 msgid "Disable progress bars."
20053 msgstr ""
20054
20055 #. type: =item
20056 #: ../fish/guestfish.pod:364
20057 msgid "B<--remote[=pid]>"
20058 msgstr ""
20059
20060 #. type: textblock
20061 #: ../fish/guestfish.pod:366
20062 msgid ""
20063 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
20064 "CONTROL GUESTFISH OVER A SOCKET> below."
20065 msgstr ""
20066
20067 #. type: =item
20068 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
20069 #: ../rescue/virt-rescue.pod:189
20070 msgid "B<-r>"
20071 msgstr ""
20072
20073 #. type: =item
20074 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
20075 #: ../rescue/virt-rescue.pod:191
20076 msgid "B<--ro>"
20077 msgstr ""
20078
20079 #. type: textblock
20080 #: ../fish/guestfish.pod:373
20081 msgid ""
20082 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20083 "mounts are done read-only."
20084 msgstr ""
20085
20086 #. type: textblock
20087 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
20088 msgid ""
20089 "The option must always be used if the disk image or virtual machine might be "
20090 "running, and is generally recommended in cases where you don't need write "
20091 "access to the disk."
20092 msgstr ""
20093
20094 #. type: textblock
20095 #: ../fish/guestfish.pod:380
20096 msgid ""
20097 "Note that prepared disk images created with I<-N> are not affected by this "
20098 "option.  Also commands like C<add> are not affected - you have to specify "
20099 "the C<readonly:true> option explicitly if you need it."
20100 msgstr ""
20101
20102 #. type: textblock
20103 #: ../fish/guestfish.pod:384
20104 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20105 msgstr ""
20106
20107 #. type: =item
20108 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
20109 #: ../rescue/virt-rescue.pod:201
20110 msgid "B<--selinux>"
20111 msgstr ""
20112
20113 #. type: textblock
20114 #: ../fish/guestfish.pod:388
20115 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
20116 msgstr ""
20117
20118 #. type: textblock
20119 #: ../fish/guestfish.pod:394
20120 msgid ""
20121 "Enable very verbose messages.  This is particularly useful if you find a bug."
20122 msgstr ""
20123
20124 #. type: textblock
20125 #: ../fish/guestfish.pod:401
20126 msgid "Display the guestfish / libguestfs version number and exit."
20127 msgstr ""
20128
20129 #. type: =item
20130 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
20131 #: ../rescue/virt-rescue.pod:231
20132 msgid "B<-w>"
20133 msgstr ""
20134
20135 #. type: =item
20136 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
20137 #: ../rescue/virt-rescue.pod:233
20138 msgid "B<--rw>"
20139 msgstr ""
20140
20141 #. type: textblock
20142 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
20143 msgid ""
20144 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20145 "mounts are done read-write."
20146 msgstr ""
20147
20148 #. type: textblock
20149 #: ../fish/guestfish.pod:410
20150 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20151 msgstr ""
20152
20153 #. type: textblock
20154 #: ../fish/guestfish.pod:414
20155 msgid "Echo each command before executing it."
20156 msgstr ""
20157
20158 #. type: =head1
20159 #: ../fish/guestfish.pod:418
20160 msgid "COMMANDS ON COMMAND LINE"
20161 msgstr ""
20162
20163 #. type: textblock
20164 #: ../fish/guestfish.pod:420
20165 msgid ""
20166 "Any additional (non-option) arguments are treated as commands to execute."
20167 msgstr ""
20168
20169 #. type: textblock
20170 #: ../fish/guestfish.pod:423
20171 msgid ""
20172 "Commands to execute should be separated by a colon (C<:>), where the colon "
20173 "is a separate parameter.  Thus:"
20174 msgstr ""
20175
20176 #. type: verbatim
20177 #: ../fish/guestfish.pod:426
20178 #, no-wrap
20179 msgid ""
20180 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20181 "\n"
20182 msgstr ""
20183
20184 #. type: textblock
20185 #: ../fish/guestfish.pod:428
20186 msgid ""
20187 "If there are no additional arguments, then we enter a shell, either an "
20188 "interactive shell with a prompt (if the input is a terminal) or a non-"
20189 "interactive shell."
20190 msgstr ""
20191
20192 #. type: textblock
20193 #: ../fish/guestfish.pod:432
20194 msgid ""
20195 "In either command line mode or non-interactive shell, the first command that "
20196 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20197 "prompt) if a command fails, you can continue to enter commands."
20198 msgstr ""
20199
20200 #. type: =head1
20201 #: ../fish/guestfish.pod:437
20202 msgid "USING launch (OR run)"
20203 msgstr ""
20204
20205 #. type: textblock
20206 #: ../fish/guestfish.pod:439
20207 msgid ""
20208 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20209 "then launch it, then mount any disks you need, and finally issue actions/"
20210 "commands.  So the general order of the day is:"
20211 msgstr ""
20212
20213 #. type: textblock
20214 #: ../fish/guestfish.pod:447
20215 msgid "add or -a/--add"
20216 msgstr ""
20217
20218 #. type: textblock
20219 #: ../fish/guestfish.pod:451
20220 msgid "launch (aka run)"
20221 msgstr ""
20222
20223 #. type: textblock
20224 #: ../fish/guestfish.pod:455
20225 msgid "mount or -m/--mount"
20226 msgstr ""
20227
20228 #. type: textblock
20229 #: ../fish/guestfish.pod:459
20230 msgid "any other commands"
20231 msgstr ""
20232
20233 #. type: textblock
20234 #: ../fish/guestfish.pod:463
20235 msgid ""
20236 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20237 "guest before mounting or performing any other commands."
20238 msgstr ""
20239
20240 #. type: textblock
20241 #: ../fish/guestfish.pod:466
20242 msgid ""
20243 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20244 "I<--new> options were given then C<run> is done automatically, simply "
20245 "because guestfish can't perform the action you asked for without doing this."
20246 msgstr ""
20247
20248 #. type: =head1
20249 #: ../fish/guestfish.pod:471
20250 msgid "OPENING DISKS FOR READ AND WRITE"
20251 msgstr ""
20252
20253 #. type: textblock
20254 #: ../fish/guestfish.pod:473
20255 msgid ""
20256 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20257 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20258 "I<-i> and I<-m> open disk images read-only or for writing."
20259 msgstr ""
20260
20261 #. type: textblock
20262 #: ../fish/guestfish.pod:478
20263 msgid ""
20264 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20265 "opening disk images supplied on the command line for write.  To open a disk "
20266 "image read-only you have to do I<-a image --ro>."
20267 msgstr ""
20268
20269 #. type: textblock
20270 #: ../fish/guestfish.pod:482
20271 msgid ""
20272 "This matters: If you accidentally open a live VM disk image writable then "
20273 "you will cause irreversible disk corruption."
20274 msgstr ""
20275
20276 #. type: textblock
20277 #: ../fish/guestfish.pod:485
20278 msgid ""
20279 "In a future libguestfs we intend to change the default the other way.  Disk "
20280 "images will be opened read-only.  You will have to either specify "
20281 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20282 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20283 "access for disk images specified by those other command line options."
20284 msgstr ""
20285
20286 #. type: textblock
20287 #: ../fish/guestfish.pod:492
20288 msgid ""
20289 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20290 "which does nothing (it is already the default).  However it is highly "
20291 "recommended that you use this option to indicate that you need write access, "
20292 "and prepare your scripts for the day when this option will be required for "
20293 "write access."
20294 msgstr ""
20295
20296 #. type: textblock
20297 #: ../fish/guestfish.pod:498
20298 msgid ""
20299 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20300 "other libguestfs program apart from guestfish and guestmount."
20301 msgstr ""
20302
20303 #. type: =head1
20304 #: ../fish/guestfish.pod:501
20305 msgid "QUOTING"
20306 msgstr ""
20307
20308 #. type: textblock
20309 #: ../fish/guestfish.pod:503
20310 msgid ""
20311 "You can quote ordinary parameters using either single or double quotes.  For "
20312 "example:"
20313 msgstr ""
20314
20315 #. type: verbatim
20316 #: ../fish/guestfish.pod:506
20317 #, no-wrap
20318 msgid ""
20319 " add \"file with a space.img\"\n"
20320 "\n"
20321 msgstr ""
20322
20323 #. type: verbatim
20324 #: ../fish/guestfish.pod:508
20325 #, no-wrap
20326 msgid ""
20327 " rm '/file name'\n"
20328 "\n"
20329 msgstr ""
20330
20331 #. type: verbatim
20332 #: ../fish/guestfish.pod:510
20333 #, no-wrap
20334 msgid ""
20335 " rm '/\"'\n"
20336 "\n"
20337 msgstr ""
20338
20339 #. type: textblock
20340 #: ../fish/guestfish.pod:512
20341 msgid ""
20342 "A few commands require a list of strings to be passed.  For these, use a "
20343 "whitespace-separated list, enclosed in quotes.  Strings containing "
20344 "whitespace to be passed through must be enclosed in single quotes.  A "
20345 "literal single quote must be escaped with a backslash."
20346 msgstr ""
20347
20348 #. type: verbatim
20349 #: ../fish/guestfish.pod:517
20350 #, no-wrap
20351 msgid ""
20352 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20353 " command \"/bin/echo 'foo      bar'\"\n"
20354 " command \"/bin/echo \\'foo\\'\"\n"
20355 "\n"
20356 msgstr ""
20357
20358 #. type: =head2
20359 #: ../fish/guestfish.pod:521
20360 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
20361 msgstr ""
20362
20363 #. type: textblock
20364 #: ../fish/guestfish.pod:523
20365 msgid ""
20366 "In double-quoted arguments (only) use backslash to insert special characters:"
20367 msgstr ""
20368
20369 #. type: =item
20370 #: ../fish/guestfish.pod:528
20371 msgid "C<\\a>"
20372 msgstr ""
20373
20374 #. type: textblock
20375 #: ../fish/guestfish.pod:530
20376 msgid "Alert (bell) character."
20377 msgstr ""
20378
20379 #. type: =item
20380 #: ../fish/guestfish.pod:532
20381 msgid "C<\\b>"
20382 msgstr ""
20383
20384 #. type: textblock
20385 #: ../fish/guestfish.pod:534
20386 msgid "Backspace character."
20387 msgstr ""
20388
20389 #. type: =item
20390 #: ../fish/guestfish.pod:536
20391 msgid "C<\\f>"
20392 msgstr ""
20393
20394 #. type: textblock
20395 #: ../fish/guestfish.pod:538
20396 msgid "Form feed character."
20397 msgstr ""
20398
20399 #. type: =item
20400 #: ../fish/guestfish.pod:540
20401 msgid "C<\\n>"
20402 msgstr ""
20403
20404 #. type: textblock
20405 #: ../fish/guestfish.pod:542
20406 msgid "Newline character."
20407 msgstr ""
20408
20409 #. type: =item
20410 #: ../fish/guestfish.pod:544
20411 msgid "C<\\r>"
20412 msgstr ""
20413
20414 #. type: textblock
20415 #: ../fish/guestfish.pod:546
20416 msgid "Carriage return character."
20417 msgstr ""
20418
20419 #. type: =item
20420 #: ../fish/guestfish.pod:548
20421 msgid "C<\\t>"
20422 msgstr ""
20423
20424 #. type: textblock
20425 #: ../fish/guestfish.pod:550
20426 msgid "Horizontal tab character."
20427 msgstr ""
20428
20429 #. type: =item
20430 #: ../fish/guestfish.pod:552
20431 msgid "C<\\v>"
20432 msgstr ""
20433
20434 #. type: textblock
20435 #: ../fish/guestfish.pod:554
20436 msgid "Vertical tab character."
20437 msgstr ""
20438
20439 #. type: =item
20440 #: ../fish/guestfish.pod:556
20441 msgid "C<\\\">"
20442 msgstr ""
20443
20444 #. type: textblock
20445 #: ../fish/guestfish.pod:558
20446 msgid "A literal double quote character."
20447 msgstr ""
20448
20449 #. type: =item
20450 #: ../fish/guestfish.pod:560
20451 msgid "C<\\ooo>"
20452 msgstr ""
20453
20454 #. type: textblock
20455 #: ../fish/guestfish.pod:562
20456 msgid ""
20457 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
20458 "(unlike C)."
20459 msgstr ""
20460
20461 #. type: =item
20462 #: ../fish/guestfish.pod:565
20463 msgid "C<\\xhh>"
20464 msgstr ""
20465
20466 #. type: textblock
20467 #: ../fish/guestfish.pod:567
20468 msgid ""
20469 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
20470 msgstr ""
20471
20472 #. type: textblock
20473 #: ../fish/guestfish.pod:570
20474 msgid ""
20475 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
20476 "strings."
20477 msgstr ""
20478
20479 #. type: =item
20480 #: ../fish/guestfish.pod:573
20481 msgid "C<\\\\>"
20482 msgstr ""
20483
20484 #. type: textblock
20485 #: ../fish/guestfish.pod:575
20486 msgid "A literal backslash character."
20487 msgstr ""
20488
20489 #. type: =head1
20490 #: ../fish/guestfish.pod:579
20491 msgid "OPTIONAL ARGUMENTS"
20492 msgstr ""
20493
20494 #. type: textblock
20495 #: ../fish/guestfish.pod:581
20496 msgid ""
20497 "Some commands take optional arguments.  These arguments appear in this "
20498 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20499 msgstr ""
20500
20501 #. type: verbatim
20502 #: ../fish/guestfish.pod:585
20503 #, no-wrap
20504 msgid ""
20505 " add-drive-opts filename\n"
20506 "\n"
20507 msgstr ""
20508
20509 #. type: verbatim
20510 #: ../fish/guestfish.pod:587
20511 #, no-wrap
20512 msgid ""
20513 " add-drive-opts filename readonly:true\n"
20514 "\n"
20515 msgstr ""
20516
20517 #. type: verbatim
20518 #: ../fish/guestfish.pod:589
20519 #, no-wrap
20520 msgid ""
20521 " add-drive-opts filename format:qcow2 readonly:false\n"
20522 "\n"
20523 msgstr ""
20524
20525 #. type: textblock
20526 #: ../fish/guestfish.pod:591
20527 msgid ""
20528 "Each optional argument can appear at most once.  All optional arguments must "
20529 "appear after the required ones."
20530 msgstr ""
20531
20532 #. type: =head1
20533 #: ../fish/guestfish.pod:594
20534 msgid "NUMBERS"
20535 msgstr ""
20536
20537 #. type: textblock
20538 #: ../fish/guestfish.pod:596
20539 msgid ""
20540 "This section applies to all commands which can take integers as parameters."
20541 msgstr ""
20542
20543 #. type: =head2
20544 #: ../fish/guestfish.pod:599
20545 msgid "SIZE SUFFIX"
20546 msgstr ""
20547
20548 #. type: textblock
20549 #: ../fish/guestfish.pod:601
20550 msgid ""
20551 "When the command takes a parameter measured in bytes, you can use one of the "
20552 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20553 msgstr ""
20554
20555 #. type: =item
20556 #: ../fish/guestfish.pod:607
20557 msgid "B<k> or B<K> or B<KiB>"
20558 msgstr ""
20559
20560 #. type: textblock
20561 #: ../fish/guestfish.pod:609
20562 msgid "The size in kilobytes (multiplied by 1024)."
20563 msgstr ""
20564
20565 #. type: =item
20566 #: ../fish/guestfish.pod:611
20567 msgid "B<KB>"
20568 msgstr ""
20569
20570 #. type: textblock
20571 #: ../fish/guestfish.pod:613
20572 msgid "The size in SI 1000 byte units."
20573 msgstr ""
20574
20575 #. type: =item
20576 #: ../fish/guestfish.pod:615
20577 msgid "B<M> or B<MiB>"
20578 msgstr ""
20579
20580 #. type: textblock
20581 #: ../fish/guestfish.pod:617
20582 msgid "The size in megabytes (multiplied by 1048576)."
20583 msgstr ""
20584
20585 #. type: =item
20586 #: ../fish/guestfish.pod:619
20587 msgid "B<MB>"
20588 msgstr ""
20589
20590 #. type: textblock
20591 #: ../fish/guestfish.pod:621
20592 msgid "The size in SI 1000000 byte units."
20593 msgstr ""
20594
20595 #. type: =item
20596 #: ../fish/guestfish.pod:623
20597 msgid "B<G> or B<GiB>"
20598 msgstr ""
20599
20600 #. type: textblock
20601 #: ../fish/guestfish.pod:625
20602 msgid "The size in gigabytes (multiplied by 2**30)."
20603 msgstr ""
20604
20605 #. type: =item
20606 #: ../fish/guestfish.pod:627
20607 msgid "B<GB>"
20608 msgstr ""
20609
20610 #. type: textblock
20611 #: ../fish/guestfish.pod:629
20612 msgid "The size in SI 10**9 byte units."
20613 msgstr ""
20614
20615 #. type: =item
20616 #: ../fish/guestfish.pod:631
20617 msgid "B<T> or B<TiB>"
20618 msgstr ""
20619
20620 #. type: textblock
20621 #: ../fish/guestfish.pod:633
20622 msgid "The size in terabytes (multiplied by 2**40)."
20623 msgstr ""
20624
20625 #. type: =item
20626 #: ../fish/guestfish.pod:635
20627 msgid "B<TB>"
20628 msgstr ""
20629
20630 #. type: textblock
20631 #: ../fish/guestfish.pod:637
20632 msgid "The size in SI 10**12 byte units."
20633 msgstr ""
20634
20635 #. type: =item
20636 #: ../fish/guestfish.pod:639
20637 msgid "B<P> or B<PiB>"
20638 msgstr ""
20639
20640 #. type: textblock
20641 #: ../fish/guestfish.pod:641
20642 msgid "The size in petabytes (multiplied by 2**50)."
20643 msgstr ""
20644
20645 #. type: =item
20646 #: ../fish/guestfish.pod:643
20647 msgid "B<PB>"
20648 msgstr ""
20649
20650 #. type: textblock
20651 #: ../fish/guestfish.pod:645
20652 msgid "The size in SI 10**15 byte units."
20653 msgstr ""
20654
20655 #. type: =item
20656 #: ../fish/guestfish.pod:647
20657 msgid "B<E> or B<EiB>"
20658 msgstr ""
20659
20660 #. type: textblock
20661 #: ../fish/guestfish.pod:649
20662 msgid "The size in exabytes (multiplied by 2**60)."
20663 msgstr ""
20664
20665 #. type: =item
20666 #: ../fish/guestfish.pod:651
20667 msgid "B<EB>"
20668 msgstr ""
20669
20670 #. type: textblock
20671 #: ../fish/guestfish.pod:653
20672 msgid "The size in SI 10**18 byte units."
20673 msgstr ""
20674
20675 #. type: =item
20676 #: ../fish/guestfish.pod:655
20677 msgid "B<Z> or B<ZiB>"
20678 msgstr ""
20679
20680 #. type: textblock
20681 #: ../fish/guestfish.pod:657
20682 msgid "The size in zettabytes (multiplied by 2**70)."
20683 msgstr ""
20684
20685 #. type: =item
20686 #: ../fish/guestfish.pod:659
20687 msgid "B<ZB>"
20688 msgstr ""
20689
20690 #. type: textblock
20691 #: ../fish/guestfish.pod:661
20692 msgid "The size in SI 10**21 byte units."
20693 msgstr ""
20694
20695 #. type: =item
20696 #: ../fish/guestfish.pod:663
20697 msgid "B<Y> or B<YiB>"
20698 msgstr ""
20699
20700 #. type: textblock
20701 #: ../fish/guestfish.pod:665
20702 msgid "The size in yottabytes (multiplied by 2**80)."
20703 msgstr ""
20704
20705 #. type: =item
20706 #: ../fish/guestfish.pod:667
20707 msgid "B<YB>"
20708 msgstr ""
20709
20710 #. type: textblock
20711 #: ../fish/guestfish.pod:669
20712 msgid "The size in SI 10**24 byte units."
20713 msgstr ""
20714
20715 #. type: verbatim
20716 #: ../fish/guestfish.pod:675
20717 #, no-wrap
20718 msgid ""
20719 " truncate-size /file 1G\n"
20720 "\n"
20721 msgstr ""
20722
20723 #. type: textblock
20724 #: ../fish/guestfish.pod:677
20725 msgid "would truncate the file to 1 gigabyte."
20726 msgstr ""
20727
20728 #. type: textblock
20729 #: ../fish/guestfish.pod:679
20730 msgid ""
20731 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20732 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20733 "suffix will probably not do what you expect."
20734 msgstr ""
20735
20736 #. type: =head2
20737 #: ../fish/guestfish.pod:683
20738 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20739 msgstr ""
20740
20741 #. type: textblock
20742 #: ../fish/guestfish.pod:685
20743 msgid ""
20744 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20745 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20746 msgstr ""
20747
20748 #. type: verbatim
20749 #: ../fish/guestfish.pod:688
20750 #, no-wrap
20751 msgid ""
20752 " 1234      decimal number 1234\n"
20753 " 02322     octal number, equivalent to decimal 1234\n"
20754 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20755 "\n"
20756 msgstr ""
20757
20758 #. type: textblock
20759 #: ../fish/guestfish.pod:692
20760 msgid ""
20761 "When using the C<chmod> command, you almost always want to specify an octal "
20762 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20763 "L<chmod(1)> program):"
20764 msgstr ""
20765
20766 #. type: verbatim
20767 #: ../fish/guestfish.pod:696
20768 #, no-wrap
20769 msgid ""
20770 " chmod 0777 /public  # OK\n"
20771 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20772 "\n"
20773 msgstr ""
20774
20775 #. type: textblock
20776 #: ../fish/guestfish.pod:699
20777 msgid ""
20778 "Commands that return numbers usually print them in decimal, but some "
20779 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20780 "octal, preceeded by C<0>)."
20781 msgstr ""
20782
20783 #. type: =head1
20784 #: ../fish/guestfish.pod:703
20785 msgid "WILDCARDS AND GLOBBING"
20786 msgstr ""
20787
20788 #. type: textblock
20789 #: ../fish/guestfish.pod:705
20790 msgid ""
20791 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20792 "(globbing) by default.  So for example the following will not do what you "
20793 "expect:"
20794 msgstr ""
20795
20796 #. type: verbatim
20797 #: ../fish/guestfish.pod:709
20798 #, no-wrap
20799 msgid ""
20800 " rm-rf /home/*\n"
20801 "\n"
20802 msgstr ""
20803
20804 #. type: textblock
20805 #: ../fish/guestfish.pod:711
20806 msgid ""
20807 "Assuming you don't have a directory called literally C</home/*> then the "
20808 "above command will return an error."
20809 msgstr ""
20810
20811 #. type: textblock
20812 #: ../fish/guestfish.pod:714
20813 msgid "To perform wildcard expansion, use the C<glob> command."
20814 msgstr ""
20815
20816 #. type: verbatim
20817 #: ../fish/guestfish.pod:716
20818 #, no-wrap
20819 msgid ""
20820 " glob rm-rf /home/*\n"
20821 "\n"
20822 msgstr ""
20823
20824 #. type: textblock
20825 #: ../fish/guestfish.pod:718
20826 msgid ""
20827 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20828 "many times), equivalent to:"
20829 msgstr ""
20830
20831 #. type: verbatim
20832 #: ../fish/guestfish.pod:721
20833 #, no-wrap
20834 msgid ""
20835 " rm-rf /home/jim\n"
20836 " rm-rf /home/joe\n"
20837 " rm-rf /home/mary\n"
20838 "\n"
20839 msgstr ""
20840
20841 #. type: textblock
20842 #: ../fish/guestfish.pod:725
20843 msgid "C<glob> only works on simple guest paths and not on device names."
20844 msgstr ""
20845
20846 #. type: textblock
20847 #: ../fish/guestfish.pod:727
20848 msgid ""
20849 "If you have several parameters, each containing a wildcard, then glob will "
20850 "perform a Cartesian product."
20851 msgstr ""
20852
20853 #. type: =head1
20854 #: ../fish/guestfish.pod:730
20855 msgid "COMMENTS"
20856 msgstr ""
20857
20858 #. type: textblock
20859 #: ../fish/guestfish.pod:732
20860 msgid ""
20861 "Any line which starts with a I<#> character is treated as a comment and "
20862 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20863 "a command.  For example:"
20864 msgstr ""
20865
20866 #. type: verbatim
20867 #: ../fish/guestfish.pod:736
20868 #, no-wrap
20869 msgid ""
20870 " # this is a comment\n"
20871 "         # this is a comment\n"
20872 " foo # NOT a comment\n"
20873 "\n"
20874 msgstr ""
20875
20876 #. type: textblock
20877 #: ../fish/guestfish.pod:740
20878 msgid "Blank lines are also ignored."
20879 msgstr ""
20880
20881 #. type: =head1
20882 #: ../fish/guestfish.pod:742
20883 msgid "RUNNING COMMANDS LOCALLY"
20884 msgstr ""
20885
20886 #. type: textblock
20887 #: ../fish/guestfish.pod:744
20888 msgid ""
20889 "Any line which starts with a I<!> character is treated as a command sent to "
20890 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20891 msgstr ""
20892
20893 #. type: verbatim
20894 #: ../fish/guestfish.pod:748
20895 #, no-wrap
20896 msgid ""
20897 " !mkdir local\n"
20898 " tgz-out /remote local/remote-data.tar.gz\n"
20899 "\n"
20900 msgstr ""
20901
20902 #. type: textblock
20903 #: ../fish/guestfish.pod:751
20904 msgid ""
20905 "will create a directory C<local> on the host, and then export the contents "
20906 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20907 "(See C<tgz-out>)."
20908 msgstr ""
20909
20910 #. type: textblock
20911 #: ../fish/guestfish.pod:755
20912 msgid ""
20913 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20914 "effect, due to the way that subprocesses work in Unix."
20915 msgstr ""
20916
20917 #. type: =head2
20918 #: ../fish/guestfish.pod:758
20919 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20920 msgstr ""
20921
20922 #. type: textblock
20923 #: ../fish/guestfish.pod:760
20924 msgid ""
20925 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20926 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20927 "and executed as guestfish commands."
20928 msgstr ""
20929
20930 #. type: textblock
20931 #: ../fish/guestfish.pod:764
20932 msgid ""
20933 "Thus you can use shell script to construct arbitrary guestfish commands "
20934 "which are then parsed by guestfish."
20935 msgstr ""
20936
20937 #. type: textblock
20938 #: ../fish/guestfish.pod:767
20939 msgid ""
20940 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20941 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20942 "if we use a shell script to create the guestfish commands for us:"
20943 msgstr ""
20944
20945 #. type: verbatim
20946 #: ../fish/guestfish.pod:772
20947 #, no-wrap
20948 msgid ""
20949 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20950 "\n"
20951 msgstr ""
20952
20953 #. type: textblock
20954 #: ../fish/guestfish.pod:774
20955 msgid "or with names like C</foo.001>:"
20956 msgstr ""
20957
20958 #. type: verbatim
20959 #: ../fish/guestfish.pod:776
20960 #, no-wrap
20961 msgid ""
20962 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20963 "\n"
20964 msgstr ""
20965
20966 #. type: textblock
20967 #: ../fish/guestfish.pod:778
20968 msgid ""
20969 "When using guestfish interactively it can be helpful to just run the shell "
20970 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20971 "ordinary I<!> local command), see what guestfish commands it would run, and "
20972 "when you are happy with those prepend the C<E<lt>> character to run the "
20973 "guestfish commands for real."
20974 msgstr ""
20975
20976 #. type: =head1
20977 #: ../fish/guestfish.pod:784
20978 msgid "PIPES"
20979 msgstr ""
20980
20981 #. type: textblock
20982 #: ../fish/guestfish.pod:786
20983 msgid ""
20984 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20985 "command (a guestfish command) to the second command (any host command).  For "
20986 "example:"
20987 msgstr ""
20988
20989 #. type: verbatim
20990 #: ../fish/guestfish.pod:790
20991 #, no-wrap
20992 msgid ""
20993 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20994 "\n"
20995 msgstr ""
20996
20997 #. type: textblock
20998 #: ../fish/guestfish.pod:792
20999 msgid ""
21000 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
21001 "program).  The above command would list all accounts in the guest filesystem "
21002 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
21003 msgstr ""
21004
21005 #. type: verbatim
21006 #: ../fish/guestfish.pod:797
21007 #, no-wrap
21008 msgid ""
21009 " hexdump /bin/ls | head\n"
21010 " list-devices | tail -1\n"
21011 " tgz-out / - | tar ztf -\n"
21012 "\n"
21013 msgstr ""
21014
21015 #. type: textblock
21016 #: ../fish/guestfish.pod:801
21017 msgid ""
21018 "The space before the pipe symbol is required, any space after the pipe "
21019 "symbol is optional.  Everything after the pipe symbol is just passed "
21020 "straight to the host shell, so it can contain redirections, globs and "
21021 "anything else that makes sense on the host side."
21022 msgstr ""
21023
21024 #. type: textblock
21025 #: ../fish/guestfish.pod:806
21026 msgid ""
21027 "To use a literal argument which begins with a pipe symbol, you have to quote "
21028 "it, eg:"
21029 msgstr ""
21030
21031 #. type: verbatim
21032 #: ../fish/guestfish.pod:809
21033 #, no-wrap
21034 msgid ""
21035 " echo \"|\"\n"
21036 "\n"
21037 msgstr ""
21038
21039 #. type: =head1
21040 #: ../fish/guestfish.pod:811
21041 msgid "HOME DIRECTORIES"
21042 msgstr ""
21043
21044 #. type: textblock
21045 #: ../fish/guestfish.pod:813
21046 msgid ""
21047 "If a parameter starts with the character C<~> then the tilde may be expanded "
21048 "as a home directory path (either C<~> for the current user's home directory, "
21049 "or C<~user> for another user)."
21050 msgstr ""
21051
21052 #. type: textblock
21053 #: ../fish/guestfish.pod:817
21054 msgid ""
21055 "Note that home directory expansion happens for users known I<on the host>, "
21056 "not in the guest filesystem."
21057 msgstr ""
21058
21059 #. type: textblock
21060 #: ../fish/guestfish.pod:820
21061 msgid ""
21062 "To use a literal argument which begins with a tilde, you have to quote it, "
21063 "eg:"
21064 msgstr ""
21065
21066 #. type: verbatim
21067 #: ../fish/guestfish.pod:823
21068 #, no-wrap
21069 msgid ""
21070 " echo \"~\"\n"
21071 "\n"
21072 msgstr ""
21073
21074 #. type: =head2
21075 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
21076 msgid "ENCRYPTED DISKS"
21077 msgstr ""
21078
21079 #. type: textblock
21080 #: ../fish/guestfish.pod:827
21081 msgid ""
21082 "Libguestfs has some support for Linux guests encrypted according to the "
21083 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21084 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
21085 "LUKS is supported."
21086 msgstr ""
21087
21088 #. type: textblock
21089 #: ../fish/guestfish.pod:832
21090 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21091 msgstr ""
21092
21093 #. type: verbatim
21094 #: ../fish/guestfish.pod:834
21095 #, no-wrap
21096 msgid ""
21097 " ><fs> vfs-type /dev/sda2\n"
21098 " crypto_LUKS\n"
21099 "\n"
21100 msgstr ""
21101
21102 #. type: textblock
21103 #: ../fish/guestfish.pod:837
21104 msgid ""
21105 "Then open those devices using L</luks-open>.  This creates a device-mapper "
21106 "device called C</dev/mapper/luksdev>."
21107 msgstr ""
21108
21109 #. type: verbatim
21110 #: ../fish/guestfish.pod:840
21111 #, no-wrap
21112 msgid ""
21113 " ><fs> luks-open /dev/sda2 luksdev\n"
21114 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21115 "\n"
21116 msgstr ""
21117
21118 #. type: textblock
21119 #: ../fish/guestfish.pod:843
21120 msgid ""
21121 "Finally you have to tell LVM to scan for volume groups on the newly created "
21122 "mapper device:"
21123 msgstr ""
21124
21125 #. type: verbatim
21126 #: ../fish/guestfish.pod:846
21127 #, no-wrap
21128 msgid ""
21129 " vgscan\n"
21130 " vg-activate-all true\n"
21131 "\n"
21132 msgstr ""
21133
21134 #. type: textblock
21135 #: ../fish/guestfish.pod:849
21136 msgid "The logical volume(s) can now be mounted in the usual way."
21137 msgstr ""
21138
21139 #. type: textblock
21140 #: ../fish/guestfish.pod:851
21141 msgid ""
21142 "Before closing a LUKS device you must unmount any logical volumes on it and "
21143 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21144 "one.  Then you can close the mapper device:"
21145 msgstr ""
21146
21147 #. type: verbatim
21148 #: ../fish/guestfish.pod:855
21149 #, no-wrap
21150 msgid ""
21151 " vg-activate false /dev/VG\n"
21152 " luks-close /dev/mapper/luksdev\n"
21153 "\n"
21154 msgstr ""
21155
21156 #. type: textblock
21157 #: ../fish/guestfish.pod:860
21158 msgid ""
21159 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21160 "letters and paths (with some limitations).  The following commands are "
21161 "equivalent:"
21162 msgstr ""
21163
21164 #. type: verbatim
21165 #: ../fish/guestfish.pod:864
21166 #, no-wrap
21167 msgid ""
21168 " file /WINDOWS/system32/config/system.LOG\n"
21169 "\n"
21170 msgstr ""
21171
21172 #. type: verbatim
21173 #: ../fish/guestfish.pod:866
21174 #, no-wrap
21175 msgid ""
21176 " file win:\\windows\\system32\\config\\system.log\n"
21177 "\n"
21178 msgstr ""
21179
21180 #. type: verbatim
21181 #: ../fish/guestfish.pod:868
21182 #, no-wrap
21183 msgid ""
21184 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21185 "\n"
21186 msgstr ""
21187
21188 #. type: textblock
21189 #: ../fish/guestfish.pod:870
21190 msgid ""
21191 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21192 "where the drive is mounted, prepending that to the path, changing all "
21193 "backslash characters to forward slash, then resolving the result using L</"
21194 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
21195 "the parameter might be rewritten like this:"
21196 msgstr ""
21197
21198 #. type: verbatim
21199 #: ../fish/guestfish.pod:876
21200 #, no-wrap
21201 msgid ""
21202 " win:e:\\foo\\bar => /e/FOO/bar\n"
21203 "\n"
21204 msgstr ""
21205
21206 #. type: textblock
21207 #: ../fish/guestfish.pod:878
21208 msgid "This only works in argument positions that expect a path."
21209 msgstr ""
21210
21211 #. type: =head1
21212 #: ../fish/guestfish.pod:880
21213 msgid "UPLOADING AND DOWNLOADING FILES"
21214 msgstr ""
21215
21216 #. type: textblock
21217 #: ../fish/guestfish.pod:882
21218 msgid ""
21219 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21220 "others which upload from or download to a local file, you can use the "
21221 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
21222 msgstr ""
21223
21224 #. type: verbatim
21225 #: ../fish/guestfish.pod:886
21226 #, no-wrap
21227 msgid ""
21228 " upload - /foo\n"
21229 "\n"
21230 msgstr ""
21231
21232 #. type: textblock
21233 #: ../fish/guestfish.pod:888
21234 msgid ""
21235 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21236 msgstr ""
21237
21238 #. type: verbatim
21239 #: ../fish/guestfish.pod:891
21240 #, no-wrap
21241 msgid ""
21242 " tar-out /etc - | tar tf -\n"
21243 "\n"
21244 msgstr ""
21245
21246 #. type: textblock
21247 #: ../fish/guestfish.pod:893
21248 msgid ""
21249 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21250 "command (see L</PIPES>)."
21251 msgstr ""
21252
21253 #. type: textblock
21254 #: ../fish/guestfish.pod:896
21255 msgid ""
21256 "When using C<-> to read from stdin, the input is read up to the end of "
21257 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21258 "some arbitrary end marker:"
21259 msgstr ""
21260
21261 #. type: verbatim
21262 #: ../fish/guestfish.pod:900
21263 #, no-wrap
21264 msgid ""
21265 " upload -<<END /foo\n"
21266 " input line 1\n"
21267 " input line 2\n"
21268 " input line 3\n"
21269 " END\n"
21270 "\n"
21271 msgstr ""
21272
21273 #. type: textblock
21274 #: ../fish/guestfish.pod:906
21275 msgid ""
21276 "Any string of characters can be used instead of C<END>.  The end marker must "
21277 "appear on a line of its own, without any preceeding or following characters "
21278 "(not even spaces)."
21279 msgstr ""
21280
21281 #. type: textblock
21282 #: ../fish/guestfish.pod:910
21283 msgid ""
21284 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21285 "upload local files (so-called \"FileIn\" parameters in the generator)."
21286 msgstr ""
21287
21288 #. type: =head1
21289 #: ../fish/guestfish.pod:913
21290 msgid "EXIT ON ERROR BEHAVIOUR"
21291 msgstr ""
21292
21293 #. type: textblock
21294 #: ../fish/guestfish.pod:915
21295 msgid ""
21296 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21297 "taking commands from a human over a tty), and will exit on the first error "
21298 "in non-interactive mode (scripts, commands given on the command line)."
21299 msgstr ""
21300
21301 #. type: textblock
21302 #: ../fish/guestfish.pod:920
21303 msgid ""
21304 "If you prefix a command with a I<-> character, then that command will not "
21305 "cause guestfish to exit, even if that (one) command returns an error."
21306 msgstr ""
21307
21308 #. type: =head1
21309 #: ../fish/guestfish.pod:924
21310 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21311 msgstr ""
21312
21313 #. type: textblock
21314 #: ../fish/guestfish.pod:926
21315 msgid ""
21316 "Guestfish can be remote-controlled over a socket.  This is useful "
21317 "particularly in shell scripts where you want to make several different "
21318 "changes to a filesystem, but you don't want the overhead of starting up a "
21319 "guestfish process each time."
21320 msgstr ""
21321
21322 #. type: textblock
21323 #: ../fish/guestfish.pod:931
21324 msgid "Start a guestfish server process using:"
21325 msgstr ""
21326
21327 #. type: verbatim
21328 #: ../fish/guestfish.pod:933
21329 #, no-wrap
21330 msgid ""
21331 " eval \"`guestfish --listen`\"\n"
21332 "\n"
21333 msgstr ""
21334
21335 #. type: textblock
21336 #: ../fish/guestfish.pod:935
21337 msgid "and then send it commands by doing:"
21338 msgstr ""
21339
21340 #. type: verbatim
21341 #: ../fish/guestfish.pod:937
21342 #, no-wrap
21343 msgid ""
21344 " guestfish --remote cmd [...]\n"
21345 "\n"
21346 msgstr ""
21347
21348 #. type: textblock
21349 #: ../fish/guestfish.pod:939
21350 msgid "To cause the server to exit, send it the exit command:"
21351 msgstr ""
21352
21353 #. type: textblock
21354 #: ../fish/guestfish.pod:943
21355 msgid ""
21356 "Note that the server will normally exit if there is an error in a command.  "
21357 "You can change this in the usual way.  See section L</EXIT ON ERROR "
21358 "BEHAVIOUR>."
21359 msgstr ""
21360
21361 #. type: =head2
21362 #: ../fish/guestfish.pod:947
21363 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21364 msgstr ""
21365
21366 #. type: textblock
21367 #: ../fish/guestfish.pod:949
21368 msgid ""
21369 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21370 "is how the I<--remote> option knows where to send the commands.  You can "
21371 "have several guestfish listener processes running using:"
21372 msgstr ""
21373
21374 #. type: verbatim
21375 #: ../fish/guestfish.pod:953
21376 #, no-wrap
21377 msgid ""
21378 " eval \"`guestfish --listen`\"\n"
21379 " pid1=$GUESTFISH_PID\n"
21380 " eval \"`guestfish --listen`\"\n"
21381 " pid2=$GUESTFISH_PID\n"
21382 " ...\n"
21383 " guestfish --remote=$pid1 cmd\n"
21384 " guestfish --remote=$pid2 cmd\n"
21385 "\n"
21386 msgstr ""
21387
21388 #. type: =head2
21389 #: ../fish/guestfish.pod:961
21390 msgid "REMOTE CONTROL AND CSH"
21391 msgstr ""
21392
21393 #. type: textblock
21394 #: ../fish/guestfish.pod:963
21395 msgid ""
21396 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21397 "option:"
21398 msgstr ""
21399
21400 #. type: verbatim
21401 #: ../fish/guestfish.pod:966
21402 #, no-wrap
21403 msgid ""
21404 " eval \"`guestfish --listen --csh`\"\n"
21405 "\n"
21406 msgstr ""
21407
21408 #. type: =head2
21409 #: ../fish/guestfish.pod:968
21410 msgid "REMOTE CONTROL DETAILS"
21411 msgstr ""
21412
21413 #. type: textblock
21414 #: ../fish/guestfish.pod:970
21415 msgid ""
21416 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21417 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21418 "and C<$PID> is the process ID of the server."
21419 msgstr ""
21420
21421 #. type: textblock
21422 #: ../fish/guestfish.pod:974
21423 msgid "Guestfish client and server versions must match exactly."
21424 msgstr ""
21425
21426 #. type: =head2
21427 #: ../fish/guestfish.pod:976
21428 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
21429 msgstr ""
21430
21431 #. type: textblock
21432 #: ../fish/guestfish.pod:978
21433 msgid ""
21434 "From Bash, you can use the following code which creates a guestfish "
21435 "instance, correctly quotes the command line, handles failure to start, and "
21436 "cleans up guestfish when the script exits:"
21437 msgstr ""
21438
21439 #. type: verbatim
21440 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
21441 #, no-wrap
21442 msgid ""
21443 " #!/bin/bash -\n"
21444 " \n"
21445 msgstr ""
21446
21447 #. type: verbatim
21448 #: ../fish/guestfish.pod:986
21449 #, no-wrap
21450 msgid ""
21451 " guestfish[0]=\"guestfish\"\n"
21452 " guestfish[1]=\"--listen\"\n"
21453 " guestfish[2]=\"--ro\"\n"
21454 " guestfish[3]=\"-a\"\n"
21455 " guestfish[4]=\"disk.img\"\n"
21456 " \n"
21457 msgstr ""
21458
21459 #. type: verbatim
21460 #: ../fish/guestfish.pod:992
21461 #, no-wrap
21462 msgid ""
21463 " GUESTFISH_PID=\n"
21464 " eval $(\"${guestfish[@]}\")\n"
21465 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
21466 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
21467 "     exit 1\n"
21468 " fi\n"
21469 " \n"
21470 msgstr ""
21471
21472 #. type: verbatim
21473 #: ../fish/guestfish.pod:999
21474 #, no-wrap
21475 msgid ""
21476 " cleanup_guestfish ()\n"
21477 " {\n"
21478 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
21479 " }\n"
21480 " trap cleanup_guestfish EXIT ERR\n"
21481 " \n"
21482 msgstr ""
21483
21484 #. type: verbatim
21485 #: ../fish/guestfish.pod:1005
21486 #, no-wrap
21487 msgid ""
21488 " guestfish --remote -- run\n"
21489 " \n"
21490 msgstr ""
21491
21492 #. type: verbatim
21493 #: ../fish/guestfish.pod:1007
21494 #, no-wrap
21495 msgid ""
21496 " # ...\n"
21497 "\n"
21498 msgstr ""
21499
21500 #. type: =head2
21501 #: ../fish/guestfish.pod:1009
21502 msgid "REMOTE CONTROL RUN COMMAND HANGING"
21503 msgstr ""
21504
21505 #. type: textblock
21506 #: ../fish/guestfish.pod:1011
21507 msgid ""
21508 "Using the C<run> (or C<launch>) command remotely in a command substitution "
21509 "context hangs, ie. don't do (note the backquotes):"
21510 msgstr ""
21511
21512 #. type: verbatim
21513 #: ../fish/guestfish.pod:1014
21514 #, no-wrap
21515 msgid ""
21516 " a=`guestfish --remote run`\n"
21517 "\n"
21518 msgstr ""
21519
21520 #. type: textblock
21521 #: ../fish/guestfish.pod:1016
21522 msgid ""
21523 "Since the C<run> command produces no output on stdout, this is not useful "
21524 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
21525 "cgi?id=592910>."
21526 msgstr ""
21527
21528 #. type: =head1
21529 #: ../fish/guestfish.pod:1020
21530 msgid "PREPARED DISK IMAGES"
21531 msgstr ""
21532
21533 #. type: textblock
21534 #: ../fish/guestfish.pod:1022
21535 msgid ""
21536 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21537 "preformatted disk images that guestfish can make for you to save typing.  "
21538 "This is particularly useful for testing purposes.  This option is used "
21539 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21540 "can be mixed with I<-a>)."
21541 msgstr ""
21542
21543 #. type: textblock
21544 #: ../fish/guestfish.pod:1028
21545 msgid ""
21546 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21547 "the second and so on.  Existing files in the current directory are "
21548 "I<overwritten>."
21549 msgstr ""
21550
21551 #. type: textblock
21552 #: ../fish/guestfish.pod:1032
21553 msgid ""
21554 "The type briefly describes how the disk should be sized, partitioned, how "
21555 "filesystem(s) should be created, and how content should be added.  "
21556 "Optionally the type can be followed by extra parameters, separated by C<:> "
21557 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21558 "allocated disk, containing a single partition, with the partition formatted "
21559 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21560 "disk instead."
21561 msgstr ""
21562
21563 #. type: textblock
21564 #: ../fish/guestfish.pod:1040
21565 msgid "To list the available types and any extra parameters they take, run:"
21566 msgstr ""
21567
21568 #. type: textblock
21569 #: ../fish/guestfish.pod:1044
21570 msgid ""
21571 "Note that the prepared filesystem is not mounted.  You would usually have to "
21572 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21573 msgstr ""
21574
21575 #. type: textblock
21576 #: ../fish/guestfish.pod:1048
21577 msgid ""
21578 "If any I<-N> or I<--new> options are given, the guest is automatically "
21579 "launched."
21580 msgstr ""
21581
21582 #. type: textblock
21583 #: ../fish/guestfish.pod:1053
21584 msgid "Create a 100MB disk with an ext4-formatted partition:"
21585 msgstr ""
21586
21587 #. type: verbatim
21588 #: ../fish/guestfish.pod:1055
21589 #, no-wrap
21590 msgid ""
21591 " guestfish -N fs:ext4\n"
21592 "\n"
21593 msgstr ""
21594
21595 #. type: textblock
21596 #: ../fish/guestfish.pod:1057
21597 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21598 msgstr ""
21599
21600 #. type: verbatim
21601 #: ../fish/guestfish.pod:1059
21602 #, no-wrap
21603 msgid ""
21604 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21605 "\n"
21606 msgstr ""
21607
21608 #. type: textblock
21609 #: ../fish/guestfish.pod:1061
21610 msgid "Create a blank 200MB disk:"
21611 msgstr ""
21612
21613 #. type: verbatim
21614 #: ../fish/guestfish.pod:1063
21615 #, no-wrap
21616 msgid ""
21617 " guestfish -N disk:200M\n"
21618 "\n"
21619 msgstr ""
21620
21621 #. type: =head1
21622 #: ../fish/guestfish.pod:1065
21623 msgid "PROGRESS BARS"
21624 msgstr ""
21625
21626 #. type: textblock
21627 #: ../fish/guestfish.pod:1067
21628 msgid ""
21629 "Some (not all) long-running commands send progress notification messages as "
21630 "they are running.  Guestfish turns these messages into progress bars."
21631 msgstr ""
21632
21633 #. type: textblock
21634 #: ../fish/guestfish.pod:1071
21635 msgid ""
21636 "When a command that supports progress bars takes longer than two seconds to "
21637 "run, and if progress bars are enabled, then you will see one appearing below "
21638 "the command:"
21639 msgstr ""
21640
21641 #. type: verbatim
21642 #: ../fish/guestfish.pod:1075
21643 #, no-wrap
21644 msgid ""
21645 " ><fs> copy-size /large-file /another-file 2048M\n"
21646 " / 10% [#####-----------------------------------------] 00:30\n"
21647 "\n"
21648 msgstr ""
21649
21650 #. type: textblock
21651 #: ../fish/guestfish.pod:1078
21652 msgid ""
21653 "The spinner on the left hand side moves round once for every progress "
21654 "notification received from the backend.  This is a (reasonably) golden "
21655 "assurance that the command is \"doing something\" even if the progress bar "
21656 "is not moving, because the command is able to send the progress "
21657 "notifications.  When the bar reaches 100% and the command finishes, the "
21658 "spinner disappears."
21659 msgstr ""
21660
21661 #. type: textblock
21662 #: ../fish/guestfish.pod:1085
21663 msgid ""
21664 "Progress bars are enabled by default when guestfish is used interactively.  "
21665 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21666 "and you can disable them completely using I<--no-progress-bars>."
21667 msgstr ""
21668
21669 #. type: =head1
21670 #: ../fish/guestfish.pod:1090
21671 msgid "GUESTFISH COMMANDS"
21672 msgstr ""
21673
21674 #. type: textblock
21675 #: ../fish/guestfish.pod:1092
21676 msgid ""
21677 "The commands in this section are guestfish convenience commands, in other "
21678 "words, they are not part of the L<guestfs(3)> API."
21679 msgstr ""
21680
21681 #. type: =head2
21682 #: ../fish/guestfish.pod:1095
21683 msgid "help"
21684 msgstr ""
21685
21686 #. type: verbatim
21687 #: ../fish/guestfish.pod:1097
21688 #, no-wrap
21689 msgid ""
21690 " help\n"
21691 " help cmd\n"
21692 "\n"
21693 msgstr ""
21694
21695 #. type: textblock
21696 #: ../fish/guestfish.pod:1100
21697 msgid "Without any parameter, this provides general help."
21698 msgstr ""
21699
21700 #. type: textblock
21701 #: ../fish/guestfish.pod:1102
21702 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21703 msgstr ""
21704
21705 #. type: =head2
21706 #: ../fish/guestfish.pod:1104
21707 msgid "quit | exit"
21708 msgstr ""
21709
21710 #. type: textblock
21711 #: ../fish/guestfish.pod:1106
21712 msgid "This exits guestfish.  You can also use C<^D> key."
21713 msgstr ""
21714
21715 #. type: textblock
21716 #: ../fish/guestfish.pod:1108
21717 msgid "@FISH_COMMANDS@"
21718 msgstr ""
21719
21720 #. type: =head1
21721 #: ../fish/guestfish.pod:1110
21722 msgid "COMMANDS"
21723 msgstr ""
21724
21725 #. type: textblock
21726 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21727 msgid "@ACTIONS@"
21728 msgstr ""
21729
21730 #. type: textblock
21731 #: ../fish/guestfish.pod:1116
21732 msgid ""
21733 "guestfish returns 0 if the commands completed without error, or 1 if there "
21734 "was an error."
21735 msgstr ""
21736
21737 #. type: =item
21738 #: ../fish/guestfish.pod:1123
21739 msgid "EDITOR"
21740 msgstr ""
21741
21742 #. type: textblock
21743 #: ../fish/guestfish.pod:1125
21744 msgid ""
21745 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21746 "C<vi>."
21747 msgstr ""
21748
21749 #. type: =item
21750 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
21751 msgid "FEBOOTSTRAP_KERNEL"
21752 msgstr ""
21753
21754 #. type: =item
21755 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
21756 msgid "FEBOOTSTRAP_MODULES"
21757 msgstr ""
21758
21759 #. type: textblock
21760 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
21761 msgid ""
21762 "These two environment variables allow the kernel that libguestfs uses in the "
21763 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21764 "most recent host kernel is chosen.  For more information about kernel "
21765 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21766 "available in febootstrap E<ge> 3.8."
21767 msgstr ""
21768
21769 #. type: =item
21770 #: ../fish/guestfish.pod:1138
21771 msgid "GUESTFISH_DISPLAY_IMAGE"
21772 msgstr ""
21773
21774 #. type: textblock
21775 #: ../fish/guestfish.pod:1140
21776 msgid ""
21777 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21778 "If not set, it uses L<display(1)>."
21779 msgstr ""
21780
21781 #. type: =item
21782 #: ../fish/guestfish.pod:1143
21783 msgid "GUESTFISH_PID"
21784 msgstr ""
21785
21786 #. type: textblock
21787 #: ../fish/guestfish.pod:1145
21788 msgid ""
21789 "Used with the I<--remote> option to specify the remote guestfish process to "
21790 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21791 msgstr ""
21792
21793 #. type: =item
21794 #: ../fish/guestfish.pod:1149
21795 msgid "HEXEDITOR"
21796 msgstr ""
21797
21798 #. type: textblock
21799 #: ../fish/guestfish.pod:1151
21800 msgid ""
21801 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21802 "not specified, the external L<hexedit(1)> program is used."
21803 msgstr ""
21804
21805 #. type: =item
21806 #: ../fish/guestfish.pod:1155
21807 msgid "HOME"
21808 msgstr ""
21809
21810 #. type: textblock
21811 #: ../fish/guestfish.pod:1157
21812 msgid ""
21813 "If compiled with GNU readline support, various files in the home directory "
21814 "can be used.  See L</FILES>."
21815 msgstr ""
21816
21817 #. type: =item
21818 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
21819 msgid "LIBGUESTFS_APPEND"
21820 msgstr ""
21821
21822 #. type: textblock
21823 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
21824 msgid "Pass additional options to the guest kernel."
21825 msgstr ""
21826
21827 #. type: =item
21828 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
21829 msgid "LIBGUESTFS_DEBUG"
21830 msgstr ""
21831
21832 #. type: textblock
21833 #: ../fish/guestfish.pod:1166
21834 msgid ""
21835 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21836 "effect as using the B<-v> option."
21837 msgstr ""
21838
21839 #. type: =item
21840 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
21841 msgid "LIBGUESTFS_MEMSIZE"
21842 msgstr ""
21843
21844 #. type: textblock
21845 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
21846 msgid ""
21847 "Set the memory allocated to the qemu process, in megabytes.  For example:"
21848 msgstr ""
21849
21850 #. type: verbatim
21851 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
21852 #, no-wrap
21853 msgid ""
21854 " LIBGUESTFS_MEMSIZE=700\n"
21855 "\n"
21856 msgstr ""
21857
21858 #. type: =item
21859 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
21860 msgid "LIBGUESTFS_PATH"
21861 msgstr ""
21862
21863 #. type: textblock
21864 #: ../fish/guestfish.pod:1178
21865 msgid ""
21866 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21867 "the discussion of paths in L<guestfs(3)>."
21868 msgstr ""
21869
21870 #. type: =item
21871 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
21872 msgid "LIBGUESTFS_QEMU"
21873 msgstr ""
21874
21875 #. type: textblock
21876 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
21877 msgid ""
21878 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21879 "which was found at compile time by the configure script is used."
21880 msgstr ""
21881
21882 #. type: =item
21883 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
21884 msgid "LIBGUESTFS_TRACE"
21885 msgstr ""
21886
21887 #. type: textblock
21888 #: ../fish/guestfish.pod:1189
21889 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21890 msgstr ""
21891
21892 #. type: =item
21893 #: ../fish/guestfish.pod:1191
21894 msgid "PAGER"
21895 msgstr ""
21896
21897 #. type: textblock
21898 #: ../fish/guestfish.pod:1193
21899 msgid ""
21900 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21901 "C<more>."
21902 msgstr ""
21903
21904 #. type: =item
21905 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:260
21906 #: ../src/guestfs.pod:3262
21907 msgid "TMPDIR"
21908 msgstr ""
21909
21910 #. type: textblock
21911 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
21912 msgid ""
21913 "Location of temporary directory, defaults to C</tmp> except for the cached "
21914 "supermin appliance which defaults to C</var/tmp>."
21915 msgstr ""
21916
21917 #. type: textblock
21918 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
21919 msgid ""
21920 "If libguestfs was compiled to use the supermin appliance then the real "
21921 "appliance is cached in this directory, shared between all handles belonging "
21922 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21923 "use in case C</var/tmp> is not large enough."
21924 msgstr ""
21925
21926 #. type: =head1
21927 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21928 #: ../rescue/virt-rescue.pod:310
21929 msgid "FILES"
21930 msgstr ""
21931
21932 #. type: =item
21933 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21934 #: ../rescue/virt-rescue.pod:314
21935 msgid "$HOME/.libguestfs-tools.rc"
21936 msgstr ""
21937
21938 #. type: =item
21939 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21940 #: ../rescue/virt-rescue.pod:316
21941 msgid "/etc/libguestfs-tools.conf"
21942 msgstr ""
21943
21944 #. type: textblock
21945 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21946 #: ../rescue/virt-rescue.pod:318
21947 msgid ""
21948 "This configuration file controls the default read-only or read-write mode "
21949 "(I<--ro> or I<--rw>)."
21950 msgstr ""
21951
21952 #. type: textblock
21953 #: ../fish/guestfish.pod:1220
21954 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21955 msgstr ""
21956
21957 #. type: =item
21958 #: ../fish/guestfish.pod:1222
21959 msgid "$HOME/.guestfish"
21960 msgstr ""
21961
21962 #. type: textblock
21963 #: ../fish/guestfish.pod:1224
21964 msgid ""
21965 "If compiled with GNU readline support, then the command history is saved in "
21966 "this file."
21967 msgstr ""
21968
21969 #. type: =item
21970 #: ../fish/guestfish.pod:1227
21971 msgid "$HOME/.inputrc"
21972 msgstr ""
21973
21974 #. type: =item
21975 #: ../fish/guestfish.pod:1229
21976 msgid "/etc/inputrc"
21977 msgstr ""
21978
21979 #. type: textblock
21980 #: ../fish/guestfish.pod:1231
21981 msgid ""
21982 "If compiled with GNU readline support, then these files can be used to "
21983 "configure readline.  For further information, please see L<readline(3)/"
21984 "INITIALIZATION FILE>."
21985 msgstr ""
21986
21987 #. type: textblock
21988 #: ../fish/guestfish.pod:1235
21989 msgid "To write rules which only apply to guestfish, use:"
21990 msgstr ""
21991
21992 #. type: verbatim
21993 #: ../fish/guestfish.pod:1237
21994 #, no-wrap
21995 msgid ""
21996 " $if guestfish\n"
21997 " ...\n"
21998 " $endif\n"
21999 "\n"
22000 msgstr ""
22001
22002 #. type: textblock
22003 #: ../fish/guestfish.pod:1241
22004 msgid ""
22005 "Variables that you can set in inputrc that change the behaviour of guestfish "
22006 "in useful ways include:"
22007 msgstr ""
22008
22009 #. type: =item
22010 #: ../fish/guestfish.pod:1246
22011 msgid "completion-ignore-case (default: on)"
22012 msgstr ""
22013
22014 #. type: textblock
22015 #: ../fish/guestfish.pod:1248
22016 msgid ""
22017 "By default, guestfish will ignore case when tab-completing paths on the "
22018 "disk.  Use:"
22019 msgstr ""
22020
22021 #. type: verbatim
22022 #: ../fish/guestfish.pod:1251
22023 #, no-wrap
22024 msgid ""
22025 " set completion-ignore-case off\n"
22026 "\n"
22027 msgstr ""
22028
22029 #. type: textblock
22030 #: ../fish/guestfish.pod:1253
22031 msgid "to make guestfish case sensitive."
22032 msgstr ""
22033
22034 #. type: =item
22035 #: ../fish/guestfish.pod:1257
22036 msgid "test1.img"
22037 msgstr ""
22038
22039 #. type: =item
22040 #: ../fish/guestfish.pod:1259
22041 msgid "test2.img (etc)"
22042 msgstr ""
22043
22044 #. type: textblock
22045 #: ../fish/guestfish.pod:1261
22046 msgid ""
22047 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
22048 "will be created in the file C<test1.img> in the current directory.  The "
22049 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
22050 "the same name will be overwritten."
22051 msgstr ""
22052
22053 #. type: textblock
22054 #: ../fish/guestfish.pod:1270
22055 msgid ""
22056 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
22057 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
22058 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
22059 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
22060 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
22061 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
22062 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
22063 msgstr ""
22064
22065 #. type: textblock
22066 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360
22067 #: ../test-tool/libguestfs-test-tool.pod:112
22068 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
22069 msgstr ""
22070
22071 #. type: textblock
22072 #: ../fish/virt-copy-in.pod:5
22073 msgid ""
22074 "virt-copy-in - Copy files and directories into a virtual machine disk image."
22075 msgstr ""
22076
22077 #. type: verbatim
22078 #: ../fish/virt-copy-in.pod:9
22079 #, no-wrap
22080 msgid ""
22081 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
22082 "\n"
22083 msgstr ""
22084
22085 #. type: verbatim
22086 #: ../fish/virt-copy-in.pod:11
22087 #, no-wrap
22088 msgid ""
22089 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
22090 "\n"
22091 msgstr ""
22092
22093 #. type: textblock
22094 #: ../fish/virt-copy-in.pod:15
22095 msgid ""
22096 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
22097 "causing disk corruption.  The virtual machine must be shut down before you "
22098 "use this command."
22099 msgstr ""
22100
22101 #. type: textblock
22102 #: ../fish/virt-copy-in.pod:21
22103 msgid ""
22104 "C<virt-copy-in> copies files and directories from the local disk into a "
22105 "virtual machine disk image or named libvirt domain."
22106 msgstr ""
22107
22108 #. type: textblock
22109 #: ../fish/virt-copy-in.pod:24
22110 msgid ""
22111 "You can give one of more filenames and directories on the command line.  "
22112 "Directories are copied in recursively.  The final parameter must be the "
22113 "destination directory in the disk image which must be an absolute path "
22114 "starting with a C</> character."
22115 msgstr ""
22116
22117 #. type: verbatim
22118 #: ../fish/virt-copy-in.pod:33
22119 #, no-wrap
22120 msgid ""
22121 " virt-copy-in -d MyGuest resolv.conf /etc\n"
22122 "\n"
22123 msgstr ""
22124
22125 #. type: textblock
22126 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
22127 msgid "Upload a home directory to a guest:"
22128 msgstr ""
22129
22130 #. type: verbatim
22131 #: ../fish/virt-copy-in.pod:37
22132 #, no-wrap
22133 msgid ""
22134 " virt-copy-in -d MyGuest skel /home\n"
22135 "\n"
22136 msgstr ""
22137
22138 #. type: =head1
22139 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
22140 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
22141 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
22142 msgstr ""
22143
22144 #. type: textblock
22145 #: ../fish/virt-copy-in.pod:41
22146 msgid ""
22147 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22148 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
22149 "are probably better off using guestfish directly."
22150 msgstr ""
22151
22152 #. type: textblock
22153 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
22154 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
22155 msgid ""
22156 "Since the shell script just passes options straight to guestfish, read "
22157 "L<guestfish(1)> to see the full list of options."
22158 msgstr ""
22159
22160 #. type: textblock
22161 #: ../fish/virt-copy-in.pod:52
22162 msgid ""
22163 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
22164 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22165 msgstr ""
22166
22167 #. type: textblock
22168 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
22169 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
22170 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
22171 msgstr ""
22172
22173 #. type: textblock
22174 #: ../fish/virt-copy-out.pod:5
22175 msgid ""
22176 "virt-copy-out - Copy files and directories out of a virtual machine disk "
22177 "image."
22178 msgstr ""
22179
22180 #. type: verbatim
22181 #: ../fish/virt-copy-out.pod:9
22182 #, no-wrap
22183 msgid ""
22184 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
22185 "\n"
22186 msgstr ""
22187
22188 #. type: verbatim
22189 #: ../fish/virt-copy-out.pod:11
22190 #, no-wrap
22191 msgid ""
22192 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
22193 "\n"
22194 msgstr ""
22195
22196 #. type: textblock
22197 #: ../fish/virt-copy-out.pod:15
22198 msgid ""
22199 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
22200 "image or named libvirt domain."
22201 msgstr ""
22202
22203 #. type: textblock
22204 #: ../fish/virt-copy-out.pod:18
22205 msgid ""
22206 "You can give one of more filenames and directories on the command line.  "
22207 "Directories are copied out recursively."
22208 msgstr ""
22209
22210 #. type: textblock
22211 #: ../fish/virt-copy-out.pod:23
22212 msgid "Download the home directories from a virtual machine:"
22213 msgstr ""
22214
22215 #. type: verbatim
22216 #: ../fish/virt-copy-out.pod:25
22217 #, no-wrap
22218 msgid ""
22219 " mkdir homes\n"
22220 " virt-copy-out -d MyGuest /home homes\n"
22221 "\n"
22222 msgstr ""
22223
22224 #. type: textblock
22225 #: ../fish/virt-copy-out.pod:30
22226 msgid ""
22227 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22228 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
22229 "are probably better off using guestfish directly."
22230 msgstr ""
22231
22232 #. type: textblock
22233 #: ../fish/virt-copy-out.pod:41
22234 msgid ""
22235 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
22236 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22237 msgstr ""
22238
22239 #. type: textblock
22240 #: ../fish/virt-tar-in.pod:5
22241 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
22242 msgstr ""
22243
22244 #. type: verbatim
22245 #: ../fish/virt-tar-in.pod:9
22246 #, no-wrap
22247 msgid ""
22248 " virt-tar-in -a disk.img data.tar /destination\n"
22249 "\n"
22250 msgstr ""
22251
22252 #. type: verbatim
22253 #: ../fish/virt-tar-in.pod:11
22254 #, no-wrap
22255 msgid ""
22256 " virt-tar-in -d domain data.tar /destination\n"
22257 "\n"
22258 msgstr ""
22259
22260 #. type: verbatim
22261 #: ../fish/virt-tar-in.pod:13
22262 #, no-wrap
22263 msgid ""
22264 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
22265 "\n"
22266 msgstr ""
22267
22268 #. type: textblock
22269 #: ../fish/virt-tar-in.pod:17
22270 msgid ""
22271 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
22272 "causing disk corruption.  The virtual machine must be shut down before you "
22273 "use this command."
22274 msgstr ""
22275
22276 #. type: textblock
22277 #: ../fish/virt-tar-in.pod:23
22278 msgid ""
22279 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
22280 "image or named libvirt domain."
22281 msgstr ""
22282
22283 #. type: textblock
22284 #: ../fish/virt-tar-in.pod:26
22285 msgid ""
22286 "The first parameter is the tar file.  Use C<-> to read the tar file from "
22287 "standard input.  The second parameter is the absolute target directory to "
22288 "unpack into."
22289 msgstr ""
22290
22291 #. type: verbatim
22292 #: ../fish/virt-tar-in.pod:34
22293 #, no-wrap
22294 msgid ""
22295 " virt-tar-in -d MyGuest homes.tar /home\n"
22296 "\n"
22297 msgstr ""
22298
22299 #. type: textblock
22300 #: ../fish/virt-tar-in.pod:38
22301 msgid ""
22302 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22303 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
22304 "probably better off using guestfish directly."
22305 msgstr ""
22306
22307 #. type: textblock
22308 #: ../fish/virt-tar-in.pod:49
22309 msgid ""
22310 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22311 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
22312 "org/>."
22313 msgstr ""
22314
22315 #. type: textblock
22316 #: ../fish/virt-tar-out.pod:5
22317 msgid ""
22318 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
22319 msgstr ""
22320
22321 #. type: verbatim
22322 #: ../fish/virt-tar-out.pod:9
22323 #, no-wrap
22324 msgid ""
22325 " virt-tar-out -a disk.img /dir files.tar\n"
22326 "\n"
22327 msgstr ""
22328
22329 #. type: verbatim
22330 #: ../fish/virt-tar-out.pod:11
22331 #, no-wrap
22332 msgid ""
22333 " virt-tar-out -d domain /dir files.tar\n"
22334 "\n"
22335 msgstr ""
22336
22337 #. type: verbatim
22338 #: ../fish/virt-tar-out.pod:13
22339 #, no-wrap
22340 msgid ""
22341 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
22342 "\n"
22343 msgstr ""
22344
22345 #. type: textblock
22346 #: ../fish/virt-tar-out.pod:17
22347 msgid ""
22348 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
22349 msgstr ""
22350
22351 #. type: textblock
22352 #: ../fish/virt-tar-out.pod:20
22353 msgid ""
22354 "The first parameter is the absolute path of the virtual machine directory.  "
22355 "The second parameter is the tar file to write.  Use C<-> to write to "
22356 "standard output."
22357 msgstr ""
22358
22359 #. type: textblock
22360 #: ../fish/virt-tar-out.pod:26
22361 msgid "Download the home directories from a guest:"
22362 msgstr ""
22363
22364 #. type: verbatim
22365 #: ../fish/virt-tar-out.pod:28
22366 #, no-wrap
22367 msgid ""
22368 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
22369 "\n"
22370 msgstr ""
22371
22372 #. type: textblock
22373 #: ../fish/virt-tar-out.pod:32
22374 msgid ""
22375 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22376 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
22377 "are probably better off using guestfish directly."
22378 msgstr ""
22379
22380 #. type: textblock
22381 #: ../fish/virt-tar-out.pod:43
22382 msgid ""
22383 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22384 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
22385 msgstr ""
22386
22387 #. type: textblock
22388 #: ../fuse/guestmount.pod:5
22389 msgid ""
22390 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22391 msgstr ""
22392
22393 #. type: verbatim
22394 #: ../fuse/guestmount.pod:9
22395 #, no-wrap
22396 msgid ""
22397 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22398 "\n"
22399 msgstr ""
22400
22401 #. type: verbatim
22402 #: ../fuse/guestmount.pod:11
22403 #, no-wrap
22404 msgid ""
22405 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
22406 "\n"
22407 msgstr ""
22408
22409 #. type: verbatim
22410 #: ../fuse/guestmount.pod:13
22411 #, no-wrap
22412 msgid ""
22413 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
22414 "\n"
22415 msgstr ""
22416
22417 #. type: textblock
22418 #: ../fuse/guestmount.pod:17
22419 msgid ""
22420 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22421 "machines.  If you do this, you risk disk corruption in the VM."
22422 msgstr ""
22423
22424 #. type: textblock
22425 #: ../fuse/guestmount.pod:22
22426 msgid ""
22427 "The guestmount program can be used to mount virtual machine filesystems and "
22428 "other disk images on the host.  It uses libguestfs for access to the guest "
22429 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22430 "a mountable device."
22431 msgstr ""
22432
22433 #. type: textblock
22434 #: ../fuse/guestmount.pod:27
22435 msgid ""
22436 "Along with other options, you have to give at least one device (I<-a> "
22437 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
22438 "option) or use the I<-i> inspection option or the I<--live> option.  How "
22439 "this works is better explained in the L<guestfish(1)> manual page, or by "
22440 "looking at the examples below."
22441 msgstr ""
22442
22443 #. type: textblock
22444 #: ../fuse/guestmount.pod:33
22445 msgid ""
22446 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22447 "by you, and the filesystem will not be visible to any other users unless you "
22448 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22449 "the filesystem, use the C<fusermount -u> command."
22450 msgstr ""
22451
22452 #. type: textblock
22453 #: ../fuse/guestmount.pod:41
22454 msgid ""
22455 "For a typical Windows guest which has its main filesystem on the first "
22456 "partition:"
22457 msgstr ""
22458
22459 #. type: verbatim
22460 #: ../fuse/guestmount.pod:44
22461 #, no-wrap
22462 msgid ""
22463 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22464 "\n"
22465 msgstr ""
22466
22467 #. type: textblock
22468 #: ../fuse/guestmount.pod:46
22469 msgid ""
22470 "For a typical Linux guest which has a /boot filesystem on the first "
22471 "partition, and the root filesystem on a logical volume:"
22472 msgstr ""
22473
22474 #. type: verbatim
22475 #: ../fuse/guestmount.pod:49
22476 #, no-wrap
22477 msgid ""
22478 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22479 "\n"
22480 msgstr ""
22481
22482 #. type: textblock
22483 #: ../fuse/guestmount.pod:51
22484 msgid "To get libguestfs to detect guest mountpoints for you:"
22485 msgstr ""
22486
22487 #. type: verbatim
22488 #: ../fuse/guestmount.pod:53
22489 #, no-wrap
22490 msgid ""
22491 " guestmount -a guest.img -i --ro /mnt\n"
22492 "\n"
22493 msgstr ""
22494
22495 #. type: textblock
22496 #: ../fuse/guestmount.pod:55
22497 msgid "For a libvirt guest called \"Guest\" you could do:"
22498 msgstr ""
22499
22500 #. type: verbatim
22501 #: ../fuse/guestmount.pod:57
22502 #, no-wrap
22503 msgid ""
22504 " guestmount -d Guest -i --ro /mnt\n"
22505 "\n"
22506 msgstr ""
22507
22508 #. type: textblock
22509 #: ../fuse/guestmount.pod:59
22510 msgid ""
22511 "If you don't know what filesystems are contained in a guest or disk image, "
22512 "use L<virt-filesystems(1)> first:"
22513 msgstr ""
22514
22515 #. type: verbatim
22516 #: ../fuse/guestmount.pod:62
22517 #, no-wrap
22518 msgid ""
22519 " virt-filesystems MyGuest\n"
22520 "\n"
22521 msgstr ""
22522
22523 #. type: textblock
22524 #: ../fuse/guestmount.pod:64
22525 msgid ""
22526 "If you want to trace the libguestfs calls but without excessive debugging "
22527 "information, we recommend:"
22528 msgstr ""
22529
22530 #. type: verbatim
22531 #: ../fuse/guestmount.pod:67
22532 #, no-wrap
22533 msgid ""
22534 " guestmount [...] --trace /mnt\n"
22535 "\n"
22536 msgstr ""
22537
22538 #. type: textblock
22539 #: ../fuse/guestmount.pod:69
22540 msgid "If you want to debug the program, we recommend:"
22541 msgstr ""
22542
22543 #. type: verbatim
22544 #: ../fuse/guestmount.pod:71
22545 #, no-wrap
22546 msgid ""
22547 " guestmount [...] --trace --verbose /mnt\n"
22548 "\n"
22549 msgstr ""
22550
22551 #. type: =head1
22552 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
22553 #: ../resize/virt-resize.pod:627
22554 msgid "NOTES"
22555 msgstr ""
22556
22557 #. type: =head2
22558 #: ../fuse/guestmount.pod:75
22559 msgid "Other users cannot see the filesystem by default"
22560 msgstr ""
22561
22562 #. type: textblock
22563 #: ../fuse/guestmount.pod:77
22564 msgid ""
22565 "If you mount a filesystem as one user (eg. root), then other users will not "
22566 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
22567 "option when mounting:"
22568 msgstr ""
22569
22570 #. type: verbatim
22571 #: ../fuse/guestmount.pod:81
22572 #, no-wrap
22573 msgid ""
22574 " sudo guestmount [...] -o allow_other /mnt\n"
22575 "\n"
22576 msgstr ""
22577
22578 #. type: =head2
22579 #: ../fuse/guestmount.pod:83
22580 msgid "Enabling FUSE"
22581 msgstr ""
22582
22583 #. type: textblock
22584 #: ../fuse/guestmount.pod:85
22585 msgid ""
22586 "On some distros, you may need to add yourself to a special group (eg. "
22587 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
22588 "Debian and derivatives."
22589 msgstr ""
22590
22591 #. type: textblock
22592 #: ../fuse/guestmount.pod:89
22593 msgid ""
22594 "On other distros, no special group is required.  It is not necessary on "
22595 "Fedora or Red Hat Enterprise Linux."
22596 msgstr ""
22597
22598 #. type: textblock
22599 #: ../fuse/guestmount.pod:100
22600 msgid "Add a block device or virtual machine image."
22601 msgstr ""
22602
22603 #. type: =item
22604 #: ../fuse/guestmount.pod:123
22605 msgid "B<--dir-cache-timeout N>"
22606 msgstr ""
22607
22608 #. type: textblock
22609 #: ../fuse/guestmount.pod:125
22610 msgid ""
22611 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22612 "seconds.  The readdir cache [actually, there are several semi-independent "
22613 "caches] is populated after a readdir(2) call with the stat and extended "
22614 "attributes of the files in the directory, in anticipation that they will be "
22615 "requested soon after."
22616 msgstr ""
22617
22618 #. type: textblock
22619 #: ../fuse/guestmount.pod:131
22620 msgid ""
22621 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22622 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22623 "requests, only cache existing ones."
22624 msgstr ""
22625
22626 #. type: textblock
22627 #: ../fuse/guestmount.pod:151
22628 msgid ""
22629 "If you have untrusted raw-format guest disk images, you should use this "
22630 "option to specify the disk format.  This avoids a possible security problem "
22631 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
22632 "guestfs_add_drive_opts>."
22633 msgstr ""
22634
22635 #. type: =item
22636 #: ../fuse/guestmount.pod:156
22637 msgid "B<--fuse-help>"
22638 msgstr ""
22639
22640 #. type: textblock
22641 #: ../fuse/guestmount.pod:158
22642 msgid "Display help on special FUSE options (see I<-o> below)."
22643 msgstr ""
22644
22645 #. type: textblock
22646 #: ../fuse/guestmount.pod:162
22647 msgid "Display brief help and exit."
22648 msgstr ""
22649
22650 #. type: textblock
22651 #: ../fuse/guestmount.pod:186
22652 msgid ""
22653 "Mount the named partition or logical volume on the given mountpoint B<in the "
22654 "guest> (this has nothing to do with mountpoints in the host)."
22655 msgstr ""
22656
22657 #. type: textblock
22658 #: ../fuse/guestmount.pod:189
22659 msgid ""
22660 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22661 "something on C</>."
22662 msgstr ""
22663
22664 #. type: textblock
22665 #: ../fuse/guestmount.pod:206
22666 msgid ""
22667 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22668 "unmounted.  If you specify this option, then we don't attempt to sync the "
22669 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22670 msgstr ""
22671
22672 #. type: =item
22673 #: ../fuse/guestmount.pod:211
22674 msgid "B<-o option>"
22675 msgstr ""
22676
22677 #. type: =item
22678 #: ../fuse/guestmount.pod:213
22679 msgid "B<--option option>"
22680 msgstr ""
22681
22682 #. type: textblock
22683 #: ../fuse/guestmount.pod:215
22684 msgid "Pass extra options to FUSE."
22685 msgstr ""
22686
22687 #. type: textblock
22688 #: ../fuse/guestmount.pod:217
22689 msgid ""
22690 "To get a list of all the extra options supported by FUSE, use the command "
22691 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22692 "of them are a good idea."
22693 msgstr ""
22694
22695 #. type: verbatim
22696 #: ../fuse/guestmount.pod:221
22697 #, no-wrap
22698 msgid ""
22699 " guestmount --fuse-help\n"
22700 "\n"
22701 msgstr ""
22702
22703 #. type: textblock
22704 #: ../fuse/guestmount.pod:223
22705 msgid "Some potentially useful FUSE options:"
22706 msgstr ""
22707
22708 #. type: =item
22709 #: ../fuse/guestmount.pod:227
22710 msgid "B<-o allow_other>"
22711 msgstr ""
22712
22713 #. type: textblock
22714 #: ../fuse/guestmount.pod:229
22715 msgid "Allow other users to see the filesystem."
22716 msgstr ""
22717
22718 #. type: =item
22719 #: ../fuse/guestmount.pod:231
22720 msgid "B<-o attr_timeout=N>"
22721 msgstr ""
22722
22723 #. type: textblock
22724 #: ../fuse/guestmount.pod:233
22725 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22726 msgstr ""
22727
22728 #. type: =item
22729 #: ../fuse/guestmount.pod:235
22730 msgid "B<-o kernel_cache>"
22731 msgstr ""
22732
22733 #. type: textblock
22734 #: ../fuse/guestmount.pod:237
22735 msgid ""
22736 "Allow the kernel to cache files (reduces the number of reads that have to go "
22737 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22738 "afford the extra memory usage."
22739 msgstr ""
22740
22741 #. type: =item
22742 #: ../fuse/guestmount.pod:241
22743 msgid "B<-o uid=N> B<-o gid=N>"
22744 msgstr ""
22745
22746 #. type: textblock
22747 #: ../fuse/guestmount.pod:243
22748 msgid ""
22749 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22750 "the chosen values."
22751 msgstr ""
22752
22753 #. type: textblock
22754 #: ../fuse/guestmount.pod:252
22755 msgid ""
22756 "Add devices and mount everything read-only.  Also disallow writes and make "
22757 "the disk appear read-only to FUSE."
22758 msgstr ""
22759
22760 #. type: textblock
22761 #: ../fuse/guestmount.pod:255
22762 msgid ""
22763 "This is highly recommended if you are not going to edit the guest disk.  If "
22764 "the guest is running and this option is I<not> supplied, then there is a "
22765 "strong risk of disk corruption in the guest.  We try to prevent this from "
22766 "happening, but it is not always possible."
22767 msgstr ""
22768
22769 #. type: textblock
22770 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
22771 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22772 msgstr ""
22773
22774 #. type: textblock
22775 #: ../fuse/guestmount.pod:264
22776 msgid "Enable SELinux support for the guest."
22777 msgstr ""
22778
22779 #. type: textblock
22780 #: ../fuse/guestmount.pod:270
22781 msgid "Enable verbose messages from underlying libguestfs."
22782 msgstr ""
22783
22784 #. type: textblock
22785 #: ../fuse/guestmount.pod:276
22786 msgid "Display the program version and exit."
22787 msgstr ""
22788
22789 #. type: textblock
22790 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22791 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
22792 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22793 msgstr ""
22794
22795 #. type: =item
22796 #: ../fuse/guestmount.pod:289
22797 msgid "B<--trace>"
22798 msgstr ""
22799
22800 #. type: textblock
22801 #: ../fuse/guestmount.pod:291
22802 msgid "Trace libguestfs calls and entry into each FUSE function."
22803 msgstr ""
22804
22805 #. type: textblock
22806 #: ../fuse/guestmount.pod:293
22807 msgid "This also stops the daemon from forking into the background."
22808 msgstr ""
22809
22810 #. type: textblock
22811 #: ../fuse/guestmount.pod:319
22812 msgid ""
22813 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22814 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22815 "net/>."
22816 msgstr ""
22817
22818 #. type: textblock
22819 #: ../fuse/guestmount.pod:334
22820 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22821 msgstr ""
22822
22823 #. type: textblock
22824 #: ../inspector/virt-inspector.pod:5
22825 msgid ""
22826 "virt-inspector - Display operating system version and other information "
22827 "about a virtual machine"
22828 msgstr ""
22829
22830 #. type: verbatim
22831 #: ../inspector/virt-inspector.pod:9
22832 #, no-wrap
22833 msgid ""
22834 " virt-inspector [--options] -d domname\n"
22835 "\n"
22836 msgstr ""
22837
22838 #. type: verbatim
22839 #: ../inspector/virt-inspector.pod:11
22840 #, no-wrap
22841 msgid ""
22842 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22843 "\n"
22844 msgstr ""
22845
22846 #. type: verbatim
22847 #: ../inspector/virt-inspector.pod:15
22848 #, no-wrap
22849 msgid ""
22850 " virt-inspector domname\n"
22851 "\n"
22852 msgstr ""
22853
22854 #. type: verbatim
22855 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22856 #, no-wrap
22857 msgid ""
22858 " virt-inspector disk.img [disk.img ...]\n"
22859 "\n"
22860 msgstr ""
22861
22862 #. type: textblock
22863 #: ../inspector/virt-inspector.pod:21
22864 msgid ""
22865 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22866 "determine the version of the operating system and other information about "
22867 "the virtual machine."
22868 msgstr ""
22869
22870 #. type: textblock
22871 #: ../inspector/virt-inspector.pod:25
22872 msgid "Virt-inspector produces XML output for feeding into other programs."
22873 msgstr ""
22874
22875 #. type: textblock
22876 #: ../inspector/virt-inspector.pod:27
22877 msgid ""
22878 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22879 "the libvirt domain (see: C<virsh list --all>)."
22880 msgstr ""
22881
22882 #. type: textblock
22883 #: ../inspector/virt-inspector.pod:30
22884 msgid ""
22885 "You can also run virt-inspector directly on disk images from a single "
22886 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22887 "has several block devices, in which case you should list several I<-a> "
22888 "options one after another, with the first corresponding to the guest's C</"
22889 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22890 msgstr ""
22891
22892 #. type: textblock
22893 #: ../inspector/virt-inspector.pod:37
22894 msgid ""
22895 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22896 "keys and similar."
22897 msgstr ""
22898
22899 #. type: textblock
22900 #: ../inspector/virt-inspector.pod:40
22901 msgid ""
22902 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22903 "inspect several virtual machines, you have to run virt-inspector several "
22904 "times (for example, from a shell script for-loop)."
22905 msgstr ""
22906
22907 #. type: textblock
22908 #: ../inspector/virt-inspector.pod:45
22909 msgid ""
22910 "Because virt-inspector needs direct access to guest images, it won't "
22911 "normally work over remote libvirt connections."
22912 msgstr ""
22913
22914 #. type: textblock
22915 #: ../inspector/virt-inspector.pod:48
22916 msgid ""
22917 "All of the information available from virt-inspector is also available "
22918 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22919 "The same information can also be fetched using guestfish or via libguestfs "
22920 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22921 "WITH OTHER PROGRAMMING LANGUAGES>)."
22922 msgstr ""
22923
22924 #. type: textblock
22925 #: ../inspector/virt-inspector.pod:81
22926 msgid ""
22927 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22928 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22929 "at all."
22930 msgstr ""
22931
22932 #. type: textblock
22933 #: ../inspector/virt-inspector.pod:94
22934 msgid ""
22935 "When prompting for keys and passphrases, virt-inspector normally turns "
22936 "echoing off so you cannot see what you are typing.  If you are not worried "
22937 "about Tempest attacks and there is no one else in the room you can specify "
22938 "this flag to see what you are typing."
22939 msgstr ""
22940
22941 #. type: textblock
22942 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22943 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22944 #: ../tools/virt-win-reg.pl:144
22945 msgid ""
22946 "Specify the format of disk images given on the command line.  If this is "
22947 "omitted then the format is autodetected from the content of the disk image."
22948 msgstr ""
22949
22950 #. type: textblock
22951 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22952 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22953 #: ../tools/virt-win-reg.pl:148
22954 msgid ""
22955 "If disk images are requested from libvirt, then this program asks libvirt "
22956 "for this information.  In this case, the value of the format parameter is "
22957 "ignored."
22958 msgstr ""
22959
22960 #. type: textblock
22961 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:397
22962 #: ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:144
22963 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22964 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22965 msgid ""
22966 "If working with untrusted raw-format guest disk images, you should ensure "
22967 "the format is always specified."
22968 msgstr ""
22969
22970 #. type: =item
22971 #: ../inspector/virt-inspector.pod:135
22972 msgid "B<--xpath> query"
22973 msgstr ""
22974
22975 #. type: textblock
22976 #: ../inspector/virt-inspector.pod:137
22977 msgid ""
22978 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22979 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22980 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22981 msgstr ""
22982
22983 #. type: textblock
22984 #: ../inspector/virt-inspector.pod:146
22985 msgid "Previous versions of virt-inspector allowed you to write either:"
22986 msgstr ""
22987
22988 #. type: verbatim
22989 #: ../inspector/virt-inspector.pod:152
22990 #, no-wrap
22991 msgid ""
22992 " virt-inspector guestname\n"
22993 "\n"
22994 msgstr ""
22995
22996 #. type: =head1
22997 #: ../inspector/virt-inspector.pod:160
22998 msgid "XML FORMAT"
22999 msgstr ""
23000
23001 #. type: textblock
23002 #: ../inspector/virt-inspector.pod:162
23003 msgid ""
23004 "The virt-inspector XML is described precisely in a RELAX NG schema file "
23005 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
23006 "just an overview."
23007 msgstr ""
23008
23009 #. type: textblock
23010 #: ../inspector/virt-inspector.pod:166
23011 msgid ""
23012 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
23013 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
23014 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
23015 "which is vanishingly rare in real world VMs."
23016 msgstr ""
23017
23018 #. type: =head2
23019 #: ../inspector/virt-inspector.pod:171
23020 msgid "E<lt>operatingsystemE<gt>"
23021 msgstr ""
23022
23023 #. type: textblock
23024 #: ../inspector/virt-inspector.pod:173
23025 msgid ""
23026 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
23027 "describe the operating system, its architecture, the descriptive \"product "
23028 "name\" string, the type of OS and so on, as in this example:"
23029 msgstr ""
23030
23031 #. type: verbatim
23032 #: ../inspector/virt-inspector.pod:177
23033 #, no-wrap
23034 msgid ""
23035 " <operatingsystems>\n"
23036 "   <operatingsystem>\n"
23037 "     <root>/dev/sda2</root>\n"
23038 "     <name>windows</name>\n"
23039 "     <arch>i386</arch>\n"
23040 "     <distro>windows</distro>\n"
23041 "     <product_name>Windows 7 Enterprise</product_name>\n"
23042 "     <product_variant>Client</product_variant>\n"
23043 "     <major_version>6</major_version>\n"
23044 "     <minor_version>1</minor_version>\n"
23045 "     <windows_systemroot>/Windows</windows_systemroot>\n"
23046 "     <format>installed</format>\n"
23047 "\n"
23048 msgstr ""
23049
23050 #. type: textblock
23051 #: ../inspector/virt-inspector.pod:190
23052 msgid ""
23053 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
23054 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
23055 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
23056 "architecture.  The other fields are fairly self-explanatory, but because "
23057 "these fields are taken directly from the libguestfs inspection API you can "
23058 "find precise information from L<guestfs(3)/INSPECTION>."
23059 msgstr ""
23060
23061 #. type: textblock
23062 #: ../inspector/virt-inspector.pod:198
23063 msgid ""
23064 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
23065 "of view of libguestfs (block devices may have completely different names "
23066 "inside the VM itself)."
23067 msgstr ""
23068
23069 #. type: =head2
23070 #: ../inspector/virt-inspector.pod:202
23071 msgid "E<lt>mountpointsE<gt>"
23072 msgstr ""
23073
23074 #. type: textblock
23075 #: ../inspector/virt-inspector.pod:204
23076 msgid ""
23077 "Un*x-like guests typically have multiple filesystems which are mounted at "
23078 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
23079 "element which looks like this:"
23080 msgstr ""
23081
23082 #. type: verbatim
23083 #: ../inspector/virt-inspector.pod:208
23084 #, no-wrap
23085 msgid ""
23086 " <operatingsystems>\n"
23087 "   <operatingsystem>\n"
23088 "     ...\n"
23089 "     <mountpoints>\n"
23090 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
23091 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
23092 "     </mountpoints>\n"
23093 "\n"
23094 msgstr ""
23095
23096 #. type: textblock
23097 #: ../inspector/virt-inspector.pod:216
23098 msgid ""
23099 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
23100 "and may have completely different names inside the guest.  Only mountable "
23101 "filesystems appear in this list, not things like swap devices."
23102 msgstr ""
23103
23104 #. type: =head2
23105 #: ../inspector/virt-inspector.pod:221
23106 msgid "E<lt>filesystemsE<gt>"
23107 msgstr ""
23108
23109 #. type: textblock
23110 #: ../inspector/virt-inspector.pod:223
23111 msgid ""
23112 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
23113 "filesystems belonging to the guest, including swap and empty partitions.  "
23114 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
23115 "this OS or shared with this OS and other OSes)."
23116 msgstr ""
23117
23118 #. type: textblock
23119 #: ../inspector/virt-inspector.pod:229
23120 msgid "You might see something like this:"
23121 msgstr ""
23122
23123 #. type: verbatim
23124 #: ../inspector/virt-inspector.pod:231
23125 #, no-wrap
23126 msgid ""
23127 " <operatingsystems>\n"
23128 "   <operatingsystem>\n"
23129 "     ...\n"
23130 "     <filesystems>\n"
23131 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23132 "         <type>ext4</type>\n"
23133 "         <label>Fedora-13-x86_64</label>\n"
23134 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
23135 "       </filesystem>\n"
23136 "\n"
23137 msgstr ""
23138
23139 #. type: textblock
23140 #: ../inspector/virt-inspector.pod:241
23141 msgid ""
23142 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
23143 "the label, and the UUID."
23144 msgstr ""
23145
23146 #. type: =head2
23147 #: ../inspector/virt-inspector.pod:244
23148 msgid "E<lt>applicationsE<gt>"
23149 msgstr ""
23150
23151 #. type: textblock
23152 #: ../inspector/virt-inspector.pod:246
23153 msgid ""
23154 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
23155 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
23156 "machine."
23157 msgstr ""
23158
23159 #. type: textblock
23160 #: ../inspector/virt-inspector.pod:250
23161 msgid ""
23162 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
23163 "Typical values would be C<rpm> and C<deb>."
23164 msgstr ""
23165
23166 #. type: textblock
23167 #: ../inspector/virt-inspector.pod:253
23168 msgid ""
23169 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
23170 "Typical values include C<yum>, C<up2date> and C<apt>"
23171 msgstr ""
23172
23173 #. type: textblock
23174 #: ../inspector/virt-inspector.pod:256
23175 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
23176 msgstr ""
23177
23178 #. type: verbatim
23179 #: ../inspector/virt-inspector.pod:259
23180 #, no-wrap
23181 msgid ""
23182 " <operatingsystems>\n"
23183 "   <operatingsystem>\n"
23184 "     ...\n"
23185 "     <applications>\n"
23186 "       <application>\n"
23187 "         <name>coreutils</name>\n"
23188 "         <version>8.5</version>\n"
23189 "         <release>1</release>\n"
23190 "       </application>\n"
23191 "\n"
23192 msgstr ""
23193
23194 #. type: textblock
23195 #: ../inspector/virt-inspector.pod:269
23196 msgid ""
23197 "The version and release fields may not be available for some types guests.  "
23198 "Other fields are possible, see L<guestfs(3)/"
23199 "guestfs_inspect_list_applications>."
23200 msgstr ""
23201
23202 #. type: =head2
23203 #: ../inspector/virt-inspector.pod:273
23204 msgid "E<lt>drive_mappingsE<gt>"
23205 msgstr ""
23206
23207 #. type: textblock
23208 #: ../inspector/virt-inspector.pod:275
23209 msgid ""
23210 "For operating systems like Windows which use drive letters, virt-inspector "
23211 "is able to find out how drive letters map to filesystems."
23212 msgstr ""
23213
23214 #. type: verbatim
23215 #: ../inspector/virt-inspector.pod:279
23216 #, no-wrap
23217 msgid ""
23218 " <operatingsystems>\n"
23219 "   <operatingsystem>\n"
23220 "     ...\n"
23221 "     <drive_mappings>\n"
23222 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
23223 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
23224 "     </drive_mappings>\n"
23225 "\n"
23226 msgstr ""
23227
23228 #. type: textblock
23229 #: ../inspector/virt-inspector.pod:287
23230 msgid ""
23231 "In the example above, drive C maps to the filesystem on the second partition "
23232 "on the first disk, and drive E maps to the filesystem on the first partition "
23233 "on the second disk."
23234 msgstr ""
23235
23236 #. type: textblock
23237 #: ../inspector/virt-inspector.pod:291
23238 msgid ""
23239 "Note that this only covers permanent local filesystem mappings, not things "
23240 "like network shares.  Furthermore NTFS volume mount points may not be listed "
23241 "here."
23242 msgstr ""
23243
23244 #. type: =head2
23245 #: ../inspector/virt-inspector.pod:295
23246 msgid "E<lt>iconE<gt>"
23247 msgstr ""
23248
23249 #. type: textblock
23250 #: ../inspector/virt-inspector.pod:297
23251 msgid ""
23252 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
23253 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
23254 "very large and high quality."
23255 msgstr ""
23256
23257 #. type: verbatim
23258 #: ../inspector/virt-inspector.pod:301
23259 #, no-wrap
23260 msgid ""
23261 " <operatingsystems>\n"
23262 "   <operatingsystem>\n"
23263 "     ...\n"
23264 "     <icon>\n"
23265 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
23266 "       [... many lines of base64 data ...]\n"
23267 "     </icon>\n"
23268 "\n"
23269 msgstr ""
23270
23271 #. type: textblock
23272 #: ../inspector/virt-inspector.pod:309
23273 msgid ""
23274 "To display the icon, you have to extract it and convert the base64 data back "
23275 "to a binary file.  Use an XPath query or simply an editor to extract the "
23276 "data, then use the coreutils L<base64(1)> program to do the conversion back "
23277 "to a PNG file:"
23278 msgstr ""
23279
23280 #. type: verbatim
23281 #: ../inspector/virt-inspector.pod:314
23282 #, no-wrap
23283 msgid ""
23284 " base64 -i -d < icon.data > icon.png\n"
23285 "\n"
23286 msgstr ""
23287
23288 #. type: =head2
23289 #: ../inspector/virt-inspector.pod:316
23290 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
23291 msgstr ""
23292
23293 #. type: textblock
23294 #: ../inspector/virt-inspector.pod:318
23295 msgid ""
23296 "Virt-inspector can detect some operating system installers on install disks, "
23297 "live CDs, bootable USB keys and more."
23298 msgstr ""
23299
23300 #. type: textblock
23301 #: ../inspector/virt-inspector.pod:321
23302 msgid ""
23303 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
23304 "fields may be present to indicate a live CD, network installer, or one part "
23305 "of a multipart CD.  For example:"
23306 msgstr ""
23307
23308 #. type: verbatim
23309 #: ../inspector/virt-inspector.pod:325
23310 #, no-wrap
23311 msgid ""
23312 " <operatingsystems>\n"
23313 "   <operatingsystem>\n"
23314 "     <root>/dev/sda</root>\n"
23315 "     <name>linux</name>\n"
23316 "     <arch>i386</arch>\n"
23317 "     <distro>ubuntu</distro>\n"
23318 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
23319 "     <major_version>10</major_version>\n"
23320 "     <minor_version>10</minor_version>\n"
23321 "     <format>installer</format>\n"
23322 "     <live/>\n"
23323 "\n"
23324 msgstr ""
23325
23326 #. type: =head1
23327 #: ../inspector/virt-inspector.pod:337
23328 msgid "XPATH QUERIES"
23329 msgstr ""
23330
23331 #. type: textblock
23332 #: ../inspector/virt-inspector.pod:339
23333 msgid ""
23334 "Virt-inspector includes built in support for running XPath queries.  The "
23335 "reason for including XPath support directly in virt-inspector is simply that "
23336 "there are no good and widely available command line programs that can do "
23337 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
23338 "available on Red Hat Enterprise Linux."
23339 msgstr ""
23340
23341 #. type: textblock
23342 #: ../inspector/virt-inspector.pod:346
23343 msgid ""
23344 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
23345 "mode, virt-inspector simply reads XML from stdin and outputs the query "
23346 "result on stdout.  All other inspection features are disabled in this mode."
23347 msgstr ""
23348
23349 #. type: verbatim
23350 #: ../inspector/virt-inspector.pod:353
23351 #, no-wrap
23352 msgid ""
23353 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
23354 " <filesystems>\n"
23355 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23356 "        <type>ext4</type>\n"
23357 " [...]\n"
23358 "\n"
23359 msgstr ""
23360
23361 #. type: verbatim
23362 #: ../inspector/virt-inspector.pod:359
23363 #, no-wrap
23364 msgid ""
23365 " $ virt-inspector -d Guest | \\\n"
23366 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
23367 " ext4\n"
23368 "\n"
23369 msgstr ""
23370
23371 #. type: verbatim
23372 #: ../inspector/virt-inspector.pod:363
23373 #, no-wrap
23374 msgid ""
23375 " $ virt-inspector -d Guest | \\\n"
23376 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
23377 " [displays the guest icon, if there is one]\n"
23378 "\n"
23379 msgstr ""
23380
23381 #. type: =head1
23382 #: ../inspector/virt-inspector.pod:374
23383 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
23384 msgstr ""
23385
23386 #. type: textblock
23387 #: ../inspector/virt-inspector.pod:376
23388 msgid ""
23389 "Early versions of libguestfs shipped with a different virt-inspector program "
23390 "written in Perl (the current version is written in C).  The XML output of "
23391 "the Perl virt-inspector was different and it could also output in other "
23392 "formats like text."
23393 msgstr ""
23394
23395 #. type: textblock
23396 #: ../inspector/virt-inspector.pod:381
23397 msgid ""
23398 "The old virt-inspector is no longer supported or shipped with libguestfs."
23399 msgstr ""
23400
23401 #. type: textblock
23402 #: ../inspector/virt-inspector.pod:384
23403 msgid ""
23404 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
23405 "versions of virt-inspector with different names:"
23406 msgstr ""
23407
23408 #. type: verbatim
23409 #: ../inspector/virt-inspector.pod:387
23410 #, no-wrap
23411 msgid ""
23412 " virt-inspector     Old Perl version.\n"
23413 " virt-inspector2    New C version.\n"
23414 "\n"
23415 msgstr ""
23416
23417 #. type: textblock
23418 #: ../inspector/virt-inspector.pod:397
23419 msgid ""
23420 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
23421 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
23422 msgstr ""
23423
23424 #. type: textblock
23425 #: ../inspector/virt-inspector.pod:414
23426 msgid "Matthew Booth L<mbooth@redhat.com>"
23427 msgstr ""
23428
23429 #. type: textblock
23430 #: ../java/examples/guestfs-java.pod:5
23431 msgid "guestfs-java - How to use libguestfs from Java"
23432 msgstr ""
23433
23434 #. type: verbatim
23435 #: ../java/examples/guestfs-java.pod:9
23436 #, no-wrap
23437 msgid ""
23438 " import com.redhat.et.libguestfs.*;\n"
23439 " \n"
23440 msgstr ""
23441
23442 #. type: verbatim
23443 #: ../java/examples/guestfs-java.pod:11
23444 #, no-wrap
23445 msgid ""
23446 " GuestFS g = new GuestFS ();\n"
23447 " g.add_drive_opts (\"disk.img\", null);\n"
23448 " g.launch ();\n"
23449 "\n"
23450 msgstr ""
23451
23452 #. type: textblock
23453 #: ../java/examples/guestfs-java.pod:17
23454 msgid ""
23455 "This manual page documents how to call libguestfs from the Java programming "
23456 "language.  This page just documents the differences from the C API and gives "
23457 "some examples.  If you are not familiar with using libguestfs, you also need "
23458 "to read L<guestfs(3)>."
23459 msgstr ""
23460
23461 #. type: =head2
23462 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
23463 msgid "CLOSING THE HANDLE"
23464 msgstr ""
23465
23466 #. type: textblock
23467 #: ../java/examples/guestfs-java.pod:24
23468 msgid ""
23469 "The handle is closed when it is reaped by the garbage collector.  Because "
23470 "libguestfs handles include a lot of state, it is also possible to close (and "
23471 "hence free) them explicitly by calling the C<close> method."
23472 msgstr ""
23473
23474 #. type: =head2
23475 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
23476 #: ../python/examples/guestfs-python.pod:21
23477 #: ../ruby/examples/guestfs-ruby.pod:22
23478 msgid "EXCEPTIONS"
23479 msgstr ""
23480
23481 #. type: textblock
23482 #: ../java/examples/guestfs-java.pod:31
23483 msgid ""
23484 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
23485 "exception.  This has a single parameter which is the error message (a "
23486 "C<String>)."
23487 msgstr ""
23488
23489 #. type: textblock
23490 #: ../java/examples/guestfs-java.pod:35
23491 msgid "Calling any method on a closed handle raises the same exception."
23492 msgstr ""
23493
23494 #. type: textblock
23495 #: ../java/examples/guestfs-java.pod:47
23496 msgid ""
23497 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
23498 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23499 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23500 msgstr ""
23501
23502 #. type: textblock
23503 #: ../ocaml/examples/guestfs-ocaml.pod:5
23504 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
23505 msgstr ""
23506
23507 #. type: textblock
23508 #: ../ocaml/examples/guestfs-ocaml.pod:9
23509 msgid "Module style:"
23510 msgstr ""
23511
23512 #. type: verbatim
23513 #: ../ocaml/examples/guestfs-ocaml.pod:11
23514 #, no-wrap
23515 msgid ""
23516 " let g = Guestfs.create () in\n"
23517 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23518 " Guestfs.launch g;\n"
23519 "\n"
23520 msgstr ""
23521
23522 #. type: textblock
23523 #: ../ocaml/examples/guestfs-ocaml.pod:15
23524 msgid "Object-oriented style:"
23525 msgstr ""
23526
23527 #. type: verbatim
23528 #: ../ocaml/examples/guestfs-ocaml.pod:17
23529 #, no-wrap
23530 msgid ""
23531 " let g = new Guestfs.guestfs () in\n"
23532 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23533 " g#launch ();\n"
23534 "\n"
23535 msgstr ""
23536
23537 #. type: verbatim
23538 #: ../ocaml/examples/guestfs-ocaml.pod:21
23539 #, no-wrap
23540 msgid ""
23541 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
23542 "or:\n"
23543 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
23544 "\n"
23545 msgstr ""
23546
23547 #. type: textblock
23548 #: ../ocaml/examples/guestfs-ocaml.pod:27
23549 msgid ""
23550 "This manual page documents how to call libguestfs from the OCaml programming "
23551 "language.  This page just documents the differences from the C API and gives "
23552 "some examples.  If you are not familiar with using libguestfs, you also need "
23553 "to read L<guestfs(3)>."
23554 msgstr ""
23555
23556 #. type: =head2
23557 #: ../ocaml/examples/guestfs-ocaml.pod:32
23558 msgid "PROGRAMMING STYLES"
23559 msgstr ""
23560
23561 #. type: textblock
23562 #: ../ocaml/examples/guestfs-ocaml.pod:34
23563 msgid ""
23564 "There are two different programming styles supported by the OCaml bindings.  "
23565 "You can use a module style, with each C function mapped to an OCaml function:"
23566 msgstr ""
23567
23568 #. type: verbatim
23569 #: ../ocaml/examples/guestfs-ocaml.pod:38
23570 #, no-wrap
23571 msgid ""
23572 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
23573 "\n"
23574 msgstr ""
23575
23576 #. type: textblock
23577 #: ../ocaml/examples/guestfs-ocaml.pod:40
23578 msgid "becomes:"
23579 msgstr ""
23580
23581 #. type: verbatim
23582 #: ../ocaml/examples/guestfs-ocaml.pod:42
23583 #, no-wrap
23584 msgid ""
23585 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
23586 "\n"
23587 msgstr ""
23588
23589 #. type: textblock
23590 #: ../ocaml/examples/guestfs-ocaml.pod:44
23591 msgid ""
23592 "Alternately you can use an object-oriented style, calling methods on the "
23593 "class C<Guestfs.guestfs>:"
23594 msgstr ""
23595
23596 #. type: verbatim
23597 #: ../ocaml/examples/guestfs-ocaml.pod:47
23598 #, no-wrap
23599 msgid ""
23600 " method set_verbose : bool -> unit\n"
23601 "\n"
23602 msgstr ""
23603
23604 #. type: textblock
23605 #: ../ocaml/examples/guestfs-ocaml.pod:49
23606 msgid ""
23607 "The object-oriented style is usually briefer, and the minor performance "
23608 "penalty isn't noticable in the general overhead of performing libguestfs "
23609 "functions."
23610 msgstr ""
23611
23612 #. type: textblock
23613 #: ../ocaml/examples/guestfs-ocaml.pod:55
23614 msgid ""
23615 "The handle is closed when it is reaped by the garbage collector.  Because "
23616 "libguestfs handles include a lot of state, it is also possible to close (and "
23617 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23618 "method."
23619 msgstr ""
23620
23621 #. type: textblock
23622 #: ../ocaml/examples/guestfs-ocaml.pod:62
23623 msgid ""
23624 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23625 "exception.  This has a single parameter which is the error message (a "
23626 "string)."
23627 msgstr ""
23628
23629 #. type: textblock
23630 #: ../ocaml/examples/guestfs-ocaml.pod:66
23631 msgid ""
23632 "Calling any function/method on a closed handle raises C<Guestfs."
23633 "Handle_closed>.  The single parameter is the name of the function that you "
23634 "called."
23635 msgstr ""
23636
23637 #. type: textblock
23638 #: ../ocaml/examples/guestfs-ocaml.pod:80
23639 msgid ""
23640 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23641 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23642 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23643 msgstr ""
23644
23645 #. type: textblock
23646 #: ../perl/examples/guestfs-perl.pod:5
23647 msgid "guestfs-perl - How to use libguestfs from Perl"
23648 msgstr ""
23649
23650 #. type: verbatim
23651 #: ../perl/examples/guestfs-perl.pod:9
23652 #, no-wrap
23653 msgid ""
23654 " use Sys::Guestfs;\n"
23655 " \n"
23656 msgstr ""
23657
23658 #. type: verbatim
23659 #: ../perl/examples/guestfs-perl.pod:11
23660 #, no-wrap
23661 msgid ""
23662 " my $h = Sys::Guestfs->new ();\n"
23663 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23664 " $h->launch ();\n"
23665 " $h->mount_options ('', '/dev/sda1', '/');\n"
23666 " $h->touch ('/hello');\n"
23667 " $h->sync ();\n"
23668 "\n"
23669 msgstr ""
23670
23671 #. type: textblock
23672 #: ../perl/examples/guestfs-perl.pod:20
23673 msgid ""
23674 "This manual page documents how to call libguestfs from the Perl programming "
23675 "language.  This page just documents the differences from the C API and gives "
23676 "some examples.  If you are not familiar with using libguestfs, you also need "
23677 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23678 msgstr ""
23679
23680 #. type: =head2
23681 #: ../perl/examples/guestfs-perl.pod:26
23682 msgid "ERRORS"
23683 msgstr ""
23684
23685 #. type: textblock
23686 #: ../perl/examples/guestfs-perl.pod:28
23687 msgid ""
23688 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23689 ">)."
23690 msgstr ""
23691
23692 #. type: textblock
23693 #: ../perl/examples/guestfs-perl.pod:41
23694 msgid ""
23695 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23696 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23697 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23698 msgstr ""
23699
23700 #. type: textblock
23701 #: ../python/examples/guestfs-python.pod:5
23702 msgid "guestfs-python - How to use libguestfs from Python"
23703 msgstr ""
23704
23705 #. type: verbatim
23706 #: ../python/examples/guestfs-python.pod:9
23707 #, no-wrap
23708 msgid ""
23709 " import guestfs\n"
23710 " g = guestfs.GuestFS ()\n"
23711 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23712 " g.launch\n"
23713 "\n"
23714 msgstr ""
23715
23716 #. type: textblock
23717 #: ../python/examples/guestfs-python.pod:16
23718 msgid ""
23719 "This manual page documents how to call libguestfs from the Python "
23720 "programming language.  This page just documents the differences from the C "
23721 "API and gives some examples.  If you are not familiar with using libguestfs, "
23722 "you also need to read L<guestfs(3)>."
23723 msgstr ""
23724
23725 #. type: textblock
23726 #: ../python/examples/guestfs-python.pod:23
23727 msgid ""
23728 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23729 "single string argument which is the error message."
23730 msgstr ""
23731
23732 #. type: =head2
23733 #: ../python/examples/guestfs-python.pod:26
23734 msgid "MORE DOCUMENTATION"
23735 msgstr ""
23736
23737 #. type: textblock
23738 #: ../python/examples/guestfs-python.pod:28
23739 msgid "Type:"
23740 msgstr ""
23741
23742 #. type: verbatim
23743 #: ../python/examples/guestfs-python.pod:30
23744 #, no-wrap
23745 msgid ""
23746 " $ python\n"
23747 " >>> import guestfs\n"
23748 " >>> help (guestfs)\n"
23749 "\n"
23750 msgstr ""
23751
23752 #. type: textblock
23753 #: ../python/examples/guestfs-python.pod:44
23754 msgid ""
23755 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23756 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23757 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23758 msgstr ""
23759
23760 #. type: textblock
23761 #: ../rescue/virt-rescue.pod:5
23762 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23763 msgstr ""
23764
23765 #. type: verbatim
23766 #: ../rescue/virt-rescue.pod:9
23767 #, no-wrap
23768 msgid ""
23769 " virt-rescue [--options] -d domname\n"
23770 "\n"
23771 msgstr ""
23772
23773 #. type: verbatim
23774 #: ../rescue/virt-rescue.pod:11
23775 #, no-wrap
23776 msgid ""
23777 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23778 "\n"
23779 msgstr ""
23780
23781 #. type: verbatim
23782 #: ../rescue/virt-rescue.pod:13
23783 #, no-wrap
23784 msgid ""
23785 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
23786 "\n"
23787 msgstr ""
23788
23789 #. type: verbatim
23790 #: ../rescue/virt-rescue.pod:17
23791 #, no-wrap
23792 msgid ""
23793 " virt-rescue [--options] domname\n"
23794 "\n"
23795 msgstr ""
23796
23797 #. type: verbatim
23798 #: ../rescue/virt-rescue.pod:19
23799 #, no-wrap
23800 msgid ""
23801 " virt-rescue [--options] disk.img [disk.img ...]\n"
23802 "\n"
23803 msgstr ""
23804
23805 #. type: textblock
23806 #: ../rescue/virt-rescue.pod:23
23807 msgid ""
23808 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23809 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23810 "you from doing this, but doesn't catch all cases."
23811 msgstr ""
23812
23813 #. type: textblock
23814 #: ../rescue/virt-rescue.pod:27
23815 msgid ""
23816 "However if you use the I<--ro> (read only) option, then you can attach a "
23817 "shell to a live virtual machine.  The results might be strange or "
23818 "inconsistent at times but you won't get disk corruption."
23819 msgstr ""
23820
23821 #. type: textblock
23822 #: ../rescue/virt-rescue.pod:33
23823 msgid ""
23824 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23825 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23826 "recovery tools which you can use to examine or rescue a virtual machine or "
23827 "disk image."
23828 msgstr ""
23829
23830 #. type: textblock
23831 #: ../rescue/virt-rescue.pod:38
23832 msgid ""
23833 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23834 "on disk image(s):"
23835 msgstr ""
23836
23837 #. type: verbatim
23838 #: ../rescue/virt-rescue.pod:41
23839 #, no-wrap
23840 msgid ""
23841 " virt-rescue -d GuestName\n"
23842 "\n"
23843 msgstr ""
23844
23845 #. type: verbatim
23846 #: ../rescue/virt-rescue.pod:43
23847 #, no-wrap
23848 msgid ""
23849 " virt-rescue --ro -a /path/to/disk.img\n"
23850 "\n"
23851 msgstr ""
23852
23853 #. type: verbatim
23854 #: ../rescue/virt-rescue.pod:45
23855 #, no-wrap
23856 msgid ""
23857 " virt-rescue -a /dev/sdc\n"
23858 "\n"
23859 msgstr ""
23860
23861 #. type: textblock
23862 #: ../rescue/virt-rescue.pod:47
23863 msgid "For live VMs you I<must> use the --ro option."
23864 msgstr ""
23865
23866 #. type: textblock
23867 #: ../rescue/virt-rescue.pod:49
23868 msgid ""
23869 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23870 "in an interactive bash shell where you can use many ordinary Linux "
23871 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23872 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23873 "is an empty directory called C</sysroot> where you can mount filesystems."
23874 msgstr ""
23875
23876 #. type: textblock
23877 #: ../rescue/virt-rescue.pod:56
23878 msgid ""
23879 "You can get virt-rescue to suggest mount commands for you by using the I<--"
23880 "suggest> option (in another terminal):"
23881 msgstr ""
23882
23883 #. type: verbatim
23884 #: ../rescue/virt-rescue.pod:59
23885 #, no-wrap
23886 msgid ""
23887 " $ virt-rescue --suggest -d Fedora15\n"
23888 " Inspecting the virtual machine or disk image ...\n"
23889 " \n"
23890 msgstr ""
23891
23892 #. type: verbatim
23893 #: ../rescue/virt-rescue.pod:62
23894 #, no-wrap
23895 msgid ""
23896 " This disk contains one or more operating systems.  You can use these\n"
23897 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23898 " filesystems.\n"
23899 " \n"
23900 msgstr ""
23901
23902 #. type: verbatim
23903 #: ../rescue/virt-rescue.pod:66
23904 #, no-wrap
23905 msgid ""
23906 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23907 " # type: linux, distro: fedora, version: 15.0\n"
23908 " # Fedora release 15 (Lovelock)\n"
23909 " \n"
23910 msgstr ""
23911
23912 #. type: verbatim
23913 #: ../rescue/virt-rescue.pod:70
23914 #, no-wrap
23915 msgid ""
23916 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23917 " mount /dev/vda1 /sysroot/boot\n"
23918 " mount --bind /dev /sysroot/dev\n"
23919 " mount --bind /dev/pts /sysroot/dev/pts\n"
23920 " mount --bind /proc /sysroot/proc\n"
23921 " mount --bind /sys /sysroot/sys\n"
23922 "\n"
23923 msgstr ""
23924
23925 #. type: textblock
23926 #: ../rescue/virt-rescue.pod:77
23927 msgid ""
23928 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23929 "(with L<parted(8)>) and mount them by hand:"
23930 msgstr ""
23931
23932 #. type: verbatim
23933 #: ../rescue/virt-rescue.pod:80
23934 #, no-wrap
23935 msgid ""
23936 " ><rescue> lvs\n"
23937 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23938 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23939 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23940 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23941 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23942 " ><rescue> ls /sysroot\n"
23943 "\n"
23944 msgstr ""
23945
23946 #. type: textblock
23947 #: ../rescue/virt-rescue.pod:88
23948 msgid ""
23949 "Another command to list available filesystems is L<virt-filesystems(1)>."
23950 msgstr ""
23951
23952 #. type: textblock
23953 #: ../rescue/virt-rescue.pod:91
23954 msgid ""
23955 "To run commands in a Linux guest (for example, grub), you should chroot into "
23956 "the /sysroot directory first:"
23957 msgstr ""
23958
23959 #. type: verbatim
23960 #: ../rescue/virt-rescue.pod:94
23961 #, no-wrap
23962 msgid ""
23963 " ><rescue> chroot /sysroot\n"
23964 "\n"
23965 msgstr ""
23966
23967 #. type: textblock
23968 #: ../rescue/virt-rescue.pod:98
23969 msgid ""
23970 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23971 "virtual machine.  For example you can use it on a blank file if you want to "
23972 "partition that file (although we would recommend using L<guestfish(1)> "
23973 "instead as it is more suitable for this purpose).  You can even use virt-"
23974 "rescue on things like SD cards."
23975 msgstr ""
23976
23977 #. type: textblock
23978 #: ../rescue/virt-rescue.pod:104
23979 msgid ""
23980 "Virt-rescue does not require root.  You only need to run it as root if you "
23981 "need root to open the disk image."
23982 msgstr ""
23983
23984 #. type: textblock
23985 #: ../rescue/virt-rescue.pod:107
23986 msgid ""
23987 "This tool is just designed for quick interactive hacking on a virtual "
23988 "machine.  For more structured access to a virtual machine disk image, you "
23989 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23990 "make scripted changes to guests, use L<guestfish(1)>."
23991 msgstr ""
23992
23993 #. type: =item
23994 #: ../rescue/virt-rescue.pod:131
23995 msgid "B<--append kernelopts>"
23996 msgstr ""
23997
23998 #. type: textblock
23999 #: ../rescue/virt-rescue.pod:133
24000 msgid "Pass additional options to the rescue kernel."
24001 msgstr ""
24002
24003 #. type: verbatim
24004 #: ../rescue/virt-rescue.pod:163
24005 #, no-wrap
24006 msgid ""
24007 " virt-rescue --format=raw -a disk.img\n"
24008 "\n"
24009 msgstr ""
24010
24011 #. type: verbatim
24012 #: ../rescue/virt-rescue.pod:167
24013 #, no-wrap
24014 msgid ""
24015 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
24016 "\n"
24017 msgstr ""
24018
24019 #. type: =item
24020 #: ../rescue/virt-rescue.pod:176
24021 msgid "B<-m MB>"
24022 msgstr ""
24023
24024 #. type: =item
24025 #: ../rescue/virt-rescue.pod:178
24026 msgid "B<--memsize MB>"
24027 msgstr ""
24028
24029 #. type: textblock
24030 #: ../rescue/virt-rescue.pod:180
24031 msgid ""
24032 "Change the amount of memory allocated to the rescue system.  The default is "
24033 "set by libguestfs and is small but adequate for running system tools.  The "
24034 "occasional program might need more memory.  The parameter is specified in "
24035 "megabytes."
24036 msgstr ""
24037
24038 #. type: =item
24039 #: ../rescue/virt-rescue.pod:185
24040 msgid "B<--network>"
24041 msgstr ""
24042
24043 #. type: textblock
24044 #: ../rescue/virt-rescue.pod:187
24045 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
24046 msgstr ""
24047
24048 #. type: textblock
24049 #: ../rescue/virt-rescue.pod:193
24050 msgid "Open the image read-only."
24051 msgstr ""
24052
24053 #. type: textblock
24054 #: ../rescue/virt-rescue.pod:203
24055 msgid ""
24056 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
24057 "SELINUX> before using this option."
24058 msgstr ""
24059
24060 #. type: =item
24061 #: ../rescue/virt-rescue.pod:206
24062 msgid "B<--smp> N"
24063 msgstr ""
24064
24065 #. type: textblock
24066 #: ../rescue/virt-rescue.pod:208
24067 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
24068 msgstr ""
24069
24070 #. type: =item
24071 #: ../rescue/virt-rescue.pod:210
24072 msgid "B<--suggest>"
24073 msgstr ""
24074
24075 #. type: textblock
24076 #: ../rescue/virt-rescue.pod:212
24077 msgid ""
24078 "Inspect the disk image and suggest what mount commands should be used to "
24079 "mount the disks.  You should use the I<--suggest> option in a second "
24080 "terminal, then paste the commands into another virt-rescue."
24081 msgstr ""
24082
24083 #. type: textblock
24084 #: ../rescue/virt-rescue.pod:216
24085 msgid ""
24086 "This option implies I<--ro> and is safe to use even if the guest is up or if "
24087 "another virt-rescue is running."
24088 msgstr ""
24089
24090 #. type: textblock
24091 #: ../rescue/virt-rescue.pod:235
24092 msgid ""
24093 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
24094 "are done read-write."
24095 msgstr ""
24096
24097 #. type: textblock
24098 #: ../rescue/virt-rescue.pod:248
24099 msgid "Previous versions of virt-rescue allowed you to write either:"
24100 msgstr ""
24101
24102 #. type: verbatim
24103 #: ../rescue/virt-rescue.pod:250
24104 #, no-wrap
24105 msgid ""
24106 " virt-rescue disk.img [disk.img ...]\n"
24107 "\n"
24108 msgstr ""
24109
24110 #. type: verbatim
24111 #: ../rescue/virt-rescue.pod:254
24112 #, no-wrap
24113 msgid ""
24114 " virt-rescue guestname\n"
24115 "\n"
24116 msgstr ""
24117
24118 #. type: =head1
24119 #: ../rescue/virt-rescue.pod:262
24120 msgid "NETWORK"
24121 msgstr ""
24122
24123 #. type: textblock
24124 #: ../rescue/virt-rescue.pod:264
24125 msgid ""
24126 "Adding the I<--network> option enables QEMU user networking in the rescue "
24127 "appliance.  There are some differences between user networking and ordinary "
24128 "networking:"
24129 msgstr ""
24130
24131 #. type: =item
24132 #: ../rescue/virt-rescue.pod:270
24133 msgid "ping does not work"
24134 msgstr ""
24135
24136 #. type: textblock
24137 #: ../rescue/virt-rescue.pod:272
24138 msgid ""
24139 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
24140 "send the ping packets, and because virt-rescue must be able to run as non-"
24141 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
24142 "The ping command will appear to resolve addresses but will not be able to "
24143 "send or receive any packets.  This does not mean that the network is not "
24144 "working."
24145 msgstr ""
24146
24147 #. type: =item
24148 #: ../rescue/virt-rescue.pod:279
24149 msgid "cannot receive connections"
24150 msgstr ""
24151
24152 #. type: textblock
24153 #: ../rescue/virt-rescue.pod:281
24154 msgid "QEMU user networking cannot receive incoming connections."
24155 msgstr ""
24156
24157 #. type: =item
24158 #: ../rescue/virt-rescue.pod:283
24159 msgid "making TCP connections"
24160 msgstr ""
24161
24162 #. type: textblock
24163 #: ../rescue/virt-rescue.pod:285
24164 msgid ""
24165 "The virt-rescue appliance needs to be small and so does not include many "
24166 "network tools.  In particular there is no L<telnet(1)> command.  You can "
24167 "make TCP connections from the shell using the magical C</dev/tcp/"
24168 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
24169 msgstr ""
24170
24171 #. type: verbatim
24172 #: ../rescue/virt-rescue.pod:290
24173 #, no-wrap
24174 msgid ""
24175 " exec 3<>/dev/tcp/redhat.com/80\n"
24176 " echo \"GET /\" >&3\n"
24177 " cat <&3\n"
24178 "\n"
24179 msgstr ""
24180
24181 #. type: textblock
24182 #: ../rescue/virt-rescue.pod:294
24183 msgid "See L<bash(1)> for more details."
24184 msgstr ""
24185
24186 #. type: textblock
24187 #: ../rescue/virt-rescue.pod:300
24188 msgid ""
24189 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
24190 "ENVIRONMENT VARIABLES> for the complete list."
24191 msgstr ""
24192
24193 #. type: textblock
24194 #: ../rescue/virt-rescue.pod:327
24195 msgid ""
24196 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
24197 "filesystems(1)>, L<http://libguestfs.org/>."
24198 msgstr ""
24199
24200 #. type: textblock
24201 #: ../resize/virt-resize.pod:5
24202 msgid "virt-resize - Resize a virtual machine disk"
24203 msgstr ""
24204
24205 #. type: verbatim
24206 #: ../resize/virt-resize.pod:9
24207 #, no-wrap
24208 msgid ""
24209 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24210 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24211 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24212 "\n"
24213 msgstr ""
24214
24215 #. type: textblock
24216 #: ../resize/virt-resize.pod:15
24217 msgid ""
24218 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24219 "larger or smaller overall, and resizing or deleting any partitions contained "
24220 "within."
24221 msgstr ""
24222
24223 #. type: textblock
24224 #: ../resize/virt-resize.pod:19
24225 msgid ""
24226 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24227 "not> be used on live virtual machines - for consistent results, shut the "
24228 "virtual machine down before resizing it."
24229 msgstr ""
24230
24231 #. type: textblock
24232 #: ../resize/virt-resize.pod:23
24233 msgid ""
24234 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
24235 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
24236 msgstr ""
24237
24238 #. type: =item
24239 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603
24240 #: ../sparsify/virt-sparsify.pod:227 ../src/guestfs.pod:484
24241 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
24242 msgid "1."
24243 msgstr ""
24244
24245 #. type: textblock
24246 #: ../resize/virt-resize.pod:33
24247 msgid ""
24248 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24249 "fill the extra 5GB of space."
24250 msgstr ""
24251
24252 #. type: verbatim
24253 #: ../resize/virt-resize.pod:36
24254 #, no-wrap
24255 msgid ""
24256 " virt-filesystems --long -h --all -a olddisk\n"
24257 " \n"
24258 msgstr ""
24259
24260 #. type: verbatim
24261 #: ../resize/virt-resize.pod:38
24262 #, no-wrap
24263 msgid ""
24264 " truncate -r olddisk newdisk\n"
24265 " truncate -s +5G newdisk\n"
24266 " \n"
24267 msgstr ""
24268
24269 #. type: verbatim
24270 #: ../resize/virt-resize.pod:41
24271 #, no-wrap
24272 msgid ""
24273 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24274 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24275 "\n"
24276 msgstr ""
24277
24278 #. type: =item
24279 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610
24280 #: ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:490
24281 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
24282 msgid "2."
24283 msgstr ""
24284
24285 #. type: textblock
24286 #: ../resize/virt-resize.pod:46
24287 msgid ""
24288 "As above, but make the /boot partition 200MB bigger, while giving the "
24289 "remaining space to /dev/sda2:"
24290 msgstr ""
24291
24292 #. type: verbatim
24293 #: ../resize/virt-resize.pod:49
24294 #, no-wrap
24295 msgid ""
24296 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24297 "   olddisk newdisk\n"
24298 "\n"
24299 msgstr ""
24300
24301 #. type: =item
24302 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616
24303 #: ../sparsify/virt-sparsify.pod:240 ../src/guestfs.pod:501
24304 #: ../src/guestfs.pod:1451
24305 msgid "3."
24306 msgstr ""
24307
24308 #. type: textblock
24309 #: ../resize/virt-resize.pod:54
24310 msgid ""
24311 "As in the first example, but expand a logical volume as the final step.  "
24312 "This is what you would typically use for Linux guests that use LVM:"
24313 msgstr ""
24314
24315 #. type: verbatim
24316 #: ../resize/virt-resize.pod:58
24317 #, no-wrap
24318 msgid ""
24319 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
24320 "   olddisk newdisk\n"
24321 "\n"
24322 msgstr ""
24323
24324 #. type: =item
24325 #: ../resize/virt-resize.pod:61
24326 msgid "4."
24327 msgstr ""
24328
24329 #. type: textblock
24330 #: ../resize/virt-resize.pod:63
24331 msgid ""
24332 "As in the first example, but the output format will be qcow2 instead of a "
24333 "raw disk:"
24334 msgstr ""
24335
24336 #. type: verbatim
24337 #: ../resize/virt-resize.pod:66
24338 #, no-wrap
24339 msgid ""
24340 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
24341 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
24342 "\n"
24343 msgstr ""
24344
24345 #. type: =head1
24346 #: ../resize/virt-resize.pod:71
24347 msgid "DETAILED USAGE"
24348 msgstr ""
24349
24350 #. type: =head2
24351 #: ../resize/virt-resize.pod:73
24352 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24353 msgstr ""
24354
24355 #. type: =item
24356 #: ../resize/virt-resize.pod:77
24357 msgid "1. Shut down the virtual machine"
24358 msgstr ""
24359
24360 #. type: =item
24361 #: ../resize/virt-resize.pod:79
24362 msgid "2. Locate input disk image"
24363 msgstr ""
24364
24365 #. type: textblock
24366 #: ../resize/virt-resize.pod:81
24367 msgid ""
24368 "Locate the input disk image (ie. the file or device on the host containing "
24369 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24370 "dumpxml> like this to find the disk image name:"
24371 msgstr ""
24372
24373 #. type: verbatim
24374 #: ../resize/virt-resize.pod:85
24375 #, no-wrap
24376 msgid ""
24377 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24378 " Found 1 nodes:\n"
24379 " -- NODE --\n"
24380 " <source dev=\"/dev/vg/lv_guest\" />\n"
24381 "\n"
24382 msgstr ""
24383
24384 #. type: =item
24385 #: ../resize/virt-resize.pod:90
24386 msgid "3. Look at current sizing"
24387 msgstr ""
24388
24389 #. type: textblock
24390 #: ../resize/virt-resize.pod:92
24391 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
24392 msgstr ""
24393
24394 #. type: verbatim
24395 #: ../resize/virt-resize.pod:95
24396 #, no-wrap
24397 msgid ""
24398 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
24399 " Name       Type       Size  Parent\n"
24400 " /dev/sda1  partition  101M  /dev/sda\n"
24401 " /dev/sda2  partition  7.9G  /dev/sda\n"
24402 " /dev/sda   device     8.0G  -\n"
24403 "\n"
24404 msgstr ""
24405
24406 #. type: textblock
24407 #: ../resize/virt-resize.pod:101
24408 msgid ""
24409 "(This example is a virtual machine with an 8 GB disk which we would like to "
24410 "expand up to 10 GB)."
24411 msgstr ""
24412
24413 #. type: =item
24414 #: ../resize/virt-resize.pod:104
24415 msgid "4. Create output disk"
24416 msgstr ""
24417
24418 #. type: textblock
24419 #: ../resize/virt-resize.pod:106
24420 msgid ""
24421 "Virt-resize cannot do in-place disk modifications.  You have to have space "
24422 "to store the resized output disk."
24423 msgstr ""
24424
24425 #. type: textblock
24426 #: ../resize/virt-resize.pod:109
24427 msgid ""
24428 "To store the resized disk image in a file, create a file of a suitable size:"
24429 msgstr ""
24430
24431 #. type: verbatim
24432 #: ../resize/virt-resize.pod:112
24433 #, no-wrap
24434 msgid ""
24435 " # rm -f outdisk\n"
24436 " # truncate -s 10G outdisk\n"
24437 "\n"
24438 msgstr ""
24439
24440 #. type: textblock
24441 #: ../resize/virt-resize.pod:115
24442 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24443 msgstr ""
24444
24445 #. type: verbatim
24446 #: ../resize/virt-resize.pod:117
24447 #, no-wrap
24448 msgid ""
24449 " # lvcreate -L 10G -n lv_name vg_name\n"
24450 "\n"
24451 msgstr ""
24452
24453 #. type: textblock
24454 #: ../resize/virt-resize.pod:119
24455 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24456 msgstr ""
24457
24458 #. type: verbatim
24459 #: ../resize/virt-resize.pod:121
24460 #, no-wrap
24461 msgid ""
24462 " # virsh pool-list\n"
24463 " # virsh vol-create-as poolname newvol 10G\n"
24464 "\n"
24465 msgstr ""
24466
24467 #. type: =item
24468 #: ../resize/virt-resize.pod:124
24469 msgid "5. Resize"
24470 msgstr ""
24471
24472 #. type: textblock
24473 #: ../resize/virt-resize.pod:126
24474 msgid ""
24475 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24476 "file) and the output disk.  The output disk is the one created in the "
24477 "previous step."
24478 msgstr ""
24479
24480 #. type: verbatim
24481 #: ../resize/virt-resize.pod:130
24482 #, no-wrap
24483 msgid ""
24484 " # virt-resize indisk outdisk\n"
24485 "\n"
24486 msgstr ""
24487
24488 #. type: textblock
24489 #: ../resize/virt-resize.pod:132
24490 msgid ""
24491 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24492 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
24493 "larger, then an extra, empty partition is created at the end of the disk "
24494 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
24495 "error."
24496 msgstr ""
24497
24498 #. type: textblock
24499 #: ../resize/virt-resize.pod:138
24500 msgid ""
24501 "More realistically you'd want to expand existing partitions in the disk "
24502 "image by passing extra options (for the full list see the L</OPTIONS> "
24503 "section below)."
24504 msgstr ""
24505
24506 #. type: textblock
24507 #: ../resize/virt-resize.pod:142
24508 msgid ""
24509 "L</--expand> is the most useful option.  It expands the named partition "
24510 "within the disk to fill any extra space:"
24511 msgstr ""
24512
24513 #. type: verbatim
24514 #: ../resize/virt-resize.pod:145
24515 #, no-wrap
24516 msgid ""
24517 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24518 "\n"
24519 msgstr ""
24520
24521 #. type: textblock
24522 #: ../resize/virt-resize.pod:147
24523 msgid ""
24524 "(In this case, an extra partition is I<not> created at the end of the disk, "
24525 "because there will be no unused space)."
24526 msgstr ""
24527
24528 #. type: textblock
24529 #: ../resize/virt-resize.pod:150
24530 msgid ""
24531 "L</--resize> is the other commonly used option.  The following would "
24532 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24533 "rest of the available space:"
24534 msgstr ""
24535
24536 #. type: verbatim
24537 #: ../resize/virt-resize.pod:154
24538 #, no-wrap
24539 msgid ""
24540 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24541 "     indisk outdisk\n"
24542 "\n"
24543 msgstr ""
24544
24545 #. type: textblock
24546 #: ../resize/virt-resize.pod:157
24547 msgid ""
24548 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24549 "if virt-resize knows how, it will resize the contents, the equivalent of "
24550 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
24551 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
24552 "filesystems, so you would have to online resize them after booting the guest."
24553 msgstr ""
24554
24555 #. type: textblock
24556 #: ../resize/virt-resize.pod:164
24557 msgid "Other options are covered below."
24558 msgstr ""
24559
24560 #. type: =item
24561 #: ../resize/virt-resize.pod:166
24562 msgid "6. Test"
24563 msgstr ""
24564
24565 #. type: textblock
24566 #: ../resize/virt-resize.pod:168
24567 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24568 msgstr ""
24569
24570 #. type: textblock
24571 #: ../resize/virt-resize.pod:170
24572 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24573 msgstr ""
24574
24575 #. type: verbatim
24576 #: ../resize/virt-resize.pod:172
24577 #, no-wrap
24578 msgid ""
24579 " # virsh edit guestname\n"
24580 "\n"
24581 msgstr ""
24582
24583 #. type: textblock
24584 #: ../resize/virt-resize.pod:174
24585 msgid ""
24586 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
24587 "html#elementsDisks>"
24588 msgstr ""
24589
24590 #. type: textblock
24591 #: ../resize/virt-resize.pod:177
24592 msgid "Then start up the domain with the new, resized disk:"
24593 msgstr ""
24594
24595 #. type: verbatim
24596 #: ../resize/virt-resize.pod:179
24597 #, no-wrap
24598 msgid ""
24599 " # virsh start guestname\n"
24600 "\n"
24601 msgstr ""
24602
24603 #. type: textblock
24604 #: ../resize/virt-resize.pod:181
24605 msgid ""
24606 "and check that it still works.  See also the L</NOTES> section below for "
24607 "additional information."
24608 msgstr ""
24609
24610 #. type: =item
24611 #: ../resize/virt-resize.pod:184
24612 msgid "7. Resize LVs etc inside the guest"
24613 msgstr ""
24614
24615 #. type: textblock
24616 #: ../resize/virt-resize.pod:186
24617 msgid "(This can also be done offline using L<guestfish(1)>)"
24618 msgstr ""
24619
24620 #. type: textblock
24621 #: ../resize/virt-resize.pod:188
24622 msgid ""
24623 "Once the guest has booted you should see the new space available, at least "
24624 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24625 "may need to resize LVs inside PVs, and also resize filesystem types that "
24626 "virt-resize does not know how to expand."
24627 msgstr ""
24628
24629 #. type: =head2
24630 #: ../resize/virt-resize.pod:195
24631 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24632 msgstr ""
24633
24634 #. type: textblock
24635 #: ../resize/virt-resize.pod:197
24636 msgid ""
24637 "Shrinking is somewhat more complex than expanding, and only an overview is "
24638 "given here."
24639 msgstr ""
24640
24641 #. type: textblock
24642 #: ../resize/virt-resize.pod:200
24643 msgid ""
24644 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24645 "filesystems).  The user has to shrink content before passing the disk image "
24646 "to virt-resize, and virt-resize will check that the content has been shrunk "
24647 "properly."
24648 msgstr ""
24649
24650 #. type: textblock
24651 #: ../resize/virt-resize.pod:205
24652 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24653 msgstr ""
24654
24655 #. type: textblock
24656 #: ../resize/virt-resize.pod:207
24657 msgid ""
24658 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24659 "steps 3 and 4 above to allocate a new disk image."
24660 msgstr ""
24661
24662 #. type: textblock
24663 #: ../resize/virt-resize.pod:210
24664 msgid ""
24665 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24666 msgstr ""
24667
24668 #. type: =head2
24669 #: ../resize/virt-resize.pod:213
24670 msgid "IGNORING OR DELETING PARTITIONS"
24671 msgstr ""
24672
24673 #. type: textblock
24674 #: ../resize/virt-resize.pod:215
24675 msgid ""
24676 "virt-resize also gives a convenient way to ignore or delete partitions when "
24677 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24678 "up the copy where you don't care about the existing contents of a "
24679 "partition.  Deleting a partition removes it completely, but note that it "
24680 "also renumbers any partitions after the one which is deleted, which can "
24681 "leave some guests unbootable."
24682 msgstr ""
24683
24684 #. type: =head2
24685 #: ../resize/virt-resize.pod:222
24686 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24687 msgstr ""
24688
24689 #. type: textblock
24690 #: ../resize/virt-resize.pod:224
24691 msgid ""
24692 "If the input disk is in qcow2 format, then you may prefer that the output is "
24693 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
24694 "the fly.  The output format is simply determined by the format of the empty "
24695 "output container that you provide.  Thus to create qcow2 output, use:"
24696 msgstr ""
24697
24698 #. type: verbatim
24699 #: ../resize/virt-resize.pod:230
24700 #, no-wrap
24701 msgid ""
24702 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24703 "\n"
24704 msgstr ""
24705
24706 #. type: textblock
24707 #: ../resize/virt-resize.pod:232
24708 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24709 msgstr ""
24710
24711 #. type: textblock
24712 #: ../resize/virt-resize.pod:234
24713 msgid "Similarly, to get non-sparse raw output use:"
24714 msgstr ""
24715
24716 #. type: verbatim
24717 #: ../resize/virt-resize.pod:236
24718 #, no-wrap
24719 msgid ""
24720 " fallocate -l size outdisk\n"
24721 "\n"
24722 msgstr ""
24723
24724 #. type: textblock
24725 #: ../resize/virt-resize.pod:238
24726 msgid ""
24727 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24728 "dev/zero of=outdisk bs=1M count=..>)"
24729 msgstr ""
24730
24731 #. type: =head2
24732 #: ../resize/virt-resize.pod:241
24733 msgid "LOGICAL PARTITIONS"
24734 msgstr ""
24735
24736 #. type: textblock
24737 #: ../resize/virt-resize.pod:243
24738 msgid ""
24739 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24740 "tables) cannot be resized."
24741 msgstr ""
24742
24743 #. type: textblock
24744 #: ../resize/virt-resize.pod:246
24745 msgid ""
24746 "To understand what is going on, firstly one of the four partitions C</dev/"
24747 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
24748 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
24749 "type."
24750 msgstr ""
24751
24752 #. type: textblock
24753 #: ../resize/virt-resize.pod:251
24754 msgid "Logical partitions live inside the extended partition."
24755 msgstr ""
24756
24757 #. type: textblock
24758 #: ../resize/virt-resize.pod:253
24759 msgid ""
24760 "The extended partition can be expanded, but not shrunk (unless you force it, "
24761 "which is not advisable).  When the extended partition is copied across, all "
24762 "the logical partitions contained inside are copied over implicitly.  Virt-"
24763 "resize does not look inside the extended partition, so it copies the logical "
24764 "partitions blindly."
24765 msgstr ""
24766
24767 #. type: textblock
24768 #: ../resize/virt-resize.pod:259
24769 msgid ""
24770 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24771 "line.  Doing so will give an error."
24772 msgstr ""
24773
24774 #. type: textblock
24775 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24776 msgid "Display help."
24777 msgstr ""
24778
24779 #. type: =item
24780 #: ../resize/virt-resize.pod:270
24781 msgid "B<--align-first auto>"
24782 msgstr ""
24783
24784 #. type: =item
24785 #: ../resize/virt-resize.pod:272
24786 msgid "B<--align-first never>"
24787 msgstr ""
24788
24789 #. type: =item
24790 #: ../resize/virt-resize.pod:274
24791 msgid "B<--align-first always>"
24792 msgstr ""
24793
24794 #. type: textblock
24795 #: ../resize/virt-resize.pod:276
24796 msgid ""
24797 "Align the first partition for improved performance (see also the I<--"
24798 "alignment> option)."
24799 msgstr ""
24800
24801 #. type: textblock
24802 #: ../resize/virt-resize.pod:279
24803 msgid ""
24804 "The default is I<--align-first auto> which only aligns the first partition "
24805 "if it is safe to do so.  That is, only when we know how to fix the "
24806 "bootloader automatically, and at the moment that can only be done for "
24807 "Windows guests."
24808 msgstr ""
24809
24810 #. type: textblock
24811 #: ../resize/virt-resize.pod:284
24812 msgid ""
24813 "I<--align-first never> means we never move the first partition.  This is the "
24814 "safest option.  Try this if the guest does not boot after resizing."
24815 msgstr ""
24816
24817 #. type: textblock
24818 #: ../resize/virt-resize.pod:288
24819 msgid ""
24820 "I<--align-first always> means we always align the first partition (if it "
24821 "needs to be aligned).  For some guests this will break the bootloader, "
24822 "making the guest unbootable."
24823 msgstr ""
24824
24825 #. type: =item
24826 #: ../resize/virt-resize.pod:292
24827 msgid "B<--alignment N>"
24828 msgstr ""
24829
24830 #. type: textblock
24831 #: ../resize/virt-resize.pod:294
24832 msgid ""
24833 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24834 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24835 msgstr ""
24836
24837 #. type: textblock
24838 #: ../resize/virt-resize.pod:298
24839 msgid ""
24840 "Assuming 512 byte sector size inside the guest, here are some suitable "
24841 "values for this:"
24842 msgstr ""
24843
24844 #. type: =item
24845 #: ../resize/virt-resize.pod:303
24846 msgid "I<--alignment 1> (512 bytes)"
24847 msgstr ""
24848
24849 #. type: textblock
24850 #: ../resize/virt-resize.pod:305
24851 msgid ""
24852 "The partitions would be packed together as closely as possible, but would be "
24853 "completely unaligned.  In some cases this can cause very poor performance.  "
24854 "See L<virt-alignment-scan(1)> for further details."
24855 msgstr ""
24856
24857 #. type: =item
24858 #: ../resize/virt-resize.pod:309
24859 msgid "I<--alignment 8> (4K)"
24860 msgstr ""
24861
24862 #. type: textblock
24863 #: ../resize/virt-resize.pod:311
24864 msgid ""
24865 "This would be the minimum acceptable alignment for reasonable performance on "
24866 "modern hosts."
24867 msgstr ""
24868
24869 #. type: =item
24870 #: ../resize/virt-resize.pod:314
24871 msgid "I<--alignment 128> (64K)"
24872 msgstr ""
24873
24874 #. type: textblock
24875 #: ../resize/virt-resize.pod:316
24876 msgid ""
24877 "This alignment provides good performance when the host is using high end "
24878 "network storage."
24879 msgstr ""
24880
24881 #. type: =item
24882 #: ../resize/virt-resize.pod:319
24883 msgid "I<--alignment 2048> (1M)"
24884 msgstr ""
24885
24886 #. type: textblock
24887 #: ../resize/virt-resize.pod:321
24888 msgid ""
24889 "This is the standard alignment used by all newly installed guests since "
24890 "around 2008."
24891 msgstr ""
24892
24893 #. type: =item
24894 #: ../resize/virt-resize.pod:326
24895 msgid "B<-d>"
24896 msgstr ""
24897
24898 #. type: =item
24899 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24900 #: ../tools/virt-win-reg.pl:120
24901 msgid "B<--debug>"
24902 msgstr ""
24903
24904 #. type: textblock
24905 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24906 msgid "Enable debugging messages."
24907 msgstr ""
24908
24909 #. type: =item
24910 #: ../resize/virt-resize.pod:332 ../sparsify/virt-sparsify.pod:131
24911 msgid "B<--debug-gc>"
24912 msgstr ""
24913
24914 #. type: textblock
24915 #: ../resize/virt-resize.pod:334
24916 msgid ""
24917 "Debug garbage collection and memory allocation.  This is only useful when "
24918 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
24919 msgstr ""
24920
24921 #. type: =item
24922 #: ../resize/virt-resize.pod:338
24923 msgid "B<--delete part>"
24924 msgstr ""
24925
24926 #. type: textblock
24927 #: ../resize/virt-resize.pod:340
24928 msgid ""
24929 "Delete the named partition.  It would be more accurate to describe this as "
24930 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24931 "the original disk image is left intact."
24932 msgstr ""
24933
24934 #. type: textblock
24935 #: ../resize/virt-resize.pod:344
24936 msgid ""
24937 "Note that when you delete a partition, then anything contained in the "
24938 "partition is also deleted.  Furthermore, this causes any partitions that "
24939 "come after to be I<renumbered>, which can easily make your guest unbootable."
24940 msgstr ""
24941
24942 #. type: textblock
24943 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410
24944 #: ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:157
24945 msgid "You can give this option multiple times."
24946 msgstr ""
24947
24948 #. type: =item
24949 #: ../resize/virt-resize.pod:351
24950 msgid "B<--expand part>"
24951 msgstr ""
24952
24953 #. type: textblock
24954 #: ../resize/virt-resize.pod:353
24955 msgid ""
24956 "Expand the named partition so it uses up all extra space (space left over "
24957 "after any other resize changes that you request have been done)."
24958 msgstr ""
24959
24960 #. type: textblock
24961 #: ../resize/virt-resize.pod:356
24962 msgid ""
24963 "If virt-resize knows how, it will expand the direct content of the "
24964 "partition.  For example, if the partition is an LVM PV, it will expand the "
24965 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24966 "content it doesn't know about alone."
24967 msgstr ""
24968
24969 #. type: textblock
24970 #: ../resize/virt-resize.pod:361
24971 msgid "Currently virt-resize can resize:"
24972 msgstr ""
24973
24974 #. type: textblock
24975 #: ../resize/virt-resize.pod:367
24976 msgid "ext2, ext3 and ext4 filesystems."
24977 msgstr ""
24978
24979 #. type: textblock
24980 #: ../resize/virt-resize.pod:371
24981 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24982 msgstr ""
24983
24984 #. type: textblock
24985 #: ../resize/virt-resize.pod:373
24986 msgid ""
24987 "The filesystem must have been shut down consistently last time it was used.  "
24988 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24989 "consistency check, so at the first boot after resizing Windows will check "
24990 "the disk."
24991 msgstr ""
24992
24993 #. type: textblock
24994 #: ../resize/virt-resize.pod:380
24995 msgid ""
24996 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24997 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24998 "resize LVs as desired after boot."
24999 msgstr ""
25000
25001 #. type: textblock
25002 #: ../resize/virt-resize.pod:386
25003 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
25004 msgstr ""
25005
25006 #. type: textblock
25007 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
25008 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
25009 msgstr ""
25010
25011 #. type: =item
25012 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:137
25013 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
25014 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
25015 msgid "B<--format> raw"
25016 msgstr ""
25017
25018 #. type: textblock
25019 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:141
25020 msgid ""
25021 "Specify the format of the input disk image.  If this flag is not given then "
25022 "it is auto-detected from the image itself."
25023 msgstr ""
25024
25025 #. type: textblock
25026 #: ../resize/virt-resize.pod:400
25027 msgid ""
25028 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
25029 "AND NON-SPARSE RAW FORMATS>."
25030 msgstr ""
25031
25032 #. type: =item
25033 #: ../resize/virt-resize.pod:403
25034 msgid "B<--ignore part>"
25035 msgstr ""
25036
25037 #. type: textblock
25038 #: ../resize/virt-resize.pod:405
25039 msgid ""
25040 "Ignore the named partition.  Effectively this means the partition is "
25041 "allocated on the destination disk, but the content is not copied across from "
25042 "the source disk.  The content of the partition will be blank (all zero "
25043 "bytes)."
25044 msgstr ""
25045
25046 #. type: =item
25047 #: ../resize/virt-resize.pod:412
25048 msgid "B<--LV-expand logvol>"
25049 msgstr ""
25050
25051 #. type: textblock
25052 #: ../resize/virt-resize.pod:414
25053 msgid ""
25054 "This takes the logical volume and, as a final step, expands it to fill all "
25055 "the space available in its volume group.  A typical usage, assuming a Linux "
25056 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25057 "lv_root> would be:"
25058 msgstr ""
25059
25060 #. type: verbatim
25061 #: ../resize/virt-resize.pod:419
25062 #, no-wrap
25063 msgid ""
25064 " virt-resize indisk outdisk \\\n"
25065 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25066 "\n"
25067 msgstr ""
25068
25069 #. type: textblock
25070 #: ../resize/virt-resize.pod:422
25071 msgid ""
25072 "This would first expand the partition (and PV), and then expand the root "
25073 "device to fill the extra space in the PV."
25074 msgstr ""
25075
25076 #. type: textblock
25077 #: ../resize/virt-resize.pod:425
25078 msgid ""
25079 "The contents of the LV are also resized if virt-resize knows how to do "
25080 "that.  You can stop virt-resize from trying to expand the content by using "
25081 "the option I<--no-expand-content>."
25082 msgstr ""
25083
25084 #. type: textblock
25085 #: ../resize/virt-resize.pod:429
25086 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25087 msgstr ""
25088
25089 #. type: textblock
25090 #: ../resize/virt-resize.pod:431
25091 msgid ""
25092 "You can give this option multiple times, I<but> it doesn't make sense to do "
25093 "this unless the logical volumes you specify are all in different volume "
25094 "groups."
25095 msgstr ""
25096
25097 #. type: =item
25098 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:159
25099 msgid "B<--machine-readable>"
25100 msgstr ""
25101
25102 #. type: textblock
25103 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:161
25104 msgid ""
25105 "This option is used to make the output more machine friendly when being "
25106 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
25107 msgstr ""
25108
25109 #. type: =item
25110 #: ../resize/virt-resize.pod:443
25111 msgid "B<--dryrun>"
25112 msgstr ""
25113
25114 #. type: textblock
25115 #: ../resize/virt-resize.pod:445
25116 msgid "Print a summary of what would be done, but don't do anything."
25117 msgstr ""
25118
25119 #. type: =item
25120 #: ../resize/virt-resize.pod:447
25121 msgid "B<--no-copy-boot-loader>"
25122 msgstr ""
25123
25124 #. type: textblock
25125 #: ../resize/virt-resize.pod:449
25126 msgid ""
25127 "By default, virt-resize copies over some sectors at the start of the disk "
25128 "(up to the beginning of the first partition).  Commonly these sectors "
25129 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25130 "in order for the guest to boot correctly."
25131 msgstr ""
25132
25133 #. type: textblock
25134 #: ../resize/virt-resize.pod:454
25135 msgid ""
25136 "If you specify this flag, then this initial copy is not done.  You may need "
25137 "to reinstall the boot loader in this case."
25138 msgstr ""
25139
25140 #. type: =item
25141 #: ../resize/virt-resize.pod:457
25142 msgid "B<--no-extra-partition>"
25143 msgstr ""
25144
25145 #. type: textblock
25146 #: ../resize/virt-resize.pod:459
25147 msgid ""
25148 "By default, virt-resize creates an extra partition if there is any extra, "
25149 "unused space after all resizing has happened.  Use this option to prevent "
25150 "the extra partition from being created.  If you do this then the extra space "
25151 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25152 "tool in the guest."
25153 msgstr ""
25154
25155 #. type: textblock
25156 #: ../resize/virt-resize.pod:465
25157 msgid ""
25158 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25159 "will be created."
25160 msgstr ""
25161
25162 #. type: =item
25163 #: ../resize/virt-resize.pod:468
25164 msgid "B<--no-expand-content>"
25165 msgstr ""
25166
25167 #. type: textblock
25168 #: ../resize/virt-resize.pod:470
25169 msgid ""
25170 "By default, virt-resize will try to expand the direct contents of "
25171 "partitions, if it knows how (see I<--expand> option above)."
25172 msgstr ""
25173
25174 #. type: textblock
25175 #: ../resize/virt-resize.pod:473
25176 msgid ""
25177 "If you give the I<--no-expand-content> option then virt-resize will not "
25178 "attempt this."
25179 msgstr ""
25180
25181 #. type: =item
25182 #: ../resize/virt-resize.pod:476
25183 msgid "B<--ntfsresize-force>"
25184 msgstr ""
25185
25186 #. type: textblock
25187 #: ../resize/virt-resize.pod:478
25188 msgid ""
25189 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
25190 "the NTFS disk is marked as needing a consistency check.  You have to use "
25191 "this option if you want to resize a Windows guest multiple times without "
25192 "booting into Windows between each resize."
25193 msgstr ""
25194
25195 #. type: =item
25196 #: ../resize/virt-resize.pod:484
25197 msgid "B<--output-format> raw"
25198 msgstr ""
25199
25200 #. type: textblock
25201 #: ../resize/virt-resize.pod:486
25202 msgid ""
25203 "Specify the format of the output disk image.  If this flag is not given then "
25204 "it is auto-detected from the image itself."
25205 msgstr ""
25206
25207 #. type: textblock
25208 #: ../resize/virt-resize.pod:492
25209 msgid ""
25210 "Note that this option I<does not create> the output format.  This option "
25211 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
25212 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
25213 "SPARSE RAW FORMATS>."
25214 msgstr ""
25215
25216 #. type: textblock
25217 #: ../resize/virt-resize.pod:501
25218 msgid "Don't print the summary."
25219 msgstr ""
25220
25221 #. type: =item
25222 #: ../resize/virt-resize.pod:503
25223 msgid "B<--resize part=size>"
25224 msgstr ""
25225
25226 #. type: textblock
25227 #: ../resize/virt-resize.pod:505
25228 msgid ""
25229 "Resize the named partition (expanding or shrinking it) so that it has the "
25230 "given size."
25231 msgstr ""
25232
25233 #. type: textblock
25234 #: ../resize/virt-resize.pod:508
25235 msgid ""
25236 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25237 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25238 "size; or as a relative number or percentage.  For example:"
25239 msgstr ""
25240
25241 #. type: verbatim
25242 #: ../resize/virt-resize.pod:514
25243 #, no-wrap
25244 msgid ""
25245 " --resize /dev/sda2=10G\n"
25246 "\n"
25247 msgstr ""
25248
25249 #. type: verbatim
25250 #: ../resize/virt-resize.pod:516
25251 #, no-wrap
25252 msgid ""
25253 " --resize /dev/sda4=90%\n"
25254 "\n"
25255 msgstr ""
25256
25257 #. type: verbatim
25258 #: ../resize/virt-resize.pod:518
25259 #, no-wrap
25260 msgid ""
25261 " --resize /dev/sda2=+1G\n"
25262 "\n"
25263 msgstr ""
25264
25265 #. type: verbatim
25266 #: ../resize/virt-resize.pod:520
25267 #, no-wrap
25268 msgid ""
25269 " --resize /dev/sda2=-200M\n"
25270 "\n"
25271 msgstr ""
25272
25273 #. type: verbatim
25274 #: ../resize/virt-resize.pod:522
25275 #, no-wrap
25276 msgid ""
25277 " --resize /dev/sda1=+128K\n"
25278 "\n"
25279 msgstr ""
25280
25281 #. type: verbatim
25282 #: ../resize/virt-resize.pod:524
25283 #, no-wrap
25284 msgid ""
25285 " --resize /dev/sda1=+10%\n"
25286 "\n"
25287 msgstr ""
25288
25289 #. type: verbatim
25290 #: ../resize/virt-resize.pod:526
25291 #, no-wrap
25292 msgid ""
25293 " --resize /dev/sda1=-10%\n"
25294 "\n"
25295 msgstr ""
25296
25297 #. type: textblock
25298 #: ../resize/virt-resize.pod:528
25299 msgid ""
25300 "You can increase the size of any partition.  Virt-resize will expand the "
25301 "direct content of the partition if it knows how (see I<--expand> below)."
25302 msgstr ""
25303
25304 #. type: textblock
25305 #: ../resize/virt-resize.pod:532
25306 msgid ""
25307 "You can only I<decrease> the size of partitions that contain filesystems or "
25308 "PVs which have already been shrunk.  Virt-resize will check this has been "
25309 "done before proceeding, or else will print an error (see also I<--resize-"
25310 "force>)."
25311 msgstr ""
25312
25313 #. type: =item
25314 #: ../resize/virt-resize.pod:539
25315 msgid "B<--resize-force part=size>"
25316 msgstr ""
25317
25318 #. type: textblock
25319 #: ../resize/virt-resize.pod:541
25320 msgid ""
25321 "This is the same as I<--resize> except that it will let you decrease the "
25322 "size of any partition.  Generally this means you will lose any data which "
25323 "was at the end of the partition you shrink, but you may not care about that "
25324 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25325 "as a swap partition)."
25326 msgstr ""
25327
25328 #. type: textblock
25329 #: ../resize/virt-resize.pod:547
25330 msgid "See also the I<--ignore> option."
25331 msgstr ""
25332
25333 #. type: =item
25334 #: ../resize/virt-resize.pod:549
25335 msgid "B<--shrink part>"
25336 msgstr ""
25337
25338 #. type: textblock
25339 #: ../resize/virt-resize.pod:551
25340 msgid ""
25341 "Shrink the named partition until the overall disk image fits in the "
25342 "destination.  The named partition B<must> contain a filesystem or PV which "
25343 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25344 "online tools).  Virt-resize will check this and give an error if it has not "
25345 "been done."
25346 msgstr ""
25347
25348 #. type: textblock
25349 #: ../resize/virt-resize.pod:557
25350 msgid ""
25351 "The amount by which the overall disk must be shrunk (after carrying out all "
25352 "other operations requested by the user) is called the \"deficit\".  For "
25353 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25354 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25355 "would give an error unless the user specified a partition to shrink and that "
25356 "partition had more than a gigabyte of free space."
25357 msgstr ""
25358
25359 #. type: =head1
25360 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
25361 msgid "MACHINE READABLE OUTPUT"
25362 msgstr ""
25363
25364 #. type: textblock
25365 #: ../resize/virt-resize.pod:577
25366 msgid ""
25367 "The I<--machine-readable> option can be used to make the output more machine "
25368 "friendly, which is useful when calling virt-resize from other programs, GUIs "
25369 "etc."
25370 msgstr ""
25371
25372 #. type: textblock
25373 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:207
25374 msgid "There are two ways to use this option."
25375 msgstr ""
25376
25377 #. type: textblock
25378 #: ../resize/virt-resize.pod:583
25379 msgid ""
25380 "Firstly use the option on its own to query the capabilities of the virt-"
25381 "resize binary.  Typical output looks like this:"
25382 msgstr ""
25383
25384 #. type: verbatim
25385 #: ../resize/virt-resize.pod:586
25386 #, no-wrap
25387 msgid ""
25388 " $ virt-resize --machine-readable\n"
25389 " virt-resize\n"
25390 " ntfsresize-force\n"
25391 " 32bitok\n"
25392 " ntfs\n"
25393 " btrfs\n"
25394 "\n"
25395 msgstr ""
25396
25397 #. type: textblock
25398 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
25399 msgid ""
25400 "A list of features is printed, one per line, and the program exits with "
25401 "status 0."
25402 msgstr ""
25403
25404 #. type: textblock
25405 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:220
25406 msgid ""
25407 "Secondly use the option in conjunction with other options to make the "
25408 "regular program output more machine friendly."
25409 msgstr ""
25410
25411 #. type: textblock
25412 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
25413 msgid "At the moment this means:"
25414 msgstr ""
25415
25416 #. type: textblock
25417 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:229
25418 msgid ""
25419 "Progress bar messages can be parsed from stdout by looking for this regular "
25420 "expression:"
25421 msgstr ""
25422
25423 #. type: verbatim
25424 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:232
25425 #, no-wrap
25426 msgid ""
25427 " ^[0-9]+/[0-9]+$\n"
25428 "\n"
25429 msgstr ""
25430
25431 #. type: textblock
25432 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:236
25433 msgid ""
25434 "The calling program should treat messages sent to stdout (except for "
25435 "progress bar messages) as status messages.  They can be logged and/or "
25436 "displayed to the user."
25437 msgstr ""
25438
25439 #. type: textblock
25440 #: ../resize/virt-resize.pod:618
25441 msgid ""
25442 "The calling program should treat messages sent to stderr as error messages.  "
25443 "In addition, virt-resize exits with a non-zero status code if there was a "
25444 "fatal error."
25445 msgstr ""
25446
25447 #. type: textblock
25448 #: ../resize/virt-resize.pod:624
25449 msgid ""
25450 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
25451 "readable> option and will return an error."
25452 msgstr ""
25453
25454 #. type: =head2
25455 #: ../resize/virt-resize.pod:629
25456 msgid "\"Partition 1 does not end on cylinder boundary.\""
25457 msgstr ""
25458
25459 #. type: textblock
25460 #: ../resize/virt-resize.pod:631
25461 msgid ""
25462 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
25463 "alignment> parameter).  Usually this means the partitions will not be "
25464 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
25465 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
25466 "drives.  Alignment of partitions to cylinders is not required by any modern "
25467 "operating system."
25468 msgstr ""
25469
25470 #. type: =head2
25471 #: ../resize/virt-resize.pod:638
25472 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25473 msgstr ""
25474
25475 #. type: textblock
25476 #: ../resize/virt-resize.pod:640
25477 msgid ""
25478 "In Windows Vista and later versions, Microsoft switched to using a separate "
25479 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25480 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
25481 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
25482 "the second partition (ie. C: drive)  should work."
25483 msgstr ""
25484
25485 #. type: textblock
25486 #: ../resize/virt-resize.pod:647
25487 msgid ""
25488 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25489 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25490 "it find errors) is nothing to worry about."
25491 msgstr ""
25492
25493 #. type: =head2
25494 #: ../resize/virt-resize.pod:651
25495 msgid "GUEST BOOT STUCK AT \"GRUB\""
25496 msgstr ""
25497
25498 #. type: textblock
25499 #: ../resize/virt-resize.pod:653
25500 msgid ""
25501 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25502 "printing C<GRUB> on the console, try reinstalling grub."
25503 msgstr ""
25504
25505 #. type: verbatim
25506 #: ../resize/virt-resize.pod:656
25507 #, no-wrap
25508 msgid ""
25509 " guestfish -i -a newdisk\n"
25510 " ><fs> cat /boot/grub/device.map\n"
25511 " # check the contents of this file are sensible or\n"
25512 " # edit the file if necessary\n"
25513 " ><fs> grub-install / /dev/vda\n"
25514 " ><fs> exit\n"
25515 "\n"
25516 msgstr ""
25517
25518 #. type: textblock
25519 #: ../resize/virt-resize.pod:663
25520 msgid ""
25521 "For more flexible guest reconfiguration, including if you need to specify "
25522 "other parameters to grub-install, use L<virt-rescue(1)>."
25523 msgstr ""
25524
25525 #. type: =head1
25526 #: ../resize/virt-resize.pod:666
25527 msgid "ALTERNATIVE TOOLS"
25528 msgstr ""
25529
25530 #. type: textblock
25531 #: ../resize/virt-resize.pod:668
25532 msgid ""
25533 "There are several proprietary tools for resizing partitions.  We won't "
25534 "mention any here."
25535 msgstr ""
25536
25537 #. type: textblock
25538 #: ../resize/virt-resize.pod:671
25539 msgid ""
25540 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25541 "operations on disk images.  They can resize and move partitions, but I don't "
25542 "think they can do anything with the contents, and they certainly don't "
25543 "understand LVM."
25544 msgstr ""
25545
25546 #. type: textblock
25547 #: ../resize/virt-resize.pod:676
25548 msgid ""
25549 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25550 "but at a much lower level.  You will probably end up hand-calculating sector "
25551 "offsets, which is something that virt-resize was designed to avoid.  If you "
25552 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25553 "I<--debug> flag."
25554 msgstr ""
25555
25556 #. type: textblock
25557 #: ../resize/virt-resize.pod:696
25558 msgid ""
25559 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
25560 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
25561 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
25562 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
25563 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
25564 msgstr ""
25565
25566 #. type: textblock
25567 #: ../ruby/examples/guestfs-ruby.pod:5
25568 msgid "guestfs-ruby - How to use libguestfs from Ruby"
25569 msgstr ""
25570
25571 #. type: verbatim
25572 #: ../ruby/examples/guestfs-ruby.pod:9
25573 #, no-wrap
25574 msgid ""
25575 " require 'guestfs'\n"
25576 " g = Guestfs::Guestfs.new()\n"
25577 " g.add_drive_opts(\"disk.img\",\n"
25578 "                  :readonly => 1, :format => \"raw\")\n"
25579 " g.launch()\n"
25580 "\n"
25581 msgstr ""
25582
25583 #. type: textblock
25584 #: ../ruby/examples/guestfs-ruby.pod:17
25585 msgid ""
25586 "This manual page documents how to call libguestfs from the Ruby programming "
25587 "language.  This page just documents the differences from the C API and gives "
25588 "some examples.  If you are not familiar with using libguestfs, you also need "
25589 "to read L<guestfs(3)>."
25590 msgstr ""
25591
25592 #. type: textblock
25593 #: ../ruby/examples/guestfs-ruby.pod:24
25594 msgid ""
25595 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
25596 "This has a single parameter which is the error message (a string)."
25597 msgstr ""
25598
25599 #. type: textblock
25600 #: ../ruby/examples/guestfs-ruby.pod:38
25601 msgid ""
25602 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
25603 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
25604 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
25605 msgstr ""
25606
25607 #. type: textblock
25608 #: ../sparsify/virt-sparsify.pod:5
25609 msgid "virt-sparsify - Make a virtual machine disk sparse"
25610 msgstr ""
25611
25612 #. type: verbatim
25613 #: ../sparsify/virt-sparsify.pod:9
25614 #, no-wrap
25615 msgid ""
25616 " virt-sparsify [--options] indisk outdisk\n"
25617 "\n"
25618 msgstr ""
25619
25620 #. type: textblock
25621 #: ../sparsify/virt-sparsify.pod:13
25622 msgid ""
25623 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25624 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
25625 "the disk image can be converted back to free space on the host."
25626 msgstr ""
25627
25628 #. type: textblock
25629 #: ../sparsify/virt-sparsify.pod:18
25630 msgid ""
25631 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25632 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25633 msgstr ""
25634
25635 #. type: textblock
25636 #: ../sparsify/virt-sparsify.pod:21
25637 msgid ""
25638 "Virt-sparsify can also convert between some disk formats, for example "
25639 "converting a raw disk image to a thin-provisioned qcow2 image."
25640 msgstr ""
25641
25642 #. type: textblock
25643 #: ../sparsify/virt-sparsify.pod:24
25644 msgid ""
25645 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25646 "machines.  If a virtual machine has more than one attached disk, you must "
25647 "sparsify each one separately."
25648 msgstr ""
25649
25650 #. type: =head2
25651 #: ../sparsify/virt-sparsify.pod:28
25652 msgid "IMPORTANT LIMITATIONS"
25653 msgstr ""
25654
25655 #. type: textblock
25656 #: ../sparsify/virt-sparsify.pod:34
25657 msgid ""
25658 "Virt-sparsify does not do in-place modifications.  It copies from a source "
25659 "image to a destination image, leaving the source unchanged.  I<Check that "
25660 "the sparsification was successful before deleting the source image>."
25661 msgstr ""
25662
25663 #. type: textblock
25664 #: ../sparsify/virt-sparsify.pod:41
25665 msgid "The virtual machine I<must be shut down> before using this tool."
25666 msgstr ""
25667
25668 #. type: textblock
25669 #: ../sparsify/virt-sparsify.pod:45
25670 msgid ""
25671 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25672 "(1 temporary copy + 1 destination image).  This is in the worst case and "
25673 "usually much less space is required."
25674 msgstr ""
25675
25676 #. type: textblock
25677 #: ../sparsify/virt-sparsify.pod:51
25678 msgid ""
25679 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
25680 msgstr ""
25681
25682 #. type: textblock
25683 #: ../sparsify/virt-sparsify.pod:56
25684 msgid "Virt-sparsify cannot handle encrypted disks."
25685 msgstr ""
25686
25687 #. type: textblock
25688 #: ../sparsify/virt-sparsify.pod:60
25689 msgid ""
25690 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
25691 "this space is often used for critical items like bootloaders so it's not "
25692 "really unused."
25693 msgstr ""
25694
25695 #. type: textblock
25696 #: ../sparsify/virt-sparsify.pod:66
25697 msgid ""
25698 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
25699 "to do this unless we can be sure there is no hibernation data, so at the "
25700 "moment swap partitions are ignored."
25701 msgstr ""
25702
25703 #. type: textblock
25704 #: ../sparsify/virt-sparsify.pod:72
25705 msgid ""
25706 "You may also want to read the manual pages for the associated tools L<virt-"
25707 "filesystems(1)> and L<virt-df(1)> before starting."
25708 msgstr ""
25709
25710 #. type: textblock
25711 #: ../sparsify/virt-sparsify.pod:77
25712 msgid "Typical usage is:"
25713 msgstr ""
25714
25715 #. type: verbatim
25716 #: ../sparsify/virt-sparsify.pod:79
25717 #, no-wrap
25718 msgid ""
25719 " virt-sparsify indisk outdisk\n"
25720 "\n"
25721 msgstr ""
25722
25723 #. type: textblock
25724 #: ../sparsify/virt-sparsify.pod:81
25725 msgid ""
25726 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25727 "is created, or overwritten if it already exists.  The format of the input "
25728 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25729 msgstr ""
25730
25731 #. type: textblock
25732 #: ../sparsify/virt-sparsify.pod:86
25733 msgid "To convert between formats, use the I<--convert> option:"
25734 msgstr ""
25735
25736 #. type: verbatim
25737 #: ../sparsify/virt-sparsify.pod:88
25738 #, no-wrap
25739 msgid ""
25740 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25741 "\n"
25742 msgstr ""
25743
25744 #. type: textblock
25745 #: ../sparsify/virt-sparsify.pod:90
25746 msgid ""
25747 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25748 "can find within the source disk image.  You can get it to ignore (don't zero "
25749 "free space on) certain filesystems by doing:"
25750 msgstr ""
25751
25752 #. type: verbatim
25753 #: ../sparsify/virt-sparsify.pod:94
25754 #, no-wrap
25755 msgid ""
25756 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25757 "\n"
25758 msgstr ""
25759
25760 #. type: textblock
25761 #: ../sparsify/virt-sparsify.pod:96
25762 msgid ""
25763 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25764 msgstr ""
25765
25766 #. type: =item
25767 #: ../sparsify/virt-sparsify.pod:107
25768 msgid "B<--compress>"
25769 msgstr ""
25770
25771 #. type: textblock
25772 #: ../sparsify/virt-sparsify.pod:109
25773 msgid ""
25774 "Compress the output file.  This I<only> works if the output format is "
25775 "C<qcow2>."
25776 msgstr ""
25777
25778 #. type: =item
25779 #: ../sparsify/virt-sparsify.pod:112
25780 msgid "B<--convert> raw"
25781 msgstr ""
25782
25783 #. type: =item
25784 #: ../sparsify/virt-sparsify.pod:114
25785 msgid "B<--convert> qcow2"
25786 msgstr ""
25787
25788 #. type: =item
25789 #: ../sparsify/virt-sparsify.pod:116
25790 msgid "B<--convert> [other formats]"
25791 msgstr ""
25792
25793 #. type: textblock
25794 #: ../sparsify/virt-sparsify.pod:118
25795 msgid ""
25796 "Use C<output-format> as the format for the destination image.  If this is "
25797 "not specified, then the input format is used."
25798 msgstr ""
25799
25800 #. type: textblock
25801 #: ../sparsify/virt-sparsify.pod:121
25802 msgid ""
25803 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
25804 msgstr ""
25805
25806 #. type: textblock
25807 #: ../sparsify/virt-sparsify.pod:123
25808 msgid ""
25809 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25810 "C<vmdk>, but support for other formats is reliant on qemu."
25811 msgstr ""
25812
25813 #. type: textblock
25814 #: ../sparsify/virt-sparsify.pod:126
25815 msgid ""
25816 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25817 "sparsify doesn't need to try to guess the input format."
25818 msgstr ""
25819
25820 #. type: textblock
25821 #: ../sparsify/virt-sparsify.pod:129
25822 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
25823 msgstr ""
25824
25825 #. type: textblock
25826 #: ../sparsify/virt-sparsify.pod:133
25827 msgid ""
25828 "Debug garbage collection and memory allocation.  This is only useful when "
25829 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
25830 msgstr ""
25831
25832 #. type: =item
25833 #: ../sparsify/virt-sparsify.pod:139
25834 msgid "B<--format> qcow2"
25835 msgstr ""
25836
25837 #. type: =item
25838 #: ../sparsify/virt-sparsify.pod:147
25839 msgid "B<--ignore> filesystem"
25840 msgstr ""
25841
25842 #. type: =item
25843 #: ../sparsify/virt-sparsify.pod:149
25844 msgid "B<--ignore> volgroup"
25845 msgstr ""
25846
25847 #. type: textblock
25848 #: ../sparsify/virt-sparsify.pod:151
25849 msgid ""
25850 "Ignore the named filesystem.  Free space on the filesystem will not be "
25851 "zeroed, but existing blocks of zeroes will still be sparsified."
25852 msgstr ""
25853
25854 #. type: textblock
25855 #: ../sparsify/virt-sparsify.pod:154
25856 msgid ""
25857 "In the second form, this ignores the named volume group.  Use the volume "
25858 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25859 msgstr ""
25860
25861 #. type: =item
25862 #: ../sparsify/virt-sparsify.pod:165
25863 msgid "B<-o> option[,option,...]"
25864 msgstr ""
25865
25866 #. type: textblock
25867 #: ../sparsify/virt-sparsify.pod:167
25868 msgid ""
25869 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
25870 "format.  Options available depend on the output format (see I<--convert>) "
25871 "and the installed version of the qemu-img program."
25872 msgstr ""
25873
25874 #. type: textblock
25875 #: ../sparsify/virt-sparsify.pod:171
25876 msgid ""
25877 "You should use I<-o> at most once.  To pass multiple options, separate them "
25878 "with commas, eg:"
25879 msgstr ""
25880
25881 #. type: verbatim
25882 #: ../sparsify/virt-sparsify.pod:174
25883 #, no-wrap
25884 msgid ""
25885 " virt-sparsify --convert qcow2 \\\n"
25886 "   -o cluster_size=512,preallocation=metadata ...\n"
25887 "\n"
25888 msgstr ""
25889
25890 #. type: textblock
25891 #: ../sparsify/virt-sparsify.pod:181
25892 msgid "This disables progress bars and other unnecessary output."
25893 msgstr ""
25894
25895 #. type: textblock
25896 #: ../sparsify/virt-sparsify.pod:203
25897 msgid ""
25898 "The I<--machine-readable> option can be used to make the output more machine "
25899 "friendly, which is useful when calling virt-sparsify from other programs, "
25900 "GUIs etc."
25901 msgstr ""
25902
25903 #. type: textblock
25904 #: ../sparsify/virt-sparsify.pod:209
25905 msgid ""
25906 "Firstly use the option on its own to query the capabilities of the virt-"
25907 "sparsify binary.  Typical output looks like this:"
25908 msgstr ""
25909
25910 #. type: verbatim
25911 #: ../sparsify/virt-sparsify.pod:212
25912 #, no-wrap
25913 msgid ""
25914 " $ virt-sparsify --machine-readable\n"
25915 " virt-sparsify\n"
25916 " ntfs\n"
25917 " btrfs\n"
25918 "\n"
25919 msgstr ""
25920
25921 #. type: textblock
25922 #: ../sparsify/virt-sparsify.pod:242
25923 msgid ""
25924 "The calling program should treat messages sent to stderr as error messages.  "
25925 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25926 "fatal error."
25927 msgstr ""
25928
25929 #. type: textblock
25930 #: ../sparsify/virt-sparsify.pod:248
25931 msgid ""
25932 "All versions of virt-sparsify have supported the I<--machine-readable> "
25933 "option."
25934 msgstr ""
25935
25936 #. type: textblock
25937 #: ../sparsify/virt-sparsify.pod:262
25938 msgid ""
25939 "Location of the temporary directory used for the potentially large temporary "
25940 "overlay file."
25941 msgstr ""
25942
25943 #. type: textblock
25944 #: ../sparsify/virt-sparsify.pod:265
25945 msgid ""
25946 "You should ensure there is enough free space in the worst case for a full "
25947 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25948 "to another directory that has enough space."
25949 msgstr ""
25950
25951 #. type: textblock
25952 #: ../sparsify/virt-sparsify.pod:269
25953 msgid "This defaults to C</tmp>."
25954 msgstr ""
25955
25956 #. type: textblock
25957 #: ../sparsify/virt-sparsify.pod:273
25958 msgid ""
25959 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25960 msgstr ""
25961
25962 #. type: textblock
25963 #: ../sparsify/virt-sparsify.pod:277
25964 msgid ""
25965 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25966 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25967 "(1)>, L<http://libguestfs.org/>."
25968 msgstr ""
25969
25970 #. type: =head2
25971 #: ../src/guestfs-actions.pod:1
25972 msgid "guestfs_add_cdrom"
25973 msgstr ""
25974
25975 #. type: verbatim
25976 #: ../src/guestfs-actions.pod:3
25977 #, no-wrap
25978 msgid ""
25979 " int\n"
25980 " guestfs_add_cdrom (guestfs_h *g,\n"
25981 "                    const char *filename);\n"
25982 "\n"
25983 msgstr ""
25984
25985 #. type: textblock
25986 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25987 #: ../src/guestfs-actions.pod:323
25988 msgid ""
25989 "I<This function is deprecated.> In new code, use the L</"
25990 "guestfs_add_drive_opts> call instead."
25991 msgstr ""
25992
25993 #. type: textblock
25994 #: ../src/guestfs-actions.pod:24
25995 msgid ""
25996 "This call checks for the existence of C<filename>.  This stops you from "
25997 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25998 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25999 "instead."
26000 msgstr ""
26001
26002 #. type: textblock
26003 #: ../src/guestfs-actions.pod:31
26004 msgid ""
26005 "If you just want to add an ISO file (often you use this as an efficient way "
26006 "to transfer large files into the guest), then you should probably use "
26007 "C<guestfs_add_drive_ro> instead."
26008 msgstr ""
26009
26010 #. type: textblock
26011 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
26012 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
26013 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
26014 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
26015 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
26016 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
26017 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
26018 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
26019 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:773
26020 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:890
26021 #: ../src/guestfs-actions.pod:904 ../src/guestfs-actions.pod:918
26022 #: ../src/guestfs-actions.pod:955 ../src/guestfs-actions.pod:1138
26023 #: ../src/guestfs-actions.pod:1158 ../src/guestfs-actions.pod:1176
26024 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1325
26025 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1411
26026 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1517
26027 #: ../src/guestfs-actions.pod:1575 ../src/guestfs-actions.pod:1629
26028 #: ../src/guestfs-actions.pod:1648 ../src/guestfs-actions.pod:1662
26029 #: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1760
26030 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1816
26031 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1971
26032 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2213
26033 #: ../src/guestfs-actions.pod:2235 ../src/guestfs-actions.pod:2322
26034 #: ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2974
26035 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3070
26036 #: ../src/guestfs-actions.pod:4131 ../src/guestfs-actions.pod:4146
26037 #: ../src/guestfs-actions.pod:4171 ../src/guestfs-actions.pod:4373
26038 #: ../src/guestfs-actions.pod:4387 ../src/guestfs-actions.pod:4400
26039 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4429
26040 #: ../src/guestfs-actions.pod:4465 ../src/guestfs-actions.pod:4537
26041 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4574
26042 #: ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4614
26043 #: ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4668
26044 #: ../src/guestfs-actions.pod:4687 ../src/guestfs-actions.pod:4722
26045 #: ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4767
26046 #: ../src/guestfs-actions.pod:4783 ../src/guestfs-actions.pod:4796
26047 #: ../src/guestfs-actions.pod:4811 ../src/guestfs-actions.pod:4828
26048 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5060
26049 #: ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5090
26050 #: ../src/guestfs-actions.pod:5103 ../src/guestfs-actions.pod:5154
26051 #: ../src/guestfs-actions.pod:5172 ../src/guestfs-actions.pod:5190
26052 #: ../src/guestfs-actions.pod:5206 ../src/guestfs-actions.pod:5220
26053 #: ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5251
26054 #: ../src/guestfs-actions.pod:5266 ../src/guestfs-actions.pod:5293
26055 #: ../src/guestfs-actions.pod:5356 ../src/guestfs-actions.pod:5429
26056 #: ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5479
26057 #: ../src/guestfs-actions.pod:5498 ../src/guestfs-actions.pod:5510
26058 #: ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5540
26059 #: ../src/guestfs-actions.pod:5555 ../src/guestfs-actions.pod:5570
26060 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5628
26061 #: ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5687
26062 #: ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5718
26063 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5820
26064 #: ../src/guestfs-actions.pod:5867 ../src/guestfs-actions.pod:5910
26065 #: ../src/guestfs-actions.pod:5938 ../src/guestfs-actions.pod:5955
26066 #: ../src/guestfs-actions.pod:5973 ../src/guestfs-actions.pod:6110
26067 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6189
26068 #: ../src/guestfs-actions.pod:6207 ../src/guestfs-actions.pod:6259
26069 #: ../src/guestfs-actions.pod:6325 ../src/guestfs-actions.pod:6342
26070 #: ../src/guestfs-actions.pod:6355 ../src/guestfs-actions.pod:6369
26071 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6677
26072 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:6710
26073 #: ../src/guestfs-actions.pod:6722 ../src/guestfs-actions.pod:6736
26074 #: ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6762
26075 #: ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6796
26076 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6834
26077 #: ../src/guestfs-actions.pod:6864 ../src/guestfs-actions.pod:6882
26078 #: ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6923
26079 #: ../src/guestfs-actions.pod:6942 ../src/guestfs-actions.pod:6963
26080 #: ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:6999
26081 #: ../src/guestfs-actions.pod:7018 ../src/guestfs-actions.pod:7046
26082 #: ../src/guestfs-actions.pod:7070 ../src/guestfs-actions.pod:7089
26083 #: ../src/guestfs-actions.pod:7105 ../src/guestfs-actions.pod:7129
26084 #: ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7163
26085 #: ../src/guestfs-actions.pod:7182 ../src/guestfs-actions.pod:7226
26086 #: ../src/guestfs-actions.pod:7253 ../src/guestfs-actions.pod:7283
26087 #: ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7516
26088 #: ../src/guestfs-actions.pod:7528 ../src/guestfs-actions.pod:7541
26089 #: ../src/guestfs-actions.pod:7554 ../src/guestfs-actions.pod:7576
26090 #: ../src/guestfs-actions.pod:7589 ../src/guestfs-actions.pod:7602
26091 #: ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:7630
26092 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7706
26093 #: ../src/guestfs-actions.pod:7722 ../src/guestfs-actions.pod:7738
26094 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7768
26095 #: ../src/guestfs-actions.pod:7788 ../src/guestfs-actions.pod:7888
26096 #: ../src/guestfs-actions.pod:7946 ../src/guestfs-actions.pod:7960
26097 #: ../src/guestfs-actions.pod:8001 ../src/guestfs-actions.pod:8014
26098 #: ../src/guestfs-actions.pod:8032 ../src/guestfs-actions.pod:8066
26099 #: ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8218
26100 #: ../src/guestfs-actions.pod:8233 ../src/guestfs-actions.pod:8247
26101 #: ../src/guestfs-actions.pod:8302 ../src/guestfs-actions.pod:8315
26102 #: ../src/guestfs-actions.pod:8360 ../src/guestfs-actions.pod:8400
26103 #: ../src/guestfs-actions.pod:8456 ../src/guestfs-actions.pod:8476
26104 #: ../src/guestfs-actions.pod:8509 ../src/guestfs-actions.pod:8573
26105 #: ../src/guestfs-actions.pod:8596 ../src/guestfs-actions.pod:8622
26106 msgid "This function returns 0 on success or -1 on error."
26107 msgstr ""
26108
26109 #. type: textblock
26110 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
26111 #: ../src/guestfs-actions.pod:1373 ../src/guestfs-actions.pod:2436
26112 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2659
26113 #: ../src/guestfs-actions.pod:4133 ../src/guestfs-actions.pod:4153
26114 #: ../src/guestfs-actions.pod:5604 ../src/guestfs-actions.pod:6884
26115 #: ../src/guestfs-actions.pod:7001 ../src/guestfs-actions.pod:7150
26116 #: ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7757
26117 #: ../src/guestfs-actions.pod:8402
26118 msgid "(Added in 0.3)"
26119 msgstr ""
26120
26121 #. type: =head2
26122 #: ../src/guestfs-actions.pod:41
26123 msgid "guestfs_add_domain"
26124 msgstr ""
26125
26126 #. type: verbatim
26127 #: ../src/guestfs-actions.pod:43
26128 #, no-wrap
26129 msgid ""
26130 " int\n"
26131 " guestfs_add_domain (guestfs_h *g,\n"
26132 "                     const char *dom,\n"
26133 "                     ...);\n"
26134 "\n"
26135 msgstr ""
26136
26137 #. type: textblock
26138 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
26139 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:1253
26140 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1383
26141 #: ../src/guestfs-actions.pod:1452 ../src/guestfs-actions.pod:1505
26142 #: ../src/guestfs-actions.pod:1558 ../src/guestfs-actions.pod:3327
26143 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5305
26144 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5831
26145 #: ../src/guestfs-actions.pod:7799
26146 msgid ""
26147 "You may supply a list of optional arguments to this call.  Use zero or more "
26148 "of the following pairs of parameters, and terminate the list with C<-1> on "
26149 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
26150 msgstr ""
26151
26152 #. type: verbatim
26153 #: ../src/guestfs-actions.pod:53
26154 #, no-wrap
26155 msgid ""
26156 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
26157 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
26158 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
26159 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
26160 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
26161 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
26162 "\n"
26163 msgstr ""
26164
26165 #. type: textblock
26166 #: ../src/guestfs-actions.pod:60
26167 msgid ""
26168 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
26169 "It works by connecting to libvirt, requesting the domain and domain XML from "
26170 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
26171 "one."
26172 msgstr ""
26173
26174 #. type: textblock
26175 #: ../src/guestfs-actions.pod:141
26176 msgid ""
26177 "The other optional parameters are passed directly through to "
26178 "C<guestfs_add_drive_opts>."
26179 msgstr ""
26180
26181 #. type: textblock
26182 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
26183 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:790
26184 #: ../src/guestfs-actions.pod:821 ../src/guestfs-actions.pod:839
26185 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1836
26186 #: ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:2395
26187 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:2557
26188 #: ../src/guestfs-actions.pod:2609 ../src/guestfs-actions.pod:2623
26189 #: ../src/guestfs-actions.pod:2646 ../src/guestfs-actions.pod:2961
26190 #: ../src/guestfs-actions.pod:3445 ../src/guestfs-actions.pod:3463
26191 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:6007
26192 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6439
26193 #: ../src/guestfs-actions.pod:6465 ../src/guestfs-actions.pod:7987
26194 #: ../src/guestfs-actions.pod:8413 ../src/guestfs-actions.pod:8426
26195 #: ../src/guestfs-actions.pod:8439
26196 msgid "On error this function returns -1."
26197 msgstr ""
26198
26199 #. type: textblock
26200 #: ../src/guestfs-actions.pod:146
26201 msgid "(Added in 1.7.4)"
26202 msgstr ""
26203
26204 #. type: =head2
26205 #: ../src/guestfs-actions.pod:148
26206 msgid "guestfs_add_domain_va"
26207 msgstr ""
26208
26209 #. type: verbatim
26210 #: ../src/guestfs-actions.pod:150
26211 #, no-wrap
26212 msgid ""
26213 " int\n"
26214 " guestfs_add_domain_va (guestfs_h *g,\n"
26215 "                        const char *dom,\n"
26216 "                        va_list args);\n"
26217 "\n"
26218 msgstr ""
26219
26220 #. type: textblock
26221 #: ../src/guestfs-actions.pod:155
26222 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
26223 msgstr ""
26224
26225 #. type: textblock
26226 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
26227 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
26228 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:979
26229 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:1294
26230 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1353
26231 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1442
26232 #: ../src/guestfs-actions.pod:1483 ../src/guestfs-actions.pod:1495
26233 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1548
26234 #: ../src/guestfs-actions.pod:1594 ../src/guestfs-actions.pod:1606
26235 #: ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3423
26236 #: ../src/guestfs-actions.pod:4998 ../src/guestfs-actions.pod:5010
26237 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5382
26238 #: ../src/guestfs-actions.pod:5642 ../src/guestfs-actions.pod:5654
26239 #: ../src/guestfs-actions.pod:5880 ../src/guestfs-actions.pod:5891
26240 #: ../src/guestfs-actions.pod:7901 ../src/guestfs-actions.pod:7912
26241 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
26242 msgstr ""
26243
26244 #. type: =head2
26245 #: ../src/guestfs-actions.pod:159
26246 msgid "guestfs_add_domain_argv"
26247 msgstr ""
26248
26249 #. type: verbatim
26250 #: ../src/guestfs-actions.pod:161
26251 #, no-wrap
26252 msgid ""
26253 " int\n"
26254 " guestfs_add_domain_argv (guestfs_h *g,\n"
26255 "                          const char *dom,\n"
26256 "                          const struct guestfs_add_domain_argv *optargs);\n"
26257 "\n"
26258 msgstr ""
26259
26260 #. type: textblock
26261 #: ../src/guestfs-actions.pod:166
26262 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
26263 msgstr ""
26264
26265 #. type: =head2
26266 #: ../src/guestfs-actions.pod:170
26267 msgid "guestfs_add_drive"
26268 msgstr ""
26269
26270 #. type: verbatim
26271 #: ../src/guestfs-actions.pod:172
26272 #, no-wrap
26273 msgid ""
26274 " int\n"
26275 " guestfs_add_drive (guestfs_h *g,\n"
26276 "                    const char *filename);\n"
26277 "\n"
26278 msgstr ""
26279
26280 #. type: textblock
26281 #: ../src/guestfs-actions.pod:176
26282 msgid ""
26283 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26284 "optional parameters, so the disk is added writable, with the format being "
26285 "detected automatically."
26286 msgstr ""
26287
26288 #. type: textblock
26289 #: ../src/guestfs-actions.pod:180
26290 msgid ""
26291 "Automatic detection of the format opens you up to a potential security hole "
26292 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
26293 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
26294 "you should think about replacing calls to this function with calls to "
26295 "C<guestfs_add_drive_opts>, and specifying the format."
26296 msgstr ""
26297
26298 #. type: =head2
26299 #: ../src/guestfs-actions.pod:191
26300 msgid "guestfs_add_drive_opts"
26301 msgstr ""
26302
26303 #. type: verbatim
26304 #: ../src/guestfs-actions.pod:193
26305 #, no-wrap
26306 msgid ""
26307 " int\n"
26308 " guestfs_add_drive_opts (guestfs_h *g,\n"
26309 "                         const char *filename,\n"
26310 "                         ...);\n"
26311 "\n"
26312 msgstr ""
26313
26314 #. type: verbatim
26315 #: ../src/guestfs-actions.pod:203
26316 #, no-wrap
26317 msgid ""
26318 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
26319 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
26320 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
26321 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
26322 "\n"
26323 msgstr ""
26324
26325 #. type: textblock
26326 #: ../src/guestfs-actions.pod:233
26327 msgid ""
26328 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
26329 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
26330 "Possible formats include C<raw> and C<qcow2>."
26331 msgstr ""
26332
26333 #. type: textblock
26334 #: ../src/guestfs-actions.pod:244
26335 msgid ""
26336 "This rarely-used option lets you emulate the behaviour of the deprecated "
26337 "C<guestfs_add_drive_with_if> call (q.v.)"
26338 msgstr ""
26339
26340 #. type: textblock
26341 #: ../src/guestfs-actions.pod:256
26342 msgid "(Added in 1.5.23)"
26343 msgstr ""
26344
26345 #. type: =head2
26346 #: ../src/guestfs-actions.pod:258
26347 msgid "guestfs_add_drive_opts_va"
26348 msgstr ""
26349
26350 #. type: verbatim
26351 #: ../src/guestfs-actions.pod:260
26352 #, no-wrap
26353 msgid ""
26354 " int\n"
26355 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
26356 "                            const char *filename,\n"
26357 "                            va_list args);\n"
26358 "\n"
26359 msgstr ""
26360
26361 #. type: textblock
26362 #: ../src/guestfs-actions.pod:265
26363 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
26364 msgstr ""
26365
26366 #. type: =head2
26367 #: ../src/guestfs-actions.pod:269
26368 msgid "guestfs_add_drive_opts_argv"
26369 msgstr ""
26370
26371 #. type: verbatim
26372 #: ../src/guestfs-actions.pod:271
26373 #, no-wrap
26374 msgid ""
26375 " int\n"
26376 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
26377 "                              const char *filename,\n"
26378 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
26379 "\n"
26380 msgstr ""
26381
26382 #. type: textblock
26383 #: ../src/guestfs-actions.pod:276
26384 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
26385 msgstr ""
26386
26387 #. type: =head2
26388 #: ../src/guestfs-actions.pod:280
26389 msgid "guestfs_add_drive_ro"
26390 msgstr ""
26391
26392 #. type: verbatim
26393 #: ../src/guestfs-actions.pod:282
26394 #, no-wrap
26395 msgid ""
26396 " int\n"
26397 " guestfs_add_drive_ro (guestfs_h *g,\n"
26398 "                       const char *filename);\n"
26399 "\n"
26400 msgstr ""
26401
26402 #. type: textblock
26403 #: ../src/guestfs-actions.pod:286
26404 msgid ""
26405 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
26406 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
26407 "disk is added read-only, with the format being detected automatically."
26408 msgstr ""
26409
26410 #. type: textblock
26411 #: ../src/guestfs-actions.pod:293
26412 msgid "(Added in 1.0.38)"
26413 msgstr ""
26414
26415 #. type: =head2
26416 #: ../src/guestfs-actions.pod:295
26417 msgid "guestfs_add_drive_ro_with_if"
26418 msgstr ""
26419
26420 #. type: verbatim
26421 #: ../src/guestfs-actions.pod:297
26422 #, no-wrap
26423 msgid ""
26424 " int\n"
26425 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
26426 "                               const char *filename,\n"
26427 "                               const char *iface);\n"
26428 "\n"
26429 msgstr ""
26430
26431 #. type: textblock
26432 #: ../src/guestfs-actions.pod:309
26433 msgid ""
26434 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
26435 "QEMU interface emulation to use at run time."
26436 msgstr ""
26437
26438 #. type: textblock
26439 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
26440 #: ../src/guestfs-actions.pod:2920
26441 msgid "(Added in 1.0.84)"
26442 msgstr ""
26443
26444 #. type: =head2
26445 #: ../src/guestfs-actions.pod:316
26446 msgid "guestfs_add_drive_with_if"
26447 msgstr ""
26448
26449 #. type: verbatim
26450 #: ../src/guestfs-actions.pod:318
26451 #, no-wrap
26452 msgid ""
26453 " int\n"
26454 " guestfs_add_drive_with_if (guestfs_h *g,\n"
26455 "                            const char *filename,\n"
26456 "                            const char *iface);\n"
26457 "\n"
26458 msgstr ""
26459
26460 #. type: textblock
26461 #: ../src/guestfs-actions.pod:330
26462 msgid ""
26463 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
26464 "QEMU interface emulation to use at run time."
26465 msgstr ""
26466
26467 #. type: =head2
26468 #: ../src/guestfs-actions.pod:337
26469 msgid "guestfs_aug_clear"
26470 msgstr ""
26471
26472 #. type: verbatim
26473 #: ../src/guestfs-actions.pod:339
26474 #, no-wrap
26475 msgid ""
26476 " int\n"
26477 " guestfs_aug_clear (guestfs_h *g,\n"
26478 "                    const char *augpath);\n"
26479 "\n"
26480 msgstr ""
26481
26482 #. type: textblock
26483 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2648
26484 msgid "(Added in 1.3.4)"
26485 msgstr ""
26486
26487 #. type: =head2
26488 #: ../src/guestfs-actions.pod:350
26489 msgid "guestfs_aug_close"
26490 msgstr ""
26491
26492 #. type: verbatim
26493 #: ../src/guestfs-actions.pod:352
26494 #, no-wrap
26495 msgid ""
26496 " int\n"
26497 " guestfs_aug_close (guestfs_h *g);\n"
26498 "\n"
26499 msgstr ""
26500
26501 #. type: textblock
26502 #: ../src/guestfs-actions.pod:355
26503 msgid ""
26504 "Close the current Augeas handle and free up any resources used by it.  After "
26505 "calling this, you have to call C<guestfs_aug_init> again before you can use "
26506 "any other Augeas functions."
26507 msgstr ""
26508
26509 #. type: textblock
26510 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
26511 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
26512 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
26513 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
26514 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
26515 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
26516 #: ../src/guestfs-actions.pod:6516
26517 msgid "(Added in 0.7)"
26518 msgstr ""
26519
26520 #. type: =head2
26521 #: ../src/guestfs-actions.pod:364
26522 msgid "guestfs_aug_defnode"
26523 msgstr ""
26524
26525 #. type: verbatim
26526 #: ../src/guestfs-actions.pod:366
26527 #, no-wrap
26528 msgid ""
26529 " struct guestfs_int_bool *\n"
26530 " guestfs_aug_defnode (guestfs_h *g,\n"
26531 "                      const char *name,\n"
26532 "                      const char *expr,\n"
26533 "                      const char *val);\n"
26534 "\n"
26535 msgstr ""
26536
26537 #. type: textblock
26538 #: ../src/guestfs-actions.pod:375
26539 msgid ""
26540 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
26541 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
26542 "containing that single node."
26543 msgstr ""
26544
26545 #. type: textblock
26546 #: ../src/guestfs-actions.pod:383
26547 msgid ""
26548 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
26549 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
26550 msgstr ""
26551
26552 #. type: =head2
26553 #: ../src/guestfs-actions.pod:389
26554 msgid "guestfs_aug_defvar"
26555 msgstr ""
26556
26557 #. type: verbatim
26558 #: ../src/guestfs-actions.pod:391
26559 #, no-wrap
26560 msgid ""
26561 " int\n"
26562 " guestfs_aug_defvar (guestfs_h *g,\n"
26563 "                     const char *name,\n"
26564 "                     const char *expr);\n"
26565 "\n"
26566 msgstr ""
26567
26568 #. type: =head2
26569 #: ../src/guestfs-actions.pod:407
26570 msgid "guestfs_aug_get"
26571 msgstr ""
26572
26573 #. type: verbatim
26574 #: ../src/guestfs-actions.pod:409
26575 #, no-wrap
26576 msgid ""
26577 " char *\n"
26578 " guestfs_aug_get (guestfs_h *g,\n"
26579 "                  const char *augpath);\n"
26580 "\n"
26581 msgstr ""
26582
26583 #. type: textblock
26584 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:1019
26585 #: ../src/guestfs-actions.pod:1037 ../src/guestfs-actions.pod:1097
26586 #: ../src/guestfs-actions.pod:1113 ../src/guestfs-actions.pod:1216
26587 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1722
26588 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1875
26589 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:2175
26590 #: ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2355
26591 #: ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:2465
26592 #: ../src/guestfs-actions.pod:2486 ../src/guestfs-actions.pod:2671
26593 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:3089
26594 #: ../src/guestfs-actions.pod:3191 ../src/guestfs-actions.pod:3295
26595 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3529
26596 #: ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3578
26597 #: ../src/guestfs-actions.pod:3612 ../src/guestfs-actions.pod:3679
26598 #: ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3719
26599 #: ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4706
26600 #: ../src/guestfs-actions.pod:4873 ../src/guestfs-actions.pod:5132
26601 #: ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6226
26602 #: ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6592
26603 #: ../src/guestfs-actions.pod:6641 ../src/guestfs-actions.pod:7301
26604 #: ../src/guestfs-actions.pod:7317 ../src/guestfs-actions.pod:7341
26605 #: ../src/guestfs-actions.pod:7365 ../src/guestfs-actions.pod:8161
26606 #: ../src/guestfs-actions.pod:8180 ../src/guestfs-actions.pod:8198
26607 #: ../src/guestfs-actions.pod:8372 ../src/guestfs-actions.pod:8686
26608 msgid ""
26609 "This function returns a string, or NULL on error.  I<The caller must free "
26610 "the returned string after use>."
26611 msgstr ""
26612
26613 #. type: =head2
26614 #: ../src/guestfs-actions.pod:421
26615 msgid "guestfs_aug_init"
26616 msgstr ""
26617
26618 #. type: verbatim
26619 #: ../src/guestfs-actions.pod:423
26620 #, no-wrap
26621 msgid ""
26622 " int\n"
26623 " guestfs_aug_init (guestfs_h *g,\n"
26624 "                   const char *root,\n"
26625 "                   int flags);\n"
26626 "\n"
26627 msgstr ""
26628
26629 #. type: textblock
26630 #: ../src/guestfs-actions.pod:432
26631 msgid "You must call this before using any other C<guestfs_aug_*> commands."
26632 msgstr ""
26633
26634 #. type: textblock
26635 #: ../src/guestfs-actions.pod:457
26636 msgid ""
26637 "This option is only useful when debugging Augeas lenses.  Use of this option "
26638 "may require additional memory for the libguestfs appliance.  You may need to "
26639 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
26640 "C<guestfs_set_memsize>."
26641 msgstr ""
26642
26643 #. type: textblock
26644 #: ../src/guestfs-actions.pod:472
26645 msgid "Do not load the tree in C<guestfs_aug_init>."
26646 msgstr ""
26647
26648 #. type: textblock
26649 #: ../src/guestfs-actions.pod:476
26650 msgid "To close the handle, you can call C<guestfs_aug_close>."
26651 msgstr ""
26652
26653 #. type: =head2
26654 #: ../src/guestfs-actions.pod:484
26655 msgid "guestfs_aug_insert"
26656 msgstr ""
26657
26658 #. type: verbatim
26659 #: ../src/guestfs-actions.pod:486
26660 #, no-wrap
26661 msgid ""
26662 " int\n"
26663 " guestfs_aug_insert (guestfs_h *g,\n"
26664 "                     const char *augpath,\n"
26665 "                     const char *label,\n"
26666 "                     int before);\n"
26667 "\n"
26668 msgstr ""
26669
26670 #. type: =head2
26671 #: ../src/guestfs-actions.pod:504
26672 msgid "guestfs_aug_load"
26673 msgstr ""
26674
26675 #. type: verbatim
26676 #: ../src/guestfs-actions.pod:506
26677 #, no-wrap
26678 msgid ""
26679 " int\n"
26680 " guestfs_aug_load (guestfs_h *g);\n"
26681 "\n"
26682 msgstr ""
26683
26684 #. type: =head2
26685 #: ../src/guestfs-actions.pod:518
26686 msgid "guestfs_aug_ls"
26687 msgstr ""
26688
26689 #. type: verbatim
26690 #: ../src/guestfs-actions.pod:520
26691 #, no-wrap
26692 msgid ""
26693 " char **\n"
26694 " guestfs_aug_ls (guestfs_h *g,\n"
26695 "                 const char *augpath);\n"
26696 "\n"
26697 msgstr ""
26698
26699 #. type: textblock
26700 #: ../src/guestfs-actions.pod:524
26701 msgid ""
26702 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26703 "sorting the resulting nodes into alphabetical order."
26704 msgstr ""
26705
26706 #. type: textblock
26707 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
26708 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1235
26709 #: ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:1909
26710 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2031
26711 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2743
26712 #: ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:2778
26713 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2867
26714 #: ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2987
26715 #: ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3631
26716 #: ../src/guestfs-actions.pod:3915 ../src/guestfs-actions.pod:4229
26717 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4266
26718 #: ../src/guestfs-actions.pod:4321 ../src/guestfs-actions.pod:4341
26719 #: ../src/guestfs-actions.pod:4446 ../src/guestfs-actions.pod:4845
26720 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:6386
26721 #: ../src/guestfs-actions.pod:6512 ../src/guestfs-actions.pod:6626
26722 #: ../src/guestfs-actions.pod:7381 ../src/guestfs-actions.pod:7442
26723 #: ../src/guestfs-actions.pod:7497 ../src/guestfs-actions.pod:7643
26724 #: ../src/guestfs-actions.pod:7667 ../src/guestfs-actions.pod:8265
26725 #: ../src/guestfs-actions.pod:8285 ../src/guestfs-actions.pod:8332
26726 #: ../src/guestfs-actions.pod:8526 ../src/guestfs-actions.pod:8545
26727 #: ../src/guestfs-actions.pod:8636 ../src/guestfs-actions.pod:8655
26728 #: ../src/guestfs-actions.pod:8701 ../src/guestfs-actions.pod:8720
26729 msgid ""
26730 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26731 ">), or NULL if there was an error.  I<The caller must free the strings and "
26732 "the array after use>."
26733 msgstr ""
26734
26735 #. type: textblock
26736 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1160
26737 #: ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1947
26738 #: ../src/guestfs-actions.pod:3993 ../src/guestfs-actions.pod:4024
26739 #: ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4736
26740 #: ../src/guestfs-actions.pod:5072 ../src/guestfs-actions.pod:5105
26741 #: ../src/guestfs-actions.pod:5268 ../src/guestfs-actions.pod:5755
26742 #: ../src/guestfs-actions.pod:6327 ../src/guestfs-actions.pod:6724
26743 #: ../src/guestfs-actions.pod:6738 ../src/guestfs-actions.pod:6750
26744 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:8003
26745 #: ../src/guestfs-actions.pod:8016 ../src/guestfs-actions.pod:8249
26746 #: ../src/guestfs-actions.pod:8514
26747 msgid "(Added in 0.8)"
26748 msgstr ""
26749
26750 #. type: =head2
26751 #: ../src/guestfs-actions.pod:533
26752 msgid "guestfs_aug_match"
26753 msgstr ""
26754
26755 #. type: verbatim
26756 #: ../src/guestfs-actions.pod:535
26757 #, no-wrap
26758 msgid ""
26759 " char **\n"
26760 " guestfs_aug_match (guestfs_h *g,\n"
26761 "                    const char *augpath);\n"
26762 "\n"
26763 msgstr ""
26764
26765 #. type: =head2
26766 #: ../src/guestfs-actions.pod:549
26767 msgid "guestfs_aug_mv"
26768 msgstr ""
26769
26770 #. type: verbatim
26771 #: ../src/guestfs-actions.pod:551
26772 #, no-wrap
26773 msgid ""
26774 " int\n"
26775 " guestfs_aug_mv (guestfs_h *g,\n"
26776 "                 const char *src,\n"
26777 "                 const char *dest);\n"
26778 "\n"
26779 msgstr ""
26780
26781 #. type: =head2
26782 #: ../src/guestfs-actions.pod:563
26783 msgid "guestfs_aug_rm"
26784 msgstr ""
26785
26786 #. type: verbatim
26787 #: ../src/guestfs-actions.pod:565
26788 #, no-wrap
26789 msgid ""
26790 " int\n"
26791 " guestfs_aug_rm (guestfs_h *g,\n"
26792 "                 const char *augpath);\n"
26793 "\n"
26794 msgstr ""
26795
26796 #. type: =head2
26797 #: ../src/guestfs-actions.pod:577
26798 msgid "guestfs_aug_save"
26799 msgstr ""
26800
26801 #. type: verbatim
26802 #: ../src/guestfs-actions.pod:579
26803 #, no-wrap
26804 msgid ""
26805 " int\n"
26806 " guestfs_aug_save (guestfs_h *g);\n"
26807 "\n"
26808 msgstr ""
26809
26810 #. type: textblock
26811 #: ../src/guestfs-actions.pod:584
26812 msgid ""
26813 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26814 "are saved."
26815 msgstr ""
26816
26817 #. type: =head2
26818 #: ../src/guestfs-actions.pod:591
26819 msgid "guestfs_aug_set"
26820 msgstr ""
26821
26822 #. type: verbatim
26823 #: ../src/guestfs-actions.pod:593
26824 #, no-wrap
26825 msgid ""
26826 " int\n"
26827 " guestfs_aug_set (guestfs_h *g,\n"
26828 "                  const char *augpath,\n"
26829 "                  const char *val);\n"
26830 "\n"
26831 msgstr ""
26832
26833 #. type: textblock
26834 #: ../src/guestfs-actions.pod:600
26835 msgid ""
26836 "In the Augeas API, it is possible to clear a node by setting the value to "
26837 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26838 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26839 msgstr ""
26840
26841 #. type: =head2
26842 #: ../src/guestfs-actions.pod:609
26843 msgid "guestfs_available"
26844 msgstr ""
26845
26846 #. type: verbatim
26847 #: ../src/guestfs-actions.pod:611
26848 #, no-wrap
26849 msgid ""
26850 " int\n"
26851 " guestfs_available (guestfs_h *g,\n"
26852 "                    char *const *groups);\n"
26853 "\n"
26854 msgstr ""
26855
26856 #. type: textblock
26857 #: ../src/guestfs-actions.pod:619
26858 msgid ""
26859 "The libguestfs groups, and the functions that those groups correspond to, "
26860 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26861 "runtime by calling C<guestfs_available_all_groups>."
26862 msgstr ""
26863
26864 #. type: textblock
26865 #: ../src/guestfs-actions.pod:643
26866 msgid "You must call C<guestfs_launch> before calling this function."
26867 msgstr ""
26868
26869 #. type: textblock
26870 #: ../src/guestfs-actions.pod:665
26871 msgid ""
26872 "This call was added in version C<1.0.80>.  In previous versions of "
26873 "libguestfs all you could do would be to speculatively execute a command to "
26874 "find out if the daemon implemented it.  See also C<guestfs_version>."
26875 msgstr ""
26876
26877 #. type: textblock
26878 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1692
26879 msgid "(Added in 1.0.80)"
26880 msgstr ""
26881
26882 #. type: =head2
26883 #: ../src/guestfs-actions.pod:676
26884 msgid "guestfs_available_all_groups"
26885 msgstr ""
26886
26887 #. type: verbatim
26888 #: ../src/guestfs-actions.pod:678
26889 #, no-wrap
26890 msgid ""
26891 " char **\n"
26892 " guestfs_available_all_groups (guestfs_h *g);\n"
26893 "\n"
26894 msgstr ""
26895
26896 #. type: textblock
26897 #: ../src/guestfs-actions.pod:681
26898 msgid ""
26899 "This command returns a list of all optional groups that this daemon knows "
26900 "about.  Note this returns both supported and unsupported groups.  To find "
26901 "out which ones the daemon can actually support you have to call "
26902 "C<guestfs_available> on each member of the returned list."
26903 msgstr ""
26904
26905 #. type: textblock
26906 #: ../src/guestfs-actions.pod:687
26907 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26908 msgstr ""
26909
26910 #. type: textblock
26911 #: ../src/guestfs-actions.pod:693
26912 msgid "(Added in 1.3.15)"
26913 msgstr ""
26914
26915 #. type: =head2
26916 #: ../src/guestfs-actions.pod:695
26917 msgid "guestfs_base64_in"
26918 msgstr ""
26919
26920 #. type: verbatim
26921 #: ../src/guestfs-actions.pod:697
26922 #, no-wrap
26923 msgid ""
26924 " int\n"
26925 " guestfs_base64_in (guestfs_h *g,\n"
26926 "                    const char *base64file,\n"
26927 "                    const char *filename);\n"
26928 "\n"
26929 msgstr ""
26930
26931 #. type: textblock
26932 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26933 msgid "(Added in 1.3.5)"
26934 msgstr ""
26935
26936 #. type: =head2
26937 #: ../src/guestfs-actions.pod:709
26938 msgid "guestfs_base64_out"
26939 msgstr ""
26940
26941 #. type: verbatim
26942 #: ../src/guestfs-actions.pod:711
26943 #, no-wrap
26944 msgid ""
26945 " int\n"
26946 " guestfs_base64_out (guestfs_h *g,\n"
26947 "                     const char *filename,\n"
26948 "                     const char *base64file);\n"
26949 "\n"
26950 msgstr ""
26951
26952 #. type: =head2
26953 #: ../src/guestfs-actions.pod:723
26954 msgid "guestfs_blkid"
26955 msgstr ""
26956
26957 #. type: verbatim
26958 #: ../src/guestfs-actions.pod:725
26959 #, no-wrap
26960 msgid ""
26961 " char **\n"
26962 " guestfs_blkid (guestfs_h *g,\n"
26963 "                const char *device);\n"
26964 "\n"
26965 msgstr ""
26966
26967 #. type: textblock
26968 #: ../src/guestfs-actions.pod:756 ../src/guestfs-actions.pod:3231
26969 #: ../src/guestfs-actions.pod:3499 ../src/guestfs-actions.pod:4306
26970 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5731
26971 #: ../src/guestfs-actions.pod:7928
26972 msgid ""
26973 "This function returns a NULL-terminated array of strings, or NULL if there "
26974 "was an error.  The array of strings will always have length C<2n+1>, where "
26975 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26976 "caller must free the strings and the array after use>."
26977 msgstr ""
26978
26979 #. type: =head2
26980 #: ../src/guestfs-actions.pod:762
26981 msgid "guestfs_blockdev_flushbufs"
26982 msgstr ""
26983
26984 #. type: verbatim
26985 #: ../src/guestfs-actions.pod:764
26986 #, no-wrap
26987 msgid ""
26988 " int\n"
26989 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26990 "                             const char *device);\n"
26991 "\n"
26992 msgstr ""
26993
26994 #. type: textblock
26995 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:792
26996 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:823
26997 #: ../src/guestfs-actions.pod:841 ../src/guestfs-actions.pod:860
26998 #: ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:892
26999 #: ../src/guestfs-actions.pod:906 ../src/guestfs-actions.pod:920
27000 msgid "(Added in 0.9.3)"
27001 msgstr ""
27002
27003 #. type: =head2
27004 #: ../src/guestfs-actions.pod:777
27005 msgid "guestfs_blockdev_getbsz"
27006 msgstr ""
27007
27008 #. type: verbatim
27009 #: ../src/guestfs-actions.pod:779
27010 #, no-wrap
27011 msgid ""
27012 " int\n"
27013 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27014 "                          const char *device);\n"
27015 "\n"
27016 msgstr ""
27017
27018 #. type: =head2
27019 #: ../src/guestfs-actions.pod:794
27020 msgid "guestfs_blockdev_getro"
27021 msgstr ""
27022
27023 #. type: verbatim
27024 #: ../src/guestfs-actions.pod:796
27025 #, no-wrap
27026 msgid ""
27027 " int\n"
27028 " guestfs_blockdev_getro (guestfs_h *g,\n"
27029 "                         const char *device);\n"
27030 "\n"
27031 msgstr ""
27032
27033 #. type: textblock
27034 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:1930
27035 #: ../src/guestfs-actions.pod:1945 ../src/guestfs-actions.pod:2434
27036 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2517
27037 #: ../src/guestfs-actions.pod:2543 ../src/guestfs-actions.pod:2583
27038 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2634
27039 #: ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:3736
27040 #: ../src/guestfs-actions.pod:3752 ../src/guestfs-actions.pod:3770
27041 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:3946
27042 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:3975
27043 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4006
27044 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:4036
27045 #: ../src/guestfs-actions.pod:4049 ../src/guestfs-actions.pod:4063
27046 #: ../src/guestfs-actions.pod:4078 ../src/guestfs-actions.pod:4093
27047 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4120
27048 #: ../src/guestfs-actions.pod:5989
27049 msgid "This function returns a C truth value on success or -1 on error."
27050 msgstr ""
27051
27052 #. type: =head2
27053 #: ../src/guestfs-actions.pod:809
27054 msgid "guestfs_blockdev_getsize64"
27055 msgstr ""
27056
27057 #. type: verbatim
27058 #: ../src/guestfs-actions.pod:811
27059 #, no-wrap
27060 msgid ""
27061 " int64_t\n"
27062 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27063 "                             const char *device);\n"
27064 "\n"
27065 msgstr ""
27066
27067 #. type: textblock
27068 #: ../src/guestfs-actions.pod:817
27069 msgid "See also C<guestfs_blockdev_getsz>."
27070 msgstr ""
27071
27072 #. type: =head2
27073 #: ../src/guestfs-actions.pod:825
27074 msgid "guestfs_blockdev_getss"
27075 msgstr ""
27076
27077 #. type: verbatim
27078 #: ../src/guestfs-actions.pod:827
27079 #, no-wrap
27080 msgid ""
27081 " int\n"
27082 " guestfs_blockdev_getss (guestfs_h *g,\n"
27083 "                         const char *device);\n"
27084 "\n"
27085 msgstr ""
27086
27087 #. type: textblock
27088 #: ../src/guestfs-actions.pod:834
27089 msgid ""
27090 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
27091 "that)."
27092 msgstr ""
27093
27094 #. type: =head2
27095 #: ../src/guestfs-actions.pod:843
27096 msgid "guestfs_blockdev_getsz"
27097 msgstr ""
27098
27099 #. type: verbatim
27100 #: ../src/guestfs-actions.pod:845
27101 #, no-wrap
27102 msgid ""
27103 " int64_t\n"
27104 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27105 "                         const char *device);\n"
27106 "\n"
27107 msgstr ""
27108
27109 #. type: textblock
27110 #: ../src/guestfs-actions.pod:852
27111 msgid ""
27112 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
27113 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
27114 msgstr ""
27115
27116 #. type: =head2
27117 #: ../src/guestfs-actions.pod:862
27118 msgid "guestfs_blockdev_rereadpt"
27119 msgstr ""
27120
27121 #. type: verbatim
27122 #: ../src/guestfs-actions.pod:864
27123 #, no-wrap
27124 msgid ""
27125 " int\n"
27126 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27127 "                            const char *device);\n"
27128 "\n"
27129 msgstr ""
27130
27131 #. type: =head2
27132 #: ../src/guestfs-actions.pod:876
27133 msgid "guestfs_blockdev_setbsz"
27134 msgstr ""
27135
27136 #. type: verbatim
27137 #: ../src/guestfs-actions.pod:878
27138 #, no-wrap
27139 msgid ""
27140 " int\n"
27141 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27142 "                          const char *device,\n"
27143 "                          int blocksize);\n"
27144 "\n"
27145 msgstr ""
27146
27147 #. type: =head2
27148 #: ../src/guestfs-actions.pod:894
27149 msgid "guestfs_blockdev_setro"
27150 msgstr ""
27151
27152 #. type: verbatim
27153 #: ../src/guestfs-actions.pod:896
27154 #, no-wrap
27155 msgid ""
27156 " int\n"
27157 " guestfs_blockdev_setro (guestfs_h *g,\n"
27158 "                         const char *device);\n"
27159 "\n"
27160 msgstr ""
27161
27162 #. type: =head2
27163 #: ../src/guestfs-actions.pod:908
27164 msgid "guestfs_blockdev_setrw"
27165 msgstr ""
27166
27167 #. type: verbatim
27168 #: ../src/guestfs-actions.pod:910
27169 #, no-wrap
27170 msgid ""
27171 " int\n"
27172 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27173 "                         const char *device);\n"
27174 "\n"
27175 msgstr ""
27176
27177 #. type: =head2
27178 #: ../src/guestfs-actions.pod:922
27179 msgid "guestfs_btrfs_filesystem_resize"
27180 msgstr ""
27181
27182 #. type: verbatim
27183 #: ../src/guestfs-actions.pod:924
27184 #, no-wrap
27185 msgid ""
27186 " int\n"
27187 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27188 "                                  const char *mountpoint,\n"
27189 "                                  ...);\n"
27190 "\n"
27191 msgstr ""
27192
27193 #. type: verbatim
27194 #: ../src/guestfs-actions.pod:934
27195 #, no-wrap
27196 msgid ""
27197 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27198 "\n"
27199 msgstr ""
27200
27201 #. type: textblock
27202 #: ../src/guestfs-actions.pod:957
27203 msgid "(Added in 1.11.17)"
27204 msgstr ""
27205
27206 #. type: =head2
27207 #: ../src/guestfs-actions.pod:959
27208 msgid "guestfs_btrfs_filesystem_resize_va"
27209 msgstr ""
27210
27211 #. type: verbatim
27212 #: ../src/guestfs-actions.pod:961
27213 #, no-wrap
27214 msgid ""
27215 " int\n"
27216 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27217 "                                     const char *mountpoint,\n"
27218 "                                     va_list args);\n"
27219 "\n"
27220 msgstr ""
27221
27222 #. type: textblock
27223 #: ../src/guestfs-actions.pod:966
27224 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
27225 msgstr ""
27226
27227 #. type: =head2
27228 #: ../src/guestfs-actions.pod:970
27229 msgid "guestfs_btrfs_filesystem_resize_argv"
27230 msgstr ""
27231
27232 #. type: verbatim
27233 #: ../src/guestfs-actions.pod:972
27234 #, no-wrap
27235 msgid ""
27236 " int\n"
27237 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27238 "                                       const char *mountpoint,\n"
27239 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27240 "\n"
27241 msgstr ""
27242
27243 #. type: textblock
27244 #: ../src/guestfs-actions.pod:977
27245 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
27246 msgstr ""
27247
27248 #. type: =head2
27249 #: ../src/guestfs-actions.pod:981
27250 msgid "guestfs_case_sensitive_path"
27251 msgstr ""
27252
27253 #. type: verbatim
27254 #: ../src/guestfs-actions.pod:983
27255 #, no-wrap
27256 msgid ""
27257 " char *\n"
27258 " guestfs_case_sensitive_path (guestfs_h *g,\n"
27259 "                              const char *path);\n"
27260 "\n"
27261 msgstr ""
27262
27263 #. type: textblock
27264 #: ../src/guestfs-actions.pod:1009
27265 msgid ""
27266 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
27267 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
27268 "how the directories were originally created under Windows)."
27269 msgstr ""
27270
27271 #. type: textblock
27272 #: ../src/guestfs-actions.pod:1017
27273 msgid "See also C<guestfs_realpath>."
27274 msgstr ""
27275
27276 #. type: textblock
27277 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:8183
27278 msgid "(Added in 1.0.75)"
27279 msgstr ""
27280
27281 #. type: =head2
27282 #: ../src/guestfs-actions.pod:1024
27283 msgid "guestfs_cat"
27284 msgstr ""
27285
27286 #. type: verbatim
27287 #: ../src/guestfs-actions.pod:1026
27288 #, no-wrap
27289 msgid ""
27290 " char *\n"
27291 " guestfs_cat (guestfs_h *g,\n"
27292 "              const char *path);\n"
27293 "\n"
27294 msgstr ""
27295
27296 #. type: textblock
27297 #: ../src/guestfs-actions.pod:1032
27298 msgid ""
27299 "Note that this function cannot correctly handle binary files (specifically, "
27300 "files containing C<\\0> character which is treated as end of string).  For "
27301 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
27302 "functions which have a more complex interface."
27303 msgstr ""
27304
27305 #. type: textblock
27306 #: ../src/guestfs-actions.pod:1043 ../src/guestfs-actions.pod:4250
27307 #: ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4362
27308 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4849
27309 #: ../src/guestfs-actions.pod:4863 ../src/guestfs-actions.pod:6390
27310 #: ../src/guestfs-actions.pod:6404 ../src/guestfs-actions.pod:8336
27311 #: ../src/guestfs-actions.pod:8350
27312 msgid "(Added in 0.4)"
27313 msgstr ""
27314
27315 #. type: =head2
27316 #: ../src/guestfs-actions.pod:1045
27317 msgid "guestfs_checksum"
27318 msgstr ""
27319
27320 #. type: verbatim
27321 #: ../src/guestfs-actions.pod:1047
27322 #, no-wrap
27323 msgid ""
27324 " char *\n"
27325 " guestfs_checksum (guestfs_h *g,\n"
27326 "                   const char *csumtype,\n"
27327 "                   const char *path);\n"
27328 "\n"
27329 msgstr ""
27330
27331 #. type: textblock
27332 #: ../src/guestfs-actions.pod:1093
27333 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
27334 msgstr ""
27335
27336 #. type: textblock
27337 #: ../src/guestfs-actions.pod:1095
27338 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
27339 msgstr ""
27340
27341 #. type: textblock
27342 #: ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1767
27343 #: ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:3948
27344 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4038
27345 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:8039
27346 msgid "(Added in 1.0.2)"
27347 msgstr ""
27348
27349 #. type: =head2
27350 #: ../src/guestfs-actions.pod:1102
27351 msgid "guestfs_checksum_device"
27352 msgstr ""
27353
27354 #. type: verbatim
27355 #: ../src/guestfs-actions.pod:1104
27356 #, no-wrap
27357 msgid ""
27358 " char *\n"
27359 " guestfs_checksum_device (guestfs_h *g,\n"
27360 "                          const char *csumtype,\n"
27361 "                          const char *device);\n"
27362 "\n"
27363 msgstr ""
27364
27365 #. type: textblock
27366 #: ../src/guestfs-actions.pod:1109
27367 msgid ""
27368 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
27369 "device named C<device>.  For the types of checksums supported see the "
27370 "C<guestfs_checksum> command."
27371 msgstr ""
27372
27373 #. type: textblock
27374 #: ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:5822
27375 #: ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:5991
27376 #: ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6191
27377 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7962
27378 #: ../src/guestfs-actions.pod:8362
27379 msgid "(Added in 1.3.2)"
27380 msgstr ""
27381
27382 #. type: =head2
27383 #: ../src/guestfs-actions.pod:1118
27384 msgid "guestfs_checksums_out"
27385 msgstr ""
27386
27387 #. type: verbatim
27388 #: ../src/guestfs-actions.pod:1120
27389 #, no-wrap
27390 msgid ""
27391 " int\n"
27392 " guestfs_checksums_out (guestfs_h *g,\n"
27393 "                        const char *csumtype,\n"
27394 "                        const char *directory,\n"
27395 "                        const char *sumsfile);\n"
27396 "\n"
27397 msgstr ""
27398
27399 #. type: textblock
27400 #: ../src/guestfs-actions.pod:1140
27401 msgid "(Added in 1.3.7)"
27402 msgstr ""
27403
27404 #. type: =head2
27405 #: ../src/guestfs-actions.pod:1142
27406 msgid "guestfs_chmod"
27407 msgstr ""
27408
27409 #. type: verbatim
27410 #: ../src/guestfs-actions.pod:1144
27411 #, no-wrap
27412 msgid ""
27413 " int\n"
27414 " guestfs_chmod (guestfs_h *g,\n"
27415 "                int mode,\n"
27416 "                const char *path);\n"
27417 "\n"
27418 msgstr ""
27419
27420 #. type: =head2
27421 #: ../src/guestfs-actions.pod:1162
27422 msgid "guestfs_chown"
27423 msgstr ""
27424
27425 #. type: verbatim
27426 #: ../src/guestfs-actions.pod:1164
27427 #, no-wrap
27428 msgid ""
27429 " int\n"
27430 " guestfs_chown (guestfs_h *g,\n"
27431 "                int owner,\n"
27432 "                int group,\n"
27433 "                const char *path);\n"
27434 "\n"
27435 msgstr ""
27436
27437 #. type: =head2
27438 #: ../src/guestfs-actions.pod:1180
27439 msgid "guestfs_command"
27440 msgstr ""
27441
27442 #. type: verbatim
27443 #: ../src/guestfs-actions.pod:1182
27444 #, no-wrap
27445 msgid ""
27446 " char *\n"
27447 " guestfs_command (guestfs_h *g,\n"
27448 "                  char *const *arguments);\n"
27449 "\n"
27450 msgstr ""
27451
27452 #. type: textblock
27453 #: ../src/guestfs-actions.pod:1191
27454 msgid ""
27455 "The single parameter is an argv-style list of arguments.  The first element "
27456 "is the name of the program to run.  Subsequent elements are parameters.  The "
27457 "list must be non-empty (ie. must contain a program name).  Note that the "
27458 "command runs directly, and is I<not> invoked via the shell (see "
27459 "C<guestfs_sh>)."
27460 msgstr ""
27461
27462 #. type: textblock
27463 #: ../src/guestfs-actions.pod:1222 ../src/guestfs-actions.pod:1242
27464 #: ../src/guestfs-actions.pod:2066
27465 msgid "(Added in 0.9.1)"
27466 msgstr ""
27467
27468 #. type: =head2
27469 #: ../src/guestfs-actions.pod:1224
27470 msgid "guestfs_command_lines"
27471 msgstr ""
27472
27473 #. type: verbatim
27474 #: ../src/guestfs-actions.pod:1226
27475 #, no-wrap
27476 msgid ""
27477 " char **\n"
27478 " guestfs_command_lines (guestfs_h *g,\n"
27479 "                        char *const *arguments);\n"
27480 "\n"
27481 msgstr ""
27482
27483 #. type: textblock
27484 #: ../src/guestfs-actions.pod:1230
27485 msgid ""
27486 "This is the same as C<guestfs_command>, but splits the result into a list of "
27487 "lines."
27488 msgstr ""
27489
27490 #. type: textblock
27491 #: ../src/guestfs-actions.pod:1233
27492 msgid "See also: C<guestfs_sh_lines>"
27493 msgstr ""
27494
27495 #. type: =head2
27496 #: ../src/guestfs-actions.pod:1244
27497 msgid "guestfs_compress_device_out"
27498 msgstr ""
27499
27500 #. type: verbatim
27501 #: ../src/guestfs-actions.pod:1246
27502 #, no-wrap
27503 msgid ""
27504 " int\n"
27505 " guestfs_compress_device_out (guestfs_h *g,\n"
27506 "                              const char *ctype,\n"
27507 "                              const char *device,\n"
27508 "                              const char *zdevice,\n"
27509 "                              ...);\n"
27510 "\n"
27511 msgstr ""
27512
27513 #. type: verbatim
27514 #: ../src/guestfs-actions.pod:1258
27515 #, no-wrap
27516 msgid ""
27517 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
27518 "\n"
27519 msgstr ""
27520
27521 #. type: textblock
27522 #: ../src/guestfs-actions.pod:1263
27523 msgid ""
27524 "The C<ctype> and optional C<level> parameters have the same meaning as in "
27525 "C<guestfs_compress_out>."
27526 msgstr ""
27527
27528 #. type: textblock
27529 #: ../src/guestfs-actions.pod:1268 ../src/guestfs-actions.pod:1327
27530 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:7107
27531 msgid "(Added in 1.13.15)"
27532 msgstr ""
27533
27534 #. type: =head2
27535 #: ../src/guestfs-actions.pod:1270
27536 msgid "guestfs_compress_device_out_va"
27537 msgstr ""
27538
27539 #. type: verbatim
27540 #: ../src/guestfs-actions.pod:1272
27541 #, no-wrap
27542 msgid ""
27543 " int\n"
27544 " guestfs_compress_device_out_va (guestfs_h *g,\n"
27545 "                                 const char *ctype,\n"
27546 "                                 const char *device,\n"
27547 "                                 const char *zdevice,\n"
27548 "                                 va_list args);\n"
27549 "\n"
27550 msgstr ""
27551
27552 #. type: textblock
27553 #: ../src/guestfs-actions.pod:1279
27554 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
27555 msgstr ""
27556
27557 #. type: =head2
27558 #: ../src/guestfs-actions.pod:1283
27559 msgid "guestfs_compress_device_out_argv"
27560 msgstr ""
27561
27562 #. type: verbatim
27563 #: ../src/guestfs-actions.pod:1285
27564 #, no-wrap
27565 msgid ""
27566 " int\n"
27567 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
27568 "                                   const char *ctype,\n"
27569 "                                   const char *device,\n"
27570 "                                   const char *zdevice,\n"
27571 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
27572 "\n"
27573 msgstr ""
27574
27575 #. type: textblock
27576 #: ../src/guestfs-actions.pod:1292
27577 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
27578 msgstr ""
27579
27580 #. type: =head2
27581 #: ../src/guestfs-actions.pod:1296
27582 msgid "guestfs_compress_out"
27583 msgstr ""
27584
27585 #. type: verbatim
27586 #: ../src/guestfs-actions.pod:1298
27587 #, no-wrap
27588 msgid ""
27589 " int\n"
27590 " guestfs_compress_out (guestfs_h *g,\n"
27591 "                       const char *ctype,\n"
27592 "                       const char *file,\n"
27593 "                       const char *zfile,\n"
27594 "                       ...);\n"
27595 "\n"
27596 msgstr ""
27597
27598 #. type: verbatim
27599 #: ../src/guestfs-actions.pod:1310
27600 #, no-wrap
27601 msgid ""
27602 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
27603 "\n"
27604 msgstr ""
27605
27606 #. type: =head2
27607 #: ../src/guestfs-actions.pod:1329
27608 msgid "guestfs_compress_out_va"
27609 msgstr ""
27610
27611 #. type: verbatim
27612 #: ../src/guestfs-actions.pod:1331
27613 #, no-wrap
27614 msgid ""
27615 " int\n"
27616 " guestfs_compress_out_va (guestfs_h *g,\n"
27617 "                          const char *ctype,\n"
27618 "                          const char *file,\n"
27619 "                          const char *zfile,\n"
27620 "                          va_list args);\n"
27621 "\n"
27622 msgstr ""
27623
27624 #. type: textblock
27625 #: ../src/guestfs-actions.pod:1338
27626 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27627 msgstr ""
27628
27629 #. type: =head2
27630 #: ../src/guestfs-actions.pod:1342
27631 msgid "guestfs_compress_out_argv"
27632 msgstr ""
27633
27634 #. type: verbatim
27635 #: ../src/guestfs-actions.pod:1344
27636 #, no-wrap
27637 msgid ""
27638 " int\n"
27639 " guestfs_compress_out_argv (guestfs_h *g,\n"
27640 "                            const char *ctype,\n"
27641 "                            const char *file,\n"
27642 "                            const char *zfile,\n"
27643 "                            const struct guestfs_compress_out_argv *optargs);\n"
27644 "\n"
27645 msgstr ""
27646
27647 #. type: textblock
27648 #: ../src/guestfs-actions.pod:1351
27649 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27650 msgstr ""
27651
27652 #. type: =head2
27653 #: ../src/guestfs-actions.pod:1355
27654 msgid "guestfs_config"
27655 msgstr ""
27656
27657 #. type: verbatim
27658 #: ../src/guestfs-actions.pod:1357
27659 #, no-wrap
27660 msgid ""
27661 " int\n"
27662 " guestfs_config (guestfs_h *g,\n"
27663 "                 const char *qemuparam,\n"
27664 "                 const char *qemuvalue);\n"
27665 "\n"
27666 msgstr ""
27667
27668 #. type: =head2
27669 #: ../src/guestfs-actions.pod:1375
27670 msgid "guestfs_copy_device_to_device"
27671 msgstr ""
27672
27673 #. type: verbatim
27674 #: ../src/guestfs-actions.pod:1377
27675 #, no-wrap
27676 msgid ""
27677 " int\n"
27678 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27679 "                                const char *src,\n"
27680 "                                const char *dest,\n"
27681 "                                ...);\n"
27682 "\n"
27683 msgstr ""
27684
27685 #. type: verbatim
27686 #: ../src/guestfs-actions.pod:1388
27687 #, no-wrap
27688 msgid ""
27689 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27690 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27691 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27692 "\n"
27693 msgstr ""
27694
27695 #. type: textblock
27696 #: ../src/guestfs-actions.pod:1392
27697 msgid ""
27698 "The four calls C<guestfs_copy_device_to_device>, "
27699 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27700 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27701 "destination (device|file)."
27702 msgstr ""
27703
27704 #. type: textblock
27705 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
27706 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:1577
27707 #: ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1762
27708 #: ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:1838
27709 #: ../src/guestfs-actions.pod:2215 ../src/guestfs-actions.pod:2237
27710 #: ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:8034
27711 #: ../src/guestfs-actions.pod:8068 ../src/guestfs-actions.pod:8575
27712 #: ../src/guestfs-actions.pod:8598
27713 msgid ""
27714 "This long-running command can generate progress notification messages so "
27715 "that the caller can display a progress bar or indicator.  To receive these "
27716 "messages, the caller must register a progress event callback.  See L<guestfs"
27717 "(3)/GUESTFS_EVENT_PROGRESS>."
27718 msgstr ""
27719
27720 #. type: textblock
27721 #: ../src/guestfs-actions.pod:1418 ../src/guestfs-actions.pod:1471
27722 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1582
27723 #: ../src/guestfs-actions.pod:6247
27724 msgid "(Added in 1.13.25)"
27725 msgstr ""
27726
27727 #. type: =head2
27728 #: ../src/guestfs-actions.pod:1420
27729 msgid "guestfs_copy_device_to_device_va"
27730 msgstr ""
27731
27732 #. type: verbatim
27733 #: ../src/guestfs-actions.pod:1422
27734 #, no-wrap
27735 msgid ""
27736 " int\n"
27737 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27738 "                                   const char *src,\n"
27739 "                                   const char *dest,\n"
27740 "                                   va_list args);\n"
27741 "\n"
27742 msgstr ""
27743
27744 #. type: textblock
27745 #: ../src/guestfs-actions.pod:1428
27746 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27747 msgstr ""
27748
27749 #. type: =head2
27750 #: ../src/guestfs-actions.pod:1432
27751 msgid "guestfs_copy_device_to_device_argv"
27752 msgstr ""
27753
27754 #. type: verbatim
27755 #: ../src/guestfs-actions.pod:1434
27756 #, no-wrap
27757 msgid ""
27758 " int\n"
27759 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27760 "                                     const char *src,\n"
27761 "                                     const char *dest,\n"
27762 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
27763 "\n"
27764 msgstr ""
27765
27766 #. type: textblock
27767 #: ../src/guestfs-actions.pod:1440
27768 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27769 msgstr ""
27770
27771 #. type: =head2
27772 #: ../src/guestfs-actions.pod:1444
27773 msgid "guestfs_copy_device_to_file"
27774 msgstr ""
27775
27776 #. type: verbatim
27777 #: ../src/guestfs-actions.pod:1446
27778 #, no-wrap
27779 msgid ""
27780 " int\n"
27781 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27782 "                              const char *src,\n"
27783 "                              const char *dest,\n"
27784 "                              ...);\n"
27785 "\n"
27786 msgstr ""
27787
27788 #. type: verbatim
27789 #: ../src/guestfs-actions.pod:1457
27790 #, no-wrap
27791 msgid ""
27792 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27793 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27794 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27795 "\n"
27796 msgstr ""
27797
27798 #. type: textblock
27799 #: ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:1514
27800 #: ../src/guestfs-actions.pod:1567
27801 msgid ""
27802 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27803 msgstr ""
27804
27805 #. type: =head2
27806 #: ../src/guestfs-actions.pod:1473
27807 msgid "guestfs_copy_device_to_file_va"
27808 msgstr ""
27809
27810 #. type: verbatim
27811 #: ../src/guestfs-actions.pod:1475
27812 #, no-wrap
27813 msgid ""
27814 " int\n"
27815 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27816 "                                 const char *src,\n"
27817 "                                 const char *dest,\n"
27818 "                                 va_list args);\n"
27819 "\n"
27820 msgstr ""
27821
27822 #. type: textblock
27823 #: ../src/guestfs-actions.pod:1481
27824 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27825 msgstr ""
27826
27827 #. type: =head2
27828 #: ../src/guestfs-actions.pod:1485
27829 msgid "guestfs_copy_device_to_file_argv"
27830 msgstr ""
27831
27832 #. type: verbatim
27833 #: ../src/guestfs-actions.pod:1487
27834 #, no-wrap
27835 msgid ""
27836 " int\n"
27837 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27838 "                                   const char *src,\n"
27839 "                                   const char *dest,\n"
27840 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
27841 "\n"
27842 msgstr ""
27843
27844 #. type: textblock
27845 #: ../src/guestfs-actions.pod:1493
27846 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27847 msgstr ""
27848
27849 #. type: =head2
27850 #: ../src/guestfs-actions.pod:1497
27851 msgid "guestfs_copy_file_to_device"
27852 msgstr ""
27853
27854 #. type: verbatim
27855 #: ../src/guestfs-actions.pod:1499
27856 #, no-wrap
27857 msgid ""
27858 " int\n"
27859 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27860 "                              const char *src,\n"
27861 "                              const char *dest,\n"
27862 "                              ...);\n"
27863 "\n"
27864 msgstr ""
27865
27866 #. type: verbatim
27867 #: ../src/guestfs-actions.pod:1510
27868 #, no-wrap
27869 msgid ""
27870 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27871 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27872 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27873 "\n"
27874 msgstr ""
27875
27876 #. type: =head2
27877 #: ../src/guestfs-actions.pod:1526
27878 msgid "guestfs_copy_file_to_device_va"
27879 msgstr ""
27880
27881 #. type: verbatim
27882 #: ../src/guestfs-actions.pod:1528
27883 #, no-wrap
27884 msgid ""
27885 " int\n"
27886 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27887 "                                 const char *src,\n"
27888 "                                 const char *dest,\n"
27889 "                                 va_list args);\n"
27890 "\n"
27891 msgstr ""
27892
27893 #. type: textblock
27894 #: ../src/guestfs-actions.pod:1534
27895 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27896 msgstr ""
27897
27898 #. type: =head2
27899 #: ../src/guestfs-actions.pod:1538
27900 msgid "guestfs_copy_file_to_device_argv"
27901 msgstr ""
27902
27903 #. type: verbatim
27904 #: ../src/guestfs-actions.pod:1540
27905 #, no-wrap
27906 msgid ""
27907 " int\n"
27908 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27909 "                                   const char *src,\n"
27910 "                                   const char *dest,\n"
27911 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
27912 "\n"
27913 msgstr ""
27914
27915 #. type: textblock
27916 #: ../src/guestfs-actions.pod:1546
27917 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27918 msgstr ""
27919
27920 #. type: =head2
27921 #: ../src/guestfs-actions.pod:1550
27922 msgid "guestfs_copy_file_to_file"
27923 msgstr ""
27924
27925 #. type: verbatim
27926 #: ../src/guestfs-actions.pod:1552
27927 #, no-wrap
27928 msgid ""
27929 " int\n"
27930 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27931 "                            const char *src,\n"
27932 "                            const char *dest,\n"
27933 "                            ...);\n"
27934 "\n"
27935 msgstr ""
27936
27937 #. type: verbatim
27938 #: ../src/guestfs-actions.pod:1563
27939 #, no-wrap
27940 msgid ""
27941 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27942 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27943 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27944 "\n"
27945 msgstr ""
27946
27947 #. type: textblock
27948 #: ../src/guestfs-actions.pod:1570
27949 msgid ""
27950 "This is B<not> the function you want for copying files.  This is for copying "
27951 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
27952 "C<guestfs_mv> for general file copying and moving functions."
27953 msgstr ""
27954
27955 #. type: =head2
27956 #: ../src/guestfs-actions.pod:1584
27957 msgid "guestfs_copy_file_to_file_va"
27958 msgstr ""
27959
27960 #. type: verbatim
27961 #: ../src/guestfs-actions.pod:1586
27962 #, no-wrap
27963 msgid ""
27964 " int\n"
27965 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27966 "                               const char *src,\n"
27967 "                               const char *dest,\n"
27968 "                               va_list args);\n"
27969 "\n"
27970 msgstr ""
27971
27972 #. type: textblock
27973 #: ../src/guestfs-actions.pod:1592
27974 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27975 msgstr ""
27976
27977 #. type: =head2
27978 #: ../src/guestfs-actions.pod:1596
27979 msgid "guestfs_copy_file_to_file_argv"
27980 msgstr ""
27981
27982 #. type: verbatim
27983 #: ../src/guestfs-actions.pod:1598
27984 #, no-wrap
27985 msgid ""
27986 " int\n"
27987 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27988 "                                 const char *src,\n"
27989 "                                 const char *dest,\n"
27990 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
27991 "\n"
27992 msgstr ""
27993
27994 #. type: textblock
27995 #: ../src/guestfs-actions.pod:1604
27996 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27997 msgstr ""
27998
27999 #. type: =head2
28000 #: ../src/guestfs-actions.pod:1608
28001 msgid "guestfs_copy_size"
28002 msgstr ""
28003
28004 #. type: verbatim
28005 #: ../src/guestfs-actions.pod:1610
28006 #, no-wrap
28007 msgid ""
28008 " int\n"
28009 " guestfs_copy_size (guestfs_h *g,\n"
28010 "                    const char *src,\n"
28011 "                    const char *dest,\n"
28012 "                    int64_t size);\n"
28013 "\n"
28014 msgstr ""
28015
28016 #. type: textblock
28017 #: ../src/guestfs-actions.pod:1616 ../src/guestfs-actions.pod:1673
28018 msgid ""
28019 "I<This function is deprecated.> In new code, use the L</"
28020 "guestfs_copy_device_to_device> call instead."
28021 msgstr ""
28022
28023 #. type: textblock
28024 #: ../src/guestfs-actions.pod:1636 ../src/guestfs-actions.pod:4876
28025 #: ../src/guestfs-actions.pod:6417 ../src/guestfs-actions.pod:8269
28026 #: ../src/guestfs-actions.pod:8289 ../src/guestfs-actions.pod:8375
28027 msgid "(Added in 1.0.87)"
28028 msgstr ""
28029
28030 #. type: =head2
28031 #: ../src/guestfs-actions.pod:1638
28032 msgid "guestfs_cp"
28033 msgstr ""
28034
28035 #. type: verbatim
28036 #: ../src/guestfs-actions.pod:1640
28037 #, no-wrap
28038 msgid ""
28039 " int\n"
28040 " guestfs_cp (guestfs_h *g,\n"
28041 "             const char *src,\n"
28042 "             const char *dest);\n"
28043 "\n"
28044 msgstr ""
28045
28046 #. type: textblock
28047 #: ../src/guestfs-actions.pod:1650 ../src/guestfs-actions.pod:1664
28048 #: ../src/guestfs-actions.pod:1744 ../src/guestfs-actions.pod:1818
28049 #: ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:5769
28050 #: ../src/guestfs-actions.pod:6261
28051 msgid "(Added in 1.0.18)"
28052 msgstr ""
28053
28054 #. type: =head2
28055 #: ../src/guestfs-actions.pod:1652
28056 msgid "guestfs_cp_a"
28057 msgstr ""
28058
28059 #. type: verbatim
28060 #: ../src/guestfs-actions.pod:1654
28061 #, no-wrap
28062 msgid ""
28063 " int\n"
28064 " guestfs_cp_a (guestfs_h *g,\n"
28065 "               const char *src,\n"
28066 "               const char *dest);\n"
28067 "\n"
28068 msgstr ""
28069
28070 #. type: =head2
28071 #: ../src/guestfs-actions.pod:1666
28072 msgid "guestfs_dd"
28073 msgstr ""
28074
28075 #. type: verbatim
28076 #: ../src/guestfs-actions.pod:1668
28077 #, no-wrap
28078 msgid ""
28079 " int\n"
28080 " guestfs_dd (guestfs_h *g,\n"
28081 "             const char *src,\n"
28082 "             const char *dest);\n"
28083 "\n"
28084 msgstr ""
28085
28086 #. type: textblock
28087 #: ../src/guestfs-actions.pod:1685
28088 msgid ""
28089 "If the destination is a device, it must be as large or larger than the "
28090 "source file or device, otherwise the copy will fail.  This command cannot do "
28091 "partial copies (see C<guestfs_copy_device_to_device>)."
28092 msgstr ""
28093
28094 #. type: =head2
28095 #: ../src/guestfs-actions.pod:1694
28096 msgid "guestfs_df"
28097 msgstr ""
28098
28099 #. type: verbatim
28100 #: ../src/guestfs-actions.pod:1696
28101 #, no-wrap
28102 msgid ""
28103 " char *\n"
28104 " guestfs_df (guestfs_h *g);\n"
28105 "\n"
28106 msgstr ""
28107
28108 #. type: textblock
28109 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1718
28110 msgid ""
28111 "This command is mostly useful for interactive sessions.  It is I<not> "
28112 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
28113 "from programs."
28114 msgstr ""
28115
28116 #. type: textblock
28117 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:1725
28118 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:2850
28119 #: ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:2942
28120 #: ../src/guestfs-actions.pod:5135 ../src/guestfs-actions.pod:5669
28121 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7674
28122 #: ../src/guestfs-actions.pod:8415 ../src/guestfs-actions.pod:8428
28123 #: ../src/guestfs-actions.pod:8441
28124 msgid "(Added in 1.0.54)"
28125 msgstr ""
28126
28127 #. type: =head2
28128 #: ../src/guestfs-actions.pod:1710
28129 msgid "guestfs_df_h"
28130 msgstr ""
28131
28132 #. type: verbatim
28133 #: ../src/guestfs-actions.pod:1712
28134 #, no-wrap
28135 msgid ""
28136 " char *\n"
28137 " guestfs_df_h (guestfs_h *g);\n"
28138 "\n"
28139 msgstr ""
28140
28141 #. type: =head2
28142 #: ../src/guestfs-actions.pod:1727
28143 msgid "guestfs_dmesg"
28144 msgstr ""
28145
28146 #. type: verbatim
28147 #: ../src/guestfs-actions.pod:1729
28148 #, no-wrap
28149 msgid ""
28150 " char *\n"
28151 " guestfs_dmesg (guestfs_h *g);\n"
28152 "\n"
28153 msgstr ""
28154
28155 #. type: textblock
28156 #: ../src/guestfs-actions.pod:1736
28157 msgid ""
28158 "Another way to get the same information is to enable verbose messages with "
28159 "C<guestfs_set_verbose> or by setting the environment variable "
28160 "C<LIBGUESTFS_DEBUG=1> before running the program."
28161 msgstr ""
28162
28163 #. type: =head2
28164 #: ../src/guestfs-actions.pod:1746
28165 msgid "guestfs_download"
28166 msgstr ""
28167
28168 #. type: verbatim
28169 #: ../src/guestfs-actions.pod:1748
28170 #, no-wrap
28171 msgid ""
28172 " int\n"
28173 " guestfs_download (guestfs_h *g,\n"
28174 "                   const char *remotefilename,\n"
28175 "                   const char *filename);\n"
28176 "\n"
28177 msgstr ""
28178
28179 #. type: textblock
28180 #: ../src/guestfs-actions.pod:1758
28181 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
28182 msgstr ""
28183
28184 #. type: =head2
28185 #: ../src/guestfs-actions.pod:1769
28186 msgid "guestfs_download_offset"
28187 msgstr ""
28188
28189 #. type: verbatim
28190 #: ../src/guestfs-actions.pod:1771
28191 #, no-wrap
28192 msgid ""
28193 " int\n"
28194 " guestfs_download_offset (guestfs_h *g,\n"
28195 "                          const char *remotefilename,\n"
28196 "                          const char *filename,\n"
28197 "                          int64_t offset,\n"
28198 "                          int64_t size);\n"
28199 "\n"
28200 msgstr ""
28201
28202 #. type: textblock
28203 #: ../src/guestfs-actions.pod:1784
28204 msgid ""
28205 "Note that there is no limit on the amount of data that can be downloaded "
28206 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
28207 "full amount unless an error occurs."
28208 msgstr ""
28209
28210 #. type: textblock
28211 #: ../src/guestfs-actions.pod:1789
28212 msgid "See also C<guestfs_download>, C<guestfs_pread>."
28213 msgstr ""
28214
28215 #. type: textblock
28216 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:8073
28217 msgid "(Added in 1.5.17)"
28218 msgstr ""
28219
28220 #. type: =head2
28221 #: ../src/guestfs-actions.pod:1800
28222 msgid "guestfs_drop_caches"
28223 msgstr ""
28224
28225 #. type: verbatim
28226 #: ../src/guestfs-actions.pod:1802
28227 #, no-wrap
28228 msgid ""
28229 " int\n"
28230 " guestfs_drop_caches (guestfs_h *g,\n"
28231 "                      int whattodrop);\n"
28232 "\n"
28233 msgstr ""
28234
28235 #. type: =head2
28236 #: ../src/guestfs-actions.pod:1820
28237 msgid "guestfs_du"
28238 msgstr ""
28239
28240 #. type: verbatim
28241 #: ../src/guestfs-actions.pod:1822
28242 #, no-wrap
28243 msgid ""
28244 " int64_t\n"
28245 " guestfs_du (guestfs_h *g,\n"
28246 "             const char *path);\n"
28247 "\n"
28248 msgstr ""
28249
28250 #. type: =head2
28251 #: ../src/guestfs-actions.pod:1845
28252 msgid "guestfs_e2fsck_f"
28253 msgstr ""
28254
28255 #. type: verbatim
28256 #: ../src/guestfs-actions.pod:1847
28257 #, no-wrap
28258 msgid ""
28259 " int\n"
28260 " guestfs_e2fsck_f (guestfs_h *g,\n"
28261 "                   const char *device);\n"
28262 "\n"
28263 msgstr ""
28264
28265 #. type: textblock
28266 #: ../src/guestfs-actions.pod:1855
28267 msgid ""
28268 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
28269 "Normally you should use C<guestfs_fsck>."
28270 msgstr ""
28271
28272 #. type: textblock
28273 #: ../src/guestfs-actions.pod:1860
28274 msgid "(Added in 1.0.29)"
28275 msgstr ""
28276
28277 #. type: =head2
28278 #: ../src/guestfs-actions.pod:1862
28279 msgid "guestfs_echo_daemon"
28280 msgstr ""
28281
28282 #. type: verbatim
28283 #: ../src/guestfs-actions.pod:1864
28284 #, no-wrap
28285 msgid ""
28286 " char *\n"
28287 " guestfs_echo_daemon (guestfs_h *g,\n"
28288 "                      char *const *words);\n"
28289 "\n"
28290 msgstr ""
28291
28292 #. type: textblock
28293 #: ../src/guestfs-actions.pod:1873
28294 msgid "See also C<guestfs_ping_daemon>."
28295 msgstr ""
28296
28297 #. type: textblock
28298 #: ../src/guestfs-actions.pod:1878 ../src/guestfs-actions.pod:2636
28299 #: ../src/guestfs-actions.pod:7131
28300 msgid "(Added in 1.0.69)"
28301 msgstr ""
28302
28303 #. type: =head2
28304 #: ../src/guestfs-actions.pod:1880
28305 msgid "guestfs_egrep"
28306 msgstr ""
28307
28308 #. type: verbatim
28309 #: ../src/guestfs-actions.pod:1882
28310 #, no-wrap
28311 msgid ""
28312 " char **\n"
28313 " guestfs_egrep (guestfs_h *g,\n"
28314 "                const char *regex,\n"
28315 "                const char *path);\n"
28316 "\n"
28317 msgstr ""
28318
28319 #. type: textblock
28320 #: ../src/guestfs-actions.pod:1897 ../src/guestfs-actions.pod:1916
28321 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:2019
28322 #: ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:2766
28323 #: ../src/guestfs-actions.pod:2785 ../src/guestfs-actions.pod:2963
28324 #: ../src/guestfs-actions.pod:2976 ../src/guestfs-actions.pod:2991
28325 #: ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3059
28326 #: ../src/guestfs-actions.pod:3072 ../src/guestfs-actions.pod:4375
28327 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4402
28328 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:5557
28329 #: ../src/guestfs-actions.pod:6595 ../src/guestfs-actions.pod:6644
28330 #: ../src/guestfs-actions.pod:7518 ../src/guestfs-actions.pod:7530
28331 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7556
28332 #: ../src/guestfs-actions.pod:7578 ../src/guestfs-actions.pod:7591
28333 #: ../src/guestfs-actions.pod:7604 ../src/guestfs-actions.pod:7617
28334 #: ../src/guestfs-actions.pod:8533 ../src/guestfs-actions.pod:8552
28335 #: ../src/guestfs-actions.pod:8643 ../src/guestfs-actions.pod:8662
28336 #: ../src/guestfs-actions.pod:8708 ../src/guestfs-actions.pod:8727
28337 msgid "(Added in 1.0.66)"
28338 msgstr ""
28339
28340 #. type: =head2
28341 #: ../src/guestfs-actions.pod:1899
28342 msgid "guestfs_egrepi"
28343 msgstr ""
28344
28345 #. type: verbatim
28346 #: ../src/guestfs-actions.pod:1901
28347 #, no-wrap
28348 msgid ""
28349 " char **\n"
28350 " guestfs_egrepi (guestfs_h *g,\n"
28351 "                 const char *regex,\n"
28352 "                 const char *path);\n"
28353 "\n"
28354 msgstr ""
28355
28356 #. type: =head2
28357 #: ../src/guestfs-actions.pod:1918
28358 msgid "guestfs_equal"
28359 msgstr ""
28360
28361 #. type: verbatim
28362 #: ../src/guestfs-actions.pod:1920
28363 #, no-wrap
28364 msgid ""
28365 " int\n"
28366 " guestfs_equal (guestfs_h *g,\n"
28367 "                const char *file1,\n"
28368 "                const char *file2);\n"
28369 "\n"
28370 msgstr ""
28371
28372 #. type: =head2
28373 #: ../src/guestfs-actions.pod:1934
28374 msgid "guestfs_exists"
28375 msgstr ""
28376
28377 #. type: verbatim
28378 #: ../src/guestfs-actions.pod:1936
28379 #, no-wrap
28380 msgid ""
28381 " int\n"
28382 " guestfs_exists (guestfs_h *g,\n"
28383 "                 const char *path);\n"
28384 "\n"
28385 msgstr ""
28386
28387 #. type: textblock
28388 #: ../src/guestfs-actions.pod:1943
28389 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
28390 msgstr ""
28391
28392 #. type: =head2
28393 #: ../src/guestfs-actions.pod:1949
28394 msgid "guestfs_fallocate"
28395 msgstr ""
28396
28397 #. type: verbatim
28398 #: ../src/guestfs-actions.pod:1951
28399 #, no-wrap
28400 msgid ""
28401 " int\n"
28402 " guestfs_fallocate (guestfs_h *g,\n"
28403 "                    const char *path,\n"
28404 "                    int len);\n"
28405 "\n"
28406 msgstr ""
28407
28408 #. type: textblock
28409 #: ../src/guestfs-actions.pod:1956
28410 msgid ""
28411 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
28412 "call instead."
28413 msgstr ""
28414
28415 #. type: =head2
28416 #: ../src/guestfs-actions.pod:1975
28417 msgid "guestfs_fallocate64"
28418 msgstr ""
28419
28420 #. type: verbatim
28421 #: ../src/guestfs-actions.pod:1977
28422 #, no-wrap
28423 msgid ""
28424 " int\n"
28425 " guestfs_fallocate64 (guestfs_h *g,\n"
28426 "                      const char *path,\n"
28427 "                      int64_t len);\n"
28428 "\n"
28429 msgstr ""
28430
28431 #. type: textblock
28432 #: ../src/guestfs-actions.pod:1986
28433 msgid ""
28434 "Note that this call allocates disk blocks for the file.  To create a sparse "
28435 "file use C<guestfs_truncate_size> instead."
28436 msgstr ""
28437
28438 #. type: textblock
28439 #: ../src/guestfs-actions.pod:1989
28440 msgid ""
28441 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
28442 "oversight it only allowed 30 bit lengths to be specified, effectively "
28443 "limiting the maximum size of files created through that call to 1GB."
28444 msgstr ""
28445
28446 #. type: textblock
28447 #: ../src/guestfs-actions.pod:2000
28448 msgid "(Added in 1.3.17)"
28449 msgstr ""
28450
28451 #. type: =head2
28452 #: ../src/guestfs-actions.pod:2002
28453 msgid "guestfs_fgrep"
28454 msgstr ""
28455
28456 #. type: verbatim
28457 #: ../src/guestfs-actions.pod:2004
28458 #, no-wrap
28459 msgid ""
28460 " char **\n"
28461 " guestfs_fgrep (guestfs_h *g,\n"
28462 "                const char *pattern,\n"
28463 "                const char *path);\n"
28464 "\n"
28465 msgstr ""
28466
28467 #. type: =head2
28468 #: ../src/guestfs-actions.pod:2021
28469 msgid "guestfs_fgrepi"
28470 msgstr ""
28471
28472 #. type: verbatim
28473 #: ../src/guestfs-actions.pod:2023
28474 #, no-wrap
28475 msgid ""
28476 " char **\n"
28477 " guestfs_fgrepi (guestfs_h *g,\n"
28478 "                 const char *pattern,\n"
28479 "                 const char *path);\n"
28480 "\n"
28481 msgstr ""
28482
28483 #. type: =head2
28484 #: ../src/guestfs-actions.pod:2040
28485 msgid "guestfs_file"
28486 msgstr ""
28487
28488 #. type: verbatim
28489 #: ../src/guestfs-actions.pod:2042
28490 #, no-wrap
28491 msgid ""
28492 " char *\n"
28493 " guestfs_file (guestfs_h *g,\n"
28494 "               const char *path);\n"
28495 "\n"
28496 msgstr ""
28497
28498 #. type: textblock
28499 #: ../src/guestfs-actions.pod:2060
28500 msgid ""
28501 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
28502 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
28503 msgstr ""
28504
28505 #. type: =head2
28506 #: ../src/guestfs-actions.pod:2068
28507 msgid "guestfs_file_architecture"
28508 msgstr ""
28509
28510 #. type: verbatim
28511 #: ../src/guestfs-actions.pod:2070
28512 #, no-wrap
28513 msgid ""
28514 " char *\n"
28515 " guestfs_file_architecture (guestfs_h *g,\n"
28516 "                            const char *filename);\n"
28517 "\n"
28518 msgstr ""
28519
28520 #. type: textblock
28521 #: ../src/guestfs-actions.pod:2178 ../src/guestfs-actions.pod:2341
28522 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3092
28523 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3260
28524 #: ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3465
28525 #: ../src/guestfs-actions.pod:3505 ../src/guestfs-actions.pod:3581
28526 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3919
28527 #: ../src/guestfs-actions.pod:4051
28528 msgid "(Added in 1.5.3)"
28529 msgstr ""
28530
28531 #. type: =head2
28532 #: ../src/guestfs-actions.pod:2180
28533 msgid "guestfs_filesize"
28534 msgstr ""
28535
28536 #. type: verbatim
28537 #: ../src/guestfs-actions.pod:2182
28538 #, no-wrap
28539 msgid ""
28540 " int64_t\n"
28541 " guestfs_filesize (guestfs_h *g,\n"
28542 "                   const char *file);\n"
28543 "\n"
28544 msgstr ""
28545
28546 #. type: textblock
28547 #: ../src/guestfs-actions.pod:2188
28548 msgid ""
28549 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
28550 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
28551 "devices, use C<guestfs_blockdev_getsize64>."
28552 msgstr ""
28553
28554 #. type: textblock
28555 #: ../src/guestfs-actions.pod:2194
28556 msgid "(Added in 1.0.82)"
28557 msgstr ""
28558
28559 #. type: =head2
28560 #: ../src/guestfs-actions.pod:2196
28561 msgid "guestfs_fill"
28562 msgstr ""
28563
28564 #. type: verbatim
28565 #: ../src/guestfs-actions.pod:2198
28566 #, no-wrap
28567 msgid ""
28568 " int\n"
28569 " guestfs_fill (guestfs_h *g,\n"
28570 "               int c,\n"
28571 "               int len,\n"
28572 "               const char *path);\n"
28573 "\n"
28574 msgstr ""
28575
28576 #. type: textblock
28577 #: ../src/guestfs-actions.pod:2208
28578 msgid ""
28579 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
28580 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
28581 "bytes use C<guestfs_fill_pattern>."
28582 msgstr ""
28583
28584 #. type: textblock
28585 #: ../src/guestfs-actions.pod:2220
28586 msgid "(Added in 1.0.79)"
28587 msgstr ""
28588
28589 #. type: =head2
28590 #: ../src/guestfs-actions.pod:2222
28591 msgid "guestfs_fill_pattern"
28592 msgstr ""
28593
28594 #. type: verbatim
28595 #: ../src/guestfs-actions.pod:2224
28596 #, no-wrap
28597 msgid ""
28598 " int\n"
28599 " guestfs_fill_pattern (guestfs_h *g,\n"
28600 "                       const char *pattern,\n"
28601 "                       int len,\n"
28602 "                       const char *path);\n"
28603 "\n"
28604 msgstr ""
28605
28606 #. type: textblock
28607 #: ../src/guestfs-actions.pod:2230
28608 msgid ""
28609 "This function is like C<guestfs_fill> except that it creates a new file of "
28610 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
28611 "pattern is truncated if necessary to ensure the length of the file is "
28612 "exactly C<len> bytes."
28613 msgstr ""
28614
28615 #. type: textblock
28616 #: ../src/guestfs-actions.pod:2242
28617 msgid "(Added in 1.3.12)"
28618 msgstr ""
28619
28620 #. type: =head2
28621 #: ../src/guestfs-actions.pod:2244
28622 msgid "guestfs_find"
28623 msgstr ""
28624
28625 #. type: verbatim
28626 #: ../src/guestfs-actions.pod:2246
28627 #, no-wrap
28628 msgid ""
28629 " char **\n"
28630 " guestfs_find (guestfs_h *g,\n"
28631 "               const char *directory);\n"
28632 "\n"
28633 msgstr ""
28634
28635 #. type: textblock
28636 #: ../src/guestfs-actions.pod:2262
28637 msgid ""
28638 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28639 msgstr ""
28640
28641 #. type: textblock
28642 #: ../src/guestfs-actions.pod:2275
28643 msgid "See also C<guestfs_find0>."
28644 msgstr ""
28645
28646 #. type: textblock
28647 #: ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:4813
28648 #: ../src/guestfs-actions.pod:6679
28649 msgid "(Added in 1.0.27)"
28650 msgstr ""
28651
28652 #. type: =head2
28653 #: ../src/guestfs-actions.pod:2286
28654 msgid "guestfs_find0"
28655 msgstr ""
28656
28657 #. type: verbatim
28658 #: ../src/guestfs-actions.pod:2288
28659 #, no-wrap
28660 msgid ""
28661 " int\n"
28662 " guestfs_find0 (guestfs_h *g,\n"
28663 "                const char *directory,\n"
28664 "                const char *files);\n"
28665 "\n"
28666 msgstr ""
28667
28668 #. type: textblock
28669 #: ../src/guestfs-actions.pod:2297
28670 msgid ""
28671 "This command works the same way as C<guestfs_find> with the following "
28672 "exceptions:"
28673 msgstr ""
28674
28675 #. type: textblock
28676 #: ../src/guestfs-actions.pod:2324
28677 msgid "(Added in 1.0.74)"
28678 msgstr ""
28679
28680 #. type: =head2
28681 #: ../src/guestfs-actions.pod:2326
28682 msgid "guestfs_findfs_label"
28683 msgstr ""
28684
28685 #. type: verbatim
28686 #: ../src/guestfs-actions.pod:2328
28687 #, no-wrap
28688 msgid ""
28689 " char *\n"
28690 " guestfs_findfs_label (guestfs_h *g,\n"
28691 "                       const char *label);\n"
28692 "\n"
28693 msgstr ""
28694
28695 #. type: textblock
28696 #: ../src/guestfs-actions.pod:2336
28697 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28698 msgstr ""
28699
28700 #. type: =head2
28701 #: ../src/guestfs-actions.pod:2343
28702 msgid "guestfs_findfs_uuid"
28703 msgstr ""
28704
28705 #. type: verbatim
28706 #: ../src/guestfs-actions.pod:2345
28707 #, no-wrap
28708 msgid ""
28709 " char *\n"
28710 " guestfs_findfs_uuid (guestfs_h *g,\n"
28711 "                      const char *uuid);\n"
28712 "\n"
28713 msgstr ""
28714
28715 #. type: textblock
28716 #: ../src/guestfs-actions.pod:2353
28717 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28718 msgstr ""
28719
28720 #. type: =head2
28721 #: ../src/guestfs-actions.pod:2360
28722 msgid "guestfs_fsck"
28723 msgstr ""
28724
28725 #. type: verbatim
28726 #: ../src/guestfs-actions.pod:2362
28727 #, no-wrap
28728 msgid ""
28729 " int\n"
28730 " guestfs_fsck (guestfs_h *g,\n"
28731 "               const char *fstype,\n"
28732 "               const char *device);\n"
28733 "\n"
28734 msgstr ""
28735
28736 #. type: textblock
28737 #: ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:8580
28738 msgid "(Added in 1.0.16)"
28739 msgstr ""
28740
28741 #. type: =head2
28742 #: ../src/guestfs-actions.pod:2399
28743 msgid "guestfs_get_append"
28744 msgstr ""
28745
28746 #. type: verbatim
28747 #: ../src/guestfs-actions.pod:2401
28748 #, no-wrap
28749 msgid ""
28750 " const char *\n"
28751 " guestfs_get_append (guestfs_h *g);\n"
28752 "\n"
28753 msgstr ""
28754
28755 #. type: textblock
28756 #: ../src/guestfs-actions.pod:2409
28757 msgid ""
28758 "This function returns a string which may be NULL.  There is no way to return "
28759 "an error from this function.  The string is owned by the guest handle and "
28760 "must I<not> be freed."
28761 msgstr ""
28762
28763 #. type: textblock
28764 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6357
28765 #: ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:7285
28766 #: ../src/guestfs-actions.pod:7304 ../src/guestfs-actions.pod:7320
28767 #: ../src/guestfs-actions.pod:7344 ../src/guestfs-actions.pod:8220
28768 #: ../src/guestfs-actions.pod:8235 ../src/guestfs-actions.pod:8624
28769 msgid "(Added in 1.0.26)"
28770 msgstr ""
28771
28772 #. type: =head2
28773 #: ../src/guestfs-actions.pod:2415
28774 msgid "guestfs_get_attach_method"
28775 msgstr ""
28776
28777 #. type: verbatim
28778 #: ../src/guestfs-actions.pod:2417
28779 #, no-wrap
28780 msgid ""
28781 " char *\n"
28782 " guestfs_get_attach_method (guestfs_h *g);\n"
28783 "\n"
28784 msgstr ""
28785
28786 #. type: textblock
28787 #: ../src/guestfs-actions.pod:2420
28788 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28789 msgstr ""
28790
28791 #. type: textblock
28792 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:6866
28793 msgid "(Added in 1.9.8)"
28794 msgstr ""
28795
28796 #. type: =head2
28797 #: ../src/guestfs-actions.pod:2427
28798 msgid "guestfs_get_autosync"
28799 msgstr ""
28800
28801 #. type: verbatim
28802 #: ../src/guestfs-actions.pod:2429
28803 #, no-wrap
28804 msgid ""
28805 " int\n"
28806 " guestfs_get_autosync (guestfs_h *g);\n"
28807 "\n"
28808 msgstr ""
28809
28810 #. type: =head2
28811 #: ../src/guestfs-actions.pod:2438
28812 msgid "guestfs_get_direct"
28813 msgstr ""
28814
28815 #. type: verbatim
28816 #: ../src/guestfs-actions.pod:2440
28817 #, no-wrap
28818 msgid ""
28819 " int\n"
28820 " guestfs_get_direct (guestfs_h *g);\n"
28821 "\n"
28822 msgstr ""
28823
28824 #. type: textblock
28825 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:6907
28826 msgid "(Added in 1.0.72)"
28827 msgstr ""
28828
28829 #. type: =head2
28830 #: ../src/guestfs-actions.pod:2449
28831 msgid "guestfs_get_e2label"
28832 msgstr ""
28833
28834 #. type: verbatim
28835 #: ../src/guestfs-actions.pod:2451
28836 #, no-wrap
28837 msgid ""
28838 " char *\n"
28839 " guestfs_get_e2label (guestfs_h *g,\n"
28840 "                      const char *device);\n"
28841 "\n"
28842 msgstr ""
28843
28844 #. type: textblock
28845 #: ../src/guestfs-actions.pod:2455
28846 msgid ""
28847 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28848 "call instead."
28849 msgstr ""
28850
28851 #. type: textblock
28852 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2489
28853 #: ../src/guestfs-actions.pod:6925 ../src/guestfs-actions.pod:6944
28854 msgid "(Added in 1.0.15)"
28855 msgstr ""
28856
28857 #. type: =head2
28858 #: ../src/guestfs-actions.pod:2470
28859 msgid "guestfs_get_e2uuid"
28860 msgstr ""
28861
28862 #. type: verbatim
28863 #: ../src/guestfs-actions.pod:2472
28864 #, no-wrap
28865 msgid ""
28866 " char *\n"
28867 " guestfs_get_e2uuid (guestfs_h *g,\n"
28868 "                     const char *device);\n"
28869 "\n"
28870 msgstr ""
28871
28872 #. type: textblock
28873 #: ../src/guestfs-actions.pod:2476
28874 msgid ""
28875 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28876 "call instead."
28877 msgstr ""
28878
28879 #. type: =head2
28880 #: ../src/guestfs-actions.pod:2491
28881 msgid "guestfs_get_memsize"
28882 msgstr ""
28883
28884 #. type: verbatim
28885 #: ../src/guestfs-actions.pod:2493
28886 #, no-wrap
28887 msgid ""
28888 " int\n"
28889 " guestfs_get_memsize (guestfs_h *g);\n"
28890 "\n"
28891 msgstr ""
28892
28893 #. type: textblock
28894 #: ../src/guestfs-actions.pod:2499
28895 msgid ""
28896 "If C<guestfs_set_memsize> was not called on this handle, and if "
28897 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28898 "value for memsize."
28899 msgstr ""
28900
28901 #. type: textblock
28902 #: ../src/guestfs-actions.pod:2508 ../src/guestfs-actions.pod:5253
28903 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5481
28904 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5512
28905 #: ../src/guestfs-actions.pod:5529 ../src/guestfs-actions.pod:5542
28906 #: ../src/guestfs-actions.pod:6582 ../src/guestfs-actions.pod:6965
28907 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7989
28908 msgid "(Added in 1.0.55)"
28909 msgstr ""
28910
28911 #. type: =head2
28912 #: ../src/guestfs-actions.pod:2510
28913 msgid "guestfs_get_network"
28914 msgstr ""
28915
28916 #. type: verbatim
28917 #: ../src/guestfs-actions.pod:2512
28918 #, no-wrap
28919 msgid ""
28920 " int\n"
28921 " guestfs_get_network (guestfs_h *g);\n"
28922 "\n"
28923 msgstr ""
28924
28925 #. type: textblock
28926 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:6984
28927 msgid "(Added in 1.5.4)"
28928 msgstr ""
28929
28930 #. type: =head2
28931 #: ../src/guestfs-actions.pod:2521
28932 msgid "guestfs_get_path"
28933 msgstr ""
28934
28935 #. type: verbatim
28936 #: ../src/guestfs-actions.pod:2523
28937 #, no-wrap
28938 msgid ""
28939 " const char *\n"
28940 " guestfs_get_path (guestfs_h *g);\n"
28941 "\n"
28942 msgstr ""
28943
28944 #. type: textblock
28945 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:2571
28946 msgid ""
28947 "This function returns a string, or NULL on error.  The string is owned by "
28948 "the guest handle and must I<not> be freed."
28949 msgstr ""
28950
28951 #. type: =head2
28952 #: ../src/guestfs-actions.pod:2536
28953 msgid "guestfs_get_pgroup"
28954 msgstr ""
28955
28956 #. type: verbatim
28957 #: ../src/guestfs-actions.pod:2538
28958 #, no-wrap
28959 msgid ""
28960 " int\n"
28961 " guestfs_get_pgroup (guestfs_h *g);\n"
28962 "\n"
28963 msgstr ""
28964
28965 #. type: textblock
28966 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:7020
28967 #: ../src/guestfs-actions.pod:8481
28968 msgid "(Added in 1.11.18)"
28969 msgstr ""
28970
28971 #. type: =head2
28972 #: ../src/guestfs-actions.pod:2547
28973 msgid "guestfs_get_pid"
28974 msgstr ""
28975
28976 #. type: verbatim
28977 #: ../src/guestfs-actions.pod:2549
28978 #, no-wrap
28979 msgid ""
28980 " int\n"
28981 " guestfs_get_pid (guestfs_h *g);\n"
28982 "\n"
28983 msgstr ""
28984
28985 #. type: textblock
28986 #: ../src/guestfs-actions.pod:2559
28987 msgid "(Added in 1.0.56)"
28988 msgstr ""
28989
28990 #. type: =head2
28991 #: ../src/guestfs-actions.pod:2561
28992 msgid "guestfs_get_qemu"
28993 msgstr ""
28994
28995 #. type: verbatim
28996 #: ../src/guestfs-actions.pod:2563
28997 #, no-wrap
28998 msgid ""
28999 " const char *\n"
29000 " guestfs_get_qemu (guestfs_h *g);\n"
29001 "\n"
29002 msgstr ""
29003
29004 #. type: textblock
29005 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:7048
29006 msgid "(Added in 1.0.6)"
29007 msgstr ""
29008
29009 #. type: =head2
29010 #: ../src/guestfs-actions.pod:2576
29011 msgid "guestfs_get_recovery_proc"
29012 msgstr ""
29013
29014 #. type: verbatim
29015 #: ../src/guestfs-actions.pod:2578
29016 #, no-wrap
29017 msgid ""
29018 " int\n"
29019 " guestfs_get_recovery_proc (guestfs_h *g);\n"
29020 "\n"
29021 msgstr ""
29022
29023 #. type: textblock
29024 #: ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:4173
29025 #: ../src/guestfs-actions.pod:4517 ../src/guestfs-actions.pod:4911
29026 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:6287
29027 #: ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:7072
29028 #: ../src/guestfs-actions.pod:7770 ../src/guestfs-actions.pod:7790
29029 #: ../src/guestfs-actions.pod:8104
29030 msgid "(Added in 1.0.77)"
29031 msgstr ""
29032
29033 #. type: =head2
29034 #: ../src/guestfs-actions.pod:2587
29035 msgid "guestfs_get_selinux"
29036 msgstr ""
29037
29038 #. type: verbatim
29039 #: ../src/guestfs-actions.pod:2589
29040 #, no-wrap
29041 msgid ""
29042 " int\n"
29043 " guestfs_get_selinux (guestfs_h *g);\n"
29044 "\n"
29045 msgstr ""
29046
29047 #. type: textblock
29048 #: ../src/guestfs-actions.pod:2592
29049 msgid ""
29050 "This returns the current setting of the selinux flag which is passed to the "
29051 "appliance at boot time.  See C<guestfs_set_selinux>."
29052 msgstr ""
29053
29054 #. type: textblock
29055 #: ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2674
29056 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7165
29057 msgid "(Added in 1.0.67)"
29058 msgstr ""
29059
29060 #. type: =head2
29061 #: ../src/guestfs-actions.pod:2602
29062 msgid "guestfs_get_smp"
29063 msgstr ""
29064
29065 #. type: verbatim
29066 #: ../src/guestfs-actions.pod:2604
29067 #, no-wrap
29068 msgid ""
29069 " int\n"
29070 " guestfs_get_smp (guestfs_h *g);\n"
29071 "\n"
29072 msgstr ""
29073
29074 #. type: =head2
29075 #: ../src/guestfs-actions.pod:2613
29076 msgid "guestfs_get_state"
29077 msgstr ""
29078
29079 #. type: verbatim
29080 #: ../src/guestfs-actions.pod:2615
29081 #, no-wrap
29082 msgid ""
29083 " int\n"
29084 " guestfs_get_state (guestfs_h *g);\n"
29085 "\n"
29086 msgstr ""
29087
29088 #. type: =head2
29089 #: ../src/guestfs-actions.pod:2627
29090 msgid "guestfs_get_trace"
29091 msgstr ""
29092
29093 #. type: verbatim
29094 #: ../src/guestfs-actions.pod:2629
29095 #, no-wrap
29096 msgid ""
29097 " int\n"
29098 " guestfs_get_trace (guestfs_h *g);\n"
29099 "\n"
29100 msgstr ""
29101
29102 #. type: =head2
29103 #: ../src/guestfs-actions.pod:2638
29104 msgid "guestfs_get_umask"
29105 msgstr ""
29106
29107 #. type: verbatim
29108 #: ../src/guestfs-actions.pod:2640
29109 #, no-wrap
29110 msgid ""
29111 " int\n"
29112 " guestfs_get_umask (guestfs_h *g);\n"
29113 "\n"
29114 msgstr ""
29115
29116 #. type: textblock
29117 #: ../src/guestfs-actions.pod:2643
29118 msgid ""
29119 "Return the current umask.  By default the umask is C<022> unless it has been "
29120 "set by calling C<guestfs_umask>."
29121 msgstr ""
29122
29123 #. type: =head2
29124 #: ../src/guestfs-actions.pod:2650
29125 msgid "guestfs_get_verbose"
29126 msgstr ""
29127
29128 #. type: verbatim
29129 #: ../src/guestfs-actions.pod:2652
29130 #, no-wrap
29131 msgid ""
29132 " int\n"
29133 " guestfs_get_verbose (guestfs_h *g);\n"
29134 "\n"
29135 msgstr ""
29136
29137 #. type: =head2
29138 #: ../src/guestfs-actions.pod:2661
29139 msgid "guestfs_getcon"
29140 msgstr ""
29141
29142 #. type: verbatim
29143 #: ../src/guestfs-actions.pod:2663
29144 #, no-wrap
29145 msgid ""
29146 " char *\n"
29147 " guestfs_getcon (guestfs_h *g);\n"
29148 "\n"
29149 msgstr ""
29150
29151 #. type: textblock
29152 #: ../src/guestfs-actions.pod:2668
29153 msgid ""
29154 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
29155 msgstr ""
29156
29157 #. type: =head2
29158 #: ../src/guestfs-actions.pod:2676
29159 msgid "guestfs_getxattr"
29160 msgstr ""
29161
29162 #. type: verbatim
29163 #: ../src/guestfs-actions.pod:2678
29164 #, no-wrap
29165 msgid ""
29166 " char *\n"
29167 " guestfs_getxattr (guestfs_h *g,\n"
29168 "                   const char *path,\n"
29169 "                   const char *name,\n"
29170 "                   size_t *size_r);\n"
29171 "\n"
29172 msgstr ""
29173
29174 #. type: textblock
29175 #: ../src/guestfs-actions.pod:2684
29176 msgid ""
29177 "Get a single extended attribute from file C<path> named C<name>.  This call "
29178 "follows symlinks.  If you want to lookup an extended attribute for the "
29179 "symlink itself, use C<guestfs_lgetxattr>."
29180 msgstr ""
29181
29182 #. type: textblock
29183 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:4187
29184 msgid ""
29185 "Normally it is better to get all extended attributes from a file in one go "
29186 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
29187 "implementations are buggy and do not provide a way to list out attributes.  "
29188 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
29189 "extended attributes you want in advance and call this function."
29190 msgstr ""
29191
29192 #. type: textblock
29193 #: ../src/guestfs-actions.pod:2698
29194 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
29195 msgstr ""
29196
29197 #. type: textblock
29198 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:2913
29199 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:4199
29200 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6306
29201 #: ../src/guestfs-actions.pod:6487
29202 msgid ""
29203 "This function returns a buffer, or NULL on error.  The size of the returned "
29204 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
29205 "after use>."
29206 msgstr ""
29207
29208 #. type: textblock
29209 #: ../src/guestfs-actions.pod:2704 ../src/guestfs-actions.pod:4203
29210 msgid "(Added in 1.7.24)"
29211 msgstr ""
29212
29213 #. type: =head2
29214 #: ../src/guestfs-actions.pod:2706
29215 msgid "guestfs_getxattrs"
29216 msgstr ""
29217
29218 #. type: verbatim
29219 #: ../src/guestfs-actions.pod:2708
29220 #, no-wrap
29221 msgid ""
29222 " struct guestfs_xattr_list *\n"
29223 " guestfs_getxattrs (guestfs_h *g,\n"
29224 "                    const char *path);\n"
29225 "\n"
29226 msgstr ""
29227
29228 #. type: textblock
29229 #: ../src/guestfs-actions.pod:2718
29230 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
29231 msgstr ""
29232
29233 #. type: textblock
29234 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:4215
29235 #: ../src/guestfs-actions.pod:4907
29236 msgid ""
29237 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
29238 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
29239 msgstr ""
29240
29241 #. type: textblock
29242 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:4219
29243 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:4467
29244 #: ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:7184
29245 #: ../src/guestfs-actions.pod:8689
29246 msgid "(Added in 1.0.59)"
29247 msgstr ""
29248
29249 #. type: =head2
29250 #: ../src/guestfs-actions.pod:2726
29251 msgid "guestfs_glob_expand"
29252 msgstr ""
29253
29254 #. type: verbatim
29255 #: ../src/guestfs-actions.pod:2728
29256 #, no-wrap
29257 msgid ""
29258 " char **\n"
29259 " guestfs_glob_expand (guestfs_h *g,\n"
29260 "                      const char *pattern);\n"
29261 "\n"
29262 msgstr ""
29263
29264 #. type: textblock
29265 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:7368
29266 #: ../src/guestfs-actions.pod:7385
29267 msgid "(Added in 1.0.50)"
29268 msgstr ""
29269
29270 #. type: =head2
29271 #: ../src/guestfs-actions.pod:2749
29272 msgid "guestfs_grep"
29273 msgstr ""
29274
29275 #. type: verbatim
29276 #: ../src/guestfs-actions.pod:2751
29277 #, no-wrap
29278 msgid ""
29279 " char **\n"
29280 " guestfs_grep (guestfs_h *g,\n"
29281 "               const char *regex,\n"
29282 "               const char *path);\n"
29283 "\n"
29284 msgstr ""
29285
29286 #. type: =head2
29287 #: ../src/guestfs-actions.pod:2768
29288 msgid "guestfs_grepi"
29289 msgstr ""
29290
29291 #. type: verbatim
29292 #: ../src/guestfs-actions.pod:2770
29293 #, no-wrap
29294 msgid ""
29295 " char **\n"
29296 " guestfs_grepi (guestfs_h *g,\n"
29297 "                const char *regex,\n"
29298 "                const char *path);\n"
29299 "\n"
29300 msgstr ""
29301
29302 #. type: =head2
29303 #: ../src/guestfs-actions.pod:2787
29304 msgid "guestfs_grub_install"
29305 msgstr ""
29306
29307 #. type: verbatim
29308 #: ../src/guestfs-actions.pod:2789
29309 #, no-wrap
29310 msgid ""
29311 " int\n"
29312 " guestfs_grub_install (guestfs_h *g,\n"
29313 "                       const char *root,\n"
29314 "                       const char *device);\n"
29315 "\n"
29316 msgstr ""
29317
29318 #. type: textblock
29319 #: ../src/guestfs-actions.pod:2832
29320 msgid "(Added in 1.0.17)"
29321 msgstr ""
29322
29323 #. type: =head2
29324 #: ../src/guestfs-actions.pod:2834
29325 msgid "guestfs_head"
29326 msgstr ""
29327
29328 #. type: verbatim
29329 #: ../src/guestfs-actions.pod:2836
29330 #, no-wrap
29331 msgid ""
29332 " char **\n"
29333 " guestfs_head (guestfs_h *g,\n"
29334 "               const char *path);\n"
29335 "\n"
29336 msgstr ""
29337
29338 #. type: =head2
29339 #: ../src/guestfs-actions.pod:2852
29340 msgid "guestfs_head_n"
29341 msgstr ""
29342
29343 #. type: verbatim
29344 #: ../src/guestfs-actions.pod:2854
29345 #, no-wrap
29346 msgid ""
29347 " char **\n"
29348 " guestfs_head_n (guestfs_h *g,\n"
29349 "                 int nrlines,\n"
29350 "                 const char *path);\n"
29351 "\n"
29352 msgstr ""
29353
29354 #. type: =head2
29355 #: ../src/guestfs-actions.pod:2876
29356 msgid "guestfs_hexdump"
29357 msgstr ""
29358
29359 #. type: verbatim
29360 #: ../src/guestfs-actions.pod:2878
29361 #, no-wrap
29362 msgid ""
29363 " char *\n"
29364 " guestfs_hexdump (guestfs_h *g,\n"
29365 "                  const char *path);\n"
29366 "\n"
29367 msgstr ""
29368
29369 #. type: textblock
29370 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:7449
29371 #: ../src/guestfs-actions.pod:7504
29372 msgid "(Added in 1.0.22)"
29373 msgstr ""
29374
29375 #. type: =head2
29376 #: ../src/guestfs-actions.pod:2893
29377 msgid "guestfs_initrd_cat"
29378 msgstr ""
29379
29380 #. type: verbatim
29381 #: ../src/guestfs-actions.pod:2895
29382 #, no-wrap
29383 msgid ""
29384 " char *\n"
29385 " guestfs_initrd_cat (guestfs_h *g,\n"
29386 "                     const char *initrdpath,\n"
29387 "                     const char *filename,\n"
29388 "                     size_t *size_r);\n"
29389 "\n"
29390 msgstr ""
29391
29392 #. type: textblock
29393 #: ../src/guestfs-actions.pod:2911
29394 msgid "See also C<guestfs_initrd_list>."
29395 msgstr ""
29396
29397 #. type: =head2
29398 #: ../src/guestfs-actions.pod:2922
29399 msgid "guestfs_initrd_list"
29400 msgstr ""
29401
29402 #. type: verbatim
29403 #: ../src/guestfs-actions.pod:2924
29404 #, no-wrap
29405 msgid ""
29406 " char **\n"
29407 " guestfs_initrd_list (guestfs_h *g,\n"
29408 "                      const char *path);\n"
29409 "\n"
29410 msgstr ""
29411
29412 #. type: =head2
29413 #: ../src/guestfs-actions.pod:2944
29414 msgid "guestfs_inotify_add_watch"
29415 msgstr ""
29416
29417 #. type: verbatim
29418 #: ../src/guestfs-actions.pod:2946
29419 #, no-wrap
29420 msgid ""
29421 " int64_t\n"
29422 " guestfs_inotify_add_watch (guestfs_h *g,\n"
29423 "                            const char *path,\n"
29424 "                            int mask);\n"
29425 "\n"
29426 msgstr ""
29427
29428 #. type: =head2
29429 #: ../src/guestfs-actions.pod:2965
29430 msgid "guestfs_inotify_close"
29431 msgstr ""
29432
29433 #. type: verbatim
29434 #: ../src/guestfs-actions.pod:2967
29435 #, no-wrap
29436 msgid ""
29437 " int\n"
29438 " guestfs_inotify_close (guestfs_h *g);\n"
29439 "\n"
29440 msgstr ""
29441
29442 #. type: =head2
29443 #: ../src/guestfs-actions.pod:2978
29444 msgid "guestfs_inotify_files"
29445 msgstr ""
29446
29447 #. type: verbatim
29448 #: ../src/guestfs-actions.pod:2980
29449 #, no-wrap
29450 msgid ""
29451 " char **\n"
29452 " guestfs_inotify_files (guestfs_h *g);\n"
29453 "\n"
29454 msgstr ""
29455
29456 #. type: textblock
29457 #: ../src/guestfs-actions.pod:2983
29458 msgid ""
29459 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
29460 "returns a list of pathnames of objects that were touched.  The returned "
29461 "pathnames are sorted and deduplicated."
29462 msgstr ""
29463
29464 #. type: =head2
29465 #: ../src/guestfs-actions.pod:2993
29466 msgid "guestfs_inotify_init"
29467 msgstr ""
29468
29469 #. type: verbatim
29470 #: ../src/guestfs-actions.pod:2995
29471 #, no-wrap
29472 msgid ""
29473 " int\n"
29474 " guestfs_inotify_init (guestfs_h *g,\n"
29475 "                       int maxevents);\n"
29476 "\n"
29477 msgstr ""
29478
29479 #. type: textblock
29480 #: ../src/guestfs-actions.pod:3003
29481 msgid ""
29482 "C<maxevents> is the maximum number of events which will be queued up between "
29483 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
29484 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
29485 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
29486 "throws away events, but records the fact that it threw them away by setting "
29487 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
29488 "C<guestfs_inotify_read>)."
29489 msgstr ""
29490
29491 #. type: textblock
29492 #: ../src/guestfs-actions.pod:3013
29493 msgid ""
29494 "Before any events are generated, you have to add some watches to the "
29495 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
29496 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
29497 msgstr ""
29498
29499 #. type: textblock
29500 #: ../src/guestfs-actions.pod:3019
29501 msgid ""
29502 "Queued up events should be read periodically by calling "
29503 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
29504 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
29505 "often enough then you risk the internal queue overflowing."
29506 msgstr ""
29507
29508 #. type: textblock
29509 #: ../src/guestfs-actions.pod:3026
29510 msgid ""
29511 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
29512 "This also removes any watches automatically."
29513 msgstr ""
29514
29515 #. type: =head2
29516 #: ../src/guestfs-actions.pod:3039
29517 msgid "guestfs_inotify_read"
29518 msgstr ""
29519
29520 #. type: verbatim
29521 #: ../src/guestfs-actions.pod:3041
29522 #, no-wrap
29523 msgid ""
29524 " struct guestfs_inotify_event_list *\n"
29525 " guestfs_inotify_read (guestfs_h *g);\n"
29526 "\n"
29527 msgstr ""
29528
29529 #. type: textblock
29530 #: ../src/guestfs-actions.pod:3055
29531 msgid ""
29532 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
29533 "there was an error.  I<The caller must call "
29534 "C<guestfs_free_inotify_event_list> after use>."
29535 msgstr ""
29536
29537 #. type: =head2
29538 #: ../src/guestfs-actions.pod:3061
29539 msgid "guestfs_inotify_rm_watch"
29540 msgstr ""
29541
29542 #. type: verbatim
29543 #: ../src/guestfs-actions.pod:3063
29544 #, no-wrap
29545 msgid ""
29546 " int\n"
29547 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
29548 "                           int wd);\n"
29549 "\n"
29550 msgstr ""
29551
29552 #. type: textblock
29553 #: ../src/guestfs-actions.pod:3067
29554 msgid ""
29555 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
29556 msgstr ""
29557
29558 #. type: =head2
29559 #: ../src/guestfs-actions.pod:3074
29560 msgid "guestfs_inspect_get_arch"
29561 msgstr ""
29562
29563 #. type: verbatim
29564 #: ../src/guestfs-actions.pod:3076
29565 #, no-wrap
29566 msgid ""
29567 " char *\n"
29568 " guestfs_inspect_get_arch (guestfs_h *g,\n"
29569 "                           const char *root);\n"
29570 "\n"
29571 msgstr ""
29572
29573 #. type: textblock
29574 #: ../src/guestfs-actions.pod:3080
29575 msgid ""
29576 "This returns the architecture of the inspected operating system.  The "
29577 "possible return values are listed under C<guestfs_file_architecture>."
29578 msgstr ""
29579
29580 #. type: =head2
29581 #: ../src/guestfs-actions.pod:3094
29582 msgid "guestfs_inspect_get_distro"
29583 msgstr ""
29584
29585 #. type: verbatim
29586 #: ../src/guestfs-actions.pod:3096
29587 #, no-wrap
29588 msgid ""
29589 " char *\n"
29590 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29591 "                             const char *root);\n"
29592 "\n"
29593 msgstr ""
29594
29595 #. type: =head2
29596 #: ../src/guestfs-actions.pod:3196
29597 msgid "guestfs_inspect_get_drive_mappings"
29598 msgstr ""
29599
29600 #. type: verbatim
29601 #: ../src/guestfs-actions.pod:3198
29602 #, no-wrap
29603 msgid ""
29604 " char **\n"
29605 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29606 "                                     const char *root);\n"
29607 "\n"
29608 msgstr ""
29609
29610 #. type: textblock
29611 #: ../src/guestfs-actions.pod:3227
29612 msgid ""
29613 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29614 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29615 msgstr ""
29616
29617 #. type: textblock
29618 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3702
29619 msgid "(Added in 1.9.17)"
29620 msgstr ""
29621
29622 #. type: =head2
29623 #: ../src/guestfs-actions.pod:3239
29624 msgid "guestfs_inspect_get_filesystems"
29625 msgstr ""
29626
29627 #. type: verbatim
29628 #: ../src/guestfs-actions.pod:3241
29629 #, no-wrap
29630 msgid ""
29631 " char **\n"
29632 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29633 "                                  const char *root);\n"
29634 "\n"
29635 msgstr ""
29636
29637 #. type: textblock
29638 #: ../src/guestfs-actions.pod:3253
29639 msgid ""
29640 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29641 "C<guestfs_inspect_get_mountpoints>."
29642 msgstr ""
29643
29644 #. type: =head2
29645 #: ../src/guestfs-actions.pod:3262
29646 msgid "guestfs_inspect_get_format"
29647 msgstr ""
29648
29649 #. type: verbatim
29650 #: ../src/guestfs-actions.pod:3264
29651 #, no-wrap
29652 msgid ""
29653 " char *\n"
29654 " guestfs_inspect_get_format (guestfs_h *g,\n"
29655 "                             const char *root);\n"
29656 "\n"
29657 msgstr ""
29658
29659 #. type: textblock
29660 #: ../src/guestfs-actions.pod:3298 ../src/guestfs-actions.pod:3738
29661 #: ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:3772
29662 #: ../src/guestfs-actions.pod:6698
29663 msgid "(Added in 1.9.4)"
29664 msgstr ""
29665
29666 #. type: =head2
29667 #: ../src/guestfs-actions.pod:3300
29668 msgid "guestfs_inspect_get_hostname"
29669 msgstr ""
29670
29671 #. type: verbatim
29672 #: ../src/guestfs-actions.pod:3302
29673 #, no-wrap
29674 msgid ""
29675 " char *\n"
29676 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29677 "                               const char *root);\n"
29678 "\n"
29679 msgstr ""
29680
29681 #. type: textblock
29682 #: ../src/guestfs-actions.pod:3317
29683 msgid "(Added in 1.7.9)"
29684 msgstr ""
29685
29686 #. type: =head2
29687 #: ../src/guestfs-actions.pod:3319
29688 msgid "guestfs_inspect_get_icon"
29689 msgstr ""
29690
29691 #. type: verbatim
29692 #: ../src/guestfs-actions.pod:3321
29693 #, no-wrap
29694 msgid ""
29695 " char *\n"
29696 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29697 "                           const char *root,\n"
29698 "                           size_t *size_r,\n"
29699 "                           ...);\n"
29700 "\n"
29701 msgstr ""
29702
29703 #. type: verbatim
29704 #: ../src/guestfs-actions.pod:3332
29705 #, no-wrap
29706 msgid ""
29707 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29708 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29709 "\n"
29710 msgstr ""
29711
29712 #. type: textblock
29713 #: ../src/guestfs-actions.pod:3399 ../src/guestfs-actions.pod:4233
29714 #: ../src/guestfs-actions.pod:5630
29715 msgid "(Added in 1.11.12)"
29716 msgstr ""
29717
29718 #. type: =head2
29719 #: ../src/guestfs-actions.pod:3401
29720 msgid "guestfs_inspect_get_icon_va"
29721 msgstr ""
29722
29723 #. type: verbatim
29724 #: ../src/guestfs-actions.pod:3403
29725 #, no-wrap
29726 msgid ""
29727 " char *\n"
29728 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29729 "                              const char *root,\n"
29730 "                              size_t *size_r,\n"
29731 "                              va_list args);\n"
29732 "\n"
29733 msgstr ""
29734
29735 #. type: textblock
29736 #: ../src/guestfs-actions.pod:3409
29737 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29738 msgstr ""
29739
29740 #. type: =head2
29741 #: ../src/guestfs-actions.pod:3413
29742 msgid "guestfs_inspect_get_icon_argv"
29743 msgstr ""
29744
29745 #. type: verbatim
29746 #: ../src/guestfs-actions.pod:3415
29747 #, no-wrap
29748 msgid ""
29749 " char *\n"
29750 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29751 "                                const char *root,\n"
29752 "                                size_t *size_r,\n"
29753 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29754 "\n"
29755 msgstr ""
29756
29757 #. type: textblock
29758 #: ../src/guestfs-actions.pod:3421
29759 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29760 msgstr ""
29761
29762 #. type: =head2
29763 #: ../src/guestfs-actions.pod:3425
29764 msgid "guestfs_inspect_get_major_version"
29765 msgstr ""
29766
29767 #. type: verbatim
29768 #: ../src/guestfs-actions.pod:3427
29769 #, no-wrap
29770 msgid ""
29771 " int\n"
29772 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29773 "                                    const char *root);\n"
29774 "\n"
29775 msgstr ""
29776
29777 #. type: =head2
29778 #: ../src/guestfs-actions.pod:3449
29779 msgid "guestfs_inspect_get_minor_version"
29780 msgstr ""
29781
29782 #. type: verbatim
29783 #: ../src/guestfs-actions.pod:3451
29784 #, no-wrap
29785 msgid ""
29786 " int\n"
29787 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29788 "                                    const char *root);\n"
29789 "\n"
29790 msgstr ""
29791
29792 #. type: textblock
29793 #: ../src/guestfs-actions.pod:3460
29794 msgid ""
29795 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29796 "C<guestfs_inspect_get_major_version>."
29797 msgstr ""
29798
29799 #. type: =head2
29800 #: ../src/guestfs-actions.pod:3467
29801 msgid "guestfs_inspect_get_mountpoints"
29802 msgstr ""
29803
29804 #. type: verbatim
29805 #: ../src/guestfs-actions.pod:3469
29806 #, no-wrap
29807 msgid ""
29808 " char **\n"
29809 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29810 "                                  const char *root);\n"
29811 "\n"
29812 msgstr ""
29813
29814 #. type: textblock
29815 #: ../src/guestfs-actions.pod:3490
29816 msgid ""
29817 "For operating systems like Windows which still use drive letters, this call "
29818 "will only return an entry for the first drive \"mounted on\" C</>.  For "
29819 "information about the mapping of drive letters to partitions, see "
29820 "C<guestfs_inspect_get_drive_mappings>."
29821 msgstr ""
29822
29823 #. type: textblock
29824 #: ../src/guestfs-actions.pod:3496
29825 msgid ""
29826 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29827 "C<guestfs_inspect_get_filesystems>."
29828 msgstr ""
29829
29830 #. type: =head2
29831 #: ../src/guestfs-actions.pod:3507
29832 msgid "guestfs_inspect_get_package_format"
29833 msgstr ""
29834
29835 #. type: verbatim
29836 #: ../src/guestfs-actions.pod:3509
29837 #, no-wrap
29838 msgid ""
29839 " char *\n"
29840 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29841 "                                     const char *root);\n"
29842 "\n"
29843 msgstr ""
29844
29845 #. type: textblock
29846 #: ../src/guestfs-actions.pod:3513
29847 msgid ""
29848 "This function and C<guestfs_inspect_get_package_management> return the "
29849 "package format and package management tool used by the inspected operating "
29850 "system.  For example for Fedora these functions would return C<rpm> (package "
29851 "format) and C<yum> (package management)."
29852 msgstr ""
29853
29854 #. type: textblock
29855 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3560
29856 msgid "(Added in 1.7.5)"
29857 msgstr ""
29858
29859 #. type: =head2
29860 #: ../src/guestfs-actions.pod:3534
29861 msgid "guestfs_inspect_get_package_management"
29862 msgstr ""
29863
29864 #. type: verbatim
29865 #: ../src/guestfs-actions.pod:3536
29866 #, no-wrap
29867 msgid ""
29868 " char *\n"
29869 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29870 "                                         const char *root);\n"
29871 "\n"
29872 msgstr ""
29873
29874 #. type: textblock
29875 #: ../src/guestfs-actions.pod:3540
29876 msgid ""
29877 "C<guestfs_inspect_get_package_format> and this function return the package "
29878 "format and package management tool used by the inspected operating system.  "
29879 "For example for Fedora these functions would return C<rpm> (package format) "
29880 "and C<yum> (package management)."
29881 msgstr ""
29882
29883 #. type: =head2
29884 #: ../src/guestfs-actions.pod:3562
29885 msgid "guestfs_inspect_get_product_name"
29886 msgstr ""
29887
29888 #. type: verbatim
29889 #: ../src/guestfs-actions.pod:3564
29890 #, no-wrap
29891 msgid ""
29892 " char *\n"
29893 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29894 "                                   const char *root);\n"
29895 "\n"
29896 msgstr ""
29897
29898 #. type: =head2
29899 #: ../src/guestfs-actions.pod:3583
29900 msgid "guestfs_inspect_get_product_variant"
29901 msgstr ""
29902
29903 #. type: verbatim
29904 #: ../src/guestfs-actions.pod:3585
29905 #, no-wrap
29906 msgid ""
29907 " char *\n"
29908 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29909 "                                      const char *root);\n"
29910 "\n"
29911 msgstr ""
29912
29913 #. type: textblock
29914 #: ../src/guestfs-actions.pod:3608
29915 msgid ""
29916 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29917 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29918 msgstr ""
29919
29920 #. type: textblock
29921 #: ../src/guestfs-actions.pod:3615
29922 msgid "(Added in 1.9.13)"
29923 msgstr ""
29924
29925 #. type: =head2
29926 #: ../src/guestfs-actions.pod:3617
29927 msgid "guestfs_inspect_get_roots"
29928 msgstr ""
29929
29930 #. type: verbatim
29931 #: ../src/guestfs-actions.pod:3619
29932 #, no-wrap
29933 msgid ""
29934 " char **\n"
29935 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29936 "\n"
29937 msgstr ""
29938
29939 #. type: textblock
29940 #: ../src/guestfs-actions.pod:3622
29941 msgid ""
29942 "This function is a convenient way to get the list of root devices, as "
29943 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29944 "the whole inspection process."
29945 msgstr ""
29946
29947 #. type: textblock
29948 #: ../src/guestfs-actions.pod:3626
29949 msgid ""
29950 "This returns an empty list if either no root devices were found or the "
29951 "caller has not called C<guestfs_inspect_os>."
29952 msgstr ""
29953
29954 #. type: textblock
29955 #: ../src/guestfs-actions.pod:3635
29956 msgid "(Added in 1.7.3)"
29957 msgstr ""
29958
29959 #. type: =head2
29960 #: ../src/guestfs-actions.pod:3637
29961 msgid "guestfs_inspect_get_type"
29962 msgstr ""
29963
29964 #. type: verbatim
29965 #: ../src/guestfs-actions.pod:3639
29966 #, no-wrap
29967 msgid ""
29968 " char *\n"
29969 " guestfs_inspect_get_type (guestfs_h *g,\n"
29970 "                           const char *root);\n"
29971 "\n"
29972 msgstr ""
29973
29974 #. type: =head2
29975 #: ../src/guestfs-actions.pod:3684
29976 msgid "guestfs_inspect_get_windows_current_control_set"
29977 msgstr ""
29978
29979 #. type: verbatim
29980 #: ../src/guestfs-actions.pod:3686
29981 #, no-wrap
29982 msgid ""
29983 " char *\n"
29984 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29985 "                                                  const char *root);\n"
29986 "\n"
29987 msgstr ""
29988
29989 #. type: =head2
29990 #: ../src/guestfs-actions.pod:3704
29991 msgid "guestfs_inspect_get_windows_systemroot"
29992 msgstr ""
29993
29994 #. type: verbatim
29995 #: ../src/guestfs-actions.pod:3706
29996 #, no-wrap
29997 msgid ""
29998 " char *\n"
29999 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
30000 "                                         const char *root);\n"
30001 "\n"
30002 msgstr ""
30003
30004 #. type: textblock
30005 #: ../src/guestfs-actions.pod:3722
30006 msgid "(Added in 1.5.25)"
30007 msgstr ""
30008
30009 #. type: =head2
30010 #: ../src/guestfs-actions.pod:3724
30011 msgid "guestfs_inspect_is_live"
30012 msgstr ""
30013
30014 #. type: verbatim
30015 #: ../src/guestfs-actions.pod:3726
30016 #, no-wrap
30017 msgid ""
30018 " int\n"
30019 " guestfs_inspect_is_live (guestfs_h *g,\n"
30020 "                          const char *root);\n"
30021 "\n"
30022 msgstr ""
30023
30024 #. type: textblock
30025 #: ../src/guestfs-actions.pod:3730
30026 msgid ""
30027 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30028 "disk), then this returns true if a live image was detected on the disk."
30029 msgstr ""
30030
30031 #. type: =head2
30032 #: ../src/guestfs-actions.pod:3740
30033 msgid "guestfs_inspect_is_multipart"
30034 msgstr ""
30035
30036 #. type: verbatim
30037 #: ../src/guestfs-actions.pod:3742
30038 #, no-wrap
30039 msgid ""
30040 " int\n"
30041 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
30042 "                               const char *root);\n"
30043 "\n"
30044 msgstr ""
30045
30046 #. type: textblock
30047 #: ../src/guestfs-actions.pod:3746
30048 msgid ""
30049 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30050 "disk), then this returns true if the disk is part of a set."
30051 msgstr ""
30052
30053 #. type: =head2
30054 #: ../src/guestfs-actions.pod:3756
30055 msgid "guestfs_inspect_is_netinst"
30056 msgstr ""
30057
30058 #. type: verbatim
30059 #: ../src/guestfs-actions.pod:3758
30060 #, no-wrap
30061 msgid ""
30062 " int\n"
30063 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
30064 "                             const char *root);\n"
30065 "\n"
30066 msgstr ""
30067
30068 #. type: textblock
30069 #: ../src/guestfs-actions.pod:3762
30070 msgid ""
30071 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30072 "disk), then this returns true if the disk is a network installer, ie. not a "
30073 "self-contained install CD but one which is likely to require network access "
30074 "to complete the install."
30075 msgstr ""
30076
30077 #. type: =head2
30078 #: ../src/guestfs-actions.pod:3774
30079 msgid "guestfs_inspect_list_applications"
30080 msgstr ""
30081
30082 #. type: verbatim
30083 #: ../src/guestfs-actions.pod:3776
30084 #, no-wrap
30085 msgid ""
30086 " struct guestfs_application_list *\n"
30087 " guestfs_inspect_list_applications (guestfs_h *g,\n"
30088 "                                    const char *root);\n"
30089 "\n"
30090 msgstr ""
30091
30092 #. type: textblock
30093 #: ../src/guestfs-actions.pod:3782
30094 msgid ""
30095 "I<Note:> This call works differently from other parts of the inspection "
30096 "API.  You have to call C<guestfs_inspect_os>, then "
30097 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
30098 "this.  Listing applications is a significantly more difficult operation "
30099 "which requires access to the full filesystem.  Also note that unlike the "
30100 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
30101 "the libguestfs handle, this call actually reads parts of the mounted "
30102 "filesystems during the call."
30103 msgstr ""
30104
30105 #. type: textblock
30106 #: ../src/guestfs-actions.pod:3872
30107 msgid ""
30108 "This function returns a C<struct guestfs_application_list *>, or NULL if "
30109 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
30110 "after use>."
30111 msgstr ""
30112
30113 #. type: textblock
30114 #: ../src/guestfs-actions.pod:3876
30115 msgid "(Added in 1.7.8)"
30116 msgstr ""
30117
30118 #. type: =head2
30119 #: ../src/guestfs-actions.pod:3878
30120 msgid "guestfs_inspect_os"
30121 msgstr ""
30122
30123 #. type: verbatim
30124 #: ../src/guestfs-actions.pod:3880
30125 #, no-wrap
30126 msgid ""
30127 " char **\n"
30128 " guestfs_inspect_os (guestfs_h *g);\n"
30129 "\n"
30130 msgstr ""
30131
30132 #. type: textblock
30133 #: ../src/guestfs-actions.pod:3896
30134 msgid ""
30135 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
30136 "functions in order to query further information about each operating system, "
30137 "such as the name and version."
30138 msgstr ""
30139
30140 #. type: textblock
30141 #: ../src/guestfs-actions.pod:3901
30142 msgid ""
30143 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
30144 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
30145 "the contents.  This should be called with no disks currently mounted.  The "
30146 "function may also use Augeas, so any existing Augeas handle will be closed."
30147 msgstr ""
30148
30149 #. type: textblock
30150 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:4244
30151 #: ../src/guestfs-actions.pod:4339
30152 msgid "See also C<guestfs_list_filesystems>."
30153 msgstr ""
30154
30155 #. type: =head2
30156 #: ../src/guestfs-actions.pod:3921
30157 msgid "guestfs_is_blockdev"
30158 msgstr ""
30159
30160 #. type: verbatim
30161 #: ../src/guestfs-actions.pod:3923
30162 #, no-wrap
30163 msgid ""
30164 " int\n"
30165 " guestfs_is_blockdev (guestfs_h *g,\n"
30166 "                      const char *path);\n"
30167 "\n"
30168 msgstr ""
30169
30170 #. type: textblock
30171 #: ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:3959
30172 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4004
30173 #: ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4076
30174 #: ../src/guestfs-actions.pod:4091
30175 msgid "See also C<guestfs_stat>."
30176 msgstr ""
30177
30178 #. type: textblock
30179 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3963
30180 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4080
30181 #: ../src/guestfs-actions.pod:4095
30182 msgid "(Added in 1.5.10)"
30183 msgstr ""
30184
30185 #. type: =head2
30186 #: ../src/guestfs-actions.pod:3936
30187 msgid "guestfs_is_busy"
30188 msgstr ""
30189
30190 #. type: verbatim
30191 #: ../src/guestfs-actions.pod:3938
30192 #, no-wrap
30193 msgid ""
30194 " int\n"
30195 " guestfs_is_busy (guestfs_h *g);\n"
30196 "\n"
30197 msgstr ""
30198
30199 #. type: =head2
30200 #: ../src/guestfs-actions.pod:3950
30201 msgid "guestfs_is_chardev"
30202 msgstr ""
30203
30204 #. type: verbatim
30205 #: ../src/guestfs-actions.pod:3952
30206 #, no-wrap
30207 msgid ""
30208 " int\n"
30209 " guestfs_is_chardev (guestfs_h *g,\n"
30210 "                     const char *path);\n"
30211 "\n"
30212 msgstr ""
30213
30214 #. type: =head2
30215 #: ../src/guestfs-actions.pod:3965
30216 msgid "guestfs_is_config"
30217 msgstr ""
30218
30219 #. type: verbatim
30220 #: ../src/guestfs-actions.pod:3967
30221 #, no-wrap
30222 msgid ""
30223 " int\n"
30224 " guestfs_is_config (guestfs_h *g);\n"
30225 "\n"
30226 msgstr ""
30227
30228 #. type: =head2
30229 #: ../src/guestfs-actions.pod:3979
30230 msgid "guestfs_is_dir"
30231 msgstr ""
30232
30233 #. type: verbatim
30234 #: ../src/guestfs-actions.pod:3981
30235 #, no-wrap
30236 msgid ""
30237 " int\n"
30238 " guestfs_is_dir (guestfs_h *g,\n"
30239 "                 const char *path);\n"
30240 "\n"
30241 msgstr ""
30242
30243 #. type: =head2
30244 #: ../src/guestfs-actions.pod:3995
30245 msgid "guestfs_is_fifo"
30246 msgstr ""
30247
30248 #. type: verbatim
30249 #: ../src/guestfs-actions.pod:3997
30250 #, no-wrap
30251 msgid ""
30252 " int\n"
30253 " guestfs_is_fifo (guestfs_h *g,\n"
30254 "                  const char *path);\n"
30255 "\n"
30256 msgstr ""
30257
30258 #. type: =head2
30259 #: ../src/guestfs-actions.pod:4010
30260 msgid "guestfs_is_file"
30261 msgstr ""
30262
30263 #. type: verbatim
30264 #: ../src/guestfs-actions.pod:4012
30265 #, no-wrap
30266 msgid ""
30267 " int\n"
30268 " guestfs_is_file (guestfs_h *g,\n"
30269 "                  const char *path);\n"
30270 "\n"
30271 msgstr ""
30272
30273 #. type: =head2
30274 #: ../src/guestfs-actions.pod:4026
30275 msgid "guestfs_is_launching"
30276 msgstr ""
30277
30278 #. type: verbatim
30279 #: ../src/guestfs-actions.pod:4028
30280 #, no-wrap
30281 msgid ""
30282 " int\n"
30283 " guestfs_is_launching (guestfs_h *g);\n"
30284 "\n"
30285 msgstr ""
30286
30287 #. type: =head2
30288 #: ../src/guestfs-actions.pod:4040
30289 msgid "guestfs_is_lv"
30290 msgstr ""
30291
30292 #. type: verbatim
30293 #: ../src/guestfs-actions.pod:4042
30294 #, no-wrap
30295 msgid ""
30296 " int\n"
30297 " guestfs_is_lv (guestfs_h *g,\n"
30298 "                const char *device);\n"
30299 "\n"
30300 msgstr ""
30301
30302 #. type: =head2
30303 #: ../src/guestfs-actions.pod:4053
30304 msgid "guestfs_is_ready"
30305 msgstr ""
30306
30307 #. type: verbatim
30308 #: ../src/guestfs-actions.pod:4055
30309 #, no-wrap
30310 msgid ""
30311 " int\n"
30312 " guestfs_is_ready (guestfs_h *g);\n"
30313 "\n"
30314 msgstr ""
30315
30316 #. type: =head2
30317 #: ../src/guestfs-actions.pod:4067
30318 msgid "guestfs_is_socket"
30319 msgstr ""
30320
30321 #. type: verbatim
30322 #: ../src/guestfs-actions.pod:4069
30323 #, no-wrap
30324 msgid ""
30325 " int\n"
30326 " guestfs_is_socket (guestfs_h *g,\n"
30327 "                    const char *path);\n"
30328 "\n"
30329 msgstr ""
30330
30331 #. type: =head2
30332 #: ../src/guestfs-actions.pod:4082
30333 msgid "guestfs_is_symlink"
30334 msgstr ""
30335
30336 #. type: verbatim
30337 #: ../src/guestfs-actions.pod:4084
30338 #, no-wrap
30339 msgid ""
30340 " int\n"
30341 " guestfs_is_symlink (guestfs_h *g,\n"
30342 "                     const char *path);\n"
30343 "\n"
30344 msgstr ""
30345
30346 #. type: =head2
30347 #: ../src/guestfs-actions.pod:4097
30348 msgid "guestfs_is_zero"
30349 msgstr ""
30350
30351 #. type: verbatim
30352 #: ../src/guestfs-actions.pod:4099
30353 #, no-wrap
30354 msgid ""
30355 " int\n"
30356 " guestfs_is_zero (guestfs_h *g,\n"
30357 "                  const char *path);\n"
30358 "\n"
30359 msgstr ""
30360
30361 #. type: textblock
30362 #: ../src/guestfs-actions.pod:4108 ../src/guestfs-actions.pod:4122
30363 msgid "(Added in 1.11.8)"
30364 msgstr ""
30365
30366 #. type: =head2
30367 #: ../src/guestfs-actions.pod:4110
30368 msgid "guestfs_is_zero_device"
30369 msgstr ""
30370
30371 #. type: verbatim
30372 #: ../src/guestfs-actions.pod:4112
30373 #, no-wrap
30374 msgid ""
30375 " int\n"
30376 " guestfs_is_zero_device (guestfs_h *g,\n"
30377 "                         const char *device);\n"
30378 "\n"
30379 msgstr ""
30380
30381 #. type: =head2
30382 #: ../src/guestfs-actions.pod:4124
30383 msgid "guestfs_kill_subprocess"
30384 msgstr ""
30385
30386 #. type: verbatim
30387 #: ../src/guestfs-actions.pod:4126
30388 #, no-wrap
30389 msgid ""
30390 " int\n"
30391 " guestfs_kill_subprocess (guestfs_h *g);\n"
30392 "\n"
30393 msgstr ""
30394
30395 #. type: =head2
30396 #: ../src/guestfs-actions.pod:4135
30397 msgid "guestfs_launch"
30398 msgstr ""
30399
30400 #. type: verbatim
30401 #: ../src/guestfs-actions.pod:4137
30402 #, no-wrap
30403 msgid ""
30404 " int\n"
30405 " guestfs_launch (guestfs_h *g);\n"
30406 "\n"
30407 msgstr ""
30408
30409 #. type: =head2
30410 #: ../src/guestfs-actions.pod:4155
30411 msgid "guestfs_lchown"
30412 msgstr ""
30413
30414 #. type: verbatim
30415 #: ../src/guestfs-actions.pod:4157
30416 #, no-wrap
30417 msgid ""
30418 " int\n"
30419 " guestfs_lchown (guestfs_h *g,\n"
30420 "                 int owner,\n"
30421 "                 int group,\n"
30422 "                 const char *path);\n"
30423 "\n"
30424 msgstr ""
30425
30426 #. type: textblock
30427 #: ../src/guestfs-actions.pod:4163
30428 msgid ""
30429 "Change the file owner to C<owner> and group to C<group>.  This is like "
30430 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
30431 "changed, not the target."
30432 msgstr ""
30433
30434 #. type: =head2
30435 #: ../src/guestfs-actions.pod:4175
30436 msgid "guestfs_lgetxattr"
30437 msgstr ""
30438
30439 #. type: verbatim
30440 #: ../src/guestfs-actions.pod:4177
30441 #, no-wrap
30442 msgid ""
30443 " char *\n"
30444 " guestfs_lgetxattr (guestfs_h *g,\n"
30445 "                    const char *path,\n"
30446 "                    const char *name,\n"
30447 "                    size_t *size_r);\n"
30448 "\n"
30449 msgstr ""
30450
30451 #. type: textblock
30452 #: ../src/guestfs-actions.pod:4197
30453 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
30454 msgstr ""
30455
30456 #. type: =head2
30457 #: ../src/guestfs-actions.pod:4205
30458 msgid "guestfs_lgetxattrs"
30459 msgstr ""
30460
30461 #. type: verbatim
30462 #: ../src/guestfs-actions.pod:4207
30463 #, no-wrap
30464 msgid ""
30465 " struct guestfs_xattr_list *\n"
30466 " guestfs_lgetxattrs (guestfs_h *g,\n"
30467 "                     const char *path);\n"
30468 "\n"
30469 msgstr ""
30470
30471 #. type: textblock
30472 #: ../src/guestfs-actions.pod:4211
30473 msgid ""
30474 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
30475 "then it returns the extended attributes of the link itself."
30476 msgstr ""
30477
30478 #. type: =head2
30479 #: ../src/guestfs-actions.pod:4221
30480 msgid "guestfs_list_9p"
30481 msgstr ""
30482
30483 #. type: verbatim
30484 #: ../src/guestfs-actions.pod:4223
30485 #, no-wrap
30486 msgid ""
30487 " char **\n"
30488 " guestfs_list_9p (guestfs_h *g);\n"
30489 "\n"
30490 msgstr ""
30491
30492 #. type: =head2
30493 #: ../src/guestfs-actions.pod:4235
30494 msgid "guestfs_list_devices"
30495 msgstr ""
30496
30497 #. type: verbatim
30498 #: ../src/guestfs-actions.pod:4237
30499 #, no-wrap
30500 msgid ""
30501 " char **\n"
30502 " guestfs_list_devices (guestfs_h *g);\n"
30503 "\n"
30504 msgstr ""
30505
30506 #. type: =head2
30507 #: ../src/guestfs-actions.pod:4252
30508 msgid "guestfs_list_dm_devices"
30509 msgstr ""
30510
30511 #. type: verbatim
30512 #: ../src/guestfs-actions.pod:4254
30513 #, no-wrap
30514 msgid ""
30515 " char **\n"
30516 " guestfs_list_dm_devices (guestfs_h *g);\n"
30517 "\n"
30518 msgstr ""
30519
30520 #. type: textblock
30521 #: ../src/guestfs-actions.pod:4259
30522 msgid ""
30523 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
30524 "previous call to C<guestfs_luks_open>."
30525 msgstr ""
30526
30527 #. type: textblock
30528 #: ../src/guestfs-actions.pod:4262
30529 msgid ""
30530 "Device mapper devices which correspond to logical volumes are I<not> "
30531 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
30532 "volumes."
30533 msgstr ""
30534
30535 #. type: textblock
30536 #: ../src/guestfs-actions.pod:4270 ../src/guestfs-actions.pod:5869
30537 msgid "(Added in 1.11.15)"
30538 msgstr ""
30539
30540 #. type: =head2
30541 #: ../src/guestfs-actions.pod:4272
30542 msgid "guestfs_list_filesystems"
30543 msgstr ""
30544
30545 #. type: verbatim
30546 #: ../src/guestfs-actions.pod:4274
30547 #, no-wrap
30548 msgid ""
30549 " char **\n"
30550 " guestfs_list_filesystems (guestfs_h *g);\n"
30551 "\n"
30552 msgstr ""
30553
30554 #. type: textblock
30555 #: ../src/guestfs-actions.pod:4294
30556 msgid ""
30557 "This command runs other libguestfs commands, which might include "
30558 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
30559 "soon after launch and only when nothing is mounted."
30560 msgstr ""
30561
30562 #. type: textblock
30563 #: ../src/guestfs-actions.pod:4298
30564 msgid ""
30565 "Not all of the filesystems returned will be mountable.  In particular, swap "
30566 "partitions are returned in the list.  Also this command does not check that "
30567 "each filesystem found is valid and mountable, and some filesystems might be "
30568 "mountable but require special options.  Filesystems may not all belong to a "
30569 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
30570 msgstr ""
30571
30572 #. type: textblock
30573 #: ../src/guestfs-actions.pod:4312 ../src/guestfs-actions.pod:6229
30574 msgid "(Added in 1.5.15)"
30575 msgstr ""
30576
30577 #. type: =head2
30578 #: ../src/guestfs-actions.pod:4314
30579 msgid "guestfs_list_md_devices"
30580 msgstr ""
30581
30582 #. type: verbatim
30583 #: ../src/guestfs-actions.pod:4316
30584 #, no-wrap
30585 msgid ""
30586 " char **\n"
30587 " guestfs_list_md_devices (guestfs_h *g);\n"
30588 "\n"
30589 msgstr ""
30590
30591 #. type: textblock
30592 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:7890
30593 msgid "(Added in 1.15.4)"
30594 msgstr ""
30595
30596 #. type: =head2
30597 #: ../src/guestfs-actions.pod:4327
30598 msgid "guestfs_list_partitions"
30599 msgstr ""
30600
30601 #. type: verbatim
30602 #: ../src/guestfs-actions.pod:4329
30603 #, no-wrap
30604 msgid ""
30605 " char **\n"
30606 " guestfs_list_partitions (guestfs_h *g);\n"
30607 "\n"
30608 msgstr ""
30609
30610 #. type: textblock
30611 #: ../src/guestfs-actions.pod:4336
30612 msgid ""
30613 "This does not return logical volumes.  For that you will need to call "
30614 "C<guestfs_lvs>."
30615 msgstr ""
30616
30617 #. type: =head2
30618 #: ../src/guestfs-actions.pod:4347
30619 msgid "guestfs_ll"
30620 msgstr ""
30621
30622 #. type: verbatim
30623 #: ../src/guestfs-actions.pod:4349
30624 #, no-wrap
30625 msgid ""
30626 " char *\n"
30627 " guestfs_ll (guestfs_h *g,\n"
30628 "             const char *directory);\n"
30629 "\n"
30630 msgstr ""
30631
30632 #. type: =head2
30633 #: ../src/guestfs-actions.pod:4364
30634 msgid "guestfs_ln"
30635 msgstr ""
30636
30637 #. type: verbatim
30638 #: ../src/guestfs-actions.pod:4366
30639 #, no-wrap
30640 msgid ""
30641 " int\n"
30642 " guestfs_ln (guestfs_h *g,\n"
30643 "             const char *target,\n"
30644 "             const char *linkname);\n"
30645 "\n"
30646 msgstr ""
30647
30648 #. type: =head2
30649 #: ../src/guestfs-actions.pod:4377
30650 msgid "guestfs_ln_f"
30651 msgstr ""
30652
30653 #. type: verbatim
30654 #: ../src/guestfs-actions.pod:4379
30655 #, no-wrap
30656 msgid ""
30657 " int\n"
30658 " guestfs_ln_f (guestfs_h *g,\n"
30659 "               const char *target,\n"
30660 "               const char *linkname);\n"
30661 "\n"
30662 msgstr ""
30663
30664 #. type: =head2
30665 #: ../src/guestfs-actions.pod:4391
30666 msgid "guestfs_ln_s"
30667 msgstr ""
30668
30669 #. type: verbatim
30670 #: ../src/guestfs-actions.pod:4393
30671 #, no-wrap
30672 msgid ""
30673 " int\n"
30674 " guestfs_ln_s (guestfs_h *g,\n"
30675 "               const char *target,\n"
30676 "               const char *linkname);\n"
30677 "\n"
30678 msgstr ""
30679
30680 #. type: =head2
30681 #: ../src/guestfs-actions.pod:4404
30682 msgid "guestfs_ln_sf"
30683 msgstr ""
30684
30685 #. type: verbatim
30686 #: ../src/guestfs-actions.pod:4406
30687 #, no-wrap
30688 msgid ""
30689 " int\n"
30690 " guestfs_ln_sf (guestfs_h *g,\n"
30691 "                const char *target,\n"
30692 "                const char *linkname);\n"
30693 "\n"
30694 msgstr ""
30695
30696 #. type: =head2
30697 #: ../src/guestfs-actions.pod:4418
30698 msgid "guestfs_lremovexattr"
30699 msgstr ""
30700
30701 #. type: verbatim
30702 #: ../src/guestfs-actions.pod:4420
30703 #, no-wrap
30704 msgid ""
30705 " int\n"
30706 " guestfs_lremovexattr (guestfs_h *g,\n"
30707 "                       const char *xattr,\n"
30708 "                       const char *path);\n"
30709 "\n"
30710 msgstr ""
30711
30712 #. type: textblock
30713 #: ../src/guestfs-actions.pod:4425
30714 msgid ""
30715 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30716 "link, then it removes an extended attribute of the link itself."
30717 msgstr ""
30718
30719 #. type: =head2
30720 #: ../src/guestfs-actions.pod:4433
30721 msgid "guestfs_ls"
30722 msgstr ""
30723
30724 #. type: verbatim
30725 #: ../src/guestfs-actions.pod:4435
30726 #, no-wrap
30727 msgid ""
30728 " char **\n"
30729 " guestfs_ls (guestfs_h *g,\n"
30730 "             const char *directory);\n"
30731 "\n"
30732 msgstr ""
30733
30734 #. type: textblock
30735 #: ../src/guestfs-actions.pod:4443
30736 msgid ""
30737 "This command is mostly useful for interactive sessions.  Programs should "
30738 "probably use C<guestfs_readdir> instead."
30739 msgstr ""
30740
30741 #. type: =head2
30742 #: ../src/guestfs-actions.pod:4452
30743 msgid "guestfs_lsetxattr"
30744 msgstr ""
30745
30746 #. type: verbatim
30747 #: ../src/guestfs-actions.pod:4454
30748 #, no-wrap
30749 msgid ""
30750 " int\n"
30751 " guestfs_lsetxattr (guestfs_h *g,\n"
30752 "                    const char *xattr,\n"
30753 "                    const char *val,\n"
30754 "                    int vallen,\n"
30755 "                    const char *path);\n"
30756 "\n"
30757 msgstr ""
30758
30759 #. type: textblock
30760 #: ../src/guestfs-actions.pod:4461
30761 msgid ""
30762 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30763 "then it sets an extended attribute of the link itself."
30764 msgstr ""
30765
30766 #. type: =head2
30767 #: ../src/guestfs-actions.pod:4469
30768 msgid "guestfs_lstat"
30769 msgstr ""
30770
30771 #. type: verbatim
30772 #: ../src/guestfs-actions.pod:4471
30773 #, no-wrap
30774 msgid ""
30775 " struct guestfs_stat *\n"
30776 " guestfs_lstat (guestfs_h *g,\n"
30777 "                const char *path);\n"
30778 "\n"
30779 msgstr ""
30780
30781 #. type: textblock
30782 #: ../src/guestfs-actions.pod:4477
30783 msgid ""
30784 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30785 "link, then the link is stat-ed, not the file it refers to."
30786 msgstr ""
30787
30788 #. type: textblock
30789 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:7409
30790 msgid ""
30791 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30792 "error.  I<The caller must call C<guestfs_free_stat> after use>."
30793 msgstr ""
30794
30795 #. type: textblock
30796 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:7413
30797 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7934
30798 msgid "(Added in 0.9.2)"
30799 msgstr ""
30800
30801 #. type: =head2
30802 #: ../src/guestfs-actions.pod:4489
30803 msgid "guestfs_lstatlist"
30804 msgstr ""
30805
30806 #. type: verbatim
30807 #: ../src/guestfs-actions.pod:4491
30808 #, no-wrap
30809 msgid ""
30810 " struct guestfs_stat_list *\n"
30811 " guestfs_lstatlist (guestfs_h *g,\n"
30812 "                    const char *path,\n"
30813 "                    char *const *names);\n"
30814 "\n"
30815 msgstr ""
30816
30817 #. type: textblock
30818 #: ../src/guestfs-actions.pod:4496
30819 msgid ""
30820 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30821 "files, where all files are in the directory C<path>.  C<names> is the list "
30822 "of files from this directory."
30823 msgstr ""
30824
30825 #. type: textblock
30826 #: ../src/guestfs-actions.pod:4505
30827 msgid ""
30828 "This call is intended for programs that want to efficiently list a directory "
30829 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
30830 "for a similarly efficient call for getting extended attributes.  Very long "
30831 "directory listings might cause the protocol message size to be exceeded, "
30832 "causing this call to fail.  The caller must split up such requests into "
30833 "smaller groups of names."
30834 msgstr ""
30835
30836 #. type: textblock
30837 #: ../src/guestfs-actions.pod:4513
30838 msgid ""
30839 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30840 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
30841 msgstr ""
30842
30843 #. type: =head2
30844 #: ../src/guestfs-actions.pod:4519
30845 msgid "guestfs_luks_add_key"
30846 msgstr ""
30847
30848 #. type: verbatim
30849 #: ../src/guestfs-actions.pod:4521
30850 #, no-wrap
30851 msgid ""
30852 " int\n"
30853 " guestfs_luks_add_key (guestfs_h *g,\n"
30854 "                       const char *device,\n"
30855 "                       const char *key,\n"
30856 "                       const char *newkey,\n"
30857 "                       int keyslot);\n"
30858 "\n"
30859 msgstr ""
30860
30861 #. type: textblock
30862 #: ../src/guestfs-actions.pod:4533
30863 msgid ""
30864 "Note that if C<keyslot> already contains a key, then this command will "
30865 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
30866 msgstr ""
30867
30868 #. type: textblock
30869 #: ../src/guestfs-actions.pod:4539 ../src/guestfs-actions.pod:4576
30870 #: ../src/guestfs-actions.pod:4596 ../src/guestfs-actions.pod:4616
30871 #: ../src/guestfs-actions.pod:4651 ../src/guestfs-actions.pod:4670
30872 msgid ""
30873 "This function takes a key or passphrase parameter which could contain "
30874 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
30875 "information."
30876 msgstr ""
30877
30878 #. type: textblock
30879 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4580
30880 #: ../src/guestfs-actions.pod:4600 ../src/guestfs-actions.pod:4620
30881 msgid "(Added in 1.5.2)"
30882 msgstr ""
30883
30884 #. type: =head2
30885 #: ../src/guestfs-actions.pod:4545
30886 msgid "guestfs_luks_close"
30887 msgstr ""
30888
30889 #. type: verbatim
30890 #: ../src/guestfs-actions.pod:4547
30891 #, no-wrap
30892 msgid ""
30893 " int\n"
30894 " guestfs_luks_close (guestfs_h *g,\n"
30895 "                     const char *device);\n"
30896 "\n"
30897 msgstr ""
30898
30899 #. type: textblock
30900 #: ../src/guestfs-actions.pod:4551
30901 msgid ""
30902 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30903 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
30904 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30905 "underlying block device."
30906 msgstr ""
30907
30908 #. type: textblock
30909 #: ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4655
30910 #: ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4724
30911 #: ../src/guestfs-actions.pod:4769
30912 msgid "(Added in 1.5.1)"
30913 msgstr ""
30914
30915 #. type: =head2
30916 #: ../src/guestfs-actions.pod:4561
30917 msgid "guestfs_luks_format"
30918 msgstr ""
30919
30920 #. type: verbatim
30921 #: ../src/guestfs-actions.pod:4563
30922 #, no-wrap
30923 msgid ""
30924 " int\n"
30925 " guestfs_luks_format (guestfs_h *g,\n"
30926 "                      const char *device,\n"
30927 "                      const char *key,\n"
30928 "                      int keyslot);\n"
30929 "\n"
30930 msgstr ""
30931
30932 #. type: =head2
30933 #: ../src/guestfs-actions.pod:4582
30934 msgid "guestfs_luks_format_cipher"
30935 msgstr ""
30936
30937 #. type: verbatim
30938 #: ../src/guestfs-actions.pod:4584
30939 #, no-wrap
30940 msgid ""
30941 " int\n"
30942 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30943 "                             const char *device,\n"
30944 "                             const char *key,\n"
30945 "                             int keyslot,\n"
30946 "                             const char *cipher);\n"
30947 "\n"
30948 msgstr ""
30949
30950 #. type: textblock
30951 #: ../src/guestfs-actions.pod:4591
30952 msgid ""
30953 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30954 "set the C<cipher> used."
30955 msgstr ""
30956
30957 #. type: =head2
30958 #: ../src/guestfs-actions.pod:4602
30959 msgid "guestfs_luks_kill_slot"
30960 msgstr ""
30961
30962 #. type: verbatim
30963 #: ../src/guestfs-actions.pod:4604
30964 #, no-wrap
30965 msgid ""
30966 " int\n"
30967 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30968 "                         const char *device,\n"
30969 "                         const char *key,\n"
30970 "                         int keyslot);\n"
30971 "\n"
30972 msgstr ""
30973
30974 #. type: =head2
30975 #: ../src/guestfs-actions.pod:4622
30976 msgid "guestfs_luks_open"
30977 msgstr ""
30978
30979 #. type: verbatim
30980 #: ../src/guestfs-actions.pod:4624
30981 #, no-wrap
30982 msgid ""
30983 " int\n"
30984 " guestfs_luks_open (guestfs_h *g,\n"
30985 "                    const char *device,\n"
30986 "                    const char *key,\n"
30987 "                    const char *mapname);\n"
30988 "\n"
30989 msgstr ""
30990
30991 #. type: textblock
30992 #: ../src/guestfs-actions.pod:4642
30993 msgid ""
30994 "If this block device contains LVM volume groups, then calling "
30995 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30996 "visible."
30997 msgstr ""
30998
30999 #. type: textblock
31000 #: ../src/guestfs-actions.pod:4646
31001 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
31002 msgstr ""
31003
31004 #. type: =head2
31005 #: ../src/guestfs-actions.pod:4657
31006 msgid "guestfs_luks_open_ro"
31007 msgstr ""
31008
31009 #. type: verbatim
31010 #: ../src/guestfs-actions.pod:4659
31011 #, no-wrap
31012 msgid ""
31013 " int\n"
31014 " guestfs_luks_open_ro (guestfs_h *g,\n"
31015 "                       const char *device,\n"
31016 "                       const char *key,\n"
31017 "                       const char *mapname);\n"
31018 "\n"
31019 msgstr ""
31020
31021 #. type: textblock
31022 #: ../src/guestfs-actions.pod:4665
31023 msgid ""
31024 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
31025 "created."
31026 msgstr ""
31027
31028 #. type: =head2
31029 #: ../src/guestfs-actions.pod:4676
31030 msgid "guestfs_lvcreate"
31031 msgstr ""
31032
31033 #. type: verbatim
31034 #: ../src/guestfs-actions.pod:4678
31035 #, no-wrap
31036 msgid ""
31037 " int\n"
31038 " guestfs_lvcreate (guestfs_h *g,\n"
31039 "                   const char *logvol,\n"
31040 "                   const char *volgroup,\n"
31041 "                   int mbytes);\n"
31042 "\n"
31043 msgstr ""
31044
31045 #. type: =head2
31046 #: ../src/guestfs-actions.pod:4691
31047 msgid "guestfs_lvm_canonical_lv_name"
31048 msgstr ""
31049
31050 #. type: verbatim
31051 #: ../src/guestfs-actions.pod:4693
31052 #, no-wrap
31053 msgid ""
31054 " char *\n"
31055 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31056 "                                const char *lvname);\n"
31057 "\n"
31058 msgstr ""
31059
31060 #. type: textblock
31061 #: ../src/guestfs-actions.pod:4704
31062 msgid "See also C<guestfs_is_lv>."
31063 msgstr ""
31064
31065 #. type: textblock
31066 #: ../src/guestfs-actions.pod:4709
31067 msgid "(Added in 1.5.24)"
31068 msgstr ""
31069
31070 #. type: =head2
31071 #: ../src/guestfs-actions.pod:4711
31072 msgid "guestfs_lvm_clear_filter"
31073 msgstr ""
31074
31075 #. type: verbatim
31076 #: ../src/guestfs-actions.pod:4713
31077 #, no-wrap
31078 msgid ""
31079 " int\n"
31080 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31081 "\n"
31082 msgstr ""
31083
31084 #. type: textblock
31085 #: ../src/guestfs-actions.pod:4716
31086 msgid ""
31087 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
31088 "see every block device."
31089 msgstr ""
31090
31091 #. type: =head2
31092 #: ../src/guestfs-actions.pod:4726
31093 msgid "guestfs_lvm_remove_all"
31094 msgstr ""
31095
31096 #. type: verbatim
31097 #: ../src/guestfs-actions.pod:4728
31098 #, no-wrap
31099 msgid ""
31100 " int\n"
31101 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31102 "\n"
31103 msgstr ""
31104
31105 #. type: =head2
31106 #: ../src/guestfs-actions.pod:4738
31107 msgid "guestfs_lvm_set_filter"
31108 msgstr ""
31109
31110 #. type: verbatim
31111 #: ../src/guestfs-actions.pod:4740
31112 #, no-wrap
31113 msgid ""
31114 " int\n"
31115 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31116 "                         char *const *devices);\n"
31117 "\n"
31118 msgstr ""
31119
31120 #. type: =head2
31121 #: ../src/guestfs-actions.pod:4771
31122 msgid "guestfs_lvremove"
31123 msgstr ""
31124
31125 #. type: verbatim
31126 #: ../src/guestfs-actions.pod:4773
31127 #, no-wrap
31128 msgid ""
31129 " int\n"
31130 " guestfs_lvremove (guestfs_h *g,\n"
31131 "                   const char *device);\n"
31132 "\n"
31133 msgstr ""
31134
31135 #. type: textblock
31136 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:6344
31137 #: ../src/guestfs-actions.pod:8304
31138 msgid "(Added in 1.0.13)"
31139 msgstr ""
31140
31141 #. type: =head2
31142 #: ../src/guestfs-actions.pod:4787
31143 msgid "guestfs_lvrename"
31144 msgstr ""
31145
31146 #. type: verbatim
31147 #: ../src/guestfs-actions.pod:4789
31148 #, no-wrap
31149 msgid ""
31150 " int\n"
31151 " guestfs_lvrename (guestfs_h *g,\n"
31152 "                   const char *logvol,\n"
31153 "                   const char *newlogvol);\n"
31154 "\n"
31155 msgstr ""
31156
31157 #. type: textblock
31158 #: ../src/guestfs-actions.pod:4798 ../src/guestfs-actions.pod:8317
31159 msgid "(Added in 1.0.83)"
31160 msgstr ""
31161
31162 #. type: =head2
31163 #: ../src/guestfs-actions.pod:4800
31164 msgid "guestfs_lvresize"
31165 msgstr ""
31166
31167 #. type: verbatim
31168 #: ../src/guestfs-actions.pod:4802
31169 #, no-wrap
31170 msgid ""
31171 " int\n"
31172 " guestfs_lvresize (guestfs_h *g,\n"
31173 "                   const char *device,\n"
31174 "                   int mbytes);\n"
31175 "\n"
31176 msgstr ""
31177
31178 #. type: =head2
31179 #: ../src/guestfs-actions.pod:4815
31180 msgid "guestfs_lvresize_free"
31181 msgstr ""
31182
31183 #. type: verbatim
31184 #: ../src/guestfs-actions.pod:4817
31185 #, no-wrap
31186 msgid ""
31187 " int\n"
31188 " guestfs_lvresize_free (guestfs_h *g,\n"
31189 "                        const char *lv,\n"
31190 "                        int percent);\n"
31191 "\n"
31192 msgstr ""
31193
31194 #. type: textblock
31195 #: ../src/guestfs-actions.pod:4830
31196 msgid "(Added in 1.3.3)"
31197 msgstr ""
31198
31199 #. type: =head2
31200 #: ../src/guestfs-actions.pod:4832
31201 msgid "guestfs_lvs"
31202 msgstr ""
31203
31204 #. type: verbatim
31205 #: ../src/guestfs-actions.pod:4834
31206 #, no-wrap
31207 msgid ""
31208 " char **\n"
31209 " guestfs_lvs (guestfs_h *g);\n"
31210 "\n"
31211 msgstr ""
31212
31213 #. type: textblock
31214 #: ../src/guestfs-actions.pod:4843
31215 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
31216 msgstr ""
31217
31218 #. type: =head2
31219 #: ../src/guestfs-actions.pod:4851
31220 msgid "guestfs_lvs_full"
31221 msgstr ""
31222
31223 #. type: verbatim
31224 #: ../src/guestfs-actions.pod:4853
31225 #, no-wrap
31226 msgid ""
31227 " struct guestfs_lvm_lv_list *\n"
31228 " guestfs_lvs_full (guestfs_h *g);\n"
31229 "\n"
31230 msgstr ""
31231
31232 #. type: textblock
31233 #: ../src/guestfs-actions.pod:4859
31234 msgid ""
31235 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
31236 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
31237 msgstr ""
31238
31239 #. type: =head2
31240 #: ../src/guestfs-actions.pod:4865
31241 msgid "guestfs_lvuuid"
31242 msgstr ""
31243
31244 #. type: verbatim
31245 #: ../src/guestfs-actions.pod:4867
31246 #, no-wrap
31247 msgid ""
31248 " char *\n"
31249 " guestfs_lvuuid (guestfs_h *g,\n"
31250 "                 const char *device);\n"
31251 "\n"
31252 msgstr ""
31253
31254 #. type: =head2
31255 #: ../src/guestfs-actions.pod:4878
31256 msgid "guestfs_lxattrlist"
31257 msgstr ""
31258
31259 #. type: verbatim
31260 #: ../src/guestfs-actions.pod:4880
31261 #, no-wrap
31262 msgid ""
31263 " struct guestfs_xattr_list *\n"
31264 " guestfs_lxattrlist (guestfs_h *g,\n"
31265 "                     const char *path,\n"
31266 "                     char *const *names);\n"
31267 "\n"
31268 msgstr ""
31269
31270 #. type: textblock
31271 #: ../src/guestfs-actions.pod:4899
31272 msgid ""
31273 "This call is intended for programs that want to efficiently list a directory "
31274 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
31275 "a similarly efficient call for getting standard stats.  Very long directory "
31276 "listings might cause the protocol message size to be exceeded, causing this "
31277 "call to fail.  The caller must split up such requests into smaller groups of "
31278 "names."
31279 msgstr ""
31280
31281 #. type: =head2
31282 #: ../src/guestfs-actions.pod:4913
31283 msgid "guestfs_md_create"
31284 msgstr ""
31285
31286 #. type: verbatim
31287 #: ../src/guestfs-actions.pod:4915
31288 #, no-wrap
31289 msgid ""
31290 " int\n"
31291 " guestfs_md_create (guestfs_h *g,\n"
31292 "                    const char *name,\n"
31293 "                    char *const *devices,\n"
31294 "                    ...);\n"
31295 "\n"
31296 msgstr ""
31297
31298 #. type: verbatim
31299 #: ../src/guestfs-actions.pod:4926
31300 #, no-wrap
31301 msgid ""
31302 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
31303 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
31304 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
31305 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
31306 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
31307 "\n"
31308 msgstr ""
31309
31310 #. type: =head2
31311 #: ../src/guestfs-actions.pod:4988
31312 msgid "guestfs_md_create_va"
31313 msgstr ""
31314
31315 #. type: verbatim
31316 #: ../src/guestfs-actions.pod:4990
31317 #, no-wrap
31318 msgid ""
31319 " int\n"
31320 " guestfs_md_create_va (guestfs_h *g,\n"
31321 "                       const char *name,\n"
31322 "                       char *const *devices,\n"
31323 "                       va_list args);\n"
31324 "\n"
31325 msgstr ""
31326
31327 #. type: textblock
31328 #: ../src/guestfs-actions.pod:4996
31329 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
31330 msgstr ""
31331
31332 #. type: =head2
31333 #: ../src/guestfs-actions.pod:5000
31334 msgid "guestfs_md_create_argv"
31335 msgstr ""
31336
31337 #. type: verbatim
31338 #: ../src/guestfs-actions.pod:5002
31339 #, no-wrap
31340 msgid ""
31341 " int\n"
31342 " guestfs_md_create_argv (guestfs_h *g,\n"
31343 "                         const char *name,\n"
31344 "                         char *const *devices,\n"
31345 "                         const struct guestfs_md_create_argv *optargs);\n"
31346 "\n"
31347 msgstr ""
31348
31349 #. type: textblock
31350 #: ../src/guestfs-actions.pod:5008
31351 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
31352 msgstr ""
31353
31354 #. type: =head2
31355 #: ../src/guestfs-actions.pod:5012
31356 msgid "guestfs_md_detail"
31357 msgstr ""
31358
31359 #. type: verbatim
31360 #: ../src/guestfs-actions.pod:5014
31361 #, no-wrap
31362 msgid ""
31363 " char **\n"
31364 " guestfs_md_detail (guestfs_h *g,\n"
31365 "                    const char *md);\n"
31366 "\n"
31367 msgstr ""
31368
31369 #. type: =head2
31370 #: ../src/guestfs-actions.pod:5051
31371 msgid "guestfs_md_stop"
31372 msgstr ""
31373
31374 #. type: verbatim
31375 #: ../src/guestfs-actions.pod:5053
31376 #, no-wrap
31377 msgid ""
31378 " int\n"
31379 " guestfs_md_stop (guestfs_h *g,\n"
31380 "                  const char *md);\n"
31381 "\n"
31382 msgstr ""
31383
31384 #. type: =head2
31385 #: ../src/guestfs-actions.pod:5062
31386 msgid "guestfs_mkdir"
31387 msgstr ""
31388
31389 #. type: verbatim
31390 #: ../src/guestfs-actions.pod:5064
31391 #, no-wrap
31392 msgid ""
31393 " int\n"
31394 " guestfs_mkdir (guestfs_h *g,\n"
31395 "                const char *path);\n"
31396 "\n"
31397 msgstr ""
31398
31399 #. type: =head2
31400 #: ../src/guestfs-actions.pod:5074
31401 msgid "guestfs_mkdir_mode"
31402 msgstr ""
31403
31404 #. type: verbatim
31405 #: ../src/guestfs-actions.pod:5076
31406 #, no-wrap
31407 msgid ""
31408 " int\n"
31409 " guestfs_mkdir_mode (guestfs_h *g,\n"
31410 "                     const char *path,\n"
31411 "                     int mode);\n"
31412 "\n"
31413 msgstr ""
31414
31415 #. type: textblock
31416 #: ../src/guestfs-actions.pod:5088
31417 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
31418 msgstr ""
31419
31420 #. type: =head2
31421 #: ../src/guestfs-actions.pod:5094
31422 msgid "guestfs_mkdir_p"
31423 msgstr ""
31424
31425 #. type: verbatim
31426 #: ../src/guestfs-actions.pod:5096
31427 #, no-wrap
31428 msgid ""
31429 " int\n"
31430 " guestfs_mkdir_p (guestfs_h *g,\n"
31431 "                  const char *path);\n"
31432 "\n"
31433 msgstr ""
31434
31435 #. type: =head2
31436 #: ../src/guestfs-actions.pod:5107
31437 msgid "guestfs_mkdtemp"
31438 msgstr ""
31439
31440 #. type: verbatim
31441 #: ../src/guestfs-actions.pod:5109
31442 #, no-wrap
31443 msgid ""
31444 " char *\n"
31445 " guestfs_mkdtemp (guestfs_h *g,\n"
31446 "                  const char *template);\n"
31447 "\n"
31448 msgstr ""
31449
31450 #. type: =head2
31451 #: ../src/guestfs-actions.pod:5137
31452 msgid "guestfs_mke2fs_J"
31453 msgstr ""
31454
31455 #. type: verbatim
31456 #: ../src/guestfs-actions.pod:5139
31457 #, no-wrap
31458 msgid ""
31459 " int\n"
31460 " guestfs_mke2fs_J (guestfs_h *g,\n"
31461 "                   const char *fstype,\n"
31462 "                   int blocksize,\n"
31463 "                   const char *device,\n"
31464 "                   const char *journal);\n"
31465 "\n"
31466 msgstr ""
31467
31468 #. type: textblock
31469 #: ../src/guestfs-actions.pod:5152
31470 msgid "See also C<guestfs_mke2journal>."
31471 msgstr ""
31472
31473 #. type: textblock
31474 #: ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5174
31475 #: ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5208
31476 #: ../src/guestfs-actions.pod:5222 ../src/guestfs-actions.pod:5236
31477 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5572
31478 msgid "(Added in 1.0.68)"
31479 msgstr ""
31480
31481 #. type: =head2
31482 #: ../src/guestfs-actions.pod:5158
31483 msgid "guestfs_mke2fs_JL"
31484 msgstr ""
31485
31486 #. type: verbatim
31487 #: ../src/guestfs-actions.pod:5160
31488 #, no-wrap
31489 msgid ""
31490 " int\n"
31491 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31492 "                    const char *fstype,\n"
31493 "                    int blocksize,\n"
31494 "                    const char *device,\n"
31495 "                    const char *label);\n"
31496 "\n"
31497 msgstr ""
31498
31499 #. type: textblock
31500 #: ../src/guestfs-actions.pod:5170
31501 msgid "See also C<guestfs_mke2journal_L>."
31502 msgstr ""
31503
31504 #. type: =head2
31505 #: ../src/guestfs-actions.pod:5176
31506 msgid "guestfs_mke2fs_JU"
31507 msgstr ""
31508
31509 #. type: verbatim
31510 #: ../src/guestfs-actions.pod:5178
31511 #, no-wrap
31512 msgid ""
31513 " int\n"
31514 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31515 "                    const char *fstype,\n"
31516 "                    int blocksize,\n"
31517 "                    const char *device,\n"
31518 "                    const char *uuid);\n"
31519 "\n"
31520 msgstr ""
31521
31522 #. type: textblock
31523 #: ../src/guestfs-actions.pod:5188
31524 msgid "See also C<guestfs_mke2journal_U>."
31525 msgstr ""
31526
31527 #. type: =head2
31528 #: ../src/guestfs-actions.pod:5194
31529 msgid "guestfs_mke2journal"
31530 msgstr ""
31531
31532 #. type: verbatim
31533 #: ../src/guestfs-actions.pod:5196
31534 #, no-wrap
31535 msgid ""
31536 " int\n"
31537 " guestfs_mke2journal (guestfs_h *g,\n"
31538 "                      int blocksize,\n"
31539 "                      const char *device);\n"
31540 "\n"
31541 msgstr ""
31542
31543 #. type: =head2
31544 #: ../src/guestfs-actions.pod:5210
31545 msgid "guestfs_mke2journal_L"
31546 msgstr ""
31547
31548 #. type: verbatim
31549 #: ../src/guestfs-actions.pod:5212
31550 #, no-wrap
31551 msgid ""
31552 " int\n"
31553 " guestfs_mke2journal_L (guestfs_h *g,\n"
31554 "                        int blocksize,\n"
31555 "                        const char *label,\n"
31556 "                        const char *device);\n"
31557 "\n"
31558 msgstr ""
31559
31560 #. type: =head2
31561 #: ../src/guestfs-actions.pod:5224
31562 msgid "guestfs_mke2journal_U"
31563 msgstr ""
31564
31565 #. type: verbatim
31566 #: ../src/guestfs-actions.pod:5226
31567 #, no-wrap
31568 msgid ""
31569 " int\n"
31570 " guestfs_mke2journal_U (guestfs_h *g,\n"
31571 "                        int blocksize,\n"
31572 "                        const char *uuid,\n"
31573 "                        const char *device);\n"
31574 "\n"
31575 msgstr ""
31576
31577 #. type: =head2
31578 #: ../src/guestfs-actions.pod:5238
31579 msgid "guestfs_mkfifo"
31580 msgstr ""
31581
31582 #. type: verbatim
31583 #: ../src/guestfs-actions.pod:5240
31584 #, no-wrap
31585 msgid ""
31586 " int\n"
31587 " guestfs_mkfifo (guestfs_h *g,\n"
31588 "                 int mode,\n"
31589 "                 const char *path);\n"
31590 "\n"
31591 msgstr ""
31592
31593 #. type: textblock
31594 #: ../src/guestfs-actions.pod:5245
31595 msgid ""
31596 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
31597 "is just a convenient wrapper around C<guestfs_mknod>."
31598 msgstr ""
31599
31600 #. type: =head2
31601 #: ../src/guestfs-actions.pod:5255
31602 msgid "guestfs_mkfs"
31603 msgstr ""
31604
31605 #. type: verbatim
31606 #: ../src/guestfs-actions.pod:5257
31607 #, no-wrap
31608 msgid ""
31609 " int\n"
31610 " guestfs_mkfs (guestfs_h *g,\n"
31611 "               const char *fstype,\n"
31612 "               const char *device);\n"
31613 "\n"
31614 msgstr ""
31615
31616 #. type: =head2
31617 #: ../src/guestfs-actions.pod:5270
31618 msgid "guestfs_mkfs_b"
31619 msgstr ""
31620
31621 #. type: verbatim
31622 #: ../src/guestfs-actions.pod:5272
31623 #, no-wrap
31624 msgid ""
31625 " int\n"
31626 " guestfs_mkfs_b (guestfs_h *g,\n"
31627 "                 const char *fstype,\n"
31628 "                 int blocksize,\n"
31629 "                 const char *device);\n"
31630 "\n"
31631 msgstr ""
31632
31633 #. type: textblock
31634 #: ../src/guestfs-actions.pod:5278
31635 msgid ""
31636 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31637 "call instead."
31638 msgstr ""
31639
31640 #. type: textblock
31641 #: ../src/guestfs-actions.pod:5285
31642 msgid ""
31643 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31644 "block size of the resulting filesystem.  Supported block sizes depend on the "
31645 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31646 msgstr ""
31647
31648 #. type: =head2
31649 #: ../src/guestfs-actions.pod:5297
31650 msgid "guestfs_mkfs_opts"
31651 msgstr ""
31652
31653 #. type: verbatim
31654 #: ../src/guestfs-actions.pod:5299
31655 #, no-wrap
31656 msgid ""
31657 " int\n"
31658 " guestfs_mkfs_opts (guestfs_h *g,\n"
31659 "                    const char *fstype,\n"
31660 "                    const char *device,\n"
31661 "                    ...);\n"
31662 "\n"
31663 msgstr ""
31664
31665 #. type: verbatim
31666 #: ../src/guestfs-actions.pod:5310
31667 #, no-wrap
31668 msgid ""
31669 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31670 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31671 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31672 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31673 "\n"
31674 msgstr ""
31675
31676 #. type: textblock
31677 #: ../src/guestfs-actions.pod:5358
31678 msgid "(Added in 1.7.19)"
31679 msgstr ""
31680
31681 #. type: =head2
31682 #: ../src/guestfs-actions.pod:5360
31683 msgid "guestfs_mkfs_opts_va"
31684 msgstr ""
31685
31686 #. type: verbatim
31687 #: ../src/guestfs-actions.pod:5362
31688 #, no-wrap
31689 msgid ""
31690 " int\n"
31691 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31692 "                       const char *fstype,\n"
31693 "                       const char *device,\n"
31694 "                       va_list args);\n"
31695 "\n"
31696 msgstr ""
31697
31698 #. type: textblock
31699 #: ../src/guestfs-actions.pod:5368
31700 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31701 msgstr ""
31702
31703 #. type: =head2
31704 #: ../src/guestfs-actions.pod:5372
31705 msgid "guestfs_mkfs_opts_argv"
31706 msgstr ""
31707
31708 #. type: verbatim
31709 #: ../src/guestfs-actions.pod:5374
31710 #, no-wrap
31711 msgid ""
31712 " int\n"
31713 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31714 "                         const char *fstype,\n"
31715 "                         const char *device,\n"
31716 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31717 "\n"
31718 msgstr ""
31719
31720 #. type: textblock
31721 #: ../src/guestfs-actions.pod:5380
31722 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31723 msgstr ""
31724
31725 #. type: =head2
31726 #: ../src/guestfs-actions.pod:5384
31727 msgid "guestfs_mkmountpoint"
31728 msgstr ""
31729
31730 #. type: verbatim
31731 #: ../src/guestfs-actions.pod:5386
31732 #, no-wrap
31733 msgid ""
31734 " int\n"
31735 " guestfs_mkmountpoint (guestfs_h *g,\n"
31736 "                       const char *exemptpath);\n"
31737 "\n"
31738 msgstr ""
31739
31740 #. type: textblock
31741 #: ../src/guestfs-actions.pod:5390
31742 msgid ""
31743 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31744 "that can be used to create extra mountpoints before mounting the first "
31745 "filesystem."
31746 msgstr ""
31747
31748 #. type: textblock
31749 #: ../src/guestfs-actions.pod:5414
31750 msgid ""
31751 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
31752 "may get unexpected errors if you try to mix these calls.  It is safest to "
31753 "manually unmount filesystems and remove mountpoints after use."
31754 msgstr ""
31755
31756 #. type: textblock
31757 #: ../src/guestfs-actions.pod:5418
31758 msgid ""
31759 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31760 "first, so for this to work for manual mountpoints, you must ensure that the "
31761 "innermost mountpoints have the longest pathnames, as in the example code "
31762 "above."
31763 msgstr ""
31764
31765 #. type: textblock
31766 #: ../src/guestfs-actions.pod:5425
31767 msgid ""
31768 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31769 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31770 "can also trigger these issues."
31771 msgstr ""
31772
31773 #. type: textblock
31774 #: ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5737
31775 #: ../src/guestfs-actions.pod:6764
31776 msgid "(Added in 1.0.62)"
31777 msgstr ""
31778
31779 #. type: =head2
31780 #: ../src/guestfs-actions.pod:5433
31781 msgid "guestfs_mknod"
31782 msgstr ""
31783
31784 #. type: verbatim
31785 #: ../src/guestfs-actions.pod:5435
31786 #, no-wrap
31787 msgid ""
31788 " int\n"
31789 " guestfs_mknod (guestfs_h *g,\n"
31790 "                int mode,\n"
31791 "                int devmajor,\n"
31792 "                int devminor,\n"
31793 "                const char *path);\n"
31794 "\n"
31795 msgstr ""
31796
31797 #. type: textblock
31798 #: ../src/guestfs-actions.pod:5450
31799 msgid ""
31800 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31801 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31802 "regular file).  These constants are available in the standard Linux header "
31803 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31804 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31805 "the appropriate constant for you."
31806 msgstr ""
31807
31808 #. type: =head2
31809 #: ../src/guestfs-actions.pod:5464
31810 msgid "guestfs_mknod_b"
31811 msgstr ""
31812
31813 #. type: verbatim
31814 #: ../src/guestfs-actions.pod:5466
31815 #, no-wrap
31816 msgid ""
31817 " int\n"
31818 " guestfs_mknod_b (guestfs_h *g,\n"
31819 "                  int mode,\n"
31820 "                  int devmajor,\n"
31821 "                  int devminor,\n"
31822 "                  const char *path);\n"
31823 "\n"
31824 msgstr ""
31825
31826 #. type: textblock
31827 #: ../src/guestfs-actions.pod:5473
31828 msgid ""
31829 "This call creates a block device node called C<path> with mode C<mode> and "
31830 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31831 "wrapper around C<guestfs_mknod>."
31832 msgstr ""
31833
31834 #. type: =head2
31835 #: ../src/guestfs-actions.pod:5483
31836 msgid "guestfs_mknod_c"
31837 msgstr ""
31838
31839 #. type: verbatim
31840 #: ../src/guestfs-actions.pod:5485
31841 #, no-wrap
31842 msgid ""
31843 " int\n"
31844 " guestfs_mknod_c (guestfs_h *g,\n"
31845 "                  int mode,\n"
31846 "                  int devmajor,\n"
31847 "                  int devminor,\n"
31848 "                  const char *path);\n"
31849 "\n"
31850 msgstr ""
31851
31852 #. type: textblock
31853 #: ../src/guestfs-actions.pod:5492
31854 msgid ""
31855 "This call creates a char device node called C<path> with mode C<mode> and "
31856 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31857 "wrapper around C<guestfs_mknod>."
31858 msgstr ""
31859
31860 #. type: =head2
31861 #: ../src/guestfs-actions.pod:5502
31862 msgid "guestfs_mkswap"
31863 msgstr ""
31864
31865 #. type: verbatim
31866 #: ../src/guestfs-actions.pod:5504
31867 #, no-wrap
31868 msgid ""
31869 " int\n"
31870 " guestfs_mkswap (guestfs_h *g,\n"
31871 "                 const char *device);\n"
31872 "\n"
31873 msgstr ""
31874
31875 #. type: =head2
31876 #: ../src/guestfs-actions.pod:5514
31877 msgid "guestfs_mkswap_L"
31878 msgstr ""
31879
31880 #. type: verbatim
31881 #: ../src/guestfs-actions.pod:5516
31882 #, no-wrap
31883 msgid ""
31884 " int\n"
31885 " guestfs_mkswap_L (guestfs_h *g,\n"
31886 "                   const char *label,\n"
31887 "                   const char *device);\n"
31888 "\n"
31889 msgstr ""
31890
31891 #. type: =head2
31892 #: ../src/guestfs-actions.pod:5531
31893 msgid "guestfs_mkswap_U"
31894 msgstr ""
31895
31896 #. type: verbatim
31897 #: ../src/guestfs-actions.pod:5533
31898 #, no-wrap
31899 msgid ""
31900 " int\n"
31901 " guestfs_mkswap_U (guestfs_h *g,\n"
31902 "                   const char *uuid,\n"
31903 "                   const char *device);\n"
31904 "\n"
31905 msgstr ""
31906
31907 #. type: =head2
31908 #: ../src/guestfs-actions.pod:5544
31909 msgid "guestfs_mkswap_file"
31910 msgstr ""
31911
31912 #. type: verbatim
31913 #: ../src/guestfs-actions.pod:5546
31914 #, no-wrap
31915 msgid ""
31916 " int\n"
31917 " guestfs_mkswap_file (guestfs_h *g,\n"
31918 "                      const char *path);\n"
31919 "\n"
31920 msgstr ""
31921
31922 #. type: textblock
31923 #: ../src/guestfs-actions.pod:5552
31924 msgid ""
31925 "This command just writes a swap file signature to an existing file.  To "
31926 "create the file itself, use something like C<guestfs_fallocate>."
31927 msgstr ""
31928
31929 #. type: =head2
31930 #: ../src/guestfs-actions.pod:5559
31931 msgid "guestfs_modprobe"
31932 msgstr ""
31933
31934 #. type: verbatim
31935 #: ../src/guestfs-actions.pod:5561
31936 #, no-wrap
31937 msgid ""
31938 " int\n"
31939 " guestfs_modprobe (guestfs_h *g,\n"
31940 "                   const char *modulename);\n"
31941 "\n"
31942 msgstr ""
31943
31944 #. type: =head2
31945 #: ../src/guestfs-actions.pod:5574
31946 msgid "guestfs_mount"
31947 msgstr ""
31948
31949 #. type: verbatim
31950 #: ../src/guestfs-actions.pod:5576
31951 #, no-wrap
31952 msgid ""
31953 " int\n"
31954 " guestfs_mount (guestfs_h *g,\n"
31955 "                const char *device,\n"
31956 "                const char *mountpoint);\n"
31957 "\n"
31958 msgstr ""
31959
31960 #. type: textblock
31961 #: ../src/guestfs-actions.pod:5595
31962 msgid ""
31963 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31964 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
31965 "problems for users.  If your program might need to work with older versions "
31966 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31967 "for the first parameter if you don't want any options)."
31968 msgstr ""
31969
31970 #. type: =head2
31971 #: ../src/guestfs-actions.pod:5606
31972 msgid "guestfs_mount_9p"
31973 msgstr ""
31974
31975 #. type: verbatim
31976 #: ../src/guestfs-actions.pod:5608
31977 #, no-wrap
31978 msgid ""
31979 " int\n"
31980 " guestfs_mount_9p (guestfs_h *g,\n"
31981 "                   const char *mounttag,\n"
31982 "                   const char *mountpoint,\n"
31983 "                   ...);\n"
31984 "\n"
31985 msgstr ""
31986
31987 #. type: verbatim
31988 #: ../src/guestfs-actions.pod:5619
31989 #, no-wrap
31990 msgid ""
31991 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31992 "\n"
31993 msgstr ""
31994
31995 #. type: =head2
31996 #: ../src/guestfs-actions.pod:5632
31997 msgid "guestfs_mount_9p_va"
31998 msgstr ""
31999
32000 #. type: verbatim
32001 #: ../src/guestfs-actions.pod:5634
32002 #, no-wrap
32003 msgid ""
32004 " int\n"
32005 " guestfs_mount_9p_va (guestfs_h *g,\n"
32006 "                      const char *mounttag,\n"
32007 "                      const char *mountpoint,\n"
32008 "                      va_list args);\n"
32009 "\n"
32010 msgstr ""
32011
32012 #. type: textblock
32013 #: ../src/guestfs-actions.pod:5640
32014 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
32015 msgstr ""
32016
32017 #. type: =head2
32018 #: ../src/guestfs-actions.pod:5644
32019 msgid "guestfs_mount_9p_argv"
32020 msgstr ""
32021
32022 #. type: verbatim
32023 #: ../src/guestfs-actions.pod:5646
32024 #, no-wrap
32025 msgid ""
32026 " int\n"
32027 " guestfs_mount_9p_argv (guestfs_h *g,\n"
32028 "                        const char *mounttag,\n"
32029 "                        const char *mountpoint,\n"
32030 "                        const struct guestfs_mount_9p_argv *optargs);\n"
32031 "\n"
32032 msgstr ""
32033
32034 #. type: textblock
32035 #: ../src/guestfs-actions.pod:5652
32036 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
32037 msgstr ""
32038
32039 #. type: =head2
32040 #: ../src/guestfs-actions.pod:5656
32041 msgid "guestfs_mount_loop"
32042 msgstr ""
32043
32044 #. type: verbatim
32045 #: ../src/guestfs-actions.pod:5658
32046 #, no-wrap
32047 msgid ""
32048 " int\n"
32049 " guestfs_mount_loop (guestfs_h *g,\n"
32050 "                     const char *file,\n"
32051 "                     const char *mountpoint);\n"
32052 "\n"
32053 msgstr ""
32054
32055 #. type: =head2
32056 #: ../src/guestfs-actions.pod:5671
32057 msgid "guestfs_mount_options"
32058 msgstr ""
32059
32060 #. type: verbatim
32061 #: ../src/guestfs-actions.pod:5673
32062 #, no-wrap
32063 msgid ""
32064 " int\n"
32065 " guestfs_mount_options (guestfs_h *g,\n"
32066 "                        const char *options,\n"
32067 "                        const char *device,\n"
32068 "                        const char *mountpoint);\n"
32069 "\n"
32070 msgstr ""
32071
32072 #. type: textblock
32073 #: ../src/guestfs-actions.pod:5679
32074 msgid ""
32075 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32076 "the mount options as for the L<mount(8)> I<-o> flag."
32077 msgstr ""
32078
32079 #. type: textblock
32080 #: ../src/guestfs-actions.pod:5689 ../src/guestfs-actions.pod:5703
32081 #: ../src/guestfs-actions.pod:5720
32082 msgid "(Added in 1.0.10)"
32083 msgstr ""
32084
32085 #. type: =head2
32086 #: ../src/guestfs-actions.pod:5691
32087 msgid "guestfs_mount_ro"
32088 msgstr ""
32089
32090 #. type: verbatim
32091 #: ../src/guestfs-actions.pod:5693
32092 #, no-wrap
32093 msgid ""
32094 " int\n"
32095 " guestfs_mount_ro (guestfs_h *g,\n"
32096 "                   const char *device,\n"
32097 "                   const char *mountpoint);\n"
32098 "\n"
32099 msgstr ""
32100
32101 #. type: textblock
32102 #: ../src/guestfs-actions.pod:5698
32103 msgid ""
32104 "This is the same as the C<guestfs_mount> command, but it mounts the "
32105 "filesystem with the read-only (I<-o ro>) flag."
32106 msgstr ""
32107
32108 #. type: =head2
32109 #: ../src/guestfs-actions.pod:5705
32110 msgid "guestfs_mount_vfs"
32111 msgstr ""
32112
32113 #. type: verbatim
32114 #: ../src/guestfs-actions.pod:5707
32115 #, no-wrap
32116 msgid ""
32117 " int\n"
32118 " guestfs_mount_vfs (guestfs_h *g,\n"
32119 "                    const char *options,\n"
32120 "                    const char *vfstype,\n"
32121 "                    const char *device,\n"
32122 "                    const char *mountpoint);\n"
32123 "\n"
32124 msgstr ""
32125
32126 #. type: textblock
32127 #: ../src/guestfs-actions.pod:5714
32128 msgid ""
32129 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32130 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
32131 "t> flags."
32132 msgstr ""
32133
32134 #. type: =head2
32135 #: ../src/guestfs-actions.pod:5722
32136 msgid "guestfs_mountpoints"
32137 msgstr ""
32138
32139 #. type: verbatim
32140 #: ../src/guestfs-actions.pod:5724
32141 #, no-wrap
32142 msgid ""
32143 " char **\n"
32144 " guestfs_mountpoints (guestfs_h *g);\n"
32145 "\n"
32146 msgstr ""
32147
32148 #. type: textblock
32149 #: ../src/guestfs-actions.pod:5727
32150 msgid ""
32151 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
32152 "devices.  This one returns a hash table (map) of device name to directory "
32153 "where the device is mounted."
32154 msgstr ""
32155
32156 #. type: =head2
32157 #: ../src/guestfs-actions.pod:5739
32158 msgid "guestfs_mounts"
32159 msgstr ""
32160
32161 #. type: verbatim
32162 #: ../src/guestfs-actions.pod:5741
32163 #, no-wrap
32164 msgid ""
32165 " char **\n"
32166 " guestfs_mounts (guestfs_h *g);\n"
32167 "\n"
32168 msgstr ""
32169
32170 #. type: textblock
32171 #: ../src/guestfs-actions.pod:5749
32172 msgid "See also: C<guestfs_mountpoints>"
32173 msgstr ""
32174
32175 #. type: =head2
32176 #: ../src/guestfs-actions.pod:5757
32177 msgid "guestfs_mv"
32178 msgstr ""
32179
32180 #. type: verbatim
32181 #: ../src/guestfs-actions.pod:5759
32182 #, no-wrap
32183 msgid ""
32184 " int\n"
32185 " guestfs_mv (guestfs_h *g,\n"
32186 "             const char *src,\n"
32187 "             const char *dest);\n"
32188 "\n"
32189 msgstr ""
32190
32191 #. type: =head2
32192 #: ../src/guestfs-actions.pod:5771
32193 msgid "guestfs_ntfs_3g_probe"
32194 msgstr ""
32195
32196 #. type: verbatim
32197 #: ../src/guestfs-actions.pod:5773
32198 #, no-wrap
32199 msgid ""
32200 " int\n"
32201 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
32202 "                        int rw,\n"
32203 "                        const char *device);\n"
32204 "\n"
32205 msgstr ""
32206
32207 #. type: textblock
32208 #: ../src/guestfs-actions.pod:5792
32209 msgid "(Added in 1.0.43)"
32210 msgstr ""
32211
32212 #. type: =head2
32213 #: ../src/guestfs-actions.pod:5794
32214 msgid "guestfs_ntfsresize"
32215 msgstr ""
32216
32217 #. type: verbatim
32218 #: ../src/guestfs-actions.pod:5796
32219 #, no-wrap
32220 msgid ""
32221 " int\n"
32222 " guestfs_ntfsresize (guestfs_h *g,\n"
32223 "                     const char *device);\n"
32224 "\n"
32225 msgstr ""
32226
32227 #. type: textblock
32228 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:5900
32229 msgid ""
32230 "I<This function is deprecated.> In new code, use the L</"
32231 "guestfs_ntfsresize_opts> call instead."
32232 msgstr ""
32233
32234 #. type: =head2
32235 #: ../src/guestfs-actions.pod:5824
32236 msgid "guestfs_ntfsresize_opts"
32237 msgstr ""
32238
32239 #. type: verbatim
32240 #: ../src/guestfs-actions.pod:5826
32241 #, no-wrap
32242 msgid ""
32243 " int\n"
32244 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
32245 "                          const char *device,\n"
32246 "                          ...);\n"
32247 "\n"
32248 msgstr ""
32249
32250 #. type: verbatim
32251 #: ../src/guestfs-actions.pod:5836
32252 #, no-wrap
32253 msgid ""
32254 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
32255 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
32256 "\n"
32257 msgstr ""
32258
32259 #. type: textblock
32260 #: ../src/guestfs-actions.pod:5856
32261 msgid ""
32262 "After the resize operation, the filesystem is always marked as requiring a "
32263 "consistency check (for safety).  You have to boot into Windows to perform "
32264 "this check and clear this condition.  If you I<don't> set the C<force> "
32265 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
32266 "times on a single filesystem without booting into Windows between each "
32267 "resize."
32268 msgstr ""
32269
32270 #. type: =head2
32271 #: ../src/guestfs-actions.pod:5871
32272 msgid "guestfs_ntfsresize_opts_va"
32273 msgstr ""
32274
32275 #. type: verbatim
32276 #: ../src/guestfs-actions.pod:5873
32277 #, no-wrap
32278 msgid ""
32279 " int\n"
32280 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
32281 "                             const char *device,\n"
32282 "                             va_list args);\n"
32283 "\n"
32284 msgstr ""
32285
32286 #. type: textblock
32287 #: ../src/guestfs-actions.pod:5878
32288 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
32289 msgstr ""
32290
32291 #. type: =head2
32292 #: ../src/guestfs-actions.pod:5882
32293 msgid "guestfs_ntfsresize_opts_argv"
32294 msgstr ""
32295
32296 #. type: verbatim
32297 #: ../src/guestfs-actions.pod:5884
32298 #, no-wrap
32299 msgid ""
32300 " int\n"
32301 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
32302 "                               const char *device,\n"
32303 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
32304 "\n"
32305 msgstr ""
32306
32307 #. type: textblock
32308 #: ../src/guestfs-actions.pod:5889
32309 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
32310 msgstr ""
32311
32312 #. type: =head2
32313 #: ../src/guestfs-actions.pod:5893
32314 msgid "guestfs_ntfsresize_size"
32315 msgstr ""
32316
32317 #. type: verbatim
32318 #: ../src/guestfs-actions.pod:5895
32319 #, no-wrap
32320 msgid ""
32321 " int\n"
32322 " guestfs_ntfsresize_size (guestfs_h *g,\n"
32323 "                          const char *device,\n"
32324 "                          int64_t size);\n"
32325 "\n"
32326 msgstr ""
32327
32328 #. type: textblock
32329 #: ../src/guestfs-actions.pod:5907
32330 msgid ""
32331 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
32332 "to specify the new size (in bytes) explicitly."
32333 msgstr ""
32334
32335 #. type: textblock
32336 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6371
32337 #: ../src/guestfs-actions.pod:6444 ../src/guestfs-actions.pod:6712
32338 #: ../src/guestfs-actions.pod:8461
32339 msgid "(Added in 1.3.14)"
32340 msgstr ""
32341
32342 #. type: =head2
32343 #: ../src/guestfs-actions.pod:5914
32344 msgid "guestfs_part_add"
32345 msgstr ""
32346
32347 #. type: verbatim
32348 #: ../src/guestfs-actions.pod:5916
32349 #, no-wrap
32350 msgid ""
32351 " int\n"
32352 " guestfs_part_add (guestfs_h *g,\n"
32353 "                   const char *device,\n"
32354 "                   const char *prlogex,\n"
32355 "                   int64_t startsect,\n"
32356 "                   int64_t endsect);\n"
32357 "\n"
32358 msgstr ""
32359
32360 #. type: textblock
32361 #: ../src/guestfs-actions.pod:5923
32362 msgid ""
32363 "This command adds a partition to C<device>.  If there is no partition table "
32364 "on the device, call C<guestfs_part_init> first."
32365 msgstr ""
32366
32367 #. type: textblock
32368 #: ../src/guestfs-actions.pod:5935
32369 msgid ""
32370 "Creating a partition which covers the whole disk is not so easy.  Use "
32371 "C<guestfs_part_disk> to do that."
32372 msgstr ""
32373
32374 #. type: textblock
32375 #: ../src/guestfs-actions.pod:5940 ../src/guestfs-actions.pod:5975
32376 #: ../src/guestfs-actions.pod:6028 ../src/guestfs-actions.pod:6112
32377 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
32378 #: ../src/guestfs-actions.pod:6209
32379 msgid "(Added in 1.0.78)"
32380 msgstr ""
32381
32382 #. type: =head2
32383 #: ../src/guestfs-actions.pod:5942
32384 msgid "guestfs_part_del"
32385 msgstr ""
32386
32387 #. type: verbatim
32388 #: ../src/guestfs-actions.pod:5944
32389 #, no-wrap
32390 msgid ""
32391 " int\n"
32392 " guestfs_part_del (guestfs_h *g,\n"
32393 "                   const char *device,\n"
32394 "                   int partnum);\n"
32395 "\n"
32396 msgstr ""
32397
32398 #. type: =head2
32399 #: ../src/guestfs-actions.pod:5959
32400 msgid "guestfs_part_disk"
32401 msgstr ""
32402
32403 #. type: verbatim
32404 #: ../src/guestfs-actions.pod:5961
32405 #, no-wrap
32406 msgid ""
32407 " int\n"
32408 " guestfs_part_disk (guestfs_h *g,\n"
32409 "                    const char *device,\n"
32410 "                    const char *parttype);\n"
32411 "\n"
32412 msgstr ""
32413
32414 #. type: textblock
32415 #: ../src/guestfs-actions.pod:5966
32416 msgid ""
32417 "This command is simply a combination of C<guestfs_part_init> followed by "
32418 "C<guestfs_part_add> to create a single primary partition covering the whole "
32419 "disk."
32420 msgstr ""
32421
32422 #. type: textblock
32423 #: ../src/guestfs-actions.pod:5970
32424 msgid ""
32425 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
32426 "possible values are described in C<guestfs_part_init>."
32427 msgstr ""
32428
32429 #. type: =head2
32430 #: ../src/guestfs-actions.pod:5977
32431 msgid "guestfs_part_get_bootable"
32432 msgstr ""
32433
32434 #. type: verbatim
32435 #: ../src/guestfs-actions.pod:5979
32436 #, no-wrap
32437 msgid ""
32438 " int\n"
32439 " guestfs_part_get_bootable (guestfs_h *g,\n"
32440 "                            const char *device,\n"
32441 "                            int partnum);\n"
32442 "\n"
32443 msgstr ""
32444
32445 #. type: textblock
32446 #: ../src/guestfs-actions.pod:5987
32447 msgid "See also C<guestfs_part_set_bootable>."
32448 msgstr ""
32449
32450 #. type: =head2
32451 #: ../src/guestfs-actions.pod:5993
32452 msgid "guestfs_part_get_mbr_id"
32453 msgstr ""
32454
32455 #. type: verbatim
32456 #: ../src/guestfs-actions.pod:5995
32457 #, no-wrap
32458 msgid ""
32459 " int\n"
32460 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32461 "                          const char *device,\n"
32462 "                          int partnum);\n"
32463 "\n"
32464 msgstr ""
32465
32466 #. type: textblock
32467 #: ../src/guestfs-actions.pod:6003 ../src/guestfs-actions.pod:6185
32468 msgid ""
32469 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
32470 "undefined results for other partition table types (see "
32471 "C<guestfs_part_get_parttype>)."
32472 msgstr ""
32473
32474 #. type: =head2
32475 #: ../src/guestfs-actions.pod:6011
32476 msgid "guestfs_part_get_parttype"
32477 msgstr ""
32478
32479 #. type: verbatim
32480 #: ../src/guestfs-actions.pod:6013
32481 #, no-wrap
32482 msgid ""
32483 " char *\n"
32484 " guestfs_part_get_parttype (guestfs_h *g,\n"
32485 "                            const char *device);\n"
32486 "\n"
32487 msgstr ""
32488
32489 #. type: textblock
32490 #: ../src/guestfs-actions.pod:6020
32491 msgid ""
32492 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32493 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
32494 "possible, although unusual.  See C<guestfs_part_init> for a full list."
32495 msgstr ""
32496
32497 #. type: =head2
32498 #: ../src/guestfs-actions.pod:6030
32499 msgid "guestfs_part_init"
32500 msgstr ""
32501
32502 #. type: verbatim
32503 #: ../src/guestfs-actions.pod:6032
32504 #, no-wrap
32505 msgid ""
32506 " int\n"
32507 " guestfs_part_init (guestfs_h *g,\n"
32508 "                    const char *device,\n"
32509 "                    const char *parttype);\n"
32510 "\n"
32511 msgstr ""
32512
32513 #. type: textblock
32514 #: ../src/guestfs-actions.pod:6041
32515 msgid ""
32516 "Initially there are no partitions.  Following this, you should call "
32517 "C<guestfs_part_add> for each partition required."
32518 msgstr ""
32519
32520 #. type: =head2
32521 #: ../src/guestfs-actions.pod:6114
32522 msgid "guestfs_part_list"
32523 msgstr ""
32524
32525 #. type: verbatim
32526 #: ../src/guestfs-actions.pod:6116
32527 #, no-wrap
32528 msgid ""
32529 " struct guestfs_partition_list *\n"
32530 " guestfs_part_list (guestfs_h *g,\n"
32531 "                    const char *device);\n"
32532 "\n"
32533 msgstr ""
32534
32535 #. type: textblock
32536 #: ../src/guestfs-actions.pod:6133
32537 msgid ""
32538 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
32539 "the device's sector size, see C<guestfs_blockdev_getss>."
32540 msgstr ""
32541
32542 #. type: textblock
32543 #: ../src/guestfs-actions.pod:6146
32544 msgid ""
32545 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32546 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
32547 "use>."
32548 msgstr ""
32549
32550 #. type: =head2
32551 #: ../src/guestfs-actions.pod:6152
32552 msgid "guestfs_part_set_bootable"
32553 msgstr ""
32554
32555 #. type: verbatim
32556 #: ../src/guestfs-actions.pod:6154
32557 #, no-wrap
32558 msgid ""
32559 " int\n"
32560 " guestfs_part_set_bootable (guestfs_h *g,\n"
32561 "                            const char *device,\n"
32562 "                            int partnum,\n"
32563 "                            int bootable);\n"
32564 "\n"
32565 msgstr ""
32566
32567 #. type: =head2
32568 #: ../src/guestfs-actions.pod:6171
32569 msgid "guestfs_part_set_mbr_id"
32570 msgstr ""
32571
32572 #. type: verbatim
32573 #: ../src/guestfs-actions.pod:6173
32574 #, no-wrap
32575 msgid ""
32576 " int\n"
32577 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32578 "                          const char *device,\n"
32579 "                          int partnum,\n"
32580 "                          int idbyte);\n"
32581 "\n"
32582 msgstr ""
32583
32584 #. type: =head2
32585 #: ../src/guestfs-actions.pod:6193
32586 msgid "guestfs_part_set_name"
32587 msgstr ""
32588
32589 #. type: verbatim
32590 #: ../src/guestfs-actions.pod:6195
32591 #, no-wrap
32592 msgid ""
32593 " int\n"
32594 " guestfs_part_set_name (guestfs_h *g,\n"
32595 "                        const char *device,\n"
32596 "                        int partnum,\n"
32597 "                        const char *name);\n"
32598 "\n"
32599 msgstr ""
32600
32601 #. type: =head2
32602 #: ../src/guestfs-actions.pod:6211
32603 msgid "guestfs_part_to_dev"
32604 msgstr ""
32605
32606 #. type: verbatim
32607 #: ../src/guestfs-actions.pod:6213
32608 #, no-wrap
32609 msgid ""
32610 " char *\n"
32611 " guestfs_part_to_dev (guestfs_h *g,\n"
32612 "                      const char *partition);\n"
32613 "\n"
32614 msgstr ""
32615
32616 #. type: textblock
32617 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6240
32618 msgid ""
32619 "The named partition must exist, for example as a string returned from "
32620 "C<guestfs_list_partitions>."
32621 msgstr ""
32622
32623 #. type: textblock
32624 #: ../src/guestfs-actions.pod:6224
32625 msgid "See also C<guestfs_part_to_partnum>."
32626 msgstr ""
32627
32628 #. type: =head2
32629 #: ../src/guestfs-actions.pod:6231
32630 msgid "guestfs_part_to_partnum"
32631 msgstr ""
32632
32633 #. type: verbatim
32634 #: ../src/guestfs-actions.pod:6233
32635 #, no-wrap
32636 msgid ""
32637 " int\n"
32638 " guestfs_part_to_partnum (guestfs_h *g,\n"
32639 "                          const char *partition);\n"
32640 "\n"
32641 msgstr ""
32642
32643 #. type: textblock
32644 #: ../src/guestfs-actions.pod:6243
32645 msgid "See also C<guestfs_part_to_dev>."
32646 msgstr ""
32647
32648 #. type: =head2
32649 #: ../src/guestfs-actions.pod:6249
32650 msgid "guestfs_ping_daemon"
32651 msgstr ""
32652
32653 #. type: verbatim
32654 #: ../src/guestfs-actions.pod:6251
32655 #, no-wrap
32656 msgid ""
32657 " int\n"
32658 " guestfs_ping_daemon (guestfs_h *g);\n"
32659 "\n"
32660 msgstr ""
32661
32662 #. type: =head2
32663 #: ../src/guestfs-actions.pod:6263
32664 msgid "guestfs_pread"
32665 msgstr ""
32666
32667 #. type: verbatim
32668 #: ../src/guestfs-actions.pod:6265
32669 #, no-wrap
32670 msgid ""
32671 " char *\n"
32672 " guestfs_pread (guestfs_h *g,\n"
32673 "                const char *path,\n"
32674 "                int count,\n"
32675 "                int64_t offset,\n"
32676 "                size_t *size_r);\n"
32677 "\n"
32678 msgstr ""
32679
32680 #. type: textblock
32681 #: ../src/guestfs-actions.pod:6278
32682 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32683 msgstr ""
32684
32685 #. type: =head2
32686 #: ../src/guestfs-actions.pod:6289
32687 msgid "guestfs_pread_device"
32688 msgstr ""
32689
32690 #. type: verbatim
32691 #: ../src/guestfs-actions.pod:6291
32692 #, no-wrap
32693 msgid ""
32694 " char *\n"
32695 " guestfs_pread_device (guestfs_h *g,\n"
32696 "                       const char *device,\n"
32697 "                       int count,\n"
32698 "                       int64_t offset,\n"
32699 "                       size_t *size_r);\n"
32700 "\n"
32701 msgstr ""
32702
32703 #. type: textblock
32704 #: ../src/guestfs-actions.pod:6304
32705 msgid "See also C<guestfs_pread>."
32706 msgstr ""
32707
32708 #. type: textblock
32709 #: ../src/guestfs-actions.pod:6313
32710 msgid "(Added in 1.5.21)"
32711 msgstr ""
32712
32713 #. type: =head2
32714 #: ../src/guestfs-actions.pod:6315
32715 msgid "guestfs_pvcreate"
32716 msgstr ""
32717
32718 #. type: verbatim
32719 #: ../src/guestfs-actions.pod:6317
32720 #, no-wrap
32721 msgid ""
32722 " int\n"
32723 " guestfs_pvcreate (guestfs_h *g,\n"
32724 "                   const char *device);\n"
32725 "\n"
32726 msgstr ""
32727
32728 #. type: =head2
32729 #: ../src/guestfs-actions.pod:6329
32730 msgid "guestfs_pvremove"
32731 msgstr ""
32732
32733 #. type: verbatim
32734 #: ../src/guestfs-actions.pod:6331
32735 #, no-wrap
32736 msgid ""
32737 " int\n"
32738 " guestfs_pvremove (guestfs_h *g,\n"
32739 "                   const char *device);\n"
32740 "\n"
32741 msgstr ""
32742
32743 #. type: =head2
32744 #: ../src/guestfs-actions.pod:6346
32745 msgid "guestfs_pvresize"
32746 msgstr ""
32747
32748 #. type: verbatim
32749 #: ../src/guestfs-actions.pod:6348
32750 #, no-wrap
32751 msgid ""
32752 " int\n"
32753 " guestfs_pvresize (guestfs_h *g,\n"
32754 "                   const char *device);\n"
32755 "\n"
32756 msgstr ""
32757
32758 #. type: =head2
32759 #: ../src/guestfs-actions.pod:6359
32760 msgid "guestfs_pvresize_size"
32761 msgstr ""
32762
32763 #. type: verbatim
32764 #: ../src/guestfs-actions.pod:6361
32765 #, no-wrap
32766 msgid ""
32767 " int\n"
32768 " guestfs_pvresize_size (guestfs_h *g,\n"
32769 "                        const char *device,\n"
32770 "                        int64_t size);\n"
32771 "\n"
32772 msgstr ""
32773
32774 #. type: textblock
32775 #: ../src/guestfs-actions.pod:6366
32776 msgid ""
32777 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32778 "specify the new size (in bytes) explicitly."
32779 msgstr ""
32780
32781 #. type: =head2
32782 #: ../src/guestfs-actions.pod:6373
32783 msgid "guestfs_pvs"
32784 msgstr ""
32785
32786 #. type: verbatim
32787 #: ../src/guestfs-actions.pod:6375
32788 #, no-wrap
32789 msgid ""
32790 " char **\n"
32791 " guestfs_pvs (guestfs_h *g);\n"
32792 "\n"
32793 msgstr ""
32794
32795 #. type: textblock
32796 #: ../src/guestfs-actions.pod:6384
32797 msgid "See also C<guestfs_pvs_full>."
32798 msgstr ""
32799
32800 #. type: =head2
32801 #: ../src/guestfs-actions.pod:6392
32802 msgid "guestfs_pvs_full"
32803 msgstr ""
32804
32805 #. type: verbatim
32806 #: ../src/guestfs-actions.pod:6394
32807 #, no-wrap
32808 msgid ""
32809 " struct guestfs_lvm_pv_list *\n"
32810 " guestfs_pvs_full (guestfs_h *g);\n"
32811 "\n"
32812 msgstr ""
32813
32814 #. type: textblock
32815 #: ../src/guestfs-actions.pod:6400
32816 msgid ""
32817 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32818 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32819 msgstr ""
32820
32821 #. type: =head2
32822 #: ../src/guestfs-actions.pod:6406
32823 msgid "guestfs_pvuuid"
32824 msgstr ""
32825
32826 #. type: verbatim
32827 #: ../src/guestfs-actions.pod:6408
32828 #, no-wrap
32829 msgid ""
32830 " char *\n"
32831 " guestfs_pvuuid (guestfs_h *g,\n"
32832 "                 const char *device);\n"
32833 "\n"
32834 msgstr ""
32835
32836 #. type: =head2
32837 #: ../src/guestfs-actions.pod:6419
32838 msgid "guestfs_pwrite"
32839 msgstr ""
32840
32841 #. type: verbatim
32842 #: ../src/guestfs-actions.pod:6421
32843 #, no-wrap
32844 msgid ""
32845 " int\n"
32846 " guestfs_pwrite (guestfs_h *g,\n"
32847 "                 const char *path,\n"
32848 "                 const char *content,\n"
32849 "                 size_t content_size,\n"
32850 "                 int64_t offset);\n"
32851 "\n"
32852 msgstr ""
32853
32854 #. type: textblock
32855 #: ../src/guestfs-actions.pod:6437
32856 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32857 msgstr ""
32858
32859 #. type: =head2
32860 #: ../src/guestfs-actions.pod:6446
32861 msgid "guestfs_pwrite_device"
32862 msgstr ""
32863
32864 #. type: verbatim
32865 #: ../src/guestfs-actions.pod:6448
32866 #, no-wrap
32867 msgid ""
32868 " int\n"
32869 " guestfs_pwrite_device (guestfs_h *g,\n"
32870 "                        const char *device,\n"
32871 "                        const char *content,\n"
32872 "                        size_t content_size,\n"
32873 "                        int64_t offset);\n"
32874 "\n"
32875 msgstr ""
32876
32877 #. type: textblock
32878 #: ../src/guestfs-actions.pod:6463
32879 msgid "See also C<guestfs_pwrite>."
32880 msgstr ""
32881
32882 #. type: textblock
32883 #: ../src/guestfs-actions.pod:6470
32884 msgid "(Added in 1.5.20)"
32885 msgstr ""
32886
32887 #. type: =head2
32888 #: ../src/guestfs-actions.pod:6472
32889 msgid "guestfs_read_file"
32890 msgstr ""
32891
32892 #. type: verbatim
32893 #: ../src/guestfs-actions.pod:6474
32894 #, no-wrap
32895 msgid ""
32896 " char *\n"
32897 " guestfs_read_file (guestfs_h *g,\n"
32898 "                    const char *path,\n"
32899 "                    size_t *size_r);\n"
32900 "\n"
32901 msgstr ""
32902
32903 #. type: textblock
32904 #: ../src/guestfs-actions.pod:6482
32905 msgid ""
32906 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32907 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
32908 "function is limited in the total size of file that can be handled."
32909 msgstr ""
32910
32911 #. type: textblock
32912 #: ../src/guestfs-actions.pod:6494
32913 msgid "(Added in 1.0.63)"
32914 msgstr ""
32915
32916 #. type: =head2
32917 #: ../src/guestfs-actions.pod:6496
32918 msgid "guestfs_read_lines"
32919 msgstr ""
32920
32921 #. type: verbatim
32922 #: ../src/guestfs-actions.pod:6498
32923 #, no-wrap
32924 msgid ""
32925 " char **\n"
32926 " guestfs_read_lines (guestfs_h *g,\n"
32927 "                     const char *path);\n"
32928 "\n"
32929 msgstr ""
32930
32931 #. type: textblock
32932 #: ../src/guestfs-actions.pod:6507
32933 msgid ""
32934 "Note that this function cannot correctly handle binary files (specifically, "
32935 "files containing C<\\0> character which is treated as end of line).  For "
32936 "those you need to use the C<guestfs_read_file> function which has a more "
32937 "complex interface."
32938 msgstr ""
32939
32940 #. type: =head2
32941 #: ../src/guestfs-actions.pod:6518
32942 msgid "guestfs_readdir"
32943 msgstr ""
32944
32945 #. type: verbatim
32946 #: ../src/guestfs-actions.pod:6520
32947 #, no-wrap
32948 msgid ""
32949 " struct guestfs_dirent_list *\n"
32950 " guestfs_readdir (guestfs_h *g,\n"
32951 "                  const char *dir);\n"
32952 "\n"
32953 msgstr ""
32954
32955 #. type: textblock
32956 #: ../src/guestfs-actions.pod:6574
32957 msgid ""
32958 "This function is primarily intended for use by programs.  To get a simple "
32959 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
32960 "consumption, use C<guestfs_ll>."
32961 msgstr ""
32962
32963 #. type: textblock
32964 #: ../src/guestfs-actions.pod:6578
32965 msgid ""
32966 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32967 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
32968 msgstr ""
32969
32970 #. type: =head2
32971 #: ../src/guestfs-actions.pod:6584
32972 msgid "guestfs_readlink"
32973 msgstr ""
32974
32975 #. type: verbatim
32976 #: ../src/guestfs-actions.pod:6586
32977 #, no-wrap
32978 msgid ""
32979 " char *\n"
32980 " guestfs_readlink (guestfs_h *g,\n"
32981 "                   const char *path);\n"
32982 "\n"
32983 msgstr ""
32984
32985 #. type: =head2
32986 #: ../src/guestfs-actions.pod:6597
32987 msgid "guestfs_readlinklist"
32988 msgstr ""
32989
32990 #. type: verbatim
32991 #: ../src/guestfs-actions.pod:6599
32992 #, no-wrap
32993 msgid ""
32994 " char **\n"
32995 " guestfs_readlinklist (guestfs_h *g,\n"
32996 "                       const char *path,\n"
32997 "                       char *const *names);\n"
32998 "\n"
32999 msgstr ""
33000
33001 #. type: =head2
33002 #: ../src/guestfs-actions.pod:6632
33003 msgid "guestfs_realpath"
33004 msgstr ""
33005
33006 #. type: verbatim
33007 #: ../src/guestfs-actions.pod:6634
33008 #, no-wrap
33009 msgid ""
33010 " char *\n"
33011 " guestfs_realpath (guestfs_h *g,\n"
33012 "                   const char *path);\n"
33013 "\n"
33014 msgstr ""
33015
33016 #. type: =head2
33017 #: ../src/guestfs-actions.pod:6646
33018 msgid "guestfs_removexattr"
33019 msgstr ""
33020
33021 #. type: verbatim
33022 #: ../src/guestfs-actions.pod:6648
33023 #, no-wrap
33024 msgid ""
33025 " int\n"
33026 " guestfs_removexattr (guestfs_h *g,\n"
33027 "                      const char *xattr,\n"
33028 "                      const char *path);\n"
33029 "\n"
33030 msgstr ""
33031
33032 #. type: textblock
33033 #: ../src/guestfs-actions.pod:6656
33034 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
33035 msgstr ""
33036
33037 #. type: =head2
33038 #: ../src/guestfs-actions.pod:6662
33039 msgid "guestfs_resize2fs"
33040 msgstr ""
33041
33042 #. type: verbatim
33043 #: ../src/guestfs-actions.pod:6664
33044 #, no-wrap
33045 msgid ""
33046 " int\n"
33047 " guestfs_resize2fs (guestfs_h *g,\n"
33048 "                    const char *device);\n"
33049 "\n"
33050 msgstr ""
33051
33052 #. type: textblock
33053 #: ../src/guestfs-actions.pod:6671
33054 msgid ""
33055 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
33056 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
33057 "sometimes gives an error about this and sometimes not.  In any case, it is "
33058 "always safe to call C<guestfs_e2fsck_f> before calling this function."
33059 msgstr ""
33060
33061 #. type: =head2
33062 #: ../src/guestfs-actions.pod:6681
33063 msgid "guestfs_resize2fs_M"
33064 msgstr ""
33065
33066 #. type: verbatim
33067 #: ../src/guestfs-actions.pod:6683
33068 #, no-wrap
33069 msgid ""
33070 " int\n"
33071 " guestfs_resize2fs_M (guestfs_h *g,\n"
33072 "                      const char *device);\n"
33073 "\n"
33074 msgstr ""
33075
33076 #. type: textblock
33077 #: ../src/guestfs-actions.pod:6687
33078 msgid ""
33079 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
33080 "resized to its minimum size.  This works like the I<-M> option to the "
33081 "C<resize2fs> command."
33082 msgstr ""
33083
33084 #. type: textblock
33085 #: ../src/guestfs-actions.pod:6691
33086 msgid ""
33087 "To get the resulting size of the filesystem you should call "
33088 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
33089 "These two numbers, multiplied together, give the resulting size of the "
33090 "minimal filesystem in bytes."
33091 msgstr ""
33092
33093 #. type: =head2
33094 #: ../src/guestfs-actions.pod:6700
33095 msgid "guestfs_resize2fs_size"
33096 msgstr ""
33097
33098 #. type: verbatim
33099 #: ../src/guestfs-actions.pod:6702
33100 #, no-wrap
33101 msgid ""
33102 " int\n"
33103 " guestfs_resize2fs_size (guestfs_h *g,\n"
33104 "                         const char *device,\n"
33105 "                         int64_t size);\n"
33106 "\n"
33107 msgstr ""
33108
33109 #. type: textblock
33110 #: ../src/guestfs-actions.pod:6707
33111 msgid ""
33112 "This command is the same as C<guestfs_resize2fs> except that it allows you "
33113 "to specify the new size (in bytes) explicitly."
33114 msgstr ""
33115
33116 #. type: =head2
33117 #: ../src/guestfs-actions.pod:6714
33118 msgid "guestfs_rm"
33119 msgstr ""
33120
33121 #. type: verbatim
33122 #: ../src/guestfs-actions.pod:6716
33123 #, no-wrap
33124 msgid ""
33125 " int\n"
33126 " guestfs_rm (guestfs_h *g,\n"
33127 "             const char *path);\n"
33128 "\n"
33129 msgstr ""
33130
33131 #. type: =head2
33132 #: ../src/guestfs-actions.pod:6726
33133 msgid "guestfs_rm_rf"
33134 msgstr ""
33135
33136 #. type: verbatim
33137 #: ../src/guestfs-actions.pod:6728
33138 #, no-wrap
33139 msgid ""
33140 " int\n"
33141 " guestfs_rm_rf (guestfs_h *g,\n"
33142 "                const char *path);\n"
33143 "\n"
33144 msgstr ""
33145
33146 #. type: =head2
33147 #: ../src/guestfs-actions.pod:6740
33148 msgid "guestfs_rmdir"
33149 msgstr ""
33150
33151 #. type: verbatim
33152 #: ../src/guestfs-actions.pod:6742
33153 #, no-wrap
33154 msgid ""
33155 " int\n"
33156 " guestfs_rmdir (guestfs_h *g,\n"
33157 "                const char *path);\n"
33158 "\n"
33159 msgstr ""
33160
33161 #. type: =head2
33162 #: ../src/guestfs-actions.pod:6752
33163 msgid "guestfs_rmmountpoint"
33164 msgstr ""
33165
33166 #. type: verbatim
33167 #: ../src/guestfs-actions.pod:6754
33168 #, no-wrap
33169 msgid ""
33170 " int\n"
33171 " guestfs_rmmountpoint (guestfs_h *g,\n"
33172 "                       const char *exemptpath);\n"
33173 "\n"
33174 msgstr ""
33175
33176 #. type: textblock
33177 #: ../src/guestfs-actions.pod:6758
33178 msgid ""
33179 "This calls removes a mountpoint that was previously created with "
33180 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
33181 msgstr ""
33182
33183 #. type: =head2
33184 #: ../src/guestfs-actions.pod:6766
33185 msgid "guestfs_scrub_device"
33186 msgstr ""
33187
33188 #. type: verbatim
33189 #: ../src/guestfs-actions.pod:6768
33190 #, no-wrap
33191 msgid ""
33192 " int\n"
33193 " guestfs_scrub_device (guestfs_h *g,\n"
33194 "                       const char *device);\n"
33195 "\n"
33196 msgstr ""
33197
33198 #. type: textblock
33199 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:6798
33200 #: ../src/guestfs-actions.pod:6817
33201 msgid "(Added in 1.0.52)"
33202 msgstr ""
33203
33204 #. type: =head2
33205 #: ../src/guestfs-actions.pod:6782
33206 msgid "guestfs_scrub_file"
33207 msgstr ""
33208
33209 #. type: verbatim
33210 #: ../src/guestfs-actions.pod:6784
33211 #, no-wrap
33212 msgid ""
33213 " int\n"
33214 " guestfs_scrub_file (guestfs_h *g,\n"
33215 "                     const char *file);\n"
33216 "\n"
33217 msgstr ""
33218
33219 #. type: =head2
33220 #: ../src/guestfs-actions.pod:6800
33221 msgid "guestfs_scrub_freespace"
33222 msgstr ""
33223
33224 #. type: verbatim
33225 #: ../src/guestfs-actions.pod:6802
33226 #, no-wrap
33227 msgid ""
33228 " int\n"
33229 " guestfs_scrub_freespace (guestfs_h *g,\n"
33230 "                          const char *dir);\n"
33231 "\n"
33232 msgstr ""
33233
33234 #. type: textblock
33235 #: ../src/guestfs-actions.pod:6806
33236 msgid ""
33237 "This command creates the directory C<dir> and then fills it with files until "
33238 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
33239 "and deletes them.  The intention is to scrub any free space on the partition "
33240 "containing C<dir>."
33241 msgstr ""
33242
33243 #. type: =head2
33244 #: ../src/guestfs-actions.pod:6819
33245 msgid "guestfs_set_append"
33246 msgstr ""
33247
33248 #. type: verbatim
33249 #: ../src/guestfs-actions.pod:6821
33250 #, no-wrap
33251 msgid ""
33252 " int\n"
33253 " guestfs_set_append (guestfs_h *g,\n"
33254 "                     const char *append);\n"
33255 "\n"
33256 msgstr ""
33257
33258 #. type: =head2
33259 #: ../src/guestfs-actions.pod:6838
33260 msgid "guestfs_set_attach_method"
33261 msgstr ""
33262
33263 #. type: verbatim
33264 #: ../src/guestfs-actions.pod:6840
33265 #, no-wrap
33266 msgid ""
33267 " int\n"
33268 " guestfs_set_attach_method (guestfs_h *g,\n"
33269 "                            const char *attachmethod);\n"
33270 "\n"
33271 msgstr ""
33272
33273 #. type: =head2
33274 #: ../src/guestfs-actions.pod:6868
33275 msgid "guestfs_set_autosync"
33276 msgstr ""
33277
33278 #. type: verbatim
33279 #: ../src/guestfs-actions.pod:6870
33280 #, no-wrap
33281 msgid ""
33282 " int\n"
33283 " guestfs_set_autosync (guestfs_h *g,\n"
33284 "                       int autosync);\n"
33285 "\n"
33286 msgstr ""
33287
33288 #. type: =head2
33289 #: ../src/guestfs-actions.pod:6886
33290 msgid "guestfs_set_direct"
33291 msgstr ""
33292
33293 #. type: verbatim
33294 #: ../src/guestfs-actions.pod:6888
33295 #, no-wrap
33296 msgid ""
33297 " int\n"
33298 " guestfs_set_direct (guestfs_h *g,\n"
33299 "                     int direct);\n"
33300 "\n"
33301 msgstr ""
33302
33303 #. type: textblock
33304 #: ../src/guestfs-actions.pod:6896
33305 msgid ""
33306 "One consequence of this is that log messages aren't caught by the library "
33307 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
33308 "stdout."
33309 msgstr ""
33310
33311 #. type: =head2
33312 #: ../src/guestfs-actions.pod:6909
33313 msgid "guestfs_set_e2label"
33314 msgstr ""
33315
33316 #. type: verbatim
33317 #: ../src/guestfs-actions.pod:6911
33318 #, no-wrap
33319 msgid ""
33320 " int\n"
33321 " guestfs_set_e2label (guestfs_h *g,\n"
33322 "                      const char *device,\n"
33323 "                      const char *label);\n"
33324 "\n"
33325 msgstr ""
33326
33327 #. type: textblock
33328 #: ../src/guestfs-actions.pod:6920
33329 msgid ""
33330 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
33331 "the existing label on a filesystem."
33332 msgstr ""
33333
33334 #. type: =head2
33335 #: ../src/guestfs-actions.pod:6927
33336 msgid "guestfs_set_e2uuid"
33337 msgstr ""
33338
33339 #. type: verbatim
33340 #: ../src/guestfs-actions.pod:6929
33341 #, no-wrap
33342 msgid ""
33343 " int\n"
33344 " guestfs_set_e2uuid (guestfs_h *g,\n"
33345 "                     const char *device,\n"
33346 "                     const char *uuid);\n"
33347 "\n"
33348 msgstr ""
33349
33350 #. type: textblock
33351 #: ../src/guestfs-actions.pod:6939
33352 msgid ""
33353 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
33354 "the existing UUID of a filesystem."
33355 msgstr ""
33356
33357 #. type: =head2
33358 #: ../src/guestfs-actions.pod:6946
33359 msgid "guestfs_set_memsize"
33360 msgstr ""
33361
33362 #. type: verbatim
33363 #: ../src/guestfs-actions.pod:6948
33364 #, no-wrap
33365 msgid ""
33366 " int\n"
33367 " guestfs_set_memsize (guestfs_h *g,\n"
33368 "                      int memsize);\n"
33369 "\n"
33370 msgstr ""
33371
33372 #. type: textblock
33373 #: ../src/guestfs-actions.pod:6952
33374 msgid ""
33375 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
33376 "This only has any effect if called before C<guestfs_launch>."
33377 msgstr ""
33378
33379 #. type: =head2
33380 #: ../src/guestfs-actions.pod:6967
33381 msgid "guestfs_set_network"
33382 msgstr ""
33383
33384 #. type: verbatim
33385 #: ../src/guestfs-actions.pod:6969
33386 #, no-wrap
33387 msgid ""
33388 " int\n"
33389 " guestfs_set_network (guestfs_h *g,\n"
33390 "                      int network);\n"
33391 "\n"
33392 msgstr ""
33393
33394 #. type: textblock
33395 #: ../src/guestfs-actions.pod:6979
33396 msgid ""
33397 "You must call this before calling C<guestfs_launch>, otherwise it has no "
33398 "effect."
33399 msgstr ""
33400
33401 #. type: =head2
33402 #: ../src/guestfs-actions.pod:6986
33403 msgid "guestfs_set_path"
33404 msgstr ""
33405
33406 #. type: verbatim
33407 #: ../src/guestfs-actions.pod:6988
33408 #, no-wrap
33409 msgid ""
33410 " int\n"
33411 " guestfs_set_path (guestfs_h *g,\n"
33412 "                   const char *searchpath);\n"
33413 "\n"
33414 msgstr ""
33415
33416 #. type: =head2
33417 #: ../src/guestfs-actions.pod:7003
33418 msgid "guestfs_set_pgroup"
33419 msgstr ""
33420
33421 #. type: verbatim
33422 #: ../src/guestfs-actions.pod:7005
33423 #, no-wrap
33424 msgid ""
33425 " int\n"
33426 " guestfs_set_pgroup (guestfs_h *g,\n"
33427 "                     int pgroup);\n"
33428 "\n"
33429 msgstr ""
33430
33431 #. type: =head2
33432 #: ../src/guestfs-actions.pod:7022
33433 msgid "guestfs_set_qemu"
33434 msgstr ""
33435
33436 #. type: verbatim
33437 #: ../src/guestfs-actions.pod:7024
33438 #, no-wrap
33439 msgid ""
33440 " int\n"
33441 " guestfs_set_qemu (guestfs_h *g,\n"
33442 "                   const char *qemu);\n"
33443 "\n"
33444 msgstr ""
33445
33446 #. type: =head2
33447 #: ../src/guestfs-actions.pod:7050
33448 msgid "guestfs_set_recovery_proc"
33449 msgstr ""
33450
33451 #. type: verbatim
33452 #: ../src/guestfs-actions.pod:7052
33453 #, no-wrap
33454 msgid ""
33455 " int\n"
33456 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33457 "                            int recoveryproc);\n"
33458 "\n"
33459 msgstr ""
33460
33461 #. type: textblock
33462 #: ../src/guestfs-actions.pod:7056
33463 msgid ""
33464 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33465 "not create a recovery process.  The purpose of the recovery process is to "
33466 "stop runaway qemu processes in the case where the main program aborts "
33467 "abruptly."
33468 msgstr ""
33469
33470 #. type: textblock
33471 #: ../src/guestfs-actions.pod:7061
33472 msgid ""
33473 "This only has any effect if called before C<guestfs_launch>, and the default "
33474 "is true."
33475 msgstr ""
33476
33477 #. type: =head2
33478 #: ../src/guestfs-actions.pod:7074
33479 msgid "guestfs_set_selinux"
33480 msgstr ""
33481
33482 #. type: verbatim
33483 #: ../src/guestfs-actions.pod:7076
33484 #, no-wrap
33485 msgid ""
33486 " int\n"
33487 " guestfs_set_selinux (guestfs_h *g,\n"
33488 "                      int selinux);\n"
33489 "\n"
33490 msgstr ""
33491
33492 #. type: =head2
33493 #: ../src/guestfs-actions.pod:7093
33494 msgid "guestfs_set_smp"
33495 msgstr ""
33496
33497 #. type: verbatim
33498 #: ../src/guestfs-actions.pod:7095
33499 #, no-wrap
33500 msgid ""
33501 " int\n"
33502 " guestfs_set_smp (guestfs_h *g,\n"
33503 "                  int smp);\n"
33504 "\n"
33505 msgstr ""
33506
33507 #. type: textblock
33508 #: ../src/guestfs-actions.pod:7103
33509 msgid "This function must be called before C<guestfs_launch>."
33510 msgstr ""
33511
33512 #. type: =head2
33513 #: ../src/guestfs-actions.pod:7109
33514 msgid "guestfs_set_trace"
33515 msgstr ""
33516
33517 #. type: verbatim
33518 #: ../src/guestfs-actions.pod:7111
33519 #, no-wrap
33520 msgid ""
33521 " int\n"
33522 " guestfs_set_trace (guestfs_h *g,\n"
33523 "                    int trace);\n"
33524 "\n"
33525 msgstr ""
33526
33527 #. type: textblock
33528 #: ../src/guestfs-actions.pod:7125
33529 msgid ""
33530 "Trace messages are normally sent to C<stderr>, unless you register a "
33531 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33532 msgstr ""
33533
33534 #. type: =head2
33535 #: ../src/guestfs-actions.pod:7133
33536 msgid "guestfs_set_verbose"
33537 msgstr ""
33538
33539 #. type: verbatim
33540 #: ../src/guestfs-actions.pod:7135
33541 #, no-wrap
33542 msgid ""
33543 " int\n"
33544 " guestfs_set_verbose (guestfs_h *g,\n"
33545 "                      int verbose);\n"
33546 "\n"
33547 msgstr ""
33548
33549 #. type: textblock
33550 #: ../src/guestfs-actions.pod:7144
33551 msgid ""
33552 "Verbose messages are normally sent to C<stderr>, unless you register a "
33553 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33554 msgstr ""
33555
33556 #. type: =head2
33557 #: ../src/guestfs-actions.pod:7152
33558 msgid "guestfs_setcon"
33559 msgstr ""
33560
33561 #. type: verbatim
33562 #: ../src/guestfs-actions.pod:7154
33563 #, no-wrap
33564 msgid ""
33565 " int\n"
33566 " guestfs_setcon (guestfs_h *g,\n"
33567 "                 const char *context);\n"
33568 "\n"
33569 msgstr ""
33570
33571 #. type: =head2
33572 #: ../src/guestfs-actions.pod:7167
33573 msgid "guestfs_setxattr"
33574 msgstr ""
33575
33576 #. type: verbatim
33577 #: ../src/guestfs-actions.pod:7169
33578 #, no-wrap
33579 msgid ""
33580 " int\n"
33581 " guestfs_setxattr (guestfs_h *g,\n"
33582 "                   const char *xattr,\n"
33583 "                   const char *val,\n"
33584 "                   int vallen,\n"
33585 "                   const char *path);\n"
33586 "\n"
33587 msgstr ""
33588
33589 #. type: textblock
33590 #: ../src/guestfs-actions.pod:7180
33591 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33592 msgstr ""
33593
33594 #. type: =head2
33595 #: ../src/guestfs-actions.pod:7186
33596 msgid "guestfs_sfdisk"
33597 msgstr ""
33598
33599 #. type: verbatim
33600 #: ../src/guestfs-actions.pod:7188
33601 #, no-wrap
33602 msgid ""
33603 " int\n"
33604 " guestfs_sfdisk (guestfs_h *g,\n"
33605 "                 const char *device,\n"
33606 "                 int cyls,\n"
33607 "                 int heads,\n"
33608 "                 int sectors,\n"
33609 "                 char *const *lines);\n"
33610 "\n"
33611 msgstr ""
33612
33613 #. type: textblock
33614 #: ../src/guestfs-actions.pod:7196 ../src/guestfs-actions.pod:7237
33615 #: ../src/guestfs-actions.pod:7268
33616 msgid ""
33617 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33618 "call instead."
33619 msgstr ""
33620
33621 #. type: textblock
33622 #: ../src/guestfs-actions.pod:7223
33623 msgid ""
33624 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33625 msgstr ""
33626
33627 #. type: =head2
33628 #: ../src/guestfs-actions.pod:7230
33629 msgid "guestfs_sfdiskM"
33630 msgstr ""
33631
33632 #. type: verbatim
33633 #: ../src/guestfs-actions.pod:7232
33634 #, no-wrap
33635 msgid ""
33636 " int\n"
33637 " guestfs_sfdiskM (guestfs_h *g,\n"
33638 "                  const char *device,\n"
33639 "                  char *const *lines);\n"
33640 "\n"
33641 msgstr ""
33642
33643 #. type: textblock
33644 #: ../src/guestfs-actions.pod:7244
33645 msgid ""
33646 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33647 "partition sizes are specified in megabytes only (rounded to the nearest "
33648 "cylinder) and you don't need to specify the cyls, heads and sectors "
33649 "parameters which were rarely if ever used anyway."
33650 msgstr ""
33651
33652 #. type: textblock
33653 #: ../src/guestfs-actions.pod:7250
33654 msgid ""
33655 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33656 "C<guestfs_part_disk>"
33657 msgstr ""
33658
33659 #. type: =head2
33660 #: ../src/guestfs-actions.pod:7257
33661 msgid "guestfs_sfdisk_N"
33662 msgstr ""
33663
33664 #. type: verbatim
33665 #: ../src/guestfs-actions.pod:7259
33666 #, no-wrap
33667 msgid ""
33668 " int\n"
33669 " guestfs_sfdisk_N (guestfs_h *g,\n"
33670 "                   const char *device,\n"
33671 "                   int partnum,\n"
33672 "                   int cyls,\n"
33673 "                   int heads,\n"
33674 "                   int sectors,\n"
33675 "                   const char *line);\n"
33676 "\n"
33677 msgstr ""
33678
33679 #. type: textblock
33680 #: ../src/guestfs-actions.pod:7278
33681 msgid ""
33682 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
33683 "for the cyls/heads/sectors parameters."
33684 msgstr ""
33685
33686 #. type: textblock
33687 #: ../src/guestfs-actions.pod:7281
33688 msgid "See also: C<guestfs_part_add>"
33689 msgstr ""
33690
33691 #. type: =head2
33692 #: ../src/guestfs-actions.pod:7287
33693 msgid "guestfs_sfdisk_disk_geometry"
33694 msgstr ""
33695
33696 #. type: verbatim
33697 #: ../src/guestfs-actions.pod:7289
33698 #, no-wrap
33699 msgid ""
33700 " char *\n"
33701 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33702 "                               const char *device);\n"
33703 "\n"
33704 msgstr ""
33705
33706 #. type: textblock
33707 #: ../src/guestfs-actions.pod:7293
33708 msgid ""
33709 "This displays the disk geometry of C<device> read from the partition table.  "
33710 "Especially in the case where the underlying block device has been resized, "
33711 "this can be different from the kernel's idea of the geometry (see "
33712 "C<guestfs_sfdisk_kernel_geometry>)."
33713 msgstr ""
33714
33715 #. type: =head2
33716 #: ../src/guestfs-actions.pod:7306
33717 msgid "guestfs_sfdisk_kernel_geometry"
33718 msgstr ""
33719
33720 #. type: verbatim
33721 #: ../src/guestfs-actions.pod:7308
33722 #, no-wrap
33723 msgid ""
33724 " char *\n"
33725 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33726 "                                 const char *device);\n"
33727 "\n"
33728 msgstr ""
33729
33730 #. type: =head2
33731 #: ../src/guestfs-actions.pod:7322
33732 msgid "guestfs_sfdisk_l"
33733 msgstr ""
33734
33735 #. type: verbatim
33736 #: ../src/guestfs-actions.pod:7324
33737 #, no-wrap
33738 msgid ""
33739 " char *\n"
33740 " guestfs_sfdisk_l (guestfs_h *g,\n"
33741 "                   const char *device);\n"
33742 "\n"
33743 msgstr ""
33744
33745 #. type: textblock
33746 #: ../src/guestfs-actions.pod:7328
33747 msgid ""
33748 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33749 "call instead."
33750 msgstr ""
33751
33752 #. type: textblock
33753 #: ../src/guestfs-actions.pod:7339
33754 msgid "See also: C<guestfs_part_list>"
33755 msgstr ""
33756
33757 #. type: =head2
33758 #: ../src/guestfs-actions.pod:7346
33759 msgid "guestfs_sh"
33760 msgstr ""
33761
33762 #. type: verbatim
33763 #: ../src/guestfs-actions.pod:7348
33764 #, no-wrap
33765 msgid ""
33766 " char *\n"
33767 " guestfs_sh (guestfs_h *g,\n"
33768 "             const char *command);\n"
33769 "\n"
33770 msgstr ""
33771
33772 #. type: textblock
33773 #: ../src/guestfs-actions.pod:7355
33774 msgid "This is like C<guestfs_command>, but passes the command to:"
33775 msgstr ""
33776
33777 #. type: textblock
33778 #: ../src/guestfs-actions.pod:7363
33779 msgid "All the provisos about C<guestfs_command> apply to this call."
33780 msgstr ""
33781
33782 #. type: =head2
33783 #: ../src/guestfs-actions.pod:7370
33784 msgid "guestfs_sh_lines"
33785 msgstr ""
33786
33787 #. type: verbatim
33788 #: ../src/guestfs-actions.pod:7372
33789 #, no-wrap
33790 msgid ""
33791 " char **\n"
33792 " guestfs_sh_lines (guestfs_h *g,\n"
33793 "                   const char *command);\n"
33794 "\n"
33795 msgstr ""
33796
33797 #. type: textblock
33798 #: ../src/guestfs-actions.pod:7376
33799 msgid ""
33800 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33801 "lines."
33802 msgstr ""
33803
33804 #. type: textblock
33805 #: ../src/guestfs-actions.pod:7379
33806 msgid "See also: C<guestfs_command_lines>"
33807 msgstr ""
33808
33809 #. type: =head2
33810 #: ../src/guestfs-actions.pod:7387
33811 msgid "guestfs_sleep"
33812 msgstr ""
33813
33814 #. type: verbatim
33815 #: ../src/guestfs-actions.pod:7389
33816 #, no-wrap
33817 msgid ""
33818 " int\n"
33819 " guestfs_sleep (guestfs_h *g,\n"
33820 "                int secs);\n"
33821 "\n"
33822 msgstr ""
33823
33824 #. type: textblock
33825 #: ../src/guestfs-actions.pod:7397
33826 msgid "(Added in 1.0.41)"
33827 msgstr ""
33828
33829 #. type: =head2
33830 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-structs.pod:109
33831 msgid "guestfs_stat"
33832 msgstr ""
33833
33834 #. type: verbatim
33835 #: ../src/guestfs-actions.pod:7401
33836 #, no-wrap
33837 msgid ""
33838 " struct guestfs_stat *\n"
33839 " guestfs_stat (guestfs_h *g,\n"
33840 "               const char *path);\n"
33841 "\n"
33842 msgstr ""
33843
33844 #. type: =head2
33845 #: ../src/guestfs-actions.pod:7415 ../src/guestfs-structs.pod:135
33846 msgid "guestfs_statvfs"
33847 msgstr ""
33848
33849 #. type: verbatim
33850 #: ../src/guestfs-actions.pod:7417
33851 #, no-wrap
33852 msgid ""
33853 " struct guestfs_statvfs *\n"
33854 " guestfs_statvfs (guestfs_h *g,\n"
33855 "                  const char *path);\n"
33856 "\n"
33857 msgstr ""
33858
33859 #. type: textblock
33860 #: ../src/guestfs-actions.pod:7427
33861 msgid ""
33862 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33863 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
33864 msgstr ""
33865
33866 #. type: =head2
33867 #: ../src/guestfs-actions.pod:7433
33868 msgid "guestfs_strings"
33869 msgstr ""
33870
33871 #. type: verbatim
33872 #: ../src/guestfs-actions.pod:7435
33873 #, no-wrap
33874 msgid ""
33875 " char **\n"
33876 " guestfs_strings (guestfs_h *g,\n"
33877 "                  const char *path);\n"
33878 "\n"
33879 msgstr ""
33880
33881 #. type: =head2
33882 #: ../src/guestfs-actions.pod:7451
33883 msgid "guestfs_strings_e"
33884 msgstr ""
33885
33886 #. type: verbatim
33887 #: ../src/guestfs-actions.pod:7453
33888 #, no-wrap
33889 msgid ""
33890 " char **\n"
33891 " guestfs_strings_e (guestfs_h *g,\n"
33892 "                    const char *encoding,\n"
33893 "                    const char *path);\n"
33894 "\n"
33895 msgstr ""
33896
33897 #. type: textblock
33898 #: ../src/guestfs-actions.pod:7458
33899 msgid ""
33900 "This is like the C<guestfs_strings> command, but allows you to specify the "
33901 "encoding of strings that are looked for in the source file C<path>."
33902 msgstr ""
33903
33904 #. type: textblock
33905 #: ../src/guestfs-actions.pod:7468
33906 msgid ""
33907 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33908 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33909 msgstr ""
33910
33911 #. type: =head2
33912 #: ../src/guestfs-actions.pod:7506
33913 msgid "guestfs_swapoff_device"
33914 msgstr ""
33915
33916 #. type: verbatim
33917 #: ../src/guestfs-actions.pod:7508
33918 #, no-wrap
33919 msgid ""
33920 " int\n"
33921 " guestfs_swapoff_device (guestfs_h *g,\n"
33922 "                         const char *device);\n"
33923 "\n"
33924 msgstr ""
33925
33926 #. type: textblock
33927 #: ../src/guestfs-actions.pod:7512
33928 msgid ""
33929 "This command disables the libguestfs appliance swap device or partition "
33930 "named C<device>.  See C<guestfs_swapon_device>."
33931 msgstr ""
33932
33933 #. type: =head2
33934 #: ../src/guestfs-actions.pod:7520
33935 msgid "guestfs_swapoff_file"
33936 msgstr ""
33937
33938 #. type: verbatim
33939 #: ../src/guestfs-actions.pod:7522
33940 #, no-wrap
33941 msgid ""
33942 " int\n"
33943 " guestfs_swapoff_file (guestfs_h *g,\n"
33944 "                       const char *file);\n"
33945 "\n"
33946 msgstr ""
33947
33948 #. type: =head2
33949 #: ../src/guestfs-actions.pod:7532
33950 msgid "guestfs_swapoff_label"
33951 msgstr ""
33952
33953 #. type: verbatim
33954 #: ../src/guestfs-actions.pod:7534
33955 #, no-wrap
33956 msgid ""
33957 " int\n"
33958 " guestfs_swapoff_label (guestfs_h *g,\n"
33959 "                        const char *label);\n"
33960 "\n"
33961 msgstr ""
33962
33963 #. type: =head2
33964 #: ../src/guestfs-actions.pod:7545
33965 msgid "guestfs_swapoff_uuid"
33966 msgstr ""
33967
33968 #. type: verbatim
33969 #: ../src/guestfs-actions.pod:7547
33970 #, no-wrap
33971 msgid ""
33972 " int\n"
33973 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33974 "                       const char *uuid);\n"
33975 "\n"
33976 msgstr ""
33977
33978 #. type: =head2
33979 #: ../src/guestfs-actions.pod:7558
33980 msgid "guestfs_swapon_device"
33981 msgstr ""
33982
33983 #. type: verbatim
33984 #: ../src/guestfs-actions.pod:7560
33985 #, no-wrap
33986 msgid ""
33987 " int\n"
33988 " guestfs_swapon_device (guestfs_h *g,\n"
33989 "                        const char *device);\n"
33990 "\n"
33991 msgstr ""
33992
33993 #. type: textblock
33994 #: ../src/guestfs-actions.pod:7564
33995 msgid ""
33996 "This command enables the libguestfs appliance to use the swap device or "
33997 "partition named C<device>.  The increased memory is made available for all "
33998 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33999 msgstr ""
34000
34001 #. type: =head2
34002 #: ../src/guestfs-actions.pod:7580
34003 msgid "guestfs_swapon_file"
34004 msgstr ""
34005
34006 #. type: verbatim
34007 #: ../src/guestfs-actions.pod:7582
34008 #, no-wrap
34009 msgid ""
34010 " int\n"
34011 " guestfs_swapon_file (guestfs_h *g,\n"
34012 "                      const char *file);\n"
34013 "\n"
34014 msgstr ""
34015
34016 #. type: textblock
34017 #: ../src/guestfs-actions.pod:7586
34018 msgid ""
34019 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
34020 "notes."
34021 msgstr ""
34022
34023 #. type: =head2
34024 #: ../src/guestfs-actions.pod:7593
34025 msgid "guestfs_swapon_label"
34026 msgstr ""
34027
34028 #. type: verbatim
34029 #: ../src/guestfs-actions.pod:7595
34030 #, no-wrap
34031 msgid ""
34032 " int\n"
34033 " guestfs_swapon_label (guestfs_h *g,\n"
34034 "                       const char *label);\n"
34035 "\n"
34036 msgstr ""
34037
34038 #. type: textblock
34039 #: ../src/guestfs-actions.pod:7599
34040 msgid ""
34041 "This command enables swap to a labeled swap partition.  See "
34042 "C<guestfs_swapon_device> for other notes."
34043 msgstr ""
34044
34045 #. type: =head2
34046 #: ../src/guestfs-actions.pod:7606
34047 msgid "guestfs_swapon_uuid"
34048 msgstr ""
34049
34050 #. type: verbatim
34051 #: ../src/guestfs-actions.pod:7608
34052 #, no-wrap
34053 msgid ""
34054 " int\n"
34055 " guestfs_swapon_uuid (guestfs_h *g,\n"
34056 "                      const char *uuid);\n"
34057 "\n"
34058 msgstr ""
34059
34060 #. type: textblock
34061 #: ../src/guestfs-actions.pod:7612
34062 msgid ""
34063 "This command enables swap to a swap partition with the given UUID.  See "
34064 "C<guestfs_swapon_device> for other notes."
34065 msgstr ""
34066
34067 #. type: =head2
34068 #: ../src/guestfs-actions.pod:7619
34069 msgid "guestfs_sync"
34070 msgstr ""
34071
34072 #. type: verbatim
34073 #: ../src/guestfs-actions.pod:7621
34074 #, no-wrap
34075 msgid ""
34076 " int\n"
34077 " guestfs_sync (guestfs_h *g);\n"
34078 "\n"
34079 msgstr ""
34080
34081 #. type: =head2
34082 #: ../src/guestfs-actions.pod:7634
34083 msgid "guestfs_tail"
34084 msgstr ""
34085
34086 #. type: verbatim
34087 #: ../src/guestfs-actions.pod:7636
34088 #, no-wrap
34089 msgid ""
34090 " char **\n"
34091 " guestfs_tail (guestfs_h *g,\n"
34092 "               const char *path);\n"
34093 "\n"
34094 msgstr ""
34095
34096 #. type: =head2
34097 #: ../src/guestfs-actions.pod:7652
34098 msgid "guestfs_tail_n"
34099 msgstr ""
34100
34101 #. type: verbatim
34102 #: ../src/guestfs-actions.pod:7654
34103 #, no-wrap
34104 msgid ""
34105 " char **\n"
34106 " guestfs_tail_n (guestfs_h *g,\n"
34107 "                 int nrlines,\n"
34108 "                 const char *path);\n"
34109 "\n"
34110 msgstr ""
34111
34112 #. type: =head2
34113 #: ../src/guestfs-actions.pod:7676
34114 msgid "guestfs_tar_in"
34115 msgstr ""
34116
34117 #. type: verbatim
34118 #: ../src/guestfs-actions.pod:7678
34119 #, no-wrap
34120 msgid ""
34121 " int\n"
34122 " guestfs_tar_in (guestfs_h *g,\n"
34123 "                 const char *tarfile,\n"
34124 "                 const char *directory);\n"
34125 "\n"
34126 msgstr ""
34127
34128 #. type: textblock
34129 #: ../src/guestfs-actions.pod:7686
34130 msgid ""
34131 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
34132 msgstr ""
34133
34134 #. type: textblock
34135 #: ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7708
34136 #: ../src/guestfs-actions.pod:7724 ../src/guestfs-actions.pod:7740
34137 msgid "(Added in 1.0.3)"
34138 msgstr ""
34139
34140 #. type: =head2
34141 #: ../src/guestfs-actions.pod:7693
34142 msgid "guestfs_tar_out"
34143 msgstr ""
34144
34145 #. type: verbatim
34146 #: ../src/guestfs-actions.pod:7695
34147 #, no-wrap
34148 msgid ""
34149 " int\n"
34150 " guestfs_tar_out (guestfs_h *g,\n"
34151 "                  const char *directory,\n"
34152 "                  const char *tarfile);\n"
34153 "\n"
34154 msgstr ""
34155
34156 #. type: textblock
34157 #: ../src/guestfs-actions.pod:7703
34158 msgid ""
34159 "To download a compressed tarball, use C<guestfs_tgz_out> or "
34160 "C<guestfs_txz_out>."
34161 msgstr ""
34162
34163 #. type: =head2
34164 #: ../src/guestfs-actions.pod:7710
34165 msgid "guestfs_tgz_in"
34166 msgstr ""
34167
34168 #. type: verbatim
34169 #: ../src/guestfs-actions.pod:7712
34170 #, no-wrap
34171 msgid ""
34172 " int\n"
34173 " guestfs_tgz_in (guestfs_h *g,\n"
34174 "                 const char *tarball,\n"
34175 "                 const char *directory);\n"
34176 "\n"
34177 msgstr ""
34178
34179 #. type: textblock
34180 #: ../src/guestfs-actions.pod:7720
34181 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
34182 msgstr ""
34183
34184 #. type: =head2
34185 #: ../src/guestfs-actions.pod:7726
34186 msgid "guestfs_tgz_out"
34187 msgstr ""
34188
34189 #. type: verbatim
34190 #: ../src/guestfs-actions.pod:7728
34191 #, no-wrap
34192 msgid ""
34193 " int\n"
34194 " guestfs_tgz_out (guestfs_h *g,\n"
34195 "                  const char *directory,\n"
34196 "                  const char *tarball);\n"
34197 "\n"
34198 msgstr ""
34199
34200 #. type: textblock
34201 #: ../src/guestfs-actions.pod:7736
34202 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
34203 msgstr ""
34204
34205 #. type: =head2
34206 #: ../src/guestfs-actions.pod:7742
34207 msgid "guestfs_touch"
34208 msgstr ""
34209
34210 #. type: verbatim
34211 #: ../src/guestfs-actions.pod:7744
34212 #, no-wrap
34213 msgid ""
34214 " int\n"
34215 " guestfs_touch (guestfs_h *g,\n"
34216 "                const char *path);\n"
34217 "\n"
34218 msgstr ""
34219
34220 #. type: =head2
34221 #: ../src/guestfs-actions.pod:7759
34222 msgid "guestfs_truncate"
34223 msgstr ""
34224
34225 #. type: verbatim
34226 #: ../src/guestfs-actions.pod:7761
34227 #, no-wrap
34228 msgid ""
34229 " int\n"
34230 " guestfs_truncate (guestfs_h *g,\n"
34231 "                   const char *path);\n"
34232 "\n"
34233 msgstr ""
34234
34235 #. type: =head2
34236 #: ../src/guestfs-actions.pod:7772
34237 msgid "guestfs_truncate_size"
34238 msgstr ""
34239
34240 #. type: verbatim
34241 #: ../src/guestfs-actions.pod:7774
34242 #, no-wrap
34243 msgid ""
34244 " int\n"
34245 " guestfs_truncate_size (guestfs_h *g,\n"
34246 "                        const char *path,\n"
34247 "                        int64_t size);\n"
34248 "\n"
34249 msgstr ""
34250
34251 #. type: textblock
34252 #: ../src/guestfs-actions.pod:7782
34253 msgid ""
34254 "If the current file size is less than C<size> then the file is extended to "
34255 "the required size with zero bytes.  This creates a sparse file (ie. disk "
34256 "blocks are not allocated for the file until you write to it).  To create a "
34257 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
34258 msgstr ""
34259
34260 #. type: =head2
34261 #: ../src/guestfs-actions.pod:7792
34262 msgid "guestfs_tune2fs"
34263 msgstr ""
34264
34265 #. type: verbatim
34266 #: ../src/guestfs-actions.pod:7794
34267 #, no-wrap
34268 msgid ""
34269 " int\n"
34270 " guestfs_tune2fs (guestfs_h *g,\n"
34271 "                  const char *device,\n"
34272 "                  ...);\n"
34273 "\n"
34274 msgstr ""
34275
34276 #. type: verbatim
34277 #: ../src/guestfs-actions.pod:7804
34278 #, no-wrap
34279 msgid ""
34280 " GUESTFS_TUNE2FS_FORCE, int force,\n"
34281 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
34282 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
34283 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
34284 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
34285 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
34286 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
34287 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
34288 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
34289 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
34290 "\n"
34291 msgstr ""
34292
34293 #. type: textblock
34294 #: ../src/guestfs-actions.pod:7884
34295 msgid ""
34296 "To get the current values of filesystem parameters, see "
34297 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
34298 "L<tune2fs(8)> man page."
34299 msgstr ""
34300
34301 #. type: =head2
34302 #: ../src/guestfs-actions.pod:7892
34303 msgid "guestfs_tune2fs_va"
34304 msgstr ""
34305
34306 #. type: verbatim
34307 #: ../src/guestfs-actions.pod:7894
34308 #, no-wrap
34309 msgid ""
34310 " int\n"
34311 " guestfs_tune2fs_va (guestfs_h *g,\n"
34312 "                     const char *device,\n"
34313 "                     va_list args);\n"
34314 "\n"
34315 msgstr ""
34316
34317 #. type: textblock
34318 #: ../src/guestfs-actions.pod:7899
34319 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
34320 msgstr ""
34321
34322 #. type: =head2
34323 #: ../src/guestfs-actions.pod:7903
34324 msgid "guestfs_tune2fs_argv"
34325 msgstr ""
34326
34327 #. type: verbatim
34328 #: ../src/guestfs-actions.pod:7905
34329 #, no-wrap
34330 msgid ""
34331 " int\n"
34332 " guestfs_tune2fs_argv (guestfs_h *g,\n"
34333 "                       const char *device,\n"
34334 "                       const struct guestfs_tune2fs_argv *optargs);\n"
34335 "\n"
34336 msgstr ""
34337
34338 #. type: textblock
34339 #: ../src/guestfs-actions.pod:7910
34340 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
34341 msgstr ""
34342
34343 #. type: =head2
34344 #: ../src/guestfs-actions.pod:7914
34345 msgid "guestfs_tune2fs_l"
34346 msgstr ""
34347
34348 #. type: verbatim
34349 #: ../src/guestfs-actions.pod:7916
34350 #, no-wrap
34351 msgid ""
34352 " char **\n"
34353 " guestfs_tune2fs_l (guestfs_h *g,\n"
34354 "                    const char *device);\n"
34355 "\n"
34356 msgstr ""
34357
34358 #. type: =head2
34359 #: ../src/guestfs-actions.pod:7936
34360 msgid "guestfs_txz_in"
34361 msgstr ""
34362
34363 #. type: verbatim
34364 #: ../src/guestfs-actions.pod:7938
34365 #, no-wrap
34366 msgid ""
34367 " int\n"
34368 " guestfs_txz_in (guestfs_h *g,\n"
34369 "                 const char *tarball,\n"
34370 "                 const char *directory);\n"
34371 "\n"
34372 msgstr ""
34373
34374 #. type: =head2
34375 #: ../src/guestfs-actions.pod:7950
34376 msgid "guestfs_txz_out"
34377 msgstr ""
34378
34379 #. type: verbatim
34380 #: ../src/guestfs-actions.pod:7952
34381 #, no-wrap
34382 msgid ""
34383 " int\n"
34384 " guestfs_txz_out (guestfs_h *g,\n"
34385 "                  const char *directory,\n"
34386 "                  const char *tarball);\n"
34387 "\n"
34388 msgstr ""
34389
34390 #. type: =head2
34391 #: ../src/guestfs-actions.pod:7964
34392 msgid "guestfs_umask"
34393 msgstr ""
34394
34395 #. type: verbatim
34396 #: ../src/guestfs-actions.pod:7966
34397 #, no-wrap
34398 msgid ""
34399 " int\n"
34400 " guestfs_umask (guestfs_h *g,\n"
34401 "                int mask);\n"
34402 "\n"
34403 msgstr ""
34404
34405 #. type: textblock
34406 #: ../src/guestfs-actions.pod:7982
34407 msgid ""
34408 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
34409 "C<guestfs_mkdir>."
34410 msgstr ""
34411
34412 #. type: =head2
34413 #: ../src/guestfs-actions.pod:7991
34414 msgid "guestfs_umount"
34415 msgstr ""
34416
34417 #. type: verbatim
34418 #: ../src/guestfs-actions.pod:7993
34419 #, no-wrap
34420 msgid ""
34421 " int\n"
34422 " guestfs_umount (guestfs_h *g,\n"
34423 "                 const char *pathordevice);\n"
34424 "\n"
34425 msgstr ""
34426
34427 #. type: =head2
34428 #: ../src/guestfs-actions.pod:8005
34429 msgid "guestfs_umount_all"
34430 msgstr ""
34431
34432 #. type: verbatim
34433 #: ../src/guestfs-actions.pod:8007
34434 #, no-wrap
34435 msgid ""
34436 " int\n"
34437 " guestfs_umount_all (guestfs_h *g);\n"
34438 "\n"
34439 msgstr ""
34440
34441 #. type: =head2
34442 #: ../src/guestfs-actions.pod:8018
34443 msgid "guestfs_upload"
34444 msgstr ""
34445
34446 #. type: verbatim
34447 #: ../src/guestfs-actions.pod:8020
34448 #, no-wrap
34449 msgid ""
34450 " int\n"
34451 " guestfs_upload (guestfs_h *g,\n"
34452 "                 const char *filename,\n"
34453 "                 const char *remotefilename);\n"
34454 "\n"
34455 msgstr ""
34456
34457 #. type: textblock
34458 #: ../src/guestfs-actions.pod:8030
34459 msgid "See also C<guestfs_download>."
34460 msgstr ""
34461
34462 #. type: =head2
34463 #: ../src/guestfs-actions.pod:8041
34464 msgid "guestfs_upload_offset"
34465 msgstr ""
34466
34467 #. type: verbatim
34468 #: ../src/guestfs-actions.pod:8043
34469 #, no-wrap
34470 msgid ""
34471 " int\n"
34472 " guestfs_upload_offset (guestfs_h *g,\n"
34473 "                        const char *filename,\n"
34474 "                        const char *remotefilename,\n"
34475 "                        int64_t offset);\n"
34476 "\n"
34477 msgstr ""
34478
34479 #. type: textblock
34480 #: ../src/guestfs-actions.pod:8059
34481 msgid ""
34482 "Note that there is no limit on the amount of data that can be uploaded with "
34483 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
34484 "full amount unless an error occurs."
34485 msgstr ""
34486
34487 #. type: textblock
34488 #: ../src/guestfs-actions.pod:8064
34489 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
34490 msgstr ""
34491
34492 #. type: =head2
34493 #: ../src/guestfs-actions.pod:8075
34494 msgid "guestfs_utimens"
34495 msgstr ""
34496
34497 #. type: verbatim
34498 #: ../src/guestfs-actions.pod:8077
34499 #, no-wrap
34500 msgid ""
34501 " int\n"
34502 " guestfs_utimens (guestfs_h *g,\n"
34503 "                  const char *path,\n"
34504 "                  int64_t atsecs,\n"
34505 "                  int64_t atnsecs,\n"
34506 "                  int64_t mtsecs,\n"
34507 "                  int64_t mtnsecs);\n"
34508 "\n"
34509 msgstr ""
34510
34511 #. type: =head2
34512 #: ../src/guestfs-actions.pod:8106 ../src/guestfs-structs.pod:175
34513 msgid "guestfs_version"
34514 msgstr ""
34515
34516 #. type: verbatim
34517 #: ../src/guestfs-actions.pod:8108
34518 #, no-wrap
34519 msgid ""
34520 " struct guestfs_version *\n"
34521 " guestfs_version (guestfs_h *g);\n"
34522 "\n"
34523 msgstr ""
34524
34525 #. type: textblock
34526 #: ../src/guestfs-actions.pod:8136
34527 msgid ""
34528 "I<Note:> Don't use this call to test for availability of features.  In "
34529 "enterprise distributions we backport features from later versions into "
34530 "earlier versions, making this an unreliable way to test for features.  Use "
34531 "C<guestfs_available> instead."
34532 msgstr ""
34533
34534 #. type: textblock
34535 #: ../src/guestfs-actions.pod:8142
34536 msgid ""
34537 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34538 "error.  I<The caller must call C<guestfs_free_version> after use>."
34539 msgstr ""
34540
34541 #. type: textblock
34542 #: ../src/guestfs-actions.pod:8146
34543 msgid "(Added in 1.0.58)"
34544 msgstr ""
34545
34546 #. type: =head2
34547 #: ../src/guestfs-actions.pod:8148
34548 msgid "guestfs_vfs_label"
34549 msgstr ""
34550
34551 #. type: verbatim
34552 #: ../src/guestfs-actions.pod:8150
34553 #, no-wrap
34554 msgid ""
34555 " char *\n"
34556 " guestfs_vfs_label (guestfs_h *g,\n"
34557 "                    const char *device);\n"
34558 "\n"
34559 msgstr ""
34560
34561 #. type: textblock
34562 #: ../src/guestfs-actions.pod:8159
34563 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34564 msgstr ""
34565
34566 #. type: textblock
34567 #: ../src/guestfs-actions.pod:8164 ../src/guestfs-actions.pod:8201
34568 msgid "(Added in 1.3.18)"
34569 msgstr ""
34570
34571 #. type: =head2
34572 #: ../src/guestfs-actions.pod:8166
34573 msgid "guestfs_vfs_type"
34574 msgstr ""
34575
34576 #. type: verbatim
34577 #: ../src/guestfs-actions.pod:8168
34578 #, no-wrap
34579 msgid ""
34580 " char *\n"
34581 " guestfs_vfs_type (guestfs_h *g,\n"
34582 "                   const char *device);\n"
34583 "\n"
34584 msgstr ""
34585
34586 #. type: =head2
34587 #: ../src/guestfs-actions.pod:8185
34588 msgid "guestfs_vfs_uuid"
34589 msgstr ""
34590
34591 #. type: verbatim
34592 #: ../src/guestfs-actions.pod:8187
34593 #, no-wrap
34594 msgid ""
34595 " char *\n"
34596 " guestfs_vfs_uuid (guestfs_h *g,\n"
34597 "                   const char *device);\n"
34598 "\n"
34599 msgstr ""
34600
34601 #. type: textblock
34602 #: ../src/guestfs-actions.pod:8196
34603 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34604 msgstr ""
34605
34606 #. type: =head2
34607 #: ../src/guestfs-actions.pod:8203
34608 msgid "guestfs_vg_activate"
34609 msgstr ""
34610
34611 #. type: verbatim
34612 #: ../src/guestfs-actions.pod:8205
34613 #, no-wrap
34614 msgid ""
34615 " int\n"
34616 " guestfs_vg_activate (guestfs_h *g,\n"
34617 "                      int activate,\n"
34618 "                      char *const *volgroups);\n"
34619 "\n"
34620 msgstr ""
34621
34622 #. type: =head2
34623 #: ../src/guestfs-actions.pod:8222
34624 msgid "guestfs_vg_activate_all"
34625 msgstr ""
34626
34627 #. type: verbatim
34628 #: ../src/guestfs-actions.pod:8224
34629 #, no-wrap
34630 msgid ""
34631 " int\n"
34632 " guestfs_vg_activate_all (guestfs_h *g,\n"
34633 "                          int activate);\n"
34634 "\n"
34635 msgstr ""
34636
34637 #. type: =head2
34638 #: ../src/guestfs-actions.pod:8237
34639 msgid "guestfs_vgcreate"
34640 msgstr ""
34641
34642 #. type: verbatim
34643 #: ../src/guestfs-actions.pod:8239
34644 #, no-wrap
34645 msgid ""
34646 " int\n"
34647 " guestfs_vgcreate (guestfs_h *g,\n"
34648 "                   const char *volgroup,\n"
34649 "                   char *const *physvols);\n"
34650 "\n"
34651 msgstr ""
34652
34653 #. type: =head2
34654 #: ../src/guestfs-actions.pod:8251
34655 msgid "guestfs_vglvuuids"
34656 msgstr ""
34657
34658 #. type: verbatim
34659 #: ../src/guestfs-actions.pod:8253
34660 #, no-wrap
34661 msgid ""
34662 " char **\n"
34663 " guestfs_vglvuuids (guestfs_h *g,\n"
34664 "                    const char *vgname);\n"
34665 "\n"
34666 msgstr ""
34667
34668 #. type: textblock
34669 #: ../src/guestfs-actions.pod:8260
34670 msgid ""
34671 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34672 "associate logical volumes and volume groups."
34673 msgstr ""
34674
34675 #. type: textblock
34676 #: ../src/guestfs-actions.pod:8263
34677 msgid "See also C<guestfs_vgpvuuids>."
34678 msgstr ""
34679
34680 #. type: =head2
34681 #: ../src/guestfs-actions.pod:8271
34682 msgid "guestfs_vgpvuuids"
34683 msgstr ""
34684
34685 #. type: verbatim
34686 #: ../src/guestfs-actions.pod:8273
34687 #, no-wrap
34688 msgid ""
34689 " char **\n"
34690 " guestfs_vgpvuuids (guestfs_h *g,\n"
34691 "                    const char *vgname);\n"
34692 "\n"
34693 msgstr ""
34694
34695 #. type: textblock
34696 #: ../src/guestfs-actions.pod:8280
34697 msgid ""
34698 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34699 "associate physical volumes and volume groups."
34700 msgstr ""
34701
34702 #. type: textblock
34703 #: ../src/guestfs-actions.pod:8283
34704 msgid "See also C<guestfs_vglvuuids>."
34705 msgstr ""
34706
34707 #. type: =head2
34708 #: ../src/guestfs-actions.pod:8291
34709 msgid "guestfs_vgremove"
34710 msgstr ""
34711
34712 #. type: verbatim
34713 #: ../src/guestfs-actions.pod:8293
34714 #, no-wrap
34715 msgid ""
34716 " int\n"
34717 " guestfs_vgremove (guestfs_h *g,\n"
34718 "                   const char *vgname);\n"
34719 "\n"
34720 msgstr ""
34721
34722 #. type: =head2
34723 #: ../src/guestfs-actions.pod:8306
34724 msgid "guestfs_vgrename"
34725 msgstr ""
34726
34727 #. type: verbatim
34728 #: ../src/guestfs-actions.pod:8308
34729 #, no-wrap
34730 msgid ""
34731 " int\n"
34732 " guestfs_vgrename (guestfs_h *g,\n"
34733 "                   const char *volgroup,\n"
34734 "                   const char *newvolgroup);\n"
34735 "\n"
34736 msgstr ""
34737
34738 #. type: =head2
34739 #: ../src/guestfs-actions.pod:8319
34740 msgid "guestfs_vgs"
34741 msgstr ""
34742
34743 #. type: verbatim
34744 #: ../src/guestfs-actions.pod:8321
34745 #, no-wrap
34746 msgid ""
34747 " char **\n"
34748 " guestfs_vgs (guestfs_h *g);\n"
34749 "\n"
34750 msgstr ""
34751
34752 #. type: textblock
34753 #: ../src/guestfs-actions.pod:8330
34754 msgid "See also C<guestfs_vgs_full>."
34755 msgstr ""
34756
34757 #. type: =head2
34758 #: ../src/guestfs-actions.pod:8338
34759 msgid "guestfs_vgs_full"
34760 msgstr ""
34761
34762 #. type: verbatim
34763 #: ../src/guestfs-actions.pod:8340
34764 #, no-wrap
34765 msgid ""
34766 " struct guestfs_lvm_vg_list *\n"
34767 " guestfs_vgs_full (guestfs_h *g);\n"
34768 "\n"
34769 msgstr ""
34770
34771 #. type: textblock
34772 #: ../src/guestfs-actions.pod:8346
34773 msgid ""
34774 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34775 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34776 msgstr ""
34777
34778 #. type: =head2
34779 #: ../src/guestfs-actions.pod:8352
34780 msgid "guestfs_vgscan"
34781 msgstr ""
34782
34783 #. type: verbatim
34784 #: ../src/guestfs-actions.pod:8354
34785 #, no-wrap
34786 msgid ""
34787 " int\n"
34788 " guestfs_vgscan (guestfs_h *g);\n"
34789 "\n"
34790 msgstr ""
34791
34792 #. type: =head2
34793 #: ../src/guestfs-actions.pod:8364
34794 msgid "guestfs_vguuid"
34795 msgstr ""
34796
34797 #. type: verbatim
34798 #: ../src/guestfs-actions.pod:8366
34799 #, no-wrap
34800 msgid ""
34801 " char *\n"
34802 " guestfs_vguuid (guestfs_h *g,\n"
34803 "                 const char *vgname);\n"
34804 "\n"
34805 msgstr ""
34806
34807 #. type: =head2
34808 #: ../src/guestfs-actions.pod:8377
34809 msgid "guestfs_wait_ready"
34810 msgstr ""
34811
34812 #. type: verbatim
34813 #: ../src/guestfs-actions.pod:8379
34814 #, no-wrap
34815 msgid ""
34816 " int\n"
34817 " guestfs_wait_ready (guestfs_h *g);\n"
34818 "\n"
34819 msgstr ""
34820
34821 #. type: textblock
34822 #: ../src/guestfs-actions.pod:8382
34823 msgid ""
34824 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34825 "instead."
34826 msgstr ""
34827
34828 #. type: textblock
34829 #: ../src/guestfs-actions.pod:8389
34830 msgid "This function is a no op."
34831 msgstr ""
34832
34833 #. type: textblock
34834 #: ../src/guestfs-actions.pod:8391
34835 msgid ""
34836 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34837 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
34838 "is no longer necessary because C<guestfs_launch> now does the waiting."
34839 msgstr ""
34840
34841 #. type: textblock
34842 #: ../src/guestfs-actions.pod:8396
34843 msgid ""
34844 "If you see any calls to this function in code then you can just remove them, "
34845 "unless you want to retain compatibility with older versions of the API."
34846 msgstr ""
34847
34848 #. type: =head2
34849 #: ../src/guestfs-actions.pod:8404
34850 msgid "guestfs_wc_c"
34851 msgstr ""
34852
34853 #. type: verbatim
34854 #: ../src/guestfs-actions.pod:8406
34855 #, no-wrap
34856 msgid ""
34857 " int\n"
34858 " guestfs_wc_c (guestfs_h *g,\n"
34859 "               const char *path);\n"
34860 "\n"
34861 msgstr ""
34862
34863 #. type: =head2
34864 #: ../src/guestfs-actions.pod:8417
34865 msgid "guestfs_wc_l"
34866 msgstr ""
34867
34868 #. type: verbatim
34869 #: ../src/guestfs-actions.pod:8419
34870 #, no-wrap
34871 msgid ""
34872 " int\n"
34873 " guestfs_wc_l (guestfs_h *g,\n"
34874 "               const char *path);\n"
34875 "\n"
34876 msgstr ""
34877
34878 #. type: =head2
34879 #: ../src/guestfs-actions.pod:8430
34880 msgid "guestfs_wc_w"
34881 msgstr ""
34882
34883 #. type: verbatim
34884 #: ../src/guestfs-actions.pod:8432
34885 #, no-wrap
34886 msgid ""
34887 " int\n"
34888 " guestfs_wc_w (guestfs_h *g,\n"
34889 "               const char *path);\n"
34890 "\n"
34891 msgstr ""
34892
34893 #. type: =head2
34894 #: ../src/guestfs-actions.pod:8443
34895 msgid "guestfs_write"
34896 msgstr ""
34897
34898 #. type: verbatim
34899 #: ../src/guestfs-actions.pod:8445
34900 #, no-wrap
34901 msgid ""
34902 " int\n"
34903 " guestfs_write (guestfs_h *g,\n"
34904 "                const char *path,\n"
34905 "                const char *content,\n"
34906 "                size_t content_size);\n"
34907 "\n"
34908 msgstr ""
34909
34910 #. type: textblock
34911 #: ../src/guestfs-actions.pod:8454
34912 msgid "See also C<guestfs_write_append>."
34913 msgstr ""
34914
34915 #. type: =head2
34916 #: ../src/guestfs-actions.pod:8463
34917 msgid "guestfs_write_append"
34918 msgstr ""
34919
34920 #. type: verbatim
34921 #: ../src/guestfs-actions.pod:8465
34922 #, no-wrap
34923 msgid ""
34924 " int\n"
34925 " guestfs_write_append (guestfs_h *g,\n"
34926 "                       const char *path,\n"
34927 "                       const char *content,\n"
34928 "                       size_t content_size);\n"
34929 "\n"
34930 msgstr ""
34931
34932 #. type: textblock
34933 #: ../src/guestfs-actions.pod:8474
34934 msgid "See also C<guestfs_write>."
34935 msgstr ""
34936
34937 #. type: =head2
34938 #: ../src/guestfs-actions.pod:8483
34939 msgid "guestfs_write_file"
34940 msgstr ""
34941
34942 #. type: verbatim
34943 #: ../src/guestfs-actions.pod:8485
34944 #, no-wrap
34945 msgid ""
34946 " int\n"
34947 " guestfs_write_file (guestfs_h *g,\n"
34948 "                     const char *path,\n"
34949 "                     const char *content,\n"
34950 "                     int size);\n"
34951 "\n"
34952 msgstr ""
34953
34954 #. type: textblock
34955 #: ../src/guestfs-actions.pod:8491
34956 msgid ""
34957 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34958 "instead."
34959 msgstr ""
34960
34961 #. type: =head2
34962 #: ../src/guestfs-actions.pod:8516
34963 msgid "guestfs_zegrep"
34964 msgstr ""
34965
34966 #. type: verbatim
34967 #: ../src/guestfs-actions.pod:8518
34968 #, no-wrap
34969 msgid ""
34970 " char **\n"
34971 " guestfs_zegrep (guestfs_h *g,\n"
34972 "                 const char *regex,\n"
34973 "                 const char *path);\n"
34974 "\n"
34975 msgstr ""
34976
34977 #. type: =head2
34978 #: ../src/guestfs-actions.pod:8535
34979 msgid "guestfs_zegrepi"
34980 msgstr ""
34981
34982 #. type: verbatim
34983 #: ../src/guestfs-actions.pod:8537
34984 #, no-wrap
34985 msgid ""
34986 " char **\n"
34987 " guestfs_zegrepi (guestfs_h *g,\n"
34988 "                  const char *regex,\n"
34989 "                  const char *path);\n"
34990 "\n"
34991 msgstr ""
34992
34993 #. type: =head2
34994 #: ../src/guestfs-actions.pod:8554
34995 msgid "guestfs_zero"
34996 msgstr ""
34997
34998 #. type: verbatim
34999 #: ../src/guestfs-actions.pod:8556
35000 #, no-wrap
35001 msgid ""
35002 " int\n"
35003 " guestfs_zero (guestfs_h *g,\n"
35004 "               const char *device);\n"
35005 "\n"
35006 msgstr ""
35007
35008 #. type: textblock
35009 #: ../src/guestfs-actions.pod:8570
35010 msgid ""
35011 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
35012 "C<guestfs_is_zero_device>"
35013 msgstr ""
35014
35015 #. type: =head2
35016 #: ../src/guestfs-actions.pod:8582
35017 msgid "guestfs_zero_device"
35018 msgstr ""
35019
35020 #. type: verbatim
35021 #: ../src/guestfs-actions.pod:8584
35022 #, no-wrap
35023 msgid ""
35024 " int\n"
35025 " guestfs_zero_device (guestfs_h *g,\n"
35026 "                      const char *device);\n"
35027 "\n"
35028 msgstr ""
35029
35030 #. type: textblock
35031 #: ../src/guestfs-actions.pod:8588
35032 msgid ""
35033 "This command writes zeroes over the entire C<device>.  Compare with "
35034 "C<guestfs_zero> which just zeroes the first few blocks of a device."
35035 msgstr ""
35036
35037 #. type: textblock
35038 #: ../src/guestfs-actions.pod:8603
35039 msgid "(Added in 1.3.1)"
35040 msgstr ""
35041
35042 #. type: =head2
35043 #: ../src/guestfs-actions.pod:8605
35044 msgid "guestfs_zerofree"
35045 msgstr ""
35046
35047 #. type: verbatim
35048 #: ../src/guestfs-actions.pod:8607
35049 #, no-wrap
35050 msgid ""
35051 " int\n"
35052 " guestfs_zerofree (guestfs_h *g,\n"
35053 "                   const char *device);\n"
35054 "\n"
35055 msgstr ""
35056
35057 #. type: =head2
35058 #: ../src/guestfs-actions.pod:8626
35059 msgid "guestfs_zfgrep"
35060 msgstr ""
35061
35062 #. type: verbatim
35063 #: ../src/guestfs-actions.pod:8628
35064 #, no-wrap
35065 msgid ""
35066 " char **\n"
35067 " guestfs_zfgrep (guestfs_h *g,\n"
35068 "                 const char *pattern,\n"
35069 "                 const char *path);\n"
35070 "\n"
35071 msgstr ""
35072
35073 #. type: =head2
35074 #: ../src/guestfs-actions.pod:8645
35075 msgid "guestfs_zfgrepi"
35076 msgstr ""
35077
35078 #. type: verbatim
35079 #: ../src/guestfs-actions.pod:8647
35080 #, no-wrap
35081 msgid ""
35082 " char **\n"
35083 " guestfs_zfgrepi (guestfs_h *g,\n"
35084 "                  const char *pattern,\n"
35085 "                  const char *path);\n"
35086 "\n"
35087 msgstr ""
35088
35089 #. type: =head2
35090 #: ../src/guestfs-actions.pod:8664
35091 msgid "guestfs_zfile"
35092 msgstr ""
35093
35094 #. type: verbatim
35095 #: ../src/guestfs-actions.pod:8666
35096 #, no-wrap
35097 msgid ""
35098 " char *\n"
35099 " guestfs_zfile (guestfs_h *g,\n"
35100 "                const char *meth,\n"
35101 "                const char *path);\n"
35102 "\n"
35103 msgstr ""
35104
35105 #. type: textblock
35106 #: ../src/guestfs-actions.pod:8671
35107 msgid ""
35108 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
35109 "instead."
35110 msgstr ""
35111
35112 #. type: textblock
35113 #: ../src/guestfs-actions.pod:8683
35114 msgid ""
35115 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
35116 "files."
35117 msgstr ""
35118
35119 #. type: =head2
35120 #: ../src/guestfs-actions.pod:8691
35121 msgid "guestfs_zgrep"
35122 msgstr ""
35123
35124 #. type: verbatim
35125 #: ../src/guestfs-actions.pod:8693
35126 #, no-wrap
35127 msgid ""
35128 " char **\n"
35129 " guestfs_zgrep (guestfs_h *g,\n"
35130 "                const char *regex,\n"
35131 "                const char *path);\n"
35132 "\n"
35133 msgstr ""
35134
35135 #. type: =head2
35136 #: ../src/guestfs-actions.pod:8710
35137 msgid "guestfs_zgrepi"
35138 msgstr ""
35139
35140 #. type: verbatim
35141 #: ../src/guestfs-actions.pod:8712
35142 #, no-wrap
35143 msgid ""
35144 " char **\n"
35145 " guestfs_zgrepi (guestfs_h *g,\n"
35146 "                 const char *regex,\n"
35147 "                 const char *path);\n"
35148 "\n"
35149 msgstr ""
35150
35151 #. type: =item
35152 #: ../src/guestfs-availability.pod:3
35153 msgid "B<augeas>"
35154 msgstr ""
35155
35156 #. type: textblock
35157 #: ../src/guestfs-availability.pod:5
35158 msgid ""
35159 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
35160 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
35161 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
35162 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
35163 "L</guestfs_aug_save> L</guestfs_aug_set>"
35164 msgstr ""
35165
35166 #. type: =item
35167 #: ../src/guestfs-availability.pod:21
35168 msgid "B<btrfs>"
35169 msgstr ""
35170
35171 #. type: textblock
35172 #: ../src/guestfs-availability.pod:23
35173 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
35174 msgstr ""
35175
35176 #. type: =item
35177 #: ../src/guestfs-availability.pod:26
35178 msgid "B<grub>"
35179 msgstr ""
35180
35181 #. type: textblock
35182 #: ../src/guestfs-availability.pod:28
35183 msgid "The following functions: L</guestfs_grub_install>"
35184 msgstr ""
35185
35186 #. type: =item
35187 #: ../src/guestfs-availability.pod:31
35188 msgid "B<inotify>"
35189 msgstr ""
35190
35191 #. type: textblock
35192 #: ../src/guestfs-availability.pod:33
35193 msgid ""
35194 "The following functions: L</guestfs_inotify_add_watch> L</"
35195 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
35196 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
35197 msgstr ""
35198
35199 #. type: =item
35200 #: ../src/guestfs-availability.pod:41
35201 msgid "B<linuxfsuuid>"
35202 msgstr ""
35203
35204 #. type: textblock
35205 #: ../src/guestfs-availability.pod:43
35206 msgid ""
35207 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
35208 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
35209 msgstr ""
35210
35211 #. type: =item
35212 #: ../src/guestfs-availability.pod:50
35213 msgid "B<linuxmodules>"
35214 msgstr ""
35215
35216 #. type: textblock
35217 #: ../src/guestfs-availability.pod:52
35218 msgid "The following functions: L</guestfs_modprobe>"
35219 msgstr ""
35220
35221 #. type: =item
35222 #: ../src/guestfs-availability.pod:55
35223 msgid "B<linuxxattrs>"
35224 msgstr ""
35225
35226 #. type: textblock
35227 #: ../src/guestfs-availability.pod:57
35228 msgid ""
35229 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
35230 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
35231 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
35232 "guestfs_setxattr>"
35233 msgstr ""
35234
35235 #. type: =item
35236 #: ../src/guestfs-availability.pod:68
35237 msgid "B<luks>"
35238 msgstr ""
35239
35240 #. type: textblock
35241 #: ../src/guestfs-availability.pod:70
35242 msgid ""
35243 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
35244 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
35245 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
35246 msgstr ""
35247
35248 #. type: =item
35249 #: ../src/guestfs-availability.pod:79
35250 msgid "B<lvm2>"
35251 msgstr ""
35252
35253 #. type: textblock
35254 #: ../src/guestfs-availability.pod:81
35255 msgid ""
35256 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
35257 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
35258 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
35259 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
35260 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
35261 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
35262 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
35263 msgstr ""
35264
35265 #. type: =item
35266 #: ../src/guestfs-availability.pod:104
35267 msgid "B<mdadm>"
35268 msgstr ""
35269
35270 #. type: textblock
35271 #: ../src/guestfs-availability.pod:106
35272 msgid ""
35273 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> L</"
35274 "guestfs_md_stop>"
35275 msgstr ""
35276
35277 #. type: =item
35278 #: ../src/guestfs-availability.pod:111
35279 msgid "B<mknod>"
35280 msgstr ""
35281
35282 #. type: textblock
35283 #: ../src/guestfs-availability.pod:113
35284 msgid ""
35285 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
35286 "guestfs_mknod_b> L</guestfs_mknod_c>"
35287 msgstr ""
35288
35289 #. type: =item
35290 #: ../src/guestfs-availability.pod:119
35291 msgid "B<ntfs3g>"
35292 msgstr ""
35293
35294 #. type: textblock
35295 #: ../src/guestfs-availability.pod:121
35296 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
35297 msgstr ""
35298
35299 #. type: =item
35300 #: ../src/guestfs-availability.pod:124
35301 msgid "B<ntfsprogs>"
35302 msgstr ""
35303
35304 #. type: textblock
35305 #: ../src/guestfs-availability.pod:126
35306 msgid ""
35307 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
35308 "L</guestfs_ntfsresize_size>"
35309 msgstr ""
35310
35311 #. type: =item
35312 #: ../src/guestfs-availability.pod:131
35313 msgid "B<realpath>"
35314 msgstr ""
35315
35316 #. type: textblock
35317 #: ../src/guestfs-availability.pod:133
35318 msgid "The following functions: L</guestfs_realpath>"
35319 msgstr ""
35320
35321 #. type: =item
35322 #: ../src/guestfs-availability.pod:136
35323 msgid "B<scrub>"
35324 msgstr ""
35325
35326 #. type: textblock
35327 #: ../src/guestfs-availability.pod:138
35328 msgid ""
35329 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
35330 "guestfs_scrub_freespace>"
35331 msgstr ""
35332
35333 #. type: =item
35334 #: ../src/guestfs-availability.pod:143
35335 msgid "B<selinux>"
35336 msgstr ""
35337
35338 #. type: textblock
35339 #: ../src/guestfs-availability.pod:145
35340 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
35341 msgstr ""
35342
35343 #. type: =item
35344 #: ../src/guestfs-availability.pod:149
35345 msgid "B<xz>"
35346 msgstr ""
35347
35348 #. type: textblock
35349 #: ../src/guestfs-availability.pod:151
35350 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
35351 msgstr ""
35352
35353 #. type: =item
35354 #: ../src/guestfs-availability.pod:155
35355 msgid "B<zerofree>"
35356 msgstr ""
35357
35358 #. type: textblock
35359 #: ../src/guestfs-availability.pod:157
35360 msgid "The following functions: L</guestfs_zerofree>"
35361 msgstr ""
35362
35363 #. type: =head2
35364 #: ../src/guestfs-structs.pod:1
35365 msgid "guestfs_int_bool"
35366 msgstr ""
35367
35368 #. type: verbatim
35369 #: ../src/guestfs-structs.pod:3
35370 #, no-wrap
35371 msgid ""
35372 " struct guestfs_int_bool {\n"
35373 "   int32_t i;\n"
35374 "   int32_t b;\n"
35375 " };\n"
35376 " \n"
35377 msgstr ""
35378
35379 #. type: verbatim
35380 #: ../src/guestfs-structs.pod:8
35381 #, no-wrap
35382 msgid ""
35383 " struct guestfs_int_bool_list {\n"
35384 "   uint32_t len; /* Number of elements in list. */\n"
35385 "   struct guestfs_int_bool *val; /* Elements. */\n"
35386 " };\n"
35387 " \n"
35388 msgstr ""
35389
35390 #. type: verbatim
35391 #: ../src/guestfs-structs.pod:13
35392 #, no-wrap
35393 msgid ""
35394 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
35395 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
35396 "\n"
35397 msgstr ""
35398
35399 #. type: =head2
35400 #: ../src/guestfs-structs.pod:16
35401 msgid "guestfs_lvm_pv"
35402 msgstr ""
35403
35404 #. type: verbatim
35405 #: ../src/guestfs-structs.pod:18
35406 #, no-wrap
35407 msgid ""
35408 " struct guestfs_lvm_pv {\n"
35409 "   char *pv_name;\n"
35410 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35411 "   char pv_uuid[32];\n"
35412 "   char *pv_fmt;\n"
35413 "   uint64_t pv_size;\n"
35414 "   uint64_t dev_size;\n"
35415 "   uint64_t pv_free;\n"
35416 "   uint64_t pv_used;\n"
35417 "   char *pv_attr;\n"
35418 "   int64_t pv_pe_count;\n"
35419 "   int64_t pv_pe_alloc_count;\n"
35420 "   char *pv_tags;\n"
35421 "   uint64_t pe_start;\n"
35422 "   int64_t pv_mda_count;\n"
35423 "   uint64_t pv_mda_free;\n"
35424 " };\n"
35425 " \n"
35426 msgstr ""
35427
35428 #. type: verbatim
35429 #: ../src/guestfs-structs.pod:36
35430 #, no-wrap
35431 msgid ""
35432 " struct guestfs_lvm_pv_list {\n"
35433 "   uint32_t len; /* Number of elements in list. */\n"
35434 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
35435 " };\n"
35436 " \n"
35437 msgstr ""
35438
35439 #. type: verbatim
35440 #: ../src/guestfs-structs.pod:41
35441 #, no-wrap
35442 msgid ""
35443 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
35444 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
35445 "\n"
35446 msgstr ""
35447
35448 #. type: =head2
35449 #: ../src/guestfs-structs.pod:44
35450 msgid "guestfs_lvm_vg"
35451 msgstr ""
35452
35453 #. type: verbatim
35454 #: ../src/guestfs-structs.pod:46
35455 #, no-wrap
35456 msgid ""
35457 " struct guestfs_lvm_vg {\n"
35458 "   char *vg_name;\n"
35459 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35460 "   char vg_uuid[32];\n"
35461 "   char *vg_fmt;\n"
35462 "   char *vg_attr;\n"
35463 "   uint64_t vg_size;\n"
35464 "   uint64_t vg_free;\n"
35465 "   char *vg_sysid;\n"
35466 "   uint64_t vg_extent_size;\n"
35467 "   int64_t vg_extent_count;\n"
35468 "   int64_t vg_free_count;\n"
35469 "   int64_t max_lv;\n"
35470 "   int64_t max_pv;\n"
35471 "   int64_t pv_count;\n"
35472 "   int64_t lv_count;\n"
35473 "   int64_t snap_count;\n"
35474 "   int64_t vg_seqno;\n"
35475 "   char *vg_tags;\n"
35476 "   int64_t vg_mda_count;\n"
35477 "   uint64_t vg_mda_free;\n"
35478 " };\n"
35479 " \n"
35480 msgstr ""
35481
35482 #. type: verbatim
35483 #: ../src/guestfs-structs.pod:69
35484 #, no-wrap
35485 msgid ""
35486 " struct guestfs_lvm_vg_list {\n"
35487 "   uint32_t len; /* Number of elements in list. */\n"
35488 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
35489 " };\n"
35490 " \n"
35491 msgstr ""
35492
35493 #. type: verbatim
35494 #: ../src/guestfs-structs.pod:74
35495 #, no-wrap
35496 msgid ""
35497 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35498 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35499 "\n"
35500 msgstr ""
35501
35502 #. type: =head2
35503 #: ../src/guestfs-structs.pod:77
35504 msgid "guestfs_lvm_lv"
35505 msgstr ""
35506
35507 #. type: verbatim
35508 #: ../src/guestfs-structs.pod:79
35509 #, no-wrap
35510 msgid ""
35511 " struct guestfs_lvm_lv {\n"
35512 "   char *lv_name;\n"
35513 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35514 "   char lv_uuid[32];\n"
35515 "   char *lv_attr;\n"
35516 "   int64_t lv_major;\n"
35517 "   int64_t lv_minor;\n"
35518 "   int64_t lv_kernel_major;\n"
35519 "   int64_t lv_kernel_minor;\n"
35520 "   uint64_t lv_size;\n"
35521 "   int64_t seg_count;\n"
35522 "   char *origin;\n"
35523 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35524 "   float snap_percent;\n"
35525 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35526 "   float copy_percent;\n"
35527 "   char *move_pv;\n"
35528 "   char *lv_tags;\n"
35529 "   char *mirror_log;\n"
35530 "   char *modules;\n"
35531 " };\n"
35532 " \n"
35533 msgstr ""
35534
35535 #. type: verbatim
35536 #: ../src/guestfs-structs.pod:101
35537 #, no-wrap
35538 msgid ""
35539 " struct guestfs_lvm_lv_list {\n"
35540 "   uint32_t len; /* Number of elements in list. */\n"
35541 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
35542 " };\n"
35543 " \n"
35544 msgstr ""
35545
35546 #. type: verbatim
35547 #: ../src/guestfs-structs.pod:106
35548 #, no-wrap
35549 msgid ""
35550 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35551 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35552 "\n"
35553 msgstr ""
35554
35555 #. type: verbatim
35556 #: ../src/guestfs-structs.pod:111
35557 #, no-wrap
35558 msgid ""
35559 " struct guestfs_stat {\n"
35560 "   int64_t dev;\n"
35561 "   int64_t ino;\n"
35562 "   int64_t mode;\n"
35563 "   int64_t nlink;\n"
35564 "   int64_t uid;\n"
35565 "   int64_t gid;\n"
35566 "   int64_t rdev;\n"
35567 "   int64_t size;\n"
35568 "   int64_t blksize;\n"
35569 "   int64_t blocks;\n"
35570 "   int64_t atime;\n"
35571 "   int64_t mtime;\n"
35572 "   int64_t ctime;\n"
35573 " };\n"
35574 " \n"
35575 msgstr ""
35576
35577 #. type: verbatim
35578 #: ../src/guestfs-structs.pod:127
35579 #, no-wrap
35580 msgid ""
35581 " struct guestfs_stat_list {\n"
35582 "   uint32_t len; /* Number of elements in list. */\n"
35583 "   struct guestfs_stat *val; /* Elements. */\n"
35584 " };\n"
35585 " \n"
35586 msgstr ""
35587
35588 #. type: verbatim
35589 #: ../src/guestfs-structs.pod:132
35590 #, no-wrap
35591 msgid ""
35592 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35593 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35594 "\n"
35595 msgstr ""
35596
35597 #. type: verbatim
35598 #: ../src/guestfs-structs.pod:137
35599 #, no-wrap
35600 msgid ""
35601 " struct guestfs_statvfs {\n"
35602 "   int64_t bsize;\n"
35603 "   int64_t frsize;\n"
35604 "   int64_t blocks;\n"
35605 "   int64_t bfree;\n"
35606 "   int64_t bavail;\n"
35607 "   int64_t files;\n"
35608 "   int64_t ffree;\n"
35609 "   int64_t favail;\n"
35610 "   int64_t fsid;\n"
35611 "   int64_t flag;\n"
35612 "   int64_t namemax;\n"
35613 " };\n"
35614 " \n"
35615 msgstr ""
35616
35617 #. type: verbatim
35618 #: ../src/guestfs-structs.pod:151
35619 #, no-wrap
35620 msgid ""
35621 " struct guestfs_statvfs_list {\n"
35622 "   uint32_t len; /* Number of elements in list. */\n"
35623 "   struct guestfs_statvfs *val; /* Elements. */\n"
35624 " };\n"
35625 " \n"
35626 msgstr ""
35627
35628 #. type: verbatim
35629 #: ../src/guestfs-structs.pod:156
35630 #, no-wrap
35631 msgid ""
35632 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35633 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35634 "\n"
35635 msgstr ""
35636
35637 #. type: =head2
35638 #: ../src/guestfs-structs.pod:159
35639 msgid "guestfs_dirent"
35640 msgstr ""
35641
35642 #. type: verbatim
35643 #: ../src/guestfs-structs.pod:161
35644 #, no-wrap
35645 msgid ""
35646 " struct guestfs_dirent {\n"
35647 "   int64_t ino;\n"
35648 "   char ftyp;\n"
35649 "   char *name;\n"
35650 " };\n"
35651 " \n"
35652 msgstr ""
35653
35654 #. type: verbatim
35655 #: ../src/guestfs-structs.pod:167
35656 #, no-wrap
35657 msgid ""
35658 " struct guestfs_dirent_list {\n"
35659 "   uint32_t len; /* Number of elements in list. */\n"
35660 "   struct guestfs_dirent *val; /* Elements. */\n"
35661 " };\n"
35662 " \n"
35663 msgstr ""
35664
35665 #. type: verbatim
35666 #: ../src/guestfs-structs.pod:172
35667 #, no-wrap
35668 msgid ""
35669 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35670 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35671 "\n"
35672 msgstr ""
35673
35674 #. type: verbatim
35675 #: ../src/guestfs-structs.pod:177
35676 #, no-wrap
35677 msgid ""
35678 " struct guestfs_version {\n"
35679 "   int64_t major;\n"
35680 "   int64_t minor;\n"
35681 "   int64_t release;\n"
35682 "   char *extra;\n"
35683 " };\n"
35684 " \n"
35685 msgstr ""
35686
35687 #. type: verbatim
35688 #: ../src/guestfs-structs.pod:184
35689 #, no-wrap
35690 msgid ""
35691 " struct guestfs_version_list {\n"
35692 "   uint32_t len; /* Number of elements in list. */\n"
35693 "   struct guestfs_version *val; /* Elements. */\n"
35694 " };\n"
35695 " \n"
35696 msgstr ""
35697
35698 #. type: verbatim
35699 #: ../src/guestfs-structs.pod:189
35700 #, no-wrap
35701 msgid ""
35702 " void guestfs_free_version (struct guestfs_free_version *);\n"
35703 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35704 "\n"
35705 msgstr ""
35706
35707 #. type: =head2
35708 #: ../src/guestfs-structs.pod:192
35709 msgid "guestfs_xattr"
35710 msgstr ""
35711
35712 #. type: verbatim
35713 #: ../src/guestfs-structs.pod:194
35714 #, no-wrap
35715 msgid ""
35716 " struct guestfs_xattr {\n"
35717 "   char *attrname;\n"
35718 "   /* The next two fields describe a byte array. */\n"
35719 "   uint32_t attrval_len;\n"
35720 "   char *attrval;\n"
35721 " };\n"
35722 " \n"
35723 msgstr ""
35724
35725 #. type: verbatim
35726 #: ../src/guestfs-structs.pod:201
35727 #, no-wrap
35728 msgid ""
35729 " struct guestfs_xattr_list {\n"
35730 "   uint32_t len; /* Number of elements in list. */\n"
35731 "   struct guestfs_xattr *val; /* Elements. */\n"
35732 " };\n"
35733 " \n"
35734 msgstr ""
35735
35736 #. type: verbatim
35737 #: ../src/guestfs-structs.pod:206
35738 #, no-wrap
35739 msgid ""
35740 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35741 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35742 "\n"
35743 msgstr ""
35744
35745 #. type: =head2
35746 #: ../src/guestfs-structs.pod:209
35747 msgid "guestfs_inotify_event"
35748 msgstr ""
35749
35750 #. type: verbatim
35751 #: ../src/guestfs-structs.pod:211
35752 #, no-wrap
35753 msgid ""
35754 " struct guestfs_inotify_event {\n"
35755 "   int64_t in_wd;\n"
35756 "   uint32_t in_mask;\n"
35757 "   uint32_t in_cookie;\n"
35758 "   char *in_name;\n"
35759 " };\n"
35760 " \n"
35761 msgstr ""
35762
35763 #. type: verbatim
35764 #: ../src/guestfs-structs.pod:218
35765 #, no-wrap
35766 msgid ""
35767 " struct guestfs_inotify_event_list {\n"
35768 "   uint32_t len; /* Number of elements in list. */\n"
35769 "   struct guestfs_inotify_event *val; /* Elements. */\n"
35770 " };\n"
35771 " \n"
35772 msgstr ""
35773
35774 #. type: verbatim
35775 #: ../src/guestfs-structs.pod:223
35776 #, no-wrap
35777 msgid ""
35778 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35779 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35780 "\n"
35781 msgstr ""
35782
35783 #. type: =head2
35784 #: ../src/guestfs-structs.pod:226
35785 msgid "guestfs_partition"
35786 msgstr ""
35787
35788 #. type: verbatim
35789 #: ../src/guestfs-structs.pod:228
35790 #, no-wrap
35791 msgid ""
35792 " struct guestfs_partition {\n"
35793 "   int32_t part_num;\n"
35794 "   uint64_t part_start;\n"
35795 "   uint64_t part_end;\n"
35796 "   uint64_t part_size;\n"
35797 " };\n"
35798 " \n"
35799 msgstr ""
35800
35801 #. type: verbatim
35802 #: ../src/guestfs-structs.pod:235
35803 #, no-wrap
35804 msgid ""
35805 " struct guestfs_partition_list {\n"
35806 "   uint32_t len; /* Number of elements in list. */\n"
35807 "   struct guestfs_partition *val; /* Elements. */\n"
35808 " };\n"
35809 " \n"
35810 msgstr ""
35811
35812 #. type: verbatim
35813 #: ../src/guestfs-structs.pod:240
35814 #, no-wrap
35815 msgid ""
35816 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35817 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35818 "\n"
35819 msgstr ""
35820
35821 #. type: =head2
35822 #: ../src/guestfs-structs.pod:243
35823 msgid "guestfs_application"
35824 msgstr ""
35825
35826 #. type: verbatim
35827 #: ../src/guestfs-structs.pod:245
35828 #, no-wrap
35829 msgid ""
35830 " struct guestfs_application {\n"
35831 "   char *app_name;\n"
35832 "   char *app_display_name;\n"
35833 "   int32_t app_epoch;\n"
35834 "   char *app_version;\n"
35835 "   char *app_release;\n"
35836 "   char *app_install_path;\n"
35837 "   char *app_trans_path;\n"
35838 "   char *app_publisher;\n"
35839 "   char *app_url;\n"
35840 "   char *app_source_package;\n"
35841 "   char *app_summary;\n"
35842 "   char *app_description;\n"
35843 " };\n"
35844 " \n"
35845 msgstr ""
35846
35847 #. type: verbatim
35848 #: ../src/guestfs-structs.pod:260
35849 #, no-wrap
35850 msgid ""
35851 " struct guestfs_application_list {\n"
35852 "   uint32_t len; /* Number of elements in list. */\n"
35853 "   struct guestfs_application *val; /* Elements. */\n"
35854 " };\n"
35855 " \n"
35856 msgstr ""
35857
35858 #. type: verbatim
35859 #: ../src/guestfs-structs.pod:265
35860 #, no-wrap
35861 msgid ""
35862 " void guestfs_free_application (struct guestfs_free_application *);\n"
35863 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35864 "\n"
35865 msgstr ""
35866
35867 #. type: textblock
35868 #: ../src/guestfs.pod:5
35869 msgid "guestfs - Library for accessing and modifying virtual machine images"
35870 msgstr ""
35871
35872 #. type: verbatim
35873 #: ../src/guestfs.pod:11
35874 #, no-wrap
35875 msgid ""
35876 " guestfs_h *g = guestfs_create ();\n"
35877 " guestfs_add_drive (g, \"guest.img\");\n"
35878 " guestfs_launch (g);\n"
35879 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35880 " guestfs_touch (g, \"/hello\");\n"
35881 " guestfs_umount (g, \"/\");\n"
35882 " guestfs_close (g);\n"
35883 "\n"
35884 msgstr ""
35885 " guestfs_h *g = guestfs_create ();\n"
35886 " guestfs_add_drive (g, \"guest.img\");\n"
35887 " guestfs_launch (g);\n"
35888 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35889 " guestfs_touch (g, \"/hello\");\n"
35890 " guestfs_umount (g, \"/\");\n"
35891 " guestfs_close (g);\n"
35892 "\n"
35893
35894 #. type: textblock
35895 #: ../src/guestfs.pod:25
35896 msgid ""
35897 "Libguestfs is a library for accessing and modifying guest disk images.  "
35898 "Amongst the things this is good for: making batch configuration changes to "
35899 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35900 "between virtualization systems (see also: virt-p2v), performing partial "
35901 "backups, performing partial guest clones, cloning guests and changing "
35902 "registry/UUID/hostname info, and much else besides."
35903 msgstr ""
35904
35905 #. type: textblock
35906 #: ../src/guestfs.pod:33
35907 msgid ""
35908 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35909 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35910 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35911 "qcow2, vmdk."
35912 msgstr ""
35913
35914 #. type: textblock
35915 #: ../src/guestfs.pod:38
35916 msgid ""
35917 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35918 "what filesystem is in each LV, etc.).  It can also run commands in the "
35919 "context of the guest.  Also you can access filesystems over FUSE."
35920 msgstr ""
35921
35922 #. type: textblock
35923 #: ../src/guestfs.pod:43
35924 msgid ""
35925 "Libguestfs is a library that can be linked with C and C++ management "
35926 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35927 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
35928 "command line."
35929 msgstr ""
35930
35931 #. type: textblock
35932 #: ../src/guestfs.pod:48
35933 msgid ""
35934 "You don't need to be root to use libguestfs, although obviously you do need "
35935 "enough permissions to access the disk images."
35936 msgstr ""
35937
35938 #. type: textblock
35939 #: ../src/guestfs.pod:51
35940 msgid ""
35941 "Libguestfs is a large API because it can do many things.  For a gentle "
35942 "introduction, please read the L</API OVERVIEW> section next."
35943 msgstr ""
35944
35945 #. type: textblock
35946 #: ../src/guestfs.pod:54
35947 msgid ""
35948 "There are also some example programs in the L<guestfs-examples(3)> manual "
35949 "page."
35950 msgstr ""
35951
35952 #. type: =head1
35953 #: ../src/guestfs.pod:57
35954 msgid "API OVERVIEW"
35955 msgstr ""
35956
35957 #. type: textblock
35958 #: ../src/guestfs.pod:59
35959 msgid ""
35960 "This section provides a gentler overview of the libguestfs API.  We also try "
35961 "to group API calls together, where that may not be obvious from reading "
35962 "about the individual calls in the main section of this manual."
35963 msgstr ""
35964
35965 #. type: =head2
35966 #: ../src/guestfs.pod:64
35967 msgid "HANDLES"
35968 msgstr ""
35969
35970 #. type: textblock
35971 #: ../src/guestfs.pod:66
35972 msgid ""
35973 "Before you can use libguestfs calls, you have to create a handle.  Then you "
35974 "must add at least one disk image to the handle, followed by launching the "
35975 "handle, then performing whatever operations you want, and finally closing "
35976 "the handle.  By convention we use the single letter C<g> for the name of the "
35977 "handle variable, although of course you can use any name you want."
35978 msgstr ""
35979
35980 #. type: textblock
35981 #: ../src/guestfs.pod:73
35982 msgid "The general structure of all libguestfs-using programs looks like this:"
35983 msgstr ""
35984
35985 #. type: verbatim
35986 #: ../src/guestfs.pod:76
35987 #, no-wrap
35988 msgid ""
35989 " guestfs_h *g = guestfs_create ();\n"
35990 " \n"
35991 msgstr ""
35992
35993 #. type: verbatim
35994 #: ../src/guestfs.pod:78
35995 #, no-wrap
35996 msgid ""
35997 " /* Call guestfs_add_drive additional times if there are\n"
35998 "  * multiple disk images.\n"
35999 "  */\n"
36000 " guestfs_add_drive (g, \"guest.img\");\n"
36001 " \n"
36002 msgstr ""
36003
36004 #. type: verbatim
36005 #: ../src/guestfs.pod:83
36006 #, no-wrap
36007 msgid ""
36008 " /* Most manipulation calls won't work until you've launched\n"
36009 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
36010 "  * and _before_ other commands.\n"
36011 "  */\n"
36012 " guestfs_launch (g);\n"
36013 " \n"
36014 msgstr ""
36015
36016 #. type: verbatim
36017 #: ../src/guestfs.pod:89
36018 #, no-wrap
36019 msgid ""
36020 " /* Now you can examine what partitions, LVs etc are available.\n"
36021 "  */\n"
36022 " char **partitions = guestfs_list_partitions (g);\n"
36023 " char **logvols = guestfs_lvs (g);\n"
36024 " \n"
36025 msgstr ""
36026
36027 #. type: verbatim
36028 #: ../src/guestfs.pod:94
36029 #, no-wrap
36030 msgid ""
36031 " /* To access a filesystem in the image, you must mount it.\n"
36032 "  */\n"
36033 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36034 " \n"
36035 msgstr ""
36036
36037 #. type: verbatim
36038 #: ../src/guestfs.pod:98
36039 #, no-wrap
36040 msgid ""
36041 " /* Now you can perform filesystem actions on the guest\n"
36042 "  * disk image.\n"
36043 "  */\n"
36044 " guestfs_touch (g, \"/hello\");\n"
36045 " \n"
36046 msgstr ""
36047
36048 #. type: verbatim
36049 #: ../src/guestfs.pod:103
36050 #, no-wrap
36051 msgid ""
36052 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
36053 "  * it is done automatically when you close the handle.  See\n"
36054 "  * discussion of autosync in this page.\n"
36055 "  */\n"
36056 " guestfs_sync (g);\n"
36057 " \n"
36058 msgstr ""
36059
36060 #. type: verbatim
36061 #: ../src/guestfs.pod:109
36062 #, no-wrap
36063 msgid ""
36064 " /* Close the handle 'g'. */\n"
36065 " guestfs_close (g);\n"
36066 "\n"
36067 msgstr ""
36068
36069 #. type: textblock
36070 #: ../src/guestfs.pod:112
36071 msgid ""
36072 "The code above doesn't include any error checking.  In real code you should "
36073 "check return values carefully for errors.  In general all functions that "
36074 "return integers return C<-1> on error, and all functions that return "
36075 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
36076 "how to handle errors, and consult the documentation for each function call "
36077 "below to see precisely how they return error indications.  See L<guestfs-"
36078 "examples(3)> for fully worked examples."
36079 msgstr ""
36080
36081 #. type: =head2
36082 #: ../src/guestfs.pod:121
36083 msgid "DISK IMAGES"
36084 msgstr ""
36085
36086 #. type: textblock
36087 #: ../src/guestfs.pod:123
36088 msgid ""
36089 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
36090 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
36091 "actual block device, or simply an empty file of zeroes that you have created "
36092 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
36093 "of these."
36094 msgstr ""
36095
36096 #. type: textblock
36097 #: ../src/guestfs.pod:129
36098 msgid ""
36099 "The call you should use in modern code for adding drives is L</"
36100 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
36101 "specifying that the format is raw, do:"
36102 msgstr ""
36103
36104 #. type: verbatim
36105 #: ../src/guestfs.pod:133
36106 #, no-wrap
36107 msgid ""
36108 " guestfs_add_drive_opts (g, filename,\n"
36109 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36110 "                         -1);\n"
36111 "\n"
36112 msgstr ""
36113
36114 #. type: textblock
36115 #: ../src/guestfs.pod:137
36116 msgid "You can add a disk read-only using:"
36117 msgstr ""
36118
36119 #. type: verbatim
36120 #: ../src/guestfs.pod:139
36121 #, no-wrap
36122 msgid ""
36123 " guestfs_add_drive_opts (g, filename,\n"
36124 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36125 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36126 "                         -1);\n"
36127 "\n"
36128 msgstr ""
36129
36130 #. type: textblock
36131 #: ../src/guestfs.pod:144
36132 msgid ""
36133 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
36134 "libguestfs won't modify the file."
36135 msgstr ""
36136
36137 #. type: textblock
36138 #: ../src/guestfs.pod:147
36139 msgid ""
36140 "Be extremely cautious if the disk image is in use, eg. if it is being used "
36141 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
36142 "corruption, but adding it read-only is safe."
36143 msgstr ""
36144
36145 #. type: textblock
36146 #: ../src/guestfs.pod:151
36147 msgid ""
36148 "You must add at least one disk image, and you may add multiple disk images.  "
36149 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
36150 "first one you added), C</dev/sdb> (for the second one you added), etc."
36151 msgstr ""
36152
36153 #. type: textblock
36154 #: ../src/guestfs.pod:156
36155 msgid ""
36156 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
36157 "can call L</guestfs_list_devices> to get a list of the device names, in the "
36158 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
36159 msgstr ""
36160
36161 #. type: =head2
36162 #: ../src/guestfs.pod:161
36163 msgid "MOUNTING"
36164 msgstr ""
36165
36166 #. type: textblock
36167 #: ../src/guestfs.pod:163
36168 msgid ""
36169 "Before you can read or write files, create directories and so on in a disk "
36170 "image that contains filesystems, you have to mount those filesystems using "
36171 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
36172 "a disk image contains (for example) one partition with a filesystem on that "
36173 "partition, then you can mount it directly:"
36174 msgstr ""
36175
36176 #. type: verbatim
36177 #: ../src/guestfs.pod:170
36178 #, no-wrap
36179 msgid ""
36180 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36181 "\n"
36182 msgstr ""
36183
36184 #. type: textblock
36185 #: ../src/guestfs.pod:172
36186 msgid ""
36187 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
36188 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
36189 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
36190 "that these are libguestfs virtual devices, and are nothing to do with host "
36191 "devices."
36192 msgstr ""
36193
36194 #. type: textblock
36195 #: ../src/guestfs.pod:178
36196 msgid ""
36197 "If you are given a disk image and you don't know what it contains then you "
36198 "have to find out.  Libguestfs can do that too: use L</"
36199 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
36200 "LVs, and either try mounting each to see what is mountable, or else examine "
36201 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
36202 "filesystems, use L</guestfs_list_filesystems>."
36203 msgstr ""
36204
36205 #. type: textblock
36206 #: ../src/guestfs.pod:186
36207 msgid ""
36208 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
36209 "L</INSPECTION> below).  But you might find it easier to look at higher level "
36210 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
36211 msgstr ""
36212
36213 #. type: textblock
36214 #: ../src/guestfs.pod:191
36215 msgid ""
36216 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
36217 "several other variations of the C<guestfs_mount_*> call."
36218 msgstr ""
36219
36220 #. type: =head2
36221 #: ../src/guestfs.pod:194
36222 msgid "FILESYSTEM ACCESS AND MODIFICATION"
36223 msgstr ""
36224
36225 #. type: textblock
36226 #: ../src/guestfs.pod:196
36227 msgid ""
36228 "The majority of the libguestfs API consists of fairly low-level calls for "
36229 "accessing and modifying the files, directories, symlinks etc on mounted "
36230 "filesystems.  There are over a hundred such calls which you can find listed "
36231 "in detail below in this man page, and we don't even pretend to cover them "
36232 "all in this overview."
36233 msgstr ""
36234
36235 #. type: textblock
36236 #: ../src/guestfs.pod:202
36237 msgid ""
36238 "Specify filenames as full paths, starting with C<\"/\"> and including the "
36239 "mount point."
36240 msgstr ""
36241
36242 #. type: textblock
36243 #: ../src/guestfs.pod:205
36244 msgid ""
36245 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
36246 "the file called C<\"etc/passwd\"> then you could do:"
36247 msgstr ""
36248
36249 #. type: verbatim
36250 #: ../src/guestfs.pod:208
36251 #, no-wrap
36252 msgid ""
36253 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36254 "\n"
36255 msgstr ""
36256
36257 #. type: textblock
36258 #: ../src/guestfs.pod:210
36259 msgid ""
36260 "This would return C<data> as a newly allocated buffer containing the full "
36261 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
36262 "or C<NULL> if there was an error."
36263 msgstr ""
36264
36265 #. type: textblock
36266 #: ../src/guestfs.pod:214
36267 msgid ""
36268 "As another example, to create a top-level directory on that filesystem "
36269 "called C<\"var\"> you would do:"
36270 msgstr ""
36271
36272 #. type: verbatim
36273 #: ../src/guestfs.pod:217
36274 #, no-wrap
36275 msgid ""
36276 " guestfs_mkdir (g, \"/var\");\n"
36277 "\n"
36278 msgstr ""
36279
36280 #. type: textblock
36281 #: ../src/guestfs.pod:219
36282 msgid "To create a symlink you could do:"
36283 msgstr ""
36284
36285 #. type: verbatim
36286 #: ../src/guestfs.pod:221
36287 #, no-wrap
36288 msgid ""
36289 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36290 "               \"/etc/rc3.d/S30portmap\");\n"
36291 "\n"
36292 msgstr ""
36293
36294 #. type: textblock
36295 #: ../src/guestfs.pod:224
36296 msgid ""
36297 "Libguestfs will reject attempts to use relative paths and there is no "
36298 "concept of a current working directory."
36299 msgstr ""
36300
36301 #. type: textblock
36302 #: ../src/guestfs.pod:227
36303 msgid ""
36304 "Libguestfs can return errors in many situations: for example if the "
36305 "filesystem isn't writable, or if a file or directory that you requested "
36306 "doesn't exist.  If you are using the C API (documented here)  you have to "
36307 "check for those error conditions after each call.  (Other language bindings "
36308 "turn these errors into exceptions)."
36309 msgstr ""
36310
36311 #. type: textblock
36312 #: ../src/guestfs.pod:233
36313 msgid ""
36314 "File writes are affected by the per-handle umask, set by calling L</"
36315 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
36316 msgstr ""
36317
36318 #. type: =head2
36319 #: ../src/guestfs.pod:236
36320 msgid "PARTITIONING"
36321 msgstr ""
36322
36323 #. type: textblock
36324 #: ../src/guestfs.pod:238
36325 msgid ""
36326 "Libguestfs contains API calls to read, create and modify partition tables on "
36327 "disk images."
36328 msgstr ""
36329
36330 #. type: textblock
36331 #: ../src/guestfs.pod:241
36332 msgid ""
36333 "In the common case where you want to create a single partition covering the "
36334 "whole disk, you should use the L</guestfs_part_disk> call:"
36335 msgstr ""
36336
36337 #. type: verbatim
36338 #: ../src/guestfs.pod:245
36339 #, no-wrap
36340 msgid ""
36341 " const char *parttype = \"mbr\";\n"
36342 " if (disk_is_larger_than_2TB)\n"
36343 "   parttype = \"gpt\";\n"
36344 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36345 "\n"
36346 msgstr ""
36347
36348 #. type: textblock
36349 #: ../src/guestfs.pod:250
36350 msgid ""
36351 "Obviously this effectively wipes anything that was on that disk image before."
36352 msgstr ""
36353
36354 #. type: =head2
36355 #: ../src/guestfs.pod:253
36356 msgid "LVM2"
36357 msgstr ""
36358
36359 #. type: textblock
36360 #: ../src/guestfs.pod:255
36361 msgid ""
36362 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
36363 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
36364 "you familiarize yourself with the concepts of physical volumes, volume "
36365 "groups and logical volumes."
36366 msgstr ""
36367
36368 #. type: textblock
36369 #: ../src/guestfs.pod:260
36370 msgid ""
36371 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
36372 "tldp.org/HOWTO/LVM-HOWTO/>."
36373 msgstr ""
36374
36375 #. type: =head2
36376 #: ../src/guestfs.pod:263
36377 msgid "DOWNLOADING"
36378 msgstr ""
36379
36380 #. type: textblock
36381 #: ../src/guestfs.pod:265
36382 msgid ""
36383 "Use L</guestfs_cat> to download small, text only files.  This call is "
36384 "limited to files which are less than 2 MB and which cannot contain any ASCII "
36385 "NUL (C<\\0>) characters.  However the API is very simple to use."
36386 msgstr ""
36387
36388 #. type: textblock
36389 #: ../src/guestfs.pod:269
36390 msgid ""
36391 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
36392 "bit data, since it returns a (pointer, size) pair.  However it is still "
36393 "limited to \"small\" files, less than 2 MB."
36394 msgstr ""
36395
36396 #. type: textblock
36397 #: ../src/guestfs.pod:273
36398 msgid ""
36399 "L</guestfs_download> can be used to download any file, with no limits on "
36400 "content or size (even files larger than 4 GB)."
36401 msgstr ""
36402
36403 #. type: textblock
36404 #: ../src/guestfs.pod:276
36405 msgid ""
36406 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
36407 msgstr ""
36408
36409 #. type: =head2
36410 #: ../src/guestfs.pod:279
36411 msgid "UPLOADING"
36412 msgstr ""
36413
36414 #. type: textblock
36415 #: ../src/guestfs.pod:281
36416 msgid ""
36417 "It's often the case that you want to write a file or files to the disk image."
36418 msgstr ""
36419
36420 #. type: textblock
36421 #: ../src/guestfs.pod:284
36422 msgid ""
36423 "To write a small file with fixed content, use L</guestfs_write>.  To create "
36424 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
36425 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
36426 "of other functions for creating test files, for example L</guestfs_fill> and "
36427 "L</guestfs_fill_pattern>."
36428 msgstr ""
36429
36430 #. type: textblock
36431 #: ../src/guestfs.pod:290
36432 msgid ""
36433 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
36434 "file content or size (even files larger than 4 GB)."
36435 msgstr ""
36436
36437 #. type: textblock
36438 #: ../src/guestfs.pod:293
36439 msgid ""
36440 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36441 msgstr ""
36442
36443 #. type: textblock
36444 #: ../src/guestfs.pod:295
36445 msgid ""
36446 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36447 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36448 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
36449 "in a predictable way (eg. adding it last after all other drives) then you "
36450 "can get the device name from L</guestfs_list_devices> and mount it directly "
36451 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
36452 "portable between kernel versions, and they don't support labels or UUIDs.  "
36453 "If you want to pre-build an image or you need to mount it using a label or "
36454 "UUID, use an ISO image instead."
36455 msgstr ""
36456
36457 #. type: =head2
36458 #: ../src/guestfs.pod:306
36459 msgid "COPYING"
36460 msgstr ""
36461
36462 #. type: textblock
36463 #: ../src/guestfs.pod:308
36464 msgid ""
36465 "There are various different commands for copying between files and devices "
36466 "and in and out of the guest filesystem.  These are summarised in the table "
36467 "below."
36468 msgstr ""
36469
36470 #. type: =item
36471 #: ../src/guestfs.pod:314
36472 msgid "B<file> to B<file>"
36473 msgstr ""
36474
36475 #. type: textblock
36476 #: ../src/guestfs.pod:316
36477 msgid ""
36478 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36479 "directories recursively."
36480 msgstr ""
36481
36482 #. type: textblock
36483 #: ../src/guestfs.pod:319
36484 msgid ""
36485 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36486 msgstr ""
36487
36488 #. type: =item
36489 #: ../src/guestfs.pod:322
36490 msgid "B<file> to B<device>"
36491 msgstr ""
36492
36493 #. type: =item
36494 #: ../src/guestfs.pod:324
36495 msgid "B<device> to B<file>"
36496 msgstr ""
36497
36498 #. type: =item
36499 #: ../src/guestfs.pod:326
36500 msgid "B<device> to B<device>"
36501 msgstr ""
36502
36503 #. type: textblock
36504 #: ../src/guestfs.pod:328
36505 msgid ""
36506 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36507 "guestfs_copy_device_to_device>."
36508 msgstr ""
36509
36510 #. type: textblock
36511 #: ../src/guestfs.pod:331
36512 msgid "Example: duplicate the contents of an LV:"
36513 msgstr ""
36514
36515 #. type: verbatim
36516 #: ../src/guestfs.pod:333
36517 #, no-wrap
36518 msgid ""
36519 " guestfs_copy_device_to_device (g,\n"
36520 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36521 "         /* -1 marks the end of the list of optional parameters */\n"
36522 "         -1);\n"
36523 "\n"
36524 msgstr ""
36525
36526 #. type: textblock
36527 #: ../src/guestfs.pod:338
36528 msgid ""
36529 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36530 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
36531 "optional C<size> parameter:"
36532 msgstr ""
36533
36534 #. type: verbatim
36535 #: ../src/guestfs.pod:342
36536 #, no-wrap
36537 msgid ""
36538 " guestfs_copy_device_to_device (g,\n"
36539 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36540 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36541 "         -1);\n"
36542 "\n"
36543 msgstr ""
36544
36545 #. type: =item
36546 #: ../src/guestfs.pod:347
36547 msgid "B<file on the host> to B<file or device>"
36548 msgstr ""
36549
36550 #. type: textblock
36551 #: ../src/guestfs.pod:349
36552 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
36553 msgstr ""
36554
36555 #. type: =item
36556 #: ../src/guestfs.pod:351
36557 msgid "B<file or device> to B<file on the host>"
36558 msgstr ""
36559
36560 #. type: textblock
36561 #: ../src/guestfs.pod:353
36562 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
36563 msgstr ""
36564
36565 #. type: =head2
36566 #: ../src/guestfs.pod:357
36567 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36568 msgstr ""
36569
36570 #. type: textblock
36571 #: ../src/guestfs.pod:359
36572 msgid ""
36573 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36574 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36575 "appears you can only upload and download to files.  However many Un*x-like "
36576 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36577 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36578 "and arbitrary file descriptor N."
36579 msgstr ""
36580
36581 #. type: textblock
36582 #: ../src/guestfs.pod:367
36583 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36584 msgstr ""
36585
36586 #. type: verbatim
36587 #: ../src/guestfs.pod:370
36588 #, no-wrap
36589 msgid ""
36590 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36591 "\n"
36592 msgstr ""
36593
36594 #. type: textblock
36595 #: ../src/guestfs.pod:372
36596 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36597 msgstr ""
36598
36599 #. type: verbatim
36600 #: ../src/guestfs.pod:374
36601 #, no-wrap
36602 msgid ""
36603 " char devfd[64];\n"
36604 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36605 " guestfs_tar_out (g, \"/\", devfd);\n"
36606 "\n"
36607 msgstr ""
36608
36609 #. type: =head2
36610 #: ../src/guestfs.pod:378
36611 msgid "LISTING FILES"
36612 msgstr ""
36613
36614 #. type: textblock
36615 #: ../src/guestfs.pod:380
36616 msgid ""
36617 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36618 "L<guestfish(1)>-equivalent command C<ll>)."
36619 msgstr ""
36620
36621 #. type: textblock
36622 #: ../src/guestfs.pod:383
36623 msgid ""
36624 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36625 "programs, as a flat list of strings."
36626 msgstr ""
36627
36628 #. type: textblock
36629 #: ../src/guestfs.pod:386
36630 msgid ""
36631 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36632 "directory, plus additional information about each one.  It is more "
36633 "equivalent to using the L<readdir(3)> call on a local filesystem."
36634 msgstr ""
36635
36636 #. type: textblock
36637 #: ../src/guestfs.pod:390
36638 msgid ""
36639 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36640 msgstr ""
36641
36642 #. type: =head2
36643 #: ../src/guestfs.pod:393
36644 msgid "RUNNING COMMANDS"
36645 msgstr ""
36646
36647 #. type: textblock
36648 #: ../src/guestfs.pod:395
36649 msgid ""
36650 "Although libguestfs is primarily an API for manipulating files inside guest "
36651 "images, we also provide some limited facilities for running commands inside "
36652 "guests."
36653 msgstr ""
36654
36655 #. type: textblock
36656 #: ../src/guestfs.pod:399
36657 msgid "There are many limitations to this:"
36658 msgstr ""
36659
36660 #. type: textblock
36661 #: ../src/guestfs.pod:405
36662 msgid ""
36663 "The kernel version that the command runs under will be different from what "
36664 "it expects."
36665 msgstr ""
36666
36667 #. type: textblock
36668 #: ../src/guestfs.pod:410
36669 msgid ""
36670 "If the command needs to communicate with daemons, then most likely they "
36671 "won't be running."
36672 msgstr ""
36673
36674 #. type: textblock
36675 #: ../src/guestfs.pod:415
36676 msgid "The command will be running in limited memory."
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../src/guestfs.pod:419
36681 msgid ""
36682 "The network may not be available unless you enable it (see L</"
36683 "guestfs_set_network>)."
36684 msgstr ""
36685
36686 #. type: textblock
36687 #: ../src/guestfs.pod:424
36688 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36689 msgstr ""
36690
36691 #. type: textblock
36692 #: ../src/guestfs.pod:428
36693 msgid ""
36694 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36695 msgstr ""
36696
36697 #. type: textblock
36698 #: ../src/guestfs.pod:433
36699 msgid ""
36700 "For SELinux guests, you may need to enable SELinux and load policy first.  "
36701 "See L</SELINUX> in this manpage."
36702 msgstr ""
36703
36704 #. type: textblock
36705 #: ../src/guestfs.pod:438
36706 msgid ""
36707 "I<Security:> It is not safe to run commands from untrusted, possibly "
36708 "malicious guests.  These commands may attempt to exploit your program by "
36709 "sending unexpected output.  They could also try to exploit the Linux kernel "
36710 "or qemu provided by the libguestfs appliance.  They could use the network "
36711 "provided by the libguestfs appliance to bypass ordinary network partitions "
36712 "and firewalls.  They could use the elevated privileges or different SELinux "
36713 "context of your program to their advantage."
36714 msgstr ""
36715
36716 #. type: textblock
36717 #: ../src/guestfs.pod:447
36718 msgid ""
36719 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36720 "(a script which runs when the guest next boots normally), and to have this "
36721 "script run the commands you want in the normal context of the running guest, "
36722 "network security and so on.  For information about other security issues, "
36723 "see L</SECURITY>."
36724 msgstr ""
36725
36726 #. type: textblock
36727 #: ../src/guestfs.pod:455
36728 msgid ""
36729 "The two main API calls to run commands are L</guestfs_command> and L</"
36730 "guestfs_sh> (there are also variations)."
36731 msgstr ""
36732
36733 #. type: textblock
36734 #: ../src/guestfs.pod:458
36735 msgid ""
36736 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36737 "shell globs, redirections, etc will work."
36738 msgstr ""
36739
36740 #. type: =head2
36741 #: ../src/guestfs.pod:461
36742 msgid "CONFIGURATION FILES"
36743 msgstr ""
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:463
36747 msgid ""
36748 "To read and write configuration files in Linux guest filesystems, we "
36749 "strongly recommend using Augeas.  For example, Augeas understands how to "
36750 "read and write, say, a Linux shadow password file or X.org configuration "
36751 "file, and so avoids you having to write that code."
36752 msgstr ""
36753
36754 #. type: textblock
36755 #: ../src/guestfs.pod:468
36756 msgid ""
36757 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
36758 "document Augeas itself here because there is excellent documentation on the "
36759 "L<http://augeas.net/> website."
36760 msgstr ""
36761
36762 #. type: textblock
36763 #: ../src/guestfs.pod:472
36764 msgid ""
36765 "If you don't want to use Augeas (you fool!) then try calling L</"
36766 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36767 "over."
36768 msgstr ""
36769
36770 #. type: =head2
36771 #: ../src/guestfs.pod:476
36772 msgid "SELINUX"
36773 msgstr ""
36774
36775 #. type: textblock
36776 #: ../src/guestfs.pod:478
36777 msgid ""
36778 "We support SELinux guests.  To ensure that labeling happens correctly in "
36779 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36780 msgstr ""
36781
36782 #. type: textblock
36783 #: ../src/guestfs.pod:486
36784 msgid "Before launching, do:"
36785 msgstr ""
36786
36787 #. type: verbatim
36788 #: ../src/guestfs.pod:488
36789 #, no-wrap
36790 msgid ""
36791 " guestfs_set_selinux (g, 1);\n"
36792 "\n"
36793 msgstr ""
36794
36795 #. type: textblock
36796 #: ../src/guestfs.pod:492
36797 msgid ""
36798 "After mounting the guest's filesystem(s), load the policy.  This is best "
36799 "done by running the L<load_policy(8)> command in the guest itself:"
36800 msgstr ""
36801
36802 #. type: verbatim
36803 #: ../src/guestfs.pod:496
36804 #, no-wrap
36805 msgid ""
36806 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36807 "\n"
36808 msgstr ""
36809
36810 #. type: textblock
36811 #: ../src/guestfs.pod:498
36812 msgid ""
36813 "(Older versions of C<load_policy> require you to specify the name of the "
36814 "policy file)."
36815 msgstr ""
36816
36817 #. type: textblock
36818 #: ../src/guestfs.pod:503
36819 msgid ""
36820 "Optionally, set the security context for the API.  The correct security "
36821 "context to use can only be known by inspecting the guest.  As an example:"
36822 msgstr ""
36823
36824 #. type: verbatim
36825 #: ../src/guestfs.pod:507
36826 #, no-wrap
36827 msgid ""
36828 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36829 "\n"
36830 msgstr ""
36831
36832 #. type: textblock
36833 #: ../src/guestfs.pod:511
36834 msgid "This will work for running commands and editing existing files."
36835 msgstr ""
36836
36837 #. type: textblock
36838 #: ../src/guestfs.pod:513
36839 msgid ""
36840 "When new files are created, you may need to label them explicitly, for "
36841 "example by running the external command C<restorecon pathname>."
36842 msgstr ""
36843
36844 #. type: =head2
36845 #: ../src/guestfs.pod:517
36846 msgid "UMASK"
36847 msgstr ""
36848
36849 #. type: textblock
36850 #: ../src/guestfs.pod:519
36851 msgid ""
36852 "Certain calls are affected by the current file mode creation mask (the "
36853 "\"umask\").  In particular ones which create files or directories, such as "
36854 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
36855 "either the default mode that the file is created with or modifies the mode "
36856 "that you supply."
36857 msgstr ""
36858
36859 #. type: textblock
36860 #: ../src/guestfs.pod:525
36861 msgid ""
36862 "The default umask is C<022>, so files are created with modes such as C<0644> "
36863 "and directories with C<0755>."
36864 msgstr ""
36865
36866 #. type: textblock
36867 #: ../src/guestfs.pod:528
36868 msgid ""
36869 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
36870 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
36871 "guestfs_chmod> after creating each file or directory."
36872 msgstr ""
36873
36874 #. type: textblock
36875 #: ../src/guestfs.pod:532
36876 msgid "For more information about umask, see L<umask(2)>."
36877 msgstr ""
36878
36879 #. type: textblock
36880 #: ../src/guestfs.pod:536
36881 msgid ""
36882 "Libguestfs allows you to access Linux guests which have been encrypted using "
36883 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36884 "standard.  This includes nearly all whole disk encryption systems used by "
36885 "modern Linux guests."
36886 msgstr ""
36887
36888 #. type: textblock
36889 #: ../src/guestfs.pod:542
36890 msgid ""
36891 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36892 "returns the string C<crypto_LUKS>)."
36893 msgstr ""
36894
36895 #. type: textblock
36896 #: ../src/guestfs.pod:545
36897 msgid ""
36898 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
36899 "will require the passphrase!"
36900 msgstr ""
36901
36902 #. type: textblock
36903 #: ../src/guestfs.pod:548
36904 msgid ""
36905 "Opening a LUKS device creates a new device mapper device called C</dev/"
36906 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36907 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
36908 "from and encrypted to the underlying block device respectively."
36909 msgstr ""
36910
36911 #. type: textblock
36912 #: ../src/guestfs.pod:554
36913 msgid ""
36914 "LVM volume groups on the device can be made visible by calling L</"
36915 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
36916 "(s) can now be mounted in the usual way."
36917 msgstr ""
36918
36919 #. type: textblock
36920 #: ../src/guestfs.pod:558
36921 msgid ""
36922 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
36923 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36924 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
36925 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36926 "underlying encrypted block device)."
36927 msgstr ""
36928
36929 #. type: =head2
36930 #: ../src/guestfs.pod:565
36931 msgid "INSPECTION"
36932 msgstr ""
36933
36934 #. type: textblock
36935 #: ../src/guestfs.pod:567
36936 msgid ""
36937 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36938 "contains operating systems, an install CD or a live CD.  (These APIs used to "
36939 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36940 "version 1.5.3 the most frequently used part of this library has been "
36941 "rewritten in C and moved into the core code)."
36942 msgstr ""
36943
36944 #. type: textblock
36945 #: ../src/guestfs.pod:574
36946 msgid ""
36947 "Add all disks belonging to the unknown virtual machine and call L</"
36948 "guestfs_launch> in the usual way."
36949 msgstr ""
36950
36951 #. type: textblock
36952 #: ../src/guestfs.pod:577
36953 msgid ""
36954 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
36955 "and certain heuristics, and returns a list of operating systems that were "
36956 "found.  An empty list means none were found.  A single element is the root "
36957 "filesystem of the operating system.  For dual- or multi-boot guests, "
36958 "multiple roots can be returned, each one corresponding to a separate "
36959 "operating system.  (Multi-boot virtual machines are extremely rare in the "
36960 "world of virtualization, but since this scenario can happen, we have built "
36961 "libguestfs to deal with it.)"
36962 msgstr ""
36963
36964 #. type: textblock
36965 #: ../src/guestfs.pod:586
36966 msgid ""
36967 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36968 "to get additional details about that operating system.  For example, call L</"
36969 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36970 "Windows and Linux-based operating systems respectively."
36971 msgstr ""
36972
36973 #. type: textblock
36974 #: ../src/guestfs.pod:592
36975 msgid ""
36976 "Un*x-like and Linux-based operating systems usually consist of several "
36977 "filesystems which are mounted at boot time (for example, a separate boot "
36978 "partition mounted on C</boot>).  The inspection rules are able to detect how "
36979 "filesystems correspond to mount points.  Call "
36980 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
36981 "hash table like this example:"
36982 msgstr ""
36983
36984 #. type: verbatim
36985 #: ../src/guestfs.pod:599
36986 #, no-wrap
36987 msgid ""
36988 " /boot => /dev/sda1\n"
36989 " /     => /dev/vg_guest/lv_root\n"
36990 " /usr  => /dev/vg_guest/lv_usr\n"
36991 "\n"
36992 msgstr ""
36993
36994 #. type: textblock
36995 #: ../src/guestfs.pod:603
36996 msgid ""
36997 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36998 "filesystems as suggested."
36999 msgstr ""
37000
37001 #. type: textblock
37002 #: ../src/guestfs.pod:606
37003 msgid ""
37004 "Be careful to mount filesystems in the right order (eg. C</> before C</"
37005 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
37006 msgstr ""
37007
37008 #. type: textblock
37009 #: ../src/guestfs.pod:610
37010 msgid ""
37011 "Inspection currently only works for some common operating systems.  "
37012 "Contributors are welcome to send patches for other operating systems that we "
37013 "currently cannot detect."
37014 msgstr ""
37015
37016 #. type: textblock
37017 #: ../src/guestfs.pod:614
37018 msgid ""
37019 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
37020 "for more details.  The L</guestfs_inspect_os> function just ignores any "
37021 "encrypted devices."
37022 msgstr ""
37023
37024 #. type: textblock
37025 #: ../src/guestfs.pod:618
37026 msgid ""
37027 "A note on the implementation: The call L</guestfs_inspect_os> performs "
37028 "inspection and caches the results in the guest handle.  Subsequent calls to "
37029 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
37030 "read the disks.  If you change the content of the guest disks, you can redo "
37031 "inspection by calling L</guestfs_inspect_os> again.  (L</"
37032 "guestfs_inspect_list_applications> works a little differently from the other "
37033 "calls and does read the disks.  See documentation for that function for "
37034 "details)."
37035 msgstr ""
37036
37037 #. type: =head3
37038 #: ../src/guestfs.pod:627
37039 msgid "INSPECTING INSTALL DISKS"
37040 msgstr ""
37041
37042 #. type: textblock
37043 #: ../src/guestfs.pod:629
37044 msgid ""
37045 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
37046 "CDs and more."
37047 msgstr ""
37048
37049 #. type: textblock
37050 #: ../src/guestfs.pod:632
37051 msgid ""
37052 "Call L</guestfs_inspect_get_format> to return the format of the operating "
37053 "system, which currently can be C<installed> (a regular operating system) or "
37054 "C<installer> (some sort of install disk)."
37055 msgstr ""
37056
37057 #. type: textblock
37058 #: ../src/guestfs.pod:636
37059 msgid ""
37060 "Further information is available about the operating system that can be "
37061 "installed using the regular inspection APIs like L</"
37062 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
37063 msgstr ""
37064
37065 #. type: textblock
37066 #: ../src/guestfs.pod:641
37067 msgid ""
37068 "Some additional information specific to installer disks is also available "
37069 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
37070 "guestfs_inspect_is_multipart> calls."
37071 msgstr ""
37072
37073 #. type: =head2
37074 #: ../src/guestfs.pod:646
37075 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
37076 msgstr ""
37077
37078 #. type: textblock
37079 #: ../src/guestfs.pod:648
37080 msgid ""
37081 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
37082 "ntfs-3g.org/> driver."
37083 msgstr ""
37084
37085 #. type: =head3
37086 #: ../src/guestfs.pod:651
37087 msgid "DRIVE LETTERS AND PATHS"
37088 msgstr ""
37089
37090 #. type: textblock
37091 #: ../src/guestfs.pod:653
37092 msgid ""
37093 "DOS and Windows still use drive letters, and the filesystems are always "
37094 "treated as case insensitive by Windows itself, and therefore you might find "
37095 "a Windows configuration file referring to a path like C<c:\\windows"
37096 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
37097 "might be referred to as C</WINDOWS/System32>."
37098 msgstr ""
37099
37100 #. type: textblock
37101 #: ../src/guestfs.pod:659
37102 msgid ""
37103 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
37104 "L</guestfs_inspect_get_drive_mappings>)"
37105 msgstr ""
37106
37107 #. type: textblock
37108 #: ../src/guestfs.pod:662
37109 msgid ""
37110 "Dealing with separator characters (backslash vs forward slash) is outside "
37111 "the scope of libguestfs, but usually a simple character replacement will "
37112 "work."
37113 msgstr ""
37114
37115 #. type: textblock
37116 #: ../src/guestfs.pod:666
37117 msgid ""
37118 "To resolve the case insensitivity of paths, call L</"
37119 "guestfs_case_sensitive_path>."
37120 msgstr ""
37121
37122 #. type: =head3
37123 #: ../src/guestfs.pod:669
37124 msgid "ACCESSING THE WINDOWS REGISTRY"
37125 msgstr ""
37126
37127 #. type: textblock
37128 #: ../src/guestfs.pod:671
37129 msgid ""
37130 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
37131 "files, through the library C<hivex> which is part of the libguestfs project "
37132 "although ships as a separate tarball.  You have to locate and download the "
37133 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
37134 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
37135 "reg(1)> for more help on this issue."
37136 msgstr ""
37137
37138 #. type: =head3
37139 #: ../src/guestfs.pod:679
37140 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
37141 msgstr ""
37142
37143 #. type: textblock
37144 #: ../src/guestfs.pod:681
37145 msgid ""
37146 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
37147 "provide something which looks like a Linux symlink.  The way it tries to do "
37148 "the rewriting is described here:"
37149 msgstr ""
37150
37151 #. type: textblock
37152 #: ../src/guestfs.pod:685
37153 msgid ""
37154 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37155 "symbolic-links/>"
37156 msgstr ""
37157
37158 #. type: textblock
37159 #: ../src/guestfs.pod:687
37160 msgid ""
37161 "The essential problem is that ntfs-3g simply does not have enough "
37162 "information to do a correct job.  NTFS links can contain drive letters and "
37163 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
37164 "It is almost certainly the case that libguestfs callers should ignore what "
37165 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
37166 msgstr ""
37167
37168 #. type: textblock
37169 #: ../src/guestfs.pod:694
37170 msgid ""
37171 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
37172 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
37173 "attribute, and read the raw reparse data from that (you can find the format "
37174 "documented in various places around the web)."
37175 msgstr ""
37176
37177 #. type: =head3
37178 #: ../src/guestfs.pod:699
37179 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
37180 msgstr ""
37181
37182 #. type: textblock
37183 #: ../src/guestfs.pod:701
37184 msgid ""
37185 "There are other useful extended attributes that can be read from ntfs-3g "
37186 "filesystems (using L</guestfs_getxattr>).  See:"
37187 msgstr ""
37188
37189 #. type: textblock
37190 #: ../src/guestfs.pod:704
37191 msgid ""
37192 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37193 msgstr ""
37194
37195 #. type: =head2
37196 #: ../src/guestfs.pod:706
37197 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
37198 msgstr ""
37199
37200 #. type: textblock
37201 #: ../src/guestfs.pod:708
37202 msgid ""
37203 "Although we don't want to discourage you from using the C API, we will "
37204 "mention here that the same API is also available in other languages."
37205 msgstr ""
37206
37207 #. type: textblock
37208 #: ../src/guestfs.pod:711
37209 msgid ""
37210 "The API is broadly identical in all supported languages.  This means that "
37211 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
37212 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
37213 "OCaml.  In other words, a straightforward, predictable isomorphism between "
37214 "each language."
37215 msgstr ""
37216
37217 #. type: textblock
37218 #: ../src/guestfs.pod:717
37219 msgid ""
37220 "Error messages are automatically transformed into exceptions if the language "
37221 "supports it."
37222 msgstr ""
37223
37224 #. type: textblock
37225 #: ../src/guestfs.pod:720
37226 msgid ""
37227 "We don't try to \"object orientify\" parts of the API in OO languages, "
37228 "although contributors are welcome to write higher level APIs above what we "
37229 "provide in their favourite languages if they wish."
37230 msgstr ""
37231
37232 #. type: =item
37233 #: ../src/guestfs.pod:726
37234 msgid "B<C++>"
37235 msgstr ""
37236
37237 #. type: textblock
37238 #: ../src/guestfs.pod:728
37239 msgid ""
37240 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
37241 "identical to the C API.  C++ classes and exceptions are not used."
37242 msgstr ""
37243
37244 #. type: =item
37245 #: ../src/guestfs.pod:732
37246 msgid "B<C#>"
37247 msgstr ""
37248
37249 #. type: textblock
37250 #: ../src/guestfs.pod:734
37251 msgid ""
37252 "The C# bindings are highly experimental.  Please read the warnings at the "
37253 "top of C<csharp/Libguestfs.cs>."
37254 msgstr ""
37255
37256 #. type: =item
37257 #: ../src/guestfs.pod:737
37258 msgid "B<Erlang>"
37259 msgstr ""
37260
37261 #. type: textblock
37262 #: ../src/guestfs.pod:739
37263 msgid "See L<guestfs-erlang(3)>."
37264 msgstr ""
37265
37266 #. type: =item
37267 #: ../src/guestfs.pod:741
37268 msgid "B<Haskell>"
37269 msgstr ""
37270
37271 #. type: textblock
37272 #: ../src/guestfs.pod:743
37273 msgid ""
37274 "This is the only language binding that is working but incomplete.  Only "
37275 "calls which return simple integers have been bound in Haskell, and we are "
37276 "looking for help to complete this binding."
37277 msgstr ""
37278
37279 #. type: =item
37280 #: ../src/guestfs.pod:747
37281 msgid "B<Java>"
37282 msgstr ""
37283
37284 #. type: textblock
37285 #: ../src/guestfs.pod:749
37286 msgid ""
37287 "Full documentation is contained in the Javadoc which is distributed with "
37288 "libguestfs.  For examples, see L<guestfs-java(3)>."
37289 msgstr ""
37290
37291 #. type: =item
37292 #: ../src/guestfs.pod:752
37293 msgid "B<OCaml>"
37294 msgstr ""
37295
37296 #. type: textblock
37297 #: ../src/guestfs.pod:754
37298 msgid "See L<guestfs-ocaml(3)>."
37299 msgstr ""
37300
37301 #. type: =item
37302 #: ../src/guestfs.pod:756
37303 msgid "B<Perl>"
37304 msgstr ""
37305
37306 #. type: textblock
37307 #: ../src/guestfs.pod:758
37308 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
37309 msgstr ""
37310
37311 #. type: =item
37312 #: ../src/guestfs.pod:760
37313 msgid "B<PHP>"
37314 msgstr ""
37315
37316 #. type: textblock
37317 #: ../src/guestfs.pod:762
37318 msgid ""
37319 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
37320 "the php-libguestfs package for your distribution."
37321 msgstr ""
37322
37323 #. type: textblock
37324 #: ../src/guestfs.pod:765
37325 msgid "The PHP binding only works correctly on 64 bit machines."
37326 msgstr ""
37327
37328 #. type: =item
37329 #: ../src/guestfs.pod:767
37330 msgid "B<Python>"
37331 msgstr ""
37332
37333 #. type: textblock
37334 #: ../src/guestfs.pod:769
37335 msgid "See L<guestfs-python(3)>."
37336 msgstr ""
37337
37338 #. type: =item
37339 #: ../src/guestfs.pod:771
37340 msgid "B<Ruby>"
37341 msgstr ""
37342
37343 #. type: textblock
37344 #: ../src/guestfs.pod:773
37345 msgid "See L<guestfs-ruby(3)>."
37346 msgstr ""
37347
37348 #. type: =item
37349 #: ../src/guestfs.pod:775
37350 msgid "B<shell scripts>"
37351 msgstr ""
37352
37353 #. type: textblock
37354 #: ../src/guestfs.pod:777
37355 msgid "See L<guestfish(1)>."
37356 msgstr ""
37357
37358 #. type: =head2
37359 #: ../src/guestfs.pod:781
37360 msgid "LIBGUESTFS GOTCHAS"
37361 msgstr ""
37362
37363 #. type: textblock
37364 #: ../src/guestfs.pod:783
37365 msgid ""
37366 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
37367 "system [...] that works in the way it is documented but is counterintuitive "
37368 "and almost invites mistakes.\""
37369 msgstr ""
37370
37371 #. type: textblock
37372 #: ../src/guestfs.pod:787
37373 msgid ""
37374 "Since we developed libguestfs and the associated tools, there are several "
37375 "things we would have designed differently, but are now stuck with for "
37376 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
37377 "release, you can expect these to change.  Beware of them."
37378 msgstr ""
37379
37380 #. type: =item
37381 #: ../src/guestfs.pod:795
37382 msgid "Autosync / forgetting to sync."
37383 msgstr ""
37384
37385 #. type: textblock
37386 #: ../src/guestfs.pod:797
37387 msgid ""
37388 "I<Update:> Autosync is enabled by default for all API users starting from "
37389 "libguestfs 1.5.24.  This section only applies to older versions."
37390 msgstr ""
37391
37392 #. type: textblock
37393 #: ../src/guestfs.pod:800
37394 msgid ""
37395 "When modifying a filesystem from C or another language, you B<must> unmount "
37396 "all filesystems and call L</guestfs_sync> explicitly before you close the "
37397 "libguestfs handle.  You can also call:"
37398 msgstr ""
37399
37400 #. type: verbatim
37401 #: ../src/guestfs.pod:804
37402 #, no-wrap
37403 msgid ""
37404 " guestfs_set_autosync (g, 1);\n"
37405 "\n"
37406 msgstr ""
37407
37408 #. type: textblock
37409 #: ../src/guestfs.pod:806
37410 msgid ""
37411 "to have the unmount/sync done automatically for you when the handle 'g' is "
37412 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37413 msgstr ""
37414
37415 #. type: textblock
37416 #: ../src/guestfs.pod:810
37417 msgid ""
37418 "If you forget to do this, then it is entirely possible that your changes "
37419 "won't be written out, or will be partially written, or (very rarely) that "
37420 "you'll get disk corruption."
37421 msgstr ""
37422
37423 #. type: textblock
37424 #: ../src/guestfs.pod:814
37425 msgid ""
37426 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
37427 "guestfish scripts that forget to sync will work just fine, which can make "
37428 "this very puzzling if you are trying to debug a problem."
37429 msgstr ""
37430
37431 #. type: =item
37432 #: ../src/guestfs.pod:818
37433 msgid "Mount option C<-o sync> should not be the default."
37434 msgstr ""
37435
37436 #. type: textblock
37437 #: ../src/guestfs.pod:820
37438 msgid ""
37439 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37440 "libguestfs 1.13.16.  This section only applies to older versions."
37441 msgstr ""
37442
37443 #. type: textblock
37444 #: ../src/guestfs.pod:823
37445 msgid ""
37446 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
37447 "However C<-o sync> does not add any reliability benefit, but does have a "
37448 "very large performance impact."
37449 msgstr ""
37450
37451 #. type: textblock
37452 #: ../src/guestfs.pod:827
37453 msgid ""
37454 "The work around is to use L</guestfs_mount_options> and set the mount "
37455 "options that you actually want to use."
37456 msgstr ""
37457
37458 #. type: =item
37459 #: ../src/guestfs.pod:830
37460 msgid "Read-only should be the default."
37461 msgstr ""
37462
37463 #. type: textblock
37464 #: ../src/guestfs.pod:832
37465 msgid ""
37466 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37467 "specify I<--rw> if you want to make changes to the image."
37468 msgstr ""
37469
37470 #. type: textblock
37471 #: ../src/guestfs.pod:835
37472 msgid "This would reduce the potential to corrupt live VM images."
37473 msgstr ""
37474
37475 #. type: textblock
37476 #: ../src/guestfs.pod:837
37477 msgid ""
37478 "Note that many filesystems change the disk when you just mount and unmount, "
37479 "even if you didn't perform any writes.  You need to use L</"
37480 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37481 msgstr ""
37482
37483 #. type: =item
37484 #: ../src/guestfs.pod:841
37485 msgid "guestfish command line is hard to use."
37486 msgstr ""
37487
37488 #. type: textblock
37489 #: ../src/guestfs.pod:843
37490 msgid ""
37491 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37492 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
37493 "exist, so it fails.  In earlier versions of guestfish the error message was "
37494 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
37495 "we should have used C<guestfish -c command> to run commands."
37496 msgstr ""
37497
37498 #. type: =item
37499 #: ../src/guestfs.pod:850
37500 msgid "guestfish megabyte modifiers don't work right on all commands"
37501 msgstr ""
37502
37503 #. type: textblock
37504 #: ../src/guestfs.pod:852
37505 msgid ""
37506 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37507 "other modifiers).  What guestfish actually does is to multiply the number "
37508 "part by the modifier part and pass the result to the C API.  However this "
37509 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37510 "expecting some other unit (eg. megabytes)."
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../src/guestfs.pod:859
37515 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
37516 msgstr ""
37517
37518 #. type: verbatim
37519 #: ../src/guestfs.pod:861
37520 #, no-wrap
37521 msgid ""
37522 " lvcreate LV VG 100M\n"
37523 "\n"
37524 msgstr ""
37525
37526 #. type: textblock
37527 #: ../src/guestfs.pod:863
37528 msgid ""
37529 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
37530 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37531 "megabytes * megabytes) logical volume.  The error message you get from this "
37532 "is also a little obscure."
37533 msgstr ""
37534
37535 #. type: textblock
37536 #: ../src/guestfs.pod:868
37537 msgid ""
37538 "This could be fixed in the generator by specially marking parameters and "
37539 "return values which take bytes or other units."
37540 msgstr ""
37541
37542 #. type: =item
37543 #: ../src/guestfs.pod:871
37544 msgid "Ambiguity between devices and paths"
37545 msgstr ""
37546
37547 #. type: textblock
37548 #: ../src/guestfs.pod:873
37549 msgid ""
37550 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37551 "sdb2>) and a similar pathname.  A file might just happen to be called "
37552 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37553 msgstr ""
37554
37555 #. type: textblock
37556 #: ../src/guestfs.pod:878
37557 msgid ""
37558 "In the current API we usually resolve this ambiguity by having two separate "
37559 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
37560 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37561 "detecting if the path supplied begins with C</dev/>."
37562 msgstr ""
37563
37564 #. type: textblock
37565 #: ../src/guestfs.pod:884
37566 msgid ""
37567 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37568 "make paths/devices into structured names.  One way to do this would be to "
37569 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37570 "aspect of grub.  Another way would be to use a structured type, equivalent "
37571 "to this OCaml type:"
37572 msgstr ""
37573
37574 #. type: verbatim
37575 #: ../src/guestfs.pod:890
37576 #, no-wrap
37577 msgid ""
37578 " type path = Path of string | Device of int | Partition of int * int\n"
37579 "\n"
37580 msgstr ""
37581
37582 #. type: textblock
37583 #: ../src/guestfs.pod:892
37584 msgid "which would allow you to pass arguments like:"
37585 msgstr ""
37586
37587 #. type: verbatim
37588 #: ../src/guestfs.pod:894
37589 #, no-wrap
37590 msgid ""
37591 " Path \"/foo/bar\"\n"
37592 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
37593 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37594 " Path \"/dev/sdb2\"    (* not a device *)\n"
37595 "\n"
37596 msgstr ""
37597
37598 #. type: textblock
37599 #: ../src/guestfs.pod:899
37600 msgid ""
37601 "As you can see there are still problems to resolve even with this "
37602 "representation.  Also consider how it might work in guestfish."
37603 msgstr ""
37604
37605 #. type: =head2
37606 #: ../src/guestfs.pod:904
37607 msgid "KEYS AND PASSPHRASES"
37608 msgstr ""
37609
37610 #. type: textblock
37611 #: ../src/guestfs.pod:906
37612 msgid ""
37613 "Certain libguestfs calls take a parameter that contains sensitive key "
37614 "material, passed in as a C string."
37615 msgstr ""
37616
37617 #. type: textblock
37618 #: ../src/guestfs.pod:909
37619 msgid ""
37620 "In the future we would hope to change the libguestfs implementation so that "
37621 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37622 "swap.  However this is I<not> done at the moment, because of the complexity "
37623 "of such an implementation."
37624 msgstr ""
37625
37626 #. type: textblock
37627 #: ../src/guestfs.pod:914
37628 msgid ""
37629 "Therefore you should be aware that any key parameter you pass to libguestfs "
37630 "might end up being written out to the swap partition.  If this is a concern, "
37631 "scrub the swap partition or don't use libguestfs on encrypted devices."
37632 msgstr ""
37633
37634 #. type: =head2
37635 #: ../src/guestfs.pod:919
37636 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37637 msgstr ""
37638
37639 #. type: textblock
37640 #: ../src/guestfs.pod:921
37641 msgid ""
37642 "All high-level libguestfs actions are synchronous.  If you want to use "
37643 "libguestfs asynchronously then you must create a thread."
37644 msgstr ""
37645
37646 #. type: textblock
37647 #: ../src/guestfs.pod:924
37648 msgid ""
37649 "Only use the handle from a single thread.  Either use the handle exclusively "
37650 "from one thread, or provide your own mutex so that two threads cannot issue "
37651 "calls on the same handle at the same time."
37652 msgstr ""
37653
37654 #. type: textblock
37655 #: ../src/guestfs.pod:928
37656 msgid ""
37657 "See the graphical program guestfs-browser for one possible architecture for "
37658 "multithreaded programs using libvirt and libguestfs."
37659 msgstr ""
37660
37661 #. type: =head2
37662 #: ../src/guestfs.pod:931
37663 msgid "PATH"
37664 msgstr ""
37665
37666 #. type: textblock
37667 #: ../src/guestfs.pod:933
37668 msgid ""
37669 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37670 "internal path."
37671 msgstr ""
37672
37673 #. type: textblock
37674 #: ../src/guestfs.pod:936
37675 msgid ""
37676 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37677 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37678 msgstr ""
37679
37680 #. type: textblock
37681 #: ../src/guestfs.pod:939
37682 msgid ""
37683 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37684 "to change the directories that libguestfs will search in.  The value is a "
37685 "colon-separated list of paths.  The current directory is I<not> searched "
37686 "unless the path contains an empty element or C<.>.  For example "
37687 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37688 "then C</usr/lib/guestfs>."
37689 msgstr ""
37690
37691 #. type: =head2
37692 #: ../src/guestfs.pod:946
37693 msgid "QEMU WRAPPERS"
37694 msgstr ""
37695
37696 #. type: textblock
37697 #: ../src/guestfs.pod:948
37698 msgid ""
37699 "If you want to compile your own qemu, run qemu from a non-standard location, "
37700 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37701 "around qemu."
37702 msgstr ""
37703
37704 #. type: textblock
37705 #: ../src/guestfs.pod:952
37706 msgid ""
37707 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37708 "last command in the shell script (so that qemu replaces the shell and "
37709 "becomes the direct child of the libguestfs-using program).  If you don't do "
37710 "this, then the qemu process won't be cleaned up correctly."
37711 msgstr ""
37712
37713 #. type: textblock
37714 #: ../src/guestfs.pod:957
37715 msgid ""
37716 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37717 "source:"
37718 msgstr ""
37719
37720 #. type: verbatim
37721 #: ../src/guestfs.pod:960
37722 #, no-wrap
37723 msgid ""
37724 " #!/bin/sh -\n"
37725 " qemudir=/home/rjones/d/qemu\n"
37726 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37727 "\n"
37728 msgstr ""
37729
37730 #. type: textblock
37731 #: ../src/guestfs.pod:964
37732 msgid ""
37733 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37734 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
37735 "example:"
37736 msgstr ""
37737
37738 #. type: verbatim
37739 #: ../src/guestfs.pod:968
37740 #, no-wrap
37741 msgid ""
37742 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37743 "\n"
37744 msgstr ""
37745
37746 #. type: textblock
37747 #: ../src/guestfs.pod:970
37748 msgid ""
37749 "Note that libguestfs also calls qemu with the -help and -version options in "
37750 "order to determine features."
37751 msgstr ""
37752
37753 #. type: textblock
37754 #: ../src/guestfs.pod:973
37755 msgid ""
37756 "Wrappers can also be used to edit the options passed to qemu.  In the "
37757 "following example, the C<-machine ...> option (C<-machine> and the following "
37758 "argument) are removed from the command line and replaced with C<-machine pc,"
37759 "accel=tcg>.  The while loop iterates over the options until it finds the "
37760 "right one to remove, putting the remaining options into the C<args> array."
37761 msgstr ""
37762
37763 #. type: verbatim
37764 #: ../src/guestfs.pod:982
37765 #, no-wrap
37766 msgid ""
37767 " i=0\n"
37768 " while [ $# -gt 0 ]; do\n"
37769 "     case \"$1\" in\n"
37770 "     -machine)\n"
37771 "         shift 2;;\n"
37772 "     *)\n"
37773 "         args[i]=\"$1\"\n"
37774 "         (( i++ ))\n"
37775 "         shift ;;\n"
37776 "     esac\n"
37777 " done\n"
37778 " \n"
37779 msgstr ""
37780
37781 #. type: verbatim
37782 #: ../src/guestfs.pod:994
37783 #, no-wrap
37784 msgid ""
37785 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37786 "\n"
37787 msgstr ""
37788
37789 #. type: =head2
37790 #: ../src/guestfs.pod:996
37791 msgid "ATTACHING TO RUNNING DAEMONS"
37792 msgstr ""
37793
37794 #. type: textblock
37795 #: ../src/guestfs.pod:998
37796 msgid ""
37797 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37798 "babies.  Use with caution."
37799 msgstr ""
37800
37801 #. type: textblock
37802 #: ../src/guestfs.pod:1001
37803 msgid ""
37804 "I<Note (2):> This section explains how to attach to a running daemon from a "
37805 "low level perspective.  For most users, simply using virt tools such as "
37806 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37807 msgstr ""
37808
37809 #. type: =head3
37810 #: ../src/guestfs.pod:1005
37811 msgid "Using guestfs_set_attach_method"
37812 msgstr ""
37813
37814 #. type: textblock
37815 #: ../src/guestfs.pod:1007
37816 msgid ""
37817 "By calling L</guestfs_set_attach_method> you can change how the library "
37818 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37819 "ARCHITECTURE> for some background)."
37820 msgstr ""
37821
37822 #. type: textblock
37823 #: ../src/guestfs.pod:1011
37824 msgid ""
37825 "The normal attach method is C<appliance>, where a small appliance is created "
37826 "containing the daemon, and then the library connects to this."
37827 msgstr ""
37828
37829 #. type: textblock
37830 #: ../src/guestfs.pod:1014
37831 msgid ""
37832 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37833 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37834 "daemon over the Unix domain socket."
37835 msgstr ""
37836
37837 #. type: textblock
37838 #: ../src/guestfs.pod:1018
37839 msgid ""
37840 "The normal use for this is to connect to a running virtual machine that "
37841 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37842 "files inside the live virtual machine."
37843 msgstr ""
37844
37845 #. type: =head3
37846 #: ../src/guestfs.pod:1022
37847 msgid "Using guestfs_add_domain with live flag"
37848 msgstr ""
37849
37850 #. type: textblock
37851 #: ../src/guestfs.pod:1024
37852 msgid ""
37853 "L</guestfs_add_domain> provides some help for getting the correct attach "
37854 "method.  If you pass the C<live> option to this function, then (if the "
37855 "virtual machine is running) it will examine the libvirt XML looking for a "
37856 "virtio-serial channel to connect to:"
37857 msgstr ""
37858
37859 #. type: verbatim
37860 #: ../src/guestfs.pod:1030
37861 #, no-wrap
37862 msgid ""
37863 " <domain>\n"
37864 "   ...\n"
37865 "   <devices>\n"
37866 "     ...\n"
37867 "     <channel type='unix'>\n"
37868 "       <source mode='bind' path='/path/to/socket'/>\n"
37869 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37870 "     </channel>\n"
37871 "     ...\n"
37872 "   </devices>\n"
37873 " </domain>\n"
37874 "\n"
37875 msgstr ""
37876
37877 #. type: textblock
37878 #: ../src/guestfs.pod:1042
37879 msgid ""
37880 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37881 "method to C<unix:/path/to/socket>."
37882 msgstr ""
37883
37884 #. type: textblock
37885 #: ../src/guestfs.pod:1045
37886 msgid ""
37887 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37888 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37889 "to attach to and modify live virtual machines."
37890 msgstr ""
37891
37892 #. type: textblock
37893 #: ../src/guestfs.pod:1049
37894 msgid ""
37895 "The virtual machine needs to have been set up beforehand so that it has the "
37896 "virtio-serial channel and so that guestfsd is running inside it."
37897 msgstr ""
37898
37899 #. type: =head2
37900 #: ../src/guestfs.pod:1053
37901 msgid "ABI GUARANTEE"
37902 msgstr ""
37903
37904 #. type: textblock
37905 #: ../src/guestfs.pod:1055
37906 msgid ""
37907 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37908 "actions as outlined in this section.  Although we will deprecate some "
37909 "actions, for example if they get replaced by newer calls, we will keep the "
37910 "old actions forever.  This allows you the developer to program in confidence "
37911 "against the libguestfs API."
37912 msgstr ""
37913
37914 #. type: =head2
37915 #: ../src/guestfs.pod:1061
37916 msgid "BLOCK DEVICE NAMING"
37917 msgstr ""
37918
37919 #. type: textblock
37920 #: ../src/guestfs.pod:1063
37921 msgid ""
37922 "In the kernel there is now quite a profusion of schemata for naming block "
37923 "devices (in this context, by I<block device> I mean a physical or virtual "
37924 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
37925 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
37926 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
37927 "for the old IDE driver (particularly for SATA devices) those devices also "
37928 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
37929 "paravirtualized drivers.  This has created several different naming systems, "
37930 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37931 msgstr ""
37932
37933 #. type: textblock
37934 #: ../src/guestfs.pod:1075
37935 msgid ""
37936 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37937 "Linux kernel to access block devices.  We can run a variety of appliances "
37938 "based on a variety of Linux kernels."
37939 msgstr ""
37940
37941 #. type: textblock
37942 #: ../src/guestfs.pod:1079
37943 msgid ""
37944 "This causes a problem for libguestfs because many API calls use device or "
37945 "partition names.  Working scripts and the recipe (example) scripts that we "
37946 "make available over the internet could fail if the naming scheme changes."
37947 msgstr ""
37948
37949 #. type: textblock
37950 #: ../src/guestfs.pod:1084
37951 msgid ""
37952 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
37953 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37954 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37955 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37956 msgstr ""
37957
37958 #. type: textblock
37959 #: ../src/guestfs.pod:1090
37960 msgid ""
37961 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
37962 "L</guestfs_list_partitions> and similar calls return the true names of the "
37963 "devices and partitions as known to the appliance."
37964 msgstr ""
37965
37966 #. type: =head3
37967 #: ../src/guestfs.pod:1095
37968 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37969 msgstr ""
37970
37971 #. type: textblock
37972 #: ../src/guestfs.pod:1097
37973 msgid ""
37974 "Usually this translation is transparent.  However in some (very rare)  cases "
37975 "you may need to know the exact algorithm.  Such cases include where you use "
37976 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37977 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37978 msgstr ""
37979
37980 #. type: textblock
37981 #: ../src/guestfs.pod:1103
37982 msgid ""
37983 "The algorithm is applied only to I<parameters> which are known to be either "
37984 "device or partition names.  Return values from functions such as L</"
37985 "guestfs_list_devices> are never changed."
37986 msgstr ""
37987
37988 #. type: textblock
37989 #: ../src/guestfs.pod:1111
37990 msgid "Is the string a parameter which is a device or partition name?"
37991 msgstr ""
37992
37993 #. type: textblock
37994 #: ../src/guestfs.pod:1115
37995 msgid "Does the string begin with C</dev/sd>?"
37996 msgstr ""
37997
37998 #. type: textblock
37999 #: ../src/guestfs.pod:1119
38000 msgid ""
38001 "Does the named device exist? If so, we use that device.  However if I<not> "
38002 "then we continue with this algorithm."
38003 msgstr ""
38004
38005 #. type: textblock
38006 #: ../src/guestfs.pod:1124
38007 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
38008 msgstr ""
38009
38010 #. type: textblock
38011 #: ../src/guestfs.pod:1126
38012 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
38013 msgstr ""
38014
38015 #. type: textblock
38016 #: ../src/guestfs.pod:1128
38017 msgid "If that named device exists, use it.  If not, continue."
38018 msgstr ""
38019
38020 #. type: textblock
38021 #: ../src/guestfs.pod:1132
38022 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
38023 msgstr ""
38024
38025 #. type: textblock
38026 #: ../src/guestfs.pod:1134
38027 msgid "If that named device exists, use it.  If not, return an error."
38028 msgstr ""
38029
38030 #. type: =head3
38031 #: ../src/guestfs.pod:1138
38032 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
38033 msgstr ""
38034
38035 #. type: textblock
38036 #: ../src/guestfs.pod:1140
38037 msgid ""
38038 "Although the standard naming scheme and automatic translation is useful for "
38039 "simple programs and guestfish scripts, for larger programs it is best not to "
38040 "rely on this mechanism."
38041 msgstr ""
38042
38043 #. type: textblock
38044 #: ../src/guestfs.pod:1144
38045 msgid ""
38046 "Where possible for maximum future portability programs using libguestfs "
38047 "should use these future-proof techniques:"
38048 msgstr ""
38049
38050 #. type: textblock
38051 #: ../src/guestfs.pod:1151
38052 msgid ""
38053 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
38054 "device names, and then use those names directly."
38055 msgstr ""
38056
38057 #. type: textblock
38058 #: ../src/guestfs.pod:1154
38059 msgid ""
38060 "Since those device names exist by definition, they will never be translated."
38061 msgstr ""
38062
38063 #. type: textblock
38064 #: ../src/guestfs.pod:1159
38065 msgid ""
38066 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
38067 "filesystem labels."
38068 msgstr ""
38069
38070 #. type: textblock
38071 #: ../src/guestfs.pod:1166
38072 msgid ""
38073 "This section discusses security implications of using libguestfs, "
38074 "particularly with untrusted or malicious guests or disk images."
38075 msgstr ""
38076
38077 #. type: =head2
38078 #: ../src/guestfs.pod:1169
38079 msgid "GENERAL SECURITY CONSIDERATIONS"
38080 msgstr ""
38081
38082 #. type: textblock
38083 #: ../src/guestfs.pod:1171
38084 msgid ""
38085 "Be careful with any files or data that you download from a guest (by "
38086 "\"download\" we mean not just the L</guestfs_download> command but any "
38087 "command that reads files, filenames, directories or anything else from a "
38088 "disk image).  An attacker could manipulate the data to fool your program "
38089 "into doing the wrong thing.  Consider cases such as:"
38090 msgstr ""
38091
38092 #. type: textblock
38093 #: ../src/guestfs.pod:1181
38094 msgid "the data (file etc) not being present"
38095 msgstr ""
38096
38097 #. type: textblock
38098 #: ../src/guestfs.pod:1185
38099 msgid "being present but empty"
38100 msgstr ""
38101
38102 #. type: textblock
38103 #: ../src/guestfs.pod:1189
38104 msgid "being much larger than normal"
38105 msgstr ""
38106
38107 #. type: textblock
38108 #: ../src/guestfs.pod:1193
38109 msgid "containing arbitrary 8 bit data"
38110 msgstr ""
38111
38112 #. type: textblock
38113 #: ../src/guestfs.pod:1197
38114 msgid "being in an unexpected character encoding"
38115 msgstr ""
38116
38117 #. type: textblock
38118 #: ../src/guestfs.pod:1201
38119 msgid "containing homoglyphs."
38120 msgstr ""
38121
38122 #. type: =head2
38123 #: ../src/guestfs.pod:1205
38124 msgid "SECURITY OF MOUNTING FILESYSTEMS"
38125 msgstr ""
38126
38127 #. type: textblock
38128 #: ../src/guestfs.pod:1207
38129 msgid ""
38130 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
38131 "(VFS) module can sometimes be escalated into exploits by deliberately "
38132 "creating a malicious, malformed filesystem.  These exploits are very severe "
38133 "for two reasons.  Firstly there are very many filesystem drivers in the "
38134 "kernel, and many of them are infrequently used and not much developer "
38135 "attention has been paid to the code.  Linux userspace helps potential "
38136 "crackers by detecting the filesystem type and automatically choosing the "
38137 "right VFS driver, even if that filesystem type is obscure or unexpected for "
38138 "the administrator.  Secondly, a kernel-level exploit is like a local root "
38139 "exploit (worse in some ways), giving immediate and total access to the "
38140 "system right down to the hardware level."
38141 msgstr ""
38142
38143 #. type: textblock
38144 #: ../src/guestfs.pod:1220
38145 msgid ""
38146 "That explains why you should never mount a filesystem from an untrusted "
38147 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
38148 "inside a qemu virtual machine, usually running as a non-root user.  The "
38149 "attacker would need to write a filesystem which first exploited the kernel, "
38150 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
38151 "the libguestfs protocol, and finally to be as serious as the host kernel "
38152 "exploit it would need to escalate its privileges to root.  This multi-step "
38153 "escalation, performed by a static piece of data, is thought to be extremely "
38154 "hard to do, although we never say 'never' about security issues."
38155 msgstr ""
38156
38157 #. type: textblock
38158 #: ../src/guestfs.pod:1231
38159 msgid ""
38160 "In any case callers can reduce the attack surface by forcing the filesystem "
38161 "type when mounting (use L</guestfs_mount_vfs>)."
38162 msgstr ""
38163
38164 #. type: =head2
38165 #: ../src/guestfs.pod:1234
38166 msgid "PROTOCOL SECURITY"
38167 msgstr ""
38168
38169 #. type: textblock
38170 #: ../src/guestfs.pod:1236
38171 msgid ""
38172 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
38173 "defined upper message size.  However a program that uses libguestfs must "
38174 "also take care - for example you can write a program that downloads a binary "
38175 "from a disk image and executes it locally, and no amount of protocol "
38176 "security will save you from the consequences."
38177 msgstr ""
38178
38179 #. type: =head2
38180 #: ../src/guestfs.pod:1242
38181 msgid "INSPECTION SECURITY"
38182 msgstr ""
38183
38184 #. type: textblock
38185 #: ../src/guestfs.pod:1244
38186 msgid ""
38187 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
38188 "directly from the guest, and these could contain any 8 bit data.  Callers "
38189 "should be careful to escape these before printing them to a structured file "
38190 "(for example, use HTML escaping if creating a web page)."
38191 msgstr ""
38192
38193 #. type: textblock
38194 #: ../src/guestfs.pod:1250
38195 msgid ""
38196 "Guest configuration may be altered in unusual ways by the administrator of "
38197 "the virtual machine, and may not reflect reality (particularly for untrusted "
38198 "or actively malicious guests).  For example we parse the hostname from "
38199 "configuration files like C</etc/sysconfig/network> that we find in the "
38200 "guest, but the guest administrator can easily manipulate these files to "
38201 "provide the wrong hostname."
38202 msgstr ""
38203
38204 #. type: textblock
38205 #: ../src/guestfs.pod:1258
38206 msgid ""
38207 "The inspection API parses guest configuration using two external libraries: "
38208 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
38209 "designed to be robust in the face of malicious data, although denial of "
38210 "service attacks are still possible, for example with oversized configuration "
38211 "files."
38212 msgstr ""
38213
38214 #. type: =head2
38215 #: ../src/guestfs.pod:1264
38216 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
38217 msgstr ""
38218
38219 #. type: textblock
38220 #: ../src/guestfs.pod:1266
38221 msgid ""
38222 "Be very cautious about running commands from the guest.  By running a "
38223 "command in the guest, you are giving CPU time to a binary that you do not "
38224 "control, under the same user account as the library, albeit wrapped in qemu "
38225 "virtualization.  More information and alternatives can be found in the "
38226 "section L</RUNNING COMMANDS>."
38227 msgstr ""
38228
38229 #. type: =head2
38230 #: ../src/guestfs.pod:1272
38231 msgid "CVE-2010-3851"
38232 msgstr ""
38233
38234 #. type: textblock
38235 #: ../src/guestfs.pod:1274
38236 msgid "https://bugzilla.redhat.com/642934"
38237 msgstr ""
38238
38239 #. type: textblock
38240 #: ../src/guestfs.pod:1276
38241 msgid ""
38242 "This security bug concerns the automatic disk format detection that qemu "
38243 "does on disk images."
38244 msgstr ""
38245
38246 #. type: textblock
38247 #: ../src/guestfs.pod:1279
38248 msgid ""
38249 "A raw disk image is just the raw bytes, there is no header.  Other disk "
38250 "images like qcow2 contain a special header.  Qemu deals with this by looking "
38251 "for one of the known headers, and if none is found then assuming the disk "
38252 "image must be raw."
38253 msgstr ""
38254
38255 #. type: textblock
38256 #: ../src/guestfs.pod:1284
38257 msgid ""
38258 "This allows a guest which has been given a raw disk image to write some "
38259 "other header.  At next boot (or when the disk image is accessed by "
38260 "libguestfs) qemu would do autodetection and think the disk image format was, "
38261 "say, qcow2 based on the header written by the guest."
38262 msgstr ""
38263
38264 #. type: textblock
38265 #: ../src/guestfs.pod:1289
38266 msgid ""
38267 "This in itself would not be a problem, but qcow2 offers many features, one "
38268 "of which is to allow a disk image to refer to another image (called the "
38269 "\"backing disk\").  It does this by placing the path to the backing disk "
38270 "into the qcow2 header.  This path is not validated and could point to any "
38271 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
38272 "\"holes\" in the qcow2 disk image, which of course is completely under the "
38273 "control of the attacker."
38274 msgstr ""
38275
38276 #. type: textblock
38277 #: ../src/guestfs.pod:1297
38278 msgid ""
38279 "In libguestfs this is rather hard to exploit except under two circumstances:"
38280 msgstr ""
38281
38282 #. type: textblock
38283 #: ../src/guestfs.pod:1304
38284 msgid "You have enabled the network or have opened the disk in write mode."
38285 msgstr ""
38286
38287 #. type: textblock
38288 #: ../src/guestfs.pod:1308
38289 msgid ""
38290 "You are also running untrusted code from the guest (see L</RUNNING "
38291 "COMMANDS>)."
38292 msgstr ""
38293
38294 #. type: textblock
38295 #: ../src/guestfs.pod:1313
38296 msgid ""
38297 "The way to avoid this is to specify the expected disk format when adding "
38298 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
38299 "should always do this if the disk is raw format, and it's a good idea for "
38300 "other cases too."
38301 msgstr ""
38302
38303 #. type: textblock
38304 #: ../src/guestfs.pod:1318
38305 msgid ""
38306 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
38307 "format is fetched from libvirt and passed through."
38308 msgstr ""
38309
38310 #. type: textblock
38311 #: ../src/guestfs.pod:1321
38312 msgid ""
38313 "For libguestfs tools, use the I<--format> command line parameter as "
38314 "appropriate."
38315 msgstr ""
38316
38317 #. type: =head1
38318 #: ../src/guestfs.pod:1324
38319 msgid "CONNECTION MANAGEMENT"
38320 msgstr ""
38321
38322 #. type: =head2
38323 #: ../src/guestfs.pod:1326
38324 msgid "guestfs_h *"
38325 msgstr ""
38326
38327 #. type: textblock
38328 #: ../src/guestfs.pod:1328
38329 msgid ""
38330 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
38331 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
38332 "handle and release all resources used."
38333 msgstr ""
38334
38335 #. type: textblock
38336 #: ../src/guestfs.pod:1332
38337 msgid ""
38338 "For information on using multiple handles and threads, see the section L</"
38339 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
38340 msgstr ""
38341
38342 #. type: =head2
38343 #: ../src/guestfs.pod:1335
38344 msgid "guestfs_create"
38345 msgstr ""
38346
38347 #. type: verbatim
38348 #: ../src/guestfs.pod:1337
38349 #, no-wrap
38350 msgid ""
38351 " guestfs_h *guestfs_create (void);\n"
38352 "\n"
38353 msgstr ""
38354
38355 #. type: textblock
38356 #: ../src/guestfs.pod:1339
38357 msgid "Create a connection handle."
38358 msgstr ""
38359
38360 #. type: textblock
38361 #: ../src/guestfs.pod:1341
38362 msgid ""
38363 "On success this returns a non-NULL pointer to a handle.  On error it returns "
38364 "NULL."
38365 msgstr ""
38366
38367 #. type: textblock
38368 #: ../src/guestfs.pod:1344
38369 msgid ""
38370 "You have to \"configure\" the handle after creating it.  This includes "
38371 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
38372 "handle at least once."
38373 msgstr ""
38374
38375 #. type: textblock
38376 #: ../src/guestfs.pod:1348
38377 msgid "After configuring the handle, you have to call L</guestfs_launch>."
38378 msgstr ""
38379
38380 #. type: textblock
38381 #: ../src/guestfs.pod:1350
38382 msgid ""
38383 "You may also want to configure error handling for the handle.  See the L</"
38384 "ERROR HANDLING> section below."
38385 msgstr ""
38386
38387 #. type: =head2
38388 #: ../src/guestfs.pod:1353
38389 msgid "guestfs_close"
38390 msgstr ""
38391
38392 #. type: verbatim
38393 #: ../src/guestfs.pod:1355
38394 #, no-wrap
38395 msgid ""
38396 " void guestfs_close (guestfs_h *g);\n"
38397 "\n"
38398 msgstr ""
38399
38400 #. type: textblock
38401 #: ../src/guestfs.pod:1357
38402 msgid "This closes the connection handle and frees up all resources used."
38403 msgstr ""
38404
38405 #. type: textblock
38406 #: ../src/guestfs.pod:1359
38407 msgid ""
38408 "If autosync was set on the handle and the handle was launched, then this "
38409 "implicitly calls various functions to unmount filesystems and sync the "
38410 "disk.  See L</guestfs_set_autosync> for more details."
38411 msgstr ""
38412
38413 #. type: textblock
38414 #: ../src/guestfs.pod:1363
38415 msgid "If a close callback was set on the handle, then it is called."
38416 msgstr ""
38417
38418 #. type: =head1
38419 #: ../src/guestfs.pod:1365
38420 msgid "ERROR HANDLING"
38421 msgstr ""
38422
38423 #. type: textblock
38424 #: ../src/guestfs.pod:1367
38425 msgid ""
38426 "API functions can return errors.  For example, almost all functions that "
38427 "return C<int> will return C<-1> to indicate an error."
38428 msgstr ""
38429
38430 #. type: textblock
38431 #: ../src/guestfs.pod:1370
38432 msgid ""
38433 "Additional information is available for errors: an error message string and "
38434 "optionally an error number (errno) if the thing that failed was a system "
38435 "call."
38436 msgstr ""
38437
38438 #. type: textblock
38439 #: ../src/guestfs.pod:1374
38440 msgid ""
38441 "You can get at the additional information about the last error on the handle "
38442 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38443 "up an error handler with L</guestfs_set_error_handler>."
38444 msgstr ""
38445
38446 #. type: textblock
38447 #: ../src/guestfs.pod:1379
38448 msgid ""
38449 "When the handle is created, a default error handler is installed which "
38450 "prints the error message string to C<stderr>.  For small short-running "
38451 "command line programs it is sufficient to do:"
38452 msgstr ""
38453
38454 #. type: verbatim
38455 #: ../src/guestfs.pod:1383
38456 #, no-wrap
38457 msgid ""
38458 " if (guestfs_launch (g) == -1)\n"
38459 "   exit (EXIT_FAILURE);\n"
38460 "\n"
38461 msgstr ""
38462
38463 #. type: textblock
38464 #: ../src/guestfs.pod:1386
38465 msgid ""
38466 "since the default error handler will ensure that an error message has been "
38467 "printed to C<stderr> before the program exits."
38468 msgstr ""
38469
38470 #. type: textblock
38471 #: ../src/guestfs.pod:1389
38472 msgid ""
38473 "For other programs the caller will almost certainly want to install an "
38474 "alternate error handler or do error handling in-line like this:"
38475 msgstr ""
38476
38477 #. type: verbatim
38478 #: ../src/guestfs.pod:1392
38479 #, no-wrap
38480 msgid ""
38481 " /* This disables the default behaviour of printing errors\n"
38482 "    on stderr. */\n"
38483 " guestfs_set_error_handler (g, NULL, NULL);\n"
38484 " \n"
38485 msgstr ""
38486
38487 #. type: verbatim
38488 #: ../src/guestfs.pod:1396
38489 #, no-wrap
38490 msgid ""
38491 " if (guestfs_launch (g) == -1) {\n"
38492 "   /* Examine the error message and print it etc. */\n"
38493 "   char *msg = guestfs_last_error (g);\n"
38494 "   int errnum = guestfs_last_errno (g);\n"
38495 "   fprintf (stderr, \"%s\", msg);\n"
38496 "   if (errnum != 0)\n"
38497 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
38498 "   fprintf (stderr, \"\\n\");\n"
38499 "   /* ... */\n"
38500 " }\n"
38501 "\n"
38502 msgstr ""
38503
38504 #. type: textblock
38505 #: ../src/guestfs.pod:1407
38506 msgid ""
38507 "Out of memory errors are handled differently.  The default action is to call "
38508 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
38509 "guestfs_set_out_of_memory_handler>."
38510 msgstr ""
38511
38512 #. type: textblock
38513 #: ../src/guestfs.pod:1411
38514 msgid ""
38515 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38516 "because there is no handle if this happens there is no way to get additional "
38517 "error information.  However L</guestfs_create> is supposed to be a "
38518 "lightweight operation which can only fail because of insufficient memory (it "
38519 "returns NULL in this case)."
38520 msgstr ""
38521
38522 #. type: =head2
38523 #: ../src/guestfs.pod:1417
38524 msgid "guestfs_last_error"
38525 msgstr ""
38526
38527 #. type: verbatim
38528 #: ../src/guestfs.pod:1419
38529 #, no-wrap
38530 msgid ""
38531 " const char *guestfs_last_error (guestfs_h *g);\n"
38532 "\n"
38533 msgstr ""
38534
38535 #. type: textblock
38536 #: ../src/guestfs.pod:1421
38537 msgid ""
38538 "This returns the last error message that happened on C<g>.  If there has not "
38539 "been an error since the handle was created, then this returns C<NULL>."
38540 msgstr ""
38541
38542 #. type: textblock
38543 #: ../src/guestfs.pod:1425
38544 msgid ""
38545 "The lifetime of the returned string is until the next error occurs, or L</"
38546 "guestfs_close> is called."
38547 msgstr ""
38548
38549 #. type: =head2
38550 #: ../src/guestfs.pod:1428
38551 msgid "guestfs_last_errno"
38552 msgstr ""
38553
38554 #. type: verbatim
38555 #: ../src/guestfs.pod:1430
38556 #, no-wrap
38557 msgid ""
38558 " int guestfs_last_errno (guestfs_h *g);\n"
38559 "\n"
38560 msgstr ""
38561
38562 #. type: textblock
38563 #: ../src/guestfs.pod:1432
38564 msgid "This returns the last error number (errno) that happened on C<g>."
38565 msgstr ""
38566
38567 #. type: textblock
38568 #: ../src/guestfs.pod:1434
38569 msgid "If successful, an errno integer not equal to zero is returned."
38570 msgstr ""
38571
38572 #. type: textblock
38573 #: ../src/guestfs.pod:1436
38574 msgid ""
38575 "If no error, this returns 0.  This call can return 0 in three situations:"
38576 msgstr ""
38577
38578 #. type: textblock
38579 #: ../src/guestfs.pod:1443
38580 msgid "There has not been any error on the handle."
38581 msgstr ""
38582
38583 #. type: textblock
38584 #: ../src/guestfs.pod:1447
38585 msgid ""
38586 "There has been an error but the errno was meaningless.  This corresponds to "
38587 "the case where the error did not come from a failed system call, but for "
38588 "some other reason."
38589 msgstr ""
38590
38591 #. type: textblock
38592 #: ../src/guestfs.pod:1453
38593 msgid ""
38594 "There was an error from a failed system call, but for some reason the errno "
38595 "was not captured and returned.  This usually indicates a bug in libguestfs."
38596 msgstr ""
38597
38598 #. type: textblock
38599 #: ../src/guestfs.pod:1459
38600 msgid ""
38601 "Libguestfs tries to convert the errno from inside the applicance into a "
38602 "corresponding errno for the caller (not entirely trivial: the appliance "
38603 "might be running a completely different operating system from the library "
38604 "and error numbers are not standardized across Un*xen).  If this could not be "
38605 "done, then the error is translated to C<EINVAL>.  In practice this should "
38606 "only happen in very rare circumstances."
38607 msgstr ""
38608
38609 #. type: =head2
38610 #: ../src/guestfs.pod:1467
38611 msgid "guestfs_set_error_handler"
38612 msgstr ""
38613
38614 #. type: verbatim
38615 #: ../src/guestfs.pod:1469
38616 #, no-wrap
38617 msgid ""
38618 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38619 "                                           void *opaque,\n"
38620 "                                           const char *msg);\n"
38621 " void guestfs_set_error_handler (guestfs_h *g,\n"
38622 "                                 guestfs_error_handler_cb cb,\n"
38623 "                                 void *opaque);\n"
38624 "\n"
38625 msgstr ""
38626
38627 #. type: textblock
38628 #: ../src/guestfs.pod:1476
38629 msgid ""
38630 "The callback C<cb> will be called if there is an error.  The parameters "
38631 "passed to the callback are an opaque data pointer and the error message "
38632 "string."
38633 msgstr ""
38634
38635 #. type: textblock
38636 #: ../src/guestfs.pod:1480
38637 msgid ""
38638 "C<errno> is not passed to the callback.  To get that the callback must call "
38639 "L</guestfs_last_errno>."
38640 msgstr ""
38641
38642 #. type: textblock
38643 #: ../src/guestfs.pod:1483
38644 msgid ""
38645 "Note that the message string C<msg> is freed as soon as the callback "
38646 "function returns, so if you want to stash it somewhere you must make your "
38647 "own copy."
38648 msgstr ""
38649
38650 #. type: textblock
38651 #: ../src/guestfs.pod:1487
38652 msgid "The default handler prints messages on C<stderr>."
38653 msgstr ""
38654
38655 #. type: textblock
38656 #: ../src/guestfs.pod:1489
38657 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38658 msgstr ""
38659
38660 #. type: =head2
38661 #: ../src/guestfs.pod:1491
38662 msgid "guestfs_get_error_handler"
38663 msgstr ""
38664
38665 #. type: verbatim
38666 #: ../src/guestfs.pod:1493
38667 #, no-wrap
38668 msgid ""
38669 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38670 "                                                     void **opaque_rtn);\n"
38671 "\n"
38672 msgstr ""
38673
38674 #. type: textblock
38675 #: ../src/guestfs.pod:1496
38676 msgid "Returns the current error handler callback."
38677 msgstr ""
38678
38679 #. type: =head2
38680 #: ../src/guestfs.pod:1498
38681 msgid "guestfs_set_out_of_memory_handler"
38682 msgstr ""
38683
38684 #. type: verbatim
38685 #: ../src/guestfs.pod:1500
38686 #, no-wrap
38687 msgid ""
38688 " typedef void (*guestfs_abort_cb) (void);\n"
38689 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38690 "                                         guestfs_abort_cb);\n"
38691 "\n"
38692 msgstr ""
38693
38694 #. type: textblock
38695 #: ../src/guestfs.pod:1504
38696 msgid ""
38697 "The callback C<cb> will be called if there is an out of memory situation.  "
38698 "I<Note this callback must not return>."
38699 msgstr ""
38700
38701 #. type: textblock
38702 #: ../src/guestfs.pod:1507
38703 msgid "The default is to call L<abort(3)>."
38704 msgstr ""
38705
38706 #. type: textblock
38707 #: ../src/guestfs.pod:1509
38708 msgid ""
38709 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
38710 msgstr ""
38711
38712 #. type: =head2
38713 #: ../src/guestfs.pod:1512
38714 msgid "guestfs_get_out_of_memory_handler"
38715 msgstr ""
38716
38717 #. type: verbatim
38718 #: ../src/guestfs.pod:1514
38719 #, no-wrap
38720 msgid ""
38721 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38722 "\n"
38723 msgstr ""
38724
38725 #. type: textblock
38726 #: ../src/guestfs.pod:1516
38727 msgid "This returns the current out of memory handler."
38728 msgstr ""
38729
38730 #. type: =head1
38731 #: ../src/guestfs.pod:1518
38732 msgid "API CALLS"
38733 msgstr ""
38734
38735 #. type: =head1
38736 #: ../src/guestfs.pod:1522
38737 msgid "STRUCTURES"
38738 msgstr ""
38739
38740 #. type: textblock
38741 #: ../src/guestfs.pod:1524
38742 msgid "@STRUCTS@"
38743 msgstr ""
38744
38745 #. type: =head1
38746 #: ../src/guestfs.pod:1526
38747 msgid "AVAILABILITY"
38748 msgstr ""
38749
38750 #. type: =head2
38751 #: ../src/guestfs.pod:1528
38752 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38753 msgstr ""
38754
38755 #. type: textblock
38756 #: ../src/guestfs.pod:1530
38757 msgid ""
38758 "Using L</guestfs_available> you can test availability of the following "
38759 "groups of functions.  This test queries the appliance to see if the "
38760 "appliance you are currently using supports the functionality."
38761 msgstr ""
38762
38763 #. type: textblock
38764 #: ../src/guestfs.pod:1535
38765 msgid "@AVAILABILITY@"
38766 msgstr ""
38767
38768 #. type: =head2
38769 #: ../src/guestfs.pod:1537
38770 msgid "GUESTFISH supported COMMAND"
38771 msgstr ""
38772
38773 #. type: textblock
38774 #: ../src/guestfs.pod:1539
38775 msgid ""
38776 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38777 "prints out the available groups and whether they are supported by this build "
38778 "of libguestfs.  Note however that you have to do C<run> first."
38779 msgstr ""
38780
38781 #. type: =head2
38782 #: ../src/guestfs.pod:1544
38783 msgid "SINGLE CALLS AT COMPILE TIME"
38784 msgstr ""
38785
38786 #. type: textblock
38787 #: ../src/guestfs.pod:1546
38788 msgid ""
38789 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38790 "function, such as:"
38791 msgstr ""
38792
38793 #. type: verbatim
38794 #: ../src/guestfs.pod:1549
38795 #, no-wrap
38796 msgid ""
38797 " #define LIBGUESTFS_HAVE_DD 1\n"
38798 "\n"
38799 msgstr ""
38800
38801 #. type: textblock
38802 #: ../src/guestfs.pod:1551
38803 msgid "if L</guestfs_dd> is available."
38804 msgstr ""
38805
38806 #. type: textblock
38807 #: ../src/guestfs.pod:1553
38808 msgid ""
38809 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38810 "function is available at compile time, we recommended using build tools such "
38811 "as autoconf or cmake.  For example in autotools you could use:"
38812 msgstr ""
38813
38814 #. type: verbatim
38815 #: ../src/guestfs.pod:1558
38816 #, no-wrap
38817 msgid ""
38818 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38819 " AC_CHECK_FUNCS([guestfs_dd])\n"
38820 "\n"
38821 msgstr ""
38822
38823 #. type: textblock
38824 #: ../src/guestfs.pod:1561
38825 msgid ""
38826 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38827 "in your program."
38828 msgstr ""
38829
38830 #. type: =head2
38831 #: ../src/guestfs.pod:1564
38832 msgid "SINGLE CALLS AT RUN TIME"
38833 msgstr ""
38834
38835 #. type: textblock
38836 #: ../src/guestfs.pod:1566
38837 msgid ""
38838 "Testing at compile time doesn't guarantee that a function really exists in "
38839 "the library.  The reason is that you might be dynamically linked against a "
38840 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
38841 "This situation unfortunately results in a segmentation fault, which is a "
38842 "shortcoming of the C dynamic linking system itself."
38843 msgstr ""
38844
38845 #. type: textblock
38846 #: ../src/guestfs.pod:1573
38847 msgid ""
38848 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38849 "in this example program (note that you still need the compile time check as "
38850 "well):"
38851 msgstr ""
38852
38853 #. type: verbatim
38854 #: ../src/guestfs.pod:1577
38855 #, no-wrap
38856 msgid ""
38857 " #include <stdio.h>\n"
38858 " #include <stdlib.h>\n"
38859 " #include <unistd.h>\n"
38860 " #include <dlfcn.h>\n"
38861 " #include <guestfs.h>\n"
38862 " \n"
38863 msgstr ""
38864
38865 #. type: verbatim
38866 #: ../src/guestfs.pod:1583
38867 #, no-wrap
38868 msgid ""
38869 " main ()\n"
38870 " {\n"
38871 " #ifdef LIBGUESTFS_HAVE_DD\n"
38872 "   void *dl;\n"
38873 "   int has_function;\n"
38874 " \n"
38875 msgstr ""
38876
38877 #. type: verbatim
38878 #: ../src/guestfs.pod:1589
38879 #, no-wrap
38880 msgid ""
38881 "   /* Test if the function guestfs_dd is really available. */\n"
38882 "   dl = dlopen (NULL, RTLD_LAZY);\n"
38883 "   if (!dl) {\n"
38884 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38885 "     exit (EXIT_FAILURE);\n"
38886 "   }\n"
38887 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38888 "   dlclose (dl);\n"
38889 " \n"
38890 msgstr ""
38891
38892 #. type: verbatim
38893 #: ../src/guestfs.pod:1598
38894 #, no-wrap
38895 msgid ""
38896 "   if (!has_function)\n"
38897 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38898 "   else {\n"
38899 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38900 "     /* Now it's safe to call\n"
38901 "     guestfs_dd (g, \"foo\", \"bar\");\n"
38902 "     */\n"
38903 "   }\n"
38904 " #else\n"
38905 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38906 " #endif\n"
38907 "  }\n"
38908 "\n"
38909 msgstr ""
38910
38911 #. type: textblock
38912 #: ../src/guestfs.pod:1611
38913 msgid ""
38914 "You may think the above is an awful lot of hassle, and it is.  There are "
38915 "other ways outside of the C linking system to ensure that this kind of "
38916 "incompatibility never arises, such as using package versioning:"
38917 msgstr ""
38918
38919 #. type: verbatim
38920 #: ../src/guestfs.pod:1616
38921 #, no-wrap
38922 msgid ""
38923 " Requires: libguestfs >= 1.0.80\n"
38924 "\n"
38925 msgstr ""
38926
38927 #. type: =head1
38928 #: ../src/guestfs.pod:1618
38929 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38930 msgstr ""
38931
38932 #. type: textblock
38933 #: ../src/guestfs.pod:1620
38934 msgid ""
38935 "A recent feature of the API is the introduction of calls which take optional "
38936 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
38937 "takes variable arguments (ie. C<...>), as in this example:"
38938 msgstr ""
38939
38940 #. type: verbatim
38941 #: ../src/guestfs.pod:1625
38942 #, no-wrap
38943 msgid ""
38944 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38945 "\n"
38946 msgstr ""
38947
38948 #. type: textblock
38949 #: ../src/guestfs.pod:1627
38950 msgid ""
38951 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
38952 "call with no optional arguments specified:"
38953 msgstr ""
38954
38955 #. type: verbatim
38956 #: ../src/guestfs.pod:1630
38957 #, no-wrap
38958 msgid ""
38959 " guestfs_add_drive_opts (g, filename, -1);\n"
38960 "\n"
38961 msgstr ""
38962
38963 #. type: textblock
38964 #: ../src/guestfs.pod:1632
38965 msgid "With a single optional argument:"
38966 msgstr ""
38967
38968 #. type: verbatim
38969 #: ../src/guestfs.pod:1634
38970 #, no-wrap
38971 msgid ""
38972 " guestfs_add_drive_opts (g, filename,\n"
38973 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38974 "                         -1);\n"
38975 "\n"
38976 msgstr ""
38977
38978 #. type: textblock
38979 #: ../src/guestfs.pod:1638
38980 msgid "With two:"
38981 msgstr ""
38982
38983 #. type: verbatim
38984 #: ../src/guestfs.pod:1640
38985 #, no-wrap
38986 msgid ""
38987 " guestfs_add_drive_opts (g, filename,\n"
38988 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38989 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38990 "                         -1);\n"
38991 "\n"
38992 msgstr ""
38993
38994 #. type: textblock
38995 #: ../src/guestfs.pod:1645
38996 msgid ""
38997 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
38998 "happen!"
38999 msgstr ""
39000
39001 #. type: =head2
39002 #: ../src/guestfs.pod:1648
39003 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
39004 msgstr ""
39005
39006 #. type: textblock
39007 #: ../src/guestfs.pod:1650
39008 msgid ""
39009 "The second variant has the same name with the suffix C<_va>, which works the "
39010 "same way but takes a C<va_list>.  See the C manual for details.  For the "
39011 "example function, this is declared:"
39012 msgstr ""
39013
39014 #. type: verbatim
39015 #: ../src/guestfs.pod:1654
39016 #, no-wrap
39017 msgid ""
39018 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
39019 "                                va_list args);\n"
39020 "\n"
39021 msgstr ""
39022
39023 #. type: =head2
39024 #: ../src/guestfs.pod:1657
39025 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
39026 msgstr ""
39027
39028 #. type: textblock
39029 #: ../src/guestfs.pod:1659
39030 msgid ""
39031 "The third variant is useful where you need to construct these calls.  You "
39032 "pass in a structure where you fill in the optional fields.  The structure "
39033 "has a bitmask as the first element which you must set to indicate which "
39034 "fields you have filled in.  For our example function the structure and call "
39035 "are declared:"
39036 msgstr ""
39037
39038 #. type: verbatim
39039 #: ../src/guestfs.pod:1665
39040 #, no-wrap
39041 msgid ""
39042 " struct guestfs_add_drive_opts_argv {\n"
39043 "   uint64_t bitmask;\n"
39044 "   int readonly;\n"
39045 "   const char *format;\n"
39046 "   /* ... */\n"
39047 " };\n"
39048 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
39049 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
39050 "\n"
39051 msgstr ""
39052
39053 #. type: textblock
39054 #: ../src/guestfs.pod:1674
39055 msgid "You could call it like this:"
39056 msgstr ""
39057
39058 #. type: verbatim
39059 #: ../src/guestfs.pod:1676
39060 #, no-wrap
39061 msgid ""
39062 " struct guestfs_add_drive_opts_argv optargs = {\n"
39063 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
39064 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
39065 "   .readonly = 1,\n"
39066 "   .format = \"qcow2\"\n"
39067 " };\n"
39068 " \n"
39069 msgstr ""
39070
39071 #. type: verbatim
39072 #: ../src/guestfs.pod:1683
39073 #, no-wrap
39074 msgid ""
39075 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
39076 "\n"
39077 msgstr ""
39078
39079 #. type: textblock
39080 #: ../src/guestfs.pod:1691
39081 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
39082 msgstr ""
39083
39084 #. type: textblock
39085 #: ../src/guestfs.pod:1696
39086 msgid "You do not need to fill in all fields of the structure."
39087 msgstr ""
39088
39089 #. type: textblock
39090 #: ../src/guestfs.pod:1700
39091 msgid ""
39092 "There must be a one-to-one correspondence between fields of the structure "
39093 "that are filled in, and bits set in the bitmask."
39094 msgstr ""
39095
39096 #. type: =head2
39097 #: ../src/guestfs.pod:1705
39098 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
39099 msgstr ""
39100
39101 #. type: textblock
39102 #: ../src/guestfs.pod:1707
39103 msgid ""
39104 "In other languages, optional arguments are expressed in the way that is "
39105 "natural for that language.  We refer you to the language-specific "
39106 "documentation for more details on that."
39107 msgstr ""
39108
39109 #. type: textblock
39110 #: ../src/guestfs.pod:1711
39111 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
39112 msgstr ""
39113
39114 #. type: =head2
39115 #: ../src/guestfs.pod:1713
39116 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
39117 msgstr ""
39118
39119 #. type: textblock
39120 #: ../src/guestfs.pod:1715
39121 msgid ""
39122 "B<Note:> This section documents the generic event mechanism introduced in "
39123 "libguestfs 1.10, which you should use in new code if possible.  The old "
39124 "functions C<guestfs_set_log_message_callback>, "
39125 "C<guestfs_set_subprocess_quit_callback>, "
39126 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
39127 "C<guestfs_set_progress_callback> are no longer documented in this manual "
39128 "page.  Because of the ABI guarantee, the old functions continue to work."
39129 msgstr ""
39130
39131 #. type: textblock
39132 #: ../src/guestfs.pod:1724
39133 msgid ""
39134 "Handles generate events when certain things happen, such as log messages "
39135 "being generated, progress messages during long-running operations, or the "
39136 "handle being closed.  The API calls described below let you register a "
39137 "callback to be called when events happen.  You can register multiple "
39138 "callbacks (for the same, different or overlapping sets of events), and "
39139 "individually remove callbacks.  If callbacks are not removed, then they "
39140 "remain in force until the handle is closed."
39141 msgstr ""
39142
39143 #. type: textblock
39144 #: ../src/guestfs.pod:1732
39145 msgid ""
39146 "In the current implementation, events are only generated synchronously: that "
39147 "means that events (and hence callbacks) can only happen while you are in the "
39148 "middle of making another libguestfs call.  The callback is called in the "
39149 "same thread."
39150 msgstr ""
39151
39152 #. type: textblock
39153 #: ../src/guestfs.pod:1737
39154 msgid ""
39155 "Events may contain a payload, usually nothing (void), an array of 64 bit "
39156 "unsigned integers, or a message buffer.  Payloads are discussed later on."
39157 msgstr ""
39158
39159 #. type: =head3
39160 #: ../src/guestfs.pod:1741
39161 msgid "CLASSES OF EVENTS"
39162 msgstr ""
39163
39164 #. type: =item
39165 #: ../src/guestfs.pod:1745
39166 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
39167 msgstr ""
39168
39169 #. type: textblock
39170 #: ../src/guestfs.pod:1748
39171 msgid ""
39172 "The callback function will be called while the handle is being closed "
39173 "(synchronously from L</guestfs_close>)."
39174 msgstr ""
39175
39176 #. type: textblock
39177 #: ../src/guestfs.pod:1751
39178 msgid ""
39179 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
39180 "handles that are open when the program exits.  This means that this callback "
39181 "might be called indirectly from L<exit(3)>, which can cause unexpected "
39182 "problems in higher-level languages (eg. if your HLL interpreter has already "
39183 "been cleaned up by the time this is called, and if your callback then jumps "
39184 "into some HLL function)."
39185 msgstr ""
39186
39187 #. type: textblock
39188 #: ../src/guestfs.pod:1758
39189 msgid ""
39190 "If no callback is registered: the handle is closed without any callback "
39191 "being invoked."
39192 msgstr ""
39193
39194 #. type: =item
39195 #: ../src/guestfs.pod:1761
39196 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
39197 msgstr ""
39198
39199 #. type: textblock
39200 #: ../src/guestfs.pod:1764
39201 msgid ""
39202 "The callback function will be called when the child process quits, either "
39203 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
39204 "corresponds to a transition from any state to the CONFIG state)."
39205 msgstr ""
39206
39207 #. type: textblock
39208 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
39209 msgid "If no callback is registered: the event is ignored."
39210 msgstr ""
39211
39212 #. type: =item
39213 #: ../src/guestfs.pod:1770
39214 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
39215 msgstr ""
39216
39217 #. type: textblock
39218 #: ../src/guestfs.pod:1773
39219 msgid ""
39220 "The callback function will be called when the child process becomes ready "
39221 "first time after it has been launched.  (This corresponds to a transition "
39222 "from LAUNCHING to the READY state)."
39223 msgstr ""
39224
39225 #. type: =item
39226 #: ../src/guestfs.pod:1779
39227 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
39228 msgstr ""
39229
39230 #. type: textblock
39231 #: ../src/guestfs.pod:1782
39232 msgid ""
39233 "Some long-running operations can generate progress messages.  If this "
39234 "callback is registered, then it will be called each time a progress message "
39235 "is generated (usually two seconds after the operation started, and three "
39236 "times per second thereafter until it completes, although the frequency may "
39237 "change in future versions)."
39238 msgstr ""
39239
39240 #. type: textblock
39241 #: ../src/guestfs.pod:1788
39242 msgid ""
39243 "The callback receives in the payload four unsigned 64 bit numbers which are "
39244 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
39245 msgstr ""
39246
39247 #. type: textblock
39248 #: ../src/guestfs.pod:1791
39249 msgid ""
39250 "The units of C<total> are not defined, although for some operations C<total> "
39251 "may relate in some way to the amount of data to be transferred (eg. in bytes "
39252 "or megabytes), and C<position> may be the portion which has been transferred."
39253 msgstr ""
39254
39255 #. type: textblock
39256 #: ../src/guestfs.pod:1796
39257 msgid "The only defined and stable parts of the API are:"
39258 msgstr ""
39259
39260 #. type: textblock
39261 #: ../src/guestfs.pod:1802
39262 msgid ""
39263 "The callback can display to the user some type of progress bar or indicator "
39264 "which shows the ratio of C<position>:C<total>."
39265 msgstr ""
39266
39267 #. type: textblock
39268 #: ../src/guestfs.pod:1807
39269 msgid "0 E<lt>= C<position> E<lt>= C<total>"
39270 msgstr ""
39271
39272 #. type: textblock
39273 #: ../src/guestfs.pod:1811
39274 msgid ""
39275 "If any progress notification is sent during a call, then a final progress "
39276 "notification is always sent when C<position> = C<total> (I<unless> the call "
39277 "fails with an error)."
39278 msgstr ""
39279
39280 #. type: textblock
39281 #: ../src/guestfs.pod:1815
39282 msgid ""
39283 "This is to simplify caller code, so callers can easily set the progress "
39284 "indicator to \"100%\" at the end of the operation, without requiring special "
39285 "code to detect this case."
39286 msgstr ""
39287
39288 #. type: textblock
39289 #: ../src/guestfs.pod:1821
39290 msgid ""
39291 "For some calls we are unable to estimate the progress of the call, but we "
39292 "can still generate progress messages to indicate activity.  This is known as "
39293 "\"pulse mode\", and is directly supported by certain progress bar "
39294 "implementations (eg. GtkProgressBar)."
39295 msgstr ""
39296
39297 #. type: textblock
39298 #: ../src/guestfs.pod:1826
39299 msgid ""
39300 "For these calls, zero or more progress messages are generated with "
39301 "C<position = 0> and C<total = 1>, followed by a final message with "
39302 "C<position = total = 1>."
39303 msgstr ""
39304
39305 #. type: textblock
39306 #: ../src/guestfs.pod:1830
39307 msgid ""
39308 "As noted above, if the call fails with an error then the final message may "
39309 "not be generated."
39310 msgstr ""
39311
39312 #. type: textblock
39313 #: ../src/guestfs.pod:1835
39314 msgid ""
39315 "The callback also receives the procedure number (C<proc_nr>) and serial "
39316 "number (C<serial>) of the call.  These are only useful for debugging "
39317 "protocol issues, and the callback can normally ignore them.  The callback "
39318 "may want to print these numbers in error messages or debugging messages."
39319 msgstr ""
39320
39321 #. type: textblock
39322 #: ../src/guestfs.pod:1841
39323 msgid "If no callback is registered: progress messages are discarded."
39324 msgstr ""
39325
39326 #. type: =item
39327 #: ../src/guestfs.pod:1843
39328 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39329 msgstr ""
39330
39331 #. type: textblock
39332 #: ../src/guestfs.pod:1846
39333 msgid ""
39334 "The callback function is called whenever a log message is generated by qemu, "
39335 "the appliance kernel, guestfsd (daemon), or utility programs."
39336 msgstr ""
39337
39338 #. type: textblock
39339 #: ../src/guestfs.pod:1849
39340 msgid ""
39341 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39342 "guestfs_launch>) then additional debug messages are generated."
39343 msgstr ""
39344
39345 #. type: textblock
39346 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39347 msgid ""
39348 "If no callback is registered: the messages are discarded unless the verbose "
39349 "flag is set in which case they are sent to stderr.  You can override the "
39350 "printing of verbose messages to stderr by setting up a callback."
39351 msgstr ""
39352
39353 #. type: =item
39354 #: ../src/guestfs.pod:1857
39355 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39356 msgstr ""
39357
39358 #. type: textblock
39359 #: ../src/guestfs.pod:1860
39360 msgid ""
39361 "The callback function is called whenever a log message is generated by the "
39362 "library part of libguestfs."
39363 msgstr ""
39364
39365 #. type: textblock
39366 #: ../src/guestfs.pod:1863
39367 msgid ""
39368 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39369 "messages are generated."
39370 msgstr ""
39371
39372 #. type: =item
39373 #: ../src/guestfs.pod:1871
39374 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39375 msgstr ""
39376
39377 #. type: textblock
39378 #: ../src/guestfs.pod:1874
39379 msgid ""
39380 "The callback function is called whenever a trace message is generated.  This "
39381 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39382 msgstr ""
39383
39384 #. type: textblock
39385 #: ../src/guestfs.pod:1877
39386 msgid ""
39387 "If no callback is registered: the messages are sent to stderr.  You can "
39388 "override the printing of trace messages to stderr by setting up a callback."
39389 msgstr ""
39390
39391 #. type: =item
39392 #: ../src/guestfs.pod:1881
39393 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39394 msgstr ""
39395
39396 #. type: textblock
39397 #: ../src/guestfs.pod:1884
39398 msgid ""
39399 "The callback function is called whenever a libguestfs function is entered."
39400 msgstr ""
39401
39402 #. type: textblock
39403 #: ../src/guestfs.pod:1887
39404 msgid ""
39405 "The payload is a string which contains the name of the function that we are "
39406 "entering (not including C<guestfs_> prefix)."
39407 msgstr ""
39408
39409 #. type: textblock
39410 #: ../src/guestfs.pod:1890
39411 msgid ""
39412 "Note that libguestfs functions can call themselves, so you may see many "
39413 "events from a single call.  A few libguestfs functions do not generate this "
39414 "event."
39415 msgstr ""
39416
39417 #. type: =head3
39418 #: ../src/guestfs.pod:1898
39419 msgid "guestfs_set_event_callback"
39420 msgstr ""
39421
39422 #. type: verbatim
39423 #: ../src/guestfs.pod:1900
39424 #, no-wrap
39425 msgid ""
39426 " int guestfs_set_event_callback (guestfs_h *g,\n"
39427 "                                 guestfs_event_callback cb,\n"
39428 "                                 uint64_t event_bitmask,\n"
39429 "                                 int flags,\n"
39430 "                                 void *opaque);\n"
39431 "\n"
39432 msgstr ""
39433
39434 #. type: textblock
39435 #: ../src/guestfs.pod:1906
39436 msgid ""
39437 "This function registers a callback (C<cb>) for all event classes in the "
39438 "C<event_bitmask>."
39439 msgstr ""
39440
39441 #. type: textblock
39442 #: ../src/guestfs.pod:1909
39443 msgid ""
39444 "For example, to register for all log message events, you could call this "
39445 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
39446 "To register a single callback for all possible classes of events, use "
39447 "C<GUESTFS_EVENT_ALL>."
39448 msgstr ""
39449
39450 #. type: textblock
39451 #: ../src/guestfs.pod:1915
39452 msgid "C<flags> should always be passed as 0."
39453 msgstr ""
39454
39455 #. type: textblock
39456 #: ../src/guestfs.pod:1917
39457 msgid ""
39458 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
39459 "it for any purpose."
39460 msgstr ""
39461
39462 #. type: textblock
39463 #: ../src/guestfs.pod:1920
39464 msgid ""
39465 "The return value is the event handle (an integer) which you can use to "
39466 "delete the callback (see below)."
39467 msgstr ""
39468
39469 #. type: textblock
39470 #: ../src/guestfs.pod:1923
39471 msgid ""
39472 "If there is an error, this function returns C<-1>, and sets the error in the "
39473 "handle in the usual way (see L</guestfs_last_error> etc.)"
39474 msgstr ""
39475
39476 #. type: textblock
39477 #: ../src/guestfs.pod:1926
39478 msgid ""
39479 "Callbacks remain in effect until they are deleted, or until the handle is "
39480 "closed."
39481 msgstr ""
39482
39483 #. type: textblock
39484 #: ../src/guestfs.pod:1929
39485 msgid ""
39486 "In the case where multiple callbacks are registered for a particular event "
39487 "class, all of the callbacks are called.  The order in which multiple "
39488 "callbacks are called is not defined."
39489 msgstr ""
39490
39491 #. type: =head3
39492 #: ../src/guestfs.pod:1933
39493 msgid "guestfs_delete_event_callback"
39494 msgstr ""
39495
39496 #. type: verbatim
39497 #: ../src/guestfs.pod:1935
39498 #, no-wrap
39499 msgid ""
39500 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39501 "\n"
39502 msgstr ""
39503
39504 #. type: textblock
39505 #: ../src/guestfs.pod:1937
39506 msgid ""
39507 "Delete a callback that was previously registered.  C<event_handle> should be "
39508 "the integer that was returned by a previous call to "
39509 "C<guestfs_set_event_callback> on the same handle."
39510 msgstr ""
39511
39512 #. type: =head3
39513 #: ../src/guestfs.pod:1941
39514 msgid "guestfs_event_callback"
39515 msgstr ""
39516
39517 #. type: verbatim
39518 #: ../src/guestfs.pod:1943
39519 #, no-wrap
39520 msgid ""
39521 " typedef void (*guestfs_event_callback) (\n"
39522 "                  guestfs_h *g,\n"
39523 "                  void *opaque,\n"
39524 "                  uint64_t event,\n"
39525 "                  int event_handle,\n"
39526 "                  int flags,\n"
39527 "                  const char *buf, size_t buf_len,\n"
39528 "                  const uint64_t *array, size_t array_len);\n"
39529 "\n"
39530 msgstr ""
39531
39532 #. type: textblock
39533 #: ../src/guestfs.pod:1952
39534 msgid ""
39535 "This is the type of the event callback function that you have to provide."
39536 msgstr ""
39537
39538 #. type: textblock
39539 #: ../src/guestfs.pod:1955
39540 msgid ""
39541 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39542 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39543 "handle, and C<flags> which in the current API you should ignore."
39544 msgstr ""
39545
39546 #. type: textblock
39547 #: ../src/guestfs.pod:1959
39548 msgid ""
39549 "The remaining parameters contain the event payload (if any).  Each event may "
39550 "contain a payload, which usually relates to the event class, but for future "
39551 "proofing your code should be written to handle any payload for any event "
39552 "class."
39553 msgstr ""
39554
39555 #. type: textblock
39556 #: ../src/guestfs.pod:1964
39557 msgid ""
39558 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39559 "there is no message buffer).  Note that this message buffer can contain "
39560 "arbitrary 8 bit data, including NUL bytes."
39561 msgstr ""
39562
39563 #. type: textblock
39564 #: ../src/guestfs.pod:1968
39565 msgid ""
39566 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
39567 "moment this is only used for progress messages."
39568 msgstr ""
39569
39570 #. type: =head3
39571 #: ../src/guestfs.pod:1971
39572 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39573 msgstr ""
39574
39575 #. type: textblock
39576 #: ../src/guestfs.pod:1973
39577 msgid ""
39578 "One motivation for the generic event API was to allow GUI programs to "
39579 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
39580 "unconditionally to C<stderr>."
39581 msgstr ""
39582
39583 #. type: textblock
39584 #: ../src/guestfs.pod:1977
39585 msgid ""
39586 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39587 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
39588 "messages are not events; you must capture error messages separately)."
39589 msgstr ""
39590
39591 #. type: textblock
39592 #: ../src/guestfs.pod:1982
39593 msgid ""
39594 "Programs have to set up a callback to capture the classes of events of "
39595 "interest:"
39596 msgstr ""
39597
39598 #. type: verbatim
39599 #: ../src/guestfs.pod:1985
39600 #, no-wrap
39601 msgid ""
39602 " int eh =\n"
39603 "   guestfs_set_event_callback\n"
39604 "     (g, message_callback,\n"
39605 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39606 "      GUESTFS_EVENT_TRACE,\n"
39607 "      0, NULL) == -1)\n"
39608 " if (eh == -1) {\n"
39609 "   // handle error in the usual way\n"
39610 " }\n"
39611 "\n"
39612 msgstr ""
39613
39614 #. type: textblock
39615 #: ../src/guestfs.pod:1995
39616 msgid ""
39617 "The callback can then direct messages to the appropriate place.  In this "
39618 "example, messages are directed to syslog:"
39619 msgstr ""
39620
39621 #. type: verbatim
39622 #: ../src/guestfs.pod:1998
39623 #, no-wrap
39624 msgid ""
39625 " static void\n"
39626 " message_callback (\n"
39627 "         guestfs_h *g,\n"
39628 "         void *opaque,\n"
39629 "         uint64_t event,\n"
39630 "         int event_handle,\n"
39631 "         int flags,\n"
39632 "         const char *buf, size_t buf_len,\n"
39633 "         const uint64_t *array, size_t array_len)\n"
39634 " {\n"
39635 "   const int priority = LOG_USER|LOG_INFO;\n"
39636 "   if (buf_len > 0)\n"
39637 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39638 " }\n"
39639 "\n"
39640 msgstr ""
39641
39642 #. type: =head1
39643 #: ../src/guestfs.pod:2013
39644 msgid "CANCELLING LONG TRANSFERS"
39645 msgstr ""
39646
39647 #. type: textblock
39648 #: ../src/guestfs.pod:2015
39649 msgid ""
39650 "Some operations can be cancelled by the caller while they are in progress.  "
39651 "Currently only operations that involve uploading or downloading data can be "
39652 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39653 "parameters in the generator)."
39654 msgstr ""
39655
39656 #. type: =head2
39657 #: ../src/guestfs.pod:2020
39658 msgid "guestfs_user_cancel"
39659 msgstr ""
39660
39661 #. type: verbatim
39662 #: ../src/guestfs.pod:2022
39663 #, no-wrap
39664 msgid ""
39665 " void guestfs_user_cancel (guestfs_h *g);\n"
39666 "\n"
39667 msgstr ""
39668
39669 #. type: textblock
39670 #: ../src/guestfs.pod:2024
39671 msgid ""
39672 "C<guestfs_user_cancel> cancels the current upload or download operation."
39673 msgstr ""
39674
39675 #. type: textblock
39676 #: ../src/guestfs.pod:2027
39677 msgid ""
39678 "Unlike most other libguestfs calls, this function is signal safe and thread "
39679 "safe.  You can call it from a signal handler or from another thread, without "
39680 "needing to do any locking."
39681 msgstr ""
39682
39683 #. type: textblock
39684 #: ../src/guestfs.pod:2031
39685 msgid ""
39686 "The transfer that was in progress (if there is one) will stop shortly "
39687 "afterwards, and will return an error.  The errno (see L</"
39688 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39689 "out if the operation was cancelled or failed because of another error."
39690 msgstr ""
39691
39692 #. type: textblock
39693 #: ../src/guestfs.pod:2037
39694 msgid ""
39695 "No cleanup is performed: for example, if a file was being uploaded then "
39696 "after cancellation there may be a partially uploaded file.  It is the "
39697 "caller's responsibility to clean up if necessary."
39698 msgstr ""
39699
39700 #. type: textblock
39701 #: ../src/guestfs.pod:2041
39702 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39703 msgstr ""
39704
39705 #. type: textblock
39706 #: ../src/guestfs.pod:2043
39707 msgid ""
39708 "In an interactive text-based program, you might call it from a C<SIGINT> "
39709 "signal handler so that pressing C<^C> cancels the current operation.  (You "
39710 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39711 "receive the C<^C> signal)."
39712 msgstr ""
39713
39714 #. type: textblock
39715 #: ../src/guestfs.pod:2048
39716 msgid ""
39717 "In a graphical program, when the main thread is displaying a progress bar "
39718 "with a cancel button, wire up the cancel button to call this function."
39719 msgstr ""
39720
39721 #. type: =head1
39722 #: ../src/guestfs.pod:2052
39723 msgid "PRIVATE DATA AREA"
39724 msgstr ""
39725
39726 #. type: textblock
39727 #: ../src/guestfs.pod:2054
39728 msgid ""
39729 "You can attach named pieces of private data to the libguestfs handle, fetch "
39730 "them by name, and walk over them, for the lifetime of the handle.  This is "
39731 "called the private data area and is only available from the C API."
39732 msgstr ""
39733
39734 #. type: textblock
39735 #: ../src/guestfs.pod:2059
39736 msgid "To attach a named piece of data, use the following call:"
39737 msgstr ""
39738
39739 #. type: verbatim
39740 #: ../src/guestfs.pod:2061
39741 #, no-wrap
39742 msgid ""
39743 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39744 "\n"
39745 msgstr ""
39746
39747 #. type: textblock
39748 #: ../src/guestfs.pod:2063
39749 msgid ""
39750 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39751 "pointer (which can be C<NULL>).  Any previous item with the same key is "
39752 "overwritten."
39753 msgstr ""
39754
39755 #. type: textblock
39756 #: ../src/guestfs.pod:2067
39757 msgid ""
39758 "You can use any C<key> you want, but your key should I<not> start with an "
39759 "underscore character.  Keys beginning with an underscore character are "
39760 "reserved for internal libguestfs purposes (eg. for implementing language "
39761 "bindings).  It is recommended that you prefix the key with some unique "
39762 "string to avoid collisions with other users."
39763 msgstr ""
39764
39765 #. type: textblock
39766 #: ../src/guestfs.pod:2073
39767 msgid "To retrieve the pointer, use:"
39768 msgstr ""
39769
39770 #. type: verbatim
39771 #: ../src/guestfs.pod:2075
39772 #, no-wrap
39773 msgid ""
39774 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39775 "\n"
39776 msgstr ""
39777
39778 #. type: textblock
39779 #: ../src/guestfs.pod:2077
39780 msgid ""
39781 "This function returns C<NULL> if either no data is found associated with "
39782 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39783 "C<NULL>."
39784 msgstr ""
39785
39786 #. type: textblock
39787 #: ../src/guestfs.pod:2081
39788 msgid ""
39789 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39790 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
39791 "all.  In particular, libguestfs does I<not> try to free the data when the "
39792 "handle is closed.  If the data must be freed, then the caller must either "
39793 "free it before calling L</guestfs_close> or must set up a close callback to "
39794 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39795 msgstr ""
39796
39797 #. type: textblock
39798 #: ../src/guestfs.pod:2088
39799 msgid "To walk over all entries, use these two functions:"
39800 msgstr ""
39801
39802 #. type: verbatim
39803 #: ../src/guestfs.pod:2090
39804 #, no-wrap
39805 msgid ""
39806 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39807 "\n"
39808 msgstr ""
39809
39810 #. type: verbatim
39811 #: ../src/guestfs.pod:2092
39812 #, no-wrap
39813 msgid ""
39814 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39815 "\n"
39816 msgstr ""
39817
39818 #. type: textblock
39819 #: ../src/guestfs.pod:2094
39820 msgid ""
39821 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39822 "not have any particular meaning -- keys are not returned in any defined "
39823 "order).  A pointer to the key is returned in C<*key_rtn> and the "
39824 "corresponding data pointer is returned from the function.  C<NULL> is "
39825 "returned if there are no keys stored in the handle."
39826 msgstr ""
39827
39828 #. type: textblock
39829 #: ../src/guestfs.pod:2100
39830 msgid ""
39831 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
39832 "value of this function is also C<NULL> is there are no further entries to "
39833 "return."
39834 msgstr ""
39835
39836 #. type: textblock
39837 #: ../src/guestfs.pod:2104
39838 msgid "Notes about walking over entries:"
39839 msgstr ""
39840
39841 #. type: textblock
39842 #: ../src/guestfs.pod:2110
39843 msgid ""
39844 "You must not call C<guestfs_set_private> while walking over the entries."
39845 msgstr ""
39846
39847 #. type: textblock
39848 #: ../src/guestfs.pod:2115
39849 msgid ""
39850 "The handle maintains an internal iterator which is reset when you call "
39851 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
39852 "call C<guestfs_set_private>."
39853 msgstr ""
39854
39855 #. type: textblock
39856 #: ../src/guestfs.pod:2121
39857 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39858 msgstr ""
39859
39860 #. type: verbatim
39861 #: ../src/guestfs.pod:2123
39862 #, no-wrap
39863 msgid ""
39864 " guestfs_set_private (g, key, NULL);\n"
39865 "\n"
39866 msgstr ""
39867
39868 #. type: textblock
39869 #: ../src/guestfs.pod:2125
39870 msgid "then that C<key> is not returned when walking."
39871 msgstr ""
39872
39873 #. type: textblock
39874 #: ../src/guestfs.pod:2129
39875 msgid ""
39876 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39877 "C<guestfs_next_private> or C<guestfs_set_private>."
39878 msgstr ""
39879
39880 #. type: textblock
39881 #: ../src/guestfs.pod:2135
39882 msgid ""
39883 "The following example code shows how to print all keys and data pointers "
39884 "that are associated with the handle C<g>:"
39885 msgstr ""
39886
39887 #. type: verbatim
39888 #: ../src/guestfs.pod:2138
39889 #, no-wrap
39890 msgid ""
39891 " const char *key;\n"
39892 " void *data = guestfs_first_private (g, &key);\n"
39893 " while (data != NULL)\n"
39894 "   {\n"
39895 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
39896 "     data = guestfs_next_private (g, &key);\n"
39897 "   }\n"
39898 "\n"
39899 msgstr ""
39900
39901 #. type: textblock
39902 #: ../src/guestfs.pod:2146
39903 msgid ""
39904 "More commonly you are only interested in keys that begin with an application-"
39905 "specific prefix C<foo_>.  Modify the loop like so:"
39906 msgstr ""
39907
39908 #. type: verbatim
39909 #: ../src/guestfs.pod:2149
39910 #, no-wrap
39911 msgid ""
39912 " const char *key;\n"
39913 " void *data = guestfs_first_private (g, &key);\n"
39914 " while (data != NULL)\n"
39915 "   {\n"
39916 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39917 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
39918 "     data = guestfs_next_private (g, &key);\n"
39919 "   }\n"
39920 "\n"
39921 msgstr ""
39922
39923 #. type: textblock
39924 #: ../src/guestfs.pod:2158
39925 msgid ""
39926 "If you need to modify keys while walking, then you have to jump back to the "
39927 "beginning of the loop.  For example, to delete all keys prefixed with "
39928 "C<foo_>:"
39929 msgstr ""
39930
39931 #. type: verbatim
39932 #: ../src/guestfs.pod:2162
39933 #, no-wrap
39934 msgid ""
39935 "  const char *key;\n"
39936 "  void *data;\n"
39937 " again:\n"
39938 "  data = guestfs_first_private (g, &key);\n"
39939 "  while (data != NULL)\n"
39940 "    {\n"
39941 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39942 "        {\n"
39943 "          guestfs_set_private (g, key, NULL);\n"
39944 "          /* note that 'key' pointer is now invalid, and so is\n"
39945 "             the internal iterator */\n"
39946 "          goto again;\n"
39947 "        }\n"
39948 "      data = guestfs_next_private (g, &key);\n"
39949 "    }\n"
39950 "\n"
39951 msgstr ""
39952
39953 #. type: textblock
39954 #: ../src/guestfs.pod:2178
39955 msgid ""
39956 "Note that the above loop is guaranteed to terminate because the keys are "
39957 "being deleted, but other manipulations of keys within the loop might not "
39958 "terminate unless you also maintain an indication of which keys have been "
39959 "visited."
39960 msgstr ""
39961
39962 #. type: =head1
39963 #: ../src/guestfs.pod:2183
39964 msgid "SYSTEMTAP"
39965 msgstr ""
39966
39967 #. type: textblock
39968 #: ../src/guestfs.pod:2185
39969 msgid ""
39970 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
39971 "true of any library, not just libguestfs.  However libguestfs also contains "
39972 "static markers to help in probing internal operations."
39973 msgstr ""
39974
39975 #. type: textblock
39976 #: ../src/guestfs.pod:2189
39977 msgid "You can list all the static markers by doing:"
39978 msgstr ""
39979
39980 #. type: verbatim
39981 #: ../src/guestfs.pod:2191
39982 #, no-wrap
39983 msgid ""
39984 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39985 "              .provider(\"guestfs\").mark(\"*\")'\n"
39986 "\n"
39987 msgstr ""
39988
39989 #. type: textblock
39990 #: ../src/guestfs.pod:2194
39991 msgid ""
39992 "B<Note:> These static markers are I<not> part of the stable API and may "
39993 "change in future versions."
39994 msgstr ""
39995
39996 #. type: =head2
39997 #: ../src/guestfs.pod:2197
39998 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39999 msgstr ""
40000
40001 #. type: textblock
40002 #: ../src/guestfs.pod:2199
40003 msgid ""
40004 "This script contains examples of displaying both the static markers and some "
40005 "ordinary C entry points:"
40006 msgstr ""
40007
40008 #. type: verbatim
40009 #: ../src/guestfs.pod:2202
40010 #, no-wrap
40011 msgid ""
40012 " global last;\n"
40013 " \n"
40014 msgstr ""
40015
40016 #. type: verbatim
40017 #: ../src/guestfs.pod:2204
40018 #, no-wrap
40019 msgid ""
40020 " function display_time () {\n"
40021 "       now = gettimeofday_us ();\n"
40022 "       delta = 0;\n"
40023 "       if (last > 0)\n"
40024 "             delta = now - last;\n"
40025 "       last = now;\n"
40026 " \n"
40027 msgstr ""
40028
40029 #. type: verbatim
40030 #: ../src/guestfs.pod:2211
40031 #, no-wrap
40032 msgid ""
40033 "       printf (\"%d (+%d):\", now, delta);\n"
40034 " }\n"
40035 " \n"
40036 msgstr ""
40037
40038 #. type: verbatim
40039 #: ../src/guestfs.pod:2214
40040 #, no-wrap
40041 msgid ""
40042 " probe begin {\n"
40043 "       last = 0;\n"
40044 "       printf (\"ready\\n\");\n"
40045 " }\n"
40046 " \n"
40047 msgstr ""
40048
40049 #. type: verbatim
40050 #: ../src/guestfs.pod:2219
40051 #, no-wrap
40052 msgid ""
40053 " /* Display all calls to static markers. */\n"
40054 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40055 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
40056 "       display_time();\n"
40057 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
40058 " }\n"
40059 " \n"
40060 msgstr ""
40061
40062 #. type: verbatim
40063 #: ../src/guestfs.pod:2226
40064 #, no-wrap
40065 msgid ""
40066 " /* Display all calls to guestfs_mkfs* functions. */\n"
40067 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40068 "           .function(\"guestfs_mkfs*\") ? {\n"
40069 "       display_time();\n"
40070 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
40071 " }\n"
40072 "\n"
40073 msgstr ""
40074
40075 #. type: textblock
40076 #: ../src/guestfs.pod:2233
40077 msgid ""
40078 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
40079 "program.  Note that you either have to be root, or you have to add yourself "
40080 "to several special stap groups.  Consult the systemtap documentation for "
40081 "more information."
40082 msgstr ""
40083
40084 #. type: verbatim
40085 #: ../src/guestfs.pod:2238
40086 #, no-wrap
40087 msgid ""
40088 " # stap /tmp/test.stap\n"
40089 " ready\n"
40090 "\n"
40091 msgstr ""
40092
40093 #. type: textblock
40094 #: ../src/guestfs.pod:2241
40095 msgid "In another terminal, run a guestfish command such as this:"
40096 msgstr ""
40097
40098 #. type: textblock
40099 #: ../src/guestfs.pod:2245
40100 msgid "In the first terminal, stap trace output similar to this is shown:"
40101 msgstr ""
40102
40103 #. type: verbatim
40104 #: ../src/guestfs.pod:2247
40105 #, no-wrap
40106 msgid ""
40107 " 1318248056692655 (+0):\tlaunch_start\n"
40108 " 1318248056692850 (+195):       launch_build_appliance_start\n"
40109 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
40110 " 1318248056838059 (+19774):     launch_run_qemu\n"
40111 " 1318248061071167 (+4233108):   launch_end\n"
40112 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
40113 "\n"
40114 msgstr ""
40115
40116 #. type: =end
40117 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
40118 msgid "html"
40119 msgstr ""
40120
40121 #. type: textblock
40122 #: ../src/guestfs.pod:2256
40123 msgid ""
40124 "<!-- old anchor for the next section --> <a name="
40125 "\"state_machine_and_low_level_event_api\"/>"
40126 msgstr ""
40127
40128 #. type: =head1
40129 #: ../src/guestfs.pod:2261
40130 msgid "ARCHITECTURE"
40131 msgstr ""
40132
40133 #. type: textblock
40134 #: ../src/guestfs.pod:2263
40135 msgid ""
40136 "Internally, libguestfs is implemented by running an appliance (a special "
40137 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
40138 "process of the main program."
40139 msgstr ""
40140
40141 #. type: verbatim
40142 #: ../src/guestfs.pod:2267
40143 #, no-wrap
40144 msgid ""
40145 "  ___________________\n"
40146 " /                   \\\n"
40147 " | main program      |\n"
40148 " |                   |\n"
40149 " |                   |           child process / appliance\n"
40150 " |                   |           __________________________\n"
40151 " |                   |          / qemu                     \\\n"
40152 " +-------------------+   RPC    |      +-----------------+ |\n"
40153 " | libguestfs     <--------------------> guestfsd        | |\n"
40154 " |                   |          |      +-----------------+ |\n"
40155 " \\___________________/          |      | Linux kernel    | |\n"
40156 "                                |      +--^--------------+ |\n"
40157 "                                \\_________|________________/\n"
40158 "                                          |\n"
40159 "                                   _______v______\n"
40160 "                                  /              \\\n"
40161 "                                  | Device or    |\n"
40162 "                                  | disk image   |\n"
40163 "                                  \\______________/\n"
40164 "\n"
40165 msgstr ""
40166
40167 #. type: textblock
40168 #: ../src/guestfs.pod:2287
40169 msgid ""
40170 "The library, linked to the main program, creates the child process and hence "
40171 "the appliance in the L</guestfs_launch> function."
40172 msgstr ""
40173
40174 #. type: textblock
40175 #: ../src/guestfs.pod:2290
40176 msgid ""
40177 "Inside the appliance is a Linux kernel and a complete stack of userspace "
40178 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
40179 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
40180 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
40181 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
40182 "attached to the qemu process which translates device access by the "
40183 "appliance's Linux kernel into accesses to the image."
40184 msgstr ""
40185
40186 #. type: textblock
40187 #: ../src/guestfs.pod:2299
40188 msgid ""
40189 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
40190 "Although the disk image you are attached to might also be used by some "
40191 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
40192 "care if both libguestfs's qemu process and your virtual machine are trying "
40193 "to update the disk image at the same time, since these usually results in "
40194 "massive disk corruption)."
40195 msgstr ""
40196
40197 #. type: =head1
40198 #: ../src/guestfs.pod:2306
40199 msgid "STATE MACHINE"
40200 msgstr ""
40201
40202 #. type: textblock
40203 #: ../src/guestfs.pod:2308
40204 msgid "libguestfs uses a state machine to model the child process:"
40205 msgstr ""
40206
40207 #. type: verbatim
40208 #: ../src/guestfs.pod:2310
40209 #, no-wrap
40210 msgid ""
40211 "                         |\n"
40212 "                    guestfs_create\n"
40213 "                         |\n"
40214 "                         |\n"
40215 "                     ____V_____\n"
40216 "                    /          \\\n"
40217 "                    |  CONFIG  |\n"
40218 "                    \\__________/\n"
40219 "                     ^ ^   ^  \\\n"
40220 "                    /  |    \\  \\ guestfs_launch\n"
40221 "                   /   |    _\\__V______\n"
40222 "                  /    |   /           \\\n"
40223 "                 /     |   | LAUNCHING |\n"
40224 "                /      |   \\___________/\n"
40225 "               /       |       /\n"
40226 "              /        |  guestfs_launch\n"
40227 "             /         |     /\n"
40228 "    ______  /        __|____V\n"
40229 "   /      \\ ------> /        \\\n"
40230 "   | BUSY |         | READY  |\n"
40231 "   \\______/ <------ \\________/\n"
40232 "\n"
40233 msgstr ""
40234
40235 #. type: textblock
40236 #: ../src/guestfs.pod:2332
40237 msgid ""
40238 "The normal transitions are (1) CONFIG (when the handle is created, but there "
40239 "is no child process), (2) LAUNCHING (when the child process is booting up), "
40240 "(3) alternating between READY and BUSY as commands are issued to, and "
40241 "carried out by, the child process."
40242 msgstr ""
40243
40244 #. type: textblock
40245 #: ../src/guestfs.pod:2337
40246 msgid ""
40247 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
40248 "asynchronously at any time (eg. due to some internal error), and that causes "
40249 "the state to transition back to CONFIG."
40250 msgstr ""
40251
40252 #. type: textblock
40253 #: ../src/guestfs.pod:2341
40254 msgid ""
40255 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
40256 "issued when in the CONFIG state."
40257 msgstr ""
40258
40259 #. type: textblock
40260 #: ../src/guestfs.pod:2344
40261 msgid ""
40262 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
40263 "L</guestfs_launch> blocks until the child process is READY to accept "
40264 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
40265 "moves the state from CONFIG to LAUNCHING while it is running."
40266 msgstr ""
40267
40268 #. type: textblock
40269 #: ../src/guestfs.pod:2350
40270 msgid ""
40271 "API actions such as L</guestfs_mount> can only be issued when in the READY "
40272 "state.  These API calls block waiting for the command to be carried out (ie. "
40273 "the state to transition to BUSY and then back to READY).  There are no non-"
40274 "blocking versions, and no way to issue more than one command per handle at "
40275 "the same time."
40276 msgstr ""
40277
40278 #. type: textblock
40279 #: ../src/guestfs.pod:2356
40280 msgid ""
40281 "Finally, the child process sends asynchronous messages back to the main "
40282 "program, such as kernel log messages.  You can register a callback to "
40283 "receive these messages."
40284 msgstr ""
40285
40286 #. type: =head1
40287 #: ../src/guestfs.pod:2360
40288 msgid "INTERNALS"
40289 msgstr ""
40290
40291 #. type: =head2
40292 #: ../src/guestfs.pod:2362
40293 msgid "APPLIANCE BOOT PROCESS"
40294 msgstr ""
40295
40296 #. type: textblock
40297 #: ../src/guestfs.pod:2364
40298 msgid ""
40299 "This process has evolved and continues to evolve.  The description here "
40300 "corresponds only to the current version of libguestfs and is provided for "
40301 "information only."
40302 msgstr ""
40303
40304 #. type: textblock
40305 #: ../src/guestfs.pod:2368
40306 msgid ""
40307 "In order to follow the stages involved below, enable libguestfs debugging "
40308 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40309 msgstr ""
40310
40311 #. type: =item
40312 #: ../src/guestfs.pod:2373
40313 msgid "Create the appliance"
40314 msgstr ""
40315
40316 #. type: textblock
40317 #: ../src/guestfs.pod:2375
40318 msgid ""
40319 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40320 "initrd and the appliance."
40321 msgstr ""
40322
40323 #. type: textblock
40324 #: ../src/guestfs.pod:2378
40325 msgid ""
40326 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40327 "directory if C<TMPDIR> is set)."
40328 msgstr ""
40329
40330 #. type: textblock
40331 #: ../src/guestfs.pod:2381
40332 msgid ""
40333 "For a complete description of how the appliance is created and cached, read "
40334 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40335 msgstr ""
40336
40337 #. type: =item
40338 #: ../src/guestfs.pod:2385
40339 msgid "Start qemu and boot the kernel"
40340 msgstr ""
40341
40342 #. type: textblock
40343 #: ../src/guestfs.pod:2387
40344 msgid "qemu is invoked to boot the kernel."
40345 msgstr ""
40346
40347 #. type: =item
40348 #: ../src/guestfs.pod:2389
40349 msgid "Run the initrd"
40350 msgstr ""
40351
40352 #. type: textblock
40353 #: ../src/guestfs.pod:2391
40354 msgid ""
40355 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
40356 "appliance.  The purpose of the initrd is to load enough kernel modules in "
40357 "order that the appliance itself can be mounted and started."
40358 msgstr ""
40359
40360 #. type: textblock
40361 #: ../src/guestfs.pod:2395
40362 msgid ""
40363 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40364 "initrd>."
40365 msgstr ""
40366
40367 #. type: textblock
40368 #: ../src/guestfs.pod:2398
40369 msgid ""
40370 "When the initrd has started you will see messages showing that kernel "
40371 "modules are being loaded, similar to this:"
40372 msgstr ""
40373
40374 #. type: verbatim
40375 #: ../src/guestfs.pod:2401
40376 #, no-wrap
40377 msgid ""
40378 " febootstrap: ext2 mini initrd starting up\n"
40379 " febootstrap: mounting /sys\n"
40380 " febootstrap: internal insmod libcrc32c.ko\n"
40381 " febootstrap: internal insmod crc32c-intel.ko\n"
40382 "\n"
40383 msgstr ""
40384
40385 #. type: =item
40386 #: ../src/guestfs.pod:2406
40387 msgid "Find and mount the appliance device"
40388 msgstr ""
40389
40390 #. type: textblock
40391 #: ../src/guestfs.pod:2408
40392 msgid ""
40393 "The appliance is a sparse file containing an ext2 filesystem which contains "
40394 "a familiar (although reduced in size) Linux operating system.  It would "
40395 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40396 msgstr ""
40397
40398 #. type: textblock
40399 #: ../src/guestfs.pod:2412
40400 msgid ""
40401 "The regular disks being inspected by libguestfs are the first devices "
40402 "exposed by qemu (eg. as C</dev/vda>)."
40403 msgstr ""
40404
40405 #. type: textblock
40406 #: ../src/guestfs.pod:2415
40407 msgid ""
40408 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40409 "there was only one regular disk)."
40410 msgstr ""
40411
40412 #. type: textblock
40413 #: ../src/guestfs.pod:2418
40414 msgid ""
40415 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40416 "and switch root into the appliance, and run C</init> from the appliance."
40417 msgstr ""
40418
40419 #. type: textblock
40420 #: ../src/guestfs.pod:2422
40421 msgid "If this works successfully you will see messages such as:"
40422 msgstr ""
40423
40424 #. type: verbatim
40425 #: ../src/guestfs.pod:2424
40426 #, no-wrap
40427 msgid ""
40428 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40429 " febootstrap: creating /dev/root as block special 252:16\n"
40430 " febootstrap: mounting new root on /root\n"
40431 " febootstrap: chroot\n"
40432 " Starting /init script ...\n"
40433 "\n"
40434 msgstr ""
40435
40436 #. type: textblock
40437 #: ../src/guestfs.pod:2430
40438 msgid ""
40439 "Note that C<Starting /init script ...> indicates that the appliance's init "
40440 "script is now running."
40441 msgstr ""
40442
40443 #. type: =item
40444 #: ../src/guestfs.pod:2433
40445 msgid "Initialize the appliance"
40446 msgstr ""
40447
40448 #. type: textblock
40449 #: ../src/guestfs.pod:2435
40450 msgid ""
40451 "The appliance itself now initializes itself.  This involves starting certain "
40452 "processes like C<udev>, possibly printing some debug information, and "
40453 "finally running the daemon (C<guestfsd>)."
40454 msgstr ""
40455
40456 #. type: =item
40457 #: ../src/guestfs.pod:2439
40458 msgid "The daemon"
40459 msgstr ""
40460
40461 #. type: textblock
40462 #: ../src/guestfs.pod:2441
40463 msgid ""
40464 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
40465 "should see:"
40466 msgstr ""
40467
40468 #. type: verbatim
40469 #: ../src/guestfs.pod:2444
40470 #, no-wrap
40471 msgid ""
40472 " verbose daemon enabled\n"
40473 "\n"
40474 msgstr ""
40475
40476 #. type: textblock
40477 #: ../src/guestfs.pod:2446
40478 msgid ""
40479 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40480 "connected on the other end to the library."
40481 msgstr ""
40482
40483 #. type: textblock
40484 #: ../src/guestfs.pod:2449
40485 msgid ""
40486 "The daemon connects to this port (and hence to the library) and sends a four "
40487 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40488 "protocol (see below)."
40489 msgstr ""
40490
40491 #. type: =head2
40492 #: ../src/guestfs.pod:2455
40493 msgid "COMMUNICATION PROTOCOL"
40494 msgstr ""
40495
40496 #. type: textblock
40497 #: ../src/guestfs.pod:2457
40498 msgid ""
40499 "Don't rely on using this protocol directly.  This section documents how it "
40500 "currently works, but it may change at any time."
40501 msgstr ""
40502
40503 #. type: textblock
40504 #: ../src/guestfs.pod:2460
40505 msgid ""
40506 "The protocol used to talk between the library and the daemon running inside "
40507 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40508 "1014, RFC 1832, RFC 4506)."
40509 msgstr ""
40510
40511 #. type: textblock
40512 #: ../src/guestfs.pod:2464
40513 msgid ""
40514 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40515 "this file is automatically generated)."
40516 msgstr ""
40517
40518 #. type: textblock
40519 #: ../src/guestfs.pod:2467
40520 msgid ""
40521 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40522 "and C<FileOut> parameters, which are handled with very simple request/reply "
40523 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
40524 "parameters, which use the same request and reply messages, but they may also "
40525 "be followed by files sent using a chunked encoding."
40526 msgstr ""
40527
40528 #. type: =head3
40529 #: ../src/guestfs.pod:2474
40530 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40531 msgstr ""
40532
40533 #. type: textblock
40534 #: ../src/guestfs.pod:2476
40535 msgid "For ordinary functions, the request message is:"
40536 msgstr ""
40537
40538 #. type: verbatim
40539 #: ../src/guestfs.pod:2478
40540 #, no-wrap
40541 msgid ""
40542 " total length (header + arguments,\n"
40543 "      but not including the length word itself)\n"
40544 " struct guestfs_message_header (encoded as XDR)\n"
40545 " struct guestfs_<foo>_args (encoded as XDR)\n"
40546 "\n"
40547 msgstr ""
40548
40549 #. type: textblock
40550 #: ../src/guestfs.pod:2483
40551 msgid ""
40552 "The total length field allows the daemon to allocate a fixed size buffer "
40553 "into which it slurps the rest of the message.  As a result, the total length "
40554 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40555 "effective size of any request is limited to somewhere under this size."
40556 msgstr ""
40557
40558 #. type: textblock
40559 #: ../src/guestfs.pod:2489
40560 msgid ""
40561 "Note also that many functions don't take any arguments, in which case the "
40562 "C<guestfs_I<foo>_args> is completely omitted."
40563 msgstr ""
40564
40565 #. type: textblock
40566 #: ../src/guestfs.pod:2492
40567 msgid ""
40568 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40569 "receiver knows what type of args structure to expect, or none at all."
40570 msgstr ""
40571
40572 #. type: textblock
40573 #: ../src/guestfs.pod:2496
40574 msgid ""
40575 "For functions that take optional arguments, the optional arguments are "
40576 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40577 "arguments.  A bitmask in the header indicates which optional arguments are "
40578 "meaningful.  The bitmask is also checked to see if it contains bits set "
40579 "which the daemon does not know about (eg. if more optional arguments were "
40580 "added in a later version of the library), and this causes the call to be "
40581 "rejected."
40582 msgstr ""
40583
40584 #. type: textblock
40585 #: ../src/guestfs.pod:2504
40586 msgid "The reply message for ordinary functions is:"
40587 msgstr ""
40588
40589 #. type: verbatim
40590 #: ../src/guestfs.pod:2506
40591 #, no-wrap
40592 msgid ""
40593 " total length (header + ret,\n"
40594 "      but not including the length word itself)\n"
40595 " struct guestfs_message_header (encoded as XDR)\n"
40596 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40597 "\n"
40598 msgstr ""
40599
40600 #. type: textblock
40601 #: ../src/guestfs.pod:2511
40602 msgid ""
40603 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40604 "functions that return no formal return values."
40605 msgstr ""
40606
40607 #. type: textblock
40608 #: ../src/guestfs.pod:2514
40609 msgid ""
40610 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40611 msgstr ""
40612
40613 #. type: textblock
40614 #: ../src/guestfs.pod:2517
40615 msgid ""
40616 "In the case of an error, a flag is set in the header, and the reply message "
40617 "is slightly changed:"
40618 msgstr ""
40619
40620 #. type: verbatim
40621 #: ../src/guestfs.pod:2520
40622 #, no-wrap
40623 msgid ""
40624 " total length (header + error,\n"
40625 "      but not including the length word itself)\n"
40626 " struct guestfs_message_header (encoded as XDR)\n"
40627 " struct guestfs_message_error (encoded as XDR)\n"
40628 "\n"
40629 msgstr ""
40630
40631 #. type: textblock
40632 #: ../src/guestfs.pod:2525
40633 msgid ""
40634 "The C<guestfs_message_error> structure contains the error message as a "
40635 "string."
40636 msgstr ""
40637
40638 #. type: =head3
40639 #: ../src/guestfs.pod:2528
40640 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40641 msgstr ""
40642
40643 #. type: textblock
40644 #: ../src/guestfs.pod:2530
40645 msgid ""
40646 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
40647 "The normal request message is sent (see above).  However this is followed by "
40648 "a sequence of file chunks."
40649 msgstr ""
40650
40651 #. type: verbatim
40652 #: ../src/guestfs.pod:2534
40653 #, no-wrap
40654 msgid ""
40655 " total length (header + arguments,\n"
40656 "      but not including the length word itself,\n"
40657 "      and not including the chunks)\n"
40658 " struct guestfs_message_header (encoded as XDR)\n"
40659 " struct guestfs_<foo>_args (encoded as XDR)\n"
40660 " sequence of chunks for FileIn param #0\n"
40661 " sequence of chunks for FileIn param #1 etc.\n"
40662 "\n"
40663 msgstr ""
40664
40665 #. type: textblock
40666 #: ../src/guestfs.pod:2542
40667 msgid "The \"sequence of chunks\" is:"
40668 msgstr ""
40669
40670 #. type: verbatim
40671 #: ../src/guestfs.pod:2544
40672 #, no-wrap
40673 msgid ""
40674 " length of chunk (not including length word itself)\n"
40675 " struct guestfs_chunk (encoded as XDR)\n"
40676 " length of chunk\n"
40677 " struct guestfs_chunk (encoded as XDR)\n"
40678 "   ...\n"
40679 " length of chunk\n"
40680 " struct guestfs_chunk (with data.data_len == 0)\n"
40681 "\n"
40682 msgstr ""
40683
40684 #. type: textblock
40685 #: ../src/guestfs.pod:2552
40686 msgid ""
40687 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
40688 "is set in the final chunk to indicate either successful completion or early "
40689 "cancellation."
40690 msgstr ""
40691
40692 #. type: textblock
40693 #: ../src/guestfs.pod:2556
40694 msgid ""
40695 "At time of writing there are no functions that have more than one FileIn "
40696 "parameter.  However this is (theoretically) supported, by sending the "
40697 "sequence of chunks for each FileIn parameter one after another (from left to "
40698 "right)."
40699 msgstr ""
40700
40701 #. type: textblock
40702 #: ../src/guestfs.pod:2561
40703 msgid ""
40704 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40705 "transfer.  The library does this by sending a chunk with a special flag set "
40706 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
40707 "RPC, does I<not> send any reply, and goes back to reading the next request."
40708 msgstr ""
40709
40710 #. type: textblock
40711 #: ../src/guestfs.pod:2567
40712 msgid ""
40713 "The daemon may also cancel.  It does this by writing a special word "
40714 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
40715 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40716 "cancel chunk).  The special word is chosen so that even if cancellation "
40717 "happens right at the end of the transfer (after the library has finished "
40718 "writing and has started listening for the reply), the \"spurious\" cancel "
40719 "flag will not be confused with the reply message."
40720 msgstr ""
40721
40722 #. type: textblock
40723 #: ../src/guestfs.pod:2576
40724 msgid ""
40725 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40726 "limit), and also files where the size is not known in advance (eg. from "
40727 "pipes or sockets).  However the chunks are rather small "
40728 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40729 "to keep much in memory."
40730 msgstr ""
40731
40732 #. type: =head3
40733 #: ../src/guestfs.pod:2582
40734 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40735 msgstr ""
40736
40737 #. type: textblock
40738 #: ../src/guestfs.pod:2584
40739 msgid ""
40740 "The protocol for FileOut parameters is exactly the same as for FileIn "
40741 "parameters, but with the roles of daemon and library reversed."
40742 msgstr ""
40743
40744 #. type: verbatim
40745 #: ../src/guestfs.pod:2587
40746 #, no-wrap
40747 msgid ""
40748 " total length (header + ret,\n"
40749 "      but not including the length word itself,\n"
40750 "      and not including the chunks)\n"
40751 " struct guestfs_message_header (encoded as XDR)\n"
40752 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40753 " sequence of chunks for FileOut param #0\n"
40754 " sequence of chunks for FileOut param #1 etc.\n"
40755 "\n"
40756 msgstr ""
40757
40758 #. type: =head3
40759 #: ../src/guestfs.pod:2595
40760 msgid "INITIAL MESSAGE"
40761 msgstr ""
40762
40763 #. type: textblock
40764 #: ../src/guestfs.pod:2597
40765 msgid ""
40766 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40767 "which indicates that the guest and daemon is alive.  This is what L</"
40768 "guestfs_launch> waits for."
40769 msgstr ""
40770
40771 #. type: =head3
40772 #: ../src/guestfs.pod:2601
40773 msgid "PROGRESS NOTIFICATION MESSAGES"
40774 msgstr ""
40775
40776 #. type: textblock
40777 #: ../src/guestfs.pod:2603
40778 msgid ""
40779 "The daemon may send progress notification messages at any time.  These are "
40780 "distinguished by the normal length word being replaced by "
40781 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40782 msgstr ""
40783
40784 #. type: textblock
40785 #: ../src/guestfs.pod:2607
40786 msgid ""
40787 "The library turns them into progress callbacks (see L</"
40788 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40789 "if not."
40790 msgstr ""
40791
40792 #. type: textblock
40793 #: ../src/guestfs.pod:2611
40794 msgid ""
40795 "The daemon self-limits the frequency of progress messages it sends (see "
40796 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
40797 "messages."
40798 msgstr ""
40799
40800 #. type: =head1
40801 #: ../src/guestfs.pod:2615
40802 msgid "LIBGUESTFS VERSION NUMBERS"
40803 msgstr ""
40804
40805 #. type: textblock
40806 #: ../src/guestfs.pod:2617
40807 msgid ""
40808 "Since April 2010, libguestfs has started to make separate development and "
40809 "stable releases, along with corresponding branches in our git repository.  "
40810 "These separate releases can be identified by version number:"
40811 msgstr ""
40812
40813 #. type: verbatim
40814 #: ../src/guestfs.pod:2622
40815 #, no-wrap
40816 msgid ""
40817 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
40818 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40819 "       |\n"
40820 "       v\n"
40821 " 1  .  3  .  5\n"
40822 " ^           ^\n"
40823 " |           |\n"
40824 " |           `-------- sub-version\n"
40825 " |\n"
40826 " `------ always '1' because we don't change the ABI\n"
40827 "\n"
40828 msgstr ""
40829
40830 #. type: textblock
40831 #: ../src/guestfs.pod:2633
40832 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40833 msgstr ""
40834
40835 #. type: textblock
40836 #: ../src/guestfs.pod:2635
40837 msgid ""
40838 "As time passes we cherry pick fixes from the development branch and backport "
40839 "those into the stable branch, the effect being that the stable branch should "
40840 "get more stable and less buggy over time.  So the stable releases are ideal "
40841 "for people who don't need new features but would just like the software to "
40842 "work."
40843 msgstr ""
40844
40845 #. type: textblock
40846 #: ../src/guestfs.pod:2641
40847 msgid "Our criteria for backporting changes are:"
40848 msgstr ""
40849
40850 #. type: textblock
40851 #: ../src/guestfs.pod:2647
40852 msgid ""
40853 "Documentation changes which don't affect any code are backported unless the "
40854 "documentation refers to a future feature which is not in stable."
40855 msgstr ""
40856
40857 #. type: textblock
40858 #: ../src/guestfs.pod:2653
40859 msgid ""
40860 "Bug fixes which are not controversial, fix obvious problems, and have been "
40861 "well tested are backported."
40862 msgstr ""
40863
40864 #. type: textblock
40865 #: ../src/guestfs.pod:2658
40866 msgid ""
40867 "Simple rearrangements of code which shouldn't affect how it works get "
40868 "backported.  This is so that the code in the two branches doesn't get too "
40869 "far out of step, allowing us to backport future fixes more easily."
40870 msgstr ""
40871
40872 #. type: textblock
40873 #: ../src/guestfs.pod:2664
40874 msgid ""
40875 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40876 "exceptional case: the new feature is required in order to implement an "
40877 "important bug fix."
40878 msgstr ""
40879
40880 #. type: textblock
40881 #: ../src/guestfs.pod:2670
40882 msgid ""
40883 "A new stable branch starts when we think the new features in development are "
40884 "substantial and compelling enough over the current stable branch to warrant "
40885 "it.  When that happens we create new stable and development versions 1.N.0 "
40886 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
40887 "stable at this point, but by backporting fixes from development, that branch "
40888 "will stabilize over time."
40889 msgstr ""
40890
40891 #. type: =head1
40892 #: ../src/guestfs.pod:2678
40893 msgid "EXTENDING LIBGUESTFS"
40894 msgstr ""
40895
40896 #. type: =head2
40897 #: ../src/guestfs.pod:2680
40898 msgid "ADDING A NEW API ACTION"
40899 msgstr ""
40900
40901 #. type: textblock
40902 #: ../src/guestfs.pod:2682
40903 msgid ""
40904 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40905 "documentation) are generated, and this makes it easy to extend the "
40906 "libguestfs API."
40907 msgstr ""
40908
40909 #. type: textblock
40910 #: ../src/guestfs.pod:2686
40911 msgid "To add a new API action there are two changes:"
40912 msgstr ""
40913
40914 #. type: textblock
40915 #: ../src/guestfs.pod:2692
40916 msgid ""
40917 "You need to add a description of the call (name, parameters, return type, "
40918 "tests, documentation) to C<generator/generator_actions.ml>."
40919 msgstr ""
40920
40921 #. type: textblock
40922 #: ../src/guestfs.pod:2695
40923 msgid ""
40924 "There are two sorts of API action, depending on whether the call goes "
40925 "through to the daemon in the appliance, or is serviced entirely by the "
40926 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
40927 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
40928 "an example of the latter, since a trace flag is maintained in the handle and "
40929 "all tracing is done on the library side."
40930 msgstr ""
40931
40932 #. type: textblock
40933 #: ../src/guestfs.pod:2703
40934 msgid ""
40935 "Most new actions are of the first type, and get added to the "
40936 "C<daemon_functions> list.  Each function has a unique procedure number used "
40937 "in the RPC protocol which is assigned to that action when we publish "
40938 "libguestfs and cannot be reused.  Take the latest procedure number and "
40939 "increment it."
40940 msgstr ""
40941
40942 #. type: textblock
40943 #: ../src/guestfs.pod:2709
40944 msgid ""
40945 "For library-only actions of the second type, add to the "
40946 "C<non_daemon_functions> list.  Since these functions are serviced by the "
40947 "library and do not travel over the RPC mechanism to the daemon, these "
40948 "functions do not need a procedure number, and so the procedure number is set "
40949 "to C<-1>."
40950 msgstr ""
40951
40952 #. type: textblock
40953 #: ../src/guestfs.pod:2717
40954 msgid "Implement the action (in C):"
40955 msgstr ""
40956
40957 #. type: textblock
40958 #: ../src/guestfs.pod:2719
40959 msgid ""
40960 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40961 "C<daemon/> directory."
40962 msgstr ""
40963
40964 #. type: textblock
40965 #: ../src/guestfs.pod:2722
40966 msgid ""
40967 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40968 "(note: double underscore) in the C<src/> directory."
40969 msgstr ""
40970
40971 #. type: textblock
40972 #: ../src/guestfs.pod:2725
40973 msgid "In either case, use another function as an example of what to do."
40974 msgstr ""
40975
40976 #. type: textblock
40977 #: ../src/guestfs.pod:2729
40978 msgid "After making these changes, use C<make> to compile."
40979 msgstr ""
40980
40981 #. type: textblock
40982 #: ../src/guestfs.pod:2731
40983 msgid ""
40984 "Note that you don't need to implement the RPC, language bindings, manual "
40985 "pages or anything else.  It's all automatically generated from the OCaml "
40986 "description."
40987 msgstr ""
40988
40989 #. type: =head2
40990 #: ../src/guestfs.pod:2735
40991 msgid "ADDING TESTS FOR AN API ACTION"
40992 msgstr ""
40993
40994 #. type: textblock
40995 #: ../src/guestfs.pod:2737
40996 msgid ""
40997 "You can supply zero or as many tests as you want per API call.  The tests "
40998 "can either be added as part of the API description (C<generator/"
40999 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
41000 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
41001 "slower, so if possible use the first method."
41002 msgstr ""
41003
41004 #. type: textblock
41005 #: ../src/guestfs.pod:2743
41006 msgid ""
41007 "The following describes the test environment used when you add an API test "
41008 "in C<generator_actions.ml>."
41009 msgstr ""
41010
41011 #. type: textblock
41012 #: ../src/guestfs.pod:2746
41013 msgid "The test environment has 4 block devices:"
41014 msgstr ""
41015
41016 #. type: =item
41017 #: ../src/guestfs.pod:2750
41018 msgid "C</dev/sda> 500MB"
41019 msgstr ""
41020
41021 #. type: textblock
41022 #: ../src/guestfs.pod:2752
41023 msgid "General block device for testing."
41024 msgstr ""
41025
41026 #. type: =item
41027 #: ../src/guestfs.pod:2754
41028 msgid "C</dev/sdb> 50MB"
41029 msgstr ""
41030
41031 #. type: textblock
41032 #: ../src/guestfs.pod:2756
41033 msgid ""
41034 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
41035 "operations."
41036 msgstr ""
41037
41038 #. type: =item
41039 #: ../src/guestfs.pod:2759
41040 msgid "C</dev/sdc> 10MB"
41041 msgstr ""
41042
41043 #. type: textblock
41044 #: ../src/guestfs.pod:2761
41045 msgid "Used in a few tests where two block devices are needed."
41046 msgstr ""
41047
41048 #. type: =item
41049 #: ../src/guestfs.pod:2763
41050 msgid "C</dev/sdd>"
41051 msgstr ""
41052
41053 #. type: textblock
41054 #: ../src/guestfs.pod:2765
41055 msgid "ISO with fixed content (see C<images/test.iso>)."
41056 msgstr ""
41057
41058 #. type: textblock
41059 #: ../src/guestfs.pod:2769
41060 msgid ""
41061 "To be able to run the tests in a reasonable amount of time, the libguestfs "
41062 "appliance and block devices are reused between tests.  So don't try testing "
41063 "L</guestfs_kill_subprocess> :-x"
41064 msgstr ""
41065
41066 #. type: textblock
41067 #: ../src/guestfs.pod:2773
41068 msgid ""
41069 "Each test starts with an initial scenario, selected using one of the "
41070 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
41071 "initialize the disks mentioned above in a particular way as documented in "
41072 "C<generator_types.ml>.  You should not assume anything about the previous "
41073 "contents of other disks that are not initialized."
41074 msgstr ""
41075
41076 #. type: textblock
41077 #: ../src/guestfs.pod:2779
41078 msgid ""
41079 "You can add a prerequisite clause to any individual test.  This is a run-"
41080 "time check, which, if it fails, causes the test to be skipped.  Useful if "
41081 "testing a command which might not work on all variations of libguestfs "
41082 "builds.  A test that has prerequisite of C<Always> means to run "
41083 "unconditionally."
41084 msgstr ""
41085
41086 #. type: textblock
41087 #: ../src/guestfs.pod:2785
41088 msgid ""
41089 "In addition, packagers can skip individual tests by setting environment "
41090 "variables before running C<make check>."
41091 msgstr ""
41092
41093 #. type: verbatim
41094 #: ../src/guestfs.pod:2788
41095 #, no-wrap
41096 msgid ""
41097 " SKIP_TEST_<CMD>_<NUM>=1\n"
41098 "\n"
41099 msgstr ""
41100
41101 #. type: textblock
41102 #: ../src/guestfs.pod:2790
41103 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
41104 msgstr ""
41105
41106 #. type: verbatim
41107 #: ../src/guestfs.pod:2794
41108 #, no-wrap
41109 msgid ""
41110 " SKIP_TEST_<CMD>=1\n"
41111 "\n"
41112 msgstr ""
41113
41114 #. type: textblock
41115 #: ../src/guestfs.pod:2796
41116 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
41117 msgstr ""
41118
41119 #. type: textblock
41120 #: ../src/guestfs.pod:2798
41121 msgid "Packagers can run only certain tests by setting for example:"
41122 msgstr ""
41123
41124 #. type: verbatim
41125 #: ../src/guestfs.pod:2800
41126 #, no-wrap
41127 msgid ""
41128 " TEST_ONLY=\"vfs_type zerofree\"\n"
41129 "\n"
41130 msgstr ""
41131
41132 #. type: textblock
41133 #: ../src/guestfs.pod:2802
41134 msgid ""
41135 "See C<capitests/tests.c> for more details of how these environment variables "
41136 "work."
41137 msgstr ""
41138
41139 #. type: =head2
41140 #: ../src/guestfs.pod:2805
41141 msgid "DEBUGGING NEW API ACTIONS"
41142 msgstr ""
41143
41144 #. type: textblock
41145 #: ../src/guestfs.pod:2807
41146 msgid "Test new actions work before submitting them."
41147 msgstr ""
41148
41149 #. type: textblock
41150 #: ../src/guestfs.pod:2809
41151 msgid "You can use guestfish to try out new commands."
41152 msgstr ""
41153
41154 #. type: textblock
41155 #: ../src/guestfs.pod:2811
41156 msgid ""
41157 "Debugging the daemon is a problem because it runs inside a minimal "
41158 "environment.  However you can fprintf messages in the daemon to stderr, and "
41159 "they will show up if you use C<guestfish -v>."
41160 msgstr ""
41161
41162 #. type: =head2
41163 #: ../src/guestfs.pod:2815
41164 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
41165 msgstr ""
41166
41167 #. type: textblock
41168 #: ../src/guestfs.pod:2817
41169 msgid ""
41170 "Our C source code generally adheres to some basic code-formatting "
41171 "conventions.  The existing code base is not totally consistent on this "
41172 "front, but we do prefer that contributed code be formatted similarly.  In "
41173 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
41174 "indentation level, and other than that, follow the K&R style."
41175 msgstr ""
41176
41177 #. type: textblock
41178 #: ../src/guestfs.pod:2823
41179 msgid ""
41180 "If you use Emacs, add the following to one of one of your start-up files (e."
41181 "g., ~/.emacs), to help ensure that you get indentation right:"
41182 msgstr ""
41183
41184 #. type: verbatim
41185 #: ../src/guestfs.pod:2826
41186 #, no-wrap
41187 msgid ""
41188 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
41189 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
41190 " (add-hook 'find-file-hook\n"
41191 "     '(lambda () (if (and buffer-file-name\n"
41192 "                          (string-match \"/libguestfs\\\\>\"\n"
41193 "                              (buffer-file-name))\n"
41194 "                          (not (string-equal mode-name \"Change Log\"))\n"
41195 "                          (not (string-equal mode-name \"Makefile\")))\n"
41196 "                     (setq indent-tabs-mode nil))))\n"
41197 " \n"
41198 msgstr ""
41199
41200 #. type: verbatim
41201 #: ../src/guestfs.pod:2836
41202 #, no-wrap
41203 msgid ""
41204 " ;;; When editing C sources in libguestfs, use this style.\n"
41205 " (defun libguestfs-c-mode ()\n"
41206 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
41207 "   (interactive)\n"
41208 "   (c-set-style \"K&R\")\n"
41209 "   (setq c-indent-level 2)\n"
41210 "   (setq c-basic-offset 2))\n"
41211 " (add-hook 'c-mode-hook\n"
41212 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
41213 "                               (buffer-file-name))\n"
41214 "                           (libguestfs-c-mode))))\n"
41215 "\n"
41216 msgstr ""
41217
41218 #. type: textblock
41219 #: ../src/guestfs.pod:2848
41220 msgid "Enable warnings when compiling (and fix any problems this finds):"
41221 msgstr ""
41222
41223 #. type: verbatim
41224 #: ../src/guestfs.pod:2851
41225 #, no-wrap
41226 msgid ""
41227 " ./configure --enable-gcc-warnings\n"
41228 "\n"
41229 msgstr ""
41230
41231 #. type: textblock
41232 #: ../src/guestfs.pod:2853
41233 msgid "Useful targets are:"
41234 msgstr ""
41235
41236 #. type: verbatim
41237 #: ../src/guestfs.pod:2855
41238 #, no-wrap
41239 msgid ""
41240 " make syntax-check  # checks the syntax of the C code\n"
41241 " make check         # runs the test suite\n"
41242 "\n"
41243 msgstr ""
41244
41245 #. type: =head2
41246 #: ../src/guestfs.pod:2858
41247 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
41248 msgstr ""
41249
41250 #. type: textblock
41251 #: ../src/guestfs.pod:2860
41252 msgid ""
41253 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
41254 "which are used to do shell quoting."
41255 msgstr ""
41256
41257 #. type: =item
41258 #: ../src/guestfs.pod:2865
41259 msgid "%Q"
41260 msgstr ""
41261
41262 #. type: textblock
41263 #: ../src/guestfs.pod:2867
41264 msgid ""
41265 "Simple shell quoted string.  Any spaces or other shell characters are "
41266 "escaped for you."
41267 msgstr ""
41268
41269 #. type: =item
41270 #: ../src/guestfs.pod:2870
41271 msgid "%R"
41272 msgstr ""
41273
41274 #. type: textblock
41275 #: ../src/guestfs.pod:2872
41276 msgid ""
41277 "Same as C<%Q> except the string is treated as a path which is prefixed by "
41278 "the sysroot."
41279 msgstr ""
41280
41281 #. type: verbatim
41282 #: ../src/guestfs.pod:2879
41283 #, no-wrap
41284 msgid ""
41285 " asprintf (&cmd, \"cat %R\", path);\n"
41286 "\n"
41287 msgstr ""
41288
41289 #. type: textblock
41290 #: ../src/guestfs.pod:2881
41291 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
41292 msgstr ""
41293
41294 #. type: textblock
41295 #: ../src/guestfs.pod:2883
41296 msgid ""
41297 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41298 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
41299 "they are not passed via the shell (instead, straight to exec).  You probably "
41300 "want to use the C<sysroot_path()> function however."
41301 msgstr ""
41302
41303 #. type: =head2
41304 #: ../src/guestfs.pod:2889
41305 msgid "SUBMITTING YOUR NEW API ACTIONS"
41306 msgstr ""
41307
41308 #. type: textblock
41309 #: ../src/guestfs.pod:2891
41310 msgid ""
41311 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41312 "libguestfs> and CC to L<rjones@redhat.com>."
41313 msgstr ""
41314
41315 #. type: =head2
41316 #: ../src/guestfs.pod:2895
41317 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41318 msgstr ""
41319
41320 #. type: textblock
41321 #: ../src/guestfs.pod:2897
41322 msgid "We support i18n (gettext anyhow) in the library."
41323 msgstr ""
41324
41325 #. type: textblock
41326 #: ../src/guestfs.pod:2899
41327 msgid ""
41328 "However many messages come from the daemon, and we don't translate those at "
41329 "the moment.  One reason is that the appliance generally has all locale files "
41330 "removed from it, because they take up a lot of space.  So we'd have to readd "
41331 "some of those, as well as copying our PO files into the appliance."
41332 msgstr ""
41333
41334 #. type: textblock
41335 #: ../src/guestfs.pod:2905
41336 msgid ""
41337 "Debugging messages are never translated, since they are intended for the "
41338 "programmers."
41339 msgstr ""
41340
41341 #. type: =head2
41342 #: ../src/guestfs.pod:2908
41343 msgid "SOURCE CODE SUBDIRECTORIES"
41344 msgstr ""
41345
41346 #. type: =item
41347 #: ../src/guestfs.pod:2912
41348 msgid "C<align>"
41349 msgstr ""
41350
41351 #. type: textblock
41352 #: ../src/guestfs.pod:2914
41353 msgid "L<virt-alignment-scan(1)> command and documentation."
41354 msgstr ""
41355
41356 #. type: textblock
41357 #: ../src/guestfs.pod:2918
41358 msgid "The libguestfs appliance, build scripts and so on."
41359 msgstr ""
41360
41361 #. type: =item
41362 #: ../src/guestfs.pod:2920
41363 msgid "C<capitests>"
41364 msgstr ""
41365
41366 #. type: textblock
41367 #: ../src/guestfs.pod:2922
41368 msgid "Automated tests of the C API."
41369 msgstr ""
41370
41371 #. type: =item
41372 #: ../src/guestfs.pod:2924
41373 msgid "C<cat>"
41374 msgstr ""
41375
41376 #. type: textblock
41377 #: ../src/guestfs.pod:2926
41378 msgid ""
41379 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41380 "documentation."
41381 msgstr ""
41382
41383 #. type: =item
41384 #: ../src/guestfs.pod:2929
41385 msgid "C<caution>"
41386 msgstr ""
41387
41388 #. type: textblock
41389 #: ../src/guestfs.pod:2931
41390 msgid ""
41391 "Safety and liveness tests of components that libguestfs depends upon (not of "
41392 "libguestfs itself).  Mainly this is for qemu and the kernel."
41393 msgstr ""
41394
41395 #. type: =item
41396 #: ../src/guestfs.pod:2934
41397 msgid "C<clone>"
41398 msgstr ""
41399
41400 #. type: textblock
41401 #: ../src/guestfs.pod:2936
41402 msgid ""
41403 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
41404 "command and documentation."
41405 msgstr ""
41406
41407 #. type: =item
41408 #: ../src/guestfs.pod:2939
41409 msgid "C<contrib>"
41410 msgstr ""
41411
41412 #. type: textblock
41413 #: ../src/guestfs.pod:2941
41414 msgid "Outside contributions, experimental parts."
41415 msgstr ""
41416
41417 #. type: =item
41418 #: ../src/guestfs.pod:2943
41419 msgid "C<daemon>"
41420 msgstr ""
41421
41422 #. type: textblock
41423 #: ../src/guestfs.pod:2945
41424 msgid ""
41425 "The daemon that runs inside the libguestfs appliance and carries out actions."
41426 msgstr ""
41427
41428 #. type: =item
41429 #: ../src/guestfs.pod:2948
41430 msgid "C<df>"
41431 msgstr ""
41432
41433 #. type: textblock
41434 #: ../src/guestfs.pod:2950
41435 msgid "L<virt-df(1)> command and documentation."
41436 msgstr ""
41437
41438 #. type: =item
41439 #: ../src/guestfs.pod:2952
41440 msgid "C<edit>"
41441 msgstr ""
41442
41443 #. type: textblock
41444 #: ../src/guestfs.pod:2954
41445 msgid "L<virt-edit(1)> command and documentation."
41446 msgstr ""
41447
41448 #. type: =item
41449 #: ../src/guestfs.pod:2956
41450 msgid "C<examples>"
41451 msgstr ""
41452
41453 #. type: textblock
41454 #: ../src/guestfs.pod:2958
41455 msgid "C API example code."
41456 msgstr ""
41457
41458 #. type: =item
41459 #: ../src/guestfs.pod:2960
41460 msgid "C<extratests>"
41461 msgstr ""
41462
41463 #. type: textblock
41464 #: ../src/guestfs.pod:2962
41465 msgid ""
41466 "Extra tests.  These are not run by default because they require special "
41467 "tools or configuration."
41468 msgstr ""
41469
41470 #. type: =item
41471 #: ../src/guestfs.pod:2965
41472 msgid "C<fish>"
41473 msgstr ""
41474
41475 #. type: textblock
41476 #: ../src/guestfs.pod:2967
41477 msgid ""
41478 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41479 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41480 "L<virt-tar-out(1)>."
41481 msgstr ""
41482
41483 #. type: =item
41484 #: ../src/guestfs.pod:2971
41485 msgid "C<fuse>"
41486 msgstr ""
41487
41488 #. type: textblock
41489 #: ../src/guestfs.pod:2973
41490 msgid ""
41491 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41492 msgstr ""
41493
41494 #. type: =item
41495 #: ../src/guestfs.pod:2975
41496 msgid "C<generator>"
41497 msgstr ""
41498
41499 #. type: textblock
41500 #: ../src/guestfs.pod:2977
41501 msgid ""
41502 "The crucially important generator, used to automatically generate large "
41503 "amounts of boilerplate C code for things like RPC and bindings."
41504 msgstr ""
41505
41506 #. type: =item
41507 #: ../src/guestfs.pod:2980
41508 msgid "C<images>"
41509 msgstr ""
41510
41511 #. type: textblock
41512 #: ../src/guestfs.pod:2982
41513 msgid "Files used by the test suite."
41514 msgstr ""
41515
41516 #. type: textblock
41517 #: ../src/guestfs.pod:2984
41518 msgid "Some \"phony\" guest images which we test against."
41519 msgstr ""
41520
41521 #. type: =item
41522 #: ../src/guestfs.pod:2986
41523 msgid "C<inspector>"
41524 msgstr ""
41525
41526 #. type: textblock
41527 #: ../src/guestfs.pod:2988
41528 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41529 msgstr ""
41530
41531 #. type: =item
41532 #: ../src/guestfs.pod:2990
41533 msgid "C<logo>"
41534 msgstr ""
41535
41536 #. type: textblock
41537 #: ../src/guestfs.pod:2992
41538 msgid "Logo used on the website.  The fish is called Arthur by the way."
41539 msgstr ""
41540
41541 #. type: =item
41542 #: ../src/guestfs.pod:2994
41543 msgid "C<m4>"
41544 msgstr ""
41545
41546 #. type: textblock
41547 #: ../src/guestfs.pod:2996
41548 msgid "M4 macros used by autoconf."
41549 msgstr ""
41550
41551 #. type: =item
41552 #: ../src/guestfs.pod:2998
41553 msgid "C<po>"
41554 msgstr ""
41555
41556 #. type: textblock
41557 #: ../src/guestfs.pod:3000
41558 msgid "Translations of simple gettext strings."
41559 msgstr ""
41560
41561 #. type: =item
41562 #: ../src/guestfs.pod:3002
41563 msgid "C<po-docs>"
41564 msgstr ""
41565
41566 #. type: textblock
41567 #: ../src/guestfs.pod:3004
41568 msgid ""
41569 "The build infrastructure and PO files for translations of manpages and POD "
41570 "files.  Eventually this will be combined with the C<po> directory, but that "
41571 "is rather complicated."
41572 msgstr ""
41573
41574 #. type: =item
41575 #: ../src/guestfs.pod:3008
41576 msgid "C<regressions>"
41577 msgstr ""
41578
41579 #. type: textblock
41580 #: ../src/guestfs.pod:3010
41581 msgid "Regression tests."
41582 msgstr ""
41583
41584 #. type: =item
41585 #: ../src/guestfs.pod:3012
41586 msgid "C<rescue>"
41587 msgstr ""
41588
41589 #. type: textblock
41590 #: ../src/guestfs.pod:3014
41591 msgid "L<virt-rescue(1)> command and documentation."
41592 msgstr ""
41593
41594 #. type: =item
41595 #: ../src/guestfs.pod:3016
41596 msgid "C<resize>"
41597 msgstr ""
41598
41599 #. type: textblock
41600 #: ../src/guestfs.pod:3018
41601 msgid "L<virt-resize(1)> command and documentation."
41602 msgstr ""
41603
41604 #. type: =item
41605 #: ../src/guestfs.pod:3020
41606 msgid "C<sparsify>"
41607 msgstr ""
41608
41609 #. type: textblock
41610 #: ../src/guestfs.pod:3022
41611 msgid "L<virt-sparsify(1)> command and documentation."
41612 msgstr ""
41613
41614 #. type: =item
41615 #: ../src/guestfs.pod:3024
41616 msgid "C<src>"
41617 msgstr ""
41618
41619 #. type: textblock
41620 #: ../src/guestfs.pod:3026
41621 msgid "Source code to the C library."
41622 msgstr ""
41623
41624 #. type: =item
41625 #: ../src/guestfs.pod:3028
41626 msgid "C<tools>"
41627 msgstr ""
41628
41629 #. type: textblock
41630 #: ../src/guestfs.pod:3030
41631 msgid ""
41632 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41633 msgstr ""
41634
41635 #. type: =item
41636 #: ../src/guestfs.pod:3032
41637 msgid "C<test-tool>"
41638 msgstr ""
41639
41640 #. type: textblock
41641 #: ../src/guestfs.pod:3034
41642 msgid ""
41643 "Test tool for end users to test if their qemu/kernel combination will work "
41644 "with libguestfs."
41645 msgstr ""
41646
41647 #. type: =item
41648 #: ../src/guestfs.pod:3037
41649 msgid "C<csharp>"
41650 msgstr ""
41651
41652 #. type: =item
41653 #: ../src/guestfs.pod:3039
41654 msgid "C<erlang>"
41655 msgstr ""
41656
41657 #. type: =item
41658 #: ../src/guestfs.pod:3041
41659 msgid "C<haskell>"
41660 msgstr ""
41661
41662 #. type: =item
41663 #: ../src/guestfs.pod:3043
41664 msgid "C<java>"
41665 msgstr ""
41666
41667 #. type: =item
41668 #: ../src/guestfs.pod:3045
41669 msgid "C<ocaml>"
41670 msgstr ""
41671
41672 #. type: =item
41673 #: ../src/guestfs.pod:3047
41674 msgid "C<php>"
41675 msgstr ""
41676
41677 #. type: =item
41678 #: ../src/guestfs.pod:3049
41679 msgid "C<perl>"
41680 msgstr ""
41681
41682 #. type: =item
41683 #: ../src/guestfs.pod:3051
41684 msgid "C<python>"
41685 msgstr ""
41686
41687 #. type: =item
41688 #: ../src/guestfs.pod:3053
41689 msgid "C<ruby>"
41690 msgstr ""
41691
41692 #. type: textblock
41693 #: ../src/guestfs.pod:3055
41694 msgid "Language bindings."
41695 msgstr ""
41696
41697 #. type: =head2
41698 #: ../src/guestfs.pod:3059
41699 msgid "MAKING A STABLE RELEASE"
41700 msgstr ""
41701
41702 #. type: textblock
41703 #: ../src/guestfs.pod:3061
41704 msgid ""
41705 "When we make a stable release, there are several steps documented here.  See "
41706 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41707 "branch policy."
41708 msgstr ""
41709
41710 #. type: textblock
41711 #: ../src/guestfs.pod:3069
41712 msgid ""
41713 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41714 msgstr ""
41715
41716 #. type: textblock
41717 #: ../src/guestfs.pod:3074
41718 msgid "Finalize RELEASE-NOTES."
41719 msgstr ""
41720
41721 #. type: textblock
41722 #: ../src/guestfs.pod:3078
41723 msgid "Update ROADMAP."
41724 msgstr ""
41725
41726 #. type: textblock
41727 #: ../src/guestfs.pod:3082
41728 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41729 msgstr ""
41730
41731 #. type: textblock
41732 #: ../src/guestfs.pod:3086
41733 msgid "Push and pull from Transifex."
41734 msgstr ""
41735
41736 #. type: verbatim
41737 #: ../src/guestfs.pod:3090
41738 #, no-wrap
41739 msgid ""
41740 " tx push -s\n"
41741 "\n"
41742 msgstr ""
41743
41744 #. type: textblock
41745 #: ../src/guestfs.pod:3092
41746 msgid "to push the latest POT files to Transifex.  Then run:"
41747 msgstr ""
41748
41749 #. type: verbatim
41750 #: ../src/guestfs.pod:3094
41751 #, no-wrap
41752 msgid ""
41753 " ./tx-pull.sh\n"
41754 "\n"
41755 msgstr ""
41756
41757 #. type: textblock
41758 #: ../src/guestfs.pod:3096
41759 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41760 msgstr ""
41761
41762 #. type: textblock
41763 #: ../src/guestfs.pod:3100
41764 msgid ""
41765 "Create new stable and development directories under L<http://libguestfs.org/"
41766 "download>."
41767 msgstr ""
41768
41769 #. type: textblock
41770 #: ../src/guestfs.pod:3105
41771 msgid "Create the branch in git:"
41772 msgstr ""
41773
41774 #. type: verbatim
41775 #: ../src/guestfs.pod:3107
41776 #, no-wrap
41777 msgid ""
41778 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41779 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41780 " git branch stable-1.XX\n"
41781 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41782 "\n"
41783 msgstr ""
41784
41785 #. type: =head1
41786 #: ../src/guestfs.pod:3114
41787 msgid "LIMITS"
41788 msgstr ""
41789
41790 #. type: =head2
41791 #: ../src/guestfs.pod:3116
41792 msgid "PROTOCOL LIMITS"
41793 msgstr ""
41794
41795 #. type: textblock
41796 #: ../src/guestfs.pod:3118
41797 msgid ""
41798 "Internally libguestfs uses a message-based protocol to pass API calls and "
41799 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41800 "plenty more detail about this).  The maximum message size used by the "
41801 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
41802 "aware of this limit.  The API calls which may be affected are individually "
41803 "documented, with a link back to this section of the documentation."
41804 msgstr ""
41805
41806 #. type: textblock
41807 #: ../src/guestfs.pod:3126
41808 msgid ""
41809 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41810 "a simple string.  Because this string is at some point internally encoded as "
41811 "a message, the maximum size that it can return is slightly under 4 MB.  If "
41812 "the requested file is larger than this then you will get an error."
41813 msgstr ""
41814
41815 #. type: textblock
41816 #: ../src/guestfs.pod:3132
41817 msgid ""
41818 "In order to transfer large files into and out of the guest filesystem, you "
41819 "need to use particular calls that support this.  The sections L</UPLOADING> "
41820 "and L</DOWNLOADING> document how to do this."
41821 msgstr ""
41822
41823 #. type: textblock
41824 #: ../src/guestfs.pod:3136
41825 msgid ""
41826 "You might also consider mounting the disk image using our FUSE filesystem "
41827 "support (L<guestmount(1)>)."
41828 msgstr ""
41829
41830 #. type: =head2
41831 #: ../src/guestfs.pod:3139
41832 msgid "MAXIMUM NUMBER OF DISKS"
41833 msgstr ""
41834
41835 #. type: textblock
41836 #: ../src/guestfs.pod:3141
41837 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41838 msgstr ""
41839
41840 #. type: textblock
41841 #: ../src/guestfs.pod:3144
41842 msgid ""
41843 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41844 "slots.  However febootstrap only understands disks with names C</dev/vda> "
41845 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41846 "purposes."
41847 msgstr ""
41848
41849 #. type: textblock
41850 #: ../src/guestfs.pod:3149
41851 msgid ""
41852 "We are working to substantially raise this limit in future versions but it "
41853 "requires complex changes to qemu."
41854 msgstr ""
41855
41856 #. type: textblock
41857 #: ../src/guestfs.pod:3152
41858 msgid ""
41859 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41860 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
41861 "requires changes to qemu."
41862 msgstr ""
41863
41864 #. type: =head2
41865 #: ../src/guestfs.pod:3156
41866 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41867 msgstr ""
41868
41869 #. type: textblock
41870 #: ../src/guestfs.pod:3158
41871 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41872 msgstr ""
41873
41874 #. type: textblock
41875 #: ../src/guestfs.pod:3160
41876 msgid ""
41877 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41878 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41879 msgstr ""
41880
41881 #. type: textblock
41882 #: ../src/guestfs.pod:3163
41883 msgid ""
41884 "If you attach a disk with more than 15 partitions, the extra partitions are "
41885 "ignored by libguestfs."
41886 msgstr ""
41887
41888 #. type: =head2
41889 #: ../src/guestfs.pod:3166
41890 msgid "MAXIMUM SIZE OF A DISK"
41891 msgstr ""
41892
41893 #. type: textblock
41894 #: ../src/guestfs.pod:3168
41895 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41896 msgstr ""
41897
41898 #. type: textblock
41899 #: ../src/guestfs.pod:3170
41900 msgid ""
41901 "We have tested block devices up to 1 exabyte (2**60 or "
41902 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41903 "filesystem."
41904 msgstr ""
41905
41906 #. type: textblock
41907 #: ../src/guestfs.pod:3174
41908 msgid ""
41909 "Although libguestfs probably does not impose any limit, the underlying host "
41910 "storage will.  If you store disk images on a host ext4 filesystem, then the "
41911 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41912 "TB).  If you store disk images as host logical volumes then you are limited "
41913 "by the maximum size of an LV."
41914 msgstr ""
41915
41916 #. type: textblock
41917 #: ../src/guestfs.pod:3180
41918 msgid ""
41919 "For the hugest disk image files, we recommend using XFS on the host for "
41920 "storage."
41921 msgstr ""
41922
41923 #. type: =head2
41924 #: ../src/guestfs.pod:3183
41925 msgid "MAXIMUM SIZE OF A PARTITION"
41926 msgstr ""
41927
41928 #. type: textblock
41929 #: ../src/guestfs.pod:3185
41930 msgid ""
41931 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41932 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
41933 "address a partition located beyond 2 TB on the disk."
41934 msgstr ""
41935
41936 #. type: textblock
41937 #: ../src/guestfs.pod:3189
41938 msgid ""
41939 "It is recommended that you use GPT partitions on disks which are larger than "
41940 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
41941 "which are theoretically larger than the largest disk we could support."
41942 msgstr ""
41943
41944 #. type: =head2
41945 #: ../src/guestfs.pod:3194
41946 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41947 msgstr ""
41948
41949 #. type: textblock
41950 #: ../src/guestfs.pod:3196
41951 msgid ""
41952 "This depends on the filesystem type.  libguestfs itself does not impose any "
41953 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
41954 "what these limits are."
41955 msgstr ""
41956
41957 #. type: =head2
41958 #: ../src/guestfs.pod:3200
41959 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41960 msgstr ""
41961
41962 #. type: textblock
41963 #: ../src/guestfs.pod:3202
41964 msgid ""
41965 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41966 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41967 "uploads and downloads."
41968 msgstr ""
41969
41970 #. type: =head2
41971 #: ../src/guestfs.pod:3206
41972 msgid "INSPECTION LIMITS"
41973 msgstr ""
41974
41975 #. type: textblock
41976 #: ../src/guestfs.pod:3208
41977 msgid ""
41978 "The inspection code has several arbitrary limits on things like the size of "
41979 "Windows Registry hive it will read, and the length of product name.  These "
41980 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41981 "memory and disk space on the host, and should not be reached in practice.  "
41982 "See the source code for more information."
41983 msgstr ""
41984
41985 #. type: textblock
41986 #: ../src/guestfs.pod:3234
41987 msgid ""
41988 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
41989 "effect as calling C<guestfs_set_verbose (g, 1)>."
41990 msgstr ""
41991
41992 #. type: textblock
41993 #: ../src/guestfs.pod:3246
41994 msgid ""
41995 "Set the path that libguestfs uses to search for a supermin appliance.  See "
41996 "the discussion of paths in section L</PATH> above."
41997 msgstr ""
41998
41999 #. type: textblock
42000 #: ../src/guestfs.pod:3255
42001 msgid "See also L</QEMU WRAPPERS> above."
42002 msgstr ""
42003
42004 #. type: textblock
42005 #: ../src/guestfs.pod:3259
42006 msgid ""
42007 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
42008 "effect as calling C<guestfs_set_trace (g, 1)>."
42009 msgstr ""
42010
42011 #. type: textblock
42012 #: ../src/guestfs.pod:3277
42013 msgid ""
42014 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
42015 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
42016 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
42017 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
42018 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
42019 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
42020 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
42021 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
42022 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
42023 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
42024 msgstr ""
42025
42026 #. type: textblock
42027 #: ../src/guestfs.pod:3314
42028 msgid ""
42029 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
42030 "(8)>, L<disktype(1)>."
42031 msgstr ""
42032
42033 #. type: =head1
42034 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571
42035 #: ../tools/virt-win-reg.pl:772
42036 msgid "BUGS"
42037 msgstr ""
42038
42039 #. type: textblock
42040 #: ../src/guestfs.pod:3323
42041 msgid "To get a list of bugs against libguestfs use this link:"
42042 msgstr ""
42043
42044 #. type: textblock
42045 #: ../src/guestfs.pod:3325
42046 msgid ""
42047 "L<https://bugzilla.redhat.com/buglist.cgi?"
42048 "component=libguestfs&product=Virtualization+Tools>"
42049 msgstr ""
42050
42051 #. type: textblock
42052 #: ../src/guestfs.pod:3327
42053 msgid "To report a new bug against libguestfs use this link:"
42054 msgstr ""
42055
42056 #. type: textblock
42057 #: ../src/guestfs.pod:3329
42058 msgid ""
42059 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
42060 "component=libguestfs&product=Virtualization+Tools>"
42061 msgstr ""
42062
42063 #. type: textblock
42064 #: ../src/guestfs.pod:3331
42065 msgid "When reporting a bug, please check:"
42066 msgstr ""
42067
42068 #. type: textblock
42069 #: ../src/guestfs.pod:3337
42070 msgid "That the bug hasn't been reported already."
42071 msgstr ""
42072
42073 #. type: textblock
42074 #: ../src/guestfs.pod:3341
42075 msgid "That you are testing a recent version."
42076 msgstr ""
42077
42078 #. type: textblock
42079 #: ../src/guestfs.pod:3345
42080 msgid "Describe the bug accurately, and give a way to reproduce it."
42081 msgstr ""
42082
42083 #. type: textblock
42084 #: ../src/guestfs.pod:3349
42085 msgid ""
42086 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
42087 "bug report."
42088 msgstr ""
42089
42090 #. type: textblock
42091 #: ../test-tool/libguestfs-test-tool.pod:5
42092 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
42093 msgstr ""
42094
42095 #. type: verbatim
42096 #: ../test-tool/libguestfs-test-tool.pod:9
42097 #, no-wrap
42098 msgid ""
42099 " libguestfs-test-tool [--options]\n"
42100 "\n"
42101 msgstr ""
42102
42103 #. type: textblock
42104 #: ../test-tool/libguestfs-test-tool.pod:13
42105 msgid ""
42106 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
42107 "to check basic libguestfs functionality is working.  This is needed because "
42108 "libguestfs occasionally breaks for reasons beyond our control: usually "
42109 "because of changes in the underlying qemu or kernel packages, or the host "
42110 "environment."
42111 msgstr ""
42112
42113 #. type: textblock
42114 #: ../test-tool/libguestfs-test-tool.pod:19
42115 msgid "If you suspect a problem in libguestfs, then just run:"
42116 msgstr ""
42117
42118 #. type: verbatim
42119 #: ../test-tool/libguestfs-test-tool.pod:21
42120 #, no-wrap
42121 msgid ""
42122 " libguestfs-test-tool\n"
42123 "\n"
42124 msgstr ""
42125
42126 #. type: textblock
42127 #: ../test-tool/libguestfs-test-tool.pod:23
42128 msgid "It will print lots of diagnostic messages."
42129 msgstr ""
42130
42131 #. type: textblock
42132 #: ../test-tool/libguestfs-test-tool.pod:25
42133 msgid "If it runs to completion successfully, you will see this near the end:"
42134 msgstr ""
42135
42136 #. type: verbatim
42137 #: ../test-tool/libguestfs-test-tool.pod:27
42138 #, no-wrap
42139 msgid ""
42140 " ===== TEST FINISHED OK =====\n"
42141 "\n"
42142 msgstr ""
42143
42144 #. type: textblock
42145 #: ../test-tool/libguestfs-test-tool.pod:29
42146 msgid "and the test tool will exit with code 0."
42147 msgstr ""
42148
42149 #. type: textblock
42150 #: ../test-tool/libguestfs-test-tool.pod:31
42151 msgid ""
42152 "If it fails (and/or exits with non-zero error code), please paste the "
42153 "I<complete, unedited> output of the test tool into a bug report.  More "
42154 "information about reporting bugs can be found on the L<http://libguestfs.org/"
42155 "> website."
42156 msgstr ""
42157
42158 #. type: textblock
42159 #: ../test-tool/libguestfs-test-tool.pod:42
42160 msgid "Display short usage information and exit."
42161 msgstr ""
42162
42163 #. type: =item
42164 #: ../test-tool/libguestfs-test-tool.pod:44
42165 msgid "B<--qemu qemu_binary>"
42166 msgstr ""
42167
42168 #. type: textblock
42169 #: ../test-tool/libguestfs-test-tool.pod:46
42170 msgid ""
42171 "If you have downloaded another qemu binary, point this option at the full "
42172 "path of the binary to try it."
42173 msgstr ""
42174
42175 #. type: =item
42176 #: ../test-tool/libguestfs-test-tool.pod:49
42177 msgid "B<--qemudir qemu_source_dir>"
42178 msgstr ""
42179
42180 #. type: textblock
42181 #: ../test-tool/libguestfs-test-tool.pod:51
42182 msgid ""
42183 "If you have compiled qemu from source, point this option at the source "
42184 "directory to try it."
42185 msgstr ""
42186
42187 #. type: =item
42188 #: ../test-tool/libguestfs-test-tool.pod:54
42189 msgid "B<-t N>"
42190 msgstr ""
42191
42192 #. type: =item
42193 #: ../test-tool/libguestfs-test-tool.pod:56
42194 msgid "B<--timeout N>"
42195 msgstr ""
42196
42197 #. type: textblock
42198 #: ../test-tool/libguestfs-test-tool.pod:58
42199 msgid ""
42200 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
42201 "minutes) which does not usually need to be adjusted."
42202 msgstr ""
42203
42204 #. type: =head1
42205 #: ../test-tool/libguestfs-test-tool.pod:63
42206 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
42207 msgstr ""
42208
42209 #. type: textblock
42210 #: ../test-tool/libguestfs-test-tool.pod:65
42211 msgid ""
42212 "If you have compiled another version of qemu from source and would like to "
42213 "try that, then you can use the I<--qemudir> option to point to the qemu "
42214 "source directory."
42215 msgstr ""
42216
42217 #. type: textblock
42218 #: ../test-tool/libguestfs-test-tool.pod:69
42219 msgid ""
42220 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
42221 "option to point to the binary."
42222 msgstr ""
42223
42224 #. type: textblock
42225 #: ../test-tool/libguestfs-test-tool.pod:72
42226 msgid ""
42227 "Note when using these options, you can ignore the business of qemu wrapper "
42228 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
42229 "wrapper script for you if one is needed."
42230 msgstr ""
42231
42232 #. type: =head1
42233 #: ../test-tool/libguestfs-test-tool.pod:76
42234 msgid "TRYING OUT A DIFFERENT KERNEL"
42235 msgstr ""
42236
42237 #. type: textblock
42238 #: ../test-tool/libguestfs-test-tool.pod:78
42239 msgid ""
42240 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
42241 "libguestfs tries.  You do this by setting the environment variables "
42242 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
42243 msgstr ""
42244
42245 #. type: textblock
42246 #: ../test-tool/libguestfs-test-tool.pod:82
42247 msgid ""
42248 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
42249 "information."
42250 msgstr ""
42251
42252 #. type: =head1
42253 #: ../test-tool/libguestfs-test-tool.pod:85
42254 msgid "SELF-DIAGNOSIS"
42255 msgstr ""
42256
42257 #. type: textblock
42258 #: ../test-tool/libguestfs-test-tool.pod:87
42259 msgid ""
42260 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
42261 "produced by libguestfs-test-tool and/or possible errors."
42262 msgstr ""
42263
42264 #. type: textblock
42265 #: ../test-tool/libguestfs-test-tool.pod:92
42266 msgid ""
42267 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
42268 "I<1> if there was an error."
42269 msgstr ""
42270
42271 #. type: textblock
42272 #: ../test-tool/libguestfs-test-tool.pod:97
42273 msgid ""
42274 "For the full list of environment variables which may affect libguestfs, "
42275 "please see the L<guestfs(3)> manual page."
42276 msgstr ""
42277
42278 #. type: textblock
42279 #: ../test-tool/libguestfs-test-tool.pod:102
42280 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
42281 msgstr ""
42282
42283 #. type: textblock
42284 #: ../tools/virt-list-filesystems.pl:32
42285 msgid ""
42286 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
42287 msgstr ""
42288
42289 #. type: verbatim
42290 #: ../tools/virt-list-filesystems.pl:36
42291 #, no-wrap
42292 msgid ""
42293 " virt-list-filesystems [--options] domname\n"
42294 "\n"
42295 msgstr ""
42296
42297 #. type: verbatim
42298 #: ../tools/virt-list-filesystems.pl:38
42299 #, no-wrap
42300 msgid ""
42301 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42302 "\n"
42303 msgstr ""
42304
42305 #. type: textblock
42306 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42307 msgid ""
42308 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
42309 "replacement."
42310 msgstr ""
42311
42312 #. type: textblock
42313 #: ../tools/virt-list-filesystems.pl:45
42314 msgid ""
42315 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42316 "are contained in a virtual machine or disk image."
42317 msgstr ""
42318
42319 #. type: textblock
42320 #: ../tools/virt-list-filesystems.pl:49
42321 msgid ""
42322 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42323 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42324 "> tool."
42325 msgstr ""
42326
42327 #. type: textblock
42328 #: ../tools/virt-list-filesystems.pl:112
42329 msgid ""
42330 "With this option, C<virt-list-filesystems> displays the type of each "
42331 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42332 msgstr ""
42333
42334 #. type: =item
42335 #: ../tools/virt-list-filesystems.pl:119
42336 msgid "B<-a>"
42337 msgstr ""
42338
42339 #. type: textblock
42340 #: ../tools/virt-list-filesystems.pl:123
42341 msgid ""
42342 "Normally we only show mountable filesystems.  If this option is given then "
42343 "swap devices are shown too."
42344 msgstr ""
42345
42346 #. type: textblock
42347 #: ../tools/virt-list-filesystems.pl:197
42348 msgid ""
42349 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42350 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42351 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42352 msgstr ""
42353
42354 #. type: textblock
42355 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42356 msgid "Copyright (C) 2009 Red Hat Inc."
42357 msgstr ""
42358
42359 #. type: textblock
42360 #: ../tools/virt-list-partitions.pl:32
42361 msgid ""
42362 "virt-list-partitions - List partitions in a virtual machine or disk image"
42363 msgstr ""
42364
42365 #. type: verbatim
42366 #: ../tools/virt-list-partitions.pl:36
42367 #, no-wrap
42368 msgid ""
42369 " virt-list-partitions [--options] domname\n"
42370 "\n"
42371 msgstr ""
42372
42373 #. type: verbatim
42374 #: ../tools/virt-list-partitions.pl:38
42375 #, no-wrap
42376 msgid ""
42377 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42378 "\n"
42379 msgstr ""
42380
42381 #. type: textblock
42382 #: ../tools/virt-list-partitions.pl:45
42383 msgid ""
42384 "C<virt-list-partitions> is a command line tool to list the partitions that "
42385 "are contained in a virtual machine or disk image.  It is mainly useful as a "
42386 "first step to using L<virt-resize(1)>."
42387 msgstr ""
42388
42389 #. type: textblock
42390 #: ../tools/virt-list-partitions.pl:50
42391 msgid ""
42392 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42393 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42394 "> tool."
42395 msgstr ""
42396
42397 #. type: textblock
42398 #: ../tools/virt-list-partitions.pl:113
42399 msgid "Show sizes in human-readable form (eg. \"1G\")."
42400 msgstr ""
42401
42402 #. type: textblock
42403 #: ../tools/virt-list-partitions.pl:123
42404 msgid ""
42405 "With this option, C<virt-list-partitions> displays the type and size of each "
42406 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42407 msgstr ""
42408
42409 #. type: =item
42410 #: ../tools/virt-list-partitions.pl:130
42411 msgid "B<-t>"
42412 msgstr ""
42413
42414 #. type: =item
42415 #: ../tools/virt-list-partitions.pl:132
42416 msgid "B<--total>"
42417 msgstr ""
42418
42419 #. type: textblock
42420 #: ../tools/virt-list-partitions.pl:134
42421 msgid ""
42422 "Display the total size of each block device (as a separate row or rows)."
42423 msgstr ""
42424
42425 #. type: textblock
42426 #: ../tools/virt-list-partitions.pl:267
42427 msgid ""
42428 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42429 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42430 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42431 msgstr ""
42432
42433 #. type: textblock
42434 #: ../tools/virt-list-partitions.pl:283
42435 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42436 msgstr ""
42437
42438 #. type: textblock
42439 #: ../tools/virt-make-fs.pl:37
42440 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42441 msgstr ""
42442
42443 #. type: verbatim
42444 #: ../tools/virt-make-fs.pl:41
42445 #, no-wrap
42446 msgid ""
42447 " virt-make-fs [--options] input.tar output.img\n"
42448 "\n"
42449 msgstr ""
42450
42451 #. type: verbatim
42452 #: ../tools/virt-make-fs.pl:43
42453 #, no-wrap
42454 msgid ""
42455 " virt-make-fs [--options] input.tar.gz output.img\n"
42456 "\n"
42457 msgstr ""
42458
42459 #. type: verbatim
42460 #: ../tools/virt-make-fs.pl:45
42461 #, no-wrap
42462 msgid ""
42463 " virt-make-fs [--options] directory output.img\n"
42464 "\n"
42465 msgstr ""
42466
42467 #. type: textblock
42468 #: ../tools/virt-make-fs.pl:49
42469 msgid ""
42470 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42471 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
42472 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
42473 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42474 "you want to attach these filesystems to existing virtual machines (eg. to "
42475 "import large amounts of read-only data to a VM)."
42476 msgstr ""
42477
42478 #. type: textblock
42479 #: ../tools/virt-make-fs.pl:57
42480 msgid "Basic usage is:"
42481 msgstr ""
42482
42483 #. type: verbatim
42484 #: ../tools/virt-make-fs.pl:59
42485 #, no-wrap
42486 msgid ""
42487 " virt-make-fs input output.img\n"
42488 "\n"
42489 msgstr ""
42490
42491 #. type: textblock
42492 #: ../tools/virt-make-fs.pl:61
42493 msgid ""
42494 "where C<input> is either a directory containing files that you want to add, "
42495 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42496 "C<output.img> is a disk image.  The input type is detected automatically.  "
42497 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42498 "extra flags (see L</OPTIONS> below)."
42499 msgstr ""
42500
42501 #. type: =head2
42502 #: ../tools/virt-make-fs.pl:67
42503 msgid "FILESYSTEM TYPE"
42504 msgstr ""
42505
42506 #. type: textblock
42507 #: ../tools/virt-make-fs.pl:69
42508 msgid ""
42509 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
42510 "libguestfs supports can be used (but I<not> read-only formats like "
42511 "ISO9660).  Here are some of the more common choices:"
42512 msgstr ""
42513
42514 #. type: =item
42515 #: ../tools/virt-make-fs.pl:75
42516 msgid "I<ext3>"
42517 msgstr ""
42518
42519 #. type: textblock
42520 #: ../tools/virt-make-fs.pl:77
42521 msgid ""
42522 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
42523 "you are not going to use the filesystem in a way that requires the journal, "
42524 "then this is just wasted overhead."
42525 msgstr ""
42526
42527 #. type: =item
42528 #: ../tools/virt-make-fs.pl:81
42529 msgid "I<ntfs> or I<vfat>"
42530 msgstr ""
42531
42532 #. type: textblock
42533 #: ../tools/virt-make-fs.pl:83
42534 msgid "Useful if exporting data to a Windows guest."
42535 msgstr ""
42536
42537 #. type: textblock
42538 #: ../tools/virt-make-fs.pl:85
42539 msgid ""
42540 "I<Note for vfat>: The tar archive or local directory must only contain files "
42541 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
42542 "program running within libguestfs is unable to change the ownership of non-"
42543 "root files, since vfat itself does not support this."
42544 msgstr ""
42545
42546 #. type: =item
42547 #: ../tools/virt-make-fs.pl:90
42548 msgid "I<minix>"
42549 msgstr ""
42550
42551 #. type: textblock
42552 #: ../tools/virt-make-fs.pl:92
42553 msgid ""
42554 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42555 "total filesystem size."
42556 msgstr ""
42557
42558 #. type: =head3
42559 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42560 #: ../tools/virt-make-fs.pl:149
42561 msgid "EXAMPLE"
42562 msgstr ""
42563
42564 #. type: verbatim
42565 #: ../tools/virt-make-fs.pl:99
42566 #, no-wrap
42567 msgid ""
42568 " virt-make-fs --type=minix input minixfs.img\n"
42569 "\n"
42570 msgstr ""
42571
42572 #. type: =head2
42573 #: ../tools/virt-make-fs.pl:101
42574 msgid "TO PARTITION OR NOT TO PARTITION"
42575 msgstr ""
42576
42577 #. type: textblock
42578 #: ../tools/virt-make-fs.pl:103
42579 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42580 msgstr ""
42581
42582 #. type: textblock
42583 #: ../tools/virt-make-fs.pl:105
42584 msgid ""
42585 "Adding a partition can make the disk image more compatible with certain "
42586 "virtualized operating systems which don't expect to see a filesystem "
42587 "directly located on a block device (Linux doesn't care and will happily "
42588 "handle both types)."
42589 msgstr ""
42590
42591 #. type: textblock
42592 #: ../tools/virt-make-fs.pl:110
42593 msgid ""
42594 "On the other hand, if you have a partition table then the output image is no "
42595 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
42596 "directly on a partitioned disk image.  (However libguestfs tools such as "
42597 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42598 msgstr ""
42599
42600 #. type: textblock
42601 #: ../tools/virt-make-fs.pl:118
42602 msgid "Add an MBR partition:"
42603 msgstr ""
42604
42605 #. type: verbatim
42606 #: ../tools/virt-make-fs.pl:120
42607 #, no-wrap
42608 msgid ""
42609 " virt-make-fs --partition -- input disk.img\n"
42610 "\n"
42611 msgstr ""
42612
42613 #. type: textblock
42614 #: ../tools/virt-make-fs.pl:122
42615 msgid ""
42616 "If the output disk image could be terabyte-sized or larger, it's better to "
42617 "use an EFI/GPT-compatible partition table:"
42618 msgstr ""
42619
42620 #. type: verbatim
42621 #: ../tools/virt-make-fs.pl:125
42622 #, no-wrap
42623 msgid ""
42624 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42625 "\n"
42626 msgstr ""
42627
42628 #. type: =head2
42629 #: ../tools/virt-make-fs.pl:127
42630 msgid "EXTRA SPACE"
42631 msgstr ""
42632
42633 #. type: textblock
42634 #: ../tools/virt-make-fs.pl:129
42635 msgid ""
42636 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42637 "the files that it contains, but might have extra space.  Depending on how "
42638 "you are going to use the output, you might think this extra space is wasted "
42639 "and want to minimize it, or you might want to leave space so that more files "
42640 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
42641 "but you can use the I<--size> flag to leave space in the filesystem if you "
42642 "want it."
42643 msgstr ""
42644
42645 #. type: textblock
42646 #: ../tools/virt-make-fs.pl:137
42647 msgid ""
42648 "An alternative way to leave extra space but not make the output image any "
42649 "bigger is to use an alternative disk image format (instead of the default "
42650 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42651 "image format (check your hypervisor supports this before using it).  This "
42652 "allows you to choose a large I<--size> but the extra space won't actually be "
42653 "allocated in the image until you try to store something in it."
42654 msgstr ""
42655
42656 #. type: textblock
42657 #: ../tools/virt-make-fs.pl:145
42658 msgid ""
42659 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42660 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42661 "to build another image from scratch."
42662 msgstr ""
42663
42664 #. type: verbatim
42665 #: ../tools/virt-make-fs.pl:151
42666 #, no-wrap
42667 msgid ""
42668 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42669 "\n"
42670 msgstr ""
42671
42672 #. type: textblock
42673 #: ../tools/virt-make-fs.pl:179
42674 msgid "Enable debugging information."
42675 msgstr ""
42676
42677 #. type: =item
42678 #: ../tools/virt-make-fs.pl:185
42679 msgid "B<--size=E<lt>NE<gt>>"
42680 msgstr ""
42681
42682 #. type: =item
42683 #: ../tools/virt-make-fs.pl:187
42684 msgid "B<--size=+E<lt>NE<gt>>"
42685 msgstr ""
42686
42687 #. type: =item
42688 #: ../tools/virt-make-fs.pl:189
42689 msgid "B<-s E<lt>NE<gt>>"
42690 msgstr ""
42691
42692 #. type: =item
42693 #: ../tools/virt-make-fs.pl:191
42694 msgid "B<-s +E<lt>NE<gt>>"
42695 msgstr ""
42696
42697 #. type: textblock
42698 #: ../tools/virt-make-fs.pl:193
42699 msgid ""
42700 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42701 msgstr ""
42702
42703 #. type: textblock
42704 #: ../tools/virt-make-fs.pl:196
42705 msgid ""
42706 "If this option is I<not> given, then the output image will be just large "
42707 "enough to contain all the files, with not much wasted space."
42708 msgstr ""
42709
42710 #. type: textblock
42711 #: ../tools/virt-make-fs.pl:199
42712 msgid ""
42713 "To choose a fixed size output disk, specify an absolute number followed by b/"
42714 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42715 "Petabytes or Exabytes.  This must be large enough to contain all the input "
42716 "files, else you will get an error."
42717 msgstr ""
42718
42719 #. type: textblock
42720 #: ../tools/virt-make-fs.pl:204
42721 msgid ""
42722 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42723 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42724 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
42725 "the input files, and (approximately) an extra 200 MB free space."
42726 msgstr ""
42727
42728 #. type: textblock
42729 #: ../tools/virt-make-fs.pl:210
42730 msgid ""
42731 "Note that virt-make-fs estimates free space, and therefore will not produce "
42732 "filesystems containing precisely the free space requested.  (It is much more "
42733 "expensive and time-consuming to produce a filesystem which has precisely the "
42734 "desired free space)."
42735 msgstr ""
42736
42737 #. type: =item
42738 #: ../tools/virt-make-fs.pl:219
42739 msgid "B<--format=E<lt>fmtE<gt>>"
42740 msgstr ""
42741
42742 #. type: =item
42743 #: ../tools/virt-make-fs.pl:221
42744 msgid "B<-F E<lt>fmtE<gt>>"
42745 msgstr ""
42746
42747 #. type: textblock
42748 #: ../tools/virt-make-fs.pl:223
42749 msgid "Choose the output disk image format."
42750 msgstr ""
42751
42752 #. type: textblock
42753 #: ../tools/virt-make-fs.pl:225
42754 msgid "The default is C<raw> (raw sparse disk image)."
42755 msgstr ""
42756
42757 #. type: textblock
42758 #: ../tools/virt-make-fs.pl:227
42759 msgid ""
42760 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
42761 "that would really make sense here is C<qcow2>."
42762 msgstr ""
42763
42764 #. type: =item
42765 #: ../tools/virt-make-fs.pl:234
42766 msgid "B<--type=E<lt>fsE<gt>>"
42767 msgstr ""
42768
42769 #. type: =item
42770 #: ../tools/virt-make-fs.pl:236
42771 msgid "B<-t E<lt>fsE<gt>>"
42772 msgstr ""
42773
42774 #. type: textblock
42775 #: ../tools/virt-make-fs.pl:238
42776 msgid "Choose the output filesystem type."
42777 msgstr ""
42778
42779 #. type: textblock
42780 #: ../tools/virt-make-fs.pl:240
42781 msgid "The default is C<ext2>."
42782 msgstr ""
42783
42784 #. type: textblock
42785 #: ../tools/virt-make-fs.pl:242
42786 msgid ""
42787 "Any filesystem which is supported read-write by libguestfs can be used here."
42788 msgstr ""
42789
42790 #. type: =item
42791 #: ../tools/virt-make-fs.pl:249
42792 msgid "B<--partition>"
42793 msgstr ""
42794
42795 #. type: =item
42796 #: ../tools/virt-make-fs.pl:251
42797 msgid "B<--partition=E<lt>parttypeE<gt>>"
42798 msgstr ""
42799
42800 #. type: textblock
42801 #: ../tools/virt-make-fs.pl:253
42802 msgid ""
42803 "If specified, this flag adds an MBR partition table to the output disk image."
42804 msgstr ""
42805
42806 #. type: textblock
42807 #: ../tools/virt-make-fs.pl:256
42808 msgid ""
42809 "You can change the partition table type, eg. I<--partition=gpt> for large "
42810 "disks."
42811 msgstr ""
42812
42813 #. type: textblock
42814 #: ../tools/virt-make-fs.pl:259
42815 msgid ""
42816 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42817 "might consider the next parameter to be the partition type.  For example:"
42818 msgstr ""
42819
42820 #. type: verbatim
42821 #: ../tools/virt-make-fs.pl:263
42822 #, no-wrap
42823 msgid ""
42824 " virt-make-fs --partition input.tar output.img\n"
42825 "\n"
42826 msgstr ""
42827
42828 #. type: textblock
42829 #: ../tools/virt-make-fs.pl:265
42830 msgid ""
42831 "would cause virt-make-fs to think you wanted to use a partition type of "
42832 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
42833 "dash) between options and the input and output arguments:"
42834 msgstr ""
42835
42836 #. type: verbatim
42837 #: ../tools/virt-make-fs.pl:269
42838 #, no-wrap
42839 msgid ""
42840 " virt-make-fs --partition -- input.tar output.img\n"
42841 "\n"
42842 msgstr ""
42843
42844 #. type: textblock
42845 #: ../tools/virt-make-fs.pl:271
42846 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42847 msgstr ""
42848
42849 #. type: textblock
42850 #: ../tools/virt-make-fs.pl:559
42851 msgid ""
42852 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42853 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42854 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42855 msgstr ""
42856
42857 #. type: textblock
42858 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42859 msgid ""
42860 "When reporting bugs, please enable debugging and capture the I<complete> "
42861 "output:"
42862 msgstr ""
42863
42864 #. type: verbatim
42865 #: ../tools/virt-make-fs.pl:576
42866 #, no-wrap
42867 msgid ""
42868 " export LIBGUESTFS_DEBUG=1\n"
42869 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42870 "\n"
42871 msgstr ""
42872
42873 #. type: textblock
42874 #: ../tools/virt-make-fs.pl:579
42875 msgid ""
42876 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42877 "redhat.com/>"
42878 msgstr ""
42879
42880 #. type: textblock
42881 #: ../tools/virt-tar.pl:33
42882 msgid "virt-tar - Extract or upload files to a virtual machine"
42883 msgstr ""
42884
42885 #. type: verbatim
42886 #: ../tools/virt-tar.pl:37
42887 #, no-wrap
42888 msgid ""
42889 " virt-tar [--options] -x domname directory tarball\n"
42890 "\n"
42891 msgstr ""
42892
42893 #. type: verbatim
42894 #: ../tools/virt-tar.pl:39
42895 #, no-wrap
42896 msgid ""
42897 " virt-tar [--options] -u domname tarball directory\n"
42898 "\n"
42899 msgstr ""
42900
42901 #. type: verbatim
42902 #: ../tools/virt-tar.pl:41
42903 #, no-wrap
42904 msgid ""
42905 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42906 "\n"
42907 msgstr ""
42908
42909 #. type: verbatim
42910 #: ../tools/virt-tar.pl:43
42911 #, no-wrap
42912 msgid ""
42913 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42914 "\n"
42915 msgstr ""
42916
42917 #. type: =head2
42918 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42919 msgid "NOTE"
42920 msgstr ""
42921
42922 #. type: textblock
42923 #: ../tools/virt-tar.pl:47
42924 msgid ""
42925 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42926 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42927 msgstr ""
42928
42929 #. type: textblock
42930 #: ../tools/virt-tar.pl:52
42931 msgid "Download C</home> from the VM into a local tarball:"
42932 msgstr ""
42933
42934 #. type: verbatim
42935 #: ../tools/virt-tar.pl:54
42936 #, no-wrap
42937 msgid ""
42938 " virt-tar -x domname /home home.tar\n"
42939 "\n"
42940 msgstr ""
42941
42942 #. type: verbatim
42943 #: ../tools/virt-tar.pl:56
42944 #, no-wrap
42945 msgid ""
42946 " virt-tar -zx domname /home home.tar.gz\n"
42947 "\n"
42948 msgstr ""
42949
42950 #. type: textblock
42951 #: ../tools/virt-tar.pl:58
42952 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42953 msgstr ""
42954
42955 #. type: verbatim
42956 #: ../tools/virt-tar.pl:60
42957 #, no-wrap
42958 msgid ""
42959 " virt-tar -u domname uploadstuff.tar /tmp\n"
42960 "\n"
42961 msgstr ""
42962
42963 #. type: verbatim
42964 #: ../tools/virt-tar.pl:62
42965 #, no-wrap
42966 msgid ""
42967 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42968 "\n"
42969 msgstr ""
42970
42971 #. type: textblock
42972 #: ../tools/virt-tar.pl:66
42973 msgid ""
42974 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42975 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
42976 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42977 msgstr ""
42978
42979 #. type: textblock
42980 #: ../tools/virt-tar.pl:71
42981 msgid ""
42982 "You can use I<-x> (extract) on live virtual machines, but you might get "
42983 "inconsistent results or errors if there is filesystem activity inside the "
42984 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
42985 "work, but the only way to guarantee consistent results is if the virtual "
42986 "machine is shut down."
42987 msgstr ""
42988
42989 #. type: textblock
42990 #: ../tools/virt-tar.pl:79
42991 msgid ""
42992 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42993 "parts of a guest filesystem.  There are many possibilities: making backups, "
42994 "uploading data files, snooping on guest activity, fixing or customizing "
42995 "guests, etc."
42996 msgstr ""
42997
42998 #. type: textblock
42999 #: ../tools/virt-tar.pl:84
43000 msgid ""
43001 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
43002 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
43003 "should look at the L<guestfish(1)> tool."
43004 msgstr ""
43005
43006 #. type: textblock
43007 #: ../tools/virt-tar.pl:88
43008 msgid ""
43009 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
43010 "its contents (recursively) from the virtual machine into a local tarball.  "
43011 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
43012 "virtual machine.  You cannot use these two options together."
43013 msgstr ""
43014
43015 #. type: textblock
43016 #: ../tools/virt-tar.pl:94
43017 msgid ""
43018 "In addition, you may need to use the I<-z> (gZip) option to enable "
43019 "compression.  When uploading, you have to specify I<-z> if the upload file "
43020 "is compressed because virt-tar won't detect this on its own."
43021 msgstr ""
43022
43023 #. type: textblock
43024 #: ../tools/virt-tar.pl:98
43025 msgid ""
43026 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
43027 "example it cannot do PKZip files or bzip2 compression.  If you want that "
43028 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
43029 "the L<libguestfs(3)> API)."
43030 msgstr ""
43031
43032 #. type: =item
43033 #: ../tools/virt-tar.pl:160
43034 msgid "B<--extract>"
43035 msgstr ""
43036
43037 #. type: =item
43038 #: ../tools/virt-tar.pl:162
43039 msgid "B<--download>"
43040 msgstr ""
43041
43042 #. type: =item
43043 #: ../tools/virt-tar.pl:164
43044 msgid "B<-u>"
43045 msgstr ""
43046
43047 #. type: =item
43048 #: ../tools/virt-tar.pl:166
43049 msgid "B<--upload>"
43050 msgstr ""
43051
43052 #. type: textblock
43053 #: ../tools/virt-tar.pl:168
43054 msgid ""
43055 "Use I<-x> to extract (download) a directory from a virtual machine to a "
43056 "local tarball."
43057 msgstr ""
43058
43059 #. type: textblock
43060 #: ../tools/virt-tar.pl:171
43061 msgid ""
43062 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
43063 "Please read the L</WARNING> section above before using this option."
43064 msgstr ""
43065
43066 #. type: textblock
43067 #: ../tools/virt-tar.pl:175
43068 msgid "You must specify exactly one of these options."
43069 msgstr ""
43070
43071 #. type: =item
43072 #: ../tools/virt-tar.pl:181
43073 msgid "B<-z>"
43074 msgstr ""
43075
43076 #. type: =item
43077 #: ../tools/virt-tar.pl:183
43078 msgid "B<--gzip>"
43079 msgstr ""
43080
43081 #. type: textblock
43082 #: ../tools/virt-tar.pl:185
43083 msgid "Specify that the input or output tarball is gzip-compressed."
43084 msgstr ""
43085
43086 #. type: textblock
43087 #: ../tools/virt-tar.pl:298
43088 msgid ""
43089 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
43090 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
43091 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
43092 "org/>."
43093 msgstr ""
43094
43095 #. type: textblock
43096 #: ../tools/virt-win-reg.pl:37
43097 msgid ""
43098 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
43099 msgstr ""
43100
43101 #. type: verbatim
43102 #: ../tools/virt-win-reg.pl:41
43103 #, no-wrap
43104 msgid ""
43105 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
43106 "\n"
43107 msgstr ""
43108
43109 #. type: verbatim
43110 #: ../tools/virt-win-reg.pl:43
43111 #, no-wrap
43112 msgid ""
43113 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
43114 "\n"
43115 msgstr ""
43116
43117 #. type: verbatim
43118 #: ../tools/virt-win-reg.pl:45
43119 #, no-wrap
43120 msgid ""
43121 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
43122 "\n"
43123 msgstr ""
43124
43125 #. type: verbatim
43126 #: ../tools/virt-win-reg.pl:47
43127 #, no-wrap
43128 msgid ""
43129 " virt-win-reg --merge domname [input.reg ...]\n"
43130 "\n"
43131 msgstr ""
43132
43133 #. type: verbatim
43134 #: ../tools/virt-win-reg.pl:49
43135 #, no-wrap
43136 msgid ""
43137 " virt-win-reg [--options] disk.img ... # instead of domname\n"
43138 "\n"
43139 msgstr ""
43140
43141 #. type: textblock
43142 #: ../tools/virt-win-reg.pl:53
43143 msgid ""
43144 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
43145 "virtual machines.  If you do this, you I<will> get irreversible disk "
43146 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
43147 "but doesn't catch all cases."
43148 msgstr ""
43149
43150 #. type: textblock
43151 #: ../tools/virt-win-reg.pl:58
43152 msgid ""
43153 "Modifying the Windows Registry is an inherently risky operation.  The format "
43154 "is deliberately obscure and undocumented, and Registry changes can leave the "
43155 "system unbootable.  Therefore when using the I<--merge> option, make sure "
43156 "you have a reliable backup first."
43157 msgstr ""
43158
43159 #. type: textblock
43160 #: ../tools/virt-win-reg.pl:65
43161 msgid ""
43162 "This program can export and merge Windows Registry entries from a Windows "
43163 "guest."
43164 msgstr ""
43165
43166 #. type: textblock
43167 #: ../tools/virt-win-reg.pl:68
43168 msgid ""
43169 "The first parameter is the libvirt guest name or the raw disk image of a "
43170 "Windows guest."
43171 msgstr ""
43172
43173 #. type: textblock
43174 #: ../tools/virt-win-reg.pl:71
43175 msgid ""
43176 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
43177 "exported (recursively).  For example:"
43178 msgstr ""
43179
43180 #. type: verbatim
43181 #: ../tools/virt-win-reg.pl:74
43182 #, no-wrap
43183 msgid ""
43184 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43185 "\n"
43186 msgstr ""
43187
43188 #. type: textblock
43189 #: ../tools/virt-win-reg.pl:76
43190 msgid ""
43191 "You can also display single values from within registry keys, for example:"
43192 msgstr ""
43193
43194 #. type: verbatim
43195 #: ../tools/virt-win-reg.pl:79
43196 #, no-wrap
43197 msgid ""
43198 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43199 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43200 " Windows 7 Enterprise\n"
43201 "\n"
43202 msgstr ""
43203
43204 #. type: textblock
43205 #: ../tools/virt-win-reg.pl:83
43206 msgid ""
43207 "With I<--merge>, you can merge a textual regedit file into the Windows "
43208 "Registry:"
43209 msgstr ""
43210
43211 #. type: verbatim
43212 #: ../tools/virt-win-reg.pl:86
43213 #, no-wrap
43214 msgid ""
43215 " $ virt-win-reg --merge Windows7 changes.reg\n"
43216 "\n"
43217 msgstr ""
43218
43219 #. type: textblock
43220 #: ../tools/virt-win-reg.pl:90
43221 msgid ""
43222 "This program is only meant for simple access to the registry.  If you want "
43223 "to do complicated things with the registry, we suggest you download the "
43224 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
43225 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
43226 "L<hivexregedit(1)>."
43227 msgstr ""
43228
43229 #. type: =item
43230 #: ../tools/virt-win-reg.pl:159
43231 msgid "B<--merge>"
43232 msgstr ""
43233
43234 #. type: textblock
43235 #: ../tools/virt-win-reg.pl:161
43236 msgid ""
43237 "In merge mode, this merges a textual regedit file into the Windows Registry "
43238 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
43239 "displays or exports Registry entries instead."
43240 msgstr ""
43241
43242 #. type: textblock
43243 #: ../tools/virt-win-reg.pl:165
43244 msgid ""
43245 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
43246 "result in disk corruption.  However exporting (without this flag)  is always "
43247 "safe."
43248 msgstr ""
43249
43250 #. type: =item
43251 #: ../tools/virt-win-reg.pl:173
43252 msgid "B<--encoding> UTF-16LE|ASCII"
43253 msgstr ""
43254
43255 #. type: textblock
43256 #: ../tools/virt-win-reg.pl:175
43257 msgid ""
43258 "When merging (only), you may need to specify the encoding for strings to be "
43259 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
43260 "(3)/ENCODING STRINGS>."
43261 msgstr ""
43262
43263 #. type: textblock
43264 #: ../tools/virt-win-reg.pl:179
43265 msgid ""
43266 "The default is to use UTF-16LE, which should work with recent versions of "
43267 "Windows."
43268 msgstr ""
43269
43270 #. type: =item
43271 #: ../tools/virt-win-reg.pl:186
43272 msgid "B<--unsafe-printable-strings>"
43273 msgstr ""
43274
43275 #. type: textblock
43276 #: ../tools/virt-win-reg.pl:188
43277 msgid ""
43278 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43279 "instead of hex sequences.  Remove the final zero codepoint from strings if "
43280 "present."
43281 msgstr ""
43282
43283 #. type: textblock
43284 #: ../tools/virt-win-reg.pl:192
43285 msgid ""
43286 "This is unsafe and does not preserve the fidelity of strings in the original "
43287 "Registry for various reasons:"
43288 msgstr ""
43289
43290 #. type: textblock
43291 #: ../tools/virt-win-reg.pl:199
43292 msgid ""
43293 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
43294 "other encodings will be corrupted by this transformation."
43295 msgstr ""
43296
43297 #. type: textblock
43298 #: ../tools/virt-win-reg.pl:204
43299 msgid ""
43300 "Assumes that everything which has type 1 or 2 is really a string and that "
43301 "everything else is not a string, but the type field in real Registries is "
43302 "not reliable."
43303 msgstr ""
43304
43305 #. type: textblock
43306 #: ../tools/virt-win-reg.pl:210
43307 msgid ""
43308 "Loses information about whether a zero codepoint followed the string in the "
43309 "Registry or not."
43310 msgstr ""
43311
43312 #. type: textblock
43313 #: ../tools/virt-win-reg.pl:215
43314 msgid ""
43315 "This all happens because the Registry itself contains no information about "
43316 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43317 msgstr ""
43318
43319 #. type: textblock
43320 #: ../tools/virt-win-reg.pl:219
43321 msgid ""
43322 "You should only use this option for quick hacking and debugging of the "
43323 "Registry contents, and I<never> use it if the output is going to be passed "
43324 "into another program or stored in another Registry."
43325 msgstr ""
43326
43327 #. type: =head1
43328 #: ../tools/virt-win-reg.pl:556
43329 msgid "SUPPORTED SYSTEMS"
43330 msgstr ""
43331
43332 #. type: textblock
43333 #: ../tools/virt-win-reg.pl:558
43334 msgid ""
43335 "The program currently supports Windows NT-derived guests starting with "
43336 "Windows XP through to at least Windows 7."
43337 msgstr ""
43338
43339 #. type: textblock
43340 #: ../tools/virt-win-reg.pl:561
43341 msgid "The following Registry keys are supported:"
43342 msgstr ""
43343
43344 #. type: =item
43345 #: ../tools/virt-win-reg.pl:565
43346 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43347 msgstr ""
43348
43349 #. type: =item
43350 #: ../tools/virt-win-reg.pl:567
43351 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43352 msgstr ""
43353
43354 #. type: =item
43355 #: ../tools/virt-win-reg.pl:569
43356 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43357 msgstr ""
43358
43359 #. type: =item
43360 #: ../tools/virt-win-reg.pl:571
43361 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43362 msgstr ""
43363
43364 #. type: =item
43365 #: ../tools/virt-win-reg.pl:573
43366 msgid "C<HKEY_USERS\\.DEFAULT>"
43367 msgstr ""
43368
43369 #. type: =item
43370 #: ../tools/virt-win-reg.pl:575
43371 msgid "C<HKEY_USERS\\I<SID>>"
43372 msgstr ""
43373
43374 #. type: textblock
43375 #: ../tools/virt-win-reg.pl:577
43376 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43377 msgstr ""
43378
43379 #. type: =item
43380 #: ../tools/virt-win-reg.pl:579
43381 msgid "C<HKEY_USERS\\I<username>>"
43382 msgstr ""
43383
43384 #. type: textblock
43385 #: ../tools/virt-win-reg.pl:581
43386 msgid ""
43387 "where I<username> is a local user name (this is a libguestfs extension)."
43388 msgstr ""
43389
43390 #. type: textblock
43391 #: ../tools/virt-win-reg.pl:585
43392 msgid ""
43393 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43394 "C<HKEY_USERS>."
43395 msgstr ""
43396
43397 #. type: textblock
43398 #: ../tools/virt-win-reg.pl:588
43399 msgid ""
43400 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43401 "supported (there is no \"current user\")."
43402 msgstr ""
43403
43404 #. type: =head1
43405 #: ../tools/virt-win-reg.pl:591
43406 msgid "ENCODING"
43407 msgstr ""
43408
43409 #. type: textblock
43410 #: ../tools/virt-win-reg.pl:593
43411 msgid ""
43412 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43413 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
43414 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
43415 "Windows-style line endings, you may need to reencode the whole file before "
43416 "or after processing."
43417 msgstr ""
43418
43419 #. type: textblock
43420 #: ../tools/virt-win-reg.pl:599
43421 msgid ""
43422 "To reencode a file from Windows format to Linux (before processing it with "
43423 "the I<--merge> option), you would do something like this:"
43424 msgstr ""
43425
43426 #. type: verbatim
43427 #: ../tools/virt-win-reg.pl:602
43428 #, no-wrap
43429 msgid ""
43430 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43431 "\n"
43432 msgstr ""
43433
43434 #. type: textblock
43435 #: ../tools/virt-win-reg.pl:604
43436 msgid ""
43437 "To go in the opposite direction, after exporting and before sending the file "
43438 "to a Windows user, do something like this:"
43439 msgstr ""
43440
43441 #. type: verbatim
43442 #: ../tools/virt-win-reg.pl:607
43443 #, no-wrap
43444 msgid ""
43445 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43446 "\n"
43447 msgstr ""
43448
43449 #. type: textblock
43450 #: ../tools/virt-win-reg.pl:609
43451 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43452 msgstr ""
43453
43454 #. type: textblock
43455 #: ../tools/virt-win-reg.pl:611
43456 msgid ""
43457 "If you are unsure about the current encoding, use the L<file(1)> command.  "
43458 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43459 "style (CRLF) line endings, like this:"
43460 msgstr ""
43461
43462 #. type: verbatim
43463 #: ../tools/virt-win-reg.pl:615
43464 #, no-wrap
43465 msgid ""
43466 " $ file software.reg\n"
43467 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43468 " with CRLF line terminators\n"
43469 "\n"
43470 msgstr ""
43471
43472 #. type: textblock
43473 #: ../tools/virt-win-reg.pl:619
43474 msgid "This file would need conversion before you could I<--merge> it."
43475 msgstr ""
43476
43477 #. type: =head1
43478 #: ../tools/virt-win-reg.pl:621
43479 msgid "CurrentControlSet etc."
43480 msgstr ""
43481
43482 #. type: textblock
43483 #: ../tools/virt-win-reg.pl:623
43484 msgid ""
43485 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43486 "Registry at the level of the hive file, and therefore you cannot modify "
43487 "these."
43488 msgstr ""
43489
43490 #. type: textblock
43491 #: ../tools/virt-win-reg.pl:627
43492 msgid ""
43493 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
43494 "circumstances it might refer to another control set.  The way to find out is "
43495 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43496 msgstr ""
43497
43498 #. type: verbatim
43499 #: ../tools/virt-win-reg.pl:631
43500 #, no-wrap
43501 msgid ""
43502 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43503 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43504 " \"Current\"=dword:00000001\n"
43505 " \"Default\"=dword:00000001\n"
43506 " \"Failed\"=dword:00000000\n"
43507 " \"LastKnownGood\"=dword:00000002\n"
43508 "\n"
43509 msgstr ""
43510
43511 #. type: textblock
43512 #: ../tools/virt-win-reg.pl:638
43513 msgid "\"Current\" is the one which Windows will choose when it boots."
43514 msgstr ""
43515
43516 #. type: textblock
43517 #: ../tools/virt-win-reg.pl:640
43518 msgid ""
43519 "Similarly, other C<Current...> keys in the path may need to be replaced."
43520 msgstr ""
43521
43522 #. type: =head1
43523 #: ../tools/virt-win-reg.pl:643
43524 msgid "DELETING REGISTRY KEYS AND VALUES"
43525 msgstr ""
43526
43527 #. type: textblock
43528 #: ../tools/virt-win-reg.pl:645
43529 msgid "To delete a whole registry key, use the syntax:"
43530 msgstr ""
43531
43532 #. type: verbatim
43533 #: ../tools/virt-win-reg.pl:647
43534 #, no-wrap
43535 msgid ""
43536 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43537 "\n"
43538 msgstr ""
43539
43540 #. type: textblock
43541 #: ../tools/virt-win-reg.pl:649
43542 msgid "To delete a single value within a key, use the syntax:"
43543 msgstr ""
43544
43545 #. type: verbatim
43546 #: ../tools/virt-win-reg.pl:651
43547 #, no-wrap
43548 msgid ""
43549 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43550 " \"Value\"=-\n"
43551 "\n"
43552 msgstr ""
43553
43554 #. type: =head1
43555 #: ../tools/virt-win-reg.pl:654
43556 msgid "WINDOWS TIPS"
43557 msgstr ""
43558
43559 #. type: textblock
43560 #: ../tools/virt-win-reg.pl:656
43561 msgid ""
43562 "Note that some of these tips modify the guest disk image.  The guest I<must> "
43563 "be shut off, else you will get disk corruption."
43564 msgstr ""
43565
43566 #. type: =head2
43567 #: ../tools/virt-win-reg.pl:659
43568 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43569 msgstr ""
43570
43571 #. type: textblock
43572 #: ../tools/virt-win-reg.pl:661
43573 msgid ""
43574 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
43575 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
43576 "is uploaded into C<C:\\>:"
43577 msgstr ""
43578
43579 #. type: verbatim
43580 #: ../tools/virt-win-reg.pl:665
43581 #, no-wrap
43582 msgid ""
43583 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43584 "\n"
43585 msgstr ""
43586
43587 #. type: textblock
43588 #: ../tools/virt-win-reg.pl:667
43589 msgid "Prepare a regedit file containing the registry change:"
43590 msgstr ""
43591
43592 #. type: verbatim
43593 #: ../tools/virt-win-reg.pl:669
43594 #, no-wrap
43595 msgid ""
43596 " cat > test.reg <<'EOF'\n"
43597 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43598 " \"Test\"=\"c:\\\\test.bat\"\n"
43599 " EOF\n"
43600 "\n"
43601 msgstr ""
43602
43603 #. type: textblock
43604 #: ../tools/virt-win-reg.pl:674
43605 msgid ""
43606 "In this example we use the key C<RunOnce> which means that the script will "
43607 "run precisely once when the first user logs in.  If you want it to run every "
43608 "time a user logs in, replace C<RunOnce> with C<Run>."
43609 msgstr ""
43610
43611 #. type: textblock
43612 #: ../tools/virt-win-reg.pl:678
43613 msgid "Now update the registry:"
43614 msgstr ""
43615
43616 #. type: verbatim
43617 #: ../tools/virt-win-reg.pl:680
43618 #, no-wrap
43619 msgid ""
43620 " virt-win-reg --merge WindowsGuest test.reg\n"
43621 "\n"
43622 msgstr ""
43623
43624 #. type: =head2
43625 #: ../tools/virt-win-reg.pl:682
43626 msgid "INSTALLING A SERVICE"
43627 msgstr ""
43628
43629 #. type: textblock
43630 #: ../tools/virt-win-reg.pl:684
43631 msgid ""
43632 "This section assumes you are familiar with Windows services, and you either "
43633 "have a program which handles the Windows Service Control Protocol directly "
43634 "or you want to run any program using a service wrapper like SrvAny or the "
43635 "free RHSrvAny."
43636 msgstr ""
43637
43638 #. type: textblock
43639 #: ../tools/virt-win-reg.pl:689
43640 msgid ""
43641 "First upload the program and optionally the service wrapper.  In this case "
43642 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43643 msgstr ""
43644
43645 #. type: verbatim
43646 #: ../tools/virt-win-reg.pl:693
43647 #, no-wrap
43648 msgid ""
43649 " guestfish -i -d WindowsGuest <<EOF\n"
43650 "   upload rhsrvany.exe /rhsrvany.exe\n"
43651 "   upload test.exe /test.exe\n"
43652 " EOF\n"
43653 "\n"
43654 msgstr ""
43655
43656 #. type: textblock
43657 #: ../tools/virt-win-reg.pl:698
43658 msgid ""
43659 "Prepare a regedit file containing the registry changes.  In this example, "
43660 "the first registry change is needed for the service itself or the service "
43661 "wrapper (if used).  The second registry change is only needed because I am "
43662 "using the RHSrvAny service wrapper."
43663 msgstr ""
43664
43665 #. type: verbatim
43666 #: ../tools/virt-win-reg.pl:703
43667 #, no-wrap
43668 msgid ""
43669 " cat > service.reg <<'EOF'\n"
43670 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43671 " \"Type\"=dword:00000010\n"
43672 " \"Start\"=dword:00000002\n"
43673 " \"ErrorControl\"=dword:00000001\n"
43674 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43675 " \"DisplayName\"=\"RHSrvAny\"\n"
43676 " \"ObjectName\"=\"NetworkService\"\n"
43677 " \n"
43678 msgstr ""
43679
43680 #. type: verbatim
43681 #: ../tools/virt-win-reg.pl:712
43682 #, no-wrap
43683 msgid ""
43684 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43685 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43686 " \"PWD\"=\"c:\\\\Temp\"\n"
43687 " EOF\n"
43688 "\n"
43689 msgstr ""
43690
43691 #. type: textblock
43692 #: ../tools/virt-win-reg.pl:723
43693 msgid ""
43694 "For use of C<ControlSet001> see the section above in this manual page.  You "
43695 "may need to adjust this according to the control set that is in use by the "
43696 "guest."
43697 msgstr ""
43698
43699 #. type: textblock
43700 #: ../tools/virt-win-reg.pl:729
43701 msgid ""
43702 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
43703 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43704 "privileged account."
43705 msgstr ""
43706
43707 #. type: textblock
43708 #: ../tools/virt-win-reg.pl:735
43709 msgid ""
43710 "For the meaning of the magic numbers, see this Microsoft KB article: "
43711 "L<http://support.microsoft.com/kb/103000>."
43712 msgstr ""
43713
43714 #. type: textblock
43715 #: ../tools/virt-win-reg.pl:740
43716 msgid "Update the registry:"
43717 msgstr ""
43718
43719 #. type: verbatim
43720 #: ../tools/virt-win-reg.pl:742
43721 #, no-wrap
43722 msgid ""
43723 " virt-win-reg --merge WindowsGuest service.reg\n"
43724 "\n"
43725 msgstr ""
43726
43727 #. type: textblock
43728 #: ../tools/virt-win-reg.pl:746
43729 msgid ""
43730 "Be careful when passing parameters containing C<\\> (backslash) in the "
43731 "shell.  Usually you will have to use 'single quotes' or double backslashes "
43732 "(but not both) to protect them from the shell."
43733 msgstr ""
43734
43735 #. type: textblock
43736 #: ../tools/virt-win-reg.pl:750
43737 msgid "Paths and value names are case-insensitive."
43738 msgstr ""
43739
43740 #. type: textblock
43741 #: ../tools/virt-win-reg.pl:759
43742 msgid ""
43743 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43744 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43745 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43746 msgstr ""
43747
43748 #. type: verbatim
43749 #: ../tools/virt-win-reg.pl:777
43750 #, no-wrap
43751 msgid ""
43752 " export LIBGUESTFS_DEBUG=1\n"
43753 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43754 "\n"
43755 msgstr ""
43756
43757 #. type: textblock
43758 #: ../tools/virt-win-reg.pl:780
43759 msgid ""
43760 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43761 "redhat.com/>"
43762 msgstr ""