44e39df89d30dcc9265c4ad8c07b08474a8886f9
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Translators:
6 # rjones <rjones@redhat.com>, 2011.
7 #   <www.carrotsoft@gmail.com>, 2011.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: libguestfs\n"
11 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
12 "POT-Creation-Date: 2011-11-24 20:18+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:491
492 #: ../sparsify/virt-sparsify.pod:171
493 msgid "B<-q>"
494 msgstr ""
495
496 #. type: =item
497 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
498 #: ../sparsify/virt-sparsify.pod:173
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:177
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:179
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:181
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:561
545 #: ../sparsify/virt-sparsify.pod:183
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:563
556 #: ../sparsify/virt-sparsify.pod:185 ../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:565
568 #: ../sparsify/virt-sparsify.pod:187 ../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:189
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:191
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:676
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:678
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:683 ../sparsify/virt-sparsify.pod:245
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:1262
929 #: ../fish/guestfish-actions.pod:1266 ../fish/guestfish-actions.pod:1270
930 #: ../fish/guestfish-actions.pod:1274 ../fish/guestfish-actions.pod:1282
931 #: ../fish/guestfish-actions.pod:1286 ../fish/guestfish-actions.pod:1290
932 #: ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1304
933 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1398
934 #: ../fish/guestfish-actions.pod:1402 ../fish/guestfish-actions.pod:1407
935 #: ../fish/guestfish-actions.pod:1412 ../fish/guestfish-actions.pod:1454
936 #: ../fish/guestfish-actions.pod:1458 ../fish/guestfish-actions.pod:1463
937 #: ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1726
938 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:2136
939 #: ../fish/guestfish-actions.pod:2142 ../fish/guestfish-actions.pod:2150
940 #: ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2164
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:359 ../resize/virt-resize.pod:363
945 #: ../resize/virt-resize.pod:372 ../resize/virt-resize.pod:378
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:2079
953 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2087
954 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2099
955 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2107
956 #: ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2121
957 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2263
958 #: ../src/guestfs-actions.pod:2267 ../src/guestfs-actions.pod:2272
959 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2338
960 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:2347
961 #: ../src/guestfs-actions.pod:2762 ../src/guestfs-actions.pod:2769
962 #: ../src/guestfs-actions.pod:2776 ../src/guestfs-actions.pod:3321
963 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3335
964 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3349
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:688 ../ruby/examples/guestfs-ruby.pod:36
1046 #: ../sparsify/virt-sparsify.pod:269 ../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:711 ../sparsify/virt-sparsify.pod:282
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:713
1079 #: ../sparsify/virt-sparsify.pod:284 ../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:715 ../ruby/examples/guestfs-ruby.pod:52
1099 #: ../sparsify/virt-sparsify.pod:286 ../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:288
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:719
1122 #: ../sparsify/virt-sparsify.pod:290 ../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:724
1142 #: ../sparsify/virt-sparsify.pod:295 ../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:729
1162 #: ../sparsify/virt-sparsify.pod:300 ../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:685 ../sparsify/virt-sparsify.pod:247
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:717 ../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:4494
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:250
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:1450 ../fish/guestfish-actions.pod:1715
5266 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5267 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5268 #: ../src/guestfs-actions.pod:3317 ../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:941
6577 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
6578 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
6579 #: ../fish/guestfish-actions.pod:3398 ../fish/guestfish-actions.pod:3709
6580 #: ../fish/guestfish-actions.pod:3757 ../fish/guestfish-actions.pod:4675
6581 #: ../fish/guestfish-actions.pod:4695 ../fish/guestfish-actions.pod:4714
6582 #: ../fish/guestfish-actions.pod:4752 ../fish/guestfish-actions.pod:5480
6583 #: ../fish/guestfish-actions.pod:5583 ../src/guestfs-actions.pod:10
6584 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
6585 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
6586 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
6587 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5248
6588 #: ../src/guestfs-actions.pod:5770 ../src/guestfs-actions.pod:5870
6589 #: ../src/guestfs-actions.pod:7166 ../src/guestfs-actions.pod:7207
6590 #: ../src/guestfs-actions.pod:7238 ../src/guestfs-actions.pod:7298
6591 #: ../src/guestfs-actions.pod:8352 ../src/guestfs-actions.pod:8461
6592 #: ../src/guestfs-actions.pod:8641
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:624 ../fish/guestfish-actions.pod:835
6763 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6764 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6765 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6766 #: ../fish/guestfish-actions.pod:3215 ../fish/guestfish-actions.pod:3447
6767 #: ../fish/guestfish-actions.pod:3610 ../fish/guestfish-actions.pod:3745
6768 #: ../fish/guestfish-actions.pod:5116
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:3409
6846 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5285
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:3242
6898 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:4996
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:749 ../fish/guestfish-actions.pod:833
7547 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
7548 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
7549 #: ../fish/guestfish-actions.pod:4972 ../fish/guestfish-actions.pod:4984
7550 #: ../fish/guestfish-actions.pod:4995 ../fish/guestfish-actions.pod:5006
7551 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5146
7552 #: ../fish/guestfish-actions.pod:5200 ../fish/guestfish-actions.pod:5223
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 "blockdev-flushbufs"
7579 msgstr ""
7580
7581 #. type: verbatim
7582 #: ../fish/guestfish-actions.pod:504
7583 #, no-wrap
7584 msgid ""
7585 " blockdev-flushbufs 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 tells the kernel to flush internal buffers associated with C<device>."
7593 msgstr ""
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
7597 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
7598 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
7599 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
7600 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
7601 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
7602 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
7603 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
7604 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
7605 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
7606 msgid "This uses the L<blockdev(8)> command."
7607 msgstr ""
7608
7609 #. type: =head2
7610 #: ../fish/guestfish-actions.pod:511
7611 msgid "blockdev-getbsz"
7612 msgstr ""
7613
7614 #. type: verbatim
7615 #: ../fish/guestfish-actions.pod:513
7616 #, no-wrap
7617 msgid ""
7618 " blockdev-getbsz device\n"
7619 "\n"
7620 msgstr ""
7621
7622 #. type: textblock
7623 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
7624 msgid "This returns the block size of a device."
7625 msgstr ""
7626
7627 #. type: textblock
7628 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
7629 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
7630 msgid ""
7631 "(Note this is different from both I<size in blocks> and I<filesystem block "
7632 "size>)."
7633 msgstr ""
7634
7635 #. type: =head2
7636 #: ../fish/guestfish-actions.pod:522
7637 msgid "blockdev-getro"
7638 msgstr ""
7639
7640 #. type: verbatim
7641 #: ../fish/guestfish-actions.pod:524
7642 #, no-wrap
7643 msgid ""
7644 " blockdev-getro device\n"
7645 "\n"
7646 msgstr ""
7647
7648 #. type: textblock
7649 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7650 msgid ""
7651 "Returns a boolean indicating if the block device is read-only (true if read-"
7652 "only, false if not)."
7653 msgstr ""
7654
7655 #. type: =head2
7656 #: ../fish/guestfish-actions.pod:531
7657 msgid "blockdev-getsize64"
7658 msgstr ""
7659
7660 #. type: verbatim
7661 #: ../fish/guestfish-actions.pod:533
7662 #, no-wrap
7663 msgid ""
7664 " blockdev-getsize64 device\n"
7665 "\n"
7666 msgstr ""
7667
7668 #. type: textblock
7669 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7670 msgid "This returns the size of the device in bytes."
7671 msgstr ""
7672
7673 #. type: textblock
7674 #: ../fish/guestfish-actions.pod:537
7675 msgid "See also L</blockdev-getsz>."
7676 msgstr ""
7677
7678 #. type: =head2
7679 #: ../fish/guestfish-actions.pod:541
7680 msgid "blockdev-getss"
7681 msgstr ""
7682
7683 #. type: verbatim
7684 #: ../fish/guestfish-actions.pod:543
7685 #, no-wrap
7686 msgid ""
7687 " blockdev-getss device\n"
7688 "\n"
7689 msgstr ""
7690
7691 #. type: textblock
7692 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7693 msgid ""
7694 "This returns the size of sectors on a block device.  Usually 512, but can be "
7695 "larger for modern devices."
7696 msgstr ""
7697
7698 #. type: textblock
7699 #: ../fish/guestfish-actions.pod:548
7700 msgid ""
7701 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7702 msgstr ""
7703
7704 #. type: =head2
7705 #: ../fish/guestfish-actions.pod:553
7706 msgid "blockdev-getsz"
7707 msgstr ""
7708
7709 #. type: verbatim
7710 #: ../fish/guestfish-actions.pod:555
7711 #, no-wrap
7712 msgid ""
7713 " blockdev-getsz device\n"
7714 "\n"
7715 msgstr ""
7716
7717 #. type: textblock
7718 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7719 msgid ""
7720 "This returns the size of the device in units of 512-byte sectors (even if "
7721 "the sectorsize isn't 512 bytes ... weird)."
7722 msgstr ""
7723
7724 #. type: textblock
7725 #: ../fish/guestfish-actions.pod:560
7726 msgid ""
7727 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7728 "blockdev-getsize64> for the more useful I<size in bytes>."
7729 msgstr ""
7730
7731 #. type: =head2
7732 #: ../fish/guestfish-actions.pod:566
7733 msgid "blockdev-rereadpt"
7734 msgstr ""
7735
7736 #. type: verbatim
7737 #: ../fish/guestfish-actions.pod:568
7738 #, no-wrap
7739 msgid ""
7740 " blockdev-rereadpt device\n"
7741 "\n"
7742 msgstr ""
7743
7744 #. type: textblock
7745 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7746 msgid "Reread the partition table on C<device>."
7747 msgstr ""
7748
7749 #. type: =head2
7750 #: ../fish/guestfish-actions.pod:574
7751 msgid "blockdev-setbsz"
7752 msgstr ""
7753
7754 #. type: verbatim
7755 #: ../fish/guestfish-actions.pod:576
7756 #, no-wrap
7757 msgid ""
7758 " blockdev-setbsz device blocksize\n"
7759 "\n"
7760 msgstr ""
7761
7762 #. type: textblock
7763 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7764 msgid "This sets the block size of a device."
7765 msgstr ""
7766
7767 #. type: =head2
7768 #: ../fish/guestfish-actions.pod:585
7769 msgid "blockdev-setro"
7770 msgstr ""
7771
7772 #. type: verbatim
7773 #: ../fish/guestfish-actions.pod:587
7774 #, no-wrap
7775 msgid ""
7776 " blockdev-setro device\n"
7777 "\n"
7778 msgstr ""
7779
7780 #. type: textblock
7781 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7782 msgid "Sets the block device named C<device> to read-only."
7783 msgstr ""
7784
7785 #. type: =head2
7786 #: ../fish/guestfish-actions.pod:593
7787 msgid "blockdev-setrw"
7788 msgstr ""
7789
7790 #. type: verbatim
7791 #: ../fish/guestfish-actions.pod:595
7792 #, no-wrap
7793 msgid ""
7794 " blockdev-setrw device\n"
7795 "\n"
7796 msgstr ""
7797
7798 #. type: textblock
7799 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7800 msgid "Sets the block device named C<device> to read-write."
7801 msgstr ""
7802
7803 #. type: =head2
7804 #: ../fish/guestfish-actions.pod:601
7805 msgid "btrfs-filesystem-resize"
7806 msgstr ""
7807
7808 #. type: verbatim
7809 #: ../fish/guestfish-actions.pod:603
7810 #, no-wrap
7811 msgid ""
7812 " btrfs-filesystem-resize mountpoint [size:N]\n"
7813 "\n"
7814 msgstr ""
7815
7816 #. type: textblock
7817 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7818 msgid "This command resizes a btrfs filesystem."
7819 msgstr ""
7820
7821 #. type: textblock
7822 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7823 msgid ""
7824 "Note that unlike other resize calls, the filesystem has to be mounted and "
7825 "the parameter is the mountpoint not the device (this is a requirement of "
7826 "btrfs itself)."
7827 msgstr ""
7828
7829 #. type: textblock
7830 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3164
7831 #: ../fish/guestfish-actions.pod:3720 ../fish/guestfish-actions.pod:5046
7832 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:4892
7833 #: ../src/guestfs-actions.pod:5809 ../src/guestfs-actions.pod:7785
7834 msgid "The optional parameters are:"
7835 msgstr ""
7836
7837 #. type: =item
7838 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3724
7839 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5813
7840 msgid "C<size>"
7841 msgstr ""
7842
7843 #. type: textblock
7844 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7845 msgid ""
7846 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7847 "resized to the maximum size."
7848 msgstr ""
7849
7850 #. type: textblock
7851 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7852 msgid "See also L<btrfs(8)>."
7853 msgstr ""
7854
7855 #. type: =head2
7856 #: ../fish/guestfish-actions.pod:626
7857 msgid "case-sensitive-path"
7858 msgstr ""
7859
7860 #. type: verbatim
7861 #: ../fish/guestfish-actions.pod:628
7862 #, no-wrap
7863 msgid ""
7864 " case-sensitive-path path\n"
7865 "\n"
7866 msgstr ""
7867
7868 #. type: textblock
7869 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7870 msgid ""
7871 "This can be used to resolve case insensitive paths on a filesystem which is "
7872 "case sensitive.  The use case is to resolve paths which you have read from "
7873 "Windows configuration files or the Windows Registry, to the true path."
7874 msgstr ""
7875
7876 #. type: textblock
7877 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7878 msgid ""
7879 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7880 "(and probably others), which is that although the underlying filesystem is "
7881 "case-insensitive, the driver exports the filesystem to Linux as case-"
7882 "sensitive."
7883 msgstr ""
7884
7885 #. type: textblock
7886 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7887 msgid ""
7888 "One consequence of this is that special directories such as C<c:\\windows> "
7889 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7890 "precise details of how they were created.  In Windows itself this would not "
7891 "be a problem."
7892 msgstr ""
7893
7894 #. type: textblock
7895 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7896 msgid ""
7897 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7898 "#posixfilenames1>"
7899 msgstr ""
7900
7901 #. type: textblock
7902 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7903 msgid ""
7904 "This function resolves the true case of each element in the path and returns "
7905 "the case-sensitive path."
7906 msgstr ""
7907
7908 #. type: textblock
7909 #: ../fish/guestfish-actions.pod:652
7910 msgid ""
7911 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7912 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7913 "the directories were originally created under Windows)."
7914 msgstr ""
7915
7916 #. type: textblock
7917 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7918 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7919 msgstr ""
7920
7921 #. type: textblock
7922 #: ../fish/guestfish-actions.pod:660
7923 msgid "See also L</realpath>."
7924 msgstr ""
7925
7926 #. type: =head2
7927 #: ../fish/guestfish-actions.pod:662
7928 msgid "cat"
7929 msgstr ""
7930
7931 #. type: verbatim
7932 #: ../fish/guestfish-actions.pod:664
7933 #, no-wrap
7934 msgid ""
7935 " cat path\n"
7936 "\n"
7937 msgstr ""
7938
7939 #. type: textblock
7940 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4151
7941 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6469
7942 msgid "Return the contents of the file named C<path>."
7943 msgstr ""
7944
7945 #. type: textblock
7946 #: ../fish/guestfish-actions.pod:668
7947 msgid ""
7948 "Note that this function cannot correctly handle binary files (specifically, "
7949 "files containing C<\\0> character which is treated as end of string).  For "
7950 "those you need to use the L</read-file> or L</download> functions which have "
7951 "a more complex interface."
7952 msgstr ""
7953
7954 #. type: textblock
7955 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7956 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7957 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7958 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7959 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7960 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7961 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7962 #: ../fish/guestfish-actions.pod:4021 ../fish/guestfish-actions.pod:4036
7963 #: ../fish/guestfish-actions.pod:4112 ../fish/guestfish-actions.pod:4129
7964 #: ../fish/guestfish-actions.pod:4144 ../fish/guestfish-actions.pod:4813
7965 #: ../fish/guestfish-actions.pod:4859 ../fish/guestfish-actions.pod:4944
7966 #: ../fish/guestfish-actions.pod:4959 ../fish/guestfish-actions.pod:5444
7967 #: ../fish/guestfish-actions.pod:5456 ../fish/guestfish-actions.pod:5474
7968 #: ../fish/guestfish-actions.pod:5491 ../fish/guestfish-actions.pod:5501
7969 #: ../fish/guestfish-actions.pod:5555 ../fish/guestfish-actions.pod:5565
7970 #: ../fish/guestfish-actions.pod:5594 ../fish/guestfish-actions.pod:5604
7971 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7972 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
7973 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
7974 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
7975 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
7976 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
7977 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
7978 #: ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6277
7979 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6434
7980 #: ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:7413
7981 #: ../src/guestfs-actions.pod:7468 ../src/guestfs-actions.pod:7614
7982 #: ../src/guestfs-actions.pod:7638 ../src/guestfs-actions.pod:8425
7983 #: ../src/guestfs-actions.pod:8445 ../src/guestfs-actions.pod:8478
7984 #: ../src/guestfs-actions.pod:8497 ../src/guestfs-actions.pod:8516
7985 #: ../src/guestfs-actions.pod:8607 ../src/guestfs-actions.pod:8626
7986 #: ../src/guestfs-actions.pod:8672 ../src/guestfs-actions.pod:8691
7987 msgid ""
7988 "Because of the message protocol, there is a transfer limit of somewhere "
7989 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7990 msgstr ""
7991
7992 #. type: =head2
7993 #: ../fish/guestfish-actions.pod:676
7994 msgid "checksum"
7995 msgstr ""
7996
7997 #. type: verbatim
7998 #: ../fish/guestfish-actions.pod:678
7999 #, no-wrap
8000 msgid ""
8001 " checksum csumtype path\n"
8002 "\n"
8003 msgstr ""
8004
8005 #. type: textblock
8006 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
8007 msgid ""
8008 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8009 msgstr ""
8010
8011 #. type: textblock
8012 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
8013 msgid ""
8014 "The type of checksum to compute is given by the C<csumtype> parameter which "
8015 "must have one of the following values:"
8016 msgstr ""
8017
8018 #. type: =item
8019 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
8020 msgid "C<crc>"
8021 msgstr ""
8022
8023 #. type: textblock
8024 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
8025 msgid ""
8026 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8027 "C<cksum> command."
8028 msgstr ""
8029
8030 #. type: =item
8031 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
8032 msgid "C<md5>"
8033 msgstr ""
8034
8035 #. type: textblock
8036 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
8037 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8038 msgstr ""
8039
8040 #. type: =item
8041 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
8042 msgid "C<sha1>"
8043 msgstr ""
8044
8045 #. type: textblock
8046 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
8047 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8048 msgstr ""
8049
8050 #. type: =item
8051 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
8052 msgid "C<sha224>"
8053 msgstr ""
8054
8055 #. type: textblock
8056 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
8057 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8058 msgstr ""
8059
8060 #. type: =item
8061 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
8062 msgid "C<sha256>"
8063 msgstr ""
8064
8065 #. type: textblock
8066 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
8067 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8068 msgstr ""
8069
8070 #. type: =item
8071 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
8072 msgid "C<sha384>"
8073 msgstr ""
8074
8075 #. type: textblock
8076 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
8077 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8078 msgstr ""
8079
8080 #. type: =item
8081 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
8082 msgid "C<sha512>"
8083 msgstr ""
8084
8085 #. type: textblock
8086 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
8087 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8088 msgstr ""
8089
8090 #. type: textblock
8091 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
8092 msgid "The checksum is returned as a printable string."
8093 msgstr ""
8094
8095 #. type: textblock
8096 #: ../fish/guestfish-actions.pod:721
8097 msgid "To get the checksum for a device, use L</checksum-device>."
8098 msgstr ""
8099
8100 #. type: textblock
8101 #: ../fish/guestfish-actions.pod:723
8102 msgid "To get the checksums for many files, use L</checksums-out>."
8103 msgstr ""
8104
8105 #. type: =head2
8106 #: ../fish/guestfish-actions.pod:725
8107 msgid "checksum-device"
8108 msgstr ""
8109
8110 #. type: verbatim
8111 #: ../fish/guestfish-actions.pod:727
8112 #, no-wrap
8113 msgid ""
8114 " checksum-device csumtype device\n"
8115 "\n"
8116 msgstr ""
8117
8118 #. type: textblock
8119 #: ../fish/guestfish-actions.pod:729
8120 msgid ""
8121 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8122 "device named C<device>.  For the types of checksums supported see the L</"
8123 "checksum> command."
8124 msgstr ""
8125
8126 #. type: =head2
8127 #: ../fish/guestfish-actions.pod:733
8128 msgid "checksums-out"
8129 msgstr ""
8130
8131 #. type: verbatim
8132 #: ../fish/guestfish-actions.pod:735
8133 #, no-wrap
8134 msgid ""
8135 " checksums-out csumtype directory (sumsfile|-)\n"
8136 "\n"
8137 msgstr ""
8138
8139 #. type: textblock
8140 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
8141 msgid ""
8142 "This command computes the checksums of all regular files in C<directory> and "
8143 "then emits a list of those checksums to the local output file C<sumsfile>."
8144 msgstr ""
8145
8146 #. type: textblock
8147 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
8148 msgid ""
8149 "This can be used for verifying the integrity of a virtual machine.  However "
8150 "to be properly secure you should pay attention to the output of the checksum "
8151 "command (it uses the ones from GNU coreutils).  In particular when the "
8152 "filename is not printable, coreutils uses a special backslash syntax.  For "
8153 "more information, see the GNU coreutils info file."
8154 msgstr ""
8155
8156 #. type: =head2
8157 #: ../fish/guestfish-actions.pod:751
8158 msgid "chmod"
8159 msgstr ""
8160
8161 #. type: verbatim
8162 #: ../fish/guestfish-actions.pod:753
8163 #, no-wrap
8164 msgid ""
8165 " chmod mode path\n"
8166 "\n"
8167 msgstr ""
8168
8169 #. type: textblock
8170 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
8171 msgid ""
8172 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8173 "supported."
8174 msgstr ""
8175
8176 #. type: textblock
8177 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
8178 msgid ""
8179 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8180 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8181 "C<700>."
8182 msgstr ""
8183
8184 #. type: textblock
8185 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3373
8186 #: ../fish/guestfish-actions.pod:3512 ../fish/guestfish-actions.pod:3522
8187 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:1117
8188 #: ../src/guestfs-actions.pod:5216 ../src/guestfs-actions.pod:5425
8189 #: ../src/guestfs-actions.pod:5444 ../src/guestfs-actions.pod:5463
8190 msgid "The mode actually set is affected by the umask."
8191 msgstr ""
8192
8193 #. type: =head2
8194 #: ../fish/guestfish-actions.pod:764
8195 msgid "chown"
8196 msgstr ""
8197
8198 #. type: verbatim
8199 #: ../fish/guestfish-actions.pod:766
8200 #, no-wrap
8201 msgid ""
8202 " chown owner group path\n"
8203 "\n"
8204 msgstr ""
8205
8206 #. type: textblock
8207 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
8208 msgid "Change the file owner to C<owner> and group to C<group>."
8209 msgstr ""
8210
8211 #. type: textblock
8212 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
8213 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
8214 msgid ""
8215 "Only numeric uid and gid are supported.  If you want to use names, you will "
8216 "need to locate and parse the password file yourself (Augeas support makes "
8217 "this relatively easy)."
8218 msgstr ""
8219
8220 #. type: =head2
8221 #: ../fish/guestfish-actions.pod:774
8222 msgid "command"
8223 msgstr ""
8224
8225 #. type: verbatim
8226 #: ../fish/guestfish-actions.pod:776
8227 #, no-wrap
8228 msgid ""
8229 " command 'arguments ...'\n"
8230 "\n"
8231 msgstr ""
8232
8233 #. type: textblock
8234 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
8235 msgid ""
8236 "This call runs a command from the guest filesystem.  The filesystem must be "
8237 "mounted, and must contain a compatible operating system (ie. something "
8238 "Linux, with the same or compatible processor architecture)."
8239 msgstr ""
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:783
8243 msgid ""
8244 "The single parameter is an argv-style list of arguments.  The first element "
8245 "is the name of the program to run.  Subsequent elements are parameters.  The "
8246 "list must be non-empty (ie. must contain a program name).  Note that the "
8247 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
8248 msgstr ""
8249
8250 #. type: textblock
8251 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
8252 msgid "The return value is anything printed to I<stdout> by the command."
8253 msgstr ""
8254
8255 #. type: textblock
8256 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
8257 msgid ""
8258 "If the command returns a non-zero exit status, then this function returns an "
8259 "error message.  The error message string is the content of I<stderr> from "
8260 "the command."
8261 msgstr ""
8262
8263 #. type: textblock
8264 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
8265 msgid ""
8266 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8267 "bin>.  If you require a program from another location, you should provide "
8268 "the full path in the first parameter."
8269 msgstr ""
8270
8271 #. type: textblock
8272 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
8273 msgid ""
8274 "Shared libraries and data files required by the program must be available on "
8275 "filesystems which are mounted in the correct places.  It is the caller's "
8276 "responsibility to ensure all filesystems that are needed are mounted at the "
8277 "right locations."
8278 msgstr ""
8279
8280 #. type: =head2
8281 #: ../fish/guestfish-actions.pod:811
8282 msgid "command-lines"
8283 msgstr ""
8284
8285 #. type: verbatim
8286 #: ../fish/guestfish-actions.pod:813
8287 #, no-wrap
8288 msgid ""
8289 " command-lines 'arguments ...'\n"
8290 "\n"
8291 msgstr ""
8292
8293 #. type: textblock
8294 #: ../fish/guestfish-actions.pod:815
8295 msgid ""
8296 "This is the same as L</command>, but splits the result into a list of lines."
8297 msgstr ""
8298
8299 #. type: textblock
8300 #: ../fish/guestfish-actions.pod:818
8301 msgid "See also: L</sh-lines>"
8302 msgstr ""
8303
8304 #. type: =head2
8305 #: ../fish/guestfish-actions.pod:823
8306 msgid "compress-device-out"
8307 msgstr ""
8308
8309 #. type: verbatim
8310 #: ../fish/guestfish-actions.pod:825
8311 #, no-wrap
8312 msgid ""
8313 " compress-device-out ctype device (zdevice|-) [level:N]\n"
8314 "\n"
8315 msgstr ""
8316
8317 #. type: textblock
8318 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
8319 msgid ""
8320 "This command compresses C<device> and writes it out to the local file "
8321 "C<zdevice>."
8322 msgstr ""
8323
8324 #. type: textblock
8325 #: ../fish/guestfish-actions.pod:830
8326 msgid ""
8327 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
8328 "compress-out>."
8329 msgstr ""
8330
8331 #. type: =head2
8332 #: ../fish/guestfish-actions.pod:837
8333 msgid "compress-out"
8334 msgstr ""
8335
8336 #. type: verbatim
8337 #: ../fish/guestfish-actions.pod:839
8338 #, no-wrap
8339 msgid ""
8340 " compress-out ctype file (zfile|-) [level:N]\n"
8341 "\n"
8342 msgstr ""
8343
8344 #. type: textblock
8345 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
8346 msgid ""
8347 "This command compresses C<file> and writes it out to the local file C<zfile>."
8348 msgstr ""
8349
8350 #. type: textblock
8351 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
8352 msgid ""
8353 "The compression program used is controlled by the C<ctype> parameter.  "
8354 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
8355 "Some compression types may not be supported by particular builds of "
8356 "libguestfs, in which case you will get an error containing the substring "
8357 "\"not supported\"."
8358 msgstr ""
8359
8360 #. type: textblock
8361 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
8362 msgid ""
8363 "The optional C<level> parameter controls compression level.  The meaning and "
8364 "default for this parameter depends on the compression program being used."
8365 msgstr ""
8366
8367 #. type: =head2
8368 #: ../fish/guestfish-actions.pod:858
8369 msgid "config"
8370 msgstr ""
8371
8372 #. type: verbatim
8373 #: ../fish/guestfish-actions.pod:860
8374 #, no-wrap
8375 msgid ""
8376 " config qemuparam qemuvalue\n"
8377 "\n"
8378 msgstr ""
8379
8380 #. type: textblock
8381 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
8382 msgid ""
8383 "This can be used to add arbitrary qemu command line parameters of the form "
8384 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8385 "setting some parameters which would interfere with parameters that we use."
8386 msgstr ""
8387
8388 #. type: textblock
8389 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
8390 msgid "The first character of C<param> string must be a C<-> (dash)."
8391 msgstr ""
8392
8393 #. type: textblock
8394 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
8395 msgid "C<value> can be NULL."
8396 msgstr ""
8397
8398 #. type: =head2
8399 #: ../fish/guestfish-actions.pod:871
8400 msgid "copy-device-to-device"
8401 msgstr ""
8402
8403 #. type: verbatim
8404 #: ../fish/guestfish-actions.pod:873
8405 #, no-wrap
8406 msgid ""
8407 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8408 "\n"
8409 msgstr ""
8410
8411 #. type: textblock
8412 #: ../fish/guestfish-actions.pod:875
8413 msgid ""
8414 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
8415 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
8416 "(device|file) to a destination (device|file)."
8417 msgstr ""
8418
8419 #. type: textblock
8420 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
8421 msgid ""
8422 "Partial copies can be made since you can specify optionally the source "
8423 "offset, destination offset and size to copy.  These values are all specified "
8424 "in bytes.  If not given, the offsets both default to zero, and the size "
8425 "defaults to copying as much as possible until we hit the end of the source."
8426 msgstr ""
8427
8428 #. type: textblock
8429 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
8430 msgid ""
8431 "The source and destination may be the same object.  However overlapping "
8432 "regions may not be copied correctly."
8433 msgstr ""
8434
8435 #. type: textblock
8436 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
8437 msgid ""
8438 "If the destination is a file, it is created if required.  If the destination "
8439 "file is not large enough, it is extended."
8440 msgstr ""
8441
8442 #. type: =head2
8443 #: ../fish/guestfish-actions.pod:896
8444 msgid "copy-device-to-file"
8445 msgstr ""
8446
8447 #. type: verbatim
8448 #: ../fish/guestfish-actions.pod:898
8449 #, no-wrap
8450 msgid ""
8451 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8452 "\n"
8453 msgstr ""
8454
8455 #. type: textblock
8456 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
8457 #: ../fish/guestfish-actions.pod:918
8458 msgid "See L</copy-device-to-device> for a general overview of this call."
8459 msgstr ""
8460
8461 #. type: =head2
8462 #: ../fish/guestfish-actions.pod:905
8463 msgid "copy-file-to-device"
8464 msgstr ""
8465
8466 #. type: verbatim
8467 #: ../fish/guestfish-actions.pod:907
8468 #, no-wrap
8469 msgid ""
8470 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8471 "\n"
8472 msgstr ""
8473
8474 #. type: =head2
8475 #: ../fish/guestfish-actions.pod:914
8476 msgid "copy-file-to-file"
8477 msgstr ""
8478
8479 #. type: verbatim
8480 #: ../fish/guestfish-actions.pod:916
8481 #, no-wrap
8482 msgid ""
8483 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8484 "\n"
8485 msgstr ""
8486
8487 #. type: textblock
8488 #: ../fish/guestfish-actions.pod:921
8489 msgid ""
8490 "This is B<not> the function you want for copying files.  This is for copying "
8491 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
8492 "file copying and moving functions."
8493 msgstr ""
8494
8495 #. type: =head2
8496 #: ../fish/guestfish-actions.pod:928
8497 msgid "copy-size"
8498 msgstr ""
8499
8500 #. type: verbatim
8501 #: ../fish/guestfish-actions.pod:930
8502 #, no-wrap
8503 msgid ""
8504 " copy-size src dest size\n"
8505 "\n"
8506 msgstr ""
8507
8508 #. type: textblock
8509 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
8510 msgid ""
8511 "This command copies exactly C<size> bytes from one source device or file "
8512 "C<src> to another destination device or file C<dest>."
8513 msgstr ""
8514
8515 #. type: textblock
8516 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
8517 msgid ""
8518 "Note this will fail if the source is too short or if the destination is not "
8519 "large enough."
8520 msgstr ""
8521
8522 #. type: textblock
8523 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
8524 msgid ""
8525 "I<This function is deprecated.> In new code, use the L</"
8526 "copy_device_to_device> call instead."
8527 msgstr ""
8528
8529 #. type: =head2
8530 #: ../fish/guestfish-actions.pod:945
8531 msgid "cp"
8532 msgstr ""
8533
8534 #. type: verbatim
8535 #: ../fish/guestfish-actions.pod:947
8536 #, no-wrap
8537 msgid ""
8538 " cp src dest\n"
8539 "\n"
8540 msgstr ""
8541
8542 #. type: textblock
8543 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
8544 msgid ""
8545 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8546 "destination filename or destination directory."
8547 msgstr ""
8548
8549 #. type: =head2
8550 #: ../fish/guestfish-actions.pod:952
8551 msgid "cp-a"
8552 msgstr ""
8553
8554 #. type: verbatim
8555 #: ../fish/guestfish-actions.pod:954
8556 #, no-wrap
8557 msgid ""
8558 " cp-a src dest\n"
8559 "\n"
8560 msgstr ""
8561
8562 #. type: textblock
8563 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
8564 msgid ""
8565 "This copies a file or directory from C<src> to C<dest> recursively using the "
8566 "C<cp -a> command."
8567 msgstr ""
8568
8569 #. type: =head2
8570 #: ../fish/guestfish-actions.pod:959
8571 msgid "dd"
8572 msgstr ""
8573
8574 #. type: verbatim
8575 #: ../fish/guestfish-actions.pod:961
8576 #, no-wrap
8577 msgid ""
8578 " dd src dest\n"
8579 "\n"
8580 msgstr ""
8581
8582 #. type: textblock
8583 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
8584 msgid ""
8585 "This command copies from one source device or file C<src> to another "
8586 "destination device or file C<dest>.  Normally you would use this to copy to "
8587 "or from a device or partition, for example to duplicate a filesystem."
8588 msgstr ""
8589
8590 #. type: textblock
8591 #: ../fish/guestfish-actions.pod:968
8592 msgid ""
8593 "If the destination is a device, it must be as large or larger than the "
8594 "source file or device, otherwise the copy will fail.  This command cannot do "
8595 "partial copies (see L</copy-device-to-device>)."
8596 msgstr ""
8597
8598 #. type: =head2
8599 #: ../fish/guestfish-actions.pod:980
8600 msgid "df"
8601 msgstr ""
8602
8603 #. type: verbatim
8604 #: ../fish/guestfish-actions.pod:982
8605 #, no-wrap
8606 msgid ""
8607 " df\n"
8608 "\n"
8609 msgstr ""
8610
8611 #. type: textblock
8612 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
8613 msgid "This command runs the C<df> command to report disk space used."
8614 msgstr ""
8615
8616 #. type: textblock
8617 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
8618 msgid ""
8619 "This command is mostly useful for interactive sessions.  It is I<not> "
8620 "intended that you try to parse the output string.  Use L</statvfs> from "
8621 "programs."
8622 msgstr ""
8623
8624 #. type: =head2
8625 #: ../fish/guestfish-actions.pod:990
8626 msgid "df-h"
8627 msgstr ""
8628
8629 #. type: verbatim
8630 #: ../fish/guestfish-actions.pod:992
8631 #, no-wrap
8632 msgid ""
8633 " df-h\n"
8634 "\n"
8635 msgstr ""
8636
8637 #. type: textblock
8638 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8639 msgid ""
8640 "This command runs the C<df -h> command to report disk space used in human-"
8641 "readable format."
8642 msgstr ""
8643
8644 #. type: =head2
8645 #: ../fish/guestfish-actions.pod:1001
8646 msgid "dmesg"
8647 msgstr ""
8648
8649 #. type: verbatim
8650 #: ../fish/guestfish-actions.pod:1003
8651 #, no-wrap
8652 msgid ""
8653 " dmesg\n"
8654 "\n"
8655 msgstr ""
8656
8657 #. type: textblock
8658 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8659 msgid ""
8660 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8661 "This is sometimes useful for extended debugging of problems."
8662 msgstr ""
8663
8664 #. type: textblock
8665 #: ../fish/guestfish-actions.pod:1009
8666 msgid ""
8667 "Another way to get the same information is to enable verbose messages with "
8668 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8669 "before running the program."
8670 msgstr ""
8671
8672 #. type: =head2
8673 #: ../fish/guestfish-actions.pod:1014
8674 msgid "download"
8675 msgstr ""
8676
8677 #. type: verbatim
8678 #: ../fish/guestfish-actions.pod:1016
8679 #, no-wrap
8680 msgid ""
8681 " download remotefilename (filename|-)\n"
8682 "\n"
8683 msgstr ""
8684
8685 #. type: textblock
8686 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8687 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8688 msgid ""
8689 "Download file C<remotefilename> and save it as C<filename> on the local "
8690 "machine."
8691 msgstr ""
8692
8693 #. type: textblock
8694 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5196
8695 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7995
8696 msgid "C<filename> can also be a named pipe."
8697 msgstr ""
8698
8699 #. type: textblock
8700 #: ../fish/guestfish-actions.pod:1023
8701 msgid "See also L</upload>, L</cat>."
8702 msgstr ""
8703
8704 #. type: =head2
8705 #: ../fish/guestfish-actions.pod:1027
8706 msgid "download-offset"
8707 msgstr ""
8708
8709 #. type: verbatim
8710 #: ../fish/guestfish-actions.pod:1029
8711 #, no-wrap
8712 msgid ""
8713 " download-offset remotefilename (filename|-) offset size\n"
8714 "\n"
8715 msgstr ""
8716
8717 #. type: textblock
8718 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8719 msgid ""
8720 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8721 "region must be within the file or device)."
8722 msgstr ""
8723
8724 #. type: textblock
8725 #: ../fish/guestfish-actions.pod:1037
8726 msgid ""
8727 "Note that there is no limit on the amount of data that can be downloaded "
8728 "with this call, unlike with L</pread>, and this call always reads the full "
8729 "amount unless an error occurs."
8730 msgstr ""
8731
8732 #. type: textblock
8733 #: ../fish/guestfish-actions.pod:1042
8734 msgid "See also L</download>, L</pread>."
8735 msgstr ""
8736
8737 #. type: =head2
8738 #: ../fish/guestfish-actions.pod:1046
8739 msgid "drop-caches"
8740 msgstr ""
8741
8742 #. type: verbatim
8743 #: ../fish/guestfish-actions.pod:1048
8744 #, no-wrap
8745 msgid ""
8746 " drop-caches whattodrop\n"
8747 "\n"
8748 msgstr ""
8749
8750 #. type: textblock
8751 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8752 msgid ""
8753 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8754 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8755 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8756 msgstr ""
8757
8758 #. type: textblock
8759 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8760 msgid "Setting C<whattodrop> to 3 should drop everything."
8761 msgstr ""
8762
8763 #. type: textblock
8764 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8765 msgid ""
8766 "This automatically calls L<sync(2)> before the operation, so that the "
8767 "maximum guest memory is freed."
8768 msgstr ""
8769
8770 #. type: =head2
8771 #: ../fish/guestfish-actions.pod:1060
8772 msgid "du"
8773 msgstr ""
8774
8775 #. type: verbatim
8776 #: ../fish/guestfish-actions.pod:1062
8777 #, no-wrap
8778 msgid ""
8779 " du path\n"
8780 "\n"
8781 msgstr ""
8782
8783 #. type: textblock
8784 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8785 msgid ""
8786 "This command runs the C<du -s> command to estimate file space usage for "
8787 "C<path>."
8788 msgstr ""
8789
8790 #. type: textblock
8791 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8792 msgid ""
8793 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8794 "estimate includes the contents of the directory and all subdirectories "
8795 "(recursively)."
8796 msgstr ""
8797
8798 #. type: textblock
8799 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8800 msgid ""
8801 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8802 msgstr ""
8803
8804 #. type: =head2
8805 #: ../fish/guestfish-actions.pod:1074
8806 msgid "e2fsck-f"
8807 msgstr ""
8808
8809 #. type: verbatim
8810 #: ../fish/guestfish-actions.pod:1076
8811 #, no-wrap
8812 msgid ""
8813 " e2fsck-f device\n"
8814 "\n"
8815 msgstr ""
8816
8817 #. type: textblock
8818 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8819 msgid ""
8820 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8821 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8822 "clean (I<-f>)."
8823 msgstr ""
8824
8825 #. type: textblock
8826 #: ../fish/guestfish-actions.pod:1082
8827 msgid ""
8828 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8829 "should use L</fsck>."
8830 msgstr ""
8831
8832 #. type: =head2
8833 #: ../fish/guestfish-actions.pod:1085
8834 msgid "echo-daemon"
8835 msgstr ""
8836
8837 #. type: verbatim
8838 #: ../fish/guestfish-actions.pod:1087
8839 #, no-wrap
8840 msgid ""
8841 " echo-daemon 'words ...'\n"
8842 "\n"
8843 msgstr ""
8844
8845 #. type: textblock
8846 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8847 msgid ""
8848 "This command concatenates the list of C<words> passed with single spaces "
8849 "between them and returns the resulting string."
8850 msgstr ""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8854 msgid "You can use this command to test the connection through to the daemon."
8855 msgstr ""
8856
8857 #. type: textblock
8858 #: ../fish/guestfish-actions.pod:1094
8859 msgid "See also L</ping-daemon>."
8860 msgstr ""
8861
8862 #. type: =head2
8863 #: ../fish/guestfish-actions.pod:1096
8864 msgid "egrep"
8865 msgstr ""
8866
8867 #. type: verbatim
8868 #: ../fish/guestfish-actions.pod:1098
8869 #, no-wrap
8870 msgid ""
8871 " egrep regex path\n"
8872 "\n"
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8877 msgid ""
8878 "This calls the external C<egrep> program and returns the matching lines."
8879 msgstr ""
8880
8881 #. type: =head2
8882 #: ../fish/guestfish-actions.pod:1106
8883 msgid "egrepi"
8884 msgstr ""
8885
8886 #. type: verbatim
8887 #: ../fish/guestfish-actions.pod:1108
8888 #, no-wrap
8889 msgid ""
8890 " egrepi regex path\n"
8891 "\n"
8892 msgstr ""
8893
8894 #. type: textblock
8895 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8896 msgid ""
8897 "This calls the external C<egrep -i> program and returns the matching lines."
8898 msgstr ""
8899
8900 #. type: =head2
8901 #: ../fish/guestfish-actions.pod:1116
8902 msgid "equal"
8903 msgstr ""
8904
8905 #. type: verbatim
8906 #: ../fish/guestfish-actions.pod:1118
8907 #, no-wrap
8908 msgid ""
8909 " equal file1 file2\n"
8910 "\n"
8911 msgstr ""
8912
8913 #. type: textblock
8914 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8915 msgid ""
8916 "This compares the two files C<file1> and C<file2> and returns true if their "
8917 "content is exactly equal, or false otherwise."
8918 msgstr ""
8919
8920 #. type: textblock
8921 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8922 msgid "The external L<cmp(1)> program is used for the comparison."
8923 msgstr ""
8924
8925 #. type: =head2
8926 #: ../fish/guestfish-actions.pod:1125
8927 msgid "exists"
8928 msgstr ""
8929
8930 #. type: verbatim
8931 #: ../fish/guestfish-actions.pod:1127
8932 #, no-wrap
8933 msgid ""
8934 " exists path\n"
8935 "\n"
8936 msgstr ""
8937
8938 #. type: textblock
8939 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8940 msgid ""
8941 "This returns C<true> if and only if there is a file, directory (or anything) "
8942 "with the given C<path> name."
8943 msgstr ""
8944
8945 #. type: textblock
8946 #: ../fish/guestfish-actions.pod:1132
8947 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8948 msgstr ""
8949
8950 #. type: =head2
8951 #: ../fish/guestfish-actions.pod:1134
8952 msgid "fallocate"
8953 msgstr ""
8954
8955 #. type: verbatim
8956 #: ../fish/guestfish-actions.pod:1136
8957 #, no-wrap
8958 msgid ""
8959 " fallocate path len\n"
8960 "\n"
8961 msgstr ""
8962
8963 #. type: textblock
8964 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8965 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8966 msgid ""
8967 "This command preallocates a file (containing zero bytes) named C<path> of "
8968 "size C<len> bytes.  If the file exists already, it is overwritten."
8969 msgstr ""
8970
8971 #. type: textblock
8972 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8973 msgid ""
8974 "Do not confuse this with the guestfish-specific C<alloc> command which "
8975 "allocates a file in the host and attaches it as a device."
8976 msgstr ""
8977
8978 #. type: textblock
8979 #: ../fish/guestfish-actions.pod:1146
8980 msgid ""
8981 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8982 "instead."
8983 msgstr ""
8984
8985 #. type: =head2
8986 #: ../fish/guestfish-actions.pod:1153
8987 msgid "fallocate64"
8988 msgstr ""
8989
8990 #. type: verbatim
8991 #: ../fish/guestfish-actions.pod:1155
8992 #, no-wrap
8993 msgid ""
8994 " fallocate64 path len\n"
8995 "\n"
8996 msgstr ""
8997
8998 #. type: textblock
8999 #: ../fish/guestfish-actions.pod:1161
9000 msgid ""
9001 "Note that this call allocates disk blocks for the file.  To create a sparse "
9002 "file use L</truncate-size> instead."
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../fish/guestfish-actions.pod:1164
9007 msgid ""
9008 "The deprecated call L</fallocate> does the same, but owing to an oversight "
9009 "it only allowed 30 bit lengths to be specified, effectively limiting the "
9010 "maximum size of files created through that call to 1GB."
9011 msgstr ""
9012
9013 #. type: textblock
9014 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
9015 msgid ""
9016 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9017 "commands which create a file in the host and attach it as a device."
9018 msgstr ""
9019
9020 #. type: =head2
9021 #: ../fish/guestfish-actions.pod:1173
9022 msgid "fgrep"
9023 msgstr ""
9024
9025 #. type: verbatim
9026 #: ../fish/guestfish-actions.pod:1175
9027 #, no-wrap
9028 msgid ""
9029 " fgrep pattern path\n"
9030 "\n"
9031 msgstr ""
9032
9033 #. type: textblock
9034 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
9035 msgid ""
9036 "This calls the external C<fgrep> program and returns the matching lines."
9037 msgstr ""
9038
9039 #. type: =head2
9040 #: ../fish/guestfish-actions.pod:1183
9041 msgid "fgrepi"
9042 msgstr ""
9043
9044 #. type: verbatim
9045 #: ../fish/guestfish-actions.pod:1185
9046 #, no-wrap
9047 msgid ""
9048 " fgrepi pattern path\n"
9049 "\n"
9050 msgstr ""
9051
9052 #. type: textblock
9053 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
9054 msgid ""
9055 "This calls the external C<fgrep -i> program and returns the matching lines."
9056 msgstr ""
9057
9058 #. type: =head2
9059 #: ../fish/guestfish-actions.pod:1193
9060 msgid "file"
9061 msgstr ""
9062
9063 #. type: verbatim
9064 #: ../fish/guestfish-actions.pod:1195
9065 #, no-wrap
9066 msgid ""
9067 " file path\n"
9068 "\n"
9069 msgstr ""
9070
9071 #. type: textblock
9072 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
9073 msgid ""
9074 "This call uses the standard L<file(1)> command to determine the type or "
9075 "contents of the file."
9076 msgstr ""
9077
9078 #. type: textblock
9079 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
9080 msgid ""
9081 "This call will also transparently look inside various types of compressed "
9082 "file."
9083 msgstr ""
9084
9085 #. type: textblock
9086 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
9087 msgid ""
9088 "The exact command which runs is C<file -zb path>.  Note in particular that "
9089 "the filename is not prepended to the output (the I<-b> option)."
9090 msgstr ""
9091
9092 #. type: textblock
9093 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
9094 msgid ""
9095 "The output depends on the output of the underlying L<file(1)> command and it "
9096 "can change in future in ways beyond our control.  In other words, the output "
9097 "is not guaranteed by the ABI."
9098 msgstr ""
9099
9100 #. type: textblock
9101 #: ../fish/guestfish-actions.pod:1211
9102 msgid ""
9103 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
9104 "(etc), L</is-zero>."
9105 msgstr ""
9106
9107 #. type: =head2
9108 #: ../fish/guestfish-actions.pod:1214
9109 msgid "file-architecture"
9110 msgstr ""
9111
9112 #. type: verbatim
9113 #: ../fish/guestfish-actions.pod:1216
9114 #, no-wrap
9115 msgid ""
9116 " file-architecture filename\n"
9117 "\n"
9118 msgstr ""
9119
9120 #. type: textblock
9121 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
9122 msgid ""
9123 "This detects the architecture of the binary C<filename>, and returns it if "
9124 "known."
9125 msgstr ""
9126
9127 #. type: textblock
9128 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
9129 msgid "Currently defined architectures are:"
9130 msgstr ""
9131
9132 #. type: =item
9133 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
9134 msgid "\"i386\""
9135 msgstr ""
9136
9137 #. type: textblock
9138 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
9139 msgid ""
9140 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9141 "irrespective of the precise processor requirements of the binary."
9142 msgstr ""
9143
9144 #. type: =item
9145 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
9146 msgid "\"x86_64\""
9147 msgstr ""
9148
9149 #. type: textblock
9150 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
9151 msgid "64 bit x86-64."
9152 msgstr ""
9153
9154 #. type: =item
9155 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
9156 msgid "\"sparc\""
9157 msgstr ""
9158
9159 #. type: textblock
9160 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
9161 msgid "32 bit SPARC."
9162 msgstr ""
9163
9164 #. type: =item
9165 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
9166 msgid "\"sparc64\""
9167 msgstr ""
9168
9169 #. type: textblock
9170 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
9171 msgid "64 bit SPARC V9 and above."
9172 msgstr ""
9173
9174 #. type: =item
9175 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
9176 msgid "\"ia64\""
9177 msgstr ""
9178
9179 #. type: textblock
9180 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
9181 msgid "Intel Itanium."
9182 msgstr ""
9183
9184 #. type: =item
9185 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
9186 msgid "\"ppc\""
9187 msgstr ""
9188
9189 #. type: textblock
9190 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
9191 msgid "32 bit Power PC."
9192 msgstr ""
9193
9194 #. type: =item
9195 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
9196 msgid "\"ppc64\""
9197 msgstr ""
9198
9199 #. type: textblock
9200 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
9201 msgid "64 bit Power PC."
9202 msgstr ""
9203
9204 #. type: textblock
9205 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
9206 msgid "Libguestfs may return other architecture strings in future."
9207 msgstr ""
9208
9209 #. type: textblock
9210 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
9211 msgid "The function works on at least the following types of files:"
9212 msgstr ""
9213
9214 #. type: textblock
9215 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
9216 msgid "many types of Un*x and Linux binary"
9217 msgstr ""
9218
9219 #. type: textblock
9220 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
9221 msgid "many types of Un*x and Linux shared library"
9222 msgstr ""
9223
9224 #. type: textblock
9225 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
9226 msgid "Windows Win32 and Win64 binaries"
9227 msgstr ""
9228
9229 #. type: textblock
9230 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
9231 msgid "Windows Win32 and Win64 DLLs"
9232 msgstr ""
9233
9234 #. type: textblock
9235 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
9236 msgid "Win32 binaries and DLLs return C<i386>."
9237 msgstr ""
9238
9239 #. type: textblock
9240 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
9241 msgid "Win64 binaries and DLLs return C<x86_64>."
9242 msgstr ""
9243
9244 #. type: textblock
9245 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
9246 msgid "Linux kernel modules"
9247 msgstr ""
9248
9249 #. type: textblock
9250 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
9251 msgid "Linux new-style initrd images"
9252 msgstr ""
9253
9254 #. type: textblock
9255 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
9256 msgid "some non-x86 Linux vmlinuz kernels"
9257 msgstr ""
9258
9259 #. type: textblock
9260 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
9261 msgid "What it can't do currently:"
9262 msgstr ""
9263
9264 #. type: textblock
9265 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
9266 msgid "static libraries (libfoo.a)"
9267 msgstr ""
9268
9269 #. type: textblock
9270 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
9271 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9272 msgstr ""
9273
9274 #. type: textblock
9275 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
9276 msgid "x86 Linux vmlinuz kernels"
9277 msgstr ""
9278
9279 #. type: textblock
9280 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
9281 msgid ""
9282 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9283 "compressed code, and are horribly hard to unpack.  If you want to find the "
9284 "architecture of a kernel, use the architecture of the associated initrd or "
9285 "kernel module(s) instead."
9286 msgstr ""
9287
9288 #. type: =head2
9289 #: ../fish/guestfish-actions.pod:1319
9290 msgid "filesize"
9291 msgstr ""
9292
9293 #. type: verbatim
9294 #: ../fish/guestfish-actions.pod:1321
9295 #, no-wrap
9296 msgid ""
9297 " filesize file\n"
9298 "\n"
9299 msgstr ""
9300
9301 #. type: textblock
9302 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
9303 msgid "This command returns the size of C<file> in bytes."
9304 msgstr ""
9305
9306 #. type: textblock
9307 #: ../fish/guestfish-actions.pod:1325
9308 msgid ""
9309 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
9310 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
9311 msgstr ""
9312
9313 #. type: =head2
9314 #: ../fish/guestfish-actions.pod:1329
9315 msgid "fill"
9316 msgstr ""
9317
9318 #. type: verbatim
9319 #: ../fish/guestfish-actions.pod:1331
9320 #, no-wrap
9321 msgid ""
9322 " fill c len path\n"
9323 "\n"
9324 msgstr ""
9325
9326 #. type: textblock
9327 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
9328 msgid ""
9329 "This command creates a new file called C<path>.  The initial content of the "
9330 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9331 "[0..255]>."
9332 msgstr ""
9333
9334 #. type: textblock
9335 #: ../fish/guestfish-actions.pod:1337
9336 msgid ""
9337 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9338 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
9339 "L</fill-pattern>."
9340 msgstr ""
9341
9342 #. type: =head2
9343 #: ../fish/guestfish-actions.pod:1342
9344 msgid "fill-pattern"
9345 msgstr ""
9346
9347 #. type: verbatim
9348 #: ../fish/guestfish-actions.pod:1344
9349 #, no-wrap
9350 msgid ""
9351 " fill-pattern pattern len path\n"
9352 "\n"
9353 msgstr ""
9354
9355 #. type: textblock
9356 #: ../fish/guestfish-actions.pod:1346
9357 msgid ""
9358 "This function is like L</fill> except that it creates a new file of length "
9359 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
9360 "is truncated if necessary to ensure the length of the file is exactly C<len> "
9361 "bytes."
9362 msgstr ""
9363
9364 #. type: =head2
9365 #: ../fish/guestfish-actions.pod:1351
9366 msgid "find"
9367 msgstr ""
9368
9369 #. type: verbatim
9370 #: ../fish/guestfish-actions.pod:1353
9371 #, no-wrap
9372 msgid ""
9373 " find directory\n"
9374 "\n"
9375 msgstr ""
9376
9377 #. type: textblock
9378 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
9379 msgid ""
9380 "This command lists out all files and directories, recursively, starting at "
9381 "C<directory>.  It is essentially equivalent to running the shell command "
9382 "C<find directory -print> but some post-processing happens on the output, "
9383 "described below."
9384 msgstr ""
9385
9386 #. type: textblock
9387 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
9388 msgid ""
9389 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9390 "structure was:"
9391 msgstr ""
9392
9393 #. type: verbatim
9394 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
9395 #, no-wrap
9396 msgid ""
9397 " /tmp/a\n"
9398 " /tmp/b\n"
9399 " /tmp/c/d\n"
9400 "\n"
9401 msgstr ""
9402
9403 #. type: textblock
9404 #: ../fish/guestfish-actions.pod:1367
9405 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
9406 msgstr ""
9407
9408 #. type: verbatim
9409 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
9410 #, no-wrap
9411 msgid ""
9412 " a\n"
9413 " b\n"
9414 " c\n"
9415 " c/d\n"
9416 "\n"
9417 msgstr ""
9418
9419 #. type: textblock
9420 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
9421 msgid "If C<directory> is not a directory, then this command returns an error."
9422 msgstr ""
9423
9424 #. type: textblock
9425 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
9426 msgid "The returned list is sorted."
9427 msgstr ""
9428
9429 #. type: textblock
9430 #: ../fish/guestfish-actions.pod:1380
9431 msgid "See also L</find0>."
9432 msgstr ""
9433
9434 #. type: =head2
9435 #: ../fish/guestfish-actions.pod:1385
9436 msgid "find0"
9437 msgstr ""
9438
9439 #. type: verbatim
9440 #: ../fish/guestfish-actions.pod:1387
9441 #, no-wrap
9442 msgid ""
9443 " find0 directory (files|-)\n"
9444 "\n"
9445 msgstr ""
9446
9447 #. type: textblock
9448 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
9449 msgid ""
9450 "This command lists out all files and directories, recursively, starting at "
9451 "C<directory>, placing the resulting list in the external file called "
9452 "C<files>."
9453 msgstr ""
9454
9455 #. type: textblock
9456 #: ../fish/guestfish-actions.pod:1393
9457 msgid ""
9458 "This command works the same way as L</find> with the following exceptions:"
9459 msgstr ""
9460
9461 #. type: textblock
9462 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
9463 msgid "The resulting list is written to an external file."
9464 msgstr ""
9465
9466 #. type: textblock
9467 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
9468 msgid ""
9469 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9470 "L<find(1)> option I<-print0>."
9471 msgstr ""
9472
9473 #. type: textblock
9474 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
9475 msgid "This command is not limited in the number of names that it can return."
9476 msgstr ""
9477
9478 #. type: textblock
9479 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
9480 msgid "The result list is not sorted."
9481 msgstr ""
9482
9483 #. type: =head2
9484 #: ../fish/guestfish-actions.pod:1420
9485 msgid "findfs-label"
9486 msgstr ""
9487
9488 #. type: verbatim
9489 #: ../fish/guestfish-actions.pod:1422
9490 #, no-wrap
9491 msgid ""
9492 " findfs-label label\n"
9493 "\n"
9494 msgstr ""
9495
9496 #. type: textblock
9497 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
9498 msgid ""
9499 "This command searches the filesystems and returns the one which has the "
9500 "given label.  An error is returned if no such filesystem can be found."
9501 msgstr ""
9502
9503 #. type: textblock
9504 #: ../fish/guestfish-actions.pod:1428
9505 msgid "To find the label of a filesystem, use L</vfs-label>."
9506 msgstr ""
9507
9508 #. type: =head2
9509 #: ../fish/guestfish-actions.pod:1430
9510 msgid "findfs-uuid"
9511 msgstr ""
9512
9513 #. type: verbatim
9514 #: ../fish/guestfish-actions.pod:1432
9515 #, no-wrap
9516 msgid ""
9517 " findfs-uuid uuid\n"
9518 "\n"
9519 msgstr ""
9520
9521 #. type: textblock
9522 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
9523 msgid ""
9524 "This command searches the filesystems and returns the one which has the "
9525 "given UUID.  An error is returned if no such filesystem can be found."
9526 msgstr ""
9527
9528 #. type: textblock
9529 #: ../fish/guestfish-actions.pod:1438
9530 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
9531 msgstr ""
9532
9533 #. type: =head2
9534 #: ../fish/guestfish-actions.pod:1440
9535 msgid "fsck"
9536 msgstr ""
9537
9538 #. type: verbatim
9539 #: ../fish/guestfish-actions.pod:1442
9540 #, no-wrap
9541 msgid ""
9542 " fsck fstype device\n"
9543 "\n"
9544 msgstr ""
9545
9546 #. type: textblock
9547 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
9548 msgid ""
9549 "This runs the filesystem checker (fsck) on C<device> which should have "
9550 "filesystem type C<fstype>."
9551 msgstr ""
9552
9553 #. type: textblock
9554 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
9555 msgid ""
9556 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9557 "codes from C<fsck>."
9558 msgstr ""
9559
9560 #. type: textblock
9561 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
9562 msgid "Multiple status codes can be summed together."
9563 msgstr ""
9564
9565 #. type: textblock
9566 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
9567 msgid ""
9568 "A non-zero return code can mean \"success\", for example if errors have been "
9569 "corrected on the filesystem."
9570 msgstr ""
9571
9572 #. type: textblock
9573 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
9574 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9575 msgstr ""
9576
9577 #. type: textblock
9578 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
9579 msgid ""
9580 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9581 msgstr ""
9582
9583 #. type: =head2
9584 #: ../fish/guestfish-actions.pod:1472
9585 msgid "get-append"
9586 msgstr ""
9587
9588 #. type: verbatim
9589 #: ../fish/guestfish-actions.pod:1474
9590 #, no-wrap
9591 msgid ""
9592 " get-append\n"
9593 "\n"
9594 msgstr ""
9595
9596 #. type: textblock
9597 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
9598 msgid ""
9599 "Return the additional kernel options which are added to the guest kernel "
9600 "command line."
9601 msgstr ""
9602
9603 #. type: textblock
9604 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
9605 msgid "If C<NULL> then no options are added."
9606 msgstr ""
9607
9608 #. type: =head2
9609 #: ../fish/guestfish-actions.pod:1481
9610 msgid "get-attach-method"
9611 msgstr ""
9612
9613 #. type: verbatim
9614 #: ../fish/guestfish-actions.pod:1483
9615 #, no-wrap
9616 msgid ""
9617 " get-attach-method\n"
9618 "\n"
9619 msgstr ""
9620
9621 #. type: textblock
9622 #: ../fish/guestfish-actions.pod:1485
9623 msgid "Return the current attach method.  See L</set-attach-method>."
9624 msgstr ""
9625
9626 #. type: =head2
9627 #: ../fish/guestfish-actions.pod:1487
9628 msgid "get-autosync"
9629 msgstr ""
9630
9631 #. type: verbatim
9632 #: ../fish/guestfish-actions.pod:1489
9633 #, no-wrap
9634 msgid ""
9635 " get-autosync\n"
9636 "\n"
9637 msgstr ""
9638
9639 #. type: textblock
9640 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9641 msgid "Get the autosync flag."
9642 msgstr ""
9643
9644 #. type: =head2
9645 #: ../fish/guestfish-actions.pod:1493
9646 msgid "get-direct"
9647 msgstr ""
9648
9649 #. type: verbatim
9650 #: ../fish/guestfish-actions.pod:1495
9651 #, no-wrap
9652 msgid ""
9653 " get-direct\n"
9654 "\n"
9655 msgstr ""
9656
9657 #. type: textblock
9658 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9659 msgid "Return the direct appliance mode flag."
9660 msgstr ""
9661
9662 #. type: =head2
9663 #: ../fish/guestfish-actions.pod:1499
9664 msgid "get-e2label"
9665 msgstr ""
9666
9667 #. type: verbatim
9668 #: ../fish/guestfish-actions.pod:1501
9669 #, no-wrap
9670 msgid ""
9671 " get-e2label device\n"
9672 "\n"
9673 msgstr ""
9674
9675 #. type: textblock
9676 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9677 msgid ""
9678 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9679 msgstr ""
9680
9681 #. type: textblock
9682 #: ../fish/guestfish-actions.pod:1506
9683 msgid ""
9684 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9685 "instead."
9686 msgstr ""
9687
9688 #. type: =head2
9689 #: ../fish/guestfish-actions.pod:1513
9690 msgid "get-e2uuid"
9691 msgstr ""
9692
9693 #. type: verbatim
9694 #: ../fish/guestfish-actions.pod:1515
9695 #, no-wrap
9696 msgid ""
9697 " get-e2uuid device\n"
9698 "\n"
9699 msgstr ""
9700
9701 #. type: textblock
9702 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9703 msgid ""
9704 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9705 msgstr ""
9706
9707 #. type: textblock
9708 #: ../fish/guestfish-actions.pod:1520
9709 msgid ""
9710 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9711 "instead."
9712 msgstr ""
9713
9714 #. type: =head2
9715 #: ../fish/guestfish-actions.pod:1527
9716 msgid "get-memsize"
9717 msgstr ""
9718
9719 #. type: verbatim
9720 #: ../fish/guestfish-actions.pod:1529
9721 #, no-wrap
9722 msgid ""
9723 " get-memsize\n"
9724 "\n"
9725 msgstr ""
9726
9727 #. type: textblock
9728 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9729 msgid ""
9730 "This gets the memory size in megabytes allocated to the qemu subprocess."
9731 msgstr ""
9732
9733 #. type: textblock
9734 #: ../fish/guestfish-actions.pod:1534
9735 msgid ""
9736 "If L</set-memsize> was not called on this handle, and if "
9737 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9738 "value for memsize."
9739 msgstr ""
9740
9741 #. type: textblock
9742 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
9743 #: ../fish/guestfish-actions.pod:4474 ../fish/guestfish-actions.pod:4576
9744 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
9745 #: ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:7053
9746 msgid ""
9747 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9748 msgstr ""
9749
9750 #. type: =head2
9751 #: ../fish/guestfish-actions.pod:1541
9752 msgid "get-network"
9753 msgstr ""
9754
9755 #. type: verbatim
9756 #: ../fish/guestfish-actions.pod:1543
9757 #, no-wrap
9758 msgid ""
9759 " get-network\n"
9760 "\n"
9761 msgstr ""
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9765 msgid "This returns the enable network flag."
9766 msgstr ""
9767
9768 #. type: =head2
9769 #: ../fish/guestfish-actions.pod:1547
9770 msgid "get-path"
9771 msgstr ""
9772
9773 #. type: verbatim
9774 #: ../fish/guestfish-actions.pod:1549
9775 #, no-wrap
9776 msgid ""
9777 " get-path\n"
9778 "\n"
9779 msgstr ""
9780
9781 #. type: textblock
9782 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9783 msgid "Return the current search path."
9784 msgstr ""
9785
9786 #. type: textblock
9787 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9788 msgid ""
9789 "This is always non-NULL.  If it wasn't set already, then this will return "
9790 "the default path."
9791 msgstr ""
9792
9793 #. type: =head2
9794 #: ../fish/guestfish-actions.pod:1556
9795 msgid "get-pgroup"
9796 msgstr ""
9797
9798 #. type: verbatim
9799 #: ../fish/guestfish-actions.pod:1558
9800 #, no-wrap
9801 msgid ""
9802 " get-pgroup\n"
9803 "\n"
9804 msgstr ""
9805
9806 #. type: textblock
9807 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9808 msgid "This returns the process group flag."
9809 msgstr ""
9810
9811 #. type: =head2
9812 #: ../fish/guestfish-actions.pod:1562
9813 msgid "get-pid"
9814 msgstr ""
9815
9816 #. type: =head2
9817 #: ../fish/guestfish-actions.pod:1564
9818 msgid "pid"
9819 msgstr ""
9820
9821 #. type: verbatim
9822 #: ../fish/guestfish-actions.pod:1566
9823 #, no-wrap
9824 msgid ""
9825 " get-pid\n"
9826 "\n"
9827 msgstr ""
9828
9829 #. type: textblock
9830 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9831 msgid ""
9832 "Return the process ID of the qemu subprocess.  If there is no qemu "
9833 "subprocess, then this will return an error."
9834 msgstr ""
9835
9836 #. type: textblock
9837 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9838 msgid "This is an internal call used for debugging and testing."
9839 msgstr ""
9840
9841 #. type: =head2
9842 #: ../fish/guestfish-actions.pod:1573
9843 msgid "get-qemu"
9844 msgstr ""
9845
9846 #. type: verbatim
9847 #: ../fish/guestfish-actions.pod:1575
9848 #, no-wrap
9849 msgid ""
9850 " get-qemu\n"
9851 "\n"
9852 msgstr ""
9853
9854 #. type: textblock
9855 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9856 msgid "Return the current qemu binary."
9857 msgstr ""
9858
9859 #. type: textblock
9860 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9861 msgid ""
9862 "This is always non-NULL.  If it wasn't set already, then this will return "
9863 "the default qemu binary name."
9864 msgstr ""
9865
9866 #. type: =head2
9867 #: ../fish/guestfish-actions.pod:1582
9868 msgid "get-recovery-proc"
9869 msgstr ""
9870
9871 #. type: verbatim
9872 #: ../fish/guestfish-actions.pod:1584
9873 #, no-wrap
9874 msgid ""
9875 " get-recovery-proc\n"
9876 "\n"
9877 msgstr ""
9878
9879 #. type: textblock
9880 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9881 msgid "Return the recovery process enabled flag."
9882 msgstr ""
9883
9884 #. type: =head2
9885 #: ../fish/guestfish-actions.pod:1588
9886 msgid "get-selinux"
9887 msgstr ""
9888
9889 #. type: verbatim
9890 #: ../fish/guestfish-actions.pod:1590
9891 #, no-wrap
9892 msgid ""
9893 " get-selinux\n"
9894 "\n"
9895 msgstr ""
9896
9897 #. type: textblock
9898 #: ../fish/guestfish-actions.pod:1592
9899 msgid ""
9900 "This returns the current setting of the selinux flag which is passed to the "
9901 "appliance at boot time.  See L</set-selinux>."
9902 msgstr ""
9903
9904 #. type: =head2
9905 #: ../fish/guestfish-actions.pod:1598
9906 msgid "get-smp"
9907 msgstr ""
9908
9909 #. type: verbatim
9910 #: ../fish/guestfish-actions.pod:1600
9911 #, no-wrap
9912 msgid ""
9913 " get-smp\n"
9914 "\n"
9915 msgstr ""
9916
9917 #. type: textblock
9918 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9919 msgid "This returns the number of virtual CPUs assigned to the appliance."
9920 msgstr ""
9921
9922 #. type: =head2
9923 #: ../fish/guestfish-actions.pod:1604
9924 msgid "get-state"
9925 msgstr ""
9926
9927 #. type: verbatim
9928 #: ../fish/guestfish-actions.pod:1606
9929 #, no-wrap
9930 msgid ""
9931 " get-state\n"
9932 "\n"
9933 msgstr ""
9934
9935 #. type: textblock
9936 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9937 msgid ""
9938 "This returns the current state as an opaque integer.  This is only useful "
9939 "for printing debug and internal error messages."
9940 msgstr ""
9941
9942 #. type: textblock
9943 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9944 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9945 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582
9946 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930
9947 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
9948 msgid "For more information on states, see L<guestfs(3)>."
9949 msgstr ""
9950
9951 #. type: =head2
9952 #: ../fish/guestfish-actions.pod:1613
9953 msgid "get-trace"
9954 msgstr ""
9955
9956 #. type: verbatim
9957 #: ../fish/guestfish-actions.pod:1615
9958 #, no-wrap
9959 msgid ""
9960 " get-trace\n"
9961 "\n"
9962 msgstr ""
9963
9964 #. type: textblock
9965 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9966 msgid "Return the command trace flag."
9967 msgstr ""
9968
9969 #. type: =head2
9970 #: ../fish/guestfish-actions.pod:1619
9971 msgid "get-umask"
9972 msgstr ""
9973
9974 #. type: verbatim
9975 #: ../fish/guestfish-actions.pod:1621
9976 #, no-wrap
9977 msgid ""
9978 " get-umask\n"
9979 "\n"
9980 msgstr ""
9981
9982 #. type: textblock
9983 #: ../fish/guestfish-actions.pod:1623
9984 msgid ""
9985 "Return the current umask.  By default the umask is C<022> unless it has been "
9986 "set by calling L</umask>."
9987 msgstr ""
9988
9989 #. type: =head2
9990 #: ../fish/guestfish-actions.pod:1626
9991 msgid "get-verbose"
9992 msgstr ""
9993
9994 #. type: verbatim
9995 #: ../fish/guestfish-actions.pod:1628
9996 #, no-wrap
9997 msgid ""
9998 " get-verbose\n"
9999 "\n"
10000 msgstr ""
10001
10002 #. type: textblock
10003 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
10004 msgid "This returns the verbose messages flag."
10005 msgstr ""
10006
10007 #. type: =head2
10008 #: ../fish/guestfish-actions.pod:1632
10009 msgid "getcon"
10010 msgstr ""
10011
10012 #. type: verbatim
10013 #: ../fish/guestfish-actions.pod:1634
10014 #, no-wrap
10015 msgid ""
10016 " getcon\n"
10017 "\n"
10018 msgstr ""
10019
10020 #. type: textblock
10021 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
10022 msgid "This gets the SELinux security context of the daemon."
10023 msgstr ""
10024
10025 #. type: textblock
10026 #: ../fish/guestfish-actions.pod:1638
10027 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
10028 msgstr ""
10029
10030 #. type: =head2
10031 #: ../fish/guestfish-actions.pod:1641
10032 msgid "getxattr"
10033 msgstr ""
10034
10035 #. type: verbatim
10036 #: ../fish/guestfish-actions.pod:1643
10037 #, no-wrap
10038 msgid ""
10039 " getxattr path name\n"
10040 "\n"
10041 msgstr ""
10042
10043 #. type: textblock
10044 #: ../fish/guestfish-actions.pod:1645
10045 msgid ""
10046 "Get a single extended attribute from file C<path> named C<name>.  This call "
10047 "follows symlinks.  If you want to lookup an extended attribute for the "
10048 "symlink itself, use L</lgetxattr>."
10049 msgstr ""
10050
10051 #. type: textblock
10052 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
10053 msgid ""
10054 "Normally it is better to get all extended attributes from a file in one go "
10055 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
10056 "buggy and do not provide a way to list out attributes.  For these "
10057 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
10058 "attributes you want in advance and call this function."
10059 msgstr ""
10060
10061 #. type: textblock
10062 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
10063 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
10064 msgid ""
10065 "Extended attribute values are blobs of binary data.  If there is no extended "
10066 "attribute named C<name>, this returns an error."
10067 msgstr ""
10068
10069 #. type: textblock
10070 #: ../fish/guestfish-actions.pod:1659
10071 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10072 msgstr ""
10073
10074 #. type: =head2
10075 #: ../fish/guestfish-actions.pod:1661
10076 msgid "getxattrs"
10077 msgstr ""
10078
10079 #. type: verbatim
10080 #: ../fish/guestfish-actions.pod:1663
10081 #, no-wrap
10082 msgid ""
10083 " getxattrs path\n"
10084 "\n"
10085 msgstr ""
10086
10087 #. type: textblock
10088 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
10089 msgid ""
10090 "This call lists the extended attributes of the file or directory C<path>."
10091 msgstr ""
10092
10093 #. type: textblock
10094 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
10095 msgid ""
10096 "At the system call level, this is a combination of the L<listxattr(2)> and "
10097 "L<getxattr(2)> calls."
10098 msgstr ""
10099
10100 #. type: textblock
10101 #: ../fish/guestfish-actions.pod:1671
10102 msgid "See also: L</lgetxattrs>, L<attr(5)>."
10103 msgstr ""
10104
10105 #. type: =head2
10106 #: ../fish/guestfish-actions.pod:1673
10107 msgid "glob-expand"
10108 msgstr ""
10109
10110 #. type: verbatim
10111 #: ../fish/guestfish-actions.pod:1675
10112 #, no-wrap
10113 msgid ""
10114 " glob-expand pattern\n"
10115 "\n"
10116 msgstr ""
10117
10118 #. type: textblock
10119 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
10120 msgid ""
10121 "This command searches for all the pathnames matching C<pattern> according to "
10122 "the wildcard expansion rules used by the shell."
10123 msgstr ""
10124
10125 #. type: textblock
10126 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
10127 msgid ""
10128 "If no paths match, then this returns an empty list (note: not an error)."
10129 msgstr ""
10130
10131 #. type: textblock
10132 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
10133 msgid ""
10134 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10135 "GLOB_BRACE>.  See that manual page for more details."
10136 msgstr ""
10137
10138 #. type: =head2
10139 #: ../fish/guestfish-actions.pod:1688
10140 msgid "grep"
10141 msgstr ""
10142
10143 #. type: verbatim
10144 #: ../fish/guestfish-actions.pod:1690
10145 #, no-wrap
10146 msgid ""
10147 " grep regex path\n"
10148 "\n"
10149 msgstr ""
10150
10151 #. type: textblock
10152 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
10153 msgid "This calls the external C<grep> program and returns the matching lines."
10154 msgstr ""
10155
10156 #. type: =head2
10157 #: ../fish/guestfish-actions.pod:1698
10158 msgid "grepi"
10159 msgstr ""
10160
10161 #. type: verbatim
10162 #: ../fish/guestfish-actions.pod:1700
10163 #, no-wrap
10164 msgid ""
10165 " grepi regex path\n"
10166 "\n"
10167 msgstr ""
10168
10169 #. type: textblock
10170 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
10171 msgid ""
10172 "This calls the external C<grep -i> program and returns the matching lines."
10173 msgstr ""
10174
10175 #. type: =head2
10176 #: ../fish/guestfish-actions.pod:1708
10177 msgid "grub-install"
10178 msgstr ""
10179
10180 #. type: verbatim
10181 #: ../fish/guestfish-actions.pod:1710
10182 #, no-wrap
10183 msgid ""
10184 " grub-install root device\n"
10185 "\n"
10186 msgstr ""
10187
10188 #. type: textblock
10189 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
10190 msgid ""
10191 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
10192 "with the root directory being C<root>."
10193 msgstr ""
10194
10195 #. type: textblock
10196 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
10197 msgid ""
10198 "There is currently no way in the API to install grub2, which is used by most "
10199 "modern Linux guests.  It is possible to run the grub2 command from the "
10200 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
10201 msgstr ""
10202
10203 #. type: textblock
10204 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
10205 msgid ""
10206 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
10207 "compatible with itself, so this only works in rather narrow circumstances.  "
10208 "Careful testing with each guest version is advisable."
10209 msgstr ""
10210
10211 #. type: textblock
10212 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
10213 msgid ""
10214 "If grub-install reports the error \"No suitable drive was found in the "
10215 "generated device map.\" it may be that you need to create a C</boot/grub/"
10216 "device.map> file first that contains the mapping between grub device names "
10217 "and Linux device names.  It is usually sufficient to create a file "
10218 "containing:"
10219 msgstr ""
10220
10221 #. type: verbatim
10222 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
10223 #, no-wrap
10224 msgid ""
10225 " (hd0) /dev/vda\n"
10226 "\n"
10227 msgstr ""
10228
10229 #. type: textblock
10230 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
10231 msgid "replacing C</dev/vda> with the name of the installation device."
10232 msgstr ""
10233
10234 #. type: =head2
10235 #: ../fish/guestfish-actions.pod:1748
10236 msgid "head"
10237 msgstr ""
10238
10239 #. type: verbatim
10240 #: ../fish/guestfish-actions.pod:1750
10241 #, no-wrap
10242 msgid ""
10243 " head path\n"
10244 "\n"
10245 msgstr ""
10246
10247 #. type: textblock
10248 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
10249 msgid ""
10250 "This command returns up to the first 10 lines of a file as a list of strings."
10251 msgstr ""
10252
10253 #. type: =head2
10254 #: ../fish/guestfish-actions.pod:1758
10255 msgid "head-n"
10256 msgstr ""
10257
10258 #. type: verbatim
10259 #: ../fish/guestfish-actions.pod:1760
10260 #, no-wrap
10261 msgid ""
10262 " head-n nrlines path\n"
10263 "\n"
10264 msgstr ""
10265
10266 #. type: textblock
10267 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
10268 msgid ""
10269 "If the parameter C<nrlines> is a positive number, this returns the first "
10270 "C<nrlines> lines of the file C<path>."
10271 msgstr ""
10272
10273 #. type: textblock
10274 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
10275 msgid ""
10276 "If the parameter C<nrlines> is a negative number, this returns lines from "
10277 "the file C<path>, excluding the last C<nrlines> lines."
10278 msgstr ""
10279
10280 #. type: textblock
10281 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4957
10282 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7632
10283 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10284 msgstr ""
10285
10286 #. type: =head2
10287 #: ../fish/guestfish-actions.pod:1773
10288 msgid "hexdump"
10289 msgstr ""
10290
10291 #. type: verbatim
10292 #: ../fish/guestfish-actions.pod:1775
10293 #, no-wrap
10294 msgid ""
10295 " hexdump path\n"
10296 "\n"
10297 msgstr ""
10298
10299 #. type: textblock
10300 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
10301 msgid ""
10302 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10303 "readable, canonical hex dump of the file."
10304 msgstr ""
10305
10306 #. type: =head2
10307 #: ../fish/guestfish-actions.pod:1783
10308 msgid "initrd-cat"
10309 msgstr ""
10310
10311 #. type: verbatim
10312 #: ../fish/guestfish-actions.pod:1785
10313 #, no-wrap
10314 msgid ""
10315 " initrd-cat initrdpath filename\n"
10316 "\n"
10317 msgstr ""
10318
10319 #. type: textblock
10320 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
10321 msgid ""
10322 "This command unpacks the file C<filename> from the initrd file called "
10323 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10324 "character."
10325 msgstr ""
10326
10327 #. type: textblock
10328 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
10329 msgid ""
10330 "For example, in guestfish you could use the following command to examine the "
10331 "boot script (usually called C</init>)  contained in a Linux initrd or "
10332 "initramfs image:"
10333 msgstr ""
10334
10335 #. type: verbatim
10336 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
10337 #, no-wrap
10338 msgid ""
10339 " initrd-cat /boot/initrd-<version>.img init\n"
10340 "\n"
10341 msgstr ""
10342
10343 #. type: textblock
10344 #: ../fish/guestfish-actions.pod:1797
10345 msgid "See also L</initrd-list>."
10346 msgstr ""
10347
10348 #. type: =head2
10349 #: ../fish/guestfish-actions.pod:1802
10350 msgid "initrd-list"
10351 msgstr ""
10352
10353 #. type: verbatim
10354 #: ../fish/guestfish-actions.pod:1804
10355 #, no-wrap
10356 msgid ""
10357 " initrd-list path\n"
10358 "\n"
10359 msgstr ""
10360
10361 #. type: textblock
10362 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
10363 msgid "This command lists out files contained in an initrd."
10364 msgstr ""
10365
10366 #. type: textblock
10367 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
10368 msgid ""
10369 "The files are listed without any initial C</> character.  The files are "
10370 "listed in the order they appear (not necessarily alphabetical).  Directory "
10371 "names are listed as separate items."
10372 msgstr ""
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
10376 msgid ""
10377 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10378 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10379 "files)."
10380 msgstr ""
10381
10382 #. type: =head2
10383 #: ../fish/guestfish-actions.pod:1816
10384 msgid "inotify-add-watch"
10385 msgstr ""
10386
10387 #. type: verbatim
10388 #: ../fish/guestfish-actions.pod:1818
10389 #, no-wrap
10390 msgid ""
10391 " inotify-add-watch path mask\n"
10392 "\n"
10393 msgstr ""
10394
10395 #. type: textblock
10396 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
10397 msgid "Watch C<path> for the events listed in C<mask>."
10398 msgstr ""
10399
10400 #. type: textblock
10401 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
10402 msgid ""
10403 "Note that if C<path> is a directory then events within that directory are "
10404 "watched, but this does I<not> happen recursively (in subdirectories)."
10405 msgstr ""
10406
10407 #. type: textblock
10408 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
10409 msgid ""
10410 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10411 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10412 msgstr ""
10413
10414 #. type: =head2
10415 #: ../fish/guestfish-actions.pod:1830
10416 msgid "inotify-close"
10417 msgstr ""
10418
10419 #. type: verbatim
10420 #: ../fish/guestfish-actions.pod:1832
10421 #, no-wrap
10422 msgid ""
10423 " inotify-close\n"
10424 "\n"
10425 msgstr ""
10426
10427 #. type: textblock
10428 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
10429 msgid ""
10430 "This closes the inotify handle which was previously opened by inotify_init.  "
10431 "It removes all watches, throws away any pending events, and deallocates all "
10432 "resources."
10433 msgstr ""
10434
10435 #. type: =head2
10436 #: ../fish/guestfish-actions.pod:1838
10437 msgid "inotify-files"
10438 msgstr ""
10439
10440 #. type: verbatim
10441 #: ../fish/guestfish-actions.pod:1840
10442 #, no-wrap
10443 msgid ""
10444 " inotify-files\n"
10445 "\n"
10446 msgstr ""
10447
10448 #. type: textblock
10449 #: ../fish/guestfish-actions.pod:1842
10450 msgid ""
10451 "This function is a helpful wrapper around L</inotify-read> which just "
10452 "returns a list of pathnames of objects that were touched.  The returned "
10453 "pathnames are sorted and deduplicated."
10454 msgstr ""
10455
10456 #. type: =head2
10457 #: ../fish/guestfish-actions.pod:1846
10458 msgid "inotify-init"
10459 msgstr ""
10460
10461 #. type: verbatim
10462 #: ../fish/guestfish-actions.pod:1848
10463 #, no-wrap
10464 msgid ""
10465 " inotify-init maxevents\n"
10466 "\n"
10467 msgstr ""
10468
10469 #. type: textblock
10470 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
10471 msgid ""
10472 "This command creates a new inotify handle.  The inotify subsystem can be "
10473 "used to notify events which happen to objects in the guest filesystem."
10474 msgstr ""
10475
10476 #. type: textblock
10477 #: ../fish/guestfish-actions.pod:1854
10478 msgid ""
10479 "C<maxevents> is the maximum number of events which will be queued up between "
10480 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
10481 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
10482 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
10483 "but records the fact that it threw them away by setting a flag "
10484 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
10485 msgstr ""
10486
10487 #. type: textblock
10488 #: ../fish/guestfish-actions.pod:1864
10489 msgid ""
10490 "Before any events are generated, you have to add some watches to the "
10491 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
10492 "L</inotify-watch-all>."
10493 msgstr ""
10494
10495 #. type: textblock
10496 #: ../fish/guestfish-actions.pod:1870
10497 msgid ""
10498 "Queued up events should be read periodically by calling L</inotify-read> (or "
10499 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
10500 "If you don't read the events out often enough then you risk the internal "
10501 "queue overflowing."
10502 msgstr ""
10503
10504 #. type: textblock
10505 #: ../fish/guestfish-actions.pod:1877
10506 msgid ""
10507 "The handle should be closed after use by calling L</inotify-close>.  This "
10508 "also removes any watches automatically."
10509 msgstr ""
10510
10511 #. type: textblock
10512 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
10513 msgid ""
10514 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10515 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10516 "that there is one global inotify handle per libguestfs instance."
10517 msgstr ""
10518
10519 #. type: =head2
10520 #: ../fish/guestfish-actions.pod:1886
10521 msgid "inotify-read"
10522 msgstr ""
10523
10524 #. type: verbatim
10525 #: ../fish/guestfish-actions.pod:1888
10526 #, no-wrap
10527 msgid ""
10528 " inotify-read\n"
10529 "\n"
10530 msgstr ""
10531
10532 #. type: textblock
10533 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
10534 msgid ""
10535 "Return the complete queue of events that have happened since the previous "
10536 "read call."
10537 msgstr ""
10538
10539 #. type: textblock
10540 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
10541 msgid "If no events have happened, this returns an empty list."
10542 msgstr ""
10543
10544 #. type: textblock
10545 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
10546 msgid ""
10547 "I<Note>: In order to make sure that all events have been read, you must call "
10548 "this function repeatedly until it returns an empty list.  The reason is that "
10549 "the call will read events up to the maximum appliance-to-host message size "
10550 "and leave remaining events in the queue."
10551 msgstr ""
10552
10553 #. type: =head2
10554 #: ../fish/guestfish-actions.pod:1901
10555 msgid "inotify-rm-watch"
10556 msgstr ""
10557
10558 #. type: verbatim
10559 #: ../fish/guestfish-actions.pod:1903
10560 #, no-wrap
10561 msgid ""
10562 " inotify-rm-watch wd\n"
10563 "\n"
10564 msgstr ""
10565
10566 #. type: textblock
10567 #: ../fish/guestfish-actions.pod:1905
10568 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10569 msgstr ""
10570
10571 #. type: =head2
10572 #: ../fish/guestfish-actions.pod:1908
10573 msgid "inspect-get-arch"
10574 msgstr ""
10575
10576 #. type: verbatim
10577 #: ../fish/guestfish-actions.pod:1910
10578 #, no-wrap
10579 msgid ""
10580 " inspect-get-arch root\n"
10581 "\n"
10582 msgstr ""
10583
10584 #. type: textblock
10585 #: ../fish/guestfish-actions.pod:1912
10586 msgid ""
10587 "This returns the architecture of the inspected operating system.  The "
10588 "possible return values are listed under L</file-architecture>."
10589 msgstr ""
10590
10591 #. type: textblock
10592 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
10593 msgid ""
10594 "If the architecture could not be determined, then the string C<unknown> is "
10595 "returned."
10596 msgstr ""
10597
10598 #. type: textblock
10599 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10600 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10601 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10602 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10603 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
10604 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
10605 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
10606 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
10607 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048
10608 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
10609 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
10610 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
10611 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
10612 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654
10613 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691
10614 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725
10615 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
10616 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10617 msgstr ""
10618
10619 #. type: =head2
10620 #: ../fish/guestfish-actions.pod:1921
10621 msgid "inspect-get-distro"
10622 msgstr ""
10623
10624 #. type: verbatim
10625 #: ../fish/guestfish-actions.pod:1923
10626 #, no-wrap
10627 msgid ""
10628 " inspect-get-distro root\n"
10629 "\n"
10630 msgstr ""
10631
10632 #. type: textblock
10633 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
10634 msgid ""
10635 "This returns the distro (distribution) of the inspected operating system."
10636 msgstr ""
10637
10638 #. type: textblock
10639 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
10640 msgid "Currently defined distros are:"
10641 msgstr ""
10642
10643 #. type: =item
10644 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
10645 msgid "\"archlinux\""
10646 msgstr ""
10647
10648 #. type: textblock
10649 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
10650 msgid "Arch Linux."
10651 msgstr ""
10652
10653 #. type: =item
10654 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10655 msgid "\"centos\""
10656 msgstr ""
10657
10658 #. type: textblock
10659 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10660 msgid "CentOS."
10661 msgstr ""
10662
10663 #. type: =item
10664 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10665 msgid "\"debian\""
10666 msgstr ""
10667
10668 #. type: textblock
10669 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10670 msgid "Debian."
10671 msgstr ""
10672
10673 #. type: =item
10674 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
10675 msgid "\"fedora\""
10676 msgstr ""
10677
10678 #. type: textblock
10679 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
10680 msgid "Fedora."
10681 msgstr ""
10682
10683 #. type: =item
10684 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
10685 msgid "\"gentoo\""
10686 msgstr ""
10687
10688 #. type: textblock
10689 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
10690 msgid "Gentoo."
10691 msgstr ""
10692
10693 #. type: =item
10694 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
10695 msgid "\"linuxmint\""
10696 msgstr ""
10697
10698 #. type: textblock
10699 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
10700 msgid "Linux Mint."
10701 msgstr ""
10702
10703 #. type: =item
10704 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
10705 msgid "\"mageia\""
10706 msgstr ""
10707
10708 #. type: textblock
10709 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
10710 msgid "Mageia."
10711 msgstr ""
10712
10713 #. type: =item
10714 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
10715 msgid "\"mandriva\""
10716 msgstr ""
10717
10718 #. type: textblock
10719 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
10720 msgid "Mandriva."
10721 msgstr ""
10722
10723 #. type: =item
10724 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
10725 msgid "\"meego\""
10726 msgstr ""
10727
10728 #. type: textblock
10729 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
10730 msgid "MeeGo."
10731 msgstr ""
10732
10733 #. type: =item
10734 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
10735 msgid "\"opensuse\""
10736 msgstr ""
10737
10738 #. type: textblock
10739 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
10740 msgid "OpenSUSE."
10741 msgstr ""
10742
10743 #. type: =item
10744 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
10745 msgid "\"pardus\""
10746 msgstr ""
10747
10748 #. type: textblock
10749 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
10750 msgid "Pardus."
10751 msgstr ""
10752
10753 #. type: =item
10754 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
10755 msgid "\"redhat-based\""
10756 msgstr ""
10757
10758 #. type: textblock
10759 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10760 msgid "Some Red Hat-derived distro."
10761 msgstr ""
10762
10763 #. type: =item
10764 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10765 msgid "\"rhel\""
10766 msgstr ""
10767
10768 #. type: textblock
10769 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10770 msgid "Red Hat Enterprise Linux."
10771 msgstr ""
10772
10773 #. type: =item
10774 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10775 msgid "\"scientificlinux\""
10776 msgstr ""
10777
10778 #. type: textblock
10779 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10780 msgid "Scientific Linux."
10781 msgstr ""
10782
10783 #. type: =item
10784 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10785 msgid "\"slackware\""
10786 msgstr ""
10787
10788 #. type: textblock
10789 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10790 msgid "Slackware."
10791 msgstr ""
10792
10793 #. type: =item
10794 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10795 msgid "\"ttylinux\""
10796 msgstr ""
10797
10798 #. type: textblock
10799 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10800 msgid "ttylinux."
10801 msgstr ""
10802
10803 #. type: =item
10804 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10805 msgid "\"ubuntu\""
10806 msgstr ""
10807
10808 #. type: textblock
10809 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10810 msgid "Ubuntu."
10811 msgstr ""
10812
10813 #. type: =item
10814 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10815 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136
10816 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
10817 msgid "\"unknown\""
10818 msgstr ""
10819
10820 #. type: textblock
10821 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10822 msgid "The distro could not be determined."
10823 msgstr ""
10824
10825 #. type: =item
10826 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10827 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10828 msgid "\"windows\""
10829 msgstr ""
10830
10831 #. type: textblock
10832 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10833 msgid ""
10834 "Windows does not have distributions.  This string is returned if the OS type "
10835 "is Windows."
10836 msgstr ""
10837
10838 #. type: textblock
10839 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10840 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147
10841 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
10842 msgid ""
10843 "Future versions of libguestfs may return other strings here.  The caller "
10844 "should be prepared to handle any string."
10845 msgstr ""
10846
10847 #. type: =head2
10848 #: ../fish/guestfish-actions.pod:2016
10849 msgid "inspect-get-drive-mappings"
10850 msgstr ""
10851
10852 #. type: verbatim
10853 #: ../fish/guestfish-actions.pod:2018
10854 #, no-wrap
10855 msgid ""
10856 " inspect-get-drive-mappings root\n"
10857 "\n"
10858 msgstr ""
10859
10860 #. type: textblock
10861 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10862 msgid ""
10863 "This call is useful for Windows which uses a primitive system of assigning "
10864 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10865 "Windows Registry to find out how disks/partitions are mapped to drive "
10866 "letters, and returns a hash table as in the example below:"
10867 msgstr ""
10868
10869 #. type: verbatim
10870 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10871 #, no-wrap
10872 msgid ""
10873 " C      =>     /dev/vda2\n"
10874 " E      =>     /dev/vdb1\n"
10875 " F      =>     /dev/vdc1\n"
10876 "\n"
10877 msgstr ""
10878
10879 #. type: textblock
10880 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10881 msgid ""
10882 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10883 "and just contains the drive letter, without the customary colon separator "
10884 "character."
10885 msgstr ""
10886
10887 #. type: textblock
10888 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10889 msgid ""
10890 "In future we may support other operating systems that also used drive "
10891 "letters, but the keys for those might not be case insensitive and might be "
10892 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10893 "C<h1> etc."
10894 msgstr ""
10895
10896 #. type: textblock
10897 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10898 msgid ""
10899 "For Windows guests, currently only hard drive mappings are returned.  "
10900 "Removable disks (eg. DVD-ROMs) are ignored."
10901 msgstr ""
10902
10903 #. type: textblock
10904 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10905 msgid ""
10906 "For guests that do not use drive mappings, or if the drive mappings could "
10907 "not be determined, this returns an empty hash table."
10908 msgstr ""
10909
10910 #. type: textblock
10911 #: ../fish/guestfish-actions.pod:2045
10912 msgid ""
10913 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10914 "get-mountpoints>, L</inspect-get-filesystems>."
10915 msgstr ""
10916
10917 #. type: =head2
10918 #: ../fish/guestfish-actions.pod:2049
10919 msgid "inspect-get-filesystems"
10920 msgstr ""
10921
10922 #. type: verbatim
10923 #: ../fish/guestfish-actions.pod:2051
10924 #, no-wrap
10925 msgid ""
10926 " inspect-get-filesystems root\n"
10927 "\n"
10928 msgstr ""
10929
10930 #. type: textblock
10931 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10932 msgid ""
10933 "This returns a list of all the filesystems that we think are associated with "
10934 "this operating system.  This includes the root filesystem, other ordinary "
10935 "filesystems, and non-mounted devices like swap partitions."
10936 msgstr ""
10937
10938 #. type: textblock
10939 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10940 msgid ""
10941 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10942 "to be shared between operating systems."
10943 msgstr ""
10944
10945 #. type: textblock
10946 #: ../fish/guestfish-actions.pod:2061
10947 msgid ""
10948 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10949 "get-mountpoints>."
10950 msgstr ""
10951
10952 #. type: =head2
10953 #: ../fish/guestfish-actions.pod:2064
10954 msgid "inspect-get-format"
10955 msgstr ""
10956
10957 #. type: verbatim
10958 #: ../fish/guestfish-actions.pod:2066
10959 #, no-wrap
10960 msgid ""
10961 " inspect-get-format root\n"
10962 "\n"
10963 msgstr ""
10964
10965 #. type: textblock
10966 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10967 msgid ""
10968 "This returns the format of the inspected operating system.  You can use it "
10969 "to detect install images, live CDs and similar."
10970 msgstr ""
10971
10972 #. type: textblock
10973 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10974 msgid "Currently defined formats are:"
10975 msgstr ""
10976
10977 #. type: =item
10978 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10979 msgid "\"installed\""
10980 msgstr ""
10981
10982 #. type: textblock
10983 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10984 msgid "This is an installed operating system."
10985 msgstr ""
10986
10987 #. type: =item
10988 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10989 msgid "\"installer\""
10990 msgstr ""
10991
10992 #. type: textblock
10993 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10994 msgid ""
10995 "The disk image being inspected is not an installed operating system, but a "
10996 "I<bootable> install disk, live CD, or similar."
10997 msgstr ""
10998
10999 #. type: textblock
11000 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
11001 msgid "The format of this disk image is not known."
11002 msgstr ""
11003
11004 #. type: =head2
11005 #: ../fish/guestfish-actions.pod:2095
11006 msgid "inspect-get-hostname"
11007 msgstr ""
11008
11009 #. type: verbatim
11010 #: ../fish/guestfish-actions.pod:2097
11011 #, no-wrap
11012 msgid ""
11013 " inspect-get-hostname root\n"
11014 "\n"
11015 msgstr ""
11016
11017 #. type: textblock
11018 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
11019 msgid ""
11020 "This function returns the hostname of the operating system as found by "
11021 "inspection of the guest's configuration files."
11022 msgstr ""
11023
11024 #. type: textblock
11025 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
11026 msgid ""
11027 "If the hostname could not be determined, then the string C<unknown> is "
11028 "returned."
11029 msgstr ""
11030
11031 #. type: =head2
11032 #: ../fish/guestfish-actions.pod:2107
11033 msgid "inspect-get-icon"
11034 msgstr ""
11035
11036 #. type: verbatim
11037 #: ../fish/guestfish-actions.pod:2109
11038 #, no-wrap
11039 msgid ""
11040 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
11041 "\n"
11042 msgstr ""
11043
11044 #. type: textblock
11045 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
11046 msgid ""
11047 "This function returns an icon corresponding to the inspected operating "
11048 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
11049 "to PNG if necessary)."
11050 msgstr ""
11051
11052 #. type: textblock
11053 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
11054 msgid ""
11055 "If it was not possible to get an icon this function returns a zero-length "
11056 "(non-NULL) buffer.  I<Callers must check for this case>."
11057 msgstr ""
11058
11059 #. type: textblock
11060 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
11061 msgid ""
11062 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
11063 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
11064 "this file will be returned.  You can disable favicons by passing the "
11065 "optional C<favicon> boolean as false (default is true)."
11066 msgstr ""
11067
11068 #. type: textblock
11069 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
11070 msgid ""
11071 "If finding the favicon fails, then we look in other places in the guest for "
11072 "a suitable icon."
11073 msgstr ""
11074
11075 #. type: textblock
11076 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
11077 msgid ""
11078 "If the optional C<highquality> boolean is true then only high quality icons "
11079 "are returned, which means only icons of high resolution with an alpha "
11080 "channel.  The default (false) is to return any icon we can, even if it is of "
11081 "substandard quality."
11082 msgstr ""
11083
11084 #. type: textblock
11085 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
11086 msgid ""
11087 "Unlike most other inspection API calls, the guest's disks must be mounted up "
11088 "before you call this, since it needs to read information from the guest "
11089 "filesystem during the call."
11090 msgstr ""
11091
11092 #. type: textblock
11093 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
11094 msgid ""
11095 "B<Security:> The icon data comes from the untrusted guest, and should be "
11096 "treated with caution.  PNG files have been known to contain exploits.  "
11097 "Ensure that libpng (or other relevant libraries) are fully up to date before "
11098 "trying to process or display the icon."
11099 msgstr ""
11100
11101 #. type: textblock
11102 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
11103 msgid ""
11104 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
11105 "tries to return the largest, highest quality icon available.  The "
11106 "application must scale the icon to the required size."
11107 msgstr ""
11108
11109 #. type: textblock
11110 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
11111 msgid ""
11112 "Extracting icons from Windows guests requires the external C<wrestool> "
11113 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
11114 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
11115 "installed separately."
11116 msgstr ""
11117
11118 #. type: textblock
11119 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
11120 msgid ""
11121 "Operating system icons are usually trademarks.  Seek legal advice before "
11122 "using trademarks in applications."
11123 msgstr ""
11124
11125 #. type: =head2
11126 #: ../fish/guestfish-actions.pod:2173
11127 msgid "inspect-get-major-version"
11128 msgstr ""
11129
11130 #. type: verbatim
11131 #: ../fish/guestfish-actions.pod:2175
11132 #, no-wrap
11133 msgid ""
11134 " inspect-get-major-version root\n"
11135 "\n"
11136 msgstr ""
11137
11138 #. type: textblock
11139 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
11140 msgid ""
11141 "This returns the major version number of the inspected operating system."
11142 msgstr ""
11143
11144 #. type: textblock
11145 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
11146 msgid ""
11147 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11148 "popular public names used by the operating system.  Notably the operating "
11149 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11150 "1).  You can find out the real versions corresponding to releases of Windows "
11151 "by consulting Wikipedia or MSDN."
11152 msgstr ""
11153
11154 #. type: textblock
11155 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
11156 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
11157 msgid "If the version could not be determined, then C<0> is returned."
11158 msgstr ""
11159
11160 #. type: =head2
11161 #: ../fish/guestfish-actions.pod:2191
11162 msgid "inspect-get-minor-version"
11163 msgstr ""
11164
11165 #. type: verbatim
11166 #: ../fish/guestfish-actions.pod:2193
11167 #, no-wrap
11168 msgid ""
11169 " inspect-get-minor-version root\n"
11170 "\n"
11171 msgstr ""
11172
11173 #. type: textblock
11174 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
11175 msgid ""
11176 "This returns the minor version number of the inspected operating system."
11177 msgstr ""
11178
11179 #. type: textblock
11180 #: ../fish/guestfish-actions.pod:2200
11181 msgid ""
11182 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11183 "get-major-version>."
11184 msgstr ""
11185
11186 #. type: =head2
11187 #: ../fish/guestfish-actions.pod:2203
11188 msgid "inspect-get-mountpoints"
11189 msgstr ""
11190
11191 #. type: verbatim
11192 #: ../fish/guestfish-actions.pod:2205
11193 #, no-wrap
11194 msgid ""
11195 " inspect-get-mountpoints root\n"
11196 "\n"
11197 msgstr ""
11198
11199 #. type: textblock
11200 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
11201 msgid ""
11202 "This returns a hash of where we think the filesystems associated with this "
11203 "operating system should be mounted.  Callers should note that this is at "
11204 "best an educated guess made by reading configuration files such as C</etc/"
11205 "fstab>.  I<In particular note> that this may return filesystems which are "
11206 "non-existent or not mountable and callers should be prepared to handle or "
11207 "ignore failures if they try to mount them."
11208 msgstr ""
11209
11210 #. type: textblock
11211 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
11212 msgid ""
11213 "Each element in the returned hashtable has a key which is the path of the "
11214 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11215 "mounted there (eg. C</dev/sda1>)."
11216 msgstr ""
11217
11218 #. type: textblock
11219 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
11220 msgid ""
11221 "Non-mounted devices such as swap devices are I<not> returned in this list."
11222 msgstr ""
11223
11224 #. type: textblock
11225 #: ../fish/guestfish-actions.pod:2224
11226 msgid ""
11227 "For operating systems like Windows which still use drive letters, this call "
11228 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11229 "information about the mapping of drive letters to partitions, see L</inspect-"
11230 "get-drive-mappings>."
11231 msgstr ""
11232
11233 #. type: textblock
11234 #: ../fish/guestfish-actions.pod:2230
11235 msgid ""
11236 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11237 "get-filesystems>."
11238 msgstr ""
11239
11240 #. type: =head2
11241 #: ../fish/guestfish-actions.pod:2233
11242 msgid "inspect-get-package-format"
11243 msgstr ""
11244
11245 #. type: verbatim
11246 #: ../fish/guestfish-actions.pod:2235
11247 #, no-wrap
11248 msgid ""
11249 " inspect-get-package-format root\n"
11250 "\n"
11251 msgstr ""
11252
11253 #. type: textblock
11254 #: ../fish/guestfish-actions.pod:2237
11255 msgid ""
11256 "This function and L</inspect-get-package-management> return the package "
11257 "format and package management tool used by the inspected operating system.  "
11258 "For example for Fedora these functions would return C<rpm> (package format) "
11259 "and C<yum> (package management)."
11260 msgstr ""
11261
11262 #. type: textblock
11263 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
11264 msgid ""
11265 "This returns the string C<unknown> if we could not determine the package "
11266 "format I<or> if the operating system does not have a real packaging system "
11267 "(eg. Windows)."
11268 msgstr ""
11269
11270 #. type: textblock
11271 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
11272 msgid ""
11273 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
11274 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
11275 msgstr ""
11276
11277 #. type: =head2
11278 #: ../fish/guestfish-actions.pod:2253
11279 msgid "inspect-get-package-management"
11280 msgstr ""
11281
11282 #. type: verbatim
11283 #: ../fish/guestfish-actions.pod:2255
11284 #, no-wrap
11285 msgid ""
11286 " inspect-get-package-management root\n"
11287 "\n"
11288 msgstr ""
11289
11290 #. type: textblock
11291 #: ../fish/guestfish-actions.pod:2257
11292 msgid ""
11293 "L</inspect-get-package-format> and this function return the package format "
11294 "and package management tool used by the inspected operating system.  For "
11295 "example for Fedora these functions would return C<rpm> (package format) and "
11296 "C<yum> (package management)."
11297 msgstr ""
11298
11299 #. type: textblock
11300 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
11301 msgid ""
11302 "This returns the string C<unknown> if we could not determine the package "
11303 "management tool I<or> if the operating system does not have a real packaging "
11304 "system (eg. Windows)."
11305 msgstr ""
11306
11307 #. type: textblock
11308 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
11309 msgid ""
11310 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11311 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
11312 "versions of libguestfs may return other strings."
11313 msgstr ""
11314
11315 #. type: =head2
11316 #: ../fish/guestfish-actions.pod:2274
11317 msgid "inspect-get-product-name"
11318 msgstr ""
11319
11320 #. type: verbatim
11321 #: ../fish/guestfish-actions.pod:2276
11322 #, no-wrap
11323 msgid ""
11324 " inspect-get-product-name root\n"
11325 "\n"
11326 msgstr ""
11327
11328 #. type: textblock
11329 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
11330 msgid ""
11331 "This returns the product name of the inspected operating system.  The "
11332 "product name is generally some freeform string which can be displayed to the "
11333 "user, but should not be parsed by programs."
11334 msgstr ""
11335
11336 #. type: textblock
11337 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
11338 msgid ""
11339 "If the product name could not be determined, then the string C<unknown> is "
11340 "returned."
11341 msgstr ""
11342
11343 #. type: =head2
11344 #: ../fish/guestfish-actions.pod:2288
11345 msgid "inspect-get-product-variant"
11346 msgstr ""
11347
11348 #. type: verbatim
11349 #: ../fish/guestfish-actions.pod:2290
11350 #, no-wrap
11351 msgid ""
11352 " inspect-get-product-variant root\n"
11353 "\n"
11354 msgstr ""
11355
11356 #. type: textblock
11357 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
11358 msgid "This returns the product variant of the inspected operating system."
11359 msgstr ""
11360
11361 #. type: textblock
11362 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
11363 msgid ""
11364 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11365 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11366 "is usually a string such as C<Client> or C<Server> (other values are "
11367 "possible).  This can be used to distinguish consumer and enterprise versions "
11368 "of Windows that have the same version number (for example, Windows 7 and "
11369 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11370 "the latter is C<Server>)."
11371 msgstr ""
11372
11373 #. type: textblock
11374 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
11375 msgid ""
11376 "For enterprise Linux guests, in future we intend this to return the product "
11377 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11378 "implemented at present."
11379 msgstr ""
11380
11381 #. type: textblock
11382 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
11383 msgid ""
11384 "If the product variant could not be determined, then the string C<unknown> "
11385 "is returned."
11386 msgstr ""
11387
11388 #. type: textblock
11389 #: ../fish/guestfish-actions.pod:2311
11390 msgid ""
11391 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11392 "get-product-name>, L</inspect-get-major-version>."
11393 msgstr ""
11394
11395 #. type: =head2
11396 #: ../fish/guestfish-actions.pod:2315
11397 msgid "inspect-get-roots"
11398 msgstr ""
11399
11400 #. type: verbatim
11401 #: ../fish/guestfish-actions.pod:2317
11402 #, no-wrap
11403 msgid ""
11404 " inspect-get-roots\n"
11405 "\n"
11406 msgstr ""
11407
11408 #. type: textblock
11409 #: ../fish/guestfish-actions.pod:2319
11410 msgid ""
11411 "This function is a convenient way to get the list of root devices, as "
11412 "returned from a previous call to L</inspect-os>, but without redoing the "
11413 "whole inspection process."
11414 msgstr ""
11415
11416 #. type: textblock
11417 #: ../fish/guestfish-actions.pod:2323
11418 msgid ""
11419 "This returns an empty list if either no root devices were found or the "
11420 "caller has not called L</inspect-os>."
11421 msgstr ""
11422
11423 #. type: =head2
11424 #: ../fish/guestfish-actions.pod:2328
11425 msgid "inspect-get-type"
11426 msgstr ""
11427
11428 #. type: verbatim
11429 #: ../fish/guestfish-actions.pod:2330
11430 #, no-wrap
11431 msgid ""
11432 " inspect-get-type root\n"
11433 "\n"
11434 msgstr ""
11435
11436 #. type: textblock
11437 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
11438 msgid ""
11439 "This returns the type of the inspected operating system.  Currently defined "
11440 "types are:"
11441 msgstr ""
11442
11443 #. type: =item
11444 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
11445 msgid "\"linux\""
11446 msgstr ""
11447
11448 #. type: textblock
11449 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
11450 msgid "Any Linux-based operating system."
11451 msgstr ""
11452
11453 #. type: textblock
11454 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
11455 msgid "Any Microsoft Windows operating system."
11456 msgstr ""
11457
11458 #. type: =item
11459 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
11460 msgid "\"freebsd\""
11461 msgstr ""
11462
11463 #. type: textblock
11464 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
11465 msgid "FreeBSD."
11466 msgstr ""
11467
11468 #. type: =item
11469 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
11470 msgid "\"netbsd\""
11471 msgstr ""
11472
11473 #. type: textblock
11474 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
11475 msgid "NetBSD."
11476 msgstr ""
11477
11478 #. type: textblock
11479 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
11480 msgid "The operating system type could not be determined."
11481 msgstr ""
11482
11483 #. type: =head2
11484 #: ../fish/guestfish-actions.pod:2364
11485 msgid "inspect-get-windows-current-control-set"
11486 msgstr ""
11487
11488 #. type: verbatim
11489 #: ../fish/guestfish-actions.pod:2366
11490 #, no-wrap
11491 msgid ""
11492 " inspect-get-windows-current-control-set root\n"
11493 "\n"
11494 msgstr ""
11495
11496 #. type: textblock
11497 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
11498 msgid ""
11499 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11500 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11501 msgstr ""
11502
11503 #. type: textblock
11504 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
11505 msgid ""
11506 "This call assumes that the guest is Windows and that the Registry could be "
11507 "examined by inspection.  If this is not the case then an error is returned."
11508 msgstr ""
11509
11510 #. type: =head2
11511 #: ../fish/guestfish-actions.pod:2377
11512 msgid "inspect-get-windows-systemroot"
11513 msgstr ""
11514
11515 #. type: verbatim
11516 #: ../fish/guestfish-actions.pod:2379
11517 #, no-wrap
11518 msgid ""
11519 " inspect-get-windows-systemroot root\n"
11520 "\n"
11521 msgstr ""
11522
11523 #. type: textblock
11524 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
11525 msgid ""
11526 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11527 "is a directory path such as C</WINDOWS>."
11528 msgstr ""
11529
11530 #. type: textblock
11531 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
11532 msgid ""
11533 "This call assumes that the guest is Windows and that the systemroot could be "
11534 "determined by inspection.  If this is not the case then an error is returned."
11535 msgstr ""
11536
11537 #. type: =head2
11538 #: ../fish/guestfish-actions.pod:2390
11539 msgid "inspect-is-live"
11540 msgstr ""
11541
11542 #. type: verbatim
11543 #: ../fish/guestfish-actions.pod:2392
11544 #, no-wrap
11545 msgid ""
11546 " inspect-is-live root\n"
11547 "\n"
11548 msgstr ""
11549
11550 #. type: textblock
11551 #: ../fish/guestfish-actions.pod:2394
11552 msgid ""
11553 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11554 "then this returns true if a live image was detected on the disk."
11555 msgstr ""
11556
11557 #. type: =head2
11558 #: ../fish/guestfish-actions.pod:2400
11559 msgid "inspect-is-multipart"
11560 msgstr ""
11561
11562 #. type: verbatim
11563 #: ../fish/guestfish-actions.pod:2402
11564 #, no-wrap
11565 msgid ""
11566 " inspect-is-multipart root\n"
11567 "\n"
11568 msgstr ""
11569
11570 #. type: textblock
11571 #: ../fish/guestfish-actions.pod:2404
11572 msgid ""
11573 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11574 "then this returns true if the disk is part of a set."
11575 msgstr ""
11576
11577 #. type: =head2
11578 #: ../fish/guestfish-actions.pod:2410
11579 msgid "inspect-is-netinst"
11580 msgstr ""
11581
11582 #. type: verbatim
11583 #: ../fish/guestfish-actions.pod:2412
11584 #, no-wrap
11585 msgid ""
11586 " inspect-is-netinst root\n"
11587 "\n"
11588 msgstr ""
11589
11590 #. type: textblock
11591 #: ../fish/guestfish-actions.pod:2414
11592 msgid ""
11593 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11594 "then this returns true if the disk is a network installer, ie. not a self-"
11595 "contained install CD but one which is likely to require network access to "
11596 "complete the install."
11597 msgstr ""
11598
11599 #. type: =head2
11600 #: ../fish/guestfish-actions.pod:2422
11601 msgid "inspect-list-applications"
11602 msgstr ""
11603
11604 #. type: verbatim
11605 #: ../fish/guestfish-actions.pod:2424
11606 #, no-wrap
11607 msgid ""
11608 " inspect-list-applications root\n"
11609 "\n"
11610 msgstr ""
11611
11612 #. type: textblock
11613 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
11614 msgid "Return the list of applications installed in the operating system."
11615 msgstr ""
11616
11617 #. type: textblock
11618 #: ../fish/guestfish-actions.pod:2428
11619 msgid ""
11620 "I<Note:> This call works differently from other parts of the inspection "
11621 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11622 "then mount up the disks, before calling this.  Listing applications is a "
11623 "significantly more difficult operation which requires access to the full "
11624 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11625 "are just returning data cached in the libguestfs handle, this call actually "
11626 "reads parts of the mounted filesystems during the call."
11627 msgstr ""
11628
11629 #. type: textblock
11630 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
11631 msgid ""
11632 "This returns an empty list if the inspection code was not able to determine "
11633 "the list of applications."
11634 msgstr ""
11635
11636 #. type: textblock
11637 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
11638 msgid "The application structure contains the following fields:"
11639 msgstr ""
11640
11641 #. type: =item
11642 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
11643 msgid "C<app_name>"
11644 msgstr ""
11645
11646 #. type: textblock
11647 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
11648 msgid ""
11649 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11650 "guests, this is the package name."
11651 msgstr ""
11652
11653 #. type: =item
11654 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
11655 msgid "C<app_display_name>"
11656 msgstr ""
11657
11658 #. type: textblock
11659 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
11660 msgid ""
11661 "The display name of the application, sometimes localized to the install "
11662 "language of the guest operating system."
11663 msgstr ""
11664
11665 #. type: textblock
11666 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
11667 msgid ""
11668 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11669 "to display something can use C<app_name> instead."
11670 msgstr ""
11671
11672 #. type: =item
11673 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
11674 msgid "C<app_epoch>"
11675 msgstr ""
11676
11677 #. type: textblock
11678 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
11679 msgid ""
11680 "For package managers which use epochs, this contains the epoch of the "
11681 "package (an integer).  If unavailable, this is returned as C<0>."
11682 msgstr ""
11683
11684 #. type: =item
11685 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
11686 msgid "C<app_version>"
11687 msgstr ""
11688
11689 #. type: textblock
11690 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
11691 msgid ""
11692 "The version string of the application or package.  If unavailable this is "
11693 "returned as an empty string C<\"\">."
11694 msgstr ""
11695
11696 #. type: =item
11697 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
11698 msgid "C<app_release>"
11699 msgstr ""
11700
11701 #. type: textblock
11702 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
11703 msgid ""
11704 "The release string of the application or package, for package managers that "
11705 "use this.  If unavailable this is returned as an empty string C<\"\">."
11706 msgstr ""
11707
11708 #. type: =item
11709 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
11710 msgid "C<app_install_path>"
11711 msgstr ""
11712
11713 #. type: textblock
11714 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
11715 msgid ""
11716 "The installation path of the application (on operating systems such as "
11717 "Windows which use installation paths).  This path is in the format used by "
11718 "the guest operating system, it is not a libguestfs path."
11719 msgstr ""
11720
11721 #. type: textblock
11722 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
11723 msgid "If unavailable this is returned as an empty string C<\"\">."
11724 msgstr ""
11725
11726 #. type: =item
11727 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
11728 msgid "C<app_trans_path>"
11729 msgstr ""
11730
11731 #. type: textblock
11732 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
11733 msgid ""
11734 "The install path translated into a libguestfs path.  If unavailable this is "
11735 "returned as an empty string C<\"\">."
11736 msgstr ""
11737
11738 #. type: =item
11739 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
11740 msgid "C<app_publisher>"
11741 msgstr ""
11742
11743 #. type: textblock
11744 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
11745 msgid ""
11746 "The name of the publisher of the application, for package managers that use "
11747 "this.  If unavailable this is returned as an empty string C<\"\">."
11748 msgstr ""
11749
11750 #. type: =item
11751 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11752 msgid "C<app_url>"
11753 msgstr ""
11754
11755 #. type: textblock
11756 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
11757 msgid ""
11758 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11759 "returned as an empty string C<\"\">."
11760 msgstr ""
11761
11762 #. type: =item
11763 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11764 msgid "C<app_source_package>"
11765 msgstr ""
11766
11767 #. type: textblock
11768 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11769 msgid ""
11770 "For packaging systems which support this, the name of the source package.  "
11771 "If unavailable this is returned as an empty string C<\"\">."
11772 msgstr ""
11773
11774 #. type: =item
11775 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11776 msgid "C<app_summary>"
11777 msgstr ""
11778
11779 #. type: textblock
11780 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11781 msgid ""
11782 "A short (usually one line) description of the application or package.  If "
11783 "unavailable this is returned as an empty string C<\"\">."
11784 msgstr ""
11785
11786 #. type: =item
11787 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11788 msgid "C<app_description>"
11789 msgstr ""
11790
11791 #. type: textblock
11792 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11793 msgid ""
11794 "A longer description of the application or package.  If unavailable this is "
11795 "returned as an empty string C<\"\">."
11796 msgstr ""
11797
11798 #. type: =head2
11799 #: ../fish/guestfish-actions.pod:2518
11800 msgid "inspect-os"
11801 msgstr ""
11802
11803 #. type: verbatim
11804 #: ../fish/guestfish-actions.pod:2520
11805 #, no-wrap
11806 msgid ""
11807 " inspect-os\n"
11808 "\n"
11809 msgstr ""
11810
11811 #. type: textblock
11812 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11813 msgid ""
11814 "This function uses other libguestfs functions and certain heuristics to "
11815 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11816 "for operating systems."
11817 msgstr ""
11818
11819 #. type: textblock
11820 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11821 msgid "The list returned is empty if no operating systems were found."
11822 msgstr ""
11823
11824 #. type: textblock
11825 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11826 msgid ""
11827 "If one operating system was found, then this returns a list with a single "
11828 "element, which is the name of the root filesystem of this operating system.  "
11829 "It is also possible for this function to return a list containing more than "
11830 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11831 "element being the root filesystem of one of the operating systems."
11832 msgstr ""
11833
11834 #. type: textblock
11835 #: ../fish/guestfish-actions.pod:2535
11836 msgid ""
11837 "You can pass the root string(s) returned to other L</inspect-get-*> "
11838 "functions in order to query further information about each operating system, "
11839 "such as the name and version."
11840 msgstr ""
11841
11842 #. type: textblock
11843 #: ../fish/guestfish-actions.pod:2540
11844 msgid ""
11845 "This function uses other libguestfs features such as L</mount-ro> and L</"
11846 "umount-all> in order to mount and unmount filesystems and look at the "
11847 "contents.  This should be called with no disks currently mounted.  The "
11848 "function may also use Augeas, so any existing Augeas handle will be closed."
11849 msgstr ""
11850
11851 #. type: textblock
11852 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11853 msgid ""
11854 "This function cannot decrypt encrypted disks.  The caller must do that first "
11855 "(supplying the necessary keys) if the disk is encrypted."
11856 msgstr ""
11857
11858 #. type: textblock
11859 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11860 #: ../fish/guestfish-actions.pod:2815
11861 msgid "See also L</list-filesystems>."
11862 msgstr ""
11863
11864 #. type: =head2
11865 #: ../fish/guestfish-actions.pod:2554
11866 msgid "is-blockdev"
11867 msgstr ""
11868
11869 #. type: verbatim
11870 #: ../fish/guestfish-actions.pod:2556
11871 #, no-wrap
11872 msgid ""
11873 " is-blockdev path\n"
11874 "\n"
11875 msgstr ""
11876
11877 #. type: textblock
11878 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11879 msgid ""
11880 "This returns C<true> if and only if there is a block device with the given "
11881 "C<path> name."
11882 msgstr ""
11883
11884 #. type: textblock
11885 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11886 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11887 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11888 #: ../fish/guestfish-actions.pod:2660
11889 msgid "See also L</stat>."
11890 msgstr ""
11891
11892 #. type: =head2
11893 #: ../fish/guestfish-actions.pod:2563
11894 msgid "is-busy"
11895 msgstr ""
11896
11897 #. type: verbatim
11898 #: ../fish/guestfish-actions.pod:2565
11899 #, no-wrap
11900 msgid ""
11901 " is-busy\n"
11902 "\n"
11903 msgstr ""
11904
11905 #. type: textblock
11906 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11907 msgid ""
11908 "This returns true iff this handle is busy processing a command (in the "
11909 "C<BUSY> state)."
11910 msgstr ""
11911
11912 #. type: =head2
11913 #: ../fish/guestfish-actions.pod:2572
11914 msgid "is-chardev"
11915 msgstr ""
11916
11917 #. type: verbatim
11918 #: ../fish/guestfish-actions.pod:2574
11919 #, no-wrap
11920 msgid ""
11921 " is-chardev path\n"
11922 "\n"
11923 msgstr ""
11924
11925 #. type: textblock
11926 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11927 msgid ""
11928 "This returns C<true> if and only if there is a character device with the "
11929 "given C<path> name."
11930 msgstr ""
11931
11932 #. type: =head2
11933 #: ../fish/guestfish-actions.pod:2581
11934 msgid "is-config"
11935 msgstr ""
11936
11937 #. type: verbatim
11938 #: ../fish/guestfish-actions.pod:2583
11939 #, no-wrap
11940 msgid ""
11941 " is-config\n"
11942 "\n"
11943 msgstr ""
11944
11945 #. type: textblock
11946 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11947 msgid ""
11948 "This returns true iff this handle is being configured (in the C<CONFIG> "
11949 "state)."
11950 msgstr ""
11951
11952 #. type: =head2
11953 #: ../fish/guestfish-actions.pod:2590
11954 msgid "is-dir"
11955 msgstr ""
11956
11957 #. type: verbatim
11958 #: ../fish/guestfish-actions.pod:2592
11959 #, no-wrap
11960 msgid ""
11961 " is-dir path\n"
11962 "\n"
11963 msgstr ""
11964
11965 #. type: textblock
11966 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11967 msgid ""
11968 "This returns C<true> if and only if there is a directory with the given "
11969 "C<path> name.  Note that it returns false for other objects like files."
11970 msgstr ""
11971
11972 #. type: =head2
11973 #: ../fish/guestfish-actions.pod:2600
11974 msgid "is-fifo"
11975 msgstr ""
11976
11977 #. type: verbatim
11978 #: ../fish/guestfish-actions.pod:2602
11979 #, no-wrap
11980 msgid ""
11981 " is-fifo path\n"
11982 "\n"
11983 msgstr ""
11984
11985 #. type: textblock
11986 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11987 msgid ""
11988 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11989 "given C<path> name."
11990 msgstr ""
11991
11992 #. type: =head2
11993 #: ../fish/guestfish-actions.pod:2609
11994 msgid "is-file"
11995 msgstr ""
11996
11997 #. type: verbatim
11998 #: ../fish/guestfish-actions.pod:2611
11999 #, no-wrap
12000 msgid ""
12001 " is-file path\n"
12002 "\n"
12003 msgstr ""
12004
12005 #. type: textblock
12006 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
12007 msgid ""
12008 "This returns C<true> if and only if there is a regular file with the given "
12009 "C<path> name.  Note that it returns false for other objects like directories."
12010 msgstr ""
12011
12012 #. type: =head2
12013 #: ../fish/guestfish-actions.pod:2619
12014 msgid "is-launching"
12015 msgstr ""
12016
12017 #. type: verbatim
12018 #: ../fish/guestfish-actions.pod:2621
12019 #, no-wrap
12020 msgid ""
12021 " is-launching\n"
12022 "\n"
12023 msgstr ""
12024
12025 #. type: textblock
12026 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
12027 msgid ""
12028 "This returns true iff this handle is launching the subprocess (in the "
12029 "C<LAUNCHING> state)."
12030 msgstr ""
12031
12032 #. type: =head2
12033 #: ../fish/guestfish-actions.pod:2628
12034 msgid "is-lv"
12035 msgstr ""
12036
12037 #. type: verbatim
12038 #: ../fish/guestfish-actions.pod:2630
12039 #, no-wrap
12040 msgid ""
12041 " is-lv device\n"
12042 "\n"
12043 msgstr ""
12044
12045 #. type: textblock
12046 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
12047 msgid ""
12048 "This command tests whether C<device> is a logical volume, and returns true "
12049 "iff this is the case."
12050 msgstr ""
12051
12052 #. type: =head2
12053 #: ../fish/guestfish-actions.pod:2635
12054 msgid "is-ready"
12055 msgstr ""
12056
12057 #. type: verbatim
12058 #: ../fish/guestfish-actions.pod:2637
12059 #, no-wrap
12060 msgid ""
12061 " is-ready\n"
12062 "\n"
12063 msgstr ""
12064
12065 #. type: textblock
12066 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
12067 msgid ""
12068 "This returns true iff this handle is ready to accept commands (in the "
12069 "C<READY> state)."
12070 msgstr ""
12071
12072 #. type: =head2
12073 #: ../fish/guestfish-actions.pod:2644
12074 msgid "is-socket"
12075 msgstr ""
12076
12077 #. type: verbatim
12078 #: ../fish/guestfish-actions.pod:2646
12079 #, no-wrap
12080 msgid ""
12081 " is-socket path\n"
12082 "\n"
12083 msgstr ""
12084
12085 #. type: textblock
12086 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
12087 msgid ""
12088 "This returns C<true> if and only if there is a Unix domain socket with the "
12089 "given C<path> name."
12090 msgstr ""
12091
12092 #. type: =head2
12093 #: ../fish/guestfish-actions.pod:2653
12094 msgid "is-symlink"
12095 msgstr ""
12096
12097 #. type: verbatim
12098 #: ../fish/guestfish-actions.pod:2655
12099 #, no-wrap
12100 msgid ""
12101 " is-symlink path\n"
12102 "\n"
12103 msgstr ""
12104
12105 #. type: textblock
12106 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
12107 msgid ""
12108 "This returns C<true> if and only if there is a symbolic link with the given "
12109 "C<path> name."
12110 msgstr ""
12111
12112 #. type: =head2
12113 #: ../fish/guestfish-actions.pod:2662
12114 msgid "is-zero"
12115 msgstr ""
12116
12117 #. type: verbatim
12118 #: ../fish/guestfish-actions.pod:2664
12119 #, no-wrap
12120 msgid ""
12121 " is-zero path\n"
12122 "\n"
12123 msgstr ""
12124
12125 #. type: textblock
12126 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
12127 msgid ""
12128 "This returns true iff the file exists and the file is empty or it contains "
12129 "all zero bytes."
12130 msgstr ""
12131
12132 #. type: =head2
12133 #: ../fish/guestfish-actions.pod:2669
12134 msgid "is-zero-device"
12135 msgstr ""
12136
12137 #. type: verbatim
12138 #: ../fish/guestfish-actions.pod:2671
12139 #, no-wrap
12140 msgid ""
12141 " is-zero-device device\n"
12142 "\n"
12143 msgstr ""
12144
12145 #. type: textblock
12146 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
12147 msgid "This returns true iff the device exists and contains all zero bytes."
12148 msgstr ""
12149
12150 #. type: textblock
12151 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
12152 msgid "Note that for large devices this can take a long time to run."
12153 msgstr ""
12154
12155 #. type: =head2
12156 #: ../fish/guestfish-actions.pod:2677
12157 msgid "kill-subprocess"
12158 msgstr ""
12159
12160 #. type: verbatim
12161 #: ../fish/guestfish-actions.pod:2679
12162 #, no-wrap
12163 msgid ""
12164 " kill-subprocess\n"
12165 "\n"
12166 msgstr ""
12167
12168 #. type: textblock
12169 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
12170 msgid "This kills the qemu subprocess.  You should never need to call this."
12171 msgstr ""
12172
12173 #. type: =head2
12174 #: ../fish/guestfish-actions.pod:2683
12175 msgid "launch"
12176 msgstr ""
12177
12178 #. type: =head2
12179 #: ../fish/guestfish-actions.pod:2685
12180 msgid "run"
12181 msgstr ""
12182
12183 #. type: verbatim
12184 #: ../fish/guestfish-actions.pod:2687
12185 #, no-wrap
12186 msgid ""
12187 " launch\n"
12188 "\n"
12189 msgstr ""
12190
12191 #. type: textblock
12192 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
12193 msgid ""
12194 "Internally libguestfs is implemented by running a virtual machine using "
12195 "L<qemu(1)>."
12196 msgstr ""
12197
12198 #. type: textblock
12199 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
12200 msgid ""
12201 "You should call this after configuring the handle (eg. adding drives) but "
12202 "before performing any actions."
12203 msgstr ""
12204
12205 #. type: =head2
12206 #: ../fish/guestfish-actions.pod:2695
12207 msgid "lchown"
12208 msgstr ""
12209
12210 #. type: verbatim
12211 #: ../fish/guestfish-actions.pod:2697
12212 #, no-wrap
12213 msgid ""
12214 " lchown owner group path\n"
12215 "\n"
12216 msgstr ""
12217
12218 #. type: textblock
12219 #: ../fish/guestfish-actions.pod:2699
12220 msgid ""
12221 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
12222 "chown> but if C<path> is a symlink then the link itself is changed, not the "
12223 "target."
12224 msgstr ""
12225
12226 #. type: =head2
12227 #: ../fish/guestfish-actions.pod:2707
12228 msgid "lgetxattr"
12229 msgstr ""
12230
12231 #. type: verbatim
12232 #: ../fish/guestfish-actions.pod:2709
12233 #, no-wrap
12234 msgid ""
12235 " lgetxattr path name\n"
12236 "\n"
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
12241 msgid ""
12242 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12243 "is a symlink, then this call returns an extended attribute from the symlink."
12244 msgstr ""
12245
12246 #. type: textblock
12247 #: ../fish/guestfish-actions.pod:2725
12248 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12249 msgstr ""
12250
12251 #. type: =head2
12252 #: ../fish/guestfish-actions.pod:2727
12253 msgid "lgetxattrs"
12254 msgstr ""
12255
12256 #. type: verbatim
12257 #: ../fish/guestfish-actions.pod:2729
12258 #, no-wrap
12259 msgid ""
12260 " lgetxattrs path\n"
12261 "\n"
12262 msgstr ""
12263
12264 #. type: textblock
12265 #: ../fish/guestfish-actions.pod:2731
12266 msgid ""
12267 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12268 "it returns the extended attributes of the link itself."
12269 msgstr ""
12270
12271 #. type: =head2
12272 #: ../fish/guestfish-actions.pod:2735
12273 msgid "list-9p"
12274 msgstr ""
12275
12276 #. type: verbatim
12277 #: ../fish/guestfish-actions.pod:2737
12278 #, no-wrap
12279 msgid ""
12280 " list-9p\n"
12281 "\n"
12282 msgstr ""
12283
12284 #. type: textblock
12285 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
12286 msgid ""
12287 "List all 9p filesystems attached to the guest.  A list of mount tags is "
12288 "returned."
12289 msgstr ""
12290
12291 #. type: =head2
12292 #: ../fish/guestfish-actions.pod:2742
12293 msgid "list-devices"
12294 msgstr ""
12295
12296 #. type: verbatim
12297 #: ../fish/guestfish-actions.pod:2744
12298 #, no-wrap
12299 msgid ""
12300 " list-devices\n"
12301 "\n"
12302 msgstr ""
12303
12304 #. type: textblock
12305 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
12306 msgid "List all the block devices."
12307 msgstr ""
12308
12309 #. type: textblock
12310 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
12311 msgid "The full block device names are returned, eg. C</dev/sda>."
12312 msgstr ""
12313
12314 #. type: =head2
12315 #: ../fish/guestfish-actions.pod:2752
12316 msgid "list-dm-devices"
12317 msgstr ""
12318
12319 #. type: verbatim
12320 #: ../fish/guestfish-actions.pod:2754
12321 #, no-wrap
12322 msgid ""
12323 " list-dm-devices\n"
12324 "\n"
12325 msgstr ""
12326
12327 #. type: textblock
12328 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
12329 msgid "List all device mapper devices."
12330 msgstr ""
12331
12332 #. type: textblock
12333 #: ../fish/guestfish-actions.pod:2758
12334 msgid ""
12335 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12336 "previous call to L</luks-open>."
12337 msgstr ""
12338
12339 #. type: textblock
12340 #: ../fish/guestfish-actions.pod:2761
12341 msgid ""
12342 "Device mapper devices which correspond to logical volumes are I<not> "
12343 "returned in this list.  Call L</lvs> if you want to list logical volumes."
12344 msgstr ""
12345
12346 #. type: =head2
12347 #: ../fish/guestfish-actions.pod:2765
12348 msgid "list-filesystems"
12349 msgstr ""
12350
12351 #. type: verbatim
12352 #: ../fish/guestfish-actions.pod:2767
12353 #, no-wrap
12354 msgid ""
12355 " list-filesystems\n"
12356 "\n"
12357 msgstr ""
12358
12359 #. type: textblock
12360 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
12361 msgid ""
12362 "This inspection command looks for filesystems on partitions, block devices "
12363 "and logical volumes, returning a list of devices containing filesystems and "
12364 "their type."
12365 msgstr ""
12366
12367 #. type: textblock
12368 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
12369 msgid ""
12370 "The return value is a hash, where the keys are the devices containing "
12371 "filesystems, and the values are the filesystem types.  For example:"
12372 msgstr ""
12373
12374 #. type: verbatim
12375 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
12376 #, no-wrap
12377 msgid ""
12378 " \"/dev/sda1\" => \"ntfs\"\n"
12379 " \"/dev/sda2\" => \"ext2\"\n"
12380 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12381 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12382 "\n"
12383 msgstr ""
12384
12385 #. type: textblock
12386 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
12387 msgid ""
12388 "The value can have the special value \"unknown\", meaning the content of the "
12389 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12390 msgstr ""
12391
12392 #. type: textblock
12393 #: ../fish/guestfish-actions.pod:2786
12394 msgid ""
12395 "This command runs other libguestfs commands, which might include L</mount> "
12396 "and L</umount>, and therefore you should use this soon after launch and only "
12397 "when nothing is mounted."
12398 msgstr ""
12399
12400 #. type: textblock
12401 #: ../fish/guestfish-actions.pod:2790
12402 msgid ""
12403 "Not all of the filesystems returned will be mountable.  In particular, swap "
12404 "partitions are returned in the list.  Also this command does not check that "
12405 "each filesystem found is valid and mountable, and some filesystems might be "
12406 "mountable but require special options.  Filesystems may not all belong to a "
12407 "single logical operating system (use L</inspect-os> to look for OSes)."
12408 msgstr ""
12409
12410 #. type: =head2
12411 #: ../fish/guestfish-actions.pod:2798
12412 msgid "list-md-devices"
12413 msgstr ""
12414
12415 #. type: verbatim
12416 #: ../fish/guestfish-actions.pod:2800
12417 #, no-wrap
12418 msgid ""
12419 " list-md-devices\n"
12420 "\n"
12421 msgstr ""
12422
12423 #. type: textblock
12424 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
12425 msgid "List all Linux md devices."
12426 msgstr ""
12427
12428 #. type: =head2
12429 #: ../fish/guestfish-actions.pod:2804
12430 msgid "list-partitions"
12431 msgstr ""
12432
12433 #. type: verbatim
12434 #: ../fish/guestfish-actions.pod:2806
12435 #, no-wrap
12436 msgid ""
12437 " list-partitions\n"
12438 "\n"
12439 msgstr ""
12440
12441 #. type: textblock
12442 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4289
12443 msgid "List all the partitions detected on all block devices."
12444 msgstr ""
12445
12446 #. type: textblock
12447 #: ../fish/guestfish-actions.pod:2810 ../src/guestfs-actions.pod:4291
12448 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12449 msgstr ""
12450
12451 #. type: textblock
12452 #: ../fish/guestfish-actions.pod:2812
12453 msgid ""
12454 "This does not return logical volumes.  For that you will need to call L</"
12455 "lvs>."
12456 msgstr ""
12457
12458 #. type: =head2
12459 #: ../fish/guestfish-actions.pod:2817
12460 msgid "ll"
12461 msgstr ""
12462
12463 #. type: verbatim
12464 #: ../fish/guestfish-actions.pod:2819
12465 #, no-wrap
12466 msgid ""
12467 " ll directory\n"
12468 "\n"
12469 msgstr ""
12470
12471 #. type: textblock
12472 #: ../fish/guestfish-actions.pod:2821 ../src/guestfs-actions.pod:4310
12473 msgid ""
12474 "List the files in C<directory> (relative to the root directory, there is no "
12475 "cwd) in the format of 'ls -la'."
12476 msgstr ""
12477
12478 #. type: textblock
12479 #: ../fish/guestfish-actions.pod:2824 ../src/guestfs-actions.pod:4313
12480 msgid ""
12481 "This command is mostly useful for interactive sessions.  It is I<not> "
12482 "intended that you try to parse the output string."
12483 msgstr ""
12484
12485 #. type: =head2
12486 #: ../fish/guestfish-actions.pod:2827
12487 msgid "ln"
12488 msgstr ""
12489
12490 #. type: verbatim
12491 #: ../fish/guestfish-actions.pod:2829
12492 #, no-wrap
12493 msgid ""
12494 " ln target linkname\n"
12495 "\n"
12496 msgstr ""
12497
12498 #. type: textblock
12499 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4328
12500 msgid "This command creates a hard link using the C<ln> command."
12501 msgstr ""
12502
12503 #. type: =head2
12504 #: ../fish/guestfish-actions.pod:2833
12505 msgid "ln-f"
12506 msgstr ""
12507
12508 #. type: verbatim
12509 #: ../fish/guestfish-actions.pod:2835
12510 #, no-wrap
12511 msgid ""
12512 " ln-f target linkname\n"
12513 "\n"
12514 msgstr ""
12515
12516 #. type: textblock
12517 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4341
12518 msgid ""
12519 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12520 "option removes the link (C<linkname>) if it exists already."
12521 msgstr ""
12522
12523 #. type: =head2
12524 #: ../fish/guestfish-actions.pod:2840
12525 msgid "ln-s"
12526 msgstr ""
12527
12528 #. type: verbatim
12529 #: ../fish/guestfish-actions.pod:2842
12530 #, no-wrap
12531 msgid ""
12532 " ln-s target linkname\n"
12533 "\n"
12534 msgstr ""
12535
12536 #. type: textblock
12537 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4355
12538 msgid "This command creates a symbolic link using the C<ln -s> command."
12539 msgstr ""
12540
12541 #. type: =head2
12542 #: ../fish/guestfish-actions.pod:2846
12543 msgid "ln-sf"
12544 msgstr ""
12545
12546 #. type: verbatim
12547 #: ../fish/guestfish-actions.pod:2848
12548 #, no-wrap
12549 msgid ""
12550 " ln-sf target linkname\n"
12551 "\n"
12552 msgstr ""
12553
12554 #. type: textblock
12555 #: ../fish/guestfish-actions.pod:2850 ../src/guestfs-actions.pod:4368
12556 msgid ""
12557 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12558 "option removes the link (C<linkname>) if it exists already."
12559 msgstr ""
12560
12561 #. type: =head2
12562 #: ../fish/guestfish-actions.pod:2853
12563 msgid "lremovexattr"
12564 msgstr ""
12565
12566 #. type: verbatim
12567 #: ../fish/guestfish-actions.pod:2855
12568 #, no-wrap
12569 msgid ""
12570 " lremovexattr xattr path\n"
12571 "\n"
12572 msgstr ""
12573
12574 #. type: textblock
12575 #: ../fish/guestfish-actions.pod:2857
12576 msgid ""
12577 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12578 "it removes an extended attribute of the link itself."
12579 msgstr ""
12580
12581 #. type: =head2
12582 #: ../fish/guestfish-actions.pod:2861
12583 msgid "ls"
12584 msgstr ""
12585
12586 #. type: verbatim
12587 #: ../fish/guestfish-actions.pod:2863
12588 #, no-wrap
12589 msgid ""
12590 " ls directory\n"
12591 "\n"
12592 msgstr ""
12593
12594 #. type: textblock
12595 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4396
12596 msgid ""
12597 "List the files in C<directory> (relative to the root directory, there is no "
12598 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12599 msgstr ""
12600
12601 #. type: textblock
12602 #: ../fish/guestfish-actions.pod:2869
12603 msgid ""
12604 "This command is mostly useful for interactive sessions.  Programs should "
12605 "probably use L</readdir> instead."
12606 msgstr ""
12607
12608 #. type: =head2
12609 #: ../fish/guestfish-actions.pod:2872
12610 msgid "lsetxattr"
12611 msgstr ""
12612
12613 #. type: verbatim
12614 #: ../fish/guestfish-actions.pod:2874
12615 #, no-wrap
12616 msgid ""
12617 " lsetxattr xattr val vallen path\n"
12618 "\n"
12619 msgstr ""
12620
12621 #. type: textblock
12622 #: ../fish/guestfish-actions.pod:2876
12623 msgid ""
12624 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12625 "sets an extended attribute of the link itself."
12626 msgstr ""
12627
12628 #. type: =head2
12629 #: ../fish/guestfish-actions.pod:2880
12630 msgid "lstat"
12631 msgstr ""
12632
12633 #. type: verbatim
12634 #: ../fish/guestfish-actions.pod:2882
12635 #, no-wrap
12636 msgid ""
12637 " lstat path\n"
12638 "\n"
12639 msgstr ""
12640
12641 #. type: textblock
12642 #: ../fish/guestfish-actions.pod:2884 ../fish/guestfish-actions.pod:4792
12643 #: ../src/guestfs-actions.pod:4432 ../src/guestfs-actions.pod:7372
12644 msgid "Returns file information for the given C<path>."
12645 msgstr ""
12646
12647 #. type: textblock
12648 #: ../fish/guestfish-actions.pod:2886
12649 msgid ""
12650 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12651 "the link is stat-ed, not the file it refers to."
12652 msgstr ""
12653
12654 #. type: textblock
12655 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4438
12656 msgid "This is the same as the C<lstat(2)> system call."
12657 msgstr ""
12658
12659 #. type: =head2
12660 #: ../fish/guestfish-actions.pod:2892
12661 msgid "lstatlist"
12662 msgstr ""
12663
12664 #. type: verbatim
12665 #: ../fish/guestfish-actions.pod:2894
12666 #, no-wrap
12667 msgid ""
12668 " lstatlist path 'names ...'\n"
12669 "\n"
12670 msgstr ""
12671
12672 #. type: textblock
12673 #: ../fish/guestfish-actions.pod:2896
12674 msgid ""
12675 "This call allows you to perform the L</lstat> operation on multiple files, "
12676 "where all files are in the directory C<path>.  C<names> is the list of files "
12677 "from this directory."
12678 msgstr ""
12679
12680 #. type: textblock
12681 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4457
12682 msgid ""
12683 "On return you get a list of stat structs, with a one-to-one correspondence "
12684 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12685 "then the C<ino> field of that structure is set to C<-1>."
12686 msgstr ""
12687
12688 #. type: textblock
12689 #: ../fish/guestfish-actions.pod:2905
12690 msgid ""
12691 "This call is intended for programs that want to efficiently list a directory "
12692 "contents without making many round-trips.  See also L</lxattrlist> for a "
12693 "similarly efficient call for getting extended attributes.  Very long "
12694 "directory listings might cause the protocol message size to be exceeded, "
12695 "causing this call to fail.  The caller must split up such requests into "
12696 "smaller groups of names."
12697 msgstr ""
12698
12699 #. type: =head2
12700 #: ../fish/guestfish-actions.pod:2913
12701 msgid "luks-add-key"
12702 msgstr ""
12703
12704 #. type: verbatim
12705 #: ../fish/guestfish-actions.pod:2915
12706 #, no-wrap
12707 msgid ""
12708 " luks-add-key device keyslot\n"
12709 "\n"
12710 msgstr ""
12711
12712 #. type: textblock
12713 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4485
12714 msgid ""
12715 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12716 "existing key, and is used to access the device.  C<newkey> is the new key to "
12717 "add.  C<keyslot> is the key slot that will be replaced."
12718 msgstr ""
12719
12720 #. type: textblock
12721 #: ../fish/guestfish-actions.pod:2922
12722 msgid ""
12723 "Note that if C<keyslot> already contains a key, then this command will "
12724 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12725 msgstr ""
12726
12727 #. type: textblock
12728 #: ../fish/guestfish-actions.pod:2926 ../fish/guestfish-actions.pod:2948
12729 #: ../fish/guestfish-actions.pod:2958 ../fish/guestfish-actions.pod:2969
12730 #: ../fish/guestfish-actions.pod:2995 ../fish/guestfish-actions.pod:3005
12731 msgid ""
12732 "This command has one or more key or passphrase parameters.  Guestfish will "
12733 "prompt for these separately."
12734 msgstr ""
12735
12736 #. type: =head2
12737 #: ../fish/guestfish-actions.pod:2929
12738 msgid "luks-close"
12739 msgstr ""
12740
12741 #. type: verbatim
12742 #: ../fish/guestfish-actions.pod:2931
12743 #, no-wrap
12744 msgid ""
12745 " luks-close device\n"
12746 "\n"
12747 msgstr ""
12748
12749 #. type: textblock
12750 #: ../fish/guestfish-actions.pod:2933
12751 msgid ""
12752 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12753 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12754 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12755 "block device."
12756 msgstr ""
12757
12758 #. type: =head2
12759 #: ../fish/guestfish-actions.pod:2939
12760 msgid "luks-format"
12761 msgstr ""
12762
12763 #. type: verbatim
12764 #: ../fish/guestfish-actions.pod:2941
12765 #, no-wrap
12766 msgid ""
12767 " luks-format device keyslot\n"
12768 "\n"
12769 msgstr ""
12770
12771 #. type: textblock
12772 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4526
12773 msgid ""
12774 "This command erases existing data on C<device> and formats the device as a "
12775 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12776 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12777 msgstr ""
12778
12779 #. type: =head2
12780 #: ../fish/guestfish-actions.pod:2951
12781 msgid "luks-format-cipher"
12782 msgstr ""
12783
12784 #. type: verbatim
12785 #: ../fish/guestfish-actions.pod:2953
12786 #, no-wrap
12787 msgid ""
12788 " luks-format-cipher device keyslot cipher\n"
12789 "\n"
12790 msgstr ""
12791
12792 #. type: textblock
12793 #: ../fish/guestfish-actions.pod:2955
12794 msgid ""
12795 "This command is the same as L</luks-format> but it also allows you to set "
12796 "the C<cipher> used."
12797 msgstr ""
12798
12799 #. type: =head2
12800 #: ../fish/guestfish-actions.pod:2961
12801 msgid "luks-kill-slot"
12802 msgstr ""
12803
12804 #. type: verbatim
12805 #: ../fish/guestfish-actions.pod:2963
12806 #, no-wrap
12807 msgid ""
12808 " luks-kill-slot device keyslot\n"
12809 "\n"
12810 msgstr ""
12811
12812 #. type: textblock
12813 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4567
12814 msgid ""
12815 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12816 "device C<device>.  C<key> must be one of the I<other> keys."
12817 msgstr ""
12818
12819 #. type: =head2
12820 #: ../fish/guestfish-actions.pod:2972
12821 msgid "luks-open"
12822 msgstr ""
12823
12824 #. type: verbatim
12825 #: ../fish/guestfish-actions.pod:2974
12826 #, no-wrap
12827 msgid ""
12828 " luks-open device mapname\n"
12829 "\n"
12830 msgstr ""
12831
12832 #. type: textblock
12833 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4587
12834 msgid ""
12835 "This command opens a block device which has been encrypted according to the "
12836 "Linux Unified Key Setup (LUKS) standard."
12837 msgstr ""
12838
12839 #. type: textblock
12840 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4590
12841 msgid "C<device> is the encrypted block device or partition."
12842 msgstr ""
12843
12844 #. type: textblock
12845 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4592
12846 msgid ""
12847 "The caller must supply one of the keys associated with the LUKS block "
12848 "device, in the C<key> parameter."
12849 msgstr ""
12850
12851 #. type: textblock
12852 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4595
12853 msgid ""
12854 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12855 "writes to this block device are decrypted from and encrypted to the "
12856 "underlying C<device> respectively."
12857 msgstr ""
12858
12859 #. type: textblock
12860 #: ../fish/guestfish-actions.pod:2988
12861 msgid ""
12862 "If this block device contains LVM volume groups, then calling L</vgscan> "
12863 "followed by L</vg-activate-all> will make them visible."
12864 msgstr ""
12865
12866 #. type: textblock
12867 #: ../fish/guestfish-actions.pod:2992
12868 msgid "Use L</list-dm-devices> to list all device mapper devices."
12869 msgstr ""
12870
12871 #. type: =head2
12872 #: ../fish/guestfish-actions.pod:2998
12873 msgid "luks-open-ro"
12874 msgstr ""
12875
12876 #. type: verbatim
12877 #: ../fish/guestfish-actions.pod:3000
12878 #, no-wrap
12879 msgid ""
12880 " luks-open-ro device mapname\n"
12881 "\n"
12882 msgstr ""
12883
12884 #. type: textblock
12885 #: ../fish/guestfish-actions.pod:3002
12886 msgid ""
12887 "This is the same as L</luks-open> except that a read-only mapping is created."
12888 msgstr ""
12889
12890 #. type: =head2
12891 #: ../fish/guestfish-actions.pod:3008
12892 msgid "lvcreate"
12893 msgstr ""
12894
12895 #. type: verbatim
12896 #: ../fish/guestfish-actions.pod:3010
12897 #, no-wrap
12898 msgid ""
12899 " lvcreate logvol volgroup mbytes\n"
12900 "\n"
12901 msgstr ""
12902
12903 #. type: textblock
12904 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4641
12905 msgid ""
12906 "This creates an LVM logical volume called C<logvol> on the volume group "
12907 "C<volgroup>, with C<size> megabytes."
12908 msgstr ""
12909
12910 #. type: =head2
12911 #: ../fish/guestfish-actions.pod:3015
12912 msgid "lvm-canonical-lv-name"
12913 msgstr ""
12914
12915 #. type: verbatim
12916 #: ../fish/guestfish-actions.pod:3017
12917 #, no-wrap
12918 msgid ""
12919 " lvm-canonical-lv-name lvname\n"
12920 "\n"
12921 msgstr ""
12922
12923 #. type: textblock
12924 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4654
12925 msgid ""
12926 "This converts alternative naming schemes for LVs that you might find to the "
12927 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12928 "LV>."
12929 msgstr ""
12930
12931 #. type: textblock
12932 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4658
12933 msgid ""
12934 "This command returns an error if the C<lvname> parameter does not refer to a "
12935 "logical volume."
12936 msgstr ""
12937
12938 #. type: textblock
12939 #: ../fish/guestfish-actions.pod:3026
12940 msgid "See also L</is-lv>."
12941 msgstr ""
12942
12943 #. type: =head2
12944 #: ../fish/guestfish-actions.pod:3028
12945 msgid "lvm-clear-filter"
12946 msgstr ""
12947
12948 #. type: verbatim
12949 #: ../fish/guestfish-actions.pod:3030
12950 #, no-wrap
12951 msgid ""
12952 " lvm-clear-filter\n"
12953 "\n"
12954 msgstr ""
12955
12956 #. type: textblock
12957 #: ../fish/guestfish-actions.pod:3032
12958 msgid ""
12959 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12960 "block device."
12961 msgstr ""
12962
12963 #. type: textblock
12964 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3063
12965 #: ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4715
12966 msgid ""
12967 "This command also clears the LVM cache and performs a volume group scan."
12968 msgstr ""
12969
12970 #. type: =head2
12971 #: ../fish/guestfish-actions.pod:3038
12972 msgid "lvm-remove-all"
12973 msgstr ""
12974
12975 #. type: verbatim
12976 #: ../fish/guestfish-actions.pod:3040
12977 #, no-wrap
12978 msgid ""
12979 " lvm-remove-all\n"
12980 "\n"
12981 msgstr ""
12982
12983 #. type: textblock
12984 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4688
12985 msgid ""
12986 "This command removes all LVM logical volumes, volume groups and physical "
12987 "volumes."
12988 msgstr ""
12989
12990 #. type: =head2
12991 #: ../fish/guestfish-actions.pod:3045
12992 msgid "lvm-set-filter"
12993 msgstr ""
12994
12995 #. type: verbatim
12996 #: ../fish/guestfish-actions.pod:3047
12997 #, no-wrap
12998 msgid ""
12999 " lvm-set-filter 'devices ...'\n"
13000 "\n"
13001 msgstr ""
13002
13003 #. type: textblock
13004 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4701
13005 msgid ""
13006 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13007 "block devices in the list C<devices>, and will ignore all other attached "
13008 "block devices."
13009 msgstr ""
13010
13011 #. type: textblock
13012 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4705
13013 msgid ""
13014 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13015 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13016 "there are two types of duplication possible: either cloned PVs/VGs which "
13017 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13018 "same name.  In normal operation you cannot create this situation, but you "
13019 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13020 "inside the LVM metadata."
13021 msgstr ""
13022
13023 #. type: textblock
13024 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4718
13025 msgid "You can filter whole block devices or individual partitions."
13026 msgstr ""
13027
13028 #. type: textblock
13029 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4720
13030 msgid ""
13031 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13032 "filesystem), even if you are not filtering out that VG."
13033 msgstr ""
13034
13035 #. type: =head2
13036 #: ../fish/guestfish-actions.pod:3072
13037 msgid "lvremove"
13038 msgstr ""
13039
13040 #. type: verbatim
13041 #: ../fish/guestfish-actions.pod:3074
13042 #, no-wrap
13043 msgid ""
13044 " lvremove device\n"
13045 "\n"
13046 msgstr ""
13047
13048 #. type: textblock
13049 #: ../fish/guestfish-actions.pod:3076 ../src/guestfs-actions.pod:4734
13050 msgid ""
13051 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13052 "LV, such as C</dev/VG/LV>."
13053 msgstr ""
13054
13055 #. type: textblock
13056 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4737
13057 msgid ""
13058 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13059 "dev/VG>."
13060 msgstr ""
13061
13062 #. type: =head2
13063 #: ../fish/guestfish-actions.pod:3082
13064 msgid "lvrename"
13065 msgstr ""
13066
13067 #. type: verbatim
13068 #: ../fish/guestfish-actions.pod:3084
13069 #, no-wrap
13070 msgid ""
13071 " lvrename logvol newlogvol\n"
13072 "\n"
13073 msgstr ""
13074
13075 #. type: textblock
13076 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4751
13077 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13078 msgstr ""
13079
13080 #. type: =head2
13081 #: ../fish/guestfish-actions.pod:3088
13082 msgid "lvresize"
13083 msgstr ""
13084
13085 #. type: verbatim
13086 #: ../fish/guestfish-actions.pod:3090
13087 #, no-wrap
13088 msgid ""
13089 " lvresize device mbytes\n"
13090 "\n"
13091 msgstr ""
13092
13093 #. type: textblock
13094 #: ../fish/guestfish-actions.pod:3092 ../src/guestfs-actions.pod:4764
13095 msgid ""
13096 "This resizes (expands or shrinks) an existing LVM logical volume to "
13097 "C<mbytes>.  When reducing, data in the reduced part is lost."
13098 msgstr ""
13099
13100 #. type: =head2
13101 #: ../fish/guestfish-actions.pod:3096
13102 msgid "lvresize-free"
13103 msgstr ""
13104
13105 #. type: verbatim
13106 #: ../fish/guestfish-actions.pod:3098
13107 #, no-wrap
13108 msgid ""
13109 " lvresize-free lv percent\n"
13110 "\n"
13111 msgstr ""
13112
13113 #. type: textblock
13114 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4779
13115 msgid ""
13116 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13117 "remaining free space in the volume group.  Commonly you would call this with "
13118 "pc = 100 which expands the logical volume as much as possible, using all "
13119 "remaining free space in the volume group."
13120 msgstr ""
13121
13122 #. type: =head2
13123 #: ../fish/guestfish-actions.pod:3106
13124 msgid "lvs"
13125 msgstr ""
13126
13127 #. type: verbatim
13128 #: ../fish/guestfish-actions.pod:3108
13129 #, no-wrap
13130 msgid ""
13131 " lvs\n"
13132 "\n"
13133 msgstr ""
13134
13135 #. type: textblock
13136 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4794
13137 msgid ""
13138 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13139 "(8)> command."
13140 msgstr ""
13141
13142 #. type: textblock
13143 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4797
13144 msgid ""
13145 "This returns a list of the logical volume device names (eg. C</dev/"
13146 "VolGroup00/LogVol00>)."
13147 msgstr ""
13148
13149 #. type: textblock
13150 #: ../fish/guestfish-actions.pod:3116
13151 msgid "See also L</lvs-full>, L</list-filesystems>."
13152 msgstr ""
13153
13154 #. type: =head2
13155 #: ../fish/guestfish-actions.pod:3118
13156 msgid "lvs-full"
13157 msgstr ""
13158
13159 #. type: verbatim
13160 #: ../fish/guestfish-actions.pod:3120
13161 #, no-wrap
13162 msgid ""
13163 " lvs-full\n"
13164 "\n"
13165 msgstr ""
13166
13167 #. type: textblock
13168 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4813
13169 msgid ""
13170 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13171 "(8)> command.  The \"full\" version includes all fields."
13172 msgstr ""
13173
13174 #. type: =head2
13175 #: ../fish/guestfish-actions.pod:3125
13176 msgid "lvuuid"
13177 msgstr ""
13178
13179 #. type: verbatim
13180 #: ../fish/guestfish-actions.pod:3127
13181 #, no-wrap
13182 msgid ""
13183 " lvuuid device\n"
13184 "\n"
13185 msgstr ""
13186
13187 #. type: textblock
13188 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4828
13189 msgid "This command returns the UUID of the LVM LV C<device>."
13190 msgstr ""
13191
13192 #. type: =head2
13193 #: ../fish/guestfish-actions.pod:3131
13194 msgid "lxattrlist"
13195 msgstr ""
13196
13197 #. type: verbatim
13198 #: ../fish/guestfish-actions.pod:3133
13199 #, no-wrap
13200 msgid ""
13201 " lxattrlist path 'names ...'\n"
13202 "\n"
13203 msgstr ""
13204
13205 #. type: textblock
13206 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4842
13207 msgid ""
13208 "This call allows you to get the extended attributes of multiple files, where "
13209 "all files are in the directory C<path>.  C<names> is the list of files from "
13210 "this directory."
13211 msgstr ""
13212
13213 #. type: textblock
13214 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4846
13215 msgid ""
13216 "On return you get a flat list of xattr structs which must be interpreted "
13217 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13218 "C<attrval> in this struct is zero-length to indicate there was an error "
13219 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13220 "number (the number of following attributes for this file, which could be C<"
13221 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13222 "for the first named file.  This repeats for the second and subsequent files."
13223 msgstr ""
13224
13225 #. type: textblock
13226 #: ../fish/guestfish-actions.pod:3149
13227 msgid ""
13228 "This call is intended for programs that want to efficiently list a directory "
13229 "contents without making many round-trips.  See also L</lstatlist> for a "
13230 "similarly efficient call for getting standard stats.  Very long directory "
13231 "listings might cause the protocol message size to be exceeded, causing this "
13232 "call to fail.  The caller must split up such requests into smaller groups of "
13233 "names."
13234 msgstr ""
13235
13236 #. type: =head2
13237 #: ../fish/guestfish-actions.pod:3157
13238 msgid "md-create"
13239 msgstr ""
13240
13241 #. type: verbatim
13242 #: ../fish/guestfish-actions.pod:3159
13243 #, no-wrap
13244 msgid ""
13245 " md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..]\n"
13246 "\n"
13247 msgstr ""
13248
13249 #. type: textblock
13250 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4889
13251 msgid ""
13252 "Create a Linux md (RAID) device named C<name> on the devices in the list "
13253 "C<devices>."
13254 msgstr ""
13255
13256 #. type: =item
13257 #: ../fish/guestfish-actions.pod:3168 ../src/guestfs-actions.pod:4896
13258 msgid "C<missingbitmap>"
13259 msgstr ""
13260
13261 #. type: textblock
13262 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4898
13263 msgid ""
13264 "A bitmap of missing devices.  If a bit is set it means that a missing device "
13265 "is added to the array.  The least significant bit corresponds to the first "
13266 "device in the array."
13267 msgstr ""
13268
13269 #. type: textblock
13270 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4902
13271 msgid "As examples:"
13272 msgstr ""
13273
13274 #. type: textblock
13275 #: ../fish/guestfish-actions.pod:3176 ../src/guestfs-actions.pod:4904
13276 msgid ""
13277 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
13278 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4907
13283 msgid ""
13284 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
13285 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
13286 msgstr ""
13287
13288 #. type: textblock
13289 #: ../fish/guestfish-actions.pod:3182 ../src/guestfs-actions.pod:4910
13290 msgid "This defaults to C<0> (no missing devices)."
13291 msgstr ""
13292
13293 #. type: textblock
13294 #: ../fish/guestfish-actions.pod:3184 ../src/guestfs-actions.pod:4912
13295 msgid ""
13296 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
13297 "equal C<nrdevices> + C<spare>."
13298 msgstr ""
13299
13300 #. type: =item
13301 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4915
13302 msgid "C<nrdevices>"
13303 msgstr ""
13304
13305 #. type: textblock
13306 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4917
13307 msgid "The number of active RAID devices."
13308 msgstr ""
13309
13310 #. type: textblock
13311 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4919
13312 msgid ""
13313 "If not set, this defaults to the length of C<devices> plus the number of "
13314 "bits set in C<missingbitmap>."
13315 msgstr ""
13316
13317 #. type: =item
13318 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4922
13319 msgid "C<spare>"
13320 msgstr ""
13321
13322 #. type: textblock
13323 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4924
13324 msgid "The number of spare devices."
13325 msgstr ""
13326
13327 #. type: textblock
13328 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4926
13329 msgid "If not set, this defaults to C<0>."
13330 msgstr ""
13331
13332 #. type: =item
13333 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4928
13334 msgid "C<chunk>"
13335 msgstr ""
13336
13337 #. type: textblock
13338 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4930
13339 msgid "The chunk size in bytes."
13340 msgstr ""
13341
13342 #. type: =item
13343 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3226
13344 #: ../src/guestfs-actions.pod:4932 ../src/guestfs-actions.pod:4980
13345 msgid "C<level>"
13346 msgstr ""
13347
13348 #. type: textblock
13349 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4934
13350 msgid ""
13351 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
13352 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
13353 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
13354 "added in future."
13355 msgstr ""
13356
13357 #. type: textblock
13358 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4939
13359 msgid "If not set, this defaults to C<raid1>."
13360 msgstr ""
13361
13362 #. type: =head2
13363 #: ../fish/guestfish-actions.pod:3217
13364 msgid "md-detail"
13365 msgstr ""
13366
13367 #. type: verbatim
13368 #: ../fish/guestfish-actions.pod:3219
13369 #, no-wrap
13370 msgid ""
13371 " md-detail md\n"
13372 "\n"
13373 msgstr ""
13374
13375 #. type: textblock
13376 #: ../fish/guestfish-actions.pod:3221 ../src/guestfs-actions.pod:4975
13377 msgid ""
13378 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
13379 "are usually present in the returned hash. Other fields may also be present."
13380 msgstr ""
13381
13382 #. type: textblock
13383 #: ../fish/guestfish-actions.pod:3228 ../src/guestfs-actions.pod:4982
13384 msgid "The raid level of the MD device."
13385 msgstr ""
13386
13387 #. type: =item
13388 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4984
13389 msgid "C<devices>"
13390 msgstr ""
13391
13392 #. type: textblock
13393 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4986
13394 msgid "The number of underlying devices in the MD device."
13395 msgstr ""
13396
13397 #. type: =item
13398 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4988
13399 msgid "C<metadata>"
13400 msgstr ""
13401
13402 #. type: textblock
13403 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4990
13404 msgid "The metadata version used."
13405 msgstr ""
13406
13407 #. type: =item
13408 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4992
13409 msgid "C<uuid>"
13410 msgstr ""
13411
13412 #. type: textblock
13413 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4994
13414 msgid "The UUID of the MD device."
13415 msgstr ""
13416
13417 #. type: textblock
13418 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4998
13419 msgid "The name of the MD device."
13420 msgstr ""
13421
13422 #. type: =head2
13423 #: ../fish/guestfish-actions.pod:3248
13424 msgid "md-stop"
13425 msgstr ""
13426
13427 #. type: verbatim
13428 #: ../fish/guestfish-actions.pod:3250
13429 #, no-wrap
13430 msgid ""
13431 " md-stop md\n"
13432 "\n"
13433 msgstr ""
13434
13435 #. type: textblock
13436 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5014
13437 msgid ""
13438 "This command deactivates the MD array named C<md>.  The device is stopped, "
13439 "but it is not destroyed or zeroed."
13440 msgstr ""
13441
13442 #. type: textblock
13443 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:5017
13444 msgid "The parameter is:"
13445 msgstr ""
13446
13447 #. type: =item
13448 #: ../fish/guestfish-actions.pod:3259 ../src/guestfs-actions.pod:5021
13449 msgid "C<md>"
13450 msgstr ""
13451
13452 #. type: textblock
13453 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:5023
13454 msgid "The md (RAID) device which to be deactivated."
13455 msgstr ""
13456
13457 #. type: =head2
13458 #: ../fish/guestfish-actions.pod:3265
13459 msgid "mkdir"
13460 msgstr ""
13461
13462 #. type: verbatim
13463 #: ../fish/guestfish-actions.pod:3267
13464 #, no-wrap
13465 msgid ""
13466 " mkdir path\n"
13467 "\n"
13468 msgstr ""
13469
13470 #. type: textblock
13471 #: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5035
13472 msgid "Create a directory named C<path>."
13473 msgstr ""
13474
13475 #. type: =head2
13476 #: ../fish/guestfish-actions.pod:3271
13477 msgid "mkdir-mode"
13478 msgstr ""
13479
13480 #. type: verbatim
13481 #: ../fish/guestfish-actions.pod:3273
13482 #, no-wrap
13483 msgid ""
13484 " mkdir-mode path mode\n"
13485 "\n"
13486 msgstr ""
13487
13488 #. type: textblock
13489 #: ../fish/guestfish-actions.pod:3275 ../src/guestfs-actions.pod:5048
13490 msgid ""
13491 "This command creates a directory, setting the initial permissions of the "
13492 "directory to C<mode>."
13493 msgstr ""
13494
13495 #. type: textblock
13496 #: ../fish/guestfish-actions.pod:3278 ../src/guestfs-actions.pod:5051
13497 msgid ""
13498 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13499 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13500 "other ways."
13501 msgstr ""
13502
13503 #. type: textblock
13504 #: ../fish/guestfish-actions.pod:3282
13505 msgid "See also L</mkdir>, L</umask>"
13506 msgstr ""
13507
13508 #. type: =head2
13509 #: ../fish/guestfish-actions.pod:3284
13510 msgid "mkdir-p"
13511 msgstr ""
13512
13513 #. type: verbatim
13514 #: ../fish/guestfish-actions.pod:3286
13515 #, no-wrap
13516 msgid ""
13517 " mkdir-p path\n"
13518 "\n"
13519 msgstr ""
13520
13521 #. type: textblock
13522 #: ../fish/guestfish-actions.pod:3288 ../src/guestfs-actions.pod:5067
13523 msgid ""
13524 "Create a directory named C<path>, creating any parent directories as "
13525 "necessary.  This is like the C<mkdir -p> shell command."
13526 msgstr ""
13527
13528 #. type: =head2
13529 #: ../fish/guestfish-actions.pod:3291
13530 msgid "mkdtemp"
13531 msgstr ""
13532
13533 #. type: verbatim
13534 #: ../fish/guestfish-actions.pod:3293
13535 #, no-wrap
13536 msgid ""
13537 " mkdtemp template\n"
13538 "\n"
13539 msgstr ""
13540
13541 #. type: textblock
13542 #: ../fish/guestfish-actions.pod:3295 ../src/guestfs-actions.pod:5080
13543 msgid ""
13544 "This command creates a temporary directory.  The C<template> parameter "
13545 "should be a full pathname for the temporary directory name with the final "
13546 "six characters being \"XXXXXX\"."
13547 msgstr ""
13548
13549 #. type: textblock
13550 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5085
13551 msgid ""
13552 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13553 "being suitable for Windows filesystems."
13554 msgstr ""
13555
13556 #. type: textblock
13557 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5088
13558 msgid "The name of the temporary directory that was created is returned."
13559 msgstr ""
13560
13561 #. type: textblock
13562 #: ../fish/guestfish-actions.pod:3306 ../src/guestfs-actions.pod:5091
13563 msgid "The temporary directory is created with mode 0700 and is owned by root."
13564 msgstr ""
13565
13566 #. type: textblock
13567 #: ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:5094
13568 msgid ""
13569 "The caller is responsible for deleting the temporary directory and its "
13570 "contents after use."
13571 msgstr ""
13572
13573 #. type: textblock
13574 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5097
13575 msgid "See also: L<mkdtemp(3)>"
13576 msgstr ""
13577
13578 #. type: =head2
13579 #: ../fish/guestfish-actions.pod:3314
13580 msgid "mke2fs-J"
13581 msgstr ""
13582
13583 #. type: verbatim
13584 #: ../fish/guestfish-actions.pod:3316
13585 #, no-wrap
13586 msgid ""
13587 " mke2fs-J fstype blocksize device journal\n"
13588 "\n"
13589 msgstr ""
13590
13591 #. type: textblock
13592 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5113
13593 msgid ""
13594 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13595 "C<journal>.  It is equivalent to the command:"
13596 msgstr ""
13597
13598 #. type: verbatim
13599 #: ../fish/guestfish-actions.pod:3322 ../src/guestfs-actions.pod:5117
13600 #, no-wrap
13601 msgid ""
13602 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13603 "\n"
13604 msgstr ""
13605
13606 #. type: textblock
13607 #: ../fish/guestfish-actions.pod:3324
13608 msgid "See also L</mke2journal>."
13609 msgstr ""
13610
13611 #. type: =head2
13612 #: ../fish/guestfish-actions.pod:3326
13613 msgid "mke2fs-JL"
13614 msgstr ""
13615
13616 #. type: verbatim
13617 #: ../fish/guestfish-actions.pod:3328
13618 #, no-wrap
13619 msgid ""
13620 " mke2fs-JL fstype blocksize device label\n"
13621 "\n"
13622 msgstr ""
13623
13624 #. type: textblock
13625 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5134
13626 msgid ""
13627 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13628 "the journal labeled C<label>."
13629 msgstr ""
13630
13631 #. type: textblock
13632 #: ../fish/guestfish-actions.pod:3333
13633 msgid "See also L</mke2journal-L>."
13634 msgstr ""
13635
13636 #. type: =head2
13637 #: ../fish/guestfish-actions.pod:3335
13638 msgid "mke2fs-JU"
13639 msgstr ""
13640
13641 #. type: verbatim
13642 #: ../fish/guestfish-actions.pod:3337
13643 #, no-wrap
13644 msgid ""
13645 " mke2fs-JU fstype blocksize device uuid\n"
13646 "\n"
13647 msgstr ""
13648
13649 #. type: textblock
13650 #: ../fish/guestfish-actions.pod:3339 ../src/guestfs-actions.pod:5152
13651 msgid ""
13652 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13653 "the journal with UUID C<uuid>."
13654 msgstr ""
13655
13656 #. type: textblock
13657 #: ../fish/guestfish-actions.pod:3342
13658 msgid "See also L</mke2journal-U>."
13659 msgstr ""
13660
13661 #. type: =head2
13662 #: ../fish/guestfish-actions.pod:3344
13663 msgid "mke2journal"
13664 msgstr ""
13665
13666 #. type: verbatim
13667 #: ../fish/guestfish-actions.pod:3346
13668 #, no-wrap
13669 msgid ""
13670 " mke2journal blocksize device\n"
13671 "\n"
13672 msgstr ""
13673
13674 #. type: textblock
13675 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5168
13676 msgid ""
13677 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13678 "command:"
13679 msgstr ""
13680
13681 #. type: verbatim
13682 #: ../fish/guestfish-actions.pod:3351 ../src/guestfs-actions.pod:5171
13683 #, no-wrap
13684 msgid ""
13685 " mke2fs -O journal_dev -b blocksize device\n"
13686 "\n"
13687 msgstr ""
13688
13689 #. type: =head2
13690 #: ../fish/guestfish-actions.pod:3353
13691 msgid "mke2journal-L"
13692 msgstr ""
13693
13694 #. type: verbatim
13695 #: ../fish/guestfish-actions.pod:3355
13696 #, no-wrap
13697 msgid ""
13698 " mke2journal-L blocksize label device\n"
13699 "\n"
13700 msgstr ""
13701
13702 #. type: textblock
13703 #: ../fish/guestfish-actions.pod:3357 ../src/guestfs-actions.pod:5185
13704 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13705 msgstr ""
13706
13707 #. type: =head2
13708 #: ../fish/guestfish-actions.pod:3359
13709 msgid "mke2journal-U"
13710 msgstr ""
13711
13712 #. type: verbatim
13713 #: ../fish/guestfish-actions.pod:3361
13714 #, no-wrap
13715 msgid ""
13716 " mke2journal-U blocksize uuid device\n"
13717 "\n"
13718 msgstr ""
13719
13720 #. type: textblock
13721 #: ../fish/guestfish-actions.pod:3363 ../src/guestfs-actions.pod:5199
13722 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13723 msgstr ""
13724
13725 #. type: =head2
13726 #: ../fish/guestfish-actions.pod:3365
13727 msgid "mkfifo"
13728 msgstr ""
13729
13730 #. type: verbatim
13731 #: ../fish/guestfish-actions.pod:3367
13732 #, no-wrap
13733 msgid ""
13734 " mkfifo mode path\n"
13735 "\n"
13736 msgstr ""
13737
13738 #. type: textblock
13739 #: ../fish/guestfish-actions.pod:3369
13740 msgid ""
13741 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13742 "is just a convenient wrapper around L</mknod>."
13743 msgstr ""
13744
13745 #. type: =head2
13746 #: ../fish/guestfish-actions.pod:3375
13747 msgid "mkfs"
13748 msgstr ""
13749
13750 #. type: verbatim
13751 #: ../fish/guestfish-actions.pod:3377
13752 #, no-wrap
13753 msgid ""
13754 " mkfs fstype device\n"
13755 "\n"
13756 msgstr ""
13757
13758 #. type: textblock
13759 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5229
13760 msgid ""
13761 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13762 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13763 msgstr ""
13764
13765 #. type: =head2
13766 #: ../fish/guestfish-actions.pod:3383
13767 msgid "mkfs-b"
13768 msgstr ""
13769
13770 #. type: verbatim
13771 #: ../fish/guestfish-actions.pod:3385
13772 #, no-wrap
13773 msgid ""
13774 " mkfs-b fstype blocksize device\n"
13775 "\n"
13776 msgstr ""
13777
13778 #. type: textblock
13779 #: ../fish/guestfish-actions.pod:3387
13780 msgid ""
13781 "This call is similar to L</mkfs>, but it allows you to control the block "
13782 "size of the resulting filesystem.  Supported block sizes depend on the "
13783 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13784 msgstr ""
13785
13786 #. type: textblock
13787 #: ../fish/guestfish-actions.pod:3392 ../fish/guestfish-actions.pod:3419
13788 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5295
13789 msgid ""
13790 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13791 "cluster size."
13792 msgstr ""
13793
13794 #. type: textblock
13795 #: ../fish/guestfish-actions.pod:3395
13796 msgid ""
13797 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13798 "instead."
13799 msgstr ""
13800
13801 #. type: =head2
13802 #: ../fish/guestfish-actions.pod:3402
13803 msgid "mkfs-opts"
13804 msgstr ""
13805
13806 #. type: verbatim
13807 #: ../fish/guestfish-actions.pod:3404
13808 #, no-wrap
13809 msgid ""
13810 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
13811 "\n"
13812 msgstr ""
13813
13814 #. type: textblock
13815 #: ../fish/guestfish-actions.pod:3406 ../src/guestfs-actions.pod:5282
13816 msgid ""
13817 "This function creates a filesystem on C<device>.  The filesystem type is "
13818 "C<fstype>, for example C<ext3>."
13819 msgstr ""
13820
13821 #. type: =item
13822 #: ../fish/guestfish-actions.pod:3413 ../src/guestfs-actions.pod:5289
13823 msgid "C<blocksize>"
13824 msgstr ""
13825
13826 #. type: textblock
13827 #: ../fish/guestfish-actions.pod:3415 ../src/guestfs-actions.pod:5291
13828 msgid ""
13829 "The filesystem block size.  Supported block sizes depend on the filesystem "
13830 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13831 "filesystems."
13832 msgstr ""
13833
13834 #. type: textblock
13835 #: ../fish/guestfish-actions.pod:3422 ../src/guestfs-actions.pod:5298
13836 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13837 msgstr ""
13838
13839 #. type: =item
13840 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5300
13841 msgid "C<features>"
13842 msgstr ""
13843
13844 #. type: textblock
13845 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5302
13846 msgid "This passes the I<-O> parameter to the external mkfs program."
13847 msgstr ""
13848
13849 #. type: textblock
13850 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5304
13851 msgid ""
13852 "For certain filesystem types, this allows extra filesystem features to be "
13853 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13854 msgstr ""
13855
13856 #. type: textblock
13857 #: ../fish/guestfish-actions.pod:3432 ../src/guestfs-actions.pod:5308
13858 msgid ""
13859 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13860 "type."
13861 msgstr ""
13862
13863 #. type: =item
13864 #: ../fish/guestfish-actions.pod:3435 ../src/guestfs-actions.pod:5311
13865 msgid "C<inode>"
13866 msgstr ""
13867
13868 #. type: textblock
13869 #: ../fish/guestfish-actions.pod:3437 ../src/guestfs-actions.pod:5313
13870 msgid ""
13871 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13872 "sets the inode size (only for ext2/3/4 filesystems at present)."
13873 msgstr ""
13874
13875 #. type: =item
13876 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5316
13877 msgid "C<sectorsize>"
13878 msgstr ""
13879
13880 #. type: textblock
13881 #: ../fish/guestfish-actions.pod:3442 ../src/guestfs-actions.pod:5318
13882 msgid ""
13883 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13884 "sets sector size for ufs filesystem."
13885 msgstr ""
13886
13887 #. type: =head2
13888 #: ../fish/guestfish-actions.pod:3449
13889 msgid "mkmountpoint"
13890 msgstr ""
13891
13892 #. type: verbatim
13893 #: ../fish/guestfish-actions.pod:3451
13894 #, no-wrap
13895 msgid ""
13896 " mkmountpoint exemptpath\n"
13897 "\n"
13898 msgstr ""
13899
13900 #. type: textblock
13901 #: ../fish/guestfish-actions.pod:3453
13902 msgid ""
13903 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13904 "to create extra mountpoints before mounting the first filesystem."
13905 msgstr ""
13906
13907 #. type: textblock
13908 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5361
13909 msgid ""
13910 "These calls are I<only> necessary in some very limited circumstances, mainly "
13911 "the case where you want to mount a mix of unrelated and/or read-only "
13912 "filesystems together."
13913 msgstr ""
13914
13915 #. type: textblock
13916 #: ../fish/guestfish-actions.pod:3461 ../src/guestfs-actions.pod:5365
13917 msgid ""
13918 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13919 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13920 "inside that.  You can unpack this as follows in guestfish:"
13921 msgstr ""
13922
13923 #. type: verbatim
13924 #: ../fish/guestfish-actions.pod:3466 ../src/guestfs-actions.pod:5370
13925 #, no-wrap
13926 msgid ""
13927 " add-ro Fedora-11-i686-Live.iso\n"
13928 " run\n"
13929 " mkmountpoint /cd\n"
13930 " mkmountpoint /sqsh\n"
13931 " mkmountpoint /ext3fs\n"
13932 " mount /dev/sda /cd\n"
13933 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13934 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13935 "\n"
13936 msgstr ""
13937
13938 #. type: textblock
13939 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5379
13940 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13941 msgstr ""
13942
13943 #. type: textblock
13944 #: ../fish/guestfish-actions.pod:3477
13945 msgid ""
13946 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13947 "unexpected errors if you try to mix these calls.  It is safest to manually "
13948 "unmount filesystems and remove mountpoints after use."
13949 msgstr ""
13950
13951 #. type: textblock
13952 #: ../fish/guestfish-actions.pod:3481
13953 msgid ""
13954 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13955 "for this to work for manual mountpoints, you must ensure that the innermost "
13956 "mountpoints have the longest pathnames, as in the example code above."
13957 msgstr ""
13958
13959 #. type: textblock
13960 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5390
13961 msgid ""
13962 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13963 msgstr ""
13964
13965 #. type: textblock
13966 #: ../fish/guestfish-actions.pod:3488
13967 msgid ""
13968 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13969 "L</umount-all> to be called when the handle is closed which can also trigger "
13970 "these issues."
13971 msgstr ""
13972
13973 #. type: =head2
13974 #: ../fish/guestfish-actions.pod:3492
13975 msgid "mknod"
13976 msgstr ""
13977
13978 #. type: verbatim
13979 #: ../fish/guestfish-actions.pod:3494
13980 #, no-wrap
13981 msgid ""
13982 " mknod mode devmajor devminor path\n"
13983 "\n"
13984 msgstr ""
13985
13986 #. type: textblock
13987 #: ../fish/guestfish-actions.pod:3496 ../src/guestfs-actions.pod:5409
13988 msgid ""
13989 "This call creates block or character special devices, or named pipes (FIFOs)."
13990 msgstr ""
13991
13992 #. type: textblock
13993 #: ../fish/guestfish-actions.pod:3499 ../src/guestfs-actions.pod:5412
13994 msgid ""
13995 "The C<mode> parameter should be the mode, using the standard constants.  "
13996 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13997 "used when creating block and character special devices."
13998 msgstr ""
13999
14000 #. type: textblock
14001 #: ../fish/guestfish-actions.pod:3504
14002 msgid ""
14003 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14004 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14005 "regular file).  These constants are available in the standard Linux header "
14006 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
14007 "wrappers around this command which bitwise OR in the appropriate constant "
14008 "for you."
14009 msgstr ""
14010
14011 #. type: =head2
14012 #: ../fish/guestfish-actions.pod:3514
14013 msgid "mknod-b"
14014 msgstr ""
14015
14016 #. type: verbatim
14017 #: ../fish/guestfish-actions.pod:3516
14018 #, no-wrap
14019 msgid ""
14020 " mknod-b mode devmajor devminor path\n"
14021 "\n"
14022 msgstr ""
14023
14024 #. type: textblock
14025 #: ../fish/guestfish-actions.pod:3518
14026 msgid ""
14027 "This call creates a block device node called C<path> with mode C<mode> and "
14028 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14029 "wrapper around L</mknod>."
14030 msgstr ""
14031
14032 #. type: =head2
14033 #: ../fish/guestfish-actions.pod:3524
14034 msgid "mknod-c"
14035 msgstr ""
14036
14037 #. type: verbatim
14038 #: ../fish/guestfish-actions.pod:3526
14039 #, no-wrap
14040 msgid ""
14041 " mknod-c mode devmajor devminor path\n"
14042 "\n"
14043 msgstr ""
14044
14045 #. type: textblock
14046 #: ../fish/guestfish-actions.pod:3528
14047 msgid ""
14048 "This call creates a char device node called C<path> with mode C<mode> and "
14049 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14050 "wrapper around L</mknod>."
14051 msgstr ""
14052
14053 #. type: =head2
14054 #: ../fish/guestfish-actions.pod:3534
14055 msgid "mkswap"
14056 msgstr ""
14057
14058 #. type: verbatim
14059 #: ../fish/guestfish-actions.pod:3536
14060 #, no-wrap
14061 msgid ""
14062 " mkswap device\n"
14063 "\n"
14064 msgstr ""
14065
14066 #. type: textblock
14067 #: ../fish/guestfish-actions.pod:3538 ../src/guestfs-actions.pod:5475
14068 msgid "Create a swap partition on C<device>."
14069 msgstr ""
14070
14071 #. type: =head2
14072 #: ../fish/guestfish-actions.pod:3540
14073 msgid "mkswap-L"
14074 msgstr ""
14075
14076 #. type: verbatim
14077 #: ../fish/guestfish-actions.pod:3542
14078 #, no-wrap
14079 msgid ""
14080 " mkswap-L label device\n"
14081 "\n"
14082 msgstr ""
14083
14084 #. type: textblock
14085 #: ../fish/guestfish-actions.pod:3544 ../src/guestfs-actions.pod:5488
14086 msgid "Create a swap partition on C<device> with label C<label>."
14087 msgstr ""
14088
14089 #. type: textblock
14090 #: ../fish/guestfish-actions.pod:3546 ../src/guestfs-actions.pod:5490
14091 msgid ""
14092 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14093 "sda>), just to a partition.  This appears to be a limitation of the kernel "
14094 "or swap tools."
14095 msgstr ""
14096
14097 #. type: =head2
14098 #: ../fish/guestfish-actions.pod:3550
14099 msgid "mkswap-U"
14100 msgstr ""
14101
14102 #. type: verbatim
14103 #: ../fish/guestfish-actions.pod:3552
14104 #, no-wrap
14105 msgid ""
14106 " mkswap-U uuid device\n"
14107 "\n"
14108 msgstr ""
14109
14110 #. type: textblock
14111 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5505
14112 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14113 msgstr ""
14114
14115 #. type: =head2
14116 #: ../fish/guestfish-actions.pod:3556
14117 msgid "mkswap-file"
14118 msgstr ""
14119
14120 #. type: verbatim
14121 #: ../fish/guestfish-actions.pod:3558
14122 #, no-wrap
14123 msgid ""
14124 " mkswap-file path\n"
14125 "\n"
14126 msgstr ""
14127
14128 #. type: textblock
14129 #: ../fish/guestfish-actions.pod:3560 ../src/guestfs-actions.pod:5517
14130 msgid "Create a swap file."
14131 msgstr ""
14132
14133 #. type: textblock
14134 #: ../fish/guestfish-actions.pod:3562
14135 msgid ""
14136 "This command just writes a swap file signature to an existing file.  To "
14137 "create the file itself, use something like L</fallocate>."
14138 msgstr ""
14139
14140 #. type: =head2
14141 #: ../fish/guestfish-actions.pod:3565
14142 msgid "modprobe"
14143 msgstr ""
14144
14145 #. type: verbatim
14146 #: ../fish/guestfish-actions.pod:3567
14147 #, no-wrap
14148 msgid ""
14149 " modprobe modulename\n"
14150 "\n"
14151 msgstr ""
14152
14153 #. type: textblock
14154 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5532
14155 msgid "This loads a kernel module in the appliance."
14156 msgstr ""
14157
14158 #. type: textblock
14159 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5534
14160 msgid ""
14161 "The kernel module must have been whitelisted when libguestfs was built (see "
14162 "C<appliance/kmod.whitelist.in> in the source)."
14163 msgstr ""
14164
14165 #. type: =head2
14166 #: ../fish/guestfish-actions.pod:3574
14167 msgid "mount"
14168 msgstr ""
14169
14170 #. type: verbatim
14171 #: ../fish/guestfish-actions.pod:3576
14172 #, no-wrap
14173 msgid ""
14174 " mount device mountpoint\n"
14175 "\n"
14176 msgstr ""
14177
14178 #. type: textblock
14179 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5548
14180 msgid ""
14181 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14182 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14183 "those block devices contain partitions, they will have the usual names (eg. "
14184 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14185 msgstr ""
14186
14187 #. type: textblock
14188 #: ../fish/guestfish-actions.pod:3584 ../src/guestfs-actions.pod:5554
14189 msgid ""
14190 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14191 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14192 "mounted on directories which already exist."
14193 msgstr ""
14194
14195 #. type: textblock
14196 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5559
14197 msgid ""
14198 "The mounted filesystem is writable, if we have sufficient permissions on the "
14199 "underlying device."
14200 msgstr ""
14201
14202 #. type: textblock
14203 #: ../fish/guestfish-actions.pod:3592
14204 msgid ""
14205 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
14206 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
14207 "problems for users.  If your program might need to work with older versions "
14208 "of libguestfs, use L</mount-options> instead (using an empty string for the "
14209 "first parameter if you don't want any options)."
14210 msgstr ""
14211
14212 #. type: =head2
14213 #: ../fish/guestfish-actions.pod:3599
14214 msgid "mount-9p"
14215 msgstr ""
14216
14217 #. type: verbatim
14218 #: ../fish/guestfish-actions.pod:3601
14219 #, no-wrap
14220 msgid ""
14221 " mount-9p mounttag mountpoint [options:..]\n"
14222 "\n"
14223 msgstr ""
14224
14225 #. type: textblock
14226 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5588
14227 msgid ""
14228 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
14229 "C<mountpoint>."
14230 msgstr ""
14231
14232 #. type: textblock
14233 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5591
14234 msgid ""
14235 "If required, C<trans=virtio> will be automatically added to the options.  "
14236 "Any other options required can be passed in the optional C<options> "
14237 "parameter."
14238 msgstr ""
14239
14240 #. type: =head2
14241 #: ../fish/guestfish-actions.pod:3612
14242 msgid "mount-loop"
14243 msgstr ""
14244
14245 #. type: verbatim
14246 #: ../fish/guestfish-actions.pod:3614
14247 #, no-wrap
14248 msgid ""
14249 " mount-loop file mountpoint\n"
14250 "\n"
14251 msgstr ""
14252
14253 #. type: textblock
14254 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5630
14255 msgid ""
14256 "This command lets you mount C<file> (a filesystem image in a file) on a "
14257 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14258 "mountpoint>."
14259 msgstr ""
14260
14261 #. type: =head2
14262 #: ../fish/guestfish-actions.pod:3620
14263 msgid "mount-options"
14264 msgstr ""
14265
14266 #. type: verbatim
14267 #: ../fish/guestfish-actions.pod:3622
14268 #, no-wrap
14269 msgid ""
14270 " mount-options options device mountpoint\n"
14271 "\n"
14272 msgstr ""
14273
14274 #. type: textblock
14275 #: ../fish/guestfish-actions.pod:3624
14276 msgid ""
14277 "This is the same as the L</mount> command, but it allows you to set the "
14278 "mount options as for the L<mount(8)> I<-o> flag."
14279 msgstr ""
14280
14281 #. type: textblock
14282 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5650
14283 msgid ""
14284 "If the C<options> parameter is an empty string, then no options are passed "
14285 "(all options default to whatever the filesystem uses)."
14286 msgstr ""
14287
14288 #. type: =head2
14289 #: ../fish/guestfish-actions.pod:3632
14290 msgid "mount-ro"
14291 msgstr ""
14292
14293 #. type: verbatim
14294 #: ../fish/guestfish-actions.pod:3634
14295 #, no-wrap
14296 msgid ""
14297 " mount-ro device mountpoint\n"
14298 "\n"
14299 msgstr ""
14300
14301 #. type: textblock
14302 #: ../fish/guestfish-actions.pod:3636
14303 msgid ""
14304 "This is the same as the L</mount> command, but it mounts the filesystem with "
14305 "the read-only (I<-o ro>) flag."
14306 msgstr ""
14307
14308 #. type: =head2
14309 #: ../fish/guestfish-actions.pod:3639
14310 msgid "mount-vfs"
14311 msgstr ""
14312
14313 #. type: verbatim
14314 #: ../fish/guestfish-actions.pod:3641
14315 #, no-wrap
14316 msgid ""
14317 " mount-vfs options vfstype device mountpoint\n"
14318 "\n"
14319 msgstr ""
14320
14321 #. type: textblock
14322 #: ../fish/guestfish-actions.pod:3643
14323 msgid ""
14324 "This is the same as the L</mount> command, but it allows you to set both the "
14325 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
14326 msgstr ""
14327
14328 #. type: =head2
14329 #: ../fish/guestfish-actions.pod:3647
14330 msgid "mountpoints"
14331 msgstr ""
14332
14333 #. type: verbatim
14334 #: ../fish/guestfish-actions.pod:3649
14335 #, no-wrap
14336 msgid ""
14337 " mountpoints\n"
14338 "\n"
14339 msgstr ""
14340
14341 #. type: textblock
14342 #: ../fish/guestfish-actions.pod:3651
14343 msgid ""
14344 "This call is similar to L</mounts>.  That call returns a list of devices.  "
14345 "This one returns a hash table (map) of device name to directory where the "
14346 "device is mounted."
14347 msgstr ""
14348
14349 #. type: =head2
14350 #: ../fish/guestfish-actions.pod:3655
14351 msgid "mounts"
14352 msgstr ""
14353
14354 #. type: verbatim
14355 #: ../fish/guestfish-actions.pod:3657
14356 #, no-wrap
14357 msgid ""
14358 " mounts\n"
14359 "\n"
14360 msgstr ""
14361
14362 #. type: textblock
14363 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5711
14364 msgid ""
14365 "This returns the list of currently mounted filesystems.  It returns the list "
14366 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14367 msgstr ""
14368
14369 #. type: textblock
14370 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5714
14371 msgid "Some internal mounts are not shown."
14372 msgstr ""
14373
14374 #. type: textblock
14375 #: ../fish/guestfish-actions.pod:3664
14376 msgid "See also: L</mountpoints>"
14377 msgstr ""
14378
14379 #. type: =head2
14380 #: ../fish/guestfish-actions.pod:3666
14381 msgid "mv"
14382 msgstr ""
14383
14384 #. type: verbatim
14385 #: ../fish/guestfish-actions.pod:3668
14386 #, no-wrap
14387 msgid ""
14388 " mv src dest\n"
14389 "\n"
14390 msgstr ""
14391
14392 #. type: textblock
14393 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5731
14394 msgid ""
14395 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14396 "destination filename or destination directory."
14397 msgstr ""
14398
14399 #. type: =head2
14400 #: ../fish/guestfish-actions.pod:3673
14401 msgid "ntfs-3g-probe"
14402 msgstr ""
14403
14404 #. type: verbatim
14405 #: ../fish/guestfish-actions.pod:3675
14406 #, no-wrap
14407 msgid ""
14408 " ntfs-3g-probe true|false device\n"
14409 "\n"
14410 msgstr ""
14411
14412 #. type: textblock
14413 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5745
14414 msgid ""
14415 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14416 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14417 "write, and some cannot be mounted at all)."
14418 msgstr ""
14419
14420 #. type: textblock
14421 #: ../fish/guestfish-actions.pod:3681 ../src/guestfs-actions.pod:5749
14422 msgid ""
14423 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14424 "can be mounted read-write.  Set it to false if you want to test if the "
14425 "volume can be mounted read-only."
14426 msgstr ""
14427
14428 #. type: textblock
14429 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5753
14430 msgid ""
14431 "The return value is an integer which C<0> if the operation would succeed, or "
14432 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14433 msgstr ""
14434
14435 #. type: =head2
14436 #: ../fish/guestfish-actions.pod:3689
14437 msgid "ntfsresize"
14438 msgstr ""
14439
14440 #. type: verbatim
14441 #: ../fish/guestfish-actions.pod:3691
14442 #, no-wrap
14443 msgid ""
14444 " ntfsresize device\n"
14445 "\n"
14446 msgstr ""
14447
14448 #. type: textblock
14449 #: ../fish/guestfish-actions.pod:3693 ../fish/guestfish-actions.pod:3717
14450 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:5806
14451 msgid ""
14452 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14453 "size of the underlying device."
14454 msgstr ""
14455
14456 #. type: textblock
14457 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5777
14458 msgid ""
14459 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14460 "consistency check (for safety).  You have to boot into Windows to perform "
14461 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
14462 "resize filesystems which have been marked in this way.  So in effect it is "
14463 "not possible to call ntfsresize multiple times on a single filesystem "
14464 "without booting into Windows between each resize."
14465 msgstr ""
14466
14467 #. type: textblock
14468 #: ../fish/guestfish-actions.pod:3704 ../fish/guestfish-actions.pod:3743
14469 #: ../src/guestfs-actions.pod:5785 ../src/guestfs-actions.pod:5832
14470 msgid "See also L<ntfsresize(8)>."
14471 msgstr ""
14472
14473 #. type: textblock
14474 #: ../fish/guestfish-actions.pod:3706 ../fish/guestfish-actions.pod:3754
14475 msgid ""
14476 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14477 "call instead."
14478 msgstr ""
14479
14480 #. type: =head2
14481 #: ../fish/guestfish-actions.pod:3713
14482 msgid "ntfsresize-opts"
14483 msgstr ""
14484
14485 #. type: verbatim
14486 #: ../fish/guestfish-actions.pod:3715
14487 #, no-wrap
14488 msgid ""
14489 " ntfsresize-opts device [size:N] [force:true|false]\n"
14490 "\n"
14491 msgstr ""
14492
14493 #. type: textblock
14494 #: ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5815
14495 msgid ""
14496 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
14497 "resized to fit the container (eg. partition)."
14498 msgstr ""
14499
14500 #. type: =item
14501 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:5050
14502 #: ../src/guestfs-actions.pod:5818 ../src/guestfs-actions.pod:7789
14503 msgid "C<force>"
14504 msgstr ""
14505
14506 #. type: textblock
14507 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5820
14508 msgid ""
14509 "If this option is true, then force the resize of the filesystem even if the "
14510 "filesystem is marked as requiring a consistency check."
14511 msgstr ""
14512
14513 #. type: textblock
14514 #: ../fish/guestfish-actions.pod:3734
14515 msgid ""
14516 "After the resize operation, the filesystem is always marked as requiring a "
14517 "consistency check (for safety).  You have to boot into Windows to perform "
14518 "this check and clear this condition.  If you I<don't> set the C<force> "
14519 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
14520 "a single filesystem without booting into Windows between each resize."
14521 msgstr ""
14522
14523 #. type: =head2
14524 #: ../fish/guestfish-actions.pod:3747
14525 msgid "ntfsresize-size"
14526 msgstr ""
14527
14528 #. type: verbatim
14529 #: ../fish/guestfish-actions.pod:3749
14530 #, no-wrap
14531 msgid ""
14532 " ntfsresize-size device size\n"
14533 "\n"
14534 msgstr ""
14535
14536 #. type: textblock
14537 #: ../fish/guestfish-actions.pod:3751
14538 msgid ""
14539 "This command is the same as L</ntfsresize> except that it allows you to "
14540 "specify the new size (in bytes) explicitly."
14541 msgstr ""
14542
14543 #. type: =head2
14544 #: ../fish/guestfish-actions.pod:3761
14545 msgid "part-add"
14546 msgstr ""
14547
14548 #. type: verbatim
14549 #: ../fish/guestfish-actions.pod:3763
14550 #, no-wrap
14551 msgid ""
14552 " part-add device prlogex startsect endsect\n"
14553 "\n"
14554 msgstr ""
14555
14556 #. type: textblock
14557 #: ../fish/guestfish-actions.pod:3765
14558 msgid ""
14559 "This command adds a partition to C<device>.  If there is no partition table "
14560 "on the device, call L</part-init> first."
14561 msgstr ""
14562
14563 #. type: textblock
14564 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5893
14565 msgid ""
14566 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14567 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14568 "C<logical>) and C<e> (or C<extended>) partition types."
14569 msgstr ""
14570
14571 #. type: textblock
14572 #: ../fish/guestfish-actions.pod:3773 ../src/guestfs-actions.pod:5898
14573 msgid ""
14574 "C<startsect> and C<endsect> are the start and end of the partition in "
14575 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14576 "from the end of the disk (C<-1> is the last sector)."
14577 msgstr ""
14578
14579 #. type: textblock
14580 #: ../fish/guestfish-actions.pod:3777
14581 msgid ""
14582 "Creating a partition which covers the whole disk is not so easy.  Use L</"
14583 "part-disk> to do that."
14584 msgstr ""
14585
14586 #. type: =head2
14587 #: ../fish/guestfish-actions.pod:3780
14588 msgid "part-del"
14589 msgstr ""
14590
14591 #. type: verbatim
14592 #: ../fish/guestfish-actions.pod:3782
14593 #, no-wrap
14594 msgid ""
14595 " part-del device partnum\n"
14596 "\n"
14597 msgstr ""
14598
14599 #. type: textblock
14600 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5916
14601 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14602 msgstr ""
14603
14604 #. type: textblock
14605 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5918
14606 msgid ""
14607 "Note that in the case of MBR partitioning, deleting an extended partition "
14608 "also deletes any logical partitions it contains."
14609 msgstr ""
14610
14611 #. type: =head2
14612 #: ../fish/guestfish-actions.pod:3790
14613 msgid "part-disk"
14614 msgstr ""
14615
14616 #. type: verbatim
14617 #: ../fish/guestfish-actions.pod:3792
14618 #, no-wrap
14619 msgid ""
14620 " part-disk device parttype\n"
14621 "\n"
14622 msgstr ""
14623
14624 #. type: textblock
14625 #: ../fish/guestfish-actions.pod:3794
14626 msgid ""
14627 "This command is simply a combination of L</part-init> followed by L</part-"
14628 "add> to create a single primary partition covering the whole disk."
14629 msgstr ""
14630
14631 #. type: textblock
14632 #: ../fish/guestfish-actions.pod:3798
14633 msgid ""
14634 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14635 "possible values are described in L</part-init>."
14636 msgstr ""
14637
14638 #. type: =head2
14639 #: ../fish/guestfish-actions.pod:3801
14640 msgid "part-get-bootable"
14641 msgstr ""
14642
14643 #. type: verbatim
14644 #: ../fish/guestfish-actions.pod:3803
14645 #, no-wrap
14646 msgid ""
14647 " part-get-bootable device partnum\n"
14648 "\n"
14649 msgstr ""
14650
14651 #. type: textblock
14652 #: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5951
14653 msgid ""
14654 "This command returns true if the partition C<partnum> on C<device> has the "
14655 "bootable flag set."
14656 msgstr ""
14657
14658 #. type: textblock
14659 #: ../fish/guestfish-actions.pod:3808
14660 msgid "See also L</part-set-bootable>."
14661 msgstr ""
14662
14663 #. type: =head2
14664 #: ../fish/guestfish-actions.pod:3810
14665 msgid "part-get-mbr-id"
14666 msgstr ""
14667
14668 #. type: verbatim
14669 #: ../fish/guestfish-actions.pod:3812
14670 #, no-wrap
14671 msgid ""
14672 " part-get-mbr-id device partnum\n"
14673 "\n"
14674 msgstr ""
14675
14676 #. type: textblock
14677 #: ../fish/guestfish-actions.pod:3814 ../src/guestfs-actions.pod:5967
14678 msgid ""
14679 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14680 "partition C<partnum>."
14681 msgstr ""
14682
14683 #. type: textblock
14684 #: ../fish/guestfish-actions.pod:3817 ../fish/guestfish-actions.pod:3961
14685 msgid ""
14686 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14687 "undefined results for other partition table types (see L</part-get-"
14688 "parttype>)."
14689 msgstr ""
14690
14691 #. type: =head2
14692 #: ../fish/guestfish-actions.pod:3821
14693 msgid "part-get-parttype"
14694 msgstr ""
14695
14696 #. type: verbatim
14697 #: ../fish/guestfish-actions.pod:3823
14698 #, no-wrap
14699 msgid ""
14700 " part-get-parttype device\n"
14701 "\n"
14702 msgstr ""
14703
14704 #. type: textblock
14705 #: ../fish/guestfish-actions.pod:3825 ../src/guestfs-actions.pod:5984
14706 msgid ""
14707 "This command examines the partition table on C<device> and returns the "
14708 "partition table type (format) being used."
14709 msgstr ""
14710
14711 #. type: textblock
14712 #: ../fish/guestfish-actions.pod:3828
14713 msgid ""
14714 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14715 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14716 "possible, although unusual.  See L</part-init> for a full list."
14717 msgstr ""
14718
14719 #. type: =head2
14720 #: ../fish/guestfish-actions.pod:3833
14721 msgid "part-init"
14722 msgstr ""
14723
14724 #. type: verbatim
14725 #: ../fish/guestfish-actions.pod:3835
14726 #, no-wrap
14727 msgid ""
14728 " part-init device parttype\n"
14729 "\n"
14730 msgstr ""
14731
14732 #. type: textblock
14733 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:6004
14734 msgid ""
14735 "This creates an empty partition table on C<device> of one of the partition "
14736 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14737 "(for large disks)."
14738 msgstr ""
14739
14740 #. type: textblock
14741 #: ../fish/guestfish-actions.pod:3841
14742 msgid ""
14743 "Initially there are no partitions.  Following this, you should call L</part-"
14744 "add> for each partition required."
14745 msgstr ""
14746
14747 #. type: textblock
14748 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:6011
14749 msgid "Possible values for C<parttype> are:"
14750 msgstr ""
14751
14752 #. type: =item
14753 #: ../fish/guestfish-actions.pod:3848 ../src/guestfs-actions.pod:6015
14754 msgid "B<efi>"
14755 msgstr ""
14756
14757 #. type: =item
14758 #: ../fish/guestfish-actions.pod:3850 ../src/guestfs-actions.pod:6017
14759 msgid "B<gpt>"
14760 msgstr ""
14761
14762 #. type: textblock
14763 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6019
14764 msgid "Intel EFI / GPT partition table."
14765 msgstr ""
14766
14767 #. type: textblock
14768 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:6021
14769 msgid ""
14770 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14771 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14772 "the C<mbr> format."
14773 msgstr ""
14774
14775 #. type: =item
14776 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:6025
14777 msgid "B<mbr>"
14778 msgstr ""
14779
14780 #. type: =item
14781 #: ../fish/guestfish-actions.pod:3860 ../src/guestfs-actions.pod:6027
14782 msgid "B<msdos>"
14783 msgstr ""
14784
14785 #. type: textblock
14786 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:6029
14787 msgid ""
14788 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14789 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14790 "TB.  For large disks we recommend using C<gpt>."
14791 msgstr ""
14792
14793 #. type: textblock
14794 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6036
14795 msgid ""
14796 "Other partition table types that may work but are not supported include:"
14797 msgstr ""
14798
14799 #. type: =item
14800 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:6041
14801 msgid "B<aix>"
14802 msgstr ""
14803
14804 #. type: textblock
14805 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:6043
14806 msgid "AIX disk labels."
14807 msgstr ""
14808
14809 #. type: =item
14810 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6045
14811 msgid "B<amiga>"
14812 msgstr ""
14813
14814 #. type: =item
14815 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:6047
14816 msgid "B<rdb>"
14817 msgstr ""
14818
14819 #. type: textblock
14820 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:6049
14821 msgid "Amiga \"Rigid Disk Block\" format."
14822 msgstr ""
14823
14824 #. type: =item
14825 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:6051
14826 msgid "B<bsd>"
14827 msgstr ""
14828
14829 #. type: textblock
14830 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:6053
14831 msgid "BSD disk labels."
14832 msgstr ""
14833
14834 #. type: =item
14835 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:6055
14836 msgid "B<dasd>"
14837 msgstr ""
14838
14839 #. type: textblock
14840 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6057
14841 msgid "DASD, used on IBM mainframes."
14842 msgstr ""
14843
14844 #. type: =item
14845 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:6059
14846 msgid "B<dvh>"
14847 msgstr ""
14848
14849 #. type: textblock
14850 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:6061
14851 msgid "MIPS/SGI volumes."
14852 msgstr ""
14853
14854 #. type: =item
14855 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:6063
14856 msgid "B<mac>"
14857 msgstr ""
14858
14859 #. type: textblock
14860 #: ../fish/guestfish-actions.pod:3898 ../src/guestfs-actions.pod:6065
14861 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14862 msgstr ""
14863
14864 #. type: =item
14865 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
14866 msgid "B<pc98>"
14867 msgstr ""
14868
14869 #. type: textblock
14870 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:6069
14871 msgid "NEC PC-98 format, common in Japan apparently."
14872 msgstr ""
14873
14874 #. type: =item
14875 #: ../fish/guestfish-actions.pod:3904 ../src/guestfs-actions.pod:6071
14876 msgid "B<sun>"
14877 msgstr ""
14878
14879 #. type: textblock
14880 #: ../fish/guestfish-actions.pod:3906 ../src/guestfs-actions.pod:6073
14881 msgid "Sun disk labels."
14882 msgstr ""
14883
14884 #. type: =head2
14885 #: ../fish/guestfish-actions.pod:3910
14886 msgid "part-list"
14887 msgstr ""
14888
14889 #. type: verbatim
14890 #: ../fish/guestfish-actions.pod:3912
14891 #, no-wrap
14892 msgid ""
14893 " part-list device\n"
14894 "\n"
14895 msgstr ""
14896
14897 #. type: textblock
14898 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6087
14899 msgid ""
14900 "This command parses the partition table on C<device> and returns the list of "
14901 "partitions found."
14902 msgstr ""
14903
14904 #. type: textblock
14905 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6090
14906 msgid "The fields in the returned structure are:"
14907 msgstr ""
14908
14909 #. type: =item
14910 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:6094
14911 msgid "B<part_num>"
14912 msgstr ""
14913
14914 #. type: textblock
14915 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:6096
14916 msgid "Partition number, counting from 1."
14917 msgstr ""
14918
14919 #. type: =item
14920 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:6098
14921 msgid "B<part_start>"
14922 msgstr ""
14923
14924 #. type: textblock
14925 #: ../fish/guestfish-actions.pod:3927
14926 msgid ""
14927 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14928 "the device's sector size, see L</blockdev-getss>."
14929 msgstr ""
14930
14931 #. type: =item
14932 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6103
14933 msgid "B<part_end>"
14934 msgstr ""
14935
14936 #. type: textblock
14937 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6105
14938 msgid "End of the partition in bytes."
14939 msgstr ""
14940
14941 #. type: =item
14942 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6107
14943 msgid "B<part_size>"
14944 msgstr ""
14945
14946 #. type: textblock
14947 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6109
14948 msgid "Size of the partition in bytes."
14949 msgstr ""
14950
14951 #. type: =head2
14952 #: ../fish/guestfish-actions.pod:3940
14953 msgid "part-set-bootable"
14954 msgstr ""
14955
14956 #. type: verbatim
14957 #: ../fish/guestfish-actions.pod:3942
14958 #, no-wrap
14959 msgid ""
14960 " part-set-bootable device partnum true|false\n"
14961 "\n"
14962 msgstr ""
14963
14964 #. type: textblock
14965 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6127
14966 msgid ""
14967 "This sets the bootable flag on partition numbered C<partnum> on device "
14968 "C<device>.  Note that partitions are numbered from 1."
14969 msgstr ""
14970
14971 #. type: textblock
14972 #: ../fish/guestfish-actions.pod:3947 ../src/guestfs-actions.pod:6130
14973 msgid ""
14974 "The bootable flag is used by some operating systems (notably Windows) to "
14975 "determine which partition to boot from.  It is by no means universally "
14976 "recognized."
14977 msgstr ""
14978
14979 #. type: =head2
14980 #: ../fish/guestfish-actions.pod:3951
14981 msgid "part-set-mbr-id"
14982 msgstr ""
14983
14984 #. type: verbatim
14985 #: ../fish/guestfish-actions.pod:3953
14986 #, no-wrap
14987 msgid ""
14988 " part-set-mbr-id device partnum idbyte\n"
14989 "\n"
14990 msgstr ""
14991
14992 #. type: textblock
14993 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6146
14994 msgid ""
14995 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14996 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14997 "documentation are in fact hexadecimal numbers, but usually documented "
14998 "without any leading \"0x\" which might be confusing."
14999 msgstr ""
15000
15001 #. type: =head2
15002 #: ../fish/guestfish-actions.pod:3965
15003 msgid "part-set-name"
15004 msgstr ""
15005
15006 #. type: verbatim
15007 #: ../fish/guestfish-actions.pod:3967
15008 #, no-wrap
15009 msgid ""
15010 " part-set-name device partnum name\n"
15011 "\n"
15012 msgstr ""
15013
15014 #. type: textblock
15015 #: ../fish/guestfish-actions.pod:3969 ../src/guestfs-actions.pod:6168
15016 msgid ""
15017 "This sets the partition name on partition numbered C<partnum> on device "
15018 "C<device>.  Note that partitions are numbered from 1."
15019 msgstr ""
15020
15021 #. type: textblock
15022 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6171
15023 msgid ""
15024 "The partition name can only be set on certain types of partition table.  "
15025 "This works on C<gpt> but not on C<mbr> partitions."
15026 msgstr ""
15027
15028 #. type: =head2
15029 #: ../fish/guestfish-actions.pod:3975
15030 msgid "part-to-dev"
15031 msgstr ""
15032
15033 #. type: verbatim
15034 #: ../fish/guestfish-actions.pod:3977
15035 #, no-wrap
15036 msgid ""
15037 " part-to-dev partition\n"
15038 "\n"
15039 msgstr ""
15040
15041 #. type: textblock
15042 #: ../fish/guestfish-actions.pod:3979 ../src/guestfs-actions.pod:6184
15043 msgid ""
15044 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15045 "partition number, returning the device name (eg. \"/dev/sdb\")."
15046 msgstr ""
15047
15048 #. type: textblock
15049 #: ../fish/guestfish-actions.pod:3983 ../fish/guestfish-actions.pod:3995
15050 msgid ""
15051 "The named partition must exist, for example as a string returned from L</"
15052 "list-partitions>."
15053 msgstr ""
15054
15055 #. type: textblock
15056 #: ../fish/guestfish-actions.pod:3986
15057 msgid "See also L</part-to-partnum>."
15058 msgstr ""
15059
15060 #. type: =head2
15061 #: ../fish/guestfish-actions.pod:3988
15062 msgid "part-to-partnum"
15063 msgstr ""
15064
15065 #. type: verbatim
15066 #: ../fish/guestfish-actions.pod:3990
15067 #, no-wrap
15068 msgid ""
15069 " part-to-partnum partition\n"
15070 "\n"
15071 msgstr ""
15072
15073 #. type: textblock
15074 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6204
15075 msgid ""
15076 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
15077 "partition number (eg. C<1>)."
15078 msgstr ""
15079
15080 #. type: textblock
15081 #: ../fish/guestfish-actions.pod:3998
15082 msgid "See also L</part-to-dev>."
15083 msgstr ""
15084
15085 #. type: =head2
15086 #: ../fish/guestfish-actions.pod:4000
15087 msgid "ping-daemon"
15088 msgstr ""
15089
15090 #. type: verbatim
15091 #: ../fish/guestfish-actions.pod:4002
15092 #, no-wrap
15093 msgid ""
15094 " ping-daemon\n"
15095 "\n"
15096 msgstr ""
15097
15098 #. type: textblock
15099 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6221
15100 msgid ""
15101 "This is a test probe into the guestfs daemon running inside the qemu "
15102 "subprocess.  Calling this function checks that the daemon responds to the "
15103 "ping message, without affecting the daemon or attached block device(s) in "
15104 "any other way."
15105 msgstr ""
15106
15107 #. type: =head2
15108 #: ../fish/guestfish-actions.pod:4009
15109 msgid "pread"
15110 msgstr ""
15111
15112 #. type: verbatim
15113 #: ../fish/guestfish-actions.pod:4011
15114 #, no-wrap
15115 msgid ""
15116 " pread path count offset\n"
15117 "\n"
15118 msgstr ""
15119
15120 #. type: textblock
15121 #: ../fish/guestfish-actions.pod:4013 ../src/guestfs-actions.pod:6239
15122 msgid ""
15123 "This command lets you read part of a file.  It reads C<count> bytes of the "
15124 "file, starting at C<offset>, from file C<path>."
15125 msgstr ""
15126
15127 #. type: textblock
15128 #: ../fish/guestfish-actions.pod:4016 ../fish/guestfish-actions.pod:4031
15129 #: ../src/guestfs-actions.pod:6242 ../src/guestfs-actions.pod:6268
15130 msgid ""
15131 "This may read fewer bytes than requested.  For further details see the "
15132 "L<pread(2)> system call."
15133 msgstr ""
15134
15135 #. type: textblock
15136 #: ../fish/guestfish-actions.pod:4019
15137 msgid "See also L</pwrite>, L</pread-device>."
15138 msgstr ""
15139
15140 #. type: =head2
15141 #: ../fish/guestfish-actions.pod:4024
15142 msgid "pread-device"
15143 msgstr ""
15144
15145 #. type: verbatim
15146 #: ../fish/guestfish-actions.pod:4026
15147 #, no-wrap
15148 msgid ""
15149 " pread-device device count offset\n"
15150 "\n"
15151 msgstr ""
15152
15153 #. type: textblock
15154 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6265
15155 msgid ""
15156 "This command lets you read part of a file.  It reads C<count> bytes of "
15157 "C<device>, starting at C<offset>."
15158 msgstr ""
15159
15160 #. type: textblock
15161 #: ../fish/guestfish-actions.pod:4034
15162 msgid "See also L</pread>."
15163 msgstr ""
15164
15165 #. type: =head2
15166 #: ../fish/guestfish-actions.pod:4039
15167 msgid "pvcreate"
15168 msgstr ""
15169
15170 #. type: verbatim
15171 #: ../fish/guestfish-actions.pod:4041
15172 #, no-wrap
15173 msgid ""
15174 " pvcreate device\n"
15175 "\n"
15176 msgstr ""
15177
15178 #. type: textblock
15179 #: ../fish/guestfish-actions.pod:4043 ../src/guestfs-actions.pod:6288
15180 msgid ""
15181 "This creates an LVM physical volume on the named C<device>, where C<device> "
15182 "should usually be a partition name such as C</dev/sda1>."
15183 msgstr ""
15184
15185 #. type: =head2
15186 #: ../fish/guestfish-actions.pod:4047
15187 msgid "pvremove"
15188 msgstr ""
15189
15190 #. type: verbatim
15191 #: ../fish/guestfish-actions.pod:4049
15192 #, no-wrap
15193 msgid ""
15194 " pvremove device\n"
15195 "\n"
15196 msgstr ""
15197
15198 #. type: textblock
15199 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6302
15200 msgid ""
15201 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15202 "it."
15203 msgstr ""
15204
15205 #. type: textblock
15206 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6305
15207 msgid ""
15208 "The implementation uses the C<pvremove> command which refuses to wipe "
15209 "physical volumes that contain any volume groups, so you have to remove those "
15210 "first."
15211 msgstr ""
15212
15213 #. type: =head2
15214 #: ../fish/guestfish-actions.pod:4058
15215 msgid "pvresize"
15216 msgstr ""
15217
15218 #. type: verbatim
15219 #: ../fish/guestfish-actions.pod:4060
15220 #, no-wrap
15221 msgid ""
15222 " pvresize device\n"
15223 "\n"
15224 msgstr ""
15225
15226 #. type: textblock
15227 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6319
15228 msgid ""
15229 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15230 "the new size of the underlying device."
15231 msgstr ""
15232
15233 #. type: =head2
15234 #: ../fish/guestfish-actions.pod:4065
15235 msgid "pvresize-size"
15236 msgstr ""
15237
15238 #. type: verbatim
15239 #: ../fish/guestfish-actions.pod:4067
15240 #, no-wrap
15241 msgid ""
15242 " pvresize-size device size\n"
15243 "\n"
15244 msgstr ""
15245
15246 #. type: textblock
15247 #: ../fish/guestfish-actions.pod:4069
15248 msgid ""
15249 "This command is the same as L</pvresize> except that it allows you to "
15250 "specify the new size (in bytes) explicitly."
15251 msgstr ""
15252
15253 #. type: =head2
15254 #: ../fish/guestfish-actions.pod:4072
15255 msgid "pvs"
15256 msgstr ""
15257
15258 #. type: verbatim
15259 #: ../fish/guestfish-actions.pod:4074
15260 #, no-wrap
15261 msgid ""
15262 " pvs\n"
15263 "\n"
15264 msgstr ""
15265
15266 #. type: textblock
15267 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6345
15268 msgid ""
15269 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15270 "(8)> command."
15271 msgstr ""
15272
15273 #. type: textblock
15274 #: ../fish/guestfish-actions.pod:4079 ../src/guestfs-actions.pod:6348
15275 msgid ""
15276 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15277 "sda2>)."
15278 msgstr ""
15279
15280 #. type: textblock
15281 #: ../fish/guestfish-actions.pod:4082
15282 msgid "See also L</pvs-full>."
15283 msgstr ""
15284
15285 #. type: =head2
15286 #: ../fish/guestfish-actions.pod:4084
15287 msgid "pvs-full"
15288 msgstr ""
15289
15290 #. type: verbatim
15291 #: ../fish/guestfish-actions.pod:4086
15292 #, no-wrap
15293 msgid ""
15294 " pvs-full\n"
15295 "\n"
15296 msgstr ""
15297
15298 #. type: textblock
15299 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6364
15300 msgid ""
15301 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15302 "(8)> command.  The \"full\" version includes all fields."
15303 msgstr ""
15304
15305 #. type: =head2
15306 #: ../fish/guestfish-actions.pod:4091
15307 msgid "pvuuid"
15308 msgstr ""
15309
15310 #. type: verbatim
15311 #: ../fish/guestfish-actions.pod:4093
15312 #, no-wrap
15313 msgid ""
15314 " pvuuid device\n"
15315 "\n"
15316 msgstr ""
15317
15318 #. type: textblock
15319 #: ../fish/guestfish-actions.pod:4095 ../src/guestfs-actions.pod:6379
15320 msgid "This command returns the UUID of the LVM PV C<device>."
15321 msgstr ""
15322
15323 #. type: =head2
15324 #: ../fish/guestfish-actions.pod:4097
15325 msgid "pwrite"
15326 msgstr ""
15327
15328 #. type: verbatim
15329 #: ../fish/guestfish-actions.pod:4099
15330 #, no-wrap
15331 msgid ""
15332 " pwrite path content offset\n"
15333 "\n"
15334 msgstr ""
15335
15336 #. type: textblock
15337 #: ../fish/guestfish-actions.pod:4101 ../src/guestfs-actions.pod:6395
15338 msgid ""
15339 "This command writes to part of a file.  It writes the data buffer C<content> "
15340 "to the file C<path> starting at offset C<offset>."
15341 msgstr ""
15342
15343 #. type: textblock
15344 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6398
15345 msgid ""
15346 "This command implements the L<pwrite(2)> system call, and like that system "
15347 "call it may not write the full data requested.  The return value is the "
15348 "number of bytes that were actually written to the file.  This could even be "
15349 "0, although short writes are unlikely for regular files in ordinary "
15350 "circumstances."
15351 msgstr ""
15352
15353 #. type: textblock
15354 #: ../fish/guestfish-actions.pod:4110
15355 msgid "See also L</pread>, L</pwrite-device>."
15356 msgstr ""
15357
15358 #. type: =head2
15359 #: ../fish/guestfish-actions.pod:4115
15360 msgid "pwrite-device"
15361 msgstr ""
15362
15363 #. type: verbatim
15364 #: ../fish/guestfish-actions.pod:4117
15365 #, no-wrap
15366 msgid ""
15367 " pwrite-device device content offset\n"
15368 "\n"
15369 msgstr ""
15370
15371 #. type: textblock
15372 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6422
15373 msgid ""
15374 "This command writes to part of a device.  It writes the data buffer "
15375 "C<content> to C<device> starting at offset C<offset>."
15376 msgstr ""
15377
15378 #. type: textblock
15379 #: ../fish/guestfish-actions.pod:4122 ../src/guestfs-actions.pod:6425
15380 msgid ""
15381 "This command implements the L<pwrite(2)> system call, and like that system "
15382 "call it may not write the full data requested (although short writes to disk "
15383 "devices and partitions are probably impossible with standard Linux kernels)."
15384 msgstr ""
15385
15386 #. type: textblock
15387 #: ../fish/guestfish-actions.pod:4127
15388 msgid "See also L</pwrite>."
15389 msgstr ""
15390
15391 #. type: =head2
15392 #: ../fish/guestfish-actions.pod:4132
15393 msgid "read-file"
15394 msgstr ""
15395
15396 #. type: verbatim
15397 #: ../fish/guestfish-actions.pod:4134
15398 #, no-wrap
15399 msgid ""
15400 " read-file path\n"
15401 "\n"
15402 msgstr ""
15403
15404 #. type: textblock
15405 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6446
15406 msgid "This calls returns the contents of the file C<path> as a buffer."
15407 msgstr ""
15408
15409 #. type: textblock
15410 #: ../fish/guestfish-actions.pod:4139
15411 msgid ""
15412 "Unlike L</cat>, this function can correctly handle files that contain "
15413 "embedded ASCII NUL characters.  However unlike L</download>, this function "
15414 "is limited in the total size of file that can be handled."
15415 msgstr ""
15416
15417 #. type: =head2
15418 #: ../fish/guestfish-actions.pod:4147
15419 msgid "read-lines"
15420 msgstr ""
15421
15422 #. type: verbatim
15423 #: ../fish/guestfish-actions.pod:4149
15424 #, no-wrap
15425 msgid ""
15426 " read-lines path\n"
15427 "\n"
15428 msgstr ""
15429
15430 #. type: textblock
15431 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6471
15432 msgid ""
15433 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15434 "C<CRLF> character sequences are I<not> returned."
15435 msgstr ""
15436
15437 #. type: textblock
15438 #: ../fish/guestfish-actions.pod:4156
15439 msgid ""
15440 "Note that this function cannot correctly handle binary files (specifically, "
15441 "files containing C<\\0> character which is treated as end of line).  For "
15442 "those you need to use the L</read-file> function which has a more complex "
15443 "interface."
15444 msgstr ""
15445
15446 #. type: =head2
15447 #: ../fish/guestfish-actions.pod:4161
15448 msgid "readdir"
15449 msgstr ""
15450
15451 #. type: verbatim
15452 #: ../fish/guestfish-actions.pod:4163
15453 #, no-wrap
15454 msgid ""
15455 " readdir dir\n"
15456 "\n"
15457 msgstr ""
15458
15459 #. type: textblock
15460 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6491
15461 msgid "This returns the list of directory entries in directory C<dir>."
15462 msgstr ""
15463
15464 #. type: textblock
15465 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6493
15466 msgid ""
15467 "All entries in the directory are returned, including C<.> and C<..>.  The "
15468 "entries are I<not> sorted, but returned in the same order as the underlying "
15469 "filesystem."
15470 msgstr ""
15471
15472 #. type: textblock
15473 #: ../fish/guestfish-actions.pod:4171 ../src/guestfs-actions.pod:6497
15474 msgid ""
15475 "Also this call returns basic file type information about each file.  The "
15476 "C<ftyp> field will contain one of the following characters:"
15477 msgstr ""
15478
15479 #. type: =item
15480 #: ../fish/guestfish-actions.pod:4176 ../src/guestfs-actions.pod:6502
15481 msgid "'b'"
15482 msgstr ""
15483
15484 #. type: textblock
15485 #: ../fish/guestfish-actions.pod:4178 ../src/guestfs-actions.pod:6504
15486 msgid "Block special"
15487 msgstr ""
15488
15489 #. type: =item
15490 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6506
15491 msgid "'c'"
15492 msgstr ""
15493
15494 #. type: textblock
15495 #: ../fish/guestfish-actions.pod:4182 ../src/guestfs-actions.pod:6508
15496 msgid "Char special"
15497 msgstr ""
15498
15499 #. type: =item
15500 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6510
15501 msgid "'d'"
15502 msgstr ""
15503
15504 #. type: textblock
15505 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6512
15506 msgid "Directory"
15507 msgstr ""
15508
15509 #. type: =item
15510 #: ../fish/guestfish-actions.pod:4188 ../src/guestfs-actions.pod:6514
15511 msgid "'f'"
15512 msgstr ""
15513
15514 #. type: textblock
15515 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6516
15516 msgid "FIFO (named pipe)"
15517 msgstr ""
15518
15519 #. type: =item
15520 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6518
15521 msgid "'l'"
15522 msgstr ""
15523
15524 #. type: textblock
15525 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6520
15526 msgid "Symbolic link"
15527 msgstr ""
15528
15529 #. type: =item
15530 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6522
15531 msgid "'r'"
15532 msgstr ""
15533
15534 #. type: textblock
15535 #: ../fish/guestfish-actions.pod:4198 ../src/guestfs-actions.pod:6524
15536 msgid "Regular file"
15537 msgstr ""
15538
15539 #. type: =item
15540 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6526
15541 msgid "'s'"
15542 msgstr ""
15543
15544 #. type: textblock
15545 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6528
15546 msgid "Socket"
15547 msgstr ""
15548
15549 #. type: =item
15550 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6530
15551 msgid "'u'"
15552 msgstr ""
15553
15554 #. type: textblock
15555 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6532
15556 msgid "Unknown file type"
15557 msgstr ""
15558
15559 #. type: =item
15560 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6534
15561 msgid "'?'"
15562 msgstr ""
15563
15564 #. type: textblock
15565 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6536
15566 msgid ""
15567 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15568 msgstr ""
15569
15570 #. type: textblock
15571 #: ../fish/guestfish-actions.pod:4215
15572 msgid ""
15573 "This function is primarily intended for use by programs.  To get a simple "
15574 "list of names, use L</ls>.  To get a printable directory for human "
15575 "consumption, use L</ll>."
15576 msgstr ""
15577
15578 #. type: =head2
15579 #: ../fish/guestfish-actions.pod:4219
15580 msgid "readlink"
15581 msgstr ""
15582
15583 #. type: verbatim
15584 #: ../fish/guestfish-actions.pod:4221
15585 #, no-wrap
15586 msgid ""
15587 " readlink path\n"
15588 "\n"
15589 msgstr ""
15590
15591 #. type: textblock
15592 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6557
15593 msgid "This command reads the target of a symbolic link."
15594 msgstr ""
15595
15596 #. type: =head2
15597 #: ../fish/guestfish-actions.pod:4225
15598 msgid "readlinklist"
15599 msgstr ""
15600
15601 #. type: verbatim
15602 #: ../fish/guestfish-actions.pod:4227
15603 #, no-wrap
15604 msgid ""
15605 " readlinklist path 'names ...'\n"
15606 "\n"
15607 msgstr ""
15608
15609 #. type: textblock
15610 #: ../fish/guestfish-actions.pod:4229 ../src/guestfs-actions.pod:6571
15611 msgid ""
15612 "This call allows you to do a C<readlink> operation on multiple files, where "
15613 "all files are in the directory C<path>.  C<names> is the list of files from "
15614 "this directory."
15615 msgstr ""
15616
15617 #. type: textblock
15618 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6575
15619 msgid ""
15620 "On return you get a list of strings, with a one-to-one correspondence to the "
15621 "C<names> list.  Each string is the value of the symbolic link."
15622 msgstr ""
15623
15624 #. type: textblock
15625 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6579
15626 msgid ""
15627 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15628 "result string is the empty string C<\"\">.  However the whole operation is "
15629 "completed even if there were C<readlink(2)> errors, and so you can call this "
15630 "function with names where you don't know if they are symbolic links already "
15631 "(albeit slightly less efficient)."
15632 msgstr ""
15633
15634 #. type: textblock
15635 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6586
15636 msgid ""
15637 "This call is intended for programs that want to efficiently list a directory "
15638 "contents without making many round-trips.  Very long directory listings "
15639 "might cause the protocol message size to be exceeded, causing this call to "
15640 "fail.  The caller must split up such requests into smaller groups of names."
15641 msgstr ""
15642
15643 #. type: =head2
15644 #: ../fish/guestfish-actions.pod:4251
15645 msgid "realpath"
15646 msgstr ""
15647
15648 #. type: verbatim
15649 #: ../fish/guestfish-actions.pod:4253
15650 #, no-wrap
15651 msgid ""
15652 " realpath path\n"
15653 "\n"
15654 msgstr ""
15655
15656 #. type: textblock
15657 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6605
15658 msgid ""
15659 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15660 "has no C<.>, C<..> or symbolic link path elements."
15661 msgstr ""
15662
15663 #. type: =head2
15664 #: ../fish/guestfish-actions.pod:4258
15665 msgid "removexattr"
15666 msgstr ""
15667
15668 #. type: verbatim
15669 #: ../fish/guestfish-actions.pod:4260
15670 #, no-wrap
15671 msgid ""
15672 " removexattr xattr path\n"
15673 "\n"
15674 msgstr ""
15675
15676 #. type: textblock
15677 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6620
15678 msgid ""
15679 "This call removes the extended attribute named C<xattr> of the file C<path>."
15680 msgstr ""
15681
15682 #. type: textblock
15683 #: ../fish/guestfish-actions.pod:4265
15684 msgid "See also: L</lremovexattr>, L<attr(5)>."
15685 msgstr ""
15686
15687 #. type: =head2
15688 #: ../fish/guestfish-actions.pod:4267
15689 msgid "resize2fs"
15690 msgstr ""
15691
15692 #. type: verbatim
15693 #: ../fish/guestfish-actions.pod:4269
15694 #, no-wrap
15695 msgid ""
15696 " resize2fs device\n"
15697 "\n"
15698 msgstr ""
15699
15700 #. type: textblock
15701 #: ../fish/guestfish-actions.pod:4271 ../src/guestfs-actions.pod:6635
15702 msgid ""
15703 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15704 "underlying device."
15705 msgstr ""
15706
15707 #. type: textblock
15708 #: ../fish/guestfish-actions.pod:4274
15709 msgid ""
15710 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15711 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15712 "gives an error about this and sometimes not.  In any case, it is always safe "
15713 "to call L</e2fsck-f> before calling this function."
15714 msgstr ""
15715
15716 #. type: =head2
15717 #: ../fish/guestfish-actions.pod:4280
15718 msgid "resize2fs-M"
15719 msgstr ""
15720
15721 #. type: verbatim
15722 #: ../fish/guestfish-actions.pod:4282
15723 #, no-wrap
15724 msgid ""
15725 " resize2fs-M device\n"
15726 "\n"
15727 msgstr ""
15728
15729 #. type: textblock
15730 #: ../fish/guestfish-actions.pod:4284
15731 msgid ""
15732 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15733 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15734 "command."
15735 msgstr ""
15736
15737 #. type: textblock
15738 #: ../fish/guestfish-actions.pod:4288
15739 msgid ""
15740 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15741 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15742 "multiplied together, give the resulting size of the minimal filesystem in "
15743 "bytes."
15744 msgstr ""
15745
15746 #. type: =head2
15747 #: ../fish/guestfish-actions.pod:4293
15748 msgid "resize2fs-size"
15749 msgstr ""
15750
15751 #. type: verbatim
15752 #: ../fish/guestfish-actions.pod:4295
15753 #, no-wrap
15754 msgid ""
15755 " resize2fs-size device size\n"
15756 "\n"
15757 msgstr ""
15758
15759 #. type: textblock
15760 #: ../fish/guestfish-actions.pod:4297
15761 msgid ""
15762 "This command is the same as L</resize2fs> except that it allows you to "
15763 "specify the new size (in bytes) explicitly."
15764 msgstr ""
15765
15766 #. type: =head2
15767 #: ../fish/guestfish-actions.pod:4300
15768 msgid "rm"
15769 msgstr ""
15770
15771 #. type: verbatim
15772 #: ../fish/guestfish-actions.pod:4302
15773 #, no-wrap
15774 msgid ""
15775 " rm path\n"
15776 "\n"
15777 msgstr ""
15778
15779 #. type: textblock
15780 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6687
15781 msgid "Remove the single file C<path>."
15782 msgstr ""
15783
15784 #. type: =head2
15785 #: ../fish/guestfish-actions.pod:4306
15786 msgid "rm-rf"
15787 msgstr ""
15788
15789 #. type: verbatim
15790 #: ../fish/guestfish-actions.pod:4308
15791 #, no-wrap
15792 msgid ""
15793 " rm-rf path\n"
15794 "\n"
15795 msgstr ""
15796
15797 #. type: textblock
15798 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6699
15799 msgid ""
15800 "Remove the file or directory C<path>, recursively removing the contents if "
15801 "its a directory.  This is like the C<rm -rf> shell command."
15802 msgstr ""
15803
15804 #. type: =head2
15805 #: ../fish/guestfish-actions.pod:4314
15806 msgid "rmdir"
15807 msgstr ""
15808
15809 #. type: verbatim
15810 #: ../fish/guestfish-actions.pod:4316
15811 #, no-wrap
15812 msgid ""
15813 " rmdir path\n"
15814 "\n"
15815 msgstr ""
15816
15817 #. type: textblock
15818 #: ../fish/guestfish-actions.pod:4318 ../src/guestfs-actions.pod:6713
15819 msgid "Remove the single directory C<path>."
15820 msgstr ""
15821
15822 #. type: =head2
15823 #: ../fish/guestfish-actions.pod:4320
15824 msgid "rmmountpoint"
15825 msgstr ""
15826
15827 #. type: verbatim
15828 #: ../fish/guestfish-actions.pod:4322
15829 #, no-wrap
15830 msgid ""
15831 " rmmountpoint exemptpath\n"
15832 "\n"
15833 msgstr ""
15834
15835 #. type: textblock
15836 #: ../fish/guestfish-actions.pod:4324
15837 msgid ""
15838 "This calls removes a mountpoint that was previously created with L</"
15839 "mkmountpoint>.  See L</mkmountpoint> for full details."
15840 msgstr ""
15841
15842 #. type: =head2
15843 #: ../fish/guestfish-actions.pod:4328
15844 msgid "scrub-device"
15845 msgstr ""
15846
15847 #. type: verbatim
15848 #: ../fish/guestfish-actions.pod:4330
15849 #, no-wrap
15850 msgid ""
15851 " scrub-device device\n"
15852 "\n"
15853 msgstr ""
15854
15855 #. type: textblock
15856 #: ../fish/guestfish-actions.pod:4332 ../src/guestfs-actions.pod:6739
15857 msgid ""
15858 "This command writes patterns over C<device> to make data retrieval more "
15859 "difficult."
15860 msgstr ""
15861
15862 #. type: textblock
15863 #: ../fish/guestfish-actions.pod:4335 ../fish/guestfish-actions.pod:4347
15864 #: ../fish/guestfish-actions.pod:4360 ../src/guestfs-actions.pod:6742
15865 #: ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6779
15866 msgid ""
15867 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15868 "more details."
15869 msgstr ""
15870
15871 #. type: =head2
15872 #: ../fish/guestfish-actions.pod:4338
15873 msgid "scrub-file"
15874 msgstr ""
15875
15876 #. type: verbatim
15877 #: ../fish/guestfish-actions.pod:4340
15878 #, no-wrap
15879 msgid ""
15880 " scrub-file file\n"
15881 "\n"
15882 msgstr ""
15883
15884 #. type: textblock
15885 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6755
15886 msgid ""
15887 "This command writes patterns over a file to make data retrieval more "
15888 "difficult."
15889 msgstr ""
15890
15891 #. type: textblock
15892 #: ../fish/guestfish-actions.pod:4345 ../src/guestfs-actions.pod:6758
15893 msgid "The file is I<removed> after scrubbing."
15894 msgstr ""
15895
15896 #. type: =head2
15897 #: ../fish/guestfish-actions.pod:4350
15898 msgid "scrub-freespace"
15899 msgstr ""
15900
15901 #. type: verbatim
15902 #: ../fish/guestfish-actions.pod:4352
15903 #, no-wrap
15904 msgid ""
15905 " scrub-freespace dir\n"
15906 "\n"
15907 msgstr ""
15908
15909 #. type: textblock
15910 #: ../fish/guestfish-actions.pod:4354
15911 msgid ""
15912 "This command creates the directory C<dir> and then fills it with files until "
15913 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15914 "deletes them.  The intention is to scrub any free space on the partition "
15915 "containing C<dir>."
15916 msgstr ""
15917
15918 #. type: =head2
15919 #: ../fish/guestfish-actions.pod:4363
15920 msgid "set-append"
15921 msgstr ""
15922
15923 #. type: =head2
15924 #: ../fish/guestfish-actions.pod:4365
15925 msgid "append"
15926 msgstr ""
15927
15928 #. type: verbatim
15929 #: ../fish/guestfish-actions.pod:4367
15930 #, no-wrap
15931 msgid ""
15932 " set-append append\n"
15933 "\n"
15934 msgstr ""
15935
15936 #. type: textblock
15937 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6792
15938 msgid ""
15939 "This function is used to add additional options to the guest kernel command "
15940 "line."
15941 msgstr ""
15942
15943 #. type: textblock
15944 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6795
15945 msgid ""
15946 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15947 "environment variable."
15948 msgstr ""
15949
15950 #. type: textblock
15951 #: ../fish/guestfish-actions.pod:4375 ../src/guestfs-actions.pod:6798
15952 msgid ""
15953 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15954 "(libguestfs always adds a few of its own)."
15955 msgstr ""
15956
15957 #. type: =head2
15958 #: ../fish/guestfish-actions.pod:4378
15959 msgid "set-attach-method"
15960 msgstr ""
15961
15962 #. type: =head2
15963 #: ../fish/guestfish-actions.pod:4380
15964 msgid "attach-method"
15965 msgstr ""
15966
15967 #. type: verbatim
15968 #: ../fish/guestfish-actions.pod:4382
15969 #, no-wrap
15970 msgid ""
15971 " set-attach-method attachmethod\n"
15972 "\n"
15973 msgstr ""
15974
15975 #. type: textblock
15976 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6811
15977 msgid ""
15978 "Set the method that libguestfs uses to connect to the back end guestfsd "
15979 "daemon.  Possible methods are:"
15980 msgstr ""
15981
15982 #. type: =item
15983 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6816
15984 #: ../src/guestfs.pod:2916
15985 msgid "C<appliance>"
15986 msgstr ""
15987
15988 #. type: textblock
15989 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6818
15990 msgid ""
15991 "Launch an appliance and connect to it.  This is the ordinary method and the "
15992 "default."
15993 msgstr ""
15994
15995 #. type: =item
15996 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6821
15997 msgid "C<unix:I<path>>"
15998 msgstr ""
15999
16000 #. type: textblock
16001 #: ../fish/guestfish-actions.pod:4396 ../src/guestfs-actions.pod:6823
16002 msgid "Connect to the Unix domain socket I<path>."
16003 msgstr ""
16004
16005 #. type: textblock
16006 #: ../fish/guestfish-actions.pod:4398 ../src/guestfs-actions.pod:6825
16007 msgid ""
16008 "This method lets you connect to an existing daemon or (using virtio-serial) "
16009 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
16010 "RUNNING DAEMONS>."
16011 msgstr ""
16012
16013 #. type: =head2
16014 #: ../fish/guestfish-actions.pod:4404
16015 msgid "set-autosync"
16016 msgstr ""
16017
16018 #. type: =head2
16019 #: ../fish/guestfish-actions.pod:4406
16020 msgid "autosync"
16021 msgstr ""
16022
16023 #. type: verbatim
16024 #: ../fish/guestfish-actions.pod:4408
16025 #, no-wrap
16026 msgid ""
16027 " set-autosync true|false\n"
16028 "\n"
16029 msgstr ""
16030
16031 #. type: textblock
16032 #: ../fish/guestfish-actions.pod:4410 ../src/guestfs-actions.pod:6841
16033 msgid ""
16034 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16035 "effort attempt to make filesystems consistent and synchronized when the "
16036 "handle is closed (also if the program exits without closing handles)."
16037 msgstr ""
16038
16039 #. type: textblock
16040 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6846
16041 msgid ""
16042 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16043 "disabled by default)."
16044 msgstr ""
16045
16046 #. type: =head2
16047 #: ../fish/guestfish-actions.pod:4418
16048 msgid "set-direct"
16049 msgstr ""
16050
16051 #. type: =head2
16052 #: ../fish/guestfish-actions.pod:4420
16053 msgid "direct"
16054 msgstr ""
16055
16056 #. type: verbatim
16057 #: ../fish/guestfish-actions.pod:4422
16058 #, no-wrap
16059 msgid ""
16060 " set-direct true|false\n"
16061 "\n"
16062 msgstr ""
16063
16064 #. type: textblock
16065 #: ../fish/guestfish-actions.pod:4424 ../src/guestfs-actions.pod:6859
16066 msgid ""
16067 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16068 "passed directly through to the appliance once it is launched."
16069 msgstr ""
16070
16071 #. type: textblock
16072 #: ../fish/guestfish-actions.pod:4428
16073 msgid ""
16074 "One consequence of this is that log messages aren't caught by the library "
16075 "and handled by L</set-log-message-callback>, but go straight to stdout."
16076 msgstr ""
16077
16078 #. type: textblock
16079 #: ../fish/guestfish-actions.pod:4432 ../src/guestfs-actions.pod:6867
16080 msgid "You probably don't want to use this unless you know what you are doing."
16081 msgstr ""
16082
16083 #. type: textblock
16084 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6870
16085 msgid "The default is disabled."
16086 msgstr ""
16087
16088 #. type: =head2
16089 #: ../fish/guestfish-actions.pod:4437
16090 msgid "set-e2label"
16091 msgstr ""
16092
16093 #. type: verbatim
16094 #: ../fish/guestfish-actions.pod:4439
16095 #, no-wrap
16096 msgid ""
16097 " set-e2label device label\n"
16098 "\n"
16099 msgstr ""
16100
16101 #. type: textblock
16102 #: ../fish/guestfish-actions.pod:4441 ../src/guestfs-actions.pod:6883
16103 msgid ""
16104 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16105 "C<label>.  Filesystem labels are limited to 16 characters."
16106 msgstr ""
16107
16108 #. type: textblock
16109 #: ../fish/guestfish-actions.pod:4445
16110 msgid ""
16111 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
16112 "label on a filesystem."
16113 msgstr ""
16114
16115 #. type: =head2
16116 #: ../fish/guestfish-actions.pod:4448
16117 msgid "set-e2uuid"
16118 msgstr ""
16119
16120 #. type: verbatim
16121 #: ../fish/guestfish-actions.pod:4450
16122 #, no-wrap
16123 msgid ""
16124 " set-e2uuid device uuid\n"
16125 "\n"
16126 msgstr ""
16127
16128 #. type: textblock
16129 #: ../fish/guestfish-actions.pod:4452 ../src/guestfs-actions.pod:6901
16130 msgid ""
16131 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16132 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16133 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16134 msgstr ""
16135
16136 #. type: textblock
16137 #: ../fish/guestfish-actions.pod:4457
16138 msgid ""
16139 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
16140 "UUID of a filesystem."
16141 msgstr ""
16142
16143 #. type: =head2
16144 #: ../fish/guestfish-actions.pod:4460
16145 msgid "set-memsize"
16146 msgstr ""
16147
16148 #. type: =head2
16149 #: ../fish/guestfish-actions.pod:4462
16150 msgid "memsize"
16151 msgstr ""
16152
16153 #. type: verbatim
16154 #: ../fish/guestfish-actions.pod:4464
16155 #, no-wrap
16156 msgid ""
16157 " set-memsize memsize\n"
16158 "\n"
16159 msgstr ""
16160
16161 #. type: textblock
16162 #: ../fish/guestfish-actions.pod:4466
16163 msgid ""
16164 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16165 "This only has any effect if called before L</launch>."
16166 msgstr ""
16167
16168 #. type: textblock
16169 #: ../fish/guestfish-actions.pod:4470 ../src/guestfs-actions.pod:6923
16170 msgid ""
16171 "You can also change this by setting the environment variable "
16172 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16173 msgstr ""
16174
16175 #. type: =head2
16176 #: ../fish/guestfish-actions.pod:4477
16177 msgid "set-network"
16178 msgstr ""
16179
16180 #. type: =head2
16181 #: ../fish/guestfish-actions.pod:4479
16182 msgid "network"
16183 msgstr ""
16184
16185 #. type: verbatim
16186 #: ../fish/guestfish-actions.pod:4481
16187 #, no-wrap
16188 msgid ""
16189 " set-network true|false\n"
16190 "\n"
16191 msgstr ""
16192
16193 #. type: textblock
16194 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6940
16195 msgid ""
16196 "If C<network> is true, then the network is enabled in the libguestfs "
16197 "appliance.  The default is false."
16198 msgstr ""
16199
16200 #. type: textblock
16201 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6943
16202 msgid ""
16203 "This affects whether commands are able to access the network (see L<guestfs"
16204 "(3)/RUNNING COMMANDS>)."
16205 msgstr ""
16206
16207 #. type: textblock
16208 #: ../fish/guestfish-actions.pod:4489
16209 msgid ""
16210 "You must call this before calling L</launch>, otherwise it has no effect."
16211 msgstr ""
16212
16213 #. type: =head2
16214 #: ../fish/guestfish-actions.pod:4492
16215 msgid "set-path"
16216 msgstr ""
16217
16218 #. type: verbatim
16219 #: ../fish/guestfish-actions.pod:4496
16220 #, no-wrap
16221 msgid ""
16222 " set-path searchpath\n"
16223 "\n"
16224 msgstr ""
16225
16226 #. type: textblock
16227 #: ../fish/guestfish-actions.pod:4498 ../src/guestfs-actions.pod:6959
16228 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16229 msgstr ""
16230
16231 #. type: textblock
16232 #: ../fish/guestfish-actions.pod:4500 ../src/guestfs-actions.pod:6961
16233 msgid ""
16234 "The default is C<$libdir/guestfs> unless overridden by setting "
16235 "C<LIBGUESTFS_PATH> environment variable."
16236 msgstr ""
16237
16238 #. type: textblock
16239 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6964
16240 msgid "Setting C<path> to C<NULL> restores the default path."
16241 msgstr ""
16242
16243 #. type: =head2
16244 #: ../fish/guestfish-actions.pod:4505
16245 msgid "set-pgroup"
16246 msgstr ""
16247
16248 #. type: =head2
16249 #: ../fish/guestfish-actions.pod:4507
16250 msgid "pgroup"
16251 msgstr ""
16252
16253 #. type: verbatim
16254 #: ../fish/guestfish-actions.pod:4509
16255 #, no-wrap
16256 msgid ""
16257 " set-pgroup true|false\n"
16258 "\n"
16259 msgstr ""
16260
16261 #. type: textblock
16262 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6976
16263 msgid ""
16264 "If C<pgroup> is true, child processes are placed into their own process "
16265 "group."
16266 msgstr ""
16267
16268 #. type: textblock
16269 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6979
16270 msgid ""
16271 "The practical upshot of this is that signals like C<SIGINT> (from users "
16272 "pressing C<^C>) won't be received by the child process."
16273 msgstr ""
16274
16275 #. type: textblock
16276 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6982
16277 msgid ""
16278 "The default for this flag is false, because usually you want C<^C> to kill "
16279 "the subprocess."
16280 msgstr ""
16281
16282 #. type: =head2
16283 #: ../fish/guestfish-actions.pod:4520
16284 msgid "set-qemu"
16285 msgstr ""
16286
16287 #. type: =head2
16288 #: ../fish/guestfish-actions.pod:4522
16289 msgid "qemu"
16290 msgstr ""
16291
16292 #. type: verbatim
16293 #: ../fish/guestfish-actions.pod:4524
16294 #, no-wrap
16295 msgid ""
16296 " set-qemu qemu\n"
16297 "\n"
16298 msgstr ""
16299
16300 #. type: textblock
16301 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6995
16302 msgid "Set the qemu binary that we will use."
16303 msgstr ""
16304
16305 #. type: textblock
16306 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6997
16307 msgid ""
16308 "The default is chosen when the library was compiled by the configure script."
16309 msgstr ""
16310
16311 #. type: textblock
16312 #: ../fish/guestfish-actions.pod:4531 ../src/guestfs-actions.pod:7000
16313 msgid ""
16314 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16315 "variable."
16316 msgstr ""
16317
16318 #. type: textblock
16319 #: ../fish/guestfish-actions.pod:4534 ../src/guestfs-actions.pod:7003
16320 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16321 msgstr ""
16322
16323 #. type: textblock
16324 #: ../fish/guestfish-actions.pod:4536 ../src/guestfs-actions.pod:7005
16325 msgid ""
16326 "Note that you should call this function as early as possible after creating "
16327 "the handle.  This is because some pre-launch operations depend on testing "
16328 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16329 "don't retest features, and so you might see inconsistent results.  Using the "
16330 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16331 "the qemu binary at the same time as the handle is created."
16332 msgstr ""
16333
16334 #. type: =head2
16335 #: ../fish/guestfish-actions.pod:4544
16336 msgid "set-recovery-proc"
16337 msgstr ""
16338
16339 #. type: =head2
16340 #: ../fish/guestfish-actions.pod:4546
16341 msgid "recovery-proc"
16342 msgstr ""
16343
16344 #. type: verbatim
16345 #: ../fish/guestfish-actions.pod:4548
16346 #, no-wrap
16347 msgid ""
16348 " set-recovery-proc true|false\n"
16349 "\n"
16350 msgstr ""
16351
16352 #. type: textblock
16353 #: ../fish/guestfish-actions.pod:4550
16354 msgid ""
16355 "If this is called with the parameter C<false> then L</launch> does not "
16356 "create a recovery process.  The purpose of the recovery process is to stop "
16357 "runaway qemu processes in the case where the main program aborts abruptly."
16358 msgstr ""
16359
16360 #. type: textblock
16361 #: ../fish/guestfish-actions.pod:4555
16362 msgid ""
16363 "This only has any effect if called before L</launch>, and the default is "
16364 "true."
16365 msgstr ""
16366
16367 #. type: textblock
16368 #: ../fish/guestfish-actions.pod:4558 ../src/guestfs-actions.pod:7031
16369 msgid ""
16370 "About the only time when you would want to disable this is if the main "
16371 "process will fork itself into the background (\"daemonize\" itself).  In "
16372 "this case the recovery process thinks that the main program has disappeared "
16373 "and so kills qemu, which is not very helpful."
16374 msgstr ""
16375
16376 #. type: =head2
16377 #: ../fish/guestfish-actions.pod:4564
16378 msgid "set-selinux"
16379 msgstr ""
16380
16381 #. type: =head2
16382 #: ../fish/guestfish-actions.pod:4566
16383 msgid "selinux"
16384 msgstr ""
16385
16386 #. type: verbatim
16387 #: ../fish/guestfish-actions.pod:4568
16388 #, no-wrap
16389 msgid ""
16390 " set-selinux true|false\n"
16391 "\n"
16392 msgstr ""
16393
16394 #. type: textblock
16395 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:7047
16396 msgid ""
16397 "This sets the selinux flag that is passed to the appliance at boot time.  "
16398 "The default is C<selinux=0> (disabled)."
16399 msgstr ""
16400
16401 #. type: textblock
16402 #: ../fish/guestfish-actions.pod:4573 ../src/guestfs-actions.pod:7050
16403 msgid ""
16404 "Note that if SELinux is enabled, it is always in Permissive mode "
16405 "(C<enforcing=0>)."
16406 msgstr ""
16407
16408 #. type: =head2
16409 #: ../fish/guestfish-actions.pod:4579
16410 msgid "set-smp"
16411 msgstr ""
16412
16413 #. type: =head2
16414 #: ../fish/guestfish-actions.pod:4581
16415 msgid "smp"
16416 msgstr ""
16417
16418 #. type: verbatim
16419 #: ../fish/guestfish-actions.pod:4583
16420 #, no-wrap
16421 msgid ""
16422 " set-smp smp\n"
16423 "\n"
16424 msgstr ""
16425
16426 #. type: textblock
16427 #: ../fish/guestfish-actions.pod:4585 ../src/guestfs-actions.pod:7066
16428 msgid ""
16429 "Change the number of virtual CPUs assigned to the appliance.  The default is "
16430 "C<1>.  Increasing this may improve performance, though often it has no "
16431 "effect."
16432 msgstr ""
16433
16434 #. type: textblock
16435 #: ../fish/guestfish-actions.pod:4589
16436 msgid "This function must be called before L</launch>."
16437 msgstr ""
16438
16439 #. type: =head2
16440 #: ../fish/guestfish-actions.pod:4591
16441 msgid "set-trace"
16442 msgstr ""
16443
16444 #. type: =head2
16445 #: ../fish/guestfish-actions.pod:4593
16446 msgid "trace"
16447 msgstr ""
16448
16449 #. type: verbatim
16450 #: ../fish/guestfish-actions.pod:4595
16451 #, no-wrap
16452 msgid ""
16453 " set-trace true|false\n"
16454 "\n"
16455 msgstr ""
16456
16457 #. type: textblock
16458 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:7082
16459 msgid ""
16460 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16461 "return values are traced."
16462 msgstr ""
16463
16464 #. type: textblock
16465 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:7085
16466 msgid ""
16467 "If you want to trace C API calls into libguestfs (and other libraries) then "
16468 "possibly a better way is to use the external ltrace(1) command."
16469 msgstr ""
16470
16471 #. type: textblock
16472 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:7089
16473 msgid ""
16474 "Command traces are disabled unless the environment variable "
16475 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16476 msgstr ""
16477
16478 #. type: textblock
16479 #: ../fish/guestfish-actions.pod:4607
16480 msgid ""
16481 "Trace messages are normally sent to C<stderr>, unless you register a "
16482 "callback to send them somewhere else (see L</set-event-callback>)."
16483 msgstr ""
16484
16485 #. type: =head2
16486 #: ../fish/guestfish-actions.pod:4611
16487 msgid "set-verbose"
16488 msgstr ""
16489
16490 #. type: =head2
16491 #: ../fish/guestfish-actions.pod:4613
16492 msgid "verbose"
16493 msgstr ""
16494
16495 #. type: verbatim
16496 #: ../fish/guestfish-actions.pod:4615
16497 #, no-wrap
16498 msgid ""
16499 " set-verbose true|false\n"
16500 "\n"
16501 msgstr ""
16502
16503 #. type: textblock
16504 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:7106
16505 msgid "If C<verbose> is true, this turns on verbose messages."
16506 msgstr ""
16507
16508 #. type: textblock
16509 #: ../fish/guestfish-actions.pod:4619 ../src/guestfs-actions.pod:7108
16510 msgid ""
16511 "Verbose messages are disabled unless the environment variable "
16512 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16513 msgstr ""
16514
16515 #. type: textblock
16516 #: ../fish/guestfish-actions.pod:4622
16517 msgid ""
16518 "Verbose messages are normally sent to C<stderr>, unless you register a "
16519 "callback to send them somewhere else (see L</set-event-callback>)."
16520 msgstr ""
16521
16522 #. type: =head2
16523 #: ../fish/guestfish-actions.pod:4626
16524 msgid "setcon"
16525 msgstr ""
16526
16527 #. type: verbatim
16528 #: ../fish/guestfish-actions.pod:4628
16529 #, no-wrap
16530 msgid ""
16531 " setcon context\n"
16532 "\n"
16533 msgstr ""
16534
16535 #. type: textblock
16536 #: ../fish/guestfish-actions.pod:4630 ../src/guestfs-actions.pod:7125
16537 msgid ""
16538 "This sets the SELinux security context of the daemon to the string "
16539 "C<context>."
16540 msgstr ""
16541
16542 #. type: textblock
16543 #: ../fish/guestfish-actions.pod:4633 ../src/guestfs-actions.pod:7128
16544 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16545 msgstr ""
16546
16547 #. type: =head2
16548 #: ../fish/guestfish-actions.pod:4635
16549 msgid "setxattr"
16550 msgstr ""
16551
16552 #. type: verbatim
16553 #: ../fish/guestfish-actions.pod:4637
16554 #, no-wrap
16555 msgid ""
16556 " setxattr xattr val vallen path\n"
16557 "\n"
16558 msgstr ""
16559
16560 #. type: textblock
16561 #: ../fish/guestfish-actions.pod:4639 ../src/guestfs-actions.pod:7143
16562 msgid ""
16563 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16564 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16565 msgstr ""
16566
16567 #. type: textblock
16568 #: ../fish/guestfish-actions.pod:4643
16569 msgid "See also: L</lsetxattr>, L<attr(5)>."
16570 msgstr ""
16571
16572 #. type: =head2
16573 #: ../fish/guestfish-actions.pod:4645
16574 msgid "sfdisk"
16575 msgstr ""
16576
16577 #. type: verbatim
16578 #: ../fish/guestfish-actions.pod:4647
16579 #, no-wrap
16580 msgid ""
16581 " sfdisk device cyls heads sectors 'lines ...'\n"
16582 "\n"
16583 msgstr ""
16584
16585 #. type: textblock
16586 #: ../fish/guestfish-actions.pod:4649 ../src/guestfs-actions.pod:7170
16587 msgid ""
16588 "This is a direct interface to the L<sfdisk(8)> program for creating "
16589 "partitions on block devices."
16590 msgstr ""
16591
16592 #. type: textblock
16593 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7173
16594 msgid "C<device> should be a block device, for example C</dev/sda>."
16595 msgstr ""
16596
16597 #. type: textblock
16598 #: ../fish/guestfish-actions.pod:4654 ../src/guestfs-actions.pod:7175
16599 msgid ""
16600 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16601 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16602 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16603 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16604 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16605 "the kernel) cannot work out the right geometry and you will need to tell it."
16606 msgstr ""
16607
16608 #. type: textblock
16609 #: ../fish/guestfish-actions.pod:4662 ../src/guestfs-actions.pod:7183
16610 msgid ""
16611 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16612 "refer to the L<sfdisk(8)> manpage."
16613 msgstr ""
16614
16615 #. type: textblock
16616 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7186
16617 msgid ""
16618 "To create a single partition occupying the whole disk, you would pass "
16619 "C<lines> as a single element list, when the single element being the string "
16620 "C<,> (comma)."
16621 msgstr ""
16622
16623 #. type: textblock
16624 #: ../fish/guestfish-actions.pod:4669
16625 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16626 msgstr ""
16627
16628 #. type: textblock
16629 #: ../fish/guestfish-actions.pod:4672 ../fish/guestfish-actions.pod:4692
16630 #: ../fish/guestfish-actions.pod:4711
16631 msgid ""
16632 "I<This function is deprecated.> In new code, use the L</part_add> call "
16633 "instead."
16634 msgstr ""
16635
16636 #. type: =head2
16637 #: ../fish/guestfish-actions.pod:4679
16638 msgid "sfdiskM"
16639 msgstr ""
16640
16641 #. type: verbatim
16642 #: ../fish/guestfish-actions.pod:4681
16643 #, no-wrap
16644 msgid ""
16645 " sfdiskM device 'lines ...'\n"
16646 "\n"
16647 msgstr ""
16648
16649 #. type: textblock
16650 #: ../fish/guestfish-actions.pod:4683
16651 msgid ""
16652 "This is a simplified interface to the L</sfdisk> command, where partition "
16653 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16654 "you don't need to specify the cyls, heads and sectors parameters which were "
16655 "rarely if ever used anyway."
16656 msgstr ""
16657
16658 #. type: textblock
16659 #: ../fish/guestfish-actions.pod:4689
16660 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16661 msgstr ""
16662
16663 #. type: =head2
16664 #: ../fish/guestfish-actions.pod:4699
16665 msgid "sfdisk-N"
16666 msgstr ""
16667
16668 #. type: verbatim
16669 #: ../fish/guestfish-actions.pod:4701
16670 #, no-wrap
16671 msgid ""
16672 " sfdisk-N device partnum cyls heads sectors line\n"
16673 "\n"
16674 msgstr ""
16675
16676 #. type: textblock
16677 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7242
16678 msgid ""
16679 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16680 "(note: C<n> counts from 1)."
16681 msgstr ""
16682
16683 #. type: textblock
16684 #: ../fish/guestfish-actions.pod:4706
16685 msgid ""
16686 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16687 "cyls/heads/sectors parameters."
16688 msgstr ""
16689
16690 #. type: textblock
16691 #: ../fish/guestfish-actions.pod:4709
16692 msgid "See also: L</part-add>"
16693 msgstr ""
16694
16695 #. type: =head2
16696 #: ../fish/guestfish-actions.pod:4718
16697 msgid "sfdisk-disk-geometry"
16698 msgstr ""
16699
16700 #. type: verbatim
16701 #: ../fish/guestfish-actions.pod:4720
16702 #, no-wrap
16703 msgid ""
16704 " sfdisk-disk-geometry device\n"
16705 "\n"
16706 msgstr ""
16707
16708 #. type: textblock
16709 #: ../fish/guestfish-actions.pod:4722
16710 msgid ""
16711 "This displays the disk geometry of C<device> read from the partition table.  "
16712 "Especially in the case where the underlying block device has been resized, "
16713 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16714 "kernel-geometry>)."
16715 msgstr ""
16716
16717 #. type: textblock
16718 #: ../fish/guestfish-actions.pod:4727 ../fish/guestfish-actions.pod:4736
16719 #: ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7281
16720 msgid "The result is in human-readable format, and not designed to be parsed."
16721 msgstr ""
16722
16723 #. type: =head2
16724 #: ../fish/guestfish-actions.pod:4730
16725 msgid "sfdisk-kernel-geometry"
16726 msgstr ""
16727
16728 #. type: verbatim
16729 #: ../fish/guestfish-actions.pod:4732
16730 #, no-wrap
16731 msgid ""
16732 " sfdisk-kernel-geometry device\n"
16733 "\n"
16734 msgstr ""
16735
16736 #. type: textblock
16737 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7279
16738 msgid "This displays the kernel's idea of the geometry of C<device>."
16739 msgstr ""
16740
16741 #. type: =head2
16742 #: ../fish/guestfish-actions.pod:4739
16743 msgid "sfdisk-l"
16744 msgstr ""
16745
16746 #. type: verbatim
16747 #: ../fish/guestfish-actions.pod:4741
16748 #, no-wrap
16749 msgid ""
16750 " sfdisk-l device\n"
16751 "\n"
16752 msgstr ""
16753
16754 #. type: textblock
16755 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7302
16756 msgid ""
16757 "This displays the partition table on C<device>, in the human-readable output "
16758 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16759 msgstr ""
16760
16761 #. type: textblock
16762 #: ../fish/guestfish-actions.pod:4747
16763 msgid "See also: L</part-list>"
16764 msgstr ""
16765
16766 #. type: textblock
16767 #: ../fish/guestfish-actions.pod:4749
16768 msgid ""
16769 "I<This function is deprecated.> In new code, use the L</part_list> call "
16770 "instead."
16771 msgstr ""
16772
16773 #. type: =head2
16774 #: ../fish/guestfish-actions.pod:4756
16775 msgid "sh"
16776 msgstr ""
16777
16778 #. type: verbatim
16779 #: ../fish/guestfish-actions.pod:4758
16780 #, no-wrap
16781 msgid ""
16782 " sh command\n"
16783 "\n"
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7319
16788 msgid ""
16789 "This call runs a command from the guest filesystem via the guest's C</bin/"
16790 "sh>."
16791 msgstr ""
16792
16793 #. type: textblock
16794 #: ../fish/guestfish-actions.pod:4763
16795 msgid "This is like L</command>, but passes the command to:"
16796 msgstr ""
16797
16798 #. type: verbatim
16799 #: ../fish/guestfish-actions.pod:4765 ../src/guestfs-actions.pod:7324
16800 #, no-wrap
16801 msgid ""
16802 " /bin/sh -c \"command\"\n"
16803 "\n"
16804 msgstr ""
16805
16806 #. type: textblock
16807 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7326
16808 msgid ""
16809 "Depending on the guest's shell, this usually results in wildcards being "
16810 "expanded, shell expressions being interpolated and so on."
16811 msgstr ""
16812
16813 #. type: textblock
16814 #: ../fish/guestfish-actions.pod:4771
16815 msgid "All the provisos about L</command> apply to this call."
16816 msgstr ""
16817
16818 #. type: =head2
16819 #: ../fish/guestfish-actions.pod:4773
16820 msgid "sh-lines"
16821 msgstr ""
16822
16823 #. type: verbatim
16824 #: ../fish/guestfish-actions.pod:4775
16825 #, no-wrap
16826 msgid ""
16827 " sh-lines command\n"
16828 "\n"
16829 msgstr ""
16830
16831 #. type: textblock
16832 #: ../fish/guestfish-actions.pod:4777
16833 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16834 msgstr ""
16835
16836 #. type: textblock
16837 #: ../fish/guestfish-actions.pod:4780
16838 msgid "See also: L</command-lines>"
16839 msgstr ""
16840
16841 #. type: =head2
16842 #: ../fish/guestfish-actions.pod:4782
16843 msgid "sleep"
16844 msgstr ""
16845
16846 #. type: verbatim
16847 #: ../fish/guestfish-actions.pod:4784
16848 #, no-wrap
16849 msgid ""
16850 " sleep secs\n"
16851 "\n"
16852 msgstr ""
16853
16854 #. type: textblock
16855 #: ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:7360
16856 msgid "Sleep for C<secs> seconds."
16857 msgstr ""
16858
16859 #. type: =head2
16860 #: ../fish/guestfish-actions.pod:4788
16861 msgid "stat"
16862 msgstr ""
16863
16864 #. type: verbatim
16865 #: ../fish/guestfish-actions.pod:4790
16866 #, no-wrap
16867 msgid ""
16868 " stat path\n"
16869 "\n"
16870 msgstr ""
16871
16872 #. type: textblock
16873 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7374
16874 msgid "This is the same as the C<stat(2)> system call."
16875 msgstr ""
16876
16877 #. type: =head2
16878 #: ../fish/guestfish-actions.pod:4796
16879 msgid "statvfs"
16880 msgstr ""
16881
16882 #. type: verbatim
16883 #: ../fish/guestfish-actions.pod:4798
16884 #, no-wrap
16885 msgid ""
16886 " statvfs path\n"
16887 "\n"
16888 msgstr ""
16889
16890 #. type: textblock
16891 #: ../fish/guestfish-actions.pod:4800 ../src/guestfs-actions.pod:7388
16892 msgid ""
16893 "Returns file system statistics for any mounted file system.  C<path> should "
16894 "be a file or directory in the mounted file system (typically it is the mount "
16895 "point itself, but it doesn't need to be)."
16896 msgstr ""
16897
16898 #. type: textblock
16899 #: ../fish/guestfish-actions.pod:4804 ../src/guestfs-actions.pod:7392
16900 msgid "This is the same as the C<statvfs(2)> system call."
16901 msgstr ""
16902
16903 #. type: =head2
16904 #: ../fish/guestfish-actions.pod:4806
16905 msgid "strings"
16906 msgstr ""
16907
16908 #. type: verbatim
16909 #: ../fish/guestfish-actions.pod:4808
16910 #, no-wrap
16911 msgid ""
16912 " strings path\n"
16913 "\n"
16914 msgstr ""
16915
16916 #. type: textblock
16917 #: ../fish/guestfish-actions.pod:4810 ../src/guestfs-actions.pod:7406
16918 msgid ""
16919 "This runs the L<strings(1)> command on a file and returns the list of "
16920 "printable strings found."
16921 msgstr ""
16922
16923 #. type: =head2
16924 #: ../fish/guestfish-actions.pod:4816
16925 msgid "strings-e"
16926 msgstr ""
16927
16928 #. type: verbatim
16929 #: ../fish/guestfish-actions.pod:4818
16930 #, no-wrap
16931 msgid ""
16932 " strings-e encoding path\n"
16933 "\n"
16934 msgstr ""
16935
16936 #. type: textblock
16937 #: ../fish/guestfish-actions.pod:4820
16938 msgid ""
16939 "This is like the L</strings> command, but allows you to specify the encoding "
16940 "of strings that are looked for in the source file C<path>."
16941 msgstr ""
16942
16943 #. type: textblock
16944 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7429
16945 msgid "Allowed encodings are:"
16946 msgstr ""
16947
16948 #. type: =item
16949 #: ../fish/guestfish-actions.pod:4828 ../src/guestfs-actions.pod:7433
16950 msgid "s"
16951 msgstr ""
16952
16953 #. type: textblock
16954 #: ../fish/guestfish-actions.pod:4830
16955 msgid ""
16956 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16957 "ISO-8859-X (this is what L</strings> uses)."
16958 msgstr ""
16959
16960 #. type: =item
16961 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7438
16962 msgid "S"
16963 msgstr ""
16964
16965 #. type: textblock
16966 #: ../fish/guestfish-actions.pod:4835 ../src/guestfs-actions.pod:7440
16967 msgid "Single 8-bit-byte characters."
16968 msgstr ""
16969
16970 #. type: =item
16971 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7442
16972 msgid "b"
16973 msgstr ""
16974
16975 #. type: textblock
16976 #: ../fish/guestfish-actions.pod:4839 ../src/guestfs-actions.pod:7444
16977 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16978 msgstr ""
16979
16980 #. type: =item
16981 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7447
16982 msgid "l (lower case letter L)"
16983 msgstr ""
16984
16985 #. type: textblock
16986 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7449
16987 msgid ""
16988 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16989 "examining binaries in Windows guests."
16990 msgstr ""
16991
16992 #. type: =item
16993 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7452
16994 msgid "B"
16995 msgstr ""
16996
16997 #. type: textblock
16998 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7454
16999 msgid "32-bit big endian such as UCS-4BE."
17000 msgstr ""
17001
17002 #. type: =item
17003 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7456
17004 msgid "L"
17005 msgstr ""
17006
17007 #. type: textblock
17008 #: ../fish/guestfish-actions.pod:4853 ../src/guestfs-actions.pod:7458
17009 msgid "32-bit little endian such as UCS-4LE."
17010 msgstr ""
17011
17012 #. type: textblock
17013 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7462
17014 msgid "The returned strings are transcoded to UTF-8."
17015 msgstr ""
17016
17017 #. type: =head2
17018 #: ../fish/guestfish-actions.pod:4862
17019 msgid "swapoff-device"
17020 msgstr ""
17021
17022 #. type: verbatim
17023 #: ../fish/guestfish-actions.pod:4864
17024 #, no-wrap
17025 msgid ""
17026 " swapoff-device device\n"
17027 "\n"
17028 msgstr ""
17029
17030 #. type: textblock
17031 #: ../fish/guestfish-actions.pod:4866
17032 msgid ""
17033 "This command disables the libguestfs appliance swap device or partition "
17034 "named C<device>.  See L</swapon-device>."
17035 msgstr ""
17036
17037 #. type: =head2
17038 #: ../fish/guestfish-actions.pod:4870
17039 msgid "swapoff-file"
17040 msgstr ""
17041
17042 #. type: verbatim
17043 #: ../fish/guestfish-actions.pod:4872
17044 #, no-wrap
17045 msgid ""
17046 " swapoff-file file\n"
17047 "\n"
17048 msgstr ""
17049
17050 #. type: textblock
17051 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7493
17052 msgid "This command disables the libguestfs appliance swap on file."
17053 msgstr ""
17054
17055 #. type: =head2
17056 #: ../fish/guestfish-actions.pod:4876
17057 msgid "swapoff-label"
17058 msgstr ""
17059
17060 #. type: verbatim
17061 #: ../fish/guestfish-actions.pod:4878
17062 #, no-wrap
17063 msgid ""
17064 " swapoff-label label\n"
17065 "\n"
17066 msgstr ""
17067
17068 #. type: textblock
17069 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7505
17070 msgid ""
17071 "This command disables the libguestfs appliance swap on labeled swap "
17072 "partition."
17073 msgstr ""
17074
17075 #. type: =head2
17076 #: ../fish/guestfish-actions.pod:4883
17077 msgid "swapoff-uuid"
17078 msgstr ""
17079
17080 #. type: verbatim
17081 #: ../fish/guestfish-actions.pod:4885
17082 #, no-wrap
17083 msgid ""
17084 " swapoff-uuid uuid\n"
17085 "\n"
17086 msgstr ""
17087
17088 #. type: textblock
17089 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7518
17090 msgid ""
17091 "This command disables the libguestfs appliance swap partition with the given "
17092 "UUID."
17093 msgstr ""
17094
17095 #. type: =head2
17096 #: ../fish/guestfish-actions.pod:4890
17097 msgid "swapon-device"
17098 msgstr ""
17099
17100 #. type: verbatim
17101 #: ../fish/guestfish-actions.pod:4892
17102 #, no-wrap
17103 msgid ""
17104 " swapon-device device\n"
17105 "\n"
17106 msgstr ""
17107
17108 #. type: textblock
17109 #: ../fish/guestfish-actions.pod:4894
17110 msgid ""
17111 "This command enables the libguestfs appliance to use the swap device or "
17112 "partition named C<device>.  The increased memory is made available for all "
17113 "commands, for example those run using L</command> or L</sh>."
17114 msgstr ""
17115
17116 #. type: textblock
17117 #: ../fish/guestfish-actions.pod:4899 ../src/guestfs-actions.pod:7536
17118 msgid ""
17119 "Note that you should not swap to existing guest swap partitions unless you "
17120 "know what you are doing.  They may contain hibernation information, or other "
17121 "information that the guest doesn't want you to trash.  You also risk leaking "
17122 "information about the host to the guest this way.  Instead, attach a new "
17123 "host device to the guest and swap on that."
17124 msgstr ""
17125
17126 #. type: =head2
17127 #: ../fish/guestfish-actions.pod:4906
17128 msgid "swapon-file"
17129 msgstr ""
17130
17131 #. type: verbatim
17132 #: ../fish/guestfish-actions.pod:4908
17133 #, no-wrap
17134 msgid ""
17135 " swapon-file file\n"
17136 "\n"
17137 msgstr ""
17138
17139 #. type: textblock
17140 #: ../fish/guestfish-actions.pod:4910
17141 msgid ""
17142 "This command enables swap to a file.  See L</swapon-device> for other notes."
17143 msgstr ""
17144
17145 #. type: =head2
17146 #: ../fish/guestfish-actions.pod:4913
17147 msgid "swapon-label"
17148 msgstr ""
17149
17150 #. type: verbatim
17151 #: ../fish/guestfish-actions.pod:4915
17152 #, no-wrap
17153 msgid ""
17154 " swapon-label label\n"
17155 "\n"
17156 msgstr ""
17157
17158 #. type: textblock
17159 #: ../fish/guestfish-actions.pod:4917
17160 msgid ""
17161 "This command enables swap to a labeled swap partition.  See L</swapon-"
17162 "device> for other notes."
17163 msgstr ""
17164
17165 #. type: =head2
17166 #: ../fish/guestfish-actions.pod:4920
17167 msgid "swapon-uuid"
17168 msgstr ""
17169
17170 #. type: verbatim
17171 #: ../fish/guestfish-actions.pod:4922
17172 #, no-wrap
17173 msgid ""
17174 " swapon-uuid uuid\n"
17175 "\n"
17176 msgstr ""
17177
17178 #. type: textblock
17179 #: ../fish/guestfish-actions.pod:4924
17180 msgid ""
17181 "This command enables swap to a swap partition with the given UUID.  See L</"
17182 "swapon-device> for other notes."
17183 msgstr ""
17184
17185 #. type: =head2
17186 #: ../fish/guestfish-actions.pod:4927
17187 msgid "sync"
17188 msgstr ""
17189
17190 #. type: verbatim
17191 #: ../fish/guestfish-actions.pod:4929
17192 #, no-wrap
17193 msgid ""
17194 " sync\n"
17195 "\n"
17196 msgstr ""
17197
17198 #. type: textblock
17199 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7591
17200 msgid ""
17201 "This syncs the disk, so that any writes are flushed through to the "
17202 "underlying disk image."
17203 msgstr ""
17204
17205 #. type: textblock
17206 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7594
17207 msgid ""
17208 "You should always call this if you have modified a disk image, before "
17209 "closing the handle."
17210 msgstr ""
17211
17212 #. type: =head2
17213 #: ../fish/guestfish-actions.pod:4937
17214 msgid "tail"
17215 msgstr ""
17216
17217 #. type: verbatim
17218 #: ../fish/guestfish-actions.pod:4939
17219 #, no-wrap
17220 msgid ""
17221 " tail path\n"
17222 "\n"
17223 msgstr ""
17224
17225 #. type: textblock
17226 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7607
17227 msgid ""
17228 "This command returns up to the last 10 lines of a file as a list of strings."
17229 msgstr ""
17230
17231 #. type: =head2
17232 #: ../fish/guestfish-actions.pod:4947
17233 msgid "tail-n"
17234 msgstr ""
17235
17236 #. type: verbatim
17237 #: ../fish/guestfish-actions.pod:4949
17238 #, no-wrap
17239 msgid ""
17240 " tail-n nrlines path\n"
17241 "\n"
17242 msgstr ""
17243
17244 #. type: textblock
17245 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7626
17246 msgid ""
17247 "If the parameter C<nrlines> is a positive number, this returns the last "
17248 "C<nrlines> lines of the file C<path>."
17249 msgstr ""
17250
17251 #. type: textblock
17252 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7629
17253 msgid ""
17254 "If the parameter C<nrlines> is a negative number, this returns lines from "
17255 "the file C<path>, starting with the C<-nrlines>th line."
17256 msgstr ""
17257
17258 #. type: =head2
17259 #: ../fish/guestfish-actions.pod:4962
17260 msgid "tar-in"
17261 msgstr ""
17262
17263 #. type: verbatim
17264 #: ../fish/guestfish-actions.pod:4964
17265 #, no-wrap
17266 msgid ""
17267 " tar-in (tarfile|-) directory\n"
17268 "\n"
17269 msgstr ""
17270
17271 #. type: textblock
17272 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7650
17273 msgid ""
17274 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17275 "tar file) into C<directory>."
17276 msgstr ""
17277
17278 #. type: textblock
17279 #: ../fish/guestfish-actions.pod:4969
17280 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17281 msgstr ""
17282
17283 #. type: =head2
17284 #: ../fish/guestfish-actions.pod:4974
17285 msgid "tar-out"
17286 msgstr ""
17287
17288 #. type: verbatim
17289 #: ../fish/guestfish-actions.pod:4976
17290 #, no-wrap
17291 msgid ""
17292 " tar-out directory (tarfile|-)\n"
17293 "\n"
17294 msgstr ""
17295
17296 #. type: textblock
17297 #: ../fish/guestfish-actions.pod:4978 ../src/guestfs-actions.pod:7667
17298 msgid ""
17299 "This command packs the contents of C<directory> and downloads it to local "
17300 "file C<tarfile>."
17301 msgstr ""
17302
17303 #. type: textblock
17304 #: ../fish/guestfish-actions.pod:4981
17305 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17306 msgstr ""
17307
17308 #. type: =head2
17309 #: ../fish/guestfish-actions.pod:4986
17310 msgid "tgz-in"
17311 msgstr ""
17312
17313 #. type: verbatim
17314 #: ../fish/guestfish-actions.pod:4988
17315 #, no-wrap
17316 msgid ""
17317 " tgz-in (tarball|-) directory\n"
17318 "\n"
17319 msgstr ""
17320
17321 #. type: textblock
17322 #: ../fish/guestfish-actions.pod:4990 ../src/guestfs-actions.pod:7684
17323 msgid ""
17324 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17325 "tar file) into C<directory>."
17326 msgstr ""
17327
17328 #. type: textblock
17329 #: ../fish/guestfish-actions.pod:4993
17330 msgid "To upload an uncompressed tarball, use L</tar-in>."
17331 msgstr ""
17332
17333 #. type: =head2
17334 #: ../fish/guestfish-actions.pod:4997
17335 msgid "tgz-out"
17336 msgstr ""
17337
17338 #. type: verbatim
17339 #: ../fish/guestfish-actions.pod:4999
17340 #, no-wrap
17341 msgid ""
17342 " tgz-out directory (tarball|-)\n"
17343 "\n"
17344 msgstr ""
17345
17346 #. type: textblock
17347 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7700
17348 msgid ""
17349 "This command packs the contents of C<directory> and downloads it to local "
17350 "file C<tarball>."
17351 msgstr ""
17352
17353 #. type: textblock
17354 #: ../fish/guestfish-actions.pod:5004
17355 msgid "To download an uncompressed tarball, use L</tar-out>."
17356 msgstr ""
17357
17358 #. type: =head2
17359 #: ../fish/guestfish-actions.pod:5008
17360 msgid "touch"
17361 msgstr ""
17362
17363 #. type: verbatim
17364 #: ../fish/guestfish-actions.pod:5010
17365 #, no-wrap
17366 msgid ""
17367 " touch path\n"
17368 "\n"
17369 msgstr ""
17370
17371 #. type: textblock
17372 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7715
17373 msgid ""
17374 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17375 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17376 "length file."
17377 msgstr ""
17378
17379 #. type: textblock
17380 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7719
17381 msgid ""
17382 "This command only works on regular files, and will fail on other file types "
17383 "such as directories, symbolic links, block special etc."
17384 msgstr ""
17385
17386 #. type: =head2
17387 #: ../fish/guestfish-actions.pod:5019
17388 msgid "truncate"
17389 msgstr ""
17390
17391 #. type: verbatim
17392 #: ../fish/guestfish-actions.pod:5021
17393 #, no-wrap
17394 msgid ""
17395 " truncate path\n"
17396 "\n"
17397 msgstr ""
17398
17399 #. type: textblock
17400 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7732
17401 msgid ""
17402 "This command truncates C<path> to a zero-length file.  The file must exist "
17403 "already."
17404 msgstr ""
17405
17406 #. type: =head2
17407 #: ../fish/guestfish-actions.pod:5026
17408 msgid "truncate-size"
17409 msgstr ""
17410
17411 #. type: verbatim
17412 #: ../fish/guestfish-actions.pod:5028
17413 #, no-wrap
17414 msgid ""
17415 " truncate-size path size\n"
17416 "\n"
17417 msgstr ""
17418
17419 #. type: textblock
17420 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7746
17421 msgid ""
17422 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17423 "already."
17424 msgstr ""
17425
17426 #. type: textblock
17427 #: ../fish/guestfish-actions.pod:5033
17428 msgid ""
17429 "If the current file size is less than C<size> then the file is extended to "
17430 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17431 "blocks are not allocated for the file until you write to it).  To create a "
17432 "non-sparse file of zeroes, use L</fallocate64> instead."
17433 msgstr ""
17434
17435 #. type: =head2
17436 #: ../fish/guestfish-actions.pod:5039
17437 msgid "tune2fs"
17438 msgstr ""
17439
17440 #. type: verbatim
17441 #: ../fish/guestfish-actions.pod:5041
17442 #, no-wrap
17443 msgid ""
17444 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] [errorbehavior:..] [group:N] [intervalbetweenchecks:N] [reservedblockspercentage:N] [lastmounteddirectory:..] [reservedblockscount:N] [user:N]\n"
17445 "\n"
17446 msgstr ""
17447
17448 #. type: textblock
17449 #: ../fish/guestfish-actions.pod:5043 ../src/guestfs-actions.pod:7782
17450 msgid ""
17451 "This call allows you to adjust various filesystem parameters of an ext2/ext3/"
17452 "ext4 filesystem called C<device>."
17453 msgstr ""
17454
17455 #. type: textblock
17456 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7791
17457 msgid ""
17458 "Force tune2fs to complete the operation even in the face of errors.  This is "
17459 "the same as the tune2fs C<-f> option."
17460 msgstr ""
17461
17462 #. type: =item
17463 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7794
17464 msgid "C<maxmountcount>"
17465 msgstr ""
17466
17467 #. type: textblock
17468 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7796
17469 msgid ""
17470 "Set the number of mounts after which the filesystem is checked by L<e2fsck(8)"
17471 ">.  If this is C<0> then the number of mounts is disregarded.  This is the "
17472 "same as the tune2fs C<-c> option."
17473 msgstr ""
17474
17475 #. type: =item
17476 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7800
17477 msgid "C<mountcount>"
17478 msgstr ""
17479
17480 #. type: textblock
17481 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7802
17482 msgid ""
17483 "Set the number of times the filesystem has been mounted.  This is the same "
17484 "as the tune2fs C<-C> option."
17485 msgstr ""
17486
17487 #. type: =item
17488 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7805
17489 msgid "C<errorbehavior>"
17490 msgstr ""
17491
17492 #. type: textblock
17493 #: ../fish/guestfish-actions.pod:5068 ../src/guestfs-actions.pod:7807
17494 msgid ""
17495 "Change the behavior of the kernel code when errors are detected.  Possible "
17496 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
17497 "these options don't really make any difference, particularly for write "
17498 "errors."
17499 msgstr ""
17500
17501 #. type: textblock
17502 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7812
17503 msgid "This is the same as the tune2fs C<-e> option."
17504 msgstr ""
17505
17506 #. type: =item
17507 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7814
17508 msgid "C<group>"
17509 msgstr ""
17510
17511 #. type: textblock
17512 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7816
17513 msgid ""
17514 "Set the group which can use reserved filesystem blocks.  This is the same as "
17515 "the tune2fs C<-g> option except that it can only be specified as a number."
17516 msgstr ""
17517
17518 #. type: =item
17519 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7820
17520 msgid "C<intervalbetweenchecks>"
17521 msgstr ""
17522
17523 #. type: textblock
17524 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7822
17525 msgid ""
17526 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
17527 "option is passed as C<0> then time-dependent checking is disabled."
17528 msgstr ""
17529
17530 #. type: textblock
17531 #: ../fish/guestfish-actions.pod:5087 ../src/guestfs-actions.pod:7826
17532 msgid "This is the same as the tune2fs C<-i> option."
17533 msgstr ""
17534
17535 #. type: =item
17536 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7828
17537 msgid "C<reservedblockspercentage>"
17538 msgstr ""
17539
17540 #. type: textblock
17541 #: ../fish/guestfish-actions.pod:5091 ../src/guestfs-actions.pod:7830
17542 msgid ""
17543 "Set the percentage of the filesystem which may only be allocated by "
17544 "privileged processes.  This is the same as the tune2fs C<-m> option."
17545 msgstr ""
17546
17547 #. type: =item
17548 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7834
17549 msgid "C<lastmounteddirectory>"
17550 msgstr ""
17551
17552 #. type: textblock
17553 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7836
17554 msgid ""
17555 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
17556 "option."
17557 msgstr ""
17558
17559 #. type: =item
17560 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7839
17561 msgid ""
17562 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
17563 "is the same as the tune2fs C<-r> option."
17564 msgstr ""
17565
17566 #. type: =item
17567 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7843
17568 msgid "C<user>"
17569 msgstr ""
17570
17571 #. type: textblock
17572 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7845
17573 msgid ""
17574 "Set the user who can use the reserved filesystem blocks.  This is the same "
17575 "as the tune2fs C<-u> option except that it can only be specified as a number."
17576 msgstr ""
17577
17578 #. type: textblock
17579 #: ../fish/guestfish-actions.pod:5112
17580 msgid ""
17581 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
17582 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
17583 msgstr ""
17584
17585 #. type: =head2
17586 #: ../fish/guestfish-actions.pod:5118
17587 msgid "tune2fs-l"
17588 msgstr ""
17589
17590 #. type: verbatim
17591 #: ../fish/guestfish-actions.pod:5120
17592 #, no-wrap
17593 msgid ""
17594 " tune2fs-l device\n"
17595 "\n"
17596 msgstr ""
17597
17598 #. type: textblock
17599 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7887
17600 msgid ""
17601 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17602 "C<device>."
17603 msgstr ""
17604
17605 #. type: textblock
17606 #: ../fish/guestfish-actions.pod:5125 ../src/guestfs-actions.pod:7890
17607 msgid ""
17608 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17609 "for more details.  The list of fields returned isn't clearly defined, and "
17610 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17611 "and the filesystem itself."
17612 msgstr ""
17613
17614 #. type: =head2
17615 #: ../fish/guestfish-actions.pod:5130
17616 msgid "txz-in"
17617 msgstr ""
17618
17619 #. type: verbatim
17620 #: ../fish/guestfish-actions.pod:5132
17621 #, no-wrap
17622 msgid ""
17623 " txz-in (tarball|-) directory\n"
17624 "\n"
17625 msgstr ""
17626
17627 #. type: textblock
17628 #: ../fish/guestfish-actions.pod:5134 ../src/guestfs-actions.pod:7910
17629 msgid ""
17630 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17631 "tar file) into C<directory>."
17632 msgstr ""
17633
17634 #. type: =head2
17635 #: ../fish/guestfish-actions.pod:5139
17636 msgid "txz-out"
17637 msgstr ""
17638
17639 #. type: verbatim
17640 #: ../fish/guestfish-actions.pod:5141
17641 #, no-wrap
17642 msgid ""
17643 " txz-out directory (tarball|-)\n"
17644 "\n"
17645 msgstr ""
17646
17647 #. type: textblock
17648 #: ../fish/guestfish-actions.pod:5143 ../src/guestfs-actions.pod:7924
17649 msgid ""
17650 "This command packs the contents of C<directory> and downloads it to local "
17651 "file C<tarball> (as an xz compressed tar archive)."
17652 msgstr ""
17653
17654 #. type: =head2
17655 #: ../fish/guestfish-actions.pod:5148
17656 msgid "umask"
17657 msgstr ""
17658
17659 #. type: verbatim
17660 #: ../fish/guestfish-actions.pod:5150
17661 #, no-wrap
17662 msgid ""
17663 " umask mask\n"
17664 "\n"
17665 msgstr ""
17666
17667 #. type: textblock
17668 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7937
17669 msgid ""
17670 "This function sets the mask used for creating new files and device nodes to "
17671 "C<mask & 0777>."
17672 msgstr ""
17673
17674 #. type: textblock
17675 #: ../fish/guestfish-actions.pod:5155 ../src/guestfs-actions.pod:7940
17676 msgid ""
17677 "Typical umask values would be C<022> which creates new files with "
17678 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17679 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17680 msgstr ""
17681
17682 #. type: textblock
17683 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7945
17684 msgid ""
17685 "The default umask is C<022>.  This is important because it means that "
17686 "directories and device nodes will be created with C<0644> or C<0755> mode "
17687 "even if you specify C<0777>."
17688 msgstr ""
17689
17690 #. type: textblock
17691 #: ../fish/guestfish-actions.pod:5164
17692 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17693 msgstr ""
17694
17695 #. type: textblock
17696 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7952
17697 msgid "This call returns the previous umask."
17698 msgstr ""
17699
17700 #. type: =head2
17701 #: ../fish/guestfish-actions.pod:5169
17702 msgid "umount"
17703 msgstr ""
17704
17705 #. type: =head2
17706 #: ../fish/guestfish-actions.pod:5171
17707 msgid "unmount"
17708 msgstr ""
17709
17710 #. type: verbatim
17711 #: ../fish/guestfish-actions.pod:5173
17712 #, no-wrap
17713 msgid ""
17714 " umount pathordevice\n"
17715 "\n"
17716 msgstr ""
17717
17718 #. type: textblock
17719 #: ../fish/guestfish-actions.pod:5175 ../src/guestfs-actions.pod:7964
17720 msgid ""
17721 "This unmounts the given filesystem.  The filesystem may be specified either "
17722 "by its mountpoint (path) or the device which contains the filesystem."
17723 msgstr ""
17724
17725 #. type: =head2
17726 #: ../fish/guestfish-actions.pod:5179
17727 msgid "umount-all"
17728 msgstr ""
17729
17730 #. type: =head2
17731 #: ../fish/guestfish-actions.pod:5181
17732 msgid "unmount-all"
17733 msgstr ""
17734
17735 #. type: verbatim
17736 #: ../fish/guestfish-actions.pod:5183
17737 #, no-wrap
17738 msgid ""
17739 " umount-all\n"
17740 "\n"
17741 msgstr ""
17742
17743 #. type: textblock
17744 #: ../fish/guestfish-actions.pod:5185 ../src/guestfs-actions.pod:7977
17745 msgid "This unmounts all mounted filesystems."
17746 msgstr ""
17747
17748 #. type: textblock
17749 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7979
17750 msgid "Some internal mounts are not unmounted by this call."
17751 msgstr ""
17752
17753 #. type: =head2
17754 #: ../fish/guestfish-actions.pod:5189
17755 msgid "upload"
17756 msgstr ""
17757
17758 #. type: verbatim
17759 #: ../fish/guestfish-actions.pod:5191
17760 #, no-wrap
17761 msgid ""
17762 " upload (filename|-) remotefilename\n"
17763 "\n"
17764 msgstr ""
17765
17766 #. type: textblock
17767 #: ../fish/guestfish-actions.pod:5193 ../fish/guestfish-actions.pod:5206
17768 #: ../src/guestfs-actions.pod:7992 ../src/guestfs-actions.pod:8016
17769 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17770 msgstr ""
17771
17772 #. type: textblock
17773 #: ../fish/guestfish-actions.pod:5198
17774 msgid "See also L</download>."
17775 msgstr ""
17776
17777 #. type: =head2
17778 #: ../fish/guestfish-actions.pod:5202
17779 msgid "upload-offset"
17780 msgstr ""
17781
17782 #. type: verbatim
17783 #: ../fish/guestfish-actions.pod:5204
17784 #, no-wrap
17785 msgid ""
17786 " upload-offset (filename|-) remotefilename offset\n"
17787 "\n"
17788 msgstr ""
17789
17790 #. type: textblock
17791 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:8019
17792 msgid ""
17793 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17794 "The intention is to overwrite parts of existing files or devices, although "
17795 "if a non-existant file is specified then it is created with a \"hole\" "
17796 "before C<offset>.  The size of the data written is implicit in the size of "
17797 "the source C<filename>."
17798 msgstr ""
17799
17800 #. type: textblock
17801 #: ../fish/guestfish-actions.pod:5216
17802 msgid ""
17803 "Note that there is no limit on the amount of data that can be uploaded with "
17804 "this call, unlike with L</pwrite>, and this call always writes the full "
17805 "amount unless an error occurs."
17806 msgstr ""
17807
17808 #. type: textblock
17809 #: ../fish/guestfish-actions.pod:5221
17810 msgid "See also L</upload>, L</pwrite>."
17811 msgstr ""
17812
17813 #. type: =head2
17814 #: ../fish/guestfish-actions.pod:5225
17815 msgid "utimens"
17816 msgstr ""
17817
17818 #. type: verbatim
17819 #: ../fish/guestfish-actions.pod:5227
17820 #, no-wrap
17821 msgid ""
17822 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17823 "\n"
17824 msgstr ""
17825
17826 #. type: textblock
17827 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8052
17828 msgid "This command sets the timestamps of a file with nanosecond precision."
17829 msgstr ""
17830
17831 #. type: textblock
17832 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8055
17833 msgid ""
17834 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17835 "from the epoch."
17836 msgstr ""
17837
17838 #. type: textblock
17839 #: ../fish/guestfish-actions.pod:5235 ../src/guestfs-actions.pod:8058
17840 msgid ""
17841 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17842 "nanoseconds from the epoch."
17843 msgstr ""
17844
17845 #. type: textblock
17846 #: ../fish/guestfish-actions.pod:5238 ../src/guestfs-actions.pod:8061
17847 msgid ""
17848 "If the C<*nsecs> field contains the special value C<-1> then the "
17849 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17850 "ignored in this case)."
17851 msgstr ""
17852
17853 #. type: textblock
17854 #: ../fish/guestfish-actions.pod:5242 ../src/guestfs-actions.pod:8065
17855 msgid ""
17856 "If the C<*nsecs> field contains the special value C<-2> then the "
17857 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17858 "in this case)."
17859 msgstr ""
17860
17861 #. type: =head2
17862 #: ../fish/guestfish-actions.pod:5246
17863 msgid "version"
17864 msgstr ""
17865
17866 #. type: verbatim
17867 #: ../fish/guestfish-actions.pod:5248
17868 #, no-wrap
17869 msgid ""
17870 " version\n"
17871 "\n"
17872 msgstr ""
17873
17874 #. type: textblock
17875 #: ../fish/guestfish-actions.pod:5250 ../src/guestfs-actions.pod:8078
17876 msgid ""
17877 "Return the libguestfs version number that the program is linked against."
17878 msgstr ""
17879
17880 #. type: textblock
17881 #: ../fish/guestfish-actions.pod:5253 ../src/guestfs-actions.pod:8081
17882 msgid ""
17883 "Note that because of dynamic linking this is not necessarily the version of "
17884 "libguestfs that you compiled against.  You can compile the program, and then "
17885 "at runtime dynamically link against a completely different C<libguestfs.so> "
17886 "library."
17887 msgstr ""
17888
17889 #. type: textblock
17890 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8086
17891 msgid ""
17892 "This call was added in version C<1.0.58>.  In previous versions of "
17893 "libguestfs there was no way to get the version number.  From C code you can "
17894 "use dynamic linker functions to find out if this symbol exists (if it "
17895 "doesn't, then it's an earlier version)."
17896 msgstr ""
17897
17898 #. type: textblock
17899 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8092
17900 msgid ""
17901 "The call returns a structure with four elements.  The first three (C<major>, "
17902 "C<minor> and C<release>) are numbers and correspond to the usual version "
17903 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17904 "but may be used for distro-specific information."
17905 msgstr ""
17906
17907 #. type: textblock
17908 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8098
17909 msgid ""
17910 "To construct the original version string: C<$major.$minor.$release$extra>"
17911 msgstr ""
17912
17913 #. type: textblock
17914 #: ../fish/guestfish-actions.pod:5273 ../src/guestfs-actions.pod:8101
17915 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17916 msgstr ""
17917
17918 #. type: textblock
17919 #: ../fish/guestfish-actions.pod:5275
17920 msgid ""
17921 "I<Note:> Don't use this call to test for availability of features.  In "
17922 "enterprise distributions we backport features from later versions into "
17923 "earlier versions, making this an unreliable way to test for features.  Use "
17924 "L</available> instead."
17925 msgstr ""
17926
17927 #. type: =head2
17928 #: ../fish/guestfish-actions.pod:5281
17929 msgid "vfs-label"
17930 msgstr ""
17931
17932 #. type: verbatim
17933 #: ../fish/guestfish-actions.pod:5283
17934 #, no-wrap
17935 msgid ""
17936 " vfs-label device\n"
17937 "\n"
17938 msgstr ""
17939
17940 #. type: textblock
17941 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8121
17942 msgid "This returns the filesystem label of the filesystem on C<device>."
17943 msgstr ""
17944
17945 #. type: textblock
17946 #: ../fish/guestfish-actions.pod:5288 ../src/guestfs-actions.pod:8124
17947 msgid "If the filesystem is unlabeled, this returns the empty string."
17948 msgstr ""
17949
17950 #. type: textblock
17951 #: ../fish/guestfish-actions.pod:5290
17952 msgid "To find a filesystem from the label, use L</findfs-label>."
17953 msgstr ""
17954
17955 #. type: =head2
17956 #: ../fish/guestfish-actions.pod:5292
17957 msgid "vfs-type"
17958 msgstr ""
17959
17960 #. type: verbatim
17961 #: ../fish/guestfish-actions.pod:5294
17962 #, no-wrap
17963 msgid ""
17964 " vfs-type device\n"
17965 "\n"
17966 msgstr ""
17967
17968 #. type: textblock
17969 #: ../fish/guestfish-actions.pod:5296 ../src/guestfs-actions.pod:8139
17970 msgid ""
17971 "This command gets the filesystem type corresponding to the filesystem on "
17972 "C<device>."
17973 msgstr ""
17974
17975 #. type: textblock
17976 #: ../fish/guestfish-actions.pod:5299 ../src/guestfs-actions.pod:8142
17977 msgid ""
17978 "For most filesystems, the result is the name of the Linux VFS module which "
17979 "would be used to mount this filesystem if you mounted it without specifying "
17980 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17981 msgstr ""
17982
17983 #. type: =head2
17984 #: ../fish/guestfish-actions.pod:5304
17985 msgid "vfs-uuid"
17986 msgstr ""
17987
17988 #. type: verbatim
17989 #: ../fish/guestfish-actions.pod:5306
17990 #, no-wrap
17991 msgid ""
17992 " vfs-uuid device\n"
17993 "\n"
17994 msgstr ""
17995
17996 #. type: textblock
17997 #: ../fish/guestfish-actions.pod:5308 ../src/guestfs-actions.pod:8158
17998 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17999 msgstr ""
18000
18001 #. type: textblock
18002 #: ../fish/guestfish-actions.pod:5311 ../src/guestfs-actions.pod:8161
18003 msgid "If the filesystem does not have a UUID, this returns the empty string."
18004 msgstr ""
18005
18006 #. type: textblock
18007 #: ../fish/guestfish-actions.pod:5313
18008 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
18009 msgstr ""
18010
18011 #. type: =head2
18012 #: ../fish/guestfish-actions.pod:5315
18013 msgid "vg-activate"
18014 msgstr ""
18015
18016 #. type: verbatim
18017 #: ../fish/guestfish-actions.pod:5317
18018 #, no-wrap
18019 msgid ""
18020 " vg-activate true|false 'volgroups ...'\n"
18021 "\n"
18022 msgstr ""
18023
18024 #. type: textblock
18025 #: ../fish/guestfish-actions.pod:5319 ../src/guestfs-actions.pod:8177
18026 msgid ""
18027 "This command activates or (if C<activate> is false) deactivates all logical "
18028 "volumes in the listed volume groups C<volgroups>."
18029 msgstr ""
18030
18031 #. type: textblock
18032 #: ../fish/guestfish-actions.pod:5322 ../src/guestfs-actions.pod:8180
18033 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18034 msgstr ""
18035
18036 #. type: textblock
18037 #: ../fish/guestfish-actions.pod:5324 ../src/guestfs-actions.pod:8182
18038 msgid ""
18039 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18040 "activated or deactivated."
18041 msgstr ""
18042
18043 #. type: =head2
18044 #: ../fish/guestfish-actions.pod:5327
18045 msgid "vg-activate-all"
18046 msgstr ""
18047
18048 #. type: verbatim
18049 #: ../fish/guestfish-actions.pod:5329
18050 #, no-wrap
18051 msgid ""
18052 " vg-activate-all true|false\n"
18053 "\n"
18054 msgstr ""
18055
18056 #. type: textblock
18057 #: ../fish/guestfish-actions.pod:5331 ../src/guestfs-actions.pod:8195
18058 msgid ""
18059 "This command activates or (if C<activate> is false) deactivates all logical "
18060 "volumes in all volume groups."
18061 msgstr ""
18062
18063 #. type: textblock
18064 #: ../fish/guestfish-actions.pod:5334 ../src/guestfs-actions.pod:8198
18065 msgid "This command is the same as running C<vgchange -a y|n>"
18066 msgstr ""
18067
18068 #. type: =head2
18069 #: ../fish/guestfish-actions.pod:5336
18070 msgid "vgcreate"
18071 msgstr ""
18072
18073 #. type: verbatim
18074 #: ../fish/guestfish-actions.pod:5338
18075 #, no-wrap
18076 msgid ""
18077 " vgcreate volgroup 'physvols ...'\n"
18078 "\n"
18079 msgstr ""
18080
18081 #. type: textblock
18082 #: ../fish/guestfish-actions.pod:5340 ../src/guestfs-actions.pod:8211
18083 msgid ""
18084 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18085 "of physical volumes C<physvols>."
18086 msgstr ""
18087
18088 #. type: =head2
18089 #: ../fish/guestfish-actions.pod:5343
18090 msgid "vglvuuids"
18091 msgstr ""
18092
18093 #. type: verbatim
18094 #: ../fish/guestfish-actions.pod:5345
18095 #, no-wrap
18096 msgid ""
18097 " vglvuuids vgname\n"
18098 "\n"
18099 msgstr ""
18100
18101 #. type: textblock
18102 #: ../fish/guestfish-actions.pod:5347 ../src/guestfs-actions.pod:8224
18103 msgid ""
18104 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18105 "volumes created in this volume group."
18106 msgstr ""
18107
18108 #. type: textblock
18109 #: ../fish/guestfish-actions.pod:5350
18110 msgid ""
18111 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
18112 "logical volumes and volume groups."
18113 msgstr ""
18114
18115 #. type: textblock
18116 #: ../fish/guestfish-actions.pod:5353
18117 msgid "See also L</vgpvuuids>."
18118 msgstr ""
18119
18120 #. type: =head2
18121 #: ../fish/guestfish-actions.pod:5355
18122 msgid "vgpvuuids"
18123 msgstr ""
18124
18125 #. type: verbatim
18126 #: ../fish/guestfish-actions.pod:5357
18127 #, no-wrap
18128 msgid ""
18129 " vgpvuuids vgname\n"
18130 "\n"
18131 msgstr ""
18132
18133 #. type: textblock
18134 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8244
18135 msgid ""
18136 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18137 "volumes that this volume group resides on."
18138 msgstr ""
18139
18140 #. type: textblock
18141 #: ../fish/guestfish-actions.pod:5362
18142 msgid ""
18143 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
18144 "physical volumes and volume groups."
18145 msgstr ""
18146
18147 #. type: textblock
18148 #: ../fish/guestfish-actions.pod:5365
18149 msgid "See also L</vglvuuids>."
18150 msgstr ""
18151
18152 #. type: =head2
18153 #: ../fish/guestfish-actions.pod:5367
18154 msgid "vgremove"
18155 msgstr ""
18156
18157 #. type: verbatim
18158 #: ../fish/guestfish-actions.pod:5369
18159 #, no-wrap
18160 msgid ""
18161 " vgremove vgname\n"
18162 "\n"
18163 msgstr ""
18164
18165 #. type: textblock
18166 #: ../fish/guestfish-actions.pod:5371 ../src/guestfs-actions.pod:8264
18167 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18168 msgstr ""
18169
18170 #. type: textblock
18171 #: ../fish/guestfish-actions.pod:5373 ../src/guestfs-actions.pod:8266
18172 msgid ""
18173 "This also forcibly removes all logical volumes in the volume group (if any)."
18174 msgstr ""
18175
18176 #. type: =head2
18177 #: ../fish/guestfish-actions.pod:5376
18178 msgid "vgrename"
18179 msgstr ""
18180
18181 #. type: verbatim
18182 #: ../fish/guestfish-actions.pod:5378
18183 #, no-wrap
18184 msgid ""
18185 " vgrename volgroup newvolgroup\n"
18186 "\n"
18187 msgstr ""
18188
18189 #. type: textblock
18190 #: ../fish/guestfish-actions.pod:5380 ../src/guestfs-actions.pod:8280
18191 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18192 msgstr ""
18193
18194 #. type: =head2
18195 #: ../fish/guestfish-actions.pod:5382
18196 msgid "vgs"
18197 msgstr ""
18198
18199 #. type: verbatim
18200 #: ../fish/guestfish-actions.pod:5384
18201 #, no-wrap
18202 msgid ""
18203 " vgs\n"
18204 "\n"
18205 msgstr ""
18206
18207 #. type: textblock
18208 #: ../fish/guestfish-actions.pod:5386 ../src/guestfs-actions.pod:8291
18209 msgid ""
18210 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18211 "> command."
18212 msgstr ""
18213
18214 #. type: textblock
18215 #: ../fish/guestfish-actions.pod:5389 ../src/guestfs-actions.pod:8294
18216 msgid ""
18217 "This returns a list of just the volume group names that were detected (eg. "
18218 "C<VolGroup00>)."
18219 msgstr ""
18220
18221 #. type: textblock
18222 #: ../fish/guestfish-actions.pod:5392
18223 msgid "See also L</vgs-full>."
18224 msgstr ""
18225
18226 #. type: =head2
18227 #: ../fish/guestfish-actions.pod:5394
18228 msgid "vgs-full"
18229 msgstr ""
18230
18231 #. type: verbatim
18232 #: ../fish/guestfish-actions.pod:5396
18233 #, no-wrap
18234 msgid ""
18235 " vgs-full\n"
18236 "\n"
18237 msgstr ""
18238
18239 #. type: textblock
18240 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8310
18241 msgid ""
18242 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18243 "> command.  The \"full\" version includes all fields."
18244 msgstr ""
18245
18246 #. type: =head2
18247 #: ../fish/guestfish-actions.pod:5401
18248 msgid "vgscan"
18249 msgstr ""
18250
18251 #. type: verbatim
18252 #: ../fish/guestfish-actions.pod:5403
18253 #, no-wrap
18254 msgid ""
18255 " vgscan\n"
18256 "\n"
18257 msgstr ""
18258
18259 #. type: textblock
18260 #: ../fish/guestfish-actions.pod:5405 ../src/guestfs-actions.pod:8324
18261 msgid ""
18262 "This rescans all block devices and rebuilds the list of LVM physical "
18263 "volumes, volume groups and logical volumes."
18264 msgstr ""
18265
18266 #. type: =head2
18267 #: ../fish/guestfish-actions.pod:5408
18268 msgid "vguuid"
18269 msgstr ""
18270
18271 #. type: verbatim
18272 #: ../fish/guestfish-actions.pod:5410
18273 #, no-wrap
18274 msgid ""
18275 " vguuid vgname\n"
18276 "\n"
18277 msgstr ""
18278
18279 #. type: textblock
18280 #: ../fish/guestfish-actions.pod:5412 ../src/guestfs-actions.pod:8337
18281 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18282 msgstr ""
18283
18284 #. type: =head2
18285 #: ../fish/guestfish-actions.pod:5414
18286 msgid "wc-c"
18287 msgstr ""
18288
18289 #. type: verbatim
18290 #: ../fish/guestfish-actions.pod:5416
18291 #, no-wrap
18292 msgid ""
18293 " wc-c path\n"
18294 "\n"
18295 msgstr ""
18296
18297 #. type: textblock
18298 #: ../fish/guestfish-actions.pod:5418 ../src/guestfs-actions.pod:8377
18299 msgid ""
18300 "This command counts the characters in a file, using the C<wc -c> external "
18301 "command."
18302 msgstr ""
18303
18304 #. type: =head2
18305 #: ../fish/guestfish-actions.pod:5421
18306 msgid "wc-l"
18307 msgstr ""
18308
18309 #. type: verbatim
18310 #: ../fish/guestfish-actions.pod:5423
18311 #, no-wrap
18312 msgid ""
18313 " wc-l path\n"
18314 "\n"
18315 msgstr ""
18316
18317 #. type: textblock
18318 #: ../fish/guestfish-actions.pod:5425 ../src/guestfs-actions.pod:8390
18319 msgid ""
18320 "This command counts the lines in a file, using the C<wc -l> external command."
18321 msgstr ""
18322
18323 #. type: =head2
18324 #: ../fish/guestfish-actions.pod:5428
18325 msgid "wc-w"
18326 msgstr ""
18327
18328 #. type: verbatim
18329 #: ../fish/guestfish-actions.pod:5430
18330 #, no-wrap
18331 msgid ""
18332 " wc-w path\n"
18333 "\n"
18334 msgstr ""
18335
18336 #. type: textblock
18337 #: ../fish/guestfish-actions.pod:5432 ../src/guestfs-actions.pod:8403
18338 msgid ""
18339 "This command counts the words in a file, using the C<wc -w> external command."
18340 msgstr ""
18341
18342 #. type: =head2
18343 #: ../fish/guestfish-actions.pod:5435
18344 msgid "write"
18345 msgstr ""
18346
18347 #. type: verbatim
18348 #: ../fish/guestfish-actions.pod:5437
18349 #, no-wrap
18350 msgid ""
18351 " write path content\n"
18352 "\n"
18353 msgstr ""
18354
18355 #. type: textblock
18356 #: ../fish/guestfish-actions.pod:5439 ../src/guestfs-actions.pod:8418
18357 msgid ""
18358 "This call creates a file called C<path>.  The content of the file is the "
18359 "string C<content> (which can contain any 8 bit data)."
18360 msgstr ""
18361
18362 #. type: textblock
18363 #: ../fish/guestfish-actions.pod:5442
18364 msgid "See also L</write-append>."
18365 msgstr ""
18366
18367 #. type: =head2
18368 #: ../fish/guestfish-actions.pod:5447
18369 msgid "write-append"
18370 msgstr ""
18371
18372 #. type: verbatim
18373 #: ../fish/guestfish-actions.pod:5449
18374 #, no-wrap
18375 msgid ""
18376 " write-append path content\n"
18377 "\n"
18378 msgstr ""
18379
18380 #. type: textblock
18381 #: ../fish/guestfish-actions.pod:5451 ../src/guestfs-actions.pod:8438
18382 msgid ""
18383 "This call appends C<content> to the end of file C<path>.  If C<path> does "
18384 "not exist, then a new file is created."
18385 msgstr ""
18386
18387 #. type: textblock
18388 #: ../fish/guestfish-actions.pod:5454
18389 msgid "See also L</write>."
18390 msgstr ""
18391
18392 #. type: =head2
18393 #: ../fish/guestfish-actions.pod:5459
18394 msgid "write-file"
18395 msgstr ""
18396
18397 #. type: verbatim
18398 #: ../fish/guestfish-actions.pod:5461
18399 #, no-wrap
18400 msgid ""
18401 " write-file path content size\n"
18402 "\n"
18403 msgstr ""
18404
18405 #. type: textblock
18406 #: ../fish/guestfish-actions.pod:5463 ../src/guestfs-actions.pod:8465
18407 msgid ""
18408 "This call creates a file called C<path>.  The contents of the file is the "
18409 "string C<content> (which can contain any 8 bit data), with length C<size>."
18410 msgstr ""
18411
18412 #. type: textblock
18413 #: ../fish/guestfish-actions.pod:5467 ../src/guestfs-actions.pod:8469
18414 msgid ""
18415 "As a special case, if C<size> is C<0> then the length is calculated using "
18416 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18417 msgstr ""
18418
18419 #. type: textblock
18420 #: ../fish/guestfish-actions.pod:5471 ../src/guestfs-actions.pod:8473
18421 msgid ""
18422 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18423 "I<not> work, even if the length is specified."
18424 msgstr ""
18425
18426 #. type: textblock
18427 #: ../fish/guestfish-actions.pod:5477
18428 msgid ""
18429 "I<This function is deprecated.> In new code, use the L</write> call instead."
18430 msgstr ""
18431
18432 #. type: =head2
18433 #: ../fish/guestfish-actions.pod:5484
18434 msgid "zegrep"
18435 msgstr ""
18436
18437 #. type: verbatim
18438 #: ../fish/guestfish-actions.pod:5486
18439 #, no-wrap
18440 msgid ""
18441 " zegrep regex path\n"
18442 "\n"
18443 msgstr ""
18444
18445 #. type: textblock
18446 #: ../fish/guestfish-actions.pod:5488 ../src/guestfs-actions.pod:8490
18447 msgid ""
18448 "This calls the external C<zegrep> program and returns the matching lines."
18449 msgstr ""
18450
18451 #. type: =head2
18452 #: ../fish/guestfish-actions.pod:5494
18453 msgid "zegrepi"
18454 msgstr ""
18455
18456 #. type: verbatim
18457 #: ../fish/guestfish-actions.pod:5496
18458 #, no-wrap
18459 msgid ""
18460 " zegrepi regex path\n"
18461 "\n"
18462 msgstr ""
18463
18464 #. type: textblock
18465 #: ../fish/guestfish-actions.pod:5498 ../src/guestfs-actions.pod:8509
18466 msgid ""
18467 "This calls the external C<zegrep -i> program and returns the matching lines."
18468 msgstr ""
18469
18470 #. type: =head2
18471 #: ../fish/guestfish-actions.pod:5504
18472 msgid "zero"
18473 msgstr ""
18474
18475 #. type: verbatim
18476 #: ../fish/guestfish-actions.pod:5506
18477 #, no-wrap
18478 msgid ""
18479 " zero device\n"
18480 "\n"
18481 msgstr ""
18482
18483 #. type: textblock
18484 #: ../fish/guestfish-actions.pod:5508 ../src/guestfs-actions.pod:8527
18485 msgid "This command writes zeroes over the first few blocks of C<device>."
18486 msgstr ""
18487
18488 #. type: textblock
18489 #: ../fish/guestfish-actions.pod:5510 ../src/guestfs-actions.pod:8529
18490 msgid ""
18491 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18492 "securely wipe the device).  It should be sufficient to remove any partition "
18493 "tables, filesystem superblocks and so on."
18494 msgstr ""
18495
18496 #. type: textblock
18497 #: ../fish/guestfish-actions.pod:5514 ../fish/guestfish-actions.pod:5529
18498 #: ../src/guestfs-actions.pod:8533 ../src/guestfs-actions.pod:8559
18499 msgid ""
18500 "If blocks are already zero, then this command avoids writing zeroes.  This "
18501 "prevents the underlying device from becoming non-sparse or growing "
18502 "unnecessarily."
18503 msgstr ""
18504
18505 #. type: textblock
18506 #: ../fish/guestfish-actions.pod:5518
18507 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
18508 msgstr ""
18509
18510 #. type: =head2
18511 #: ../fish/guestfish-actions.pod:5521
18512 msgid "zero-device"
18513 msgstr ""
18514
18515 #. type: verbatim
18516 #: ../fish/guestfish-actions.pod:5523
18517 #, no-wrap
18518 msgid ""
18519 " zero-device device\n"
18520 "\n"
18521 msgstr ""
18522
18523 #. type: textblock
18524 #: ../fish/guestfish-actions.pod:5525
18525 msgid ""
18526 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
18527 "which just zeroes the first few blocks of a device."
18528 msgstr ""
18529
18530 #. type: =head2
18531 #: ../fish/guestfish-actions.pod:5533
18532 msgid "zerofree"
18533 msgstr ""
18534
18535 #. type: verbatim
18536 #: ../fish/guestfish-actions.pod:5535
18537 #, no-wrap
18538 msgid ""
18539 " zerofree device\n"
18540 "\n"
18541 msgstr ""
18542
18543 #. type: textblock
18544 #: ../fish/guestfish-actions.pod:5537 ../src/guestfs-actions.pod:8578
18545 msgid ""
18546 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18547 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18548 "possible to compress the filesystem more effectively."
18549 msgstr ""
18550
18551 #. type: textblock
18552 #: ../fish/guestfish-actions.pod:5542 ../src/guestfs-actions.pod:8583
18553 msgid "You should B<not> run this program if the filesystem is mounted."
18554 msgstr ""
18555
18556 #. type: textblock
18557 #: ../fish/guestfish-actions.pod:5545 ../src/guestfs-actions.pod:8586
18558 msgid ""
18559 "It is possible that using this program can damage the filesystem or data on "
18560 "the filesystem."
18561 msgstr ""
18562
18563 #. type: =head2
18564 #: ../fish/guestfish-actions.pod:5548
18565 msgid "zfgrep"
18566 msgstr ""
18567
18568 #. type: verbatim
18569 #: ../fish/guestfish-actions.pod:5550
18570 #, no-wrap
18571 msgid ""
18572 " zfgrep pattern path\n"
18573 "\n"
18574 msgstr ""
18575
18576 #. type: textblock
18577 #: ../fish/guestfish-actions.pod:5552 ../src/guestfs-actions.pod:8600
18578 msgid ""
18579 "This calls the external C<zfgrep> program and returns the matching lines."
18580 msgstr ""
18581
18582 #. type: =head2
18583 #: ../fish/guestfish-actions.pod:5558
18584 msgid "zfgrepi"
18585 msgstr ""
18586
18587 #. type: verbatim
18588 #: ../fish/guestfish-actions.pod:5560
18589 #, no-wrap
18590 msgid ""
18591 " zfgrepi pattern path\n"
18592 "\n"
18593 msgstr ""
18594
18595 #. type: textblock
18596 #: ../fish/guestfish-actions.pod:5562 ../src/guestfs-actions.pod:8619
18597 msgid ""
18598 "This calls the external C<zfgrep -i> program and returns the matching lines."
18599 msgstr ""
18600
18601 #. type: =head2
18602 #: ../fish/guestfish-actions.pod:5568
18603 msgid "zfile"
18604 msgstr ""
18605
18606 #. type: verbatim
18607 #: ../fish/guestfish-actions.pod:5570
18608 #, no-wrap
18609 msgid ""
18610 " zfile meth path\n"
18611 "\n"
18612 msgstr ""
18613
18614 #. type: textblock
18615 #: ../fish/guestfish-actions.pod:5572 ../src/guestfs-actions.pod:8645
18616 msgid ""
18617 "This command runs C<file> after first decompressing C<path> using C<method>."
18618 msgstr ""
18619
18620 #. type: textblock
18621 #: ../fish/guestfish-actions.pod:5575 ../src/guestfs-actions.pod:8648
18622 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18623 msgstr ""
18624
18625 #. type: textblock
18626 #: ../fish/guestfish-actions.pod:5577
18627 msgid ""
18628 "Since 1.0.63, use L</file> instead which can now process compressed files."
18629 msgstr ""
18630
18631 #. type: textblock
18632 #: ../fish/guestfish-actions.pod:5580
18633 msgid ""
18634 "I<This function is deprecated.> In new code, use the L</file> call instead."
18635 msgstr ""
18636
18637 #. type: =head2
18638 #: ../fish/guestfish-actions.pod:5587
18639 msgid "zgrep"
18640 msgstr ""
18641
18642 #. type: verbatim
18643 #: ../fish/guestfish-actions.pod:5589
18644 #, no-wrap
18645 msgid ""
18646 " zgrep regex path\n"
18647 "\n"
18648 msgstr ""
18649
18650 #. type: textblock
18651 #: ../fish/guestfish-actions.pod:5591 ../src/guestfs-actions.pod:8665
18652 msgid ""
18653 "This calls the external C<zgrep> program and returns the matching lines."
18654 msgstr ""
18655
18656 #. type: =head2
18657 #: ../fish/guestfish-actions.pod:5597
18658 msgid "zgrepi"
18659 msgstr ""
18660
18661 #. type: verbatim
18662 #: ../fish/guestfish-actions.pod:5599
18663 #, no-wrap
18664 msgid ""
18665 " zgrepi regex path\n"
18666 "\n"
18667 msgstr ""
18668
18669 #. type: textblock
18670 #: ../fish/guestfish-actions.pod:5601 ../src/guestfs-actions.pod:8684
18671 msgid ""
18672 "This calls the external C<zgrep -i> program and returns the matching lines."
18673 msgstr ""
18674
18675 #. type: =head2
18676 #: ../fish/guestfish-commands.pod:1
18677 msgid "alloc"
18678 msgstr ""
18679
18680 #. type: =head2
18681 #: ../fish/guestfish-commands.pod:3
18682 msgid "allocate"
18683 msgstr ""
18684
18685 #. type: verbatim
18686 #: ../fish/guestfish-commands.pod:5
18687 #, no-wrap
18688 msgid ""
18689 " alloc filename size\n"
18690 "\n"
18691 msgstr ""
18692
18693 #. type: textblock
18694 #: ../fish/guestfish-commands.pod:7
18695 msgid ""
18696 "This creates an empty (zeroed) file of the given size, and then adds so it "
18697 "can be further examined."
18698 msgstr ""
18699
18700 #. type: textblock
18701 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18702 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18703 msgstr ""
18704
18705 #. type: textblock
18706 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18707 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18708 msgstr ""
18709
18710 #. type: textblock
18711 #: ../fish/guestfish-commands.pod:14
18712 msgid ""
18713 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18714 "image, see L</PREPARED DISK IMAGES>."
18715 msgstr ""
18716
18717 #. type: =head2
18718 #: ../fish/guestfish-commands.pod:17
18719 msgid "copy-in"
18720 msgstr ""
18721
18722 #. type: verbatim
18723 #: ../fish/guestfish-commands.pod:19
18724 #, no-wrap
18725 msgid ""
18726 " copy-in local [local ...] /remotedir\n"
18727 "\n"
18728 msgstr ""
18729
18730 #. type: textblock
18731 #: ../fish/guestfish-commands.pod:21
18732 msgid ""
18733 "C<copy-in> copies local files or directories recursively into the disk "
18734 "image, placing them in the directory called C</remotedir> (which must "
18735 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18736 "other commands as necessary."
18737 msgstr ""
18738
18739 #. type: textblock
18740 #: ../fish/guestfish-commands.pod:26
18741 msgid ""
18742 "Multiple local files and directories can be specified, but the last "
18743 "parameter must always be a remote directory.  Wildcards cannot be used."
18744 msgstr ""
18745
18746 #. type: =head2
18747 #: ../fish/guestfish-commands.pod:30
18748 msgid "copy-out"
18749 msgstr ""
18750
18751 #. type: verbatim
18752 #: ../fish/guestfish-commands.pod:32
18753 #, no-wrap
18754 msgid ""
18755 " copy-out remote [remote ...] localdir\n"
18756 "\n"
18757 msgstr ""
18758
18759 #. type: textblock
18760 #: ../fish/guestfish-commands.pod:34
18761 msgid ""
18762 "C<copy-out> copies remote files or directories recursively out of the disk "
18763 "image, placing them on the host disk in a local directory called C<localdir> "
18764 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
18765 "download>, L</tar-out> and other commands as necessary."
18766 msgstr ""
18767
18768 #. type: textblock
18769 #: ../fish/guestfish-commands.pod:40
18770 msgid ""
18771 "Multiple remote files and directories can be specified, but the last "
18772 "parameter must always be a local directory.  To download to the current "
18773 "directory, use C<.> as in:"
18774 msgstr ""
18775
18776 #. type: verbatim
18777 #: ../fish/guestfish-commands.pod:44
18778 #, no-wrap
18779 msgid ""
18780 " copy-out /home .\n"
18781 "\n"
18782 msgstr ""
18783
18784 #. type: textblock
18785 #: ../fish/guestfish-commands.pod:46
18786 msgid ""
18787 "Wildcards cannot be used in the ordinary command, but you can use them with "
18788 "the help of L</glob> like this:"
18789 msgstr ""
18790
18791 #. type: verbatim
18792 #: ../fish/guestfish-commands.pod:49
18793 #, no-wrap
18794 msgid ""
18795 " glob copy-out /home/* .\n"
18796 "\n"
18797 msgstr ""
18798
18799 #. type: =head2
18800 #: ../fish/guestfish-commands.pod:51
18801 msgid "display"
18802 msgstr ""
18803
18804 #. type: verbatim
18805 #: ../fish/guestfish-commands.pod:53
18806 #, no-wrap
18807 msgid ""
18808 " display filename\n"
18809 "\n"
18810 msgstr ""
18811
18812 #. type: textblock
18813 #: ../fish/guestfish-commands.pod:55
18814 msgid ""
18815 "Use C<display> (a graphical display program) to display an image file.  It "
18816 "downloads the file, and runs C<display> on it."
18817 msgstr ""
18818
18819 #. type: textblock
18820 #: ../fish/guestfish-commands.pod:58
18821 msgid ""
18822 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18823 "environment variable.  For example to use the GNOME display program:"
18824 msgstr ""
18825
18826 #. type: verbatim
18827 #: ../fish/guestfish-commands.pod:61
18828 #, no-wrap
18829 msgid ""
18830 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18831 "\n"
18832 msgstr ""
18833
18834 #. type: textblock
18835 #: ../fish/guestfish-commands.pod:63
18836 msgid "See also L<display(1)>."
18837 msgstr ""
18838
18839 #. type: =head2
18840 #: ../fish/guestfish-commands.pod:65
18841 msgid "echo"
18842 msgstr ""
18843
18844 #. type: verbatim
18845 #: ../fish/guestfish-commands.pod:67
18846 #, no-wrap
18847 msgid ""
18848 " echo [params ...]\n"
18849 "\n"
18850 msgstr ""
18851
18852 #. type: textblock
18853 #: ../fish/guestfish-commands.pod:69
18854 msgid "This echos the parameters to the terminal."
18855 msgstr ""
18856
18857 #. type: =head2
18858 #: ../fish/guestfish-commands.pod:71
18859 msgid "edit"
18860 msgstr ""
18861
18862 #. type: =head2
18863 #: ../fish/guestfish-commands.pod:73
18864 msgid "vi"
18865 msgstr ""
18866
18867 #. type: =head2
18868 #: ../fish/guestfish-commands.pod:75
18869 msgid "emacs"
18870 msgstr ""
18871
18872 #. type: verbatim
18873 #: ../fish/guestfish-commands.pod:77
18874 #, no-wrap
18875 msgid ""
18876 " edit filename\n"
18877 "\n"
18878 msgstr ""
18879
18880 #. type: textblock
18881 #: ../fish/guestfish-commands.pod:79
18882 msgid ""
18883 "This is used to edit a file.  It downloads the file, edits it locally using "
18884 "your editor, then uploads the result."
18885 msgstr ""
18886
18887 #. type: textblock
18888 #: ../fish/guestfish-commands.pod:82
18889 msgid ""
18890 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18891 "or C<emacs> you will get those corresponding editors."
18892 msgstr ""
18893
18894 #. type: =head2
18895 #: ../fish/guestfish-commands.pod:86
18896 msgid "glob"
18897 msgstr ""
18898
18899 #. type: verbatim
18900 #: ../fish/guestfish-commands.pod:88
18901 #, no-wrap
18902 msgid ""
18903 " glob command args...\n"
18904 "\n"
18905 msgstr ""
18906
18907 #. type: textblock
18908 #: ../fish/guestfish-commands.pod:90
18909 msgid ""
18910 "Expand wildcards in any paths in the args list, and run C<command> "
18911 "repeatedly on each matching path."
18912 msgstr ""
18913
18914 #. type: textblock
18915 #: ../fish/guestfish-commands.pod:93
18916 msgid "See L</WILDCARDS AND GLOBBING>."
18917 msgstr ""
18918
18919 #. type: =head2
18920 #: ../fish/guestfish-commands.pod:95
18921 msgid "hexedit"
18922 msgstr ""
18923
18924 #. type: verbatim
18925 #: ../fish/guestfish-commands.pod:97
18926 #, no-wrap
18927 msgid ""
18928 " hexedit <filename|device>\n"
18929 " hexedit <filename|device> <max>\n"
18930 " hexedit <filename|device> <start> <max>\n"
18931 "\n"
18932 msgstr ""
18933
18934 #. type: textblock
18935 #: ../fish/guestfish-commands.pod:101
18936 msgid ""
18937 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18938 "device."
18939 msgstr ""
18940
18941 #. type: textblock
18942 #: ../fish/guestfish-commands.pod:104
18943 msgid ""
18944 "This command works by downloading potentially the whole file or device, "
18945 "editing it locally, then uploading it.  If the file or device is large, you "
18946 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18947 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18948 "usual modifiers allowed such as C<1M> (1 megabyte)."
18949 msgstr ""
18950
18951 #. type: textblock
18952 #: ../fish/guestfish-commands.pod:111
18953 msgid "For example to edit the first few sectors of a disk you might do:"
18954 msgstr ""
18955
18956 #. type: verbatim
18957 #: ../fish/guestfish-commands.pod:114
18958 #, no-wrap
18959 msgid ""
18960 " hexedit /dev/sda 1M\n"
18961 "\n"
18962 msgstr ""
18963
18964 #. type: textblock
18965 #: ../fish/guestfish-commands.pod:116
18966 msgid ""
18967 "which would allow you to edit anywhere within the first megabyte of the disk."
18968 msgstr ""
18969
18970 #. type: textblock
18971 #: ../fish/guestfish-commands.pod:119
18972 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18973 msgstr ""
18974
18975 #. type: verbatim
18976 #: ../fish/guestfish-commands.pod:121
18977 #, no-wrap
18978 msgid ""
18979 " hexedit /dev/sda1 0x400 0x400\n"
18980 "\n"
18981 msgstr ""
18982
18983 #. type: textblock
18984 #: ../fish/guestfish-commands.pod:123
18985 msgid "(assuming the superblock is in the standard location)."
18986 msgstr ""
18987
18988 #. type: textblock
18989 #: ../fish/guestfish-commands.pod:125
18990 msgid ""
18991 "This command requires the external L<hexedit(1)> program.  You can specify "
18992 "another program to use by setting the C<HEXEDITOR> environment variable."
18993 msgstr ""
18994
18995 #. type: textblock
18996 #: ../fish/guestfish-commands.pod:129
18997 msgid "See also L</hexdump>."
18998 msgstr ""
18999
19000 #. type: =head2
19001 #: ../fish/guestfish-commands.pod:131
19002 msgid "lcd"
19003 msgstr ""
19004
19005 #. type: verbatim
19006 #: ../fish/guestfish-commands.pod:133
19007 #, no-wrap
19008 msgid ""
19009 " lcd directory\n"
19010 "\n"
19011 msgstr ""
19012
19013 #. type: textblock
19014 #: ../fish/guestfish-commands.pod:135
19015 msgid ""
19016 "Change the local directory, ie. the current directory of guestfish itself."
19017 msgstr ""
19018
19019 #. type: textblock
19020 #: ../fish/guestfish-commands.pod:138
19021 msgid "Note that C<!cd> won't do what you might expect."
19022 msgstr ""
19023
19024 #. type: =head2
19025 #: ../fish/guestfish-commands.pod:140
19026 msgid "man"
19027 msgstr ""
19028
19029 #. type: =head2
19030 #: ../fish/guestfish-commands.pod:142
19031 msgid "manual"
19032 msgstr ""
19033
19034 #. type: verbatim
19035 #: ../fish/guestfish-commands.pod:144
19036 #, no-wrap
19037 msgid ""
19038 "  man\n"
19039 "\n"
19040 msgstr ""
19041
19042 #. type: textblock
19043 #: ../fish/guestfish-commands.pod:146
19044 msgid "Opens the manual page for guestfish."
19045 msgstr ""
19046
19047 #. type: =head2
19048 #: ../fish/guestfish-commands.pod:148
19049 msgid "more"
19050 msgstr ""
19051
19052 #. type: =head2
19053 #: ../fish/guestfish-commands.pod:150
19054 msgid "less"
19055 msgstr ""
19056
19057 #. type: verbatim
19058 #: ../fish/guestfish-commands.pod:152
19059 #, no-wrap
19060 msgid ""
19061 " more filename\n"
19062 "\n"
19063 msgstr ""
19064
19065 #. type: verbatim
19066 #: ../fish/guestfish-commands.pod:154
19067 #, no-wrap
19068 msgid ""
19069 " less filename\n"
19070 "\n"
19071 msgstr ""
19072
19073 #. type: textblock
19074 #: ../fish/guestfish-commands.pod:156
19075 msgid "This is used to view a file."
19076 msgstr ""
19077
19078 #. type: textblock
19079 #: ../fish/guestfish-commands.pod:158
19080 msgid ""
19081 "The default viewer is C<$PAGER>.  However if you use the alternate command "
19082 "C<less> you will get the C<less> command specifically."
19083 msgstr ""
19084
19085 #. type: =head2
19086 #: ../fish/guestfish-commands.pod:161
19087 msgid "reopen"
19088 msgstr ""
19089
19090 #. type: verbatim
19091 #: ../fish/guestfish-commands.pod:163
19092 #, no-wrap
19093 msgid ""
19094 "  reopen\n"
19095 "\n"
19096 msgstr ""
19097
19098 #. type: textblock
19099 #: ../fish/guestfish-commands.pod:165
19100 msgid ""
19101 "Close and reopen the libguestfs handle.  It is not necessary to use this "
19102 "normally, because the handle is closed properly when guestfish exits.  "
19103 "However this is occasionally useful for testing."
19104 msgstr ""
19105
19106 #. type: =head2
19107 #: ../fish/guestfish-commands.pod:169
19108 msgid "setenv"
19109 msgstr ""
19110
19111 #. type: verbatim
19112 #: ../fish/guestfish-commands.pod:171
19113 #, no-wrap
19114 msgid ""
19115 "  setenv VAR value\n"
19116 "\n"
19117 msgstr ""
19118
19119 #. type: textblock
19120 #: ../fish/guestfish-commands.pod:173
19121 msgid "Set the environment variable C<VAR> to the string C<value>."
19122 msgstr ""
19123
19124 #. type: textblock
19125 #: ../fish/guestfish-commands.pod:175
19126 msgid ""
19127 "To print the value of an environment variable use a shell command such as:"
19128 msgstr ""
19129
19130 #. type: verbatim
19131 #: ../fish/guestfish-commands.pod:178
19132 #, no-wrap
19133 msgid ""
19134 " !echo $VAR\n"
19135 "\n"
19136 msgstr ""
19137
19138 #. type: =head2
19139 #: ../fish/guestfish-commands.pod:180
19140 msgid "sparse"
19141 msgstr ""
19142
19143 #. type: verbatim
19144 #: ../fish/guestfish-commands.pod:182
19145 #, no-wrap
19146 msgid ""
19147 " sparse filename size\n"
19148 "\n"
19149 msgstr ""
19150
19151 #. type: textblock
19152 #: ../fish/guestfish-commands.pod:184
19153 msgid ""
19154 "This creates an empty sparse file of the given size, and then adds so it can "
19155 "be further examined."
19156 msgstr ""
19157
19158 #. type: textblock
19159 #: ../fish/guestfish-commands.pod:187
19160 msgid ""
19161 "In all respects it works the same as the L</alloc> command, except that the "
19162 "image file is allocated sparsely, which means that disk blocks are not "
19163 "assigned to the file until they are needed.  Sparse disk files only use "
19164 "space when written to, but they are slower and there is a danger you could "
19165 "run out of real disk space during a write operation."
19166 msgstr ""
19167
19168 #. type: =head2
19169 #: ../fish/guestfish-commands.pod:197
19170 msgid "supported"
19171 msgstr ""
19172
19173 #. type: verbatim
19174 #: ../fish/guestfish-commands.pod:199
19175 #, no-wrap
19176 msgid ""
19177 " supported\n"
19178 "\n"
19179 msgstr ""
19180
19181 #. type: textblock
19182 #: ../fish/guestfish-commands.pod:201
19183 msgid ""
19184 "This command returns a list of the optional groups known to the daemon, and "
19185 "indicates which ones are supported by this build of the libguestfs appliance."
19186 msgstr ""
19187
19188 #. type: textblock
19189 #: ../fish/guestfish-commands.pod:205
19190 msgid "See also L<guestfs(3)/AVAILABILITY>."
19191 msgstr ""
19192
19193 #. type: =head2
19194 #: ../fish/guestfish-commands.pod:207
19195 msgid "time"
19196 msgstr ""
19197
19198 #. type: verbatim
19199 #: ../fish/guestfish-commands.pod:209
19200 #, no-wrap
19201 msgid ""
19202 " time command args...\n"
19203 "\n"
19204 msgstr ""
19205
19206 #. type: textblock
19207 #: ../fish/guestfish-commands.pod:211
19208 msgid ""
19209 "Run the command as usual, but print the elapsed time afterwards.  This can "
19210 "be useful for benchmarking operations."
19211 msgstr ""
19212
19213 #. type: =head2
19214 #: ../fish/guestfish-commands.pod:214
19215 msgid "unsetenv"
19216 msgstr ""
19217
19218 #. type: verbatim
19219 #: ../fish/guestfish-commands.pod:216
19220 #, no-wrap
19221 msgid ""
19222 "  unsetenv VAR\n"
19223 "\n"
19224 msgstr ""
19225
19226 #. type: textblock
19227 #: ../fish/guestfish-commands.pod:218
19228 msgid "Remove C<VAR> from the environment."
19229 msgstr ""
19230
19231 #. type: textblock
19232 #: ../fish/guestfish.pod:5
19233 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19234 msgstr ""
19235
19236 #. type: verbatim
19237 #: ../fish/guestfish.pod:9
19238 #, no-wrap
19239 msgid ""
19240 " guestfish [--options] [commands]\n"
19241 "\n"
19242 msgstr ""
19243
19244 #. type: verbatim
19245 #: ../fish/guestfish.pod:11
19246 #, no-wrap
19247 msgid ""
19248 " guestfish\n"
19249 "\n"
19250 msgstr ""
19251
19252 #. type: verbatim
19253 #: ../fish/guestfish.pod:13
19254 #, no-wrap
19255 msgid ""
19256 " guestfish [--ro|--rw] -a disk.img\n"
19257 "\n"
19258 msgstr ""
19259
19260 #. type: verbatim
19261 #: ../fish/guestfish.pod:15
19262 #, no-wrap
19263 msgid ""
19264 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19265 "\n"
19266 msgstr ""
19267
19268 #. type: verbatim
19269 #: ../fish/guestfish.pod:17
19270 #, no-wrap
19271 msgid ""
19272 " guestfish -d libvirt-domain\n"
19273 "\n"
19274 msgstr ""
19275
19276 #. type: verbatim
19277 #: ../fish/guestfish.pod:19
19278 #, no-wrap
19279 msgid ""
19280 " guestfish [--ro|--rw] -a disk.img -i\n"
19281 "\n"
19282 msgstr ""
19283
19284 #. type: verbatim
19285 #: ../fish/guestfish.pod:21
19286 #, no-wrap
19287 msgid ""
19288 " guestfish -d libvirt-domain -i\n"
19289 "\n"
19290 msgstr ""
19291
19292 #. type: textblock
19293 #: ../fish/guestfish.pod:25
19294 msgid ""
19295 "Using guestfish in read/write mode on live virtual machines can be "
19296 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
19297 "option to use guestfish safely if the disk image or virtual machine might be "
19298 "live."
19299 msgstr ""
19300
19301 #. type: textblock
19302 #: ../fish/guestfish.pod:32
19303 msgid ""
19304 "Guestfish is a shell and command-line tool for examining and modifying "
19305 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
19306 "functionality of the guestfs API, see L<guestfs(3)>."
19307 msgstr ""
19308
19309 #. type: textblock
19310 #: ../fish/guestfish.pod:36
19311 msgid ""
19312 "Guestfish gives you structured access to the libguestfs API, from shell "
19313 "scripts or the command line or interactively.  If you want to rescue a "
19314 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19315 "command."
19316 msgstr ""
19317
19318 #. type: =head2
19319 #: ../fish/guestfish.pod:43
19320 msgid "As an interactive shell"
19321 msgstr ""
19322
19323 #. type: verbatim
19324 #: ../fish/guestfish.pod:45
19325 #, no-wrap
19326 msgid ""
19327 " $ guestfish\n"
19328 " \n"
19329 msgstr ""
19330
19331 #. type: verbatim
19332 #: ../fish/guestfish.pod:47
19333 #, no-wrap
19334 msgid ""
19335 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19336 " editing virtual machine filesystems.\n"
19337 " \n"
19338 msgstr ""
19339
19340 #. type: verbatim
19341 #: ../fish/guestfish.pod:50
19342 #, no-wrap
19343 msgid ""
19344 " Type: 'help' for a list of commands\n"
19345 "       'man' to read the manual\n"
19346 "       'quit' to quit the shell\n"
19347 " \n"
19348 msgstr ""
19349
19350 #. type: verbatim
19351 #: ../fish/guestfish.pod:54
19352 #, no-wrap
19353 msgid ""
19354 " ><fs> add-ro disk.img\n"
19355 " ><fs> run\n"
19356 " ><fs> list-filesystems\n"
19357 " /dev/sda1: ext4\n"
19358 " /dev/vg_guest/lv_root: ext4\n"
19359 " /dev/vg_guest/lv_swap: swap\n"
19360 " ><fs> mount /dev/vg_guest/lv_root /\n"
19361 " ><fs> cat /etc/fstab\n"
19362 " # /etc/fstab\n"
19363 " # Created by anaconda\n"
19364 " [...]\n"
19365 " ><fs> exit\n"
19366 "\n"
19367 msgstr ""
19368
19369 #. type: =head2
19370 #: ../fish/guestfish.pod:67
19371 msgid "From shell scripts"
19372 msgstr ""
19373
19374 #. type: textblock
19375 #: ../fish/guestfish.pod:69
19376 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19377 msgstr ""
19378
19379 #. type: verbatim
19380 #: ../fish/guestfish.pod:71
19381 #, no-wrap
19382 msgid ""
19383 " guestfish <<_EOF_\n"
19384 " add disk.img\n"
19385 " run\n"
19386 " mount /dev/vg_guest/lv_root /\n"
19387 " write /etc/motd \"Welcome, new users\"\n"
19388 " _EOF_\n"
19389 "\n"
19390 msgstr ""
19391
19392 #. type: textblock
19393 #: ../fish/guestfish.pod:78
19394 msgid "List the LVM logical volumes in a disk image:"
19395 msgstr ""
19396
19397 #. type: verbatim
19398 #: ../fish/guestfish.pod:80
19399 #, no-wrap
19400 msgid ""
19401 " guestfish -a disk.img --ro <<_EOF_\n"
19402 " run\n"
19403 " lvs\n"
19404 " _EOF_\n"
19405 "\n"
19406 msgstr ""
19407
19408 #. type: textblock
19409 #: ../fish/guestfish.pod:85
19410 msgid "List all the filesystems in a disk image:"
19411 msgstr ""
19412
19413 #. type: verbatim
19414 #: ../fish/guestfish.pod:87
19415 #, no-wrap
19416 msgid ""
19417 " guestfish -a disk.img --ro <<_EOF_\n"
19418 " run\n"
19419 " list-filesystems\n"
19420 " _EOF_\n"
19421 "\n"
19422 msgstr ""
19423
19424 #. type: =head2
19425 #: ../fish/guestfish.pod:92
19426 msgid "On one command line"
19427 msgstr ""
19428
19429 #. type: textblock
19430 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
19431 msgid "Update C</etc/resolv.conf> in a guest:"
19432 msgstr ""
19433
19434 #. type: verbatim
19435 #: ../fish/guestfish.pod:96
19436 #, no-wrap
19437 msgid ""
19438 " guestfish \\\n"
19439 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19440 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19441 "\n"
19442 msgstr ""
19443
19444 #. type: textblock
19445 #: ../fish/guestfish.pod:100
19446 msgid "Edit C</boot/grub/grub.conf> interactively:"
19447 msgstr ""
19448
19449 #. type: verbatim
19450 #: ../fish/guestfish.pod:102
19451 #, no-wrap
19452 msgid ""
19453 " guestfish --rw --add disk.img \\\n"
19454 "   --mount /dev/vg_guest/lv_root \\\n"
19455 "   --mount /dev/sda1:/boot \\\n"
19456 "   edit /boot/grub/grub.conf\n"
19457 "\n"
19458 msgstr ""
19459
19460 #. type: =head2
19461 #: ../fish/guestfish.pod:107
19462 msgid "Mount disks automatically"
19463 msgstr ""
19464
19465 #. type: textblock
19466 #: ../fish/guestfish.pod:109
19467 msgid ""
19468 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19469 msgstr ""
19470
19471 #. type: verbatim
19472 #: ../fish/guestfish.pod:112
19473 #, no-wrap
19474 msgid ""
19475 " guestfish --ro -a disk.img -i cat /etc/group\n"
19476 "\n"
19477 msgstr ""
19478
19479 #. type: verbatim
19480 #: ../fish/guestfish.pod:114
19481 #, no-wrap
19482 msgid ""
19483 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19484 "\n"
19485 msgstr ""
19486
19487 #. type: textblock
19488 #: ../fish/guestfish.pod:116
19489 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19490 msgstr ""
19491
19492 #. type: verbatim
19493 #: ../fish/guestfish.pod:118
19494 #, no-wrap
19495 msgid ""
19496 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19497 "\n"
19498 msgstr ""
19499
19500 #. type: =head2
19501 #: ../fish/guestfish.pod:120
19502 msgid "As a script interpreter"
19503 msgstr ""
19504
19505 #. type: textblock
19506 #: ../fish/guestfish.pod:122
19507 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19508 msgstr ""
19509
19510 #. type: verbatim
19511 #: ../fish/guestfish.pod:124
19512 #, no-wrap
19513 msgid ""
19514 " #!/usr/bin/guestfish -f\n"
19515 " sparse test1.img 100M\n"
19516 " run\n"
19517 " part-disk /dev/sda mbr\n"
19518 " mkfs ext2 /dev/sda1\n"
19519 "\n"
19520 msgstr ""
19521
19522 #. type: =head2
19523 #: ../fish/guestfish.pod:130
19524 msgid "Start with a prepared disk"
19525 msgstr ""
19526
19527 #. type: textblock
19528 #: ../fish/guestfish.pod:132
19529 msgid ""
19530 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19531 "single ext2-formatted partition:"
19532 msgstr ""
19533
19534 #. type: verbatim
19535 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
19536 #, no-wrap
19537 msgid ""
19538 " guestfish -N fs\n"
19539 "\n"
19540 msgstr ""
19541
19542 #. type: textblock
19543 #: ../fish/guestfish.pod:137
19544 msgid "To list what is available do:"
19545 msgstr ""
19546
19547 #. type: verbatim
19548 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
19549 #, no-wrap
19550 msgid ""
19551 " guestfish -N help | less\n"
19552 "\n"
19553 msgstr ""
19554
19555 #. type: =head2
19556 #: ../fish/guestfish.pod:141
19557 msgid "Remote control"
19558 msgstr ""
19559
19560 #. type: verbatim
19561 #: ../fish/guestfish.pod:143
19562 #, no-wrap
19563 msgid ""
19564 " eval \"`guestfish --listen`\"\n"
19565 " guestfish --remote add-ro disk.img\n"
19566 " guestfish --remote run\n"
19567 " guestfish --remote lvs\n"
19568 "\n"
19569 msgstr ""
19570
19571 #. type: textblock
19572 #: ../fish/guestfish.pod:154
19573 msgid "Displays general help on options."
19574 msgstr ""
19575
19576 #. type: =item
19577 #: ../fish/guestfish.pod:158
19578 msgid "B<--cmd-help>"
19579 msgstr ""
19580
19581 #. type: textblock
19582 #: ../fish/guestfish.pod:160
19583 msgid "Lists all available guestfish commands."
19584 msgstr ""
19585
19586 #. type: =item
19587 #: ../fish/guestfish.pod:162
19588 msgid "B<-h cmd>"
19589 msgstr ""
19590
19591 #. type: =item
19592 #: ../fish/guestfish.pod:164
19593 msgid "B<--cmd-help cmd>"
19594 msgstr ""
19595
19596 #. type: textblock
19597 #: ../fish/guestfish.pod:166
19598 msgid "Displays detailed help on a single command C<cmd>."
19599 msgstr ""
19600
19601 #. type: =item
19602 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19603 msgid "B<-a image>"
19604 msgstr ""
19605
19606 #. type: =item
19607 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19608 msgid "B<--add image>"
19609 msgstr ""
19610
19611 #. type: textblock
19612 #: ../fish/guestfish.pod:172
19613 msgid "Add a block device or virtual machine image to the shell."
19614 msgstr ""
19615
19616 #. type: textblock
19617 #: ../fish/guestfish.pod:177
19618 msgid ""
19619 "Using this flag is mostly equivalent to using the C<add> command, with "
19620 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19621 "the I<--format=...> flag was given."
19622 msgstr ""
19623
19624 #. type: textblock
19625 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19626 msgid ""
19627 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19628 "URI to use.  The default is to use the default libvirt connection."
19629 msgstr ""
19630
19631 #. type: =item
19632 #: ../fish/guestfish.pod:189
19633 msgid "B<--csh>"
19634 msgstr ""
19635
19636 #. type: textblock
19637 #: ../fish/guestfish.pod:191
19638 msgid ""
19639 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19640 "section L</REMOTE CONTROL AND CSH> below."
19641 msgstr ""
19642
19643 #. type: =item
19644 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19645 msgid "B<-d libvirt-domain>"
19646 msgstr ""
19647
19648 #. type: =item
19649 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19650 msgid "B<--domain libvirt-domain>"
19651 msgstr ""
19652
19653 #. type: textblock
19654 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19655 msgid ""
19656 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19657 "used, then any libvirt domain can be used.  However in write mode, only "
19658 "libvirt domains which are shut down can be named here."
19659 msgstr ""
19660
19661 #. type: textblock
19662 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19663 msgid "Domain UUIDs can be used instead of names."
19664 msgstr ""
19665
19666 #. type: textblock
19667 #: ../fish/guestfish.pod:204
19668 msgid ""
19669 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19670 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19671 "if the I<--format:...> flag was given."
19672 msgstr ""
19673
19674 #. type: =item
19675 #: ../fish/guestfish.pod:208
19676 msgid "B<-D>"
19677 msgstr ""
19678
19679 #. type: =item
19680 #: ../fish/guestfish.pod:210
19681 msgid "B<--no-dest-paths>"
19682 msgstr ""
19683
19684 #. type: textblock
19685 #: ../fish/guestfish.pod:212
19686 msgid ""
19687 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19688 "to hit the tab key to complete paths on the guest filesystem, but this "
19689 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19690 "allow this feature to be disabled."
19691 msgstr ""
19692
19693 #. type: textblock
19694 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19695 msgid ""
19696 "When prompting for keys and passphrases, guestfish normally turns echoing "
19697 "off so you cannot see what you are typing.  If you are not worried about "
19698 "Tempest attacks and there is no one else in the room you can specify this "
19699 "flag to see what you are typing."
19700 msgstr ""
19701
19702 #. type: =item
19703 #: ../fish/guestfish.pod:224
19704 msgid "B<-f file>"
19705 msgstr ""
19706
19707 #. type: =item
19708 #: ../fish/guestfish.pod:226
19709 msgid "B<--file file>"
19710 msgstr ""
19711
19712 #. type: textblock
19713 #: ../fish/guestfish.pod:228
19714 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19715 msgstr ""
19716
19717 #. type: verbatim
19718 #: ../fish/guestfish.pod:231
19719 #, no-wrap
19720 msgid ""
19721 " #!/usr/bin/guestfish -f\n"
19722 "\n"
19723 msgstr ""
19724
19725 #. type: verbatim
19726 #: ../fish/guestfish.pod:244
19727 #, no-wrap
19728 msgid ""
19729 " guestfish --format=raw -a disk.img\n"
19730 "\n"
19731 msgstr ""
19732
19733 #. type: verbatim
19734 #: ../fish/guestfish.pod:248
19735 #, no-wrap
19736 msgid ""
19737 " guestfish --format=raw -a disk.img --format -a another.img\n"
19738 "\n"
19739 msgstr ""
19740
19741 #. type: textblock
19742 #: ../fish/guestfish.pod:253
19743 msgid ""
19744 "If you have untrusted raw-format guest disk images, you should use this "
19745 "option to specify the disk format.  This avoids a possible security problem "
19746 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19747 msgstr ""
19748
19749 #. type: =item
19750 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19751 msgid "B<--inspector>"
19752 msgstr ""
19753
19754 #. type: textblock
19755 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19756 msgid ""
19757 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19758 "system and mount filesystems as they would be mounted on the real virtual "
19759 "machine."
19760 msgstr ""
19761
19762 #. type: textblock
19763 #: ../fish/guestfish.pod:266
19764 msgid "Typical usage is either:"
19765 msgstr ""
19766
19767 #. type: verbatim
19768 #: ../fish/guestfish.pod:268
19769 #, no-wrap
19770 msgid ""
19771 " guestfish -d myguest -i\n"
19772 "\n"
19773 msgstr ""
19774
19775 #. type: textblock
19776 #: ../fish/guestfish.pod:270
19777 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19778 msgstr ""
19779
19780 #. type: verbatim
19781 #: ../fish/guestfish.pod:272
19782 #, no-wrap
19783 msgid ""
19784 " guestfish --ro -d myguest -i\n"
19785 "\n"
19786 msgstr ""
19787
19788 #. type: textblock
19789 #: ../fish/guestfish.pod:274
19790 msgid "(for active domains, readonly), or specify the block device directly:"
19791 msgstr ""
19792
19793 #. type: verbatim
19794 #: ../fish/guestfish.pod:276
19795 #, no-wrap
19796 msgid ""
19797 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19798 "\n"
19799 msgstr ""
19800
19801 #. type: textblock
19802 #: ../fish/guestfish.pod:278
19803 msgid ""
19804 "Note that the command line syntax changed slightly over older versions of "
19805 "guestfish.  You can still use the old syntax:"
19806 msgstr ""
19807
19808 #. type: verbatim
19809 #: ../fish/guestfish.pod:281
19810 #, no-wrap
19811 msgid ""
19812 " guestfish [--ro] -i disk.img\n"
19813 "\n"
19814 msgstr ""
19815
19816 #. type: verbatim
19817 #: ../fish/guestfish.pod:283
19818 #, no-wrap
19819 msgid ""
19820 " guestfish [--ro] -i libvirt-domain\n"
19821 "\n"
19822 msgstr ""
19823
19824 #. type: textblock
19825 #: ../fish/guestfish.pod:285
19826 msgid ""
19827 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19828 "then using other commands to mount the filesystems that were found."
19829 msgstr ""
19830
19831 #. type: =item
19832 #: ../fish/guestfish.pod:294
19833 msgid "B<--listen>"
19834 msgstr ""
19835
19836 #. type: textblock
19837 #: ../fish/guestfish.pod:296
19838 msgid ""
19839 "Fork into the background and listen for remote commands.  See section L</"
19840 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19841 msgstr ""
19842
19843 #. type: =item
19844 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19845 msgid "B<--live>"
19846 msgstr ""
19847
19848 #. type: textblock
19849 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19850 msgid ""
19851 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19852 "ATTACHING TO RUNNING DAEMONS>)."
19853 msgstr ""
19854
19855 #. type: =item
19856 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19857 msgid "B<-m dev[:mountpoint[:options]]>"
19858 msgstr ""
19859
19860 #. type: =item
19861 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19862 msgid "B<--mount dev[:mountpoint[:options]]>"
19863 msgstr ""
19864
19865 #. type: textblock
19866 #: ../fish/guestfish.pod:308
19867 msgid "Mount the named partition or logical volume on the given mountpoint."
19868 msgstr ""
19869
19870 #. type: textblock
19871 #: ../fish/guestfish.pod:310
19872 msgid "If the mountpoint is omitted, it defaults to C</>."
19873 msgstr ""
19874
19875 #. type: textblock
19876 #: ../fish/guestfish.pod:312
19877 msgid "You have to mount something on C</> before most commands will work."
19878 msgstr ""
19879
19880 #. type: textblock
19881 #: ../fish/guestfish.pod:314
19882 msgid ""
19883 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19884 "launched."
19885 msgstr ""
19886
19887 #. type: textblock
19888 #: ../fish/guestfish.pod:317
19889 msgid ""
19890 "If you don't know what filesystems a disk image contains, you can either run "
19891 "guestfish without this option, then list the partitions, filesystems and LVs "
19892 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19893 "commands), or you can use the L<virt-filesystems(1)> program."
19894 msgstr ""
19895
19896 #. type: textblock
19897 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19898 msgid ""
19899 "The third (and rarely used) part of the mount parameter is the list of mount "
19900 "options used to mount the underlying filesystem.  If this is not given, then "
19901 "the mount options are either the empty string or C<ro> (the latter if the "
19902 "I<--ro> flag is used).  By specifying the mount options, you override this "
19903 "default choice.  Probably the only time you would use this is to enable ACLs "
19904 "and/or extended attributes if the filesystem can support them:"
19905 msgstr ""
19906
19907 #. type: verbatim
19908 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19909 #, no-wrap
19910 msgid ""
19911 " -m /dev/sda1:/:acl,user_xattr\n"
19912 "\n"
19913 msgstr ""
19914
19915 #. type: textblock
19916 #: ../fish/guestfish.pod:333
19917 msgid "Using this flag is equivalent to using the C<mount-options> command."
19918 msgstr ""
19919
19920 #. type: =item
19921 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19922 #: ../resize/virt-resize.pod:435
19923 msgid "B<-n>"
19924 msgstr ""
19925
19926 #. type: =item
19927 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19928 msgid "B<--no-sync>"
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../fish/guestfish.pod:339
19933 msgid ""
19934 "Disable autosync.  This is enabled by default.  See the discussion of "
19935 "autosync in the L<guestfs(3)> manpage."
19936 msgstr ""
19937
19938 #. type: =item
19939 #: ../fish/guestfish.pod:342
19940 msgid "B<-N type>"
19941 msgstr ""
19942
19943 #. type: =item
19944 #: ../fish/guestfish.pod:344
19945 msgid "B<--new type>"
19946 msgstr ""
19947
19948 #. type: =item
19949 #: ../fish/guestfish.pod:346
19950 msgid "B<-N help>"
19951 msgstr ""
19952
19953 #. type: textblock
19954 #: ../fish/guestfish.pod:348
19955 msgid ""
19956 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19957 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19958 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19959 "IMAGES> below."
19960 msgstr ""
19961
19962 #. type: =item
19963 #: ../fish/guestfish.pod:353
19964 msgid "B<--progress-bars>"
19965 msgstr ""
19966
19967 #. type: textblock
19968 #: ../fish/guestfish.pod:355
19969 msgid "Enable progress bars, even when guestfish is used non-interactively."
19970 msgstr ""
19971
19972 #. type: textblock
19973 #: ../fish/guestfish.pod:357
19974 msgid ""
19975 "Progress bars are enabled by default when guestfish is used as an "
19976 "interactive shell."
19977 msgstr ""
19978
19979 #. type: =item
19980 #: ../fish/guestfish.pod:360
19981 msgid "B<--no-progress-bars>"
19982 msgstr ""
19983
19984 #. type: textblock
19985 #: ../fish/guestfish.pod:362
19986 msgid "Disable progress bars."
19987 msgstr ""
19988
19989 #. type: =item
19990 #: ../fish/guestfish.pod:364
19991 msgid "B<--remote[=pid]>"
19992 msgstr ""
19993
19994 #. type: textblock
19995 #: ../fish/guestfish.pod:366
19996 msgid ""
19997 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19998 "CONTROL GUESTFISH OVER A SOCKET> below."
19999 msgstr ""
20000
20001 #. type: =item
20002 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
20003 #: ../rescue/virt-rescue.pod:189
20004 msgid "B<-r>"
20005 msgstr ""
20006
20007 #. type: =item
20008 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
20009 #: ../rescue/virt-rescue.pod:191
20010 msgid "B<--ro>"
20011 msgstr ""
20012
20013 #. type: textblock
20014 #: ../fish/guestfish.pod:373
20015 msgid ""
20016 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20017 "mounts are done read-only."
20018 msgstr ""
20019
20020 #. type: textblock
20021 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
20022 msgid ""
20023 "The option must always be used if the disk image or virtual machine might be "
20024 "running, and is generally recommended in cases where you don't need write "
20025 "access to the disk."
20026 msgstr ""
20027
20028 #. type: textblock
20029 #: ../fish/guestfish.pod:380
20030 msgid ""
20031 "Note that prepared disk images created with I<-N> are not affected by this "
20032 "option.  Also commands like C<add> are not affected - you have to specify "
20033 "the C<readonly:true> option explicitly if you need it."
20034 msgstr ""
20035
20036 #. type: textblock
20037 #: ../fish/guestfish.pod:384
20038 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20039 msgstr ""
20040
20041 #. type: =item
20042 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
20043 #: ../rescue/virt-rescue.pod:201
20044 msgid "B<--selinux>"
20045 msgstr ""
20046
20047 #. type: textblock
20048 #: ../fish/guestfish.pod:388
20049 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
20050 msgstr ""
20051
20052 #. type: textblock
20053 #: ../fish/guestfish.pod:394
20054 msgid ""
20055 "Enable very verbose messages.  This is particularly useful if you find a bug."
20056 msgstr ""
20057
20058 #. type: textblock
20059 #: ../fish/guestfish.pod:401
20060 msgid "Display the guestfish / libguestfs version number and exit."
20061 msgstr ""
20062
20063 #. type: =item
20064 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
20065 #: ../rescue/virt-rescue.pod:231
20066 msgid "B<-w>"
20067 msgstr ""
20068
20069 #. type: =item
20070 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
20071 #: ../rescue/virt-rescue.pod:233
20072 msgid "B<--rw>"
20073 msgstr ""
20074
20075 #. type: textblock
20076 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
20077 msgid ""
20078 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20079 "mounts are done read-write."
20080 msgstr ""
20081
20082 #. type: textblock
20083 #: ../fish/guestfish.pod:410
20084 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20085 msgstr ""
20086
20087 #. type: textblock
20088 #: ../fish/guestfish.pod:414
20089 msgid "Echo each command before executing it."
20090 msgstr ""
20091
20092 #. type: =head1
20093 #: ../fish/guestfish.pod:418
20094 msgid "COMMANDS ON COMMAND LINE"
20095 msgstr ""
20096
20097 #. type: textblock
20098 #: ../fish/guestfish.pod:420
20099 msgid ""
20100 "Any additional (non-option) arguments are treated as commands to execute."
20101 msgstr ""
20102
20103 #. type: textblock
20104 #: ../fish/guestfish.pod:423
20105 msgid ""
20106 "Commands to execute should be separated by a colon (C<:>), where the colon "
20107 "is a separate parameter.  Thus:"
20108 msgstr ""
20109
20110 #. type: verbatim
20111 #: ../fish/guestfish.pod:426
20112 #, no-wrap
20113 msgid ""
20114 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20115 "\n"
20116 msgstr ""
20117
20118 #. type: textblock
20119 #: ../fish/guestfish.pod:428
20120 msgid ""
20121 "If there are no additional arguments, then we enter a shell, either an "
20122 "interactive shell with a prompt (if the input is a terminal) or a non-"
20123 "interactive shell."
20124 msgstr ""
20125
20126 #. type: textblock
20127 #: ../fish/guestfish.pod:432
20128 msgid ""
20129 "In either command line mode or non-interactive shell, the first command that "
20130 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20131 "prompt) if a command fails, you can continue to enter commands."
20132 msgstr ""
20133
20134 #. type: =head1
20135 #: ../fish/guestfish.pod:437
20136 msgid "USING launch (OR run)"
20137 msgstr ""
20138
20139 #. type: textblock
20140 #: ../fish/guestfish.pod:439
20141 msgid ""
20142 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20143 "then launch it, then mount any disks you need, and finally issue actions/"
20144 "commands.  So the general order of the day is:"
20145 msgstr ""
20146
20147 #. type: textblock
20148 #: ../fish/guestfish.pod:447
20149 msgid "add or -a/--add"
20150 msgstr ""
20151
20152 #. type: textblock
20153 #: ../fish/guestfish.pod:451
20154 msgid "launch (aka run)"
20155 msgstr ""
20156
20157 #. type: textblock
20158 #: ../fish/guestfish.pod:455
20159 msgid "mount or -m/--mount"
20160 msgstr ""
20161
20162 #. type: textblock
20163 #: ../fish/guestfish.pod:459
20164 msgid "any other commands"
20165 msgstr ""
20166
20167 #. type: textblock
20168 #: ../fish/guestfish.pod:463
20169 msgid ""
20170 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20171 "guest before mounting or performing any other commands."
20172 msgstr ""
20173
20174 #. type: textblock
20175 #: ../fish/guestfish.pod:466
20176 msgid ""
20177 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20178 "I<--new> options were given then C<run> is done automatically, simply "
20179 "because guestfish can't perform the action you asked for without doing this."
20180 msgstr ""
20181
20182 #. type: =head1
20183 #: ../fish/guestfish.pod:471
20184 msgid "OPENING DISKS FOR READ AND WRITE"
20185 msgstr ""
20186
20187 #. type: textblock
20188 #: ../fish/guestfish.pod:473
20189 msgid ""
20190 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20191 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20192 "I<-i> and I<-m> open disk images read-only or for writing."
20193 msgstr ""
20194
20195 #. type: textblock
20196 #: ../fish/guestfish.pod:478
20197 msgid ""
20198 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20199 "opening disk images supplied on the command line for write.  To open a disk "
20200 "image read-only you have to do I<-a image --ro>."
20201 msgstr ""
20202
20203 #. type: textblock
20204 #: ../fish/guestfish.pod:482
20205 msgid ""
20206 "This matters: If you accidentally open a live VM disk image writable then "
20207 "you will cause irreversible disk corruption."
20208 msgstr ""
20209
20210 #. type: textblock
20211 #: ../fish/guestfish.pod:485
20212 msgid ""
20213 "In a future libguestfs we intend to change the default the other way.  Disk "
20214 "images will be opened read-only.  You will have to either specify "
20215 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20216 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20217 "access for disk images specified by those other command line options."
20218 msgstr ""
20219
20220 #. type: textblock
20221 #: ../fish/guestfish.pod:492
20222 msgid ""
20223 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20224 "which does nothing (it is already the default).  However it is highly "
20225 "recommended that you use this option to indicate that you need write access, "
20226 "and prepare your scripts for the day when this option will be required for "
20227 "write access."
20228 msgstr ""
20229
20230 #. type: textblock
20231 #: ../fish/guestfish.pod:498
20232 msgid ""
20233 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20234 "other libguestfs program apart from guestfish and guestmount."
20235 msgstr ""
20236
20237 #. type: =head1
20238 #: ../fish/guestfish.pod:501
20239 msgid "QUOTING"
20240 msgstr ""
20241
20242 #. type: textblock
20243 #: ../fish/guestfish.pod:503
20244 msgid ""
20245 "You can quote ordinary parameters using either single or double quotes.  For "
20246 "example:"
20247 msgstr ""
20248
20249 #. type: verbatim
20250 #: ../fish/guestfish.pod:506
20251 #, no-wrap
20252 msgid ""
20253 " add \"file with a space.img\"\n"
20254 "\n"
20255 msgstr ""
20256
20257 #. type: verbatim
20258 #: ../fish/guestfish.pod:508
20259 #, no-wrap
20260 msgid ""
20261 " rm '/file name'\n"
20262 "\n"
20263 msgstr ""
20264
20265 #. type: verbatim
20266 #: ../fish/guestfish.pod:510
20267 #, no-wrap
20268 msgid ""
20269 " rm '/\"'\n"
20270 "\n"
20271 msgstr ""
20272
20273 #. type: textblock
20274 #: ../fish/guestfish.pod:512
20275 msgid ""
20276 "A few commands require a list of strings to be passed.  For these, use a "
20277 "whitespace-separated list, enclosed in quotes.  Strings containing "
20278 "whitespace to be passed through must be enclosed in single quotes.  A "
20279 "literal single quote must be escaped with a backslash."
20280 msgstr ""
20281
20282 #. type: verbatim
20283 #: ../fish/guestfish.pod:517
20284 #, no-wrap
20285 msgid ""
20286 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20287 " command \"/bin/echo 'foo      bar'\"\n"
20288 " command \"/bin/echo \\'foo\\'\"\n"
20289 "\n"
20290 msgstr ""
20291
20292 #. type: =head2
20293 #: ../fish/guestfish.pod:521
20294 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
20295 msgstr ""
20296
20297 #. type: textblock
20298 #: ../fish/guestfish.pod:523
20299 msgid ""
20300 "In double-quoted arguments (only) use backslash to insert special characters:"
20301 msgstr ""
20302
20303 #. type: =item
20304 #: ../fish/guestfish.pod:528
20305 msgid "C<\\a>"
20306 msgstr ""
20307
20308 #. type: textblock
20309 #: ../fish/guestfish.pod:530
20310 msgid "Alert (bell) character."
20311 msgstr ""
20312
20313 #. type: =item
20314 #: ../fish/guestfish.pod:532
20315 msgid "C<\\b>"
20316 msgstr ""
20317
20318 #. type: textblock
20319 #: ../fish/guestfish.pod:534
20320 msgid "Backspace character."
20321 msgstr ""
20322
20323 #. type: =item
20324 #: ../fish/guestfish.pod:536
20325 msgid "C<\\f>"
20326 msgstr ""
20327
20328 #. type: textblock
20329 #: ../fish/guestfish.pod:538
20330 msgid "Form feed character."
20331 msgstr ""
20332
20333 #. type: =item
20334 #: ../fish/guestfish.pod:540
20335 msgid "C<\\n>"
20336 msgstr ""
20337
20338 #. type: textblock
20339 #: ../fish/guestfish.pod:542
20340 msgid "Newline character."
20341 msgstr ""
20342
20343 #. type: =item
20344 #: ../fish/guestfish.pod:544
20345 msgid "C<\\r>"
20346 msgstr ""
20347
20348 #. type: textblock
20349 #: ../fish/guestfish.pod:546
20350 msgid "Carriage return character."
20351 msgstr ""
20352
20353 #. type: =item
20354 #: ../fish/guestfish.pod:548
20355 msgid "C<\\t>"
20356 msgstr ""
20357
20358 #. type: textblock
20359 #: ../fish/guestfish.pod:550
20360 msgid "Horizontal tab character."
20361 msgstr ""
20362
20363 #. type: =item
20364 #: ../fish/guestfish.pod:552
20365 msgid "C<\\v>"
20366 msgstr ""
20367
20368 #. type: textblock
20369 #: ../fish/guestfish.pod:554
20370 msgid "Vertical tab character."
20371 msgstr ""
20372
20373 #. type: =item
20374 #: ../fish/guestfish.pod:556
20375 msgid "C<\\\">"
20376 msgstr ""
20377
20378 #. type: textblock
20379 #: ../fish/guestfish.pod:558
20380 msgid "A literal double quote character."
20381 msgstr ""
20382
20383 #. type: =item
20384 #: ../fish/guestfish.pod:560
20385 msgid "C<\\ooo>"
20386 msgstr ""
20387
20388 #. type: textblock
20389 #: ../fish/guestfish.pod:562
20390 msgid ""
20391 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
20392 "(unlike C)."
20393 msgstr ""
20394
20395 #. type: =item
20396 #: ../fish/guestfish.pod:565
20397 msgid "C<\\xhh>"
20398 msgstr ""
20399
20400 #. type: textblock
20401 #: ../fish/guestfish.pod:567
20402 msgid ""
20403 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
20404 msgstr ""
20405
20406 #. type: textblock
20407 #: ../fish/guestfish.pod:570
20408 msgid ""
20409 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
20410 "strings."
20411 msgstr ""
20412
20413 #. type: =item
20414 #: ../fish/guestfish.pod:573
20415 msgid "C<\\\\>"
20416 msgstr ""
20417
20418 #. type: textblock
20419 #: ../fish/guestfish.pod:575
20420 msgid "A literal backslash character."
20421 msgstr ""
20422
20423 #. type: =head1
20424 #: ../fish/guestfish.pod:579
20425 msgid "OPTIONAL ARGUMENTS"
20426 msgstr ""
20427
20428 #. type: textblock
20429 #: ../fish/guestfish.pod:581
20430 msgid ""
20431 "Some commands take optional arguments.  These arguments appear in this "
20432 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20433 msgstr ""
20434
20435 #. type: verbatim
20436 #: ../fish/guestfish.pod:585
20437 #, no-wrap
20438 msgid ""
20439 " add-drive-opts filename\n"
20440 "\n"
20441 msgstr ""
20442
20443 #. type: verbatim
20444 #: ../fish/guestfish.pod:587
20445 #, no-wrap
20446 msgid ""
20447 " add-drive-opts filename readonly:true\n"
20448 "\n"
20449 msgstr ""
20450
20451 #. type: verbatim
20452 #: ../fish/guestfish.pod:589
20453 #, no-wrap
20454 msgid ""
20455 " add-drive-opts filename format:qcow2 readonly:false\n"
20456 "\n"
20457 msgstr ""
20458
20459 #. type: textblock
20460 #: ../fish/guestfish.pod:591
20461 msgid ""
20462 "Each optional argument can appear at most once.  All optional arguments must "
20463 "appear after the required ones."
20464 msgstr ""
20465
20466 #. type: =head1
20467 #: ../fish/guestfish.pod:594
20468 msgid "NUMBERS"
20469 msgstr ""
20470
20471 #. type: textblock
20472 #: ../fish/guestfish.pod:596
20473 msgid ""
20474 "This section applies to all commands which can take integers as parameters."
20475 msgstr ""
20476
20477 #. type: =head2
20478 #: ../fish/guestfish.pod:599
20479 msgid "SIZE SUFFIX"
20480 msgstr ""
20481
20482 #. type: textblock
20483 #: ../fish/guestfish.pod:601
20484 msgid ""
20485 "When the command takes a parameter measured in bytes, you can use one of the "
20486 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20487 msgstr ""
20488
20489 #. type: =item
20490 #: ../fish/guestfish.pod:607
20491 msgid "B<k> or B<K> or B<KiB>"
20492 msgstr ""
20493
20494 #. type: textblock
20495 #: ../fish/guestfish.pod:609
20496 msgid "The size in kilobytes (multiplied by 1024)."
20497 msgstr ""
20498
20499 #. type: =item
20500 #: ../fish/guestfish.pod:611
20501 msgid "B<KB>"
20502 msgstr ""
20503
20504 #. type: textblock
20505 #: ../fish/guestfish.pod:613
20506 msgid "The size in SI 1000 byte units."
20507 msgstr ""
20508
20509 #. type: =item
20510 #: ../fish/guestfish.pod:615
20511 msgid "B<M> or B<MiB>"
20512 msgstr ""
20513
20514 #. type: textblock
20515 #: ../fish/guestfish.pod:617
20516 msgid "The size in megabytes (multiplied by 1048576)."
20517 msgstr ""
20518
20519 #. type: =item
20520 #: ../fish/guestfish.pod:619
20521 msgid "B<MB>"
20522 msgstr ""
20523
20524 #. type: textblock
20525 #: ../fish/guestfish.pod:621
20526 msgid "The size in SI 1000000 byte units."
20527 msgstr ""
20528
20529 #. type: =item
20530 #: ../fish/guestfish.pod:623
20531 msgid "B<G> or B<GiB>"
20532 msgstr ""
20533
20534 #. type: textblock
20535 #: ../fish/guestfish.pod:625
20536 msgid "The size in gigabytes (multiplied by 2**30)."
20537 msgstr ""
20538
20539 #. type: =item
20540 #: ../fish/guestfish.pod:627
20541 msgid "B<GB>"
20542 msgstr ""
20543
20544 #. type: textblock
20545 #: ../fish/guestfish.pod:629
20546 msgid "The size in SI 10**9 byte units."
20547 msgstr ""
20548
20549 #. type: =item
20550 #: ../fish/guestfish.pod:631
20551 msgid "B<T> or B<TiB>"
20552 msgstr ""
20553
20554 #. type: textblock
20555 #: ../fish/guestfish.pod:633
20556 msgid "The size in terabytes (multiplied by 2**40)."
20557 msgstr ""
20558
20559 #. type: =item
20560 #: ../fish/guestfish.pod:635
20561 msgid "B<TB>"
20562 msgstr ""
20563
20564 #. type: textblock
20565 #: ../fish/guestfish.pod:637
20566 msgid "The size in SI 10**12 byte units."
20567 msgstr ""
20568
20569 #. type: =item
20570 #: ../fish/guestfish.pod:639
20571 msgid "B<P> or B<PiB>"
20572 msgstr ""
20573
20574 #. type: textblock
20575 #: ../fish/guestfish.pod:641
20576 msgid "The size in petabytes (multiplied by 2**50)."
20577 msgstr ""
20578
20579 #. type: =item
20580 #: ../fish/guestfish.pod:643
20581 msgid "B<PB>"
20582 msgstr ""
20583
20584 #. type: textblock
20585 #: ../fish/guestfish.pod:645
20586 msgid "The size in SI 10**15 byte units."
20587 msgstr ""
20588
20589 #. type: =item
20590 #: ../fish/guestfish.pod:647
20591 msgid "B<E> or B<EiB>"
20592 msgstr ""
20593
20594 #. type: textblock
20595 #: ../fish/guestfish.pod:649
20596 msgid "The size in exabytes (multiplied by 2**60)."
20597 msgstr ""
20598
20599 #. type: =item
20600 #: ../fish/guestfish.pod:651
20601 msgid "B<EB>"
20602 msgstr ""
20603
20604 #. type: textblock
20605 #: ../fish/guestfish.pod:653
20606 msgid "The size in SI 10**18 byte units."
20607 msgstr ""
20608
20609 #. type: =item
20610 #: ../fish/guestfish.pod:655
20611 msgid "B<Z> or B<ZiB>"
20612 msgstr ""
20613
20614 #. type: textblock
20615 #: ../fish/guestfish.pod:657
20616 msgid "The size in zettabytes (multiplied by 2**70)."
20617 msgstr ""
20618
20619 #. type: =item
20620 #: ../fish/guestfish.pod:659
20621 msgid "B<ZB>"
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../fish/guestfish.pod:661
20626 msgid "The size in SI 10**21 byte units."
20627 msgstr ""
20628
20629 #. type: =item
20630 #: ../fish/guestfish.pod:663
20631 msgid "B<Y> or B<YiB>"
20632 msgstr ""
20633
20634 #. type: textblock
20635 #: ../fish/guestfish.pod:665
20636 msgid "The size in yottabytes (multiplied by 2**80)."
20637 msgstr ""
20638
20639 #. type: =item
20640 #: ../fish/guestfish.pod:667
20641 msgid "B<YB>"
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../fish/guestfish.pod:669
20646 msgid "The size in SI 10**24 byte units."
20647 msgstr ""
20648
20649 #. type: verbatim
20650 #: ../fish/guestfish.pod:675
20651 #, no-wrap
20652 msgid ""
20653 " truncate-size /file 1G\n"
20654 "\n"
20655 msgstr ""
20656
20657 #. type: textblock
20658 #: ../fish/guestfish.pod:677
20659 msgid "would truncate the file to 1 gigabyte."
20660 msgstr ""
20661
20662 #. type: textblock
20663 #: ../fish/guestfish.pod:679
20664 msgid ""
20665 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20666 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20667 "suffix will probably not do what you expect."
20668 msgstr ""
20669
20670 #. type: =head2
20671 #: ../fish/guestfish.pod:683
20672 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20673 msgstr ""
20674
20675 #. type: textblock
20676 #: ../fish/guestfish.pod:685
20677 msgid ""
20678 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20679 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20680 msgstr ""
20681
20682 #. type: verbatim
20683 #: ../fish/guestfish.pod:688
20684 #, no-wrap
20685 msgid ""
20686 " 1234      decimal number 1234\n"
20687 " 02322     octal number, equivalent to decimal 1234\n"
20688 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20689 "\n"
20690 msgstr ""
20691
20692 #. type: textblock
20693 #: ../fish/guestfish.pod:692
20694 msgid ""
20695 "When using the C<chmod> command, you almost always want to specify an octal "
20696 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20697 "L<chmod(1)> program):"
20698 msgstr ""
20699
20700 #. type: verbatim
20701 #: ../fish/guestfish.pod:696
20702 #, no-wrap
20703 msgid ""
20704 " chmod 0777 /public  # OK\n"
20705 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20706 "\n"
20707 msgstr ""
20708
20709 #. type: textblock
20710 #: ../fish/guestfish.pod:699
20711 msgid ""
20712 "Commands that return numbers usually print them in decimal, but some "
20713 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20714 "octal, preceeded by C<0>)."
20715 msgstr ""
20716
20717 #. type: =head1
20718 #: ../fish/guestfish.pod:703
20719 msgid "WILDCARDS AND GLOBBING"
20720 msgstr ""
20721
20722 #. type: textblock
20723 #: ../fish/guestfish.pod:705
20724 msgid ""
20725 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20726 "(globbing) by default.  So for example the following will not do what you "
20727 "expect:"
20728 msgstr ""
20729
20730 #. type: verbatim
20731 #: ../fish/guestfish.pod:709
20732 #, no-wrap
20733 msgid ""
20734 " rm-rf /home/*\n"
20735 "\n"
20736 msgstr ""
20737
20738 #. type: textblock
20739 #: ../fish/guestfish.pod:711
20740 msgid ""
20741 "Assuming you don't have a directory called literally C</home/*> then the "
20742 "above command will return an error."
20743 msgstr ""
20744
20745 #. type: textblock
20746 #: ../fish/guestfish.pod:714
20747 msgid "To perform wildcard expansion, use the C<glob> command."
20748 msgstr ""
20749
20750 #. type: verbatim
20751 #: ../fish/guestfish.pod:716
20752 #, no-wrap
20753 msgid ""
20754 " glob rm-rf /home/*\n"
20755 "\n"
20756 msgstr ""
20757
20758 #. type: textblock
20759 #: ../fish/guestfish.pod:718
20760 msgid ""
20761 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20762 "many times), equivalent to:"
20763 msgstr ""
20764
20765 #. type: verbatim
20766 #: ../fish/guestfish.pod:721
20767 #, no-wrap
20768 msgid ""
20769 " rm-rf /home/jim\n"
20770 " rm-rf /home/joe\n"
20771 " rm-rf /home/mary\n"
20772 "\n"
20773 msgstr ""
20774
20775 #. type: textblock
20776 #: ../fish/guestfish.pod:725
20777 msgid "C<glob> only works on simple guest paths and not on device names."
20778 msgstr ""
20779
20780 #. type: textblock
20781 #: ../fish/guestfish.pod:727
20782 msgid ""
20783 "If you have several parameters, each containing a wildcard, then glob will "
20784 "perform a Cartesian product."
20785 msgstr ""
20786
20787 #. type: =head1
20788 #: ../fish/guestfish.pod:730
20789 msgid "COMMENTS"
20790 msgstr ""
20791
20792 #. type: textblock
20793 #: ../fish/guestfish.pod:732
20794 msgid ""
20795 "Any line which starts with a I<#> character is treated as a comment and "
20796 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20797 "a command.  For example:"
20798 msgstr ""
20799
20800 #. type: verbatim
20801 #: ../fish/guestfish.pod:736
20802 #, no-wrap
20803 msgid ""
20804 " # this is a comment\n"
20805 "         # this is a comment\n"
20806 " foo # NOT a comment\n"
20807 "\n"
20808 msgstr ""
20809
20810 #. type: textblock
20811 #: ../fish/guestfish.pod:740
20812 msgid "Blank lines are also ignored."
20813 msgstr ""
20814
20815 #. type: =head1
20816 #: ../fish/guestfish.pod:742
20817 msgid "RUNNING COMMANDS LOCALLY"
20818 msgstr ""
20819
20820 #. type: textblock
20821 #: ../fish/guestfish.pod:744
20822 msgid ""
20823 "Any line which starts with a I<!> character is treated as a command sent to "
20824 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20825 msgstr ""
20826
20827 #. type: verbatim
20828 #: ../fish/guestfish.pod:748
20829 #, no-wrap
20830 msgid ""
20831 " !mkdir local\n"
20832 " tgz-out /remote local/remote-data.tar.gz\n"
20833 "\n"
20834 msgstr ""
20835
20836 #. type: textblock
20837 #: ../fish/guestfish.pod:751
20838 msgid ""
20839 "will create a directory C<local> on the host, and then export the contents "
20840 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20841 "(See C<tgz-out>)."
20842 msgstr ""
20843
20844 #. type: textblock
20845 #: ../fish/guestfish.pod:755
20846 msgid ""
20847 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20848 "effect, due to the way that subprocesses work in Unix."
20849 msgstr ""
20850
20851 #. type: =head2
20852 #: ../fish/guestfish.pod:758
20853 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20854 msgstr ""
20855
20856 #. type: textblock
20857 #: ../fish/guestfish.pod:760
20858 msgid ""
20859 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20860 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20861 "and executed as guestfish commands."
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../fish/guestfish.pod:764
20866 msgid ""
20867 "Thus you can use shell script to construct arbitrary guestfish commands "
20868 "which are then parsed by guestfish."
20869 msgstr ""
20870
20871 #. type: textblock
20872 #: ../fish/guestfish.pod:767
20873 msgid ""
20874 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20875 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20876 "if we use a shell script to create the guestfish commands for us:"
20877 msgstr ""
20878
20879 #. type: verbatim
20880 #: ../fish/guestfish.pod:772
20881 #, no-wrap
20882 msgid ""
20883 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20884 "\n"
20885 msgstr ""
20886
20887 #. type: textblock
20888 #: ../fish/guestfish.pod:774
20889 msgid "or with names like C</foo.001>:"
20890 msgstr ""
20891
20892 #. type: verbatim
20893 #: ../fish/guestfish.pod:776
20894 #, no-wrap
20895 msgid ""
20896 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20897 "\n"
20898 msgstr ""
20899
20900 #. type: textblock
20901 #: ../fish/guestfish.pod:778
20902 msgid ""
20903 "When using guestfish interactively it can be helpful to just run the shell "
20904 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20905 "ordinary I<!> local command), see what guestfish commands it would run, and "
20906 "when you are happy with those prepend the C<E<lt>> character to run the "
20907 "guestfish commands for real."
20908 msgstr ""
20909
20910 #. type: =head1
20911 #: ../fish/guestfish.pod:784
20912 msgid "PIPES"
20913 msgstr ""
20914
20915 #. type: textblock
20916 #: ../fish/guestfish.pod:786
20917 msgid ""
20918 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20919 "command (a guestfish command) to the second command (any host command).  For "
20920 "example:"
20921 msgstr ""
20922
20923 #. type: verbatim
20924 #: ../fish/guestfish.pod:790
20925 #, no-wrap
20926 msgid ""
20927 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20928 "\n"
20929 msgstr ""
20930
20931 #. type: textblock
20932 #: ../fish/guestfish.pod:792
20933 msgid ""
20934 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20935 "program).  The above command would list all accounts in the guest filesystem "
20936 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20937 msgstr ""
20938
20939 #. type: verbatim
20940 #: ../fish/guestfish.pod:797
20941 #, no-wrap
20942 msgid ""
20943 " hexdump /bin/ls | head\n"
20944 " list-devices | tail -1\n"
20945 " tgz-out / - | tar ztf -\n"
20946 "\n"
20947 msgstr ""
20948
20949 #. type: textblock
20950 #: ../fish/guestfish.pod:801
20951 msgid ""
20952 "The space before the pipe symbol is required, any space after the pipe "
20953 "symbol is optional.  Everything after the pipe symbol is just passed "
20954 "straight to the host shell, so it can contain redirections, globs and "
20955 "anything else that makes sense on the host side."
20956 msgstr ""
20957
20958 #. type: textblock
20959 #: ../fish/guestfish.pod:806
20960 msgid ""
20961 "To use a literal argument which begins with a pipe symbol, you have to quote "
20962 "it, eg:"
20963 msgstr ""
20964
20965 #. type: verbatim
20966 #: ../fish/guestfish.pod:809
20967 #, no-wrap
20968 msgid ""
20969 " echo \"|\"\n"
20970 "\n"
20971 msgstr ""
20972
20973 #. type: =head1
20974 #: ../fish/guestfish.pod:811
20975 msgid "HOME DIRECTORIES"
20976 msgstr ""
20977
20978 #. type: textblock
20979 #: ../fish/guestfish.pod:813
20980 msgid ""
20981 "If a parameter starts with the character C<~> then the tilde may be expanded "
20982 "as a home directory path (either C<~> for the current user's home directory, "
20983 "or C<~user> for another user)."
20984 msgstr ""
20985
20986 #. type: textblock
20987 #: ../fish/guestfish.pod:817
20988 msgid ""
20989 "Note that home directory expansion happens for users known I<on the host>, "
20990 "not in the guest filesystem."
20991 msgstr ""
20992
20993 #. type: textblock
20994 #: ../fish/guestfish.pod:820
20995 msgid ""
20996 "To use a literal argument which begins with a tilde, you have to quote it, "
20997 "eg:"
20998 msgstr ""
20999
21000 #. type: verbatim
21001 #: ../fish/guestfish.pod:823
21002 #, no-wrap
21003 msgid ""
21004 " echo \"~\"\n"
21005 "\n"
21006 msgstr ""
21007
21008 #. type: =head2
21009 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
21010 msgid "ENCRYPTED DISKS"
21011 msgstr ""
21012
21013 #. type: textblock
21014 #: ../fish/guestfish.pod:827
21015 msgid ""
21016 "Libguestfs has some support for Linux guests encrypted according to the "
21017 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21018 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
21019 "LUKS is supported."
21020 msgstr ""
21021
21022 #. type: textblock
21023 #: ../fish/guestfish.pod:832
21024 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21025 msgstr ""
21026
21027 #. type: verbatim
21028 #: ../fish/guestfish.pod:834
21029 #, no-wrap
21030 msgid ""
21031 " ><fs> vfs-type /dev/sda2\n"
21032 " crypto_LUKS\n"
21033 "\n"
21034 msgstr ""
21035
21036 #. type: textblock
21037 #: ../fish/guestfish.pod:837
21038 msgid ""
21039 "Then open those devices using L</luks-open>.  This creates a device-mapper "
21040 "device called C</dev/mapper/luksdev>."
21041 msgstr ""
21042
21043 #. type: verbatim
21044 #: ../fish/guestfish.pod:840
21045 #, no-wrap
21046 msgid ""
21047 " ><fs> luks-open /dev/sda2 luksdev\n"
21048 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21049 "\n"
21050 msgstr ""
21051
21052 #. type: textblock
21053 #: ../fish/guestfish.pod:843
21054 msgid ""
21055 "Finally you have to tell LVM to scan for volume groups on the newly created "
21056 "mapper device:"
21057 msgstr ""
21058
21059 #. type: verbatim
21060 #: ../fish/guestfish.pod:846
21061 #, no-wrap
21062 msgid ""
21063 " vgscan\n"
21064 " vg-activate-all true\n"
21065 "\n"
21066 msgstr ""
21067
21068 #. type: textblock
21069 #: ../fish/guestfish.pod:849
21070 msgid "The logical volume(s) can now be mounted in the usual way."
21071 msgstr ""
21072
21073 #. type: textblock
21074 #: ../fish/guestfish.pod:851
21075 msgid ""
21076 "Before closing a LUKS device you must unmount any logical volumes on it and "
21077 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21078 "one.  Then you can close the mapper device:"
21079 msgstr ""
21080
21081 #. type: verbatim
21082 #: ../fish/guestfish.pod:855
21083 #, no-wrap
21084 msgid ""
21085 " vg-activate false /dev/VG\n"
21086 " luks-close /dev/mapper/luksdev\n"
21087 "\n"
21088 msgstr ""
21089
21090 #. type: textblock
21091 #: ../fish/guestfish.pod:860
21092 msgid ""
21093 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21094 "letters and paths (with some limitations).  The following commands are "
21095 "equivalent:"
21096 msgstr ""
21097
21098 #. type: verbatim
21099 #: ../fish/guestfish.pod:864
21100 #, no-wrap
21101 msgid ""
21102 " file /WINDOWS/system32/config/system.LOG\n"
21103 "\n"
21104 msgstr ""
21105
21106 #. type: verbatim
21107 #: ../fish/guestfish.pod:866
21108 #, no-wrap
21109 msgid ""
21110 " file win:\\windows\\system32\\config\\system.log\n"
21111 "\n"
21112 msgstr ""
21113
21114 #. type: verbatim
21115 #: ../fish/guestfish.pod:868
21116 #, no-wrap
21117 msgid ""
21118 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21119 "\n"
21120 msgstr ""
21121
21122 #. type: textblock
21123 #: ../fish/guestfish.pod:870
21124 msgid ""
21125 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21126 "where the drive is mounted, prepending that to the path, changing all "
21127 "backslash characters to forward slash, then resolving the result using L</"
21128 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
21129 "the parameter might be rewritten like this:"
21130 msgstr ""
21131
21132 #. type: verbatim
21133 #: ../fish/guestfish.pod:876
21134 #, no-wrap
21135 msgid ""
21136 " win:e:\\foo\\bar => /e/FOO/bar\n"
21137 "\n"
21138 msgstr ""
21139
21140 #. type: textblock
21141 #: ../fish/guestfish.pod:878
21142 msgid "This only works in argument positions that expect a path."
21143 msgstr ""
21144
21145 #. type: =head1
21146 #: ../fish/guestfish.pod:880
21147 msgid "UPLOADING AND DOWNLOADING FILES"
21148 msgstr ""
21149
21150 #. type: textblock
21151 #: ../fish/guestfish.pod:882
21152 msgid ""
21153 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21154 "others which upload from or download to a local file, you can use the "
21155 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
21156 msgstr ""
21157
21158 #. type: verbatim
21159 #: ../fish/guestfish.pod:886
21160 #, no-wrap
21161 msgid ""
21162 " upload - /foo\n"
21163 "\n"
21164 msgstr ""
21165
21166 #. type: textblock
21167 #: ../fish/guestfish.pod:888
21168 msgid ""
21169 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21170 msgstr ""
21171
21172 #. type: verbatim
21173 #: ../fish/guestfish.pod:891
21174 #, no-wrap
21175 msgid ""
21176 " tar-out /etc - | tar tf -\n"
21177 "\n"
21178 msgstr ""
21179
21180 #. type: textblock
21181 #: ../fish/guestfish.pod:893
21182 msgid ""
21183 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21184 "command (see L</PIPES>)."
21185 msgstr ""
21186
21187 #. type: textblock
21188 #: ../fish/guestfish.pod:896
21189 msgid ""
21190 "When using C<-> to read from stdin, the input is read up to the end of "
21191 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21192 "some arbitrary end marker:"
21193 msgstr ""
21194
21195 #. type: verbatim
21196 #: ../fish/guestfish.pod:900
21197 #, no-wrap
21198 msgid ""
21199 " upload -<<END /foo\n"
21200 " input line 1\n"
21201 " input line 2\n"
21202 " input line 3\n"
21203 " END\n"
21204 "\n"
21205 msgstr ""
21206
21207 #. type: textblock
21208 #: ../fish/guestfish.pod:906
21209 msgid ""
21210 "Any string of characters can be used instead of C<END>.  The end marker must "
21211 "appear on a line of its own, without any preceeding or following characters "
21212 "(not even spaces)."
21213 msgstr ""
21214
21215 #. type: textblock
21216 #: ../fish/guestfish.pod:910
21217 msgid ""
21218 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21219 "upload local files (so-called \"FileIn\" parameters in the generator)."
21220 msgstr ""
21221
21222 #. type: =head1
21223 #: ../fish/guestfish.pod:913
21224 msgid "EXIT ON ERROR BEHAVIOUR"
21225 msgstr ""
21226
21227 #. type: textblock
21228 #: ../fish/guestfish.pod:915
21229 msgid ""
21230 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21231 "taking commands from a human over a tty), and will exit on the first error "
21232 "in non-interactive mode (scripts, commands given on the command line)."
21233 msgstr ""
21234
21235 #. type: textblock
21236 #: ../fish/guestfish.pod:920
21237 msgid ""
21238 "If you prefix a command with a I<-> character, then that command will not "
21239 "cause guestfish to exit, even if that (one) command returns an error."
21240 msgstr ""
21241
21242 #. type: =head1
21243 #: ../fish/guestfish.pod:924
21244 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21245 msgstr ""
21246
21247 #. type: textblock
21248 #: ../fish/guestfish.pod:926
21249 msgid ""
21250 "Guestfish can be remote-controlled over a socket.  This is useful "
21251 "particularly in shell scripts where you want to make several different "
21252 "changes to a filesystem, but you don't want the overhead of starting up a "
21253 "guestfish process each time."
21254 msgstr ""
21255
21256 #. type: textblock
21257 #: ../fish/guestfish.pod:931
21258 msgid "Start a guestfish server process using:"
21259 msgstr ""
21260
21261 #. type: verbatim
21262 #: ../fish/guestfish.pod:933
21263 #, no-wrap
21264 msgid ""
21265 " eval \"`guestfish --listen`\"\n"
21266 "\n"
21267 msgstr ""
21268
21269 #. type: textblock
21270 #: ../fish/guestfish.pod:935
21271 msgid "and then send it commands by doing:"
21272 msgstr ""
21273
21274 #. type: verbatim
21275 #: ../fish/guestfish.pod:937
21276 #, no-wrap
21277 msgid ""
21278 " guestfish --remote cmd [...]\n"
21279 "\n"
21280 msgstr ""
21281
21282 #. type: textblock
21283 #: ../fish/guestfish.pod:939
21284 msgid "To cause the server to exit, send it the exit command:"
21285 msgstr ""
21286
21287 #. type: textblock
21288 #: ../fish/guestfish.pod:943
21289 msgid ""
21290 "Note that the server will normally exit if there is an error in a command.  "
21291 "You can change this in the usual way.  See section L</EXIT ON ERROR "
21292 "BEHAVIOUR>."
21293 msgstr ""
21294
21295 #. type: =head2
21296 #: ../fish/guestfish.pod:947
21297 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21298 msgstr ""
21299
21300 #. type: textblock
21301 #: ../fish/guestfish.pod:949
21302 msgid ""
21303 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21304 "is how the I<--remote> option knows where to send the commands.  You can "
21305 "have several guestfish listener processes running using:"
21306 msgstr ""
21307
21308 #. type: verbatim
21309 #: ../fish/guestfish.pod:953
21310 #, no-wrap
21311 msgid ""
21312 " eval \"`guestfish --listen`\"\n"
21313 " pid1=$GUESTFISH_PID\n"
21314 " eval \"`guestfish --listen`\"\n"
21315 " pid2=$GUESTFISH_PID\n"
21316 " ...\n"
21317 " guestfish --remote=$pid1 cmd\n"
21318 " guestfish --remote=$pid2 cmd\n"
21319 "\n"
21320 msgstr ""
21321
21322 #. type: =head2
21323 #: ../fish/guestfish.pod:961
21324 msgid "REMOTE CONTROL AND CSH"
21325 msgstr ""
21326
21327 #. type: textblock
21328 #: ../fish/guestfish.pod:963
21329 msgid ""
21330 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21331 "option:"
21332 msgstr ""
21333
21334 #. type: verbatim
21335 #: ../fish/guestfish.pod:966
21336 #, no-wrap
21337 msgid ""
21338 " eval \"`guestfish --listen --csh`\"\n"
21339 "\n"
21340 msgstr ""
21341
21342 #. type: =head2
21343 #: ../fish/guestfish.pod:968
21344 msgid "REMOTE CONTROL DETAILS"
21345 msgstr ""
21346
21347 #. type: textblock
21348 #: ../fish/guestfish.pod:970
21349 msgid ""
21350 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21351 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21352 "and C<$PID> is the process ID of the server."
21353 msgstr ""
21354
21355 #. type: textblock
21356 #: ../fish/guestfish.pod:974
21357 msgid "Guestfish client and server versions must match exactly."
21358 msgstr ""
21359
21360 #. type: =head2
21361 #: ../fish/guestfish.pod:976
21362 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
21363 msgstr ""
21364
21365 #. type: textblock
21366 #: ../fish/guestfish.pod:978
21367 msgid ""
21368 "From Bash, you can use the following code which creates a guestfish "
21369 "instance, correctly quotes the command line, handles failure to start, and "
21370 "cleans up guestfish when the script exits:"
21371 msgstr ""
21372
21373 #. type: verbatim
21374 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
21375 #, no-wrap
21376 msgid ""
21377 " #!/bin/bash -\n"
21378 " \n"
21379 msgstr ""
21380
21381 #. type: verbatim
21382 #: ../fish/guestfish.pod:986
21383 #, no-wrap
21384 msgid ""
21385 " guestfish[0]=\"guestfish\"\n"
21386 " guestfish[1]=\"--listen\"\n"
21387 " guestfish[2]=\"--ro\"\n"
21388 " guestfish[3]=\"-a\"\n"
21389 " guestfish[4]=\"disk.img\"\n"
21390 " \n"
21391 msgstr ""
21392
21393 #. type: verbatim
21394 #: ../fish/guestfish.pod:992
21395 #, no-wrap
21396 msgid ""
21397 " GUESTFISH_PID=\n"
21398 " eval $(\"${guestfish[@]}\")\n"
21399 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
21400 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
21401 "     exit 1\n"
21402 " fi\n"
21403 " \n"
21404 msgstr ""
21405
21406 #. type: verbatim
21407 #: ../fish/guestfish.pod:999
21408 #, no-wrap
21409 msgid ""
21410 " cleanup_guestfish ()\n"
21411 " {\n"
21412 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
21413 " }\n"
21414 " trap cleanup_guestfish EXIT ERR\n"
21415 " \n"
21416 msgstr ""
21417
21418 #. type: verbatim
21419 #: ../fish/guestfish.pod:1005
21420 #, no-wrap
21421 msgid ""
21422 " guestfish --remote -- run\n"
21423 " \n"
21424 msgstr ""
21425
21426 #. type: verbatim
21427 #: ../fish/guestfish.pod:1007
21428 #, no-wrap
21429 msgid ""
21430 " # ...\n"
21431 "\n"
21432 msgstr ""
21433
21434 #. type: =head2
21435 #: ../fish/guestfish.pod:1009
21436 msgid "REMOTE CONTROL RUN COMMAND HANGING"
21437 msgstr ""
21438
21439 #. type: textblock
21440 #: ../fish/guestfish.pod:1011
21441 msgid ""
21442 "Using the C<run> (or C<launch>) command remotely in a command substitution "
21443 "context hangs, ie. don't do (note the backquotes):"
21444 msgstr ""
21445
21446 #. type: verbatim
21447 #: ../fish/guestfish.pod:1014
21448 #, no-wrap
21449 msgid ""
21450 " a=`guestfish --remote run`\n"
21451 "\n"
21452 msgstr ""
21453
21454 #. type: textblock
21455 #: ../fish/guestfish.pod:1016
21456 msgid ""
21457 "Since the C<run> command produces no output on stdout, this is not useful "
21458 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
21459 "cgi?id=592910>."
21460 msgstr ""
21461
21462 #. type: =head1
21463 #: ../fish/guestfish.pod:1020
21464 msgid "PREPARED DISK IMAGES"
21465 msgstr ""
21466
21467 #. type: textblock
21468 #: ../fish/guestfish.pod:1022
21469 msgid ""
21470 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21471 "preformatted disk images that guestfish can make for you to save typing.  "
21472 "This is particularly useful for testing purposes.  This option is used "
21473 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21474 "can be mixed with I<-a>)."
21475 msgstr ""
21476
21477 #. type: textblock
21478 #: ../fish/guestfish.pod:1028
21479 msgid ""
21480 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21481 "the second and so on.  Existing files in the current directory are "
21482 "I<overwritten>."
21483 msgstr ""
21484
21485 #. type: textblock
21486 #: ../fish/guestfish.pod:1032
21487 msgid ""
21488 "The type briefly describes how the disk should be sized, partitioned, how "
21489 "filesystem(s) should be created, and how content should be added.  "
21490 "Optionally the type can be followed by extra parameters, separated by C<:> "
21491 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21492 "allocated disk, containing a single partition, with the partition formatted "
21493 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21494 "disk instead."
21495 msgstr ""
21496
21497 #. type: textblock
21498 #: ../fish/guestfish.pod:1040
21499 msgid "To list the available types and any extra parameters they take, run:"
21500 msgstr ""
21501
21502 #. type: textblock
21503 #: ../fish/guestfish.pod:1044
21504 msgid ""
21505 "Note that the prepared filesystem is not mounted.  You would usually have to "
21506 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21507 msgstr ""
21508
21509 #. type: textblock
21510 #: ../fish/guestfish.pod:1048
21511 msgid ""
21512 "If any I<-N> or I<--new> options are given, the guest is automatically "
21513 "launched."
21514 msgstr ""
21515
21516 #. type: textblock
21517 #: ../fish/guestfish.pod:1053
21518 msgid "Create a 100MB disk with an ext4-formatted partition:"
21519 msgstr ""
21520
21521 #. type: verbatim
21522 #: ../fish/guestfish.pod:1055
21523 #, no-wrap
21524 msgid ""
21525 " guestfish -N fs:ext4\n"
21526 "\n"
21527 msgstr ""
21528
21529 #. type: textblock
21530 #: ../fish/guestfish.pod:1057
21531 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21532 msgstr ""
21533
21534 #. type: verbatim
21535 #: ../fish/guestfish.pod:1059
21536 #, no-wrap
21537 msgid ""
21538 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21539 "\n"
21540 msgstr ""
21541
21542 #. type: textblock
21543 #: ../fish/guestfish.pod:1061
21544 msgid "Create a blank 200MB disk:"
21545 msgstr ""
21546
21547 #. type: verbatim
21548 #: ../fish/guestfish.pod:1063
21549 #, no-wrap
21550 msgid ""
21551 " guestfish -N disk:200M\n"
21552 "\n"
21553 msgstr ""
21554
21555 #. type: =head1
21556 #: ../fish/guestfish.pod:1065
21557 msgid "PROGRESS BARS"
21558 msgstr ""
21559
21560 #. type: textblock
21561 #: ../fish/guestfish.pod:1067
21562 msgid ""
21563 "Some (not all) long-running commands send progress notification messages as "
21564 "they are running.  Guestfish turns these messages into progress bars."
21565 msgstr ""
21566
21567 #. type: textblock
21568 #: ../fish/guestfish.pod:1071
21569 msgid ""
21570 "When a command that supports progress bars takes longer than two seconds to "
21571 "run, and if progress bars are enabled, then you will see one appearing below "
21572 "the command:"
21573 msgstr ""
21574
21575 #. type: verbatim
21576 #: ../fish/guestfish.pod:1075
21577 #, no-wrap
21578 msgid ""
21579 " ><fs> copy-size /large-file /another-file 2048M\n"
21580 " / 10% [#####-----------------------------------------] 00:30\n"
21581 "\n"
21582 msgstr ""
21583
21584 #. type: textblock
21585 #: ../fish/guestfish.pod:1078
21586 msgid ""
21587 "The spinner on the left hand side moves round once for every progress "
21588 "notification received from the backend.  This is a (reasonably) golden "
21589 "assurance that the command is \"doing something\" even if the progress bar "
21590 "is not moving, because the command is able to send the progress "
21591 "notifications.  When the bar reaches 100% and the command finishes, the "
21592 "spinner disappears."
21593 msgstr ""
21594
21595 #. type: textblock
21596 #: ../fish/guestfish.pod:1085
21597 msgid ""
21598 "Progress bars are enabled by default when guestfish is used interactively.  "
21599 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21600 "and you can disable them completely using I<--no-progress-bars>."
21601 msgstr ""
21602
21603 #. type: =head1
21604 #: ../fish/guestfish.pod:1090
21605 msgid "GUESTFISH COMMANDS"
21606 msgstr ""
21607
21608 #. type: textblock
21609 #: ../fish/guestfish.pod:1092
21610 msgid ""
21611 "The commands in this section are guestfish convenience commands, in other "
21612 "words, they are not part of the L<guestfs(3)> API."
21613 msgstr ""
21614
21615 #. type: =head2
21616 #: ../fish/guestfish.pod:1095
21617 msgid "help"
21618 msgstr ""
21619
21620 #. type: verbatim
21621 #: ../fish/guestfish.pod:1097
21622 #, no-wrap
21623 msgid ""
21624 " help\n"
21625 " help cmd\n"
21626 "\n"
21627 msgstr ""
21628
21629 #. type: textblock
21630 #: ../fish/guestfish.pod:1100
21631 msgid "Without any parameter, this provides general help."
21632 msgstr ""
21633
21634 #. type: textblock
21635 #: ../fish/guestfish.pod:1102
21636 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21637 msgstr ""
21638
21639 #. type: =head2
21640 #: ../fish/guestfish.pod:1104
21641 msgid "quit | exit"
21642 msgstr ""
21643
21644 #. type: textblock
21645 #: ../fish/guestfish.pod:1106
21646 msgid "This exits guestfish.  You can also use C<^D> key."
21647 msgstr ""
21648
21649 #. type: textblock
21650 #: ../fish/guestfish.pod:1108
21651 msgid "@FISH_COMMANDS@"
21652 msgstr ""
21653
21654 #. type: =head1
21655 #: ../fish/guestfish.pod:1110
21656 msgid "COMMANDS"
21657 msgstr ""
21658
21659 #. type: textblock
21660 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21661 msgid "@ACTIONS@"
21662 msgstr ""
21663
21664 #. type: textblock
21665 #: ../fish/guestfish.pod:1116
21666 msgid ""
21667 "guestfish returns 0 if the commands completed without error, or 1 if there "
21668 "was an error."
21669 msgstr ""
21670
21671 #. type: =item
21672 #: ../fish/guestfish.pod:1123
21673 msgid "EDITOR"
21674 msgstr ""
21675
21676 #. type: textblock
21677 #: ../fish/guestfish.pod:1125
21678 msgid ""
21679 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21680 "C<vi>."
21681 msgstr ""
21682
21683 #. type: =item
21684 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
21685 msgid "FEBOOTSTRAP_KERNEL"
21686 msgstr ""
21687
21688 #. type: =item
21689 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
21690 msgid "FEBOOTSTRAP_MODULES"
21691 msgstr ""
21692
21693 #. type: textblock
21694 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
21695 msgid ""
21696 "These two environment variables allow the kernel that libguestfs uses in the "
21697 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21698 "most recent host kernel is chosen.  For more information about kernel "
21699 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21700 "available in febootstrap E<ge> 3.8."
21701 msgstr ""
21702
21703 #. type: =item
21704 #: ../fish/guestfish.pod:1138
21705 msgid "GUESTFISH_DISPLAY_IMAGE"
21706 msgstr ""
21707
21708 #. type: textblock
21709 #: ../fish/guestfish.pod:1140
21710 msgid ""
21711 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21712 "If not set, it uses L<display(1)>."
21713 msgstr ""
21714
21715 #. type: =item
21716 #: ../fish/guestfish.pod:1143
21717 msgid "GUESTFISH_PID"
21718 msgstr ""
21719
21720 #. type: textblock
21721 #: ../fish/guestfish.pod:1145
21722 msgid ""
21723 "Used with the I<--remote> option to specify the remote guestfish process to "
21724 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21725 msgstr ""
21726
21727 #. type: =item
21728 #: ../fish/guestfish.pod:1149
21729 msgid "HEXEDITOR"
21730 msgstr ""
21731
21732 #. type: textblock
21733 #: ../fish/guestfish.pod:1151
21734 msgid ""
21735 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21736 "not specified, the external L<hexedit(1)> program is used."
21737 msgstr ""
21738
21739 #. type: =item
21740 #: ../fish/guestfish.pod:1155
21741 msgid "HOME"
21742 msgstr ""
21743
21744 #. type: textblock
21745 #: ../fish/guestfish.pod:1157
21746 msgid ""
21747 "If compiled with GNU readline support, various files in the home directory "
21748 "can be used.  See L</FILES>."
21749 msgstr ""
21750
21751 #. type: =item
21752 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
21753 msgid "LIBGUESTFS_APPEND"
21754 msgstr ""
21755
21756 #. type: textblock
21757 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
21758 msgid "Pass additional options to the guest kernel."
21759 msgstr ""
21760
21761 #. type: =item
21762 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
21763 msgid "LIBGUESTFS_DEBUG"
21764 msgstr ""
21765
21766 #. type: textblock
21767 #: ../fish/guestfish.pod:1166
21768 msgid ""
21769 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21770 "effect as using the B<-v> option."
21771 msgstr ""
21772
21773 #. type: =item
21774 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
21775 msgid "LIBGUESTFS_MEMSIZE"
21776 msgstr ""
21777
21778 #. type: textblock
21779 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
21780 msgid ""
21781 "Set the memory allocated to the qemu process, in megabytes.  For example:"
21782 msgstr ""
21783
21784 #. type: verbatim
21785 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
21786 #, no-wrap
21787 msgid ""
21788 " LIBGUESTFS_MEMSIZE=700\n"
21789 "\n"
21790 msgstr ""
21791
21792 #. type: =item
21793 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
21794 msgid "LIBGUESTFS_PATH"
21795 msgstr ""
21796
21797 #. type: textblock
21798 #: ../fish/guestfish.pod:1178
21799 msgid ""
21800 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21801 "the discussion of paths in L<guestfs(3)>."
21802 msgstr ""
21803
21804 #. type: =item
21805 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
21806 msgid "LIBGUESTFS_QEMU"
21807 msgstr ""
21808
21809 #. type: textblock
21810 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
21811 msgid ""
21812 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21813 "which was found at compile time by the configure script is used."
21814 msgstr ""
21815
21816 #. type: =item
21817 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
21818 msgid "LIBGUESTFS_TRACE"
21819 msgstr ""
21820
21821 #. type: textblock
21822 #: ../fish/guestfish.pod:1189
21823 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21824 msgstr ""
21825
21826 #. type: =item
21827 #: ../fish/guestfish.pod:1191
21828 msgid "PAGER"
21829 msgstr ""
21830
21831 #. type: textblock
21832 #: ../fish/guestfish.pod:1193
21833 msgid ""
21834 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21835 "C<more>."
21836 msgstr ""
21837
21838 #. type: =item
21839 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:254
21840 #: ../src/guestfs.pod:3262
21841 msgid "TMPDIR"
21842 msgstr ""
21843
21844 #. type: textblock
21845 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
21846 msgid ""
21847 "Location of temporary directory, defaults to C</tmp> except for the cached "
21848 "supermin appliance which defaults to C</var/tmp>."
21849 msgstr ""
21850
21851 #. type: textblock
21852 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
21853 msgid ""
21854 "If libguestfs was compiled to use the supermin appliance then the real "
21855 "appliance is cached in this directory, shared between all handles belonging "
21856 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21857 "use in case C</var/tmp> is not large enough."
21858 msgstr ""
21859
21860 #. type: =head1
21861 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21862 #: ../rescue/virt-rescue.pod:310
21863 msgid "FILES"
21864 msgstr ""
21865
21866 #. type: =item
21867 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21868 #: ../rescue/virt-rescue.pod:314
21869 msgid "$HOME/.libguestfs-tools.rc"
21870 msgstr ""
21871
21872 #. type: =item
21873 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21874 #: ../rescue/virt-rescue.pod:316
21875 msgid "/etc/libguestfs-tools.conf"
21876 msgstr ""
21877
21878 #. type: textblock
21879 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21880 #: ../rescue/virt-rescue.pod:318
21881 msgid ""
21882 "This configuration file controls the default read-only or read-write mode "
21883 "(I<--ro> or I<--rw>)."
21884 msgstr ""
21885
21886 #. type: textblock
21887 #: ../fish/guestfish.pod:1220
21888 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21889 msgstr ""
21890
21891 #. type: =item
21892 #: ../fish/guestfish.pod:1222
21893 msgid "$HOME/.guestfish"
21894 msgstr ""
21895
21896 #. type: textblock
21897 #: ../fish/guestfish.pod:1224
21898 msgid ""
21899 "If compiled with GNU readline support, then the command history is saved in "
21900 "this file."
21901 msgstr ""
21902
21903 #. type: =item
21904 #: ../fish/guestfish.pod:1227
21905 msgid "$HOME/.inputrc"
21906 msgstr ""
21907
21908 #. type: =item
21909 #: ../fish/guestfish.pod:1229
21910 msgid "/etc/inputrc"
21911 msgstr ""
21912
21913 #. type: textblock
21914 #: ../fish/guestfish.pod:1231
21915 msgid ""
21916 "If compiled with GNU readline support, then these files can be used to "
21917 "configure readline.  For further information, please see L<readline(3)/"
21918 "INITIALIZATION FILE>."
21919 msgstr ""
21920
21921 #. type: textblock
21922 #: ../fish/guestfish.pod:1235
21923 msgid "To write rules which only apply to guestfish, use:"
21924 msgstr ""
21925
21926 #. type: verbatim
21927 #: ../fish/guestfish.pod:1237
21928 #, no-wrap
21929 msgid ""
21930 " $if guestfish\n"
21931 " ...\n"
21932 " $endif\n"
21933 "\n"
21934 msgstr ""
21935
21936 #. type: textblock
21937 #: ../fish/guestfish.pod:1241
21938 msgid ""
21939 "Variables that you can set in inputrc that change the behaviour of guestfish "
21940 "in useful ways include:"
21941 msgstr ""
21942
21943 #. type: =item
21944 #: ../fish/guestfish.pod:1246
21945 msgid "completion-ignore-case (default: on)"
21946 msgstr ""
21947
21948 #. type: textblock
21949 #: ../fish/guestfish.pod:1248
21950 msgid ""
21951 "By default, guestfish will ignore case when tab-completing paths on the "
21952 "disk.  Use:"
21953 msgstr ""
21954
21955 #. type: verbatim
21956 #: ../fish/guestfish.pod:1251
21957 #, no-wrap
21958 msgid ""
21959 " set completion-ignore-case off\n"
21960 "\n"
21961 msgstr ""
21962
21963 #. type: textblock
21964 #: ../fish/guestfish.pod:1253
21965 msgid "to make guestfish case sensitive."
21966 msgstr ""
21967
21968 #. type: =item
21969 #: ../fish/guestfish.pod:1257
21970 msgid "test1.img"
21971 msgstr ""
21972
21973 #. type: =item
21974 #: ../fish/guestfish.pod:1259
21975 msgid "test2.img (etc)"
21976 msgstr ""
21977
21978 #. type: textblock
21979 #: ../fish/guestfish.pod:1261
21980 msgid ""
21981 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21982 "will be created in the file C<test1.img> in the current directory.  The "
21983 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21984 "the same name will be overwritten."
21985 msgstr ""
21986
21987 #. type: textblock
21988 #: ../fish/guestfish.pod:1270
21989 msgid ""
21990 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21991 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21992 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21993 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21994 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21995 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21996 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21997 msgstr ""
21998
21999 #. type: textblock
22000 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360
22001 #: ../test-tool/libguestfs-test-tool.pod:112
22002 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
22003 msgstr ""
22004
22005 #. type: textblock
22006 #: ../fish/virt-copy-in.pod:5
22007 msgid ""
22008 "virt-copy-in - Copy files and directories into a virtual machine disk image."
22009 msgstr ""
22010
22011 #. type: verbatim
22012 #: ../fish/virt-copy-in.pod:9
22013 #, no-wrap
22014 msgid ""
22015 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
22016 "\n"
22017 msgstr ""
22018
22019 #. type: verbatim
22020 #: ../fish/virt-copy-in.pod:11
22021 #, no-wrap
22022 msgid ""
22023 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
22024 "\n"
22025 msgstr ""
22026
22027 #. type: textblock
22028 #: ../fish/virt-copy-in.pod:15
22029 msgid ""
22030 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
22031 "causing disk corruption.  The virtual machine must be shut down before you "
22032 "use this command."
22033 msgstr ""
22034
22035 #. type: textblock
22036 #: ../fish/virt-copy-in.pod:21
22037 msgid ""
22038 "C<virt-copy-in> copies files and directories from the local disk into a "
22039 "virtual machine disk image or named libvirt domain."
22040 msgstr ""
22041
22042 #. type: textblock
22043 #: ../fish/virt-copy-in.pod:24
22044 msgid ""
22045 "You can give one of more filenames and directories on the command line.  "
22046 "Directories are copied in recursively.  The final parameter must be the "
22047 "destination directory in the disk image which must be an absolute path "
22048 "starting with a C</> character."
22049 msgstr ""
22050
22051 #. type: verbatim
22052 #: ../fish/virt-copy-in.pod:33
22053 #, no-wrap
22054 msgid ""
22055 " virt-copy-in -d MyGuest resolv.conf /etc\n"
22056 "\n"
22057 msgstr ""
22058
22059 #. type: textblock
22060 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
22061 msgid "Upload a home directory to a guest:"
22062 msgstr ""
22063
22064 #. type: verbatim
22065 #: ../fish/virt-copy-in.pod:37
22066 #, no-wrap
22067 msgid ""
22068 " virt-copy-in -d MyGuest skel /home\n"
22069 "\n"
22070 msgstr ""
22071
22072 #. type: =head1
22073 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
22074 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
22075 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
22076 msgstr ""
22077
22078 #. type: textblock
22079 #: ../fish/virt-copy-in.pod:41
22080 msgid ""
22081 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22082 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
22083 "are probably better off using guestfish directly."
22084 msgstr ""
22085
22086 #. type: textblock
22087 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
22088 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
22089 msgid ""
22090 "Since the shell script just passes options straight to guestfish, read "
22091 "L<guestfish(1)> to see the full list of options."
22092 msgstr ""
22093
22094 #. type: textblock
22095 #: ../fish/virt-copy-in.pod:52
22096 msgid ""
22097 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
22098 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22099 msgstr ""
22100
22101 #. type: textblock
22102 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
22103 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
22104 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
22105 msgstr ""
22106
22107 #. type: textblock
22108 #: ../fish/virt-copy-out.pod:5
22109 msgid ""
22110 "virt-copy-out - Copy files and directories out of a virtual machine disk "
22111 "image."
22112 msgstr ""
22113
22114 #. type: verbatim
22115 #: ../fish/virt-copy-out.pod:9
22116 #, no-wrap
22117 msgid ""
22118 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
22119 "\n"
22120 msgstr ""
22121
22122 #. type: verbatim
22123 #: ../fish/virt-copy-out.pod:11
22124 #, no-wrap
22125 msgid ""
22126 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
22127 "\n"
22128 msgstr ""
22129
22130 #. type: textblock
22131 #: ../fish/virt-copy-out.pod:15
22132 msgid ""
22133 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
22134 "image or named libvirt domain."
22135 msgstr ""
22136
22137 #. type: textblock
22138 #: ../fish/virt-copy-out.pod:18
22139 msgid ""
22140 "You can give one of more filenames and directories on the command line.  "
22141 "Directories are copied out recursively."
22142 msgstr ""
22143
22144 #. type: textblock
22145 #: ../fish/virt-copy-out.pod:23
22146 msgid "Download the home directories from a virtual machine:"
22147 msgstr ""
22148
22149 #. type: verbatim
22150 #: ../fish/virt-copy-out.pod:25
22151 #, no-wrap
22152 msgid ""
22153 " mkdir homes\n"
22154 " virt-copy-out -d MyGuest /home homes\n"
22155 "\n"
22156 msgstr ""
22157
22158 #. type: textblock
22159 #: ../fish/virt-copy-out.pod:30
22160 msgid ""
22161 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22162 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
22163 "are probably better off using guestfish directly."
22164 msgstr ""
22165
22166 #. type: textblock
22167 #: ../fish/virt-copy-out.pod:41
22168 msgid ""
22169 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
22170 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22171 msgstr ""
22172
22173 #. type: textblock
22174 #: ../fish/virt-tar-in.pod:5
22175 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
22176 msgstr ""
22177
22178 #. type: verbatim
22179 #: ../fish/virt-tar-in.pod:9
22180 #, no-wrap
22181 msgid ""
22182 " virt-tar-in -a disk.img data.tar /destination\n"
22183 "\n"
22184 msgstr ""
22185
22186 #. type: verbatim
22187 #: ../fish/virt-tar-in.pod:11
22188 #, no-wrap
22189 msgid ""
22190 " virt-tar-in -d domain data.tar /destination\n"
22191 "\n"
22192 msgstr ""
22193
22194 #. type: verbatim
22195 #: ../fish/virt-tar-in.pod:13
22196 #, no-wrap
22197 msgid ""
22198 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
22199 "\n"
22200 msgstr ""
22201
22202 #. type: textblock
22203 #: ../fish/virt-tar-in.pod:17
22204 msgid ""
22205 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
22206 "causing disk corruption.  The virtual machine must be shut down before you "
22207 "use this command."
22208 msgstr ""
22209
22210 #. type: textblock
22211 #: ../fish/virt-tar-in.pod:23
22212 msgid ""
22213 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
22214 "image or named libvirt domain."
22215 msgstr ""
22216
22217 #. type: textblock
22218 #: ../fish/virt-tar-in.pod:26
22219 msgid ""
22220 "The first parameter is the tar file.  Use C<-> to read the tar file from "
22221 "standard input.  The second parameter is the absolute target directory to "
22222 "unpack into."
22223 msgstr ""
22224
22225 #. type: verbatim
22226 #: ../fish/virt-tar-in.pod:34
22227 #, no-wrap
22228 msgid ""
22229 " virt-tar-in -d MyGuest homes.tar /home\n"
22230 "\n"
22231 msgstr ""
22232
22233 #. type: textblock
22234 #: ../fish/virt-tar-in.pod:38
22235 msgid ""
22236 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22237 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
22238 "probably better off using guestfish directly."
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../fish/virt-tar-in.pod:49
22243 msgid ""
22244 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22245 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
22246 "org/>."
22247 msgstr ""
22248
22249 #. type: textblock
22250 #: ../fish/virt-tar-out.pod:5
22251 msgid ""
22252 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
22253 msgstr ""
22254
22255 #. type: verbatim
22256 #: ../fish/virt-tar-out.pod:9
22257 #, no-wrap
22258 msgid ""
22259 " virt-tar-out -a disk.img /dir files.tar\n"
22260 "\n"
22261 msgstr ""
22262
22263 #. type: verbatim
22264 #: ../fish/virt-tar-out.pod:11
22265 #, no-wrap
22266 msgid ""
22267 " virt-tar-out -d domain /dir files.tar\n"
22268 "\n"
22269 msgstr ""
22270
22271 #. type: verbatim
22272 #: ../fish/virt-tar-out.pod:13
22273 #, no-wrap
22274 msgid ""
22275 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
22276 "\n"
22277 msgstr ""
22278
22279 #. type: textblock
22280 #: ../fish/virt-tar-out.pod:17
22281 msgid ""
22282 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
22283 msgstr ""
22284
22285 #. type: textblock
22286 #: ../fish/virt-tar-out.pod:20
22287 msgid ""
22288 "The first parameter is the absolute path of the virtual machine directory.  "
22289 "The second parameter is the tar file to write.  Use C<-> to write to "
22290 "standard output."
22291 msgstr ""
22292
22293 #. type: textblock
22294 #: ../fish/virt-tar-out.pod:26
22295 msgid "Download the home directories from a guest:"
22296 msgstr ""
22297
22298 #. type: verbatim
22299 #: ../fish/virt-tar-out.pod:28
22300 #, no-wrap
22301 msgid ""
22302 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
22303 "\n"
22304 msgstr ""
22305
22306 #. type: textblock
22307 #: ../fish/virt-tar-out.pod:32
22308 msgid ""
22309 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22310 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
22311 "are probably better off using guestfish directly."
22312 msgstr ""
22313
22314 #. type: textblock
22315 #: ../fish/virt-tar-out.pod:43
22316 msgid ""
22317 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22318 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
22319 msgstr ""
22320
22321 #. type: textblock
22322 #: ../fuse/guestmount.pod:5
22323 msgid ""
22324 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22325 msgstr ""
22326
22327 #. type: verbatim
22328 #: ../fuse/guestmount.pod:9
22329 #, no-wrap
22330 msgid ""
22331 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22332 "\n"
22333 msgstr ""
22334
22335 #. type: verbatim
22336 #: ../fuse/guestmount.pod:11
22337 #, no-wrap
22338 msgid ""
22339 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
22340 "\n"
22341 msgstr ""
22342
22343 #. type: verbatim
22344 #: ../fuse/guestmount.pod:13
22345 #, no-wrap
22346 msgid ""
22347 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
22348 "\n"
22349 msgstr ""
22350
22351 #. type: textblock
22352 #: ../fuse/guestmount.pod:17
22353 msgid ""
22354 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22355 "machines.  If you do this, you risk disk corruption in the VM."
22356 msgstr ""
22357
22358 #. type: textblock
22359 #: ../fuse/guestmount.pod:22
22360 msgid ""
22361 "The guestmount program can be used to mount virtual machine filesystems and "
22362 "other disk images on the host.  It uses libguestfs for access to the guest "
22363 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22364 "a mountable device."
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../fuse/guestmount.pod:27
22369 msgid ""
22370 "Along with other options, you have to give at least one device (I<-a> "
22371 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
22372 "option) or use the I<-i> inspection option or the I<--live> option.  How "
22373 "this works is better explained in the L<guestfish(1)> manual page, or by "
22374 "looking at the examples below."
22375 msgstr ""
22376
22377 #. type: textblock
22378 #: ../fuse/guestmount.pod:33
22379 msgid ""
22380 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22381 "by you, and the filesystem will not be visible to any other users unless you "
22382 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22383 "the filesystem, use the C<fusermount -u> command."
22384 msgstr ""
22385
22386 #. type: textblock
22387 #: ../fuse/guestmount.pod:41
22388 msgid ""
22389 "For a typical Windows guest which has its main filesystem on the first "
22390 "partition:"
22391 msgstr ""
22392
22393 #. type: verbatim
22394 #: ../fuse/guestmount.pod:44
22395 #, no-wrap
22396 msgid ""
22397 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22398 "\n"
22399 msgstr ""
22400
22401 #. type: textblock
22402 #: ../fuse/guestmount.pod:46
22403 msgid ""
22404 "For a typical Linux guest which has a /boot filesystem on the first "
22405 "partition, and the root filesystem on a logical volume:"
22406 msgstr ""
22407
22408 #. type: verbatim
22409 #: ../fuse/guestmount.pod:49
22410 #, no-wrap
22411 msgid ""
22412 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22413 "\n"
22414 msgstr ""
22415
22416 #. type: textblock
22417 #: ../fuse/guestmount.pod:51
22418 msgid "To get libguestfs to detect guest mountpoints for you:"
22419 msgstr ""
22420
22421 #. type: verbatim
22422 #: ../fuse/guestmount.pod:53
22423 #, no-wrap
22424 msgid ""
22425 " guestmount -a guest.img -i --ro /mnt\n"
22426 "\n"
22427 msgstr ""
22428
22429 #. type: textblock
22430 #: ../fuse/guestmount.pod:55
22431 msgid "For a libvirt guest called \"Guest\" you could do:"
22432 msgstr ""
22433
22434 #. type: verbatim
22435 #: ../fuse/guestmount.pod:57
22436 #, no-wrap
22437 msgid ""
22438 " guestmount -d Guest -i --ro /mnt\n"
22439 "\n"
22440 msgstr ""
22441
22442 #. type: textblock
22443 #: ../fuse/guestmount.pod:59
22444 msgid ""
22445 "If you don't know what filesystems are contained in a guest or disk image, "
22446 "use L<virt-filesystems(1)> first:"
22447 msgstr ""
22448
22449 #. type: verbatim
22450 #: ../fuse/guestmount.pod:62
22451 #, no-wrap
22452 msgid ""
22453 " virt-filesystems MyGuest\n"
22454 "\n"
22455 msgstr ""
22456
22457 #. type: textblock
22458 #: ../fuse/guestmount.pod:64
22459 msgid ""
22460 "If you want to trace the libguestfs calls but without excessive debugging "
22461 "information, we recommend:"
22462 msgstr ""
22463
22464 #. type: verbatim
22465 #: ../fuse/guestmount.pod:67
22466 #, no-wrap
22467 msgid ""
22468 " guestmount [...] --trace /mnt\n"
22469 "\n"
22470 msgstr ""
22471
22472 #. type: textblock
22473 #: ../fuse/guestmount.pod:69
22474 msgid "If you want to debug the program, we recommend:"
22475 msgstr ""
22476
22477 #. type: verbatim
22478 #: ../fuse/guestmount.pod:71
22479 #, no-wrap
22480 msgid ""
22481 " guestmount [...] --trace --verbose /mnt\n"
22482 "\n"
22483 msgstr ""
22484
22485 #. type: =head1
22486 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
22487 #: ../resize/virt-resize.pod:621
22488 msgid "NOTES"
22489 msgstr ""
22490
22491 #. type: =head2
22492 #: ../fuse/guestmount.pod:75
22493 msgid "Other users cannot see the filesystem by default"
22494 msgstr ""
22495
22496 #. type: textblock
22497 #: ../fuse/guestmount.pod:77
22498 msgid ""
22499 "If you mount a filesystem as one user (eg. root), then other users will not "
22500 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
22501 "option when mounting:"
22502 msgstr ""
22503
22504 #. type: verbatim
22505 #: ../fuse/guestmount.pod:81
22506 #, no-wrap
22507 msgid ""
22508 " sudo guestmount [...] -o allow_other /mnt\n"
22509 "\n"
22510 msgstr ""
22511
22512 #. type: =head2
22513 #: ../fuse/guestmount.pod:83
22514 msgid "Enabling FUSE"
22515 msgstr ""
22516
22517 #. type: textblock
22518 #: ../fuse/guestmount.pod:85
22519 msgid ""
22520 "On some distros, you may need to add yourself to a special group (eg. "
22521 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
22522 "Debian and derivatives."
22523 msgstr ""
22524
22525 #. type: textblock
22526 #: ../fuse/guestmount.pod:89
22527 msgid ""
22528 "On other distros, no special group is required.  It is not necessary on "
22529 "Fedora or Red Hat Enterprise Linux."
22530 msgstr ""
22531
22532 #. type: textblock
22533 #: ../fuse/guestmount.pod:100
22534 msgid "Add a block device or virtual machine image."
22535 msgstr ""
22536
22537 #. type: =item
22538 #: ../fuse/guestmount.pod:123
22539 msgid "B<--dir-cache-timeout N>"
22540 msgstr ""
22541
22542 #. type: textblock
22543 #: ../fuse/guestmount.pod:125
22544 msgid ""
22545 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22546 "seconds.  The readdir cache [actually, there are several semi-independent "
22547 "caches] is populated after a readdir(2) call with the stat and extended "
22548 "attributes of the files in the directory, in anticipation that they will be "
22549 "requested soon after."
22550 msgstr ""
22551
22552 #. type: textblock
22553 #: ../fuse/guestmount.pod:131
22554 msgid ""
22555 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22556 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22557 "requests, only cache existing ones."
22558 msgstr ""
22559
22560 #. type: textblock
22561 #: ../fuse/guestmount.pod:151
22562 msgid ""
22563 "If you have untrusted raw-format guest disk images, you should use this "
22564 "option to specify the disk format.  This avoids a possible security problem "
22565 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
22566 "guestfs_add_drive_opts>."
22567 msgstr ""
22568
22569 #. type: =item
22570 #: ../fuse/guestmount.pod:156
22571 msgid "B<--fuse-help>"
22572 msgstr ""
22573
22574 #. type: textblock
22575 #: ../fuse/guestmount.pod:158
22576 msgid "Display help on special FUSE options (see I<-o> below)."
22577 msgstr ""
22578
22579 #. type: textblock
22580 #: ../fuse/guestmount.pod:162
22581 msgid "Display brief help and exit."
22582 msgstr ""
22583
22584 #. type: textblock
22585 #: ../fuse/guestmount.pod:186
22586 msgid ""
22587 "Mount the named partition or logical volume on the given mountpoint B<in the "
22588 "guest> (this has nothing to do with mountpoints in the host)."
22589 msgstr ""
22590
22591 #. type: textblock
22592 #: ../fuse/guestmount.pod:189
22593 msgid ""
22594 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22595 "something on C</>."
22596 msgstr ""
22597
22598 #. type: textblock
22599 #: ../fuse/guestmount.pod:206
22600 msgid ""
22601 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22602 "unmounted.  If you specify this option, then we don't attempt to sync the "
22603 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22604 msgstr ""
22605
22606 #. type: =item
22607 #: ../fuse/guestmount.pod:211
22608 msgid "B<-o option>"
22609 msgstr ""
22610
22611 #. type: =item
22612 #: ../fuse/guestmount.pod:213
22613 msgid "B<--option option>"
22614 msgstr ""
22615
22616 #. type: textblock
22617 #: ../fuse/guestmount.pod:215
22618 msgid "Pass extra options to FUSE."
22619 msgstr ""
22620
22621 #. type: textblock
22622 #: ../fuse/guestmount.pod:217
22623 msgid ""
22624 "To get a list of all the extra options supported by FUSE, use the command "
22625 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22626 "of them are a good idea."
22627 msgstr ""
22628
22629 #. type: verbatim
22630 #: ../fuse/guestmount.pod:221
22631 #, no-wrap
22632 msgid ""
22633 " guestmount --fuse-help\n"
22634 "\n"
22635 msgstr ""
22636
22637 #. type: textblock
22638 #: ../fuse/guestmount.pod:223
22639 msgid "Some potentially useful FUSE options:"
22640 msgstr ""
22641
22642 #. type: =item
22643 #: ../fuse/guestmount.pod:227
22644 msgid "B<-o allow_other>"
22645 msgstr ""
22646
22647 #. type: textblock
22648 #: ../fuse/guestmount.pod:229
22649 msgid "Allow other users to see the filesystem."
22650 msgstr ""
22651
22652 #. type: =item
22653 #: ../fuse/guestmount.pod:231
22654 msgid "B<-o attr_timeout=N>"
22655 msgstr ""
22656
22657 #. type: textblock
22658 #: ../fuse/guestmount.pod:233
22659 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22660 msgstr ""
22661
22662 #. type: =item
22663 #: ../fuse/guestmount.pod:235
22664 msgid "B<-o kernel_cache>"
22665 msgstr ""
22666
22667 #. type: textblock
22668 #: ../fuse/guestmount.pod:237
22669 msgid ""
22670 "Allow the kernel to cache files (reduces the number of reads that have to go "
22671 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22672 "afford the extra memory usage."
22673 msgstr ""
22674
22675 #. type: =item
22676 #: ../fuse/guestmount.pod:241
22677 msgid "B<-o uid=N> B<-o gid=N>"
22678 msgstr ""
22679
22680 #. type: textblock
22681 #: ../fuse/guestmount.pod:243
22682 msgid ""
22683 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22684 "the chosen values."
22685 msgstr ""
22686
22687 #. type: textblock
22688 #: ../fuse/guestmount.pod:252
22689 msgid ""
22690 "Add devices and mount everything read-only.  Also disallow writes and make "
22691 "the disk appear read-only to FUSE."
22692 msgstr ""
22693
22694 #. type: textblock
22695 #: ../fuse/guestmount.pod:255
22696 msgid ""
22697 "This is highly recommended if you are not going to edit the guest disk.  If "
22698 "the guest is running and this option is I<not> supplied, then there is a "
22699 "strong risk of disk corruption in the guest.  We try to prevent this from "
22700 "happening, but it is not always possible."
22701 msgstr ""
22702
22703 #. type: textblock
22704 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
22705 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22706 msgstr ""
22707
22708 #. type: textblock
22709 #: ../fuse/guestmount.pod:264
22710 msgid "Enable SELinux support for the guest."
22711 msgstr ""
22712
22713 #. type: textblock
22714 #: ../fuse/guestmount.pod:270
22715 msgid "Enable verbose messages from underlying libguestfs."
22716 msgstr ""
22717
22718 #. type: textblock
22719 #: ../fuse/guestmount.pod:276
22720 msgid "Display the program version and exit."
22721 msgstr ""
22722
22723 #. type: textblock
22724 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22725 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
22726 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22727 msgstr ""
22728
22729 #. type: =item
22730 #: ../fuse/guestmount.pod:289
22731 msgid "B<--trace>"
22732 msgstr ""
22733
22734 #. type: textblock
22735 #: ../fuse/guestmount.pod:291
22736 msgid "Trace libguestfs calls and entry into each FUSE function."
22737 msgstr ""
22738
22739 #. type: textblock
22740 #: ../fuse/guestmount.pod:293
22741 msgid "This also stops the daemon from forking into the background."
22742 msgstr ""
22743
22744 #. type: textblock
22745 #: ../fuse/guestmount.pod:319
22746 msgid ""
22747 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22748 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22749 "net/>."
22750 msgstr ""
22751
22752 #. type: textblock
22753 #: ../fuse/guestmount.pod:334
22754 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22755 msgstr ""
22756
22757 #. type: textblock
22758 #: ../inspector/virt-inspector.pod:5
22759 msgid ""
22760 "virt-inspector - Display operating system version and other information "
22761 "about a virtual machine"
22762 msgstr ""
22763
22764 #. type: verbatim
22765 #: ../inspector/virt-inspector.pod:9
22766 #, no-wrap
22767 msgid ""
22768 " virt-inspector [--options] -d domname\n"
22769 "\n"
22770 msgstr ""
22771
22772 #. type: verbatim
22773 #: ../inspector/virt-inspector.pod:11
22774 #, no-wrap
22775 msgid ""
22776 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22777 "\n"
22778 msgstr ""
22779
22780 #. type: verbatim
22781 #: ../inspector/virt-inspector.pod:15
22782 #, no-wrap
22783 msgid ""
22784 " virt-inspector domname\n"
22785 "\n"
22786 msgstr ""
22787
22788 #. type: verbatim
22789 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22790 #, no-wrap
22791 msgid ""
22792 " virt-inspector disk.img [disk.img ...]\n"
22793 "\n"
22794 msgstr ""
22795
22796 #. type: textblock
22797 #: ../inspector/virt-inspector.pod:21
22798 msgid ""
22799 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22800 "determine the version of the operating system and other information about "
22801 "the virtual machine."
22802 msgstr ""
22803
22804 #. type: textblock
22805 #: ../inspector/virt-inspector.pod:25
22806 msgid "Virt-inspector produces XML output for feeding into other programs."
22807 msgstr ""
22808
22809 #. type: textblock
22810 #: ../inspector/virt-inspector.pod:27
22811 msgid ""
22812 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22813 "the libvirt domain (see: C<virsh list --all>)."
22814 msgstr ""
22815
22816 #. type: textblock
22817 #: ../inspector/virt-inspector.pod:30
22818 msgid ""
22819 "You can also run virt-inspector directly on disk images from a single "
22820 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22821 "has several block devices, in which case you should list several I<-a> "
22822 "options one after another, with the first corresponding to the guest's C</"
22823 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22824 msgstr ""
22825
22826 #. type: textblock
22827 #: ../inspector/virt-inspector.pod:37
22828 msgid ""
22829 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22830 "keys and similar."
22831 msgstr ""
22832
22833 #. type: textblock
22834 #: ../inspector/virt-inspector.pod:40
22835 msgid ""
22836 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22837 "inspect several virtual machines, you have to run virt-inspector several "
22838 "times (for example, from a shell script for-loop)."
22839 msgstr ""
22840
22841 #. type: textblock
22842 #: ../inspector/virt-inspector.pod:45
22843 msgid ""
22844 "Because virt-inspector needs direct access to guest images, it won't "
22845 "normally work over remote libvirt connections."
22846 msgstr ""
22847
22848 #. type: textblock
22849 #: ../inspector/virt-inspector.pod:48
22850 msgid ""
22851 "All of the information available from virt-inspector is also available "
22852 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22853 "The same information can also be fetched using guestfish or via libguestfs "
22854 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22855 "WITH OTHER PROGRAMMING LANGUAGES>)."
22856 msgstr ""
22857
22858 #. type: textblock
22859 #: ../inspector/virt-inspector.pod:81
22860 msgid ""
22861 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22862 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22863 "at all."
22864 msgstr ""
22865
22866 #. type: textblock
22867 #: ../inspector/virt-inspector.pod:94
22868 msgid ""
22869 "When prompting for keys and passphrases, virt-inspector normally turns "
22870 "echoing off so you cannot see what you are typing.  If you are not worried "
22871 "about Tempest attacks and there is no one else in the room you can specify "
22872 "this flag to see what you are typing."
22873 msgstr ""
22874
22875 #. type: textblock
22876 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22877 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22878 #: ../tools/virt-win-reg.pl:144
22879 msgid ""
22880 "Specify the format of disk images given on the command line.  If this is "
22881 "omitted then the format is autodetected from the content of the disk image."
22882 msgstr ""
22883
22884 #. type: textblock
22885 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22886 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22887 #: ../tools/virt-win-reg.pl:148
22888 msgid ""
22889 "If disk images are requested from libvirt, then this program asks libvirt "
22890 "for this information.  In this case, the value of the format parameter is "
22891 "ignored."
22892 msgstr ""
22893
22894 #. type: textblock
22895 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
22896 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:138
22897 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22898 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22899 msgid ""
22900 "If working with untrusted raw-format guest disk images, you should ensure "
22901 "the format is always specified."
22902 msgstr ""
22903
22904 #. type: =item
22905 #: ../inspector/virt-inspector.pod:135
22906 msgid "B<--xpath> query"
22907 msgstr ""
22908
22909 #. type: textblock
22910 #: ../inspector/virt-inspector.pod:137
22911 msgid ""
22912 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22913 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22914 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22915 msgstr ""
22916
22917 #. type: textblock
22918 #: ../inspector/virt-inspector.pod:146
22919 msgid "Previous versions of virt-inspector allowed you to write either:"
22920 msgstr ""
22921
22922 #. type: verbatim
22923 #: ../inspector/virt-inspector.pod:152
22924 #, no-wrap
22925 msgid ""
22926 " virt-inspector guestname\n"
22927 "\n"
22928 msgstr ""
22929
22930 #. type: =head1
22931 #: ../inspector/virt-inspector.pod:160
22932 msgid "XML FORMAT"
22933 msgstr ""
22934
22935 #. type: textblock
22936 #: ../inspector/virt-inspector.pod:162
22937 msgid ""
22938 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22939 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22940 "just an overview."
22941 msgstr ""
22942
22943 #. type: textblock
22944 #: ../inspector/virt-inspector.pod:166
22945 msgid ""
22946 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22947 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22948 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22949 "which is vanishingly rare in real world VMs."
22950 msgstr ""
22951
22952 #. type: =head2
22953 #: ../inspector/virt-inspector.pod:171
22954 msgid "E<lt>operatingsystemE<gt>"
22955 msgstr ""
22956
22957 #. type: textblock
22958 #: ../inspector/virt-inspector.pod:173
22959 msgid ""
22960 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22961 "describe the operating system, its architecture, the descriptive \"product "
22962 "name\" string, the type of OS and so on, as in this example:"
22963 msgstr ""
22964
22965 #. type: verbatim
22966 #: ../inspector/virt-inspector.pod:177
22967 #, no-wrap
22968 msgid ""
22969 " <operatingsystems>\n"
22970 "   <operatingsystem>\n"
22971 "     <root>/dev/sda2</root>\n"
22972 "     <name>windows</name>\n"
22973 "     <arch>i386</arch>\n"
22974 "     <distro>windows</distro>\n"
22975 "     <product_name>Windows 7 Enterprise</product_name>\n"
22976 "     <product_variant>Client</product_variant>\n"
22977 "     <major_version>6</major_version>\n"
22978 "     <minor_version>1</minor_version>\n"
22979 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22980 "     <format>installed</format>\n"
22981 "\n"
22982 msgstr ""
22983
22984 #. type: textblock
22985 #: ../inspector/virt-inspector.pod:190
22986 msgid ""
22987 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22988 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22989 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22990 "architecture.  The other fields are fairly self-explanatory, but because "
22991 "these fields are taken directly from the libguestfs inspection API you can "
22992 "find precise information from L<guestfs(3)/INSPECTION>."
22993 msgstr ""
22994
22995 #. type: textblock
22996 #: ../inspector/virt-inspector.pod:198
22997 msgid ""
22998 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22999 "of view of libguestfs (block devices may have completely different names "
23000 "inside the VM itself)."
23001 msgstr ""
23002
23003 #. type: =head2
23004 #: ../inspector/virt-inspector.pod:202
23005 msgid "E<lt>mountpointsE<gt>"
23006 msgstr ""
23007
23008 #. type: textblock
23009 #: ../inspector/virt-inspector.pod:204
23010 msgid ""
23011 "Un*x-like guests typically have multiple filesystems which are mounted at "
23012 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
23013 "element which looks like this:"
23014 msgstr ""
23015
23016 #. type: verbatim
23017 #: ../inspector/virt-inspector.pod:208
23018 #, no-wrap
23019 msgid ""
23020 " <operatingsystems>\n"
23021 "   <operatingsystem>\n"
23022 "     ...\n"
23023 "     <mountpoints>\n"
23024 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
23025 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
23026 "     </mountpoints>\n"
23027 "\n"
23028 msgstr ""
23029
23030 #. type: textblock
23031 #: ../inspector/virt-inspector.pod:216
23032 msgid ""
23033 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
23034 "and may have completely different names inside the guest.  Only mountable "
23035 "filesystems appear in this list, not things like swap devices."
23036 msgstr ""
23037
23038 #. type: =head2
23039 #: ../inspector/virt-inspector.pod:221
23040 msgid "E<lt>filesystemsE<gt>"
23041 msgstr ""
23042
23043 #. type: textblock
23044 #: ../inspector/virt-inspector.pod:223
23045 msgid ""
23046 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
23047 "filesystems belonging to the guest, including swap and empty partitions.  "
23048 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
23049 "this OS or shared with this OS and other OSes)."
23050 msgstr ""
23051
23052 #. type: textblock
23053 #: ../inspector/virt-inspector.pod:229
23054 msgid "You might see something like this:"
23055 msgstr ""
23056
23057 #. type: verbatim
23058 #: ../inspector/virt-inspector.pod:231
23059 #, no-wrap
23060 msgid ""
23061 " <operatingsystems>\n"
23062 "   <operatingsystem>\n"
23063 "     ...\n"
23064 "     <filesystems>\n"
23065 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23066 "         <type>ext4</type>\n"
23067 "         <label>Fedora-13-x86_64</label>\n"
23068 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
23069 "       </filesystem>\n"
23070 "\n"
23071 msgstr ""
23072
23073 #. type: textblock
23074 #: ../inspector/virt-inspector.pod:241
23075 msgid ""
23076 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
23077 "the label, and the UUID."
23078 msgstr ""
23079
23080 #. type: =head2
23081 #: ../inspector/virt-inspector.pod:244
23082 msgid "E<lt>applicationsE<gt>"
23083 msgstr ""
23084
23085 #. type: textblock
23086 #: ../inspector/virt-inspector.pod:246
23087 msgid ""
23088 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
23089 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
23090 "machine."
23091 msgstr ""
23092
23093 #. type: textblock
23094 #: ../inspector/virt-inspector.pod:250
23095 msgid ""
23096 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
23097 "Typical values would be C<rpm> and C<deb>."
23098 msgstr ""
23099
23100 #. type: textblock
23101 #: ../inspector/virt-inspector.pod:253
23102 msgid ""
23103 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
23104 "Typical values include C<yum>, C<up2date> and C<apt>"
23105 msgstr ""
23106
23107 #. type: textblock
23108 #: ../inspector/virt-inspector.pod:256
23109 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
23110 msgstr ""
23111
23112 #. type: verbatim
23113 #: ../inspector/virt-inspector.pod:259
23114 #, no-wrap
23115 msgid ""
23116 " <operatingsystems>\n"
23117 "   <operatingsystem>\n"
23118 "     ...\n"
23119 "     <applications>\n"
23120 "       <application>\n"
23121 "         <name>coreutils</name>\n"
23122 "         <version>8.5</version>\n"
23123 "         <release>1</release>\n"
23124 "       </application>\n"
23125 "\n"
23126 msgstr ""
23127
23128 #. type: textblock
23129 #: ../inspector/virt-inspector.pod:269
23130 msgid ""
23131 "The version and release fields may not be available for some types guests.  "
23132 "Other fields are possible, see L<guestfs(3)/"
23133 "guestfs_inspect_list_applications>."
23134 msgstr ""
23135
23136 #. type: =head2
23137 #: ../inspector/virt-inspector.pod:273
23138 msgid "E<lt>drive_mappingsE<gt>"
23139 msgstr ""
23140
23141 #. type: textblock
23142 #: ../inspector/virt-inspector.pod:275
23143 msgid ""
23144 "For operating systems like Windows which use drive letters, virt-inspector "
23145 "is able to find out how drive letters map to filesystems."
23146 msgstr ""
23147
23148 #. type: verbatim
23149 #: ../inspector/virt-inspector.pod:279
23150 #, no-wrap
23151 msgid ""
23152 " <operatingsystems>\n"
23153 "   <operatingsystem>\n"
23154 "     ...\n"
23155 "     <drive_mappings>\n"
23156 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
23157 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
23158 "     </drive_mappings>\n"
23159 "\n"
23160 msgstr ""
23161
23162 #. type: textblock
23163 #: ../inspector/virt-inspector.pod:287
23164 msgid ""
23165 "In the example above, drive C maps to the filesystem on the second partition "
23166 "on the first disk, and drive E maps to the filesystem on the first partition "
23167 "on the second disk."
23168 msgstr ""
23169
23170 #. type: textblock
23171 #: ../inspector/virt-inspector.pod:291
23172 msgid ""
23173 "Note that this only covers permanent local filesystem mappings, not things "
23174 "like network shares.  Furthermore NTFS volume mount points may not be listed "
23175 "here."
23176 msgstr ""
23177
23178 #. type: =head2
23179 #: ../inspector/virt-inspector.pod:295
23180 msgid "E<lt>iconE<gt>"
23181 msgstr ""
23182
23183 #. type: textblock
23184 #: ../inspector/virt-inspector.pod:297
23185 msgid ""
23186 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
23187 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
23188 "very large and high quality."
23189 msgstr ""
23190
23191 #. type: verbatim
23192 #: ../inspector/virt-inspector.pod:301
23193 #, no-wrap
23194 msgid ""
23195 " <operatingsystems>\n"
23196 "   <operatingsystem>\n"
23197 "     ...\n"
23198 "     <icon>\n"
23199 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
23200 "       [... many lines of base64 data ...]\n"
23201 "     </icon>\n"
23202 "\n"
23203 msgstr ""
23204
23205 #. type: textblock
23206 #: ../inspector/virt-inspector.pod:309
23207 msgid ""
23208 "To display the icon, you have to extract it and convert the base64 data back "
23209 "to a binary file.  Use an XPath query or simply an editor to extract the "
23210 "data, then use the coreutils L<base64(1)> program to do the conversion back "
23211 "to a PNG file:"
23212 msgstr ""
23213
23214 #. type: verbatim
23215 #: ../inspector/virt-inspector.pod:314
23216 #, no-wrap
23217 msgid ""
23218 " base64 -i -d < icon.data > icon.png\n"
23219 "\n"
23220 msgstr ""
23221
23222 #. type: =head2
23223 #: ../inspector/virt-inspector.pod:316
23224 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
23225 msgstr ""
23226
23227 #. type: textblock
23228 #: ../inspector/virt-inspector.pod:318
23229 msgid ""
23230 "Virt-inspector can detect some operating system installers on install disks, "
23231 "live CDs, bootable USB keys and more."
23232 msgstr ""
23233
23234 #. type: textblock
23235 #: ../inspector/virt-inspector.pod:321
23236 msgid ""
23237 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
23238 "fields may be present to indicate a live CD, network installer, or one part "
23239 "of a multipart CD.  For example:"
23240 msgstr ""
23241
23242 #. type: verbatim
23243 #: ../inspector/virt-inspector.pod:325
23244 #, no-wrap
23245 msgid ""
23246 " <operatingsystems>\n"
23247 "   <operatingsystem>\n"
23248 "     <root>/dev/sda</root>\n"
23249 "     <name>linux</name>\n"
23250 "     <arch>i386</arch>\n"
23251 "     <distro>ubuntu</distro>\n"
23252 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
23253 "     <major_version>10</major_version>\n"
23254 "     <minor_version>10</minor_version>\n"
23255 "     <format>installer</format>\n"
23256 "     <live/>\n"
23257 "\n"
23258 msgstr ""
23259
23260 #. type: =head1
23261 #: ../inspector/virt-inspector.pod:337
23262 msgid "XPATH QUERIES"
23263 msgstr ""
23264
23265 #. type: textblock
23266 #: ../inspector/virt-inspector.pod:339
23267 msgid ""
23268 "Virt-inspector includes built in support for running XPath queries.  The "
23269 "reason for including XPath support directly in virt-inspector is simply that "
23270 "there are no good and widely available command line programs that can do "
23271 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
23272 "available on Red Hat Enterprise Linux."
23273 msgstr ""
23274
23275 #. type: textblock
23276 #: ../inspector/virt-inspector.pod:346
23277 msgid ""
23278 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
23279 "mode, virt-inspector simply reads XML from stdin and outputs the query "
23280 "result on stdout.  All other inspection features are disabled in this mode."
23281 msgstr ""
23282
23283 #. type: verbatim
23284 #: ../inspector/virt-inspector.pod:353
23285 #, no-wrap
23286 msgid ""
23287 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
23288 " <filesystems>\n"
23289 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23290 "        <type>ext4</type>\n"
23291 " [...]\n"
23292 "\n"
23293 msgstr ""
23294
23295 #. type: verbatim
23296 #: ../inspector/virt-inspector.pod:359
23297 #, no-wrap
23298 msgid ""
23299 " $ virt-inspector -d Guest | \\\n"
23300 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
23301 " ext4\n"
23302 "\n"
23303 msgstr ""
23304
23305 #. type: verbatim
23306 #: ../inspector/virt-inspector.pod:363
23307 #, no-wrap
23308 msgid ""
23309 " $ virt-inspector -d Guest | \\\n"
23310 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
23311 " [displays the guest icon, if there is one]\n"
23312 "\n"
23313 msgstr ""
23314
23315 #. type: =head1
23316 #: ../inspector/virt-inspector.pod:374
23317 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
23318 msgstr ""
23319
23320 #. type: textblock
23321 #: ../inspector/virt-inspector.pod:376
23322 msgid ""
23323 "Early versions of libguestfs shipped with a different virt-inspector program "
23324 "written in Perl (the current version is written in C).  The XML output of "
23325 "the Perl virt-inspector was different and it could also output in other "
23326 "formats like text."
23327 msgstr ""
23328
23329 #. type: textblock
23330 #: ../inspector/virt-inspector.pod:381
23331 msgid ""
23332 "The old virt-inspector is no longer supported or shipped with libguestfs."
23333 msgstr ""
23334
23335 #. type: textblock
23336 #: ../inspector/virt-inspector.pod:384
23337 msgid ""
23338 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
23339 "versions of virt-inspector with different names:"
23340 msgstr ""
23341
23342 #. type: verbatim
23343 #: ../inspector/virt-inspector.pod:387
23344 #, no-wrap
23345 msgid ""
23346 " virt-inspector     Old Perl version.\n"
23347 " virt-inspector2    New C version.\n"
23348 "\n"
23349 msgstr ""
23350
23351 #. type: textblock
23352 #: ../inspector/virt-inspector.pod:397
23353 msgid ""
23354 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
23355 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
23356 msgstr ""
23357
23358 #. type: textblock
23359 #: ../inspector/virt-inspector.pod:414
23360 msgid "Matthew Booth L<mbooth@redhat.com>"
23361 msgstr ""
23362
23363 #. type: textblock
23364 #: ../java/examples/guestfs-java.pod:5
23365 msgid "guestfs-java - How to use libguestfs from Java"
23366 msgstr ""
23367
23368 #. type: verbatim
23369 #: ../java/examples/guestfs-java.pod:9
23370 #, no-wrap
23371 msgid ""
23372 " import com.redhat.et.libguestfs.*;\n"
23373 " \n"
23374 msgstr ""
23375
23376 #. type: verbatim
23377 #: ../java/examples/guestfs-java.pod:11
23378 #, no-wrap
23379 msgid ""
23380 " GuestFS g = new GuestFS ();\n"
23381 " g.add_drive_opts (\"disk.img\", null);\n"
23382 " g.launch ();\n"
23383 "\n"
23384 msgstr ""
23385
23386 #. type: textblock
23387 #: ../java/examples/guestfs-java.pod:17
23388 msgid ""
23389 "This manual page documents how to call libguestfs from the Java programming "
23390 "language.  This page just documents the differences from the C API and gives "
23391 "some examples.  If you are not familiar with using libguestfs, you also need "
23392 "to read L<guestfs(3)>."
23393 msgstr ""
23394
23395 #. type: =head2
23396 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
23397 msgid "CLOSING THE HANDLE"
23398 msgstr ""
23399
23400 #. type: textblock
23401 #: ../java/examples/guestfs-java.pod:24
23402 msgid ""
23403 "The handle is closed when it is reaped by the garbage collector.  Because "
23404 "libguestfs handles include a lot of state, it is also possible to close (and "
23405 "hence free) them explicitly by calling the C<close> method."
23406 msgstr ""
23407
23408 #. type: =head2
23409 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
23410 #: ../python/examples/guestfs-python.pod:21
23411 #: ../ruby/examples/guestfs-ruby.pod:22
23412 msgid "EXCEPTIONS"
23413 msgstr ""
23414
23415 #. type: textblock
23416 #: ../java/examples/guestfs-java.pod:31
23417 msgid ""
23418 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
23419 "exception.  This has a single parameter which is the error message (a "
23420 "C<String>)."
23421 msgstr ""
23422
23423 #. type: textblock
23424 #: ../java/examples/guestfs-java.pod:35
23425 msgid "Calling any method on a closed handle raises the same exception."
23426 msgstr ""
23427
23428 #. type: textblock
23429 #: ../java/examples/guestfs-java.pod:47
23430 msgid ""
23431 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
23432 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23433 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23434 msgstr ""
23435
23436 #. type: textblock
23437 #: ../ocaml/examples/guestfs-ocaml.pod:5
23438 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
23439 msgstr ""
23440
23441 #. type: textblock
23442 #: ../ocaml/examples/guestfs-ocaml.pod:9
23443 msgid "Module style:"
23444 msgstr ""
23445
23446 #. type: verbatim
23447 #: ../ocaml/examples/guestfs-ocaml.pod:11
23448 #, no-wrap
23449 msgid ""
23450 " let g = Guestfs.create () in\n"
23451 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23452 " Guestfs.launch g;\n"
23453 "\n"
23454 msgstr ""
23455
23456 #. type: textblock
23457 #: ../ocaml/examples/guestfs-ocaml.pod:15
23458 msgid "Object-oriented style:"
23459 msgstr ""
23460
23461 #. type: verbatim
23462 #: ../ocaml/examples/guestfs-ocaml.pod:17
23463 #, no-wrap
23464 msgid ""
23465 " let g = new Guestfs.guestfs () in\n"
23466 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23467 " g#launch ();\n"
23468 "\n"
23469 msgstr ""
23470
23471 #. type: verbatim
23472 #: ../ocaml/examples/guestfs-ocaml.pod:21
23473 #, no-wrap
23474 msgid ""
23475 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
23476 "or:\n"
23477 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
23478 "\n"
23479 msgstr ""
23480
23481 #. type: textblock
23482 #: ../ocaml/examples/guestfs-ocaml.pod:27
23483 msgid ""
23484 "This manual page documents how to call libguestfs from the OCaml programming "
23485 "language.  This page just documents the differences from the C API and gives "
23486 "some examples.  If you are not familiar with using libguestfs, you also need "
23487 "to read L<guestfs(3)>."
23488 msgstr ""
23489
23490 #. type: =head2
23491 #: ../ocaml/examples/guestfs-ocaml.pod:32
23492 msgid "PROGRAMMING STYLES"
23493 msgstr ""
23494
23495 #. type: textblock
23496 #: ../ocaml/examples/guestfs-ocaml.pod:34
23497 msgid ""
23498 "There are two different programming styles supported by the OCaml bindings.  "
23499 "You can use a module style, with each C function mapped to an OCaml function:"
23500 msgstr ""
23501
23502 #. type: verbatim
23503 #: ../ocaml/examples/guestfs-ocaml.pod:38
23504 #, no-wrap
23505 msgid ""
23506 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
23507 "\n"
23508 msgstr ""
23509
23510 #. type: textblock
23511 #: ../ocaml/examples/guestfs-ocaml.pod:40
23512 msgid "becomes:"
23513 msgstr ""
23514
23515 #. type: verbatim
23516 #: ../ocaml/examples/guestfs-ocaml.pod:42
23517 #, no-wrap
23518 msgid ""
23519 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
23520 "\n"
23521 msgstr ""
23522
23523 #. type: textblock
23524 #: ../ocaml/examples/guestfs-ocaml.pod:44
23525 msgid ""
23526 "Alternately you can use an object-oriented style, calling methods on the "
23527 "class C<Guestfs.guestfs>:"
23528 msgstr ""
23529
23530 #. type: verbatim
23531 #: ../ocaml/examples/guestfs-ocaml.pod:47
23532 #, no-wrap
23533 msgid ""
23534 " method set_verbose : bool -> unit\n"
23535 "\n"
23536 msgstr ""
23537
23538 #. type: textblock
23539 #: ../ocaml/examples/guestfs-ocaml.pod:49
23540 msgid ""
23541 "The object-oriented style is usually briefer, and the minor performance "
23542 "penalty isn't noticable in the general overhead of performing libguestfs "
23543 "functions."
23544 msgstr ""
23545
23546 #. type: textblock
23547 #: ../ocaml/examples/guestfs-ocaml.pod:55
23548 msgid ""
23549 "The handle is closed when it is reaped by the garbage collector.  Because "
23550 "libguestfs handles include a lot of state, it is also possible to close (and "
23551 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23552 "method."
23553 msgstr ""
23554
23555 #. type: textblock
23556 #: ../ocaml/examples/guestfs-ocaml.pod:62
23557 msgid ""
23558 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23559 "exception.  This has a single parameter which is the error message (a "
23560 "string)."
23561 msgstr ""
23562
23563 #. type: textblock
23564 #: ../ocaml/examples/guestfs-ocaml.pod:66
23565 msgid ""
23566 "Calling any function/method on a closed handle raises C<Guestfs."
23567 "Handle_closed>.  The single parameter is the name of the function that you "
23568 "called."
23569 msgstr ""
23570
23571 #. type: textblock
23572 #: ../ocaml/examples/guestfs-ocaml.pod:80
23573 msgid ""
23574 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23575 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23576 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23577 msgstr ""
23578
23579 #. type: textblock
23580 #: ../perl/examples/guestfs-perl.pod:5
23581 msgid "guestfs-perl - How to use libguestfs from Perl"
23582 msgstr ""
23583
23584 #. type: verbatim
23585 #: ../perl/examples/guestfs-perl.pod:9
23586 #, no-wrap
23587 msgid ""
23588 " use Sys::Guestfs;\n"
23589 " \n"
23590 msgstr ""
23591
23592 #. type: verbatim
23593 #: ../perl/examples/guestfs-perl.pod:11
23594 #, no-wrap
23595 msgid ""
23596 " my $h = Sys::Guestfs->new ();\n"
23597 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23598 " $h->launch ();\n"
23599 " $h->mount_options ('', '/dev/sda1', '/');\n"
23600 " $h->touch ('/hello');\n"
23601 " $h->sync ();\n"
23602 "\n"
23603 msgstr ""
23604
23605 #. type: textblock
23606 #: ../perl/examples/guestfs-perl.pod:20
23607 msgid ""
23608 "This manual page documents how to call libguestfs from the Perl programming "
23609 "language.  This page just documents the differences from the C API and gives "
23610 "some examples.  If you are not familiar with using libguestfs, you also need "
23611 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23612 msgstr ""
23613
23614 #. type: =head2
23615 #: ../perl/examples/guestfs-perl.pod:26
23616 msgid "ERRORS"
23617 msgstr ""
23618
23619 #. type: textblock
23620 #: ../perl/examples/guestfs-perl.pod:28
23621 msgid ""
23622 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23623 ">)."
23624 msgstr ""
23625
23626 #. type: textblock
23627 #: ../perl/examples/guestfs-perl.pod:41
23628 msgid ""
23629 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23630 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23631 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23632 msgstr ""
23633
23634 #. type: textblock
23635 #: ../python/examples/guestfs-python.pod:5
23636 msgid "guestfs-python - How to use libguestfs from Python"
23637 msgstr ""
23638
23639 #. type: verbatim
23640 #: ../python/examples/guestfs-python.pod:9
23641 #, no-wrap
23642 msgid ""
23643 " import guestfs\n"
23644 " g = guestfs.GuestFS ()\n"
23645 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23646 " g.launch\n"
23647 "\n"
23648 msgstr ""
23649
23650 #. type: textblock
23651 #: ../python/examples/guestfs-python.pod:16
23652 msgid ""
23653 "This manual page documents how to call libguestfs from the Python "
23654 "programming language.  This page just documents the differences from the C "
23655 "API and gives some examples.  If you are not familiar with using libguestfs, "
23656 "you also need to read L<guestfs(3)>."
23657 msgstr ""
23658
23659 #. type: textblock
23660 #: ../python/examples/guestfs-python.pod:23
23661 msgid ""
23662 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23663 "single string argument which is the error message."
23664 msgstr ""
23665
23666 #. type: =head2
23667 #: ../python/examples/guestfs-python.pod:26
23668 msgid "MORE DOCUMENTATION"
23669 msgstr ""
23670
23671 #. type: textblock
23672 #: ../python/examples/guestfs-python.pod:28
23673 msgid "Type:"
23674 msgstr ""
23675
23676 #. type: verbatim
23677 #: ../python/examples/guestfs-python.pod:30
23678 #, no-wrap
23679 msgid ""
23680 " $ python\n"
23681 " >>> import guestfs\n"
23682 " >>> help (guestfs)\n"
23683 "\n"
23684 msgstr ""
23685
23686 #. type: textblock
23687 #: ../python/examples/guestfs-python.pod:44
23688 msgid ""
23689 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23690 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23691 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23692 msgstr ""
23693
23694 #. type: textblock
23695 #: ../rescue/virt-rescue.pod:5
23696 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23697 msgstr ""
23698
23699 #. type: verbatim
23700 #: ../rescue/virt-rescue.pod:9
23701 #, no-wrap
23702 msgid ""
23703 " virt-rescue [--options] -d domname\n"
23704 "\n"
23705 msgstr ""
23706
23707 #. type: verbatim
23708 #: ../rescue/virt-rescue.pod:11
23709 #, no-wrap
23710 msgid ""
23711 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23712 "\n"
23713 msgstr ""
23714
23715 #. type: verbatim
23716 #: ../rescue/virt-rescue.pod:13
23717 #, no-wrap
23718 msgid ""
23719 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
23720 "\n"
23721 msgstr ""
23722
23723 #. type: verbatim
23724 #: ../rescue/virt-rescue.pod:17
23725 #, no-wrap
23726 msgid ""
23727 " virt-rescue [--options] domname\n"
23728 "\n"
23729 msgstr ""
23730
23731 #. type: verbatim
23732 #: ../rescue/virt-rescue.pod:19
23733 #, no-wrap
23734 msgid ""
23735 " virt-rescue [--options] disk.img [disk.img ...]\n"
23736 "\n"
23737 msgstr ""
23738
23739 #. type: textblock
23740 #: ../rescue/virt-rescue.pod:23
23741 msgid ""
23742 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23743 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23744 "you from doing this, but doesn't catch all cases."
23745 msgstr ""
23746
23747 #. type: textblock
23748 #: ../rescue/virt-rescue.pod:27
23749 msgid ""
23750 "However if you use the I<--ro> (read only) option, then you can attach a "
23751 "shell to a live virtual machine.  The results might be strange or "
23752 "inconsistent at times but you won't get disk corruption."
23753 msgstr ""
23754
23755 #. type: textblock
23756 #: ../rescue/virt-rescue.pod:33
23757 msgid ""
23758 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23759 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23760 "recovery tools which you can use to examine or rescue a virtual machine or "
23761 "disk image."
23762 msgstr ""
23763
23764 #. type: textblock
23765 #: ../rescue/virt-rescue.pod:38
23766 msgid ""
23767 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23768 "on disk image(s):"
23769 msgstr ""
23770
23771 #. type: verbatim
23772 #: ../rescue/virt-rescue.pod:41
23773 #, no-wrap
23774 msgid ""
23775 " virt-rescue -d GuestName\n"
23776 "\n"
23777 msgstr ""
23778
23779 #. type: verbatim
23780 #: ../rescue/virt-rescue.pod:43
23781 #, no-wrap
23782 msgid ""
23783 " virt-rescue --ro -a /path/to/disk.img\n"
23784 "\n"
23785 msgstr ""
23786
23787 #. type: verbatim
23788 #: ../rescue/virt-rescue.pod:45
23789 #, no-wrap
23790 msgid ""
23791 " virt-rescue -a /dev/sdc\n"
23792 "\n"
23793 msgstr ""
23794
23795 #. type: textblock
23796 #: ../rescue/virt-rescue.pod:47
23797 msgid "For live VMs you I<must> use the --ro option."
23798 msgstr ""
23799
23800 #. type: textblock
23801 #: ../rescue/virt-rescue.pod:49
23802 msgid ""
23803 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23804 "in an interactive bash shell where you can use many ordinary Linux "
23805 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23806 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23807 "is an empty directory called C</sysroot> where you can mount filesystems."
23808 msgstr ""
23809
23810 #. type: textblock
23811 #: ../rescue/virt-rescue.pod:56
23812 msgid ""
23813 "You can get virt-rescue to suggest mount commands for you by using the I<--"
23814 "suggest> option (in another terminal):"
23815 msgstr ""
23816
23817 #. type: verbatim
23818 #: ../rescue/virt-rescue.pod:59
23819 #, no-wrap
23820 msgid ""
23821 " $ virt-rescue --suggest -d Fedora15\n"
23822 " Inspecting the virtual machine or disk image ...\n"
23823 " \n"
23824 msgstr ""
23825
23826 #. type: verbatim
23827 #: ../rescue/virt-rescue.pod:62
23828 #, no-wrap
23829 msgid ""
23830 " This disk contains one or more operating systems.  You can use these\n"
23831 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23832 " filesystems.\n"
23833 " \n"
23834 msgstr ""
23835
23836 #. type: verbatim
23837 #: ../rescue/virt-rescue.pod:66
23838 #, no-wrap
23839 msgid ""
23840 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23841 " # type: linux, distro: fedora, version: 15.0\n"
23842 " # Fedora release 15 (Lovelock)\n"
23843 " \n"
23844 msgstr ""
23845
23846 #. type: verbatim
23847 #: ../rescue/virt-rescue.pod:70
23848 #, no-wrap
23849 msgid ""
23850 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23851 " mount /dev/vda1 /sysroot/boot\n"
23852 " mount --bind /dev /sysroot/dev\n"
23853 " mount --bind /dev/pts /sysroot/dev/pts\n"
23854 " mount --bind /proc /sysroot/proc\n"
23855 " mount --bind /sys /sysroot/sys\n"
23856 "\n"
23857 msgstr ""
23858
23859 #. type: textblock
23860 #: ../rescue/virt-rescue.pod:77
23861 msgid ""
23862 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23863 "(with L<parted(8)>) and mount them by hand:"
23864 msgstr ""
23865
23866 #. type: verbatim
23867 #: ../rescue/virt-rescue.pod:80
23868 #, no-wrap
23869 msgid ""
23870 " ><rescue> lvs\n"
23871 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23872 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23873 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23874 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23875 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23876 " ><rescue> ls /sysroot\n"
23877 "\n"
23878 msgstr ""
23879
23880 #. type: textblock
23881 #: ../rescue/virt-rescue.pod:88
23882 msgid ""
23883 "Another command to list available filesystems is L<virt-filesystems(1)>."
23884 msgstr ""
23885
23886 #. type: textblock
23887 #: ../rescue/virt-rescue.pod:91
23888 msgid ""
23889 "To run commands in a Linux guest (for example, grub), you should chroot into "
23890 "the /sysroot directory first:"
23891 msgstr ""
23892
23893 #. type: verbatim
23894 #: ../rescue/virt-rescue.pod:94
23895 #, no-wrap
23896 msgid ""
23897 " ><rescue> chroot /sysroot\n"
23898 "\n"
23899 msgstr ""
23900
23901 #. type: textblock
23902 #: ../rescue/virt-rescue.pod:98
23903 msgid ""
23904 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23905 "virtual machine.  For example you can use it on a blank file if you want to "
23906 "partition that file (although we would recommend using L<guestfish(1)> "
23907 "instead as it is more suitable for this purpose).  You can even use virt-"
23908 "rescue on things like SD cards."
23909 msgstr ""
23910
23911 #. type: textblock
23912 #: ../rescue/virt-rescue.pod:104
23913 msgid ""
23914 "Virt-rescue does not require root.  You only need to run it as root if you "
23915 "need root to open the disk image."
23916 msgstr ""
23917
23918 #. type: textblock
23919 #: ../rescue/virt-rescue.pod:107
23920 msgid ""
23921 "This tool is just designed for quick interactive hacking on a virtual "
23922 "machine.  For more structured access to a virtual machine disk image, you "
23923 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23924 "make scripted changes to guests, use L<guestfish(1)>."
23925 msgstr ""
23926
23927 #. type: =item
23928 #: ../rescue/virt-rescue.pod:131
23929 msgid "B<--append kernelopts>"
23930 msgstr ""
23931
23932 #. type: textblock
23933 #: ../rescue/virt-rescue.pod:133
23934 msgid "Pass additional options to the rescue kernel."
23935 msgstr ""
23936
23937 #. type: verbatim
23938 #: ../rescue/virt-rescue.pod:163
23939 #, no-wrap
23940 msgid ""
23941 " virt-rescue --format=raw -a disk.img\n"
23942 "\n"
23943 msgstr ""
23944
23945 #. type: verbatim
23946 #: ../rescue/virt-rescue.pod:167
23947 #, no-wrap
23948 msgid ""
23949 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23950 "\n"
23951 msgstr ""
23952
23953 #. type: =item
23954 #: ../rescue/virt-rescue.pod:176
23955 msgid "B<-m MB>"
23956 msgstr ""
23957
23958 #. type: =item
23959 #: ../rescue/virt-rescue.pod:178
23960 msgid "B<--memsize MB>"
23961 msgstr ""
23962
23963 #. type: textblock
23964 #: ../rescue/virt-rescue.pod:180
23965 msgid ""
23966 "Change the amount of memory allocated to the rescue system.  The default is "
23967 "set by libguestfs and is small but adequate for running system tools.  The "
23968 "occasional program might need more memory.  The parameter is specified in "
23969 "megabytes."
23970 msgstr ""
23971
23972 #. type: =item
23973 #: ../rescue/virt-rescue.pod:185
23974 msgid "B<--network>"
23975 msgstr ""
23976
23977 #. type: textblock
23978 #: ../rescue/virt-rescue.pod:187
23979 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23980 msgstr ""
23981
23982 #. type: textblock
23983 #: ../rescue/virt-rescue.pod:193
23984 msgid "Open the image read-only."
23985 msgstr ""
23986
23987 #. type: textblock
23988 #: ../rescue/virt-rescue.pod:203
23989 msgid ""
23990 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23991 "SELINUX> before using this option."
23992 msgstr ""
23993
23994 #. type: =item
23995 #: ../rescue/virt-rescue.pod:206
23996 msgid "B<--smp> N"
23997 msgstr ""
23998
23999 #. type: textblock
24000 #: ../rescue/virt-rescue.pod:208
24001 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
24002 msgstr ""
24003
24004 #. type: =item
24005 #: ../rescue/virt-rescue.pod:210
24006 msgid "B<--suggest>"
24007 msgstr ""
24008
24009 #. type: textblock
24010 #: ../rescue/virt-rescue.pod:212
24011 msgid ""
24012 "Inspect the disk image and suggest what mount commands should be used to "
24013 "mount the disks.  You should use the I<--suggest> option in a second "
24014 "terminal, then paste the commands into another virt-rescue."
24015 msgstr ""
24016
24017 #. type: textblock
24018 #: ../rescue/virt-rescue.pod:216
24019 msgid ""
24020 "This option implies I<--ro> and is safe to use even if the guest is up or if "
24021 "another virt-rescue is running."
24022 msgstr ""
24023
24024 #. type: textblock
24025 #: ../rescue/virt-rescue.pod:235
24026 msgid ""
24027 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
24028 "are done read-write."
24029 msgstr ""
24030
24031 #. type: textblock
24032 #: ../rescue/virt-rescue.pod:248
24033 msgid "Previous versions of virt-rescue allowed you to write either:"
24034 msgstr ""
24035
24036 #. type: verbatim
24037 #: ../rescue/virt-rescue.pod:250
24038 #, no-wrap
24039 msgid ""
24040 " virt-rescue disk.img [disk.img ...]\n"
24041 "\n"
24042 msgstr ""
24043
24044 #. type: verbatim
24045 #: ../rescue/virt-rescue.pod:254
24046 #, no-wrap
24047 msgid ""
24048 " virt-rescue guestname\n"
24049 "\n"
24050 msgstr ""
24051
24052 #. type: =head1
24053 #: ../rescue/virt-rescue.pod:262
24054 msgid "NETWORK"
24055 msgstr ""
24056
24057 #. type: textblock
24058 #: ../rescue/virt-rescue.pod:264
24059 msgid ""
24060 "Adding the I<--network> option enables QEMU user networking in the rescue "
24061 "appliance.  There are some differences between user networking and ordinary "
24062 "networking:"
24063 msgstr ""
24064
24065 #. type: =item
24066 #: ../rescue/virt-rescue.pod:270
24067 msgid "ping does not work"
24068 msgstr ""
24069
24070 #. type: textblock
24071 #: ../rescue/virt-rescue.pod:272
24072 msgid ""
24073 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
24074 "send the ping packets, and because virt-rescue must be able to run as non-"
24075 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
24076 "The ping command will appear to resolve addresses but will not be able to "
24077 "send or receive any packets.  This does not mean that the network is not "
24078 "working."
24079 msgstr ""
24080
24081 #. type: =item
24082 #: ../rescue/virt-rescue.pod:279
24083 msgid "cannot receive connections"
24084 msgstr ""
24085
24086 #. type: textblock
24087 #: ../rescue/virt-rescue.pod:281
24088 msgid "QEMU user networking cannot receive incoming connections."
24089 msgstr ""
24090
24091 #. type: =item
24092 #: ../rescue/virt-rescue.pod:283
24093 msgid "making TCP connections"
24094 msgstr ""
24095
24096 #. type: textblock
24097 #: ../rescue/virt-rescue.pod:285
24098 msgid ""
24099 "The virt-rescue appliance needs to be small and so does not include many "
24100 "network tools.  In particular there is no L<telnet(1)> command.  You can "
24101 "make TCP connections from the shell using the magical C</dev/tcp/"
24102 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
24103 msgstr ""
24104
24105 #. type: verbatim
24106 #: ../rescue/virt-rescue.pod:290
24107 #, no-wrap
24108 msgid ""
24109 " exec 3<>/dev/tcp/redhat.com/80\n"
24110 " echo \"GET /\" >&3\n"
24111 " cat <&3\n"
24112 "\n"
24113 msgstr ""
24114
24115 #. type: textblock
24116 #: ../rescue/virt-rescue.pod:294
24117 msgid "See L<bash(1)> for more details."
24118 msgstr ""
24119
24120 #. type: textblock
24121 #: ../rescue/virt-rescue.pod:300
24122 msgid ""
24123 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
24124 "ENVIRONMENT VARIABLES> for the complete list."
24125 msgstr ""
24126
24127 #. type: textblock
24128 #: ../rescue/virt-rescue.pod:327
24129 msgid ""
24130 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
24131 "filesystems(1)>, L<http://libguestfs.org/>."
24132 msgstr ""
24133
24134 #. type: textblock
24135 #: ../resize/virt-resize.pod:5
24136 msgid "virt-resize - Resize a virtual machine disk"
24137 msgstr ""
24138
24139 #. type: verbatim
24140 #: ../resize/virt-resize.pod:9
24141 #, no-wrap
24142 msgid ""
24143 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24144 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24145 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24146 "\n"
24147 msgstr ""
24148
24149 #. type: textblock
24150 #: ../resize/virt-resize.pod:15
24151 msgid ""
24152 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24153 "larger or smaller overall, and resizing or deleting any partitions contained "
24154 "within."
24155 msgstr ""
24156
24157 #. type: textblock
24158 #: ../resize/virt-resize.pod:19
24159 msgid ""
24160 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24161 "not> be used on live virtual machines - for consistent results, shut the "
24162 "virtual machine down before resizing it."
24163 msgstr ""
24164
24165 #. type: textblock
24166 #: ../resize/virt-resize.pod:23
24167 msgid ""
24168 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
24169 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
24170 msgstr ""
24171
24172 #. type: =item
24173 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
24174 #: ../sparsify/virt-sparsify.pod:221 ../src/guestfs.pod:484
24175 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
24176 msgid "1."
24177 msgstr ""
24178
24179 #. type: textblock
24180 #: ../resize/virt-resize.pod:33
24181 msgid ""
24182 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24183 "fill the extra 5GB of space."
24184 msgstr ""
24185
24186 #. type: verbatim
24187 #: ../resize/virt-resize.pod:36
24188 #, no-wrap
24189 msgid ""
24190 " virt-filesystems --long -h --all -a olddisk\n"
24191 " \n"
24192 msgstr ""
24193
24194 #. type: verbatim
24195 #: ../resize/virt-resize.pod:38
24196 #, no-wrap
24197 msgid ""
24198 " truncate -r olddisk newdisk\n"
24199 " truncate -s +5G newdisk\n"
24200 " \n"
24201 msgstr ""
24202
24203 #. type: verbatim
24204 #: ../resize/virt-resize.pod:41
24205 #, no-wrap
24206 msgid ""
24207 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24208 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24209 "\n"
24210 msgstr ""
24211
24212 #. type: =item
24213 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
24214 #: ../sparsify/virt-sparsify.pod:228 ../src/guestfs.pod:490
24215 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
24216 msgid "2."
24217 msgstr ""
24218
24219 #. type: textblock
24220 #: ../resize/virt-resize.pod:46
24221 msgid ""
24222 "As above, but make the /boot partition 200MB bigger, while giving the "
24223 "remaining space to /dev/sda2:"
24224 msgstr ""
24225
24226 #. type: verbatim
24227 #: ../resize/virt-resize.pod:49
24228 #, no-wrap
24229 msgid ""
24230 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24231 "   olddisk newdisk\n"
24232 "\n"
24233 msgstr ""
24234
24235 #. type: =item
24236 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
24237 #: ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:501
24238 #: ../src/guestfs.pod:1451
24239 msgid "3."
24240 msgstr ""
24241
24242 #. type: textblock
24243 #: ../resize/virt-resize.pod:54
24244 msgid ""
24245 "As in the first example, but expand a logical volume as the final step.  "
24246 "This is what you would typically use for Linux guests that use LVM:"
24247 msgstr ""
24248
24249 #. type: verbatim
24250 #: ../resize/virt-resize.pod:58
24251 #, no-wrap
24252 msgid ""
24253 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
24254 "   olddisk newdisk\n"
24255 "\n"
24256 msgstr ""
24257
24258 #. type: =item
24259 #: ../resize/virt-resize.pod:61
24260 msgid "4."
24261 msgstr ""
24262
24263 #. type: textblock
24264 #: ../resize/virt-resize.pod:63
24265 msgid ""
24266 "As in the first example, but the output format will be qcow2 instead of a "
24267 "raw disk:"
24268 msgstr ""
24269
24270 #. type: verbatim
24271 #: ../resize/virt-resize.pod:66
24272 #, no-wrap
24273 msgid ""
24274 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
24275 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
24276 "\n"
24277 msgstr ""
24278
24279 #. type: =head1
24280 #: ../resize/virt-resize.pod:71
24281 msgid "DETAILED USAGE"
24282 msgstr ""
24283
24284 #. type: =head2
24285 #: ../resize/virt-resize.pod:73
24286 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24287 msgstr ""
24288
24289 #. type: =item
24290 #: ../resize/virt-resize.pod:77
24291 msgid "1. Shut down the virtual machine"
24292 msgstr ""
24293
24294 #. type: =item
24295 #: ../resize/virt-resize.pod:79
24296 msgid "2. Locate input disk image"
24297 msgstr ""
24298
24299 #. type: textblock
24300 #: ../resize/virt-resize.pod:81
24301 msgid ""
24302 "Locate the input disk image (ie. the file or device on the host containing "
24303 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24304 "dumpxml> like this to find the disk image name:"
24305 msgstr ""
24306
24307 #. type: verbatim
24308 #: ../resize/virt-resize.pod:85
24309 #, no-wrap
24310 msgid ""
24311 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24312 " Found 1 nodes:\n"
24313 " -- NODE --\n"
24314 " <source dev=\"/dev/vg/lv_guest\" />\n"
24315 "\n"
24316 msgstr ""
24317
24318 #. type: =item
24319 #: ../resize/virt-resize.pod:90
24320 msgid "3. Look at current sizing"
24321 msgstr ""
24322
24323 #. type: textblock
24324 #: ../resize/virt-resize.pod:92
24325 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
24326 msgstr ""
24327
24328 #. type: verbatim
24329 #: ../resize/virt-resize.pod:95
24330 #, no-wrap
24331 msgid ""
24332 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
24333 " Name       Type       Size  Parent\n"
24334 " /dev/sda1  partition  101M  /dev/sda\n"
24335 " /dev/sda2  partition  7.9G  /dev/sda\n"
24336 " /dev/sda   device     8.0G  -\n"
24337 "\n"
24338 msgstr ""
24339
24340 #. type: textblock
24341 #: ../resize/virt-resize.pod:101
24342 msgid ""
24343 "(This example is a virtual machine with an 8 GB disk which we would like to "
24344 "expand up to 10 GB)."
24345 msgstr ""
24346
24347 #. type: =item
24348 #: ../resize/virt-resize.pod:104
24349 msgid "4. Create output disk"
24350 msgstr ""
24351
24352 #. type: textblock
24353 #: ../resize/virt-resize.pod:106
24354 msgid ""
24355 "Virt-resize cannot do in-place disk modifications.  You have to have space "
24356 "to store the resized output disk."
24357 msgstr ""
24358
24359 #. type: textblock
24360 #: ../resize/virt-resize.pod:109
24361 msgid ""
24362 "To store the resized disk image in a file, create a file of a suitable size:"
24363 msgstr ""
24364
24365 #. type: verbatim
24366 #: ../resize/virt-resize.pod:112
24367 #, no-wrap
24368 msgid ""
24369 " # rm -f outdisk\n"
24370 " # truncate -s 10G outdisk\n"
24371 "\n"
24372 msgstr ""
24373
24374 #. type: textblock
24375 #: ../resize/virt-resize.pod:115
24376 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24377 msgstr ""
24378
24379 #. type: verbatim
24380 #: ../resize/virt-resize.pod:117
24381 #, no-wrap
24382 msgid ""
24383 " # lvcreate -L 10G -n lv_name vg_name\n"
24384 "\n"
24385 msgstr ""
24386
24387 #. type: textblock
24388 #: ../resize/virt-resize.pod:119
24389 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24390 msgstr ""
24391
24392 #. type: verbatim
24393 #: ../resize/virt-resize.pod:121
24394 #, no-wrap
24395 msgid ""
24396 " # virsh pool-list\n"
24397 " # virsh vol-create-as poolname newvol 10G\n"
24398 "\n"
24399 msgstr ""
24400
24401 #. type: =item
24402 #: ../resize/virt-resize.pod:124
24403 msgid "5. Resize"
24404 msgstr ""
24405
24406 #. type: textblock
24407 #: ../resize/virt-resize.pod:126
24408 msgid ""
24409 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24410 "file) and the output disk.  The output disk is the one created in the "
24411 "previous step."
24412 msgstr ""
24413
24414 #. type: verbatim
24415 #: ../resize/virt-resize.pod:130
24416 #, no-wrap
24417 msgid ""
24418 " # virt-resize indisk outdisk\n"
24419 "\n"
24420 msgstr ""
24421
24422 #. type: textblock
24423 #: ../resize/virt-resize.pod:132
24424 msgid ""
24425 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24426 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
24427 "larger, then an extra, empty partition is created at the end of the disk "
24428 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
24429 "error."
24430 msgstr ""
24431
24432 #. type: textblock
24433 #: ../resize/virt-resize.pod:138
24434 msgid ""
24435 "More realistically you'd want to expand existing partitions in the disk "
24436 "image by passing extra options (for the full list see the L</OPTIONS> "
24437 "section below)."
24438 msgstr ""
24439
24440 #. type: textblock
24441 #: ../resize/virt-resize.pod:142
24442 msgid ""
24443 "L</--expand> is the most useful option.  It expands the named partition "
24444 "within the disk to fill any extra space:"
24445 msgstr ""
24446
24447 #. type: verbatim
24448 #: ../resize/virt-resize.pod:145
24449 #, no-wrap
24450 msgid ""
24451 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24452 "\n"
24453 msgstr ""
24454
24455 #. type: textblock
24456 #: ../resize/virt-resize.pod:147
24457 msgid ""
24458 "(In this case, an extra partition is I<not> created at the end of the disk, "
24459 "because there will be no unused space)."
24460 msgstr ""
24461
24462 #. type: textblock
24463 #: ../resize/virt-resize.pod:150
24464 msgid ""
24465 "L</--resize> is the other commonly used option.  The following would "
24466 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24467 "rest of the available space:"
24468 msgstr ""
24469
24470 #. type: verbatim
24471 #: ../resize/virt-resize.pod:154
24472 #, no-wrap
24473 msgid ""
24474 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24475 "     indisk outdisk\n"
24476 "\n"
24477 msgstr ""
24478
24479 #. type: textblock
24480 #: ../resize/virt-resize.pod:157
24481 msgid ""
24482 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24483 "if virt-resize knows how, it will resize the contents, the equivalent of "
24484 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
24485 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
24486 "filesystems, so you would have to online resize them after booting the guest."
24487 msgstr ""
24488
24489 #. type: textblock
24490 #: ../resize/virt-resize.pod:164
24491 msgid "Other options are covered below."
24492 msgstr ""
24493
24494 #. type: =item
24495 #: ../resize/virt-resize.pod:166
24496 msgid "6. Test"
24497 msgstr ""
24498
24499 #. type: textblock
24500 #: ../resize/virt-resize.pod:168
24501 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24502 msgstr ""
24503
24504 #. type: textblock
24505 #: ../resize/virt-resize.pod:170
24506 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24507 msgstr ""
24508
24509 #. type: verbatim
24510 #: ../resize/virt-resize.pod:172
24511 #, no-wrap
24512 msgid ""
24513 " # virsh edit guestname\n"
24514 "\n"
24515 msgstr ""
24516
24517 #. type: textblock
24518 #: ../resize/virt-resize.pod:174
24519 msgid ""
24520 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
24521 "html#elementsDisks>"
24522 msgstr ""
24523
24524 #. type: textblock
24525 #: ../resize/virt-resize.pod:177
24526 msgid "Then start up the domain with the new, resized disk:"
24527 msgstr ""
24528
24529 #. type: verbatim
24530 #: ../resize/virt-resize.pod:179
24531 #, no-wrap
24532 msgid ""
24533 " # virsh start guestname\n"
24534 "\n"
24535 msgstr ""
24536
24537 #. type: textblock
24538 #: ../resize/virt-resize.pod:181
24539 msgid ""
24540 "and check that it still works.  See also the L</NOTES> section below for "
24541 "additional information."
24542 msgstr ""
24543
24544 #. type: =item
24545 #: ../resize/virt-resize.pod:184
24546 msgid "7. Resize LVs etc inside the guest"
24547 msgstr ""
24548
24549 #. type: textblock
24550 #: ../resize/virt-resize.pod:186
24551 msgid "(This can also be done offline using L<guestfish(1)>)"
24552 msgstr ""
24553
24554 #. type: textblock
24555 #: ../resize/virt-resize.pod:188
24556 msgid ""
24557 "Once the guest has booted you should see the new space available, at least "
24558 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24559 "may need to resize LVs inside PVs, and also resize filesystem types that "
24560 "virt-resize does not know how to expand."
24561 msgstr ""
24562
24563 #. type: =head2
24564 #: ../resize/virt-resize.pod:195
24565 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24566 msgstr ""
24567
24568 #. type: textblock
24569 #: ../resize/virt-resize.pod:197
24570 msgid ""
24571 "Shrinking is somewhat more complex than expanding, and only an overview is "
24572 "given here."
24573 msgstr ""
24574
24575 #. type: textblock
24576 #: ../resize/virt-resize.pod:200
24577 msgid ""
24578 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24579 "filesystems).  The user has to shrink content before passing the disk image "
24580 "to virt-resize, and virt-resize will check that the content has been shrunk "
24581 "properly."
24582 msgstr ""
24583
24584 #. type: textblock
24585 #: ../resize/virt-resize.pod:205
24586 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24587 msgstr ""
24588
24589 #. type: textblock
24590 #: ../resize/virt-resize.pod:207
24591 msgid ""
24592 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24593 "steps 3 and 4 above to allocate a new disk image."
24594 msgstr ""
24595
24596 #. type: textblock
24597 #: ../resize/virt-resize.pod:210
24598 msgid ""
24599 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24600 msgstr ""
24601
24602 #. type: =head2
24603 #: ../resize/virt-resize.pod:213
24604 msgid "IGNORING OR DELETING PARTITIONS"
24605 msgstr ""
24606
24607 #. type: textblock
24608 #: ../resize/virt-resize.pod:215
24609 msgid ""
24610 "virt-resize also gives a convenient way to ignore or delete partitions when "
24611 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24612 "up the copy where you don't care about the existing contents of a "
24613 "partition.  Deleting a partition removes it completely, but note that it "
24614 "also renumbers any partitions after the one which is deleted, which can "
24615 "leave some guests unbootable."
24616 msgstr ""
24617
24618 #. type: =head2
24619 #: ../resize/virt-resize.pod:222
24620 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24621 msgstr ""
24622
24623 #. type: textblock
24624 #: ../resize/virt-resize.pod:224
24625 msgid ""
24626 "If the input disk is in qcow2 format, then you may prefer that the output is "
24627 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
24628 "the fly.  The output format is simply determined by the format of the empty "
24629 "output container that you provide.  Thus to create qcow2 output, use:"
24630 msgstr ""
24631
24632 #. type: verbatim
24633 #: ../resize/virt-resize.pod:230
24634 #, no-wrap
24635 msgid ""
24636 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24637 "\n"
24638 msgstr ""
24639
24640 #. type: textblock
24641 #: ../resize/virt-resize.pod:232
24642 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24643 msgstr ""
24644
24645 #. type: textblock
24646 #: ../resize/virt-resize.pod:234
24647 msgid "Similarly, to get non-sparse raw output use:"
24648 msgstr ""
24649
24650 #. type: verbatim
24651 #: ../resize/virt-resize.pod:236
24652 #, no-wrap
24653 msgid ""
24654 " fallocate -l size outdisk\n"
24655 "\n"
24656 msgstr ""
24657
24658 #. type: textblock
24659 #: ../resize/virt-resize.pod:238
24660 msgid ""
24661 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24662 "dev/zero of=outdisk bs=1M count=..>)"
24663 msgstr ""
24664
24665 #. type: =head2
24666 #: ../resize/virt-resize.pod:241
24667 msgid "LOGICAL PARTITIONS"
24668 msgstr ""
24669
24670 #. type: textblock
24671 #: ../resize/virt-resize.pod:243
24672 msgid ""
24673 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24674 "tables) cannot be resized."
24675 msgstr ""
24676
24677 #. type: textblock
24678 #: ../resize/virt-resize.pod:246
24679 msgid ""
24680 "To understand what is going on, firstly one of the four partitions C</dev/"
24681 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
24682 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
24683 "type."
24684 msgstr ""
24685
24686 #. type: textblock
24687 #: ../resize/virt-resize.pod:251
24688 msgid "Logical partitions live inside the extended partition."
24689 msgstr ""
24690
24691 #. type: textblock
24692 #: ../resize/virt-resize.pod:253
24693 msgid ""
24694 "The extended partition can be expanded, but not shrunk (unless you force it, "
24695 "which is not advisable).  When the extended partition is copied across, all "
24696 "the logical partitions contained inside are copied over implicitly.  Virt-"
24697 "resize does not look inside the extended partition, so it copies the logical "
24698 "partitions blindly."
24699 msgstr ""
24700
24701 #. type: textblock
24702 #: ../resize/virt-resize.pod:259
24703 msgid ""
24704 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24705 "line.  Doing so will give an error."
24706 msgstr ""
24707
24708 #. type: textblock
24709 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24710 msgid "Display help."
24711 msgstr ""
24712
24713 #. type: =item
24714 #: ../resize/virt-resize.pod:270
24715 msgid "B<--align-first auto>"
24716 msgstr ""
24717
24718 #. type: =item
24719 #: ../resize/virt-resize.pod:272
24720 msgid "B<--align-first never>"
24721 msgstr ""
24722
24723 #. type: =item
24724 #: ../resize/virt-resize.pod:274
24725 msgid "B<--align-first always>"
24726 msgstr ""
24727
24728 #. type: textblock
24729 #: ../resize/virt-resize.pod:276
24730 msgid ""
24731 "Align the first partition for improved performance (see also the I<--"
24732 "alignment> option)."
24733 msgstr ""
24734
24735 #. type: textblock
24736 #: ../resize/virt-resize.pod:279
24737 msgid ""
24738 "The default is I<--align-first auto> which only aligns the first partition "
24739 "if it is safe to do so.  That is, only when we know how to fix the "
24740 "bootloader automatically, and at the moment that can only be done for "
24741 "Windows guests."
24742 msgstr ""
24743
24744 #. type: textblock
24745 #: ../resize/virt-resize.pod:284
24746 msgid ""
24747 "I<--align-first never> means we never move the first partition.  This is the "
24748 "safest option.  Try this if the guest does not boot after resizing."
24749 msgstr ""
24750
24751 #. type: textblock
24752 #: ../resize/virt-resize.pod:288
24753 msgid ""
24754 "I<--align-first always> means we always align the first partition (if it "
24755 "needs to be aligned).  For some guests this will break the bootloader, "
24756 "making the guest unbootable."
24757 msgstr ""
24758
24759 #. type: =item
24760 #: ../resize/virt-resize.pod:292
24761 msgid "B<--alignment N>"
24762 msgstr ""
24763
24764 #. type: textblock
24765 #: ../resize/virt-resize.pod:294
24766 msgid ""
24767 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24768 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24769 msgstr ""
24770
24771 #. type: textblock
24772 #: ../resize/virt-resize.pod:298
24773 msgid ""
24774 "Assuming 512 byte sector size inside the guest, here are some suitable "
24775 "values for this:"
24776 msgstr ""
24777
24778 #. type: =item
24779 #: ../resize/virt-resize.pod:303
24780 msgid "I<--alignment 1> (512 bytes)"
24781 msgstr ""
24782
24783 #. type: textblock
24784 #: ../resize/virt-resize.pod:305
24785 msgid ""
24786 "The partitions would be packed together as closely as possible, but would be "
24787 "completely unaligned.  In some cases this can cause very poor performance.  "
24788 "See L<virt-alignment-scan(1)> for further details."
24789 msgstr ""
24790
24791 #. type: =item
24792 #: ../resize/virt-resize.pod:309
24793 msgid "I<--alignment 8> (4K)"
24794 msgstr ""
24795
24796 #. type: textblock
24797 #: ../resize/virt-resize.pod:311
24798 msgid ""
24799 "This would be the minimum acceptable alignment for reasonable performance on "
24800 "modern hosts."
24801 msgstr ""
24802
24803 #. type: =item
24804 #: ../resize/virt-resize.pod:314
24805 msgid "I<--alignment 128> (64K)"
24806 msgstr ""
24807
24808 #. type: textblock
24809 #: ../resize/virt-resize.pod:316
24810 msgid ""
24811 "This alignment provides good performance when the host is using high end "
24812 "network storage."
24813 msgstr ""
24814
24815 #. type: =item
24816 #: ../resize/virt-resize.pod:319
24817 msgid "I<--alignment 2048> (1M)"
24818 msgstr ""
24819
24820 #. type: textblock
24821 #: ../resize/virt-resize.pod:321
24822 msgid ""
24823 "This is the standard alignment used by all newly installed guests since "
24824 "around 2008."
24825 msgstr ""
24826
24827 #. type: =item
24828 #: ../resize/virt-resize.pod:326
24829 msgid "B<-d>"
24830 msgstr ""
24831
24832 #. type: =item
24833 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24834 #: ../tools/virt-win-reg.pl:120
24835 msgid "B<--debug>"
24836 msgstr ""
24837
24838 #. type: textblock
24839 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24840 msgid "Enable debugging messages."
24841 msgstr ""
24842
24843 #. type: =item
24844 #: ../resize/virt-resize.pod:332
24845 msgid "B<--delete part>"
24846 msgstr ""
24847
24848 #. type: textblock
24849 #: ../resize/virt-resize.pod:334
24850 msgid ""
24851 "Delete the named partition.  It would be more accurate to describe this as "
24852 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24853 "the original disk image is left intact."
24854 msgstr ""
24855
24856 #. type: textblock
24857 #: ../resize/virt-resize.pod:338
24858 msgid ""
24859 "Note that when you delete a partition, then anything contained in the "
24860 "partition is also deleted.  Furthermore, this causes any partitions that "
24861 "come after to be I<renumbered>, which can easily make your guest unbootable."
24862 msgstr ""
24863
24864 #. type: textblock
24865 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
24866 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:151
24867 msgid "You can give this option multiple times."
24868 msgstr ""
24869
24870 #. type: =item
24871 #: ../resize/virt-resize.pod:345
24872 msgid "B<--expand part>"
24873 msgstr ""
24874
24875 #. type: textblock
24876 #: ../resize/virt-resize.pod:347
24877 msgid ""
24878 "Expand the named partition so it uses up all extra space (space left over "
24879 "after any other resize changes that you request have been done)."
24880 msgstr ""
24881
24882 #. type: textblock
24883 #: ../resize/virt-resize.pod:350
24884 msgid ""
24885 "If virt-resize knows how, it will expand the direct content of the "
24886 "partition.  For example, if the partition is an LVM PV, it will expand the "
24887 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24888 "content it doesn't know about alone."
24889 msgstr ""
24890
24891 #. type: textblock
24892 #: ../resize/virt-resize.pod:355
24893 msgid "Currently virt-resize can resize:"
24894 msgstr ""
24895
24896 #. type: textblock
24897 #: ../resize/virt-resize.pod:361
24898 msgid "ext2, ext3 and ext4 filesystems."
24899 msgstr ""
24900
24901 #. type: textblock
24902 #: ../resize/virt-resize.pod:365
24903 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24904 msgstr ""
24905
24906 #. type: textblock
24907 #: ../resize/virt-resize.pod:367
24908 msgid ""
24909 "The filesystem must have been shut down consistently last time it was used.  "
24910 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24911 "consistency check, so at the first boot after resizing Windows will check "
24912 "the disk."
24913 msgstr ""
24914
24915 #. type: textblock
24916 #: ../resize/virt-resize.pod:374
24917 msgid ""
24918 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24919 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24920 "resize LVs as desired after boot."
24921 msgstr ""
24922
24923 #. type: textblock
24924 #: ../resize/virt-resize.pod:380
24925 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24926 msgstr ""
24927
24928 #. type: textblock
24929 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24930 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24931 msgstr ""
24932
24933 #. type: =item
24934 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:131
24935 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24936 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24937 msgid "B<--format> raw"
24938 msgstr ""
24939
24940 #. type: textblock
24941 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:135
24942 msgid ""
24943 "Specify the format of the input disk image.  If this flag is not given then "
24944 "it is auto-detected from the image itself."
24945 msgstr ""
24946
24947 #. type: textblock
24948 #: ../resize/virt-resize.pod:394
24949 msgid ""
24950 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24951 "AND NON-SPARSE RAW FORMATS>."
24952 msgstr ""
24953
24954 #. type: =item
24955 #: ../resize/virt-resize.pod:397
24956 msgid "B<--ignore part>"
24957 msgstr ""
24958
24959 #. type: textblock
24960 #: ../resize/virt-resize.pod:399
24961 msgid ""
24962 "Ignore the named partition.  Effectively this means the partition is "
24963 "allocated on the destination disk, but the content is not copied across from "
24964 "the source disk.  The content of the partition will be blank (all zero "
24965 "bytes)."
24966 msgstr ""
24967
24968 #. type: =item
24969 #: ../resize/virt-resize.pod:406
24970 msgid "B<--LV-expand logvol>"
24971 msgstr ""
24972
24973 #. type: textblock
24974 #: ../resize/virt-resize.pod:408
24975 msgid ""
24976 "This takes the logical volume and, as a final step, expands it to fill all "
24977 "the space available in its volume group.  A typical usage, assuming a Linux "
24978 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24979 "lv_root> would be:"
24980 msgstr ""
24981
24982 #. type: verbatim
24983 #: ../resize/virt-resize.pod:413
24984 #, no-wrap
24985 msgid ""
24986 " virt-resize indisk outdisk \\\n"
24987 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24988 "\n"
24989 msgstr ""
24990
24991 #. type: textblock
24992 #: ../resize/virt-resize.pod:416
24993 msgid ""
24994 "This would first expand the partition (and PV), and then expand the root "
24995 "device to fill the extra space in the PV."
24996 msgstr ""
24997
24998 #. type: textblock
24999 #: ../resize/virt-resize.pod:419
25000 msgid ""
25001 "The contents of the LV are also resized if virt-resize knows how to do "
25002 "that.  You can stop virt-resize from trying to expand the content by using "
25003 "the option I<--no-expand-content>."
25004 msgstr ""
25005
25006 #. type: textblock
25007 #: ../resize/virt-resize.pod:423
25008 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25009 msgstr ""
25010
25011 #. type: textblock
25012 #: ../resize/virt-resize.pod:425
25013 msgid ""
25014 "You can give this option multiple times, I<but> it doesn't make sense to do "
25015 "this unless the logical volumes you specify are all in different volume "
25016 "groups."
25017 msgstr ""
25018
25019 #. type: =item
25020 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:153
25021 msgid "B<--machine-readable>"
25022 msgstr ""
25023
25024 #. type: textblock
25025 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:155
25026 msgid ""
25027 "This option is used to make the output more machine friendly when being "
25028 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
25029 msgstr ""
25030
25031 #. type: =item
25032 #: ../resize/virt-resize.pod:437
25033 msgid "B<--dryrun>"
25034 msgstr ""
25035
25036 #. type: textblock
25037 #: ../resize/virt-resize.pod:439
25038 msgid "Print a summary of what would be done, but don't do anything."
25039 msgstr ""
25040
25041 #. type: =item
25042 #: ../resize/virt-resize.pod:441
25043 msgid "B<--no-copy-boot-loader>"
25044 msgstr ""
25045
25046 #. type: textblock
25047 #: ../resize/virt-resize.pod:443
25048 msgid ""
25049 "By default, virt-resize copies over some sectors at the start of the disk "
25050 "(up to the beginning of the first partition).  Commonly these sectors "
25051 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25052 "in order for the guest to boot correctly."
25053 msgstr ""
25054
25055 #. type: textblock
25056 #: ../resize/virt-resize.pod:448
25057 msgid ""
25058 "If you specify this flag, then this initial copy is not done.  You may need "
25059 "to reinstall the boot loader in this case."
25060 msgstr ""
25061
25062 #. type: =item
25063 #: ../resize/virt-resize.pod:451
25064 msgid "B<--no-extra-partition>"
25065 msgstr ""
25066
25067 #. type: textblock
25068 #: ../resize/virt-resize.pod:453
25069 msgid ""
25070 "By default, virt-resize creates an extra partition if there is any extra, "
25071 "unused space after all resizing has happened.  Use this option to prevent "
25072 "the extra partition from being created.  If you do this then the extra space "
25073 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25074 "tool in the guest."
25075 msgstr ""
25076
25077 #. type: textblock
25078 #: ../resize/virt-resize.pod:459
25079 msgid ""
25080 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25081 "will be created."
25082 msgstr ""
25083
25084 #. type: =item
25085 #: ../resize/virt-resize.pod:462
25086 msgid "B<--no-expand-content>"
25087 msgstr ""
25088
25089 #. type: textblock
25090 #: ../resize/virt-resize.pod:464
25091 msgid ""
25092 "By default, virt-resize will try to expand the direct contents of "
25093 "partitions, if it knows how (see I<--expand> option above)."
25094 msgstr ""
25095
25096 #. type: textblock
25097 #: ../resize/virt-resize.pod:467
25098 msgid ""
25099 "If you give the I<--no-expand-content> option then virt-resize will not "
25100 "attempt this."
25101 msgstr ""
25102
25103 #. type: =item
25104 #: ../resize/virt-resize.pod:470
25105 msgid "B<--ntfsresize-force>"
25106 msgstr ""
25107
25108 #. type: textblock
25109 #: ../resize/virt-resize.pod:472
25110 msgid ""
25111 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
25112 "the NTFS disk is marked as needing a consistency check.  You have to use "
25113 "this option if you want to resize a Windows guest multiple times without "
25114 "booting into Windows between each resize."
25115 msgstr ""
25116
25117 #. type: =item
25118 #: ../resize/virt-resize.pod:478
25119 msgid "B<--output-format> raw"
25120 msgstr ""
25121
25122 #. type: textblock
25123 #: ../resize/virt-resize.pod:480
25124 msgid ""
25125 "Specify the format of the output disk image.  If this flag is not given then "
25126 "it is auto-detected from the image itself."
25127 msgstr ""
25128
25129 #. type: textblock
25130 #: ../resize/virt-resize.pod:486
25131 msgid ""
25132 "Note that this option I<does not create> the output format.  This option "
25133 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
25134 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
25135 "SPARSE RAW FORMATS>."
25136 msgstr ""
25137
25138 #. type: textblock
25139 #: ../resize/virt-resize.pod:495
25140 msgid "Don't print the summary."
25141 msgstr ""
25142
25143 #. type: =item
25144 #: ../resize/virt-resize.pod:497
25145 msgid "B<--resize part=size>"
25146 msgstr ""
25147
25148 #. type: textblock
25149 #: ../resize/virt-resize.pod:499
25150 msgid ""
25151 "Resize the named partition (expanding or shrinking it) so that it has the "
25152 "given size."
25153 msgstr ""
25154
25155 #. type: textblock
25156 #: ../resize/virt-resize.pod:502
25157 msgid ""
25158 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25159 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25160 "size; or as a relative number or percentage.  For example:"
25161 msgstr ""
25162
25163 #. type: verbatim
25164 #: ../resize/virt-resize.pod:508
25165 #, no-wrap
25166 msgid ""
25167 " --resize /dev/sda2=10G\n"
25168 "\n"
25169 msgstr ""
25170
25171 #. type: verbatim
25172 #: ../resize/virt-resize.pod:510
25173 #, no-wrap
25174 msgid ""
25175 " --resize /dev/sda4=90%\n"
25176 "\n"
25177 msgstr ""
25178
25179 #. type: verbatim
25180 #: ../resize/virt-resize.pod:512
25181 #, no-wrap
25182 msgid ""
25183 " --resize /dev/sda2=+1G\n"
25184 "\n"
25185 msgstr ""
25186
25187 #. type: verbatim
25188 #: ../resize/virt-resize.pod:514
25189 #, no-wrap
25190 msgid ""
25191 " --resize /dev/sda2=-200M\n"
25192 "\n"
25193 msgstr ""
25194
25195 #. type: verbatim
25196 #: ../resize/virt-resize.pod:516
25197 #, no-wrap
25198 msgid ""
25199 " --resize /dev/sda1=+128K\n"
25200 "\n"
25201 msgstr ""
25202
25203 #. type: verbatim
25204 #: ../resize/virt-resize.pod:518
25205 #, no-wrap
25206 msgid ""
25207 " --resize /dev/sda1=+10%\n"
25208 "\n"
25209 msgstr ""
25210
25211 #. type: verbatim
25212 #: ../resize/virt-resize.pod:520
25213 #, no-wrap
25214 msgid ""
25215 " --resize /dev/sda1=-10%\n"
25216 "\n"
25217 msgstr ""
25218
25219 #. type: textblock
25220 #: ../resize/virt-resize.pod:522
25221 msgid ""
25222 "You can increase the size of any partition.  Virt-resize will expand the "
25223 "direct content of the partition if it knows how (see I<--expand> below)."
25224 msgstr ""
25225
25226 #. type: textblock
25227 #: ../resize/virt-resize.pod:526
25228 msgid ""
25229 "You can only I<decrease> the size of partitions that contain filesystems or "
25230 "PVs which have already been shrunk.  Virt-resize will check this has been "
25231 "done before proceeding, or else will print an error (see also I<--resize-"
25232 "force>)."
25233 msgstr ""
25234
25235 #. type: =item
25236 #: ../resize/virt-resize.pod:533
25237 msgid "B<--resize-force part=size>"
25238 msgstr ""
25239
25240 #. type: textblock
25241 #: ../resize/virt-resize.pod:535
25242 msgid ""
25243 "This is the same as I<--resize> except that it will let you decrease the "
25244 "size of any partition.  Generally this means you will lose any data which "
25245 "was at the end of the partition you shrink, but you may not care about that "
25246 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25247 "as a swap partition)."
25248 msgstr ""
25249
25250 #. type: textblock
25251 #: ../resize/virt-resize.pod:541
25252 msgid "See also the I<--ignore> option."
25253 msgstr ""
25254
25255 #. type: =item
25256 #: ../resize/virt-resize.pod:543
25257 msgid "B<--shrink part>"
25258 msgstr ""
25259
25260 #. type: textblock
25261 #: ../resize/virt-resize.pod:545
25262 msgid ""
25263 "Shrink the named partition until the overall disk image fits in the "
25264 "destination.  The named partition B<must> contain a filesystem or PV which "
25265 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25266 "online tools).  Virt-resize will check this and give an error if it has not "
25267 "been done."
25268 msgstr ""
25269
25270 #. type: textblock
25271 #: ../resize/virt-resize.pod:551
25272 msgid ""
25273 "The amount by which the overall disk must be shrunk (after carrying out all "
25274 "other operations requested by the user) is called the \"deficit\".  For "
25275 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25276 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25277 "would give an error unless the user specified a partition to shrink and that "
25278 "partition had more than a gigabyte of free space."
25279 msgstr ""
25280
25281 #. type: =head1
25282 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:195
25283 msgid "MACHINE READABLE OUTPUT"
25284 msgstr ""
25285
25286 #. type: textblock
25287 #: ../resize/virt-resize.pod:571
25288 msgid ""
25289 "The I<--machine-readable> option can be used to make the output more machine "
25290 "friendly, which is useful when calling virt-resize from other programs, GUIs "
25291 "etc."
25292 msgstr ""
25293
25294 #. type: textblock
25295 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
25296 msgid "There are two ways to use this option."
25297 msgstr ""
25298
25299 #. type: textblock
25300 #: ../resize/virt-resize.pod:577
25301 msgid ""
25302 "Firstly use the option on its own to query the capabilities of the virt-"
25303 "resize binary.  Typical output looks like this:"
25304 msgstr ""
25305
25306 #. type: verbatim
25307 #: ../resize/virt-resize.pod:580
25308 #, no-wrap
25309 msgid ""
25310 " $ virt-resize --machine-readable\n"
25311 " virt-resize\n"
25312 " ntfsresize-force\n"
25313 " 32bitok\n"
25314 " ntfs\n"
25315 " btrfs\n"
25316 "\n"
25317 msgstr ""
25318
25319 #. type: textblock
25320 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:211
25321 msgid ""
25322 "A list of features is printed, one per line, and the program exits with "
25323 "status 0."
25324 msgstr ""
25325
25326 #. type: textblock
25327 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:214
25328 msgid ""
25329 "Secondly use the option in conjunction with other options to make the "
25330 "regular program output more machine friendly."
25331 msgstr ""
25332
25333 #. type: textblock
25334 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
25335 msgid "At the moment this means:"
25336 msgstr ""
25337
25338 #. type: textblock
25339 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
25340 msgid ""
25341 "Progress bar messages can be parsed from stdout by looking for this regular "
25342 "expression:"
25343 msgstr ""
25344
25345 #. type: verbatim
25346 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:226
25347 #, no-wrap
25348 msgid ""
25349 " ^[0-9]+/[0-9]+$\n"
25350 "\n"
25351 msgstr ""
25352
25353 #. type: textblock
25354 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:230
25355 msgid ""
25356 "The calling program should treat messages sent to stdout (except for "
25357 "progress bar messages) as status messages.  They can be logged and/or "
25358 "displayed to the user."
25359 msgstr ""
25360
25361 #. type: textblock
25362 #: ../resize/virt-resize.pod:612
25363 msgid ""
25364 "The calling program should treat messages sent to stderr as error messages.  "
25365 "In addition, virt-resize exits with a non-zero status code if there was a "
25366 "fatal error."
25367 msgstr ""
25368
25369 #. type: textblock
25370 #: ../resize/virt-resize.pod:618
25371 msgid ""
25372 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
25373 "readable> option and will return an error."
25374 msgstr ""
25375
25376 #. type: =head2
25377 #: ../resize/virt-resize.pod:623
25378 msgid "\"Partition 1 does not end on cylinder boundary.\""
25379 msgstr ""
25380
25381 #. type: textblock
25382 #: ../resize/virt-resize.pod:625
25383 msgid ""
25384 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
25385 "alignment> parameter).  Usually this means the partitions will not be "
25386 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
25387 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
25388 "drives.  Alignment of partitions to cylinders is not required by any modern "
25389 "operating system."
25390 msgstr ""
25391
25392 #. type: =head2
25393 #: ../resize/virt-resize.pod:632
25394 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25395 msgstr ""
25396
25397 #. type: textblock
25398 #: ../resize/virt-resize.pod:634
25399 msgid ""
25400 "In Windows Vista and later versions, Microsoft switched to using a separate "
25401 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25402 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
25403 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
25404 "the second partition (ie. C: drive)  should work."
25405 msgstr ""
25406
25407 #. type: textblock
25408 #: ../resize/virt-resize.pod:641
25409 msgid ""
25410 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25411 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25412 "it find errors) is nothing to worry about."
25413 msgstr ""
25414
25415 #. type: =head2
25416 #: ../resize/virt-resize.pod:645
25417 msgid "GUEST BOOT STUCK AT \"GRUB\""
25418 msgstr ""
25419
25420 #. type: textblock
25421 #: ../resize/virt-resize.pod:647
25422 msgid ""
25423 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25424 "printing C<GRUB> on the console, try reinstalling grub."
25425 msgstr ""
25426
25427 #. type: verbatim
25428 #: ../resize/virt-resize.pod:650
25429 #, no-wrap
25430 msgid ""
25431 " guestfish -i -a newdisk\n"
25432 " ><fs> cat /boot/grub/device.map\n"
25433 " # check the contents of this file are sensible or\n"
25434 " # edit the file if necessary\n"
25435 " ><fs> grub-install / /dev/vda\n"
25436 " ><fs> exit\n"
25437 "\n"
25438 msgstr ""
25439
25440 #. type: textblock
25441 #: ../resize/virt-resize.pod:657
25442 msgid ""
25443 "For more flexible guest reconfiguration, including if you need to specify "
25444 "other parameters to grub-install, use L<virt-rescue(1)>."
25445 msgstr ""
25446
25447 #. type: =head1
25448 #: ../resize/virt-resize.pod:660
25449 msgid "ALTERNATIVE TOOLS"
25450 msgstr ""
25451
25452 #. type: textblock
25453 #: ../resize/virt-resize.pod:662
25454 msgid ""
25455 "There are several proprietary tools for resizing partitions.  We won't "
25456 "mention any here."
25457 msgstr ""
25458
25459 #. type: textblock
25460 #: ../resize/virt-resize.pod:665
25461 msgid ""
25462 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25463 "operations on disk images.  They can resize and move partitions, but I don't "
25464 "think they can do anything with the contents, and they certainly don't "
25465 "understand LVM."
25466 msgstr ""
25467
25468 #. type: textblock
25469 #: ../resize/virt-resize.pod:670
25470 msgid ""
25471 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25472 "but at a much lower level.  You will probably end up hand-calculating sector "
25473 "offsets, which is something that virt-resize was designed to avoid.  If you "
25474 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25475 "I<--debug> flag."
25476 msgstr ""
25477
25478 #. type: textblock
25479 #: ../resize/virt-resize.pod:690
25480 msgid ""
25481 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
25482 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
25483 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
25484 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
25485 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
25486 msgstr ""
25487
25488 #. type: textblock
25489 #: ../ruby/examples/guestfs-ruby.pod:5
25490 msgid "guestfs-ruby - How to use libguestfs from Ruby"
25491 msgstr ""
25492
25493 #. type: verbatim
25494 #: ../ruby/examples/guestfs-ruby.pod:9
25495 #, no-wrap
25496 msgid ""
25497 " require 'guestfs'\n"
25498 " g = Guestfs::Guestfs.new()\n"
25499 " g.add_drive_opts(\"disk.img\",\n"
25500 "                  :readonly => 1, :format => \"raw\")\n"
25501 " g.launch()\n"
25502 "\n"
25503 msgstr ""
25504
25505 #. type: textblock
25506 #: ../ruby/examples/guestfs-ruby.pod:17
25507 msgid ""
25508 "This manual page documents how to call libguestfs from the Ruby programming "
25509 "language.  This page just documents the differences from the C API and gives "
25510 "some examples.  If you are not familiar with using libguestfs, you also need "
25511 "to read L<guestfs(3)>."
25512 msgstr ""
25513
25514 #. type: textblock
25515 #: ../ruby/examples/guestfs-ruby.pod:24
25516 msgid ""
25517 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
25518 "This has a single parameter which is the error message (a string)."
25519 msgstr ""
25520
25521 #. type: textblock
25522 #: ../ruby/examples/guestfs-ruby.pod:38
25523 msgid ""
25524 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
25525 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
25526 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
25527 msgstr ""
25528
25529 #. type: textblock
25530 #: ../sparsify/virt-sparsify.pod:5
25531 msgid "virt-sparsify - Make a virtual machine disk sparse"
25532 msgstr ""
25533
25534 #. type: verbatim
25535 #: ../sparsify/virt-sparsify.pod:9
25536 #, no-wrap
25537 msgid ""
25538 " virt-sparsify [--options] indisk outdisk\n"
25539 "\n"
25540 msgstr ""
25541
25542 #. type: textblock
25543 #: ../sparsify/virt-sparsify.pod:13
25544 msgid ""
25545 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25546 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
25547 "the disk image can be converted back to free space on the host."
25548 msgstr ""
25549
25550 #. type: textblock
25551 #: ../sparsify/virt-sparsify.pod:18
25552 msgid ""
25553 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25554 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25555 msgstr ""
25556
25557 #. type: textblock
25558 #: ../sparsify/virt-sparsify.pod:21
25559 msgid ""
25560 "Virt-sparsify can also convert between some disk formats, for example "
25561 "converting a raw disk image to a thin-provisioned qcow2 image."
25562 msgstr ""
25563
25564 #. type: textblock
25565 #: ../sparsify/virt-sparsify.pod:24
25566 msgid ""
25567 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25568 "machines.  If a virtual machine has more than one attached disk, you must "
25569 "sparsify each one separately."
25570 msgstr ""
25571
25572 #. type: =head2
25573 #: ../sparsify/virt-sparsify.pod:28
25574 msgid "IMPORTANT LIMITATIONS"
25575 msgstr ""
25576
25577 #. type: textblock
25578 #: ../sparsify/virt-sparsify.pod:34
25579 msgid ""
25580 "Virt-sparsify does not do in-place modifications.  It copies from a source "
25581 "image to a destination image, leaving the source unchanged.  I<Check that "
25582 "the sparsification was successful before deleting the source image>."
25583 msgstr ""
25584
25585 #. type: textblock
25586 #: ../sparsify/virt-sparsify.pod:41
25587 msgid "The virtual machine I<must be shut down> before using this tool."
25588 msgstr ""
25589
25590 #. type: textblock
25591 #: ../sparsify/virt-sparsify.pod:45
25592 msgid ""
25593 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25594 "(1 temporary copy + 1 destination image).  This is in the worst case and "
25595 "usually much less space is required."
25596 msgstr ""
25597
25598 #. type: textblock
25599 #: ../sparsify/virt-sparsify.pod:51
25600 msgid ""
25601 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
25602 msgstr ""
25603
25604 #. type: textblock
25605 #: ../sparsify/virt-sparsify.pod:56
25606 msgid "Virt-sparsify cannot handle encrypted disks."
25607 msgstr ""
25608
25609 #. type: textblock
25610 #: ../sparsify/virt-sparsify.pod:60
25611 msgid ""
25612 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
25613 "this space is often used for critical items like bootloaders so it's not "
25614 "really unused."
25615 msgstr ""
25616
25617 #. type: textblock
25618 #: ../sparsify/virt-sparsify.pod:66
25619 msgid ""
25620 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
25621 "to do this unless we can be sure there is no hibernation data, so at the "
25622 "moment swap partitions are ignored."
25623 msgstr ""
25624
25625 #. type: textblock
25626 #: ../sparsify/virt-sparsify.pod:72
25627 msgid ""
25628 "You may also want to read the manual pages for the associated tools L<virt-"
25629 "filesystems(1)> and L<virt-df(1)> before starting."
25630 msgstr ""
25631
25632 #. type: textblock
25633 #: ../sparsify/virt-sparsify.pod:77
25634 msgid "Typical usage is:"
25635 msgstr ""
25636
25637 #. type: verbatim
25638 #: ../sparsify/virt-sparsify.pod:79
25639 #, no-wrap
25640 msgid ""
25641 " virt-sparsify indisk outdisk\n"
25642 "\n"
25643 msgstr ""
25644
25645 #. type: textblock
25646 #: ../sparsify/virt-sparsify.pod:81
25647 msgid ""
25648 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25649 "is created, or overwritten if it already exists.  The format of the input "
25650 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25651 msgstr ""
25652
25653 #. type: textblock
25654 #: ../sparsify/virt-sparsify.pod:86
25655 msgid "To convert between formats, use the I<--convert> option:"
25656 msgstr ""
25657
25658 #. type: verbatim
25659 #: ../sparsify/virt-sparsify.pod:88
25660 #, no-wrap
25661 msgid ""
25662 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25663 "\n"
25664 msgstr ""
25665
25666 #. type: textblock
25667 #: ../sparsify/virt-sparsify.pod:90
25668 msgid ""
25669 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25670 "can find within the source disk image.  You can get it to ignore (don't zero "
25671 "free space on) certain filesystems by doing:"
25672 msgstr ""
25673
25674 #. type: verbatim
25675 #: ../sparsify/virt-sparsify.pod:94
25676 #, no-wrap
25677 msgid ""
25678 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25679 "\n"
25680 msgstr ""
25681
25682 #. type: textblock
25683 #: ../sparsify/virt-sparsify.pod:96
25684 msgid ""
25685 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25686 msgstr ""
25687
25688 #. type: =item
25689 #: ../sparsify/virt-sparsify.pod:107
25690 msgid "B<--compress>"
25691 msgstr ""
25692
25693 #. type: textblock
25694 #: ../sparsify/virt-sparsify.pod:109
25695 msgid ""
25696 "Compress the output file.  This I<only> works if the output format is "
25697 "C<qcow2>."
25698 msgstr ""
25699
25700 #. type: =item
25701 #: ../sparsify/virt-sparsify.pod:112
25702 msgid "B<--convert> raw"
25703 msgstr ""
25704
25705 #. type: =item
25706 #: ../sparsify/virt-sparsify.pod:114
25707 msgid "B<--convert> qcow2"
25708 msgstr ""
25709
25710 #. type: =item
25711 #: ../sparsify/virt-sparsify.pod:116
25712 msgid "B<--convert> [other formats]"
25713 msgstr ""
25714
25715 #. type: textblock
25716 #: ../sparsify/virt-sparsify.pod:118
25717 msgid ""
25718 "Use C<output-format> as the format for the destination image.  If this is "
25719 "not specified, then the input format is used."
25720 msgstr ""
25721
25722 #. type: textblock
25723 #: ../sparsify/virt-sparsify.pod:121
25724 msgid ""
25725 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
25726 msgstr ""
25727
25728 #. type: textblock
25729 #: ../sparsify/virt-sparsify.pod:123
25730 msgid ""
25731 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25732 "C<vmdk>, but support for other formats is reliant on qemu."
25733 msgstr ""
25734
25735 #. type: textblock
25736 #: ../sparsify/virt-sparsify.pod:126
25737 msgid ""
25738 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25739 "sparsify doesn't need to try to guess the input format."
25740 msgstr ""
25741
25742 #. type: textblock
25743 #: ../sparsify/virt-sparsify.pod:129
25744 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
25745 msgstr ""
25746
25747 #. type: =item
25748 #: ../sparsify/virt-sparsify.pod:133
25749 msgid "B<--format> qcow2"
25750 msgstr ""
25751
25752 #. type: =item
25753 #: ../sparsify/virt-sparsify.pod:141
25754 msgid "B<--ignore> filesystem"
25755 msgstr ""
25756
25757 #. type: =item
25758 #: ../sparsify/virt-sparsify.pod:143
25759 msgid "B<--ignore> volgroup"
25760 msgstr ""
25761
25762 #. type: textblock
25763 #: ../sparsify/virt-sparsify.pod:145
25764 msgid ""
25765 "Ignore the named filesystem.  Free space on the filesystem will not be "
25766 "zeroed, but existing blocks of zeroes will still be sparsified."
25767 msgstr ""
25768
25769 #. type: textblock
25770 #: ../sparsify/virt-sparsify.pod:148
25771 msgid ""
25772 "In the second form, this ignores the named volume group.  Use the volume "
25773 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25774 msgstr ""
25775
25776 #. type: =item
25777 #: ../sparsify/virt-sparsify.pod:159
25778 msgid "B<-o> option[,option,...]"
25779 msgstr ""
25780
25781 #. type: textblock
25782 #: ../sparsify/virt-sparsify.pod:161
25783 msgid ""
25784 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
25785 "format.  Options available depend on the output format (see I<--convert>) "
25786 "and the installed version of the qemu-img program."
25787 msgstr ""
25788
25789 #. type: textblock
25790 #: ../sparsify/virt-sparsify.pod:165
25791 msgid ""
25792 "You should use I<-o> at most once.  To pass multiple options, separate them "
25793 "with commas, eg:"
25794 msgstr ""
25795
25796 #. type: verbatim
25797 #: ../sparsify/virt-sparsify.pod:168
25798 #, no-wrap
25799 msgid ""
25800 " virt-sparsify --convert qcow2 \\\n"
25801 "   -o cluster_size=512,preallocation=metadata ...\n"
25802 "\n"
25803 msgstr ""
25804
25805 #. type: textblock
25806 #: ../sparsify/virt-sparsify.pod:175
25807 msgid "This disables progress bars and other unnecessary output."
25808 msgstr ""
25809
25810 #. type: textblock
25811 #: ../sparsify/virt-sparsify.pod:197
25812 msgid ""
25813 "The I<--machine-readable> option can be used to make the output more machine "
25814 "friendly, which is useful when calling virt-sparsify from other programs, "
25815 "GUIs etc."
25816 msgstr ""
25817
25818 #. type: textblock
25819 #: ../sparsify/virt-sparsify.pod:203
25820 msgid ""
25821 "Firstly use the option on its own to query the capabilities of the virt-"
25822 "sparsify binary.  Typical output looks like this:"
25823 msgstr ""
25824
25825 #. type: verbatim
25826 #: ../sparsify/virt-sparsify.pod:206
25827 #, no-wrap
25828 msgid ""
25829 " $ virt-sparsify --machine-readable\n"
25830 " virt-sparsify\n"
25831 " ntfs\n"
25832 " btrfs\n"
25833 "\n"
25834 msgstr ""
25835
25836 #. type: textblock
25837 #: ../sparsify/virt-sparsify.pod:236
25838 msgid ""
25839 "The calling program should treat messages sent to stderr as error messages.  "
25840 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25841 "fatal error."
25842 msgstr ""
25843
25844 #. type: textblock
25845 #: ../sparsify/virt-sparsify.pod:242
25846 msgid ""
25847 "All versions of virt-sparsify have supported the I<--machine-readable> "
25848 "option."
25849 msgstr ""
25850
25851 #. type: textblock
25852 #: ../sparsify/virt-sparsify.pod:256
25853 msgid ""
25854 "Location of the temporary directory used for the potentially large temporary "
25855 "overlay file."
25856 msgstr ""
25857
25858 #. type: textblock
25859 #: ../sparsify/virt-sparsify.pod:259
25860 msgid ""
25861 "You should ensure there is enough free space in the worst case for a full "
25862 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25863 "to another directory that has enough space."
25864 msgstr ""
25865
25866 #. type: textblock
25867 #: ../sparsify/virt-sparsify.pod:263
25868 msgid "This defaults to C</tmp>."
25869 msgstr ""
25870
25871 #. type: textblock
25872 #: ../sparsify/virt-sparsify.pod:267
25873 msgid ""
25874 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25875 msgstr ""
25876
25877 #. type: textblock
25878 #: ../sparsify/virt-sparsify.pod:271
25879 msgid ""
25880 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25881 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25882 "(1)>, L<http://libguestfs.org/>."
25883 msgstr ""
25884
25885 #. type: =head2
25886 #: ../src/guestfs-actions.pod:1
25887 msgid "guestfs_add_cdrom"
25888 msgstr ""
25889
25890 #. type: verbatim
25891 #: ../src/guestfs-actions.pod:3
25892 #, no-wrap
25893 msgid ""
25894 " int\n"
25895 " guestfs_add_cdrom (guestfs_h *g,\n"
25896 "                    const char *filename);\n"
25897 "\n"
25898 msgstr ""
25899
25900 #. type: textblock
25901 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25902 #: ../src/guestfs-actions.pod:323
25903 msgid ""
25904 "I<This function is deprecated.> In new code, use the L</"
25905 "guestfs_add_drive_opts> call instead."
25906 msgstr ""
25907
25908 #. type: textblock
25909 #: ../src/guestfs-actions.pod:24
25910 msgid ""
25911 "This call checks for the existence of C<filename>.  This stops you from "
25912 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25913 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25914 "instead."
25915 msgstr ""
25916
25917 #. type: textblock
25918 #: ../src/guestfs-actions.pod:31
25919 msgid ""
25920 "If you just want to add an ISO file (often you use this as an efficient way "
25921 "to transfer large files into the guest), then you should probably use "
25922 "C<guestfs_add_drive_ro> instead."
25923 msgstr ""
25924
25925 #. type: textblock
25926 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
25927 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
25928 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
25929 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
25930 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
25931 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
25932 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
25933 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
25934 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
25935 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
25936 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
25937 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
25938 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
25939 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
25940 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
25941 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
25942 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
25943 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
25944 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
25945 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
25946 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
25947 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
25948 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
25949 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
25950 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
25951 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
25952 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4330
25953 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4357
25954 #: ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:4386
25955 #: ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4494
25956 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4531
25957 #: ../src/guestfs-actions.pod:4551 ../src/guestfs-actions.pod:4571
25958 #: ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:4625
25959 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:4679
25960 #: ../src/guestfs-actions.pod:4691 ../src/guestfs-actions.pod:4724
25961 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4753
25962 #: ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:4785
25963 #: ../src/guestfs-actions.pod:4943 ../src/guestfs-actions.pod:5027
25964 #: ../src/guestfs-actions.pod:5037 ../src/guestfs-actions.pod:5057
25965 #: ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5121
25966 #: ../src/guestfs-actions.pod:5139 ../src/guestfs-actions.pod:5157
25967 #: ../src/guestfs-actions.pod:5173 ../src/guestfs-actions.pod:5187
25968 #: ../src/guestfs-actions.pod:5201 ../src/guestfs-actions.pod:5218
25969 #: ../src/guestfs-actions.pod:5233 ../src/guestfs-actions.pod:5260
25970 #: ../src/guestfs-actions.pod:5323 ../src/guestfs-actions.pod:5396
25971 #: ../src/guestfs-actions.pod:5427 ../src/guestfs-actions.pod:5446
25972 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:5477
25973 #: ../src/guestfs-actions.pod:5494 ../src/guestfs-actions.pod:5507
25974 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5537
25975 #: ../src/guestfs-actions.pod:5569 ../src/guestfs-actions.pod:5595
25976 #: ../src/guestfs-actions.pod:5634 ../src/guestfs-actions.pod:5654
25977 #: ../src/guestfs-actions.pod:5668 ../src/guestfs-actions.pod:5685
25978 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5787
25979 #: ../src/guestfs-actions.pod:5834 ../src/guestfs-actions.pod:5877
25980 #: ../src/guestfs-actions.pod:5905 ../src/guestfs-actions.pod:5922
25981 #: ../src/guestfs-actions.pod:5940 ../src/guestfs-actions.pod:6077
25982 #: ../src/guestfs-actions.pod:6134 ../src/guestfs-actions.pod:6156
25983 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6226
25984 #: ../src/guestfs-actions.pod:6292 ../src/guestfs-actions.pod:6309
25985 #: ../src/guestfs-actions.pod:6322 ../src/guestfs-actions.pod:6336
25986 #: ../src/guestfs-actions.pod:6625 ../src/guestfs-actions.pod:6644
25987 #: ../src/guestfs-actions.pod:6663 ../src/guestfs-actions.pod:6677
25988 #: ../src/guestfs-actions.pod:6689 ../src/guestfs-actions.pod:6703
25989 #: ../src/guestfs-actions.pod:6715 ../src/guestfs-actions.pod:6729
25990 #: ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:6763
25991 #: ../src/guestfs-actions.pod:6782 ../src/guestfs-actions.pod:6801
25992 #: ../src/guestfs-actions.pod:6831 ../src/guestfs-actions.pod:6849
25993 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6890
25994 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6930
25995 #: ../src/guestfs-actions.pod:6949 ../src/guestfs-actions.pod:6966
25996 #: ../src/guestfs-actions.pod:6985 ../src/guestfs-actions.pod:7013
25997 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7056
25998 #: ../src/guestfs-actions.pod:7072 ../src/guestfs-actions.pod:7096
25999 #: ../src/guestfs-actions.pod:7115 ../src/guestfs-actions.pod:7130
26000 #: ../src/guestfs-actions.pod:7149 ../src/guestfs-actions.pod:7193
26001 #: ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7250
26002 #: ../src/guestfs-actions.pod:7362 ../src/guestfs-actions.pod:7483
26003 #: ../src/guestfs-actions.pod:7495 ../src/guestfs-actions.pod:7508
26004 #: ../src/guestfs-actions.pod:7521 ../src/guestfs-actions.pod:7543
26005 #: ../src/guestfs-actions.pod:7556 ../src/guestfs-actions.pod:7569
26006 #: ../src/guestfs-actions.pod:7582 ../src/guestfs-actions.pod:7597
26007 #: ../src/guestfs-actions.pod:7656 ../src/guestfs-actions.pod:7673
26008 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7705
26009 #: ../src/guestfs-actions.pod:7722 ../src/guestfs-actions.pod:7735
26010 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7855
26011 #: ../src/guestfs-actions.pod:7913 ../src/guestfs-actions.pod:7927
26012 #: ../src/guestfs-actions.pod:7968 ../src/guestfs-actions.pod:7981
26013 #: ../src/guestfs-actions.pod:7999 ../src/guestfs-actions.pod:8033
26014 #: ../src/guestfs-actions.pod:8069 ../src/guestfs-actions.pod:8185
26015 #: ../src/guestfs-actions.pod:8200 ../src/guestfs-actions.pod:8214
26016 #: ../src/guestfs-actions.pod:8269 ../src/guestfs-actions.pod:8282
26017 #: ../src/guestfs-actions.pod:8327 ../src/guestfs-actions.pod:8367
26018 #: ../src/guestfs-actions.pod:8423 ../src/guestfs-actions.pod:8443
26019 #: ../src/guestfs-actions.pod:8476 ../src/guestfs-actions.pod:8540
26020 #: ../src/guestfs-actions.pod:8563 ../src/guestfs-actions.pod:8589
26021 msgid "This function returns 0 on success or -1 on error."
26022 msgstr ""
26023
26024 #. type: textblock
26025 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
26026 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
26027 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
26028 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
26029 #: ../src/guestfs-actions.pod:5571 ../src/guestfs-actions.pod:6851
26030 #: ../src/guestfs-actions.pod:6968 ../src/guestfs-actions.pod:7117
26031 #: ../src/guestfs-actions.pod:7599 ../src/guestfs-actions.pod:7724
26032 #: ../src/guestfs-actions.pod:8369
26033 msgid "(Added in 0.3)"
26034 msgstr ""
26035
26036 #. type: =head2
26037 #: ../src/guestfs-actions.pod:41
26038 msgid "guestfs_add_domain"
26039 msgstr ""
26040
26041 #. type: verbatim
26042 #: ../src/guestfs-actions.pod:43
26043 #, no-wrap
26044 msgid ""
26045 " int\n"
26046 " guestfs_add_domain (guestfs_h *g,\n"
26047 "                     const char *dom,\n"
26048 "                     ...);\n"
26049 "\n"
26050 msgstr ""
26051
26052 #. type: textblock
26053 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
26054 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
26055 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
26056 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
26057 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
26058 #: ../src/guestfs-actions.pod:4878 ../src/guestfs-actions.pod:5272
26059 #: ../src/guestfs-actions.pod:5581 ../src/guestfs-actions.pod:5798
26060 #: ../src/guestfs-actions.pod:7766
26061 msgid ""
26062 "You may supply a list of optional arguments to this call.  Use zero or more "
26063 "of the following pairs of parameters, and terminate the list with C<-1> on "
26064 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
26065 msgstr ""
26066
26067 #. type: verbatim
26068 #: ../src/guestfs-actions.pod:53
26069 #, no-wrap
26070 msgid ""
26071 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
26072 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
26073 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
26074 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
26075 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
26076 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
26077 "\n"
26078 msgstr ""
26079
26080 #. type: textblock
26081 #: ../src/guestfs-actions.pod:60
26082 msgid ""
26083 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
26084 "It works by connecting to libvirt, requesting the domain and domain XML from "
26085 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
26086 "one."
26087 msgstr ""
26088
26089 #. type: textblock
26090 #: ../src/guestfs-actions.pod:141
26091 msgid ""
26092 "The other optional parameters are passed directly through to "
26093 "C<guestfs_add_drive_opts>."
26094 msgstr ""
26095
26096 #. type: textblock
26097 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
26098 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
26099 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
26100 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
26101 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
26102 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
26103 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
26104 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
26105 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
26106 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5974
26107 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:6406
26108 #: ../src/guestfs-actions.pod:6432 ../src/guestfs-actions.pod:7954
26109 #: ../src/guestfs-actions.pod:8380 ../src/guestfs-actions.pod:8393
26110 #: ../src/guestfs-actions.pod:8406
26111 msgid "On error this function returns -1."
26112 msgstr ""
26113
26114 #. type: textblock
26115 #: ../src/guestfs-actions.pod:146
26116 msgid "(Added in 1.7.4)"
26117 msgstr ""
26118
26119 #. type: =head2
26120 #: ../src/guestfs-actions.pod:148
26121 msgid "guestfs_add_domain_va"
26122 msgstr ""
26123
26124 #. type: verbatim
26125 #: ../src/guestfs-actions.pod:150
26126 #, no-wrap
26127 msgid ""
26128 " int\n"
26129 " guestfs_add_domain_va (guestfs_h *g,\n"
26130 "                        const char *dom,\n"
26131 "                        va_list args);\n"
26132 "\n"
26133 msgstr ""
26134
26135 #. type: textblock
26136 #: ../src/guestfs-actions.pod:155
26137 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
26138 msgstr ""
26139
26140 #. type: textblock
26141 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
26142 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
26143 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
26144 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
26145 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
26146 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
26147 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
26148 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
26149 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
26150 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
26151 #: ../src/guestfs-actions.pod:4955 ../src/guestfs-actions.pod:4967
26152 #: ../src/guestfs-actions.pod:5337 ../src/guestfs-actions.pod:5349
26153 #: ../src/guestfs-actions.pod:5609 ../src/guestfs-actions.pod:5621
26154 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5858
26155 #: ../src/guestfs-actions.pod:7868 ../src/guestfs-actions.pod:7879
26156 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
26157 msgstr ""
26158
26159 #. type: =head2
26160 #: ../src/guestfs-actions.pod:159
26161 msgid "guestfs_add_domain_argv"
26162 msgstr ""
26163
26164 #. type: verbatim
26165 #: ../src/guestfs-actions.pod:161
26166 #, no-wrap
26167 msgid ""
26168 " int\n"
26169 " guestfs_add_domain_argv (guestfs_h *g,\n"
26170 "                          const char *dom,\n"
26171 "                          const struct guestfs_add_domain_argv *optargs);\n"
26172 "\n"
26173 msgstr ""
26174
26175 #. type: textblock
26176 #: ../src/guestfs-actions.pod:166
26177 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
26178 msgstr ""
26179
26180 #. type: =head2
26181 #: ../src/guestfs-actions.pod:170
26182 msgid "guestfs_add_drive"
26183 msgstr ""
26184
26185 #. type: verbatim
26186 #: ../src/guestfs-actions.pod:172
26187 #, no-wrap
26188 msgid ""
26189 " int\n"
26190 " guestfs_add_drive (guestfs_h *g,\n"
26191 "                    const char *filename);\n"
26192 "\n"
26193 msgstr ""
26194
26195 #. type: textblock
26196 #: ../src/guestfs-actions.pod:176
26197 msgid ""
26198 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26199 "optional parameters, so the disk is added writable, with the format being "
26200 "detected automatically."
26201 msgstr ""
26202
26203 #. type: textblock
26204 #: ../src/guestfs-actions.pod:180
26205 msgid ""
26206 "Automatic detection of the format opens you up to a potential security hole "
26207 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
26208 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
26209 "you should think about replacing calls to this function with calls to "
26210 "C<guestfs_add_drive_opts>, and specifying the format."
26211 msgstr ""
26212
26213 #. type: =head2
26214 #: ../src/guestfs-actions.pod:191
26215 msgid "guestfs_add_drive_opts"
26216 msgstr ""
26217
26218 #. type: verbatim
26219 #: ../src/guestfs-actions.pod:193
26220 #, no-wrap
26221 msgid ""
26222 " int\n"
26223 " guestfs_add_drive_opts (guestfs_h *g,\n"
26224 "                         const char *filename,\n"
26225 "                         ...);\n"
26226 "\n"
26227 msgstr ""
26228
26229 #. type: verbatim
26230 #: ../src/guestfs-actions.pod:203
26231 #, no-wrap
26232 msgid ""
26233 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
26234 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
26235 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
26236 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
26237 "\n"
26238 msgstr ""
26239
26240 #. type: textblock
26241 #: ../src/guestfs-actions.pod:233
26242 msgid ""
26243 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
26244 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
26245 "Possible formats include C<raw> and C<qcow2>."
26246 msgstr ""
26247
26248 #. type: textblock
26249 #: ../src/guestfs-actions.pod:244
26250 msgid ""
26251 "This rarely-used option lets you emulate the behaviour of the deprecated "
26252 "C<guestfs_add_drive_with_if> call (q.v.)"
26253 msgstr ""
26254
26255 #. type: textblock
26256 #: ../src/guestfs-actions.pod:256
26257 msgid "(Added in 1.5.23)"
26258 msgstr ""
26259
26260 #. type: =head2
26261 #: ../src/guestfs-actions.pod:258
26262 msgid "guestfs_add_drive_opts_va"
26263 msgstr ""
26264
26265 #. type: verbatim
26266 #: ../src/guestfs-actions.pod:260
26267 #, no-wrap
26268 msgid ""
26269 " int\n"
26270 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
26271 "                            const char *filename,\n"
26272 "                            va_list args);\n"
26273 "\n"
26274 msgstr ""
26275
26276 #. type: textblock
26277 #: ../src/guestfs-actions.pod:265
26278 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
26279 msgstr ""
26280
26281 #. type: =head2
26282 #: ../src/guestfs-actions.pod:269
26283 msgid "guestfs_add_drive_opts_argv"
26284 msgstr ""
26285
26286 #. type: verbatim
26287 #: ../src/guestfs-actions.pod:271
26288 #, no-wrap
26289 msgid ""
26290 " int\n"
26291 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
26292 "                              const char *filename,\n"
26293 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
26294 "\n"
26295 msgstr ""
26296
26297 #. type: textblock
26298 #: ../src/guestfs-actions.pod:276
26299 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
26300 msgstr ""
26301
26302 #. type: =head2
26303 #: ../src/guestfs-actions.pod:280
26304 msgid "guestfs_add_drive_ro"
26305 msgstr ""
26306
26307 #. type: verbatim
26308 #: ../src/guestfs-actions.pod:282
26309 #, no-wrap
26310 msgid ""
26311 " int\n"
26312 " guestfs_add_drive_ro (guestfs_h *g,\n"
26313 "                       const char *filename);\n"
26314 "\n"
26315 msgstr ""
26316
26317 #. type: textblock
26318 #: ../src/guestfs-actions.pod:286
26319 msgid ""
26320 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
26321 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
26322 "disk is added read-only, with the format being detected automatically."
26323 msgstr ""
26324
26325 #. type: textblock
26326 #: ../src/guestfs-actions.pod:293
26327 msgid "(Added in 1.0.38)"
26328 msgstr ""
26329
26330 #. type: =head2
26331 #: ../src/guestfs-actions.pod:295
26332 msgid "guestfs_add_drive_ro_with_if"
26333 msgstr ""
26334
26335 #. type: verbatim
26336 #: ../src/guestfs-actions.pod:297
26337 #, no-wrap
26338 msgid ""
26339 " int\n"
26340 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
26341 "                               const char *filename,\n"
26342 "                               const char *iface);\n"
26343 "\n"
26344 msgstr ""
26345
26346 #. type: textblock
26347 #: ../src/guestfs-actions.pod:309
26348 msgid ""
26349 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
26350 "QEMU interface emulation to use at run time."
26351 msgstr ""
26352
26353 #. type: textblock
26354 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
26355 #: ../src/guestfs-actions.pod:2881
26356 msgid "(Added in 1.0.84)"
26357 msgstr ""
26358
26359 #. type: =head2
26360 #: ../src/guestfs-actions.pod:316
26361 msgid "guestfs_add_drive_with_if"
26362 msgstr ""
26363
26364 #. type: verbatim
26365 #: ../src/guestfs-actions.pod:318
26366 #, no-wrap
26367 msgid ""
26368 " int\n"
26369 " guestfs_add_drive_with_if (guestfs_h *g,\n"
26370 "                            const char *filename,\n"
26371 "                            const char *iface);\n"
26372 "\n"
26373 msgstr ""
26374
26375 #. type: textblock
26376 #: ../src/guestfs-actions.pod:330
26377 msgid ""
26378 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
26379 "QEMU interface emulation to use at run time."
26380 msgstr ""
26381
26382 #. type: =head2
26383 #: ../src/guestfs-actions.pod:337
26384 msgid "guestfs_aug_clear"
26385 msgstr ""
26386
26387 #. type: verbatim
26388 #: ../src/guestfs-actions.pod:339
26389 #, no-wrap
26390 msgid ""
26391 " int\n"
26392 " guestfs_aug_clear (guestfs_h *g,\n"
26393 "                    const char *augpath);\n"
26394 "\n"
26395 msgstr ""
26396
26397 #. type: textblock
26398 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
26399 msgid "(Added in 1.3.4)"
26400 msgstr ""
26401
26402 #. type: =head2
26403 #: ../src/guestfs-actions.pod:350
26404 msgid "guestfs_aug_close"
26405 msgstr ""
26406
26407 #. type: verbatim
26408 #: ../src/guestfs-actions.pod:352
26409 #, no-wrap
26410 msgid ""
26411 " int\n"
26412 " guestfs_aug_close (guestfs_h *g);\n"
26413 "\n"
26414 msgstr ""
26415
26416 #. type: textblock
26417 #: ../src/guestfs-actions.pod:355
26418 msgid ""
26419 "Close the current Augeas handle and free up any resources used by it.  After "
26420 "calling this, you have to call C<guestfs_aug_init> again before you can use "
26421 "any other Augeas functions."
26422 msgstr ""
26423
26424 #. type: textblock
26425 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
26426 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
26427 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
26428 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
26429 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
26430 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
26431 #: ../src/guestfs-actions.pod:6483
26432 msgid "(Added in 0.7)"
26433 msgstr ""
26434
26435 #. type: =head2
26436 #: ../src/guestfs-actions.pod:364
26437 msgid "guestfs_aug_defnode"
26438 msgstr ""
26439
26440 #. type: verbatim
26441 #: ../src/guestfs-actions.pod:366
26442 #, no-wrap
26443 msgid ""
26444 " struct guestfs_int_bool *\n"
26445 " guestfs_aug_defnode (guestfs_h *g,\n"
26446 "                      const char *name,\n"
26447 "                      const char *expr,\n"
26448 "                      const char *val);\n"
26449 "\n"
26450 msgstr ""
26451
26452 #. type: textblock
26453 #: ../src/guestfs-actions.pod:375
26454 msgid ""
26455 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
26456 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
26457 "containing that single node."
26458 msgstr ""
26459
26460 #. type: textblock
26461 #: ../src/guestfs-actions.pod:383
26462 msgid ""
26463 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
26464 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
26465 msgstr ""
26466
26467 #. type: =head2
26468 #: ../src/guestfs-actions.pod:389
26469 msgid "guestfs_aug_defvar"
26470 msgstr ""
26471
26472 #. type: verbatim
26473 #: ../src/guestfs-actions.pod:391
26474 #, no-wrap
26475 msgid ""
26476 " int\n"
26477 " guestfs_aug_defvar (guestfs_h *g,\n"
26478 "                     const char *name,\n"
26479 "                     const char *expr);\n"
26480 "\n"
26481 msgstr ""
26482
26483 #. type: =head2
26484 #: ../src/guestfs-actions.pod:407
26485 msgid "guestfs_aug_get"
26486 msgstr ""
26487
26488 #. type: verbatim
26489 #: ../src/guestfs-actions.pod:409
26490 #, no-wrap
26491 msgid ""
26492 " char *\n"
26493 " guestfs_aug_get (guestfs_h *g,\n"
26494 "                  const char *augpath);\n"
26495 "\n"
26496 msgstr ""
26497
26498 #. type: textblock
26499 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
26500 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
26501 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
26502 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
26503 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
26504 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
26505 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
26506 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
26507 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
26508 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
26509 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
26510 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
26511 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
26512 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
26513 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
26514 #: ../src/guestfs-actions.pod:4316 ../src/guestfs-actions.pod:4663
26515 #: ../src/guestfs-actions.pod:4830 ../src/guestfs-actions.pod:5099
26516 #: ../src/guestfs-actions.pod:5992 ../src/guestfs-actions.pod:6193
26517 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6559
26518 #: ../src/guestfs-actions.pod:6608 ../src/guestfs-actions.pod:7268
26519 #: ../src/guestfs-actions.pod:7284 ../src/guestfs-actions.pod:7308
26520 #: ../src/guestfs-actions.pod:7332 ../src/guestfs-actions.pod:8128
26521 #: ../src/guestfs-actions.pod:8147 ../src/guestfs-actions.pod:8165
26522 #: ../src/guestfs-actions.pod:8339 ../src/guestfs-actions.pod:8653
26523 msgid ""
26524 "This function returns a string, or NULL on error.  I<The caller must free "
26525 "the returned string after use>."
26526 msgstr ""
26527
26528 #. type: =head2
26529 #: ../src/guestfs-actions.pod:421
26530 msgid "guestfs_aug_init"
26531 msgstr ""
26532
26533 #. type: verbatim
26534 #: ../src/guestfs-actions.pod:423
26535 #, no-wrap
26536 msgid ""
26537 " int\n"
26538 " guestfs_aug_init (guestfs_h *g,\n"
26539 "                   const char *root,\n"
26540 "                   int flags);\n"
26541 "\n"
26542 msgstr ""
26543
26544 #. type: textblock
26545 #: ../src/guestfs-actions.pod:432
26546 msgid "You must call this before using any other C<guestfs_aug_*> commands."
26547 msgstr ""
26548
26549 #. type: textblock
26550 #: ../src/guestfs-actions.pod:457
26551 msgid ""
26552 "This option is only useful when debugging Augeas lenses.  Use of this option "
26553 "may require additional memory for the libguestfs appliance.  You may need to "
26554 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
26555 "C<guestfs_set_memsize>."
26556 msgstr ""
26557
26558 #. type: textblock
26559 #: ../src/guestfs-actions.pod:472
26560 msgid "Do not load the tree in C<guestfs_aug_init>."
26561 msgstr ""
26562
26563 #. type: textblock
26564 #: ../src/guestfs-actions.pod:476
26565 msgid "To close the handle, you can call C<guestfs_aug_close>."
26566 msgstr ""
26567
26568 #. type: =head2
26569 #: ../src/guestfs-actions.pod:484
26570 msgid "guestfs_aug_insert"
26571 msgstr ""
26572
26573 #. type: verbatim
26574 #: ../src/guestfs-actions.pod:486
26575 #, no-wrap
26576 msgid ""
26577 " int\n"
26578 " guestfs_aug_insert (guestfs_h *g,\n"
26579 "                     const char *augpath,\n"
26580 "                     const char *label,\n"
26581 "                     int before);\n"
26582 "\n"
26583 msgstr ""
26584
26585 #. type: =head2
26586 #: ../src/guestfs-actions.pod:504
26587 msgid "guestfs_aug_load"
26588 msgstr ""
26589
26590 #. type: verbatim
26591 #: ../src/guestfs-actions.pod:506
26592 #, no-wrap
26593 msgid ""
26594 " int\n"
26595 " guestfs_aug_load (guestfs_h *g);\n"
26596 "\n"
26597 msgstr ""
26598
26599 #. type: =head2
26600 #: ../src/guestfs-actions.pod:518
26601 msgid "guestfs_aug_ls"
26602 msgstr ""
26603
26604 #. type: verbatim
26605 #: ../src/guestfs-actions.pod:520
26606 #, no-wrap
26607 msgid ""
26608 " char **\n"
26609 " guestfs_aug_ls (guestfs_h *g,\n"
26610 "                 const char *augpath);\n"
26611 "\n"
26612 msgstr ""
26613
26614 #. type: textblock
26615 #: ../src/guestfs-actions.pod:524
26616 msgid ""
26617 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26618 "sorting the resulting nodes into alphabetical order."
26619 msgstr ""
26620
26621 #. type: textblock
26622 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
26623 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
26624 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
26625 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
26626 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
26627 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
26628 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
26629 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
26630 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
26631 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
26632 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
26633 #: ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4298
26634 #: ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4802
26635 #: ../src/guestfs-actions.pod:5718 ../src/guestfs-actions.pod:6353
26636 #: ../src/guestfs-actions.pod:6479 ../src/guestfs-actions.pod:6593
26637 #: ../src/guestfs-actions.pod:7348 ../src/guestfs-actions.pod:7409
26638 #: ../src/guestfs-actions.pod:7464 ../src/guestfs-actions.pod:7610
26639 #: ../src/guestfs-actions.pod:7634 ../src/guestfs-actions.pod:8232
26640 #: ../src/guestfs-actions.pod:8252 ../src/guestfs-actions.pod:8299
26641 #: ../src/guestfs-actions.pod:8493 ../src/guestfs-actions.pod:8512
26642 #: ../src/guestfs-actions.pod:8603 ../src/guestfs-actions.pod:8622
26643 #: ../src/guestfs-actions.pod:8668 ../src/guestfs-actions.pod:8687
26644 msgid ""
26645 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26646 ">), or NULL if there was an error.  I<The caller must free the strings and "
26647 "the array after use>."
26648 msgstr ""
26649
26650 #. type: textblock
26651 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
26652 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
26653 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
26654 #: ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4693
26655 #: ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5072
26656 #: ../src/guestfs-actions.pod:5235 ../src/guestfs-actions.pod:5722
26657 #: ../src/guestfs-actions.pod:6294 ../src/guestfs-actions.pod:6691
26658 #: ../src/guestfs-actions.pod:6705 ../src/guestfs-actions.pod:6717
26659 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7970
26660 #: ../src/guestfs-actions.pod:7983 ../src/guestfs-actions.pod:8216
26661 #: ../src/guestfs-actions.pod:8481
26662 msgid "(Added in 0.8)"
26663 msgstr ""
26664
26665 #. type: =head2
26666 #: ../src/guestfs-actions.pod:533
26667 msgid "guestfs_aug_match"
26668 msgstr ""
26669
26670 #. type: verbatim
26671 #: ../src/guestfs-actions.pod:535
26672 #, no-wrap
26673 msgid ""
26674 " char **\n"
26675 " guestfs_aug_match (guestfs_h *g,\n"
26676 "                    const char *augpath);\n"
26677 "\n"
26678 msgstr ""
26679
26680 #. type: =head2
26681 #: ../src/guestfs-actions.pod:549
26682 msgid "guestfs_aug_mv"
26683 msgstr ""
26684
26685 #. type: verbatim
26686 #: ../src/guestfs-actions.pod:551
26687 #, no-wrap
26688 msgid ""
26689 " int\n"
26690 " guestfs_aug_mv (guestfs_h *g,\n"
26691 "                 const char *src,\n"
26692 "                 const char *dest);\n"
26693 "\n"
26694 msgstr ""
26695
26696 #. type: =head2
26697 #: ../src/guestfs-actions.pod:563
26698 msgid "guestfs_aug_rm"
26699 msgstr ""
26700
26701 #. type: verbatim
26702 #: ../src/guestfs-actions.pod:565
26703 #, no-wrap
26704 msgid ""
26705 " int\n"
26706 " guestfs_aug_rm (guestfs_h *g,\n"
26707 "                 const char *augpath);\n"
26708 "\n"
26709 msgstr ""
26710
26711 #. type: =head2
26712 #: ../src/guestfs-actions.pod:577
26713 msgid "guestfs_aug_save"
26714 msgstr ""
26715
26716 #. type: verbatim
26717 #: ../src/guestfs-actions.pod:579
26718 #, no-wrap
26719 msgid ""
26720 " int\n"
26721 " guestfs_aug_save (guestfs_h *g);\n"
26722 "\n"
26723 msgstr ""
26724
26725 #. type: textblock
26726 #: ../src/guestfs-actions.pod:584
26727 msgid ""
26728 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26729 "are saved."
26730 msgstr ""
26731
26732 #. type: =head2
26733 #: ../src/guestfs-actions.pod:591
26734 msgid "guestfs_aug_set"
26735 msgstr ""
26736
26737 #. type: verbatim
26738 #: ../src/guestfs-actions.pod:593
26739 #, no-wrap
26740 msgid ""
26741 " int\n"
26742 " guestfs_aug_set (guestfs_h *g,\n"
26743 "                  const char *augpath,\n"
26744 "                  const char *val);\n"
26745 "\n"
26746 msgstr ""
26747
26748 #. type: textblock
26749 #: ../src/guestfs-actions.pod:600
26750 msgid ""
26751 "In the Augeas API, it is possible to clear a node by setting the value to "
26752 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26753 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26754 msgstr ""
26755
26756 #. type: =head2
26757 #: ../src/guestfs-actions.pod:609
26758 msgid "guestfs_available"
26759 msgstr ""
26760
26761 #. type: verbatim
26762 #: ../src/guestfs-actions.pod:611
26763 #, no-wrap
26764 msgid ""
26765 " int\n"
26766 " guestfs_available (guestfs_h *g,\n"
26767 "                    char *const *groups);\n"
26768 "\n"
26769 msgstr ""
26770
26771 #. type: textblock
26772 #: ../src/guestfs-actions.pod:619
26773 msgid ""
26774 "The libguestfs groups, and the functions that those groups correspond to, "
26775 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26776 "runtime by calling C<guestfs_available_all_groups>."
26777 msgstr ""
26778
26779 #. type: textblock
26780 #: ../src/guestfs-actions.pod:643
26781 msgid "You must call C<guestfs_launch> before calling this function."
26782 msgstr ""
26783
26784 #. type: textblock
26785 #: ../src/guestfs-actions.pod:665
26786 msgid ""
26787 "This call was added in version C<1.0.80>.  In previous versions of "
26788 "libguestfs all you could do would be to speculatively execute a command to "
26789 "find out if the daemon implemented it.  See also C<guestfs_version>."
26790 msgstr ""
26791
26792 #. type: textblock
26793 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
26794 msgid "(Added in 1.0.80)"
26795 msgstr ""
26796
26797 #. type: =head2
26798 #: ../src/guestfs-actions.pod:676
26799 msgid "guestfs_available_all_groups"
26800 msgstr ""
26801
26802 #. type: verbatim
26803 #: ../src/guestfs-actions.pod:678
26804 #, no-wrap
26805 msgid ""
26806 " char **\n"
26807 " guestfs_available_all_groups (guestfs_h *g);\n"
26808 "\n"
26809 msgstr ""
26810
26811 #. type: textblock
26812 #: ../src/guestfs-actions.pod:681
26813 msgid ""
26814 "This command returns a list of all optional groups that this daemon knows "
26815 "about.  Note this returns both supported and unsupported groups.  To find "
26816 "out which ones the daemon can actually support you have to call "
26817 "C<guestfs_available> on each member of the returned list."
26818 msgstr ""
26819
26820 #. type: textblock
26821 #: ../src/guestfs-actions.pod:687
26822 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26823 msgstr ""
26824
26825 #. type: textblock
26826 #: ../src/guestfs-actions.pod:693
26827 msgid "(Added in 1.3.15)"
26828 msgstr ""
26829
26830 #. type: =head2
26831 #: ../src/guestfs-actions.pod:695
26832 msgid "guestfs_base64_in"
26833 msgstr ""
26834
26835 #. type: verbatim
26836 #: ../src/guestfs-actions.pod:697
26837 #, no-wrap
26838 msgid ""
26839 " int\n"
26840 " guestfs_base64_in (guestfs_h *g,\n"
26841 "                    const char *base64file,\n"
26842 "                    const char *filename);\n"
26843 "\n"
26844 msgstr ""
26845
26846 #. type: textblock
26847 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26848 msgid "(Added in 1.3.5)"
26849 msgstr ""
26850
26851 #. type: =head2
26852 #: ../src/guestfs-actions.pod:709
26853 msgid "guestfs_base64_out"
26854 msgstr ""
26855
26856 #. type: verbatim
26857 #: ../src/guestfs-actions.pod:711
26858 #, no-wrap
26859 msgid ""
26860 " int\n"
26861 " guestfs_base64_out (guestfs_h *g,\n"
26862 "                     const char *filename,\n"
26863 "                     const char *base64file);\n"
26864 "\n"
26865 msgstr ""
26866
26867 #. type: =head2
26868 #: ../src/guestfs-actions.pod:723
26869 msgid "guestfs_blockdev_flushbufs"
26870 msgstr ""
26871
26872 #. type: verbatim
26873 #: ../src/guestfs-actions.pod:725
26874 #, no-wrap
26875 msgid ""
26876 " int\n"
26877 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26878 "                             const char *device);\n"
26879 "\n"
26880 msgstr ""
26881
26882 #. type: textblock
26883 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
26884 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
26885 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
26886 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
26887 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
26888 msgid "(Added in 0.9.3)"
26889 msgstr ""
26890
26891 #. type: =head2
26892 #: ../src/guestfs-actions.pod:738
26893 msgid "guestfs_blockdev_getbsz"
26894 msgstr ""
26895
26896 #. type: verbatim
26897 #: ../src/guestfs-actions.pod:740
26898 #, no-wrap
26899 msgid ""
26900 " int\n"
26901 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26902 "                          const char *device);\n"
26903 "\n"
26904 msgstr ""
26905
26906 #. type: =head2
26907 #: ../src/guestfs-actions.pod:755
26908 msgid "guestfs_blockdev_getro"
26909 msgstr ""
26910
26911 #. type: verbatim
26912 #: ../src/guestfs-actions.pod:757
26913 #, no-wrap
26914 msgid ""
26915 " int\n"
26916 " guestfs_blockdev_getro (guestfs_h *g,\n"
26917 "                         const char *device);\n"
26918 "\n"
26919 msgstr ""
26920
26921 #. type: textblock
26922 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
26923 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
26924 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
26925 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
26926 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
26927 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
26928 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
26929 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
26930 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
26931 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
26932 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
26933 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
26934 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
26935 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
26936 #: ../src/guestfs-actions.pod:5956
26937 msgid "This function returns a C truth value on success or -1 on error."
26938 msgstr ""
26939
26940 #. type: =head2
26941 #: ../src/guestfs-actions.pod:770
26942 msgid "guestfs_blockdev_getsize64"
26943 msgstr ""
26944
26945 #. type: verbatim
26946 #: ../src/guestfs-actions.pod:772
26947 #, no-wrap
26948 msgid ""
26949 " int64_t\n"
26950 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26951 "                             const char *device);\n"
26952 "\n"
26953 msgstr ""
26954
26955 #. type: textblock
26956 #: ../src/guestfs-actions.pod:778
26957 msgid "See also C<guestfs_blockdev_getsz>."
26958 msgstr ""
26959
26960 #. type: =head2
26961 #: ../src/guestfs-actions.pod:786
26962 msgid "guestfs_blockdev_getss"
26963 msgstr ""
26964
26965 #. type: verbatim
26966 #: ../src/guestfs-actions.pod:788
26967 #, no-wrap
26968 msgid ""
26969 " int\n"
26970 " guestfs_blockdev_getss (guestfs_h *g,\n"
26971 "                         const char *device);\n"
26972 "\n"
26973 msgstr ""
26974
26975 #. type: textblock
26976 #: ../src/guestfs-actions.pod:795
26977 msgid ""
26978 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26979 "that)."
26980 msgstr ""
26981
26982 #. type: =head2
26983 #: ../src/guestfs-actions.pod:804
26984 msgid "guestfs_blockdev_getsz"
26985 msgstr ""
26986
26987 #. type: verbatim
26988 #: ../src/guestfs-actions.pod:806
26989 #, no-wrap
26990 msgid ""
26991 " int64_t\n"
26992 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26993 "                         const char *device);\n"
26994 "\n"
26995 msgstr ""
26996
26997 #. type: textblock
26998 #: ../src/guestfs-actions.pod:813
26999 msgid ""
27000 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
27001 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
27002 msgstr ""
27003
27004 #. type: =head2
27005 #: ../src/guestfs-actions.pod:823
27006 msgid "guestfs_blockdev_rereadpt"
27007 msgstr ""
27008
27009 #. type: verbatim
27010 #: ../src/guestfs-actions.pod:825
27011 #, no-wrap
27012 msgid ""
27013 " int\n"
27014 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27015 "                            const char *device);\n"
27016 "\n"
27017 msgstr ""
27018
27019 #. type: =head2
27020 #: ../src/guestfs-actions.pod:837
27021 msgid "guestfs_blockdev_setbsz"
27022 msgstr ""
27023
27024 #. type: verbatim
27025 #: ../src/guestfs-actions.pod:839
27026 #, no-wrap
27027 msgid ""
27028 " int\n"
27029 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27030 "                          const char *device,\n"
27031 "                          int blocksize);\n"
27032 "\n"
27033 msgstr ""
27034
27035 #. type: =head2
27036 #: ../src/guestfs-actions.pod:855
27037 msgid "guestfs_blockdev_setro"
27038 msgstr ""
27039
27040 #. type: verbatim
27041 #: ../src/guestfs-actions.pod:857
27042 #, no-wrap
27043 msgid ""
27044 " int\n"
27045 " guestfs_blockdev_setro (guestfs_h *g,\n"
27046 "                         const char *device);\n"
27047 "\n"
27048 msgstr ""
27049
27050 #. type: =head2
27051 #: ../src/guestfs-actions.pod:869
27052 msgid "guestfs_blockdev_setrw"
27053 msgstr ""
27054
27055 #. type: verbatim
27056 #: ../src/guestfs-actions.pod:871
27057 #, no-wrap
27058 msgid ""
27059 " int\n"
27060 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27061 "                         const char *device);\n"
27062 "\n"
27063 msgstr ""
27064
27065 #. type: =head2
27066 #: ../src/guestfs-actions.pod:883
27067 msgid "guestfs_btrfs_filesystem_resize"
27068 msgstr ""
27069
27070 #. type: verbatim
27071 #: ../src/guestfs-actions.pod:885
27072 #, no-wrap
27073 msgid ""
27074 " int\n"
27075 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27076 "                                  const char *mountpoint,\n"
27077 "                                  ...);\n"
27078 "\n"
27079 msgstr ""
27080
27081 #. type: verbatim
27082 #: ../src/guestfs-actions.pod:895
27083 #, no-wrap
27084 msgid ""
27085 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27086 "\n"
27087 msgstr ""
27088
27089 #. type: textblock
27090 #: ../src/guestfs-actions.pod:918
27091 msgid "(Added in 1.11.17)"
27092 msgstr ""
27093
27094 #. type: =head2
27095 #: ../src/guestfs-actions.pod:920
27096 msgid "guestfs_btrfs_filesystem_resize_va"
27097 msgstr ""
27098
27099 #. type: verbatim
27100 #: ../src/guestfs-actions.pod:922
27101 #, no-wrap
27102 msgid ""
27103 " int\n"
27104 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27105 "                                     const char *mountpoint,\n"
27106 "                                     va_list args);\n"
27107 "\n"
27108 msgstr ""
27109
27110 #. type: textblock
27111 #: ../src/guestfs-actions.pod:927
27112 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
27113 msgstr ""
27114
27115 #. type: =head2
27116 #: ../src/guestfs-actions.pod:931
27117 msgid "guestfs_btrfs_filesystem_resize_argv"
27118 msgstr ""
27119
27120 #. type: verbatim
27121 #: ../src/guestfs-actions.pod:933
27122 #, no-wrap
27123 msgid ""
27124 " int\n"
27125 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27126 "                                       const char *mountpoint,\n"
27127 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27128 "\n"
27129 msgstr ""
27130
27131 #. type: textblock
27132 #: ../src/guestfs-actions.pod:938
27133 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
27134 msgstr ""
27135
27136 #. type: =head2
27137 #: ../src/guestfs-actions.pod:942
27138 msgid "guestfs_case_sensitive_path"
27139 msgstr ""
27140
27141 #. type: verbatim
27142 #: ../src/guestfs-actions.pod:944
27143 #, no-wrap
27144 msgid ""
27145 " char *\n"
27146 " guestfs_case_sensitive_path (guestfs_h *g,\n"
27147 "                              const char *path);\n"
27148 "\n"
27149 msgstr ""
27150
27151 #. type: textblock
27152 #: ../src/guestfs-actions.pod:970
27153 msgid ""
27154 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
27155 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
27156 "how the directories were originally created under Windows)."
27157 msgstr ""
27158
27159 #. type: textblock
27160 #: ../src/guestfs-actions.pod:978
27161 msgid "See also C<guestfs_realpath>."
27162 msgstr ""
27163
27164 #. type: textblock
27165 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8150
27166 msgid "(Added in 1.0.75)"
27167 msgstr ""
27168
27169 #. type: =head2
27170 #: ../src/guestfs-actions.pod:985
27171 msgid "guestfs_cat"
27172 msgstr ""
27173
27174 #. type: verbatim
27175 #: ../src/guestfs-actions.pod:987
27176 #, no-wrap
27177 msgid ""
27178 " char *\n"
27179 " guestfs_cat (guestfs_h *g,\n"
27180 "              const char *path);\n"
27181 "\n"
27182 msgstr ""
27183
27184 #. type: textblock
27185 #: ../src/guestfs-actions.pod:993
27186 msgid ""
27187 "Note that this function cannot correctly handle binary files (specifically, "
27188 "files containing C<\\0> character which is treated as end of string).  For "
27189 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
27190 "functions which have a more complex interface."
27191 msgstr ""
27192
27193 #. type: textblock
27194 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
27195 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
27196 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4806
27197 #: ../src/guestfs-actions.pod:4820 ../src/guestfs-actions.pod:6357
27198 #: ../src/guestfs-actions.pod:6371 ../src/guestfs-actions.pod:8303
27199 #: ../src/guestfs-actions.pod:8317
27200 msgid "(Added in 0.4)"
27201 msgstr ""
27202
27203 #. type: =head2
27204 #: ../src/guestfs-actions.pod:1006
27205 msgid "guestfs_checksum"
27206 msgstr ""
27207
27208 #. type: verbatim
27209 #: ../src/guestfs-actions.pod:1008
27210 #, no-wrap
27211 msgid ""
27212 " char *\n"
27213 " guestfs_checksum (guestfs_h *g,\n"
27214 "                   const char *csumtype,\n"
27215 "                   const char *path);\n"
27216 "\n"
27217 msgstr ""
27218
27219 #. type: textblock
27220 #: ../src/guestfs-actions.pod:1054
27221 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
27222 msgstr ""
27223
27224 #. type: textblock
27225 #: ../src/guestfs-actions.pod:1056
27226 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
27227 msgstr ""
27228
27229 #. type: textblock
27230 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
27231 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
27232 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
27233 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:8006
27234 msgid "(Added in 1.0.2)"
27235 msgstr ""
27236
27237 #. type: =head2
27238 #: ../src/guestfs-actions.pod:1063
27239 msgid "guestfs_checksum_device"
27240 msgstr ""
27241
27242 #. type: verbatim
27243 #: ../src/guestfs-actions.pod:1065
27244 #, no-wrap
27245 msgid ""
27246 " char *\n"
27247 " guestfs_checksum_device (guestfs_h *g,\n"
27248 "                          const char *csumtype,\n"
27249 "                          const char *device);\n"
27250 "\n"
27251 msgstr ""
27252
27253 #. type: textblock
27254 #: ../src/guestfs-actions.pod:1070
27255 msgid ""
27256 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
27257 "device named C<device>.  For the types of checksums supported see the "
27258 "C<guestfs_checksum> command."
27259 msgstr ""
27260
27261 #. type: textblock
27262 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5789
27263 #: ../src/guestfs-actions.pod:5924 ../src/guestfs-actions.pod:5958
27264 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6158
27265 #: ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7929
27266 #: ../src/guestfs-actions.pod:8329
27267 msgid "(Added in 1.3.2)"
27268 msgstr ""
27269
27270 #. type: =head2
27271 #: ../src/guestfs-actions.pod:1079
27272 msgid "guestfs_checksums_out"
27273 msgstr ""
27274
27275 #. type: verbatim
27276 #: ../src/guestfs-actions.pod:1081
27277 #, no-wrap
27278 msgid ""
27279 " int\n"
27280 " guestfs_checksums_out (guestfs_h *g,\n"
27281 "                        const char *csumtype,\n"
27282 "                        const char *directory,\n"
27283 "                        const char *sumsfile);\n"
27284 "\n"
27285 msgstr ""
27286
27287 #. type: textblock
27288 #: ../src/guestfs-actions.pod:1101
27289 msgid "(Added in 1.3.7)"
27290 msgstr ""
27291
27292 #. type: =head2
27293 #: ../src/guestfs-actions.pod:1103
27294 msgid "guestfs_chmod"
27295 msgstr ""
27296
27297 #. type: verbatim
27298 #: ../src/guestfs-actions.pod:1105
27299 #, no-wrap
27300 msgid ""
27301 " int\n"
27302 " guestfs_chmod (guestfs_h *g,\n"
27303 "                int mode,\n"
27304 "                const char *path);\n"
27305 "\n"
27306 msgstr ""
27307
27308 #. type: =head2
27309 #: ../src/guestfs-actions.pod:1123
27310 msgid "guestfs_chown"
27311 msgstr ""
27312
27313 #. type: verbatim
27314 #: ../src/guestfs-actions.pod:1125
27315 #, no-wrap
27316 msgid ""
27317 " int\n"
27318 " guestfs_chown (guestfs_h *g,\n"
27319 "                int owner,\n"
27320 "                int group,\n"
27321 "                const char *path);\n"
27322 "\n"
27323 msgstr ""
27324
27325 #. type: =head2
27326 #: ../src/guestfs-actions.pod:1141
27327 msgid "guestfs_command"
27328 msgstr ""
27329
27330 #. type: verbatim
27331 #: ../src/guestfs-actions.pod:1143
27332 #, no-wrap
27333 msgid ""
27334 " char *\n"
27335 " guestfs_command (guestfs_h *g,\n"
27336 "                  char *const *arguments);\n"
27337 "\n"
27338 msgstr ""
27339
27340 #. type: textblock
27341 #: ../src/guestfs-actions.pod:1152
27342 msgid ""
27343 "The single parameter is an argv-style list of arguments.  The first element "
27344 "is the name of the program to run.  Subsequent elements are parameters.  The "
27345 "list must be non-empty (ie. must contain a program name).  Note that the "
27346 "command runs directly, and is I<not> invoked via the shell (see "
27347 "C<guestfs_sh>)."
27348 msgstr ""
27349
27350 #. type: textblock
27351 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
27352 #: ../src/guestfs-actions.pod:2027
27353 msgid "(Added in 0.9.1)"
27354 msgstr ""
27355
27356 #. type: =head2
27357 #: ../src/guestfs-actions.pod:1185
27358 msgid "guestfs_command_lines"
27359 msgstr ""
27360
27361 #. type: verbatim
27362 #: ../src/guestfs-actions.pod:1187
27363 #, no-wrap
27364 msgid ""
27365 " char **\n"
27366 " guestfs_command_lines (guestfs_h *g,\n"
27367 "                        char *const *arguments);\n"
27368 "\n"
27369 msgstr ""
27370
27371 #. type: textblock
27372 #: ../src/guestfs-actions.pod:1191
27373 msgid ""
27374 "This is the same as C<guestfs_command>, but splits the result into a list of "
27375 "lines."
27376 msgstr ""
27377
27378 #. type: textblock
27379 #: ../src/guestfs-actions.pod:1194
27380 msgid "See also: C<guestfs_sh_lines>"
27381 msgstr ""
27382
27383 #. type: =head2
27384 #: ../src/guestfs-actions.pod:1205
27385 msgid "guestfs_compress_device_out"
27386 msgstr ""
27387
27388 #. type: verbatim
27389 #: ../src/guestfs-actions.pod:1207
27390 #, no-wrap
27391 msgid ""
27392 " int\n"
27393 " guestfs_compress_device_out (guestfs_h *g,\n"
27394 "                              const char *ctype,\n"
27395 "                              const char *device,\n"
27396 "                              const char *zdevice,\n"
27397 "                              ...);\n"
27398 "\n"
27399 msgstr ""
27400
27401 #. type: verbatim
27402 #: ../src/guestfs-actions.pod:1219
27403 #, no-wrap
27404 msgid ""
27405 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
27406 "\n"
27407 msgstr ""
27408
27409 #. type: textblock
27410 #: ../src/guestfs-actions.pod:1224
27411 msgid ""
27412 "The C<ctype> and optional C<level> parameters have the same meaning as in "
27413 "C<guestfs_compress_out>."
27414 msgstr ""
27415
27416 #. type: textblock
27417 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
27418 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7074
27419 msgid "(Added in 1.13.15)"
27420 msgstr ""
27421
27422 #. type: =head2
27423 #: ../src/guestfs-actions.pod:1231
27424 msgid "guestfs_compress_device_out_va"
27425 msgstr ""
27426
27427 #. type: verbatim
27428 #: ../src/guestfs-actions.pod:1233
27429 #, no-wrap
27430 msgid ""
27431 " int\n"
27432 " guestfs_compress_device_out_va (guestfs_h *g,\n"
27433 "                                 const char *ctype,\n"
27434 "                                 const char *device,\n"
27435 "                                 const char *zdevice,\n"
27436 "                                 va_list args);\n"
27437 "\n"
27438 msgstr ""
27439
27440 #. type: textblock
27441 #: ../src/guestfs-actions.pod:1240
27442 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
27443 msgstr ""
27444
27445 #. type: =head2
27446 #: ../src/guestfs-actions.pod:1244
27447 msgid "guestfs_compress_device_out_argv"
27448 msgstr ""
27449
27450 #. type: verbatim
27451 #: ../src/guestfs-actions.pod:1246
27452 #, no-wrap
27453 msgid ""
27454 " int\n"
27455 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
27456 "                                   const char *ctype,\n"
27457 "                                   const char *device,\n"
27458 "                                   const char *zdevice,\n"
27459 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
27460 "\n"
27461 msgstr ""
27462
27463 #. type: textblock
27464 #: ../src/guestfs-actions.pod:1253
27465 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
27466 msgstr ""
27467
27468 #. type: =head2
27469 #: ../src/guestfs-actions.pod:1257
27470 msgid "guestfs_compress_out"
27471 msgstr ""
27472
27473 #. type: verbatim
27474 #: ../src/guestfs-actions.pod:1259
27475 #, no-wrap
27476 msgid ""
27477 " int\n"
27478 " guestfs_compress_out (guestfs_h *g,\n"
27479 "                       const char *ctype,\n"
27480 "                       const char *file,\n"
27481 "                       const char *zfile,\n"
27482 "                       ...);\n"
27483 "\n"
27484 msgstr ""
27485
27486 #. type: verbatim
27487 #: ../src/guestfs-actions.pod:1271
27488 #, no-wrap
27489 msgid ""
27490 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
27491 "\n"
27492 msgstr ""
27493
27494 #. type: =head2
27495 #: ../src/guestfs-actions.pod:1290
27496 msgid "guestfs_compress_out_va"
27497 msgstr ""
27498
27499 #. type: verbatim
27500 #: ../src/guestfs-actions.pod:1292
27501 #, no-wrap
27502 msgid ""
27503 " int\n"
27504 " guestfs_compress_out_va (guestfs_h *g,\n"
27505 "                          const char *ctype,\n"
27506 "                          const char *file,\n"
27507 "                          const char *zfile,\n"
27508 "                          va_list args);\n"
27509 "\n"
27510 msgstr ""
27511
27512 #. type: textblock
27513 #: ../src/guestfs-actions.pod:1299
27514 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27515 msgstr ""
27516
27517 #. type: =head2
27518 #: ../src/guestfs-actions.pod:1303
27519 msgid "guestfs_compress_out_argv"
27520 msgstr ""
27521
27522 #. type: verbatim
27523 #: ../src/guestfs-actions.pod:1305
27524 #, no-wrap
27525 msgid ""
27526 " int\n"
27527 " guestfs_compress_out_argv (guestfs_h *g,\n"
27528 "                            const char *ctype,\n"
27529 "                            const char *file,\n"
27530 "                            const char *zfile,\n"
27531 "                            const struct guestfs_compress_out_argv *optargs);\n"
27532 "\n"
27533 msgstr ""
27534
27535 #. type: textblock
27536 #: ../src/guestfs-actions.pod:1312
27537 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27538 msgstr ""
27539
27540 #. type: =head2
27541 #: ../src/guestfs-actions.pod:1316
27542 msgid "guestfs_config"
27543 msgstr ""
27544
27545 #. type: verbatim
27546 #: ../src/guestfs-actions.pod:1318
27547 #, no-wrap
27548 msgid ""
27549 " int\n"
27550 " guestfs_config (guestfs_h *g,\n"
27551 "                 const char *qemuparam,\n"
27552 "                 const char *qemuvalue);\n"
27553 "\n"
27554 msgstr ""
27555
27556 #. type: =head2
27557 #: ../src/guestfs-actions.pod:1336
27558 msgid "guestfs_copy_device_to_device"
27559 msgstr ""
27560
27561 #. type: verbatim
27562 #: ../src/guestfs-actions.pod:1338
27563 #, no-wrap
27564 msgid ""
27565 " int\n"
27566 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27567 "                                const char *src,\n"
27568 "                                const char *dest,\n"
27569 "                                ...);\n"
27570 "\n"
27571 msgstr ""
27572
27573 #. type: verbatim
27574 #: ../src/guestfs-actions.pod:1349
27575 #, no-wrap
27576 msgid ""
27577 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27578 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27579 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27580 "\n"
27581 msgstr ""
27582
27583 #. type: textblock
27584 #: ../src/guestfs-actions.pod:1353
27585 msgid ""
27586 "The four calls C<guestfs_copy_device_to_device>, "
27587 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27588 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27589 "destination (device|file)."
27590 msgstr ""
27591
27592 #. type: textblock
27593 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
27594 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
27595 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
27596 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
27597 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
27598 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:8001
27599 #: ../src/guestfs-actions.pod:8035 ../src/guestfs-actions.pod:8542
27600 #: ../src/guestfs-actions.pod:8565
27601 msgid ""
27602 "This long-running command can generate progress notification messages so "
27603 "that the caller can display a progress bar or indicator.  To receive these "
27604 "messages, the caller must register a progress event callback.  See L<guestfs"
27605 "(3)/GUESTFS_EVENT_PROGRESS>."
27606 msgstr ""
27607
27608 #. type: textblock
27609 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
27610 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
27611 #: ../src/guestfs-actions.pod:6214
27612 msgid "(Added in 1.13.25)"
27613 msgstr ""
27614
27615 #. type: =head2
27616 #: ../src/guestfs-actions.pod:1381
27617 msgid "guestfs_copy_device_to_device_va"
27618 msgstr ""
27619
27620 #. type: verbatim
27621 #: ../src/guestfs-actions.pod:1383
27622 #, no-wrap
27623 msgid ""
27624 " int\n"
27625 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27626 "                                   const char *src,\n"
27627 "                                   const char *dest,\n"
27628 "                                   va_list args);\n"
27629 "\n"
27630 msgstr ""
27631
27632 #. type: textblock
27633 #: ../src/guestfs-actions.pod:1389
27634 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27635 msgstr ""
27636
27637 #. type: =head2
27638 #: ../src/guestfs-actions.pod:1393
27639 msgid "guestfs_copy_device_to_device_argv"
27640 msgstr ""
27641
27642 #. type: verbatim
27643 #: ../src/guestfs-actions.pod:1395
27644 #, no-wrap
27645 msgid ""
27646 " int\n"
27647 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27648 "                                     const char *src,\n"
27649 "                                     const char *dest,\n"
27650 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
27651 "\n"
27652 msgstr ""
27653
27654 #. type: textblock
27655 #: ../src/guestfs-actions.pod:1401
27656 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27657 msgstr ""
27658
27659 #. type: =head2
27660 #: ../src/guestfs-actions.pod:1405
27661 msgid "guestfs_copy_device_to_file"
27662 msgstr ""
27663
27664 #. type: verbatim
27665 #: ../src/guestfs-actions.pod:1407
27666 #, no-wrap
27667 msgid ""
27668 " int\n"
27669 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27670 "                              const char *src,\n"
27671 "                              const char *dest,\n"
27672 "                              ...);\n"
27673 "\n"
27674 msgstr ""
27675
27676 #. type: verbatim
27677 #: ../src/guestfs-actions.pod:1418
27678 #, no-wrap
27679 msgid ""
27680 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27681 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27682 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27683 "\n"
27684 msgstr ""
27685
27686 #. type: textblock
27687 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
27688 #: ../src/guestfs-actions.pod:1528
27689 msgid ""
27690 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27691 msgstr ""
27692
27693 #. type: =head2
27694 #: ../src/guestfs-actions.pod:1434
27695 msgid "guestfs_copy_device_to_file_va"
27696 msgstr ""
27697
27698 #. type: verbatim
27699 #: ../src/guestfs-actions.pod:1436
27700 #, no-wrap
27701 msgid ""
27702 " int\n"
27703 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27704 "                                 const char *src,\n"
27705 "                                 const char *dest,\n"
27706 "                                 va_list args);\n"
27707 "\n"
27708 msgstr ""
27709
27710 #. type: textblock
27711 #: ../src/guestfs-actions.pod:1442
27712 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27713 msgstr ""
27714
27715 #. type: =head2
27716 #: ../src/guestfs-actions.pod:1446
27717 msgid "guestfs_copy_device_to_file_argv"
27718 msgstr ""
27719
27720 #. type: verbatim
27721 #: ../src/guestfs-actions.pod:1448
27722 #, no-wrap
27723 msgid ""
27724 " int\n"
27725 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27726 "                                   const char *src,\n"
27727 "                                   const char *dest,\n"
27728 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
27729 "\n"
27730 msgstr ""
27731
27732 #. type: textblock
27733 #: ../src/guestfs-actions.pod:1454
27734 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27735 msgstr ""
27736
27737 #. type: =head2
27738 #: ../src/guestfs-actions.pod:1458
27739 msgid "guestfs_copy_file_to_device"
27740 msgstr ""
27741
27742 #. type: verbatim
27743 #: ../src/guestfs-actions.pod:1460
27744 #, no-wrap
27745 msgid ""
27746 " int\n"
27747 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27748 "                              const char *src,\n"
27749 "                              const char *dest,\n"
27750 "                              ...);\n"
27751 "\n"
27752 msgstr ""
27753
27754 #. type: verbatim
27755 #: ../src/guestfs-actions.pod:1471
27756 #, no-wrap
27757 msgid ""
27758 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27759 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27760 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27761 "\n"
27762 msgstr ""
27763
27764 #. type: =head2
27765 #: ../src/guestfs-actions.pod:1487
27766 msgid "guestfs_copy_file_to_device_va"
27767 msgstr ""
27768
27769 #. type: verbatim
27770 #: ../src/guestfs-actions.pod:1489
27771 #, no-wrap
27772 msgid ""
27773 " int\n"
27774 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27775 "                                 const char *src,\n"
27776 "                                 const char *dest,\n"
27777 "                                 va_list args);\n"
27778 "\n"
27779 msgstr ""
27780
27781 #. type: textblock
27782 #: ../src/guestfs-actions.pod:1495
27783 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27784 msgstr ""
27785
27786 #. type: =head2
27787 #: ../src/guestfs-actions.pod:1499
27788 msgid "guestfs_copy_file_to_device_argv"
27789 msgstr ""
27790
27791 #. type: verbatim
27792 #: ../src/guestfs-actions.pod:1501
27793 #, no-wrap
27794 msgid ""
27795 " int\n"
27796 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27797 "                                   const char *src,\n"
27798 "                                   const char *dest,\n"
27799 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
27800 "\n"
27801 msgstr ""
27802
27803 #. type: textblock
27804 #: ../src/guestfs-actions.pod:1507
27805 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27806 msgstr ""
27807
27808 #. type: =head2
27809 #: ../src/guestfs-actions.pod:1511
27810 msgid "guestfs_copy_file_to_file"
27811 msgstr ""
27812
27813 #. type: verbatim
27814 #: ../src/guestfs-actions.pod:1513
27815 #, no-wrap
27816 msgid ""
27817 " int\n"
27818 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27819 "                            const char *src,\n"
27820 "                            const char *dest,\n"
27821 "                            ...);\n"
27822 "\n"
27823 msgstr ""
27824
27825 #. type: verbatim
27826 #: ../src/guestfs-actions.pod:1524
27827 #, no-wrap
27828 msgid ""
27829 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27830 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27831 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27832 "\n"
27833 msgstr ""
27834
27835 #. type: textblock
27836 #: ../src/guestfs-actions.pod:1531
27837 msgid ""
27838 "This is B<not> the function you want for copying files.  This is for copying "
27839 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
27840 "C<guestfs_mv> for general file copying and moving functions."
27841 msgstr ""
27842
27843 #. type: =head2
27844 #: ../src/guestfs-actions.pod:1545
27845 msgid "guestfs_copy_file_to_file_va"
27846 msgstr ""
27847
27848 #. type: verbatim
27849 #: ../src/guestfs-actions.pod:1547
27850 #, no-wrap
27851 msgid ""
27852 " int\n"
27853 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27854 "                               const char *src,\n"
27855 "                               const char *dest,\n"
27856 "                               va_list args);\n"
27857 "\n"
27858 msgstr ""
27859
27860 #. type: textblock
27861 #: ../src/guestfs-actions.pod:1553
27862 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27863 msgstr ""
27864
27865 #. type: =head2
27866 #: ../src/guestfs-actions.pod:1557
27867 msgid "guestfs_copy_file_to_file_argv"
27868 msgstr ""
27869
27870 #. type: verbatim
27871 #: ../src/guestfs-actions.pod:1559
27872 #, no-wrap
27873 msgid ""
27874 " int\n"
27875 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27876 "                                 const char *src,\n"
27877 "                                 const char *dest,\n"
27878 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
27879 "\n"
27880 msgstr ""
27881
27882 #. type: textblock
27883 #: ../src/guestfs-actions.pod:1565
27884 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27885 msgstr ""
27886
27887 #. type: =head2
27888 #: ../src/guestfs-actions.pod:1569
27889 msgid "guestfs_copy_size"
27890 msgstr ""
27891
27892 #. type: verbatim
27893 #: ../src/guestfs-actions.pod:1571
27894 #, no-wrap
27895 msgid ""
27896 " int\n"
27897 " guestfs_copy_size (guestfs_h *g,\n"
27898 "                    const char *src,\n"
27899 "                    const char *dest,\n"
27900 "                    int64_t size);\n"
27901 "\n"
27902 msgstr ""
27903
27904 #. type: textblock
27905 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
27906 msgid ""
27907 "I<This function is deprecated.> In new code, use the L</"
27908 "guestfs_copy_device_to_device> call instead."
27909 msgstr ""
27910
27911 #. type: textblock
27912 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4833
27913 #: ../src/guestfs-actions.pod:6384 ../src/guestfs-actions.pod:8236
27914 #: ../src/guestfs-actions.pod:8256 ../src/guestfs-actions.pod:8342
27915 msgid "(Added in 1.0.87)"
27916 msgstr ""
27917
27918 #. type: =head2
27919 #: ../src/guestfs-actions.pod:1599
27920 msgid "guestfs_cp"
27921 msgstr ""
27922
27923 #. type: verbatim
27924 #: ../src/guestfs-actions.pod:1601
27925 #, no-wrap
27926 msgid ""
27927 " int\n"
27928 " guestfs_cp (guestfs_h *g,\n"
27929 "             const char *src,\n"
27930 "             const char *dest);\n"
27931 "\n"
27932 msgstr ""
27933
27934 #. type: textblock
27935 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
27936 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
27937 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5736
27938 #: ../src/guestfs-actions.pod:6228
27939 msgid "(Added in 1.0.18)"
27940 msgstr ""
27941
27942 #. type: =head2
27943 #: ../src/guestfs-actions.pod:1613
27944 msgid "guestfs_cp_a"
27945 msgstr ""
27946
27947 #. type: verbatim
27948 #: ../src/guestfs-actions.pod:1615
27949 #, no-wrap
27950 msgid ""
27951 " int\n"
27952 " guestfs_cp_a (guestfs_h *g,\n"
27953 "               const char *src,\n"
27954 "               const char *dest);\n"
27955 "\n"
27956 msgstr ""
27957
27958 #. type: =head2
27959 #: ../src/guestfs-actions.pod:1627
27960 msgid "guestfs_dd"
27961 msgstr ""
27962
27963 #. type: verbatim
27964 #: ../src/guestfs-actions.pod:1629
27965 #, no-wrap
27966 msgid ""
27967 " int\n"
27968 " guestfs_dd (guestfs_h *g,\n"
27969 "             const char *src,\n"
27970 "             const char *dest);\n"
27971 "\n"
27972 msgstr ""
27973
27974 #. type: textblock
27975 #: ../src/guestfs-actions.pod:1646
27976 msgid ""
27977 "If the destination is a device, it must be as large or larger than the "
27978 "source file or device, otherwise the copy will fail.  This command cannot do "
27979 "partial copies (see C<guestfs_copy_device_to_device>)."
27980 msgstr ""
27981
27982 #. type: =head2
27983 #: ../src/guestfs-actions.pod:1655
27984 msgid "guestfs_df"
27985 msgstr ""
27986
27987 #. type: verbatim
27988 #: ../src/guestfs-actions.pod:1657
27989 #, no-wrap
27990 msgid ""
27991 " char *\n"
27992 " guestfs_df (guestfs_h *g);\n"
27993 "\n"
27994 msgstr ""
27995
27996 #. type: textblock
27997 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
27998 msgid ""
27999 "This command is mostly useful for interactive sessions.  It is I<not> "
28000 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
28001 "from programs."
28002 msgstr ""
28003
28004 #. type: textblock
28005 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
28006 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
28007 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
28008 #: ../src/guestfs-actions.pod:5102 ../src/guestfs-actions.pod:5636
28009 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:7641
28010 #: ../src/guestfs-actions.pod:8382 ../src/guestfs-actions.pod:8395
28011 #: ../src/guestfs-actions.pod:8408
28012 msgid "(Added in 1.0.54)"
28013 msgstr ""
28014
28015 #. type: =head2
28016 #: ../src/guestfs-actions.pod:1671
28017 msgid "guestfs_df_h"
28018 msgstr ""
28019
28020 #. type: verbatim
28021 #: ../src/guestfs-actions.pod:1673
28022 #, no-wrap
28023 msgid ""
28024 " char *\n"
28025 " guestfs_df_h (guestfs_h *g);\n"
28026 "\n"
28027 msgstr ""
28028
28029 #. type: =head2
28030 #: ../src/guestfs-actions.pod:1688
28031 msgid "guestfs_dmesg"
28032 msgstr ""
28033
28034 #. type: verbatim
28035 #: ../src/guestfs-actions.pod:1690
28036 #, no-wrap
28037 msgid ""
28038 " char *\n"
28039 " guestfs_dmesg (guestfs_h *g);\n"
28040 "\n"
28041 msgstr ""
28042
28043 #. type: textblock
28044 #: ../src/guestfs-actions.pod:1697
28045 msgid ""
28046 "Another way to get the same information is to enable verbose messages with "
28047 "C<guestfs_set_verbose> or by setting the environment variable "
28048 "C<LIBGUESTFS_DEBUG=1> before running the program."
28049 msgstr ""
28050
28051 #. type: =head2
28052 #: ../src/guestfs-actions.pod:1707
28053 msgid "guestfs_download"
28054 msgstr ""
28055
28056 #. type: verbatim
28057 #: ../src/guestfs-actions.pod:1709
28058 #, no-wrap
28059 msgid ""
28060 " int\n"
28061 " guestfs_download (guestfs_h *g,\n"
28062 "                   const char *remotefilename,\n"
28063 "                   const char *filename);\n"
28064 "\n"
28065 msgstr ""
28066
28067 #. type: textblock
28068 #: ../src/guestfs-actions.pod:1719
28069 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
28070 msgstr ""
28071
28072 #. type: =head2
28073 #: ../src/guestfs-actions.pod:1730
28074 msgid "guestfs_download_offset"
28075 msgstr ""
28076
28077 #. type: verbatim
28078 #: ../src/guestfs-actions.pod:1732
28079 #, no-wrap
28080 msgid ""
28081 " int\n"
28082 " guestfs_download_offset (guestfs_h *g,\n"
28083 "                          const char *remotefilename,\n"
28084 "                          const char *filename,\n"
28085 "                          int64_t offset,\n"
28086 "                          int64_t size);\n"
28087 "\n"
28088 msgstr ""
28089
28090 #. type: textblock
28091 #: ../src/guestfs-actions.pod:1745
28092 msgid ""
28093 "Note that there is no limit on the amount of data that can be downloaded "
28094 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
28095 "full amount unless an error occurs."
28096 msgstr ""
28097
28098 #. type: textblock
28099 #: ../src/guestfs-actions.pod:1750
28100 msgid "See also C<guestfs_download>, C<guestfs_pread>."
28101 msgstr ""
28102
28103 #. type: textblock
28104 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8040
28105 msgid "(Added in 1.5.17)"
28106 msgstr ""
28107
28108 #. type: =head2
28109 #: ../src/guestfs-actions.pod:1761
28110 msgid "guestfs_drop_caches"
28111 msgstr ""
28112
28113 #. type: verbatim
28114 #: ../src/guestfs-actions.pod:1763
28115 #, no-wrap
28116 msgid ""
28117 " int\n"
28118 " guestfs_drop_caches (guestfs_h *g,\n"
28119 "                      int whattodrop);\n"
28120 "\n"
28121 msgstr ""
28122
28123 #. type: =head2
28124 #: ../src/guestfs-actions.pod:1781
28125 msgid "guestfs_du"
28126 msgstr ""
28127
28128 #. type: verbatim
28129 #: ../src/guestfs-actions.pod:1783
28130 #, no-wrap
28131 msgid ""
28132 " int64_t\n"
28133 " guestfs_du (guestfs_h *g,\n"
28134 "             const char *path);\n"
28135 "\n"
28136 msgstr ""
28137
28138 #. type: =head2
28139 #: ../src/guestfs-actions.pod:1806
28140 msgid "guestfs_e2fsck_f"
28141 msgstr ""
28142
28143 #. type: verbatim
28144 #: ../src/guestfs-actions.pod:1808
28145 #, no-wrap
28146 msgid ""
28147 " int\n"
28148 " guestfs_e2fsck_f (guestfs_h *g,\n"
28149 "                   const char *device);\n"
28150 "\n"
28151 msgstr ""
28152
28153 #. type: textblock
28154 #: ../src/guestfs-actions.pod:1816
28155 msgid ""
28156 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
28157 "Normally you should use C<guestfs_fsck>."
28158 msgstr ""
28159
28160 #. type: textblock
28161 #: ../src/guestfs-actions.pod:1821
28162 msgid "(Added in 1.0.29)"
28163 msgstr ""
28164
28165 #. type: =head2
28166 #: ../src/guestfs-actions.pod:1823
28167 msgid "guestfs_echo_daemon"
28168 msgstr ""
28169
28170 #. type: verbatim
28171 #: ../src/guestfs-actions.pod:1825
28172 #, no-wrap
28173 msgid ""
28174 " char *\n"
28175 " guestfs_echo_daemon (guestfs_h *g,\n"
28176 "                      char *const *words);\n"
28177 "\n"
28178 msgstr ""
28179
28180 #. type: textblock
28181 #: ../src/guestfs-actions.pod:1834
28182 msgid "See also C<guestfs_ping_daemon>."
28183 msgstr ""
28184
28185 #. type: textblock
28186 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
28187 #: ../src/guestfs-actions.pod:7098
28188 msgid "(Added in 1.0.69)"
28189 msgstr ""
28190
28191 #. type: =head2
28192 #: ../src/guestfs-actions.pod:1841
28193 msgid "guestfs_egrep"
28194 msgstr ""
28195
28196 #. type: verbatim
28197 #: ../src/guestfs-actions.pod:1843
28198 #, no-wrap
28199 msgid ""
28200 " char **\n"
28201 " guestfs_egrep (guestfs_h *g,\n"
28202 "                const char *regex,\n"
28203 "                const char *path);\n"
28204 "\n"
28205 msgstr ""
28206
28207 #. type: textblock
28208 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
28209 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
28210 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
28211 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
28212 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
28213 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
28214 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4332
28215 #: ../src/guestfs-actions.pod:4346 ../src/guestfs-actions.pod:4359
28216 #: ../src/guestfs-actions.pod:4373 ../src/guestfs-actions.pod:5524
28217 #: ../src/guestfs-actions.pod:6562 ../src/guestfs-actions.pod:6611
28218 #: ../src/guestfs-actions.pod:7485 ../src/guestfs-actions.pod:7497
28219 #: ../src/guestfs-actions.pod:7510 ../src/guestfs-actions.pod:7523
28220 #: ../src/guestfs-actions.pod:7545 ../src/guestfs-actions.pod:7558
28221 #: ../src/guestfs-actions.pod:7571 ../src/guestfs-actions.pod:7584
28222 #: ../src/guestfs-actions.pod:8500 ../src/guestfs-actions.pod:8519
28223 #: ../src/guestfs-actions.pod:8610 ../src/guestfs-actions.pod:8629
28224 #: ../src/guestfs-actions.pod:8675 ../src/guestfs-actions.pod:8694
28225 msgid "(Added in 1.0.66)"
28226 msgstr ""
28227
28228 #. type: =head2
28229 #: ../src/guestfs-actions.pod:1860
28230 msgid "guestfs_egrepi"
28231 msgstr ""
28232
28233 #. type: verbatim
28234 #: ../src/guestfs-actions.pod:1862
28235 #, no-wrap
28236 msgid ""
28237 " char **\n"
28238 " guestfs_egrepi (guestfs_h *g,\n"
28239 "                 const char *regex,\n"
28240 "                 const char *path);\n"
28241 "\n"
28242 msgstr ""
28243
28244 #. type: =head2
28245 #: ../src/guestfs-actions.pod:1879
28246 msgid "guestfs_equal"
28247 msgstr ""
28248
28249 #. type: verbatim
28250 #: ../src/guestfs-actions.pod:1881
28251 #, no-wrap
28252 msgid ""
28253 " int\n"
28254 " guestfs_equal (guestfs_h *g,\n"
28255 "                const char *file1,\n"
28256 "                const char *file2);\n"
28257 "\n"
28258 msgstr ""
28259
28260 #. type: =head2
28261 #: ../src/guestfs-actions.pod:1895
28262 msgid "guestfs_exists"
28263 msgstr ""
28264
28265 #. type: verbatim
28266 #: ../src/guestfs-actions.pod:1897
28267 #, no-wrap
28268 msgid ""
28269 " int\n"
28270 " guestfs_exists (guestfs_h *g,\n"
28271 "                 const char *path);\n"
28272 "\n"
28273 msgstr ""
28274
28275 #. type: textblock
28276 #: ../src/guestfs-actions.pod:1904
28277 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
28278 msgstr ""
28279
28280 #. type: =head2
28281 #: ../src/guestfs-actions.pod:1910
28282 msgid "guestfs_fallocate"
28283 msgstr ""
28284
28285 #. type: verbatim
28286 #: ../src/guestfs-actions.pod:1912
28287 #, no-wrap
28288 msgid ""
28289 " int\n"
28290 " guestfs_fallocate (guestfs_h *g,\n"
28291 "                    const char *path,\n"
28292 "                    int len);\n"
28293 "\n"
28294 msgstr ""
28295
28296 #. type: textblock
28297 #: ../src/guestfs-actions.pod:1917
28298 msgid ""
28299 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
28300 "call instead."
28301 msgstr ""
28302
28303 #. type: =head2
28304 #: ../src/guestfs-actions.pod:1936
28305 msgid "guestfs_fallocate64"
28306 msgstr ""
28307
28308 #. type: verbatim
28309 #: ../src/guestfs-actions.pod:1938
28310 #, no-wrap
28311 msgid ""
28312 " int\n"
28313 " guestfs_fallocate64 (guestfs_h *g,\n"
28314 "                      const char *path,\n"
28315 "                      int64_t len);\n"
28316 "\n"
28317 msgstr ""
28318
28319 #. type: textblock
28320 #: ../src/guestfs-actions.pod:1947
28321 msgid ""
28322 "Note that this call allocates disk blocks for the file.  To create a sparse "
28323 "file use C<guestfs_truncate_size> instead."
28324 msgstr ""
28325
28326 #. type: textblock
28327 #: ../src/guestfs-actions.pod:1950
28328 msgid ""
28329 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
28330 "oversight it only allowed 30 bit lengths to be specified, effectively "
28331 "limiting the maximum size of files created through that call to 1GB."
28332 msgstr ""
28333
28334 #. type: textblock
28335 #: ../src/guestfs-actions.pod:1961
28336 msgid "(Added in 1.3.17)"
28337 msgstr ""
28338
28339 #. type: =head2
28340 #: ../src/guestfs-actions.pod:1963
28341 msgid "guestfs_fgrep"
28342 msgstr ""
28343
28344 #. type: verbatim
28345 #: ../src/guestfs-actions.pod:1965
28346 #, no-wrap
28347 msgid ""
28348 " char **\n"
28349 " guestfs_fgrep (guestfs_h *g,\n"
28350 "                const char *pattern,\n"
28351 "                const char *path);\n"
28352 "\n"
28353 msgstr ""
28354
28355 #. type: =head2
28356 #: ../src/guestfs-actions.pod:1982
28357 msgid "guestfs_fgrepi"
28358 msgstr ""
28359
28360 #. type: verbatim
28361 #: ../src/guestfs-actions.pod:1984
28362 #, no-wrap
28363 msgid ""
28364 " char **\n"
28365 " guestfs_fgrepi (guestfs_h *g,\n"
28366 "                 const char *pattern,\n"
28367 "                 const char *path);\n"
28368 "\n"
28369 msgstr ""
28370
28371 #. type: =head2
28372 #: ../src/guestfs-actions.pod:2001
28373 msgid "guestfs_file"
28374 msgstr ""
28375
28376 #. type: verbatim
28377 #: ../src/guestfs-actions.pod:2003
28378 #, no-wrap
28379 msgid ""
28380 " char *\n"
28381 " guestfs_file (guestfs_h *g,\n"
28382 "               const char *path);\n"
28383 "\n"
28384 msgstr ""
28385
28386 #. type: textblock
28387 #: ../src/guestfs-actions.pod:2021
28388 msgid ""
28389 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
28390 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
28391 msgstr ""
28392
28393 #. type: =head2
28394 #: ../src/guestfs-actions.pod:2029
28395 msgid "guestfs_file_architecture"
28396 msgstr ""
28397
28398 #. type: verbatim
28399 #: ../src/guestfs-actions.pod:2031
28400 #, no-wrap
28401 msgid ""
28402 " char *\n"
28403 " guestfs_file_architecture (guestfs_h *g,\n"
28404 "                            const char *filename);\n"
28405 "\n"
28406 msgstr ""
28407
28408 #. type: textblock
28409 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
28410 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
28411 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
28412 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
28413 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
28414 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
28415 #: ../src/guestfs-actions.pod:4008
28416 msgid "(Added in 1.5.3)"
28417 msgstr ""
28418
28419 #. type: =head2
28420 #: ../src/guestfs-actions.pod:2141
28421 msgid "guestfs_filesize"
28422 msgstr ""
28423
28424 #. type: verbatim
28425 #: ../src/guestfs-actions.pod:2143
28426 #, no-wrap
28427 msgid ""
28428 " int64_t\n"
28429 " guestfs_filesize (guestfs_h *g,\n"
28430 "                   const char *file);\n"
28431 "\n"
28432 msgstr ""
28433
28434 #. type: textblock
28435 #: ../src/guestfs-actions.pod:2149
28436 msgid ""
28437 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
28438 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
28439 "devices, use C<guestfs_blockdev_getsize64>."
28440 msgstr ""
28441
28442 #. type: textblock
28443 #: ../src/guestfs-actions.pod:2155
28444 msgid "(Added in 1.0.82)"
28445 msgstr ""
28446
28447 #. type: =head2
28448 #: ../src/guestfs-actions.pod:2157
28449 msgid "guestfs_fill"
28450 msgstr ""
28451
28452 #. type: verbatim
28453 #: ../src/guestfs-actions.pod:2159
28454 #, no-wrap
28455 msgid ""
28456 " int\n"
28457 " guestfs_fill (guestfs_h *g,\n"
28458 "               int c,\n"
28459 "               int len,\n"
28460 "               const char *path);\n"
28461 "\n"
28462 msgstr ""
28463
28464 #. type: textblock
28465 #: ../src/guestfs-actions.pod:2169
28466 msgid ""
28467 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
28468 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
28469 "bytes use C<guestfs_fill_pattern>."
28470 msgstr ""
28471
28472 #. type: textblock
28473 #: ../src/guestfs-actions.pod:2181
28474 msgid "(Added in 1.0.79)"
28475 msgstr ""
28476
28477 #. type: =head2
28478 #: ../src/guestfs-actions.pod:2183
28479 msgid "guestfs_fill_pattern"
28480 msgstr ""
28481
28482 #. type: verbatim
28483 #: ../src/guestfs-actions.pod:2185
28484 #, no-wrap
28485 msgid ""
28486 " int\n"
28487 " guestfs_fill_pattern (guestfs_h *g,\n"
28488 "                       const char *pattern,\n"
28489 "                       int len,\n"
28490 "                       const char *path);\n"
28491 "\n"
28492 msgstr ""
28493
28494 #. type: textblock
28495 #: ../src/guestfs-actions.pod:2191
28496 msgid ""
28497 "This function is like C<guestfs_fill> except that it creates a new file of "
28498 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
28499 "pattern is truncated if necessary to ensure the length of the file is "
28500 "exactly C<len> bytes."
28501 msgstr ""
28502
28503 #. type: textblock
28504 #: ../src/guestfs-actions.pod:2203
28505 msgid "(Added in 1.3.12)"
28506 msgstr ""
28507
28508 #. type: =head2
28509 #: ../src/guestfs-actions.pod:2205
28510 msgid "guestfs_find"
28511 msgstr ""
28512
28513 #. type: verbatim
28514 #: ../src/guestfs-actions.pod:2207
28515 #, no-wrap
28516 msgid ""
28517 " char **\n"
28518 " guestfs_find (guestfs_h *g,\n"
28519 "               const char *directory);\n"
28520 "\n"
28521 msgstr ""
28522
28523 #. type: textblock
28524 #: ../src/guestfs-actions.pod:2223
28525 msgid ""
28526 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28527 msgstr ""
28528
28529 #. type: textblock
28530 #: ../src/guestfs-actions.pod:2236
28531 msgid "See also C<guestfs_find0>."
28532 msgstr ""
28533
28534 #. type: textblock
28535 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4770
28536 #: ../src/guestfs-actions.pod:6646
28537 msgid "(Added in 1.0.27)"
28538 msgstr ""
28539
28540 #. type: =head2
28541 #: ../src/guestfs-actions.pod:2247
28542 msgid "guestfs_find0"
28543 msgstr ""
28544
28545 #. type: verbatim
28546 #: ../src/guestfs-actions.pod:2249
28547 #, no-wrap
28548 msgid ""
28549 " int\n"
28550 " guestfs_find0 (guestfs_h *g,\n"
28551 "                const char *directory,\n"
28552 "                const char *files);\n"
28553 "\n"
28554 msgstr ""
28555
28556 #. type: textblock
28557 #: ../src/guestfs-actions.pod:2258
28558 msgid ""
28559 "This command works the same way as C<guestfs_find> with the following "
28560 "exceptions:"
28561 msgstr ""
28562
28563 #. type: textblock
28564 #: ../src/guestfs-actions.pod:2285
28565 msgid "(Added in 1.0.74)"
28566 msgstr ""
28567
28568 #. type: =head2
28569 #: ../src/guestfs-actions.pod:2287
28570 msgid "guestfs_findfs_label"
28571 msgstr ""
28572
28573 #. type: verbatim
28574 #: ../src/guestfs-actions.pod:2289
28575 #, no-wrap
28576 msgid ""
28577 " char *\n"
28578 " guestfs_findfs_label (guestfs_h *g,\n"
28579 "                       const char *label);\n"
28580 "\n"
28581 msgstr ""
28582
28583 #. type: textblock
28584 #: ../src/guestfs-actions.pod:2297
28585 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28586 msgstr ""
28587
28588 #. type: =head2
28589 #: ../src/guestfs-actions.pod:2304
28590 msgid "guestfs_findfs_uuid"
28591 msgstr ""
28592
28593 #. type: verbatim
28594 #: ../src/guestfs-actions.pod:2306
28595 #, no-wrap
28596 msgid ""
28597 " char *\n"
28598 " guestfs_findfs_uuid (guestfs_h *g,\n"
28599 "                      const char *uuid);\n"
28600 "\n"
28601 msgstr ""
28602
28603 #. type: textblock
28604 #: ../src/guestfs-actions.pod:2314
28605 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28606 msgstr ""
28607
28608 #. type: =head2
28609 #: ../src/guestfs-actions.pod:2321
28610 msgid "guestfs_fsck"
28611 msgstr ""
28612
28613 #. type: verbatim
28614 #: ../src/guestfs-actions.pod:2323
28615 #, no-wrap
28616 msgid ""
28617 " int\n"
28618 " guestfs_fsck (guestfs_h *g,\n"
28619 "               const char *fstype,\n"
28620 "               const char *device);\n"
28621 "\n"
28622 msgstr ""
28623
28624 #. type: textblock
28625 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8547
28626 msgid "(Added in 1.0.16)"
28627 msgstr ""
28628
28629 #. type: =head2
28630 #: ../src/guestfs-actions.pod:2360
28631 msgid "guestfs_get_append"
28632 msgstr ""
28633
28634 #. type: verbatim
28635 #: ../src/guestfs-actions.pod:2362
28636 #, no-wrap
28637 msgid ""
28638 " const char *\n"
28639 " guestfs_get_append (guestfs_h *g);\n"
28640 "\n"
28641 msgstr ""
28642
28643 #. type: textblock
28644 #: ../src/guestfs-actions.pod:2370
28645 msgid ""
28646 "This function returns a string which may be NULL.  There is no way to return "
28647 "an error from this function.  The string is owned by the guest handle and "
28648 "must I<not> be freed."
28649 msgstr ""
28650
28651 #. type: textblock
28652 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6324
28653 #: ../src/guestfs-actions.pod:6803 ../src/guestfs-actions.pod:7252
28654 #: ../src/guestfs-actions.pod:7271 ../src/guestfs-actions.pod:7287
28655 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:8187
28656 #: ../src/guestfs-actions.pod:8202 ../src/guestfs-actions.pod:8591
28657 msgid "(Added in 1.0.26)"
28658 msgstr ""
28659
28660 #. type: =head2
28661 #: ../src/guestfs-actions.pod:2376
28662 msgid "guestfs_get_attach_method"
28663 msgstr ""
28664
28665 #. type: verbatim
28666 #: ../src/guestfs-actions.pod:2378
28667 #, no-wrap
28668 msgid ""
28669 " char *\n"
28670 " guestfs_get_attach_method (guestfs_h *g);\n"
28671 "\n"
28672 msgstr ""
28673
28674 #. type: textblock
28675 #: ../src/guestfs-actions.pod:2381
28676 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28677 msgstr ""
28678
28679 #. type: textblock
28680 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6833
28681 msgid "(Added in 1.9.8)"
28682 msgstr ""
28683
28684 #. type: =head2
28685 #: ../src/guestfs-actions.pod:2388
28686 msgid "guestfs_get_autosync"
28687 msgstr ""
28688
28689 #. type: verbatim
28690 #: ../src/guestfs-actions.pod:2390
28691 #, no-wrap
28692 msgid ""
28693 " int\n"
28694 " guestfs_get_autosync (guestfs_h *g);\n"
28695 "\n"
28696 msgstr ""
28697
28698 #. type: =head2
28699 #: ../src/guestfs-actions.pod:2399
28700 msgid "guestfs_get_direct"
28701 msgstr ""
28702
28703 #. type: verbatim
28704 #: ../src/guestfs-actions.pod:2401
28705 #, no-wrap
28706 msgid ""
28707 " int\n"
28708 " guestfs_get_direct (guestfs_h *g);\n"
28709 "\n"
28710 msgstr ""
28711
28712 #. type: textblock
28713 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6874
28714 msgid "(Added in 1.0.72)"
28715 msgstr ""
28716
28717 #. type: =head2
28718 #: ../src/guestfs-actions.pod:2410
28719 msgid "guestfs_get_e2label"
28720 msgstr ""
28721
28722 #. type: verbatim
28723 #: ../src/guestfs-actions.pod:2412
28724 #, no-wrap
28725 msgid ""
28726 " char *\n"
28727 " guestfs_get_e2label (guestfs_h *g,\n"
28728 "                      const char *device);\n"
28729 "\n"
28730 msgstr ""
28731
28732 #. type: textblock
28733 #: ../src/guestfs-actions.pod:2416
28734 msgid ""
28735 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28736 "call instead."
28737 msgstr ""
28738
28739 #. type: textblock
28740 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
28741 #: ../src/guestfs-actions.pod:6892 ../src/guestfs-actions.pod:6911
28742 msgid "(Added in 1.0.15)"
28743 msgstr ""
28744
28745 #. type: =head2
28746 #: ../src/guestfs-actions.pod:2431
28747 msgid "guestfs_get_e2uuid"
28748 msgstr ""
28749
28750 #. type: verbatim
28751 #: ../src/guestfs-actions.pod:2433
28752 #, no-wrap
28753 msgid ""
28754 " char *\n"
28755 " guestfs_get_e2uuid (guestfs_h *g,\n"
28756 "                     const char *device);\n"
28757 "\n"
28758 msgstr ""
28759
28760 #. type: textblock
28761 #: ../src/guestfs-actions.pod:2437
28762 msgid ""
28763 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28764 "call instead."
28765 msgstr ""
28766
28767 #. type: =head2
28768 #: ../src/guestfs-actions.pod:2452
28769 msgid "guestfs_get_memsize"
28770 msgstr ""
28771
28772 #. type: verbatim
28773 #: ../src/guestfs-actions.pod:2454
28774 #, no-wrap
28775 msgid ""
28776 " int\n"
28777 " guestfs_get_memsize (guestfs_h *g);\n"
28778 "\n"
28779 msgstr ""
28780
28781 #. type: textblock
28782 #: ../src/guestfs-actions.pod:2460
28783 msgid ""
28784 "If C<guestfs_set_memsize> was not called on this handle, and if "
28785 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28786 "value for memsize."
28787 msgstr ""
28788
28789 #. type: textblock
28790 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5220
28791 #: ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5448
28792 #: ../src/guestfs-actions.pod:5467 ../src/guestfs-actions.pod:5479
28793 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5509
28794 #: ../src/guestfs-actions.pod:6549 ../src/guestfs-actions.pod:6932
28795 #: ../src/guestfs-actions.pod:7222 ../src/guestfs-actions.pod:7956
28796 msgid "(Added in 1.0.55)"
28797 msgstr ""
28798
28799 #. type: =head2
28800 #: ../src/guestfs-actions.pod:2471
28801 msgid "guestfs_get_network"
28802 msgstr ""
28803
28804 #. type: verbatim
28805 #: ../src/guestfs-actions.pod:2473
28806 #, no-wrap
28807 msgid ""
28808 " int\n"
28809 " guestfs_get_network (guestfs_h *g);\n"
28810 "\n"
28811 msgstr ""
28812
28813 #. type: textblock
28814 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6951
28815 msgid "(Added in 1.5.4)"
28816 msgstr ""
28817
28818 #. type: =head2
28819 #: ../src/guestfs-actions.pod:2482
28820 msgid "guestfs_get_path"
28821 msgstr ""
28822
28823 #. type: verbatim
28824 #: ../src/guestfs-actions.pod:2484
28825 #, no-wrap
28826 msgid ""
28827 " const char *\n"
28828 " guestfs_get_path (guestfs_h *g);\n"
28829 "\n"
28830 msgstr ""
28831
28832 #. type: textblock
28833 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
28834 msgid ""
28835 "This function returns a string, or NULL on error.  The string is owned by "
28836 "the guest handle and must I<not> be freed."
28837 msgstr ""
28838
28839 #. type: =head2
28840 #: ../src/guestfs-actions.pod:2497
28841 msgid "guestfs_get_pgroup"
28842 msgstr ""
28843
28844 #. type: verbatim
28845 #: ../src/guestfs-actions.pod:2499
28846 #, no-wrap
28847 msgid ""
28848 " int\n"
28849 " guestfs_get_pgroup (guestfs_h *g);\n"
28850 "\n"
28851 msgstr ""
28852
28853 #. type: textblock
28854 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6987
28855 #: ../src/guestfs-actions.pod:8448
28856 msgid "(Added in 1.11.18)"
28857 msgstr ""
28858
28859 #. type: =head2
28860 #: ../src/guestfs-actions.pod:2508
28861 msgid "guestfs_get_pid"
28862 msgstr ""
28863
28864 #. type: verbatim
28865 #: ../src/guestfs-actions.pod:2510
28866 #, no-wrap
28867 msgid ""
28868 " int\n"
28869 " guestfs_get_pid (guestfs_h *g);\n"
28870 "\n"
28871 msgstr ""
28872
28873 #. type: textblock
28874 #: ../src/guestfs-actions.pod:2520
28875 msgid "(Added in 1.0.56)"
28876 msgstr ""
28877
28878 #. type: =head2
28879 #: ../src/guestfs-actions.pod:2522
28880 msgid "guestfs_get_qemu"
28881 msgstr ""
28882
28883 #. type: verbatim
28884 #: ../src/guestfs-actions.pod:2524
28885 #, no-wrap
28886 msgid ""
28887 " const char *\n"
28888 " guestfs_get_qemu (guestfs_h *g);\n"
28889 "\n"
28890 msgstr ""
28891
28892 #. type: textblock
28893 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:7015
28894 msgid "(Added in 1.0.6)"
28895 msgstr ""
28896
28897 #. type: =head2
28898 #: ../src/guestfs-actions.pod:2537
28899 msgid "guestfs_get_recovery_proc"
28900 msgstr ""
28901
28902 #. type: verbatim
28903 #: ../src/guestfs-actions.pod:2539
28904 #, no-wrap
28905 msgid ""
28906 " int\n"
28907 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28908 "\n"
28909 msgstr ""
28910
28911 #. type: textblock
28912 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
28913 #: ../src/guestfs-actions.pod:4474 ../src/guestfs-actions.pod:4868
28914 #: ../src/guestfs-actions.pod:5059 ../src/guestfs-actions.pod:6254
28915 #: ../src/guestfs-actions.pod:6597 ../src/guestfs-actions.pod:7039
28916 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7757
28917 #: ../src/guestfs-actions.pod:8071
28918 msgid "(Added in 1.0.77)"
28919 msgstr ""
28920
28921 #. type: =head2
28922 #: ../src/guestfs-actions.pod:2548
28923 msgid "guestfs_get_selinux"
28924 msgstr ""
28925
28926 #. type: verbatim
28927 #: ../src/guestfs-actions.pod:2550
28928 #, no-wrap
28929 msgid ""
28930 " int\n"
28931 " guestfs_get_selinux (guestfs_h *g);\n"
28932 "\n"
28933 msgstr ""
28934
28935 #. type: textblock
28936 #: ../src/guestfs-actions.pod:2553
28937 msgid ""
28938 "This returns the current setting of the selinux flag which is passed to the "
28939 "appliance at boot time.  See C<guestfs_set_selinux>."
28940 msgstr ""
28941
28942 #. type: textblock
28943 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
28944 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7132
28945 msgid "(Added in 1.0.67)"
28946 msgstr ""
28947
28948 #. type: =head2
28949 #: ../src/guestfs-actions.pod:2563
28950 msgid "guestfs_get_smp"
28951 msgstr ""
28952
28953 #. type: verbatim
28954 #: ../src/guestfs-actions.pod:2565
28955 #, no-wrap
28956 msgid ""
28957 " int\n"
28958 " guestfs_get_smp (guestfs_h *g);\n"
28959 "\n"
28960 msgstr ""
28961
28962 #. type: =head2
28963 #: ../src/guestfs-actions.pod:2574
28964 msgid "guestfs_get_state"
28965 msgstr ""
28966
28967 #. type: verbatim
28968 #: ../src/guestfs-actions.pod:2576
28969 #, no-wrap
28970 msgid ""
28971 " int\n"
28972 " guestfs_get_state (guestfs_h *g);\n"
28973 "\n"
28974 msgstr ""
28975
28976 #. type: =head2
28977 #: ../src/guestfs-actions.pod:2588
28978 msgid "guestfs_get_trace"
28979 msgstr ""
28980
28981 #. type: verbatim
28982 #: ../src/guestfs-actions.pod:2590
28983 #, no-wrap
28984 msgid ""
28985 " int\n"
28986 " guestfs_get_trace (guestfs_h *g);\n"
28987 "\n"
28988 msgstr ""
28989
28990 #. type: =head2
28991 #: ../src/guestfs-actions.pod:2599
28992 msgid "guestfs_get_umask"
28993 msgstr ""
28994
28995 #. type: verbatim
28996 #: ../src/guestfs-actions.pod:2601
28997 #, no-wrap
28998 msgid ""
28999 " int\n"
29000 " guestfs_get_umask (guestfs_h *g);\n"
29001 "\n"
29002 msgstr ""
29003
29004 #. type: textblock
29005 #: ../src/guestfs-actions.pod:2604
29006 msgid ""
29007 "Return the current umask.  By default the umask is C<022> unless it has been "
29008 "set by calling C<guestfs_umask>."
29009 msgstr ""
29010
29011 #. type: =head2
29012 #: ../src/guestfs-actions.pod:2611
29013 msgid "guestfs_get_verbose"
29014 msgstr ""
29015
29016 #. type: verbatim
29017 #: ../src/guestfs-actions.pod:2613
29018 #, no-wrap
29019 msgid ""
29020 " int\n"
29021 " guestfs_get_verbose (guestfs_h *g);\n"
29022 "\n"
29023 msgstr ""
29024
29025 #. type: =head2
29026 #: ../src/guestfs-actions.pod:2622
29027 msgid "guestfs_getcon"
29028 msgstr ""
29029
29030 #. type: verbatim
29031 #: ../src/guestfs-actions.pod:2624
29032 #, no-wrap
29033 msgid ""
29034 " char *\n"
29035 " guestfs_getcon (guestfs_h *g);\n"
29036 "\n"
29037 msgstr ""
29038
29039 #. type: textblock
29040 #: ../src/guestfs-actions.pod:2629
29041 msgid ""
29042 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
29043 msgstr ""
29044
29045 #. type: =head2
29046 #: ../src/guestfs-actions.pod:2637
29047 msgid "guestfs_getxattr"
29048 msgstr ""
29049
29050 #. type: verbatim
29051 #: ../src/guestfs-actions.pod:2639
29052 #, no-wrap
29053 msgid ""
29054 " char *\n"
29055 " guestfs_getxattr (guestfs_h *g,\n"
29056 "                   const char *path,\n"
29057 "                   const char *name,\n"
29058 "                   size_t *size_r);\n"
29059 "\n"
29060 msgstr ""
29061
29062 #. type: textblock
29063 #: ../src/guestfs-actions.pod:2645
29064 msgid ""
29065 "Get a single extended attribute from file C<path> named C<name>.  This call "
29066 "follows symlinks.  If you want to lookup an extended attribute for the "
29067 "symlink itself, use C<guestfs_lgetxattr>."
29068 msgstr ""
29069
29070 #. type: textblock
29071 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
29072 msgid ""
29073 "Normally it is better to get all extended attributes from a file in one go "
29074 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
29075 "implementations are buggy and do not provide a way to list out attributes.  "
29076 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
29077 "extended attributes you want in advance and call this function."
29078 msgstr ""
29079
29080 #. type: textblock
29081 #: ../src/guestfs-actions.pod:2659
29082 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
29083 msgstr ""
29084
29085 #. type: textblock
29086 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
29087 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
29088 #: ../src/guestfs-actions.pod:6247 ../src/guestfs-actions.pod:6273
29089 #: ../src/guestfs-actions.pod:6454
29090 msgid ""
29091 "This function returns a buffer, or NULL on error.  The size of the returned "
29092 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
29093 "after use>."
29094 msgstr ""
29095
29096 #. type: textblock
29097 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
29098 msgid "(Added in 1.7.24)"
29099 msgstr ""
29100
29101 #. type: =head2
29102 #: ../src/guestfs-actions.pod:2667
29103 msgid "guestfs_getxattrs"
29104 msgstr ""
29105
29106 #. type: verbatim
29107 #: ../src/guestfs-actions.pod:2669
29108 #, no-wrap
29109 msgid ""
29110 " struct guestfs_xattr_list *\n"
29111 " guestfs_getxattrs (guestfs_h *g,\n"
29112 "                    const char *path);\n"
29113 "\n"
29114 msgstr ""
29115
29116 #. type: textblock
29117 #: ../src/guestfs-actions.pod:2679
29118 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
29119 msgstr ""
29120
29121 #. type: textblock
29122 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
29123 #: ../src/guestfs-actions.pod:4864
29124 msgid ""
29125 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
29126 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
29127 msgstr ""
29128
29129 #. type: textblock
29130 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
29131 #: ../src/guestfs-actions.pod:4388 ../src/guestfs-actions.pod:4424
29132 #: ../src/guestfs-actions.pod:6627 ../src/guestfs-actions.pod:7151
29133 #: ../src/guestfs-actions.pod:8656
29134 msgid "(Added in 1.0.59)"
29135 msgstr ""
29136
29137 #. type: =head2
29138 #: ../src/guestfs-actions.pod:2687
29139 msgid "guestfs_glob_expand"
29140 msgstr ""
29141
29142 #. type: verbatim
29143 #: ../src/guestfs-actions.pod:2689
29144 #, no-wrap
29145 msgid ""
29146 " char **\n"
29147 " guestfs_glob_expand (guestfs_h *g,\n"
29148 "                      const char *pattern);\n"
29149 "\n"
29150 msgstr ""
29151
29152 #. type: textblock
29153 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7335
29154 #: ../src/guestfs-actions.pod:7352
29155 msgid "(Added in 1.0.50)"
29156 msgstr ""
29157
29158 #. type: =head2
29159 #: ../src/guestfs-actions.pod:2710
29160 msgid "guestfs_grep"
29161 msgstr ""
29162
29163 #. type: verbatim
29164 #: ../src/guestfs-actions.pod:2712
29165 #, no-wrap
29166 msgid ""
29167 " char **\n"
29168 " guestfs_grep (guestfs_h *g,\n"
29169 "               const char *regex,\n"
29170 "               const char *path);\n"
29171 "\n"
29172 msgstr ""
29173
29174 #. type: =head2
29175 #: ../src/guestfs-actions.pod:2729
29176 msgid "guestfs_grepi"
29177 msgstr ""
29178
29179 #. type: verbatim
29180 #: ../src/guestfs-actions.pod:2731
29181 #, no-wrap
29182 msgid ""
29183 " char **\n"
29184 " guestfs_grepi (guestfs_h *g,\n"
29185 "                const char *regex,\n"
29186 "                const char *path);\n"
29187 "\n"
29188 msgstr ""
29189
29190 #. type: =head2
29191 #: ../src/guestfs-actions.pod:2748
29192 msgid "guestfs_grub_install"
29193 msgstr ""
29194
29195 #. type: verbatim
29196 #: ../src/guestfs-actions.pod:2750
29197 #, no-wrap
29198 msgid ""
29199 " int\n"
29200 " guestfs_grub_install (guestfs_h *g,\n"
29201 "                       const char *root,\n"
29202 "                       const char *device);\n"
29203 "\n"
29204 msgstr ""
29205
29206 #. type: textblock
29207 #: ../src/guestfs-actions.pod:2793
29208 msgid "(Added in 1.0.17)"
29209 msgstr ""
29210
29211 #. type: =head2
29212 #: ../src/guestfs-actions.pod:2795
29213 msgid "guestfs_head"
29214 msgstr ""
29215
29216 #. type: verbatim
29217 #: ../src/guestfs-actions.pod:2797
29218 #, no-wrap
29219 msgid ""
29220 " char **\n"
29221 " guestfs_head (guestfs_h *g,\n"
29222 "               const char *path);\n"
29223 "\n"
29224 msgstr ""
29225
29226 #. type: =head2
29227 #: ../src/guestfs-actions.pod:2813
29228 msgid "guestfs_head_n"
29229 msgstr ""
29230
29231 #. type: verbatim
29232 #: ../src/guestfs-actions.pod:2815
29233 #, no-wrap
29234 msgid ""
29235 " char **\n"
29236 " guestfs_head_n (guestfs_h *g,\n"
29237 "                 int nrlines,\n"
29238 "                 const char *path);\n"
29239 "\n"
29240 msgstr ""
29241
29242 #. type: =head2
29243 #: ../src/guestfs-actions.pod:2837
29244 msgid "guestfs_hexdump"
29245 msgstr ""
29246
29247 #. type: verbatim
29248 #: ../src/guestfs-actions.pod:2839
29249 #, no-wrap
29250 msgid ""
29251 " char *\n"
29252 " guestfs_hexdump (guestfs_h *g,\n"
29253 "                  const char *path);\n"
29254 "\n"
29255 msgstr ""
29256
29257 #. type: textblock
29258 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7416
29259 #: ../src/guestfs-actions.pod:7471
29260 msgid "(Added in 1.0.22)"
29261 msgstr ""
29262
29263 #. type: =head2
29264 #: ../src/guestfs-actions.pod:2854
29265 msgid "guestfs_initrd_cat"
29266 msgstr ""
29267
29268 #. type: verbatim
29269 #: ../src/guestfs-actions.pod:2856
29270 #, no-wrap
29271 msgid ""
29272 " char *\n"
29273 " guestfs_initrd_cat (guestfs_h *g,\n"
29274 "                     const char *initrdpath,\n"
29275 "                     const char *filename,\n"
29276 "                     size_t *size_r);\n"
29277 "\n"
29278 msgstr ""
29279
29280 #. type: textblock
29281 #: ../src/guestfs-actions.pod:2872
29282 msgid "See also C<guestfs_initrd_list>."
29283 msgstr ""
29284
29285 #. type: =head2
29286 #: ../src/guestfs-actions.pod:2883
29287 msgid "guestfs_initrd_list"
29288 msgstr ""
29289
29290 #. type: verbatim
29291 #: ../src/guestfs-actions.pod:2885
29292 #, no-wrap
29293 msgid ""
29294 " char **\n"
29295 " guestfs_initrd_list (guestfs_h *g,\n"
29296 "                      const char *path);\n"
29297 "\n"
29298 msgstr ""
29299
29300 #. type: =head2
29301 #: ../src/guestfs-actions.pod:2905
29302 msgid "guestfs_inotify_add_watch"
29303 msgstr ""
29304
29305 #. type: verbatim
29306 #: ../src/guestfs-actions.pod:2907
29307 #, no-wrap
29308 msgid ""
29309 " int64_t\n"
29310 " guestfs_inotify_add_watch (guestfs_h *g,\n"
29311 "                            const char *path,\n"
29312 "                            int mask);\n"
29313 "\n"
29314 msgstr ""
29315
29316 #. type: =head2
29317 #: ../src/guestfs-actions.pod:2926
29318 msgid "guestfs_inotify_close"
29319 msgstr ""
29320
29321 #. type: verbatim
29322 #: ../src/guestfs-actions.pod:2928
29323 #, no-wrap
29324 msgid ""
29325 " int\n"
29326 " guestfs_inotify_close (guestfs_h *g);\n"
29327 "\n"
29328 msgstr ""
29329
29330 #. type: =head2
29331 #: ../src/guestfs-actions.pod:2939
29332 msgid "guestfs_inotify_files"
29333 msgstr ""
29334
29335 #. type: verbatim
29336 #: ../src/guestfs-actions.pod:2941
29337 #, no-wrap
29338 msgid ""
29339 " char **\n"
29340 " guestfs_inotify_files (guestfs_h *g);\n"
29341 "\n"
29342 msgstr ""
29343
29344 #. type: textblock
29345 #: ../src/guestfs-actions.pod:2944
29346 msgid ""
29347 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
29348 "returns a list of pathnames of objects that were touched.  The returned "
29349 "pathnames are sorted and deduplicated."
29350 msgstr ""
29351
29352 #. type: =head2
29353 #: ../src/guestfs-actions.pod:2954
29354 msgid "guestfs_inotify_init"
29355 msgstr ""
29356
29357 #. type: verbatim
29358 #: ../src/guestfs-actions.pod:2956
29359 #, no-wrap
29360 msgid ""
29361 " int\n"
29362 " guestfs_inotify_init (guestfs_h *g,\n"
29363 "                       int maxevents);\n"
29364 "\n"
29365 msgstr ""
29366
29367 #. type: textblock
29368 #: ../src/guestfs-actions.pod:2964
29369 msgid ""
29370 "C<maxevents> is the maximum number of events which will be queued up between "
29371 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
29372 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
29373 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
29374 "throws away events, but records the fact that it threw them away by setting "
29375 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
29376 "C<guestfs_inotify_read>)."
29377 msgstr ""
29378
29379 #. type: textblock
29380 #: ../src/guestfs-actions.pod:2974
29381 msgid ""
29382 "Before any events are generated, you have to add some watches to the "
29383 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
29384 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
29385 msgstr ""
29386
29387 #. type: textblock
29388 #: ../src/guestfs-actions.pod:2980
29389 msgid ""
29390 "Queued up events should be read periodically by calling "
29391 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
29392 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
29393 "often enough then you risk the internal queue overflowing."
29394 msgstr ""
29395
29396 #. type: textblock
29397 #: ../src/guestfs-actions.pod:2987
29398 msgid ""
29399 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
29400 "This also removes any watches automatically."
29401 msgstr ""
29402
29403 #. type: =head2
29404 #: ../src/guestfs-actions.pod:3000
29405 msgid "guestfs_inotify_read"
29406 msgstr ""
29407
29408 #. type: verbatim
29409 #: ../src/guestfs-actions.pod:3002
29410 #, no-wrap
29411 msgid ""
29412 " struct guestfs_inotify_event_list *\n"
29413 " guestfs_inotify_read (guestfs_h *g);\n"
29414 "\n"
29415 msgstr ""
29416
29417 #. type: textblock
29418 #: ../src/guestfs-actions.pod:3016
29419 msgid ""
29420 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
29421 "there was an error.  I<The caller must call "
29422 "C<guestfs_free_inotify_event_list> after use>."
29423 msgstr ""
29424
29425 #. type: =head2
29426 #: ../src/guestfs-actions.pod:3022
29427 msgid "guestfs_inotify_rm_watch"
29428 msgstr ""
29429
29430 #. type: verbatim
29431 #: ../src/guestfs-actions.pod:3024
29432 #, no-wrap
29433 msgid ""
29434 " int\n"
29435 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
29436 "                           int wd);\n"
29437 "\n"
29438 msgstr ""
29439
29440 #. type: textblock
29441 #: ../src/guestfs-actions.pod:3028
29442 msgid ""
29443 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
29444 msgstr ""
29445
29446 #. type: =head2
29447 #: ../src/guestfs-actions.pod:3035
29448 msgid "guestfs_inspect_get_arch"
29449 msgstr ""
29450
29451 #. type: verbatim
29452 #: ../src/guestfs-actions.pod:3037
29453 #, no-wrap
29454 msgid ""
29455 " char *\n"
29456 " guestfs_inspect_get_arch (guestfs_h *g,\n"
29457 "                           const char *root);\n"
29458 "\n"
29459 msgstr ""
29460
29461 #. type: textblock
29462 #: ../src/guestfs-actions.pod:3041
29463 msgid ""
29464 "This returns the architecture of the inspected operating system.  The "
29465 "possible return values are listed under C<guestfs_file_architecture>."
29466 msgstr ""
29467
29468 #. type: =head2
29469 #: ../src/guestfs-actions.pod:3055
29470 msgid "guestfs_inspect_get_distro"
29471 msgstr ""
29472
29473 #. type: verbatim
29474 #: ../src/guestfs-actions.pod:3057
29475 #, no-wrap
29476 msgid ""
29477 " char *\n"
29478 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29479 "                             const char *root);\n"
29480 "\n"
29481 msgstr ""
29482
29483 #. type: =head2
29484 #: ../src/guestfs-actions.pod:3157
29485 msgid "guestfs_inspect_get_drive_mappings"
29486 msgstr ""
29487
29488 #. type: verbatim
29489 #: ../src/guestfs-actions.pod:3159
29490 #, no-wrap
29491 msgid ""
29492 " char **\n"
29493 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29494 "                                     const char *root);\n"
29495 "\n"
29496 msgstr ""
29497
29498 #. type: textblock
29499 #: ../src/guestfs-actions.pod:3188
29500 msgid ""
29501 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29502 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29503 msgstr ""
29504
29505 #. type: textblock
29506 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
29507 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5002
29508 #: ../src/guestfs-actions.pod:5698 ../src/guestfs-actions.pod:7895
29509 msgid ""
29510 "This function returns a NULL-terminated array of strings, or NULL if there "
29511 "was an error.  The array of strings will always have length C<2n+1>, where "
29512 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
29513 "caller must free the strings and the array after use>."
29514 msgstr ""
29515
29516 #. type: textblock
29517 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
29518 msgid "(Added in 1.9.17)"
29519 msgstr ""
29520
29521 #. type: =head2
29522 #: ../src/guestfs-actions.pod:3200
29523 msgid "guestfs_inspect_get_filesystems"
29524 msgstr ""
29525
29526 #. type: verbatim
29527 #: ../src/guestfs-actions.pod:3202
29528 #, no-wrap
29529 msgid ""
29530 " char **\n"
29531 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29532 "                                  const char *root);\n"
29533 "\n"
29534 msgstr ""
29535
29536 #. type: textblock
29537 #: ../src/guestfs-actions.pod:3214
29538 msgid ""
29539 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29540 "C<guestfs_inspect_get_mountpoints>."
29541 msgstr ""
29542
29543 #. type: =head2
29544 #: ../src/guestfs-actions.pod:3223
29545 msgid "guestfs_inspect_get_format"
29546 msgstr ""
29547
29548 #. type: verbatim
29549 #: ../src/guestfs-actions.pod:3225
29550 #, no-wrap
29551 msgid ""
29552 " char *\n"
29553 " guestfs_inspect_get_format (guestfs_h *g,\n"
29554 "                             const char *root);\n"
29555 "\n"
29556 msgstr ""
29557
29558 #. type: textblock
29559 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
29560 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
29561 #: ../src/guestfs-actions.pod:6665
29562 msgid "(Added in 1.9.4)"
29563 msgstr ""
29564
29565 #. type: =head2
29566 #: ../src/guestfs-actions.pod:3261
29567 msgid "guestfs_inspect_get_hostname"
29568 msgstr ""
29569
29570 #. type: verbatim
29571 #: ../src/guestfs-actions.pod:3263
29572 #, no-wrap
29573 msgid ""
29574 " char *\n"
29575 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29576 "                               const char *root);\n"
29577 "\n"
29578 msgstr ""
29579
29580 #. type: textblock
29581 #: ../src/guestfs-actions.pod:3278
29582 msgid "(Added in 1.7.9)"
29583 msgstr ""
29584
29585 #. type: =head2
29586 #: ../src/guestfs-actions.pod:3280
29587 msgid "guestfs_inspect_get_icon"
29588 msgstr ""
29589
29590 #. type: verbatim
29591 #: ../src/guestfs-actions.pod:3282
29592 #, no-wrap
29593 msgid ""
29594 " char *\n"
29595 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29596 "                           const char *root,\n"
29597 "                           size_t *size_r,\n"
29598 "                           ...);\n"
29599 "\n"
29600 msgstr ""
29601
29602 #. type: verbatim
29603 #: ../src/guestfs-actions.pod:3293
29604 #, no-wrap
29605 msgid ""
29606 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29607 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29608 "\n"
29609 msgstr ""
29610
29611 #. type: textblock
29612 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
29613 #: ../src/guestfs-actions.pod:5597
29614 msgid "(Added in 1.11.12)"
29615 msgstr ""
29616
29617 #. type: =head2
29618 #: ../src/guestfs-actions.pod:3362
29619 msgid "guestfs_inspect_get_icon_va"
29620 msgstr ""
29621
29622 #. type: verbatim
29623 #: ../src/guestfs-actions.pod:3364
29624 #, no-wrap
29625 msgid ""
29626 " char *\n"
29627 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29628 "                              const char *root,\n"
29629 "                              size_t *size_r,\n"
29630 "                              va_list args);\n"
29631 "\n"
29632 msgstr ""
29633
29634 #. type: textblock
29635 #: ../src/guestfs-actions.pod:3370
29636 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29637 msgstr ""
29638
29639 #. type: =head2
29640 #: ../src/guestfs-actions.pod:3374
29641 msgid "guestfs_inspect_get_icon_argv"
29642 msgstr ""
29643
29644 #. type: verbatim
29645 #: ../src/guestfs-actions.pod:3376
29646 #, no-wrap
29647 msgid ""
29648 " char *\n"
29649 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29650 "                                const char *root,\n"
29651 "                                size_t *size_r,\n"
29652 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29653 "\n"
29654 msgstr ""
29655
29656 #. type: textblock
29657 #: ../src/guestfs-actions.pod:3382
29658 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29659 msgstr ""
29660
29661 #. type: =head2
29662 #: ../src/guestfs-actions.pod:3386
29663 msgid "guestfs_inspect_get_major_version"
29664 msgstr ""
29665
29666 #. type: verbatim
29667 #: ../src/guestfs-actions.pod:3388
29668 #, no-wrap
29669 msgid ""
29670 " int\n"
29671 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29672 "                                    const char *root);\n"
29673 "\n"
29674 msgstr ""
29675
29676 #. type: =head2
29677 #: ../src/guestfs-actions.pod:3410
29678 msgid "guestfs_inspect_get_minor_version"
29679 msgstr ""
29680
29681 #. type: verbatim
29682 #: ../src/guestfs-actions.pod:3412
29683 #, no-wrap
29684 msgid ""
29685 " int\n"
29686 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29687 "                                    const char *root);\n"
29688 "\n"
29689 msgstr ""
29690
29691 #. type: textblock
29692 #: ../src/guestfs-actions.pod:3421
29693 msgid ""
29694 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29695 "C<guestfs_inspect_get_major_version>."
29696 msgstr ""
29697
29698 #. type: =head2
29699 #: ../src/guestfs-actions.pod:3428
29700 msgid "guestfs_inspect_get_mountpoints"
29701 msgstr ""
29702
29703 #. type: verbatim
29704 #: ../src/guestfs-actions.pod:3430
29705 #, no-wrap
29706 msgid ""
29707 " char **\n"
29708 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29709 "                                  const char *root);\n"
29710 "\n"
29711 msgstr ""
29712
29713 #. type: textblock
29714 #: ../src/guestfs-actions.pod:3451
29715 msgid ""
29716 "For operating systems like Windows which still use drive letters, this call "
29717 "will only return an entry for the first drive \"mounted on\" C</>.  For "
29718 "information about the mapping of drive letters to partitions, see "
29719 "C<guestfs_inspect_get_drive_mappings>."
29720 msgstr ""
29721
29722 #. type: textblock
29723 #: ../src/guestfs-actions.pod:3457
29724 msgid ""
29725 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29726 "C<guestfs_inspect_get_filesystems>."
29727 msgstr ""
29728
29729 #. type: =head2
29730 #: ../src/guestfs-actions.pod:3468
29731 msgid "guestfs_inspect_get_package_format"
29732 msgstr ""
29733
29734 #. type: verbatim
29735 #: ../src/guestfs-actions.pod:3470
29736 #, no-wrap
29737 msgid ""
29738 " char *\n"
29739 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29740 "                                     const char *root);\n"
29741 "\n"
29742 msgstr ""
29743
29744 #. type: textblock
29745 #: ../src/guestfs-actions.pod:3474
29746 msgid ""
29747 "This function and C<guestfs_inspect_get_package_management> return the "
29748 "package format and package management tool used by the inspected operating "
29749 "system.  For example for Fedora these functions would return C<rpm> (package "
29750 "format) and C<yum> (package management)."
29751 msgstr ""
29752
29753 #. type: textblock
29754 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
29755 msgid "(Added in 1.7.5)"
29756 msgstr ""
29757
29758 #. type: =head2
29759 #: ../src/guestfs-actions.pod:3495
29760 msgid "guestfs_inspect_get_package_management"
29761 msgstr ""
29762
29763 #. type: verbatim
29764 #: ../src/guestfs-actions.pod:3497
29765 #, no-wrap
29766 msgid ""
29767 " char *\n"
29768 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29769 "                                         const char *root);\n"
29770 "\n"
29771 msgstr ""
29772
29773 #. type: textblock
29774 #: ../src/guestfs-actions.pod:3501
29775 msgid ""
29776 "C<guestfs_inspect_get_package_format> and this function return the package "
29777 "format and package management tool used by the inspected operating system.  "
29778 "For example for Fedora these functions would return C<rpm> (package format) "
29779 "and C<yum> (package management)."
29780 msgstr ""
29781
29782 #. type: =head2
29783 #: ../src/guestfs-actions.pod:3523
29784 msgid "guestfs_inspect_get_product_name"
29785 msgstr ""
29786
29787 #. type: verbatim
29788 #: ../src/guestfs-actions.pod:3525
29789 #, no-wrap
29790 msgid ""
29791 " char *\n"
29792 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29793 "                                   const char *root);\n"
29794 "\n"
29795 msgstr ""
29796
29797 #. type: =head2
29798 #: ../src/guestfs-actions.pod:3544
29799 msgid "guestfs_inspect_get_product_variant"
29800 msgstr ""
29801
29802 #. type: verbatim
29803 #: ../src/guestfs-actions.pod:3546
29804 #, no-wrap
29805 msgid ""
29806 " char *\n"
29807 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29808 "                                      const char *root);\n"
29809 "\n"
29810 msgstr ""
29811
29812 #. type: textblock
29813 #: ../src/guestfs-actions.pod:3569
29814 msgid ""
29815 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29816 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29817 msgstr ""
29818
29819 #. type: textblock
29820 #: ../src/guestfs-actions.pod:3576
29821 msgid "(Added in 1.9.13)"
29822 msgstr ""
29823
29824 #. type: =head2
29825 #: ../src/guestfs-actions.pod:3578
29826 msgid "guestfs_inspect_get_roots"
29827 msgstr ""
29828
29829 #. type: verbatim
29830 #: ../src/guestfs-actions.pod:3580
29831 #, no-wrap
29832 msgid ""
29833 " char **\n"
29834 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29835 "\n"
29836 msgstr ""
29837
29838 #. type: textblock
29839 #: ../src/guestfs-actions.pod:3583
29840 msgid ""
29841 "This function is a convenient way to get the list of root devices, as "
29842 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29843 "the whole inspection process."
29844 msgstr ""
29845
29846 #. type: textblock
29847 #: ../src/guestfs-actions.pod:3587
29848 msgid ""
29849 "This returns an empty list if either no root devices were found or the "
29850 "caller has not called C<guestfs_inspect_os>."
29851 msgstr ""
29852
29853 #. type: textblock
29854 #: ../src/guestfs-actions.pod:3596
29855 msgid "(Added in 1.7.3)"
29856 msgstr ""
29857
29858 #. type: =head2
29859 #: ../src/guestfs-actions.pod:3598
29860 msgid "guestfs_inspect_get_type"
29861 msgstr ""
29862
29863 #. type: verbatim
29864 #: ../src/guestfs-actions.pod:3600
29865 #, no-wrap
29866 msgid ""
29867 " char *\n"
29868 " guestfs_inspect_get_type (guestfs_h *g,\n"
29869 "                           const char *root);\n"
29870 "\n"
29871 msgstr ""
29872
29873 #. type: =head2
29874 #: ../src/guestfs-actions.pod:3641
29875 msgid "guestfs_inspect_get_windows_current_control_set"
29876 msgstr ""
29877
29878 #. type: verbatim
29879 #: ../src/guestfs-actions.pod:3643
29880 #, no-wrap
29881 msgid ""
29882 " char *\n"
29883 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29884 "                                                  const char *root);\n"
29885 "\n"
29886 msgstr ""
29887
29888 #. type: =head2
29889 #: ../src/guestfs-actions.pod:3661
29890 msgid "guestfs_inspect_get_windows_systemroot"
29891 msgstr ""
29892
29893 #. type: verbatim
29894 #: ../src/guestfs-actions.pod:3663
29895 #, no-wrap
29896 msgid ""
29897 " char *\n"
29898 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29899 "                                         const char *root);\n"
29900 "\n"
29901 msgstr ""
29902
29903 #. type: textblock
29904 #: ../src/guestfs-actions.pod:3679
29905 msgid "(Added in 1.5.25)"
29906 msgstr ""
29907
29908 #. type: =head2
29909 #: ../src/guestfs-actions.pod:3681
29910 msgid "guestfs_inspect_is_live"
29911 msgstr ""
29912
29913 #. type: verbatim
29914 #: ../src/guestfs-actions.pod:3683
29915 #, no-wrap
29916 msgid ""
29917 " int\n"
29918 " guestfs_inspect_is_live (guestfs_h *g,\n"
29919 "                          const char *root);\n"
29920 "\n"
29921 msgstr ""
29922
29923 #. type: textblock
29924 #: ../src/guestfs-actions.pod:3687
29925 msgid ""
29926 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29927 "disk), then this returns true if a live image was detected on the disk."
29928 msgstr ""
29929
29930 #. type: =head2
29931 #: ../src/guestfs-actions.pod:3697
29932 msgid "guestfs_inspect_is_multipart"
29933 msgstr ""
29934
29935 #. type: verbatim
29936 #: ../src/guestfs-actions.pod:3699
29937 #, no-wrap
29938 msgid ""
29939 " int\n"
29940 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29941 "                               const char *root);\n"
29942 "\n"
29943 msgstr ""
29944
29945 #. type: textblock
29946 #: ../src/guestfs-actions.pod:3703
29947 msgid ""
29948 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29949 "disk), then this returns true if the disk is part of a set."
29950 msgstr ""
29951
29952 #. type: =head2
29953 #: ../src/guestfs-actions.pod:3713
29954 msgid "guestfs_inspect_is_netinst"
29955 msgstr ""
29956
29957 #. type: verbatim
29958 #: ../src/guestfs-actions.pod:3715
29959 #, no-wrap
29960 msgid ""
29961 " int\n"
29962 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29963 "                             const char *root);\n"
29964 "\n"
29965 msgstr ""
29966
29967 #. type: textblock
29968 #: ../src/guestfs-actions.pod:3719
29969 msgid ""
29970 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29971 "disk), then this returns true if the disk is a network installer, ie. not a "
29972 "self-contained install CD but one which is likely to require network access "
29973 "to complete the install."
29974 msgstr ""
29975
29976 #. type: =head2
29977 #: ../src/guestfs-actions.pod:3731
29978 msgid "guestfs_inspect_list_applications"
29979 msgstr ""
29980
29981 #. type: verbatim
29982 #: ../src/guestfs-actions.pod:3733
29983 #, no-wrap
29984 msgid ""
29985 " struct guestfs_application_list *\n"
29986 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29987 "                                    const char *root);\n"
29988 "\n"
29989 msgstr ""
29990
29991 #. type: textblock
29992 #: ../src/guestfs-actions.pod:3739
29993 msgid ""
29994 "I<Note:> This call works differently from other parts of the inspection "
29995 "API.  You have to call C<guestfs_inspect_os>, then "
29996 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29997 "this.  Listing applications is a significantly more difficult operation "
29998 "which requires access to the full filesystem.  Also note that unlike the "
29999 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
30000 "the libguestfs handle, this call actually reads parts of the mounted "
30001 "filesystems during the call."
30002 msgstr ""
30003
30004 #. type: textblock
30005 #: ../src/guestfs-actions.pod:3829
30006 msgid ""
30007 "This function returns a C<struct guestfs_application_list *>, or NULL if "
30008 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
30009 "after use>."
30010 msgstr ""
30011
30012 #. type: textblock
30013 #: ../src/guestfs-actions.pod:3833
30014 msgid "(Added in 1.7.8)"
30015 msgstr ""
30016
30017 #. type: =head2
30018 #: ../src/guestfs-actions.pod:3835
30019 msgid "guestfs_inspect_os"
30020 msgstr ""
30021
30022 #. type: verbatim
30023 #: ../src/guestfs-actions.pod:3837
30024 #, no-wrap
30025 msgid ""
30026 " char **\n"
30027 " guestfs_inspect_os (guestfs_h *g);\n"
30028 "\n"
30029 msgstr ""
30030
30031 #. type: textblock
30032 #: ../src/guestfs-actions.pod:3853
30033 msgid ""
30034 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
30035 "functions in order to query further information about each operating system, "
30036 "such as the name and version."
30037 msgstr ""
30038
30039 #. type: textblock
30040 #: ../src/guestfs-actions.pod:3858
30041 msgid ""
30042 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
30043 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
30044 "the contents.  This should be called with no disks currently mounted.  The "
30045 "function may also use Augeas, so any existing Augeas handle will be closed."
30046 msgstr ""
30047
30048 #. type: textblock
30049 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
30050 #: ../src/guestfs-actions.pod:4296
30051 msgid "See also C<guestfs_list_filesystems>."
30052 msgstr ""
30053
30054 #. type: =head2
30055 #: ../src/guestfs-actions.pod:3878
30056 msgid "guestfs_is_blockdev"
30057 msgstr ""
30058
30059 #. type: verbatim
30060 #: ../src/guestfs-actions.pod:3880
30061 #, no-wrap
30062 msgid ""
30063 " int\n"
30064 " guestfs_is_blockdev (guestfs_h *g,\n"
30065 "                      const char *path);\n"
30066 "\n"
30067 msgstr ""
30068
30069 #. type: textblock
30070 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
30071 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
30072 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
30073 #: ../src/guestfs-actions.pod:4048
30074 msgid "See also C<guestfs_stat>."
30075 msgstr ""
30076
30077 #. type: textblock
30078 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
30079 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
30080 #: ../src/guestfs-actions.pod:4052
30081 msgid "(Added in 1.5.10)"
30082 msgstr ""
30083
30084 #. type: =head2
30085 #: ../src/guestfs-actions.pod:3893
30086 msgid "guestfs_is_busy"
30087 msgstr ""
30088
30089 #. type: verbatim
30090 #: ../src/guestfs-actions.pod:3895
30091 #, no-wrap
30092 msgid ""
30093 " int\n"
30094 " guestfs_is_busy (guestfs_h *g);\n"
30095 "\n"
30096 msgstr ""
30097
30098 #. type: =head2
30099 #: ../src/guestfs-actions.pod:3907
30100 msgid "guestfs_is_chardev"
30101 msgstr ""
30102
30103 #. type: verbatim
30104 #: ../src/guestfs-actions.pod:3909
30105 #, no-wrap
30106 msgid ""
30107 " int\n"
30108 " guestfs_is_chardev (guestfs_h *g,\n"
30109 "                     const char *path);\n"
30110 "\n"
30111 msgstr ""
30112
30113 #. type: =head2
30114 #: ../src/guestfs-actions.pod:3922
30115 msgid "guestfs_is_config"
30116 msgstr ""
30117
30118 #. type: verbatim
30119 #: ../src/guestfs-actions.pod:3924
30120 #, no-wrap
30121 msgid ""
30122 " int\n"
30123 " guestfs_is_config (guestfs_h *g);\n"
30124 "\n"
30125 msgstr ""
30126
30127 #. type: =head2
30128 #: ../src/guestfs-actions.pod:3936
30129 msgid "guestfs_is_dir"
30130 msgstr ""
30131
30132 #. type: verbatim
30133 #: ../src/guestfs-actions.pod:3938
30134 #, no-wrap
30135 msgid ""
30136 " int\n"
30137 " guestfs_is_dir (guestfs_h *g,\n"
30138 "                 const char *path);\n"
30139 "\n"
30140 msgstr ""
30141
30142 #. type: =head2
30143 #: ../src/guestfs-actions.pod:3952
30144 msgid "guestfs_is_fifo"
30145 msgstr ""
30146
30147 #. type: verbatim
30148 #: ../src/guestfs-actions.pod:3954
30149 #, no-wrap
30150 msgid ""
30151 " int\n"
30152 " guestfs_is_fifo (guestfs_h *g,\n"
30153 "                  const char *path);\n"
30154 "\n"
30155 msgstr ""
30156
30157 #. type: =head2
30158 #: ../src/guestfs-actions.pod:3967
30159 msgid "guestfs_is_file"
30160 msgstr ""
30161
30162 #. type: verbatim
30163 #: ../src/guestfs-actions.pod:3969
30164 #, no-wrap
30165 msgid ""
30166 " int\n"
30167 " guestfs_is_file (guestfs_h *g,\n"
30168 "                  const char *path);\n"
30169 "\n"
30170 msgstr ""
30171
30172 #. type: =head2
30173 #: ../src/guestfs-actions.pod:3983
30174 msgid "guestfs_is_launching"
30175 msgstr ""
30176
30177 #. type: verbatim
30178 #: ../src/guestfs-actions.pod:3985
30179 #, no-wrap
30180 msgid ""
30181 " int\n"
30182 " guestfs_is_launching (guestfs_h *g);\n"
30183 "\n"
30184 msgstr ""
30185
30186 #. type: =head2
30187 #: ../src/guestfs-actions.pod:3997
30188 msgid "guestfs_is_lv"
30189 msgstr ""
30190
30191 #. type: verbatim
30192 #: ../src/guestfs-actions.pod:3999
30193 #, no-wrap
30194 msgid ""
30195 " int\n"
30196 " guestfs_is_lv (guestfs_h *g,\n"
30197 "                const char *device);\n"
30198 "\n"
30199 msgstr ""
30200
30201 #. type: =head2
30202 #: ../src/guestfs-actions.pod:4010
30203 msgid "guestfs_is_ready"
30204 msgstr ""
30205
30206 #. type: verbatim
30207 #: ../src/guestfs-actions.pod:4012
30208 #, no-wrap
30209 msgid ""
30210 " int\n"
30211 " guestfs_is_ready (guestfs_h *g);\n"
30212 "\n"
30213 msgstr ""
30214
30215 #. type: =head2
30216 #: ../src/guestfs-actions.pod:4024
30217 msgid "guestfs_is_socket"
30218 msgstr ""
30219
30220 #. type: verbatim
30221 #: ../src/guestfs-actions.pod:4026
30222 #, no-wrap
30223 msgid ""
30224 " int\n"
30225 " guestfs_is_socket (guestfs_h *g,\n"
30226 "                    const char *path);\n"
30227 "\n"
30228 msgstr ""
30229
30230 #. type: =head2
30231 #: ../src/guestfs-actions.pod:4039
30232 msgid "guestfs_is_symlink"
30233 msgstr ""
30234
30235 #. type: verbatim
30236 #: ../src/guestfs-actions.pod:4041
30237 #, no-wrap
30238 msgid ""
30239 " int\n"
30240 " guestfs_is_symlink (guestfs_h *g,\n"
30241 "                     const char *path);\n"
30242 "\n"
30243 msgstr ""
30244
30245 #. type: =head2
30246 #: ../src/guestfs-actions.pod:4054
30247 msgid "guestfs_is_zero"
30248 msgstr ""
30249
30250 #. type: verbatim
30251 #: ../src/guestfs-actions.pod:4056
30252 #, no-wrap
30253 msgid ""
30254 " int\n"
30255 " guestfs_is_zero (guestfs_h *g,\n"
30256 "                  const char *path);\n"
30257 "\n"
30258 msgstr ""
30259
30260 #. type: textblock
30261 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
30262 msgid "(Added in 1.11.8)"
30263 msgstr ""
30264
30265 #. type: =head2
30266 #: ../src/guestfs-actions.pod:4067
30267 msgid "guestfs_is_zero_device"
30268 msgstr ""
30269
30270 #. type: verbatim
30271 #: ../src/guestfs-actions.pod:4069
30272 #, no-wrap
30273 msgid ""
30274 " int\n"
30275 " guestfs_is_zero_device (guestfs_h *g,\n"
30276 "                         const char *device);\n"
30277 "\n"
30278 msgstr ""
30279
30280 #. type: =head2
30281 #: ../src/guestfs-actions.pod:4081
30282 msgid "guestfs_kill_subprocess"
30283 msgstr ""
30284
30285 #. type: verbatim
30286 #: ../src/guestfs-actions.pod:4083
30287 #, no-wrap
30288 msgid ""
30289 " int\n"
30290 " guestfs_kill_subprocess (guestfs_h *g);\n"
30291 "\n"
30292 msgstr ""
30293
30294 #. type: =head2
30295 #: ../src/guestfs-actions.pod:4092
30296 msgid "guestfs_launch"
30297 msgstr ""
30298
30299 #. type: verbatim
30300 #: ../src/guestfs-actions.pod:4094
30301 #, no-wrap
30302 msgid ""
30303 " int\n"
30304 " guestfs_launch (guestfs_h *g);\n"
30305 "\n"
30306 msgstr ""
30307
30308 #. type: =head2
30309 #: ../src/guestfs-actions.pod:4112
30310 msgid "guestfs_lchown"
30311 msgstr ""
30312
30313 #. type: verbatim
30314 #: ../src/guestfs-actions.pod:4114
30315 #, no-wrap
30316 msgid ""
30317 " int\n"
30318 " guestfs_lchown (guestfs_h *g,\n"
30319 "                 int owner,\n"
30320 "                 int group,\n"
30321 "                 const char *path);\n"
30322 "\n"
30323 msgstr ""
30324
30325 #. type: textblock
30326 #: ../src/guestfs-actions.pod:4120
30327 msgid ""
30328 "Change the file owner to C<owner> and group to C<group>.  This is like "
30329 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
30330 "changed, not the target."
30331 msgstr ""
30332
30333 #. type: =head2
30334 #: ../src/guestfs-actions.pod:4132
30335 msgid "guestfs_lgetxattr"
30336 msgstr ""
30337
30338 #. type: verbatim
30339 #: ../src/guestfs-actions.pod:4134
30340 #, no-wrap
30341 msgid ""
30342 " char *\n"
30343 " guestfs_lgetxattr (guestfs_h *g,\n"
30344 "                    const char *path,\n"
30345 "                    const char *name,\n"
30346 "                    size_t *size_r);\n"
30347 "\n"
30348 msgstr ""
30349
30350 #. type: textblock
30351 #: ../src/guestfs-actions.pod:4154
30352 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
30353 msgstr ""
30354
30355 #. type: =head2
30356 #: ../src/guestfs-actions.pod:4162
30357 msgid "guestfs_lgetxattrs"
30358 msgstr ""
30359
30360 #. type: verbatim
30361 #: ../src/guestfs-actions.pod:4164
30362 #, no-wrap
30363 msgid ""
30364 " struct guestfs_xattr_list *\n"
30365 " guestfs_lgetxattrs (guestfs_h *g,\n"
30366 "                     const char *path);\n"
30367 "\n"
30368 msgstr ""
30369
30370 #. type: textblock
30371 #: ../src/guestfs-actions.pod:4168
30372 msgid ""
30373 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
30374 "then it returns the extended attributes of the link itself."
30375 msgstr ""
30376
30377 #. type: =head2
30378 #: ../src/guestfs-actions.pod:4178
30379 msgid "guestfs_list_9p"
30380 msgstr ""
30381
30382 #. type: verbatim
30383 #: ../src/guestfs-actions.pod:4180
30384 #, no-wrap
30385 msgid ""
30386 " char **\n"
30387 " guestfs_list_9p (guestfs_h *g);\n"
30388 "\n"
30389 msgstr ""
30390
30391 #. type: =head2
30392 #: ../src/guestfs-actions.pod:4192
30393 msgid "guestfs_list_devices"
30394 msgstr ""
30395
30396 #. type: verbatim
30397 #: ../src/guestfs-actions.pod:4194
30398 #, no-wrap
30399 msgid ""
30400 " char **\n"
30401 " guestfs_list_devices (guestfs_h *g);\n"
30402 "\n"
30403 msgstr ""
30404
30405 #. type: =head2
30406 #: ../src/guestfs-actions.pod:4209
30407 msgid "guestfs_list_dm_devices"
30408 msgstr ""
30409
30410 #. type: verbatim
30411 #: ../src/guestfs-actions.pod:4211
30412 #, no-wrap
30413 msgid ""
30414 " char **\n"
30415 " guestfs_list_dm_devices (guestfs_h *g);\n"
30416 "\n"
30417 msgstr ""
30418
30419 #. type: textblock
30420 #: ../src/guestfs-actions.pod:4216
30421 msgid ""
30422 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
30423 "previous call to C<guestfs_luks_open>."
30424 msgstr ""
30425
30426 #. type: textblock
30427 #: ../src/guestfs-actions.pod:4219
30428 msgid ""
30429 "Device mapper devices which correspond to logical volumes are I<not> "
30430 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
30431 "volumes."
30432 msgstr ""
30433
30434 #. type: textblock
30435 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5836
30436 msgid "(Added in 1.11.15)"
30437 msgstr ""
30438
30439 #. type: =head2
30440 #: ../src/guestfs-actions.pod:4229
30441 msgid "guestfs_list_filesystems"
30442 msgstr ""
30443
30444 #. type: verbatim
30445 #: ../src/guestfs-actions.pod:4231
30446 #, no-wrap
30447 msgid ""
30448 " char **\n"
30449 " guestfs_list_filesystems (guestfs_h *g);\n"
30450 "\n"
30451 msgstr ""
30452
30453 #. type: textblock
30454 #: ../src/guestfs-actions.pod:4251
30455 msgid ""
30456 "This command runs other libguestfs commands, which might include "
30457 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
30458 "soon after launch and only when nothing is mounted."
30459 msgstr ""
30460
30461 #. type: textblock
30462 #: ../src/guestfs-actions.pod:4255
30463 msgid ""
30464 "Not all of the filesystems returned will be mountable.  In particular, swap "
30465 "partitions are returned in the list.  Also this command does not check that "
30466 "each filesystem found is valid and mountable, and some filesystems might be "
30467 "mountable but require special options.  Filesystems may not all belong to a "
30468 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
30469 msgstr ""
30470
30471 #. type: textblock
30472 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6196
30473 msgid "(Added in 1.5.15)"
30474 msgstr ""
30475
30476 #. type: =head2
30477 #: ../src/guestfs-actions.pod:4271
30478 msgid "guestfs_list_md_devices"
30479 msgstr ""
30480
30481 #. type: verbatim
30482 #: ../src/guestfs-actions.pod:4273
30483 #, no-wrap
30484 msgid ""
30485 " char **\n"
30486 " guestfs_list_md_devices (guestfs_h *g);\n"
30487 "\n"
30488 msgstr ""
30489
30490 #. type: textblock
30491 #: ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:7857
30492 msgid "(Added in 1.15.4)"
30493 msgstr ""
30494
30495 #. type: =head2
30496 #: ../src/guestfs-actions.pod:4284
30497 msgid "guestfs_list_partitions"
30498 msgstr ""
30499
30500 #. type: verbatim
30501 #: ../src/guestfs-actions.pod:4286
30502 #, no-wrap
30503 msgid ""
30504 " char **\n"
30505 " guestfs_list_partitions (guestfs_h *g);\n"
30506 "\n"
30507 msgstr ""
30508
30509 #. type: textblock
30510 #: ../src/guestfs-actions.pod:4293
30511 msgid ""
30512 "This does not return logical volumes.  For that you will need to call "
30513 "C<guestfs_lvs>."
30514 msgstr ""
30515
30516 #. type: =head2
30517 #: ../src/guestfs-actions.pod:4304
30518 msgid "guestfs_ll"
30519 msgstr ""
30520
30521 #. type: verbatim
30522 #: ../src/guestfs-actions.pod:4306
30523 #, no-wrap
30524 msgid ""
30525 " char *\n"
30526 " guestfs_ll (guestfs_h *g,\n"
30527 "             const char *directory);\n"
30528 "\n"
30529 msgstr ""
30530
30531 #. type: =head2
30532 #: ../src/guestfs-actions.pod:4321
30533 msgid "guestfs_ln"
30534 msgstr ""
30535
30536 #. type: verbatim
30537 #: ../src/guestfs-actions.pod:4323
30538 #, no-wrap
30539 msgid ""
30540 " int\n"
30541 " guestfs_ln (guestfs_h *g,\n"
30542 "             const char *target,\n"
30543 "             const char *linkname);\n"
30544 "\n"
30545 msgstr ""
30546
30547 #. type: =head2
30548 #: ../src/guestfs-actions.pod:4334
30549 msgid "guestfs_ln_f"
30550 msgstr ""
30551
30552 #. type: verbatim
30553 #: ../src/guestfs-actions.pod:4336
30554 #, no-wrap
30555 msgid ""
30556 " int\n"
30557 " guestfs_ln_f (guestfs_h *g,\n"
30558 "               const char *target,\n"
30559 "               const char *linkname);\n"
30560 "\n"
30561 msgstr ""
30562
30563 #. type: =head2
30564 #: ../src/guestfs-actions.pod:4348
30565 msgid "guestfs_ln_s"
30566 msgstr ""
30567
30568 #. type: verbatim
30569 #: ../src/guestfs-actions.pod:4350
30570 #, no-wrap
30571 msgid ""
30572 " int\n"
30573 " guestfs_ln_s (guestfs_h *g,\n"
30574 "               const char *target,\n"
30575 "               const char *linkname);\n"
30576 "\n"
30577 msgstr ""
30578
30579 #. type: =head2
30580 #: ../src/guestfs-actions.pod:4361
30581 msgid "guestfs_ln_sf"
30582 msgstr ""
30583
30584 #. type: verbatim
30585 #: ../src/guestfs-actions.pod:4363
30586 #, no-wrap
30587 msgid ""
30588 " int\n"
30589 " guestfs_ln_sf (guestfs_h *g,\n"
30590 "                const char *target,\n"
30591 "                const char *linkname);\n"
30592 "\n"
30593 msgstr ""
30594
30595 #. type: =head2
30596 #: ../src/guestfs-actions.pod:4375
30597 msgid "guestfs_lremovexattr"
30598 msgstr ""
30599
30600 #. type: verbatim
30601 #: ../src/guestfs-actions.pod:4377
30602 #, no-wrap
30603 msgid ""
30604 " int\n"
30605 " guestfs_lremovexattr (guestfs_h *g,\n"
30606 "                       const char *xattr,\n"
30607 "                       const char *path);\n"
30608 "\n"
30609 msgstr ""
30610
30611 #. type: textblock
30612 #: ../src/guestfs-actions.pod:4382
30613 msgid ""
30614 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30615 "link, then it removes an extended attribute of the link itself."
30616 msgstr ""
30617
30618 #. type: =head2
30619 #: ../src/guestfs-actions.pod:4390
30620 msgid "guestfs_ls"
30621 msgstr ""
30622
30623 #. type: verbatim
30624 #: ../src/guestfs-actions.pod:4392
30625 #, no-wrap
30626 msgid ""
30627 " char **\n"
30628 " guestfs_ls (guestfs_h *g,\n"
30629 "             const char *directory);\n"
30630 "\n"
30631 msgstr ""
30632
30633 #. type: textblock
30634 #: ../src/guestfs-actions.pod:4400
30635 msgid ""
30636 "This command is mostly useful for interactive sessions.  Programs should "
30637 "probably use C<guestfs_readdir> instead."
30638 msgstr ""
30639
30640 #. type: =head2
30641 #: ../src/guestfs-actions.pod:4409
30642 msgid "guestfs_lsetxattr"
30643 msgstr ""
30644
30645 #. type: verbatim
30646 #: ../src/guestfs-actions.pod:4411
30647 #, no-wrap
30648 msgid ""
30649 " int\n"
30650 " guestfs_lsetxattr (guestfs_h *g,\n"
30651 "                    const char *xattr,\n"
30652 "                    const char *val,\n"
30653 "                    int vallen,\n"
30654 "                    const char *path);\n"
30655 "\n"
30656 msgstr ""
30657
30658 #. type: textblock
30659 #: ../src/guestfs-actions.pod:4418
30660 msgid ""
30661 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30662 "then it sets an extended attribute of the link itself."
30663 msgstr ""
30664
30665 #. type: =head2
30666 #: ../src/guestfs-actions.pod:4426
30667 msgid "guestfs_lstat"
30668 msgstr ""
30669
30670 #. type: verbatim
30671 #: ../src/guestfs-actions.pod:4428
30672 #, no-wrap
30673 msgid ""
30674 " struct guestfs_stat *\n"
30675 " guestfs_lstat (guestfs_h *g,\n"
30676 "                const char *path);\n"
30677 "\n"
30678 msgstr ""
30679
30680 #. type: textblock
30681 #: ../src/guestfs-actions.pod:4434
30682 msgid ""
30683 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30684 "link, then the link is stat-ed, not the file it refers to."
30685 msgstr ""
30686
30687 #. type: textblock
30688 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:7376
30689 msgid ""
30690 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30691 "error.  I<The caller must call C<guestfs_free_stat> after use>."
30692 msgstr ""
30693
30694 #. type: textblock
30695 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:7380
30696 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7901
30697 msgid "(Added in 0.9.2)"
30698 msgstr ""
30699
30700 #. type: =head2
30701 #: ../src/guestfs-actions.pod:4446
30702 msgid "guestfs_lstatlist"
30703 msgstr ""
30704
30705 #. type: verbatim
30706 #: ../src/guestfs-actions.pod:4448
30707 #, no-wrap
30708 msgid ""
30709 " struct guestfs_stat_list *\n"
30710 " guestfs_lstatlist (guestfs_h *g,\n"
30711 "                    const char *path,\n"
30712 "                    char *const *names);\n"
30713 "\n"
30714 msgstr ""
30715
30716 #. type: textblock
30717 #: ../src/guestfs-actions.pod:4453
30718 msgid ""
30719 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30720 "files, where all files are in the directory C<path>.  C<names> is the list "
30721 "of files from this directory."
30722 msgstr ""
30723
30724 #. type: textblock
30725 #: ../src/guestfs-actions.pod:4462
30726 msgid ""
30727 "This call is intended for programs that want to efficiently list a directory "
30728 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
30729 "for a similarly efficient call for getting extended attributes.  Very long "
30730 "directory listings might cause the protocol message size to be exceeded, "
30731 "causing this call to fail.  The caller must split up such requests into "
30732 "smaller groups of names."
30733 msgstr ""
30734
30735 #. type: textblock
30736 #: ../src/guestfs-actions.pod:4470
30737 msgid ""
30738 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30739 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
30740 msgstr ""
30741
30742 #. type: =head2
30743 #: ../src/guestfs-actions.pod:4476
30744 msgid "guestfs_luks_add_key"
30745 msgstr ""
30746
30747 #. type: verbatim
30748 #: ../src/guestfs-actions.pod:4478
30749 #, no-wrap
30750 msgid ""
30751 " int\n"
30752 " guestfs_luks_add_key (guestfs_h *g,\n"
30753 "                       const char *device,\n"
30754 "                       const char *key,\n"
30755 "                       const char *newkey,\n"
30756 "                       int keyslot);\n"
30757 "\n"
30758 msgstr ""
30759
30760 #. type: textblock
30761 #: ../src/guestfs-actions.pod:4490
30762 msgid ""
30763 "Note that if C<keyslot> already contains a key, then this command will "
30764 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
30765 msgstr ""
30766
30767 #. type: textblock
30768 #: ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:4533
30769 #: ../src/guestfs-actions.pod:4553 ../src/guestfs-actions.pod:4573
30770 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4627
30771 msgid ""
30772 "This function takes a key or passphrase parameter which could contain "
30773 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
30774 "information."
30775 msgstr ""
30776
30777 #. type: textblock
30778 #: ../src/guestfs-actions.pod:4500 ../src/guestfs-actions.pod:4537
30779 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4577
30780 msgid "(Added in 1.5.2)"
30781 msgstr ""
30782
30783 #. type: =head2
30784 #: ../src/guestfs-actions.pod:4502
30785 msgid "guestfs_luks_close"
30786 msgstr ""
30787
30788 #. type: verbatim
30789 #: ../src/guestfs-actions.pod:4504
30790 #, no-wrap
30791 msgid ""
30792 " int\n"
30793 " guestfs_luks_close (guestfs_h *g,\n"
30794 "                     const char *device);\n"
30795 "\n"
30796 msgstr ""
30797
30798 #. type: textblock
30799 #: ../src/guestfs-actions.pod:4508
30800 msgid ""
30801 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30802 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
30803 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30804 "underlying block device."
30805 msgstr ""
30806
30807 #. type: textblock
30808 #: ../src/guestfs-actions.pod:4516 ../src/guestfs-actions.pod:4612
30809 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4681
30810 #: ../src/guestfs-actions.pod:4726
30811 msgid "(Added in 1.5.1)"
30812 msgstr ""
30813
30814 #. type: =head2
30815 #: ../src/guestfs-actions.pod:4518
30816 msgid "guestfs_luks_format"
30817 msgstr ""
30818
30819 #. type: verbatim
30820 #: ../src/guestfs-actions.pod:4520
30821 #, no-wrap
30822 msgid ""
30823 " int\n"
30824 " guestfs_luks_format (guestfs_h *g,\n"
30825 "                      const char *device,\n"
30826 "                      const char *key,\n"
30827 "                      int keyslot);\n"
30828 "\n"
30829 msgstr ""
30830
30831 #. type: =head2
30832 #: ../src/guestfs-actions.pod:4539
30833 msgid "guestfs_luks_format_cipher"
30834 msgstr ""
30835
30836 #. type: verbatim
30837 #: ../src/guestfs-actions.pod:4541
30838 #, no-wrap
30839 msgid ""
30840 " int\n"
30841 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30842 "                             const char *device,\n"
30843 "                             const char *key,\n"
30844 "                             int keyslot,\n"
30845 "                             const char *cipher);\n"
30846 "\n"
30847 msgstr ""
30848
30849 #. type: textblock
30850 #: ../src/guestfs-actions.pod:4548
30851 msgid ""
30852 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30853 "set the C<cipher> used."
30854 msgstr ""
30855
30856 #. type: =head2
30857 #: ../src/guestfs-actions.pod:4559
30858 msgid "guestfs_luks_kill_slot"
30859 msgstr ""
30860
30861 #. type: verbatim
30862 #: ../src/guestfs-actions.pod:4561
30863 #, no-wrap
30864 msgid ""
30865 " int\n"
30866 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30867 "                         const char *device,\n"
30868 "                         const char *key,\n"
30869 "                         int keyslot);\n"
30870 "\n"
30871 msgstr ""
30872
30873 #. type: =head2
30874 #: ../src/guestfs-actions.pod:4579
30875 msgid "guestfs_luks_open"
30876 msgstr ""
30877
30878 #. type: verbatim
30879 #: ../src/guestfs-actions.pod:4581
30880 #, no-wrap
30881 msgid ""
30882 " int\n"
30883 " guestfs_luks_open (guestfs_h *g,\n"
30884 "                    const char *device,\n"
30885 "                    const char *key,\n"
30886 "                    const char *mapname);\n"
30887 "\n"
30888 msgstr ""
30889
30890 #. type: textblock
30891 #: ../src/guestfs-actions.pod:4599
30892 msgid ""
30893 "If this block device contains LVM volume groups, then calling "
30894 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30895 "visible."
30896 msgstr ""
30897
30898 #. type: textblock
30899 #: ../src/guestfs-actions.pod:4603
30900 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30901 msgstr ""
30902
30903 #. type: =head2
30904 #: ../src/guestfs-actions.pod:4614
30905 msgid "guestfs_luks_open_ro"
30906 msgstr ""
30907
30908 #. type: verbatim
30909 #: ../src/guestfs-actions.pod:4616
30910 #, no-wrap
30911 msgid ""
30912 " int\n"
30913 " guestfs_luks_open_ro (guestfs_h *g,\n"
30914 "                       const char *device,\n"
30915 "                       const char *key,\n"
30916 "                       const char *mapname);\n"
30917 "\n"
30918 msgstr ""
30919
30920 #. type: textblock
30921 #: ../src/guestfs-actions.pod:4622
30922 msgid ""
30923 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30924 "created."
30925 msgstr ""
30926
30927 #. type: =head2
30928 #: ../src/guestfs-actions.pod:4633
30929 msgid "guestfs_lvcreate"
30930 msgstr ""
30931
30932 #. type: verbatim
30933 #: ../src/guestfs-actions.pod:4635
30934 #, no-wrap
30935 msgid ""
30936 " int\n"
30937 " guestfs_lvcreate (guestfs_h *g,\n"
30938 "                   const char *logvol,\n"
30939 "                   const char *volgroup,\n"
30940 "                   int mbytes);\n"
30941 "\n"
30942 msgstr ""
30943
30944 #. type: =head2
30945 #: ../src/guestfs-actions.pod:4648
30946 msgid "guestfs_lvm_canonical_lv_name"
30947 msgstr ""
30948
30949 #. type: verbatim
30950 #: ../src/guestfs-actions.pod:4650
30951 #, no-wrap
30952 msgid ""
30953 " char *\n"
30954 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30955 "                                const char *lvname);\n"
30956 "\n"
30957 msgstr ""
30958
30959 #. type: textblock
30960 #: ../src/guestfs-actions.pod:4661
30961 msgid "See also C<guestfs_is_lv>."
30962 msgstr ""
30963
30964 #. type: textblock
30965 #: ../src/guestfs-actions.pod:4666
30966 msgid "(Added in 1.5.24)"
30967 msgstr ""
30968
30969 #. type: =head2
30970 #: ../src/guestfs-actions.pod:4668
30971 msgid "guestfs_lvm_clear_filter"
30972 msgstr ""
30973
30974 #. type: verbatim
30975 #: ../src/guestfs-actions.pod:4670
30976 #, no-wrap
30977 msgid ""
30978 " int\n"
30979 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30980 "\n"
30981 msgstr ""
30982
30983 #. type: textblock
30984 #: ../src/guestfs-actions.pod:4673
30985 msgid ""
30986 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
30987 "see every block device."
30988 msgstr ""
30989
30990 #. type: =head2
30991 #: ../src/guestfs-actions.pod:4683
30992 msgid "guestfs_lvm_remove_all"
30993 msgstr ""
30994
30995 #. type: verbatim
30996 #: ../src/guestfs-actions.pod:4685
30997 #, no-wrap
30998 msgid ""
30999 " int\n"
31000 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31001 "\n"
31002 msgstr ""
31003
31004 #. type: =head2
31005 #: ../src/guestfs-actions.pod:4695
31006 msgid "guestfs_lvm_set_filter"
31007 msgstr ""
31008
31009 #. type: verbatim
31010 #: ../src/guestfs-actions.pod:4697
31011 #, no-wrap
31012 msgid ""
31013 " int\n"
31014 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31015 "                         char *const *devices);\n"
31016 "\n"
31017 msgstr ""
31018
31019 #. type: =head2
31020 #: ../src/guestfs-actions.pod:4728
31021 msgid "guestfs_lvremove"
31022 msgstr ""
31023
31024 #. type: verbatim
31025 #: ../src/guestfs-actions.pod:4730
31026 #, no-wrap
31027 msgid ""
31028 " int\n"
31029 " guestfs_lvremove (guestfs_h *g,\n"
31030 "                   const char *device);\n"
31031 "\n"
31032 msgstr ""
31033
31034 #. type: textblock
31035 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:6311
31036 #: ../src/guestfs-actions.pod:8271
31037 msgid "(Added in 1.0.13)"
31038 msgstr ""
31039
31040 #. type: =head2
31041 #: ../src/guestfs-actions.pod:4744
31042 msgid "guestfs_lvrename"
31043 msgstr ""
31044
31045 #. type: verbatim
31046 #: ../src/guestfs-actions.pod:4746
31047 #, no-wrap
31048 msgid ""
31049 " int\n"
31050 " guestfs_lvrename (guestfs_h *g,\n"
31051 "                   const char *logvol,\n"
31052 "                   const char *newlogvol);\n"
31053 "\n"
31054 msgstr ""
31055
31056 #. type: textblock
31057 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:8284
31058 msgid "(Added in 1.0.83)"
31059 msgstr ""
31060
31061 #. type: =head2
31062 #: ../src/guestfs-actions.pod:4757
31063 msgid "guestfs_lvresize"
31064 msgstr ""
31065
31066 #. type: verbatim
31067 #: ../src/guestfs-actions.pod:4759
31068 #, no-wrap
31069 msgid ""
31070 " int\n"
31071 " guestfs_lvresize (guestfs_h *g,\n"
31072 "                   const char *device,\n"
31073 "                   int mbytes);\n"
31074 "\n"
31075 msgstr ""
31076
31077 #. type: =head2
31078 #: ../src/guestfs-actions.pod:4772
31079 msgid "guestfs_lvresize_free"
31080 msgstr ""
31081
31082 #. type: verbatim
31083 #: ../src/guestfs-actions.pod:4774
31084 #, no-wrap
31085 msgid ""
31086 " int\n"
31087 " guestfs_lvresize_free (guestfs_h *g,\n"
31088 "                        const char *lv,\n"
31089 "                        int percent);\n"
31090 "\n"
31091 msgstr ""
31092
31093 #. type: textblock
31094 #: ../src/guestfs-actions.pod:4787
31095 msgid "(Added in 1.3.3)"
31096 msgstr ""
31097
31098 #. type: =head2
31099 #: ../src/guestfs-actions.pod:4789
31100 msgid "guestfs_lvs"
31101 msgstr ""
31102
31103 #. type: verbatim
31104 #: ../src/guestfs-actions.pod:4791
31105 #, no-wrap
31106 msgid ""
31107 " char **\n"
31108 " guestfs_lvs (guestfs_h *g);\n"
31109 "\n"
31110 msgstr ""
31111
31112 #. type: textblock
31113 #: ../src/guestfs-actions.pod:4800
31114 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
31115 msgstr ""
31116
31117 #. type: =head2
31118 #: ../src/guestfs-actions.pod:4808
31119 msgid "guestfs_lvs_full"
31120 msgstr ""
31121
31122 #. type: verbatim
31123 #: ../src/guestfs-actions.pod:4810
31124 #, no-wrap
31125 msgid ""
31126 " struct guestfs_lvm_lv_list *\n"
31127 " guestfs_lvs_full (guestfs_h *g);\n"
31128 "\n"
31129 msgstr ""
31130
31131 #. type: textblock
31132 #: ../src/guestfs-actions.pod:4816
31133 msgid ""
31134 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
31135 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
31136 msgstr ""
31137
31138 #. type: =head2
31139 #: ../src/guestfs-actions.pod:4822
31140 msgid "guestfs_lvuuid"
31141 msgstr ""
31142
31143 #. type: verbatim
31144 #: ../src/guestfs-actions.pod:4824
31145 #, no-wrap
31146 msgid ""
31147 " char *\n"
31148 " guestfs_lvuuid (guestfs_h *g,\n"
31149 "                 const char *device);\n"
31150 "\n"
31151 msgstr ""
31152
31153 #. type: =head2
31154 #: ../src/guestfs-actions.pod:4835
31155 msgid "guestfs_lxattrlist"
31156 msgstr ""
31157
31158 #. type: verbatim
31159 #: ../src/guestfs-actions.pod:4837
31160 #, no-wrap
31161 msgid ""
31162 " struct guestfs_xattr_list *\n"
31163 " guestfs_lxattrlist (guestfs_h *g,\n"
31164 "                     const char *path,\n"
31165 "                     char *const *names);\n"
31166 "\n"
31167 msgstr ""
31168
31169 #. type: textblock
31170 #: ../src/guestfs-actions.pod:4856
31171 msgid ""
31172 "This call is intended for programs that want to efficiently list a directory "
31173 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
31174 "a similarly efficient call for getting standard stats.  Very long directory "
31175 "listings might cause the protocol message size to be exceeded, causing this "
31176 "call to fail.  The caller must split up such requests into smaller groups of "
31177 "names."
31178 msgstr ""
31179
31180 #. type: =head2
31181 #: ../src/guestfs-actions.pod:4870
31182 msgid "guestfs_md_create"
31183 msgstr ""
31184
31185 #. type: verbatim
31186 #: ../src/guestfs-actions.pod:4872
31187 #, no-wrap
31188 msgid ""
31189 " int\n"
31190 " guestfs_md_create (guestfs_h *g,\n"
31191 "                    const char *name,\n"
31192 "                    char *const *devices,\n"
31193 "                    ...);\n"
31194 "\n"
31195 msgstr ""
31196
31197 #. type: verbatim
31198 #: ../src/guestfs-actions.pod:4883
31199 #, no-wrap
31200 msgid ""
31201 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
31202 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
31203 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
31204 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
31205 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
31206 "\n"
31207 msgstr ""
31208
31209 #. type: =head2
31210 #: ../src/guestfs-actions.pod:4945
31211 msgid "guestfs_md_create_va"
31212 msgstr ""
31213
31214 #. type: verbatim
31215 #: ../src/guestfs-actions.pod:4947
31216 #, no-wrap
31217 msgid ""
31218 " int\n"
31219 " guestfs_md_create_va (guestfs_h *g,\n"
31220 "                       const char *name,\n"
31221 "                       char *const *devices,\n"
31222 "                       va_list args);\n"
31223 "\n"
31224 msgstr ""
31225
31226 #. type: textblock
31227 #: ../src/guestfs-actions.pod:4953
31228 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
31229 msgstr ""
31230
31231 #. type: =head2
31232 #: ../src/guestfs-actions.pod:4957
31233 msgid "guestfs_md_create_argv"
31234 msgstr ""
31235
31236 #. type: verbatim
31237 #: ../src/guestfs-actions.pod:4959
31238 #, no-wrap
31239 msgid ""
31240 " int\n"
31241 " guestfs_md_create_argv (guestfs_h *g,\n"
31242 "                         const char *name,\n"
31243 "                         char *const *devices,\n"
31244 "                         const struct guestfs_md_create_argv *optargs);\n"
31245 "\n"
31246 msgstr ""
31247
31248 #. type: textblock
31249 #: ../src/guestfs-actions.pod:4965
31250 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
31251 msgstr ""
31252
31253 #. type: =head2
31254 #: ../src/guestfs-actions.pod:4969
31255 msgid "guestfs_md_detail"
31256 msgstr ""
31257
31258 #. type: verbatim
31259 #: ../src/guestfs-actions.pod:4971
31260 #, no-wrap
31261 msgid ""
31262 " char **\n"
31263 " guestfs_md_detail (guestfs_h *g,\n"
31264 "                    const char *md);\n"
31265 "\n"
31266 msgstr ""
31267
31268 #. type: =head2
31269 #: ../src/guestfs-actions.pod:5008
31270 msgid "guestfs_md_stop"
31271 msgstr ""
31272
31273 #. type: verbatim
31274 #: ../src/guestfs-actions.pod:5010
31275 #, no-wrap
31276 msgid ""
31277 " int\n"
31278 " guestfs_md_stop (guestfs_h *g,\n"
31279 "                  const char *md);\n"
31280 "\n"
31281 msgstr ""
31282
31283 #. type: =head2
31284 #: ../src/guestfs-actions.pod:5029
31285 msgid "guestfs_mkdir"
31286 msgstr ""
31287
31288 #. type: verbatim
31289 #: ../src/guestfs-actions.pod:5031
31290 #, no-wrap
31291 msgid ""
31292 " int\n"
31293 " guestfs_mkdir (guestfs_h *g,\n"
31294 "                const char *path);\n"
31295 "\n"
31296 msgstr ""
31297
31298 #. type: =head2
31299 #: ../src/guestfs-actions.pod:5041
31300 msgid "guestfs_mkdir_mode"
31301 msgstr ""
31302
31303 #. type: verbatim
31304 #: ../src/guestfs-actions.pod:5043
31305 #, no-wrap
31306 msgid ""
31307 " int\n"
31308 " guestfs_mkdir_mode (guestfs_h *g,\n"
31309 "                     const char *path,\n"
31310 "                     int mode);\n"
31311 "\n"
31312 msgstr ""
31313
31314 #. type: textblock
31315 #: ../src/guestfs-actions.pod:5055
31316 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
31317 msgstr ""
31318
31319 #. type: =head2
31320 #: ../src/guestfs-actions.pod:5061
31321 msgid "guestfs_mkdir_p"
31322 msgstr ""
31323
31324 #. type: verbatim
31325 #: ../src/guestfs-actions.pod:5063
31326 #, no-wrap
31327 msgid ""
31328 " int\n"
31329 " guestfs_mkdir_p (guestfs_h *g,\n"
31330 "                  const char *path);\n"
31331 "\n"
31332 msgstr ""
31333
31334 #. type: =head2
31335 #: ../src/guestfs-actions.pod:5074
31336 msgid "guestfs_mkdtemp"
31337 msgstr ""
31338
31339 #. type: verbatim
31340 #: ../src/guestfs-actions.pod:5076
31341 #, no-wrap
31342 msgid ""
31343 " char *\n"
31344 " guestfs_mkdtemp (guestfs_h *g,\n"
31345 "                  const char *template);\n"
31346 "\n"
31347 msgstr ""
31348
31349 #. type: =head2
31350 #: ../src/guestfs-actions.pod:5104
31351 msgid "guestfs_mke2fs_J"
31352 msgstr ""
31353
31354 #. type: verbatim
31355 #: ../src/guestfs-actions.pod:5106
31356 #, no-wrap
31357 msgid ""
31358 " int\n"
31359 " guestfs_mke2fs_J (guestfs_h *g,\n"
31360 "                   const char *fstype,\n"
31361 "                   int blocksize,\n"
31362 "                   const char *device,\n"
31363 "                   const char *journal);\n"
31364 "\n"
31365 msgstr ""
31366
31367 #. type: textblock
31368 #: ../src/guestfs-actions.pod:5119
31369 msgid "See also C<guestfs_mke2journal>."
31370 msgstr ""
31371
31372 #. type: textblock
31373 #: ../src/guestfs-actions.pod:5123 ../src/guestfs-actions.pod:5141
31374 #: ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5175
31375 #: ../src/guestfs-actions.pod:5189 ../src/guestfs-actions.pod:5203
31376 #: ../src/guestfs-actions.pod:5262 ../src/guestfs-actions.pod:5539
31377 msgid "(Added in 1.0.68)"
31378 msgstr ""
31379
31380 #. type: =head2
31381 #: ../src/guestfs-actions.pod:5125
31382 msgid "guestfs_mke2fs_JL"
31383 msgstr ""
31384
31385 #. type: verbatim
31386 #: ../src/guestfs-actions.pod:5127
31387 #, no-wrap
31388 msgid ""
31389 " int\n"
31390 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31391 "                    const char *fstype,\n"
31392 "                    int blocksize,\n"
31393 "                    const char *device,\n"
31394 "                    const char *label);\n"
31395 "\n"
31396 msgstr ""
31397
31398 #. type: textblock
31399 #: ../src/guestfs-actions.pod:5137
31400 msgid "See also C<guestfs_mke2journal_L>."
31401 msgstr ""
31402
31403 #. type: =head2
31404 #: ../src/guestfs-actions.pod:5143
31405 msgid "guestfs_mke2fs_JU"
31406 msgstr ""
31407
31408 #. type: verbatim
31409 #: ../src/guestfs-actions.pod:5145
31410 #, no-wrap
31411 msgid ""
31412 " int\n"
31413 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31414 "                    const char *fstype,\n"
31415 "                    int blocksize,\n"
31416 "                    const char *device,\n"
31417 "                    const char *uuid);\n"
31418 "\n"
31419 msgstr ""
31420
31421 #. type: textblock
31422 #: ../src/guestfs-actions.pod:5155
31423 msgid "See also C<guestfs_mke2journal_U>."
31424 msgstr ""
31425
31426 #. type: =head2
31427 #: ../src/guestfs-actions.pod:5161
31428 msgid "guestfs_mke2journal"
31429 msgstr ""
31430
31431 #. type: verbatim
31432 #: ../src/guestfs-actions.pod:5163
31433 #, no-wrap
31434 msgid ""
31435 " int\n"
31436 " guestfs_mke2journal (guestfs_h *g,\n"
31437 "                      int blocksize,\n"
31438 "                      const char *device);\n"
31439 "\n"
31440 msgstr ""
31441
31442 #. type: =head2
31443 #: ../src/guestfs-actions.pod:5177
31444 msgid "guestfs_mke2journal_L"
31445 msgstr ""
31446
31447 #. type: verbatim
31448 #: ../src/guestfs-actions.pod:5179
31449 #, no-wrap
31450 msgid ""
31451 " int\n"
31452 " guestfs_mke2journal_L (guestfs_h *g,\n"
31453 "                        int blocksize,\n"
31454 "                        const char *label,\n"
31455 "                        const char *device);\n"
31456 "\n"
31457 msgstr ""
31458
31459 #. type: =head2
31460 #: ../src/guestfs-actions.pod:5191
31461 msgid "guestfs_mke2journal_U"
31462 msgstr ""
31463
31464 #. type: verbatim
31465 #: ../src/guestfs-actions.pod:5193
31466 #, no-wrap
31467 msgid ""
31468 " int\n"
31469 " guestfs_mke2journal_U (guestfs_h *g,\n"
31470 "                        int blocksize,\n"
31471 "                        const char *uuid,\n"
31472 "                        const char *device);\n"
31473 "\n"
31474 msgstr ""
31475
31476 #. type: =head2
31477 #: ../src/guestfs-actions.pod:5205
31478 msgid "guestfs_mkfifo"
31479 msgstr ""
31480
31481 #. type: verbatim
31482 #: ../src/guestfs-actions.pod:5207
31483 #, no-wrap
31484 msgid ""
31485 " int\n"
31486 " guestfs_mkfifo (guestfs_h *g,\n"
31487 "                 int mode,\n"
31488 "                 const char *path);\n"
31489 "\n"
31490 msgstr ""
31491
31492 #. type: textblock
31493 #: ../src/guestfs-actions.pod:5212
31494 msgid ""
31495 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
31496 "is just a convenient wrapper around C<guestfs_mknod>."
31497 msgstr ""
31498
31499 #. type: =head2
31500 #: ../src/guestfs-actions.pod:5222
31501 msgid "guestfs_mkfs"
31502 msgstr ""
31503
31504 #. type: verbatim
31505 #: ../src/guestfs-actions.pod:5224
31506 #, no-wrap
31507 msgid ""
31508 " int\n"
31509 " guestfs_mkfs (guestfs_h *g,\n"
31510 "               const char *fstype,\n"
31511 "               const char *device);\n"
31512 "\n"
31513 msgstr ""
31514
31515 #. type: =head2
31516 #: ../src/guestfs-actions.pod:5237
31517 msgid "guestfs_mkfs_b"
31518 msgstr ""
31519
31520 #. type: verbatim
31521 #: ../src/guestfs-actions.pod:5239
31522 #, no-wrap
31523 msgid ""
31524 " int\n"
31525 " guestfs_mkfs_b (guestfs_h *g,\n"
31526 "                 const char *fstype,\n"
31527 "                 int blocksize,\n"
31528 "                 const char *device);\n"
31529 "\n"
31530 msgstr ""
31531
31532 #. type: textblock
31533 #: ../src/guestfs-actions.pod:5245
31534 msgid ""
31535 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31536 "call instead."
31537 msgstr ""
31538
31539 #. type: textblock
31540 #: ../src/guestfs-actions.pod:5252
31541 msgid ""
31542 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31543 "block size of the resulting filesystem.  Supported block sizes depend on the "
31544 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31545 msgstr ""
31546
31547 #. type: =head2
31548 #: ../src/guestfs-actions.pod:5264
31549 msgid "guestfs_mkfs_opts"
31550 msgstr ""
31551
31552 #. type: verbatim
31553 #: ../src/guestfs-actions.pod:5266
31554 #, no-wrap
31555 msgid ""
31556 " int\n"
31557 " guestfs_mkfs_opts (guestfs_h *g,\n"
31558 "                    const char *fstype,\n"
31559 "                    const char *device,\n"
31560 "                    ...);\n"
31561 "\n"
31562 msgstr ""
31563
31564 #. type: verbatim
31565 #: ../src/guestfs-actions.pod:5277
31566 #, no-wrap
31567 msgid ""
31568 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31569 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31570 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31571 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31572 "\n"
31573 msgstr ""
31574
31575 #. type: textblock
31576 #: ../src/guestfs-actions.pod:5325
31577 msgid "(Added in 1.7.19)"
31578 msgstr ""
31579
31580 #. type: =head2
31581 #: ../src/guestfs-actions.pod:5327
31582 msgid "guestfs_mkfs_opts_va"
31583 msgstr ""
31584
31585 #. type: verbatim
31586 #: ../src/guestfs-actions.pod:5329
31587 #, no-wrap
31588 msgid ""
31589 " int\n"
31590 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31591 "                       const char *fstype,\n"
31592 "                       const char *device,\n"
31593 "                       va_list args);\n"
31594 "\n"
31595 msgstr ""
31596
31597 #. type: textblock
31598 #: ../src/guestfs-actions.pod:5335
31599 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31600 msgstr ""
31601
31602 #. type: =head2
31603 #: ../src/guestfs-actions.pod:5339
31604 msgid "guestfs_mkfs_opts_argv"
31605 msgstr ""
31606
31607 #. type: verbatim
31608 #: ../src/guestfs-actions.pod:5341
31609 #, no-wrap
31610 msgid ""
31611 " int\n"
31612 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31613 "                         const char *fstype,\n"
31614 "                         const char *device,\n"
31615 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31616 "\n"
31617 msgstr ""
31618
31619 #. type: textblock
31620 #: ../src/guestfs-actions.pod:5347
31621 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31622 msgstr ""
31623
31624 #. type: =head2
31625 #: ../src/guestfs-actions.pod:5351
31626 msgid "guestfs_mkmountpoint"
31627 msgstr ""
31628
31629 #. type: verbatim
31630 #: ../src/guestfs-actions.pod:5353
31631 #, no-wrap
31632 msgid ""
31633 " int\n"
31634 " guestfs_mkmountpoint (guestfs_h *g,\n"
31635 "                       const char *exemptpath);\n"
31636 "\n"
31637 msgstr ""
31638
31639 #. type: textblock
31640 #: ../src/guestfs-actions.pod:5357
31641 msgid ""
31642 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31643 "that can be used to create extra mountpoints before mounting the first "
31644 "filesystem."
31645 msgstr ""
31646
31647 #. type: textblock
31648 #: ../src/guestfs-actions.pod:5381
31649 msgid ""
31650 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
31651 "may get unexpected errors if you try to mix these calls.  It is safest to "
31652 "manually unmount filesystems and remove mountpoints after use."
31653 msgstr ""
31654
31655 #. type: textblock
31656 #: ../src/guestfs-actions.pod:5385
31657 msgid ""
31658 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31659 "first, so for this to work for manual mountpoints, you must ensure that the "
31660 "innermost mountpoints have the longest pathnames, as in the example code "
31661 "above."
31662 msgstr ""
31663
31664 #. type: textblock
31665 #: ../src/guestfs-actions.pod:5392
31666 msgid ""
31667 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31668 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31669 "can also trigger these issues."
31670 msgstr ""
31671
31672 #. type: textblock
31673 #: ../src/guestfs-actions.pod:5398 ../src/guestfs-actions.pod:5704
31674 #: ../src/guestfs-actions.pod:6731
31675 msgid "(Added in 1.0.62)"
31676 msgstr ""
31677
31678 #. type: =head2
31679 #: ../src/guestfs-actions.pod:5400
31680 msgid "guestfs_mknod"
31681 msgstr ""
31682
31683 #. type: verbatim
31684 #: ../src/guestfs-actions.pod:5402
31685 #, no-wrap
31686 msgid ""
31687 " int\n"
31688 " guestfs_mknod (guestfs_h *g,\n"
31689 "                int mode,\n"
31690 "                int devmajor,\n"
31691 "                int devminor,\n"
31692 "                const char *path);\n"
31693 "\n"
31694 msgstr ""
31695
31696 #. type: textblock
31697 #: ../src/guestfs-actions.pod:5417
31698 msgid ""
31699 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31700 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31701 "regular file).  These constants are available in the standard Linux header "
31702 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31703 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31704 "the appropriate constant for you."
31705 msgstr ""
31706
31707 #. type: =head2
31708 #: ../src/guestfs-actions.pod:5431
31709 msgid "guestfs_mknod_b"
31710 msgstr ""
31711
31712 #. type: verbatim
31713 #: ../src/guestfs-actions.pod:5433
31714 #, no-wrap
31715 msgid ""
31716 " int\n"
31717 " guestfs_mknod_b (guestfs_h *g,\n"
31718 "                  int mode,\n"
31719 "                  int devmajor,\n"
31720 "                  int devminor,\n"
31721 "                  const char *path);\n"
31722 "\n"
31723 msgstr ""
31724
31725 #. type: textblock
31726 #: ../src/guestfs-actions.pod:5440
31727 msgid ""
31728 "This call creates a block device node called C<path> with mode C<mode> and "
31729 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31730 "wrapper around C<guestfs_mknod>."
31731 msgstr ""
31732
31733 #. type: =head2
31734 #: ../src/guestfs-actions.pod:5450
31735 msgid "guestfs_mknod_c"
31736 msgstr ""
31737
31738 #. type: verbatim
31739 #: ../src/guestfs-actions.pod:5452
31740 #, no-wrap
31741 msgid ""
31742 " int\n"
31743 " guestfs_mknod_c (guestfs_h *g,\n"
31744 "                  int mode,\n"
31745 "                  int devmajor,\n"
31746 "                  int devminor,\n"
31747 "                  const char *path);\n"
31748 "\n"
31749 msgstr ""
31750
31751 #. type: textblock
31752 #: ../src/guestfs-actions.pod:5459
31753 msgid ""
31754 "This call creates a char device node called C<path> with mode C<mode> and "
31755 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31756 "wrapper around C<guestfs_mknod>."
31757 msgstr ""
31758
31759 #. type: =head2
31760 #: ../src/guestfs-actions.pod:5469
31761 msgid "guestfs_mkswap"
31762 msgstr ""
31763
31764 #. type: verbatim
31765 #: ../src/guestfs-actions.pod:5471
31766 #, no-wrap
31767 msgid ""
31768 " int\n"
31769 " guestfs_mkswap (guestfs_h *g,\n"
31770 "                 const char *device);\n"
31771 "\n"
31772 msgstr ""
31773
31774 #. type: =head2
31775 #: ../src/guestfs-actions.pod:5481
31776 msgid "guestfs_mkswap_L"
31777 msgstr ""
31778
31779 #. type: verbatim
31780 #: ../src/guestfs-actions.pod:5483
31781 #, no-wrap
31782 msgid ""
31783 " int\n"
31784 " guestfs_mkswap_L (guestfs_h *g,\n"
31785 "                   const char *label,\n"
31786 "                   const char *device);\n"
31787 "\n"
31788 msgstr ""
31789
31790 #. type: =head2
31791 #: ../src/guestfs-actions.pod:5498
31792 msgid "guestfs_mkswap_U"
31793 msgstr ""
31794
31795 #. type: verbatim
31796 #: ../src/guestfs-actions.pod:5500
31797 #, no-wrap
31798 msgid ""
31799 " int\n"
31800 " guestfs_mkswap_U (guestfs_h *g,\n"
31801 "                   const char *uuid,\n"
31802 "                   const char *device);\n"
31803 "\n"
31804 msgstr ""
31805
31806 #. type: =head2
31807 #: ../src/guestfs-actions.pod:5511
31808 msgid "guestfs_mkswap_file"
31809 msgstr ""
31810
31811 #. type: verbatim
31812 #: ../src/guestfs-actions.pod:5513
31813 #, no-wrap
31814 msgid ""
31815 " int\n"
31816 " guestfs_mkswap_file (guestfs_h *g,\n"
31817 "                      const char *path);\n"
31818 "\n"
31819 msgstr ""
31820
31821 #. type: textblock
31822 #: ../src/guestfs-actions.pod:5519
31823 msgid ""
31824 "This command just writes a swap file signature to an existing file.  To "
31825 "create the file itself, use something like C<guestfs_fallocate>."
31826 msgstr ""
31827
31828 #. type: =head2
31829 #: ../src/guestfs-actions.pod:5526
31830 msgid "guestfs_modprobe"
31831 msgstr ""
31832
31833 #. type: verbatim
31834 #: ../src/guestfs-actions.pod:5528
31835 #, no-wrap
31836 msgid ""
31837 " int\n"
31838 " guestfs_modprobe (guestfs_h *g,\n"
31839 "                   const char *modulename);\n"
31840 "\n"
31841 msgstr ""
31842
31843 #. type: =head2
31844 #: ../src/guestfs-actions.pod:5541
31845 msgid "guestfs_mount"
31846 msgstr ""
31847
31848 #. type: verbatim
31849 #: ../src/guestfs-actions.pod:5543
31850 #, no-wrap
31851 msgid ""
31852 " int\n"
31853 " guestfs_mount (guestfs_h *g,\n"
31854 "                const char *device,\n"
31855 "                const char *mountpoint);\n"
31856 "\n"
31857 msgstr ""
31858
31859 #. type: textblock
31860 #: ../src/guestfs-actions.pod:5562
31861 msgid ""
31862 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31863 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
31864 "problems for users.  If your program might need to work with older versions "
31865 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31866 "for the first parameter if you don't want any options)."
31867 msgstr ""
31868
31869 #. type: =head2
31870 #: ../src/guestfs-actions.pod:5573
31871 msgid "guestfs_mount_9p"
31872 msgstr ""
31873
31874 #. type: verbatim
31875 #: ../src/guestfs-actions.pod:5575
31876 #, no-wrap
31877 msgid ""
31878 " int\n"
31879 " guestfs_mount_9p (guestfs_h *g,\n"
31880 "                   const char *mounttag,\n"
31881 "                   const char *mountpoint,\n"
31882 "                   ...);\n"
31883 "\n"
31884 msgstr ""
31885
31886 #. type: verbatim
31887 #: ../src/guestfs-actions.pod:5586
31888 #, no-wrap
31889 msgid ""
31890 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31891 "\n"
31892 msgstr ""
31893
31894 #. type: =head2
31895 #: ../src/guestfs-actions.pod:5599
31896 msgid "guestfs_mount_9p_va"
31897 msgstr ""
31898
31899 #. type: verbatim
31900 #: ../src/guestfs-actions.pod:5601
31901 #, no-wrap
31902 msgid ""
31903 " int\n"
31904 " guestfs_mount_9p_va (guestfs_h *g,\n"
31905 "                      const char *mounttag,\n"
31906 "                      const char *mountpoint,\n"
31907 "                      va_list args);\n"
31908 "\n"
31909 msgstr ""
31910
31911 #. type: textblock
31912 #: ../src/guestfs-actions.pod:5607
31913 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31914 msgstr ""
31915
31916 #. type: =head2
31917 #: ../src/guestfs-actions.pod:5611
31918 msgid "guestfs_mount_9p_argv"
31919 msgstr ""
31920
31921 #. type: verbatim
31922 #: ../src/guestfs-actions.pod:5613
31923 #, no-wrap
31924 msgid ""
31925 " int\n"
31926 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31927 "                        const char *mounttag,\n"
31928 "                        const char *mountpoint,\n"
31929 "                        const struct guestfs_mount_9p_argv *optargs);\n"
31930 "\n"
31931 msgstr ""
31932
31933 #. type: textblock
31934 #: ../src/guestfs-actions.pod:5619
31935 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31936 msgstr ""
31937
31938 #. type: =head2
31939 #: ../src/guestfs-actions.pod:5623
31940 msgid "guestfs_mount_loop"
31941 msgstr ""
31942
31943 #. type: verbatim
31944 #: ../src/guestfs-actions.pod:5625
31945 #, no-wrap
31946 msgid ""
31947 " int\n"
31948 " guestfs_mount_loop (guestfs_h *g,\n"
31949 "                     const char *file,\n"
31950 "                     const char *mountpoint);\n"
31951 "\n"
31952 msgstr ""
31953
31954 #. type: =head2
31955 #: ../src/guestfs-actions.pod:5638
31956 msgid "guestfs_mount_options"
31957 msgstr ""
31958
31959 #. type: verbatim
31960 #: ../src/guestfs-actions.pod:5640
31961 #, no-wrap
31962 msgid ""
31963 " int\n"
31964 " guestfs_mount_options (guestfs_h *g,\n"
31965 "                        const char *options,\n"
31966 "                        const char *device,\n"
31967 "                        const char *mountpoint);\n"
31968 "\n"
31969 msgstr ""
31970
31971 #. type: textblock
31972 #: ../src/guestfs-actions.pod:5646
31973 msgid ""
31974 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31975 "the mount options as for the L<mount(8)> I<-o> flag."
31976 msgstr ""
31977
31978 #. type: textblock
31979 #: ../src/guestfs-actions.pod:5656 ../src/guestfs-actions.pod:5670
31980 #: ../src/guestfs-actions.pod:5687
31981 msgid "(Added in 1.0.10)"
31982 msgstr ""
31983
31984 #. type: =head2
31985 #: ../src/guestfs-actions.pod:5658
31986 msgid "guestfs_mount_ro"
31987 msgstr ""
31988
31989 #. type: verbatim
31990 #: ../src/guestfs-actions.pod:5660
31991 #, no-wrap
31992 msgid ""
31993 " int\n"
31994 " guestfs_mount_ro (guestfs_h *g,\n"
31995 "                   const char *device,\n"
31996 "                   const char *mountpoint);\n"
31997 "\n"
31998 msgstr ""
31999
32000 #. type: textblock
32001 #: ../src/guestfs-actions.pod:5665
32002 msgid ""
32003 "This is the same as the C<guestfs_mount> command, but it mounts the "
32004 "filesystem with the read-only (I<-o ro>) flag."
32005 msgstr ""
32006
32007 #. type: =head2
32008 #: ../src/guestfs-actions.pod:5672
32009 msgid "guestfs_mount_vfs"
32010 msgstr ""
32011
32012 #. type: verbatim
32013 #: ../src/guestfs-actions.pod:5674
32014 #, no-wrap
32015 msgid ""
32016 " int\n"
32017 " guestfs_mount_vfs (guestfs_h *g,\n"
32018 "                    const char *options,\n"
32019 "                    const char *vfstype,\n"
32020 "                    const char *device,\n"
32021 "                    const char *mountpoint);\n"
32022 "\n"
32023 msgstr ""
32024
32025 #. type: textblock
32026 #: ../src/guestfs-actions.pod:5681
32027 msgid ""
32028 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32029 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
32030 "t> flags."
32031 msgstr ""
32032
32033 #. type: =head2
32034 #: ../src/guestfs-actions.pod:5689
32035 msgid "guestfs_mountpoints"
32036 msgstr ""
32037
32038 #. type: verbatim
32039 #: ../src/guestfs-actions.pod:5691
32040 #, no-wrap
32041 msgid ""
32042 " char **\n"
32043 " guestfs_mountpoints (guestfs_h *g);\n"
32044 "\n"
32045 msgstr ""
32046
32047 #. type: textblock
32048 #: ../src/guestfs-actions.pod:5694
32049 msgid ""
32050 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
32051 "devices.  This one returns a hash table (map) of device name to directory "
32052 "where the device is mounted."
32053 msgstr ""
32054
32055 #. type: =head2
32056 #: ../src/guestfs-actions.pod:5706
32057 msgid "guestfs_mounts"
32058 msgstr ""
32059
32060 #. type: verbatim
32061 #: ../src/guestfs-actions.pod:5708
32062 #, no-wrap
32063 msgid ""
32064 " char **\n"
32065 " guestfs_mounts (guestfs_h *g);\n"
32066 "\n"
32067 msgstr ""
32068
32069 #. type: textblock
32070 #: ../src/guestfs-actions.pod:5716
32071 msgid "See also: C<guestfs_mountpoints>"
32072 msgstr ""
32073
32074 #. type: =head2
32075 #: ../src/guestfs-actions.pod:5724
32076 msgid "guestfs_mv"
32077 msgstr ""
32078
32079 #. type: verbatim
32080 #: ../src/guestfs-actions.pod:5726
32081 #, no-wrap
32082 msgid ""
32083 " int\n"
32084 " guestfs_mv (guestfs_h *g,\n"
32085 "             const char *src,\n"
32086 "             const char *dest);\n"
32087 "\n"
32088 msgstr ""
32089
32090 #. type: =head2
32091 #: ../src/guestfs-actions.pod:5738
32092 msgid "guestfs_ntfs_3g_probe"
32093 msgstr ""
32094
32095 #. type: verbatim
32096 #: ../src/guestfs-actions.pod:5740
32097 #, no-wrap
32098 msgid ""
32099 " int\n"
32100 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
32101 "                        int rw,\n"
32102 "                        const char *device);\n"
32103 "\n"
32104 msgstr ""
32105
32106 #. type: textblock
32107 #: ../src/guestfs-actions.pod:5759
32108 msgid "(Added in 1.0.43)"
32109 msgstr ""
32110
32111 #. type: =head2
32112 #: ../src/guestfs-actions.pod:5761
32113 msgid "guestfs_ntfsresize"
32114 msgstr ""
32115
32116 #. type: verbatim
32117 #: ../src/guestfs-actions.pod:5763
32118 #, no-wrap
32119 msgid ""
32120 " int\n"
32121 " guestfs_ntfsresize (guestfs_h *g,\n"
32122 "                     const char *device);\n"
32123 "\n"
32124 msgstr ""
32125
32126 #. type: textblock
32127 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5867
32128 msgid ""
32129 "I<This function is deprecated.> In new code, use the L</"
32130 "guestfs_ntfsresize_opts> call instead."
32131 msgstr ""
32132
32133 #. type: =head2
32134 #: ../src/guestfs-actions.pod:5791
32135 msgid "guestfs_ntfsresize_opts"
32136 msgstr ""
32137
32138 #. type: verbatim
32139 #: ../src/guestfs-actions.pod:5793
32140 #, no-wrap
32141 msgid ""
32142 " int\n"
32143 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
32144 "                          const char *device,\n"
32145 "                          ...);\n"
32146 "\n"
32147 msgstr ""
32148
32149 #. type: verbatim
32150 #: ../src/guestfs-actions.pod:5803
32151 #, no-wrap
32152 msgid ""
32153 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
32154 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
32155 "\n"
32156 msgstr ""
32157
32158 #. type: textblock
32159 #: ../src/guestfs-actions.pod:5823
32160 msgid ""
32161 "After the resize operation, the filesystem is always marked as requiring a "
32162 "consistency check (for safety).  You have to boot into Windows to perform "
32163 "this check and clear this condition.  If you I<don't> set the C<force> "
32164 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
32165 "times on a single filesystem without booting into Windows between each "
32166 "resize."
32167 msgstr ""
32168
32169 #. type: =head2
32170 #: ../src/guestfs-actions.pod:5838
32171 msgid "guestfs_ntfsresize_opts_va"
32172 msgstr ""
32173
32174 #. type: verbatim
32175 #: ../src/guestfs-actions.pod:5840
32176 #, no-wrap
32177 msgid ""
32178 " int\n"
32179 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
32180 "                             const char *device,\n"
32181 "                             va_list args);\n"
32182 "\n"
32183 msgstr ""
32184
32185 #. type: textblock
32186 #: ../src/guestfs-actions.pod:5845
32187 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
32188 msgstr ""
32189
32190 #. type: =head2
32191 #: ../src/guestfs-actions.pod:5849
32192 msgid "guestfs_ntfsresize_opts_argv"
32193 msgstr ""
32194
32195 #. type: verbatim
32196 #: ../src/guestfs-actions.pod:5851
32197 #, no-wrap
32198 msgid ""
32199 " int\n"
32200 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
32201 "                               const char *device,\n"
32202 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
32203 "\n"
32204 msgstr ""
32205
32206 #. type: textblock
32207 #: ../src/guestfs-actions.pod:5856
32208 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
32209 msgstr ""
32210
32211 #. type: =head2
32212 #: ../src/guestfs-actions.pod:5860
32213 msgid "guestfs_ntfsresize_size"
32214 msgstr ""
32215
32216 #. type: verbatim
32217 #: ../src/guestfs-actions.pod:5862
32218 #, no-wrap
32219 msgid ""
32220 " int\n"
32221 " guestfs_ntfsresize_size (guestfs_h *g,\n"
32222 "                          const char *device,\n"
32223 "                          int64_t size);\n"
32224 "\n"
32225 msgstr ""
32226
32227 #. type: textblock
32228 #: ../src/guestfs-actions.pod:5874
32229 msgid ""
32230 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
32231 "to specify the new size (in bytes) explicitly."
32232 msgstr ""
32233
32234 #. type: textblock
32235 #: ../src/guestfs-actions.pod:5879 ../src/guestfs-actions.pod:6338
32236 #: ../src/guestfs-actions.pod:6411 ../src/guestfs-actions.pod:6679
32237 #: ../src/guestfs-actions.pod:8428
32238 msgid "(Added in 1.3.14)"
32239 msgstr ""
32240
32241 #. type: =head2
32242 #: ../src/guestfs-actions.pod:5881
32243 msgid "guestfs_part_add"
32244 msgstr ""
32245
32246 #. type: verbatim
32247 #: ../src/guestfs-actions.pod:5883
32248 #, no-wrap
32249 msgid ""
32250 " int\n"
32251 " guestfs_part_add (guestfs_h *g,\n"
32252 "                   const char *device,\n"
32253 "                   const char *prlogex,\n"
32254 "                   int64_t startsect,\n"
32255 "                   int64_t endsect);\n"
32256 "\n"
32257 msgstr ""
32258
32259 #. type: textblock
32260 #: ../src/guestfs-actions.pod:5890
32261 msgid ""
32262 "This command adds a partition to C<device>.  If there is no partition table "
32263 "on the device, call C<guestfs_part_init> first."
32264 msgstr ""
32265
32266 #. type: textblock
32267 #: ../src/guestfs-actions.pod:5902
32268 msgid ""
32269 "Creating a partition which covers the whole disk is not so easy.  Use "
32270 "C<guestfs_part_disk> to do that."
32271 msgstr ""
32272
32273 #. type: textblock
32274 #: ../src/guestfs-actions.pod:5907 ../src/guestfs-actions.pod:5942
32275 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6079
32276 #: ../src/guestfs-actions.pod:6117 ../src/guestfs-actions.pod:6136
32277 #: ../src/guestfs-actions.pod:6176
32278 msgid "(Added in 1.0.78)"
32279 msgstr ""
32280
32281 #. type: =head2
32282 #: ../src/guestfs-actions.pod:5909
32283 msgid "guestfs_part_del"
32284 msgstr ""
32285
32286 #. type: verbatim
32287 #: ../src/guestfs-actions.pod:5911
32288 #, no-wrap
32289 msgid ""
32290 " int\n"
32291 " guestfs_part_del (guestfs_h *g,\n"
32292 "                   const char *device,\n"
32293 "                   int partnum);\n"
32294 "\n"
32295 msgstr ""
32296
32297 #. type: =head2
32298 #: ../src/guestfs-actions.pod:5926
32299 msgid "guestfs_part_disk"
32300 msgstr ""
32301
32302 #. type: verbatim
32303 #: ../src/guestfs-actions.pod:5928
32304 #, no-wrap
32305 msgid ""
32306 " int\n"
32307 " guestfs_part_disk (guestfs_h *g,\n"
32308 "                    const char *device,\n"
32309 "                    const char *parttype);\n"
32310 "\n"
32311 msgstr ""
32312
32313 #. type: textblock
32314 #: ../src/guestfs-actions.pod:5933
32315 msgid ""
32316 "This command is simply a combination of C<guestfs_part_init> followed by "
32317 "C<guestfs_part_add> to create a single primary partition covering the whole "
32318 "disk."
32319 msgstr ""
32320
32321 #. type: textblock
32322 #: ../src/guestfs-actions.pod:5937
32323 msgid ""
32324 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
32325 "possible values are described in C<guestfs_part_init>."
32326 msgstr ""
32327
32328 #. type: =head2
32329 #: ../src/guestfs-actions.pod:5944
32330 msgid "guestfs_part_get_bootable"
32331 msgstr ""
32332
32333 #. type: verbatim
32334 #: ../src/guestfs-actions.pod:5946
32335 #, no-wrap
32336 msgid ""
32337 " int\n"
32338 " guestfs_part_get_bootable (guestfs_h *g,\n"
32339 "                            const char *device,\n"
32340 "                            int partnum);\n"
32341 "\n"
32342 msgstr ""
32343
32344 #. type: textblock
32345 #: ../src/guestfs-actions.pod:5954
32346 msgid "See also C<guestfs_part_set_bootable>."
32347 msgstr ""
32348
32349 #. type: =head2
32350 #: ../src/guestfs-actions.pod:5960
32351 msgid "guestfs_part_get_mbr_id"
32352 msgstr ""
32353
32354 #. type: verbatim
32355 #: ../src/guestfs-actions.pod:5962
32356 #, no-wrap
32357 msgid ""
32358 " int\n"
32359 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32360 "                          const char *device,\n"
32361 "                          int partnum);\n"
32362 "\n"
32363 msgstr ""
32364
32365 #. type: textblock
32366 #: ../src/guestfs-actions.pod:5970 ../src/guestfs-actions.pod:6152
32367 msgid ""
32368 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
32369 "undefined results for other partition table types (see "
32370 "C<guestfs_part_get_parttype>)."
32371 msgstr ""
32372
32373 #. type: =head2
32374 #: ../src/guestfs-actions.pod:5978
32375 msgid "guestfs_part_get_parttype"
32376 msgstr ""
32377
32378 #. type: verbatim
32379 #: ../src/guestfs-actions.pod:5980
32380 #, no-wrap
32381 msgid ""
32382 " char *\n"
32383 " guestfs_part_get_parttype (guestfs_h *g,\n"
32384 "                            const char *device);\n"
32385 "\n"
32386 msgstr ""
32387
32388 #. type: textblock
32389 #: ../src/guestfs-actions.pod:5987
32390 msgid ""
32391 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32392 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
32393 "possible, although unusual.  See C<guestfs_part_init> for a full list."
32394 msgstr ""
32395
32396 #. type: =head2
32397 #: ../src/guestfs-actions.pod:5997
32398 msgid "guestfs_part_init"
32399 msgstr ""
32400
32401 #. type: verbatim
32402 #: ../src/guestfs-actions.pod:5999
32403 #, no-wrap
32404 msgid ""
32405 " int\n"
32406 " guestfs_part_init (guestfs_h *g,\n"
32407 "                    const char *device,\n"
32408 "                    const char *parttype);\n"
32409 "\n"
32410 msgstr ""
32411
32412 #. type: textblock
32413 #: ../src/guestfs-actions.pod:6008
32414 msgid ""
32415 "Initially there are no partitions.  Following this, you should call "
32416 "C<guestfs_part_add> for each partition required."
32417 msgstr ""
32418
32419 #. type: =head2
32420 #: ../src/guestfs-actions.pod:6081
32421 msgid "guestfs_part_list"
32422 msgstr ""
32423
32424 #. type: verbatim
32425 #: ../src/guestfs-actions.pod:6083
32426 #, no-wrap
32427 msgid ""
32428 " struct guestfs_partition_list *\n"
32429 " guestfs_part_list (guestfs_h *g,\n"
32430 "                    const char *device);\n"
32431 "\n"
32432 msgstr ""
32433
32434 #. type: textblock
32435 #: ../src/guestfs-actions.pod:6100
32436 msgid ""
32437 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
32438 "the device's sector size, see C<guestfs_blockdev_getss>."
32439 msgstr ""
32440
32441 #. type: textblock
32442 #: ../src/guestfs-actions.pod:6113
32443 msgid ""
32444 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32445 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
32446 "use>."
32447 msgstr ""
32448
32449 #. type: =head2
32450 #: ../src/guestfs-actions.pod:6119
32451 msgid "guestfs_part_set_bootable"
32452 msgstr ""
32453
32454 #. type: verbatim
32455 #: ../src/guestfs-actions.pod:6121
32456 #, no-wrap
32457 msgid ""
32458 " int\n"
32459 " guestfs_part_set_bootable (guestfs_h *g,\n"
32460 "                            const char *device,\n"
32461 "                            int partnum,\n"
32462 "                            int bootable);\n"
32463 "\n"
32464 msgstr ""
32465
32466 #. type: =head2
32467 #: ../src/guestfs-actions.pod:6138
32468 msgid "guestfs_part_set_mbr_id"
32469 msgstr ""
32470
32471 #. type: verbatim
32472 #: ../src/guestfs-actions.pod:6140
32473 #, no-wrap
32474 msgid ""
32475 " int\n"
32476 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32477 "                          const char *device,\n"
32478 "                          int partnum,\n"
32479 "                          int idbyte);\n"
32480 "\n"
32481 msgstr ""
32482
32483 #. type: =head2
32484 #: ../src/guestfs-actions.pod:6160
32485 msgid "guestfs_part_set_name"
32486 msgstr ""
32487
32488 #. type: verbatim
32489 #: ../src/guestfs-actions.pod:6162
32490 #, no-wrap
32491 msgid ""
32492 " int\n"
32493 " guestfs_part_set_name (guestfs_h *g,\n"
32494 "                        const char *device,\n"
32495 "                        int partnum,\n"
32496 "                        const char *name);\n"
32497 "\n"
32498 msgstr ""
32499
32500 #. type: =head2
32501 #: ../src/guestfs-actions.pod:6178
32502 msgid "guestfs_part_to_dev"
32503 msgstr ""
32504
32505 #. type: verbatim
32506 #: ../src/guestfs-actions.pod:6180
32507 #, no-wrap
32508 msgid ""
32509 " char *\n"
32510 " guestfs_part_to_dev (guestfs_h *g,\n"
32511 "                      const char *partition);\n"
32512 "\n"
32513 msgstr ""
32514
32515 #. type: textblock
32516 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6207
32517 msgid ""
32518 "The named partition must exist, for example as a string returned from "
32519 "C<guestfs_list_partitions>."
32520 msgstr ""
32521
32522 #. type: textblock
32523 #: ../src/guestfs-actions.pod:6191
32524 msgid "See also C<guestfs_part_to_partnum>."
32525 msgstr ""
32526
32527 #. type: =head2
32528 #: ../src/guestfs-actions.pod:6198
32529 msgid "guestfs_part_to_partnum"
32530 msgstr ""
32531
32532 #. type: verbatim
32533 #: ../src/guestfs-actions.pod:6200
32534 #, no-wrap
32535 msgid ""
32536 " int\n"
32537 " guestfs_part_to_partnum (guestfs_h *g,\n"
32538 "                          const char *partition);\n"
32539 "\n"
32540 msgstr ""
32541
32542 #. type: textblock
32543 #: ../src/guestfs-actions.pod:6210
32544 msgid "See also C<guestfs_part_to_dev>."
32545 msgstr ""
32546
32547 #. type: =head2
32548 #: ../src/guestfs-actions.pod:6216
32549 msgid "guestfs_ping_daemon"
32550 msgstr ""
32551
32552 #. type: verbatim
32553 #: ../src/guestfs-actions.pod:6218
32554 #, no-wrap
32555 msgid ""
32556 " int\n"
32557 " guestfs_ping_daemon (guestfs_h *g);\n"
32558 "\n"
32559 msgstr ""
32560
32561 #. type: =head2
32562 #: ../src/guestfs-actions.pod:6230
32563 msgid "guestfs_pread"
32564 msgstr ""
32565
32566 #. type: verbatim
32567 #: ../src/guestfs-actions.pod:6232
32568 #, no-wrap
32569 msgid ""
32570 " char *\n"
32571 " guestfs_pread (guestfs_h *g,\n"
32572 "                const char *path,\n"
32573 "                int count,\n"
32574 "                int64_t offset,\n"
32575 "                size_t *size_r);\n"
32576 "\n"
32577 msgstr ""
32578
32579 #. type: textblock
32580 #: ../src/guestfs-actions.pod:6245
32581 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32582 msgstr ""
32583
32584 #. type: =head2
32585 #: ../src/guestfs-actions.pod:6256
32586 msgid "guestfs_pread_device"
32587 msgstr ""
32588
32589 #. type: verbatim
32590 #: ../src/guestfs-actions.pod:6258
32591 #, no-wrap
32592 msgid ""
32593 " char *\n"
32594 " guestfs_pread_device (guestfs_h *g,\n"
32595 "                       const char *device,\n"
32596 "                       int count,\n"
32597 "                       int64_t offset,\n"
32598 "                       size_t *size_r);\n"
32599 "\n"
32600 msgstr ""
32601
32602 #. type: textblock
32603 #: ../src/guestfs-actions.pod:6271
32604 msgid "See also C<guestfs_pread>."
32605 msgstr ""
32606
32607 #. type: textblock
32608 #: ../src/guestfs-actions.pod:6280
32609 msgid "(Added in 1.5.21)"
32610 msgstr ""
32611
32612 #. type: =head2
32613 #: ../src/guestfs-actions.pod:6282
32614 msgid "guestfs_pvcreate"
32615 msgstr ""
32616
32617 #. type: verbatim
32618 #: ../src/guestfs-actions.pod:6284
32619 #, no-wrap
32620 msgid ""
32621 " int\n"
32622 " guestfs_pvcreate (guestfs_h *g,\n"
32623 "                   const char *device);\n"
32624 "\n"
32625 msgstr ""
32626
32627 #. type: =head2
32628 #: ../src/guestfs-actions.pod:6296
32629 msgid "guestfs_pvremove"
32630 msgstr ""
32631
32632 #. type: verbatim
32633 #: ../src/guestfs-actions.pod:6298
32634 #, no-wrap
32635 msgid ""
32636 " int\n"
32637 " guestfs_pvremove (guestfs_h *g,\n"
32638 "                   const char *device);\n"
32639 "\n"
32640 msgstr ""
32641
32642 #. type: =head2
32643 #: ../src/guestfs-actions.pod:6313
32644 msgid "guestfs_pvresize"
32645 msgstr ""
32646
32647 #. type: verbatim
32648 #: ../src/guestfs-actions.pod:6315
32649 #, no-wrap
32650 msgid ""
32651 " int\n"
32652 " guestfs_pvresize (guestfs_h *g,\n"
32653 "                   const char *device);\n"
32654 "\n"
32655 msgstr ""
32656
32657 #. type: =head2
32658 #: ../src/guestfs-actions.pod:6326
32659 msgid "guestfs_pvresize_size"
32660 msgstr ""
32661
32662 #. type: verbatim
32663 #: ../src/guestfs-actions.pod:6328
32664 #, no-wrap
32665 msgid ""
32666 " int\n"
32667 " guestfs_pvresize_size (guestfs_h *g,\n"
32668 "                        const char *device,\n"
32669 "                        int64_t size);\n"
32670 "\n"
32671 msgstr ""
32672
32673 #. type: textblock
32674 #: ../src/guestfs-actions.pod:6333
32675 msgid ""
32676 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32677 "specify the new size (in bytes) explicitly."
32678 msgstr ""
32679
32680 #. type: =head2
32681 #: ../src/guestfs-actions.pod:6340
32682 msgid "guestfs_pvs"
32683 msgstr ""
32684
32685 #. type: verbatim
32686 #: ../src/guestfs-actions.pod:6342
32687 #, no-wrap
32688 msgid ""
32689 " char **\n"
32690 " guestfs_pvs (guestfs_h *g);\n"
32691 "\n"
32692 msgstr ""
32693
32694 #. type: textblock
32695 #: ../src/guestfs-actions.pod:6351
32696 msgid "See also C<guestfs_pvs_full>."
32697 msgstr ""
32698
32699 #. type: =head2
32700 #: ../src/guestfs-actions.pod:6359
32701 msgid "guestfs_pvs_full"
32702 msgstr ""
32703
32704 #. type: verbatim
32705 #: ../src/guestfs-actions.pod:6361
32706 #, no-wrap
32707 msgid ""
32708 " struct guestfs_lvm_pv_list *\n"
32709 " guestfs_pvs_full (guestfs_h *g);\n"
32710 "\n"
32711 msgstr ""
32712
32713 #. type: textblock
32714 #: ../src/guestfs-actions.pod:6367
32715 msgid ""
32716 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32717 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32718 msgstr ""
32719
32720 #. type: =head2
32721 #: ../src/guestfs-actions.pod:6373
32722 msgid "guestfs_pvuuid"
32723 msgstr ""
32724
32725 #. type: verbatim
32726 #: ../src/guestfs-actions.pod:6375
32727 #, no-wrap
32728 msgid ""
32729 " char *\n"
32730 " guestfs_pvuuid (guestfs_h *g,\n"
32731 "                 const char *device);\n"
32732 "\n"
32733 msgstr ""
32734
32735 #. type: =head2
32736 #: ../src/guestfs-actions.pod:6386
32737 msgid "guestfs_pwrite"
32738 msgstr ""
32739
32740 #. type: verbatim
32741 #: ../src/guestfs-actions.pod:6388
32742 #, no-wrap
32743 msgid ""
32744 " int\n"
32745 " guestfs_pwrite (guestfs_h *g,\n"
32746 "                 const char *path,\n"
32747 "                 const char *content,\n"
32748 "                 size_t content_size,\n"
32749 "                 int64_t offset);\n"
32750 "\n"
32751 msgstr ""
32752
32753 #. type: textblock
32754 #: ../src/guestfs-actions.pod:6404
32755 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32756 msgstr ""
32757
32758 #. type: =head2
32759 #: ../src/guestfs-actions.pod:6413
32760 msgid "guestfs_pwrite_device"
32761 msgstr ""
32762
32763 #. type: verbatim
32764 #: ../src/guestfs-actions.pod:6415
32765 #, no-wrap
32766 msgid ""
32767 " int\n"
32768 " guestfs_pwrite_device (guestfs_h *g,\n"
32769 "                        const char *device,\n"
32770 "                        const char *content,\n"
32771 "                        size_t content_size,\n"
32772 "                        int64_t offset);\n"
32773 "\n"
32774 msgstr ""
32775
32776 #. type: textblock
32777 #: ../src/guestfs-actions.pod:6430
32778 msgid "See also C<guestfs_pwrite>."
32779 msgstr ""
32780
32781 #. type: textblock
32782 #: ../src/guestfs-actions.pod:6437
32783 msgid "(Added in 1.5.20)"
32784 msgstr ""
32785
32786 #. type: =head2
32787 #: ../src/guestfs-actions.pod:6439
32788 msgid "guestfs_read_file"
32789 msgstr ""
32790
32791 #. type: verbatim
32792 #: ../src/guestfs-actions.pod:6441
32793 #, no-wrap
32794 msgid ""
32795 " char *\n"
32796 " guestfs_read_file (guestfs_h *g,\n"
32797 "                    const char *path,\n"
32798 "                    size_t *size_r);\n"
32799 "\n"
32800 msgstr ""
32801
32802 #. type: textblock
32803 #: ../src/guestfs-actions.pod:6449
32804 msgid ""
32805 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32806 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
32807 "function is limited in the total size of file that can be handled."
32808 msgstr ""
32809
32810 #. type: textblock
32811 #: ../src/guestfs-actions.pod:6461
32812 msgid "(Added in 1.0.63)"
32813 msgstr ""
32814
32815 #. type: =head2
32816 #: ../src/guestfs-actions.pod:6463
32817 msgid "guestfs_read_lines"
32818 msgstr ""
32819
32820 #. type: verbatim
32821 #: ../src/guestfs-actions.pod:6465
32822 #, no-wrap
32823 msgid ""
32824 " char **\n"
32825 " guestfs_read_lines (guestfs_h *g,\n"
32826 "                     const char *path);\n"
32827 "\n"
32828 msgstr ""
32829
32830 #. type: textblock
32831 #: ../src/guestfs-actions.pod:6474
32832 msgid ""
32833 "Note that this function cannot correctly handle binary files (specifically, "
32834 "files containing C<\\0> character which is treated as end of line).  For "
32835 "those you need to use the C<guestfs_read_file> function which has a more "
32836 "complex interface."
32837 msgstr ""
32838
32839 #. type: =head2
32840 #: ../src/guestfs-actions.pod:6485
32841 msgid "guestfs_readdir"
32842 msgstr ""
32843
32844 #. type: verbatim
32845 #: ../src/guestfs-actions.pod:6487
32846 #, no-wrap
32847 msgid ""
32848 " struct guestfs_dirent_list *\n"
32849 " guestfs_readdir (guestfs_h *g,\n"
32850 "                  const char *dir);\n"
32851 "\n"
32852 msgstr ""
32853
32854 #. type: textblock
32855 #: ../src/guestfs-actions.pod:6541
32856 msgid ""
32857 "This function is primarily intended for use by programs.  To get a simple "
32858 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
32859 "consumption, use C<guestfs_ll>."
32860 msgstr ""
32861
32862 #. type: textblock
32863 #: ../src/guestfs-actions.pod:6545
32864 msgid ""
32865 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32866 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
32867 msgstr ""
32868
32869 #. type: =head2
32870 #: ../src/guestfs-actions.pod:6551
32871 msgid "guestfs_readlink"
32872 msgstr ""
32873
32874 #. type: verbatim
32875 #: ../src/guestfs-actions.pod:6553
32876 #, no-wrap
32877 msgid ""
32878 " char *\n"
32879 " guestfs_readlink (guestfs_h *g,\n"
32880 "                   const char *path);\n"
32881 "\n"
32882 msgstr ""
32883
32884 #. type: =head2
32885 #: ../src/guestfs-actions.pod:6564
32886 msgid "guestfs_readlinklist"
32887 msgstr ""
32888
32889 #. type: verbatim
32890 #: ../src/guestfs-actions.pod:6566
32891 #, no-wrap
32892 msgid ""
32893 " char **\n"
32894 " guestfs_readlinklist (guestfs_h *g,\n"
32895 "                       const char *path,\n"
32896 "                       char *const *names);\n"
32897 "\n"
32898 msgstr ""
32899
32900 #. type: =head2
32901 #: ../src/guestfs-actions.pod:6599
32902 msgid "guestfs_realpath"
32903 msgstr ""
32904
32905 #. type: verbatim
32906 #: ../src/guestfs-actions.pod:6601
32907 #, no-wrap
32908 msgid ""
32909 " char *\n"
32910 " guestfs_realpath (guestfs_h *g,\n"
32911 "                   const char *path);\n"
32912 "\n"
32913 msgstr ""
32914
32915 #. type: =head2
32916 #: ../src/guestfs-actions.pod:6613
32917 msgid "guestfs_removexattr"
32918 msgstr ""
32919
32920 #. type: verbatim
32921 #: ../src/guestfs-actions.pod:6615
32922 #, no-wrap
32923 msgid ""
32924 " int\n"
32925 " guestfs_removexattr (guestfs_h *g,\n"
32926 "                      const char *xattr,\n"
32927 "                      const char *path);\n"
32928 "\n"
32929 msgstr ""
32930
32931 #. type: textblock
32932 #: ../src/guestfs-actions.pod:6623
32933 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32934 msgstr ""
32935
32936 #. type: =head2
32937 #: ../src/guestfs-actions.pod:6629
32938 msgid "guestfs_resize2fs"
32939 msgstr ""
32940
32941 #. type: verbatim
32942 #: ../src/guestfs-actions.pod:6631
32943 #, no-wrap
32944 msgid ""
32945 " int\n"
32946 " guestfs_resize2fs (guestfs_h *g,\n"
32947 "                    const char *device);\n"
32948 "\n"
32949 msgstr ""
32950
32951 #. type: textblock
32952 #: ../src/guestfs-actions.pod:6638
32953 msgid ""
32954 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32955 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
32956 "sometimes gives an error about this and sometimes not.  In any case, it is "
32957 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32958 msgstr ""
32959
32960 #. type: =head2
32961 #: ../src/guestfs-actions.pod:6648
32962 msgid "guestfs_resize2fs_M"
32963 msgstr ""
32964
32965 #. type: verbatim
32966 #: ../src/guestfs-actions.pod:6650
32967 #, no-wrap
32968 msgid ""
32969 " int\n"
32970 " guestfs_resize2fs_M (guestfs_h *g,\n"
32971 "                      const char *device);\n"
32972 "\n"
32973 msgstr ""
32974
32975 #. type: textblock
32976 #: ../src/guestfs-actions.pod:6654
32977 msgid ""
32978 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32979 "resized to its minimum size.  This works like the I<-M> option to the "
32980 "C<resize2fs> command."
32981 msgstr ""
32982
32983 #. type: textblock
32984 #: ../src/guestfs-actions.pod:6658
32985 msgid ""
32986 "To get the resulting size of the filesystem you should call "
32987 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
32988 "These two numbers, multiplied together, give the resulting size of the "
32989 "minimal filesystem in bytes."
32990 msgstr ""
32991
32992 #. type: =head2
32993 #: ../src/guestfs-actions.pod:6667
32994 msgid "guestfs_resize2fs_size"
32995 msgstr ""
32996
32997 #. type: verbatim
32998 #: ../src/guestfs-actions.pod:6669
32999 #, no-wrap
33000 msgid ""
33001 " int\n"
33002 " guestfs_resize2fs_size (guestfs_h *g,\n"
33003 "                         const char *device,\n"
33004 "                         int64_t size);\n"
33005 "\n"
33006 msgstr ""
33007
33008 #. type: textblock
33009 #: ../src/guestfs-actions.pod:6674
33010 msgid ""
33011 "This command is the same as C<guestfs_resize2fs> except that it allows you "
33012 "to specify the new size (in bytes) explicitly."
33013 msgstr ""
33014
33015 #. type: =head2
33016 #: ../src/guestfs-actions.pod:6681
33017 msgid "guestfs_rm"
33018 msgstr ""
33019
33020 #. type: verbatim
33021 #: ../src/guestfs-actions.pod:6683
33022 #, no-wrap
33023 msgid ""
33024 " int\n"
33025 " guestfs_rm (guestfs_h *g,\n"
33026 "             const char *path);\n"
33027 "\n"
33028 msgstr ""
33029
33030 #. type: =head2
33031 #: ../src/guestfs-actions.pod:6693
33032 msgid "guestfs_rm_rf"
33033 msgstr ""
33034
33035 #. type: verbatim
33036 #: ../src/guestfs-actions.pod:6695
33037 #, no-wrap
33038 msgid ""
33039 " int\n"
33040 " guestfs_rm_rf (guestfs_h *g,\n"
33041 "                const char *path);\n"
33042 "\n"
33043 msgstr ""
33044
33045 #. type: =head2
33046 #: ../src/guestfs-actions.pod:6707
33047 msgid "guestfs_rmdir"
33048 msgstr ""
33049
33050 #. type: verbatim
33051 #: ../src/guestfs-actions.pod:6709
33052 #, no-wrap
33053 msgid ""
33054 " int\n"
33055 " guestfs_rmdir (guestfs_h *g,\n"
33056 "                const char *path);\n"
33057 "\n"
33058 msgstr ""
33059
33060 #. type: =head2
33061 #: ../src/guestfs-actions.pod:6719
33062 msgid "guestfs_rmmountpoint"
33063 msgstr ""
33064
33065 #. type: verbatim
33066 #: ../src/guestfs-actions.pod:6721
33067 #, no-wrap
33068 msgid ""
33069 " int\n"
33070 " guestfs_rmmountpoint (guestfs_h *g,\n"
33071 "                       const char *exemptpath);\n"
33072 "\n"
33073 msgstr ""
33074
33075 #. type: textblock
33076 #: ../src/guestfs-actions.pod:6725
33077 msgid ""
33078 "This calls removes a mountpoint that was previously created with "
33079 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
33080 msgstr ""
33081
33082 #. type: =head2
33083 #: ../src/guestfs-actions.pod:6733
33084 msgid "guestfs_scrub_device"
33085 msgstr ""
33086
33087 #. type: verbatim
33088 #: ../src/guestfs-actions.pod:6735
33089 #, no-wrap
33090 msgid ""
33091 " int\n"
33092 " guestfs_scrub_device (guestfs_h *g,\n"
33093 "                       const char *device);\n"
33094 "\n"
33095 msgstr ""
33096
33097 #. type: textblock
33098 #: ../src/guestfs-actions.pod:6747 ../src/guestfs-actions.pod:6765
33099 #: ../src/guestfs-actions.pod:6784
33100 msgid "(Added in 1.0.52)"
33101 msgstr ""
33102
33103 #. type: =head2
33104 #: ../src/guestfs-actions.pod:6749
33105 msgid "guestfs_scrub_file"
33106 msgstr ""
33107
33108 #. type: verbatim
33109 #: ../src/guestfs-actions.pod:6751
33110 #, no-wrap
33111 msgid ""
33112 " int\n"
33113 " guestfs_scrub_file (guestfs_h *g,\n"
33114 "                     const char *file);\n"
33115 "\n"
33116 msgstr ""
33117
33118 #. type: =head2
33119 #: ../src/guestfs-actions.pod:6767
33120 msgid "guestfs_scrub_freespace"
33121 msgstr ""
33122
33123 #. type: verbatim
33124 #: ../src/guestfs-actions.pod:6769
33125 #, no-wrap
33126 msgid ""
33127 " int\n"
33128 " guestfs_scrub_freespace (guestfs_h *g,\n"
33129 "                          const char *dir);\n"
33130 "\n"
33131 msgstr ""
33132
33133 #. type: textblock
33134 #: ../src/guestfs-actions.pod:6773
33135 msgid ""
33136 "This command creates the directory C<dir> and then fills it with files until "
33137 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
33138 "and deletes them.  The intention is to scrub any free space on the partition "
33139 "containing C<dir>."
33140 msgstr ""
33141
33142 #. type: =head2
33143 #: ../src/guestfs-actions.pod:6786
33144 msgid "guestfs_set_append"
33145 msgstr ""
33146
33147 #. type: verbatim
33148 #: ../src/guestfs-actions.pod:6788
33149 #, no-wrap
33150 msgid ""
33151 " int\n"
33152 " guestfs_set_append (guestfs_h *g,\n"
33153 "                     const char *append);\n"
33154 "\n"
33155 msgstr ""
33156
33157 #. type: =head2
33158 #: ../src/guestfs-actions.pod:6805
33159 msgid "guestfs_set_attach_method"
33160 msgstr ""
33161
33162 #. type: verbatim
33163 #: ../src/guestfs-actions.pod:6807
33164 #, no-wrap
33165 msgid ""
33166 " int\n"
33167 " guestfs_set_attach_method (guestfs_h *g,\n"
33168 "                            const char *attachmethod);\n"
33169 "\n"
33170 msgstr ""
33171
33172 #. type: =head2
33173 #: ../src/guestfs-actions.pod:6835
33174 msgid "guestfs_set_autosync"
33175 msgstr ""
33176
33177 #. type: verbatim
33178 #: ../src/guestfs-actions.pod:6837
33179 #, no-wrap
33180 msgid ""
33181 " int\n"
33182 " guestfs_set_autosync (guestfs_h *g,\n"
33183 "                       int autosync);\n"
33184 "\n"
33185 msgstr ""
33186
33187 #. type: =head2
33188 #: ../src/guestfs-actions.pod:6853
33189 msgid "guestfs_set_direct"
33190 msgstr ""
33191
33192 #. type: verbatim
33193 #: ../src/guestfs-actions.pod:6855
33194 #, no-wrap
33195 msgid ""
33196 " int\n"
33197 " guestfs_set_direct (guestfs_h *g,\n"
33198 "                     int direct);\n"
33199 "\n"
33200 msgstr ""
33201
33202 #. type: textblock
33203 #: ../src/guestfs-actions.pod:6863
33204 msgid ""
33205 "One consequence of this is that log messages aren't caught by the library "
33206 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
33207 "stdout."
33208 msgstr ""
33209
33210 #. type: =head2
33211 #: ../src/guestfs-actions.pod:6876
33212 msgid "guestfs_set_e2label"
33213 msgstr ""
33214
33215 #. type: verbatim
33216 #: ../src/guestfs-actions.pod:6878
33217 #, no-wrap
33218 msgid ""
33219 " int\n"
33220 " guestfs_set_e2label (guestfs_h *g,\n"
33221 "                      const char *device,\n"
33222 "                      const char *label);\n"
33223 "\n"
33224 msgstr ""
33225
33226 #. type: textblock
33227 #: ../src/guestfs-actions.pod:6887
33228 msgid ""
33229 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
33230 "the existing label on a filesystem."
33231 msgstr ""
33232
33233 #. type: =head2
33234 #: ../src/guestfs-actions.pod:6894
33235 msgid "guestfs_set_e2uuid"
33236 msgstr ""
33237
33238 #. type: verbatim
33239 #: ../src/guestfs-actions.pod:6896
33240 #, no-wrap
33241 msgid ""
33242 " int\n"
33243 " guestfs_set_e2uuid (guestfs_h *g,\n"
33244 "                     const char *device,\n"
33245 "                     const char *uuid);\n"
33246 "\n"
33247 msgstr ""
33248
33249 #. type: textblock
33250 #: ../src/guestfs-actions.pod:6906
33251 msgid ""
33252 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
33253 "the existing UUID of a filesystem."
33254 msgstr ""
33255
33256 #. type: =head2
33257 #: ../src/guestfs-actions.pod:6913
33258 msgid "guestfs_set_memsize"
33259 msgstr ""
33260
33261 #. type: verbatim
33262 #: ../src/guestfs-actions.pod:6915
33263 #, no-wrap
33264 msgid ""
33265 " int\n"
33266 " guestfs_set_memsize (guestfs_h *g,\n"
33267 "                      int memsize);\n"
33268 "\n"
33269 msgstr ""
33270
33271 #. type: textblock
33272 #: ../src/guestfs-actions.pod:6919
33273 msgid ""
33274 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
33275 "This only has any effect if called before C<guestfs_launch>."
33276 msgstr ""
33277
33278 #. type: =head2
33279 #: ../src/guestfs-actions.pod:6934
33280 msgid "guestfs_set_network"
33281 msgstr ""
33282
33283 #. type: verbatim
33284 #: ../src/guestfs-actions.pod:6936
33285 #, no-wrap
33286 msgid ""
33287 " int\n"
33288 " guestfs_set_network (guestfs_h *g,\n"
33289 "                      int network);\n"
33290 "\n"
33291 msgstr ""
33292
33293 #. type: textblock
33294 #: ../src/guestfs-actions.pod:6946
33295 msgid ""
33296 "You must call this before calling C<guestfs_launch>, otherwise it has no "
33297 "effect."
33298 msgstr ""
33299
33300 #. type: =head2
33301 #: ../src/guestfs-actions.pod:6953
33302 msgid "guestfs_set_path"
33303 msgstr ""
33304
33305 #. type: verbatim
33306 #: ../src/guestfs-actions.pod:6955
33307 #, no-wrap
33308 msgid ""
33309 " int\n"
33310 " guestfs_set_path (guestfs_h *g,\n"
33311 "                   const char *searchpath);\n"
33312 "\n"
33313 msgstr ""
33314
33315 #. type: =head2
33316 #: ../src/guestfs-actions.pod:6970
33317 msgid "guestfs_set_pgroup"
33318 msgstr ""
33319
33320 #. type: verbatim
33321 #: ../src/guestfs-actions.pod:6972
33322 #, no-wrap
33323 msgid ""
33324 " int\n"
33325 " guestfs_set_pgroup (guestfs_h *g,\n"
33326 "                     int pgroup);\n"
33327 "\n"
33328 msgstr ""
33329
33330 #. type: =head2
33331 #: ../src/guestfs-actions.pod:6989
33332 msgid "guestfs_set_qemu"
33333 msgstr ""
33334
33335 #. type: verbatim
33336 #: ../src/guestfs-actions.pod:6991
33337 #, no-wrap
33338 msgid ""
33339 " int\n"
33340 " guestfs_set_qemu (guestfs_h *g,\n"
33341 "                   const char *qemu);\n"
33342 "\n"
33343 msgstr ""
33344
33345 #. type: =head2
33346 #: ../src/guestfs-actions.pod:7017
33347 msgid "guestfs_set_recovery_proc"
33348 msgstr ""
33349
33350 #. type: verbatim
33351 #: ../src/guestfs-actions.pod:7019
33352 #, no-wrap
33353 msgid ""
33354 " int\n"
33355 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33356 "                            int recoveryproc);\n"
33357 "\n"
33358 msgstr ""
33359
33360 #. type: textblock
33361 #: ../src/guestfs-actions.pod:7023
33362 msgid ""
33363 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33364 "not create a recovery process.  The purpose of the recovery process is to "
33365 "stop runaway qemu processes in the case where the main program aborts "
33366 "abruptly."
33367 msgstr ""
33368
33369 #. type: textblock
33370 #: ../src/guestfs-actions.pod:7028
33371 msgid ""
33372 "This only has any effect if called before C<guestfs_launch>, and the default "
33373 "is true."
33374 msgstr ""
33375
33376 #. type: =head2
33377 #: ../src/guestfs-actions.pod:7041
33378 msgid "guestfs_set_selinux"
33379 msgstr ""
33380
33381 #. type: verbatim
33382 #: ../src/guestfs-actions.pod:7043
33383 #, no-wrap
33384 msgid ""
33385 " int\n"
33386 " guestfs_set_selinux (guestfs_h *g,\n"
33387 "                      int selinux);\n"
33388 "\n"
33389 msgstr ""
33390
33391 #. type: =head2
33392 #: ../src/guestfs-actions.pod:7060
33393 msgid "guestfs_set_smp"
33394 msgstr ""
33395
33396 #. type: verbatim
33397 #: ../src/guestfs-actions.pod:7062
33398 #, no-wrap
33399 msgid ""
33400 " int\n"
33401 " guestfs_set_smp (guestfs_h *g,\n"
33402 "                  int smp);\n"
33403 "\n"
33404 msgstr ""
33405
33406 #. type: textblock
33407 #: ../src/guestfs-actions.pod:7070
33408 msgid "This function must be called before C<guestfs_launch>."
33409 msgstr ""
33410
33411 #. type: =head2
33412 #: ../src/guestfs-actions.pod:7076
33413 msgid "guestfs_set_trace"
33414 msgstr ""
33415
33416 #. type: verbatim
33417 #: ../src/guestfs-actions.pod:7078
33418 #, no-wrap
33419 msgid ""
33420 " int\n"
33421 " guestfs_set_trace (guestfs_h *g,\n"
33422 "                    int trace);\n"
33423 "\n"
33424 msgstr ""
33425
33426 #. type: textblock
33427 #: ../src/guestfs-actions.pod:7092
33428 msgid ""
33429 "Trace messages are normally sent to C<stderr>, unless you register a "
33430 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33431 msgstr ""
33432
33433 #. type: =head2
33434 #: ../src/guestfs-actions.pod:7100
33435 msgid "guestfs_set_verbose"
33436 msgstr ""
33437
33438 #. type: verbatim
33439 #: ../src/guestfs-actions.pod:7102
33440 #, no-wrap
33441 msgid ""
33442 " int\n"
33443 " guestfs_set_verbose (guestfs_h *g,\n"
33444 "                      int verbose);\n"
33445 "\n"
33446 msgstr ""
33447
33448 #. type: textblock
33449 #: ../src/guestfs-actions.pod:7111
33450 msgid ""
33451 "Verbose messages are normally sent to C<stderr>, unless you register a "
33452 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33453 msgstr ""
33454
33455 #. type: =head2
33456 #: ../src/guestfs-actions.pod:7119
33457 msgid "guestfs_setcon"
33458 msgstr ""
33459
33460 #. type: verbatim
33461 #: ../src/guestfs-actions.pod:7121
33462 #, no-wrap
33463 msgid ""
33464 " int\n"
33465 " guestfs_setcon (guestfs_h *g,\n"
33466 "                 const char *context);\n"
33467 "\n"
33468 msgstr ""
33469
33470 #. type: =head2
33471 #: ../src/guestfs-actions.pod:7134
33472 msgid "guestfs_setxattr"
33473 msgstr ""
33474
33475 #. type: verbatim
33476 #: ../src/guestfs-actions.pod:7136
33477 #, no-wrap
33478 msgid ""
33479 " int\n"
33480 " guestfs_setxattr (guestfs_h *g,\n"
33481 "                   const char *xattr,\n"
33482 "                   const char *val,\n"
33483 "                   int vallen,\n"
33484 "                   const char *path);\n"
33485 "\n"
33486 msgstr ""
33487
33488 #. type: textblock
33489 #: ../src/guestfs-actions.pod:7147
33490 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33491 msgstr ""
33492
33493 #. type: =head2
33494 #: ../src/guestfs-actions.pod:7153
33495 msgid "guestfs_sfdisk"
33496 msgstr ""
33497
33498 #. type: verbatim
33499 #: ../src/guestfs-actions.pod:7155
33500 #, no-wrap
33501 msgid ""
33502 " int\n"
33503 " guestfs_sfdisk (guestfs_h *g,\n"
33504 "                 const char *device,\n"
33505 "                 int cyls,\n"
33506 "                 int heads,\n"
33507 "                 int sectors,\n"
33508 "                 char *const *lines);\n"
33509 "\n"
33510 msgstr ""
33511
33512 #. type: textblock
33513 #: ../src/guestfs-actions.pod:7163 ../src/guestfs-actions.pod:7204
33514 #: ../src/guestfs-actions.pod:7235
33515 msgid ""
33516 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33517 "call instead."
33518 msgstr ""
33519
33520 #. type: textblock
33521 #: ../src/guestfs-actions.pod:7190
33522 msgid ""
33523 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33524 msgstr ""
33525
33526 #. type: =head2
33527 #: ../src/guestfs-actions.pod:7197
33528 msgid "guestfs_sfdiskM"
33529 msgstr ""
33530
33531 #. type: verbatim
33532 #: ../src/guestfs-actions.pod:7199
33533 #, no-wrap
33534 msgid ""
33535 " int\n"
33536 " guestfs_sfdiskM (guestfs_h *g,\n"
33537 "                  const char *device,\n"
33538 "                  char *const *lines);\n"
33539 "\n"
33540 msgstr ""
33541
33542 #. type: textblock
33543 #: ../src/guestfs-actions.pod:7211
33544 msgid ""
33545 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33546 "partition sizes are specified in megabytes only (rounded to the nearest "
33547 "cylinder) and you don't need to specify the cyls, heads and sectors "
33548 "parameters which were rarely if ever used anyway."
33549 msgstr ""
33550
33551 #. type: textblock
33552 #: ../src/guestfs-actions.pod:7217
33553 msgid ""
33554 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33555 "C<guestfs_part_disk>"
33556 msgstr ""
33557
33558 #. type: =head2
33559 #: ../src/guestfs-actions.pod:7224
33560 msgid "guestfs_sfdisk_N"
33561 msgstr ""
33562
33563 #. type: verbatim
33564 #: ../src/guestfs-actions.pod:7226
33565 #, no-wrap
33566 msgid ""
33567 " int\n"
33568 " guestfs_sfdisk_N (guestfs_h *g,\n"
33569 "                   const char *device,\n"
33570 "                   int partnum,\n"
33571 "                   int cyls,\n"
33572 "                   int heads,\n"
33573 "                   int sectors,\n"
33574 "                   const char *line);\n"
33575 "\n"
33576 msgstr ""
33577
33578 #. type: textblock
33579 #: ../src/guestfs-actions.pod:7245
33580 msgid ""
33581 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
33582 "for the cyls/heads/sectors parameters."
33583 msgstr ""
33584
33585 #. type: textblock
33586 #: ../src/guestfs-actions.pod:7248
33587 msgid "See also: C<guestfs_part_add>"
33588 msgstr ""
33589
33590 #. type: =head2
33591 #: ../src/guestfs-actions.pod:7254
33592 msgid "guestfs_sfdisk_disk_geometry"
33593 msgstr ""
33594
33595 #. type: verbatim
33596 #: ../src/guestfs-actions.pod:7256
33597 #, no-wrap
33598 msgid ""
33599 " char *\n"
33600 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33601 "                               const char *device);\n"
33602 "\n"
33603 msgstr ""
33604
33605 #. type: textblock
33606 #: ../src/guestfs-actions.pod:7260
33607 msgid ""
33608 "This displays the disk geometry of C<device> read from the partition table.  "
33609 "Especially in the case where the underlying block device has been resized, "
33610 "this can be different from the kernel's idea of the geometry (see "
33611 "C<guestfs_sfdisk_kernel_geometry>)."
33612 msgstr ""
33613
33614 #. type: =head2
33615 #: ../src/guestfs-actions.pod:7273
33616 msgid "guestfs_sfdisk_kernel_geometry"
33617 msgstr ""
33618
33619 #. type: verbatim
33620 #: ../src/guestfs-actions.pod:7275
33621 #, no-wrap
33622 msgid ""
33623 " char *\n"
33624 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33625 "                                 const char *device);\n"
33626 "\n"
33627 msgstr ""
33628
33629 #. type: =head2
33630 #: ../src/guestfs-actions.pod:7289
33631 msgid "guestfs_sfdisk_l"
33632 msgstr ""
33633
33634 #. type: verbatim
33635 #: ../src/guestfs-actions.pod:7291
33636 #, no-wrap
33637 msgid ""
33638 " char *\n"
33639 " guestfs_sfdisk_l (guestfs_h *g,\n"
33640 "                   const char *device);\n"
33641 "\n"
33642 msgstr ""
33643
33644 #. type: textblock
33645 #: ../src/guestfs-actions.pod:7295
33646 msgid ""
33647 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33648 "call instead."
33649 msgstr ""
33650
33651 #. type: textblock
33652 #: ../src/guestfs-actions.pod:7306
33653 msgid "See also: C<guestfs_part_list>"
33654 msgstr ""
33655
33656 #. type: =head2
33657 #: ../src/guestfs-actions.pod:7313
33658 msgid "guestfs_sh"
33659 msgstr ""
33660
33661 #. type: verbatim
33662 #: ../src/guestfs-actions.pod:7315
33663 #, no-wrap
33664 msgid ""
33665 " char *\n"
33666 " guestfs_sh (guestfs_h *g,\n"
33667 "             const char *command);\n"
33668 "\n"
33669 msgstr ""
33670
33671 #. type: textblock
33672 #: ../src/guestfs-actions.pod:7322
33673 msgid "This is like C<guestfs_command>, but passes the command to:"
33674 msgstr ""
33675
33676 #. type: textblock
33677 #: ../src/guestfs-actions.pod:7330
33678 msgid "All the provisos about C<guestfs_command> apply to this call."
33679 msgstr ""
33680
33681 #. type: =head2
33682 #: ../src/guestfs-actions.pod:7337
33683 msgid "guestfs_sh_lines"
33684 msgstr ""
33685
33686 #. type: verbatim
33687 #: ../src/guestfs-actions.pod:7339
33688 #, no-wrap
33689 msgid ""
33690 " char **\n"
33691 " guestfs_sh_lines (guestfs_h *g,\n"
33692 "                   const char *command);\n"
33693 "\n"
33694 msgstr ""
33695
33696 #. type: textblock
33697 #: ../src/guestfs-actions.pod:7343
33698 msgid ""
33699 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33700 "lines."
33701 msgstr ""
33702
33703 #. type: textblock
33704 #: ../src/guestfs-actions.pod:7346
33705 msgid "See also: C<guestfs_command_lines>"
33706 msgstr ""
33707
33708 #. type: =head2
33709 #: ../src/guestfs-actions.pod:7354
33710 msgid "guestfs_sleep"
33711 msgstr ""
33712
33713 #. type: verbatim
33714 #: ../src/guestfs-actions.pod:7356
33715 #, no-wrap
33716 msgid ""
33717 " int\n"
33718 " guestfs_sleep (guestfs_h *g,\n"
33719 "                int secs);\n"
33720 "\n"
33721 msgstr ""
33722
33723 #. type: textblock
33724 #: ../src/guestfs-actions.pod:7364
33725 msgid "(Added in 1.0.41)"
33726 msgstr ""
33727
33728 #. type: =head2
33729 #: ../src/guestfs-actions.pod:7366 ../src/guestfs-structs.pod:109
33730 msgid "guestfs_stat"
33731 msgstr ""
33732
33733 #. type: verbatim
33734 #: ../src/guestfs-actions.pod:7368
33735 #, no-wrap
33736 msgid ""
33737 " struct guestfs_stat *\n"
33738 " guestfs_stat (guestfs_h *g,\n"
33739 "               const char *path);\n"
33740 "\n"
33741 msgstr ""
33742
33743 #. type: =head2
33744 #: ../src/guestfs-actions.pod:7382 ../src/guestfs-structs.pod:135
33745 msgid "guestfs_statvfs"
33746 msgstr ""
33747
33748 #. type: verbatim
33749 #: ../src/guestfs-actions.pod:7384
33750 #, no-wrap
33751 msgid ""
33752 " struct guestfs_statvfs *\n"
33753 " guestfs_statvfs (guestfs_h *g,\n"
33754 "                  const char *path);\n"
33755 "\n"
33756 msgstr ""
33757
33758 #. type: textblock
33759 #: ../src/guestfs-actions.pod:7394
33760 msgid ""
33761 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33762 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
33763 msgstr ""
33764
33765 #. type: =head2
33766 #: ../src/guestfs-actions.pod:7400
33767 msgid "guestfs_strings"
33768 msgstr ""
33769
33770 #. type: verbatim
33771 #: ../src/guestfs-actions.pod:7402
33772 #, no-wrap
33773 msgid ""
33774 " char **\n"
33775 " guestfs_strings (guestfs_h *g,\n"
33776 "                  const char *path);\n"
33777 "\n"
33778 msgstr ""
33779
33780 #. type: =head2
33781 #: ../src/guestfs-actions.pod:7418
33782 msgid "guestfs_strings_e"
33783 msgstr ""
33784
33785 #. type: verbatim
33786 #: ../src/guestfs-actions.pod:7420
33787 #, no-wrap
33788 msgid ""
33789 " char **\n"
33790 " guestfs_strings_e (guestfs_h *g,\n"
33791 "                    const char *encoding,\n"
33792 "                    const char *path);\n"
33793 "\n"
33794 msgstr ""
33795
33796 #. type: textblock
33797 #: ../src/guestfs-actions.pod:7425
33798 msgid ""
33799 "This is like the C<guestfs_strings> command, but allows you to specify the "
33800 "encoding of strings that are looked for in the source file C<path>."
33801 msgstr ""
33802
33803 #. type: textblock
33804 #: ../src/guestfs-actions.pod:7435
33805 msgid ""
33806 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33807 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33808 msgstr ""
33809
33810 #. type: =head2
33811 #: ../src/guestfs-actions.pod:7473
33812 msgid "guestfs_swapoff_device"
33813 msgstr ""
33814
33815 #. type: verbatim
33816 #: ../src/guestfs-actions.pod:7475
33817 #, no-wrap
33818 msgid ""
33819 " int\n"
33820 " guestfs_swapoff_device (guestfs_h *g,\n"
33821 "                         const char *device);\n"
33822 "\n"
33823 msgstr ""
33824
33825 #. type: textblock
33826 #: ../src/guestfs-actions.pod:7479
33827 msgid ""
33828 "This command disables the libguestfs appliance swap device or partition "
33829 "named C<device>.  See C<guestfs_swapon_device>."
33830 msgstr ""
33831
33832 #. type: =head2
33833 #: ../src/guestfs-actions.pod:7487
33834 msgid "guestfs_swapoff_file"
33835 msgstr ""
33836
33837 #. type: verbatim
33838 #: ../src/guestfs-actions.pod:7489
33839 #, no-wrap
33840 msgid ""
33841 " int\n"
33842 " guestfs_swapoff_file (guestfs_h *g,\n"
33843 "                       const char *file);\n"
33844 "\n"
33845 msgstr ""
33846
33847 #. type: =head2
33848 #: ../src/guestfs-actions.pod:7499
33849 msgid "guestfs_swapoff_label"
33850 msgstr ""
33851
33852 #. type: verbatim
33853 #: ../src/guestfs-actions.pod:7501
33854 #, no-wrap
33855 msgid ""
33856 " int\n"
33857 " guestfs_swapoff_label (guestfs_h *g,\n"
33858 "                        const char *label);\n"
33859 "\n"
33860 msgstr ""
33861
33862 #. type: =head2
33863 #: ../src/guestfs-actions.pod:7512
33864 msgid "guestfs_swapoff_uuid"
33865 msgstr ""
33866
33867 #. type: verbatim
33868 #: ../src/guestfs-actions.pod:7514
33869 #, no-wrap
33870 msgid ""
33871 " int\n"
33872 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33873 "                       const char *uuid);\n"
33874 "\n"
33875 msgstr ""
33876
33877 #. type: =head2
33878 #: ../src/guestfs-actions.pod:7525
33879 msgid "guestfs_swapon_device"
33880 msgstr ""
33881
33882 #. type: verbatim
33883 #: ../src/guestfs-actions.pod:7527
33884 #, no-wrap
33885 msgid ""
33886 " int\n"
33887 " guestfs_swapon_device (guestfs_h *g,\n"
33888 "                        const char *device);\n"
33889 "\n"
33890 msgstr ""
33891
33892 #. type: textblock
33893 #: ../src/guestfs-actions.pod:7531
33894 msgid ""
33895 "This command enables the libguestfs appliance to use the swap device or "
33896 "partition named C<device>.  The increased memory is made available for all "
33897 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33898 msgstr ""
33899
33900 #. type: =head2
33901 #: ../src/guestfs-actions.pod:7547
33902 msgid "guestfs_swapon_file"
33903 msgstr ""
33904
33905 #. type: verbatim
33906 #: ../src/guestfs-actions.pod:7549
33907 #, no-wrap
33908 msgid ""
33909 " int\n"
33910 " guestfs_swapon_file (guestfs_h *g,\n"
33911 "                      const char *file);\n"
33912 "\n"
33913 msgstr ""
33914
33915 #. type: textblock
33916 #: ../src/guestfs-actions.pod:7553
33917 msgid ""
33918 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
33919 "notes."
33920 msgstr ""
33921
33922 #. type: =head2
33923 #: ../src/guestfs-actions.pod:7560
33924 msgid "guestfs_swapon_label"
33925 msgstr ""
33926
33927 #. type: verbatim
33928 #: ../src/guestfs-actions.pod:7562
33929 #, no-wrap
33930 msgid ""
33931 " int\n"
33932 " guestfs_swapon_label (guestfs_h *g,\n"
33933 "                       const char *label);\n"
33934 "\n"
33935 msgstr ""
33936
33937 #. type: textblock
33938 #: ../src/guestfs-actions.pod:7566
33939 msgid ""
33940 "This command enables swap to a labeled swap partition.  See "
33941 "C<guestfs_swapon_device> for other notes."
33942 msgstr ""
33943
33944 #. type: =head2
33945 #: ../src/guestfs-actions.pod:7573
33946 msgid "guestfs_swapon_uuid"
33947 msgstr ""
33948
33949 #. type: verbatim
33950 #: ../src/guestfs-actions.pod:7575
33951 #, no-wrap
33952 msgid ""
33953 " int\n"
33954 " guestfs_swapon_uuid (guestfs_h *g,\n"
33955 "                      const char *uuid);\n"
33956 "\n"
33957 msgstr ""
33958
33959 #. type: textblock
33960 #: ../src/guestfs-actions.pod:7579
33961 msgid ""
33962 "This command enables swap to a swap partition with the given UUID.  See "
33963 "C<guestfs_swapon_device> for other notes."
33964 msgstr ""
33965
33966 #. type: =head2
33967 #: ../src/guestfs-actions.pod:7586
33968 msgid "guestfs_sync"
33969 msgstr ""
33970
33971 #. type: verbatim
33972 #: ../src/guestfs-actions.pod:7588
33973 #, no-wrap
33974 msgid ""
33975 " int\n"
33976 " guestfs_sync (guestfs_h *g);\n"
33977 "\n"
33978 msgstr ""
33979
33980 #. type: =head2
33981 #: ../src/guestfs-actions.pod:7601
33982 msgid "guestfs_tail"
33983 msgstr ""
33984
33985 #. type: verbatim
33986 #: ../src/guestfs-actions.pod:7603
33987 #, no-wrap
33988 msgid ""
33989 " char **\n"
33990 " guestfs_tail (guestfs_h *g,\n"
33991 "               const char *path);\n"
33992 "\n"
33993 msgstr ""
33994
33995 #. type: =head2
33996 #: ../src/guestfs-actions.pod:7619
33997 msgid "guestfs_tail_n"
33998 msgstr ""
33999
34000 #. type: verbatim
34001 #: ../src/guestfs-actions.pod:7621
34002 #, no-wrap
34003 msgid ""
34004 " char **\n"
34005 " guestfs_tail_n (guestfs_h *g,\n"
34006 "                 int nrlines,\n"
34007 "                 const char *path);\n"
34008 "\n"
34009 msgstr ""
34010
34011 #. type: =head2
34012 #: ../src/guestfs-actions.pod:7643
34013 msgid "guestfs_tar_in"
34014 msgstr ""
34015
34016 #. type: verbatim
34017 #: ../src/guestfs-actions.pod:7645
34018 #, no-wrap
34019 msgid ""
34020 " int\n"
34021 " guestfs_tar_in (guestfs_h *g,\n"
34022 "                 const char *tarfile,\n"
34023 "                 const char *directory);\n"
34024 "\n"
34025 msgstr ""
34026
34027 #. type: textblock
34028 #: ../src/guestfs-actions.pod:7653
34029 msgid ""
34030 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
34031 msgstr ""
34032
34033 #. type: textblock
34034 #: ../src/guestfs-actions.pod:7658 ../src/guestfs-actions.pod:7675
34035 #: ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7707
34036 msgid "(Added in 1.0.3)"
34037 msgstr ""
34038
34039 #. type: =head2
34040 #: ../src/guestfs-actions.pod:7660
34041 msgid "guestfs_tar_out"
34042 msgstr ""
34043
34044 #. type: verbatim
34045 #: ../src/guestfs-actions.pod:7662
34046 #, no-wrap
34047 msgid ""
34048 " int\n"
34049 " guestfs_tar_out (guestfs_h *g,\n"
34050 "                  const char *directory,\n"
34051 "                  const char *tarfile);\n"
34052 "\n"
34053 msgstr ""
34054
34055 #. type: textblock
34056 #: ../src/guestfs-actions.pod:7670
34057 msgid ""
34058 "To download a compressed tarball, use C<guestfs_tgz_out> or "
34059 "C<guestfs_txz_out>."
34060 msgstr ""
34061
34062 #. type: =head2
34063 #: ../src/guestfs-actions.pod:7677
34064 msgid "guestfs_tgz_in"
34065 msgstr ""
34066
34067 #. type: verbatim
34068 #: ../src/guestfs-actions.pod:7679
34069 #, no-wrap
34070 msgid ""
34071 " int\n"
34072 " guestfs_tgz_in (guestfs_h *g,\n"
34073 "                 const char *tarball,\n"
34074 "                 const char *directory);\n"
34075 "\n"
34076 msgstr ""
34077
34078 #. type: textblock
34079 #: ../src/guestfs-actions.pod:7687
34080 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
34081 msgstr ""
34082
34083 #. type: =head2
34084 #: ../src/guestfs-actions.pod:7693
34085 msgid "guestfs_tgz_out"
34086 msgstr ""
34087
34088 #. type: verbatim
34089 #: ../src/guestfs-actions.pod:7695
34090 #, no-wrap
34091 msgid ""
34092 " int\n"
34093 " guestfs_tgz_out (guestfs_h *g,\n"
34094 "                  const char *directory,\n"
34095 "                  const char *tarball);\n"
34096 "\n"
34097 msgstr ""
34098
34099 #. type: textblock
34100 #: ../src/guestfs-actions.pod:7703
34101 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
34102 msgstr ""
34103
34104 #. type: =head2
34105 #: ../src/guestfs-actions.pod:7709
34106 msgid "guestfs_touch"
34107 msgstr ""
34108
34109 #. type: verbatim
34110 #: ../src/guestfs-actions.pod:7711
34111 #, no-wrap
34112 msgid ""
34113 " int\n"
34114 " guestfs_touch (guestfs_h *g,\n"
34115 "                const char *path);\n"
34116 "\n"
34117 msgstr ""
34118
34119 #. type: =head2
34120 #: ../src/guestfs-actions.pod:7726
34121 msgid "guestfs_truncate"
34122 msgstr ""
34123
34124 #. type: verbatim
34125 #: ../src/guestfs-actions.pod:7728
34126 #, no-wrap
34127 msgid ""
34128 " int\n"
34129 " guestfs_truncate (guestfs_h *g,\n"
34130 "                   const char *path);\n"
34131 "\n"
34132 msgstr ""
34133
34134 #. type: =head2
34135 #: ../src/guestfs-actions.pod:7739
34136 msgid "guestfs_truncate_size"
34137 msgstr ""
34138
34139 #. type: verbatim
34140 #: ../src/guestfs-actions.pod:7741
34141 #, no-wrap
34142 msgid ""
34143 " int\n"
34144 " guestfs_truncate_size (guestfs_h *g,\n"
34145 "                        const char *path,\n"
34146 "                        int64_t size);\n"
34147 "\n"
34148 msgstr ""
34149
34150 #. type: textblock
34151 #: ../src/guestfs-actions.pod:7749
34152 msgid ""
34153 "If the current file size is less than C<size> then the file is extended to "
34154 "the required size with zero bytes.  This creates a sparse file (ie. disk "
34155 "blocks are not allocated for the file until you write to it).  To create a "
34156 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
34157 msgstr ""
34158
34159 #. type: =head2
34160 #: ../src/guestfs-actions.pod:7759
34161 msgid "guestfs_tune2fs"
34162 msgstr ""
34163
34164 #. type: verbatim
34165 #: ../src/guestfs-actions.pod:7761
34166 #, no-wrap
34167 msgid ""
34168 " int\n"
34169 " guestfs_tune2fs (guestfs_h *g,\n"
34170 "                  const char *device,\n"
34171 "                  ...);\n"
34172 "\n"
34173 msgstr ""
34174
34175 #. type: verbatim
34176 #: ../src/guestfs-actions.pod:7771
34177 #, no-wrap
34178 msgid ""
34179 " GUESTFS_TUNE2FS_FORCE, int force,\n"
34180 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
34181 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
34182 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
34183 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
34184 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
34185 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
34186 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
34187 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
34188 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
34189 "\n"
34190 msgstr ""
34191
34192 #. type: textblock
34193 #: ../src/guestfs-actions.pod:7851
34194 msgid ""
34195 "To get the current values of filesystem parameters, see "
34196 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
34197 "L<tune2fs(8)> man page."
34198 msgstr ""
34199
34200 #. type: =head2
34201 #: ../src/guestfs-actions.pod:7859
34202 msgid "guestfs_tune2fs_va"
34203 msgstr ""
34204
34205 #. type: verbatim
34206 #: ../src/guestfs-actions.pod:7861
34207 #, no-wrap
34208 msgid ""
34209 " int\n"
34210 " guestfs_tune2fs_va (guestfs_h *g,\n"
34211 "                     const char *device,\n"
34212 "                     va_list args);\n"
34213 "\n"
34214 msgstr ""
34215
34216 #. type: textblock
34217 #: ../src/guestfs-actions.pod:7866
34218 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
34219 msgstr ""
34220
34221 #. type: =head2
34222 #: ../src/guestfs-actions.pod:7870
34223 msgid "guestfs_tune2fs_argv"
34224 msgstr ""
34225
34226 #. type: verbatim
34227 #: ../src/guestfs-actions.pod:7872
34228 #, no-wrap
34229 msgid ""
34230 " int\n"
34231 " guestfs_tune2fs_argv (guestfs_h *g,\n"
34232 "                       const char *device,\n"
34233 "                       const struct guestfs_tune2fs_argv *optargs);\n"
34234 "\n"
34235 msgstr ""
34236
34237 #. type: textblock
34238 #: ../src/guestfs-actions.pod:7877
34239 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
34240 msgstr ""
34241
34242 #. type: =head2
34243 #: ../src/guestfs-actions.pod:7881
34244 msgid "guestfs_tune2fs_l"
34245 msgstr ""
34246
34247 #. type: verbatim
34248 #: ../src/guestfs-actions.pod:7883
34249 #, no-wrap
34250 msgid ""
34251 " char **\n"
34252 " guestfs_tune2fs_l (guestfs_h *g,\n"
34253 "                    const char *device);\n"
34254 "\n"
34255 msgstr ""
34256
34257 #. type: =head2
34258 #: ../src/guestfs-actions.pod:7903
34259 msgid "guestfs_txz_in"
34260 msgstr ""
34261
34262 #. type: verbatim
34263 #: ../src/guestfs-actions.pod:7905
34264 #, no-wrap
34265 msgid ""
34266 " int\n"
34267 " guestfs_txz_in (guestfs_h *g,\n"
34268 "                 const char *tarball,\n"
34269 "                 const char *directory);\n"
34270 "\n"
34271 msgstr ""
34272
34273 #. type: =head2
34274 #: ../src/guestfs-actions.pod:7917
34275 msgid "guestfs_txz_out"
34276 msgstr ""
34277
34278 #. type: verbatim
34279 #: ../src/guestfs-actions.pod:7919
34280 #, no-wrap
34281 msgid ""
34282 " int\n"
34283 " guestfs_txz_out (guestfs_h *g,\n"
34284 "                  const char *directory,\n"
34285 "                  const char *tarball);\n"
34286 "\n"
34287 msgstr ""
34288
34289 #. type: =head2
34290 #: ../src/guestfs-actions.pod:7931
34291 msgid "guestfs_umask"
34292 msgstr ""
34293
34294 #. type: verbatim
34295 #: ../src/guestfs-actions.pod:7933
34296 #, no-wrap
34297 msgid ""
34298 " int\n"
34299 " guestfs_umask (guestfs_h *g,\n"
34300 "                int mask);\n"
34301 "\n"
34302 msgstr ""
34303
34304 #. type: textblock
34305 #: ../src/guestfs-actions.pod:7949
34306 msgid ""
34307 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
34308 "C<guestfs_mkdir>."
34309 msgstr ""
34310
34311 #. type: =head2
34312 #: ../src/guestfs-actions.pod:7958
34313 msgid "guestfs_umount"
34314 msgstr ""
34315
34316 #. type: verbatim
34317 #: ../src/guestfs-actions.pod:7960
34318 #, no-wrap
34319 msgid ""
34320 " int\n"
34321 " guestfs_umount (guestfs_h *g,\n"
34322 "                 const char *pathordevice);\n"
34323 "\n"
34324 msgstr ""
34325
34326 #. type: =head2
34327 #: ../src/guestfs-actions.pod:7972
34328 msgid "guestfs_umount_all"
34329 msgstr ""
34330
34331 #. type: verbatim
34332 #: ../src/guestfs-actions.pod:7974
34333 #, no-wrap
34334 msgid ""
34335 " int\n"
34336 " guestfs_umount_all (guestfs_h *g);\n"
34337 "\n"
34338 msgstr ""
34339
34340 #. type: =head2
34341 #: ../src/guestfs-actions.pod:7985
34342 msgid "guestfs_upload"
34343 msgstr ""
34344
34345 #. type: verbatim
34346 #: ../src/guestfs-actions.pod:7987
34347 #, no-wrap
34348 msgid ""
34349 " int\n"
34350 " guestfs_upload (guestfs_h *g,\n"
34351 "                 const char *filename,\n"
34352 "                 const char *remotefilename);\n"
34353 "\n"
34354 msgstr ""
34355
34356 #. type: textblock
34357 #: ../src/guestfs-actions.pod:7997
34358 msgid "See also C<guestfs_download>."
34359 msgstr ""
34360
34361 #. type: =head2
34362 #: ../src/guestfs-actions.pod:8008
34363 msgid "guestfs_upload_offset"
34364 msgstr ""
34365
34366 #. type: verbatim
34367 #: ../src/guestfs-actions.pod:8010
34368 #, no-wrap
34369 msgid ""
34370 " int\n"
34371 " guestfs_upload_offset (guestfs_h *g,\n"
34372 "                        const char *filename,\n"
34373 "                        const char *remotefilename,\n"
34374 "                        int64_t offset);\n"
34375 "\n"
34376 msgstr ""
34377
34378 #. type: textblock
34379 #: ../src/guestfs-actions.pod:8026
34380 msgid ""
34381 "Note that there is no limit on the amount of data that can be uploaded with "
34382 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
34383 "full amount unless an error occurs."
34384 msgstr ""
34385
34386 #. type: textblock
34387 #: ../src/guestfs-actions.pod:8031
34388 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
34389 msgstr ""
34390
34391 #. type: =head2
34392 #: ../src/guestfs-actions.pod:8042
34393 msgid "guestfs_utimens"
34394 msgstr ""
34395
34396 #. type: verbatim
34397 #: ../src/guestfs-actions.pod:8044
34398 #, no-wrap
34399 msgid ""
34400 " int\n"
34401 " guestfs_utimens (guestfs_h *g,\n"
34402 "                  const char *path,\n"
34403 "                  int64_t atsecs,\n"
34404 "                  int64_t atnsecs,\n"
34405 "                  int64_t mtsecs,\n"
34406 "                  int64_t mtnsecs);\n"
34407 "\n"
34408 msgstr ""
34409
34410 #. type: =head2
34411 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-structs.pod:175
34412 msgid "guestfs_version"
34413 msgstr ""
34414
34415 #. type: verbatim
34416 #: ../src/guestfs-actions.pod:8075
34417 #, no-wrap
34418 msgid ""
34419 " struct guestfs_version *\n"
34420 " guestfs_version (guestfs_h *g);\n"
34421 "\n"
34422 msgstr ""
34423
34424 #. type: textblock
34425 #: ../src/guestfs-actions.pod:8103
34426 msgid ""
34427 "I<Note:> Don't use this call to test for availability of features.  In "
34428 "enterprise distributions we backport features from later versions into "
34429 "earlier versions, making this an unreliable way to test for features.  Use "
34430 "C<guestfs_available> instead."
34431 msgstr ""
34432
34433 #. type: textblock
34434 #: ../src/guestfs-actions.pod:8109
34435 msgid ""
34436 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34437 "error.  I<The caller must call C<guestfs_free_version> after use>."
34438 msgstr ""
34439
34440 #. type: textblock
34441 #: ../src/guestfs-actions.pod:8113
34442 msgid "(Added in 1.0.58)"
34443 msgstr ""
34444
34445 #. type: =head2
34446 #: ../src/guestfs-actions.pod:8115
34447 msgid "guestfs_vfs_label"
34448 msgstr ""
34449
34450 #. type: verbatim
34451 #: ../src/guestfs-actions.pod:8117
34452 #, no-wrap
34453 msgid ""
34454 " char *\n"
34455 " guestfs_vfs_label (guestfs_h *g,\n"
34456 "                    const char *device);\n"
34457 "\n"
34458 msgstr ""
34459
34460 #. type: textblock
34461 #: ../src/guestfs-actions.pod:8126
34462 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34463 msgstr ""
34464
34465 #. type: textblock
34466 #: ../src/guestfs-actions.pod:8131 ../src/guestfs-actions.pod:8168
34467 msgid "(Added in 1.3.18)"
34468 msgstr ""
34469
34470 #. type: =head2
34471 #: ../src/guestfs-actions.pod:8133
34472 msgid "guestfs_vfs_type"
34473 msgstr ""
34474
34475 #. type: verbatim
34476 #: ../src/guestfs-actions.pod:8135
34477 #, no-wrap
34478 msgid ""
34479 " char *\n"
34480 " guestfs_vfs_type (guestfs_h *g,\n"
34481 "                   const char *device);\n"
34482 "\n"
34483 msgstr ""
34484
34485 #. type: =head2
34486 #: ../src/guestfs-actions.pod:8152
34487 msgid "guestfs_vfs_uuid"
34488 msgstr ""
34489
34490 #. type: verbatim
34491 #: ../src/guestfs-actions.pod:8154
34492 #, no-wrap
34493 msgid ""
34494 " char *\n"
34495 " guestfs_vfs_uuid (guestfs_h *g,\n"
34496 "                   const char *device);\n"
34497 "\n"
34498 msgstr ""
34499
34500 #. type: textblock
34501 #: ../src/guestfs-actions.pod:8163
34502 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34503 msgstr ""
34504
34505 #. type: =head2
34506 #: ../src/guestfs-actions.pod:8170
34507 msgid "guestfs_vg_activate"
34508 msgstr ""
34509
34510 #. type: verbatim
34511 #: ../src/guestfs-actions.pod:8172
34512 #, no-wrap
34513 msgid ""
34514 " int\n"
34515 " guestfs_vg_activate (guestfs_h *g,\n"
34516 "                      int activate,\n"
34517 "                      char *const *volgroups);\n"
34518 "\n"
34519 msgstr ""
34520
34521 #. type: =head2
34522 #: ../src/guestfs-actions.pod:8189
34523 msgid "guestfs_vg_activate_all"
34524 msgstr ""
34525
34526 #. type: verbatim
34527 #: ../src/guestfs-actions.pod:8191
34528 #, no-wrap
34529 msgid ""
34530 " int\n"
34531 " guestfs_vg_activate_all (guestfs_h *g,\n"
34532 "                          int activate);\n"
34533 "\n"
34534 msgstr ""
34535
34536 #. type: =head2
34537 #: ../src/guestfs-actions.pod:8204
34538 msgid "guestfs_vgcreate"
34539 msgstr ""
34540
34541 #. type: verbatim
34542 #: ../src/guestfs-actions.pod:8206
34543 #, no-wrap
34544 msgid ""
34545 " int\n"
34546 " guestfs_vgcreate (guestfs_h *g,\n"
34547 "                   const char *volgroup,\n"
34548 "                   char *const *physvols);\n"
34549 "\n"
34550 msgstr ""
34551
34552 #. type: =head2
34553 #: ../src/guestfs-actions.pod:8218
34554 msgid "guestfs_vglvuuids"
34555 msgstr ""
34556
34557 #. type: verbatim
34558 #: ../src/guestfs-actions.pod:8220
34559 #, no-wrap
34560 msgid ""
34561 " char **\n"
34562 " guestfs_vglvuuids (guestfs_h *g,\n"
34563 "                    const char *vgname);\n"
34564 "\n"
34565 msgstr ""
34566
34567 #. type: textblock
34568 #: ../src/guestfs-actions.pod:8227
34569 msgid ""
34570 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34571 "associate logical volumes and volume groups."
34572 msgstr ""
34573
34574 #. type: textblock
34575 #: ../src/guestfs-actions.pod:8230
34576 msgid "See also C<guestfs_vgpvuuids>."
34577 msgstr ""
34578
34579 #. type: =head2
34580 #: ../src/guestfs-actions.pod:8238
34581 msgid "guestfs_vgpvuuids"
34582 msgstr ""
34583
34584 #. type: verbatim
34585 #: ../src/guestfs-actions.pod:8240
34586 #, no-wrap
34587 msgid ""
34588 " char **\n"
34589 " guestfs_vgpvuuids (guestfs_h *g,\n"
34590 "                    const char *vgname);\n"
34591 "\n"
34592 msgstr ""
34593
34594 #. type: textblock
34595 #: ../src/guestfs-actions.pod:8247
34596 msgid ""
34597 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34598 "associate physical volumes and volume groups."
34599 msgstr ""
34600
34601 #. type: textblock
34602 #: ../src/guestfs-actions.pod:8250
34603 msgid "See also C<guestfs_vglvuuids>."
34604 msgstr ""
34605
34606 #. type: =head2
34607 #: ../src/guestfs-actions.pod:8258
34608 msgid "guestfs_vgremove"
34609 msgstr ""
34610
34611 #. type: verbatim
34612 #: ../src/guestfs-actions.pod:8260
34613 #, no-wrap
34614 msgid ""
34615 " int\n"
34616 " guestfs_vgremove (guestfs_h *g,\n"
34617 "                   const char *vgname);\n"
34618 "\n"
34619 msgstr ""
34620
34621 #. type: =head2
34622 #: ../src/guestfs-actions.pod:8273
34623 msgid "guestfs_vgrename"
34624 msgstr ""
34625
34626 #. type: verbatim
34627 #: ../src/guestfs-actions.pod:8275
34628 #, no-wrap
34629 msgid ""
34630 " int\n"
34631 " guestfs_vgrename (guestfs_h *g,\n"
34632 "                   const char *volgroup,\n"
34633 "                   const char *newvolgroup);\n"
34634 "\n"
34635 msgstr ""
34636
34637 #. type: =head2
34638 #: ../src/guestfs-actions.pod:8286
34639 msgid "guestfs_vgs"
34640 msgstr ""
34641
34642 #. type: verbatim
34643 #: ../src/guestfs-actions.pod:8288
34644 #, no-wrap
34645 msgid ""
34646 " char **\n"
34647 " guestfs_vgs (guestfs_h *g);\n"
34648 "\n"
34649 msgstr ""
34650
34651 #. type: textblock
34652 #: ../src/guestfs-actions.pod:8297
34653 msgid "See also C<guestfs_vgs_full>."
34654 msgstr ""
34655
34656 #. type: =head2
34657 #: ../src/guestfs-actions.pod:8305
34658 msgid "guestfs_vgs_full"
34659 msgstr ""
34660
34661 #. type: verbatim
34662 #: ../src/guestfs-actions.pod:8307
34663 #, no-wrap
34664 msgid ""
34665 " struct guestfs_lvm_vg_list *\n"
34666 " guestfs_vgs_full (guestfs_h *g);\n"
34667 "\n"
34668 msgstr ""
34669
34670 #. type: textblock
34671 #: ../src/guestfs-actions.pod:8313
34672 msgid ""
34673 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34674 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34675 msgstr ""
34676
34677 #. type: =head2
34678 #: ../src/guestfs-actions.pod:8319
34679 msgid "guestfs_vgscan"
34680 msgstr ""
34681
34682 #. type: verbatim
34683 #: ../src/guestfs-actions.pod:8321
34684 #, no-wrap
34685 msgid ""
34686 " int\n"
34687 " guestfs_vgscan (guestfs_h *g);\n"
34688 "\n"
34689 msgstr ""
34690
34691 #. type: =head2
34692 #: ../src/guestfs-actions.pod:8331
34693 msgid "guestfs_vguuid"
34694 msgstr ""
34695
34696 #. type: verbatim
34697 #: ../src/guestfs-actions.pod:8333
34698 #, no-wrap
34699 msgid ""
34700 " char *\n"
34701 " guestfs_vguuid (guestfs_h *g,\n"
34702 "                 const char *vgname);\n"
34703 "\n"
34704 msgstr ""
34705
34706 #. type: =head2
34707 #: ../src/guestfs-actions.pod:8344
34708 msgid "guestfs_wait_ready"
34709 msgstr ""
34710
34711 #. type: verbatim
34712 #: ../src/guestfs-actions.pod:8346
34713 #, no-wrap
34714 msgid ""
34715 " int\n"
34716 " guestfs_wait_ready (guestfs_h *g);\n"
34717 "\n"
34718 msgstr ""
34719
34720 #. type: textblock
34721 #: ../src/guestfs-actions.pod:8349
34722 msgid ""
34723 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34724 "instead."
34725 msgstr ""
34726
34727 #. type: textblock
34728 #: ../src/guestfs-actions.pod:8356
34729 msgid "This function is a no op."
34730 msgstr ""
34731
34732 #. type: textblock
34733 #: ../src/guestfs-actions.pod:8358
34734 msgid ""
34735 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34736 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
34737 "is no longer necessary because C<guestfs_launch> now does the waiting."
34738 msgstr ""
34739
34740 #. type: textblock
34741 #: ../src/guestfs-actions.pod:8363
34742 msgid ""
34743 "If you see any calls to this function in code then you can just remove them, "
34744 "unless you want to retain compatibility with older versions of the API."
34745 msgstr ""
34746
34747 #. type: =head2
34748 #: ../src/guestfs-actions.pod:8371
34749 msgid "guestfs_wc_c"
34750 msgstr ""
34751
34752 #. type: verbatim
34753 #: ../src/guestfs-actions.pod:8373
34754 #, no-wrap
34755 msgid ""
34756 " int\n"
34757 " guestfs_wc_c (guestfs_h *g,\n"
34758 "               const char *path);\n"
34759 "\n"
34760 msgstr ""
34761
34762 #. type: =head2
34763 #: ../src/guestfs-actions.pod:8384
34764 msgid "guestfs_wc_l"
34765 msgstr ""
34766
34767 #. type: verbatim
34768 #: ../src/guestfs-actions.pod:8386
34769 #, no-wrap
34770 msgid ""
34771 " int\n"
34772 " guestfs_wc_l (guestfs_h *g,\n"
34773 "               const char *path);\n"
34774 "\n"
34775 msgstr ""
34776
34777 #. type: =head2
34778 #: ../src/guestfs-actions.pod:8397
34779 msgid "guestfs_wc_w"
34780 msgstr ""
34781
34782 #. type: verbatim
34783 #: ../src/guestfs-actions.pod:8399
34784 #, no-wrap
34785 msgid ""
34786 " int\n"
34787 " guestfs_wc_w (guestfs_h *g,\n"
34788 "               const char *path);\n"
34789 "\n"
34790 msgstr ""
34791
34792 #. type: =head2
34793 #: ../src/guestfs-actions.pod:8410
34794 msgid "guestfs_write"
34795 msgstr ""
34796
34797 #. type: verbatim
34798 #: ../src/guestfs-actions.pod:8412
34799 #, no-wrap
34800 msgid ""
34801 " int\n"
34802 " guestfs_write (guestfs_h *g,\n"
34803 "                const char *path,\n"
34804 "                const char *content,\n"
34805 "                size_t content_size);\n"
34806 "\n"
34807 msgstr ""
34808
34809 #. type: textblock
34810 #: ../src/guestfs-actions.pod:8421
34811 msgid "See also C<guestfs_write_append>."
34812 msgstr ""
34813
34814 #. type: =head2
34815 #: ../src/guestfs-actions.pod:8430
34816 msgid "guestfs_write_append"
34817 msgstr ""
34818
34819 #. type: verbatim
34820 #: ../src/guestfs-actions.pod:8432
34821 #, no-wrap
34822 msgid ""
34823 " int\n"
34824 " guestfs_write_append (guestfs_h *g,\n"
34825 "                       const char *path,\n"
34826 "                       const char *content,\n"
34827 "                       size_t content_size);\n"
34828 "\n"
34829 msgstr ""
34830
34831 #. type: textblock
34832 #: ../src/guestfs-actions.pod:8441
34833 msgid "See also C<guestfs_write>."
34834 msgstr ""
34835
34836 #. type: =head2
34837 #: ../src/guestfs-actions.pod:8450
34838 msgid "guestfs_write_file"
34839 msgstr ""
34840
34841 #. type: verbatim
34842 #: ../src/guestfs-actions.pod:8452
34843 #, no-wrap
34844 msgid ""
34845 " int\n"
34846 " guestfs_write_file (guestfs_h *g,\n"
34847 "                     const char *path,\n"
34848 "                     const char *content,\n"
34849 "                     int size);\n"
34850 "\n"
34851 msgstr ""
34852
34853 #. type: textblock
34854 #: ../src/guestfs-actions.pod:8458
34855 msgid ""
34856 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34857 "instead."
34858 msgstr ""
34859
34860 #. type: =head2
34861 #: ../src/guestfs-actions.pod:8483
34862 msgid "guestfs_zegrep"
34863 msgstr ""
34864
34865 #. type: verbatim
34866 #: ../src/guestfs-actions.pod:8485
34867 #, no-wrap
34868 msgid ""
34869 " char **\n"
34870 " guestfs_zegrep (guestfs_h *g,\n"
34871 "                 const char *regex,\n"
34872 "                 const char *path);\n"
34873 "\n"
34874 msgstr ""
34875
34876 #. type: =head2
34877 #: ../src/guestfs-actions.pod:8502
34878 msgid "guestfs_zegrepi"
34879 msgstr ""
34880
34881 #. type: verbatim
34882 #: ../src/guestfs-actions.pod:8504
34883 #, no-wrap
34884 msgid ""
34885 " char **\n"
34886 " guestfs_zegrepi (guestfs_h *g,\n"
34887 "                  const char *regex,\n"
34888 "                  const char *path);\n"
34889 "\n"
34890 msgstr ""
34891
34892 #. type: =head2
34893 #: ../src/guestfs-actions.pod:8521
34894 msgid "guestfs_zero"
34895 msgstr ""
34896
34897 #. type: verbatim
34898 #: ../src/guestfs-actions.pod:8523
34899 #, no-wrap
34900 msgid ""
34901 " int\n"
34902 " guestfs_zero (guestfs_h *g,\n"
34903 "               const char *device);\n"
34904 "\n"
34905 msgstr ""
34906
34907 #. type: textblock
34908 #: ../src/guestfs-actions.pod:8537
34909 msgid ""
34910 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34911 "C<guestfs_is_zero_device>"
34912 msgstr ""
34913
34914 #. type: =head2
34915 #: ../src/guestfs-actions.pod:8549
34916 msgid "guestfs_zero_device"
34917 msgstr ""
34918
34919 #. type: verbatim
34920 #: ../src/guestfs-actions.pod:8551
34921 #, no-wrap
34922 msgid ""
34923 " int\n"
34924 " guestfs_zero_device (guestfs_h *g,\n"
34925 "                      const char *device);\n"
34926 "\n"
34927 msgstr ""
34928
34929 #. type: textblock
34930 #: ../src/guestfs-actions.pod:8555
34931 msgid ""
34932 "This command writes zeroes over the entire C<device>.  Compare with "
34933 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34934 msgstr ""
34935
34936 #. type: textblock
34937 #: ../src/guestfs-actions.pod:8570
34938 msgid "(Added in 1.3.1)"
34939 msgstr ""
34940
34941 #. type: =head2
34942 #: ../src/guestfs-actions.pod:8572
34943 msgid "guestfs_zerofree"
34944 msgstr ""
34945
34946 #. type: verbatim
34947 #: ../src/guestfs-actions.pod:8574
34948 #, no-wrap
34949 msgid ""
34950 " int\n"
34951 " guestfs_zerofree (guestfs_h *g,\n"
34952 "                   const char *device);\n"
34953 "\n"
34954 msgstr ""
34955
34956 #. type: =head2
34957 #: ../src/guestfs-actions.pod:8593
34958 msgid "guestfs_zfgrep"
34959 msgstr ""
34960
34961 #. type: verbatim
34962 #: ../src/guestfs-actions.pod:8595
34963 #, no-wrap
34964 msgid ""
34965 " char **\n"
34966 " guestfs_zfgrep (guestfs_h *g,\n"
34967 "                 const char *pattern,\n"
34968 "                 const char *path);\n"
34969 "\n"
34970 msgstr ""
34971
34972 #. type: =head2
34973 #: ../src/guestfs-actions.pod:8612
34974 msgid "guestfs_zfgrepi"
34975 msgstr ""
34976
34977 #. type: verbatim
34978 #: ../src/guestfs-actions.pod:8614
34979 #, no-wrap
34980 msgid ""
34981 " char **\n"
34982 " guestfs_zfgrepi (guestfs_h *g,\n"
34983 "                  const char *pattern,\n"
34984 "                  const char *path);\n"
34985 "\n"
34986 msgstr ""
34987
34988 #. type: =head2
34989 #: ../src/guestfs-actions.pod:8631
34990 msgid "guestfs_zfile"
34991 msgstr ""
34992
34993 #. type: verbatim
34994 #: ../src/guestfs-actions.pod:8633
34995 #, no-wrap
34996 msgid ""
34997 " char *\n"
34998 " guestfs_zfile (guestfs_h *g,\n"
34999 "                const char *meth,\n"
35000 "                const char *path);\n"
35001 "\n"
35002 msgstr ""
35003
35004 #. type: textblock
35005 #: ../src/guestfs-actions.pod:8638
35006 msgid ""
35007 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
35008 "instead."
35009 msgstr ""
35010
35011 #. type: textblock
35012 #: ../src/guestfs-actions.pod:8650
35013 msgid ""
35014 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
35015 "files."
35016 msgstr ""
35017
35018 #. type: =head2
35019 #: ../src/guestfs-actions.pod:8658
35020 msgid "guestfs_zgrep"
35021 msgstr ""
35022
35023 #. type: verbatim
35024 #: ../src/guestfs-actions.pod:8660
35025 #, no-wrap
35026 msgid ""
35027 " char **\n"
35028 " guestfs_zgrep (guestfs_h *g,\n"
35029 "                const char *regex,\n"
35030 "                const char *path);\n"
35031 "\n"
35032 msgstr ""
35033
35034 #. type: =head2
35035 #: ../src/guestfs-actions.pod:8677
35036 msgid "guestfs_zgrepi"
35037 msgstr ""
35038
35039 #. type: verbatim
35040 #: ../src/guestfs-actions.pod:8679
35041 #, no-wrap
35042 msgid ""
35043 " char **\n"
35044 " guestfs_zgrepi (guestfs_h *g,\n"
35045 "                 const char *regex,\n"
35046 "                 const char *path);\n"
35047 "\n"
35048 msgstr ""
35049
35050 #. type: =item
35051 #: ../src/guestfs-availability.pod:3
35052 msgid "B<augeas>"
35053 msgstr ""
35054
35055 #. type: textblock
35056 #: ../src/guestfs-availability.pod:5
35057 msgid ""
35058 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
35059 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
35060 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
35061 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
35062 "L</guestfs_aug_save> L</guestfs_aug_set>"
35063 msgstr ""
35064
35065 #. type: =item
35066 #: ../src/guestfs-availability.pod:21
35067 msgid "B<btrfs>"
35068 msgstr ""
35069
35070 #. type: textblock
35071 #: ../src/guestfs-availability.pod:23
35072 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
35073 msgstr ""
35074
35075 #. type: =item
35076 #: ../src/guestfs-availability.pod:26
35077 msgid "B<grub>"
35078 msgstr ""
35079
35080 #. type: textblock
35081 #: ../src/guestfs-availability.pod:28
35082 msgid "The following functions: L</guestfs_grub_install>"
35083 msgstr ""
35084
35085 #. type: =item
35086 #: ../src/guestfs-availability.pod:31
35087 msgid "B<inotify>"
35088 msgstr ""
35089
35090 #. type: textblock
35091 #: ../src/guestfs-availability.pod:33
35092 msgid ""
35093 "The following functions: L</guestfs_inotify_add_watch> L</"
35094 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
35095 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
35096 msgstr ""
35097
35098 #. type: =item
35099 #: ../src/guestfs-availability.pod:41
35100 msgid "B<linuxfsuuid>"
35101 msgstr ""
35102
35103 #. type: textblock
35104 #: ../src/guestfs-availability.pod:43
35105 msgid ""
35106 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
35107 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
35108 msgstr ""
35109
35110 #. type: =item
35111 #: ../src/guestfs-availability.pod:50
35112 msgid "B<linuxmodules>"
35113 msgstr ""
35114
35115 #. type: textblock
35116 #: ../src/guestfs-availability.pod:52
35117 msgid "The following functions: L</guestfs_modprobe>"
35118 msgstr ""
35119
35120 #. type: =item
35121 #: ../src/guestfs-availability.pod:55
35122 msgid "B<linuxxattrs>"
35123 msgstr ""
35124
35125 #. type: textblock
35126 #: ../src/guestfs-availability.pod:57
35127 msgid ""
35128 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
35129 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
35130 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
35131 "guestfs_setxattr>"
35132 msgstr ""
35133
35134 #. type: =item
35135 #: ../src/guestfs-availability.pod:68
35136 msgid "B<luks>"
35137 msgstr ""
35138
35139 #. type: textblock
35140 #: ../src/guestfs-availability.pod:70
35141 msgid ""
35142 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
35143 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
35144 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
35145 msgstr ""
35146
35147 #. type: =item
35148 #: ../src/guestfs-availability.pod:79
35149 msgid "B<lvm2>"
35150 msgstr ""
35151
35152 #. type: textblock
35153 #: ../src/guestfs-availability.pod:81
35154 msgid ""
35155 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
35156 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
35157 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
35158 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
35159 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
35160 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
35161 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
35162 msgstr ""
35163
35164 #. type: =item
35165 #: ../src/guestfs-availability.pod:104
35166 msgid "B<mdadm>"
35167 msgstr ""
35168
35169 #. type: textblock
35170 #: ../src/guestfs-availability.pod:106
35171 msgid ""
35172 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> L</"
35173 "guestfs_md_stop>"
35174 msgstr ""
35175
35176 #. type: =item
35177 #: ../src/guestfs-availability.pod:111
35178 msgid "B<mknod>"
35179 msgstr ""
35180
35181 #. type: textblock
35182 #: ../src/guestfs-availability.pod:113
35183 msgid ""
35184 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
35185 "guestfs_mknod_b> L</guestfs_mknod_c>"
35186 msgstr ""
35187
35188 #. type: =item
35189 #: ../src/guestfs-availability.pod:119
35190 msgid "B<ntfs3g>"
35191 msgstr ""
35192
35193 #. type: textblock
35194 #: ../src/guestfs-availability.pod:121
35195 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
35196 msgstr ""
35197
35198 #. type: =item
35199 #: ../src/guestfs-availability.pod:124
35200 msgid "B<ntfsprogs>"
35201 msgstr ""
35202
35203 #. type: textblock
35204 #: ../src/guestfs-availability.pod:126
35205 msgid ""
35206 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
35207 "L</guestfs_ntfsresize_size>"
35208 msgstr ""
35209
35210 #. type: =item
35211 #: ../src/guestfs-availability.pod:131
35212 msgid "B<realpath>"
35213 msgstr ""
35214
35215 #. type: textblock
35216 #: ../src/guestfs-availability.pod:133
35217 msgid "The following functions: L</guestfs_realpath>"
35218 msgstr ""
35219
35220 #. type: =item
35221 #: ../src/guestfs-availability.pod:136
35222 msgid "B<scrub>"
35223 msgstr ""
35224
35225 #. type: textblock
35226 #: ../src/guestfs-availability.pod:138
35227 msgid ""
35228 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
35229 "guestfs_scrub_freespace>"
35230 msgstr ""
35231
35232 #. type: =item
35233 #: ../src/guestfs-availability.pod:143
35234 msgid "B<selinux>"
35235 msgstr ""
35236
35237 #. type: textblock
35238 #: ../src/guestfs-availability.pod:145
35239 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
35240 msgstr ""
35241
35242 #. type: =item
35243 #: ../src/guestfs-availability.pod:149
35244 msgid "B<xz>"
35245 msgstr ""
35246
35247 #. type: textblock
35248 #: ../src/guestfs-availability.pod:151
35249 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
35250 msgstr ""
35251
35252 #. type: =item
35253 #: ../src/guestfs-availability.pod:155
35254 msgid "B<zerofree>"
35255 msgstr ""
35256
35257 #. type: textblock
35258 #: ../src/guestfs-availability.pod:157
35259 msgid "The following functions: L</guestfs_zerofree>"
35260 msgstr ""
35261
35262 #. type: =head2
35263 #: ../src/guestfs-structs.pod:1
35264 msgid "guestfs_int_bool"
35265 msgstr ""
35266
35267 #. type: verbatim
35268 #: ../src/guestfs-structs.pod:3
35269 #, no-wrap
35270 msgid ""
35271 " struct guestfs_int_bool {\n"
35272 "   int32_t i;\n"
35273 "   int32_t b;\n"
35274 " };\n"
35275 " \n"
35276 msgstr ""
35277
35278 #. type: verbatim
35279 #: ../src/guestfs-structs.pod:8
35280 #, no-wrap
35281 msgid ""
35282 " struct guestfs_int_bool_list {\n"
35283 "   uint32_t len; /* Number of elements in list. */\n"
35284 "   struct guestfs_int_bool *val; /* Elements. */\n"
35285 " };\n"
35286 " \n"
35287 msgstr ""
35288
35289 #. type: verbatim
35290 #: ../src/guestfs-structs.pod:13
35291 #, no-wrap
35292 msgid ""
35293 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
35294 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
35295 "\n"
35296 msgstr ""
35297
35298 #. type: =head2
35299 #: ../src/guestfs-structs.pod:16
35300 msgid "guestfs_lvm_pv"
35301 msgstr ""
35302
35303 #. type: verbatim
35304 #: ../src/guestfs-structs.pod:18
35305 #, no-wrap
35306 msgid ""
35307 " struct guestfs_lvm_pv {\n"
35308 "   char *pv_name;\n"
35309 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35310 "   char pv_uuid[32];\n"
35311 "   char *pv_fmt;\n"
35312 "   uint64_t pv_size;\n"
35313 "   uint64_t dev_size;\n"
35314 "   uint64_t pv_free;\n"
35315 "   uint64_t pv_used;\n"
35316 "   char *pv_attr;\n"
35317 "   int64_t pv_pe_count;\n"
35318 "   int64_t pv_pe_alloc_count;\n"
35319 "   char *pv_tags;\n"
35320 "   uint64_t pe_start;\n"
35321 "   int64_t pv_mda_count;\n"
35322 "   uint64_t pv_mda_free;\n"
35323 " };\n"
35324 " \n"
35325 msgstr ""
35326
35327 #. type: verbatim
35328 #: ../src/guestfs-structs.pod:36
35329 #, no-wrap
35330 msgid ""
35331 " struct guestfs_lvm_pv_list {\n"
35332 "   uint32_t len; /* Number of elements in list. */\n"
35333 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
35334 " };\n"
35335 " \n"
35336 msgstr ""
35337
35338 #. type: verbatim
35339 #: ../src/guestfs-structs.pod:41
35340 #, no-wrap
35341 msgid ""
35342 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
35343 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
35344 "\n"
35345 msgstr ""
35346
35347 #. type: =head2
35348 #: ../src/guestfs-structs.pod:44
35349 msgid "guestfs_lvm_vg"
35350 msgstr ""
35351
35352 #. type: verbatim
35353 #: ../src/guestfs-structs.pod:46
35354 #, no-wrap
35355 msgid ""
35356 " struct guestfs_lvm_vg {\n"
35357 "   char *vg_name;\n"
35358 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35359 "   char vg_uuid[32];\n"
35360 "   char *vg_fmt;\n"
35361 "   char *vg_attr;\n"
35362 "   uint64_t vg_size;\n"
35363 "   uint64_t vg_free;\n"
35364 "   char *vg_sysid;\n"
35365 "   uint64_t vg_extent_size;\n"
35366 "   int64_t vg_extent_count;\n"
35367 "   int64_t vg_free_count;\n"
35368 "   int64_t max_lv;\n"
35369 "   int64_t max_pv;\n"
35370 "   int64_t pv_count;\n"
35371 "   int64_t lv_count;\n"
35372 "   int64_t snap_count;\n"
35373 "   int64_t vg_seqno;\n"
35374 "   char *vg_tags;\n"
35375 "   int64_t vg_mda_count;\n"
35376 "   uint64_t vg_mda_free;\n"
35377 " };\n"
35378 " \n"
35379 msgstr ""
35380
35381 #. type: verbatim
35382 #: ../src/guestfs-structs.pod:69
35383 #, no-wrap
35384 msgid ""
35385 " struct guestfs_lvm_vg_list {\n"
35386 "   uint32_t len; /* Number of elements in list. */\n"
35387 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
35388 " };\n"
35389 " \n"
35390 msgstr ""
35391
35392 #. type: verbatim
35393 #: ../src/guestfs-structs.pod:74
35394 #, no-wrap
35395 msgid ""
35396 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35397 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35398 "\n"
35399 msgstr ""
35400
35401 #. type: =head2
35402 #: ../src/guestfs-structs.pod:77
35403 msgid "guestfs_lvm_lv"
35404 msgstr ""
35405
35406 #. type: verbatim
35407 #: ../src/guestfs-structs.pod:79
35408 #, no-wrap
35409 msgid ""
35410 " struct guestfs_lvm_lv {\n"
35411 "   char *lv_name;\n"
35412 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35413 "   char lv_uuid[32];\n"
35414 "   char *lv_attr;\n"
35415 "   int64_t lv_major;\n"
35416 "   int64_t lv_minor;\n"
35417 "   int64_t lv_kernel_major;\n"
35418 "   int64_t lv_kernel_minor;\n"
35419 "   uint64_t lv_size;\n"
35420 "   int64_t seg_count;\n"
35421 "   char *origin;\n"
35422 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35423 "   float snap_percent;\n"
35424 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35425 "   float copy_percent;\n"
35426 "   char *move_pv;\n"
35427 "   char *lv_tags;\n"
35428 "   char *mirror_log;\n"
35429 "   char *modules;\n"
35430 " };\n"
35431 " \n"
35432 msgstr ""
35433
35434 #. type: verbatim
35435 #: ../src/guestfs-structs.pod:101
35436 #, no-wrap
35437 msgid ""
35438 " struct guestfs_lvm_lv_list {\n"
35439 "   uint32_t len; /* Number of elements in list. */\n"
35440 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
35441 " };\n"
35442 " \n"
35443 msgstr ""
35444
35445 #. type: verbatim
35446 #: ../src/guestfs-structs.pod:106
35447 #, no-wrap
35448 msgid ""
35449 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35450 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35451 "\n"
35452 msgstr ""
35453
35454 #. type: verbatim
35455 #: ../src/guestfs-structs.pod:111
35456 #, no-wrap
35457 msgid ""
35458 " struct guestfs_stat {\n"
35459 "   int64_t dev;\n"
35460 "   int64_t ino;\n"
35461 "   int64_t mode;\n"
35462 "   int64_t nlink;\n"
35463 "   int64_t uid;\n"
35464 "   int64_t gid;\n"
35465 "   int64_t rdev;\n"
35466 "   int64_t size;\n"
35467 "   int64_t blksize;\n"
35468 "   int64_t blocks;\n"
35469 "   int64_t atime;\n"
35470 "   int64_t mtime;\n"
35471 "   int64_t ctime;\n"
35472 " };\n"
35473 " \n"
35474 msgstr ""
35475
35476 #. type: verbatim
35477 #: ../src/guestfs-structs.pod:127
35478 #, no-wrap
35479 msgid ""
35480 " struct guestfs_stat_list {\n"
35481 "   uint32_t len; /* Number of elements in list. */\n"
35482 "   struct guestfs_stat *val; /* Elements. */\n"
35483 " };\n"
35484 " \n"
35485 msgstr ""
35486
35487 #. type: verbatim
35488 #: ../src/guestfs-structs.pod:132
35489 #, no-wrap
35490 msgid ""
35491 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35492 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35493 "\n"
35494 msgstr ""
35495
35496 #. type: verbatim
35497 #: ../src/guestfs-structs.pod:137
35498 #, no-wrap
35499 msgid ""
35500 " struct guestfs_statvfs {\n"
35501 "   int64_t bsize;\n"
35502 "   int64_t frsize;\n"
35503 "   int64_t blocks;\n"
35504 "   int64_t bfree;\n"
35505 "   int64_t bavail;\n"
35506 "   int64_t files;\n"
35507 "   int64_t ffree;\n"
35508 "   int64_t favail;\n"
35509 "   int64_t fsid;\n"
35510 "   int64_t flag;\n"
35511 "   int64_t namemax;\n"
35512 " };\n"
35513 " \n"
35514 msgstr ""
35515
35516 #. type: verbatim
35517 #: ../src/guestfs-structs.pod:151
35518 #, no-wrap
35519 msgid ""
35520 " struct guestfs_statvfs_list {\n"
35521 "   uint32_t len; /* Number of elements in list. */\n"
35522 "   struct guestfs_statvfs *val; /* Elements. */\n"
35523 " };\n"
35524 " \n"
35525 msgstr ""
35526
35527 #. type: verbatim
35528 #: ../src/guestfs-structs.pod:156
35529 #, no-wrap
35530 msgid ""
35531 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35532 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35533 "\n"
35534 msgstr ""
35535
35536 #. type: =head2
35537 #: ../src/guestfs-structs.pod:159
35538 msgid "guestfs_dirent"
35539 msgstr ""
35540
35541 #. type: verbatim
35542 #: ../src/guestfs-structs.pod:161
35543 #, no-wrap
35544 msgid ""
35545 " struct guestfs_dirent {\n"
35546 "   int64_t ino;\n"
35547 "   char ftyp;\n"
35548 "   char *name;\n"
35549 " };\n"
35550 " \n"
35551 msgstr ""
35552
35553 #. type: verbatim
35554 #: ../src/guestfs-structs.pod:167
35555 #, no-wrap
35556 msgid ""
35557 " struct guestfs_dirent_list {\n"
35558 "   uint32_t len; /* Number of elements in list. */\n"
35559 "   struct guestfs_dirent *val; /* Elements. */\n"
35560 " };\n"
35561 " \n"
35562 msgstr ""
35563
35564 #. type: verbatim
35565 #: ../src/guestfs-structs.pod:172
35566 #, no-wrap
35567 msgid ""
35568 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35569 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35570 "\n"
35571 msgstr ""
35572
35573 #. type: verbatim
35574 #: ../src/guestfs-structs.pod:177
35575 #, no-wrap
35576 msgid ""
35577 " struct guestfs_version {\n"
35578 "   int64_t major;\n"
35579 "   int64_t minor;\n"
35580 "   int64_t release;\n"
35581 "   char *extra;\n"
35582 " };\n"
35583 " \n"
35584 msgstr ""
35585
35586 #. type: verbatim
35587 #: ../src/guestfs-structs.pod:184
35588 #, no-wrap
35589 msgid ""
35590 " struct guestfs_version_list {\n"
35591 "   uint32_t len; /* Number of elements in list. */\n"
35592 "   struct guestfs_version *val; /* Elements. */\n"
35593 " };\n"
35594 " \n"
35595 msgstr ""
35596
35597 #. type: verbatim
35598 #: ../src/guestfs-structs.pod:189
35599 #, no-wrap
35600 msgid ""
35601 " void guestfs_free_version (struct guestfs_free_version *);\n"
35602 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35603 "\n"
35604 msgstr ""
35605
35606 #. type: =head2
35607 #: ../src/guestfs-structs.pod:192
35608 msgid "guestfs_xattr"
35609 msgstr ""
35610
35611 #. type: verbatim
35612 #: ../src/guestfs-structs.pod:194
35613 #, no-wrap
35614 msgid ""
35615 " struct guestfs_xattr {\n"
35616 "   char *attrname;\n"
35617 "   /* The next two fields describe a byte array. */\n"
35618 "   uint32_t attrval_len;\n"
35619 "   char *attrval;\n"
35620 " };\n"
35621 " \n"
35622 msgstr ""
35623
35624 #. type: verbatim
35625 #: ../src/guestfs-structs.pod:201
35626 #, no-wrap
35627 msgid ""
35628 " struct guestfs_xattr_list {\n"
35629 "   uint32_t len; /* Number of elements in list. */\n"
35630 "   struct guestfs_xattr *val; /* Elements. */\n"
35631 " };\n"
35632 " \n"
35633 msgstr ""
35634
35635 #. type: verbatim
35636 #: ../src/guestfs-structs.pod:206
35637 #, no-wrap
35638 msgid ""
35639 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35640 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35641 "\n"
35642 msgstr ""
35643
35644 #. type: =head2
35645 #: ../src/guestfs-structs.pod:209
35646 msgid "guestfs_inotify_event"
35647 msgstr ""
35648
35649 #. type: verbatim
35650 #: ../src/guestfs-structs.pod:211
35651 #, no-wrap
35652 msgid ""
35653 " struct guestfs_inotify_event {\n"
35654 "   int64_t in_wd;\n"
35655 "   uint32_t in_mask;\n"
35656 "   uint32_t in_cookie;\n"
35657 "   char *in_name;\n"
35658 " };\n"
35659 " \n"
35660 msgstr ""
35661
35662 #. type: verbatim
35663 #: ../src/guestfs-structs.pod:218
35664 #, no-wrap
35665 msgid ""
35666 " struct guestfs_inotify_event_list {\n"
35667 "   uint32_t len; /* Number of elements in list. */\n"
35668 "   struct guestfs_inotify_event *val; /* Elements. */\n"
35669 " };\n"
35670 " \n"
35671 msgstr ""
35672
35673 #. type: verbatim
35674 #: ../src/guestfs-structs.pod:223
35675 #, no-wrap
35676 msgid ""
35677 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35678 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35679 "\n"
35680 msgstr ""
35681
35682 #. type: =head2
35683 #: ../src/guestfs-structs.pod:226
35684 msgid "guestfs_partition"
35685 msgstr ""
35686
35687 #. type: verbatim
35688 #: ../src/guestfs-structs.pod:228
35689 #, no-wrap
35690 msgid ""
35691 " struct guestfs_partition {\n"
35692 "   int32_t part_num;\n"
35693 "   uint64_t part_start;\n"
35694 "   uint64_t part_end;\n"
35695 "   uint64_t part_size;\n"
35696 " };\n"
35697 " \n"
35698 msgstr ""
35699
35700 #. type: verbatim
35701 #: ../src/guestfs-structs.pod:235
35702 #, no-wrap
35703 msgid ""
35704 " struct guestfs_partition_list {\n"
35705 "   uint32_t len; /* Number of elements in list. */\n"
35706 "   struct guestfs_partition *val; /* Elements. */\n"
35707 " };\n"
35708 " \n"
35709 msgstr ""
35710
35711 #. type: verbatim
35712 #: ../src/guestfs-structs.pod:240
35713 #, no-wrap
35714 msgid ""
35715 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35716 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35717 "\n"
35718 msgstr ""
35719
35720 #. type: =head2
35721 #: ../src/guestfs-structs.pod:243
35722 msgid "guestfs_application"
35723 msgstr ""
35724
35725 #. type: verbatim
35726 #: ../src/guestfs-structs.pod:245
35727 #, no-wrap
35728 msgid ""
35729 " struct guestfs_application {\n"
35730 "   char *app_name;\n"
35731 "   char *app_display_name;\n"
35732 "   int32_t app_epoch;\n"
35733 "   char *app_version;\n"
35734 "   char *app_release;\n"
35735 "   char *app_install_path;\n"
35736 "   char *app_trans_path;\n"
35737 "   char *app_publisher;\n"
35738 "   char *app_url;\n"
35739 "   char *app_source_package;\n"
35740 "   char *app_summary;\n"
35741 "   char *app_description;\n"
35742 " };\n"
35743 " \n"
35744 msgstr ""
35745
35746 #. type: verbatim
35747 #: ../src/guestfs-structs.pod:260
35748 #, no-wrap
35749 msgid ""
35750 " struct guestfs_application_list {\n"
35751 "   uint32_t len; /* Number of elements in list. */\n"
35752 "   struct guestfs_application *val; /* Elements. */\n"
35753 " };\n"
35754 " \n"
35755 msgstr ""
35756
35757 #. type: verbatim
35758 #: ../src/guestfs-structs.pod:265
35759 #, no-wrap
35760 msgid ""
35761 " void guestfs_free_application (struct guestfs_free_application *);\n"
35762 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35763 "\n"
35764 msgstr ""
35765
35766 #. type: textblock
35767 #: ../src/guestfs.pod:5
35768 msgid "guestfs - Library for accessing and modifying virtual machine images"
35769 msgstr ""
35770
35771 #. type: verbatim
35772 #: ../src/guestfs.pod:11
35773 #, no-wrap
35774 msgid ""
35775 " guestfs_h *g = guestfs_create ();\n"
35776 " guestfs_add_drive (g, \"guest.img\");\n"
35777 " guestfs_launch (g);\n"
35778 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35779 " guestfs_touch (g, \"/hello\");\n"
35780 " guestfs_umount (g, \"/\");\n"
35781 " guestfs_close (g);\n"
35782 "\n"
35783 msgstr ""
35784 " guestfs_h *g = guestfs_create ();\n"
35785 " guestfs_add_drive (g, \"guest.img\");\n"
35786 " guestfs_launch (g);\n"
35787 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35788 " guestfs_touch (g, \"/hello\");\n"
35789 " guestfs_umount (g, \"/\");\n"
35790 " guestfs_close (g);\n"
35791 "\n"
35792
35793 #. type: textblock
35794 #: ../src/guestfs.pod:25
35795 msgid ""
35796 "Libguestfs is a library for accessing and modifying guest disk images.  "
35797 "Amongst the things this is good for: making batch configuration changes to "
35798 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35799 "between virtualization systems (see also: virt-p2v), performing partial "
35800 "backups, performing partial guest clones, cloning guests and changing "
35801 "registry/UUID/hostname info, and much else besides."
35802 msgstr ""
35803
35804 #. type: textblock
35805 #: ../src/guestfs.pod:33
35806 msgid ""
35807 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35808 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35809 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35810 "qcow2, vmdk."
35811 msgstr ""
35812
35813 #. type: textblock
35814 #: ../src/guestfs.pod:38
35815 msgid ""
35816 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35817 "what filesystem is in each LV, etc.).  It can also run commands in the "
35818 "context of the guest.  Also you can access filesystems over FUSE."
35819 msgstr ""
35820
35821 #. type: textblock
35822 #: ../src/guestfs.pod:43
35823 msgid ""
35824 "Libguestfs is a library that can be linked with C and C++ management "
35825 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35826 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
35827 "command line."
35828 msgstr ""
35829
35830 #. type: textblock
35831 #: ../src/guestfs.pod:48
35832 msgid ""
35833 "You don't need to be root to use libguestfs, although obviously you do need "
35834 "enough permissions to access the disk images."
35835 msgstr ""
35836
35837 #. type: textblock
35838 #: ../src/guestfs.pod:51
35839 msgid ""
35840 "Libguestfs is a large API because it can do many things.  For a gentle "
35841 "introduction, please read the L</API OVERVIEW> section next."
35842 msgstr ""
35843
35844 #. type: textblock
35845 #: ../src/guestfs.pod:54
35846 msgid ""
35847 "There are also some example programs in the L<guestfs-examples(3)> manual "
35848 "page."
35849 msgstr ""
35850
35851 #. type: =head1
35852 #: ../src/guestfs.pod:57
35853 msgid "API OVERVIEW"
35854 msgstr ""
35855
35856 #. type: textblock
35857 #: ../src/guestfs.pod:59
35858 msgid ""
35859 "This section provides a gentler overview of the libguestfs API.  We also try "
35860 "to group API calls together, where that may not be obvious from reading "
35861 "about the individual calls in the main section of this manual."
35862 msgstr ""
35863
35864 #. type: =head2
35865 #: ../src/guestfs.pod:64
35866 msgid "HANDLES"
35867 msgstr ""
35868
35869 #. type: textblock
35870 #: ../src/guestfs.pod:66
35871 msgid ""
35872 "Before you can use libguestfs calls, you have to create a handle.  Then you "
35873 "must add at least one disk image to the handle, followed by launching the "
35874 "handle, then performing whatever operations you want, and finally closing "
35875 "the handle.  By convention we use the single letter C<g> for the name of the "
35876 "handle variable, although of course you can use any name you want."
35877 msgstr ""
35878
35879 #. type: textblock
35880 #: ../src/guestfs.pod:73
35881 msgid "The general structure of all libguestfs-using programs looks like this:"
35882 msgstr ""
35883
35884 #. type: verbatim
35885 #: ../src/guestfs.pod:76
35886 #, no-wrap
35887 msgid ""
35888 " guestfs_h *g = guestfs_create ();\n"
35889 " \n"
35890 msgstr ""
35891
35892 #. type: verbatim
35893 #: ../src/guestfs.pod:78
35894 #, no-wrap
35895 msgid ""
35896 " /* Call guestfs_add_drive additional times if there are\n"
35897 "  * multiple disk images.\n"
35898 "  */\n"
35899 " guestfs_add_drive (g, \"guest.img\");\n"
35900 " \n"
35901 msgstr ""
35902
35903 #. type: verbatim
35904 #: ../src/guestfs.pod:83
35905 #, no-wrap
35906 msgid ""
35907 " /* Most manipulation calls won't work until you've launched\n"
35908 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
35909 "  * and _before_ other commands.\n"
35910 "  */\n"
35911 " guestfs_launch (g);\n"
35912 " \n"
35913 msgstr ""
35914
35915 #. type: verbatim
35916 #: ../src/guestfs.pod:89
35917 #, no-wrap
35918 msgid ""
35919 " /* Now you can examine what partitions, LVs etc are available.\n"
35920 "  */\n"
35921 " char **partitions = guestfs_list_partitions (g);\n"
35922 " char **logvols = guestfs_lvs (g);\n"
35923 " \n"
35924 msgstr ""
35925
35926 #. type: verbatim
35927 #: ../src/guestfs.pod:94
35928 #, no-wrap
35929 msgid ""
35930 " /* To access a filesystem in the image, you must mount it.\n"
35931 "  */\n"
35932 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35933 " \n"
35934 msgstr ""
35935
35936 #. type: verbatim
35937 #: ../src/guestfs.pod:98
35938 #, no-wrap
35939 msgid ""
35940 " /* Now you can perform filesystem actions on the guest\n"
35941 "  * disk image.\n"
35942 "  */\n"
35943 " guestfs_touch (g, \"/hello\");\n"
35944 " \n"
35945 msgstr ""
35946
35947 #. type: verbatim
35948 #: ../src/guestfs.pod:103
35949 #, no-wrap
35950 msgid ""
35951 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
35952 "  * it is done automatically when you close the handle.  See\n"
35953 "  * discussion of autosync in this page.\n"
35954 "  */\n"
35955 " guestfs_sync (g);\n"
35956 " \n"
35957 msgstr ""
35958
35959 #. type: verbatim
35960 #: ../src/guestfs.pod:109
35961 #, no-wrap
35962 msgid ""
35963 " /* Close the handle 'g'. */\n"
35964 " guestfs_close (g);\n"
35965 "\n"
35966 msgstr ""
35967
35968 #. type: textblock
35969 #: ../src/guestfs.pod:112
35970 msgid ""
35971 "The code above doesn't include any error checking.  In real code you should "
35972 "check return values carefully for errors.  In general all functions that "
35973 "return integers return C<-1> on error, and all functions that return "
35974 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
35975 "how to handle errors, and consult the documentation for each function call "
35976 "below to see precisely how they return error indications.  See L<guestfs-"
35977 "examples(3)> for fully worked examples."
35978 msgstr ""
35979
35980 #. type: =head2
35981 #: ../src/guestfs.pod:121
35982 msgid "DISK IMAGES"
35983 msgstr ""
35984
35985 #. type: textblock
35986 #: ../src/guestfs.pod:123
35987 msgid ""
35988 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35989 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35990 "actual block device, or simply an empty file of zeroes that you have created "
35991 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
35992 "of these."
35993 msgstr ""
35994
35995 #. type: textblock
35996 #: ../src/guestfs.pod:129
35997 msgid ""
35998 "The call you should use in modern code for adding drives is L</"
35999 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
36000 "specifying that the format is raw, do:"
36001 msgstr ""
36002
36003 #. type: verbatim
36004 #: ../src/guestfs.pod:133
36005 #, no-wrap
36006 msgid ""
36007 " guestfs_add_drive_opts (g, filename,\n"
36008 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36009 "                         -1);\n"
36010 "\n"
36011 msgstr ""
36012
36013 #. type: textblock
36014 #: ../src/guestfs.pod:137
36015 msgid "You can add a disk read-only using:"
36016 msgstr ""
36017
36018 #. type: verbatim
36019 #: ../src/guestfs.pod:139
36020 #, no-wrap
36021 msgid ""
36022 " guestfs_add_drive_opts (g, filename,\n"
36023 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36024 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36025 "                         -1);\n"
36026 "\n"
36027 msgstr ""
36028
36029 #. type: textblock
36030 #: ../src/guestfs.pod:144
36031 msgid ""
36032 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
36033 "libguestfs won't modify the file."
36034 msgstr ""
36035
36036 #. type: textblock
36037 #: ../src/guestfs.pod:147
36038 msgid ""
36039 "Be extremely cautious if the disk image is in use, eg. if it is being used "
36040 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
36041 "corruption, but adding it read-only is safe."
36042 msgstr ""
36043
36044 #. type: textblock
36045 #: ../src/guestfs.pod:151
36046 msgid ""
36047 "You must add at least one disk image, and you may add multiple disk images.  "
36048 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
36049 "first one you added), C</dev/sdb> (for the second one you added), etc."
36050 msgstr ""
36051
36052 #. type: textblock
36053 #: ../src/guestfs.pod:156
36054 msgid ""
36055 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
36056 "can call L</guestfs_list_devices> to get a list of the device names, in the "
36057 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
36058 msgstr ""
36059
36060 #. type: =head2
36061 #: ../src/guestfs.pod:161
36062 msgid "MOUNTING"
36063 msgstr ""
36064
36065 #. type: textblock
36066 #: ../src/guestfs.pod:163
36067 msgid ""
36068 "Before you can read or write files, create directories and so on in a disk "
36069 "image that contains filesystems, you have to mount those filesystems using "
36070 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
36071 "a disk image contains (for example) one partition with a filesystem on that "
36072 "partition, then you can mount it directly:"
36073 msgstr ""
36074
36075 #. type: verbatim
36076 #: ../src/guestfs.pod:170
36077 #, no-wrap
36078 msgid ""
36079 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36080 "\n"
36081 msgstr ""
36082
36083 #. type: textblock
36084 #: ../src/guestfs.pod:172
36085 msgid ""
36086 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
36087 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
36088 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
36089 "that these are libguestfs virtual devices, and are nothing to do with host "
36090 "devices."
36091 msgstr ""
36092
36093 #. type: textblock
36094 #: ../src/guestfs.pod:178
36095 msgid ""
36096 "If you are given a disk image and you don't know what it contains then you "
36097 "have to find out.  Libguestfs can do that too: use L</"
36098 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
36099 "LVs, and either try mounting each to see what is mountable, or else examine "
36100 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
36101 "filesystems, use L</guestfs_list_filesystems>."
36102 msgstr ""
36103
36104 #. type: textblock
36105 #: ../src/guestfs.pod:186
36106 msgid ""
36107 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
36108 "L</INSPECTION> below).  But you might find it easier to look at higher level "
36109 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
36110 msgstr ""
36111
36112 #. type: textblock
36113 #: ../src/guestfs.pod:191
36114 msgid ""
36115 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
36116 "several other variations of the C<guestfs_mount_*> call."
36117 msgstr ""
36118
36119 #. type: =head2
36120 #: ../src/guestfs.pod:194
36121 msgid "FILESYSTEM ACCESS AND MODIFICATION"
36122 msgstr ""
36123
36124 #. type: textblock
36125 #: ../src/guestfs.pod:196
36126 msgid ""
36127 "The majority of the libguestfs API consists of fairly low-level calls for "
36128 "accessing and modifying the files, directories, symlinks etc on mounted "
36129 "filesystems.  There are over a hundred such calls which you can find listed "
36130 "in detail below in this man page, and we don't even pretend to cover them "
36131 "all in this overview."
36132 msgstr ""
36133
36134 #. type: textblock
36135 #: ../src/guestfs.pod:202
36136 msgid ""
36137 "Specify filenames as full paths, starting with C<\"/\"> and including the "
36138 "mount point."
36139 msgstr ""
36140
36141 #. type: textblock
36142 #: ../src/guestfs.pod:205
36143 msgid ""
36144 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
36145 "the file called C<\"etc/passwd\"> then you could do:"
36146 msgstr ""
36147
36148 #. type: verbatim
36149 #: ../src/guestfs.pod:208
36150 #, no-wrap
36151 msgid ""
36152 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36153 "\n"
36154 msgstr ""
36155
36156 #. type: textblock
36157 #: ../src/guestfs.pod:210
36158 msgid ""
36159 "This would return C<data> as a newly allocated buffer containing the full "
36160 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
36161 "or C<NULL> if there was an error."
36162 msgstr ""
36163
36164 #. type: textblock
36165 #: ../src/guestfs.pod:214
36166 msgid ""
36167 "As another example, to create a top-level directory on that filesystem "
36168 "called C<\"var\"> you would do:"
36169 msgstr ""
36170
36171 #. type: verbatim
36172 #: ../src/guestfs.pod:217
36173 #, no-wrap
36174 msgid ""
36175 " guestfs_mkdir (g, \"/var\");\n"
36176 "\n"
36177 msgstr ""
36178
36179 #. type: textblock
36180 #: ../src/guestfs.pod:219
36181 msgid "To create a symlink you could do:"
36182 msgstr ""
36183
36184 #. type: verbatim
36185 #: ../src/guestfs.pod:221
36186 #, no-wrap
36187 msgid ""
36188 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36189 "               \"/etc/rc3.d/S30portmap\");\n"
36190 "\n"
36191 msgstr ""
36192
36193 #. type: textblock
36194 #: ../src/guestfs.pod:224
36195 msgid ""
36196 "Libguestfs will reject attempts to use relative paths and there is no "
36197 "concept of a current working directory."
36198 msgstr ""
36199
36200 #. type: textblock
36201 #: ../src/guestfs.pod:227
36202 msgid ""
36203 "Libguestfs can return errors in many situations: for example if the "
36204 "filesystem isn't writable, or if a file or directory that you requested "
36205 "doesn't exist.  If you are using the C API (documented here)  you have to "
36206 "check for those error conditions after each call.  (Other language bindings "
36207 "turn these errors into exceptions)."
36208 msgstr ""
36209
36210 #. type: textblock
36211 #: ../src/guestfs.pod:233
36212 msgid ""
36213 "File writes are affected by the per-handle umask, set by calling L</"
36214 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
36215 msgstr ""
36216
36217 #. type: =head2
36218 #: ../src/guestfs.pod:236
36219 msgid "PARTITIONING"
36220 msgstr ""
36221
36222 #. type: textblock
36223 #: ../src/guestfs.pod:238
36224 msgid ""
36225 "Libguestfs contains API calls to read, create and modify partition tables on "
36226 "disk images."
36227 msgstr ""
36228
36229 #. type: textblock
36230 #: ../src/guestfs.pod:241
36231 msgid ""
36232 "In the common case where you want to create a single partition covering the "
36233 "whole disk, you should use the L</guestfs_part_disk> call:"
36234 msgstr ""
36235
36236 #. type: verbatim
36237 #: ../src/guestfs.pod:245
36238 #, no-wrap
36239 msgid ""
36240 " const char *parttype = \"mbr\";\n"
36241 " if (disk_is_larger_than_2TB)\n"
36242 "   parttype = \"gpt\";\n"
36243 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36244 "\n"
36245 msgstr ""
36246
36247 #. type: textblock
36248 #: ../src/guestfs.pod:250
36249 msgid ""
36250 "Obviously this effectively wipes anything that was on that disk image before."
36251 msgstr ""
36252
36253 #. type: =head2
36254 #: ../src/guestfs.pod:253
36255 msgid "LVM2"
36256 msgstr ""
36257
36258 #. type: textblock
36259 #: ../src/guestfs.pod:255
36260 msgid ""
36261 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
36262 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
36263 "you familiarize yourself with the concepts of physical volumes, volume "
36264 "groups and logical volumes."
36265 msgstr ""
36266
36267 #. type: textblock
36268 #: ../src/guestfs.pod:260
36269 msgid ""
36270 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
36271 "tldp.org/HOWTO/LVM-HOWTO/>."
36272 msgstr ""
36273
36274 #. type: =head2
36275 #: ../src/guestfs.pod:263
36276 msgid "DOWNLOADING"
36277 msgstr ""
36278
36279 #. type: textblock
36280 #: ../src/guestfs.pod:265
36281 msgid ""
36282 "Use L</guestfs_cat> to download small, text only files.  This call is "
36283 "limited to files which are less than 2 MB and which cannot contain any ASCII "
36284 "NUL (C<\\0>) characters.  However the API is very simple to use."
36285 msgstr ""
36286
36287 #. type: textblock
36288 #: ../src/guestfs.pod:269
36289 msgid ""
36290 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
36291 "bit data, since it returns a (pointer, size) pair.  However it is still "
36292 "limited to \"small\" files, less than 2 MB."
36293 msgstr ""
36294
36295 #. type: textblock
36296 #: ../src/guestfs.pod:273
36297 msgid ""
36298 "L</guestfs_download> can be used to download any file, with no limits on "
36299 "content or size (even files larger than 4 GB)."
36300 msgstr ""
36301
36302 #. type: textblock
36303 #: ../src/guestfs.pod:276
36304 msgid ""
36305 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
36306 msgstr ""
36307
36308 #. type: =head2
36309 #: ../src/guestfs.pod:279
36310 msgid "UPLOADING"
36311 msgstr ""
36312
36313 #. type: textblock
36314 #: ../src/guestfs.pod:281
36315 msgid ""
36316 "It's often the case that you want to write a file or files to the disk image."
36317 msgstr ""
36318
36319 #. type: textblock
36320 #: ../src/guestfs.pod:284
36321 msgid ""
36322 "To write a small file with fixed content, use L</guestfs_write>.  To create "
36323 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
36324 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
36325 "of other functions for creating test files, for example L</guestfs_fill> and "
36326 "L</guestfs_fill_pattern>."
36327 msgstr ""
36328
36329 #. type: textblock
36330 #: ../src/guestfs.pod:290
36331 msgid ""
36332 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
36333 "file content or size (even files larger than 4 GB)."
36334 msgstr ""
36335
36336 #. type: textblock
36337 #: ../src/guestfs.pod:293
36338 msgid ""
36339 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36340 msgstr ""
36341
36342 #. type: textblock
36343 #: ../src/guestfs.pod:295
36344 msgid ""
36345 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36346 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36347 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
36348 "in a predictable way (eg. adding it last after all other drives) then you "
36349 "can get the device name from L</guestfs_list_devices> and mount it directly "
36350 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
36351 "portable between kernel versions, and they don't support labels or UUIDs.  "
36352 "If you want to pre-build an image or you need to mount it using a label or "
36353 "UUID, use an ISO image instead."
36354 msgstr ""
36355
36356 #. type: =head2
36357 #: ../src/guestfs.pod:306
36358 msgid "COPYING"
36359 msgstr ""
36360
36361 #. type: textblock
36362 #: ../src/guestfs.pod:308
36363 msgid ""
36364 "There are various different commands for copying between files and devices "
36365 "and in and out of the guest filesystem.  These are summarised in the table "
36366 "below."
36367 msgstr ""
36368
36369 #. type: =item
36370 #: ../src/guestfs.pod:314
36371 msgid "B<file> to B<file>"
36372 msgstr ""
36373
36374 #. type: textblock
36375 #: ../src/guestfs.pod:316
36376 msgid ""
36377 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36378 "directories recursively."
36379 msgstr ""
36380
36381 #. type: textblock
36382 #: ../src/guestfs.pod:319
36383 msgid ""
36384 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36385 msgstr ""
36386
36387 #. type: =item
36388 #: ../src/guestfs.pod:322
36389 msgid "B<file> to B<device>"
36390 msgstr ""
36391
36392 #. type: =item
36393 #: ../src/guestfs.pod:324
36394 msgid "B<device> to B<file>"
36395 msgstr ""
36396
36397 #. type: =item
36398 #: ../src/guestfs.pod:326
36399 msgid "B<device> to B<device>"
36400 msgstr ""
36401
36402 #. type: textblock
36403 #: ../src/guestfs.pod:328
36404 msgid ""
36405 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36406 "guestfs_copy_device_to_device>."
36407 msgstr ""
36408
36409 #. type: textblock
36410 #: ../src/guestfs.pod:331
36411 msgid "Example: duplicate the contents of an LV:"
36412 msgstr ""
36413
36414 #. type: verbatim
36415 #: ../src/guestfs.pod:333
36416 #, no-wrap
36417 msgid ""
36418 " guestfs_copy_device_to_device (g,\n"
36419 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36420 "         /* -1 marks the end of the list of optional parameters */\n"
36421 "         -1);\n"
36422 "\n"
36423 msgstr ""
36424
36425 #. type: textblock
36426 #: ../src/guestfs.pod:338
36427 msgid ""
36428 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36429 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
36430 "optional C<size> parameter:"
36431 msgstr ""
36432
36433 #. type: verbatim
36434 #: ../src/guestfs.pod:342
36435 #, no-wrap
36436 msgid ""
36437 " guestfs_copy_device_to_device (g,\n"
36438 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36439 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36440 "         -1);\n"
36441 "\n"
36442 msgstr ""
36443
36444 #. type: =item
36445 #: ../src/guestfs.pod:347
36446 msgid "B<file on the host> to B<file or device>"
36447 msgstr ""
36448
36449 #. type: textblock
36450 #: ../src/guestfs.pod:349
36451 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
36452 msgstr ""
36453
36454 #. type: =item
36455 #: ../src/guestfs.pod:351
36456 msgid "B<file or device> to B<file on the host>"
36457 msgstr ""
36458
36459 #. type: textblock
36460 #: ../src/guestfs.pod:353
36461 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
36462 msgstr ""
36463
36464 #. type: =head2
36465 #: ../src/guestfs.pod:357
36466 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36467 msgstr ""
36468
36469 #. type: textblock
36470 #: ../src/guestfs.pod:359
36471 msgid ""
36472 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36473 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36474 "appears you can only upload and download to files.  However many Un*x-like "
36475 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36476 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36477 "and arbitrary file descriptor N."
36478 msgstr ""
36479
36480 #. type: textblock
36481 #: ../src/guestfs.pod:367
36482 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36483 msgstr ""
36484
36485 #. type: verbatim
36486 #: ../src/guestfs.pod:370
36487 #, no-wrap
36488 msgid ""
36489 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36490 "\n"
36491 msgstr ""
36492
36493 #. type: textblock
36494 #: ../src/guestfs.pod:372
36495 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36496 msgstr ""
36497
36498 #. type: verbatim
36499 #: ../src/guestfs.pod:374
36500 #, no-wrap
36501 msgid ""
36502 " char devfd[64];\n"
36503 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36504 " guestfs_tar_out (g, \"/\", devfd);\n"
36505 "\n"
36506 msgstr ""
36507
36508 #. type: =head2
36509 #: ../src/guestfs.pod:378
36510 msgid "LISTING FILES"
36511 msgstr ""
36512
36513 #. type: textblock
36514 #: ../src/guestfs.pod:380
36515 msgid ""
36516 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36517 "L<guestfish(1)>-equivalent command C<ll>)."
36518 msgstr ""
36519
36520 #. type: textblock
36521 #: ../src/guestfs.pod:383
36522 msgid ""
36523 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36524 "programs, as a flat list of strings."
36525 msgstr ""
36526
36527 #. type: textblock
36528 #: ../src/guestfs.pod:386
36529 msgid ""
36530 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36531 "directory, plus additional information about each one.  It is more "
36532 "equivalent to using the L<readdir(3)> call on a local filesystem."
36533 msgstr ""
36534
36535 #. type: textblock
36536 #: ../src/guestfs.pod:390
36537 msgid ""
36538 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36539 msgstr ""
36540
36541 #. type: =head2
36542 #: ../src/guestfs.pod:393
36543 msgid "RUNNING COMMANDS"
36544 msgstr ""
36545
36546 #. type: textblock
36547 #: ../src/guestfs.pod:395
36548 msgid ""
36549 "Although libguestfs is primarily an API for manipulating files inside guest "
36550 "images, we also provide some limited facilities for running commands inside "
36551 "guests."
36552 msgstr ""
36553
36554 #. type: textblock
36555 #: ../src/guestfs.pod:399
36556 msgid "There are many limitations to this:"
36557 msgstr ""
36558
36559 #. type: textblock
36560 #: ../src/guestfs.pod:405
36561 msgid ""
36562 "The kernel version that the command runs under will be different from what "
36563 "it expects."
36564 msgstr ""
36565
36566 #. type: textblock
36567 #: ../src/guestfs.pod:410
36568 msgid ""
36569 "If the command needs to communicate with daemons, then most likely they "
36570 "won't be running."
36571 msgstr ""
36572
36573 #. type: textblock
36574 #: ../src/guestfs.pod:415
36575 msgid "The command will be running in limited memory."
36576 msgstr ""
36577
36578 #. type: textblock
36579 #: ../src/guestfs.pod:419
36580 msgid ""
36581 "The network may not be available unless you enable it (see L</"
36582 "guestfs_set_network>)."
36583 msgstr ""
36584
36585 #. type: textblock
36586 #: ../src/guestfs.pod:424
36587 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36588 msgstr ""
36589
36590 #. type: textblock
36591 #: ../src/guestfs.pod:428
36592 msgid ""
36593 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36594 msgstr ""
36595
36596 #. type: textblock
36597 #: ../src/guestfs.pod:433
36598 msgid ""
36599 "For SELinux guests, you may need to enable SELinux and load policy first.  "
36600 "See L</SELINUX> in this manpage."
36601 msgstr ""
36602
36603 #. type: textblock
36604 #: ../src/guestfs.pod:438
36605 msgid ""
36606 "I<Security:> It is not safe to run commands from untrusted, possibly "
36607 "malicious guests.  These commands may attempt to exploit your program by "
36608 "sending unexpected output.  They could also try to exploit the Linux kernel "
36609 "or qemu provided by the libguestfs appliance.  They could use the network "
36610 "provided by the libguestfs appliance to bypass ordinary network partitions "
36611 "and firewalls.  They could use the elevated privileges or different SELinux "
36612 "context of your program to their advantage."
36613 msgstr ""
36614
36615 #. type: textblock
36616 #: ../src/guestfs.pod:447
36617 msgid ""
36618 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36619 "(a script which runs when the guest next boots normally), and to have this "
36620 "script run the commands you want in the normal context of the running guest, "
36621 "network security and so on.  For information about other security issues, "
36622 "see L</SECURITY>."
36623 msgstr ""
36624
36625 #. type: textblock
36626 #: ../src/guestfs.pod:455
36627 msgid ""
36628 "The two main API calls to run commands are L</guestfs_command> and L</"
36629 "guestfs_sh> (there are also variations)."
36630 msgstr ""
36631
36632 #. type: textblock
36633 #: ../src/guestfs.pod:458
36634 msgid ""
36635 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36636 "shell globs, redirections, etc will work."
36637 msgstr ""
36638
36639 #. type: =head2
36640 #: ../src/guestfs.pod:461
36641 msgid "CONFIGURATION FILES"
36642 msgstr ""
36643
36644 #. type: textblock
36645 #: ../src/guestfs.pod:463
36646 msgid ""
36647 "To read and write configuration files in Linux guest filesystems, we "
36648 "strongly recommend using Augeas.  For example, Augeas understands how to "
36649 "read and write, say, a Linux shadow password file or X.org configuration "
36650 "file, and so avoids you having to write that code."
36651 msgstr ""
36652
36653 #. type: textblock
36654 #: ../src/guestfs.pod:468
36655 msgid ""
36656 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
36657 "document Augeas itself here because there is excellent documentation on the "
36658 "L<http://augeas.net/> website."
36659 msgstr ""
36660
36661 #. type: textblock
36662 #: ../src/guestfs.pod:472
36663 msgid ""
36664 "If you don't want to use Augeas (you fool!) then try calling L</"
36665 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36666 "over."
36667 msgstr ""
36668
36669 #. type: =head2
36670 #: ../src/guestfs.pod:476
36671 msgid "SELINUX"
36672 msgstr ""
36673
36674 #. type: textblock
36675 #: ../src/guestfs.pod:478
36676 msgid ""
36677 "We support SELinux guests.  To ensure that labeling happens correctly in "
36678 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36679 msgstr ""
36680
36681 #. type: textblock
36682 #: ../src/guestfs.pod:486
36683 msgid "Before launching, do:"
36684 msgstr ""
36685
36686 #. type: verbatim
36687 #: ../src/guestfs.pod:488
36688 #, no-wrap
36689 msgid ""
36690 " guestfs_set_selinux (g, 1);\n"
36691 "\n"
36692 msgstr ""
36693
36694 #. type: textblock
36695 #: ../src/guestfs.pod:492
36696 msgid ""
36697 "After mounting the guest's filesystem(s), load the policy.  This is best "
36698 "done by running the L<load_policy(8)> command in the guest itself:"
36699 msgstr ""
36700
36701 #. type: verbatim
36702 #: ../src/guestfs.pod:496
36703 #, no-wrap
36704 msgid ""
36705 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36706 "\n"
36707 msgstr ""
36708
36709 #. type: textblock
36710 #: ../src/guestfs.pod:498
36711 msgid ""
36712 "(Older versions of C<load_policy> require you to specify the name of the "
36713 "policy file)."
36714 msgstr ""
36715
36716 #. type: textblock
36717 #: ../src/guestfs.pod:503
36718 msgid ""
36719 "Optionally, set the security context for the API.  The correct security "
36720 "context to use can only be known by inspecting the guest.  As an example:"
36721 msgstr ""
36722
36723 #. type: verbatim
36724 #: ../src/guestfs.pod:507
36725 #, no-wrap
36726 msgid ""
36727 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36728 "\n"
36729 msgstr ""
36730
36731 #. type: textblock
36732 #: ../src/guestfs.pod:511
36733 msgid "This will work for running commands and editing existing files."
36734 msgstr ""
36735
36736 #. type: textblock
36737 #: ../src/guestfs.pod:513
36738 msgid ""
36739 "When new files are created, you may need to label them explicitly, for "
36740 "example by running the external command C<restorecon pathname>."
36741 msgstr ""
36742
36743 #. type: =head2
36744 #: ../src/guestfs.pod:517
36745 msgid "UMASK"
36746 msgstr ""
36747
36748 #. type: textblock
36749 #: ../src/guestfs.pod:519
36750 msgid ""
36751 "Certain calls are affected by the current file mode creation mask (the "
36752 "\"umask\").  In particular ones which create files or directories, such as "
36753 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
36754 "either the default mode that the file is created with or modifies the mode "
36755 "that you supply."
36756 msgstr ""
36757
36758 #. type: textblock
36759 #: ../src/guestfs.pod:525
36760 msgid ""
36761 "The default umask is C<022>, so files are created with modes such as C<0644> "
36762 "and directories with C<0755>."
36763 msgstr ""
36764
36765 #. type: textblock
36766 #: ../src/guestfs.pod:528
36767 msgid ""
36768 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
36769 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
36770 "guestfs_chmod> after creating each file or directory."
36771 msgstr ""
36772
36773 #. type: textblock
36774 #: ../src/guestfs.pod:532
36775 msgid "For more information about umask, see L<umask(2)>."
36776 msgstr ""
36777
36778 #. type: textblock
36779 #: ../src/guestfs.pod:536
36780 msgid ""
36781 "Libguestfs allows you to access Linux guests which have been encrypted using "
36782 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36783 "standard.  This includes nearly all whole disk encryption systems used by "
36784 "modern Linux guests."
36785 msgstr ""
36786
36787 #. type: textblock
36788 #: ../src/guestfs.pod:542
36789 msgid ""
36790 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36791 "returns the string C<crypto_LUKS>)."
36792 msgstr ""
36793
36794 #. type: textblock
36795 #: ../src/guestfs.pod:545
36796 msgid ""
36797 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
36798 "will require the passphrase!"
36799 msgstr ""
36800
36801 #. type: textblock
36802 #: ../src/guestfs.pod:548
36803 msgid ""
36804 "Opening a LUKS device creates a new device mapper device called C</dev/"
36805 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36806 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
36807 "from and encrypted to the underlying block device respectively."
36808 msgstr ""
36809
36810 #. type: textblock
36811 #: ../src/guestfs.pod:554
36812 msgid ""
36813 "LVM volume groups on the device can be made visible by calling L</"
36814 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
36815 "(s) can now be mounted in the usual way."
36816 msgstr ""
36817
36818 #. type: textblock
36819 #: ../src/guestfs.pod:558
36820 msgid ""
36821 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
36822 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36823 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
36824 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36825 "underlying encrypted block device)."
36826 msgstr ""
36827
36828 #. type: =head2
36829 #: ../src/guestfs.pod:565
36830 msgid "INSPECTION"
36831 msgstr ""
36832
36833 #. type: textblock
36834 #: ../src/guestfs.pod:567
36835 msgid ""
36836 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36837 "contains operating systems, an install CD or a live CD.  (These APIs used to "
36838 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36839 "version 1.5.3 the most frequently used part of this library has been "
36840 "rewritten in C and moved into the core code)."
36841 msgstr ""
36842
36843 #. type: textblock
36844 #: ../src/guestfs.pod:574
36845 msgid ""
36846 "Add all disks belonging to the unknown virtual machine and call L</"
36847 "guestfs_launch> in the usual way."
36848 msgstr ""
36849
36850 #. type: textblock
36851 #: ../src/guestfs.pod:577
36852 msgid ""
36853 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
36854 "and certain heuristics, and returns a list of operating systems that were "
36855 "found.  An empty list means none were found.  A single element is the root "
36856 "filesystem of the operating system.  For dual- or multi-boot guests, "
36857 "multiple roots can be returned, each one corresponding to a separate "
36858 "operating system.  (Multi-boot virtual machines are extremely rare in the "
36859 "world of virtualization, but since this scenario can happen, we have built "
36860 "libguestfs to deal with it.)"
36861 msgstr ""
36862
36863 #. type: textblock
36864 #: ../src/guestfs.pod:586
36865 msgid ""
36866 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36867 "to get additional details about that operating system.  For example, call L</"
36868 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36869 "Windows and Linux-based operating systems respectively."
36870 msgstr ""
36871
36872 #. type: textblock
36873 #: ../src/guestfs.pod:592
36874 msgid ""
36875 "Un*x-like and Linux-based operating systems usually consist of several "
36876 "filesystems which are mounted at boot time (for example, a separate boot "
36877 "partition mounted on C</boot>).  The inspection rules are able to detect how "
36878 "filesystems correspond to mount points.  Call "
36879 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
36880 "hash table like this example:"
36881 msgstr ""
36882
36883 #. type: verbatim
36884 #: ../src/guestfs.pod:599
36885 #, no-wrap
36886 msgid ""
36887 " /boot => /dev/sda1\n"
36888 " /     => /dev/vg_guest/lv_root\n"
36889 " /usr  => /dev/vg_guest/lv_usr\n"
36890 "\n"
36891 msgstr ""
36892
36893 #. type: textblock
36894 #: ../src/guestfs.pod:603
36895 msgid ""
36896 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36897 "filesystems as suggested."
36898 msgstr ""
36899
36900 #. type: textblock
36901 #: ../src/guestfs.pod:606
36902 msgid ""
36903 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36904 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
36905 msgstr ""
36906
36907 #. type: textblock
36908 #: ../src/guestfs.pod:610
36909 msgid ""
36910 "Inspection currently only works for some common operating systems.  "
36911 "Contributors are welcome to send patches for other operating systems that we "
36912 "currently cannot detect."
36913 msgstr ""
36914
36915 #. type: textblock
36916 #: ../src/guestfs.pod:614
36917 msgid ""
36918 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
36919 "for more details.  The L</guestfs_inspect_os> function just ignores any "
36920 "encrypted devices."
36921 msgstr ""
36922
36923 #. type: textblock
36924 #: ../src/guestfs.pod:618
36925 msgid ""
36926 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36927 "inspection and caches the results in the guest handle.  Subsequent calls to "
36928 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36929 "read the disks.  If you change the content of the guest disks, you can redo "
36930 "inspection by calling L</guestfs_inspect_os> again.  (L</"
36931 "guestfs_inspect_list_applications> works a little differently from the other "
36932 "calls and does read the disks.  See documentation for that function for "
36933 "details)."
36934 msgstr ""
36935
36936 #. type: =head3
36937 #: ../src/guestfs.pod:627
36938 msgid "INSPECTING INSTALL DISKS"
36939 msgstr ""
36940
36941 #. type: textblock
36942 #: ../src/guestfs.pod:629
36943 msgid ""
36944 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36945 "CDs and more."
36946 msgstr ""
36947
36948 #. type: textblock
36949 #: ../src/guestfs.pod:632
36950 msgid ""
36951 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36952 "system, which currently can be C<installed> (a regular operating system) or "
36953 "C<installer> (some sort of install disk)."
36954 msgstr ""
36955
36956 #. type: textblock
36957 #: ../src/guestfs.pod:636
36958 msgid ""
36959 "Further information is available about the operating system that can be "
36960 "installed using the regular inspection APIs like L</"
36961 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36962 msgstr ""
36963
36964 #. type: textblock
36965 #: ../src/guestfs.pod:641
36966 msgid ""
36967 "Some additional information specific to installer disks is also available "
36968 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36969 "guestfs_inspect_is_multipart> calls."
36970 msgstr ""
36971
36972 #. type: =head2
36973 #: ../src/guestfs.pod:646
36974 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36975 msgstr ""
36976
36977 #. type: textblock
36978 #: ../src/guestfs.pod:648
36979 msgid ""
36980 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
36981 "ntfs-3g.org/> driver."
36982 msgstr ""
36983
36984 #. type: =head3
36985 #: ../src/guestfs.pod:651
36986 msgid "DRIVE LETTERS AND PATHS"
36987 msgstr ""
36988
36989 #. type: textblock
36990 #: ../src/guestfs.pod:653
36991 msgid ""
36992 "DOS and Windows still use drive letters, and the filesystems are always "
36993 "treated as case insensitive by Windows itself, and therefore you might find "
36994 "a Windows configuration file referring to a path like C<c:\\windows"
36995 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
36996 "might be referred to as C</WINDOWS/System32>."
36997 msgstr ""
36998
36999 #. type: textblock
37000 #: ../src/guestfs.pod:659
37001 msgid ""
37002 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
37003 "L</guestfs_inspect_get_drive_mappings>)"
37004 msgstr ""
37005
37006 #. type: textblock
37007 #: ../src/guestfs.pod:662
37008 msgid ""
37009 "Dealing with separator characters (backslash vs forward slash) is outside "
37010 "the scope of libguestfs, but usually a simple character replacement will "
37011 "work."
37012 msgstr ""
37013
37014 #. type: textblock
37015 #: ../src/guestfs.pod:666
37016 msgid ""
37017 "To resolve the case insensitivity of paths, call L</"
37018 "guestfs_case_sensitive_path>."
37019 msgstr ""
37020
37021 #. type: =head3
37022 #: ../src/guestfs.pod:669
37023 msgid "ACCESSING THE WINDOWS REGISTRY"
37024 msgstr ""
37025
37026 #. type: textblock
37027 #: ../src/guestfs.pod:671
37028 msgid ""
37029 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
37030 "files, through the library C<hivex> which is part of the libguestfs project "
37031 "although ships as a separate tarball.  You have to locate and download the "
37032 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
37033 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
37034 "reg(1)> for more help on this issue."
37035 msgstr ""
37036
37037 #. type: =head3
37038 #: ../src/guestfs.pod:679
37039 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
37040 msgstr ""
37041
37042 #. type: textblock
37043 #: ../src/guestfs.pod:681
37044 msgid ""
37045 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
37046 "provide something which looks like a Linux symlink.  The way it tries to do "
37047 "the rewriting is described here:"
37048 msgstr ""
37049
37050 #. type: textblock
37051 #: ../src/guestfs.pod:685
37052 msgid ""
37053 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37054 "symbolic-links/>"
37055 msgstr ""
37056
37057 #. type: textblock
37058 #: ../src/guestfs.pod:687
37059 msgid ""
37060 "The essential problem is that ntfs-3g simply does not have enough "
37061 "information to do a correct job.  NTFS links can contain drive letters and "
37062 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
37063 "It is almost certainly the case that libguestfs callers should ignore what "
37064 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
37065 msgstr ""
37066
37067 #. type: textblock
37068 #: ../src/guestfs.pod:694
37069 msgid ""
37070 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
37071 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
37072 "attribute, and read the raw reparse data from that (you can find the format "
37073 "documented in various places around the web)."
37074 msgstr ""
37075
37076 #. type: =head3
37077 #: ../src/guestfs.pod:699
37078 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
37079 msgstr ""
37080
37081 #. type: textblock
37082 #: ../src/guestfs.pod:701
37083 msgid ""
37084 "There are other useful extended attributes that can be read from ntfs-3g "
37085 "filesystems (using L</guestfs_getxattr>).  See:"
37086 msgstr ""
37087
37088 #. type: textblock
37089 #: ../src/guestfs.pod:704
37090 msgid ""
37091 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37092 msgstr ""
37093
37094 #. type: =head2
37095 #: ../src/guestfs.pod:706
37096 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
37097 msgstr ""
37098
37099 #. type: textblock
37100 #: ../src/guestfs.pod:708
37101 msgid ""
37102 "Although we don't want to discourage you from using the C API, we will "
37103 "mention here that the same API is also available in other languages."
37104 msgstr ""
37105
37106 #. type: textblock
37107 #: ../src/guestfs.pod:711
37108 msgid ""
37109 "The API is broadly identical in all supported languages.  This means that "
37110 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
37111 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
37112 "OCaml.  In other words, a straightforward, predictable isomorphism between "
37113 "each language."
37114 msgstr ""
37115
37116 #. type: textblock
37117 #: ../src/guestfs.pod:717
37118 msgid ""
37119 "Error messages are automatically transformed into exceptions if the language "
37120 "supports it."
37121 msgstr ""
37122
37123 #. type: textblock
37124 #: ../src/guestfs.pod:720
37125 msgid ""
37126 "We don't try to \"object orientify\" parts of the API in OO languages, "
37127 "although contributors are welcome to write higher level APIs above what we "
37128 "provide in their favourite languages if they wish."
37129 msgstr ""
37130
37131 #. type: =item
37132 #: ../src/guestfs.pod:726
37133 msgid "B<C++>"
37134 msgstr ""
37135
37136 #. type: textblock
37137 #: ../src/guestfs.pod:728
37138 msgid ""
37139 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
37140 "identical to the C API.  C++ classes and exceptions are not used."
37141 msgstr ""
37142
37143 #. type: =item
37144 #: ../src/guestfs.pod:732
37145 msgid "B<C#>"
37146 msgstr ""
37147
37148 #. type: textblock
37149 #: ../src/guestfs.pod:734
37150 msgid ""
37151 "The C# bindings are highly experimental.  Please read the warnings at the "
37152 "top of C<csharp/Libguestfs.cs>."
37153 msgstr ""
37154
37155 #. type: =item
37156 #: ../src/guestfs.pod:737
37157 msgid "B<Erlang>"
37158 msgstr ""
37159
37160 #. type: textblock
37161 #: ../src/guestfs.pod:739
37162 msgid "See L<guestfs-erlang(3)>."
37163 msgstr ""
37164
37165 #. type: =item
37166 #: ../src/guestfs.pod:741
37167 msgid "B<Haskell>"
37168 msgstr ""
37169
37170 #. type: textblock
37171 #: ../src/guestfs.pod:743
37172 msgid ""
37173 "This is the only language binding that is working but incomplete.  Only "
37174 "calls which return simple integers have been bound in Haskell, and we are "
37175 "looking for help to complete this binding."
37176 msgstr ""
37177
37178 #. type: =item
37179 #: ../src/guestfs.pod:747
37180 msgid "B<Java>"
37181 msgstr ""
37182
37183 #. type: textblock
37184 #: ../src/guestfs.pod:749
37185 msgid ""
37186 "Full documentation is contained in the Javadoc which is distributed with "
37187 "libguestfs.  For examples, see L<guestfs-java(3)>."
37188 msgstr ""
37189
37190 #. type: =item
37191 #: ../src/guestfs.pod:752
37192 msgid "B<OCaml>"
37193 msgstr ""
37194
37195 #. type: textblock
37196 #: ../src/guestfs.pod:754
37197 msgid "See L<guestfs-ocaml(3)>."
37198 msgstr ""
37199
37200 #. type: =item
37201 #: ../src/guestfs.pod:756
37202 msgid "B<Perl>"
37203 msgstr ""
37204
37205 #. type: textblock
37206 #: ../src/guestfs.pod:758
37207 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
37208 msgstr ""
37209
37210 #. type: =item
37211 #: ../src/guestfs.pod:760
37212 msgid "B<PHP>"
37213 msgstr ""
37214
37215 #. type: textblock
37216 #: ../src/guestfs.pod:762
37217 msgid ""
37218 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
37219 "the php-libguestfs package for your distribution."
37220 msgstr ""
37221
37222 #. type: textblock
37223 #: ../src/guestfs.pod:765
37224 msgid "The PHP binding only works correctly on 64 bit machines."
37225 msgstr ""
37226
37227 #. type: =item
37228 #: ../src/guestfs.pod:767
37229 msgid "B<Python>"
37230 msgstr ""
37231
37232 #. type: textblock
37233 #: ../src/guestfs.pod:769
37234 msgid "See L<guestfs-python(3)>."
37235 msgstr ""
37236
37237 #. type: =item
37238 #: ../src/guestfs.pod:771
37239 msgid "B<Ruby>"
37240 msgstr ""
37241
37242 #. type: textblock
37243 #: ../src/guestfs.pod:773
37244 msgid "See L<guestfs-ruby(3)>."
37245 msgstr ""
37246
37247 #. type: =item
37248 #: ../src/guestfs.pod:775
37249 msgid "B<shell scripts>"
37250 msgstr ""
37251
37252 #. type: textblock
37253 #: ../src/guestfs.pod:777
37254 msgid "See L<guestfish(1)>."
37255 msgstr ""
37256
37257 #. type: =head2
37258 #: ../src/guestfs.pod:781
37259 msgid "LIBGUESTFS GOTCHAS"
37260 msgstr ""
37261
37262 #. type: textblock
37263 #: ../src/guestfs.pod:783
37264 msgid ""
37265 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
37266 "system [...] that works in the way it is documented but is counterintuitive "
37267 "and almost invites mistakes.\""
37268 msgstr ""
37269
37270 #. type: textblock
37271 #: ../src/guestfs.pod:787
37272 msgid ""
37273 "Since we developed libguestfs and the associated tools, there are several "
37274 "things we would have designed differently, but are now stuck with for "
37275 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
37276 "release, you can expect these to change.  Beware of them."
37277 msgstr ""
37278
37279 #. type: =item
37280 #: ../src/guestfs.pod:795
37281 msgid "Autosync / forgetting to sync."
37282 msgstr ""
37283
37284 #. type: textblock
37285 #: ../src/guestfs.pod:797
37286 msgid ""
37287 "I<Update:> Autosync is enabled by default for all API users starting from "
37288 "libguestfs 1.5.24.  This section only applies to older versions."
37289 msgstr ""
37290
37291 #. type: textblock
37292 #: ../src/guestfs.pod:800
37293 msgid ""
37294 "When modifying a filesystem from C or another language, you B<must> unmount "
37295 "all filesystems and call L</guestfs_sync> explicitly before you close the "
37296 "libguestfs handle.  You can also call:"
37297 msgstr ""
37298
37299 #. type: verbatim
37300 #: ../src/guestfs.pod:804
37301 #, no-wrap
37302 msgid ""
37303 " guestfs_set_autosync (g, 1);\n"
37304 "\n"
37305 msgstr ""
37306
37307 #. type: textblock
37308 #: ../src/guestfs.pod:806
37309 msgid ""
37310 "to have the unmount/sync done automatically for you when the handle 'g' is "
37311 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37312 msgstr ""
37313
37314 #. type: textblock
37315 #: ../src/guestfs.pod:810
37316 msgid ""
37317 "If you forget to do this, then it is entirely possible that your changes "
37318 "won't be written out, or will be partially written, or (very rarely) that "
37319 "you'll get disk corruption."
37320 msgstr ""
37321
37322 #. type: textblock
37323 #: ../src/guestfs.pod:814
37324 msgid ""
37325 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
37326 "guestfish scripts that forget to sync will work just fine, which can make "
37327 "this very puzzling if you are trying to debug a problem."
37328 msgstr ""
37329
37330 #. type: =item
37331 #: ../src/guestfs.pod:818
37332 msgid "Mount option C<-o sync> should not be the default."
37333 msgstr ""
37334
37335 #. type: textblock
37336 #: ../src/guestfs.pod:820
37337 msgid ""
37338 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37339 "libguestfs 1.13.16.  This section only applies to older versions."
37340 msgstr ""
37341
37342 #. type: textblock
37343 #: ../src/guestfs.pod:823
37344 msgid ""
37345 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
37346 "However C<-o sync> does not add any reliability benefit, but does have a "
37347 "very large performance impact."
37348 msgstr ""
37349
37350 #. type: textblock
37351 #: ../src/guestfs.pod:827
37352 msgid ""
37353 "The work around is to use L</guestfs_mount_options> and set the mount "
37354 "options that you actually want to use."
37355 msgstr ""
37356
37357 #. type: =item
37358 #: ../src/guestfs.pod:830
37359 msgid "Read-only should be the default."
37360 msgstr ""
37361
37362 #. type: textblock
37363 #: ../src/guestfs.pod:832
37364 msgid ""
37365 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37366 "specify I<--rw> if you want to make changes to the image."
37367 msgstr ""
37368
37369 #. type: textblock
37370 #: ../src/guestfs.pod:835
37371 msgid "This would reduce the potential to corrupt live VM images."
37372 msgstr ""
37373
37374 #. type: textblock
37375 #: ../src/guestfs.pod:837
37376 msgid ""
37377 "Note that many filesystems change the disk when you just mount and unmount, "
37378 "even if you didn't perform any writes.  You need to use L</"
37379 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37380 msgstr ""
37381
37382 #. type: =item
37383 #: ../src/guestfs.pod:841
37384 msgid "guestfish command line is hard to use."
37385 msgstr ""
37386
37387 #. type: textblock
37388 #: ../src/guestfs.pod:843
37389 msgid ""
37390 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37391 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
37392 "exist, so it fails.  In earlier versions of guestfish the error message was "
37393 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
37394 "we should have used C<guestfish -c command> to run commands."
37395 msgstr ""
37396
37397 #. type: =item
37398 #: ../src/guestfs.pod:850
37399 msgid "guestfish megabyte modifiers don't work right on all commands"
37400 msgstr ""
37401
37402 #. type: textblock
37403 #: ../src/guestfs.pod:852
37404 msgid ""
37405 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37406 "other modifiers).  What guestfish actually does is to multiply the number "
37407 "part by the modifier part and pass the result to the C API.  However this "
37408 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37409 "expecting some other unit (eg. megabytes)."
37410 msgstr ""
37411
37412 #. type: textblock
37413 #: ../src/guestfs.pod:859
37414 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
37415 msgstr ""
37416
37417 #. type: verbatim
37418 #: ../src/guestfs.pod:861
37419 #, no-wrap
37420 msgid ""
37421 " lvcreate LV VG 100M\n"
37422 "\n"
37423 msgstr ""
37424
37425 #. type: textblock
37426 #: ../src/guestfs.pod:863
37427 msgid ""
37428 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
37429 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37430 "megabytes * megabytes) logical volume.  The error message you get from this "
37431 "is also a little obscure."
37432 msgstr ""
37433
37434 #. type: textblock
37435 #: ../src/guestfs.pod:868
37436 msgid ""
37437 "This could be fixed in the generator by specially marking parameters and "
37438 "return values which take bytes or other units."
37439 msgstr ""
37440
37441 #. type: =item
37442 #: ../src/guestfs.pod:871
37443 msgid "Ambiguity between devices and paths"
37444 msgstr ""
37445
37446 #. type: textblock
37447 #: ../src/guestfs.pod:873
37448 msgid ""
37449 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37450 "sdb2>) and a similar pathname.  A file might just happen to be called "
37451 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37452 msgstr ""
37453
37454 #. type: textblock
37455 #: ../src/guestfs.pod:878
37456 msgid ""
37457 "In the current API we usually resolve this ambiguity by having two separate "
37458 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
37459 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37460 "detecting if the path supplied begins with C</dev/>."
37461 msgstr ""
37462
37463 #. type: textblock
37464 #: ../src/guestfs.pod:884
37465 msgid ""
37466 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37467 "make paths/devices into structured names.  One way to do this would be to "
37468 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37469 "aspect of grub.  Another way would be to use a structured type, equivalent "
37470 "to this OCaml type:"
37471 msgstr ""
37472
37473 #. type: verbatim
37474 #: ../src/guestfs.pod:890
37475 #, no-wrap
37476 msgid ""
37477 " type path = Path of string | Device of int | Partition of int * int\n"
37478 "\n"
37479 msgstr ""
37480
37481 #. type: textblock
37482 #: ../src/guestfs.pod:892
37483 msgid "which would allow you to pass arguments like:"
37484 msgstr ""
37485
37486 #. type: verbatim
37487 #: ../src/guestfs.pod:894
37488 #, no-wrap
37489 msgid ""
37490 " Path \"/foo/bar\"\n"
37491 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
37492 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37493 " Path \"/dev/sdb2\"    (* not a device *)\n"
37494 "\n"
37495 msgstr ""
37496
37497 #. type: textblock
37498 #: ../src/guestfs.pod:899
37499 msgid ""
37500 "As you can see there are still problems to resolve even with this "
37501 "representation.  Also consider how it might work in guestfish."
37502 msgstr ""
37503
37504 #. type: =head2
37505 #: ../src/guestfs.pod:904
37506 msgid "KEYS AND PASSPHRASES"
37507 msgstr ""
37508
37509 #. type: textblock
37510 #: ../src/guestfs.pod:906
37511 msgid ""
37512 "Certain libguestfs calls take a parameter that contains sensitive key "
37513 "material, passed in as a C string."
37514 msgstr ""
37515
37516 #. type: textblock
37517 #: ../src/guestfs.pod:909
37518 msgid ""
37519 "In the future we would hope to change the libguestfs implementation so that "
37520 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37521 "swap.  However this is I<not> done at the moment, because of the complexity "
37522 "of such an implementation."
37523 msgstr ""
37524
37525 #. type: textblock
37526 #: ../src/guestfs.pod:914
37527 msgid ""
37528 "Therefore you should be aware that any key parameter you pass to libguestfs "
37529 "might end up being written out to the swap partition.  If this is a concern, "
37530 "scrub the swap partition or don't use libguestfs on encrypted devices."
37531 msgstr ""
37532
37533 #. type: =head2
37534 #: ../src/guestfs.pod:919
37535 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37536 msgstr ""
37537
37538 #. type: textblock
37539 #: ../src/guestfs.pod:921
37540 msgid ""
37541 "All high-level libguestfs actions are synchronous.  If you want to use "
37542 "libguestfs asynchronously then you must create a thread."
37543 msgstr ""
37544
37545 #. type: textblock
37546 #: ../src/guestfs.pod:924
37547 msgid ""
37548 "Only use the handle from a single thread.  Either use the handle exclusively "
37549 "from one thread, or provide your own mutex so that two threads cannot issue "
37550 "calls on the same handle at the same time."
37551 msgstr ""
37552
37553 #. type: textblock
37554 #: ../src/guestfs.pod:928
37555 msgid ""
37556 "See the graphical program guestfs-browser for one possible architecture for "
37557 "multithreaded programs using libvirt and libguestfs."
37558 msgstr ""
37559
37560 #. type: =head2
37561 #: ../src/guestfs.pod:931
37562 msgid "PATH"
37563 msgstr ""
37564
37565 #. type: textblock
37566 #: ../src/guestfs.pod:933
37567 msgid ""
37568 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37569 "internal path."
37570 msgstr ""
37571
37572 #. type: textblock
37573 #: ../src/guestfs.pod:936
37574 msgid ""
37575 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37576 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37577 msgstr ""
37578
37579 #. type: textblock
37580 #: ../src/guestfs.pod:939
37581 msgid ""
37582 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37583 "to change the directories that libguestfs will search in.  The value is a "
37584 "colon-separated list of paths.  The current directory is I<not> searched "
37585 "unless the path contains an empty element or C<.>.  For example "
37586 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37587 "then C</usr/lib/guestfs>."
37588 msgstr ""
37589
37590 #. type: =head2
37591 #: ../src/guestfs.pod:946
37592 msgid "QEMU WRAPPERS"
37593 msgstr ""
37594
37595 #. type: textblock
37596 #: ../src/guestfs.pod:948
37597 msgid ""
37598 "If you want to compile your own qemu, run qemu from a non-standard location, "
37599 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37600 "around qemu."
37601 msgstr ""
37602
37603 #. type: textblock
37604 #: ../src/guestfs.pod:952
37605 msgid ""
37606 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37607 "last command in the shell script (so that qemu replaces the shell and "
37608 "becomes the direct child of the libguestfs-using program).  If you don't do "
37609 "this, then the qemu process won't be cleaned up correctly."
37610 msgstr ""
37611
37612 #. type: textblock
37613 #: ../src/guestfs.pod:957
37614 msgid ""
37615 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37616 "source:"
37617 msgstr ""
37618
37619 #. type: verbatim
37620 #: ../src/guestfs.pod:960
37621 #, no-wrap
37622 msgid ""
37623 " #!/bin/sh -\n"
37624 " qemudir=/home/rjones/d/qemu\n"
37625 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37626 "\n"
37627 msgstr ""
37628
37629 #. type: textblock
37630 #: ../src/guestfs.pod:964
37631 msgid ""
37632 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37633 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
37634 "example:"
37635 msgstr ""
37636
37637 #. type: verbatim
37638 #: ../src/guestfs.pod:968
37639 #, no-wrap
37640 msgid ""
37641 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37642 "\n"
37643 msgstr ""
37644
37645 #. type: textblock
37646 #: ../src/guestfs.pod:970
37647 msgid ""
37648 "Note that libguestfs also calls qemu with the -help and -version options in "
37649 "order to determine features."
37650 msgstr ""
37651
37652 #. type: textblock
37653 #: ../src/guestfs.pod:973
37654 msgid ""
37655 "Wrappers can also be used to edit the options passed to qemu.  In the "
37656 "following example, the C<-machine ...> option (C<-machine> and the following "
37657 "argument) are removed from the command line and replaced with C<-machine pc,"
37658 "accel=tcg>.  The while loop iterates over the options until it finds the "
37659 "right one to remove, putting the remaining options into the C<args> array."
37660 msgstr ""
37661
37662 #. type: verbatim
37663 #: ../src/guestfs.pod:982
37664 #, no-wrap
37665 msgid ""
37666 " i=0\n"
37667 " while [ $# -gt 0 ]; do\n"
37668 "     case \"$1\" in\n"
37669 "     -machine)\n"
37670 "         shift 2;;\n"
37671 "     *)\n"
37672 "         args[i]=\"$1\"\n"
37673 "         (( i++ ))\n"
37674 "         shift ;;\n"
37675 "     esac\n"
37676 " done\n"
37677 " \n"
37678 msgstr ""
37679
37680 #. type: verbatim
37681 #: ../src/guestfs.pod:994
37682 #, no-wrap
37683 msgid ""
37684 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37685 "\n"
37686 msgstr ""
37687
37688 #. type: =head2
37689 #: ../src/guestfs.pod:996
37690 msgid "ATTACHING TO RUNNING DAEMONS"
37691 msgstr ""
37692
37693 #. type: textblock
37694 #: ../src/guestfs.pod:998
37695 msgid ""
37696 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37697 "babies.  Use with caution."
37698 msgstr ""
37699
37700 #. type: textblock
37701 #: ../src/guestfs.pod:1001
37702 msgid ""
37703 "I<Note (2):> This section explains how to attach to a running daemon from a "
37704 "low level perspective.  For most users, simply using virt tools such as "
37705 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37706 msgstr ""
37707
37708 #. type: =head3
37709 #: ../src/guestfs.pod:1005
37710 msgid "Using guestfs_set_attach_method"
37711 msgstr ""
37712
37713 #. type: textblock
37714 #: ../src/guestfs.pod:1007
37715 msgid ""
37716 "By calling L</guestfs_set_attach_method> you can change how the library "
37717 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37718 "ARCHITECTURE> for some background)."
37719 msgstr ""
37720
37721 #. type: textblock
37722 #: ../src/guestfs.pod:1011
37723 msgid ""
37724 "The normal attach method is C<appliance>, where a small appliance is created "
37725 "containing the daemon, and then the library connects to this."
37726 msgstr ""
37727
37728 #. type: textblock
37729 #: ../src/guestfs.pod:1014
37730 msgid ""
37731 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37732 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37733 "daemon over the Unix domain socket."
37734 msgstr ""
37735
37736 #. type: textblock
37737 #: ../src/guestfs.pod:1018
37738 msgid ""
37739 "The normal use for this is to connect to a running virtual machine that "
37740 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37741 "files inside the live virtual machine."
37742 msgstr ""
37743
37744 #. type: =head3
37745 #: ../src/guestfs.pod:1022
37746 msgid "Using guestfs_add_domain with live flag"
37747 msgstr ""
37748
37749 #. type: textblock
37750 #: ../src/guestfs.pod:1024
37751 msgid ""
37752 "L</guestfs_add_domain> provides some help for getting the correct attach "
37753 "method.  If you pass the C<live> option to this function, then (if the "
37754 "virtual machine is running) it will examine the libvirt XML looking for a "
37755 "virtio-serial channel to connect to:"
37756 msgstr ""
37757
37758 #. type: verbatim
37759 #: ../src/guestfs.pod:1030
37760 #, no-wrap
37761 msgid ""
37762 " <domain>\n"
37763 "   ...\n"
37764 "   <devices>\n"
37765 "     ...\n"
37766 "     <channel type='unix'>\n"
37767 "       <source mode='bind' path='/path/to/socket'/>\n"
37768 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37769 "     </channel>\n"
37770 "     ...\n"
37771 "   </devices>\n"
37772 " </domain>\n"
37773 "\n"
37774 msgstr ""
37775
37776 #. type: textblock
37777 #: ../src/guestfs.pod:1042
37778 msgid ""
37779 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37780 "method to C<unix:/path/to/socket>."
37781 msgstr ""
37782
37783 #. type: textblock
37784 #: ../src/guestfs.pod:1045
37785 msgid ""
37786 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37787 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37788 "to attach to and modify live virtual machines."
37789 msgstr ""
37790
37791 #. type: textblock
37792 #: ../src/guestfs.pod:1049
37793 msgid ""
37794 "The virtual machine needs to have been set up beforehand so that it has the "
37795 "virtio-serial channel and so that guestfsd is running inside it."
37796 msgstr ""
37797
37798 #. type: =head2
37799 #: ../src/guestfs.pod:1053
37800 msgid "ABI GUARANTEE"
37801 msgstr ""
37802
37803 #. type: textblock
37804 #: ../src/guestfs.pod:1055
37805 msgid ""
37806 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37807 "actions as outlined in this section.  Although we will deprecate some "
37808 "actions, for example if they get replaced by newer calls, we will keep the "
37809 "old actions forever.  This allows you the developer to program in confidence "
37810 "against the libguestfs API."
37811 msgstr ""
37812
37813 #. type: =head2
37814 #: ../src/guestfs.pod:1061
37815 msgid "BLOCK DEVICE NAMING"
37816 msgstr ""
37817
37818 #. type: textblock
37819 #: ../src/guestfs.pod:1063
37820 msgid ""
37821 "In the kernel there is now quite a profusion of schemata for naming block "
37822 "devices (in this context, by I<block device> I mean a physical or virtual "
37823 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
37824 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
37825 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
37826 "for the old IDE driver (particularly for SATA devices) those devices also "
37827 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
37828 "paravirtualized drivers.  This has created several different naming systems, "
37829 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37830 msgstr ""
37831
37832 #. type: textblock
37833 #: ../src/guestfs.pod:1075
37834 msgid ""
37835 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37836 "Linux kernel to access block devices.  We can run a variety of appliances "
37837 "based on a variety of Linux kernels."
37838 msgstr ""
37839
37840 #. type: textblock
37841 #: ../src/guestfs.pod:1079
37842 msgid ""
37843 "This causes a problem for libguestfs because many API calls use device or "
37844 "partition names.  Working scripts and the recipe (example) scripts that we "
37845 "make available over the internet could fail if the naming scheme changes."
37846 msgstr ""
37847
37848 #. type: textblock
37849 #: ../src/guestfs.pod:1084
37850 msgid ""
37851 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
37852 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37853 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37854 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37855 msgstr ""
37856
37857 #. type: textblock
37858 #: ../src/guestfs.pod:1090
37859 msgid ""
37860 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
37861 "L</guestfs_list_partitions> and similar calls return the true names of the "
37862 "devices and partitions as known to the appliance."
37863 msgstr ""
37864
37865 #. type: =head3
37866 #: ../src/guestfs.pod:1095
37867 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37868 msgstr ""
37869
37870 #. type: textblock
37871 #: ../src/guestfs.pod:1097
37872 msgid ""
37873 "Usually this translation is transparent.  However in some (very rare)  cases "
37874 "you may need to know the exact algorithm.  Such cases include where you use "
37875 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37876 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37877 msgstr ""
37878
37879 #. type: textblock
37880 #: ../src/guestfs.pod:1103
37881 msgid ""
37882 "The algorithm is applied only to I<parameters> which are known to be either "
37883 "device or partition names.  Return values from functions such as L</"
37884 "guestfs_list_devices> are never changed."
37885 msgstr ""
37886
37887 #. type: textblock
37888 #: ../src/guestfs.pod:1111
37889 msgid "Is the string a parameter which is a device or partition name?"
37890 msgstr ""
37891
37892 #. type: textblock
37893 #: ../src/guestfs.pod:1115
37894 msgid "Does the string begin with C</dev/sd>?"
37895 msgstr ""
37896
37897 #. type: textblock
37898 #: ../src/guestfs.pod:1119
37899 msgid ""
37900 "Does the named device exist? If so, we use that device.  However if I<not> "
37901 "then we continue with this algorithm."
37902 msgstr ""
37903
37904 #. type: textblock
37905 #: ../src/guestfs.pod:1124
37906 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37907 msgstr ""
37908
37909 #. type: textblock
37910 #: ../src/guestfs.pod:1126
37911 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37912 msgstr ""
37913
37914 #. type: textblock
37915 #: ../src/guestfs.pod:1128
37916 msgid "If that named device exists, use it.  If not, continue."
37917 msgstr ""
37918
37919 #. type: textblock
37920 #: ../src/guestfs.pod:1132
37921 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37922 msgstr ""
37923
37924 #. type: textblock
37925 #: ../src/guestfs.pod:1134
37926 msgid "If that named device exists, use it.  If not, return an error."
37927 msgstr ""
37928
37929 #. type: =head3
37930 #: ../src/guestfs.pod:1138
37931 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37932 msgstr ""
37933
37934 #. type: textblock
37935 #: ../src/guestfs.pod:1140
37936 msgid ""
37937 "Although the standard naming scheme and automatic translation is useful for "
37938 "simple programs and guestfish scripts, for larger programs it is best not to "
37939 "rely on this mechanism."
37940 msgstr ""
37941
37942 #. type: textblock
37943 #: ../src/guestfs.pod:1144
37944 msgid ""
37945 "Where possible for maximum future portability programs using libguestfs "
37946 "should use these future-proof techniques:"
37947 msgstr ""
37948
37949 #. type: textblock
37950 #: ../src/guestfs.pod:1151
37951 msgid ""
37952 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37953 "device names, and then use those names directly."
37954 msgstr ""
37955
37956 #. type: textblock
37957 #: ../src/guestfs.pod:1154
37958 msgid ""
37959 "Since those device names exist by definition, they will never be translated."
37960 msgstr ""
37961
37962 #. type: textblock
37963 #: ../src/guestfs.pod:1159
37964 msgid ""
37965 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37966 "filesystem labels."
37967 msgstr ""
37968
37969 #. type: textblock
37970 #: ../src/guestfs.pod:1166
37971 msgid ""
37972 "This section discusses security implications of using libguestfs, "
37973 "particularly with untrusted or malicious guests or disk images."
37974 msgstr ""
37975
37976 #. type: =head2
37977 #: ../src/guestfs.pod:1169
37978 msgid "GENERAL SECURITY CONSIDERATIONS"
37979 msgstr ""
37980
37981 #. type: textblock
37982 #: ../src/guestfs.pod:1171
37983 msgid ""
37984 "Be careful with any files or data that you download from a guest (by "
37985 "\"download\" we mean not just the L</guestfs_download> command but any "
37986 "command that reads files, filenames, directories or anything else from a "
37987 "disk image).  An attacker could manipulate the data to fool your program "
37988 "into doing the wrong thing.  Consider cases such as:"
37989 msgstr ""
37990
37991 #. type: textblock
37992 #: ../src/guestfs.pod:1181
37993 msgid "the data (file etc) not being present"
37994 msgstr ""
37995
37996 #. type: textblock
37997 #: ../src/guestfs.pod:1185
37998 msgid "being present but empty"
37999 msgstr ""
38000
38001 #. type: textblock
38002 #: ../src/guestfs.pod:1189
38003 msgid "being much larger than normal"
38004 msgstr ""
38005
38006 #. type: textblock
38007 #: ../src/guestfs.pod:1193
38008 msgid "containing arbitrary 8 bit data"
38009 msgstr ""
38010
38011 #. type: textblock
38012 #: ../src/guestfs.pod:1197
38013 msgid "being in an unexpected character encoding"
38014 msgstr ""
38015
38016 #. type: textblock
38017 #: ../src/guestfs.pod:1201
38018 msgid "containing homoglyphs."
38019 msgstr ""
38020
38021 #. type: =head2
38022 #: ../src/guestfs.pod:1205
38023 msgid "SECURITY OF MOUNTING FILESYSTEMS"
38024 msgstr ""
38025
38026 #. type: textblock
38027 #: ../src/guestfs.pod:1207
38028 msgid ""
38029 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
38030 "(VFS) module can sometimes be escalated into exploits by deliberately "
38031 "creating a malicious, malformed filesystem.  These exploits are very severe "
38032 "for two reasons.  Firstly there are very many filesystem drivers in the "
38033 "kernel, and many of them are infrequently used and not much developer "
38034 "attention has been paid to the code.  Linux userspace helps potential "
38035 "crackers by detecting the filesystem type and automatically choosing the "
38036 "right VFS driver, even if that filesystem type is obscure or unexpected for "
38037 "the administrator.  Secondly, a kernel-level exploit is like a local root "
38038 "exploit (worse in some ways), giving immediate and total access to the "
38039 "system right down to the hardware level."
38040 msgstr ""
38041
38042 #. type: textblock
38043 #: ../src/guestfs.pod:1220
38044 msgid ""
38045 "That explains why you should never mount a filesystem from an untrusted "
38046 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
38047 "inside a qemu virtual machine, usually running as a non-root user.  The "
38048 "attacker would need to write a filesystem which first exploited the kernel, "
38049 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
38050 "the libguestfs protocol, and finally to be as serious as the host kernel "
38051 "exploit it would need to escalate its privileges to root.  This multi-step "
38052 "escalation, performed by a static piece of data, is thought to be extremely "
38053 "hard to do, although we never say 'never' about security issues."
38054 msgstr ""
38055
38056 #. type: textblock
38057 #: ../src/guestfs.pod:1231
38058 msgid ""
38059 "In any case callers can reduce the attack surface by forcing the filesystem "
38060 "type when mounting (use L</guestfs_mount_vfs>)."
38061 msgstr ""
38062
38063 #. type: =head2
38064 #: ../src/guestfs.pod:1234
38065 msgid "PROTOCOL SECURITY"
38066 msgstr ""
38067
38068 #. type: textblock
38069 #: ../src/guestfs.pod:1236
38070 msgid ""
38071 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
38072 "defined upper message size.  However a program that uses libguestfs must "
38073 "also take care - for example you can write a program that downloads a binary "
38074 "from a disk image and executes it locally, and no amount of protocol "
38075 "security will save you from the consequences."
38076 msgstr ""
38077
38078 #. type: =head2
38079 #: ../src/guestfs.pod:1242
38080 msgid "INSPECTION SECURITY"
38081 msgstr ""
38082
38083 #. type: textblock
38084 #: ../src/guestfs.pod:1244
38085 msgid ""
38086 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
38087 "directly from the guest, and these could contain any 8 bit data.  Callers "
38088 "should be careful to escape these before printing them to a structured file "
38089 "(for example, use HTML escaping if creating a web page)."
38090 msgstr ""
38091
38092 #. type: textblock
38093 #: ../src/guestfs.pod:1250
38094 msgid ""
38095 "Guest configuration may be altered in unusual ways by the administrator of "
38096 "the virtual machine, and may not reflect reality (particularly for untrusted "
38097 "or actively malicious guests).  For example we parse the hostname from "
38098 "configuration files like C</etc/sysconfig/network> that we find in the "
38099 "guest, but the guest administrator can easily manipulate these files to "
38100 "provide the wrong hostname."
38101 msgstr ""
38102
38103 #. type: textblock
38104 #: ../src/guestfs.pod:1258
38105 msgid ""
38106 "The inspection API parses guest configuration using two external libraries: "
38107 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
38108 "designed to be robust in the face of malicious data, although denial of "
38109 "service attacks are still possible, for example with oversized configuration "
38110 "files."
38111 msgstr ""
38112
38113 #. type: =head2
38114 #: ../src/guestfs.pod:1264
38115 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
38116 msgstr ""
38117
38118 #. type: textblock
38119 #: ../src/guestfs.pod:1266
38120 msgid ""
38121 "Be very cautious about running commands from the guest.  By running a "
38122 "command in the guest, you are giving CPU time to a binary that you do not "
38123 "control, under the same user account as the library, albeit wrapped in qemu "
38124 "virtualization.  More information and alternatives can be found in the "
38125 "section L</RUNNING COMMANDS>."
38126 msgstr ""
38127
38128 #. type: =head2
38129 #: ../src/guestfs.pod:1272
38130 msgid "CVE-2010-3851"
38131 msgstr ""
38132
38133 #. type: textblock
38134 #: ../src/guestfs.pod:1274
38135 msgid "https://bugzilla.redhat.com/642934"
38136 msgstr ""
38137
38138 #. type: textblock
38139 #: ../src/guestfs.pod:1276
38140 msgid ""
38141 "This security bug concerns the automatic disk format detection that qemu "
38142 "does on disk images."
38143 msgstr ""
38144
38145 #. type: textblock
38146 #: ../src/guestfs.pod:1279
38147 msgid ""
38148 "A raw disk image is just the raw bytes, there is no header.  Other disk "
38149 "images like qcow2 contain a special header.  Qemu deals with this by looking "
38150 "for one of the known headers, and if none is found then assuming the disk "
38151 "image must be raw."
38152 msgstr ""
38153
38154 #. type: textblock
38155 #: ../src/guestfs.pod:1284
38156 msgid ""
38157 "This allows a guest which has been given a raw disk image to write some "
38158 "other header.  At next boot (or when the disk image is accessed by "
38159 "libguestfs) qemu would do autodetection and think the disk image format was, "
38160 "say, qcow2 based on the header written by the guest."
38161 msgstr ""
38162
38163 #. type: textblock
38164 #: ../src/guestfs.pod:1289
38165 msgid ""
38166 "This in itself would not be a problem, but qcow2 offers many features, one "
38167 "of which is to allow a disk image to refer to another image (called the "
38168 "\"backing disk\").  It does this by placing the path to the backing disk "
38169 "into the qcow2 header.  This path is not validated and could point to any "
38170 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
38171 "\"holes\" in the qcow2 disk image, which of course is completely under the "
38172 "control of the attacker."
38173 msgstr ""
38174
38175 #. type: textblock
38176 #: ../src/guestfs.pod:1297
38177 msgid ""
38178 "In libguestfs this is rather hard to exploit except under two circumstances:"
38179 msgstr ""
38180
38181 #. type: textblock
38182 #: ../src/guestfs.pod:1304
38183 msgid "You have enabled the network or have opened the disk in write mode."
38184 msgstr ""
38185
38186 #. type: textblock
38187 #: ../src/guestfs.pod:1308
38188 msgid ""
38189 "You are also running untrusted code from the guest (see L</RUNNING "
38190 "COMMANDS>)."
38191 msgstr ""
38192
38193 #. type: textblock
38194 #: ../src/guestfs.pod:1313
38195 msgid ""
38196 "The way to avoid this is to specify the expected disk format when adding "
38197 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
38198 "should always do this if the disk is raw format, and it's a good idea for "
38199 "other cases too."
38200 msgstr ""
38201
38202 #. type: textblock
38203 #: ../src/guestfs.pod:1318
38204 msgid ""
38205 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
38206 "format is fetched from libvirt and passed through."
38207 msgstr ""
38208
38209 #. type: textblock
38210 #: ../src/guestfs.pod:1321
38211 msgid ""
38212 "For libguestfs tools, use the I<--format> command line parameter as "
38213 "appropriate."
38214 msgstr ""
38215
38216 #. type: =head1
38217 #: ../src/guestfs.pod:1324
38218 msgid "CONNECTION MANAGEMENT"
38219 msgstr ""
38220
38221 #. type: =head2
38222 #: ../src/guestfs.pod:1326
38223 msgid "guestfs_h *"
38224 msgstr ""
38225
38226 #. type: textblock
38227 #: ../src/guestfs.pod:1328
38228 msgid ""
38229 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
38230 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
38231 "handle and release all resources used."
38232 msgstr ""
38233
38234 #. type: textblock
38235 #: ../src/guestfs.pod:1332
38236 msgid ""
38237 "For information on using multiple handles and threads, see the section L</"
38238 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
38239 msgstr ""
38240
38241 #. type: =head2
38242 #: ../src/guestfs.pod:1335
38243 msgid "guestfs_create"
38244 msgstr ""
38245
38246 #. type: verbatim
38247 #: ../src/guestfs.pod:1337
38248 #, no-wrap
38249 msgid ""
38250 " guestfs_h *guestfs_create (void);\n"
38251 "\n"
38252 msgstr ""
38253
38254 #. type: textblock
38255 #: ../src/guestfs.pod:1339
38256 msgid "Create a connection handle."
38257 msgstr ""
38258
38259 #. type: textblock
38260 #: ../src/guestfs.pod:1341
38261 msgid ""
38262 "On success this returns a non-NULL pointer to a handle.  On error it returns "
38263 "NULL."
38264 msgstr ""
38265
38266 #. type: textblock
38267 #: ../src/guestfs.pod:1344
38268 msgid ""
38269 "You have to \"configure\" the handle after creating it.  This includes "
38270 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
38271 "handle at least once."
38272 msgstr ""
38273
38274 #. type: textblock
38275 #: ../src/guestfs.pod:1348
38276 msgid "After configuring the handle, you have to call L</guestfs_launch>."
38277 msgstr ""
38278
38279 #. type: textblock
38280 #: ../src/guestfs.pod:1350
38281 msgid ""
38282 "You may also want to configure error handling for the handle.  See the L</"
38283 "ERROR HANDLING> section below."
38284 msgstr ""
38285
38286 #. type: =head2
38287 #: ../src/guestfs.pod:1353
38288 msgid "guestfs_close"
38289 msgstr ""
38290
38291 #. type: verbatim
38292 #: ../src/guestfs.pod:1355
38293 #, no-wrap
38294 msgid ""
38295 " void guestfs_close (guestfs_h *g);\n"
38296 "\n"
38297 msgstr ""
38298
38299 #. type: textblock
38300 #: ../src/guestfs.pod:1357
38301 msgid "This closes the connection handle and frees up all resources used."
38302 msgstr ""
38303
38304 #. type: textblock
38305 #: ../src/guestfs.pod:1359
38306 msgid ""
38307 "If autosync was set on the handle and the handle was launched, then this "
38308 "implicitly calls various functions to unmount filesystems and sync the "
38309 "disk.  See L</guestfs_set_autosync> for more details."
38310 msgstr ""
38311
38312 #. type: textblock
38313 #: ../src/guestfs.pod:1363
38314 msgid "If a close callback was set on the handle, then it is called."
38315 msgstr ""
38316
38317 #. type: =head1
38318 #: ../src/guestfs.pod:1365
38319 msgid "ERROR HANDLING"
38320 msgstr ""
38321
38322 #. type: textblock
38323 #: ../src/guestfs.pod:1367
38324 msgid ""
38325 "API functions can return errors.  For example, almost all functions that "
38326 "return C<int> will return C<-1> to indicate an error."
38327 msgstr ""
38328
38329 #. type: textblock
38330 #: ../src/guestfs.pod:1370
38331 msgid ""
38332 "Additional information is available for errors: an error message string and "
38333 "optionally an error number (errno) if the thing that failed was a system "
38334 "call."
38335 msgstr ""
38336
38337 #. type: textblock
38338 #: ../src/guestfs.pod:1374
38339 msgid ""
38340 "You can get at the additional information about the last error on the handle "
38341 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38342 "up an error handler with L</guestfs_set_error_handler>."
38343 msgstr ""
38344
38345 #. type: textblock
38346 #: ../src/guestfs.pod:1379
38347 msgid ""
38348 "When the handle is created, a default error handler is installed which "
38349 "prints the error message string to C<stderr>.  For small short-running "
38350 "command line programs it is sufficient to do:"
38351 msgstr ""
38352
38353 #. type: verbatim
38354 #: ../src/guestfs.pod:1383
38355 #, no-wrap
38356 msgid ""
38357 " if (guestfs_launch (g) == -1)\n"
38358 "   exit (EXIT_FAILURE);\n"
38359 "\n"
38360 msgstr ""
38361
38362 #. type: textblock
38363 #: ../src/guestfs.pod:1386
38364 msgid ""
38365 "since the default error handler will ensure that an error message has been "
38366 "printed to C<stderr> before the program exits."
38367 msgstr ""
38368
38369 #. type: textblock
38370 #: ../src/guestfs.pod:1389
38371 msgid ""
38372 "For other programs the caller will almost certainly want to install an "
38373 "alternate error handler or do error handling in-line like this:"
38374 msgstr ""
38375
38376 #. type: verbatim
38377 #: ../src/guestfs.pod:1392
38378 #, no-wrap
38379 msgid ""
38380 " /* This disables the default behaviour of printing errors\n"
38381 "    on stderr. */\n"
38382 " guestfs_set_error_handler (g, NULL, NULL);\n"
38383 " \n"
38384 msgstr ""
38385
38386 #. type: verbatim
38387 #: ../src/guestfs.pod:1396
38388 #, no-wrap
38389 msgid ""
38390 " if (guestfs_launch (g) == -1) {\n"
38391 "   /* Examine the error message and print it etc. */\n"
38392 "   char *msg = guestfs_last_error (g);\n"
38393 "   int errnum = guestfs_last_errno (g);\n"
38394 "   fprintf (stderr, \"%s\", msg);\n"
38395 "   if (errnum != 0)\n"
38396 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
38397 "   fprintf (stderr, \"\\n\");\n"
38398 "   /* ... */\n"
38399 " }\n"
38400 "\n"
38401 msgstr ""
38402
38403 #. type: textblock
38404 #: ../src/guestfs.pod:1407
38405 msgid ""
38406 "Out of memory errors are handled differently.  The default action is to call "
38407 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
38408 "guestfs_set_out_of_memory_handler>."
38409 msgstr ""
38410
38411 #. type: textblock
38412 #: ../src/guestfs.pod:1411
38413 msgid ""
38414 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38415 "because there is no handle if this happens there is no way to get additional "
38416 "error information.  However L</guestfs_create> is supposed to be a "
38417 "lightweight operation which can only fail because of insufficient memory (it "
38418 "returns NULL in this case)."
38419 msgstr ""
38420
38421 #. type: =head2
38422 #: ../src/guestfs.pod:1417
38423 msgid "guestfs_last_error"
38424 msgstr ""
38425
38426 #. type: verbatim
38427 #: ../src/guestfs.pod:1419
38428 #, no-wrap
38429 msgid ""
38430 " const char *guestfs_last_error (guestfs_h *g);\n"
38431 "\n"
38432 msgstr ""
38433
38434 #. type: textblock
38435 #: ../src/guestfs.pod:1421
38436 msgid ""
38437 "This returns the last error message that happened on C<g>.  If there has not "
38438 "been an error since the handle was created, then this returns C<NULL>."
38439 msgstr ""
38440
38441 #. type: textblock
38442 #: ../src/guestfs.pod:1425
38443 msgid ""
38444 "The lifetime of the returned string is until the next error occurs, or L</"
38445 "guestfs_close> is called."
38446 msgstr ""
38447
38448 #. type: =head2
38449 #: ../src/guestfs.pod:1428
38450 msgid "guestfs_last_errno"
38451 msgstr ""
38452
38453 #. type: verbatim
38454 #: ../src/guestfs.pod:1430
38455 #, no-wrap
38456 msgid ""
38457 " int guestfs_last_errno (guestfs_h *g);\n"
38458 "\n"
38459 msgstr ""
38460
38461 #. type: textblock
38462 #: ../src/guestfs.pod:1432
38463 msgid "This returns the last error number (errno) that happened on C<g>."
38464 msgstr ""
38465
38466 #. type: textblock
38467 #: ../src/guestfs.pod:1434
38468 msgid "If successful, an errno integer not equal to zero is returned."
38469 msgstr ""
38470
38471 #. type: textblock
38472 #: ../src/guestfs.pod:1436
38473 msgid ""
38474 "If no error, this returns 0.  This call can return 0 in three situations:"
38475 msgstr ""
38476
38477 #. type: textblock
38478 #: ../src/guestfs.pod:1443
38479 msgid "There has not been any error on the handle."
38480 msgstr ""
38481
38482 #. type: textblock
38483 #: ../src/guestfs.pod:1447
38484 msgid ""
38485 "There has been an error but the errno was meaningless.  This corresponds to "
38486 "the case where the error did not come from a failed system call, but for "
38487 "some other reason."
38488 msgstr ""
38489
38490 #. type: textblock
38491 #: ../src/guestfs.pod:1453
38492 msgid ""
38493 "There was an error from a failed system call, but for some reason the errno "
38494 "was not captured and returned.  This usually indicates a bug in libguestfs."
38495 msgstr ""
38496
38497 #. type: textblock
38498 #: ../src/guestfs.pod:1459
38499 msgid ""
38500 "Libguestfs tries to convert the errno from inside the applicance into a "
38501 "corresponding errno for the caller (not entirely trivial: the appliance "
38502 "might be running a completely different operating system from the library "
38503 "and error numbers are not standardized across Un*xen).  If this could not be "
38504 "done, then the error is translated to C<EINVAL>.  In practice this should "
38505 "only happen in very rare circumstances."
38506 msgstr ""
38507
38508 #. type: =head2
38509 #: ../src/guestfs.pod:1467
38510 msgid "guestfs_set_error_handler"
38511 msgstr ""
38512
38513 #. type: verbatim
38514 #: ../src/guestfs.pod:1469
38515 #, no-wrap
38516 msgid ""
38517 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38518 "                                           void *opaque,\n"
38519 "                                           const char *msg);\n"
38520 " void guestfs_set_error_handler (guestfs_h *g,\n"
38521 "                                 guestfs_error_handler_cb cb,\n"
38522 "                                 void *opaque);\n"
38523 "\n"
38524 msgstr ""
38525
38526 #. type: textblock
38527 #: ../src/guestfs.pod:1476
38528 msgid ""
38529 "The callback C<cb> will be called if there is an error.  The parameters "
38530 "passed to the callback are an opaque data pointer and the error message "
38531 "string."
38532 msgstr ""
38533
38534 #. type: textblock
38535 #: ../src/guestfs.pod:1480
38536 msgid ""
38537 "C<errno> is not passed to the callback.  To get that the callback must call "
38538 "L</guestfs_last_errno>."
38539 msgstr ""
38540
38541 #. type: textblock
38542 #: ../src/guestfs.pod:1483
38543 msgid ""
38544 "Note that the message string C<msg> is freed as soon as the callback "
38545 "function returns, so if you want to stash it somewhere you must make your "
38546 "own copy."
38547 msgstr ""
38548
38549 #. type: textblock
38550 #: ../src/guestfs.pod:1487
38551 msgid "The default handler prints messages on C<stderr>."
38552 msgstr ""
38553
38554 #. type: textblock
38555 #: ../src/guestfs.pod:1489
38556 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38557 msgstr ""
38558
38559 #. type: =head2
38560 #: ../src/guestfs.pod:1491
38561 msgid "guestfs_get_error_handler"
38562 msgstr ""
38563
38564 #. type: verbatim
38565 #: ../src/guestfs.pod:1493
38566 #, no-wrap
38567 msgid ""
38568 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38569 "                                                     void **opaque_rtn);\n"
38570 "\n"
38571 msgstr ""
38572
38573 #. type: textblock
38574 #: ../src/guestfs.pod:1496
38575 msgid "Returns the current error handler callback."
38576 msgstr ""
38577
38578 #. type: =head2
38579 #: ../src/guestfs.pod:1498
38580 msgid "guestfs_set_out_of_memory_handler"
38581 msgstr ""
38582
38583 #. type: verbatim
38584 #: ../src/guestfs.pod:1500
38585 #, no-wrap
38586 msgid ""
38587 " typedef void (*guestfs_abort_cb) (void);\n"
38588 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38589 "                                         guestfs_abort_cb);\n"
38590 "\n"
38591 msgstr ""
38592
38593 #. type: textblock
38594 #: ../src/guestfs.pod:1504
38595 msgid ""
38596 "The callback C<cb> will be called if there is an out of memory situation.  "
38597 "I<Note this callback must not return>."
38598 msgstr ""
38599
38600 #. type: textblock
38601 #: ../src/guestfs.pod:1507
38602 msgid "The default is to call L<abort(3)>."
38603 msgstr ""
38604
38605 #. type: textblock
38606 #: ../src/guestfs.pod:1509
38607 msgid ""
38608 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
38609 msgstr ""
38610
38611 #. type: =head2
38612 #: ../src/guestfs.pod:1512
38613 msgid "guestfs_get_out_of_memory_handler"
38614 msgstr ""
38615
38616 #. type: verbatim
38617 #: ../src/guestfs.pod:1514
38618 #, no-wrap
38619 msgid ""
38620 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38621 "\n"
38622 msgstr ""
38623
38624 #. type: textblock
38625 #: ../src/guestfs.pod:1516
38626 msgid "This returns the current out of memory handler."
38627 msgstr ""
38628
38629 #. type: =head1
38630 #: ../src/guestfs.pod:1518
38631 msgid "API CALLS"
38632 msgstr ""
38633
38634 #. type: =head1
38635 #: ../src/guestfs.pod:1522
38636 msgid "STRUCTURES"
38637 msgstr ""
38638
38639 #. type: textblock
38640 #: ../src/guestfs.pod:1524
38641 msgid "@STRUCTS@"
38642 msgstr ""
38643
38644 #. type: =head1
38645 #: ../src/guestfs.pod:1526
38646 msgid "AVAILABILITY"
38647 msgstr ""
38648
38649 #. type: =head2
38650 #: ../src/guestfs.pod:1528
38651 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38652 msgstr ""
38653
38654 #. type: textblock
38655 #: ../src/guestfs.pod:1530
38656 msgid ""
38657 "Using L</guestfs_available> you can test availability of the following "
38658 "groups of functions.  This test queries the appliance to see if the "
38659 "appliance you are currently using supports the functionality."
38660 msgstr ""
38661
38662 #. type: textblock
38663 #: ../src/guestfs.pod:1535
38664 msgid "@AVAILABILITY@"
38665 msgstr ""
38666
38667 #. type: =head2
38668 #: ../src/guestfs.pod:1537
38669 msgid "GUESTFISH supported COMMAND"
38670 msgstr ""
38671
38672 #. type: textblock
38673 #: ../src/guestfs.pod:1539
38674 msgid ""
38675 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38676 "prints out the available groups and whether they are supported by this build "
38677 "of libguestfs.  Note however that you have to do C<run> first."
38678 msgstr ""
38679
38680 #. type: =head2
38681 #: ../src/guestfs.pod:1544
38682 msgid "SINGLE CALLS AT COMPILE TIME"
38683 msgstr ""
38684
38685 #. type: textblock
38686 #: ../src/guestfs.pod:1546
38687 msgid ""
38688 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38689 "function, such as:"
38690 msgstr ""
38691
38692 #. type: verbatim
38693 #: ../src/guestfs.pod:1549
38694 #, no-wrap
38695 msgid ""
38696 " #define LIBGUESTFS_HAVE_DD 1\n"
38697 "\n"
38698 msgstr ""
38699
38700 #. type: textblock
38701 #: ../src/guestfs.pod:1551
38702 msgid "if L</guestfs_dd> is available."
38703 msgstr ""
38704
38705 #. type: textblock
38706 #: ../src/guestfs.pod:1553
38707 msgid ""
38708 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38709 "function is available at compile time, we recommended using build tools such "
38710 "as autoconf or cmake.  For example in autotools you could use:"
38711 msgstr ""
38712
38713 #. type: verbatim
38714 #: ../src/guestfs.pod:1558
38715 #, no-wrap
38716 msgid ""
38717 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38718 " AC_CHECK_FUNCS([guestfs_dd])\n"
38719 "\n"
38720 msgstr ""
38721
38722 #. type: textblock
38723 #: ../src/guestfs.pod:1561
38724 msgid ""
38725 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38726 "in your program."
38727 msgstr ""
38728
38729 #. type: =head2
38730 #: ../src/guestfs.pod:1564
38731 msgid "SINGLE CALLS AT RUN TIME"
38732 msgstr ""
38733
38734 #. type: textblock
38735 #: ../src/guestfs.pod:1566
38736 msgid ""
38737 "Testing at compile time doesn't guarantee that a function really exists in "
38738 "the library.  The reason is that you might be dynamically linked against a "
38739 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
38740 "This situation unfortunately results in a segmentation fault, which is a "
38741 "shortcoming of the C dynamic linking system itself."
38742 msgstr ""
38743
38744 #. type: textblock
38745 #: ../src/guestfs.pod:1573
38746 msgid ""
38747 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38748 "in this example program (note that you still need the compile time check as "
38749 "well):"
38750 msgstr ""
38751
38752 #. type: verbatim
38753 #: ../src/guestfs.pod:1577
38754 #, no-wrap
38755 msgid ""
38756 " #include <stdio.h>\n"
38757 " #include <stdlib.h>\n"
38758 " #include <unistd.h>\n"
38759 " #include <dlfcn.h>\n"
38760 " #include <guestfs.h>\n"
38761 " \n"
38762 msgstr ""
38763
38764 #. type: verbatim
38765 #: ../src/guestfs.pod:1583
38766 #, no-wrap
38767 msgid ""
38768 " main ()\n"
38769 " {\n"
38770 " #ifdef LIBGUESTFS_HAVE_DD\n"
38771 "   void *dl;\n"
38772 "   int has_function;\n"
38773 " \n"
38774 msgstr ""
38775
38776 #. type: verbatim
38777 #: ../src/guestfs.pod:1589
38778 #, no-wrap
38779 msgid ""
38780 "   /* Test if the function guestfs_dd is really available. */\n"
38781 "   dl = dlopen (NULL, RTLD_LAZY);\n"
38782 "   if (!dl) {\n"
38783 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38784 "     exit (EXIT_FAILURE);\n"
38785 "   }\n"
38786 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38787 "   dlclose (dl);\n"
38788 " \n"
38789 msgstr ""
38790
38791 #. type: verbatim
38792 #: ../src/guestfs.pod:1598
38793 #, no-wrap
38794 msgid ""
38795 "   if (!has_function)\n"
38796 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38797 "   else {\n"
38798 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38799 "     /* Now it's safe to call\n"
38800 "     guestfs_dd (g, \"foo\", \"bar\");\n"
38801 "     */\n"
38802 "   }\n"
38803 " #else\n"
38804 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38805 " #endif\n"
38806 "  }\n"
38807 "\n"
38808 msgstr ""
38809
38810 #. type: textblock
38811 #: ../src/guestfs.pod:1611
38812 msgid ""
38813 "You may think the above is an awful lot of hassle, and it is.  There are "
38814 "other ways outside of the C linking system to ensure that this kind of "
38815 "incompatibility never arises, such as using package versioning:"
38816 msgstr ""
38817
38818 #. type: verbatim
38819 #: ../src/guestfs.pod:1616
38820 #, no-wrap
38821 msgid ""
38822 " Requires: libguestfs >= 1.0.80\n"
38823 "\n"
38824 msgstr ""
38825
38826 #. type: =head1
38827 #: ../src/guestfs.pod:1618
38828 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38829 msgstr ""
38830
38831 #. type: textblock
38832 #: ../src/guestfs.pod:1620
38833 msgid ""
38834 "A recent feature of the API is the introduction of calls which take optional "
38835 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
38836 "takes variable arguments (ie. C<...>), as in this example:"
38837 msgstr ""
38838
38839 #. type: verbatim
38840 #: ../src/guestfs.pod:1625
38841 #, no-wrap
38842 msgid ""
38843 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38844 "\n"
38845 msgstr ""
38846
38847 #. type: textblock
38848 #: ../src/guestfs.pod:1627
38849 msgid ""
38850 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
38851 "call with no optional arguments specified:"
38852 msgstr ""
38853
38854 #. type: verbatim
38855 #: ../src/guestfs.pod:1630
38856 #, no-wrap
38857 msgid ""
38858 " guestfs_add_drive_opts (g, filename, -1);\n"
38859 "\n"
38860 msgstr ""
38861
38862 #. type: textblock
38863 #: ../src/guestfs.pod:1632
38864 msgid "With a single optional argument:"
38865 msgstr ""
38866
38867 #. type: verbatim
38868 #: ../src/guestfs.pod:1634
38869 #, no-wrap
38870 msgid ""
38871 " guestfs_add_drive_opts (g, filename,\n"
38872 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38873 "                         -1);\n"
38874 "\n"
38875 msgstr ""
38876
38877 #. type: textblock
38878 #: ../src/guestfs.pod:1638
38879 msgid "With two:"
38880 msgstr ""
38881
38882 #. type: verbatim
38883 #: ../src/guestfs.pod:1640
38884 #, no-wrap
38885 msgid ""
38886 " guestfs_add_drive_opts (g, filename,\n"
38887 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38888 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38889 "                         -1);\n"
38890 "\n"
38891 msgstr ""
38892
38893 #. type: textblock
38894 #: ../src/guestfs.pod:1645
38895 msgid ""
38896 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
38897 "happen!"
38898 msgstr ""
38899
38900 #. type: =head2
38901 #: ../src/guestfs.pod:1648
38902 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38903 msgstr ""
38904
38905 #. type: textblock
38906 #: ../src/guestfs.pod:1650
38907 msgid ""
38908 "The second variant has the same name with the suffix C<_va>, which works the "
38909 "same way but takes a C<va_list>.  See the C manual for details.  For the "
38910 "example function, this is declared:"
38911 msgstr ""
38912
38913 #. type: verbatim
38914 #: ../src/guestfs.pod:1654
38915 #, no-wrap
38916 msgid ""
38917 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38918 "                                va_list args);\n"
38919 "\n"
38920 msgstr ""
38921
38922 #. type: =head2
38923 #: ../src/guestfs.pod:1657
38924 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38925 msgstr ""
38926
38927 #. type: textblock
38928 #: ../src/guestfs.pod:1659
38929 msgid ""
38930 "The third variant is useful where you need to construct these calls.  You "
38931 "pass in a structure where you fill in the optional fields.  The structure "
38932 "has a bitmask as the first element which you must set to indicate which "
38933 "fields you have filled in.  For our example function the structure and call "
38934 "are declared:"
38935 msgstr ""
38936
38937 #. type: verbatim
38938 #: ../src/guestfs.pod:1665
38939 #, no-wrap
38940 msgid ""
38941 " struct guestfs_add_drive_opts_argv {\n"
38942 "   uint64_t bitmask;\n"
38943 "   int readonly;\n"
38944 "   const char *format;\n"
38945 "   /* ... */\n"
38946 " };\n"
38947 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38948 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38949 "\n"
38950 msgstr ""
38951
38952 #. type: textblock
38953 #: ../src/guestfs.pod:1674
38954 msgid "You could call it like this:"
38955 msgstr ""
38956
38957 #. type: verbatim
38958 #: ../src/guestfs.pod:1676
38959 #, no-wrap
38960 msgid ""
38961 " struct guestfs_add_drive_opts_argv optargs = {\n"
38962 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38963 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38964 "   .readonly = 1,\n"
38965 "   .format = \"qcow2\"\n"
38966 " };\n"
38967 " \n"
38968 msgstr ""
38969
38970 #. type: verbatim
38971 #: ../src/guestfs.pod:1683
38972 #, no-wrap
38973 msgid ""
38974 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38975 "\n"
38976 msgstr ""
38977
38978 #. type: textblock
38979 #: ../src/guestfs.pod:1691
38980 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38981 msgstr ""
38982
38983 #. type: textblock
38984 #: ../src/guestfs.pod:1696
38985 msgid "You do not need to fill in all fields of the structure."
38986 msgstr ""
38987
38988 #. type: textblock
38989 #: ../src/guestfs.pod:1700
38990 msgid ""
38991 "There must be a one-to-one correspondence between fields of the structure "
38992 "that are filled in, and bits set in the bitmask."
38993 msgstr ""
38994
38995 #. type: =head2
38996 #: ../src/guestfs.pod:1705
38997 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38998 msgstr ""
38999
39000 #. type: textblock
39001 #: ../src/guestfs.pod:1707
39002 msgid ""
39003 "In other languages, optional arguments are expressed in the way that is "
39004 "natural for that language.  We refer you to the language-specific "
39005 "documentation for more details on that."
39006 msgstr ""
39007
39008 #. type: textblock
39009 #: ../src/guestfs.pod:1711
39010 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
39011 msgstr ""
39012
39013 #. type: =head2
39014 #: ../src/guestfs.pod:1713
39015 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
39016 msgstr ""
39017
39018 #. type: textblock
39019 #: ../src/guestfs.pod:1715
39020 msgid ""
39021 "B<Note:> This section documents the generic event mechanism introduced in "
39022 "libguestfs 1.10, which you should use in new code if possible.  The old "
39023 "functions C<guestfs_set_log_message_callback>, "
39024 "C<guestfs_set_subprocess_quit_callback>, "
39025 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
39026 "C<guestfs_set_progress_callback> are no longer documented in this manual "
39027 "page.  Because of the ABI guarantee, the old functions continue to work."
39028 msgstr ""
39029
39030 #. type: textblock
39031 #: ../src/guestfs.pod:1724
39032 msgid ""
39033 "Handles generate events when certain things happen, such as log messages "
39034 "being generated, progress messages during long-running operations, or the "
39035 "handle being closed.  The API calls described below let you register a "
39036 "callback to be called when events happen.  You can register multiple "
39037 "callbacks (for the same, different or overlapping sets of events), and "
39038 "individually remove callbacks.  If callbacks are not removed, then they "
39039 "remain in force until the handle is closed."
39040 msgstr ""
39041
39042 #. type: textblock
39043 #: ../src/guestfs.pod:1732
39044 msgid ""
39045 "In the current implementation, events are only generated synchronously: that "
39046 "means that events (and hence callbacks) can only happen while you are in the "
39047 "middle of making another libguestfs call.  The callback is called in the "
39048 "same thread."
39049 msgstr ""
39050
39051 #. type: textblock
39052 #: ../src/guestfs.pod:1737
39053 msgid ""
39054 "Events may contain a payload, usually nothing (void), an array of 64 bit "
39055 "unsigned integers, or a message buffer.  Payloads are discussed later on."
39056 msgstr ""
39057
39058 #. type: =head3
39059 #: ../src/guestfs.pod:1741
39060 msgid "CLASSES OF EVENTS"
39061 msgstr ""
39062
39063 #. type: =item
39064 #: ../src/guestfs.pod:1745
39065 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
39066 msgstr ""
39067
39068 #. type: textblock
39069 #: ../src/guestfs.pod:1748
39070 msgid ""
39071 "The callback function will be called while the handle is being closed "
39072 "(synchronously from L</guestfs_close>)."
39073 msgstr ""
39074
39075 #. type: textblock
39076 #: ../src/guestfs.pod:1751
39077 msgid ""
39078 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
39079 "handles that are open when the program exits.  This means that this callback "
39080 "might be called indirectly from L<exit(3)>, which can cause unexpected "
39081 "problems in higher-level languages (eg. if your HLL interpreter has already "
39082 "been cleaned up by the time this is called, and if your callback then jumps "
39083 "into some HLL function)."
39084 msgstr ""
39085
39086 #. type: textblock
39087 #: ../src/guestfs.pod:1758
39088 msgid ""
39089 "If no callback is registered: the handle is closed without any callback "
39090 "being invoked."
39091 msgstr ""
39092
39093 #. type: =item
39094 #: ../src/guestfs.pod:1761
39095 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
39096 msgstr ""
39097
39098 #. type: textblock
39099 #: ../src/guestfs.pod:1764
39100 msgid ""
39101 "The callback function will be called when the child process quits, either "
39102 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
39103 "corresponds to a transition from any state to the CONFIG state)."
39104 msgstr ""
39105
39106 #. type: textblock
39107 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
39108 msgid "If no callback is registered: the event is ignored."
39109 msgstr ""
39110
39111 #. type: =item
39112 #: ../src/guestfs.pod:1770
39113 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
39114 msgstr ""
39115
39116 #. type: textblock
39117 #: ../src/guestfs.pod:1773
39118 msgid ""
39119 "The callback function will be called when the child process becomes ready "
39120 "first time after it has been launched.  (This corresponds to a transition "
39121 "from LAUNCHING to the READY state)."
39122 msgstr ""
39123
39124 #. type: =item
39125 #: ../src/guestfs.pod:1779
39126 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
39127 msgstr ""
39128
39129 #. type: textblock
39130 #: ../src/guestfs.pod:1782
39131 msgid ""
39132 "Some long-running operations can generate progress messages.  If this "
39133 "callback is registered, then it will be called each time a progress message "
39134 "is generated (usually two seconds after the operation started, and three "
39135 "times per second thereafter until it completes, although the frequency may "
39136 "change in future versions)."
39137 msgstr ""
39138
39139 #. type: textblock
39140 #: ../src/guestfs.pod:1788
39141 msgid ""
39142 "The callback receives in the payload four unsigned 64 bit numbers which are "
39143 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
39144 msgstr ""
39145
39146 #. type: textblock
39147 #: ../src/guestfs.pod:1791
39148 msgid ""
39149 "The units of C<total> are not defined, although for some operations C<total> "
39150 "may relate in some way to the amount of data to be transferred (eg. in bytes "
39151 "or megabytes), and C<position> may be the portion which has been transferred."
39152 msgstr ""
39153
39154 #. type: textblock
39155 #: ../src/guestfs.pod:1796
39156 msgid "The only defined and stable parts of the API are:"
39157 msgstr ""
39158
39159 #. type: textblock
39160 #: ../src/guestfs.pod:1802
39161 msgid ""
39162 "The callback can display to the user some type of progress bar or indicator "
39163 "which shows the ratio of C<position>:C<total>."
39164 msgstr ""
39165
39166 #. type: textblock
39167 #: ../src/guestfs.pod:1807
39168 msgid "0 E<lt>= C<position> E<lt>= C<total>"
39169 msgstr ""
39170
39171 #. type: textblock
39172 #: ../src/guestfs.pod:1811
39173 msgid ""
39174 "If any progress notification is sent during a call, then a final progress "
39175 "notification is always sent when C<position> = C<total> (I<unless> the call "
39176 "fails with an error)."
39177 msgstr ""
39178
39179 #. type: textblock
39180 #: ../src/guestfs.pod:1815
39181 msgid ""
39182 "This is to simplify caller code, so callers can easily set the progress "
39183 "indicator to \"100%\" at the end of the operation, without requiring special "
39184 "code to detect this case."
39185 msgstr ""
39186
39187 #. type: textblock
39188 #: ../src/guestfs.pod:1821
39189 msgid ""
39190 "For some calls we are unable to estimate the progress of the call, but we "
39191 "can still generate progress messages to indicate activity.  This is known as "
39192 "\"pulse mode\", and is directly supported by certain progress bar "
39193 "implementations (eg. GtkProgressBar)."
39194 msgstr ""
39195
39196 #. type: textblock
39197 #: ../src/guestfs.pod:1826
39198 msgid ""
39199 "For these calls, zero or more progress messages are generated with "
39200 "C<position = 0> and C<total = 1>, followed by a final message with "
39201 "C<position = total = 1>."
39202 msgstr ""
39203
39204 #. type: textblock
39205 #: ../src/guestfs.pod:1830
39206 msgid ""
39207 "As noted above, if the call fails with an error then the final message may "
39208 "not be generated."
39209 msgstr ""
39210
39211 #. type: textblock
39212 #: ../src/guestfs.pod:1835
39213 msgid ""
39214 "The callback also receives the procedure number (C<proc_nr>) and serial "
39215 "number (C<serial>) of the call.  These are only useful for debugging "
39216 "protocol issues, and the callback can normally ignore them.  The callback "
39217 "may want to print these numbers in error messages or debugging messages."
39218 msgstr ""
39219
39220 #. type: textblock
39221 #: ../src/guestfs.pod:1841
39222 msgid "If no callback is registered: progress messages are discarded."
39223 msgstr ""
39224
39225 #. type: =item
39226 #: ../src/guestfs.pod:1843
39227 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39228 msgstr ""
39229
39230 #. type: textblock
39231 #: ../src/guestfs.pod:1846
39232 msgid ""
39233 "The callback function is called whenever a log message is generated by qemu, "
39234 "the appliance kernel, guestfsd (daemon), or utility programs."
39235 msgstr ""
39236
39237 #. type: textblock
39238 #: ../src/guestfs.pod:1849
39239 msgid ""
39240 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39241 "guestfs_launch>) then additional debug messages are generated."
39242 msgstr ""
39243
39244 #. type: textblock
39245 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39246 msgid ""
39247 "If no callback is registered: the messages are discarded unless the verbose "
39248 "flag is set in which case they are sent to stderr.  You can override the "
39249 "printing of verbose messages to stderr by setting up a callback."
39250 msgstr ""
39251
39252 #. type: =item
39253 #: ../src/guestfs.pod:1857
39254 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39255 msgstr ""
39256
39257 #. type: textblock
39258 #: ../src/guestfs.pod:1860
39259 msgid ""
39260 "The callback function is called whenever a log message is generated by the "
39261 "library part of libguestfs."
39262 msgstr ""
39263
39264 #. type: textblock
39265 #: ../src/guestfs.pod:1863
39266 msgid ""
39267 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39268 "messages are generated."
39269 msgstr ""
39270
39271 #. type: =item
39272 #: ../src/guestfs.pod:1871
39273 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39274 msgstr ""
39275
39276 #. type: textblock
39277 #: ../src/guestfs.pod:1874
39278 msgid ""
39279 "The callback function is called whenever a trace message is generated.  This "
39280 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39281 msgstr ""
39282
39283 #. type: textblock
39284 #: ../src/guestfs.pod:1877
39285 msgid ""
39286 "If no callback is registered: the messages are sent to stderr.  You can "
39287 "override the printing of trace messages to stderr by setting up a callback."
39288 msgstr ""
39289
39290 #. type: =item
39291 #: ../src/guestfs.pod:1881
39292 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39293 msgstr ""
39294
39295 #. type: textblock
39296 #: ../src/guestfs.pod:1884
39297 msgid ""
39298 "The callback function is called whenever a libguestfs function is entered."
39299 msgstr ""
39300
39301 #. type: textblock
39302 #: ../src/guestfs.pod:1887
39303 msgid ""
39304 "The payload is a string which contains the name of the function that we are "
39305 "entering (not including C<guestfs_> prefix)."
39306 msgstr ""
39307
39308 #. type: textblock
39309 #: ../src/guestfs.pod:1890
39310 msgid ""
39311 "Note that libguestfs functions can call themselves, so you may see many "
39312 "events from a single call.  A few libguestfs functions do not generate this "
39313 "event."
39314 msgstr ""
39315
39316 #. type: =head3
39317 #: ../src/guestfs.pod:1898
39318 msgid "guestfs_set_event_callback"
39319 msgstr ""
39320
39321 #. type: verbatim
39322 #: ../src/guestfs.pod:1900
39323 #, no-wrap
39324 msgid ""
39325 " int guestfs_set_event_callback (guestfs_h *g,\n"
39326 "                                 guestfs_event_callback cb,\n"
39327 "                                 uint64_t event_bitmask,\n"
39328 "                                 int flags,\n"
39329 "                                 void *opaque);\n"
39330 "\n"
39331 msgstr ""
39332
39333 #. type: textblock
39334 #: ../src/guestfs.pod:1906
39335 msgid ""
39336 "This function registers a callback (C<cb>) for all event classes in the "
39337 "C<event_bitmask>."
39338 msgstr ""
39339
39340 #. type: textblock
39341 #: ../src/guestfs.pod:1909
39342 msgid ""
39343 "For example, to register for all log message events, you could call this "
39344 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
39345 "To register a single callback for all possible classes of events, use "
39346 "C<GUESTFS_EVENT_ALL>."
39347 msgstr ""
39348
39349 #. type: textblock
39350 #: ../src/guestfs.pod:1915
39351 msgid "C<flags> should always be passed as 0."
39352 msgstr ""
39353
39354 #. type: textblock
39355 #: ../src/guestfs.pod:1917
39356 msgid ""
39357 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
39358 "it for any purpose."
39359 msgstr ""
39360
39361 #. type: textblock
39362 #: ../src/guestfs.pod:1920
39363 msgid ""
39364 "The return value is the event handle (an integer) which you can use to "
39365 "delete the callback (see below)."
39366 msgstr ""
39367
39368 #. type: textblock
39369 #: ../src/guestfs.pod:1923
39370 msgid ""
39371 "If there is an error, this function returns C<-1>, and sets the error in the "
39372 "handle in the usual way (see L</guestfs_last_error> etc.)"
39373 msgstr ""
39374
39375 #. type: textblock
39376 #: ../src/guestfs.pod:1926
39377 msgid ""
39378 "Callbacks remain in effect until they are deleted, or until the handle is "
39379 "closed."
39380 msgstr ""
39381
39382 #. type: textblock
39383 #: ../src/guestfs.pod:1929
39384 msgid ""
39385 "In the case where multiple callbacks are registered for a particular event "
39386 "class, all of the callbacks are called.  The order in which multiple "
39387 "callbacks are called is not defined."
39388 msgstr ""
39389
39390 #. type: =head3
39391 #: ../src/guestfs.pod:1933
39392 msgid "guestfs_delete_event_callback"
39393 msgstr ""
39394
39395 #. type: verbatim
39396 #: ../src/guestfs.pod:1935
39397 #, no-wrap
39398 msgid ""
39399 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39400 "\n"
39401 msgstr ""
39402
39403 #. type: textblock
39404 #: ../src/guestfs.pod:1937
39405 msgid ""
39406 "Delete a callback that was previously registered.  C<event_handle> should be "
39407 "the integer that was returned by a previous call to "
39408 "C<guestfs_set_event_callback> on the same handle."
39409 msgstr ""
39410
39411 #. type: =head3
39412 #: ../src/guestfs.pod:1941
39413 msgid "guestfs_event_callback"
39414 msgstr ""
39415
39416 #. type: verbatim
39417 #: ../src/guestfs.pod:1943
39418 #, no-wrap
39419 msgid ""
39420 " typedef void (*guestfs_event_callback) (\n"
39421 "                  guestfs_h *g,\n"
39422 "                  void *opaque,\n"
39423 "                  uint64_t event,\n"
39424 "                  int event_handle,\n"
39425 "                  int flags,\n"
39426 "                  const char *buf, size_t buf_len,\n"
39427 "                  const uint64_t *array, size_t array_len);\n"
39428 "\n"
39429 msgstr ""
39430
39431 #. type: textblock
39432 #: ../src/guestfs.pod:1952
39433 msgid ""
39434 "This is the type of the event callback function that you have to provide."
39435 msgstr ""
39436
39437 #. type: textblock
39438 #: ../src/guestfs.pod:1955
39439 msgid ""
39440 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39441 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39442 "handle, and C<flags> which in the current API you should ignore."
39443 msgstr ""
39444
39445 #. type: textblock
39446 #: ../src/guestfs.pod:1959
39447 msgid ""
39448 "The remaining parameters contain the event payload (if any).  Each event may "
39449 "contain a payload, which usually relates to the event class, but for future "
39450 "proofing your code should be written to handle any payload for any event "
39451 "class."
39452 msgstr ""
39453
39454 #. type: textblock
39455 #: ../src/guestfs.pod:1964
39456 msgid ""
39457 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39458 "there is no message buffer).  Note that this message buffer can contain "
39459 "arbitrary 8 bit data, including NUL bytes."
39460 msgstr ""
39461
39462 #. type: textblock
39463 #: ../src/guestfs.pod:1968
39464 msgid ""
39465 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
39466 "moment this is only used for progress messages."
39467 msgstr ""
39468
39469 #. type: =head3
39470 #: ../src/guestfs.pod:1971
39471 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39472 msgstr ""
39473
39474 #. type: textblock
39475 #: ../src/guestfs.pod:1973
39476 msgid ""
39477 "One motivation for the generic event API was to allow GUI programs to "
39478 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
39479 "unconditionally to C<stderr>."
39480 msgstr ""
39481
39482 #. type: textblock
39483 #: ../src/guestfs.pod:1977
39484 msgid ""
39485 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39486 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
39487 "messages are not events; you must capture error messages separately)."
39488 msgstr ""
39489
39490 #. type: textblock
39491 #: ../src/guestfs.pod:1982
39492 msgid ""
39493 "Programs have to set up a callback to capture the classes of events of "
39494 "interest:"
39495 msgstr ""
39496
39497 #. type: verbatim
39498 #: ../src/guestfs.pod:1985
39499 #, no-wrap
39500 msgid ""
39501 " int eh =\n"
39502 "   guestfs_set_event_callback\n"
39503 "     (g, message_callback,\n"
39504 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39505 "      GUESTFS_EVENT_TRACE,\n"
39506 "      0, NULL) == -1)\n"
39507 " if (eh == -1) {\n"
39508 "   // handle error in the usual way\n"
39509 " }\n"
39510 "\n"
39511 msgstr ""
39512
39513 #. type: textblock
39514 #: ../src/guestfs.pod:1995
39515 msgid ""
39516 "The callback can then direct messages to the appropriate place.  In this "
39517 "example, messages are directed to syslog:"
39518 msgstr ""
39519
39520 #. type: verbatim
39521 #: ../src/guestfs.pod:1998
39522 #, no-wrap
39523 msgid ""
39524 " static void\n"
39525 " message_callback (\n"
39526 "         guestfs_h *g,\n"
39527 "         void *opaque,\n"
39528 "         uint64_t event,\n"
39529 "         int event_handle,\n"
39530 "         int flags,\n"
39531 "         const char *buf, size_t buf_len,\n"
39532 "         const uint64_t *array, size_t array_len)\n"
39533 " {\n"
39534 "   const int priority = LOG_USER|LOG_INFO;\n"
39535 "   if (buf_len > 0)\n"
39536 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39537 " }\n"
39538 "\n"
39539 msgstr ""
39540
39541 #. type: =head1
39542 #: ../src/guestfs.pod:2013
39543 msgid "CANCELLING LONG TRANSFERS"
39544 msgstr ""
39545
39546 #. type: textblock
39547 #: ../src/guestfs.pod:2015
39548 msgid ""
39549 "Some operations can be cancelled by the caller while they are in progress.  "
39550 "Currently only operations that involve uploading or downloading data can be "
39551 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39552 "parameters in the generator)."
39553 msgstr ""
39554
39555 #. type: =head2
39556 #: ../src/guestfs.pod:2020
39557 msgid "guestfs_user_cancel"
39558 msgstr ""
39559
39560 #. type: verbatim
39561 #: ../src/guestfs.pod:2022
39562 #, no-wrap
39563 msgid ""
39564 " void guestfs_user_cancel (guestfs_h *g);\n"
39565 "\n"
39566 msgstr ""
39567
39568 #. type: textblock
39569 #: ../src/guestfs.pod:2024
39570 msgid ""
39571 "C<guestfs_user_cancel> cancels the current upload or download operation."
39572 msgstr ""
39573
39574 #. type: textblock
39575 #: ../src/guestfs.pod:2027
39576 msgid ""
39577 "Unlike most other libguestfs calls, this function is signal safe and thread "
39578 "safe.  You can call it from a signal handler or from another thread, without "
39579 "needing to do any locking."
39580 msgstr ""
39581
39582 #. type: textblock
39583 #: ../src/guestfs.pod:2031
39584 msgid ""
39585 "The transfer that was in progress (if there is one) will stop shortly "
39586 "afterwards, and will return an error.  The errno (see L</"
39587 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39588 "out if the operation was cancelled or failed because of another error."
39589 msgstr ""
39590
39591 #. type: textblock
39592 #: ../src/guestfs.pod:2037
39593 msgid ""
39594 "No cleanup is performed: for example, if a file was being uploaded then "
39595 "after cancellation there may be a partially uploaded file.  It is the "
39596 "caller's responsibility to clean up if necessary."
39597 msgstr ""
39598
39599 #. type: textblock
39600 #: ../src/guestfs.pod:2041
39601 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39602 msgstr ""
39603
39604 #. type: textblock
39605 #: ../src/guestfs.pod:2043
39606 msgid ""
39607 "In an interactive text-based program, you might call it from a C<SIGINT> "
39608 "signal handler so that pressing C<^C> cancels the current operation.  (You "
39609 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39610 "receive the C<^C> signal)."
39611 msgstr ""
39612
39613 #. type: textblock
39614 #: ../src/guestfs.pod:2048
39615 msgid ""
39616 "In a graphical program, when the main thread is displaying a progress bar "
39617 "with a cancel button, wire up the cancel button to call this function."
39618 msgstr ""
39619
39620 #. type: =head1
39621 #: ../src/guestfs.pod:2052
39622 msgid "PRIVATE DATA AREA"
39623 msgstr ""
39624
39625 #. type: textblock
39626 #: ../src/guestfs.pod:2054
39627 msgid ""
39628 "You can attach named pieces of private data to the libguestfs handle, fetch "
39629 "them by name, and walk over them, for the lifetime of the handle.  This is "
39630 "called the private data area and is only available from the C API."
39631 msgstr ""
39632
39633 #. type: textblock
39634 #: ../src/guestfs.pod:2059
39635 msgid "To attach a named piece of data, use the following call:"
39636 msgstr ""
39637
39638 #. type: verbatim
39639 #: ../src/guestfs.pod:2061
39640 #, no-wrap
39641 msgid ""
39642 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39643 "\n"
39644 msgstr ""
39645
39646 #. type: textblock
39647 #: ../src/guestfs.pod:2063
39648 msgid ""
39649 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39650 "pointer (which can be C<NULL>).  Any previous item with the same key is "
39651 "overwritten."
39652 msgstr ""
39653
39654 #. type: textblock
39655 #: ../src/guestfs.pod:2067
39656 msgid ""
39657 "You can use any C<key> you want, but your key should I<not> start with an "
39658 "underscore character.  Keys beginning with an underscore character are "
39659 "reserved for internal libguestfs purposes (eg. for implementing language "
39660 "bindings).  It is recommended that you prefix the key with some unique "
39661 "string to avoid collisions with other users."
39662 msgstr ""
39663
39664 #. type: textblock
39665 #: ../src/guestfs.pod:2073
39666 msgid "To retrieve the pointer, use:"
39667 msgstr ""
39668
39669 #. type: verbatim
39670 #: ../src/guestfs.pod:2075
39671 #, no-wrap
39672 msgid ""
39673 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39674 "\n"
39675 msgstr ""
39676
39677 #. type: textblock
39678 #: ../src/guestfs.pod:2077
39679 msgid ""
39680 "This function returns C<NULL> if either no data is found associated with "
39681 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39682 "C<NULL>."
39683 msgstr ""
39684
39685 #. type: textblock
39686 #: ../src/guestfs.pod:2081
39687 msgid ""
39688 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39689 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
39690 "all.  In particular, libguestfs does I<not> try to free the data when the "
39691 "handle is closed.  If the data must be freed, then the caller must either "
39692 "free it before calling L</guestfs_close> or must set up a close callback to "
39693 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39694 msgstr ""
39695
39696 #. type: textblock
39697 #: ../src/guestfs.pod:2088
39698 msgid "To walk over all entries, use these two functions:"
39699 msgstr ""
39700
39701 #. type: verbatim
39702 #: ../src/guestfs.pod:2090
39703 #, no-wrap
39704 msgid ""
39705 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39706 "\n"
39707 msgstr ""
39708
39709 #. type: verbatim
39710 #: ../src/guestfs.pod:2092
39711 #, no-wrap
39712 msgid ""
39713 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39714 "\n"
39715 msgstr ""
39716
39717 #. type: textblock
39718 #: ../src/guestfs.pod:2094
39719 msgid ""
39720 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39721 "not have any particular meaning -- keys are not returned in any defined "
39722 "order).  A pointer to the key is returned in C<*key_rtn> and the "
39723 "corresponding data pointer is returned from the function.  C<NULL> is "
39724 "returned if there are no keys stored in the handle."
39725 msgstr ""
39726
39727 #. type: textblock
39728 #: ../src/guestfs.pod:2100
39729 msgid ""
39730 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
39731 "value of this function is also C<NULL> is there are no further entries to "
39732 "return."
39733 msgstr ""
39734
39735 #. type: textblock
39736 #: ../src/guestfs.pod:2104
39737 msgid "Notes about walking over entries:"
39738 msgstr ""
39739
39740 #. type: textblock
39741 #: ../src/guestfs.pod:2110
39742 msgid ""
39743 "You must not call C<guestfs_set_private> while walking over the entries."
39744 msgstr ""
39745
39746 #. type: textblock
39747 #: ../src/guestfs.pod:2115
39748 msgid ""
39749 "The handle maintains an internal iterator which is reset when you call "
39750 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
39751 "call C<guestfs_set_private>."
39752 msgstr ""
39753
39754 #. type: textblock
39755 #: ../src/guestfs.pod:2121
39756 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39757 msgstr ""
39758
39759 #. type: verbatim
39760 #: ../src/guestfs.pod:2123
39761 #, no-wrap
39762 msgid ""
39763 " guestfs_set_private (g, key, NULL);\n"
39764 "\n"
39765 msgstr ""
39766
39767 #. type: textblock
39768 #: ../src/guestfs.pod:2125
39769 msgid "then that C<key> is not returned when walking."
39770 msgstr ""
39771
39772 #. type: textblock
39773 #: ../src/guestfs.pod:2129
39774 msgid ""
39775 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39776 "C<guestfs_next_private> or C<guestfs_set_private>."
39777 msgstr ""
39778
39779 #. type: textblock
39780 #: ../src/guestfs.pod:2135
39781 msgid ""
39782 "The following example code shows how to print all keys and data pointers "
39783 "that are associated with the handle C<g>:"
39784 msgstr ""
39785
39786 #. type: verbatim
39787 #: ../src/guestfs.pod:2138
39788 #, no-wrap
39789 msgid ""
39790 " const char *key;\n"
39791 " void *data = guestfs_first_private (g, &key);\n"
39792 " while (data != NULL)\n"
39793 "   {\n"
39794 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
39795 "     data = guestfs_next_private (g, &key);\n"
39796 "   }\n"
39797 "\n"
39798 msgstr ""
39799
39800 #. type: textblock
39801 #: ../src/guestfs.pod:2146
39802 msgid ""
39803 "More commonly you are only interested in keys that begin with an application-"
39804 "specific prefix C<foo_>.  Modify the loop like so:"
39805 msgstr ""
39806
39807 #. type: verbatim
39808 #: ../src/guestfs.pod:2149
39809 #, no-wrap
39810 msgid ""
39811 " const char *key;\n"
39812 " void *data = guestfs_first_private (g, &key);\n"
39813 " while (data != NULL)\n"
39814 "   {\n"
39815 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39816 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
39817 "     data = guestfs_next_private (g, &key);\n"
39818 "   }\n"
39819 "\n"
39820 msgstr ""
39821
39822 #. type: textblock
39823 #: ../src/guestfs.pod:2158
39824 msgid ""
39825 "If you need to modify keys while walking, then you have to jump back to the "
39826 "beginning of the loop.  For example, to delete all keys prefixed with "
39827 "C<foo_>:"
39828 msgstr ""
39829
39830 #. type: verbatim
39831 #: ../src/guestfs.pod:2162
39832 #, no-wrap
39833 msgid ""
39834 "  const char *key;\n"
39835 "  void *data;\n"
39836 " again:\n"
39837 "  data = guestfs_first_private (g, &key);\n"
39838 "  while (data != NULL)\n"
39839 "    {\n"
39840 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39841 "        {\n"
39842 "          guestfs_set_private (g, key, NULL);\n"
39843 "          /* note that 'key' pointer is now invalid, and so is\n"
39844 "             the internal iterator */\n"
39845 "          goto again;\n"
39846 "        }\n"
39847 "      data = guestfs_next_private (g, &key);\n"
39848 "    }\n"
39849 "\n"
39850 msgstr ""
39851
39852 #. type: textblock
39853 #: ../src/guestfs.pod:2178
39854 msgid ""
39855 "Note that the above loop is guaranteed to terminate because the keys are "
39856 "being deleted, but other manipulations of keys within the loop might not "
39857 "terminate unless you also maintain an indication of which keys have been "
39858 "visited."
39859 msgstr ""
39860
39861 #. type: =head1
39862 #: ../src/guestfs.pod:2183
39863 msgid "SYSTEMTAP"
39864 msgstr ""
39865
39866 #. type: textblock
39867 #: ../src/guestfs.pod:2185
39868 msgid ""
39869 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
39870 "true of any library, not just libguestfs.  However libguestfs also contains "
39871 "static markers to help in probing internal operations."
39872 msgstr ""
39873
39874 #. type: textblock
39875 #: ../src/guestfs.pod:2189
39876 msgid "You can list all the static markers by doing:"
39877 msgstr ""
39878
39879 #. type: verbatim
39880 #: ../src/guestfs.pod:2191
39881 #, no-wrap
39882 msgid ""
39883 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39884 "              .provider(\"guestfs\").mark(\"*\")'\n"
39885 "\n"
39886 msgstr ""
39887
39888 #. type: textblock
39889 #: ../src/guestfs.pod:2194
39890 msgid ""
39891 "B<Note:> These static markers are I<not> part of the stable API and may "
39892 "change in future versions."
39893 msgstr ""
39894
39895 #. type: =head2
39896 #: ../src/guestfs.pod:2197
39897 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39898 msgstr ""
39899
39900 #. type: textblock
39901 #: ../src/guestfs.pod:2199
39902 msgid ""
39903 "This script contains examples of displaying both the static markers and some "
39904 "ordinary C entry points:"
39905 msgstr ""
39906
39907 #. type: verbatim
39908 #: ../src/guestfs.pod:2202
39909 #, no-wrap
39910 msgid ""
39911 " global last;\n"
39912 " \n"
39913 msgstr ""
39914
39915 #. type: verbatim
39916 #: ../src/guestfs.pod:2204
39917 #, no-wrap
39918 msgid ""
39919 " function display_time () {\n"
39920 "       now = gettimeofday_us ();\n"
39921 "       delta = 0;\n"
39922 "       if (last > 0)\n"
39923 "             delta = now - last;\n"
39924 "       last = now;\n"
39925 " \n"
39926 msgstr ""
39927
39928 #. type: verbatim
39929 #: ../src/guestfs.pod:2211
39930 #, no-wrap
39931 msgid ""
39932 "       printf (\"%d (+%d):\", now, delta);\n"
39933 " }\n"
39934 " \n"
39935 msgstr ""
39936
39937 #. type: verbatim
39938 #: ../src/guestfs.pod:2214
39939 #, no-wrap
39940 msgid ""
39941 " probe begin {\n"
39942 "       last = 0;\n"
39943 "       printf (\"ready\\n\");\n"
39944 " }\n"
39945 " \n"
39946 msgstr ""
39947
39948 #. type: verbatim
39949 #: ../src/guestfs.pod:2219
39950 #, no-wrap
39951 msgid ""
39952 " /* Display all calls to static markers. */\n"
39953 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39954 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
39955 "       display_time();\n"
39956 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39957 " }\n"
39958 " \n"
39959 msgstr ""
39960
39961 #. type: verbatim
39962 #: ../src/guestfs.pod:2226
39963 #, no-wrap
39964 msgid ""
39965 " /* Display all calls to guestfs_mkfs* functions. */\n"
39966 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39967 "           .function(\"guestfs_mkfs*\") ? {\n"
39968 "       display_time();\n"
39969 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39970 " }\n"
39971 "\n"
39972 msgstr ""
39973
39974 #. type: textblock
39975 #: ../src/guestfs.pod:2233
39976 msgid ""
39977 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39978 "program.  Note that you either have to be root, or you have to add yourself "
39979 "to several special stap groups.  Consult the systemtap documentation for "
39980 "more information."
39981 msgstr ""
39982
39983 #. type: verbatim
39984 #: ../src/guestfs.pod:2238
39985 #, no-wrap
39986 msgid ""
39987 " # stap /tmp/test.stap\n"
39988 " ready\n"
39989 "\n"
39990 msgstr ""
39991
39992 #. type: textblock
39993 #: ../src/guestfs.pod:2241
39994 msgid "In another terminal, run a guestfish command such as this:"
39995 msgstr ""
39996
39997 #. type: textblock
39998 #: ../src/guestfs.pod:2245
39999 msgid "In the first terminal, stap trace output similar to this is shown:"
40000 msgstr ""
40001
40002 #. type: verbatim
40003 #: ../src/guestfs.pod:2247
40004 #, no-wrap
40005 msgid ""
40006 " 1318248056692655 (+0):\tlaunch_start\n"
40007 " 1318248056692850 (+195):       launch_build_appliance_start\n"
40008 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
40009 " 1318248056838059 (+19774):     launch_run_qemu\n"
40010 " 1318248061071167 (+4233108):   launch_end\n"
40011 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
40012 "\n"
40013 msgstr ""
40014
40015 #. type: =end
40016 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
40017 msgid "html"
40018 msgstr ""
40019
40020 #. type: textblock
40021 #: ../src/guestfs.pod:2256
40022 msgid ""
40023 "<!-- old anchor for the next section --> <a name="
40024 "\"state_machine_and_low_level_event_api\"/>"
40025 msgstr ""
40026
40027 #. type: =head1
40028 #: ../src/guestfs.pod:2261
40029 msgid "ARCHITECTURE"
40030 msgstr ""
40031
40032 #. type: textblock
40033 #: ../src/guestfs.pod:2263
40034 msgid ""
40035 "Internally, libguestfs is implemented by running an appliance (a special "
40036 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
40037 "process of the main program."
40038 msgstr ""
40039
40040 #. type: verbatim
40041 #: ../src/guestfs.pod:2267
40042 #, no-wrap
40043 msgid ""
40044 "  ___________________\n"
40045 " /                   \\\n"
40046 " | main program      |\n"
40047 " |                   |\n"
40048 " |                   |           child process / appliance\n"
40049 " |                   |           __________________________\n"
40050 " |                   |          / qemu                     \\\n"
40051 " +-------------------+   RPC    |      +-----------------+ |\n"
40052 " | libguestfs     <--------------------> guestfsd        | |\n"
40053 " |                   |          |      +-----------------+ |\n"
40054 " \\___________________/          |      | Linux kernel    | |\n"
40055 "                                |      +--^--------------+ |\n"
40056 "                                \\_________|________________/\n"
40057 "                                          |\n"
40058 "                                   _______v______\n"
40059 "                                  /              \\\n"
40060 "                                  | Device or    |\n"
40061 "                                  | disk image   |\n"
40062 "                                  \\______________/\n"
40063 "\n"
40064 msgstr ""
40065
40066 #. type: textblock
40067 #: ../src/guestfs.pod:2287
40068 msgid ""
40069 "The library, linked to the main program, creates the child process and hence "
40070 "the appliance in the L</guestfs_launch> function."
40071 msgstr ""
40072
40073 #. type: textblock
40074 #: ../src/guestfs.pod:2290
40075 msgid ""
40076 "Inside the appliance is a Linux kernel and a complete stack of userspace "
40077 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
40078 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
40079 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
40080 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
40081 "attached to the qemu process which translates device access by the "
40082 "appliance's Linux kernel into accesses to the image."
40083 msgstr ""
40084
40085 #. type: textblock
40086 #: ../src/guestfs.pod:2299
40087 msgid ""
40088 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
40089 "Although the disk image you are attached to might also be used by some "
40090 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
40091 "care if both libguestfs's qemu process and your virtual machine are trying "
40092 "to update the disk image at the same time, since these usually results in "
40093 "massive disk corruption)."
40094 msgstr ""
40095
40096 #. type: =head1
40097 #: ../src/guestfs.pod:2306
40098 msgid "STATE MACHINE"
40099 msgstr ""
40100
40101 #. type: textblock
40102 #: ../src/guestfs.pod:2308
40103 msgid "libguestfs uses a state machine to model the child process:"
40104 msgstr ""
40105
40106 #. type: verbatim
40107 #: ../src/guestfs.pod:2310
40108 #, no-wrap
40109 msgid ""
40110 "                         |\n"
40111 "                    guestfs_create\n"
40112 "                         |\n"
40113 "                         |\n"
40114 "                     ____V_____\n"
40115 "                    /          \\\n"
40116 "                    |  CONFIG  |\n"
40117 "                    \\__________/\n"
40118 "                     ^ ^   ^  \\\n"
40119 "                    /  |    \\  \\ guestfs_launch\n"
40120 "                   /   |    _\\__V______\n"
40121 "                  /    |   /           \\\n"
40122 "                 /     |   | LAUNCHING |\n"
40123 "                /      |   \\___________/\n"
40124 "               /       |       /\n"
40125 "              /        |  guestfs_launch\n"
40126 "             /         |     /\n"
40127 "    ______  /        __|____V\n"
40128 "   /      \\ ------> /        \\\n"
40129 "   | BUSY |         | READY  |\n"
40130 "   \\______/ <------ \\________/\n"
40131 "\n"
40132 msgstr ""
40133
40134 #. type: textblock
40135 #: ../src/guestfs.pod:2332
40136 msgid ""
40137 "The normal transitions are (1) CONFIG (when the handle is created, but there "
40138 "is no child process), (2) LAUNCHING (when the child process is booting up), "
40139 "(3) alternating between READY and BUSY as commands are issued to, and "
40140 "carried out by, the child process."
40141 msgstr ""
40142
40143 #. type: textblock
40144 #: ../src/guestfs.pod:2337
40145 msgid ""
40146 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
40147 "asynchronously at any time (eg. due to some internal error), and that causes "
40148 "the state to transition back to CONFIG."
40149 msgstr ""
40150
40151 #. type: textblock
40152 #: ../src/guestfs.pod:2341
40153 msgid ""
40154 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
40155 "issued when in the CONFIG state."
40156 msgstr ""
40157
40158 #. type: textblock
40159 #: ../src/guestfs.pod:2344
40160 msgid ""
40161 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
40162 "L</guestfs_launch> blocks until the child process is READY to accept "
40163 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
40164 "moves the state from CONFIG to LAUNCHING while it is running."
40165 msgstr ""
40166
40167 #. type: textblock
40168 #: ../src/guestfs.pod:2350
40169 msgid ""
40170 "API actions such as L</guestfs_mount> can only be issued when in the READY "
40171 "state.  These API calls block waiting for the command to be carried out (ie. "
40172 "the state to transition to BUSY and then back to READY).  There are no non-"
40173 "blocking versions, and no way to issue more than one command per handle at "
40174 "the same time."
40175 msgstr ""
40176
40177 #. type: textblock
40178 #: ../src/guestfs.pod:2356
40179 msgid ""
40180 "Finally, the child process sends asynchronous messages back to the main "
40181 "program, such as kernel log messages.  You can register a callback to "
40182 "receive these messages."
40183 msgstr ""
40184
40185 #. type: =head1
40186 #: ../src/guestfs.pod:2360
40187 msgid "INTERNALS"
40188 msgstr ""
40189
40190 #. type: =head2
40191 #: ../src/guestfs.pod:2362
40192 msgid "APPLIANCE BOOT PROCESS"
40193 msgstr ""
40194
40195 #. type: textblock
40196 #: ../src/guestfs.pod:2364
40197 msgid ""
40198 "This process has evolved and continues to evolve.  The description here "
40199 "corresponds only to the current version of libguestfs and is provided for "
40200 "information only."
40201 msgstr ""
40202
40203 #. type: textblock
40204 #: ../src/guestfs.pod:2368
40205 msgid ""
40206 "In order to follow the stages involved below, enable libguestfs debugging "
40207 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40208 msgstr ""
40209
40210 #. type: =item
40211 #: ../src/guestfs.pod:2373
40212 msgid "Create the appliance"
40213 msgstr ""
40214
40215 #. type: textblock
40216 #: ../src/guestfs.pod:2375
40217 msgid ""
40218 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40219 "initrd and the appliance."
40220 msgstr ""
40221
40222 #. type: textblock
40223 #: ../src/guestfs.pod:2378
40224 msgid ""
40225 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40226 "directory if C<TMPDIR> is set)."
40227 msgstr ""
40228
40229 #. type: textblock
40230 #: ../src/guestfs.pod:2381
40231 msgid ""
40232 "For a complete description of how the appliance is created and cached, read "
40233 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40234 msgstr ""
40235
40236 #. type: =item
40237 #: ../src/guestfs.pod:2385
40238 msgid "Start qemu and boot the kernel"
40239 msgstr ""
40240
40241 #. type: textblock
40242 #: ../src/guestfs.pod:2387
40243 msgid "qemu is invoked to boot the kernel."
40244 msgstr ""
40245
40246 #. type: =item
40247 #: ../src/guestfs.pod:2389
40248 msgid "Run the initrd"
40249 msgstr ""
40250
40251 #. type: textblock
40252 #: ../src/guestfs.pod:2391
40253 msgid ""
40254 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
40255 "appliance.  The purpose of the initrd is to load enough kernel modules in "
40256 "order that the appliance itself can be mounted and started."
40257 msgstr ""
40258
40259 #. type: textblock
40260 #: ../src/guestfs.pod:2395
40261 msgid ""
40262 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40263 "initrd>."
40264 msgstr ""
40265
40266 #. type: textblock
40267 #: ../src/guestfs.pod:2398
40268 msgid ""
40269 "When the initrd has started you will see messages showing that kernel "
40270 "modules are being loaded, similar to this:"
40271 msgstr ""
40272
40273 #. type: verbatim
40274 #: ../src/guestfs.pod:2401
40275 #, no-wrap
40276 msgid ""
40277 " febootstrap: ext2 mini initrd starting up\n"
40278 " febootstrap: mounting /sys\n"
40279 " febootstrap: internal insmod libcrc32c.ko\n"
40280 " febootstrap: internal insmod crc32c-intel.ko\n"
40281 "\n"
40282 msgstr ""
40283
40284 #. type: =item
40285 #: ../src/guestfs.pod:2406
40286 msgid "Find and mount the appliance device"
40287 msgstr ""
40288
40289 #. type: textblock
40290 #: ../src/guestfs.pod:2408
40291 msgid ""
40292 "The appliance is a sparse file containing an ext2 filesystem which contains "
40293 "a familiar (although reduced in size) Linux operating system.  It would "
40294 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40295 msgstr ""
40296
40297 #. type: textblock
40298 #: ../src/guestfs.pod:2412
40299 msgid ""
40300 "The regular disks being inspected by libguestfs are the first devices "
40301 "exposed by qemu (eg. as C</dev/vda>)."
40302 msgstr ""
40303
40304 #. type: textblock
40305 #: ../src/guestfs.pod:2415
40306 msgid ""
40307 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40308 "there was only one regular disk)."
40309 msgstr ""
40310
40311 #. type: textblock
40312 #: ../src/guestfs.pod:2418
40313 msgid ""
40314 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40315 "and switch root into the appliance, and run C</init> from the appliance."
40316 msgstr ""
40317
40318 #. type: textblock
40319 #: ../src/guestfs.pod:2422
40320 msgid "If this works successfully you will see messages such as:"
40321 msgstr ""
40322
40323 #. type: verbatim
40324 #: ../src/guestfs.pod:2424
40325 #, no-wrap
40326 msgid ""
40327 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40328 " febootstrap: creating /dev/root as block special 252:16\n"
40329 " febootstrap: mounting new root on /root\n"
40330 " febootstrap: chroot\n"
40331 " Starting /init script ...\n"
40332 "\n"
40333 msgstr ""
40334
40335 #. type: textblock
40336 #: ../src/guestfs.pod:2430
40337 msgid ""
40338 "Note that C<Starting /init script ...> indicates that the appliance's init "
40339 "script is now running."
40340 msgstr ""
40341
40342 #. type: =item
40343 #: ../src/guestfs.pod:2433
40344 msgid "Initialize the appliance"
40345 msgstr ""
40346
40347 #. type: textblock
40348 #: ../src/guestfs.pod:2435
40349 msgid ""
40350 "The appliance itself now initializes itself.  This involves starting certain "
40351 "processes like C<udev>, possibly printing some debug information, and "
40352 "finally running the daemon (C<guestfsd>)."
40353 msgstr ""
40354
40355 #. type: =item
40356 #: ../src/guestfs.pod:2439
40357 msgid "The daemon"
40358 msgstr ""
40359
40360 #. type: textblock
40361 #: ../src/guestfs.pod:2441
40362 msgid ""
40363 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
40364 "should see:"
40365 msgstr ""
40366
40367 #. type: verbatim
40368 #: ../src/guestfs.pod:2444
40369 #, no-wrap
40370 msgid ""
40371 " verbose daemon enabled\n"
40372 "\n"
40373 msgstr ""
40374
40375 #. type: textblock
40376 #: ../src/guestfs.pod:2446
40377 msgid ""
40378 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40379 "connected on the other end to the library."
40380 msgstr ""
40381
40382 #. type: textblock
40383 #: ../src/guestfs.pod:2449
40384 msgid ""
40385 "The daemon connects to this port (and hence to the library) and sends a four "
40386 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40387 "protocol (see below)."
40388 msgstr ""
40389
40390 #. type: =head2
40391 #: ../src/guestfs.pod:2455
40392 msgid "COMMUNICATION PROTOCOL"
40393 msgstr ""
40394
40395 #. type: textblock
40396 #: ../src/guestfs.pod:2457
40397 msgid ""
40398 "Don't rely on using this protocol directly.  This section documents how it "
40399 "currently works, but it may change at any time."
40400 msgstr ""
40401
40402 #. type: textblock
40403 #: ../src/guestfs.pod:2460
40404 msgid ""
40405 "The protocol used to talk between the library and the daemon running inside "
40406 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40407 "1014, RFC 1832, RFC 4506)."
40408 msgstr ""
40409
40410 #. type: textblock
40411 #: ../src/guestfs.pod:2464
40412 msgid ""
40413 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40414 "this file is automatically generated)."
40415 msgstr ""
40416
40417 #. type: textblock
40418 #: ../src/guestfs.pod:2467
40419 msgid ""
40420 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40421 "and C<FileOut> parameters, which are handled with very simple request/reply "
40422 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
40423 "parameters, which use the same request and reply messages, but they may also "
40424 "be followed by files sent using a chunked encoding."
40425 msgstr ""
40426
40427 #. type: =head3
40428 #: ../src/guestfs.pod:2474
40429 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40430 msgstr ""
40431
40432 #. type: textblock
40433 #: ../src/guestfs.pod:2476
40434 msgid "For ordinary functions, the request message is:"
40435 msgstr ""
40436
40437 #. type: verbatim
40438 #: ../src/guestfs.pod:2478
40439 #, no-wrap
40440 msgid ""
40441 " total length (header + arguments,\n"
40442 "      but not including the length word itself)\n"
40443 " struct guestfs_message_header (encoded as XDR)\n"
40444 " struct guestfs_<foo>_args (encoded as XDR)\n"
40445 "\n"
40446 msgstr ""
40447
40448 #. type: textblock
40449 #: ../src/guestfs.pod:2483
40450 msgid ""
40451 "The total length field allows the daemon to allocate a fixed size buffer "
40452 "into which it slurps the rest of the message.  As a result, the total length "
40453 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40454 "effective size of any request is limited to somewhere under this size."
40455 msgstr ""
40456
40457 #. type: textblock
40458 #: ../src/guestfs.pod:2489
40459 msgid ""
40460 "Note also that many functions don't take any arguments, in which case the "
40461 "C<guestfs_I<foo>_args> is completely omitted."
40462 msgstr ""
40463
40464 #. type: textblock
40465 #: ../src/guestfs.pod:2492
40466 msgid ""
40467 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40468 "receiver knows what type of args structure to expect, or none at all."
40469 msgstr ""
40470
40471 #. type: textblock
40472 #: ../src/guestfs.pod:2496
40473 msgid ""
40474 "For functions that take optional arguments, the optional arguments are "
40475 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40476 "arguments.  A bitmask in the header indicates which optional arguments are "
40477 "meaningful.  The bitmask is also checked to see if it contains bits set "
40478 "which the daemon does not know about (eg. if more optional arguments were "
40479 "added in a later version of the library), and this causes the call to be "
40480 "rejected."
40481 msgstr ""
40482
40483 #. type: textblock
40484 #: ../src/guestfs.pod:2504
40485 msgid "The reply message for ordinary functions is:"
40486 msgstr ""
40487
40488 #. type: verbatim
40489 #: ../src/guestfs.pod:2506
40490 #, no-wrap
40491 msgid ""
40492 " total length (header + ret,\n"
40493 "      but not including the length word itself)\n"
40494 " struct guestfs_message_header (encoded as XDR)\n"
40495 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40496 "\n"
40497 msgstr ""
40498
40499 #. type: textblock
40500 #: ../src/guestfs.pod:2511
40501 msgid ""
40502 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40503 "functions that return no formal return values."
40504 msgstr ""
40505
40506 #. type: textblock
40507 #: ../src/guestfs.pod:2514
40508 msgid ""
40509 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40510 msgstr ""
40511
40512 #. type: textblock
40513 #: ../src/guestfs.pod:2517
40514 msgid ""
40515 "In the case of an error, a flag is set in the header, and the reply message "
40516 "is slightly changed:"
40517 msgstr ""
40518
40519 #. type: verbatim
40520 #: ../src/guestfs.pod:2520
40521 #, no-wrap
40522 msgid ""
40523 " total length (header + error,\n"
40524 "      but not including the length word itself)\n"
40525 " struct guestfs_message_header (encoded as XDR)\n"
40526 " struct guestfs_message_error (encoded as XDR)\n"
40527 "\n"
40528 msgstr ""
40529
40530 #. type: textblock
40531 #: ../src/guestfs.pod:2525
40532 msgid ""
40533 "The C<guestfs_message_error> structure contains the error message as a "
40534 "string."
40535 msgstr ""
40536
40537 #. type: =head3
40538 #: ../src/guestfs.pod:2528
40539 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40540 msgstr ""
40541
40542 #. type: textblock
40543 #: ../src/guestfs.pod:2530
40544 msgid ""
40545 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
40546 "The normal request message is sent (see above).  However this is followed by "
40547 "a sequence of file chunks."
40548 msgstr ""
40549
40550 #. type: verbatim
40551 #: ../src/guestfs.pod:2534
40552 #, no-wrap
40553 msgid ""
40554 " total length (header + arguments,\n"
40555 "      but not including the length word itself,\n"
40556 "      and not including the chunks)\n"
40557 " struct guestfs_message_header (encoded as XDR)\n"
40558 " struct guestfs_<foo>_args (encoded as XDR)\n"
40559 " sequence of chunks for FileIn param #0\n"
40560 " sequence of chunks for FileIn param #1 etc.\n"
40561 "\n"
40562 msgstr ""
40563
40564 #. type: textblock
40565 #: ../src/guestfs.pod:2542
40566 msgid "The \"sequence of chunks\" is:"
40567 msgstr ""
40568
40569 #. type: verbatim
40570 #: ../src/guestfs.pod:2544
40571 #, no-wrap
40572 msgid ""
40573 " length of chunk (not including length word itself)\n"
40574 " struct guestfs_chunk (encoded as XDR)\n"
40575 " length of chunk\n"
40576 " struct guestfs_chunk (encoded as XDR)\n"
40577 "   ...\n"
40578 " length of chunk\n"
40579 " struct guestfs_chunk (with data.data_len == 0)\n"
40580 "\n"
40581 msgstr ""
40582
40583 #. type: textblock
40584 #: ../src/guestfs.pod:2552
40585 msgid ""
40586 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
40587 "is set in the final chunk to indicate either successful completion or early "
40588 "cancellation."
40589 msgstr ""
40590
40591 #. type: textblock
40592 #: ../src/guestfs.pod:2556
40593 msgid ""
40594 "At time of writing there are no functions that have more than one FileIn "
40595 "parameter.  However this is (theoretically) supported, by sending the "
40596 "sequence of chunks for each FileIn parameter one after another (from left to "
40597 "right)."
40598 msgstr ""
40599
40600 #. type: textblock
40601 #: ../src/guestfs.pod:2561
40602 msgid ""
40603 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40604 "transfer.  The library does this by sending a chunk with a special flag set "
40605 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
40606 "RPC, does I<not> send any reply, and goes back to reading the next request."
40607 msgstr ""
40608
40609 #. type: textblock
40610 #: ../src/guestfs.pod:2567
40611 msgid ""
40612 "The daemon may also cancel.  It does this by writing a special word "
40613 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
40614 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40615 "cancel chunk).  The special word is chosen so that even if cancellation "
40616 "happens right at the end of the transfer (after the library has finished "
40617 "writing and has started listening for the reply), the \"spurious\" cancel "
40618 "flag will not be confused with the reply message."
40619 msgstr ""
40620
40621 #. type: textblock
40622 #: ../src/guestfs.pod:2576
40623 msgid ""
40624 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40625 "limit), and also files where the size is not known in advance (eg. from "
40626 "pipes or sockets).  However the chunks are rather small "
40627 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40628 "to keep much in memory."
40629 msgstr ""
40630
40631 #. type: =head3
40632 #: ../src/guestfs.pod:2582
40633 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40634 msgstr ""
40635
40636 #. type: textblock
40637 #: ../src/guestfs.pod:2584
40638 msgid ""
40639 "The protocol for FileOut parameters is exactly the same as for FileIn "
40640 "parameters, but with the roles of daemon and library reversed."
40641 msgstr ""
40642
40643 #. type: verbatim
40644 #: ../src/guestfs.pod:2587
40645 #, no-wrap
40646 msgid ""
40647 " total length (header + ret,\n"
40648 "      but not including the length word itself,\n"
40649 "      and not including the chunks)\n"
40650 " struct guestfs_message_header (encoded as XDR)\n"
40651 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40652 " sequence of chunks for FileOut param #0\n"
40653 " sequence of chunks for FileOut param #1 etc.\n"
40654 "\n"
40655 msgstr ""
40656
40657 #. type: =head3
40658 #: ../src/guestfs.pod:2595
40659 msgid "INITIAL MESSAGE"
40660 msgstr ""
40661
40662 #. type: textblock
40663 #: ../src/guestfs.pod:2597
40664 msgid ""
40665 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40666 "which indicates that the guest and daemon is alive.  This is what L</"
40667 "guestfs_launch> waits for."
40668 msgstr ""
40669
40670 #. type: =head3
40671 #: ../src/guestfs.pod:2601
40672 msgid "PROGRESS NOTIFICATION MESSAGES"
40673 msgstr ""
40674
40675 #. type: textblock
40676 #: ../src/guestfs.pod:2603
40677 msgid ""
40678 "The daemon may send progress notification messages at any time.  These are "
40679 "distinguished by the normal length word being replaced by "
40680 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40681 msgstr ""
40682
40683 #. type: textblock
40684 #: ../src/guestfs.pod:2607
40685 msgid ""
40686 "The library turns them into progress callbacks (see L</"
40687 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40688 "if not."
40689 msgstr ""
40690
40691 #. type: textblock
40692 #: ../src/guestfs.pod:2611
40693 msgid ""
40694 "The daemon self-limits the frequency of progress messages it sends (see "
40695 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
40696 "messages."
40697 msgstr ""
40698
40699 #. type: =head1
40700 #: ../src/guestfs.pod:2615
40701 msgid "LIBGUESTFS VERSION NUMBERS"
40702 msgstr ""
40703
40704 #. type: textblock
40705 #: ../src/guestfs.pod:2617
40706 msgid ""
40707 "Since April 2010, libguestfs has started to make separate development and "
40708 "stable releases, along with corresponding branches in our git repository.  "
40709 "These separate releases can be identified by version number:"
40710 msgstr ""
40711
40712 #. type: verbatim
40713 #: ../src/guestfs.pod:2622
40714 #, no-wrap
40715 msgid ""
40716 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
40717 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40718 "       |\n"
40719 "       v\n"
40720 " 1  .  3  .  5\n"
40721 " ^           ^\n"
40722 " |           |\n"
40723 " |           `-------- sub-version\n"
40724 " |\n"
40725 " `------ always '1' because we don't change the ABI\n"
40726 "\n"
40727 msgstr ""
40728
40729 #. type: textblock
40730 #: ../src/guestfs.pod:2633
40731 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40732 msgstr ""
40733
40734 #. type: textblock
40735 #: ../src/guestfs.pod:2635
40736 msgid ""
40737 "As time passes we cherry pick fixes from the development branch and backport "
40738 "those into the stable branch, the effect being that the stable branch should "
40739 "get more stable and less buggy over time.  So the stable releases are ideal "
40740 "for people who don't need new features but would just like the software to "
40741 "work."
40742 msgstr ""
40743
40744 #. type: textblock
40745 #: ../src/guestfs.pod:2641
40746 msgid "Our criteria for backporting changes are:"
40747 msgstr ""
40748
40749 #. type: textblock
40750 #: ../src/guestfs.pod:2647
40751 msgid ""
40752 "Documentation changes which don't affect any code are backported unless the "
40753 "documentation refers to a future feature which is not in stable."
40754 msgstr ""
40755
40756 #. type: textblock
40757 #: ../src/guestfs.pod:2653
40758 msgid ""
40759 "Bug fixes which are not controversial, fix obvious problems, and have been "
40760 "well tested are backported."
40761 msgstr ""
40762
40763 #. type: textblock
40764 #: ../src/guestfs.pod:2658
40765 msgid ""
40766 "Simple rearrangements of code which shouldn't affect how it works get "
40767 "backported.  This is so that the code in the two branches doesn't get too "
40768 "far out of step, allowing us to backport future fixes more easily."
40769 msgstr ""
40770
40771 #. type: textblock
40772 #: ../src/guestfs.pod:2664
40773 msgid ""
40774 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40775 "exceptional case: the new feature is required in order to implement an "
40776 "important bug fix."
40777 msgstr ""
40778
40779 #. type: textblock
40780 #: ../src/guestfs.pod:2670
40781 msgid ""
40782 "A new stable branch starts when we think the new features in development are "
40783 "substantial and compelling enough over the current stable branch to warrant "
40784 "it.  When that happens we create new stable and development versions 1.N.0 "
40785 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
40786 "stable at this point, but by backporting fixes from development, that branch "
40787 "will stabilize over time."
40788 msgstr ""
40789
40790 #. type: =head1
40791 #: ../src/guestfs.pod:2678
40792 msgid "EXTENDING LIBGUESTFS"
40793 msgstr ""
40794
40795 #. type: =head2
40796 #: ../src/guestfs.pod:2680
40797 msgid "ADDING A NEW API ACTION"
40798 msgstr ""
40799
40800 #. type: textblock
40801 #: ../src/guestfs.pod:2682
40802 msgid ""
40803 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40804 "documentation) are generated, and this makes it easy to extend the "
40805 "libguestfs API."
40806 msgstr ""
40807
40808 #. type: textblock
40809 #: ../src/guestfs.pod:2686
40810 msgid "To add a new API action there are two changes:"
40811 msgstr ""
40812
40813 #. type: textblock
40814 #: ../src/guestfs.pod:2692
40815 msgid ""
40816 "You need to add a description of the call (name, parameters, return type, "
40817 "tests, documentation) to C<generator/generator_actions.ml>."
40818 msgstr ""
40819
40820 #. type: textblock
40821 #: ../src/guestfs.pod:2695
40822 msgid ""
40823 "There are two sorts of API action, depending on whether the call goes "
40824 "through to the daemon in the appliance, or is serviced entirely by the "
40825 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
40826 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
40827 "an example of the latter, since a trace flag is maintained in the handle and "
40828 "all tracing is done on the library side."
40829 msgstr ""
40830
40831 #. type: textblock
40832 #: ../src/guestfs.pod:2703
40833 msgid ""
40834 "Most new actions are of the first type, and get added to the "
40835 "C<daemon_functions> list.  Each function has a unique procedure number used "
40836 "in the RPC protocol which is assigned to that action when we publish "
40837 "libguestfs and cannot be reused.  Take the latest procedure number and "
40838 "increment it."
40839 msgstr ""
40840
40841 #. type: textblock
40842 #: ../src/guestfs.pod:2709
40843 msgid ""
40844 "For library-only actions of the second type, add to the "
40845 "C<non_daemon_functions> list.  Since these functions are serviced by the "
40846 "library and do not travel over the RPC mechanism to the daemon, these "
40847 "functions do not need a procedure number, and so the procedure number is set "
40848 "to C<-1>."
40849 msgstr ""
40850
40851 #. type: textblock
40852 #: ../src/guestfs.pod:2717
40853 msgid "Implement the action (in C):"
40854 msgstr ""
40855
40856 #. type: textblock
40857 #: ../src/guestfs.pod:2719
40858 msgid ""
40859 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40860 "C<daemon/> directory."
40861 msgstr ""
40862
40863 #. type: textblock
40864 #: ../src/guestfs.pod:2722
40865 msgid ""
40866 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40867 "(note: double underscore) in the C<src/> directory."
40868 msgstr ""
40869
40870 #. type: textblock
40871 #: ../src/guestfs.pod:2725
40872 msgid "In either case, use another function as an example of what to do."
40873 msgstr ""
40874
40875 #. type: textblock
40876 #: ../src/guestfs.pod:2729
40877 msgid "After making these changes, use C<make> to compile."
40878 msgstr ""
40879
40880 #. type: textblock
40881 #: ../src/guestfs.pod:2731
40882 msgid ""
40883 "Note that you don't need to implement the RPC, language bindings, manual "
40884 "pages or anything else.  It's all automatically generated from the OCaml "
40885 "description."
40886 msgstr ""
40887
40888 #. type: =head2
40889 #: ../src/guestfs.pod:2735
40890 msgid "ADDING TESTS FOR AN API ACTION"
40891 msgstr ""
40892
40893 #. type: textblock
40894 #: ../src/guestfs.pod:2737
40895 msgid ""
40896 "You can supply zero or as many tests as you want per API call.  The tests "
40897 "can either be added as part of the API description (C<generator/"
40898 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40899 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
40900 "slower, so if possible use the first method."
40901 msgstr ""
40902
40903 #. type: textblock
40904 #: ../src/guestfs.pod:2743
40905 msgid ""
40906 "The following describes the test environment used when you add an API test "
40907 "in C<generator_actions.ml>."
40908 msgstr ""
40909
40910 #. type: textblock
40911 #: ../src/guestfs.pod:2746
40912 msgid "The test environment has 4 block devices:"
40913 msgstr ""
40914
40915 #. type: =item
40916 #: ../src/guestfs.pod:2750
40917 msgid "C</dev/sda> 500MB"
40918 msgstr ""
40919
40920 #. type: textblock
40921 #: ../src/guestfs.pod:2752
40922 msgid "General block device for testing."
40923 msgstr ""
40924
40925 #. type: =item
40926 #: ../src/guestfs.pod:2754
40927 msgid "C</dev/sdb> 50MB"
40928 msgstr ""
40929
40930 #. type: textblock
40931 #: ../src/guestfs.pod:2756
40932 msgid ""
40933 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40934 "operations."
40935 msgstr ""
40936
40937 #. type: =item
40938 #: ../src/guestfs.pod:2759
40939 msgid "C</dev/sdc> 10MB"
40940 msgstr ""
40941
40942 #. type: textblock
40943 #: ../src/guestfs.pod:2761
40944 msgid "Used in a few tests where two block devices are needed."
40945 msgstr ""
40946
40947 #. type: =item
40948 #: ../src/guestfs.pod:2763
40949 msgid "C</dev/sdd>"
40950 msgstr ""
40951
40952 #. type: textblock
40953 #: ../src/guestfs.pod:2765
40954 msgid "ISO with fixed content (see C<images/test.iso>)."
40955 msgstr ""
40956
40957 #. type: textblock
40958 #: ../src/guestfs.pod:2769
40959 msgid ""
40960 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40961 "appliance and block devices are reused between tests.  So don't try testing "
40962 "L</guestfs_kill_subprocess> :-x"
40963 msgstr ""
40964
40965 #. type: textblock
40966 #: ../src/guestfs.pod:2773
40967 msgid ""
40968 "Each test starts with an initial scenario, selected using one of the "
40969 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
40970 "initialize the disks mentioned above in a particular way as documented in "
40971 "C<generator_types.ml>.  You should not assume anything about the previous "
40972 "contents of other disks that are not initialized."
40973 msgstr ""
40974
40975 #. type: textblock
40976 #: ../src/guestfs.pod:2779
40977 msgid ""
40978 "You can add a prerequisite clause to any individual test.  This is a run-"
40979 "time check, which, if it fails, causes the test to be skipped.  Useful if "
40980 "testing a command which might not work on all variations of libguestfs "
40981 "builds.  A test that has prerequisite of C<Always> means to run "
40982 "unconditionally."
40983 msgstr ""
40984
40985 #. type: textblock
40986 #: ../src/guestfs.pod:2785
40987 msgid ""
40988 "In addition, packagers can skip individual tests by setting environment "
40989 "variables before running C<make check>."
40990 msgstr ""
40991
40992 #. type: verbatim
40993 #: ../src/guestfs.pod:2788
40994 #, no-wrap
40995 msgid ""
40996 " SKIP_TEST_<CMD>_<NUM>=1\n"
40997 "\n"
40998 msgstr ""
40999
41000 #. type: textblock
41001 #: ../src/guestfs.pod:2790
41002 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
41003 msgstr ""
41004
41005 #. type: verbatim
41006 #: ../src/guestfs.pod:2794
41007 #, no-wrap
41008 msgid ""
41009 " SKIP_TEST_<CMD>=1\n"
41010 "\n"
41011 msgstr ""
41012
41013 #. type: textblock
41014 #: ../src/guestfs.pod:2796
41015 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
41016 msgstr ""
41017
41018 #. type: textblock
41019 #: ../src/guestfs.pod:2798
41020 msgid "Packagers can run only certain tests by setting for example:"
41021 msgstr ""
41022
41023 #. type: verbatim
41024 #: ../src/guestfs.pod:2800
41025 #, no-wrap
41026 msgid ""
41027 " TEST_ONLY=\"vfs_type zerofree\"\n"
41028 "\n"
41029 msgstr ""
41030
41031 #. type: textblock
41032 #: ../src/guestfs.pod:2802
41033 msgid ""
41034 "See C<capitests/tests.c> for more details of how these environment variables "
41035 "work."
41036 msgstr ""
41037
41038 #. type: =head2
41039 #: ../src/guestfs.pod:2805
41040 msgid "DEBUGGING NEW API ACTIONS"
41041 msgstr ""
41042
41043 #. type: textblock
41044 #: ../src/guestfs.pod:2807
41045 msgid "Test new actions work before submitting them."
41046 msgstr ""
41047
41048 #. type: textblock
41049 #: ../src/guestfs.pod:2809
41050 msgid "You can use guestfish to try out new commands."
41051 msgstr ""
41052
41053 #. type: textblock
41054 #: ../src/guestfs.pod:2811
41055 msgid ""
41056 "Debugging the daemon is a problem because it runs inside a minimal "
41057 "environment.  However you can fprintf messages in the daemon to stderr, and "
41058 "they will show up if you use C<guestfish -v>."
41059 msgstr ""
41060
41061 #. type: =head2
41062 #: ../src/guestfs.pod:2815
41063 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
41064 msgstr ""
41065
41066 #. type: textblock
41067 #: ../src/guestfs.pod:2817
41068 msgid ""
41069 "Our C source code generally adheres to some basic code-formatting "
41070 "conventions.  The existing code base is not totally consistent on this "
41071 "front, but we do prefer that contributed code be formatted similarly.  In "
41072 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
41073 "indentation level, and other than that, follow the K&R style."
41074 msgstr ""
41075
41076 #. type: textblock
41077 #: ../src/guestfs.pod:2823
41078 msgid ""
41079 "If you use Emacs, add the following to one of one of your start-up files (e."
41080 "g., ~/.emacs), to help ensure that you get indentation right:"
41081 msgstr ""
41082
41083 #. type: verbatim
41084 #: ../src/guestfs.pod:2826
41085 #, no-wrap
41086 msgid ""
41087 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
41088 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
41089 " (add-hook 'find-file-hook\n"
41090 "     '(lambda () (if (and buffer-file-name\n"
41091 "                          (string-match \"/libguestfs\\\\>\"\n"
41092 "                              (buffer-file-name))\n"
41093 "                          (not (string-equal mode-name \"Change Log\"))\n"
41094 "                          (not (string-equal mode-name \"Makefile\")))\n"
41095 "                     (setq indent-tabs-mode nil))))\n"
41096 " \n"
41097 msgstr ""
41098
41099 #. type: verbatim
41100 #: ../src/guestfs.pod:2836
41101 #, no-wrap
41102 msgid ""
41103 " ;;; When editing C sources in libguestfs, use this style.\n"
41104 " (defun libguestfs-c-mode ()\n"
41105 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
41106 "   (interactive)\n"
41107 "   (c-set-style \"K&R\")\n"
41108 "   (setq c-indent-level 2)\n"
41109 "   (setq c-basic-offset 2))\n"
41110 " (add-hook 'c-mode-hook\n"
41111 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
41112 "                               (buffer-file-name))\n"
41113 "                           (libguestfs-c-mode))))\n"
41114 "\n"
41115 msgstr ""
41116
41117 #. type: textblock
41118 #: ../src/guestfs.pod:2848
41119 msgid "Enable warnings when compiling (and fix any problems this finds):"
41120 msgstr ""
41121
41122 #. type: verbatim
41123 #: ../src/guestfs.pod:2851
41124 #, no-wrap
41125 msgid ""
41126 " ./configure --enable-gcc-warnings\n"
41127 "\n"
41128 msgstr ""
41129
41130 #. type: textblock
41131 #: ../src/guestfs.pod:2853
41132 msgid "Useful targets are:"
41133 msgstr ""
41134
41135 #. type: verbatim
41136 #: ../src/guestfs.pod:2855
41137 #, no-wrap
41138 msgid ""
41139 " make syntax-check  # checks the syntax of the C code\n"
41140 " make check         # runs the test suite\n"
41141 "\n"
41142 msgstr ""
41143
41144 #. type: =head2
41145 #: ../src/guestfs.pod:2858
41146 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
41147 msgstr ""
41148
41149 #. type: textblock
41150 #: ../src/guestfs.pod:2860
41151 msgid ""
41152 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
41153 "which are used to do shell quoting."
41154 msgstr ""
41155
41156 #. type: =item
41157 #: ../src/guestfs.pod:2865
41158 msgid "%Q"
41159 msgstr ""
41160
41161 #. type: textblock
41162 #: ../src/guestfs.pod:2867
41163 msgid ""
41164 "Simple shell quoted string.  Any spaces or other shell characters are "
41165 "escaped for you."
41166 msgstr ""
41167
41168 #. type: =item
41169 #: ../src/guestfs.pod:2870
41170 msgid "%R"
41171 msgstr ""
41172
41173 #. type: textblock
41174 #: ../src/guestfs.pod:2872
41175 msgid ""
41176 "Same as C<%Q> except the string is treated as a path which is prefixed by "
41177 "the sysroot."
41178 msgstr ""
41179
41180 #. type: verbatim
41181 #: ../src/guestfs.pod:2879
41182 #, no-wrap
41183 msgid ""
41184 " asprintf (&cmd, \"cat %R\", path);\n"
41185 "\n"
41186 msgstr ""
41187
41188 #. type: textblock
41189 #: ../src/guestfs.pod:2881
41190 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
41191 msgstr ""
41192
41193 #. type: textblock
41194 #: ../src/guestfs.pod:2883
41195 msgid ""
41196 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41197 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
41198 "they are not passed via the shell (instead, straight to exec).  You probably "
41199 "want to use the C<sysroot_path()> function however."
41200 msgstr ""
41201
41202 #. type: =head2
41203 #: ../src/guestfs.pod:2889
41204 msgid "SUBMITTING YOUR NEW API ACTIONS"
41205 msgstr ""
41206
41207 #. type: textblock
41208 #: ../src/guestfs.pod:2891
41209 msgid ""
41210 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41211 "libguestfs> and CC to L<rjones@redhat.com>."
41212 msgstr ""
41213
41214 #. type: =head2
41215 #: ../src/guestfs.pod:2895
41216 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41217 msgstr ""
41218
41219 #. type: textblock
41220 #: ../src/guestfs.pod:2897
41221 msgid "We support i18n (gettext anyhow) in the library."
41222 msgstr ""
41223
41224 #. type: textblock
41225 #: ../src/guestfs.pod:2899
41226 msgid ""
41227 "However many messages come from the daemon, and we don't translate those at "
41228 "the moment.  One reason is that the appliance generally has all locale files "
41229 "removed from it, because they take up a lot of space.  So we'd have to readd "
41230 "some of those, as well as copying our PO files into the appliance."
41231 msgstr ""
41232
41233 #. type: textblock
41234 #: ../src/guestfs.pod:2905
41235 msgid ""
41236 "Debugging messages are never translated, since they are intended for the "
41237 "programmers."
41238 msgstr ""
41239
41240 #. type: =head2
41241 #: ../src/guestfs.pod:2908
41242 msgid "SOURCE CODE SUBDIRECTORIES"
41243 msgstr ""
41244
41245 #. type: =item
41246 #: ../src/guestfs.pod:2912
41247 msgid "C<align>"
41248 msgstr ""
41249
41250 #. type: textblock
41251 #: ../src/guestfs.pod:2914
41252 msgid "L<virt-alignment-scan(1)> command and documentation."
41253 msgstr ""
41254
41255 #. type: textblock
41256 #: ../src/guestfs.pod:2918
41257 msgid "The libguestfs appliance, build scripts and so on."
41258 msgstr ""
41259
41260 #. type: =item
41261 #: ../src/guestfs.pod:2920
41262 msgid "C<capitests>"
41263 msgstr ""
41264
41265 #. type: textblock
41266 #: ../src/guestfs.pod:2922
41267 msgid "Automated tests of the C API."
41268 msgstr ""
41269
41270 #. type: =item
41271 #: ../src/guestfs.pod:2924
41272 msgid "C<cat>"
41273 msgstr ""
41274
41275 #. type: textblock
41276 #: ../src/guestfs.pod:2926
41277 msgid ""
41278 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41279 "documentation."
41280 msgstr ""
41281
41282 #. type: =item
41283 #: ../src/guestfs.pod:2929
41284 msgid "C<caution>"
41285 msgstr ""
41286
41287 #. type: textblock
41288 #: ../src/guestfs.pod:2931
41289 msgid ""
41290 "Safety and liveness tests of components that libguestfs depends upon (not of "
41291 "libguestfs itself).  Mainly this is for qemu and the kernel."
41292 msgstr ""
41293
41294 #. type: =item
41295 #: ../src/guestfs.pod:2934
41296 msgid "C<clone>"
41297 msgstr ""
41298
41299 #. type: textblock
41300 #: ../src/guestfs.pod:2936
41301 msgid ""
41302 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
41303 "command and documentation."
41304 msgstr ""
41305
41306 #. type: =item
41307 #: ../src/guestfs.pod:2939
41308 msgid "C<contrib>"
41309 msgstr ""
41310
41311 #. type: textblock
41312 #: ../src/guestfs.pod:2941
41313 msgid "Outside contributions, experimental parts."
41314 msgstr ""
41315
41316 #. type: =item
41317 #: ../src/guestfs.pod:2943
41318 msgid "C<daemon>"
41319 msgstr ""
41320
41321 #. type: textblock
41322 #: ../src/guestfs.pod:2945
41323 msgid ""
41324 "The daemon that runs inside the libguestfs appliance and carries out actions."
41325 msgstr ""
41326
41327 #. type: =item
41328 #: ../src/guestfs.pod:2948
41329 msgid "C<df>"
41330 msgstr ""
41331
41332 #. type: textblock
41333 #: ../src/guestfs.pod:2950
41334 msgid "L<virt-df(1)> command and documentation."
41335 msgstr ""
41336
41337 #. type: =item
41338 #: ../src/guestfs.pod:2952
41339 msgid "C<edit>"
41340 msgstr ""
41341
41342 #. type: textblock
41343 #: ../src/guestfs.pod:2954
41344 msgid "L<virt-edit(1)> command and documentation."
41345 msgstr ""
41346
41347 #. type: =item
41348 #: ../src/guestfs.pod:2956
41349 msgid "C<examples>"
41350 msgstr ""
41351
41352 #. type: textblock
41353 #: ../src/guestfs.pod:2958
41354 msgid "C API example code."
41355 msgstr ""
41356
41357 #. type: =item
41358 #: ../src/guestfs.pod:2960
41359 msgid "C<extratests>"
41360 msgstr ""
41361
41362 #. type: textblock
41363 #: ../src/guestfs.pod:2962
41364 msgid ""
41365 "Extra tests.  These are not run by default because they require special "
41366 "tools or configuration."
41367 msgstr ""
41368
41369 #. type: =item
41370 #: ../src/guestfs.pod:2965
41371 msgid "C<fish>"
41372 msgstr ""
41373
41374 #. type: textblock
41375 #: ../src/guestfs.pod:2967
41376 msgid ""
41377 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41378 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41379 "L<virt-tar-out(1)>."
41380 msgstr ""
41381
41382 #. type: =item
41383 #: ../src/guestfs.pod:2971
41384 msgid "C<fuse>"
41385 msgstr ""
41386
41387 #. type: textblock
41388 #: ../src/guestfs.pod:2973
41389 msgid ""
41390 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41391 msgstr ""
41392
41393 #. type: =item
41394 #: ../src/guestfs.pod:2975
41395 msgid "C<generator>"
41396 msgstr ""
41397
41398 #. type: textblock
41399 #: ../src/guestfs.pod:2977
41400 msgid ""
41401 "The crucially important generator, used to automatically generate large "
41402 "amounts of boilerplate C code for things like RPC and bindings."
41403 msgstr ""
41404
41405 #. type: =item
41406 #: ../src/guestfs.pod:2980
41407 msgid "C<images>"
41408 msgstr ""
41409
41410 #. type: textblock
41411 #: ../src/guestfs.pod:2982
41412 msgid "Files used by the test suite."
41413 msgstr ""
41414
41415 #. type: textblock
41416 #: ../src/guestfs.pod:2984
41417 msgid "Some \"phony\" guest images which we test against."
41418 msgstr ""
41419
41420 #. type: =item
41421 #: ../src/guestfs.pod:2986
41422 msgid "C<inspector>"
41423 msgstr ""
41424
41425 #. type: textblock
41426 #: ../src/guestfs.pod:2988
41427 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41428 msgstr ""
41429
41430 #. type: =item
41431 #: ../src/guestfs.pod:2990
41432 msgid "C<logo>"
41433 msgstr ""
41434
41435 #. type: textblock
41436 #: ../src/guestfs.pod:2992
41437 msgid "Logo used on the website.  The fish is called Arthur by the way."
41438 msgstr ""
41439
41440 #. type: =item
41441 #: ../src/guestfs.pod:2994
41442 msgid "C<m4>"
41443 msgstr ""
41444
41445 #. type: textblock
41446 #: ../src/guestfs.pod:2996
41447 msgid "M4 macros used by autoconf."
41448 msgstr ""
41449
41450 #. type: =item
41451 #: ../src/guestfs.pod:2998
41452 msgid "C<po>"
41453 msgstr ""
41454
41455 #. type: textblock
41456 #: ../src/guestfs.pod:3000
41457 msgid "Translations of simple gettext strings."
41458 msgstr ""
41459
41460 #. type: =item
41461 #: ../src/guestfs.pod:3002
41462 msgid "C<po-docs>"
41463 msgstr ""
41464
41465 #. type: textblock
41466 #: ../src/guestfs.pod:3004
41467 msgid ""
41468 "The build infrastructure and PO files for translations of manpages and POD "
41469 "files.  Eventually this will be combined with the C<po> directory, but that "
41470 "is rather complicated."
41471 msgstr ""
41472
41473 #. type: =item
41474 #: ../src/guestfs.pod:3008
41475 msgid "C<regressions>"
41476 msgstr ""
41477
41478 #. type: textblock
41479 #: ../src/guestfs.pod:3010
41480 msgid "Regression tests."
41481 msgstr ""
41482
41483 #. type: =item
41484 #: ../src/guestfs.pod:3012
41485 msgid "C<rescue>"
41486 msgstr ""
41487
41488 #. type: textblock
41489 #: ../src/guestfs.pod:3014
41490 msgid "L<virt-rescue(1)> command and documentation."
41491 msgstr ""
41492
41493 #. type: =item
41494 #: ../src/guestfs.pod:3016
41495 msgid "C<resize>"
41496 msgstr ""
41497
41498 #. type: textblock
41499 #: ../src/guestfs.pod:3018
41500 msgid "L<virt-resize(1)> command and documentation."
41501 msgstr ""
41502
41503 #. type: =item
41504 #: ../src/guestfs.pod:3020
41505 msgid "C<sparsify>"
41506 msgstr ""
41507
41508 #. type: textblock
41509 #: ../src/guestfs.pod:3022
41510 msgid "L<virt-sparsify(1)> command and documentation."
41511 msgstr ""
41512
41513 #. type: =item
41514 #: ../src/guestfs.pod:3024
41515 msgid "C<src>"
41516 msgstr ""
41517
41518 #. type: textblock
41519 #: ../src/guestfs.pod:3026
41520 msgid "Source code to the C library."
41521 msgstr ""
41522
41523 #. type: =item
41524 #: ../src/guestfs.pod:3028
41525 msgid "C<tools>"
41526 msgstr ""
41527
41528 #. type: textblock
41529 #: ../src/guestfs.pod:3030
41530 msgid ""
41531 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41532 msgstr ""
41533
41534 #. type: =item
41535 #: ../src/guestfs.pod:3032
41536 msgid "C<test-tool>"
41537 msgstr ""
41538
41539 #. type: textblock
41540 #: ../src/guestfs.pod:3034
41541 msgid ""
41542 "Test tool for end users to test if their qemu/kernel combination will work "
41543 "with libguestfs."
41544 msgstr ""
41545
41546 #. type: =item
41547 #: ../src/guestfs.pod:3037
41548 msgid "C<csharp>"
41549 msgstr ""
41550
41551 #. type: =item
41552 #: ../src/guestfs.pod:3039
41553 msgid "C<erlang>"
41554 msgstr ""
41555
41556 #. type: =item
41557 #: ../src/guestfs.pod:3041
41558 msgid "C<haskell>"
41559 msgstr ""
41560
41561 #. type: =item
41562 #: ../src/guestfs.pod:3043
41563 msgid "C<java>"
41564 msgstr ""
41565
41566 #. type: =item
41567 #: ../src/guestfs.pod:3045
41568 msgid "C<ocaml>"
41569 msgstr ""
41570
41571 #. type: =item
41572 #: ../src/guestfs.pod:3047
41573 msgid "C<php>"
41574 msgstr ""
41575
41576 #. type: =item
41577 #: ../src/guestfs.pod:3049
41578 msgid "C<perl>"
41579 msgstr ""
41580
41581 #. type: =item
41582 #: ../src/guestfs.pod:3051
41583 msgid "C<python>"
41584 msgstr ""
41585
41586 #. type: =item
41587 #: ../src/guestfs.pod:3053
41588 msgid "C<ruby>"
41589 msgstr ""
41590
41591 #. type: textblock
41592 #: ../src/guestfs.pod:3055
41593 msgid "Language bindings."
41594 msgstr ""
41595
41596 #. type: =head2
41597 #: ../src/guestfs.pod:3059
41598 msgid "MAKING A STABLE RELEASE"
41599 msgstr ""
41600
41601 #. type: textblock
41602 #: ../src/guestfs.pod:3061
41603 msgid ""
41604 "When we make a stable release, there are several steps documented here.  See "
41605 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41606 "branch policy."
41607 msgstr ""
41608
41609 #. type: textblock
41610 #: ../src/guestfs.pod:3069
41611 msgid ""
41612 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41613 msgstr ""
41614
41615 #. type: textblock
41616 #: ../src/guestfs.pod:3074
41617 msgid "Finalize RELEASE-NOTES."
41618 msgstr ""
41619
41620 #. type: textblock
41621 #: ../src/guestfs.pod:3078
41622 msgid "Update ROADMAP."
41623 msgstr ""
41624
41625 #. type: textblock
41626 #: ../src/guestfs.pod:3082
41627 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41628 msgstr ""
41629
41630 #. type: textblock
41631 #: ../src/guestfs.pod:3086
41632 msgid "Push and pull from Transifex."
41633 msgstr ""
41634
41635 #. type: verbatim
41636 #: ../src/guestfs.pod:3090
41637 #, no-wrap
41638 msgid ""
41639 " tx push -s\n"
41640 "\n"
41641 msgstr ""
41642
41643 #. type: textblock
41644 #: ../src/guestfs.pod:3092
41645 msgid "to push the latest POT files to Transifex.  Then run:"
41646 msgstr ""
41647
41648 #. type: verbatim
41649 #: ../src/guestfs.pod:3094
41650 #, no-wrap
41651 msgid ""
41652 " ./tx-pull.sh\n"
41653 "\n"
41654 msgstr ""
41655
41656 #. type: textblock
41657 #: ../src/guestfs.pod:3096
41658 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41659 msgstr ""
41660
41661 #. type: textblock
41662 #: ../src/guestfs.pod:3100
41663 msgid ""
41664 "Create new stable and development directories under L<http://libguestfs.org/"
41665 "download>."
41666 msgstr ""
41667
41668 #. type: textblock
41669 #: ../src/guestfs.pod:3105
41670 msgid "Create the branch in git:"
41671 msgstr ""
41672
41673 #. type: verbatim
41674 #: ../src/guestfs.pod:3107
41675 #, no-wrap
41676 msgid ""
41677 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41678 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41679 " git branch stable-1.XX\n"
41680 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41681 "\n"
41682 msgstr ""
41683
41684 #. type: =head1
41685 #: ../src/guestfs.pod:3114
41686 msgid "LIMITS"
41687 msgstr ""
41688
41689 #. type: =head2
41690 #: ../src/guestfs.pod:3116
41691 msgid "PROTOCOL LIMITS"
41692 msgstr ""
41693
41694 #. type: textblock
41695 #: ../src/guestfs.pod:3118
41696 msgid ""
41697 "Internally libguestfs uses a message-based protocol to pass API calls and "
41698 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41699 "plenty more detail about this).  The maximum message size used by the "
41700 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
41701 "aware of this limit.  The API calls which may be affected are individually "
41702 "documented, with a link back to this section of the documentation."
41703 msgstr ""
41704
41705 #. type: textblock
41706 #: ../src/guestfs.pod:3126
41707 msgid ""
41708 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41709 "a simple string.  Because this string is at some point internally encoded as "
41710 "a message, the maximum size that it can return is slightly under 4 MB.  If "
41711 "the requested file is larger than this then you will get an error."
41712 msgstr ""
41713
41714 #. type: textblock
41715 #: ../src/guestfs.pod:3132
41716 msgid ""
41717 "In order to transfer large files into and out of the guest filesystem, you "
41718 "need to use particular calls that support this.  The sections L</UPLOADING> "
41719 "and L</DOWNLOADING> document how to do this."
41720 msgstr ""
41721
41722 #. type: textblock
41723 #: ../src/guestfs.pod:3136
41724 msgid ""
41725 "You might also consider mounting the disk image using our FUSE filesystem "
41726 "support (L<guestmount(1)>)."
41727 msgstr ""
41728
41729 #. type: =head2
41730 #: ../src/guestfs.pod:3139
41731 msgid "MAXIMUM NUMBER OF DISKS"
41732 msgstr ""
41733
41734 #. type: textblock
41735 #: ../src/guestfs.pod:3141
41736 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41737 msgstr ""
41738
41739 #. type: textblock
41740 #: ../src/guestfs.pod:3144
41741 msgid ""
41742 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41743 "slots.  However febootstrap only understands disks with names C</dev/vda> "
41744 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41745 "purposes."
41746 msgstr ""
41747
41748 #. type: textblock
41749 #: ../src/guestfs.pod:3149
41750 msgid ""
41751 "We are working to substantially raise this limit in future versions but it "
41752 "requires complex changes to qemu."
41753 msgstr ""
41754
41755 #. type: textblock
41756 #: ../src/guestfs.pod:3152
41757 msgid ""
41758 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41759 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
41760 "requires changes to qemu."
41761 msgstr ""
41762
41763 #. type: =head2
41764 #: ../src/guestfs.pod:3156
41765 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41766 msgstr ""
41767
41768 #. type: textblock
41769 #: ../src/guestfs.pod:3158
41770 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41771 msgstr ""
41772
41773 #. type: textblock
41774 #: ../src/guestfs.pod:3160
41775 msgid ""
41776 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41777 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41778 msgstr ""
41779
41780 #. type: textblock
41781 #: ../src/guestfs.pod:3163
41782 msgid ""
41783 "If you attach a disk with more than 15 partitions, the extra partitions are "
41784 "ignored by libguestfs."
41785 msgstr ""
41786
41787 #. type: =head2
41788 #: ../src/guestfs.pod:3166
41789 msgid "MAXIMUM SIZE OF A DISK"
41790 msgstr ""
41791
41792 #. type: textblock
41793 #: ../src/guestfs.pod:3168
41794 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41795 msgstr ""
41796
41797 #. type: textblock
41798 #: ../src/guestfs.pod:3170
41799 msgid ""
41800 "We have tested block devices up to 1 exabyte (2**60 or "
41801 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41802 "filesystem."
41803 msgstr ""
41804
41805 #. type: textblock
41806 #: ../src/guestfs.pod:3174
41807 msgid ""
41808 "Although libguestfs probably does not impose any limit, the underlying host "
41809 "storage will.  If you store disk images on a host ext4 filesystem, then the "
41810 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41811 "TB).  If you store disk images as host logical volumes then you are limited "
41812 "by the maximum size of an LV."
41813 msgstr ""
41814
41815 #. type: textblock
41816 #: ../src/guestfs.pod:3180
41817 msgid ""
41818 "For the hugest disk image files, we recommend using XFS on the host for "
41819 "storage."
41820 msgstr ""
41821
41822 #. type: =head2
41823 #: ../src/guestfs.pod:3183
41824 msgid "MAXIMUM SIZE OF A PARTITION"
41825 msgstr ""
41826
41827 #. type: textblock
41828 #: ../src/guestfs.pod:3185
41829 msgid ""
41830 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41831 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
41832 "address a partition located beyond 2 TB on the disk."
41833 msgstr ""
41834
41835 #. type: textblock
41836 #: ../src/guestfs.pod:3189
41837 msgid ""
41838 "It is recommended that you use GPT partitions on disks which are larger than "
41839 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
41840 "which are theoretically larger than the largest disk we could support."
41841 msgstr ""
41842
41843 #. type: =head2
41844 #: ../src/guestfs.pod:3194
41845 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41846 msgstr ""
41847
41848 #. type: textblock
41849 #: ../src/guestfs.pod:3196
41850 msgid ""
41851 "This depends on the filesystem type.  libguestfs itself does not impose any "
41852 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
41853 "what these limits are."
41854 msgstr ""
41855
41856 #. type: =head2
41857 #: ../src/guestfs.pod:3200
41858 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41859 msgstr ""
41860
41861 #. type: textblock
41862 #: ../src/guestfs.pod:3202
41863 msgid ""
41864 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41865 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41866 "uploads and downloads."
41867 msgstr ""
41868
41869 #. type: =head2
41870 #: ../src/guestfs.pod:3206
41871 msgid "INSPECTION LIMITS"
41872 msgstr ""
41873
41874 #. type: textblock
41875 #: ../src/guestfs.pod:3208
41876 msgid ""
41877 "The inspection code has several arbitrary limits on things like the size of "
41878 "Windows Registry hive it will read, and the length of product name.  These "
41879 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41880 "memory and disk space on the host, and should not be reached in practice.  "
41881 "See the source code for more information."
41882 msgstr ""
41883
41884 #. type: textblock
41885 #: ../src/guestfs.pod:3234
41886 msgid ""
41887 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
41888 "effect as calling C<guestfs_set_verbose (g, 1)>."
41889 msgstr ""
41890
41891 #. type: textblock
41892 #: ../src/guestfs.pod:3246
41893 msgid ""
41894 "Set the path that libguestfs uses to search for a supermin appliance.  See "
41895 "the discussion of paths in section L</PATH> above."
41896 msgstr ""
41897
41898 #. type: textblock
41899 #: ../src/guestfs.pod:3255
41900 msgid "See also L</QEMU WRAPPERS> above."
41901 msgstr ""
41902
41903 #. type: textblock
41904 #: ../src/guestfs.pod:3259
41905 msgid ""
41906 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
41907 "effect as calling C<guestfs_set_trace (g, 1)>."
41908 msgstr ""
41909
41910 #. type: textblock
41911 #: ../src/guestfs.pod:3277
41912 msgid ""
41913 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41914 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41915 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41916 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41917 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41918 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41919 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41920 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
41921 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
41922 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
41923 msgstr ""
41924
41925 #. type: textblock
41926 #: ../src/guestfs.pod:3314
41927 msgid ""
41928 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41929 "(8)>, L<disktype(1)>."
41930 msgstr ""
41931
41932 #. type: =head1
41933 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571
41934 #: ../tools/virt-win-reg.pl:772
41935 msgid "BUGS"
41936 msgstr ""
41937
41938 #. type: textblock
41939 #: ../src/guestfs.pod:3323
41940 msgid "To get a list of bugs against libguestfs use this link:"
41941 msgstr ""
41942
41943 #. type: textblock
41944 #: ../src/guestfs.pod:3325
41945 msgid ""
41946 "L<https://bugzilla.redhat.com/buglist.cgi?"
41947 "component=libguestfs&product=Virtualization+Tools>"
41948 msgstr ""
41949
41950 #. type: textblock
41951 #: ../src/guestfs.pod:3327
41952 msgid "To report a new bug against libguestfs use this link:"
41953 msgstr ""
41954
41955 #. type: textblock
41956 #: ../src/guestfs.pod:3329
41957 msgid ""
41958 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41959 "component=libguestfs&product=Virtualization+Tools>"
41960 msgstr ""
41961
41962 #. type: textblock
41963 #: ../src/guestfs.pod:3331
41964 msgid "When reporting a bug, please check:"
41965 msgstr ""
41966
41967 #. type: textblock
41968 #: ../src/guestfs.pod:3337
41969 msgid "That the bug hasn't been reported already."
41970 msgstr ""
41971
41972 #. type: textblock
41973 #: ../src/guestfs.pod:3341
41974 msgid "That you are testing a recent version."
41975 msgstr ""
41976
41977 #. type: textblock
41978 #: ../src/guestfs.pod:3345
41979 msgid "Describe the bug accurately, and give a way to reproduce it."
41980 msgstr ""
41981
41982 #. type: textblock
41983 #: ../src/guestfs.pod:3349
41984 msgid ""
41985 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41986 "bug report."
41987 msgstr ""
41988
41989 #. type: textblock
41990 #: ../test-tool/libguestfs-test-tool.pod:5
41991 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41992 msgstr ""
41993
41994 #. type: verbatim
41995 #: ../test-tool/libguestfs-test-tool.pod:9
41996 #, no-wrap
41997 msgid ""
41998 " libguestfs-test-tool [--options]\n"
41999 "\n"
42000 msgstr ""
42001
42002 #. type: textblock
42003 #: ../test-tool/libguestfs-test-tool.pod:13
42004 msgid ""
42005 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
42006 "to check basic libguestfs functionality is working.  This is needed because "
42007 "libguestfs occasionally breaks for reasons beyond our control: usually "
42008 "because of changes in the underlying qemu or kernel packages, or the host "
42009 "environment."
42010 msgstr ""
42011
42012 #. type: textblock
42013 #: ../test-tool/libguestfs-test-tool.pod:19
42014 msgid "If you suspect a problem in libguestfs, then just run:"
42015 msgstr ""
42016
42017 #. type: verbatim
42018 #: ../test-tool/libguestfs-test-tool.pod:21
42019 #, no-wrap
42020 msgid ""
42021 " libguestfs-test-tool\n"
42022 "\n"
42023 msgstr ""
42024
42025 #. type: textblock
42026 #: ../test-tool/libguestfs-test-tool.pod:23
42027 msgid "It will print lots of diagnostic messages."
42028 msgstr ""
42029
42030 #. type: textblock
42031 #: ../test-tool/libguestfs-test-tool.pod:25
42032 msgid "If it runs to completion successfully, you will see this near the end:"
42033 msgstr ""
42034
42035 #. type: verbatim
42036 #: ../test-tool/libguestfs-test-tool.pod:27
42037 #, no-wrap
42038 msgid ""
42039 " ===== TEST FINISHED OK =====\n"
42040 "\n"
42041 msgstr ""
42042
42043 #. type: textblock
42044 #: ../test-tool/libguestfs-test-tool.pod:29
42045 msgid "and the test tool will exit with code 0."
42046 msgstr ""
42047
42048 #. type: textblock
42049 #: ../test-tool/libguestfs-test-tool.pod:31
42050 msgid ""
42051 "If it fails (and/or exits with non-zero error code), please paste the "
42052 "I<complete, unedited> output of the test tool into a bug report.  More "
42053 "information about reporting bugs can be found on the L<http://libguestfs.org/"
42054 "> website."
42055 msgstr ""
42056
42057 #. type: textblock
42058 #: ../test-tool/libguestfs-test-tool.pod:42
42059 msgid "Display short usage information and exit."
42060 msgstr ""
42061
42062 #. type: =item
42063 #: ../test-tool/libguestfs-test-tool.pod:44
42064 msgid "B<--qemu qemu_binary>"
42065 msgstr ""
42066
42067 #. type: textblock
42068 #: ../test-tool/libguestfs-test-tool.pod:46
42069 msgid ""
42070 "If you have downloaded another qemu binary, point this option at the full "
42071 "path of the binary to try it."
42072 msgstr ""
42073
42074 #. type: =item
42075 #: ../test-tool/libguestfs-test-tool.pod:49
42076 msgid "B<--qemudir qemu_source_dir>"
42077 msgstr ""
42078
42079 #. type: textblock
42080 #: ../test-tool/libguestfs-test-tool.pod:51
42081 msgid ""
42082 "If you have compiled qemu from source, point this option at the source "
42083 "directory to try it."
42084 msgstr ""
42085
42086 #. type: =item
42087 #: ../test-tool/libguestfs-test-tool.pod:54
42088 msgid "B<-t N>"
42089 msgstr ""
42090
42091 #. type: =item
42092 #: ../test-tool/libguestfs-test-tool.pod:56
42093 msgid "B<--timeout N>"
42094 msgstr ""
42095
42096 #. type: textblock
42097 #: ../test-tool/libguestfs-test-tool.pod:58
42098 msgid ""
42099 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
42100 "minutes) which does not usually need to be adjusted."
42101 msgstr ""
42102
42103 #. type: =head1
42104 #: ../test-tool/libguestfs-test-tool.pod:63
42105 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
42106 msgstr ""
42107
42108 #. type: textblock
42109 #: ../test-tool/libguestfs-test-tool.pod:65
42110 msgid ""
42111 "If you have compiled another version of qemu from source and would like to "
42112 "try that, then you can use the I<--qemudir> option to point to the qemu "
42113 "source directory."
42114 msgstr ""
42115
42116 #. type: textblock
42117 #: ../test-tool/libguestfs-test-tool.pod:69
42118 msgid ""
42119 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
42120 "option to point to the binary."
42121 msgstr ""
42122
42123 #. type: textblock
42124 #: ../test-tool/libguestfs-test-tool.pod:72
42125 msgid ""
42126 "Note when using these options, you can ignore the business of qemu wrapper "
42127 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
42128 "wrapper script for you if one is needed."
42129 msgstr ""
42130
42131 #. type: =head1
42132 #: ../test-tool/libguestfs-test-tool.pod:76
42133 msgid "TRYING OUT A DIFFERENT KERNEL"
42134 msgstr ""
42135
42136 #. type: textblock
42137 #: ../test-tool/libguestfs-test-tool.pod:78
42138 msgid ""
42139 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
42140 "libguestfs tries.  You do this by setting the environment variables "
42141 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
42142 msgstr ""
42143
42144 #. type: textblock
42145 #: ../test-tool/libguestfs-test-tool.pod:82
42146 msgid ""
42147 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
42148 "information."
42149 msgstr ""
42150
42151 #. type: =head1
42152 #: ../test-tool/libguestfs-test-tool.pod:85
42153 msgid "SELF-DIAGNOSIS"
42154 msgstr ""
42155
42156 #. type: textblock
42157 #: ../test-tool/libguestfs-test-tool.pod:87
42158 msgid ""
42159 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
42160 "produced by libguestfs-test-tool and/or possible errors."
42161 msgstr ""
42162
42163 #. type: textblock
42164 #: ../test-tool/libguestfs-test-tool.pod:92
42165 msgid ""
42166 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
42167 "I<1> if there was an error."
42168 msgstr ""
42169
42170 #. type: textblock
42171 #: ../test-tool/libguestfs-test-tool.pod:97
42172 msgid ""
42173 "For the full list of environment variables which may affect libguestfs, "
42174 "please see the L<guestfs(3)> manual page."
42175 msgstr ""
42176
42177 #. type: textblock
42178 #: ../test-tool/libguestfs-test-tool.pod:102
42179 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
42180 msgstr ""
42181
42182 #. type: textblock
42183 #: ../tools/virt-list-filesystems.pl:32
42184 msgid ""
42185 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
42186 msgstr ""
42187
42188 #. type: verbatim
42189 #: ../tools/virt-list-filesystems.pl:36
42190 #, no-wrap
42191 msgid ""
42192 " virt-list-filesystems [--options] domname\n"
42193 "\n"
42194 msgstr ""
42195
42196 #. type: verbatim
42197 #: ../tools/virt-list-filesystems.pl:38
42198 #, no-wrap
42199 msgid ""
42200 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42201 "\n"
42202 msgstr ""
42203
42204 #. type: textblock
42205 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42206 msgid ""
42207 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
42208 "replacement."
42209 msgstr ""
42210
42211 #. type: textblock
42212 #: ../tools/virt-list-filesystems.pl:45
42213 msgid ""
42214 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42215 "are contained in a virtual machine or disk image."
42216 msgstr ""
42217
42218 #. type: textblock
42219 #: ../tools/virt-list-filesystems.pl:49
42220 msgid ""
42221 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42222 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42223 "> tool."
42224 msgstr ""
42225
42226 #. type: textblock
42227 #: ../tools/virt-list-filesystems.pl:112
42228 msgid ""
42229 "With this option, C<virt-list-filesystems> displays the type of each "
42230 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42231 msgstr ""
42232
42233 #. type: =item
42234 #: ../tools/virt-list-filesystems.pl:119
42235 msgid "B<-a>"
42236 msgstr ""
42237
42238 #. type: textblock
42239 #: ../tools/virt-list-filesystems.pl:123
42240 msgid ""
42241 "Normally we only show mountable filesystems.  If this option is given then "
42242 "swap devices are shown too."
42243 msgstr ""
42244
42245 #. type: textblock
42246 #: ../tools/virt-list-filesystems.pl:197
42247 msgid ""
42248 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42249 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42250 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42251 msgstr ""
42252
42253 #. type: textblock
42254 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42255 msgid "Copyright (C) 2009 Red Hat Inc."
42256 msgstr ""
42257
42258 #. type: textblock
42259 #: ../tools/virt-list-partitions.pl:32
42260 msgid ""
42261 "virt-list-partitions - List partitions in a virtual machine or disk image"
42262 msgstr ""
42263
42264 #. type: verbatim
42265 #: ../tools/virt-list-partitions.pl:36
42266 #, no-wrap
42267 msgid ""
42268 " virt-list-partitions [--options] domname\n"
42269 "\n"
42270 msgstr ""
42271
42272 #. type: verbatim
42273 #: ../tools/virt-list-partitions.pl:38
42274 #, no-wrap
42275 msgid ""
42276 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42277 "\n"
42278 msgstr ""
42279
42280 #. type: textblock
42281 #: ../tools/virt-list-partitions.pl:45
42282 msgid ""
42283 "C<virt-list-partitions> is a command line tool to list the partitions that "
42284 "are contained in a virtual machine or disk image.  It is mainly useful as a "
42285 "first step to using L<virt-resize(1)>."
42286 msgstr ""
42287
42288 #. type: textblock
42289 #: ../tools/virt-list-partitions.pl:50
42290 msgid ""
42291 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42292 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42293 "> tool."
42294 msgstr ""
42295
42296 #. type: textblock
42297 #: ../tools/virt-list-partitions.pl:113
42298 msgid "Show sizes in human-readable form (eg. \"1G\")."
42299 msgstr ""
42300
42301 #. type: textblock
42302 #: ../tools/virt-list-partitions.pl:123
42303 msgid ""
42304 "With this option, C<virt-list-partitions> displays the type and size of each "
42305 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42306 msgstr ""
42307
42308 #. type: =item
42309 #: ../tools/virt-list-partitions.pl:130
42310 msgid "B<-t>"
42311 msgstr ""
42312
42313 #. type: =item
42314 #: ../tools/virt-list-partitions.pl:132
42315 msgid "B<--total>"
42316 msgstr ""
42317
42318 #. type: textblock
42319 #: ../tools/virt-list-partitions.pl:134
42320 msgid ""
42321 "Display the total size of each block device (as a separate row or rows)."
42322 msgstr ""
42323
42324 #. type: textblock
42325 #: ../tools/virt-list-partitions.pl:267
42326 msgid ""
42327 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42328 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42329 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42330 msgstr ""
42331
42332 #. type: textblock
42333 #: ../tools/virt-list-partitions.pl:283
42334 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42335 msgstr ""
42336
42337 #. type: textblock
42338 #: ../tools/virt-make-fs.pl:37
42339 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42340 msgstr ""
42341
42342 #. type: verbatim
42343 #: ../tools/virt-make-fs.pl:41
42344 #, no-wrap
42345 msgid ""
42346 " virt-make-fs [--options] input.tar output.img\n"
42347 "\n"
42348 msgstr ""
42349
42350 #. type: verbatim
42351 #: ../tools/virt-make-fs.pl:43
42352 #, no-wrap
42353 msgid ""
42354 " virt-make-fs [--options] input.tar.gz output.img\n"
42355 "\n"
42356 msgstr ""
42357
42358 #. type: verbatim
42359 #: ../tools/virt-make-fs.pl:45
42360 #, no-wrap
42361 msgid ""
42362 " virt-make-fs [--options] directory output.img\n"
42363 "\n"
42364 msgstr ""
42365
42366 #. type: textblock
42367 #: ../tools/virt-make-fs.pl:49
42368 msgid ""
42369 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42370 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
42371 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
42372 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42373 "you want to attach these filesystems to existing virtual machines (eg. to "
42374 "import large amounts of read-only data to a VM)."
42375 msgstr ""
42376
42377 #. type: textblock
42378 #: ../tools/virt-make-fs.pl:57
42379 msgid "Basic usage is:"
42380 msgstr ""
42381
42382 #. type: verbatim
42383 #: ../tools/virt-make-fs.pl:59
42384 #, no-wrap
42385 msgid ""
42386 " virt-make-fs input output.img\n"
42387 "\n"
42388 msgstr ""
42389
42390 #. type: textblock
42391 #: ../tools/virt-make-fs.pl:61
42392 msgid ""
42393 "where C<input> is either a directory containing files that you want to add, "
42394 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42395 "C<output.img> is a disk image.  The input type is detected automatically.  "
42396 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42397 "extra flags (see L</OPTIONS> below)."
42398 msgstr ""
42399
42400 #. type: =head2
42401 #: ../tools/virt-make-fs.pl:67
42402 msgid "FILESYSTEM TYPE"
42403 msgstr ""
42404
42405 #. type: textblock
42406 #: ../tools/virt-make-fs.pl:69
42407 msgid ""
42408 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
42409 "libguestfs supports can be used (but I<not> read-only formats like "
42410 "ISO9660).  Here are some of the more common choices:"
42411 msgstr ""
42412
42413 #. type: =item
42414 #: ../tools/virt-make-fs.pl:75
42415 msgid "I<ext3>"
42416 msgstr ""
42417
42418 #. type: textblock
42419 #: ../tools/virt-make-fs.pl:77
42420 msgid ""
42421 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
42422 "you are not going to use the filesystem in a way that requires the journal, "
42423 "then this is just wasted overhead."
42424 msgstr ""
42425
42426 #. type: =item
42427 #: ../tools/virt-make-fs.pl:81
42428 msgid "I<ntfs> or I<vfat>"
42429 msgstr ""
42430
42431 #. type: textblock
42432 #: ../tools/virt-make-fs.pl:83
42433 msgid "Useful if exporting data to a Windows guest."
42434 msgstr ""
42435
42436 #. type: textblock
42437 #: ../tools/virt-make-fs.pl:85
42438 msgid ""
42439 "I<Note for vfat>: The tar archive or local directory must only contain files "
42440 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
42441 "program running within libguestfs is unable to change the ownership of non-"
42442 "root files, since vfat itself does not support this."
42443 msgstr ""
42444
42445 #. type: =item
42446 #: ../tools/virt-make-fs.pl:90
42447 msgid "I<minix>"
42448 msgstr ""
42449
42450 #. type: textblock
42451 #: ../tools/virt-make-fs.pl:92
42452 msgid ""
42453 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42454 "total filesystem size."
42455 msgstr ""
42456
42457 #. type: =head3
42458 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42459 #: ../tools/virt-make-fs.pl:149
42460 msgid "EXAMPLE"
42461 msgstr ""
42462
42463 #. type: verbatim
42464 #: ../tools/virt-make-fs.pl:99
42465 #, no-wrap
42466 msgid ""
42467 " virt-make-fs --type=minix input minixfs.img\n"
42468 "\n"
42469 msgstr ""
42470
42471 #. type: =head2
42472 #: ../tools/virt-make-fs.pl:101
42473 msgid "TO PARTITION OR NOT TO PARTITION"
42474 msgstr ""
42475
42476 #. type: textblock
42477 #: ../tools/virt-make-fs.pl:103
42478 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42479 msgstr ""
42480
42481 #. type: textblock
42482 #: ../tools/virt-make-fs.pl:105
42483 msgid ""
42484 "Adding a partition can make the disk image more compatible with certain "
42485 "virtualized operating systems which don't expect to see a filesystem "
42486 "directly located on a block device (Linux doesn't care and will happily "
42487 "handle both types)."
42488 msgstr ""
42489
42490 #. type: textblock
42491 #: ../tools/virt-make-fs.pl:110
42492 msgid ""
42493 "On the other hand, if you have a partition table then the output image is no "
42494 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
42495 "directly on a partitioned disk image.  (However libguestfs tools such as "
42496 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42497 msgstr ""
42498
42499 #. type: textblock
42500 #: ../tools/virt-make-fs.pl:118
42501 msgid "Add an MBR partition:"
42502 msgstr ""
42503
42504 #. type: verbatim
42505 #: ../tools/virt-make-fs.pl:120
42506 #, no-wrap
42507 msgid ""
42508 " virt-make-fs --partition -- input disk.img\n"
42509 "\n"
42510 msgstr ""
42511
42512 #. type: textblock
42513 #: ../tools/virt-make-fs.pl:122
42514 msgid ""
42515 "If the output disk image could be terabyte-sized or larger, it's better to "
42516 "use an EFI/GPT-compatible partition table:"
42517 msgstr ""
42518
42519 #. type: verbatim
42520 #: ../tools/virt-make-fs.pl:125
42521 #, no-wrap
42522 msgid ""
42523 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42524 "\n"
42525 msgstr ""
42526
42527 #. type: =head2
42528 #: ../tools/virt-make-fs.pl:127
42529 msgid "EXTRA SPACE"
42530 msgstr ""
42531
42532 #. type: textblock
42533 #: ../tools/virt-make-fs.pl:129
42534 msgid ""
42535 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42536 "the files that it contains, but might have extra space.  Depending on how "
42537 "you are going to use the output, you might think this extra space is wasted "
42538 "and want to minimize it, or you might want to leave space so that more files "
42539 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
42540 "but you can use the I<--size> flag to leave space in the filesystem if you "
42541 "want it."
42542 msgstr ""
42543
42544 #. type: textblock
42545 #: ../tools/virt-make-fs.pl:137
42546 msgid ""
42547 "An alternative way to leave extra space but not make the output image any "
42548 "bigger is to use an alternative disk image format (instead of the default "
42549 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42550 "image format (check your hypervisor supports this before using it).  This "
42551 "allows you to choose a large I<--size> but the extra space won't actually be "
42552 "allocated in the image until you try to store something in it."
42553 msgstr ""
42554
42555 #. type: textblock
42556 #: ../tools/virt-make-fs.pl:145
42557 msgid ""
42558 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42559 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42560 "to build another image from scratch."
42561 msgstr ""
42562
42563 #. type: verbatim
42564 #: ../tools/virt-make-fs.pl:151
42565 #, no-wrap
42566 msgid ""
42567 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42568 "\n"
42569 msgstr ""
42570
42571 #. type: textblock
42572 #: ../tools/virt-make-fs.pl:179
42573 msgid "Enable debugging information."
42574 msgstr ""
42575
42576 #. type: =item
42577 #: ../tools/virt-make-fs.pl:185
42578 msgid "B<--size=E<lt>NE<gt>>"
42579 msgstr ""
42580
42581 #. type: =item
42582 #: ../tools/virt-make-fs.pl:187
42583 msgid "B<--size=+E<lt>NE<gt>>"
42584 msgstr ""
42585
42586 #. type: =item
42587 #: ../tools/virt-make-fs.pl:189
42588 msgid "B<-s E<lt>NE<gt>>"
42589 msgstr ""
42590
42591 #. type: =item
42592 #: ../tools/virt-make-fs.pl:191
42593 msgid "B<-s +E<lt>NE<gt>>"
42594 msgstr ""
42595
42596 #. type: textblock
42597 #: ../tools/virt-make-fs.pl:193
42598 msgid ""
42599 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42600 msgstr ""
42601
42602 #. type: textblock
42603 #: ../tools/virt-make-fs.pl:196
42604 msgid ""
42605 "If this option is I<not> given, then the output image will be just large "
42606 "enough to contain all the files, with not much wasted space."
42607 msgstr ""
42608
42609 #. type: textblock
42610 #: ../tools/virt-make-fs.pl:199
42611 msgid ""
42612 "To choose a fixed size output disk, specify an absolute number followed by b/"
42613 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42614 "Petabytes or Exabytes.  This must be large enough to contain all the input "
42615 "files, else you will get an error."
42616 msgstr ""
42617
42618 #. type: textblock
42619 #: ../tools/virt-make-fs.pl:204
42620 msgid ""
42621 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42622 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42623 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
42624 "the input files, and (approximately) an extra 200 MB free space."
42625 msgstr ""
42626
42627 #. type: textblock
42628 #: ../tools/virt-make-fs.pl:210
42629 msgid ""
42630 "Note that virt-make-fs estimates free space, and therefore will not produce "
42631 "filesystems containing precisely the free space requested.  (It is much more "
42632 "expensive and time-consuming to produce a filesystem which has precisely the "
42633 "desired free space)."
42634 msgstr ""
42635
42636 #. type: =item
42637 #: ../tools/virt-make-fs.pl:219
42638 msgid "B<--format=E<lt>fmtE<gt>>"
42639 msgstr ""
42640
42641 #. type: =item
42642 #: ../tools/virt-make-fs.pl:221
42643 msgid "B<-F E<lt>fmtE<gt>>"
42644 msgstr ""
42645
42646 #. type: textblock
42647 #: ../tools/virt-make-fs.pl:223
42648 msgid "Choose the output disk image format."
42649 msgstr ""
42650
42651 #. type: textblock
42652 #: ../tools/virt-make-fs.pl:225
42653 msgid "The default is C<raw> (raw sparse disk image)."
42654 msgstr ""
42655
42656 #. type: textblock
42657 #: ../tools/virt-make-fs.pl:227
42658 msgid ""
42659 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
42660 "that would really make sense here is C<qcow2>."
42661 msgstr ""
42662
42663 #. type: =item
42664 #: ../tools/virt-make-fs.pl:234
42665 msgid "B<--type=E<lt>fsE<gt>>"
42666 msgstr ""
42667
42668 #. type: =item
42669 #: ../tools/virt-make-fs.pl:236
42670 msgid "B<-t E<lt>fsE<gt>>"
42671 msgstr ""
42672
42673 #. type: textblock
42674 #: ../tools/virt-make-fs.pl:238
42675 msgid "Choose the output filesystem type."
42676 msgstr ""
42677
42678 #. type: textblock
42679 #: ../tools/virt-make-fs.pl:240
42680 msgid "The default is C<ext2>."
42681 msgstr ""
42682
42683 #. type: textblock
42684 #: ../tools/virt-make-fs.pl:242
42685 msgid ""
42686 "Any filesystem which is supported read-write by libguestfs can be used here."
42687 msgstr ""
42688
42689 #. type: =item
42690 #: ../tools/virt-make-fs.pl:249
42691 msgid "B<--partition>"
42692 msgstr ""
42693
42694 #. type: =item
42695 #: ../tools/virt-make-fs.pl:251
42696 msgid "B<--partition=E<lt>parttypeE<gt>>"
42697 msgstr ""
42698
42699 #. type: textblock
42700 #: ../tools/virt-make-fs.pl:253
42701 msgid ""
42702 "If specified, this flag adds an MBR partition table to the output disk image."
42703 msgstr ""
42704
42705 #. type: textblock
42706 #: ../tools/virt-make-fs.pl:256
42707 msgid ""
42708 "You can change the partition table type, eg. I<--partition=gpt> for large "
42709 "disks."
42710 msgstr ""
42711
42712 #. type: textblock
42713 #: ../tools/virt-make-fs.pl:259
42714 msgid ""
42715 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42716 "might consider the next parameter to be the partition type.  For example:"
42717 msgstr ""
42718
42719 #. type: verbatim
42720 #: ../tools/virt-make-fs.pl:263
42721 #, no-wrap
42722 msgid ""
42723 " virt-make-fs --partition input.tar output.img\n"
42724 "\n"
42725 msgstr ""
42726
42727 #. type: textblock
42728 #: ../tools/virt-make-fs.pl:265
42729 msgid ""
42730 "would cause virt-make-fs to think you wanted to use a partition type of "
42731 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
42732 "dash) between options and the input and output arguments:"
42733 msgstr ""
42734
42735 #. type: verbatim
42736 #: ../tools/virt-make-fs.pl:269
42737 #, no-wrap
42738 msgid ""
42739 " virt-make-fs --partition -- input.tar output.img\n"
42740 "\n"
42741 msgstr ""
42742
42743 #. type: textblock
42744 #: ../tools/virt-make-fs.pl:271
42745 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42746 msgstr ""
42747
42748 #. type: textblock
42749 #: ../tools/virt-make-fs.pl:559
42750 msgid ""
42751 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42752 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42753 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42754 msgstr ""
42755
42756 #. type: textblock
42757 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42758 msgid ""
42759 "When reporting bugs, please enable debugging and capture the I<complete> "
42760 "output:"
42761 msgstr ""
42762
42763 #. type: verbatim
42764 #: ../tools/virt-make-fs.pl:576
42765 #, no-wrap
42766 msgid ""
42767 " export LIBGUESTFS_DEBUG=1\n"
42768 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42769 "\n"
42770 msgstr ""
42771
42772 #. type: textblock
42773 #: ../tools/virt-make-fs.pl:579
42774 msgid ""
42775 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42776 "redhat.com/>"
42777 msgstr ""
42778
42779 #. type: textblock
42780 #: ../tools/virt-tar.pl:33
42781 msgid "virt-tar - Extract or upload files to a virtual machine"
42782 msgstr ""
42783
42784 #. type: verbatim
42785 #: ../tools/virt-tar.pl:37
42786 #, no-wrap
42787 msgid ""
42788 " virt-tar [--options] -x domname directory tarball\n"
42789 "\n"
42790 msgstr ""
42791
42792 #. type: verbatim
42793 #: ../tools/virt-tar.pl:39
42794 #, no-wrap
42795 msgid ""
42796 " virt-tar [--options] -u domname tarball directory\n"
42797 "\n"
42798 msgstr ""
42799
42800 #. type: verbatim
42801 #: ../tools/virt-tar.pl:41
42802 #, no-wrap
42803 msgid ""
42804 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42805 "\n"
42806 msgstr ""
42807
42808 #. type: verbatim
42809 #: ../tools/virt-tar.pl:43
42810 #, no-wrap
42811 msgid ""
42812 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42813 "\n"
42814 msgstr ""
42815
42816 #. type: =head2
42817 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42818 msgid "NOTE"
42819 msgstr ""
42820
42821 #. type: textblock
42822 #: ../tools/virt-tar.pl:47
42823 msgid ""
42824 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42825 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42826 msgstr ""
42827
42828 #. type: textblock
42829 #: ../tools/virt-tar.pl:52
42830 msgid "Download C</home> from the VM into a local tarball:"
42831 msgstr ""
42832
42833 #. type: verbatim
42834 #: ../tools/virt-tar.pl:54
42835 #, no-wrap
42836 msgid ""
42837 " virt-tar -x domname /home home.tar\n"
42838 "\n"
42839 msgstr ""
42840
42841 #. type: verbatim
42842 #: ../tools/virt-tar.pl:56
42843 #, no-wrap
42844 msgid ""
42845 " virt-tar -zx domname /home home.tar.gz\n"
42846 "\n"
42847 msgstr ""
42848
42849 #. type: textblock
42850 #: ../tools/virt-tar.pl:58
42851 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42852 msgstr ""
42853
42854 #. type: verbatim
42855 #: ../tools/virt-tar.pl:60
42856 #, no-wrap
42857 msgid ""
42858 " virt-tar -u domname uploadstuff.tar /tmp\n"
42859 "\n"
42860 msgstr ""
42861
42862 #. type: verbatim
42863 #: ../tools/virt-tar.pl:62
42864 #, no-wrap
42865 msgid ""
42866 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42867 "\n"
42868 msgstr ""
42869
42870 #. type: textblock
42871 #: ../tools/virt-tar.pl:66
42872 msgid ""
42873 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42874 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
42875 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42876 msgstr ""
42877
42878 #. type: textblock
42879 #: ../tools/virt-tar.pl:71
42880 msgid ""
42881 "You can use I<-x> (extract) on live virtual machines, but you might get "
42882 "inconsistent results or errors if there is filesystem activity inside the "
42883 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
42884 "work, but the only way to guarantee consistent results is if the virtual "
42885 "machine is shut down."
42886 msgstr ""
42887
42888 #. type: textblock
42889 #: ../tools/virt-tar.pl:79
42890 msgid ""
42891 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42892 "parts of a guest filesystem.  There are many possibilities: making backups, "
42893 "uploading data files, snooping on guest activity, fixing or customizing "
42894 "guests, etc."
42895 msgstr ""
42896
42897 #. type: textblock
42898 #: ../tools/virt-tar.pl:84
42899 msgid ""
42900 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
42901 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
42902 "should look at the L<guestfish(1)> tool."
42903 msgstr ""
42904
42905 #. type: textblock
42906 #: ../tools/virt-tar.pl:88
42907 msgid ""
42908 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42909 "its contents (recursively) from the virtual machine into a local tarball.  "
42910 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42911 "virtual machine.  You cannot use these two options together."
42912 msgstr ""
42913
42914 #. type: textblock
42915 #: ../tools/virt-tar.pl:94
42916 msgid ""
42917 "In addition, you may need to use the I<-z> (gZip) option to enable "
42918 "compression.  When uploading, you have to specify I<-z> if the upload file "
42919 "is compressed because virt-tar won't detect this on its own."
42920 msgstr ""
42921
42922 #. type: textblock
42923 #: ../tools/virt-tar.pl:98
42924 msgid ""
42925 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
42926 "example it cannot do PKZip files or bzip2 compression.  If you want that "
42927 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
42928 "the L<libguestfs(3)> API)."
42929 msgstr ""
42930
42931 #. type: =item
42932 #: ../tools/virt-tar.pl:160
42933 msgid "B<--extract>"
42934 msgstr ""
42935
42936 #. type: =item
42937 #: ../tools/virt-tar.pl:162
42938 msgid "B<--download>"
42939 msgstr ""
42940
42941 #. type: =item
42942 #: ../tools/virt-tar.pl:164
42943 msgid "B<-u>"
42944 msgstr ""
42945
42946 #. type: =item
42947 #: ../tools/virt-tar.pl:166
42948 msgid "B<--upload>"
42949 msgstr ""
42950
42951 #. type: textblock
42952 #: ../tools/virt-tar.pl:168
42953 msgid ""
42954 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42955 "local tarball."
42956 msgstr ""
42957
42958 #. type: textblock
42959 #: ../tools/virt-tar.pl:171
42960 msgid ""
42961 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
42962 "Please read the L</WARNING> section above before using this option."
42963 msgstr ""
42964
42965 #. type: textblock
42966 #: ../tools/virt-tar.pl:175
42967 msgid "You must specify exactly one of these options."
42968 msgstr ""
42969
42970 #. type: =item
42971 #: ../tools/virt-tar.pl:181
42972 msgid "B<-z>"
42973 msgstr ""
42974
42975 #. type: =item
42976 #: ../tools/virt-tar.pl:183
42977 msgid "B<--gzip>"
42978 msgstr ""
42979
42980 #. type: textblock
42981 #: ../tools/virt-tar.pl:185
42982 msgid "Specify that the input or output tarball is gzip-compressed."
42983 msgstr ""
42984
42985 #. type: textblock
42986 #: ../tools/virt-tar.pl:298
42987 msgid ""
42988 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42989 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42990 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42991 "org/>."
42992 msgstr ""
42993
42994 #. type: textblock
42995 #: ../tools/virt-win-reg.pl:37
42996 msgid ""
42997 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42998 msgstr ""
42999
43000 #. type: verbatim
43001 #: ../tools/virt-win-reg.pl:41
43002 #, no-wrap
43003 msgid ""
43004 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
43005 "\n"
43006 msgstr ""
43007
43008 #. type: verbatim
43009 #: ../tools/virt-win-reg.pl:43
43010 #, no-wrap
43011 msgid ""
43012 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
43013 "\n"
43014 msgstr ""
43015
43016 #. type: verbatim
43017 #: ../tools/virt-win-reg.pl:45
43018 #, no-wrap
43019 msgid ""
43020 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
43021 "\n"
43022 msgstr ""
43023
43024 #. type: verbatim
43025 #: ../tools/virt-win-reg.pl:47
43026 #, no-wrap
43027 msgid ""
43028 " virt-win-reg --merge domname [input.reg ...]\n"
43029 "\n"
43030 msgstr ""
43031
43032 #. type: verbatim
43033 #: ../tools/virt-win-reg.pl:49
43034 #, no-wrap
43035 msgid ""
43036 " virt-win-reg [--options] disk.img ... # instead of domname\n"
43037 "\n"
43038 msgstr ""
43039
43040 #. type: textblock
43041 #: ../tools/virt-win-reg.pl:53
43042 msgid ""
43043 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
43044 "virtual machines.  If you do this, you I<will> get irreversible disk "
43045 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
43046 "but doesn't catch all cases."
43047 msgstr ""
43048
43049 #. type: textblock
43050 #: ../tools/virt-win-reg.pl:58
43051 msgid ""
43052 "Modifying the Windows Registry is an inherently risky operation.  The format "
43053 "is deliberately obscure and undocumented, and Registry changes can leave the "
43054 "system unbootable.  Therefore when using the I<--merge> option, make sure "
43055 "you have a reliable backup first."
43056 msgstr ""
43057
43058 #. type: textblock
43059 #: ../tools/virt-win-reg.pl:65
43060 msgid ""
43061 "This program can export and merge Windows Registry entries from a Windows "
43062 "guest."
43063 msgstr ""
43064
43065 #. type: textblock
43066 #: ../tools/virt-win-reg.pl:68
43067 msgid ""
43068 "The first parameter is the libvirt guest name or the raw disk image of a "
43069 "Windows guest."
43070 msgstr ""
43071
43072 #. type: textblock
43073 #: ../tools/virt-win-reg.pl:71
43074 msgid ""
43075 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
43076 "exported (recursively).  For example:"
43077 msgstr ""
43078
43079 #. type: verbatim
43080 #: ../tools/virt-win-reg.pl:74
43081 #, no-wrap
43082 msgid ""
43083 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43084 "\n"
43085 msgstr ""
43086
43087 #. type: textblock
43088 #: ../tools/virt-win-reg.pl:76
43089 msgid ""
43090 "You can also display single values from within registry keys, for example:"
43091 msgstr ""
43092
43093 #. type: verbatim
43094 #: ../tools/virt-win-reg.pl:79
43095 #, no-wrap
43096 msgid ""
43097 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43098 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43099 " Windows 7 Enterprise\n"
43100 "\n"
43101 msgstr ""
43102
43103 #. type: textblock
43104 #: ../tools/virt-win-reg.pl:83
43105 msgid ""
43106 "With I<--merge>, you can merge a textual regedit file into the Windows "
43107 "Registry:"
43108 msgstr ""
43109
43110 #. type: verbatim
43111 #: ../tools/virt-win-reg.pl:86
43112 #, no-wrap
43113 msgid ""
43114 " $ virt-win-reg --merge Windows7 changes.reg\n"
43115 "\n"
43116 msgstr ""
43117
43118 #. type: textblock
43119 #: ../tools/virt-win-reg.pl:90
43120 msgid ""
43121 "This program is only meant for simple access to the registry.  If you want "
43122 "to do complicated things with the registry, we suggest you download the "
43123 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
43124 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
43125 "L<hivexregedit(1)>."
43126 msgstr ""
43127
43128 #. type: =item
43129 #: ../tools/virt-win-reg.pl:159
43130 msgid "B<--merge>"
43131 msgstr ""
43132
43133 #. type: textblock
43134 #: ../tools/virt-win-reg.pl:161
43135 msgid ""
43136 "In merge mode, this merges a textual regedit file into the Windows Registry "
43137 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
43138 "displays or exports Registry entries instead."
43139 msgstr ""
43140
43141 #. type: textblock
43142 #: ../tools/virt-win-reg.pl:165
43143 msgid ""
43144 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
43145 "result in disk corruption.  However exporting (without this flag)  is always "
43146 "safe."
43147 msgstr ""
43148
43149 #. type: =item
43150 #: ../tools/virt-win-reg.pl:173
43151 msgid "B<--encoding> UTF-16LE|ASCII"
43152 msgstr ""
43153
43154 #. type: textblock
43155 #: ../tools/virt-win-reg.pl:175
43156 msgid ""
43157 "When merging (only), you may need to specify the encoding for strings to be "
43158 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
43159 "(3)/ENCODING STRINGS>."
43160 msgstr ""
43161
43162 #. type: textblock
43163 #: ../tools/virt-win-reg.pl:179
43164 msgid ""
43165 "The default is to use UTF-16LE, which should work with recent versions of "
43166 "Windows."
43167 msgstr ""
43168
43169 #. type: =item
43170 #: ../tools/virt-win-reg.pl:186
43171 msgid "B<--unsafe-printable-strings>"
43172 msgstr ""
43173
43174 #. type: textblock
43175 #: ../tools/virt-win-reg.pl:188
43176 msgid ""
43177 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43178 "instead of hex sequences.  Remove the final zero codepoint from strings if "
43179 "present."
43180 msgstr ""
43181
43182 #. type: textblock
43183 #: ../tools/virt-win-reg.pl:192
43184 msgid ""
43185 "This is unsafe and does not preserve the fidelity of strings in the original "
43186 "Registry for various reasons:"
43187 msgstr ""
43188
43189 #. type: textblock
43190 #: ../tools/virt-win-reg.pl:199
43191 msgid ""
43192 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
43193 "other encodings will be corrupted by this transformation."
43194 msgstr ""
43195
43196 #. type: textblock
43197 #: ../tools/virt-win-reg.pl:204
43198 msgid ""
43199 "Assumes that everything which has type 1 or 2 is really a string and that "
43200 "everything else is not a string, but the type field in real Registries is "
43201 "not reliable."
43202 msgstr ""
43203
43204 #. type: textblock
43205 #: ../tools/virt-win-reg.pl:210
43206 msgid ""
43207 "Loses information about whether a zero codepoint followed the string in the "
43208 "Registry or not."
43209 msgstr ""
43210
43211 #. type: textblock
43212 #: ../tools/virt-win-reg.pl:215
43213 msgid ""
43214 "This all happens because the Registry itself contains no information about "
43215 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43216 msgstr ""
43217
43218 #. type: textblock
43219 #: ../tools/virt-win-reg.pl:219
43220 msgid ""
43221 "You should only use this option for quick hacking and debugging of the "
43222 "Registry contents, and I<never> use it if the output is going to be passed "
43223 "into another program or stored in another Registry."
43224 msgstr ""
43225
43226 #. type: =head1
43227 #: ../tools/virt-win-reg.pl:556
43228 msgid "SUPPORTED SYSTEMS"
43229 msgstr ""
43230
43231 #. type: textblock
43232 #: ../tools/virt-win-reg.pl:558
43233 msgid ""
43234 "The program currently supports Windows NT-derived guests starting with "
43235 "Windows XP through to at least Windows 7."
43236 msgstr ""
43237
43238 #. type: textblock
43239 #: ../tools/virt-win-reg.pl:561
43240 msgid "The following Registry keys are supported:"
43241 msgstr ""
43242
43243 #. type: =item
43244 #: ../tools/virt-win-reg.pl:565
43245 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43246 msgstr ""
43247
43248 #. type: =item
43249 #: ../tools/virt-win-reg.pl:567
43250 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43251 msgstr ""
43252
43253 #. type: =item
43254 #: ../tools/virt-win-reg.pl:569
43255 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43256 msgstr ""
43257
43258 #. type: =item
43259 #: ../tools/virt-win-reg.pl:571
43260 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43261 msgstr ""
43262
43263 #. type: =item
43264 #: ../tools/virt-win-reg.pl:573
43265 msgid "C<HKEY_USERS\\.DEFAULT>"
43266 msgstr ""
43267
43268 #. type: =item
43269 #: ../tools/virt-win-reg.pl:575
43270 msgid "C<HKEY_USERS\\I<SID>>"
43271 msgstr ""
43272
43273 #. type: textblock
43274 #: ../tools/virt-win-reg.pl:577
43275 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43276 msgstr ""
43277
43278 #. type: =item
43279 #: ../tools/virt-win-reg.pl:579
43280 msgid "C<HKEY_USERS\\I<username>>"
43281 msgstr ""
43282
43283 #. type: textblock
43284 #: ../tools/virt-win-reg.pl:581
43285 msgid ""
43286 "where I<username> is a local user name (this is a libguestfs extension)."
43287 msgstr ""
43288
43289 #. type: textblock
43290 #: ../tools/virt-win-reg.pl:585
43291 msgid ""
43292 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43293 "C<HKEY_USERS>."
43294 msgstr ""
43295
43296 #. type: textblock
43297 #: ../tools/virt-win-reg.pl:588
43298 msgid ""
43299 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43300 "supported (there is no \"current user\")."
43301 msgstr ""
43302
43303 #. type: =head1
43304 #: ../tools/virt-win-reg.pl:591
43305 msgid "ENCODING"
43306 msgstr ""
43307
43308 #. type: textblock
43309 #: ../tools/virt-win-reg.pl:593
43310 msgid ""
43311 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43312 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
43313 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
43314 "Windows-style line endings, you may need to reencode the whole file before "
43315 "or after processing."
43316 msgstr ""
43317
43318 #. type: textblock
43319 #: ../tools/virt-win-reg.pl:599
43320 msgid ""
43321 "To reencode a file from Windows format to Linux (before processing it with "
43322 "the I<--merge> option), you would do something like this:"
43323 msgstr ""
43324
43325 #. type: verbatim
43326 #: ../tools/virt-win-reg.pl:602
43327 #, no-wrap
43328 msgid ""
43329 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43330 "\n"
43331 msgstr ""
43332
43333 #. type: textblock
43334 #: ../tools/virt-win-reg.pl:604
43335 msgid ""
43336 "To go in the opposite direction, after exporting and before sending the file "
43337 "to a Windows user, do something like this:"
43338 msgstr ""
43339
43340 #. type: verbatim
43341 #: ../tools/virt-win-reg.pl:607
43342 #, no-wrap
43343 msgid ""
43344 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43345 "\n"
43346 msgstr ""
43347
43348 #. type: textblock
43349 #: ../tools/virt-win-reg.pl:609
43350 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43351 msgstr ""
43352
43353 #. type: textblock
43354 #: ../tools/virt-win-reg.pl:611
43355 msgid ""
43356 "If you are unsure about the current encoding, use the L<file(1)> command.  "
43357 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43358 "style (CRLF) line endings, like this:"
43359 msgstr ""
43360
43361 #. type: verbatim
43362 #: ../tools/virt-win-reg.pl:615
43363 #, no-wrap
43364 msgid ""
43365 " $ file software.reg\n"
43366 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43367 " with CRLF line terminators\n"
43368 "\n"
43369 msgstr ""
43370
43371 #. type: textblock
43372 #: ../tools/virt-win-reg.pl:619
43373 msgid "This file would need conversion before you could I<--merge> it."
43374 msgstr ""
43375
43376 #. type: =head1
43377 #: ../tools/virt-win-reg.pl:621
43378 msgid "CurrentControlSet etc."
43379 msgstr ""
43380
43381 #. type: textblock
43382 #: ../tools/virt-win-reg.pl:623
43383 msgid ""
43384 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43385 "Registry at the level of the hive file, and therefore you cannot modify "
43386 "these."
43387 msgstr ""
43388
43389 #. type: textblock
43390 #: ../tools/virt-win-reg.pl:627
43391 msgid ""
43392 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
43393 "circumstances it might refer to another control set.  The way to find out is "
43394 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43395 msgstr ""
43396
43397 #. type: verbatim
43398 #: ../tools/virt-win-reg.pl:631
43399 #, no-wrap
43400 msgid ""
43401 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43402 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43403 " \"Current\"=dword:00000001\n"
43404 " \"Default\"=dword:00000001\n"
43405 " \"Failed\"=dword:00000000\n"
43406 " \"LastKnownGood\"=dword:00000002\n"
43407 "\n"
43408 msgstr ""
43409
43410 #. type: textblock
43411 #: ../tools/virt-win-reg.pl:638
43412 msgid "\"Current\" is the one which Windows will choose when it boots."
43413 msgstr ""
43414
43415 #. type: textblock
43416 #: ../tools/virt-win-reg.pl:640
43417 msgid ""
43418 "Similarly, other C<Current...> keys in the path may need to be replaced."
43419 msgstr ""
43420
43421 #. type: =head1
43422 #: ../tools/virt-win-reg.pl:643
43423 msgid "DELETING REGISTRY KEYS AND VALUES"
43424 msgstr ""
43425
43426 #. type: textblock
43427 #: ../tools/virt-win-reg.pl:645
43428 msgid "To delete a whole registry key, use the syntax:"
43429 msgstr ""
43430
43431 #. type: verbatim
43432 #: ../tools/virt-win-reg.pl:647
43433 #, no-wrap
43434 msgid ""
43435 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43436 "\n"
43437 msgstr ""
43438
43439 #. type: textblock
43440 #: ../tools/virt-win-reg.pl:649
43441 msgid "To delete a single value within a key, use the syntax:"
43442 msgstr ""
43443
43444 #. type: verbatim
43445 #: ../tools/virt-win-reg.pl:651
43446 #, no-wrap
43447 msgid ""
43448 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43449 " \"Value\"=-\n"
43450 "\n"
43451 msgstr ""
43452
43453 #. type: =head1
43454 #: ../tools/virt-win-reg.pl:654
43455 msgid "WINDOWS TIPS"
43456 msgstr ""
43457
43458 #. type: textblock
43459 #: ../tools/virt-win-reg.pl:656
43460 msgid ""
43461 "Note that some of these tips modify the guest disk image.  The guest I<must> "
43462 "be shut off, else you will get disk corruption."
43463 msgstr ""
43464
43465 #. type: =head2
43466 #: ../tools/virt-win-reg.pl:659
43467 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43468 msgstr ""
43469
43470 #. type: textblock
43471 #: ../tools/virt-win-reg.pl:661
43472 msgid ""
43473 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
43474 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
43475 "is uploaded into C<C:\\>:"
43476 msgstr ""
43477
43478 #. type: verbatim
43479 #: ../tools/virt-win-reg.pl:665
43480 #, no-wrap
43481 msgid ""
43482 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43483 "\n"
43484 msgstr ""
43485
43486 #. type: textblock
43487 #: ../tools/virt-win-reg.pl:667
43488 msgid "Prepare a regedit file containing the registry change:"
43489 msgstr ""
43490
43491 #. type: verbatim
43492 #: ../tools/virt-win-reg.pl:669
43493 #, no-wrap
43494 msgid ""
43495 " cat > test.reg <<'EOF'\n"
43496 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43497 " \"Test\"=\"c:\\\\test.bat\"\n"
43498 " EOF\n"
43499 "\n"
43500 msgstr ""
43501
43502 #. type: textblock
43503 #: ../tools/virt-win-reg.pl:674
43504 msgid ""
43505 "In this example we use the key C<RunOnce> which means that the script will "
43506 "run precisely once when the first user logs in.  If you want it to run every "
43507 "time a user logs in, replace C<RunOnce> with C<Run>."
43508 msgstr ""
43509
43510 #. type: textblock
43511 #: ../tools/virt-win-reg.pl:678
43512 msgid "Now update the registry:"
43513 msgstr ""
43514
43515 #. type: verbatim
43516 #: ../tools/virt-win-reg.pl:680
43517 #, no-wrap
43518 msgid ""
43519 " virt-win-reg --merge WindowsGuest test.reg\n"
43520 "\n"
43521 msgstr ""
43522
43523 #. type: =head2
43524 #: ../tools/virt-win-reg.pl:682
43525 msgid "INSTALLING A SERVICE"
43526 msgstr ""
43527
43528 #. type: textblock
43529 #: ../tools/virt-win-reg.pl:684
43530 msgid ""
43531 "This section assumes you are familiar with Windows services, and you either "
43532 "have a program which handles the Windows Service Control Protocol directly "
43533 "or you want to run any program using a service wrapper like SrvAny or the "
43534 "free RHSrvAny."
43535 msgstr ""
43536
43537 #. type: textblock
43538 #: ../tools/virt-win-reg.pl:689
43539 msgid ""
43540 "First upload the program and optionally the service wrapper.  In this case "
43541 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43542 msgstr ""
43543
43544 #. type: verbatim
43545 #: ../tools/virt-win-reg.pl:693
43546 #, no-wrap
43547 msgid ""
43548 " guestfish -i -d WindowsGuest <<EOF\n"
43549 "   upload rhsrvany.exe /rhsrvany.exe\n"
43550 "   upload test.exe /test.exe\n"
43551 " EOF\n"
43552 "\n"
43553 msgstr ""
43554
43555 #. type: textblock
43556 #: ../tools/virt-win-reg.pl:698
43557 msgid ""
43558 "Prepare a regedit file containing the registry changes.  In this example, "
43559 "the first registry change is needed for the service itself or the service "
43560 "wrapper (if used).  The second registry change is only needed because I am "
43561 "using the RHSrvAny service wrapper."
43562 msgstr ""
43563
43564 #. type: verbatim
43565 #: ../tools/virt-win-reg.pl:703
43566 #, no-wrap
43567 msgid ""
43568 " cat > service.reg <<'EOF'\n"
43569 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43570 " \"Type\"=dword:00000010\n"
43571 " \"Start\"=dword:00000002\n"
43572 " \"ErrorControl\"=dword:00000001\n"
43573 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43574 " \"DisplayName\"=\"RHSrvAny\"\n"
43575 " \"ObjectName\"=\"NetworkService\"\n"
43576 " \n"
43577 msgstr ""
43578
43579 #. type: verbatim
43580 #: ../tools/virt-win-reg.pl:712
43581 #, no-wrap
43582 msgid ""
43583 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43584 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43585 " \"PWD\"=\"c:\\\\Temp\"\n"
43586 " EOF\n"
43587 "\n"
43588 msgstr ""
43589
43590 #. type: textblock
43591 #: ../tools/virt-win-reg.pl:723
43592 msgid ""
43593 "For use of C<ControlSet001> see the section above in this manual page.  You "
43594 "may need to adjust this according to the control set that is in use by the "
43595 "guest."
43596 msgstr ""
43597
43598 #. type: textblock
43599 #: ../tools/virt-win-reg.pl:729
43600 msgid ""
43601 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
43602 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43603 "privileged account."
43604 msgstr ""
43605
43606 #. type: textblock
43607 #: ../tools/virt-win-reg.pl:735
43608 msgid ""
43609 "For the meaning of the magic numbers, see this Microsoft KB article: "
43610 "L<http://support.microsoft.com/kb/103000>."
43611 msgstr ""
43612
43613 #. type: textblock
43614 #: ../tools/virt-win-reg.pl:740
43615 msgid "Update the registry:"
43616 msgstr ""
43617
43618 #. type: verbatim
43619 #: ../tools/virt-win-reg.pl:742
43620 #, no-wrap
43621 msgid ""
43622 " virt-win-reg --merge WindowsGuest service.reg\n"
43623 "\n"
43624 msgstr ""
43625
43626 #. type: textblock
43627 #: ../tools/virt-win-reg.pl:746
43628 msgid ""
43629 "Be careful when passing parameters containing C<\\> (backslash) in the "
43630 "shell.  Usually you will have to use 'single quotes' or double backslashes "
43631 "(but not both) to protect them from the shell."
43632 msgstr ""
43633
43634 #. type: textblock
43635 #: ../tools/virt-win-reg.pl:750
43636 msgid "Paths and value names are case-insensitive."
43637 msgstr ""
43638
43639 #. type: textblock
43640 #: ../tools/virt-win-reg.pl:759
43641 msgid ""
43642 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43643 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43644 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43645 msgstr ""
43646
43647 #. type: verbatim
43648 #: ../tools/virt-win-reg.pl:777
43649 #, no-wrap
43650 msgid ""
43651 " export LIBGUESTFS_DEBUG=1\n"
43652 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43653 "\n"
43654 msgstr ""
43655
43656 #. type: textblock
43657 #: ../tools/virt-win-reg.pl:780
43658 msgid ""
43659 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43660 "redhat.com/>"
43661 msgstr ""