744b65246598ad6ac0995eeb8c876e2888002d18
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Translators:
6 # rjones <rjones@redhat.com>, 2011.
7 #   <www.carrotsoft@gmail.com>, 2011.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: libguestfs\n"
11 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
12 "POT-Creation-Date: 2011-10-27 16:05+0200\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 ../fish/guestfish.pod:3
28 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
29 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
30 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
31 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
32 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
33 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
34 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
35 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
36 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
38 #: ../tools/virt-win-reg.pl:35
39 msgid "NAME"
40 msgstr "名前"
41
42 #. type: textblock
43 #: ../align/virt-alignment-scan.pod:5
44 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
45 msgstr ""
46
47 #. type: =head1
48 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
49 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
50 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
51 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
52 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
53 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
54 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
55 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
56 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
57 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
58 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
59 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
60 #: ../test-tool/libguestfs-test-tool.pod:7
61 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
62 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
63 #: ../tools/virt-win-reg.pl:39
64 msgid "SYNOPSIS"
65 msgstr ""
66
67 #. type: verbatim
68 #: ../align/virt-alignment-scan.pod:9
69 #, no-wrap
70 msgid ""
71 " virt-alignment-scan [--options] -d domname\n"
72 "\n"
73 msgstr ""
74
75 #. type: verbatim
76 #: ../align/virt-alignment-scan.pod:11
77 #, no-wrap
78 msgid ""
79 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
80 "\n"
81 msgstr ""
82
83 #. type: =head1
84 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
85 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
86 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
87 #: ../erlang/examples/guestfs-erlang.pod:16
88 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
89 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
90 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
91 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
92 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
93 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
94 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
95 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
96 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
97 #: ../test-tool/libguestfs-test-tool.pod:11
98 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
99 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
100 #: ../tools/virt-win-reg.pl:63
101 msgid "DESCRIPTION"
102 msgstr ""
103
104 #. type: textblock
105 #: ../align/virt-alignment-scan.pod:15
106 msgid ""
107 "When older operating systems install themselves, the partitioning tools "
108 "place partitions at a sector misaligned with the underlying storage "
109 "(commonly the first partition starts on sector C<63>).  Misaligned "
110 "partitions can result in an operating system issuing more I/O than should be "
111 "necessary."
112 msgstr ""
113
114 #. type: textblock
115 #: ../align/virt-alignment-scan.pod:21
116 msgid ""
117 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
118 "machines and disk images and warns you if there are alignment problems."
119 msgstr ""
120
121 #. type: textblock
122 #: ../align/virt-alignment-scan.pod:25
123 msgid ""
124 "Currently there is no virt tool for fixing alignment problems.  You can only "
125 "reinstall the guest operating system.  The following NetApp document "
126 "summarises the problem and possible solutions: L<http://media.netapp.com/"
127 "documents/tr-3747.pdf>"
128 msgstr ""
129
130 #. type: =head1
131 #: ../align/virt-alignment-scan.pod:30
132 msgid "OUTPUT"
133 msgstr ""
134
135 #. type: textblock
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
138 msgstr ""
139
140 #. type: verbatim
141 #: ../align/virt-alignment-scan.pod:34
142 #, no-wrap
143 msgid ""
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
146 "\n"
147 msgstr ""
148
149 #. type: verbatim
150 #: ../align/virt-alignment-scan.pod:37
151 #, no-wrap
152 msgid ""
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1      1048576         1024K   ok\n"
155 " /dev/sda2      2097152         2048K   ok\n"
156 " /dev/sda3    526385152         2048K   ok\n"
157 "\n"
158 msgstr ""
159
160 #. type: textblock
161 #: ../align/virt-alignment-scan.pod:42
162 msgid ""
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../align/virt-alignment-scan.pod:45
169 #, no-wrap
170 msgid ""
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
173 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
174 "\n"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../align/virt-alignment-scan.pod:49
179 #, no-wrap
180 msgid ""
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1      1048576         1024K   ok\n"
183 " /dev/sda2    105906176         1024K   ok\n"
184 " /dev/sdb1        65536           64K   ok\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../align/virt-alignment-scan.pod:54
190 msgid ""
191 "The output consists of 4 or more whitespace-separated columns.  Only the "
192 "first 4 columns are signficant if you want to parse this from a program.  "
193 "The columns are:"
194 msgstr ""
195
196 #. type: =item
197 #: ../align/virt-alignment-scan.pod:60
198 msgid "col 1"
199 msgstr ""
200
201 #. type: textblock
202 #: ../align/virt-alignment-scan.pod:62
203 msgid ""
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
206 msgstr ""
207
208 #. type: =item
209 #: ../align/virt-alignment-scan.pod:65
210 msgid "col 2"
211 msgstr ""
212
213 #. type: textblock
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
216 msgstr ""
217
218 #. type: =item
219 #: ../align/virt-alignment-scan.pod:69
220 msgid "col 3"
221 msgstr ""
222
223 #. type: textblock
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
226 msgstr ""
227
228 #. type: =item
229 #: ../align/virt-alignment-scan.pod:73
230 msgid "col 4"
231 msgstr ""
232
233 #. type: textblock
234 #: ../align/virt-alignment-scan.pod:75
235 msgid ""
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
238 msgstr ""
239
240 #. type: =item
241 #: ../align/virt-alignment-scan.pod:78
242 msgid "cols 5+"
243 msgstr ""
244
245 #. type: textblock
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
248 msgstr ""
249
250 #. type: textblock
251 #: ../align/virt-alignment-scan.pod:84
252 msgid ""
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found.  See L</EXIT STATUS> below."
255 msgstr ""
256
257 #. type: textblock
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
260 msgstr ""
261
262 #. type: =head1
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
270 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
275 msgid "OPTIONS"
276 msgstr ""
277
278 #. type: =item
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
284 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
289 msgid "B<--help>"
290 msgstr ""
291
292 #. type: textblock
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr ""
302
303 #. type: =item
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
308 msgid "B<-a> file"
309 msgstr ""
310
311 #. type: =item
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
316 msgid "B<--add> file"
317 msgstr ""
318
319 #. type: textblock
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
330 msgid ""
331 "The format of the disk image is auto-detected.  To override this and force a "
332 "particular format use the I<--format=..> option."
333 msgstr ""
334
335 #. type: =item
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:107
340 msgid "B<-c> URI"
341 msgstr ""
342
343 #. type: =item
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:109
348 msgid "B<--connect> URI"
349 msgstr ""
350
351 #. type: textblock
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
358 msgid ""
359 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
360 "to the default libvirt hypervisor."
361 msgstr ""
362
363 #. type: textblock
364 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:114
368 msgid ""
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
370 "used at all."
371 msgstr ""
372
373 #. type: =item
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
378 msgid "B<-d> guest"
379 msgstr ""
380
381 #. type: =item
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
386 msgid "B<--domain> guest"
387 msgstr ""
388
389 #. type: textblock
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
394 msgid ""
395 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
396 "instead of names."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr ""
407
408 #. type: =item
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:126
415 msgid "B<--format>"
416 msgstr ""
417
418 #. type: textblock
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
424 msgid ""
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image.  Using this forces the disk format for I<-a> options which follow on "
427 "the command line.  Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
429 msgstr ""
430
431 #. type: textblock
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
437 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2877
438 msgid "For example:"
439 msgstr ""
440
441 #. type: verbatim
442 #: ../align/virt-alignment-scan.pod:134
443 #, no-wrap
444 msgid ""
445 " virt-alignment-scan --format=raw -a disk.img\n"
446 "\n"
447 msgstr ""
448
449 #. type: textblock
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:137
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
456 msgstr ""
457
458 #. type: verbatim
459 #: ../align/virt-alignment-scan.pod:138
460 #, no-wrap
461 msgid ""
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
463 "\n"
464 msgstr ""
465
466 #. type: textblock
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:141
472 msgid ""
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
475 msgstr ""
476
477 #. type: textblock
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
482 msgid ""
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format.  This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
486 msgstr ""
487
488 #. type: =item
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:491
490 #: ../sparsify/virt-sparsify.pod:153
491 msgid "B<-q>"
492 msgstr ""
493
494 #. type: =item
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
496 #: ../sparsify/virt-sparsify.pod:155
497 msgid "B<--quiet>"
498 msgstr ""
499
500 #. type: textblock
501 #: ../align/virt-alignment-scan.pod:151
502 msgid ""
503 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
504 "below)."
505 msgstr ""
506
507 #. type: =item
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
514 msgid "B<-v>"
515 msgstr ""
516
517 #. type: =item
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
524 msgid "B<--verbose>"
525 msgstr ""
526
527 #. type: textblock
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
534 msgstr ""
535
536 #. type: =item
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:561
543 #: ../sparsify/virt-sparsify.pod:165
544 msgid "B<-V>"
545 msgstr ""
546
547 #. type: =item
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:563
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
557 msgid "B<--version>"
558 msgstr ""
559
560 #. type: textblock
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:565
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr ""
571
572 #. type: =item
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
580 msgid "B<-x>"
581 msgstr ""
582
583 #. type: textblock
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
590 msgstr ""
591
592 #. type: =head1
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:174
599 msgid ""
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size.  This happens because of a historical accident.  Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track.  The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
607 "63."
608 msgstr ""
609
610 #. type: textblock
611 #: ../align/virt-alignment-scan.pod:183
612 msgid ""
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
615 msgstr ""
616
617 #. type: =item
618 #: ../align/virt-alignment-scan.pod:188
619 msgid "* 512 bytes"
620 msgstr ""
621
622 #. type: textblock
623 #: ../align/virt-alignment-scan.pod:190
624 msgid ""
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
627 msgstr ""
628
629 #. type: =item
630 #: ../align/virt-alignment-scan.pod:193
631 msgid "* 4 Kbytes"
632 msgstr ""
633
634 #. type: textblock
635 #: ../align/virt-alignment-scan.pod:195
636 msgid ""
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
640 msgstr ""
641
642 #. type: =item
643 #: ../align/virt-alignment-scan.pod:199
644 msgid "* 64 Kbytes"
645 msgstr ""
646
647 #. type: textblock
648 #: ../align/virt-alignment-scan.pod:201
649 msgid ""
650 "for high-end network-attached storage.  This is the optimal block size for "
651 "some NetApp hardware."
652 msgstr ""
653
654 #. type: =item
655 #: ../align/virt-alignment-scan.pod:204
656 msgid "* 1 Mbyte"
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
662 msgstr ""
663
664 #. type: textblock
665 #: ../align/virt-alignment-scan.pod:210
666 msgid ""
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O.  For example:"
669 msgstr ""
670
671 #. type: verbatim
672 #: ../align/virt-alignment-scan.pod:213
673 #, no-wrap
674 msgid ""
675 "                       sect#63\n"
676 "                       +--------------------------+------\n"
677 "                       |         guest            |\n"
678 "                       |    filesystem block      |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 "    |  host block             |  host block             |\n"
681 "    |                         |                         |\n"
682 " ---+-------------------------+-------------------------+---\n"
683 "\n"
684 msgstr ""
685
686 #. type: textblock
687 #: ../align/virt-alignment-scan.pod:222
688 msgid ""
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
693 msgstr ""
694
695 #. type: =head2
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:229
702 msgid ""
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
705 msgstr ""
706
707 #. type: textblock
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical consumer hard drive with 512 byte sectors:"
710 msgstr ""
711
712 #. type: verbatim
713 #: ../align/virt-alignment-scan.pod:234
714 #, no-wrap
715 msgid ""
716 " $ cat /sys/block/sda/queue/hw_sector_size\n"
717 " 512\n"
718 " $ cat /sys/block/sda/queue/physical_block_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/logical_block_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/minimum_io_size\n"
723 " 512\n"
724 " $ cat /sys/block/sda/queue/optimal_io_size\n"
725 " 0\n"
726 "\n"
727 msgstr ""
728
729 #. type: textblock
730 #: ../align/virt-alignment-scan.pod:245
731 msgid "For a new consumer hard drive with 4Kbyte sectors:"
732 msgstr ""
733
734 #. type: verbatim
735 #: ../align/virt-alignment-scan.pod:247
736 #, no-wrap
737 msgid ""
738 " $ cat /sys/block/sda/queue/hw_sector_size\n"
739 " 4096\n"
740 " $ cat /sys/block/sda/queue/physical_block_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sda/queue/logical_block_size\n"
743 " 4096\n"
744 " $ cat /sys/block/sda/queue/minimum_io_size\n"
745 " 4096\n"
746 " $ cat /sys/block/sda/queue/optimal_io_size\n"
747 " 0\n"
748 "\n"
749 msgstr ""
750
751 #. type: textblock
752 #: ../align/virt-alignment-scan.pod:258
753 msgid "For a NetApp LUN:"
754 msgstr ""
755
756 #. type: verbatim
757 #: ../align/virt-alignment-scan.pod:260
758 #, no-wrap
759 msgid ""
760 " $ cat /sys/block/sdc/queue/logical_block_size\n"
761 " 512\n"
762 " $ cat /sys/block/sdc/queue/physical_block_size\n"
763 " 512\n"
764 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
765 " 4096\n"
766 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
767 " 65536\n"
768 "\n"
769 msgstr ""
770
771 #. type: textblock
772 #: ../align/virt-alignment-scan.pod:269
773 msgid ""
774 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
775 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
776 msgstr ""
777
778 #. type: textblock
779 #: ../align/virt-alignment-scan.pod:273
780 msgid ""
781 "For detailed information about what these numbers mean, see L<http://docs."
782 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
783 "Storage_Administration_Guide/newstorage-iolimits.html>"
784 msgstr ""
785
786 #. type: textblock
787 #: ../align/virt-alignment-scan.pod:276
788 msgid ""
789 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
790 "for providing NetApp data and additional information.]"
791 msgstr ""
792
793 #. type: =head2
794 #: ../align/virt-alignment-scan.pod:279
795 msgid "1 MB PARTITION ALIGNMENT"
796 msgstr ""
797
798 #. type: textblock
799 #: ../align/virt-alignment-scan.pod:281
800 msgid ""
801 "Microsoft picked 1 MB as the default alignment for all partitions starting "
802 "with Windows 2008 Server, and Linux has followed this."
803 msgstr ""
804
805 #. type: textblock
806 #: ../align/virt-alignment-scan.pod:284
807 msgid ""
808 "Assuming 512 byte sectors in the guest, you will now see the first partition "
809 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
810 "multiple of 2048 sectors."
811 msgstr ""
812
813 #. type: textblock
814 #: ../align/virt-alignment-scan.pod:288
815 msgid ""
816 "1 MB alignment is compatible with all current alignment requirements (4K, "
817 "64K) and provides room for future growth in physical block sizes."
818 msgstr ""
819
820 #. type: =head2
821 #: ../align/virt-alignment-scan.pod:291
822 msgid "SETTING ALIGNMENT"
823 msgstr ""
824
825 #. type: textblock
826 #: ../align/virt-alignment-scan.pod:293
827 msgid ""
828 "L<virt-resize(1)> can change the alignment of the partitions of some "
829 "guests.  Currently it can fully align all the partitions of all Windows "
830 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
831 "it can align the second and subsequent partitions, so the majority of OS "
832 "accesses except at boot will be aligned."
833 msgstr ""
834
835 #. type: textblock
836 #: ../align/virt-alignment-scan.pod:299
837 msgid ""
838 "Another way to correct partition alignment problems is to reinstall your "
839 "guest operating systems.  If you install operating systems from templates, "
840 "ensure these have correct partition alignment too."
841 msgstr ""
842
843 #. type: textblock
844 #: ../align/virt-alignment-scan.pod:303
845 msgid ""
846 "For older versions of Windows, the following NetApp document contains useful "
847 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
848 msgstr ""
849
850 #. type: textblock
851 #: ../align/virt-alignment-scan.pod:306
852 msgid ""
853 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
854 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
855 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
856 "contains an example."
857 msgstr ""
858
859 #. type: =head1
860 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
861 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
862 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
863 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
864 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:676
865 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
866 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
867 #: ../tools/virt-win-reg.pl:744
868 msgid "SHELL QUOTING"
869 msgstr ""
870
871 #. type: textblock
872 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
873 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
874 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
875 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
876 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:678
877 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
878 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
879 #: ../tools/virt-win-reg.pl:752
880 msgid ""
881 "Libvirt guest names can contain arbitrary characters, some of which have "
882 "meaning to the shell such as C<#> and space.  You may need to quote or "
883 "escape these characters on the command line.  See the shell manual page L<sh"
884 "(1)> for details."
885 msgstr ""
886
887 #. type: =head1
888 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
889 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
890 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
891 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
892 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
893 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:227
894 #: ../test-tool/libguestfs-test-tool.pod:90
895 msgid "EXIT STATUS"
896 msgstr ""
897
898 #. type: textblock
899 #: ../align/virt-alignment-scan.pod:320
900 msgid "This program returns:"
901 msgstr ""
902
903 #. type: =item
904 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
905 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
906 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
907 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
908 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
909 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
910 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
911 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
912 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
913 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
914 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
915 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
916 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
917 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
918 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
919 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
920 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
921 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
922 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
923 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449
924 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463
925 #: ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266
926 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274
927 #: ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286
928 #: ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300
929 #: ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308
930 #: ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402
931 #: ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412
932 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458
933 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719
934 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733
935 #: ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142
936 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157
937 #: ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445
938 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
939 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
940 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:359
941 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
942 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
943 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
944 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
945 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
946 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
947 #: ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649
948 #: ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663
949 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083
950 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2091
951 #: ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2103
952 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:2117
953 #: ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2125
954 #: ../src/guestfs-actions.pod:2263 ../src/guestfs-actions.pod:2267
955 #: ../src/guestfs-actions.pod:2272 ../src/guestfs-actions.pod:2277
956 #: ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2342
957 #: ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2762
958 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2776
959 #: ../src/guestfs-actions.pod:3321 ../src/guestfs-actions.pod:3327
960 #: ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3342
961 #: ../src/guestfs-actions.pod:3349 ../src/guestfs.pod:403
962 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
963 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
964 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
965 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
966 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
967 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
968 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
969 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
970 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
971 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
972 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
973 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
974 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
975 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
976 #: ../src/guestfs.pod:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337
977 #: ../src/guestfs.pod:3341 ../tools/virt-win-reg.pl:197
978 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
979 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
980 #: ../tools/virt-win-reg.pl:733
981 msgid "*"
982 msgstr ""
983
984 #. type: textblock
985 #: ../align/virt-alignment-scan.pod:326
986 msgid "0"
987 msgstr ""
988
989 #. type: textblock
990 #: ../align/virt-alignment-scan.pod:328
991 msgid ""
992 "successful exit, all partitions are aligned E<ge> 64K for best performance"
993 msgstr ""
994
995 #. type: textblock
996 #: ../align/virt-alignment-scan.pod:332
997 msgid "1"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../align/virt-alignment-scan.pod:334
1002 msgid "an error scanning the disk image or guest"
1003 msgstr ""
1004
1005 #. type: textblock
1006 #: ../align/virt-alignment-scan.pod:338
1007 msgid "2"
1008 msgstr ""
1009
1010 #. type: textblock
1011 #: ../align/virt-alignment-scan.pod:340
1012 msgid ""
1013 "successful exit, some partitions have alignment E<lt> 64K which can result "
1014 "in poor performance on high end network storage"
1015 msgstr ""
1016
1017 #. type: textblock
1018 #: ../align/virt-alignment-scan.pod:345
1019 msgid "3"
1020 msgstr ""
1021
1022 #. type: textblock
1023 #: ../align/virt-alignment-scan.pod:347
1024 msgid ""
1025 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1026 "poor performance on most hypervisors"
1027 msgstr ""
1028
1029 #. type: =head1
1030 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1031 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1032 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1033 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1034 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1035 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1036 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1037 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1038 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1039 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1040 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1041 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1042 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1043 #: ../test-tool/libguestfs-test-tool.pod:100
1044 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1045 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1046 #: ../tools/virt-win-reg.pl:757
1047 msgid "SEE ALSO"
1048 msgstr ""
1049
1050 #. type: textblock
1051 #: ../align/virt-alignment-scan.pod:354
1052 msgid ""
1053 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1054 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1055 msgstr ""
1056
1057 #. type: =head1
1058 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1059 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1060 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1061 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1062 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1063 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1064 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1065 #: ../tools/virt-win-reg.pl:783
1066 msgid "AUTHOR"
1067 msgstr ""
1068
1069 #. type: textblock
1070 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1071 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1072 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1073 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1074 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:713
1075 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1076 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1077 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1078 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1079 msgstr ""
1080
1081 #. type: =head1
1082 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1083 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1084 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1085 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1086 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1087 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1088 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1089 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1090 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1091 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1092 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1093 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1094 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3352
1095 #: ../test-tool/libguestfs-test-tool.pod:110
1096 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1097 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1098 #: ../tools/virt-win-reg.pl:787
1099 msgid "COPYRIGHT"
1100 msgstr ""
1101
1102 #. type: textblock
1103 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1104 #: ../sparsify/virt-sparsify.pod:270
1105 msgid "Copyright (C) 2011 Red Hat Inc."
1106 msgstr ""
1107
1108 #. type: textblock
1109 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1110 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1111 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1112 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1113 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1114 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1115 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1116 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:719
1117 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1118 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1119 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1120 #: ../tools/virt-win-reg.pl:791
1121 msgid ""
1122 "This program is free software; you can redistribute it and/or modify it "
1123 "under the terms of the GNU General Public License as published by the Free "
1124 "Software Foundation; either version 2 of the License, or (at your option) "
1125 "any later version."
1126 msgstr ""
1127
1128 #. type: textblock
1129 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1130 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1131 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1132 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1133 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1134 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1135 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1136 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:724
1137 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1138 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1139 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1140 #: ../tools/virt-win-reg.pl:796
1141 msgid ""
1142 "This program is distributed in the hope that it will be useful, but WITHOUT "
1143 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1144 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1145 "more details."
1146 msgstr ""
1147
1148 #. type: textblock
1149 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1150 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1151 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1152 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1153 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1154 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1155 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1156 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:729
1157 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1158 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1159 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1160 #: ../tools/virt-win-reg.pl:801
1161 msgid ""
1162 "You should have received a copy of the GNU General Public License along with "
1163 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1164 "Ave, Cambridge, MA 02139, USA."
1165 msgstr ""
1166
1167 #. type: textblock
1168 #: ../cat/virt-cat.pod:5
1169 msgid "virt-cat - Display files in a virtual machine"
1170 msgstr ""
1171
1172 #. type: verbatim
1173 #: ../cat/virt-cat.pod:9
1174 #, no-wrap
1175 msgid ""
1176 " virt-cat [--options] -d domname file [file ...]\n"
1177 "\n"
1178 msgstr ""
1179
1180 #. type: verbatim
1181 #: ../cat/virt-cat.pod:11
1182 #, no-wrap
1183 msgid ""
1184 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1185 "\n"
1186 msgstr ""
1187
1188 #. type: textblock
1189 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1190 #: ../inspector/virt-inspector.pod:13
1191 msgid "Old-style:"
1192 msgstr ""
1193
1194 #. type: verbatim
1195 #: ../cat/virt-cat.pod:15
1196 #, no-wrap
1197 msgid ""
1198 " virt-cat domname file\n"
1199 "\n"
1200 msgstr ""
1201
1202 #. type: verbatim
1203 #: ../cat/virt-cat.pod:17
1204 #, no-wrap
1205 msgid ""
1206 " virt-cat disk.img file\n"
1207 "\n"
1208 msgstr ""
1209
1210 #. type: textblock
1211 #: ../cat/virt-cat.pod:21
1212 msgid ""
1213 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1214 "C<file> exists in the named virtual machine (or disk image)."
1215 msgstr ""
1216
1217 #. type: textblock
1218 #: ../cat/virt-cat.pod:24
1219 msgid ""
1220 "Multiple filenames can be given, in which case they are concatenated "
1221 "together.  Each filename must be a full path, starting at the root directory "
1222 "(starting with '/')."
1223 msgstr ""
1224
1225 #. type: textblock
1226 #: ../cat/virt-cat.pod:28
1227 msgid ""
1228 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1229 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1230 "(see L</USING GUESTFISH> below)."
1231 msgstr ""
1232
1233 #. type: =head1
1234 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1235 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1236 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1237 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1238 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1239 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1240 #: ../tools/virt-tar.pl:50
1241 msgid "EXAMPLES"
1242 msgstr ""
1243
1244 #. type: textblock
1245 #: ../cat/virt-cat.pod:34
1246 msgid ""
1247 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1248 msgstr ""
1249
1250 #. type: verbatim
1251 #: ../cat/virt-cat.pod:37
1252 #, no-wrap
1253 msgid ""
1254 " virt-cat -d mydomain /etc/fstab\n"
1255 "\n"
1256 msgstr ""
1257
1258 #. type: textblock
1259 #: ../cat/virt-cat.pod:39
1260 msgid "List syslog messages from a VM disk image file:"
1261 msgstr ""
1262
1263 #. type: verbatim
1264 #: ../cat/virt-cat.pod:41
1265 #, no-wrap
1266 msgid ""
1267 " virt-cat -a disk.img /var/log/messages | tail\n"
1268 "\n"
1269 msgstr ""
1270
1271 #. type: textblock
1272 #: ../cat/virt-cat.pod:43
1273 msgid "Find out what DHCP IP address a VM acquired:"
1274 msgstr ""
1275
1276 #. type: verbatim
1277 #: ../cat/virt-cat.pod:45
1278 #, no-wrap
1279 msgid ""
1280 " virt-cat -d mydomain /var/log/messages | \\\n"
1281 "   grep 'dhclient: bound to' | tail\n"
1282 "\n"
1283 msgstr ""
1284
1285 #. type: textblock
1286 #: ../cat/virt-cat.pod:48
1287 msgid "Find out what packages were recently installed:"
1288 msgstr ""
1289
1290 #. type: verbatim
1291 #: ../cat/virt-cat.pod:50
1292 #, no-wrap
1293 msgid ""
1294 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1295 "\n"
1296 msgstr ""
1297
1298 #. type: textblock
1299 #: ../cat/virt-cat.pod:52
1300 msgid "Find out who is logged on inside a virtual machine:"
1301 msgstr ""
1302
1303 #. type: verbatim
1304 #: ../cat/virt-cat.pod:54
1305 #, no-wrap
1306 msgid ""
1307 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1308 " who /tmp/utmp\n"
1309 "\n"
1310 msgstr ""
1311
1312 #. type: textblock
1313 #: ../cat/virt-cat.pod:57
1314 msgid "or who was logged on:"
1315 msgstr ""
1316
1317 #. type: verbatim
1318 #: ../cat/virt-cat.pod:59
1319 #, no-wrap
1320 msgid ""
1321 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1322 " last -f /tmp/wtmp\n"
1323 "\n"
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1328 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1329 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1330 msgid ""
1331 "Add I<file> which should be a disk image from a virtual machine.  If the "
1332 "virtual machine has multiple block devices, you must supply all of them with "
1333 "separate I<-a> options."
1334 msgstr ""
1335
1336 #. type: =item
1337 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1338 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1339 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1340 msgid "B<--echo-keys>"
1341 msgstr ""
1342
1343 #. type: textblock
1344 #: ../cat/virt-cat.pod:100
1345 msgid ""
1346 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1347 "so you cannot see what you are typing.  If you are not worried about Tempest "
1348 "attacks and there is no one else in the room you can specify this flag to "
1349 "see what you are typing."
1350 msgstr ""
1351
1352 #. type: verbatim
1353 #: ../cat/virt-cat.pod:116
1354 #, no-wrap
1355 msgid ""
1356 " virt-cat --format=raw -a disk.img file\n"
1357 "\n"
1358 msgstr ""
1359
1360 #. type: verbatim
1361 #: ../cat/virt-cat.pod:120
1362 #, no-wrap
1363 msgid ""
1364 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1365 "\n"
1366 msgstr ""
1367
1368 #. type: =item
1369 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1370 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1371 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1372 msgid "B<--keys-from-stdin>"
1373 msgstr ""
1374
1375 #. type: textblock
1376 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1377 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1378 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1379 msgid ""
1380 "Read key or passphrase parameters from stdin.  The default is to try to read "
1381 "passphrases from the user by opening C</dev/tty>."
1382 msgstr ""
1383
1384 #. type: =head1
1385 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1386 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1387 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1388 msgstr ""
1389
1390 #. type: textblock
1391 #: ../cat/virt-cat.pod:154
1392 msgid "Previous versions of virt-cat allowed you to write either:"
1393 msgstr ""
1394
1395 #. type: verbatim
1396 #: ../cat/virt-cat.pod:156
1397 #, no-wrap
1398 msgid ""
1399 " virt-cat disk.img [disk.img ...] file\n"
1400 "\n"
1401 msgstr ""
1402
1403 #. type: textblock
1404 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1405 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1406 msgid "or"
1407 msgstr ""
1408
1409 #. type: verbatim
1410 #: ../cat/virt-cat.pod:160
1411 #, no-wrap
1412 msgid ""
1413 " virt-cat guestname file\n"
1414 "\n"
1415 msgstr ""
1416
1417 #. type: textblock
1418 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1419 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1420 msgid ""
1421 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1422 "the confusing case where a disk image might have the same name as a guest."
1423 msgstr ""
1424
1425 #. type: textblock
1426 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1427 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1428 msgid "For compatibility the old style is still supported."
1429 msgstr ""
1430
1431 #. type: =head1
1432 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1433 msgid "WINDOWS PATHS"
1434 msgstr ""
1435
1436 #. type: textblock
1437 #: ../cat/virt-cat.pod:170
1438 msgid ""
1439 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1440 "paths (eg. C<E:\\foo\\bar.txt>)."
1441 msgstr ""
1442
1443 #. type: textblock
1444 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1445 msgid "If and only if the guest is running Windows then:"
1446 msgstr ""
1447
1448 #. type: textblock
1449 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1450 msgid ""
1451 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1452 "to the correct filesystem."
1453 msgstr ""
1454
1455 #. type: textblock
1456 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1457 msgid ""
1458 "Any backslash (C<\\>) characters in the path are replaced with forward "
1459 "slashes so that libguestfs can process it."
1460 msgstr ""
1461
1462 #. type: textblock
1463 #: ../cat/virt-cat.pod:189
1464 msgid ""
1465 "The path is resolved case insensitively to locate the file that should be "
1466 "displayed."
1467 msgstr ""
1468
1469 #. type: textblock
1470 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1471 msgid "There are some known shortcomings:"
1472 msgstr ""
1473
1474 #. type: textblock
1475 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1476 msgid "Some NTFS symbolic links may not be followed correctly."
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1481 msgid "NTFS junction points that cross filesystems are not followed."
1482 msgstr ""
1483
1484 #. type: =head1
1485 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1486 msgid "USING GUESTFISH"
1487 msgstr ""
1488
1489 #. type: textblock
1490 #: ../cat/virt-cat.pod:210
1491 msgid ""
1492 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1493 "C<virt-cat> doesn't work."
1494 msgstr ""
1495
1496 #. type: textblock
1497 #: ../cat/virt-cat.pod:213
1498 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1499 msgstr ""
1500
1501 #. type: verbatim
1502 #: ../cat/virt-cat.pod:215
1503 #, no-wrap
1504 msgid ""
1505 " guestfish --ro -i -d domname download file -\n"
1506 "\n"
1507 msgstr ""
1508
1509 #. type: textblock
1510 #: ../cat/virt-cat.pod:217
1511 msgid ""
1512 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1513 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1514 msgstr ""
1515
1516 #. type: textblock
1517 #: ../cat/virt-cat.pod:221
1518 msgid ""
1519 "The command above uses libguestfs's guest inspection feature and so does not "
1520 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1521 "disk images that don't contain guests.  To display a file from a disk image "
1522 "directly, use:"
1523 msgstr ""
1524
1525 #. type: verbatim
1526 #: ../cat/virt-cat.pod:226
1527 #, no-wrap
1528 msgid ""
1529 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1530 "\n"
1531 msgstr ""
1532
1533 #. type: textblock
1534 #: ../cat/virt-cat.pod:228
1535 msgid ""
1536 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1537 "the disk image, and C<file> is the full path to the file."
1538 msgstr ""
1539
1540 #. type: textblock
1541 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1542 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1543 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1544 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1545 msgid ""
1546 "This program returns 0 if successful, or non-zero if there was an error."
1547 msgstr ""
1548
1549 #. type: textblock
1550 #: ../cat/virt-cat.pod:245
1551 msgid ""
1552 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1553 "tar-out(1)>, L<http://libguestfs.org/>."
1554 msgstr ""
1555
1556 #. type: textblock
1557 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:405
1558 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1559 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1560 msgstr ""
1561
1562 #. type: textblock
1563 #: ../cat/virt-filesystems.pod:5
1564 msgid ""
1565 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1566 "virtual machine or disk image"
1567 msgstr ""
1568
1569 #. type: verbatim
1570 #: ../cat/virt-filesystems.pod:9
1571 #, no-wrap
1572 msgid ""
1573 " virt-filesystems [--options] -d domname\n"
1574 "\n"
1575 msgstr ""
1576
1577 #. type: verbatim
1578 #: ../cat/virt-filesystems.pod:11
1579 #, no-wrap
1580 msgid ""
1581 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1582 "\n"
1583 msgstr ""
1584
1585 #. type: textblock
1586 #: ../cat/virt-filesystems.pod:15
1587 msgid ""
1588 "This tool allows you to discover filesystems, partitions, logical volumes, "
1589 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1590 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1591 msgstr ""
1592
1593 #. type: textblock
1594 #: ../cat/virt-filesystems.pod:20
1595 msgid ""
1596 "One use for this tool is from shell scripts to iterate over all filesystems "
1597 "from a disk image:"
1598 msgstr ""
1599
1600 #. type: verbatim
1601 #: ../cat/virt-filesystems.pod:23
1602 #, no-wrap
1603 msgid ""
1604 " for fs in $(virt-filesystems -a disk.img); do\n"
1605 "   # ...\n"
1606 " done\n"
1607 "\n"
1608 msgstr ""
1609
1610 #. type: textblock
1611 #: ../cat/virt-filesystems.pod:27
1612 msgid ""
1613 "Another use is to list partitions before using another tool to modify those "
1614 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1615 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1616 msgstr ""
1617
1618 #. type: textblock
1619 #: ../cat/virt-filesystems.pod:32
1620 msgid ""
1621 "Various command line options control what this program displays.  You need "
1622 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1623 "guest respectively.  If you just specify that then the program shows "
1624 "filesystems found, one per line, like this:"
1625 msgstr ""
1626
1627 #. type: verbatim
1628 #: ../cat/virt-filesystems.pod:37
1629 #, no-wrap
1630 msgid ""
1631 " $ virt-filesystems -a disk.img\n"
1632 " /dev/sda1\n"
1633 " /dev/vg_guest/lv_root\n"
1634 "\n"
1635 msgstr ""
1636
1637 #. type: textblock
1638 #: ../cat/virt-filesystems.pod:41
1639 msgid ""
1640 "If you add I<-l> or I<--long> then the output includes extra information:"
1641 msgstr ""
1642
1643 #. type: verbatim
1644 #: ../cat/virt-filesystems.pod:44
1645 #, no-wrap
1646 msgid ""
1647 " $ virt-filesystems -a disk.img -l\n"
1648 " Name                   Type         VFS   Label  Size\n"
1649 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1650 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1651 "\n"
1652 msgstr ""
1653
1654 #. type: textblock
1655 #: ../cat/virt-filesystems.pod:49
1656 msgid ""
1657 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1658 "shown as well:"
1659 msgstr ""
1660
1661 #. type: verbatim
1662 #: ../cat/virt-filesystems.pod:52
1663 #, no-wrap
1664 msgid ""
1665 " $ virt-filesystems -a disk.img --extra\n"
1666 " /dev/sda1\n"
1667 " /dev/vg_guest/lv_root\n"
1668 " /dev/vg_guest/lv_swap\n"
1669 " /dev/vg_guest/lv_data\n"
1670 "\n"
1671 msgstr ""
1672
1673 #. type: textblock
1674 #: ../cat/virt-filesystems.pod:58
1675 msgid ""
1676 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1677 msgstr ""
1678
1679 #. type: verbatim
1680 #: ../cat/virt-filesystems.pod:60
1681 #, no-wrap
1682 msgid ""
1683 " $ virt-filesystems -a disk.img --partitions\n"
1684 " /dev/sda1\n"
1685 " /dev/sda2\n"
1686 "\n"
1687 msgstr ""
1688
1689 #. type: textblock
1690 #: ../cat/virt-filesystems.pod:64
1691 msgid ""
1692 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1693 "volumes>, I<--block-devices> to list those items."
1694 msgstr ""
1695
1696 #. type: textblock
1697 #: ../cat/virt-filesystems.pod:67
1698 msgid ""
1699 "You can use these options in combination as well (if you want a combination "
1700 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1701 "items fall into several categories (eg. C</dev/sda1> might be both a "
1702 "partition and a filesystem).  These items are listed several times.  To get "
1703 "a list which includes absolutely everything that virt-filesystems knows "
1704 "about, use the I<--all> option."
1705 msgstr ""
1706
1707 #. type: textblock
1708 #: ../cat/virt-filesystems.pod:74
1709 msgid ""
1710 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1711 "uuid> option to display device and filesystem UUIDs in the long output."
1712 msgstr ""
1713
1714 #. type: textblock
1715 #: ../cat/virt-filesystems.pod:78
1716 msgid ""
1717 "I<--all --long --uuid> is a useful combination to display all possible "
1718 "information about everything."
1719 msgstr ""
1720
1721 #. type: verbatim
1722 #: ../cat/virt-filesystems.pod:81
1723 #, no-wrap
1724 msgid ""
1725 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1726 " Name      Type       VFS  Label           Size Parent   UUID\n"
1727 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1728 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1729 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1730 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1731 " /dev/sda  device     -    -               20G  -        -\n"
1732 "\n"
1733 msgstr ""
1734
1735 #. type: textblock
1736 #: ../cat/virt-filesystems.pod:89
1737 msgid ""
1738 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1739 msgstr ""
1740
1741 #. type: =item
1742 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1743 msgid "B<--all>"
1744 msgstr ""
1745
1746 #. type: textblock
1747 #: ../cat/virt-filesystems.pod:112
1748 msgid ""
1749 "Display everything.  This is currently the same as specifying these options: "
1750 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1751 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1752 "added to this list in future)."
1753 msgstr ""
1754
1755 #. type: textblock
1756 #: ../cat/virt-filesystems.pod:117
1757 msgid "See also I<--long>."
1758 msgstr ""
1759
1760 #. type: =item
1761 #: ../cat/virt-filesystems.pod:119
1762 msgid "B<--blkdevs>"
1763 msgstr ""
1764
1765 #. type: =item
1766 #: ../cat/virt-filesystems.pod:121
1767 msgid "B<--block-devices>"
1768 msgstr ""
1769
1770 #. type: textblock
1771 #: ../cat/virt-filesystems.pod:123
1772 msgid "Display block devices."
1773 msgstr ""
1774
1775 #. type: =item
1776 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1777 msgid "B<--csv>"
1778 msgstr ""
1779
1780 #. type: textblock
1781 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1782 msgid ""
1783 "Write out the results in CSV format (comma-separated values).  This format "
1784 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1785 "ABOUT CSV FORMAT> below."
1786 msgstr ""
1787
1788 #. type: textblock
1789 #: ../cat/virt-filesystems.pod:150
1790 msgid ""
1791 "When prompting for keys and passphrases, virt-filesystems normally turns "
1792 "echoing off so you cannot see what you are typing.  If you are not worried "
1793 "about Tempest attacks and there is no one else in the room you can specify "
1794 "this flag to see what you are typing."
1795 msgstr ""
1796
1797 #. type: =item
1798 #: ../cat/virt-filesystems.pod:155
1799 msgid "B<--extra>"
1800 msgstr ""
1801
1802 #. type: textblock
1803 #: ../cat/virt-filesystems.pod:157
1804 msgid ""
1805 "This causes filesystems that are not ordinary, mountable filesystems to be "
1806 "displayed.  This category includes swapspace, and filesystems that are empty "
1807 "or contain unknown data."
1808 msgstr ""
1809
1810 #. type: textblock
1811 #: ../cat/virt-filesystems.pod:161
1812 msgid "This option implies I<--filesystems>."
1813 msgstr ""
1814
1815 #. type: =item
1816 #: ../cat/virt-filesystems.pod:163
1817 msgid "B<--filesystems>"
1818 msgstr ""
1819
1820 #. type: textblock
1821 #: ../cat/virt-filesystems.pod:165
1822 msgid ""
1823 "Display mountable filesystems.  If no display option was selected then this "
1824 "option is implied."
1825 msgstr ""
1826
1827 #. type: textblock
1828 #: ../cat/virt-filesystems.pod:168
1829 msgid "With I<--extra>, non-mountable filesystems are shown too."
1830 msgstr ""
1831
1832 #. type: verbatim
1833 #: ../cat/virt-filesystems.pod:181
1834 #, no-wrap
1835 msgid ""
1836 " virt-filesystems --format=raw -a disk.img\n"
1837 "\n"
1838 msgstr ""
1839
1840 #. type: verbatim
1841 #: ../cat/virt-filesystems.pod:185
1842 #, no-wrap
1843 msgid ""
1844 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1845 "\n"
1846 msgstr ""
1847
1848 #. type: =item
1849 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1850 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1851 #: ../tools/virt-list-partitions.pl:109
1852 msgid "B<-h>"
1853 msgstr ""
1854
1855 #. type: =item
1856 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1857 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1858 msgid "B<--human-readable>"
1859 msgstr ""
1860
1861 #. type: textblock
1862 #: ../cat/virt-filesystems.pod:198
1863 msgid "In I<--long> mode, display sizes in human-readable format."
1864 msgstr ""
1865
1866 #. type: =item
1867 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1868 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1869 msgid "B<-l>"
1870 msgstr ""
1871
1872 #. type: =item
1873 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1874 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1875 msgid "B<--long>"
1876 msgstr ""
1877
1878 #. type: textblock
1879 #: ../cat/virt-filesystems.pod:209
1880 msgid "Display extra columns of data (\"long format\")."
1881 msgstr ""
1882
1883 #. type: textblock
1884 #: ../cat/virt-filesystems.pod:211
1885 msgid "A title row is added unless you also specify I<--no-title>."
1886 msgstr ""
1887
1888 #. type: textblock
1889 #: ../cat/virt-filesystems.pod:213
1890 msgid ""
1891 "The extra columns displayed depend on what output you select, and the "
1892 "ordering of columns may change in future versions.  Use the title row, I<--"
1893 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1894 "programs."
1895 msgstr ""
1896
1897 #. type: textblock
1898 #: ../cat/virt-filesystems.pod:218
1899 msgid ""
1900 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1901 "default is to show raw numbers of I<bytes>."
1902 msgstr ""
1903
1904 #. type: textblock
1905 #: ../cat/virt-filesystems.pod:221
1906 msgid "Use I<--uuid> to display UUIDs too."
1907 msgstr ""
1908
1909 #. type: =item
1910 #: ../cat/virt-filesystems.pod:223
1911 msgid "B<--lvs>"
1912 msgstr ""
1913
1914 #. type: =item
1915 #: ../cat/virt-filesystems.pod:225
1916 msgid "B<--logvols>"
1917 msgstr ""
1918
1919 #. type: =item
1920 #: ../cat/virt-filesystems.pod:227
1921 msgid "B<--logical-volumes>"
1922 msgstr ""
1923
1924 #. type: textblock
1925 #: ../cat/virt-filesystems.pod:229
1926 msgid ""
1927 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1928 "of whether the LVs contain filesystems."
1929 msgstr ""
1930
1931 #. type: =item
1932 #: ../cat/virt-filesystems.pod:232
1933 msgid "B<--no-title>"
1934 msgstr ""
1935
1936 #. type: textblock
1937 #: ../cat/virt-filesystems.pod:234
1938 msgid "In I<--long> mode, don't add a title row."
1939 msgstr ""
1940
1941 #. type: textblock
1942 #: ../cat/virt-filesystems.pod:236
1943 msgid ""
1944 "Note that the order of the columns is not fixed, and may change in future "
1945 "versions of virt-filesystems, so using this option may give you unexpected "
1946 "surprises."
1947 msgstr ""
1948
1949 #. type: =item
1950 #: ../cat/virt-filesystems.pod:240
1951 msgid "B<--parts>"
1952 msgstr ""
1953
1954 #. type: =item
1955 #: ../cat/virt-filesystems.pod:242
1956 msgid "B<--partitions>"
1957 msgstr ""
1958
1959 #. type: textblock
1960 #: ../cat/virt-filesystems.pod:244
1961 msgid ""
1962 "Display partitions.  In this mode, these are displayed irrespective of "
1963 "whether the partitions contain filesystems."
1964 msgstr ""
1965
1966 #. type: =item
1967 #: ../cat/virt-filesystems.pod:247
1968 msgid "B<--pvs>"
1969 msgstr ""
1970
1971 #. type: =item
1972 #: ../cat/virt-filesystems.pod:249
1973 msgid "B<--physvols>"
1974 msgstr ""
1975
1976 #. type: =item
1977 #: ../cat/virt-filesystems.pod:251
1978 msgid "B<--physical-volumes>"
1979 msgstr ""
1980
1981 #. type: textblock
1982 #: ../cat/virt-filesystems.pod:253
1983 msgid "Display LVM physical volumes."
1984 msgstr ""
1985
1986 #. type: =item
1987 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1988 msgid "B<--uuid>"
1989 msgstr ""
1990
1991 #. type: =item
1992 #: ../cat/virt-filesystems.pod:257
1993 msgid "B<--uuids>"
1994 msgstr ""
1995
1996 #. type: textblock
1997 #: ../cat/virt-filesystems.pod:259
1998 msgid "In I<--long> mode, display UUIDs as well."
1999 msgstr ""
2000
2001 #. type: =item
2002 #: ../cat/virt-filesystems.pod:273
2003 msgid "B<--vgs>"
2004 msgstr ""
2005
2006 #. type: =item
2007 #: ../cat/virt-filesystems.pod:275
2008 msgid "B<--volgroups>"
2009 msgstr ""
2010
2011 #. type: =item
2012 #: ../cat/virt-filesystems.pod:277
2013 msgid "B<--volume-groups>"
2014 msgstr ""
2015
2016 #. type: textblock
2017 #: ../cat/virt-filesystems.pod:279
2018 msgid "Display LVM volume groups."
2019 msgstr ""
2020
2021 #. type: =head1
2022 #: ../cat/virt-filesystems.pod:287
2023 msgid "COLUMNS"
2024 msgstr ""
2025
2026 #. type: textblock
2027 #: ../cat/virt-filesystems.pod:289
2028 msgid ""
2029 "Note that columns in the output are subject to reordering and change in "
2030 "future versions of this tool."
2031 msgstr ""
2032
2033 #. type: =item
2034 #: ../cat/virt-filesystems.pod:294
2035 msgid "B<Name>"
2036 msgstr ""
2037
2038 #. type: textblock
2039 #: ../cat/virt-filesystems.pod:296
2040 msgid "The filesystem, partition, block device or LVM name."
2041 msgstr ""
2042
2043 #. type: textblock
2044 #: ../cat/virt-filesystems.pod:298
2045 msgid ""
2046 "For device and partition names these are displayed as canonical libguestfs "
2047 "names, so that for example C</dev/sda2> is the second partition on the first "
2048 "device."
2049 msgstr ""
2050
2051 #. type: textblock
2052 #: ../cat/virt-filesystems.pod:302
2053 msgid ""
2054 "If the I<--long> option is B<not> specified, then only the name column is "
2055 "shown in the output."
2056 msgstr ""
2057
2058 #. type: =item
2059 #: ../cat/virt-filesystems.pod:305
2060 msgid "B<Type>"
2061 msgstr ""
2062
2063 #. type: textblock
2064 #: ../cat/virt-filesystems.pod:307
2065 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2066 msgstr ""
2067
2068 #. type: =item
2069 #: ../cat/virt-filesystems.pod:309
2070 msgid "B<VFS>"
2071 msgstr ""
2072
2073 #. type: textblock
2074 #: ../cat/virt-filesystems.pod:311
2075 msgid ""
2076 "If there is a filesystem, then this column displays the filesystem type if "
2077 "one could be detected, eg. C<ext4>."
2078 msgstr ""
2079
2080 #. type: =item
2081 #: ../cat/virt-filesystems.pod:314
2082 msgid "B<Label>"
2083 msgstr ""
2084
2085 #. type: textblock
2086 #: ../cat/virt-filesystems.pod:316
2087 msgid ""
2088 "If the object has a label (used for identifying and mounting filesystems) "
2089 "then this column contains the label."
2090 msgstr ""
2091
2092 #. type: =item
2093 #: ../cat/virt-filesystems.pod:319
2094 msgid "B<MBR>"
2095 msgstr ""
2096
2097 #. type: textblock
2098 #: ../cat/virt-filesystems.pod:321
2099 msgid ""
2100 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2101 "comprehensive list of partition types can be found here: L<http://www.win."
2102 "tue.nl/~aeb/partitions/partition_types-1.html>"
2103 msgstr ""
2104
2105 #. type: textblock
2106 #: ../cat/virt-filesystems.pod:325
2107 msgid "This is only applicable for DOS (MBR) partitions."
2108 msgstr ""
2109
2110 #. type: =item
2111 #: ../cat/virt-filesystems.pod:327
2112 msgid "B<Size>"
2113 msgstr ""
2114
2115 #. type: textblock
2116 #: ../cat/virt-filesystems.pod:329
2117 msgid ""
2118 "The size of the object in bytes.  If the I<--human> option is used then the "
2119 "size is displayed in a human-readable form."
2120 msgstr ""
2121
2122 #. type: =item
2123 #: ../cat/virt-filesystems.pod:332
2124 msgid "B<Parent>"
2125 msgstr ""
2126
2127 #. type: textblock
2128 #: ../cat/virt-filesystems.pod:334
2129 msgid ""
2130 "The parent column records the parent relationship between objects.  For "
2131 "example, if the object is a partition, then this column contains the name of "
2132 "the containing device.  If the object is a logical volume, then this column "
2133 "is the name of the volume group."
2134 msgstr ""
2135
2136 #. type: =item
2137 #: ../cat/virt-filesystems.pod:339
2138 msgid "B<UUID>"
2139 msgstr ""
2140
2141 #. type: textblock
2142 #: ../cat/virt-filesystems.pod:341
2143 msgid ""
2144 "If the object has a UUID (used for identifying and mounting filesystems and "
2145 "block devices) then this column contains the UUID as a string."
2146 msgstr ""
2147
2148 #. type: textblock
2149 #: ../cat/virt-filesystems.pod:345
2150 msgid "The UUID is only displayed if the I<--uuid> option is given."
2151 msgstr ""
2152
2153 #. type: =head1
2154 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2155 #: ../df/virt-df.pod:191
2156 msgid "NOTE ABOUT CSV FORMAT"
2157 msgstr ""
2158
2159 #. type: textblock
2160 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2161 #: ../df/virt-df.pod:193
2162 msgid ""
2163 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2164 "should be easy to parse, but it is definitely not easy to parse."
2165 msgstr ""
2166
2167 #. type: textblock
2168 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2169 #: ../df/virt-df.pod:196
2170 msgid ""
2171 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2172 "reliably.  This example has two columns:"
2173 msgstr ""
2174
2175 #. type: verbatim
2176 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2177 #: ../df/virt-df.pod:199
2178 #, no-wrap
2179 msgid ""
2180 " \"foo,bar\",baz\n"
2181 "\n"
2182 msgstr ""
2183
2184 #. type: textblock
2185 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2186 #: ../df/virt-df.pod:201
2187 msgid ""
2188 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2189 "reliably.  This example has one row:"
2190 msgstr ""
2191
2192 #. type: verbatim
2193 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2194 #: ../df/virt-df.pod:204
2195 #, no-wrap
2196 msgid ""
2197 " \"foo\n"
2198 " bar\",baz\n"
2199 "\n"
2200 msgstr ""
2201
2202 #. type: textblock
2203 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2204 #: ../df/virt-df.pod:207
2205 msgid ""
2206 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2207 "packaged in major Linux distributions)."
2208 msgstr ""
2209
2210 #. type: textblock
2211 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2212 #: ../df/virt-df.pod:210
2213 msgid ""
2214 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2215 "or Python's built-in csv library)."
2216 msgstr ""
2217
2218 #. type: textblock
2219 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2220 #: ../df/virt-df.pod:213
2221 msgid "Most spreadsheets and databases can import CSV directly."
2222 msgstr ""
2223
2224 #. type: textblock
2225 #: ../cat/virt-filesystems.pod:387
2226 msgid ""
2227 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2228 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2229 "libguestfs.org/>."
2230 msgstr ""
2231
2232 #. type: textblock
2233 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2234 msgid "Copyright (C) 2010 Red Hat Inc."
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../cat/virt-ls.pod:5
2239 msgid "virt-ls - List files in a virtual machine"
2240 msgstr ""
2241
2242 #. type: verbatim
2243 #: ../cat/virt-ls.pod:9
2244 #, no-wrap
2245 msgid ""
2246 " virt-ls [--options] -d domname directory [directory ...]\n"
2247 "\n"
2248 msgstr ""
2249
2250 #. type: verbatim
2251 #: ../cat/virt-ls.pod:11
2252 #, no-wrap
2253 msgid ""
2254 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2255 "\n"
2256 msgstr ""
2257
2258 #. type: textblock
2259 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2260 msgid "Old style:"
2261 msgstr ""
2262
2263 #. type: verbatim
2264 #: ../cat/virt-ls.pod:15
2265 #, no-wrap
2266 msgid ""
2267 " virt-ls [--options] domname directory\n"
2268 "\n"
2269 msgstr ""
2270
2271 #. type: verbatim
2272 #: ../cat/virt-ls.pod:17
2273 #, no-wrap
2274 msgid ""
2275 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2276 "\n"
2277 msgstr ""
2278
2279 #. type: textblock
2280 #: ../cat/virt-ls.pod:21
2281 msgid ""
2282 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2283 "more from a virtual machine or disk image."
2284 msgstr ""
2285
2286 #. type: textblock
2287 #: ../cat/virt-ls.pod:24
2288 msgid ""
2289 "Multiple directory names can be given, in which case the output from each is "
2290 "concatenated."
2291 msgstr ""
2292
2293 #. type: textblock
2294 #: ../cat/virt-ls.pod:27
2295 msgid ""
2296 "To list directories from a libvirt guest use the I<-d> option to specify the "
2297 "name of the guest.  For a disk image, use the I<-a> option."
2298 msgstr ""
2299
2300 #. type: textblock
2301 #: ../cat/virt-ls.pod:31
2302 msgid ""
2303 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2304 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2305 "(3)> API."
2306 msgstr ""
2307
2308 #. type: textblock
2309 #: ../cat/virt-ls.pod:37
2310 msgid "Get a list of all files and directories in a virtual machine:"
2311 msgstr ""
2312
2313 #. type: verbatim
2314 #: ../cat/virt-ls.pod:39
2315 #, no-wrap
2316 msgid ""
2317 " virt-ls -R -d guest /\n"
2318 "\n"
2319 msgstr ""
2320
2321 #. type: textblock
2322 #: ../cat/virt-ls.pod:41
2323 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2324 msgstr ""
2325
2326 #. type: verbatim
2327 #: ../cat/virt-ls.pod:43
2328 #, no-wrap
2329 msgid ""
2330 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2331 "\n"
2332 msgstr ""
2333
2334 #. type: textblock
2335 #: ../cat/virt-ls.pod:45
2336 msgid "List all public-writable directories in a Linux virtual machine:"
2337 msgstr ""
2338
2339 #. type: verbatim
2340 #: ../cat/virt-ls.pod:47
2341 #, no-wrap
2342 msgid ""
2343 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2344 "\n"
2345 msgstr ""
2346
2347 #. type: textblock
2348 #: ../cat/virt-ls.pod:49
2349 msgid "List all Unix domain sockets in a Linux virtual machine:"
2350 msgstr ""
2351
2352 #. type: verbatim
2353 #: ../cat/virt-ls.pod:51
2354 #, no-wrap
2355 msgid ""
2356 " virt-ls -lR -d guest / | grep '^s'\n"
2357 "\n"
2358 msgstr ""
2359
2360 #. type: textblock
2361 #: ../cat/virt-ls.pod:53
2362 msgid "List all regular files with filenames ending in '.png':"
2363 msgstr ""
2364
2365 #. type: verbatim
2366 #: ../cat/virt-ls.pod:55
2367 #, no-wrap
2368 msgid ""
2369 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2370 "\n"
2371 msgstr ""
2372
2373 #. type: textblock
2374 #: ../cat/virt-ls.pod:57
2375 msgid "To display files larger than 10MB in home directories:"
2376 msgstr ""
2377
2378 #. type: verbatim
2379 #: ../cat/virt-ls.pod:59
2380 #, no-wrap
2381 msgid ""
2382 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2383 "\n"
2384 msgstr ""
2385
2386 #. type: textblock
2387 #: ../cat/virt-ls.pod:61
2388 msgid "Find everything modified in the last 7 days:"
2389 msgstr ""
2390
2391 #. type: verbatim
2392 #: ../cat/virt-ls.pod:63
2393 #, no-wrap
2394 msgid ""
2395 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2396 "\n"
2397 msgstr ""
2398
2399 #. type: textblock
2400 #: ../cat/virt-ls.pod:65
2401 msgid "Find regular files modified in the last 24 hours:"
2402 msgstr ""
2403
2404 #. type: verbatim
2405 #: ../cat/virt-ls.pod:67
2406 #, no-wrap
2407 msgid ""
2408 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2409 "\n"
2410 msgstr ""
2411
2412 #. type: =head2
2413 #: ../cat/virt-ls.pod:69
2414 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2415 msgstr ""
2416
2417 #. type: textblock
2418 #: ../cat/virt-ls.pod:71
2419 msgid ""
2420 "Find the differences between files in a guest and an earlier snapshot of the "
2421 "same guest."
2422 msgstr ""
2423
2424 #. type: verbatim
2425 #: ../cat/virt-ls.pod:74
2426 #, no-wrap
2427 msgid ""
2428 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2429 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2430 " diff -u old new | less\n"
2431 "\n"
2432 msgstr ""
2433
2434 #. type: textblock
2435 #: ../cat/virt-ls.pod:78
2436 msgid ""
2437 "The commands above won't find files where the content has changed but the "
2438 "metadata (eg. file size and modification date) is the same.  To do that, you "
2439 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2440 "checksum> can be quite slow since it has to read and compute a checksum of "
2441 "every regular file in the virtual machine."
2442 msgstr ""
2443
2444 #. type: =head1
2445 #: ../cat/virt-ls.pod:84
2446 msgid "OUTPUT MODES"
2447 msgstr ""
2448
2449 #. type: textblock
2450 #: ../cat/virt-ls.pod:86
2451 msgid ""
2452 "C<virt-ls> has four output modes, controlled by different combinations of "
2453 "the I<-l> and I<-R> options."
2454 msgstr ""
2455
2456 #. type: =head2
2457 #: ../cat/virt-ls.pod:89
2458 msgid "SIMPLE LISTING"
2459 msgstr ""
2460
2461 #. type: textblock
2462 #: ../cat/virt-ls.pod:91
2463 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2464 msgstr ""
2465
2466 #. type: verbatim
2467 #: ../cat/virt-ls.pod:93
2468 #, no-wrap
2469 msgid ""
2470 " $ virt-ls -d guest /\n"
2471 " bin\n"
2472 " boot\n"
2473 " [etc.]\n"
2474 "\n"
2475 msgstr ""
2476
2477 #. type: =head2
2478 #: ../cat/virt-ls.pod:98
2479 msgid "LONG LISTING"
2480 msgstr ""
2481
2482 #. type: textblock
2483 #: ../cat/virt-ls.pod:100
2484 msgid ""
2485 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2486 "(more specifically, like the C<guestfs_ll> function)."
2487 msgstr ""
2488
2489 #. type: verbatim
2490 #: ../cat/virt-ls.pod:103
2491 #, no-wrap
2492 msgid ""
2493 " $ virt-ls -l -d guest /\n"
2494 " total 204\n"
2495 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2496 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2497 " [etc.]\n"
2498 "\n"
2499 msgstr ""
2500
2501 #. type: textblock
2502 #: ../cat/virt-ls.pod:109
2503 msgid ""
2504 "Note that while this is useful for displaying a directory, do not try "
2505 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2506 "instead."
2507 msgstr ""
2508
2509 #. type: =head2
2510 #: ../cat/virt-ls.pod:113
2511 msgid "RECURSIVE LISTING"
2512 msgstr ""
2513
2514 #. type: textblock
2515 #: ../cat/virt-ls.pod:115
2516 msgid ""
2517 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2518 "and directories recursively:"
2519 msgstr ""
2520
2521 #. type: verbatim
2522 #: ../cat/virt-ls.pod:118
2523 #, no-wrap
2524 msgid ""
2525 " $ virt-ls -R -d guest /tmp\n"
2526 " foo\n"
2527 " foo/bar\n"
2528 " [etc.]\n"
2529 "\n"
2530 msgstr ""
2531
2532 #. type: textblock
2533 #: ../cat/virt-ls.pod:123
2534 msgid ""
2535 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2536 "converts C<\\0> characters to C<\\n>."
2537 msgstr ""
2538
2539 #. type: =head2
2540 #: ../cat/virt-ls.pod:126
2541 msgid "RECURSIVE LONG LISTING"
2542 msgstr ""
2543
2544 #. type: textblock
2545 #: ../cat/virt-ls.pod:128
2546 msgid ""
2547 "Using I<-lR> options together changes the output to display directories "
2548 "recursively, with file stats, and optionally other features such as "
2549 "checksums and extended attributes."
2550 msgstr ""
2551
2552 #. type: textblock
2553 #: ../cat/virt-ls.pod:132
2554 msgid ""
2555 "Most of the interesting features of C<virt-ls> are only available when using "
2556 "I<-lR> mode."
2557 msgstr ""
2558
2559 #. type: textblock
2560 #: ../cat/virt-ls.pod:135
2561 msgid ""
2562 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2563 "you cannot use the output in another program (because filenames can contain "
2564 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2565 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2566 "on you by creating filenames with embedded newline characters.  To B<safely> "
2567 "parse the output in another program, use the I<--csv> (Comma-Separated "
2568 "Values) option."
2569 msgstr ""
2570
2571 #. type: textblock
2572 #: ../cat/virt-ls.pod:143
2573 msgid ""
2574 "Note that this output format is completely unrelated to the C<ls -lR> "
2575 "command."
2576 msgstr ""
2577
2578 #. type: verbatim
2579 #: ../cat/virt-ls.pod:146
2580 #, no-wrap
2581 msgid ""
2582 " $ virt-ls -lR -d guest /bin\n"
2583 " d 0555       4096 /bin\n"
2584 " - 0755        123 /bin/alsaunmute\n"
2585 " - 0755      28328 /bin/arch\n"
2586 " l 0777          4 /bin/awk -> gawk\n"
2587 " - 0755      27216 /bin/basename\n"
2588 " - 0755     943360 /bin/bash\n"
2589 " [etc.]\n"
2590 "\n"
2591 msgstr ""
2592
2593 #. type: textblock
2594 #: ../cat/virt-ls.pod:155
2595 msgid "These basic fields are always shown:"
2596 msgstr ""
2597
2598 #. type: =item
2599 #: ../cat/virt-ls.pod:159
2600 msgid "type"
2601 msgstr ""
2602
2603 #. type: textblock
2604 #: ../cat/virt-ls.pod:161
2605 msgid ""
2606 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2607 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2608 "link), C<s> (socket) or C<u> (unknown)."
2609 msgstr ""
2610
2611 #. type: =item
2612 #: ../cat/virt-ls.pod:171
2613 msgid "permissions"
2614 msgstr ""
2615
2616 #. type: textblock
2617 #: ../cat/virt-ls.pod:173
2618 msgid "The Unix permissions, displayed as a 4 digit octal number."
2619 msgstr ""
2620
2621 #. type: =item
2622 #: ../cat/virt-ls.pod:175
2623 msgid "size"
2624 msgstr ""
2625
2626 #. type: textblock
2627 #: ../cat/virt-ls.pod:177
2628 msgid ""
2629 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2630 "readable> option is given, in which case this is shown as a human-readable "
2631 "number."
2632 msgstr ""
2633
2634 #. type: =head2
2635 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4380
2636 msgid "path"
2637 msgstr ""
2638
2639 #. type: textblock
2640 #: ../cat/virt-ls.pod:183
2641 msgid "The full path of the file or directory."
2642 msgstr ""
2643
2644 #. type: =item
2645 #: ../cat/virt-ls.pod:185
2646 msgid "link"
2647 msgstr ""
2648
2649 #. type: textblock
2650 #: ../cat/virt-ls.pod:187
2651 msgid "For symbolic links only, the link target."
2652 msgstr ""
2653
2654 #. type: textblock
2655 #: ../cat/virt-ls.pod:191
2656 msgid ""
2657 "In I<-lR> mode, additional command line options enable the display of more "
2658 "fields."
2659 msgstr ""
2660
2661 #. type: textblock
2662 #: ../cat/virt-ls.pod:194
2663 msgid ""
2664 "With the I<--uids> flag, these additional fields are displayed before the "
2665 "path:"
2666 msgstr ""
2667
2668 #. type: =item
2669 #: ../cat/virt-ls.pod:199
2670 msgid "uid"
2671 msgstr ""
2672
2673 #. type: =item
2674 #: ../cat/virt-ls.pod:201
2675 msgid "gid"
2676 msgstr ""
2677
2678 #. type: textblock
2679 #: ../cat/virt-ls.pod:203
2680 msgid ""
2681 "The UID and GID of the owner of the file (displayed numerically).  Note "
2682 "these only make sense in the context of a Unix-like guest."
2683 msgstr ""
2684
2685 #. type: textblock
2686 #: ../cat/virt-ls.pod:208
2687 msgid "With the I<--times> flag, these additional fields are displayed:"
2688 msgstr ""
2689
2690 #. type: =item
2691 #: ../cat/virt-ls.pod:212
2692 msgid "atime"
2693 msgstr ""
2694
2695 #. type: textblock
2696 #: ../cat/virt-ls.pod:214
2697 msgid "The time of last access."
2698 msgstr ""
2699
2700 #. type: =item
2701 #: ../cat/virt-ls.pod:216
2702 msgid "mtime"
2703 msgstr ""
2704
2705 #. type: textblock
2706 #: ../cat/virt-ls.pod:218
2707 msgid "The time of last modification."
2708 msgstr ""
2709
2710 #. type: =item
2711 #: ../cat/virt-ls.pod:220
2712 msgid "ctime"
2713 msgstr ""
2714
2715 #. type: textblock
2716 #: ../cat/virt-ls.pod:222
2717 msgid "The time of last status change."
2718 msgstr ""
2719
2720 #. type: textblock
2721 #: ../cat/virt-ls.pod:226
2722 msgid ""
2723 "The time fields are displayed as string dates and times, unless one of the "
2724 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2725 msgstr ""
2726
2727 #. type: textblock
2728 #: ../cat/virt-ls.pod:229
2729 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2730 msgstr ""
2731
2732 #. type: =item
2733 #: ../cat/virt-ls.pod:233
2734 msgid "device"
2735 msgstr ""
2736
2737 #. type: textblock
2738 #: ../cat/virt-ls.pod:235
2739 msgid ""
2740 "The device containing the file (displayed as major:minor).  This may not "
2741 "match devices as known to the guest."
2742 msgstr ""
2743
2744 #. type: =item
2745 #: ../cat/virt-ls.pod:238
2746 msgid "inode"
2747 msgstr ""
2748
2749 #. type: textblock
2750 #: ../cat/virt-ls.pod:240
2751 msgid "The inode number."
2752 msgstr ""
2753
2754 #. type: =item
2755 #: ../cat/virt-ls.pod:242
2756 msgid "nlink"
2757 msgstr ""
2758
2759 #. type: textblock
2760 #: ../cat/virt-ls.pod:244
2761 msgid "The number of hard links."
2762 msgstr ""
2763
2764 #. type: =item
2765 #: ../cat/virt-ls.pod:246
2766 msgid "rdev"
2767 msgstr ""
2768
2769 #. type: textblock
2770 #: ../cat/virt-ls.pod:248
2771 msgid ""
2772 "For block and char special files, the device (displayed as major:minor)."
2773 msgstr ""
2774
2775 #. type: =item
2776 #: ../cat/virt-ls.pod:251
2777 msgid "blocks"
2778 msgstr ""
2779
2780 #. type: textblock
2781 #: ../cat/virt-ls.pod:253
2782 msgid "The number of 512 byte blocks allocated to the file."
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../cat/virt-ls.pod:257
2787 msgid ""
2788 "With the I<--checksum> flag, the checksum of the file contents is shown "
2789 "(only for regular files).  Computing file checksums can take a considerable "
2790 "amount of time."
2791 msgstr ""
2792
2793 #. type: =item
2794 #: ../cat/virt-ls.pod:280
2795 msgid "B<--checksum>"
2796 msgstr ""
2797
2798 #. type: =item
2799 #: ../cat/virt-ls.pod:282
2800 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2801 msgstr ""
2802
2803 #. type: textblock
2804 #: ../cat/virt-ls.pod:284
2805 msgid ""
2806 "Display checksum over file contents for regular files.  With no argument, "
2807 "this defaults to using I<md5>.  Using an argument, you can select the "
2808 "checksum type to use."
2809 msgstr ""
2810
2811 #. type: textblock
2812 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2813 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2814 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2815 msgid ""
2816 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2817 "LISTING> above."
2818 msgstr ""
2819
2820 #. type: textblock
2821 #: ../cat/virt-ls.pod:316
2822 msgid ""
2823 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2824 "so you cannot see what you are typing.  If you are not worried about Tempest "
2825 "attacks and there is no one else in the room you can specify this flag to "
2826 "see what you are typing."
2827 msgstr ""
2828
2829 #. type: =item
2830 #: ../cat/virt-ls.pod:321
2831 msgid "B<--extra-stats>"
2832 msgstr ""
2833
2834 #. type: textblock
2835 #: ../cat/virt-ls.pod:323
2836 msgid "Display extra stats."
2837 msgstr ""
2838
2839 #. type: verbatim
2840 #: ../cat/virt-ls.pod:339
2841 #, no-wrap
2842 msgid ""
2843 " virt-ls --format=raw -a disk.img /dir\n"
2844 "\n"
2845 msgstr ""
2846
2847 #. type: verbatim
2848 #: ../cat/virt-ls.pod:343
2849 #, no-wrap
2850 msgid ""
2851 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2852 "\n"
2853 msgstr ""
2854
2855 #. type: textblock
2856 #: ../cat/virt-ls.pod:356
2857 msgid "Display file sizes in human-readable format."
2858 msgstr ""
2859
2860 #. type: =item
2861 #: ../cat/virt-ls.pod:370
2862 msgid "B<-R>"
2863 msgstr ""
2864
2865 #. type: =item
2866 #: ../cat/virt-ls.pod:372
2867 msgid "B<--recursive>"
2868 msgstr ""
2869
2870 #. type: textblock
2871 #: ../cat/virt-ls.pod:374
2872 msgid ""
2873 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2874 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2875 "LISTING>."
2876 msgstr ""
2877
2878 #. type: textblock
2879 #: ../cat/virt-ls.pod:378
2880 msgid ""
2881 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2882 "LONG LISTING>."
2883 msgstr ""
2884
2885 #. type: textblock
2886 #: ../cat/virt-ls.pod:381
2887 msgid ""
2888 "C<virt-ls -R> produces a recursive list of files starting at the named "
2889 "directory.  See L</RECURSIVE LISTING>."
2890 msgstr ""
2891
2892 #. type: textblock
2893 #: ../cat/virt-ls.pod:384
2894 msgid ""
2895 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2896 "parsed.  See L</RECURSIVE LONG LISTING>."
2897 msgstr ""
2898
2899 #. type: =item
2900 #: ../cat/virt-ls.pod:387
2901 msgid "B<--times>"
2902 msgstr ""
2903
2904 #. type: textblock
2905 #: ../cat/virt-ls.pod:389
2906 msgid "Display time fields."
2907 msgstr ""
2908
2909 #. type: =item
2910 #: ../cat/virt-ls.pod:394
2911 msgid "B<--time-days>"
2912 msgstr ""
2913
2914 #. type: textblock
2915 #: ../cat/virt-ls.pod:396
2916 msgid "Display time fields as days before now (negative if in the future)."
2917 msgstr ""
2918
2919 #. type: textblock
2920 #: ../cat/virt-ls.pod:398
2921 msgid ""
2922 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2923 "of the file is between 0 and 86399 seconds."
2924 msgstr ""
2925
2926 #. type: =item
2927 #: ../cat/virt-ls.pod:404
2928 msgid "B<--time-relative>"
2929 msgstr ""
2930
2931 #. type: textblock
2932 #: ../cat/virt-ls.pod:406
2933 msgid "Display time fields as seconds before now (negative if in the future)."
2934 msgstr ""
2935
2936 #. type: =item
2937 #: ../cat/virt-ls.pod:411
2938 msgid "B<--time-t>"
2939 msgstr ""
2940
2941 #. type: textblock
2942 #: ../cat/virt-ls.pod:413
2943 msgid "Display time fields as seconds since the Unix epoch."
2944 msgstr ""
2945
2946 #. type: =item
2947 #: ../cat/virt-ls.pod:418
2948 msgid "B<--uids>"
2949 msgstr ""
2950
2951 #. type: textblock
2952 #: ../cat/virt-ls.pod:420
2953 msgid "Display UID and GID fields."
2954 msgstr ""
2955
2956 #. type: textblock
2957 #: ../cat/virt-ls.pod:445
2958 msgid "Previous versions of virt-ls allowed you to write either:"
2959 msgstr ""
2960
2961 #. type: verbatim
2962 #: ../cat/virt-ls.pod:447
2963 #, no-wrap
2964 msgid ""
2965 " virt-ls disk.img [disk.img ...] /dir\n"
2966 "\n"
2967 msgstr ""
2968
2969 #. type: verbatim
2970 #: ../cat/virt-ls.pod:451
2971 #, no-wrap
2972 msgid ""
2973 " virt-ls guestname /dir\n"
2974 "\n"
2975 msgstr ""
2976
2977 #. type: textblock
2978 #: ../cat/virt-ls.pod:497
2979 msgid ""
2980 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2981 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2982 "L<http://libguestfs.org/>."
2983 msgstr ""
2984
2985 #. type: textblock
2986 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2987 #: ../rescue/virt-rescue.pod:302
2988 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2989 msgstr ""
2990
2991 #. type: textblock
2992 #: ../clone/virt-sysprep.pod:5
2993 msgid ""
2994 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2995 msgstr ""
2996
2997 #. type: verbatim
2998 #: ../clone/virt-sysprep.pod:9
2999 #, no-wrap
3000 msgid ""
3001 " virt-sysprep [--options] -d domname\n"
3002 "\n"
3003 msgstr ""
3004
3005 #. type: verbatim
3006 #: ../clone/virt-sysprep.pod:11
3007 #, no-wrap
3008 msgid ""
3009 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3010 "\n"
3011 msgstr ""
3012
3013 #. type: textblock
3014 #: ../clone/virt-sysprep.pod:15
3015 msgid ""
3016 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3017 "can be made from it.  Steps in this process include removing SSH host keys, "
3018 "removing persistent network MAC configuration, and removing user accounts.  "
3019 "Each step can be enabled or disabled as required."
3020 msgstr ""
3021
3022 #. type: textblock
3023 #: ../clone/virt-sysprep.pod:21
3024 msgid ""
3025 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3026 "customization by the system administrator."
3027 msgstr ""
3028
3029 #. type: textblock
3030 #: ../clone/virt-sysprep.pod:24
3031 msgid ""
3032 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3033 "be shut down.  If you want to preserve the existing contents of the guest, "
3034 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3035 msgstr ""
3036
3037 #. type: textblock
3038 #: ../clone/virt-sysprep.pod:29
3039 msgid ""
3040 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3041 "recommend that you don't.  The time you might want to run it as root is when "
3042 "you need root in order to access the disk image, but even in this case it "
3043 "would be better to change the permissions on the disk image to be writable "
3044 "as the non-root user running virt-sysprep."
3045 msgstr ""
3046
3047 #. type: textblock
3048 #: ../clone/virt-sysprep.pod:35
3049 msgid ""
3050 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3051 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3052 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3053 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3054 "Windows sysprepping in a future version, and we already have code to do it."
3055 msgstr ""
3056
3057 #. type: =item
3058 #: ../clone/virt-sysprep.pod:76
3059 msgid "B<--enable=...>"
3060 msgstr ""
3061
3062 #. type: textblock
3063 #: ../clone/virt-sysprep.pod:78
3064 msgid ""
3065 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3066 "operations, for example:"
3067 msgstr ""
3068
3069 #. type: verbatim
3070 #: ../clone/virt-sysprep.pod:81
3071 #, no-wrap
3072 msgid ""
3073 " --enable=ssh-hostkeys,udev-persistent-net\n"
3074 "\n"
3075 msgstr ""
3076
3077 #. type: textblock
3078 #: ../clone/virt-sysprep.pod:83
3079 msgid ""
3080 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3081 msgstr ""
3082
3083 #. type: textblock
3084 #: ../clone/virt-sysprep.pod:85
3085 msgid ""
3086 "If the I<--enable> option is not given, then we default to trying all "
3087 "possible sysprep operations.  But some sysprep operations are skipped for "
3088 "some guest types."
3089 msgstr ""
3090
3091 #. type: textblock
3092 #: ../clone/virt-sysprep.pod:89
3093 msgid ""
3094 "Use I<--list-operations> to list operations supported by a particular "
3095 "version of virt-sysprep."
3096 msgstr ""
3097
3098 #. type: textblock
3099 #: ../clone/virt-sysprep.pod:92
3100 msgid ""
3101 "See L</OPERATIONS> below for a list and an explanation of each operation."
3102 msgstr ""
3103
3104 #. type: verbatim
3105 #: ../clone/virt-sysprep.pod:106
3106 #, no-wrap
3107 msgid ""
3108 " virt-sysprep --format=raw -a disk.img\n"
3109 "\n"
3110 msgstr ""
3111
3112 #. type: verbatim
3113 #: ../clone/virt-sysprep.pod:110
3114 #, no-wrap
3115 msgid ""
3116 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3117 "\n"
3118 msgstr ""
3119
3120 #. type: =item
3121 #: ../clone/virt-sysprep.pod:119
3122 msgid "B<--hostname> newhostname"
3123 msgstr ""
3124
3125 #. type: textblock
3126 #: ../clone/virt-sysprep.pod:121
3127 msgid ""
3128 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3129 "defaults to C<localhost.localdomain>."
3130 msgstr ""
3131
3132 #. type: =item
3133 #: ../clone/virt-sysprep.pod:124
3134 msgid "B<--list-operations>"
3135 msgstr ""
3136
3137 #. type: textblock
3138 #: ../clone/virt-sysprep.pod:126
3139 msgid "List the operations supported by the virt-sysprep program."
3140 msgstr ""
3141
3142 #. type: =item
3143 #: ../clone/virt-sysprep.pod:128
3144 msgid "B<--selinux-relabel>"
3145 msgstr ""
3146
3147 #. type: =item
3148 #: ../clone/virt-sysprep.pod:130
3149 msgid "B<--no-selinux-relabel>"
3150 msgstr ""
3151
3152 #. type: textblock
3153 #: ../clone/virt-sysprep.pod:132
3154 msgid ""
3155 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3156 "I<--no-selinux-relabel> disables relabelling."
3157 msgstr ""
3158
3159 #. type: textblock
3160 #: ../clone/virt-sysprep.pod:135
3161 msgid ""
3162 "The default is to try to detect if SELinux relabelling is required.  See L</"
3163 "SELINUX RELABELLING> below for more details."
3164 msgstr ""
3165
3166 #. type: =head1
3167 #: ../clone/virt-sysprep.pod:156
3168 msgid "OPERATIONS"
3169 msgstr ""
3170
3171 #. type: textblock
3172 #: ../clone/virt-sysprep.pod:158
3173 msgid ""
3174 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3175 "enabled>, although some are skipped depending on the type of guest."
3176 msgstr ""
3177
3178 #. type: textblock
3179 #: ../clone/virt-sysprep.pod:162
3180 msgid ""
3181 "Operations can be individually enabled using the I<--enable> option.  Use a "
3182 "comma-separated list, for example:"
3183 msgstr ""
3184
3185 #. type: verbatim
3186 #: ../clone/virt-sysprep.pod:165
3187 #, no-wrap
3188 msgid ""
3189 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3190 "\n"
3191 msgstr ""
3192
3193 #. type: textblock
3194 #: ../clone/virt-sysprep.pod:167
3195 msgid ""
3196 "To list the operations supported by the current version of virt-sysprep, use "
3197 "I<--list-operations>."
3198 msgstr ""
3199
3200 #. type: textblock
3201 #: ../clone/virt-sysprep.pod:170
3202 msgid ""
3203 "Future versions of virt-sysprep may add more operations.  If you are using "
3204 "virt-sysprep and want predictable behaviour, specify only the operations "
3205 "that you want to have enabled."
3206 msgstr ""
3207
3208 #. type: =head2
3209 #: ../clone/virt-sysprep.pod:174
3210 msgid "cron-spool"
3211 msgstr ""
3212
3213 #. type: textblock
3214 #: ../clone/virt-sysprep.pod:176
3215 msgid "Remove user at-jobs and cron-jobs."
3216 msgstr ""
3217
3218 #. type: =head2
3219 #: ../clone/virt-sysprep.pod:178
3220 msgid "dhcp-client-state"
3221 msgstr ""
3222
3223 #. type: textblock
3224 #: ../clone/virt-sysprep.pod:180
3225 msgid "Remove DHCP client leases."
3226 msgstr ""
3227
3228 #. type: =head2
3229 #: ../clone/virt-sysprep.pod:182
3230 msgid "dhcp-server-state"
3231 msgstr ""
3232
3233 #. type: textblock
3234 #: ../clone/virt-sysprep.pod:184
3235 msgid "Remove DHCP server leases."
3236 msgstr ""
3237
3238 #. type: =head2
3239 #: ../clone/virt-sysprep.pod:186
3240 msgid "hostname"
3241 msgstr ""
3242
3243 #. type: textblock
3244 #: ../clone/virt-sysprep.pod:188
3245 msgid ""
3246 "Changes the hostname of the guest to the value given in the I<--hostname> "
3247 "parameter."
3248 msgstr ""
3249
3250 #. type: textblock
3251 #: ../clone/virt-sysprep.pod:191
3252 msgid ""
3253 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3254 "C<localhost.localdomain>."
3255 msgstr ""
3256
3257 #. type: =head2
3258 #: ../clone/virt-sysprep.pod:194
3259 msgid "logfiles"
3260 msgstr ""
3261
3262 #. type: textblock
3263 #: ../clone/virt-sysprep.pod:196
3264 msgid "Remove many log files."
3265 msgstr ""
3266
3267 #. type: =head2
3268 #: ../clone/virt-sysprep.pod:198
3269 msgid "mail-spool"
3270 msgstr ""
3271
3272 #. type: textblock
3273 #: ../clone/virt-sysprep.pod:200
3274 msgid "Remove email from the local mail spool directory."
3275 msgstr ""
3276
3277 #. type: =head2
3278 #: ../clone/virt-sysprep.pod:202
3279 msgid "net-hwaddr"
3280 msgstr ""
3281
3282 #. type: textblock
3283 #: ../clone/virt-sysprep.pod:204
3284 msgid ""
3285 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3286 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3287 msgstr ""
3288
3289 #. type: =head2
3290 #: ../clone/virt-sysprep.pod:207
3291 msgid "random-seed"
3292 msgstr ""
3293
3294 #. type: textblock
3295 #: ../clone/virt-sysprep.pod:209
3296 msgid ""
3297 "Write some random bytes from the host into the random seed file of the guest."
3298 msgstr ""
3299
3300 #. type: textblock
3301 #: ../clone/virt-sysprep.pod:212
3302 msgid "See L</RANDOM SEED> below."
3303 msgstr ""
3304
3305 #. type: =head2
3306 #: ../clone/virt-sysprep.pod:214
3307 msgid "rhn-systemid"
3308 msgstr ""
3309
3310 #. type: textblock
3311 #: ../clone/virt-sysprep.pod:216
3312 msgid "Remove the RHN system ID."
3313 msgstr ""
3314
3315 #. type: =head2
3316 #: ../clone/virt-sysprep.pod:218
3317 msgid "smolt-uuid"
3318 msgstr ""
3319
3320 #. type: textblock
3321 #: ../clone/virt-sysprep.pod:220
3322 msgid "Remove the Smolt hardware UUID."
3323 msgstr ""
3324
3325 #. type: =head2
3326 #: ../clone/virt-sysprep.pod:222
3327 msgid "ssh-hostkeys"
3328 msgstr ""
3329
3330 #. type: textblock
3331 #: ../clone/virt-sysprep.pod:224
3332 msgid "Remove the SSH host keys in the guest."
3333 msgstr ""
3334
3335 #. type: textblock
3336 #: ../clone/virt-sysprep.pod:226
3337 msgid ""
3338 "The SSH host keys are regenerated (differently) next time the guest is "
3339 "booted."
3340 msgstr ""
3341
3342 #. type: textblock
3343 #: ../clone/virt-sysprep.pod:229
3344 msgid ""
3345 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3346 "stark warning about the host key changing:"
3347 msgstr ""
3348
3349 #. type: verbatim
3350 #: ../clone/virt-sysprep.pod:232
3351 #, no-wrap
3352 msgid ""
3353 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3354 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3355 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3356 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3357 "\n"
3358 msgstr ""
3359
3360 #. type: =head2
3361 #: ../clone/virt-sysprep.pod:237
3362 msgid "udev-persistent-net"
3363 msgstr ""
3364
3365 #. type: textblock
3366 #: ../clone/virt-sysprep.pod:239
3367 msgid ""
3368 "Remove udev persistent net rules which map the guest's existing MAC address "
3369 "to a fixed ethernet device (eg. eth0)."
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../clone/virt-sysprep.pod:242
3374 msgid ""
3375 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3376 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3377 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3378 "Erasing the udev persistent net rules avoids this."
3379 msgstr ""
3380
3381 #. type: =head2
3382 #: ../clone/virt-sysprep.pod:247
3383 msgid "utmp"
3384 msgstr ""
3385
3386 #. type: textblock
3387 #: ../clone/virt-sysprep.pod:249
3388 msgid "Remove the utmp file."
3389 msgstr ""
3390
3391 #. type: textblock
3392 #: ../clone/virt-sysprep.pod:251
3393 msgid ""
3394 "This records who is currently logged in on a machine.  In modern Linux "
3395 "distros it is stored in a ramdisk and hence not part of the virtual "
3396 "machine's disk, but it was stored on disk in older distros."
3397 msgstr ""
3398
3399 #. type: =head2
3400 #: ../clone/virt-sysprep.pod:255
3401 msgid "yum-uuid"
3402 msgstr ""
3403
3404 #. type: textblock
3405 #: ../clone/virt-sysprep.pod:257
3406 msgid "Remove the yum UUID."
3407 msgstr ""
3408
3409 #. type: textblock
3410 #: ../clone/virt-sysprep.pod:259
3411 msgid ""
3412 "Yum creates a fresh UUID the next time it runs when it notices that the "
3413 "original UUID has been erased."
3414 msgstr ""
3415
3416 #. type: =head1
3417 #: ../clone/virt-sysprep.pod:262
3418 msgid "COPYING AND CLONING"
3419 msgstr ""
3420
3421 #. type: textblock
3422 #: ../clone/virt-sysprep.pod:264
3423 msgid ""
3424 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3425 "prepare a template from which guests can be cloned.  There are many "
3426 "different ways to achieve this using the virt tools, and this section is "
3427 "just an introduction."
3428 msgstr ""
3429
3430 #. type: textblock
3431 #: ../clone/virt-sysprep.pod:269
3432 msgid "A virtual machine (when switched off) consists of two parts:"
3433 msgstr ""
3434
3435 #. type: =item
3436 #: ../clone/virt-sysprep.pod:273
3437 msgid "I<configuration>"
3438 msgstr ""
3439
3440 #. type: textblock
3441 #: ../clone/virt-sysprep.pod:275
3442 msgid ""
3443 "The configuration or description of the guest.  eg. The libvirt XML (see "
3444 "C<virsh dumpxml>), the running configuration of the guest, or another "
3445 "external format like OVF."
3446 msgstr ""
3447
3448 #. type: textblock
3449 #: ../clone/virt-sysprep.pod:279
3450 msgid "Some configuration items that might need to be changed:"
3451 msgstr ""
3452
3453 #. type: textblock
3454 #: ../clone/virt-sysprep.pod:285
3455 msgid "name"
3456 msgstr ""
3457
3458 #. type: textblock
3459 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3460 msgid "UUID"
3461 msgstr ""
3462
3463 #. type: textblock
3464 #: ../clone/virt-sysprep.pod:293
3465 msgid "path to block device(s)"
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../clone/virt-sysprep.pod:297
3470 msgid "network card MAC address"
3471 msgstr ""
3472
3473 #. type: =item
3474 #: ../clone/virt-sysprep.pod:301
3475 msgid "I<block device(s)>"
3476 msgstr ""
3477
3478 #. type: textblock
3479 #: ../clone/virt-sysprep.pod:303
3480 msgid ""
3481 "One or more hard disk images, themselves containing files, directories, "
3482 "applications, kernels, configuration, etc."
3483 msgstr ""
3484
3485 #. type: textblock
3486 #: ../clone/virt-sysprep.pod:306
3487 msgid "Some things inside the block devices that might need to be changed:"
3488 msgstr ""
3489
3490 #. type: textblock
3491 #: ../clone/virt-sysprep.pod:312
3492 msgid "hostname and other net configuration"
3493 msgstr ""
3494
3495 #. type: textblock
3496 #: ../clone/virt-sysprep.pod:320
3497 msgid "SSH host keys"
3498 msgstr ""
3499
3500 #. type: textblock
3501 #: ../clone/virt-sysprep.pod:324
3502 msgid "Windows unique security ID (SID)"
3503 msgstr ""
3504
3505 #. type: textblock
3506 #: ../clone/virt-sysprep.pod:328
3507 msgid "Puppet registration"
3508 msgstr ""
3509
3510 #. type: =head2
3511 #: ../clone/virt-sysprep.pod:334
3512 msgid "COPYING THE BLOCK DEVICE"
3513 msgstr ""
3514
3515 #. type: textblock
3516 #: ../clone/virt-sysprep.pod:336
3517 msgid ""
3518 "Starting with an original guest, you probably wish to copy the guest block "
3519 "device and its configuration to make a template.  Then once you are happy "
3520 "with the template, you will want to make many clones from it."
3521 msgstr ""
3522
3523 #. type: verbatim
3524 #: ../clone/virt-sysprep.pod:341
3525 #, no-wrap
3526 msgid ""
3527 "                        virt-sysprep\n"
3528 "                             |\n"
3529 "                             v\n"
3530 " original guest --------> template ---------->\n"
3531 "                                      \\------> cloned\n"
3532 "                                       \\-----> guests\n"
3533 "                                        \\---->\n"
3534 "\n"
3535 msgstr ""
3536
3537 #. type: textblock
3538 #: ../clone/virt-sysprep.pod:349
3539 msgid ""
3540 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3541 "L<dd(1)>."
3542 msgstr ""
3543
3544 #. type: verbatim
3545 #: ../clone/virt-sysprep.pod:352
3546 #, no-wrap
3547 msgid ""
3548 "                   dd                 dd\n"
3549 " original guest --------> template ---------->\n"
3550 "                                      \\------> cloned\n"
3551 "                                       \\-----> guests\n"
3552 "                                        \\---->\n"
3553 "\n"
3554 msgstr ""
3555
3556 #. type: textblock
3557 #: ../clone/virt-sysprep.pod:358
3558 msgid "There are some smarter (and faster) ways too:"
3559 msgstr ""
3560
3561 #. type: verbatim
3562 #: ../clone/virt-sysprep.pod:364
3563 #, no-wrap
3564 msgid ""
3565 "                          snapshot\n"
3566 "                template ---------->\n"
3567 "                            \\------> cloned\n"
3568 "                             \\-----> guests\n"
3569 "                              \\---->\n"
3570 "\n"
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../clone/virt-sysprep.pod:370
3575 msgid ""
3576 "Use the block device as a backing file and create a snapshot on top for each "
3577 "guest.  The advantage is that you don't need to copy the block device (very "
3578 "fast) and only changes are stored (less storage required)."
3579 msgstr ""
3580
3581 #. type: textblock
3582 #: ../clone/virt-sysprep.pod:375
3583 msgid ""
3584 "Note that writing to the backing file once you have created guests on top of "
3585 "it is not possible: you will corrupt the guests."
3586 msgstr ""
3587
3588 #. type: textblock
3589 #: ../clone/virt-sysprep.pod:378
3590 msgid ""
3591 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3592 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3593 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3594 "also create cheap snapshots from files or LUNs."
3595 msgstr ""
3596
3597 #. type: textblock
3598 #: ../clone/virt-sysprep.pod:386
3599 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3600 msgstr ""
3601
3602 #. type: textblock
3603 #: ../clone/virt-sysprep.pod:390
3604 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3605 msgstr ""
3606
3607 #. type: =head2
3608 #: ../clone/virt-sysprep.pod:394
3609 msgid "VIRT-CLONE"
3610 msgstr ""
3611
3612 #. type: textblock
3613 #: ../clone/virt-sysprep.pod:396
3614 msgid ""
3615 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3616 "and/or modify the external libvirt configuration of a guest.  It will reset "
3617 "the name, UUID and MAC address of the guest in the libvirt XML."
3618 msgstr ""
3619
3620 #. type: textblock
3621 #: ../clone/virt-sysprep.pod:401
3622 msgid ""
3623 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3624 "image.  This was the original motivation to write virt-sysprep."
3625 msgstr ""
3626
3627 #. type: =head2
3628 #: ../clone/virt-sysprep.pod:404
3629 msgid "SPARSIFY"
3630 msgstr ""
3631
3632 #. type: verbatim
3633 #: ../clone/virt-sysprep.pod:406
3634 #, no-wrap
3635 msgid ""
3636 "              virt-sparsify\n"
3637 " original guest --------> template\n"
3638 "\n"
3639 msgstr ""
3640
3641 #. type: textblock
3642 #: ../clone/virt-sysprep.pod:409
3643 msgid ""
3644 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3645 "it easier to compress and/or faster to copy."
3646 msgstr ""
3647
3648 #. type: textblock
3649 #: ../clone/virt-sysprep.pod:412
3650 msgid ""
3651 "Notice that since virt-sparsify also copies the image, you can use it to "
3652 "make the initial copy (instead of C<dd>)."
3653 msgstr ""
3654
3655 #. type: =head2
3656 #: ../clone/virt-sysprep.pod:415
3657 msgid "RESIZE"
3658 msgstr ""
3659
3660 #. type: verbatim
3661 #: ../clone/virt-sysprep.pod:417
3662 #, no-wrap
3663 msgid ""
3664 "                         virt-resize\n"
3665 "                template ---------->\n"
3666 "                            \\------> cloned\n"
3667 "                             \\-----> guests\n"
3668 "                              \\---->\n"
3669 "\n"
3670 msgstr ""
3671
3672 #. type: textblock
3673 #: ../clone/virt-sysprep.pod:423
3674 msgid ""
3675 "If you want to give people cloned guests, but let them pick the size of the "
3676 "guest themselves (eg. depending on how much they are prepared to pay for "
3677 "disk space), then instead of copying the template, you can run L<virt-resize"
3678 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3679 "guests from a template."
3680 msgstr ""
3681
3682 #. type: =head1
3683 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3684 msgid "SECURITY"
3685 msgstr ""
3686
3687 #. type: textblock
3688 #: ../clone/virt-sysprep.pod:431
3689 msgid ""
3690 "Although virt-sysprep removes some sensitive information from the guest, it "
3691 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3692 "above, and the implementation of the operations in the shell script.  You "
3693 "should also examine the guest afterwards."
3694 msgstr ""
3695
3696 #. type: textblock
3697 #: ../clone/virt-sysprep.pod:436
3698 msgid ""
3699 "Sensitive files are simply removed.  The data they contained may still exist "
3700 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3701 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3702 "(1)> command to get rid of deleted content in directory entries and inodes."
3703 msgstr ""
3704
3705 #. type: =head2
3706 #: ../clone/virt-sysprep.pod:442
3707 msgid "RANDOM SEED"
3708 msgstr ""
3709
3710 #. type: textblock
3711 #: ../clone/virt-sysprep.pod:444
3712 msgid "I<(This section applies to Linux guests only)>"
3713 msgstr ""
3714
3715 #. type: textblock
3716 #: ../clone/virt-sysprep.pod:446
3717 msgid ""
3718 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3719 "from the host into the guest's random seed file."
3720 msgstr ""
3721
3722 #. type: textblock
3723 #: ../clone/virt-sysprep.pod:449
3724 msgid ""
3725 "If this is just done once and the guest is cloned from the same template, "
3726 "then each guest will start with the same entropy, and things like SSH host "
3727 "keys and TCP sequence numbers may be predictable."
3728 msgstr ""
3729
3730 #. type: textblock
3731 #: ../clone/virt-sysprep.pod:453
3732 msgid ""
3733 "Therefore you should arrange to add more randomness I<after> cloning from a "
3734 "template too, which can be done by just enabling the C<random-seed> "
3735 "operation:"
3736 msgstr ""
3737
3738 #. type: verbatim
3739 #: ../clone/virt-sysprep.pod:457
3740 #, no-wrap
3741 msgid ""
3742 " cp template.img newguest.img\n"
3743 " virt-sysprep --enable=random-seed -a newguest.img\n"
3744 "\n"
3745 msgstr ""
3746
3747 #. type: =head2
3748 #: ../clone/virt-sysprep.pod:460
3749 msgid "SELINUX RELABELLING"
3750 msgstr ""
3751
3752 #. type: textblock
3753 #: ../clone/virt-sysprep.pod:462
3754 msgid "I<(This section applies to Linux guests using SELinux only)>"
3755 msgstr ""
3756
3757 #. type: textblock
3758 #: ../clone/virt-sysprep.pod:464
3759 msgid ""
3760 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3761 "autorelabel> so that these will be correctly labelled by SELinux the next "
3762 "time the guest is booted.  This process interrupts boot and can take some "
3763 "time."
3764 msgstr ""
3765
3766 #. type: textblock
3767 #: ../clone/virt-sysprep.pod:469
3768 msgid ""
3769 "You can force relabelling for all guests by supplying the I<--selinux-"
3770 "relabel> option."
3771 msgstr ""
3772
3773 #. type: textblock
3774 #: ../clone/virt-sysprep.pod:472
3775 msgid ""
3776 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3777 "relabel> option."
3778 msgstr ""
3779
3780 #. type: textblock
3781 #: ../clone/virt-sysprep.pod:484
3782 msgid "This program returns 0 on success, or 1 if there was an error."
3783 msgstr ""
3784
3785 #. type: textblock
3786 #: ../clone/virt-sysprep.pod:488
3787 msgid ""
3788 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3789 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3790 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3791 msgstr ""
3792
3793 #. type: textblock
3794 #: ../df/virt-df.pod:5
3795 msgid "virt-df - Display free space on virtual filesystems"
3796 msgstr ""
3797
3798 #. type: verbatim
3799 #: ../df/virt-df.pod:9
3800 #, no-wrap
3801 msgid ""
3802 " virt-df [--options]\n"
3803 "\n"
3804 msgstr ""
3805
3806 #. type: verbatim
3807 #: ../df/virt-df.pod:11
3808 #, no-wrap
3809 msgid ""
3810 " virt-df [--options] -d domname\n"
3811 "\n"
3812 msgstr ""
3813
3814 #. type: verbatim
3815 #: ../df/virt-df.pod:13
3816 #, no-wrap
3817 msgid ""
3818 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3819 "\n"
3820 msgstr ""
3821
3822 #. type: verbatim
3823 #: ../df/virt-df.pod:17
3824 #, no-wrap
3825 msgid ""
3826 " virt-df [--options] domname\n"
3827 "\n"
3828 msgstr ""
3829
3830 #. type: verbatim
3831 #: ../df/virt-df.pod:19
3832 #, no-wrap
3833 msgid ""
3834 " virt-df [--options] disk.img [disk.img ...]\n"
3835 "\n"
3836 msgstr ""
3837
3838 #. type: textblock
3839 #: ../df/virt-df.pod:23
3840 msgid ""
3841 "C<virt-df> is a command line tool to display free space on virtual machine "
3842 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3843 "allocated to a virtual machine, but can look inside disk images to see how "
3844 "much space is really being used."
3845 msgstr ""
3846
3847 #. type: textblock
3848 #: ../df/virt-df.pod:28
3849 msgid ""
3850 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3851 "to get a list of all active and inactive guests, and performs a C<df>-type "
3852 "operation on each one in turn, printing out the results."
3853 msgstr ""
3854
3855 #. type: textblock
3856 #: ../df/virt-df.pod:32
3857 msgid ""
3858 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3859 "type operation on either the single named libvirt domain, or on the disk "
3860 "image(s) listed on the command line (which must all belong to a single VM).  "
3861 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3862 "guest>.  If you want to run on multiple guests, then you have to invoke "
3863 "C<virt-df> multiple times."
3864 msgstr ""
3865
3866 #. type: textblock
3867 #: ../df/virt-df.pod:39
3868 msgid ""
3869 "Use the I<--csv> option to get a format which can be easily parsed by other "
3870 "programs.  Other options are similar to the standard L<df(1)> command."
3871 msgstr ""
3872
3873 #. type: textblock
3874 #: ../df/virt-df.pod:45
3875 msgid ""
3876 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3877 "output human-readable:"
3878 msgstr ""
3879
3880 #. type: verbatim
3881 #: ../df/virt-df.pod:48
3882 #, no-wrap
3883 msgid ""
3884 " # virt-df -d F14x64 -h\n"
3885 " Filesystem                       Size     Used  Available  Use%\n"
3886 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3887 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3888 "\n"
3889 msgstr ""
3890
3891 #. type: textblock
3892 #: ../df/virt-df.pod:53
3893 msgid "Show disk usage for a disk image file called C<test.img>:"
3894 msgstr ""
3895
3896 #. type: verbatim
3897 #: ../df/virt-df.pod:55
3898 #, no-wrap
3899 msgid ""
3900 " $ virt-df -a test1.img\n"
3901 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3902 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3903 "\n"
3904 msgstr ""
3905
3906 #. type: verbatim
3907 #: ../df/virt-df.pod:112
3908 #, no-wrap
3909 msgid ""
3910 " virt-df --format=raw -a disk.img\n"
3911 "\n"
3912 msgstr ""
3913
3914 #. type: verbatim
3915 #: ../df/virt-df.pod:116
3916 #, no-wrap
3917 msgid ""
3918 " virt-df --format=raw -a disk.img --format -a another.img\n"
3919 "\n"
3920 msgstr ""
3921
3922 #. type: textblock
3923 #: ../df/virt-df.pod:129
3924 msgid "Print sizes in human-readable format."
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../df/virt-df.pod:131
3929 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3930 msgstr ""
3931
3932 #. type: =item
3933 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3934 msgid "B<-i>"
3935 msgstr ""
3936
3937 #. type: =item
3938 #: ../df/virt-df.pod:135
3939 msgid "B<--inodes>"
3940 msgstr ""
3941
3942 #. type: textblock
3943 #: ../df/virt-df.pod:137
3944 msgid "Print inodes instead of blocks."
3945 msgstr ""
3946
3947 #. type: =item
3948 #: ../df/virt-df.pod:139
3949 msgid "B<--one-per-guest>"
3950 msgstr ""
3951
3952 #. type: textblock
3953 #: ../df/virt-df.pod:141
3954 msgid ""
3955 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3956 "disks from several guests to a single libguestfs appliance."
3957 msgstr ""
3958
3959 #. type: textblock
3960 #: ../df/virt-df.pod:144
3961 msgid "You might use this option in the following circumstances:"
3962 msgstr ""
3963
3964 #. type: textblock
3965 #: ../df/virt-df.pod:150
3966 msgid ""
3967 "If you think an untrusted guest might actively try to exploit the libguestfs "
3968 "appliance kernel, then this prevents one guest from interfering with the "
3969 "stats printed for another guest."
3970 msgstr ""
3971
3972 #. type: textblock
3973 #: ../df/virt-df.pod:156
3974 msgid ""
3975 "If the kernel has a bug which stops it from accessing a filesystem in one "
3976 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3977 "and report stats for further guests."
3978 msgstr ""
3979
3980 #. type: textblock
3981 #: ../df/virt-df.pod:165
3982 msgid ""
3983 "Print UUIDs instead of names.  This is useful for following a guest even "
3984 "when the guest is migrated or renamed, or when two guests happen to have the "
3985 "same name."
3986 msgstr ""
3987
3988 #. type: textblock
3989 #: ../df/virt-df.pod:169
3990 msgid ""
3991 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3992 "images, we still print the disk image name even when this option is "
3993 "specified."
3994 msgstr ""
3995
3996 #. type: textblock
3997 #: ../df/virt-df.pod:229
3998 msgid ""
3999 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4000 "libguestfs.org/>."
4001 msgstr ""
4002
4003 #. type: textblock
4004 #: ../edit/virt-edit.pod:5
4005 msgid "virt-edit - Edit a file in a virtual machine"
4006 msgstr ""
4007
4008 #. type: verbatim
4009 #: ../edit/virt-edit.pod:9
4010 #, no-wrap
4011 msgid ""
4012 " virt-edit [--options] -d domname file [file ...]\n"
4013 "\n"
4014 msgstr ""
4015
4016 #. type: verbatim
4017 #: ../edit/virt-edit.pod:11
4018 #, no-wrap
4019 msgid ""
4020 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4021 "\n"
4022 msgstr ""
4023
4024 #. type: verbatim
4025 #: ../edit/virt-edit.pod:13
4026 #, no-wrap
4027 msgid ""
4028 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4029 "\n"
4030 msgstr ""
4031
4032 #. type: verbatim
4033 #: ../edit/virt-edit.pod:17
4034 #, no-wrap
4035 msgid ""
4036 " virt-edit domname file\n"
4037 "\n"
4038 msgstr ""
4039
4040 #. type: verbatim
4041 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4042 #, no-wrap
4043 msgid ""
4044 " virt-edit disk.img [disk.img ...] file\n"
4045 "\n"
4046 msgstr ""
4047
4048 #. type: =head1
4049 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4050 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4051 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4052 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4053 msgid "WARNING"
4054 msgstr ""
4055
4056 #. type: textblock
4057 #: ../edit/virt-edit.pod:23
4058 msgid ""
4059 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4060 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4061 "doing this, but doesn't catch all cases."
4062 msgstr ""
4063
4064 #. type: textblock
4065 #: ../edit/virt-edit.pod:29
4066 msgid ""
4067 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4068 "exists in the named virtual machine (or disk image)."
4069 msgstr ""
4070
4071 #. type: textblock
4072 #: ../edit/virt-edit.pod:32
4073 msgid ""
4074 "Multiple filenames can be given, in which case they are each edited in "
4075 "turn.  Each filename must be a full path, starting at the root directory "
4076 "(starting with '/')."
4077 msgstr ""
4078
4079 #. type: textblock
4080 #: ../edit/virt-edit.pod:36
4081 msgid "If you want to just view a file, use L<virt-cat(1)>."
4082 msgstr ""
4083
4084 #. type: textblock
4085 #: ../edit/virt-edit.pod:38
4086 msgid ""
4087 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4088 "USING GUESTFISH> below)."
4089 msgstr ""
4090
4091 #. type: textblock
4092 #: ../edit/virt-edit.pod:41
4093 msgid ""
4094 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4095 "that and much more."
4096 msgstr ""
4097
4098 #. type: textblock
4099 #: ../edit/virt-edit.pod:46
4100 msgid "Edit the named files interactively:"
4101 msgstr ""
4102
4103 #. type: verbatim
4104 #: ../edit/virt-edit.pod:48
4105 #, no-wrap
4106 msgid ""
4107 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4108 "\n"
4109 msgstr ""
4110
4111 #. type: verbatim
4112 #: ../edit/virt-edit.pod:50
4113 #, no-wrap
4114 msgid ""
4115 " virt-edit -d mydomain /etc/passwd\n"
4116 "\n"
4117 msgstr ""
4118
4119 #. type: textblock
4120 #: ../edit/virt-edit.pod:52
4121 msgid "For Windows guests, some Windows paths are understood:"
4122 msgstr ""
4123
4124 #. type: verbatim
4125 #: ../edit/virt-edit.pod:54
4126 #, no-wrap
4127 msgid ""
4128 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4129 "\n"
4130 msgstr ""
4131
4132 #. type: textblock
4133 #: ../edit/virt-edit.pod:56
4134 msgid ""
4135 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4136 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4137 msgstr ""
4138
4139 #. type: verbatim
4140 #: ../edit/virt-edit.pod:60
4141 #, no-wrap
4142 msgid ""
4143 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4144 "\n"
4145 msgstr ""
4146
4147 #. type: =item
4148 #: ../edit/virt-edit.pod:81
4149 msgid "B<-b> extension"
4150 msgstr ""
4151
4152 #. type: =item
4153 #: ../edit/virt-edit.pod:83
4154 msgid "B<--backup> extension"
4155 msgstr ""
4156
4157 #. type: textblock
4158 #: ../edit/virt-edit.pod:85
4159 msgid ""
4160 "Create a backup of the original file I<in the guest disk image>.  The backup "
4161 "has the original filename with C<extension> added."
4162 msgstr ""
4163
4164 #. type: textblock
4165 #: ../edit/virt-edit.pod:88
4166 msgid ""
4167 "Usually the first character of C<extension> would be a dot C<.> so you would "
4168 "write:"
4169 msgstr ""
4170
4171 #. type: verbatim
4172 #: ../edit/virt-edit.pod:91
4173 #, no-wrap
4174 msgid ""
4175 " virt-edit -b .orig [etc]\n"
4176 "\n"
4177 msgstr ""
4178
4179 #. type: textblock
4180 #: ../edit/virt-edit.pod:93
4181 msgid "By default, no backup file is made."
4182 msgstr ""
4183
4184 #. type: =item
4185 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4186 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4187 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4188 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4189 msgid "B<-c URI>"
4190 msgstr ""
4191
4192 #. type: =item
4193 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4194 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4195 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4196 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4197 msgid "B<--connect URI>"
4198 msgstr ""
4199
4200 #. type: textblock
4201 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4202 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4203 #: ../tools/virt-win-reg.pl:135
4204 msgid ""
4205 "If you specify guest block devices directly, then libvirt is not used at all."
4206 msgstr ""
4207
4208 #. type: textblock
4209 #: ../edit/virt-edit.pod:114
4210 msgid ""
4211 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4212 "off so you cannot see what you are typing.  If you are not worried about "
4213 "Tempest attacks and there is no one else in the room you can specify this "
4214 "flag to see what you are typing."
4215 msgstr ""
4216
4217 #. type: =item
4218 #: ../edit/virt-edit.pod:119
4219 msgid "B<-e> EXPR"
4220 msgstr ""
4221
4222 #. type: =item
4223 #: ../edit/virt-edit.pod:121
4224 msgid "B<--expr> EXPR"
4225 msgstr ""
4226
4227 #. type: textblock
4228 #: ../edit/virt-edit.pod:123
4229 msgid ""
4230 "Instead of launching the external editor, non-interactively apply the Perl "
4231 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4232 "EDITING> below."
4233 msgstr ""
4234
4235 #. type: textblock
4236 #: ../edit/virt-edit.pod:127
4237 msgid ""
4238 "Be careful to properly quote the expression to prevent it from being altered "
4239 "by the shell."
4240 msgstr ""
4241
4242 #. type: textblock
4243 #: ../edit/virt-edit.pod:130
4244 msgid "Note that this option is only available when Perl 5 is installed."
4245 msgstr ""
4246
4247 #. type: =item
4248 #: ../edit/virt-edit.pod:132
4249 msgid "B<--format> raw|qcow2|..."
4250 msgstr ""
4251
4252 #. type: verbatim
4253 #: ../edit/virt-edit.pod:143
4254 #, no-wrap
4255 msgid ""
4256 " virt-edit --format=raw -a disk.img file\n"
4257 "\n"
4258 msgstr ""
4259
4260 #. type: verbatim
4261 #: ../edit/virt-edit.pod:147
4262 #, no-wrap
4263 msgid ""
4264 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4265 "\n"
4266 msgstr ""
4267
4268 #. type: textblock
4269 #: ../edit/virt-edit.pod:181
4270 msgid "Previous versions of virt-edit allowed you to write either:"
4271 msgstr ""
4272
4273 #. type: verbatim
4274 #: ../edit/virt-edit.pod:187
4275 #, no-wrap
4276 msgid ""
4277 " virt-edit guestname file\n"
4278 "\n"
4279 msgstr ""
4280
4281 #. type: =head1
4282 #: ../edit/virt-edit.pod:195
4283 msgid "NON-INTERACTIVE EDITING"
4284 msgstr ""
4285
4286 #. type: textblock
4287 #: ../edit/virt-edit.pod:197
4288 msgid ""
4289 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4290 "administrator can interactively edit the file."
4291 msgstr ""
4292
4293 #. type: textblock
4294 #: ../edit/virt-edit.pod:200
4295 msgid ""
4296 "There are two ways also to use C<virt-edit> from scripts in order to make "
4297 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4298 "like this, it's less error-prone to write scripts directly using the "
4299 "libguestfs API and Augeas for configuration file editing.)"
4300 msgstr ""
4301
4302 #. type: textblock
4303 #: ../edit/virt-edit.pod:206
4304 msgid ""
4305 "The first method is to temporarily set C<$EDITOR> to any script or program "
4306 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4307 "update C<tmpfile> in place however it likes."
4308 msgstr ""
4309
4310 #. type: textblock
4311 #: ../edit/virt-edit.pod:210
4312 msgid ""
4313 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4314 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4315 "instances of C<foo> with C<bar> in a file:"
4316 msgstr ""
4317
4318 #. type: verbatim
4319 #: ../edit/virt-edit.pod:214
4320 #, no-wrap
4321 msgid ""
4322 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4323 "\n"
4324 msgstr ""
4325
4326 #. type: textblock
4327 #: ../edit/virt-edit.pod:216
4328 msgid ""
4329 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4330 "For example to delete root's password you could do:"
4331 msgstr ""
4332
4333 #. type: verbatim
4334 #: ../edit/virt-edit.pod:219
4335 #, no-wrap
4336 msgid ""
4337 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4338 "\n"
4339 msgstr ""
4340
4341 #. type: textblock
4342 #: ../edit/virt-edit.pod:221
4343 msgid ""
4344 "What really happens is that the snippet is evaluated as a Perl expression "
4345 "for each line of the file.  The line, including the final C<\\n>, is passed "
4346 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4347 msgstr ""
4348
4349 #. type: textblock
4350 #: ../edit/virt-edit.pod:226
4351 msgid ""
4352 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4353 "C<apache> user account from the password file you can do:"
4354 msgstr ""
4355
4356 #. type: verbatim
4357 #: ../edit/virt-edit.pod:229
4358 #, no-wrap
4359 msgid ""
4360 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4361 "\n"
4362 msgstr ""
4363
4364 #. type: textblock
4365 #: ../edit/virt-edit.pod:231
4366 msgid ""
4367 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4368 "the end of the file is rather difficult this way since there is no concept "
4369 "of \"last line of the file\" - your expression just doesn't get called "
4370 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4371 "want to do this."
4372 msgstr ""
4373
4374 #. type: textblock
4375 #: ../edit/virt-edit.pod:237
4376 msgid ""
4377 "The variable C<$lineno> contains the current line number.  As is "
4378 "traditional, the first line in the file is number C<1>."
4379 msgstr ""
4380
4381 #. type: textblock
4382 #: ../edit/virt-edit.pod:240
4383 msgid ""
4384 "The return value from the expression is ignored, but the expression may call "
4385 "C<die> in order to abort the whole program, leaving the original file "
4386 "untouched."
4387 msgstr ""
4388
4389 #. type: textblock
4390 #: ../edit/virt-edit.pod:244
4391 msgid ""
4392 "Remember when matching the end of a line that C<$_> may contain the final C<"
4393 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4394 "newline then neither of these.  Thus to match or substitute some text at the "
4395 "end of a line, use this regular expression:"
4396 msgstr ""
4397
4398 #. type: verbatim
4399 #: ../edit/virt-edit.pod:249
4400 #, no-wrap
4401 msgid ""
4402 " /some text(\\r?\\n)?$/\n"
4403 "\n"
4404 msgstr ""
4405
4406 #. type: textblock
4407 #: ../edit/virt-edit.pod:251
4408 msgid ""
4409 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4410 "$_> itself (since that would remove all newlines from the file):"
4411 msgstr ""
4412
4413 #. type: verbatim
4414 #: ../edit/virt-edit.pod:255
4415 #, no-wrap
4416 msgid ""
4417 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4418 "\n"
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../edit/virt-edit.pod:259
4423 msgid ""
4424 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4425 "paths (eg. C<E:\\foo\\bar.txt>)."
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../edit/virt-edit.pod:278
4430 msgid ""
4431 "The path is resolved case insensitively to locate the file that should be "
4432 "edited."
4433 msgstr ""
4434
4435 #. type: textblock
4436 #: ../edit/virt-edit.pod:299
4437 msgid ""
4438 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4439 "C<virt-edit> doesn't work."
4440 msgstr ""
4441
4442 #. type: textblock
4443 #: ../edit/virt-edit.pod:302
4444 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4445 msgstr ""
4446
4447 #. type: verbatim
4448 #: ../edit/virt-edit.pod:304
4449 #, no-wrap
4450 msgid ""
4451 " guestfish --rw -i -d domname edit /file\n"
4452 "\n"
4453 msgstr ""
4454
4455 #. type: textblock
4456 #: ../edit/virt-edit.pod:306
4457 msgid ""
4458 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4459 "path to the file."
4460 msgstr ""
4461
4462 #. type: textblock
4463 #: ../edit/virt-edit.pod:309
4464 msgid ""
4465 "The command above uses libguestfs's guest inspection feature and so does not "
4466 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4467 "disk images that don't contain guests.  To edit a file on a disk image "
4468 "directly, use:"
4469 msgstr ""
4470
4471 #. type: verbatim
4472 #: ../edit/virt-edit.pod:314
4473 #, no-wrap
4474 msgid ""
4475 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4476 "\n"
4477 msgstr ""
4478
4479 #. type: textblock
4480 #: ../edit/virt-edit.pod:316
4481 msgid ""
4482 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4483 "the disk image to edit, and C</file> is the full path to the file."
4484 msgstr ""
4485
4486 #. type: textblock
4487 #: ../edit/virt-edit.pod:320
4488 msgid ""
4489 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4490 "C<write> or C<upload> instead:"
4491 msgstr ""
4492
4493 #. type: verbatim
4494 #: ../edit/virt-edit.pod:323
4495 #, no-wrap
4496 msgid ""
4497 " guestfish --rw -i -d domname touch /newfile\n"
4498 "\n"
4499 msgstr ""
4500
4501 #. type: verbatim
4502 #: ../edit/virt-edit.pod:325
4503 #, no-wrap
4504 msgid ""
4505 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4506 "\n"
4507 msgstr ""
4508
4509 #. type: verbatim
4510 #: ../edit/virt-edit.pod:327
4511 #, no-wrap
4512 msgid ""
4513 " guestfish --rw -i -d domname upload localfile /newfile\n"
4514 "\n"
4515 msgstr ""
4516
4517 #. type: =head1
4518 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4519 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4520 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4521 msgid "ENVIRONMENT VARIABLES"
4522 msgstr ""
4523
4524 #. type: =item
4525 #: ../edit/virt-edit.pod:333
4526 msgid "C<EDITOR>"
4527 msgstr ""
4528
4529 #. type: textblock
4530 #: ../edit/virt-edit.pod:335
4531 msgid ""
4532 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4533 "\"emacs -nw\">"
4534 msgstr ""
4535
4536 #. type: textblock
4537 #: ../edit/virt-edit.pod:338
4538 msgid "If not set, C<vi> is used."
4539 msgstr ""
4540
4541 #. type: textblock
4542 #: ../edit/virt-edit.pod:356
4543 msgid ""
4544 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4545 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4546 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4547 msgstr ""
4548
4549 #. type: textblock
4550 #: ../erlang/examples/guestfs-erlang.pod:5
4551 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4552 msgstr ""
4553
4554 #. type: verbatim
4555 #: ../erlang/examples/guestfs-erlang.pod:9
4556 #, no-wrap
4557 msgid ""
4558 " {ok, G} = guestfs:create(),\n"
4559 " ok = guestfs:add_drive_opts(G, Disk,\n"
4560 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4561 " ok = guestfs:launch(G),\n"
4562 " [Device] = guestfs:list_devices(G),\n"
4563 " ok = guestfs:close(G).\n"
4564 "\n"
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../erlang/examples/guestfs-erlang.pod:18
4569 msgid ""
4570 "This manual page documents how to call libguestfs from the Erlang "
4571 "programming language.  This page just documents the differences from the C "
4572 "API and gives some examples.  If you are not familiar with using libguestfs, "
4573 "you also need to read L<guestfs(3)>."
4574 msgstr ""
4575
4576 #. type: =head2
4577 #: ../erlang/examples/guestfs-erlang.pod:23
4578 msgid "OPENING AND CLOSING THE HANDLE"
4579 msgstr ""
4580
4581 #. type: textblock
4582 #: ../erlang/examples/guestfs-erlang.pod:25
4583 msgid ""
4584 "The Erlang bindings are implemented using an external program called C<erl-"
4585 "guestfs>.  This program must be on the current PATH, or else you should "
4586 "specify the full path to the program:"
4587 msgstr ""
4588
4589 #. type: verbatim
4590 #: ../erlang/examples/guestfs-erlang.pod:29
4591 #, no-wrap
4592 msgid ""
4593 " {ok, G} = guestfs:create().\n"
4594 "\n"
4595 msgstr ""
4596
4597 #. type: verbatim
4598 #: ../erlang/examples/guestfs-erlang.pod:31
4599 #, no-wrap
4600 msgid ""
4601 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4602 "\n"
4603 msgstr ""
4604
4605 #. type: textblock
4606 #: ../erlang/examples/guestfs-erlang.pod:33
4607 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4608 msgstr ""
4609
4610 #. type: textblock
4611 #: ../erlang/examples/guestfs-erlang.pod:36
4612 msgid "To close the handle:"
4613 msgstr ""
4614
4615 #. type: verbatim
4616 #: ../erlang/examples/guestfs-erlang.pod:38
4617 #, no-wrap
4618 msgid ""
4619 " ok = guestfs:close(G).\n"
4620 "\n"
4621 msgstr ""
4622
4623 #. type: =head2
4624 #: ../erlang/examples/guestfs-erlang.pod:40
4625 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4626 msgstr ""
4627
4628 #. type: textblock
4629 #: ../erlang/examples/guestfs-erlang.pod:42
4630 msgid ""
4631 "For functions that take optional arguments, the first arguments are the non-"
4632 "optional ones.  The last argument is a list of tuples supplying the "
4633 "remaining optional arguments."
4634 msgstr ""
4635
4636 #. type: verbatim
4637 #: ../erlang/examples/guestfs-erlang.pod:46
4638 #, no-wrap
4639 msgid ""
4640 " ok = guestfs:add_drive_opts(G, Disk,\n"
4641 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4642 "\n"
4643 msgstr ""
4644
4645 #. type: textblock
4646 #: ../erlang/examples/guestfs-erlang.pod:49
4647 msgid "If the last argument would be an empty list, you can also omit it:"
4648 msgstr ""
4649
4650 #. type: verbatim
4651 #: ../erlang/examples/guestfs-erlang.pod:51
4652 #, no-wrap
4653 msgid ""
4654 " ok = guestfs:add_drive_opts(G, Disk).\n"
4655 "\n"
4656 msgstr ""
4657
4658 #. type: =head2
4659 #: ../erlang/examples/guestfs-erlang.pod:53
4660 msgid "RETURN VALUES AND ERRORS"
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../erlang/examples/guestfs-erlang.pod:55
4665 msgid ""
4666 "On success, most functions return a C<Result> term (which could be a list, "
4667 "string, tuple etc.).  If there is nothing for the function to return, then "
4668 "the atom C<ok> is returned."
4669 msgstr ""
4670
4671 #. type: textblock
4672 #: ../erlang/examples/guestfs-erlang.pod:59
4673 msgid "On error, you would see one of the following tuples:"
4674 msgstr ""
4675
4676 #. type: =item
4677 #: ../erlang/examples/guestfs-erlang.pod:63
4678 msgid "C<{error, Msg, Errno}>"
4679 msgstr ""
4680
4681 #. type: textblock
4682 #: ../erlang/examples/guestfs-erlang.pod:65
4683 msgid "This indicates an ordinary error from the function."
4684 msgstr ""
4685
4686 #. type: textblock
4687 #: ../erlang/examples/guestfs-erlang.pod:67
4688 msgid ""
4689 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4690 "(integer)."
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../erlang/examples/guestfs-erlang.pod:70
4695 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4696 msgstr ""
4697
4698 #. type: =item
4699 #: ../erlang/examples/guestfs-erlang.pod:72
4700 msgid "C<{unknown, Function}>"
4701 msgstr ""
4702
4703 #. type: textblock
4704 #: ../erlang/examples/guestfs-erlang.pod:74
4705 msgid ""
4706 "This indicates that the function you called is not known.  Generally this "
4707 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4708 "which you should not do."
4709 msgstr ""
4710
4711 #. type: textblock
4712 #: ../erlang/examples/guestfs-erlang.pod:78
4713 msgid "C<Function> is the name of the unknown function."
4714 msgstr ""
4715
4716 #. type: =item
4717 #: ../erlang/examples/guestfs-erlang.pod:80
4718 msgid "C<{unknownarg, Arg}>"
4719 msgstr ""
4720
4721 #. type: textblock
4722 #: ../erlang/examples/guestfs-erlang.pod:82
4723 msgid ""
4724 "This indicates that you called a function with optional arguments, with an "
4725 "unknown argument name."
4726 msgstr ""
4727
4728 #. type: textblock
4729 #: ../erlang/examples/guestfs-erlang.pod:85
4730 msgid "C<Arg> is the name of the unknown argument."
4731 msgstr ""
4732
4733 #. type: =head1
4734 #: ../erlang/examples/guestfs-erlang.pod:89
4735 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4736 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4737 #: ../python/examples/guestfs-python.pod:34
4738 #: ../ruby/examples/guestfs-ruby.pod:28
4739 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4740 msgstr ""
4741
4742 #. type: textblock
4743 #: ../erlang/examples/guestfs-erlang.pod:91
4744 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4745 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4746 #: ../python/examples/guestfs-python.pod:36
4747 #: ../ruby/examples/guestfs-ruby.pod:30
4748 msgid "@EXAMPLE1@"
4749 msgstr ""
4750
4751 #. type: =head1
4752 #: ../erlang/examples/guestfs-erlang.pod:93
4753 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4754 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4755 #: ../python/examples/guestfs-python.pod:38
4756 #: ../ruby/examples/guestfs-ruby.pod:32
4757 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4758 msgstr ""
4759
4760 #. type: textblock
4761 #: ../erlang/examples/guestfs-erlang.pod:95
4762 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4763 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4764 #: ../python/examples/guestfs-python.pod:40
4765 #: ../ruby/examples/guestfs-ruby.pod:34
4766 msgid "@EXAMPLE2@"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../erlang/examples/guestfs-erlang.pod:99
4771 msgid ""
4772 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4773 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4774 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4775 msgstr ""
4776
4777 #. type: =head1
4778 #: ../erlang/examples/guestfs-erlang.pod:110
4779 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4780 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4781 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4782 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4783 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4784 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4785 #: ../python/examples/guestfs-python.pod:54
4786 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348
4787 #: ../test-tool/libguestfs-test-tool.pod:106
4788 msgid "AUTHORS"
4789 msgstr ""
4790
4791 #. type: textblock
4792 #: ../erlang/examples/guestfs-erlang.pod:112
4793 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4794 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4795 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4796 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4797 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4798 #: ../perl/examples/guestfs-perl.pod:54
4799 #: ../python/examples/guestfs-python.pod:56
4800 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3350
4801 #: ../test-tool/libguestfs-test-tool.pod:108
4802 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4803 msgstr ""
4804
4805 #. type: textblock
4806 #: ../erlang/examples/guestfs-erlang.pod:116
4807 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4808 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4809 msgstr ""
4810
4811 #. type: textblock
4812 #: ../erlang/examples/guestfs-erlang.pod:118
4813 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4814 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4815 #: ../perl/examples/guestfs-perl.pod:60
4816 #: ../python/examples/guestfs-python.pod:62
4817 #: ../ruby/examples/guestfs-ruby.pod:56
4818 msgid ""
4819 "The examples in this manual page may be freely copied, modified and "
4820 "distributed without any restrictions."
4821 msgstr ""
4822
4823 #. type: textblock
4824 #: ../erlang/examples/guestfs-erlang.pod:121
4825 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4826 #: ../java/examples/guestfs-java.pod:69
4827 #: ../ocaml/examples/guestfs-ocaml.pod:102
4828 #: ../perl/examples/guestfs-perl.pod:63
4829 #: ../python/examples/guestfs-python.pod:65
4830 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3357
4831 msgid ""
4832 "This library is free software; you can redistribute it and/or modify it "
4833 "under the terms of the GNU Lesser General Public License as published by the "
4834 "Free Software Foundation; either version 2 of the License, or (at your "
4835 "option) any later version."
4836 msgstr ""
4837
4838 #. type: textblock
4839 #: ../erlang/examples/guestfs-erlang.pod:126
4840 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4841 #: ../java/examples/guestfs-java.pod:74
4842 #: ../ocaml/examples/guestfs-ocaml.pod:107
4843 #: ../perl/examples/guestfs-perl.pod:68
4844 #: ../python/examples/guestfs-python.pod:70
4845 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3362
4846 msgid ""
4847 "This library is distributed in the hope that it will be useful, but WITHOUT "
4848 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4849 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4850 "for more details."
4851 msgstr ""
4852
4853 #. type: textblock
4854 #: ../erlang/examples/guestfs-erlang.pod:131
4855 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4856 #: ../java/examples/guestfs-java.pod:79
4857 #: ../ocaml/examples/guestfs-ocaml.pod:112
4858 #: ../perl/examples/guestfs-perl.pod:73
4859 #: ../python/examples/guestfs-python.pod:75
4860 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3367
4861 msgid ""
4862 "You should have received a copy of the GNU Lesser General Public License "
4863 "along with this library; if not, write to the Free Software Foundation, "
4864 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4865 msgstr ""
4866
4867 #. type: textblock
4868 #: ../examples/guestfs-examples.pod:5
4869 msgid "guestfs-examples - Examples of using libguestfs from C"
4870 msgstr ""
4871
4872 #. type: verbatim
4873 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4874 #, no-wrap
4875 msgid ""
4876 " #include <guestfs.h>\n"
4877 " \n"
4878 msgstr "#include <guestfs.h>\n"
4879
4880 #. type: verbatim
4881 #: ../examples/guestfs-examples.pod:11
4882 #, no-wrap
4883 msgid ""
4884 " guestfs_h *g = guestfs_create ();\n"
4885 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4886 " guestfs_launch (g);\n"
4887 "\n"
4888 msgstr ""
4889
4890 #. type: verbatim
4891 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4892 #, no-wrap
4893 msgid ""
4894 " cc prog.c -o prog -lguestfs\n"
4895 "or:\n"
4896 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4897 "\n"
4898 msgstr ""
4899 " cc prog.c -o prog -lguestfs\n"
4900 "or:\n"
4901 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4902 "\n"
4903
4904 #. type: textblock
4905 #: ../examples/guestfs-examples.pod:21
4906 msgid ""
4907 "This manual page contains examples of calling libguestfs from the C "
4908 "programming language.  If you are not familiar with using libguestfs, you "
4909 "also need to read L<guestfs(3)>."
4910 msgstr ""
4911
4912 #. type: textblock
4913 #: ../examples/guestfs-examples.pod:35
4914 msgid ""
4915 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4916 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4917 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4918 msgstr ""
4919
4920 #. type: textblock
4921 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4922 #: ../python/examples/guestfs-python.pod:60
4923 #: ../ruby/examples/guestfs-ruby.pod:54
4924 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4925 msgstr ""
4926
4927 #. type: =end
4928 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4929 msgid "comment"
4930 msgstr ""
4931
4932 #. type: textblock
4933 #: ../examples/guestfs-recipes.pod:5
4934 msgid ""
4935 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4936 "here.  The only way which works for both sorts of output is to just write "
4937 "the URL directly.  Do NOT use L<...> for URLs."
4938 msgstr ""
4939
4940 #. type: textblock
4941 #: ../examples/guestfs-recipes.pod:9
4942 msgid ""
4943 "We break with tradition here and don't use ALL CAPS for the section "
4944 "headings, as this makes them much easier to read."
4945 msgstr ""
4946
4947 #. type: textblock
4948 #: ../examples/guestfs-recipes.pod:16
4949 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4950 msgstr ""
4951
4952 #. type: textblock
4953 #: ../examples/guestfs-recipes.pod:20
4954 msgid ""
4955 "This page contains recipes for and links to things you can do using "
4956 "libguestfs, L<guestfish(1)> and the virt tools."
4957 msgstr ""
4958
4959 #. type: =head1
4960 #: ../examples/guestfs-recipes.pod:23
4961 msgid "Audit a virtual machine for setuid files"
4962 msgstr ""
4963
4964 #. type: textblock
4965 #: ../examples/guestfs-recipes.pod:25
4966 msgid ""
4967 "The link below contains a small program which can be used to audit a Linux "
4968 "virtual machine to see what setuid and setgid files it contains."
4969 msgstr ""
4970
4971 #. type: textblock
4972 #: ../examples/guestfs-recipes.pod:28
4973 msgid ""
4974 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
4975 "files/#content"
4976 msgstr ""
4977
4978 #. type: =head1
4979 #: ../examples/guestfs-recipes.pod:30
4980 msgid "Change the background image in a Windows XP VM"
4981 msgstr ""
4982
4983 #. type: textblock
4984 #: ../examples/guestfs-recipes.pod:32
4985 msgid ""
4986 "The links below explain how to use L<guestfish(1)> to change the background "
4987 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4988 "be substantially different for each version of Windows."
4989 msgstr ""
4990
4991 #. type: textblock
4992 #: ../examples/guestfs-recipes.pod:37
4993 msgid ""
4994 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
4995 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4996 msgstr ""
4997
4998 #. type: =head1
4999 #: ../examples/guestfs-recipes.pod:40
5000 msgid "Cloning a virtual machine (Linux)"
5001 msgstr ""
5002
5003 #. type: textblock
5004 #: ../examples/guestfs-recipes.pod:42
5005 msgid ""
5006 "The guestfish technique described in the link below works well for most "
5007 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5008 "slightly."
5009 msgstr ""
5010
5011 #. type: textblock
5012 #: ../examples/guestfs-recipes.pod:46
5013 msgid ""
5014 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5015 "vm/#content"
5016 msgstr ""
5017
5018 #. type: textblock
5019 #: ../examples/guestfs-recipes.pod:48
5020 msgid ""
5021 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5022 "discussion."
5023 msgstr ""
5024
5025 #. type: textblock
5026 #: ../examples/guestfs-recipes.pod:51
5027 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5028 msgstr ""
5029
5030 #. type: =head1
5031 #: ../examples/guestfs-recipes.pod:53
5032 msgid "Cloning a virtual machine (Windows)"
5033 msgstr ""
5034
5035 #. type: textblock
5036 #: ../examples/guestfs-recipes.pod:55
5037 msgid ""
5038 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5039 "straightforward.  Currently there is code in the Aeolus Oz project which "
5040 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5041 "we may add sysprepping ability."
5042 msgstr ""
5043
5044 #. type: textblock
5045 #: ../examples/guestfs-recipes.pod:60
5046 msgid ""
5047 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5048 "list/2011-May/msg00019.html"
5049 msgstr ""
5050
5051 #. type: =head1
5052 #: ../examples/guestfs-recipes.pod:63
5053 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5054 msgstr ""
5055
5056 #. type: textblock
5057 #: ../examples/guestfs-recipes.pod:65
5058 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5059 msgstr ""
5060
5061 #. type: verbatim
5062 #: ../examples/guestfs-recipes.pod:67
5063 #, no-wrap
5064 msgid ""
5065 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5066 "\n"
5067 msgstr ""
5068
5069 #. type: textblock
5070 #: ../examples/guestfs-recipes.pod:69
5071 msgid "To export just a subdirectory, eg. C</files>, do:"
5072 msgstr ""
5073
5074 #. type: verbatim
5075 #: ../examples/guestfs-recipes.pod:71
5076 #, no-wrap
5077 msgid ""
5078 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5079 "\n"
5080 msgstr ""
5081
5082 #. type: =head1
5083 #: ../examples/guestfs-recipes.pod:73
5084 msgid "Create empty disk images"
5085 msgstr ""
5086
5087 #. type: textblock
5088 #: ../examples/guestfs-recipes.pod:75
5089 msgid ""
5090 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5091 "The useful guide below explains the options available."
5092 msgstr ""
5093
5094 #. type: textblock
5095 #: ../examples/guestfs-recipes.pod:78
5096 msgid ""
5097 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5098 "#content"
5099 msgstr ""
5100
5101 #. type: =head1
5102 #: ../examples/guestfs-recipes.pod:80
5103 msgid "Dump raw filesystem content from inside a disk image or VM"
5104 msgstr ""
5105
5106 #. type: textblock
5107 #: ../examples/guestfs-recipes.pod:82
5108 msgid ""
5109 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5110 "filesystem content from any filesystem in a disk image or a VM (even one "
5111 "which is encrypted or buried inside an LV):"
5112 msgstr ""
5113
5114 #. type: verbatim
5115 #: ../examples/guestfs-recipes.pod:86
5116 #, no-wrap
5117 msgid ""
5118 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5119 "\n"
5120 msgstr ""
5121
5122 #. type: verbatim
5123 #: ../examples/guestfs-recipes.pod:88
5124 #, no-wrap
5125 msgid ""
5126 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5127 "\n"
5128 msgstr ""
5129
5130 #. type: textblock
5131 #: ../examples/guestfs-recipes.pod:90
5132 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5133 msgstr ""
5134
5135 #. type: =head1
5136 #: ../examples/guestfs-recipes.pod:92
5137 msgid "Edit grub configuration in a VM"
5138 msgstr ""
5139
5140 #. type: textblock
5141 #: ../examples/guestfs-recipes.pod:94
5142 msgid "You can use this to:"
5143 msgstr ""
5144
5145 #. type: textblock
5146 #: ../examples/guestfs-recipes.pod:100
5147 msgid "Fix a virtual machine that does not boot."
5148 msgstr ""
5149
5150 #. type: textblock
5151 #: ../examples/guestfs-recipes.pod:104
5152 msgid "Change which kernel is used to boot the VM."
5153 msgstr ""
5154
5155 #. type: textblock
5156 #: ../examples/guestfs-recipes.pod:108
5157 msgid "Change kernel command line options."
5158 msgstr ""
5159
5160 #. type: textblock
5161 #: ../examples/guestfs-recipes.pod:112
5162 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5163 msgstr ""
5164
5165 #. type: verbatim
5166 #: ../examples/guestfs-recipes.pod:114
5167 #, no-wrap
5168 msgid ""
5169 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5170 "\n"
5171 msgstr ""
5172
5173 #. type: textblock
5174 #: ../examples/guestfs-recipes.pod:116
5175 msgid ""
5176 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5177 "this:"
5178 msgstr ""
5179
5180 #. type: verbatim
5181 #: ../examples/guestfs-recipes.pod:119
5182 #, no-wrap
5183 msgid ""
5184 " virt-rescue -d BrokenGuest\n"
5185 "\n"
5186 msgstr ""
5187
5188 #. type: =head1
5189 #: ../examples/guestfs-recipes.pod:121
5190 msgid "Export any directory from a VM"
5191 msgstr ""
5192
5193 #. type: textblock
5194 #: ../examples/guestfs-recipes.pod:123
5195 msgid ""
5196 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5197 msgstr ""
5198
5199 #. type: verbatim
5200 #: ../examples/guestfs-recipes.pod:126
5201 #, no-wrap
5202 msgid ""
5203 " virt-copy-out -d Guest /home .\n"
5204 "\n"
5205 msgstr ""
5206
5207 #. type: textblock
5208 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5209 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5210 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5211 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5212 #: ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685
5213 #: ../tools/virt-win-reg.pl:717
5214 msgid "Notes:"
5215 msgstr ""
5216
5217 #. type: textblock
5218 #: ../examples/guestfs-recipes.pod:134
5219 msgid ""
5220 "The final dot of the command is not a printing error.  It means we want to "
5221 "copy out to the current directory."
5222 msgstr ""
5223
5224 #. type: textblock
5225 #: ../examples/guestfs-recipes.pod:139
5226 msgid "This creates a directory called C<home> under the current directory."
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../examples/guestfs-recipes.pod:143
5231 msgid ""
5232 "If the guest is a Windows guest then you can use drive letters and "
5233 "backslashes, but you must prefix the path with C<win:> and quote it to "
5234 "protect it from the shell, like this:"
5235 msgstr ""
5236
5237 #. type: verbatim
5238 #: ../examples/guestfs-recipes.pod:147
5239 #, no-wrap
5240 msgid ""
5241 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5242 "\n"
5243 msgstr ""
5244
5245 #. type: textblock
5246 #: ../examples/guestfs-recipes.pod:149
5247 msgid "To get the output as a compressed tarball, do:"
5248 msgstr ""
5249
5250 #. type: verbatim
5251 #: ../examples/guestfs-recipes.pod:151
5252 #, no-wrap
5253 msgid ""
5254 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5255 "\n"
5256 msgstr ""
5257
5258 #. type: textblock
5259 #: ../examples/guestfs-recipes.pod:153
5260 msgid ""
5261 "Although it sounds tempting, this is usually not a reliable way to get a "
5262 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5263 "org/FAQ.html#backup"
5264 msgstr ""
5265
5266 #. type: =head1
5267 #: ../examples/guestfs-recipes.pod:157
5268 msgid "Find out which user is using the most space"
5269 msgstr ""
5270
5271 #. type: textblock
5272 #: ../examples/guestfs-recipes.pod:159
5273 msgid ""
5274 "This simple script examines a Linux guest to find out which user is using "
5275 "the most space in their home directory:"
5276 msgstr ""
5277
5278 #. type: verbatim
5279 #: ../examples/guestfs-recipes.pod:162
5280 #, no-wrap
5281 msgid ""
5282 " #!/bin/sh -\n"
5283 " \n"
5284 msgstr ""
5285
5286 #. type: verbatim
5287 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5288 #, no-wrap
5289 msgid ""
5290 " set -e\n"
5291 " \n"
5292 msgstr ""
5293
5294 #. type: verbatim
5295 #: ../examples/guestfs-recipes.pod:166
5296 #, no-wrap
5297 msgid ""
5298 " vm=\"$1\"\n"
5299 " dir=/home\n"
5300 " \n"
5301 msgstr ""
5302
5303 #. type: verbatim
5304 #: ../examples/guestfs-recipes.pod:169
5305 #, no-wrap
5306 msgid ""
5307 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5308 " \n"
5309 msgstr ""
5310
5311 #. type: verbatim
5312 #: ../examples/guestfs-recipes.pod:171
5313 #, no-wrap
5314 msgid ""
5315 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5316 "     echo -n \"$dir/$d\"\n"
5317 "     echo -ne '\\t'\n"
5318 "     guestfish --remote du \"$dir/$d\";\n"
5319 " done | sort -nr -k 2\n"
5320 " \n"
5321 msgstr ""
5322
5323 #. type: verbatim
5324 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5325 #, no-wrap
5326 msgid ""
5327 " guestfish --remote exit\n"
5328 "\n"
5329 msgstr ""
5330
5331 #. type: =head1
5332 #: ../examples/guestfs-recipes.pod:179
5333 msgid "Get DHCP address from a VM"
5334 msgstr ""
5335
5336 #. type: textblock
5337 #: ../examples/guestfs-recipes.pod:181
5338 msgid ""
5339 "The link below explains the many different possible techniques for getting "
5340 "the last assigned DHCP address of a virtual machine."
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../examples/guestfs-recipes.pod:184
5345 msgid ""
5346 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5347 "a-virtual-machine-disk-image/#content"
5348 msgstr ""
5349
5350 #. type: textblock
5351 #: ../examples/guestfs-recipes.pod:186
5352 msgid ""
5353 "In the libguestfs source examples directory you will find the latest version "
5354 "of the C<virt-dhcp-address.c> program."
5355 msgstr ""
5356
5357 #. type: =head1
5358 #: ../examples/guestfs-recipes.pod:189
5359 msgid "Get the operating system product name string"
5360 msgstr ""
5361
5362 #. type: textblock
5363 #: ../examples/guestfs-recipes.pod:191
5364 msgid "Save the following script into a file called C<product-name.sh>:"
5365 msgstr ""
5366
5367 #. type: verbatim
5368 #: ../examples/guestfs-recipes.pod:193
5369 #, no-wrap
5370 msgid ""
5371 " #!/bin/sh -\n"
5372 " set -e\n"
5373 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5374 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5375 " guestfish --remote inspect-get-product-name \"$root\"\n"
5376 " guestfish --remote exit\n"
5377 "\n"
5378 msgstr ""
5379
5380 #. type: textblock
5381 #: ../examples/guestfs-recipes.pod:200
5382 msgid "Make the script executable and run it on a named guest:"
5383 msgstr ""
5384
5385 #. type: verbatim
5386 #: ../examples/guestfs-recipes.pod:202
5387 #, no-wrap
5388 msgid ""
5389 " # product-name.sh RHEL60x64\n"
5390 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5391 "\n"
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../examples/guestfs-recipes.pod:205
5396 msgid ""
5397 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5398 "C<xpath> command line tool or from your favourite programming language:"
5399 msgstr ""
5400
5401 #. type: verbatim
5402 #: ../examples/guestfs-recipes.pod:209
5403 #, no-wrap
5404 msgid ""
5405 " # virt-inspector RHEL60x64 > xml\n"
5406 " # xpath '//product_name' < xml\n"
5407 " Found 1 nodes:\n"
5408 " -- NODE --\n"
5409 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5410 "\n"
5411 msgstr ""
5412
5413 #. type: =head1
5414 #: ../examples/guestfs-recipes.pod:215
5415 msgid "Get the default boot kernel for a Linux VM"
5416 msgstr ""
5417
5418 #. type: textblock
5419 #: ../examples/guestfs-recipes.pod:217
5420 msgid ""
5421 "The link below contains a program to print the default boot kernel for a "
5422 "Linux VM."
5423 msgstr ""
5424
5425 #. type: textblock
5426 #: ../examples/guestfs-recipes.pod:220
5427 msgid ""
5428 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5429 "kernel-for-a-vm/#content"
5430 msgstr ""
5431
5432 #. type: textblock
5433 #: ../examples/guestfs-recipes.pod:222
5434 msgid ""
5435 "It uses Augeas, and the technique is generally applicable for many different "
5436 "tasks, such as:"
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../examples/guestfs-recipes.pod:229
5441 msgid "listing the user accounts in the guest"
5442 msgstr ""
5443
5444 #. type: textblock
5445 #: ../examples/guestfs-recipes.pod:233
5446 msgid "what repositories is it configured to use"
5447 msgstr ""
5448
5449 #. type: textblock
5450 #: ../examples/guestfs-recipes.pod:237
5451 msgid "what NTP servers does it connect to"
5452 msgstr ""
5453
5454 #. type: textblock
5455 #: ../examples/guestfs-recipes.pod:241
5456 msgid "what were the boot messages last time it booted"
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../examples/guestfs-recipes.pod:245
5461 msgid "listing who was logged in recently"
5462 msgstr ""
5463
5464 #. type: textblock
5465 #: ../examples/guestfs-recipes.pod:249
5466 msgid "http://augeas.net/"
5467 msgstr ""
5468
5469 #. type: =head1
5470 #: ../examples/guestfs-recipes.pod:251
5471 msgid "Install RPMs in a guest"
5472 msgstr ""
5473
5474 #. type: textblock
5475 #: ../examples/guestfs-recipes.pod:253
5476 msgid ""
5477 "The link below contains a method to install RPMs in a guest.  In fact the "
5478 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5479 "installs them next time the guest is booted.  You could use this technique "
5480 "to install vital security updates in an offline guest."
5481 msgstr ""
5482
5483 #. type: textblock
5484 #: ../examples/guestfs-recipes.pod:259
5485 msgid ""
5486 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5487 msgstr ""
5488
5489 #. type: =head1
5490 #: ../examples/guestfs-recipes.pod:261
5491 msgid "List applications installed in a VM"
5492 msgstr ""
5493
5494 #. type: textblock
5495 #: ../examples/guestfs-recipes.pod:263
5496 msgid "Save the following to a file C<list-apps.sh>:"
5497 msgstr ""
5498
5499 #. type: verbatim
5500 #: ../examples/guestfs-recipes.pod:265
5501 #, no-wrap
5502 msgid ""
5503 " #!/bin/sh -\n"
5504 " set -e\n"
5505 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5506 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5507 " guestfish --remote inspect-list-applications \"$root\"\n"
5508 " guestfish --remote exit\n"
5509 "\n"
5510 msgstr ""
5511
5512 #. type: textblock
5513 #: ../examples/guestfs-recipes.pod:272
5514 msgid ""
5515 "Make the file executable and then you can run it on any named virtual "
5516 "machine:"
5517 msgstr ""
5518
5519 #. type: verbatim
5520 #: ../examples/guestfs-recipes.pod:275
5521 #, no-wrap
5522 msgid ""
5523 " # list-apps.sh WinGuest\n"
5524 " [0] = {\n"
5525 "   app_name: Mozilla Firefox (3.6.12)\n"
5526 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5527 "   app_epoch: 0\n"
5528 "   app_version: 3.6.12 (en-GB)\n"
5529 "   app_release:\n"
5530 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5531 "   app_trans_path:\n"
5532 "   app_publisher: Mozilla\n"
5533 "   app_url: http://www.mozilla.com/en-GB/\n"
5534 "   app_source_package:\n"
5535 "   app_summary:\n"
5536 "   app_description: Mozilla Firefox\n"
5537 " }\n"
5538 " [1] = {\n"
5539 "   app_name: VLC media player\n"
5540 "   app_display_name: VLC media player 1.1.5\n"
5541 "   app_epoch: 0\n"
5542 "   app_version: 1.1.5\n"
5543 "   app_release:\n"
5544 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5545 "   app_trans_path:\n"
5546 "   app_publisher: VideoLAN\n"
5547 "   app_url: http://www.videolan.org/\n"
5548 "   app_source_package:\n"
5549 "   app_summary:\n"
5550 "   app_description:\n"
5551 " }\n"
5552 "\n"
5553 msgstr ""
5554
5555 #. type: textblock
5556 #: ../examples/guestfs-recipes.pod:305
5557 msgid ""
5558 "If you want to run the script on disk images (instead of libvirt virtual "
5559 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5560 ">."
5561 msgstr ""
5562
5563 #. type: =head1
5564 #: ../examples/guestfs-recipes.pod:309
5565 msgid "List files and directories in a VM"
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../examples/guestfs-recipes.pod:311
5570 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5571 msgstr ""
5572
5573 #. type: verbatim
5574 #: ../examples/guestfs-recipes.pod:313
5575 #, no-wrap
5576 msgid ""
5577 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5578 "\n"
5579 msgstr ""
5580
5581 #. type: =head1
5582 #: ../examples/guestfs-recipes.pod:315
5583 msgid "List services in a Windows VM"
5584 msgstr ""
5585
5586 #. type: textblock
5587 #: ../examples/guestfs-recipes.pod:317
5588 msgid ""
5589 "The link below contains a script that can be used to list out the services "
5590 "from a Windows VM, and whether those services run at boot time or are loaded "
5591 "on demand."
5592 msgstr ""
5593
5594 #. type: textblock
5595 #: ../examples/guestfs-recipes.pod:321
5596 msgid ""
5597 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5598 "#content"
5599 msgstr ""
5600
5601 #. type: =head1
5602 #: ../examples/guestfs-recipes.pod:323
5603 msgid "Make a disk image sparse"
5604 msgstr ""
5605
5606 #. type: textblock
5607 #: ../examples/guestfs-recipes.pod:325
5608 msgid ""
5609 "The link below contains some guides for making a disk image sparse (or "
5610 "reintroducing sparseness)."
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../examples/guestfs-recipes.pod:328
5615 msgid ""
5616 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5617 msgstr ""
5618
5619 #. type: =head1
5620 #: ../examples/guestfs-recipes.pod:330
5621 msgid "Monitor disk usage over time"
5622 msgstr ""
5623
5624 #. type: textblock
5625 #: ../examples/guestfs-recipes.pod:332
5626 msgid ""
5627 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5628 "The link below contains a guide."
5629 msgstr ""
5630
5631 #. type: textblock
5632 #: ../examples/guestfs-recipes.pod:335
5633 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5634 msgstr ""
5635
5636 #. type: =head1
5637 #: ../examples/guestfs-recipes.pod:337
5638 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5639 msgstr ""
5640
5641 #. type: textblock
5642 #: ../examples/guestfs-recipes.pod:339
5643 msgid ""
5644 "L<guestfish(1)> plus the tools described in the link below can be used to "
5645 "read out the Windows Event Log from any virtual machine running Windows "
5646 "Vista or a later version."
5647 msgstr ""
5648
5649 #. type: textblock
5650 #: ../examples/guestfs-recipes.pod:343
5651 msgid ""
5652 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5653 "guestfish/#content"
5654 msgstr ""
5655
5656 #. type: =head1
5657 #: ../examples/guestfs-recipes.pod:345
5658 msgid "Remove root password (Linux)"
5659 msgstr ""
5660
5661 #. type: textblock
5662 #: ../examples/guestfs-recipes.pod:347
5663 msgid ""
5664 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5665 "files.  One use is to remove the root password from a Linux guest:"
5666 msgstr ""
5667
5668 #. type: verbatim
5669 #: ../examples/guestfs-recipes.pod:350
5670 #, no-wrap
5671 msgid ""
5672 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5673 "\n"
5674 msgstr ""
5675
5676 #. type: =head1
5677 #: ../examples/guestfs-recipes.pod:352
5678 msgid "Remove Administrator password (Windows)"
5679 msgstr ""
5680
5681 #. type: textblock
5682 #: ../examples/guestfs-recipes.pod:354
5683 msgid ""
5684 "The link below contains one technique for removing the Administrator "
5685 "password from a Windows VM, or to be more precise, it gives you a command "
5686 "prompt the next time you log in which you can use to bypass any security:"
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../examples/guestfs-recipes.pod:359
5691 msgid ""
5692 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5693 "administrator-password-with-guestfish/"
5694 msgstr ""
5695
5696 #. type: =head1
5697 #: ../examples/guestfs-recipes.pod:361
5698 msgid "Unpack a live CD"
5699 msgstr ""
5700
5701 #. type: textblock
5702 #: ../examples/guestfs-recipes.pod:363
5703 msgid ""
5704 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5705 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5706 "layers, as outlined in the guide below."
5707 msgstr ""
5708
5709 #. type: textblock
5710 #: ../examples/guestfs-recipes.pod:367
5711 msgid ""
5712 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5713 "cd/#content"
5714 msgstr ""
5715
5716 #. type: =head1
5717 #: ../examples/guestfs-recipes.pod:369
5718 msgid "Uploading and downloading files"
5719 msgstr ""
5720
5721 #. type: textblock
5722 #: ../examples/guestfs-recipes.pod:371
5723 msgid ""
5724 "The link below contains general tips on uploading (copying in)  and "
5725 "downloading (copying out) files from VMs."
5726 msgstr ""
5727
5728 #. type: textblock
5729 #: ../examples/guestfs-recipes.pod:374
5730 msgid ""
5731 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5732 msgstr ""
5733
5734 #. type: =head1
5735 #: ../examples/guestfs-recipes.pod:376
5736 msgid "Use libguestfs tools on VMware ESX guests"
5737 msgstr ""
5738
5739 #. type: textblock
5740 #: ../examples/guestfs-recipes.pod:378
5741 msgid ""
5742 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5743 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5744 msgstr ""
5745
5746 #. type: textblock
5747 #: ../examples/guestfs-recipes.pod:382
5748 msgid ""
5749 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5750 "guests/#content"
5751 msgstr ""
5752
5753 #. type: textblock
5754 #: ../examples/guestfs-recipes.pod:386
5755 msgid ""
5756 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5757 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5758 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5759 msgstr ""
5760
5761 #. type: textblock
5762 #: ../examples/guestfs-recipes.pod:403
5763 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5764 msgstr ""
5765
5766 #. type: =head2
5767 #: ../fish/guestfish-actions.pod:1
5768 msgid "add-cdrom"
5769 msgstr ""
5770
5771 #. type: verbatim
5772 #: ../fish/guestfish-actions.pod:3
5773 #, no-wrap
5774 msgid ""
5775 " add-cdrom filename\n"
5776 "\n"
5777 msgstr ""
5778
5779 #. type: textblock
5780 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5781 msgid "This function adds a virtual CD-ROM disk image to the guest."
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5786 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5787 msgstr ""
5788
5789 #. type: textblock
5790 #: ../fish/guestfish-actions.pod:15
5791 msgid ""
5792 "This call checks for the existence of C<filename>.  This stops you from "
5793 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5794 "and C<http:> URLs.  To specify those, use the general L</config> call "
5795 "instead."
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../fish/guestfish-actions.pod:22
5800 msgid ""
5801 "If you just want to add an ISO file (often you use this as an efficient way "
5802 "to transfer large files into the guest), then you should probably use L</add-"
5803 "drive-ro> instead."
5804 msgstr ""
5805
5806 #. type: textblock
5807 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
5808 #: ../fish/guestfish-actions.pod:228
5809 msgid ""
5810 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5811 "instead."
5812 msgstr ""
5813
5814 #. type: textblock
5815 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
5816 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
5817 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
5818 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
5819 #: ../fish/guestfish-actions.pod:3284 ../fish/guestfish-actions.pod:3595
5820 #: ../fish/guestfish-actions.pod:3643 ../fish/guestfish-actions.pod:4561
5821 #: ../fish/guestfish-actions.pod:4581 ../fish/guestfish-actions.pod:4600
5822 #: ../fish/guestfish-actions.pod:4638 ../fish/guestfish-actions.pod:5287
5823 #: ../fish/guestfish-actions.pod:5390 ../src/guestfs-actions.pod:10
5824 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
5825 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
5826 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
5827 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5076
5828 #: ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5698
5829 #: ../src/guestfs-actions.pod:6994 ../src/guestfs-actions.pod:7035
5830 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7126
5831 #: ../src/guestfs-actions.pod:8058 ../src/guestfs-actions.pod:8167
5832 #: ../src/guestfs-actions.pod:8347
5833 msgid ""
5834 "Deprecated functions will not be removed from the API, but the fact that "
5835 "they are deprecated indicates that there are problems with correct use of "
5836 "these functions."
5837 msgstr ""
5838
5839 #. type: =head2
5840 #: ../fish/guestfish-actions.pod:35
5841 msgid "add-domain"
5842 msgstr ""
5843
5844 #. type: =head2
5845 #: ../fish/guestfish-actions.pod:37
5846 msgid "domain"
5847 msgstr ""
5848
5849 #. type: verbatim
5850 #: ../fish/guestfish-actions.pod:39
5851 #, no-wrap
5852 msgid ""
5853 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..] [readonlydisk:..]\n"
5854 "\n"
5855 msgstr ""
5856
5857 #. type: textblock
5858 #: ../fish/guestfish-actions.pod:41
5859 msgid ""
5860 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5861 "It works by connecting to libvirt, requesting the domain and domain XML from "
5862 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5863 msgstr ""
5864
5865 #. type: textblock
5866 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5867 msgid ""
5868 "The number of disks added is returned.  This operation is atomic: if an "
5869 "error is returned, then no disks are added."
5870 msgstr ""
5871
5872 #. type: textblock
5873 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5874 msgid ""
5875 "This function does some minimal checks to make sure the libvirt domain is "
5876 "not running (unless C<readonly> is true).  In a future version we will try "
5877 "to acquire the libvirt lock on each disk."
5878 msgstr ""
5879
5880 #. type: textblock
5881 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
5882 msgid ""
5883 "Disks must be accessible locally.  This often means that adding disks from a "
5884 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5885 "unless those disks are accessible via the same device path locally too."
5886 msgstr ""
5887
5888 #. type: textblock
5889 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
5890 msgid ""
5891 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5892 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5893 "libvirt URI (or one set through an environment variable, see the libvirt "
5894 "documentation for full details)."
5895 msgstr ""
5896
5897 #. type: textblock
5898 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
5899 msgid ""
5900 "The optional C<live> flag controls whether this call will try to connect to "
5901 "a running virtual machine C<guestfsd> process if it sees a suitable "
5902 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5903 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5904 "DAEMONS> for more information."
5905 msgstr ""
5906
5907 #. type: textblock
5908 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
5909 msgid ""
5910 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5911 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5912 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5913 "as usual."
5914 msgstr ""
5915
5916 #. type: textblock
5917 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
5918 msgid ""
5919 "The optional C<readonlydisk> parameter controls what we do for disks which "
5920 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
5921 msgstr ""
5922
5923 #. type: =item
5924 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
5925 msgid "readonlydisk = \"error\""
5926 msgstr ""
5927
5928 #. type: textblock
5929 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
5930 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
5931 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
5932 msgid "If C<readonly> is false:"
5933 msgstr ""
5934
5935 #. type: textblock
5936 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
5937 msgid ""
5938 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
5939 "E<gt> flag is found."
5940 msgstr ""
5941
5942 #. type: textblock
5943 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
5944 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
5945 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
5946 msgid "If C<readonly> is true:"
5947 msgstr ""
5948
5949 #. type: textblock
5950 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
5951 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
5952 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
5953 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
5954 msgstr ""
5955
5956 #. type: =item
5957 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
5958 msgid "readonlydisk = \"read\""
5959 msgstr ""
5960
5961 #. type: textblock
5962 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
5963 msgid ""
5964 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
5965 "are added read/write."
5966 msgstr ""
5967
5968 #. type: =item
5969 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
5970 msgid "readonlydisk = \"write\" (default)"
5971 msgstr ""
5972
5973 #. type: textblock
5974 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
5975 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
5976 msgstr ""
5977
5978 #. type: =item
5979 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
5980 msgid "readonlydisk = \"ignore\""
5981 msgstr ""
5982
5983 #. type: textblock
5984 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
5985 msgid "If C<readonly> is true or false:"
5986 msgstr ""
5987
5988 #. type: textblock
5989 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
5990 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
5991 msgstr ""
5992
5993 #. type: textblock
5994 #: ../fish/guestfish-actions.pod:122
5995 msgid ""
5996 "The other optional parameters are passed directly through to L</add-drive-"
5997 "opts>."
5998 msgstr ""
5999
6000 #. type: textblock
6001 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6002 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6003 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6004 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6005 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6006 #: ../fish/guestfish-actions.pod:3333 ../fish/guestfish-actions.pod:3496
6007 #: ../fish/guestfish-actions.pod:3631
6008 msgid ""
6009 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6010 msgstr ""
6011
6012 #. type: =head2
6013 #: ../fish/guestfish-actions.pod:127
6014 msgid "add-drive"
6015 msgstr ""
6016
6017 #. type: verbatim
6018 #: ../fish/guestfish-actions.pod:129
6019 #, no-wrap
6020 msgid ""
6021 " add-drive filename\n"
6022 "\n"
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../fish/guestfish-actions.pod:131
6027 msgid ""
6028 "This function is the equivalent of calling L</add-drive-opts> with no "
6029 "optional parameters, so the disk is added writable, with the format being "
6030 "detected automatically."
6031 msgstr ""
6032
6033 #. type: textblock
6034 #: ../fish/guestfish-actions.pod:135
6035 msgid ""
6036 "Automatic detection of the format opens you up to a potential security hole "
6037 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6038 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6039 "you should think about replacing calls to this function with calls to L</add-"
6040 "drive-opts>, and specifying the format."
6041 msgstr ""
6042
6043 #. type: =head2
6044 #: ../fish/guestfish-actions.pod:142
6045 msgid "add-drive-opts"
6046 msgstr ""
6047
6048 #. type: =head2
6049 #: ../fish/guestfish-actions.pod:144
6050 msgid "add"
6051 msgstr ""
6052
6053 #. type: verbatim
6054 #: ../fish/guestfish-actions.pod:146
6055 #, no-wrap
6056 msgid ""
6057 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6058 "\n"
6059 msgstr ""
6060
6061 #. type: textblock
6062 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6063 msgid ""
6064 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6065 "The first time you call this function, the disk appears as C</dev/sda>, the "
6066 "second time as C</dev/sdb>, and so on."
6067 msgstr ""
6068
6069 #. type: textblock
6070 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6071 msgid ""
6072 "You don't necessarily need to be root when using libguestfs.  However you "
6073 "obviously do need sufficient permissions to access the filename for whatever "
6074 "operations you want to perform (ie. read access if you just want to read the "
6075 "image or write access if you want to modify the image)."
6076 msgstr ""
6077
6078 #. type: textblock
6079 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6080 msgid "This call checks that C<filename> exists."
6081 msgstr ""
6082
6083 #. type: textblock
6084 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3295
6085 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5113
6086 msgid "The optional arguments are:"
6087 msgstr ""
6088
6089 #. type: =item
6090 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6091 msgid "C<readonly>"
6092 msgstr ""
6093
6094 #. type: textblock
6095 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6096 msgid ""
6097 "If true then the image is treated as read-only.  Writes are still allowed, "
6098 "but they are stored in a temporary snapshot overlay which is discarded at "
6099 "the end.  The disk that you add is not modified."
6100 msgstr ""
6101
6102 #. type: =item
6103 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6104 msgid "C<format>"
6105 msgstr ""
6106
6107 #. type: textblock
6108 #: ../fish/guestfish-actions.pod:173
6109 msgid ""
6110 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6111 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6112 "include C<raw> and C<qcow2>."
6113 msgstr ""
6114
6115 #. type: textblock
6116 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6117 msgid ""
6118 "Automatic detection of the format opens you up to a potential security hole "
6119 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6120 "RHBZ#642934.  Specifying the format closes this security hole."
6121 msgstr ""
6122
6123 #. type: =item
6124 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6125 msgid "C<iface>"
6126 msgstr ""
6127
6128 #. type: textblock
6129 #: ../fish/guestfish-actions.pod:184
6130 msgid ""
6131 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6132 "add-drive-with-if> call (q.v.)"
6133 msgstr ""
6134
6135 #. type: =item
6136 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
6137 msgid "C<name>"
6138 msgstr ""
6139
6140 #. type: textblock
6141 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6142 msgid ""
6143 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6144 "a hint to the guest inspection process if it is available."
6145 msgstr ""
6146
6147 #. type: =head2
6148 #: ../fish/guestfish-actions.pod:196
6149 msgid "add-drive-ro"
6150 msgstr ""
6151
6152 #. type: =head2
6153 #: ../fish/guestfish-actions.pod:198
6154 msgid "add-ro"
6155 msgstr ""
6156
6157 #. type: verbatim
6158 #: ../fish/guestfish-actions.pod:200
6159 #, no-wrap
6160 msgid ""
6161 " add-drive-ro filename\n"
6162 "\n"
6163 msgstr ""
6164
6165 #. type: textblock
6166 #: ../fish/guestfish-actions.pod:202
6167 msgid ""
6168 "This function is the equivalent of calling L</add-drive-opts> with the "
6169 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6170 "is added read-only, with the format being detected automatically."
6171 msgstr ""
6172
6173 #. type: =head2
6174 #: ../fish/guestfish-actions.pod:207
6175 msgid "add-drive-ro-with-if"
6176 msgstr ""
6177
6178 #. type: verbatim
6179 #: ../fish/guestfish-actions.pod:209
6180 #, no-wrap
6181 msgid ""
6182 " add-drive-ro-with-if filename iface\n"
6183 "\n"
6184 msgstr ""
6185
6186 #. type: textblock
6187 #: ../fish/guestfish-actions.pod:211
6188 msgid ""
6189 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6190 "interface emulation to use at run time."
6191 msgstr ""
6192
6193 #. type: =head2
6194 #: ../fish/guestfish-actions.pod:221
6195 msgid "add-drive-with-if"
6196 msgstr ""
6197
6198 #. type: verbatim
6199 #: ../fish/guestfish-actions.pod:223
6200 #, no-wrap
6201 msgid ""
6202 " add-drive-with-if filename iface\n"
6203 "\n"
6204 msgstr ""
6205
6206 #. type: textblock
6207 #: ../fish/guestfish-actions.pod:225
6208 msgid ""
6209 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6210 "interface emulation to use at run time."
6211 msgstr ""
6212
6213 #. type: =head2
6214 #: ../fish/guestfish-actions.pod:235
6215 msgid "aug-clear"
6216 msgstr ""
6217
6218 #. type: verbatim
6219 #: ../fish/guestfish-actions.pod:237
6220 #, no-wrap
6221 msgid ""
6222 " aug-clear augpath\n"
6223 "\n"
6224 msgstr ""
6225
6226 #. type: textblock
6227 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6228 msgid ""
6229 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6230 "L<augtool(1)> C<clear> command."
6231 msgstr ""
6232
6233 #. type: =head2
6234 #: ../fish/guestfish-actions.pod:242
6235 msgid "aug-close"
6236 msgstr ""
6237
6238 #. type: verbatim
6239 #: ../fish/guestfish-actions.pod:244
6240 #, no-wrap
6241 msgid ""
6242 " aug-close\n"
6243 "\n"
6244 msgstr ""
6245
6246 #. type: textblock
6247 #: ../fish/guestfish-actions.pod:246
6248 msgid ""
6249 "Close the current Augeas handle and free up any resources used by it.  After "
6250 "calling this, you have to call L</aug-init> again before you can use any "
6251 "other Augeas functions."
6252 msgstr ""
6253
6254 #. type: =head2
6255 #: ../fish/guestfish-actions.pod:251
6256 msgid "aug-defnode"
6257 msgstr ""
6258
6259 #. type: verbatim
6260 #: ../fish/guestfish-actions.pod:253
6261 #, no-wrap
6262 msgid ""
6263 " aug-defnode name expr val\n"
6264 "\n"
6265 msgstr ""
6266
6267 #. type: textblock
6268 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6269 msgid ""
6270 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6271 msgstr ""
6272
6273 #. type: textblock
6274 #: ../fish/guestfish-actions.pod:258
6275 msgid ""
6276 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6277 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6278 "containing that single node."
6279 msgstr ""
6280
6281 #. type: textblock
6282 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6283 msgid ""
6284 "On success this returns a pair containing the number of nodes in the "
6285 "nodeset, and a boolean flag if a node was created."
6286 msgstr ""
6287
6288 #. type: =head2
6289 #: ../fish/guestfish-actions.pod:266
6290 msgid "aug-defvar"
6291 msgstr ""
6292
6293 #. type: verbatim
6294 #: ../fish/guestfish-actions.pod:268
6295 #, no-wrap
6296 msgid ""
6297 " aug-defvar name expr\n"
6298 "\n"
6299 msgstr ""
6300
6301 #. type: textblock
6302 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6303 msgid ""
6304 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6305 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6306 msgstr ""
6307
6308 #. type: textblock
6309 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6310 msgid ""
6311 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6312 "evaluates to something which is not a nodeset."
6313 msgstr ""
6314
6315 #. type: =head2
6316 #: ../fish/guestfish-actions.pod:277
6317 msgid "aug-get"
6318 msgstr ""
6319
6320 #. type: verbatim
6321 #: ../fish/guestfish-actions.pod:279
6322 #, no-wrap
6323 msgid ""
6324 " aug-get augpath\n"
6325 "\n"
6326 msgstr ""
6327
6328 #. type: textblock
6329 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6330 msgid ""
6331 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6332 "node, the C<value> is returned."
6333 msgstr ""
6334
6335 #. type: =head2
6336 #: ../fish/guestfish-actions.pod:284
6337 msgid "aug-init"
6338 msgstr ""
6339
6340 #. type: verbatim
6341 #: ../fish/guestfish-actions.pod:286
6342 #, no-wrap
6343 msgid ""
6344 " aug-init root flags\n"
6345 "\n"
6346 msgstr ""
6347
6348 #. type: textblock
6349 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6350 msgid ""
6351 "Create a new Augeas handle for editing configuration files.  If there was "
6352 "any previous Augeas handle associated with this guestfs session, then it is "
6353 "closed."
6354 msgstr ""
6355
6356 #. type: textblock
6357 #: ../fish/guestfish-actions.pod:292
6358 msgid "You must call this before using any other L</aug-*> commands."
6359 msgstr ""
6360
6361 #. type: textblock
6362 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6363 msgid ""
6364 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6365 msgstr ""
6366
6367 #. type: textblock
6368 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6369 msgid ""
6370 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6371 "logical I<or> of the following integers:"
6372 msgstr ""
6373
6374 #. type: =item
6375 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6376 msgid "C<AUG_SAVE_BACKUP> = 1"
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6381 msgid "Keep the original file with a C<.augsave> extension."
6382 msgstr ""
6383
6384 #. type: =item
6385 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6386 msgid "C<AUG_SAVE_NEWFILE> = 2"
6387 msgstr ""
6388
6389 #. type: textblock
6390 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6391 msgid ""
6392 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6393 "original.  Overrides C<AUG_SAVE_BACKUP>."
6394 msgstr ""
6395
6396 #. type: =item
6397 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6398 msgid "C<AUG_TYPE_CHECK> = 4"
6399 msgstr ""
6400
6401 #. type: textblock
6402 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6403 msgid "Typecheck lenses."
6404 msgstr ""
6405
6406 #. type: textblock
6407 #: ../fish/guestfish-actions.pod:317
6408 msgid ""
6409 "This option is only useful when debugging Augeas lenses.  Use of this option "
6410 "may require additional memory for the libguestfs appliance.  You may need to "
6411 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6412 msgstr ""
6413
6414 #. type: =item
6415 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6416 msgid "C<AUG_NO_STDINC> = 8"
6417 msgstr ""
6418
6419 #. type: textblock
6420 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6421 msgid "Do not use standard load path for modules."
6422 msgstr ""
6423
6424 #. type: =item
6425 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6426 msgid "C<AUG_SAVE_NOOP> = 16"
6427 msgstr ""
6428
6429 #. type: textblock
6430 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6431 msgid "Make save a no-op, just record what would have been changed."
6432 msgstr ""
6433
6434 #. type: =item
6435 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6436 msgid "C<AUG_NO_LOAD> = 32"
6437 msgstr ""
6438
6439 #. type: textblock
6440 #: ../fish/guestfish-actions.pod:332
6441 msgid "Do not load the tree in L</aug-init>."
6442 msgstr ""
6443
6444 #. type: textblock
6445 #: ../fish/guestfish-actions.pod:336
6446 msgid "To close the handle, you can call L</aug-close>."
6447 msgstr ""
6448
6449 #. type: textblock
6450 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6451 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6452 msgstr ""
6453
6454 #. type: =head2
6455 #: ../fish/guestfish-actions.pod:340
6456 msgid "aug-insert"
6457 msgstr ""
6458
6459 #. type: verbatim
6460 #: ../fish/guestfish-actions.pod:342
6461 #, no-wrap
6462 msgid ""
6463 " aug-insert augpath label true|false\n"
6464 "\n"
6465 msgstr ""
6466
6467 #. type: textblock
6468 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6469 msgid ""
6470 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6471 "or after C<path> (depending on the boolean flag C<before>)."
6472 msgstr ""
6473
6474 #. type: textblock
6475 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6476 msgid ""
6477 "C<path> must match exactly one existing node in the tree, and C<label> must "
6478 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6479 msgstr ""
6480
6481 #. type: =head2
6482 #: ../fish/guestfish-actions.pod:352
6483 msgid "aug-load"
6484 msgstr ""
6485
6486 #. type: verbatim
6487 #: ../fish/guestfish-actions.pod:354
6488 #, no-wrap
6489 msgid ""
6490 " aug-load\n"
6491 "\n"
6492 msgstr ""
6493
6494 #. type: textblock
6495 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6496 msgid "Load files into the tree."
6497 msgstr ""
6498
6499 #. type: textblock
6500 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6501 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6502 msgstr ""
6503
6504 #. type: =head2
6505 #: ../fish/guestfish-actions.pod:361
6506 msgid "aug-ls"
6507 msgstr ""
6508
6509 #. type: verbatim
6510 #: ../fish/guestfish-actions.pod:363
6511 #, no-wrap
6512 msgid ""
6513 " aug-ls augpath\n"
6514 "\n"
6515 msgstr ""
6516
6517 #. type: textblock
6518 #: ../fish/guestfish-actions.pod:365
6519 msgid ""
6520 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6521 "resulting nodes into alphabetical order."
6522 msgstr ""
6523
6524 #. type: =head2
6525 #: ../fish/guestfish-actions.pod:368
6526 msgid "aug-match"
6527 msgstr ""
6528
6529 #. type: verbatim
6530 #: ../fish/guestfish-actions.pod:370
6531 #, no-wrap
6532 msgid ""
6533 " aug-match augpath\n"
6534 "\n"
6535 msgstr ""
6536
6537 #. type: textblock
6538 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6539 msgid ""
6540 "Returns a list of paths which match the path expression C<path>.  The "
6541 "returned paths are sufficiently qualified so that they match exactly one "
6542 "node in the current tree."
6543 msgstr ""
6544
6545 #. type: =head2
6546 #: ../fish/guestfish-actions.pod:376
6547 msgid "aug-mv"
6548 msgstr ""
6549
6550 #. type: verbatim
6551 #: ../fish/guestfish-actions.pod:378
6552 #, no-wrap
6553 msgid ""
6554 " aug-mv src dest\n"
6555 "\n"
6556 msgstr ""
6557
6558 #. type: textblock
6559 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6560 msgid ""
6561 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6562 "C<dest> is overwritten if it exists."
6563 msgstr ""
6564
6565 #. type: =head2
6566 #: ../fish/guestfish-actions.pod:383
6567 msgid "aug-rm"
6568 msgstr ""
6569
6570 #. type: verbatim
6571 #: ../fish/guestfish-actions.pod:385
6572 #, no-wrap
6573 msgid ""
6574 " aug-rm augpath\n"
6575 "\n"
6576 msgstr ""
6577
6578 #. type: textblock
6579 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6580 msgid "Remove C<path> and all of its children."
6581 msgstr ""
6582
6583 #. type: textblock
6584 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6585 msgid "On success this returns the number of entries which were removed."
6586 msgstr ""
6587
6588 #. type: =head2
6589 #: ../fish/guestfish-actions.pod:391
6590 msgid "aug-save"
6591 msgstr ""
6592
6593 #. type: verbatim
6594 #: ../fish/guestfish-actions.pod:393
6595 #, no-wrap
6596 msgid ""
6597 " aug-save\n"
6598 "\n"
6599 msgstr ""
6600
6601 #. type: textblock
6602 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6603 msgid "This writes all pending changes to disk."
6604 msgstr ""
6605
6606 #. type: textblock
6607 #: ../fish/guestfish-actions.pod:397
6608 msgid ""
6609 "The flags which were passed to L</aug-init> affect exactly how files are "
6610 "saved."
6611 msgstr ""
6612
6613 #. type: =head2
6614 #: ../fish/guestfish-actions.pod:400
6615 msgid "aug-set"
6616 msgstr ""
6617
6618 #. type: verbatim
6619 #: ../fish/guestfish-actions.pod:402
6620 #, no-wrap
6621 msgid ""
6622 " aug-set augpath val\n"
6623 "\n"
6624 msgstr ""
6625
6626 #. type: textblock
6627 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6628 msgid "Set the value associated with C<path> to C<val>."
6629 msgstr ""
6630
6631 #. type: textblock
6632 #: ../fish/guestfish-actions.pod:406
6633 msgid ""
6634 "In the Augeas API, it is possible to clear a node by setting the value to "
6635 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6636 "this call.  Instead you must use the L</aug-clear> call."
6637 msgstr ""
6638
6639 #. type: =head2
6640 #: ../fish/guestfish-actions.pod:411
6641 msgid "available"
6642 msgstr ""
6643
6644 #. type: verbatim
6645 #: ../fish/guestfish-actions.pod:413
6646 #, no-wrap
6647 msgid ""
6648 " available 'groups ...'\n"
6649 "\n"
6650 msgstr ""
6651
6652 #. type: textblock
6653 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6654 msgid ""
6655 "This command is used to check the availability of some groups of "
6656 "functionality in the appliance, which not all builds of the libguestfs "
6657 "appliance will be able to provide."
6658 msgstr ""
6659
6660 #. type: textblock
6661 #: ../fish/guestfish-actions.pod:419
6662 msgid ""
6663 "The libguestfs groups, and the functions that those groups correspond to, "
6664 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6665 "runtime by calling L</available-all-groups>."
6666 msgstr ""
6667
6668 #. type: textblock
6669 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6670 msgid ""
6671 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6672 "\"]> would check for the availability of the Linux inotify functions and "
6673 "Augeas (configuration file editing) functions."
6674 msgstr ""
6675
6676 #. type: textblock
6677 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6678 msgid "The command returns no error if I<all> requested groups are available."
6679 msgstr ""
6680
6681 #. type: textblock
6682 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6683 msgid ""
6684 "It fails with an error if one or more of the requested groups is unavailable "
6685 "in the appliance."
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6690 msgid ""
6691 "If an unknown group name is included in the list of groups then an error is "
6692 "always returned."
6693 msgstr ""
6694
6695 #. type: textblock
6696 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6697 msgid "I<Notes:>"
6698 msgstr ""
6699
6700 #. type: textblock
6701 #: ../fish/guestfish-actions.pod:443
6702 msgid "You must call L</launch> before calling this function."
6703 msgstr ""
6704
6705 #. type: textblock
6706 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6707 msgid ""
6708 "The reason is because we don't know what groups are supported by the "
6709 "appliance/daemon until it is running and can be queried."
6710 msgstr ""
6711
6712 #. type: textblock
6713 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6714 msgid ""
6715 "If a group of functions is available, this does not necessarily mean that "
6716 "they will work.  You still have to check for errors when calling individual "
6717 "API functions even if they are available."
6718 msgstr ""
6719
6720 #. type: textblock
6721 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6722 msgid ""
6723 "It is usually the job of distro packagers to build complete functionality "
6724 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6725 "with all requirements satisfied, will support everything."
6726 msgstr ""
6727
6728 #. type: textblock
6729 #: ../fish/guestfish-actions.pod:465
6730 msgid ""
6731 "This call was added in version C<1.0.80>.  In previous versions of "
6732 "libguestfs all you could do would be to speculatively execute a command to "
6733 "find out if the daemon implemented it.  See also L</version>."
6734 msgstr ""
6735
6736 #. type: =head2
6737 #: ../fish/guestfish-actions.pod:472
6738 msgid "available-all-groups"
6739 msgstr ""
6740
6741 #. type: verbatim
6742 #: ../fish/guestfish-actions.pod:474
6743 #, no-wrap
6744 msgid ""
6745 " available-all-groups\n"
6746 "\n"
6747 msgstr ""
6748
6749 #. type: textblock
6750 #: ../fish/guestfish-actions.pod:476
6751 msgid ""
6752 "This command returns a list of all optional groups that this daemon knows "
6753 "about.  Note this returns both supported and unsupported groups.  To find "
6754 "out which ones the daemon can actually support you have to call L</"
6755 "available> on each member of the returned list."
6756 msgstr ""
6757
6758 #. type: textblock
6759 #: ../fish/guestfish-actions.pod:482
6760 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6761 msgstr ""
6762
6763 #. type: =head2
6764 #: ../fish/guestfish-actions.pod:484
6765 msgid "base64-in"
6766 msgstr ""
6767
6768 #. type: verbatim
6769 #: ../fish/guestfish-actions.pod:486
6770 #, no-wrap
6771 msgid ""
6772 " base64-in (base64file|-) filename\n"
6773 "\n"
6774 msgstr ""
6775
6776 #. type: textblock
6777 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6778 msgid ""
6779 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6780 msgstr ""
6781
6782 #. type: textblock
6783 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
6784 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
6785 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
6786 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
6787 #: ../fish/guestfish-actions.pod:4858 ../fish/guestfish-actions.pod:4870
6788 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4892
6789 #: ../fish/guestfish-actions.pod:4944 ../fish/guestfish-actions.pod:4953
6790 #: ../fish/guestfish-actions.pod:5007 ../fish/guestfish-actions.pod:5030
6791 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6792 msgstr ""
6793
6794 #. type: =head2
6795 #: ../fish/guestfish-actions.pod:493
6796 msgid "base64-out"
6797 msgstr ""
6798
6799 #. type: verbatim
6800 #: ../fish/guestfish-actions.pod:495
6801 #, no-wrap
6802 msgid ""
6803 " base64-out filename (base64file|-)\n"
6804 "\n"
6805 msgstr ""
6806
6807 #. type: textblock
6808 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6809 msgid ""
6810 "This command downloads the contents of C<filename>, writing it out to local "
6811 "file C<base64file> encoded as base64."
6812 msgstr ""
6813
6814 #. type: =head2
6815 #: ../fish/guestfish-actions.pod:502
6816 msgid "blockdev-flushbufs"
6817 msgstr ""
6818
6819 #. type: verbatim
6820 #: ../fish/guestfish-actions.pod:504
6821 #, no-wrap
6822 msgid ""
6823 " blockdev-flushbufs device\n"
6824 "\n"
6825 msgstr ""
6826
6827 #. type: textblock
6828 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6829 msgid ""
6830 "This tells the kernel to flush internal buffers associated with C<device>."
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
6835 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
6836 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
6837 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
6838 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
6839 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
6840 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
6841 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
6842 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
6843 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
6844 msgid "This uses the L<blockdev(8)> command."
6845 msgstr ""
6846
6847 #. type: =head2
6848 #: ../fish/guestfish-actions.pod:511
6849 msgid "blockdev-getbsz"
6850 msgstr ""
6851
6852 #. type: verbatim
6853 #: ../fish/guestfish-actions.pod:513
6854 #, no-wrap
6855 msgid ""
6856 " blockdev-getbsz device\n"
6857 "\n"
6858 msgstr ""
6859
6860 #. type: textblock
6861 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6862 msgid "This returns the block size of a device."
6863 msgstr ""
6864
6865 #. type: textblock
6866 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
6867 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6868 msgid ""
6869 "(Note this is different from both I<size in blocks> and I<filesystem block "
6870 "size>)."
6871 msgstr ""
6872
6873 #. type: =head2
6874 #: ../fish/guestfish-actions.pod:522
6875 msgid "blockdev-getro"
6876 msgstr ""
6877
6878 #. type: verbatim
6879 #: ../fish/guestfish-actions.pod:524
6880 #, no-wrap
6881 msgid ""
6882 " blockdev-getro device\n"
6883 "\n"
6884 msgstr ""
6885
6886 #. type: textblock
6887 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
6888 msgid ""
6889 "Returns a boolean indicating if the block device is read-only (true if read-"
6890 "only, false if not)."
6891 msgstr ""
6892
6893 #. type: =head2
6894 #: ../fish/guestfish-actions.pod:531
6895 msgid "blockdev-getsize64"
6896 msgstr ""
6897
6898 #. type: verbatim
6899 #: ../fish/guestfish-actions.pod:533
6900 #, no-wrap
6901 msgid ""
6902 " blockdev-getsize64 device\n"
6903 "\n"
6904 msgstr ""
6905
6906 #. type: textblock
6907 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
6908 msgid "This returns the size of the device in bytes."
6909 msgstr ""
6910
6911 #. type: textblock
6912 #: ../fish/guestfish-actions.pod:537
6913 msgid "See also L</blockdev-getsz>."
6914 msgstr ""
6915
6916 #. type: =head2
6917 #: ../fish/guestfish-actions.pod:541
6918 msgid "blockdev-getss"
6919 msgstr ""
6920
6921 #. type: verbatim
6922 #: ../fish/guestfish-actions.pod:543
6923 #, no-wrap
6924 msgid ""
6925 " blockdev-getss device\n"
6926 "\n"
6927 msgstr ""
6928
6929 #. type: textblock
6930 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
6931 msgid ""
6932 "This returns the size of sectors on a block device.  Usually 512, but can be "
6933 "larger for modern devices."
6934 msgstr ""
6935
6936 #. type: textblock
6937 #: ../fish/guestfish-actions.pod:548
6938 msgid ""
6939 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6940 msgstr ""
6941
6942 #. type: =head2
6943 #: ../fish/guestfish-actions.pod:553
6944 msgid "blockdev-getsz"
6945 msgstr ""
6946
6947 #. type: verbatim
6948 #: ../fish/guestfish-actions.pod:555
6949 #, no-wrap
6950 msgid ""
6951 " blockdev-getsz device\n"
6952 "\n"
6953 msgstr ""
6954
6955 #. type: textblock
6956 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
6957 msgid ""
6958 "This returns the size of the device in units of 512-byte sectors (even if "
6959 "the sectorsize isn't 512 bytes ... weird)."
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:560
6964 msgid ""
6965 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6966 "blockdev-getsize64> for the more useful I<size in bytes>."
6967 msgstr ""
6968
6969 #. type: =head2
6970 #: ../fish/guestfish-actions.pod:566
6971 msgid "blockdev-rereadpt"
6972 msgstr ""
6973
6974 #. type: verbatim
6975 #: ../fish/guestfish-actions.pod:568
6976 #, no-wrap
6977 msgid ""
6978 " blockdev-rereadpt device\n"
6979 "\n"
6980 msgstr ""
6981
6982 #. type: textblock
6983 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
6984 msgid "Reread the partition table on C<device>."
6985 msgstr ""
6986
6987 #. type: =head2
6988 #: ../fish/guestfish-actions.pod:574
6989 msgid "blockdev-setbsz"
6990 msgstr ""
6991
6992 #. type: verbatim
6993 #: ../fish/guestfish-actions.pod:576
6994 #, no-wrap
6995 msgid ""
6996 " blockdev-setbsz device blocksize\n"
6997 "\n"
6998 msgstr ""
6999
7000 #. type: textblock
7001 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7002 msgid "This sets the block size of a device."
7003 msgstr ""
7004
7005 #. type: =head2
7006 #: ../fish/guestfish-actions.pod:585
7007 msgid "blockdev-setro"
7008 msgstr ""
7009
7010 #. type: verbatim
7011 #: ../fish/guestfish-actions.pod:587
7012 #, no-wrap
7013 msgid ""
7014 " blockdev-setro device\n"
7015 "\n"
7016 msgstr ""
7017
7018 #. type: textblock
7019 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7020 msgid "Sets the block device named C<device> to read-only."
7021 msgstr ""
7022
7023 #. type: =head2
7024 #: ../fish/guestfish-actions.pod:593
7025 msgid "blockdev-setrw"
7026 msgstr ""
7027
7028 #. type: verbatim
7029 #: ../fish/guestfish-actions.pod:595
7030 #, no-wrap
7031 msgid ""
7032 " blockdev-setrw device\n"
7033 "\n"
7034 msgstr ""
7035
7036 #. type: textblock
7037 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7038 msgid "Sets the block device named C<device> to read-write."
7039 msgstr ""
7040
7041 #. type: =head2
7042 #: ../fish/guestfish-actions.pod:601
7043 msgid "btrfs-filesystem-resize"
7044 msgstr ""
7045
7046 #. type: verbatim
7047 #: ../fish/guestfish-actions.pod:603
7048 #, no-wrap
7049 msgid ""
7050 " btrfs-filesystem-resize mountpoint [size:..]\n"
7051 "\n"
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7056 msgid "This command resizes a btrfs filesystem."
7057 msgstr ""
7058
7059 #. type: textblock
7060 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7061 msgid ""
7062 "Note that unlike other resize calls, the filesystem has to be mounted and "
7063 "the parameter is the mountpoint not the device (this is a requirement of "
7064 "btrfs itself)."
7065 msgstr ""
7066
7067 #. type: textblock
7068 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3606
7069 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5637
7070 msgid "The optional parameters are:"
7071 msgstr ""
7072
7073 #. type: =item
7074 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3610
7075 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5641
7076 msgid "C<size>"
7077 msgstr ""
7078
7079 #. type: textblock
7080 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7081 msgid ""
7082 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7083 "resized to the maximum size."
7084 msgstr ""
7085
7086 #. type: textblock
7087 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7088 msgid "See also L<btrfs(8)>."
7089 msgstr ""
7090
7091 #. type: =head2
7092 #: ../fish/guestfish-actions.pod:626
7093 msgid "case-sensitive-path"
7094 msgstr ""
7095
7096 #. type: verbatim
7097 #: ../fish/guestfish-actions.pod:628
7098 #, no-wrap
7099 msgid ""
7100 " case-sensitive-path path\n"
7101 "\n"
7102 msgstr ""
7103
7104 #. type: textblock
7105 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7106 msgid ""
7107 "This can be used to resolve case insensitive paths on a filesystem which is "
7108 "case sensitive.  The use case is to resolve paths which you have read from "
7109 "Windows configuration files or the Windows Registry, to the true path."
7110 msgstr ""
7111
7112 #. type: textblock
7113 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7114 msgid ""
7115 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7116 "(and probably others), which is that although the underlying filesystem is "
7117 "case-insensitive, the driver exports the filesystem to Linux as case-"
7118 "sensitive."
7119 msgstr ""
7120
7121 #. type: textblock
7122 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7123 msgid ""
7124 "One consequence of this is that special directories such as C<c:\\windows> "
7125 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7126 "precise details of how they were created.  In Windows itself this would not "
7127 "be a problem."
7128 msgstr ""
7129
7130 #. type: textblock
7131 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7132 msgid ""
7133 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7134 "#posixfilenames1>"
7135 msgstr ""
7136
7137 #. type: textblock
7138 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7139 msgid ""
7140 "This function resolves the true case of each element in the path and returns "
7141 "the case-sensitive path."
7142 msgstr ""
7143
7144 #. type: textblock
7145 #: ../fish/guestfish-actions.pod:652
7146 msgid ""
7147 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7148 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7149 "the directories were originally created under Windows)."
7150 msgstr ""
7151
7152 #. type: textblock
7153 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7154 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7155 msgstr ""
7156
7157 #. type: textblock
7158 #: ../fish/guestfish-actions.pod:660
7159 msgid "See also L</realpath>."
7160 msgstr ""
7161
7162 #. type: =head2
7163 #: ../fish/guestfish-actions.pod:662
7164 msgid "cat"
7165 msgstr ""
7166
7167 #. type: verbatim
7168 #: ../fish/guestfish-actions.pod:664
7169 #, no-wrap
7170 msgid ""
7171 " cat path\n"
7172 "\n"
7173 msgstr ""
7174
7175 #. type: textblock
7176 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4037
7177 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6297
7178 msgid "Return the contents of the file named C<path>."
7179 msgstr ""
7180
7181 #. type: textblock
7182 #: ../fish/guestfish-actions.pod:668
7183 msgid ""
7184 "Note that this function cannot correctly handle binary files (specifically, "
7185 "files containing C<\\0> character which is treated as end of string).  For "
7186 "those you need to use the L</read-file> or L</download> functions which have "
7187 "a more complex interface."
7188 msgstr ""
7189
7190 #. type: textblock
7191 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7192 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7193 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7194 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7195 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7196 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7197 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7198 #: ../fish/guestfish-actions.pod:3907 ../fish/guestfish-actions.pod:3922
7199 #: ../fish/guestfish-actions.pod:3998 ../fish/guestfish-actions.pod:4015
7200 #: ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4699
7201 #: ../fish/guestfish-actions.pod:4745 ../fish/guestfish-actions.pod:4830
7202 #: ../fish/guestfish-actions.pod:4845 ../fish/guestfish-actions.pod:5251
7203 #: ../fish/guestfish-actions.pod:5263 ../fish/guestfish-actions.pod:5281
7204 #: ../fish/guestfish-actions.pod:5298 ../fish/guestfish-actions.pod:5308
7205 #: ../fish/guestfish-actions.pod:5362 ../fish/guestfish-actions.pod:5372
7206 #: ../fish/guestfish-actions.pod:5401 ../fish/guestfish-actions.pod:5411
7207 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7208 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
7209 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
7210 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
7211 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
7212 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
7213 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
7214 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6105
7215 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262
7216 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:7241
7217 #: ../src/guestfs-actions.pod:7296 ../src/guestfs-actions.pod:7442
7218 #: ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:8131
7219 #: ../src/guestfs-actions.pod:8151 ../src/guestfs-actions.pod:8184
7220 #: ../src/guestfs-actions.pod:8203 ../src/guestfs-actions.pod:8222
7221 #: ../src/guestfs-actions.pod:8313 ../src/guestfs-actions.pod:8332
7222 #: ../src/guestfs-actions.pod:8378 ../src/guestfs-actions.pod:8397
7223 msgid ""
7224 "Because of the message protocol, there is a transfer limit of somewhere "
7225 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7226 msgstr ""
7227
7228 #. type: =head2
7229 #: ../fish/guestfish-actions.pod:676
7230 msgid "checksum"
7231 msgstr ""
7232
7233 #. type: verbatim
7234 #: ../fish/guestfish-actions.pod:678
7235 #, no-wrap
7236 msgid ""
7237 " checksum csumtype path\n"
7238 "\n"
7239 msgstr ""
7240
7241 #. type: textblock
7242 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7243 msgid ""
7244 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7245 msgstr ""
7246
7247 #. type: textblock
7248 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7249 msgid ""
7250 "The type of checksum to compute is given by the C<csumtype> parameter which "
7251 "must have one of the following values:"
7252 msgstr ""
7253
7254 #. type: =item
7255 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7256 msgid "C<crc>"
7257 msgstr ""
7258
7259 #. type: textblock
7260 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7261 msgid ""
7262 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7263 "C<cksum> command."
7264 msgstr ""
7265
7266 #. type: =item
7267 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7268 msgid "C<md5>"
7269 msgstr ""
7270
7271 #. type: textblock
7272 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7273 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7274 msgstr ""
7275
7276 #. type: =item
7277 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7278 msgid "C<sha1>"
7279 msgstr ""
7280
7281 #. type: textblock
7282 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7283 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7284 msgstr ""
7285
7286 #. type: =item
7287 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7288 msgid "C<sha224>"
7289 msgstr ""
7290
7291 #. type: textblock
7292 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7293 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7294 msgstr ""
7295
7296 #. type: =item
7297 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7298 msgid "C<sha256>"
7299 msgstr ""
7300
7301 #. type: textblock
7302 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7303 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7304 msgstr ""
7305
7306 #. type: =item
7307 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7308 msgid "C<sha384>"
7309 msgstr ""
7310
7311 #. type: textblock
7312 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7313 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7314 msgstr ""
7315
7316 #. type: =item
7317 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7318 msgid "C<sha512>"
7319 msgstr ""
7320
7321 #. type: textblock
7322 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7323 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7324 msgstr ""
7325
7326 #. type: textblock
7327 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7328 msgid "The checksum is returned as a printable string."
7329 msgstr ""
7330
7331 #. type: textblock
7332 #: ../fish/guestfish-actions.pod:721
7333 msgid "To get the checksum for a device, use L</checksum-device>."
7334 msgstr ""
7335
7336 #. type: textblock
7337 #: ../fish/guestfish-actions.pod:723
7338 msgid "To get the checksums for many files, use L</checksums-out>."
7339 msgstr ""
7340
7341 #. type: =head2
7342 #: ../fish/guestfish-actions.pod:725
7343 msgid "checksum-device"
7344 msgstr ""
7345
7346 #. type: verbatim
7347 #: ../fish/guestfish-actions.pod:727
7348 #, no-wrap
7349 msgid ""
7350 " checksum-device csumtype device\n"
7351 "\n"
7352 msgstr ""
7353
7354 #. type: textblock
7355 #: ../fish/guestfish-actions.pod:729
7356 msgid ""
7357 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7358 "device named C<device>.  For the types of checksums supported see the L</"
7359 "checksum> command."
7360 msgstr ""
7361
7362 #. type: =head2
7363 #: ../fish/guestfish-actions.pod:733
7364 msgid "checksums-out"
7365 msgstr ""
7366
7367 #. type: verbatim
7368 #: ../fish/guestfish-actions.pod:735
7369 #, no-wrap
7370 msgid ""
7371 " checksums-out csumtype directory (sumsfile|-)\n"
7372 "\n"
7373 msgstr ""
7374
7375 #. type: textblock
7376 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7377 msgid ""
7378 "This command computes the checksums of all regular files in C<directory> and "
7379 "then emits a list of those checksums to the local output file C<sumsfile>."
7380 msgstr ""
7381
7382 #. type: textblock
7383 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7384 msgid ""
7385 "This can be used for verifying the integrity of a virtual machine.  However "
7386 "to be properly secure you should pay attention to the output of the checksum "
7387 "command (it uses the ones from GNU coreutils).  In particular when the "
7388 "filename is not printable, coreutils uses a special backslash syntax.  For "
7389 "more information, see the GNU coreutils info file."
7390 msgstr ""
7391
7392 #. type: =head2
7393 #: ../fish/guestfish-actions.pod:751
7394 msgid "chmod"
7395 msgstr ""
7396
7397 #. type: verbatim
7398 #: ../fish/guestfish-actions.pod:753
7399 #, no-wrap
7400 msgid ""
7401 " chmod mode path\n"
7402 "\n"
7403 msgstr ""
7404
7405 #. type: textblock
7406 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7407 msgid ""
7408 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7409 "supported."
7410 msgstr ""
7411
7412 #. type: textblock
7413 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7414 msgid ""
7415 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7416 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7417 "C<700>."
7418 msgstr ""
7419
7420 #. type: textblock
7421 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3259
7422 #: ../fish/guestfish-actions.pod:3398 ../fish/guestfish-actions.pod:3408
7423 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:1117
7424 #: ../src/guestfs-actions.pod:5044 ../src/guestfs-actions.pod:5253
7425 #: ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5291
7426 msgid "The mode actually set is affected by the umask."
7427 msgstr ""
7428
7429 #. type: =head2
7430 #: ../fish/guestfish-actions.pod:764
7431 msgid "chown"
7432 msgstr ""
7433
7434 #. type: verbatim
7435 #: ../fish/guestfish-actions.pod:766
7436 #, no-wrap
7437 msgid ""
7438 " chown owner group path\n"
7439 "\n"
7440 msgstr ""
7441
7442 #. type: textblock
7443 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7444 msgid "Change the file owner to C<owner> and group to C<group>."
7445 msgstr ""
7446
7447 #. type: textblock
7448 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
7449 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
7450 msgid ""
7451 "Only numeric uid and gid are supported.  If you want to use names, you will "
7452 "need to locate and parse the password file yourself (Augeas support makes "
7453 "this relatively easy)."
7454 msgstr ""
7455
7456 #. type: =head2
7457 #: ../fish/guestfish-actions.pod:774
7458 msgid "command"
7459 msgstr ""
7460
7461 #. type: verbatim
7462 #: ../fish/guestfish-actions.pod:776
7463 #, no-wrap
7464 msgid ""
7465 " command 'arguments ...'\n"
7466 "\n"
7467 msgstr ""
7468
7469 #. type: textblock
7470 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7471 msgid ""
7472 "This call runs a command from the guest filesystem.  The filesystem must be "
7473 "mounted, and must contain a compatible operating system (ie. something "
7474 "Linux, with the same or compatible processor architecture)."
7475 msgstr ""
7476
7477 #. type: textblock
7478 #: ../fish/guestfish-actions.pod:783
7479 msgid ""
7480 "The single parameter is an argv-style list of arguments.  The first element "
7481 "is the name of the program to run.  Subsequent elements are parameters.  The "
7482 "list must be non-empty (ie. must contain a program name).  Note that the "
7483 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7484 msgstr ""
7485
7486 #. type: textblock
7487 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7488 msgid "The return value is anything printed to I<stdout> by the command."
7489 msgstr ""
7490
7491 #. type: textblock
7492 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7493 msgid ""
7494 "If the command returns a non-zero exit status, then this function returns an "
7495 "error message.  The error message string is the content of I<stderr> from "
7496 "the command."
7497 msgstr ""
7498
7499 #. type: textblock
7500 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7501 msgid ""
7502 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7503 "bin>.  If you require a program from another location, you should provide "
7504 "the full path in the first parameter."
7505 msgstr ""
7506
7507 #. type: textblock
7508 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7509 msgid ""
7510 "Shared libraries and data files required by the program must be available on "
7511 "filesystems which are mounted in the correct places.  It is the caller's "
7512 "responsibility to ensure all filesystems that are needed are mounted at the "
7513 "right locations."
7514 msgstr ""
7515
7516 #. type: =head2
7517 #: ../fish/guestfish-actions.pod:811
7518 msgid "command-lines"
7519 msgstr ""
7520
7521 #. type: verbatim
7522 #: ../fish/guestfish-actions.pod:813
7523 #, no-wrap
7524 msgid ""
7525 " command-lines 'arguments ...'\n"
7526 "\n"
7527 msgstr ""
7528
7529 #. type: textblock
7530 #: ../fish/guestfish-actions.pod:815
7531 msgid ""
7532 "This is the same as L</command>, but splits the result into a list of lines."
7533 msgstr ""
7534
7535 #. type: textblock
7536 #: ../fish/guestfish-actions.pod:818
7537 msgid "See also: L</sh-lines>"
7538 msgstr ""
7539
7540 #. type: =head2
7541 #: ../fish/guestfish-actions.pod:823
7542 msgid "compress-device-out"
7543 msgstr ""
7544
7545 #. type: verbatim
7546 #: ../fish/guestfish-actions.pod:825
7547 #, no-wrap
7548 msgid ""
7549 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7550 "\n"
7551 msgstr ""
7552
7553 #. type: textblock
7554 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7555 msgid ""
7556 "This command compresses C<device> and writes it out to the local file "
7557 "C<zdevice>."
7558 msgstr ""
7559
7560 #. type: textblock
7561 #: ../fish/guestfish-actions.pod:830
7562 msgid ""
7563 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7564 "compress-out>."
7565 msgstr ""
7566
7567 #. type: =head2
7568 #: ../fish/guestfish-actions.pod:837
7569 msgid "compress-out"
7570 msgstr ""
7571
7572 #. type: verbatim
7573 #: ../fish/guestfish-actions.pod:839
7574 #, no-wrap
7575 msgid ""
7576 " compress-out ctype file (zfile|-) [level:..]\n"
7577 "\n"
7578 msgstr ""
7579
7580 #. type: textblock
7581 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7582 msgid ""
7583 "This command compresses C<file> and writes it out to the local file C<zfile>."
7584 msgstr ""
7585
7586 #. type: textblock
7587 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7588 msgid ""
7589 "The compression program used is controlled by the C<ctype> parameter.  "
7590 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7591 "Some compression types may not be supported by particular builds of "
7592 "libguestfs, in which case you will get an error containing the substring "
7593 "\"not supported\"."
7594 msgstr ""
7595
7596 #. type: textblock
7597 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7598 msgid ""
7599 "The optional C<level> parameter controls compression level.  The meaning and "
7600 "default for this parameter depends on the compression program being used."
7601 msgstr ""
7602
7603 #. type: =head2
7604 #: ../fish/guestfish-actions.pod:858
7605 msgid "config"
7606 msgstr ""
7607
7608 #. type: verbatim
7609 #: ../fish/guestfish-actions.pod:860
7610 #, no-wrap
7611 msgid ""
7612 " config qemuparam qemuvalue\n"
7613 "\n"
7614 msgstr ""
7615
7616 #. type: textblock
7617 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7618 msgid ""
7619 "This can be used to add arbitrary qemu command line parameters of the form "
7620 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7621 "setting some parameters which would interfere with parameters that we use."
7622 msgstr ""
7623
7624 #. type: textblock
7625 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7626 msgid "The first character of C<param> string must be a C<-> (dash)."
7627 msgstr ""
7628
7629 #. type: textblock
7630 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7631 msgid "C<value> can be NULL."
7632 msgstr ""
7633
7634 #. type: =head2
7635 #: ../fish/guestfish-actions.pod:871
7636 msgid "copy-device-to-device"
7637 msgstr ""
7638
7639 #. type: verbatim
7640 #: ../fish/guestfish-actions.pod:873
7641 #, no-wrap
7642 msgid ""
7643 " copy-device-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7644 "\n"
7645 msgstr ""
7646
7647 #. type: textblock
7648 #: ../fish/guestfish-actions.pod:875
7649 msgid ""
7650 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7651 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7652 "(device|file) to a destination (device|file)."
7653 msgstr ""
7654
7655 #. type: textblock
7656 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7657 msgid ""
7658 "Partial copies can be made since you can specify optionally the source "
7659 "offset, destination offset and size to copy.  These values are all specified "
7660 "in bytes.  If not given, the offsets both default to zero, and the size "
7661 "defaults to copying as much as possible until we hit the end of the source."
7662 msgstr ""
7663
7664 #. type: textblock
7665 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7666 msgid ""
7667 "The source and destination may be the same object.  However overlapping "
7668 "regions may not be copied correctly."
7669 msgstr ""
7670
7671 #. type: textblock
7672 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7673 msgid ""
7674 "If the destination is a file, it is created if required.  If the destination "
7675 "file is not large enough, it is extended."
7676 msgstr ""
7677
7678 #. type: =head2
7679 #: ../fish/guestfish-actions.pod:896
7680 msgid "copy-device-to-file"
7681 msgstr ""
7682
7683 #. type: verbatim
7684 #: ../fish/guestfish-actions.pod:898
7685 #, no-wrap
7686 msgid ""
7687 " copy-device-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7688 "\n"
7689 msgstr ""
7690
7691 #. type: textblock
7692 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
7693 #: ../fish/guestfish-actions.pod:918
7694 msgid "See L</copy-device-to-device> for a general overview of this call."
7695 msgstr ""
7696
7697 #. type: =head2
7698 #: ../fish/guestfish-actions.pod:905
7699 msgid "copy-file-to-device"
7700 msgstr ""
7701
7702 #. type: verbatim
7703 #: ../fish/guestfish-actions.pod:907
7704 #, no-wrap
7705 msgid ""
7706 " copy-file-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7707 "\n"
7708 msgstr ""
7709
7710 #. type: =head2
7711 #: ../fish/guestfish-actions.pod:914
7712 msgid "copy-file-to-file"
7713 msgstr ""
7714
7715 #. type: verbatim
7716 #: ../fish/guestfish-actions.pod:916
7717 #, no-wrap
7718 msgid ""
7719 " copy-file-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7720 "\n"
7721 msgstr ""
7722
7723 #. type: textblock
7724 #: ../fish/guestfish-actions.pod:921
7725 msgid ""
7726 "This is B<not> the function you want for copying files.  This is for copying "
7727 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7728 "file copying and moving functions."
7729 msgstr ""
7730
7731 #. type: =head2
7732 #: ../fish/guestfish-actions.pod:928
7733 msgid "copy-size"
7734 msgstr ""
7735
7736 #. type: verbatim
7737 #: ../fish/guestfish-actions.pod:930
7738 #, no-wrap
7739 msgid ""
7740 " copy-size src dest size\n"
7741 "\n"
7742 msgstr ""
7743
7744 #. type: textblock
7745 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
7746 msgid ""
7747 "This command copies exactly C<size> bytes from one source device or file "
7748 "C<src> to another destination device or file C<dest>."
7749 msgstr ""
7750
7751 #. type: textblock
7752 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
7753 msgid ""
7754 "Note this will fail if the source is too short or if the destination is not "
7755 "large enough."
7756 msgstr ""
7757
7758 #. type: textblock
7759 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7760 msgid ""
7761 "I<This function is deprecated.> In new code, use the L</"
7762 "copy_device_to_device> call instead."
7763 msgstr ""
7764
7765 #. type: =head2
7766 #: ../fish/guestfish-actions.pod:945
7767 msgid "cp"
7768 msgstr ""
7769
7770 #. type: verbatim
7771 #: ../fish/guestfish-actions.pod:947
7772 #, no-wrap
7773 msgid ""
7774 " cp src dest\n"
7775 "\n"
7776 msgstr ""
7777
7778 #. type: textblock
7779 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
7780 msgid ""
7781 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7782 "destination filename or destination directory."
7783 msgstr ""
7784
7785 #. type: =head2
7786 #: ../fish/guestfish-actions.pod:952
7787 msgid "cp-a"
7788 msgstr ""
7789
7790 #. type: verbatim
7791 #: ../fish/guestfish-actions.pod:954
7792 #, no-wrap
7793 msgid ""
7794 " cp-a src dest\n"
7795 "\n"
7796 msgstr ""
7797
7798 #. type: textblock
7799 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
7800 msgid ""
7801 "This copies a file or directory from C<src> to C<dest> recursively using the "
7802 "C<cp -a> command."
7803 msgstr ""
7804
7805 #. type: =head2
7806 #: ../fish/guestfish-actions.pod:959
7807 msgid "dd"
7808 msgstr ""
7809
7810 #. type: verbatim
7811 #: ../fish/guestfish-actions.pod:961
7812 #, no-wrap
7813 msgid ""
7814 " dd src dest\n"
7815 "\n"
7816 msgstr ""
7817
7818 #. type: textblock
7819 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
7820 msgid ""
7821 "This command copies from one source device or file C<src> to another "
7822 "destination device or file C<dest>.  Normally you would use this to copy to "
7823 "or from a device or partition, for example to duplicate a filesystem."
7824 msgstr ""
7825
7826 #. type: textblock
7827 #: ../fish/guestfish-actions.pod:968
7828 msgid ""
7829 "If the destination is a device, it must be as large or larger than the "
7830 "source file or device, otherwise the copy will fail.  This command cannot do "
7831 "partial copies (see L</copy-device-to-device>)."
7832 msgstr ""
7833
7834 #. type: =head2
7835 #: ../fish/guestfish-actions.pod:980
7836 msgid "df"
7837 msgstr ""
7838
7839 #. type: verbatim
7840 #: ../fish/guestfish-actions.pod:982
7841 #, no-wrap
7842 msgid ""
7843 " df\n"
7844 "\n"
7845 msgstr ""
7846
7847 #. type: textblock
7848 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
7849 msgid "This command runs the C<df> command to report disk space used."
7850 msgstr ""
7851
7852 #. type: textblock
7853 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7854 msgid ""
7855 "This command is mostly useful for interactive sessions.  It is I<not> "
7856 "intended that you try to parse the output string.  Use L</statvfs> from "
7857 "programs."
7858 msgstr ""
7859
7860 #. type: =head2
7861 #: ../fish/guestfish-actions.pod:990
7862 msgid "df-h"
7863 msgstr ""
7864
7865 #. type: verbatim
7866 #: ../fish/guestfish-actions.pod:992
7867 #, no-wrap
7868 msgid ""
7869 " df-h\n"
7870 "\n"
7871 msgstr ""
7872
7873 #. type: textblock
7874 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
7875 msgid ""
7876 "This command runs the C<df -h> command to report disk space used in human-"
7877 "readable format."
7878 msgstr ""
7879
7880 #. type: =head2
7881 #: ../fish/guestfish-actions.pod:1001
7882 msgid "dmesg"
7883 msgstr ""
7884
7885 #. type: verbatim
7886 #: ../fish/guestfish-actions.pod:1003
7887 #, no-wrap
7888 msgid ""
7889 " dmesg\n"
7890 "\n"
7891 msgstr ""
7892
7893 #. type: textblock
7894 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
7895 msgid ""
7896 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7897 "This is sometimes useful for extended debugging of problems."
7898 msgstr ""
7899
7900 #. type: textblock
7901 #: ../fish/guestfish-actions.pod:1009
7902 msgid ""
7903 "Another way to get the same information is to enable verbose messages with "
7904 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7905 "before running the program."
7906 msgstr ""
7907
7908 #. type: =head2
7909 #: ../fish/guestfish-actions.pod:1014
7910 msgid "download"
7911 msgstr ""
7912
7913 #. type: verbatim
7914 #: ../fish/guestfish-actions.pod:1016
7915 #, no-wrap
7916 msgid ""
7917 " download remotefilename (filename|-)\n"
7918 "\n"
7919 msgstr ""
7920
7921 #. type: textblock
7922 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
7923 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
7924 msgid ""
7925 "Download file C<remotefilename> and save it as C<filename> on the local "
7926 "machine."
7927 msgstr ""
7928
7929 #. type: textblock
7930 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5003
7931 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7701
7932 msgid "C<filename> can also be a named pipe."
7933 msgstr ""
7934
7935 #. type: textblock
7936 #: ../fish/guestfish-actions.pod:1023
7937 msgid "See also L</upload>, L</cat>."
7938 msgstr ""
7939
7940 #. type: =head2
7941 #: ../fish/guestfish-actions.pod:1027
7942 msgid "download-offset"
7943 msgstr ""
7944
7945 #. type: verbatim
7946 #: ../fish/guestfish-actions.pod:1029
7947 #, no-wrap
7948 msgid ""
7949 " download-offset remotefilename (filename|-) offset size\n"
7950 "\n"
7951 msgstr ""
7952
7953 #. type: textblock
7954 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
7955 msgid ""
7956 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7957 "region must be within the file or device)."
7958 msgstr ""
7959
7960 #. type: textblock
7961 #: ../fish/guestfish-actions.pod:1037
7962 msgid ""
7963 "Note that there is no limit on the amount of data that can be downloaded "
7964 "with this call, unlike with L</pread>, and this call always reads the full "
7965 "amount unless an error occurs."
7966 msgstr ""
7967
7968 #. type: textblock
7969 #: ../fish/guestfish-actions.pod:1042
7970 msgid "See also L</download>, L</pread>."
7971 msgstr ""
7972
7973 #. type: =head2
7974 #: ../fish/guestfish-actions.pod:1046
7975 msgid "drop-caches"
7976 msgstr ""
7977
7978 #. type: verbatim
7979 #: ../fish/guestfish-actions.pod:1048
7980 #, no-wrap
7981 msgid ""
7982 " drop-caches whattodrop\n"
7983 "\n"
7984 msgstr ""
7985
7986 #. type: textblock
7987 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
7988 msgid ""
7989 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7990 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7991 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7992 msgstr ""
7993
7994 #. type: textblock
7995 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
7996 msgid "Setting C<whattodrop> to 3 should drop everything."
7997 msgstr ""
7998
7999 #. type: textblock
8000 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8001 msgid ""
8002 "This automatically calls L<sync(2)> before the operation, so that the "
8003 "maximum guest memory is freed."
8004 msgstr ""
8005
8006 #. type: =head2
8007 #: ../fish/guestfish-actions.pod:1060
8008 msgid "du"
8009 msgstr ""
8010
8011 #. type: verbatim
8012 #: ../fish/guestfish-actions.pod:1062
8013 #, no-wrap
8014 msgid ""
8015 " du path\n"
8016 "\n"
8017 msgstr ""
8018
8019 #. type: textblock
8020 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8021 msgid ""
8022 "This command runs the C<du -s> command to estimate file space usage for "
8023 "C<path>."
8024 msgstr ""
8025
8026 #. type: textblock
8027 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8028 msgid ""
8029 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8030 "estimate includes the contents of the directory and all subdirectories "
8031 "(recursively)."
8032 msgstr ""
8033
8034 #. type: textblock
8035 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8036 msgid ""
8037 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8038 msgstr ""
8039
8040 #. type: =head2
8041 #: ../fish/guestfish-actions.pod:1074
8042 msgid "e2fsck-f"
8043 msgstr ""
8044
8045 #. type: verbatim
8046 #: ../fish/guestfish-actions.pod:1076
8047 #, no-wrap
8048 msgid ""
8049 " e2fsck-f device\n"
8050 "\n"
8051 msgstr ""
8052
8053 #. type: textblock
8054 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8055 msgid ""
8056 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8057 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8058 "clean (I<-f>)."
8059 msgstr ""
8060
8061 #. type: textblock
8062 #: ../fish/guestfish-actions.pod:1082
8063 msgid ""
8064 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8065 "should use L</fsck>."
8066 msgstr ""
8067
8068 #. type: =head2
8069 #: ../fish/guestfish-actions.pod:1085
8070 msgid "echo-daemon"
8071 msgstr ""
8072
8073 #. type: verbatim
8074 #: ../fish/guestfish-actions.pod:1087
8075 #, no-wrap
8076 msgid ""
8077 " echo-daemon 'words ...'\n"
8078 "\n"
8079 msgstr ""
8080
8081 #. type: textblock
8082 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8083 msgid ""
8084 "This command concatenates the list of C<words> passed with single spaces "
8085 "between them and returns the resulting string."
8086 msgstr ""
8087
8088 #. type: textblock
8089 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8090 msgid "You can use this command to test the connection through to the daemon."
8091 msgstr ""
8092
8093 #. type: textblock
8094 #: ../fish/guestfish-actions.pod:1094
8095 msgid "See also L</ping-daemon>."
8096 msgstr ""
8097
8098 #. type: =head2
8099 #: ../fish/guestfish-actions.pod:1096
8100 msgid "egrep"
8101 msgstr ""
8102
8103 #. type: verbatim
8104 #: ../fish/guestfish-actions.pod:1098
8105 #, no-wrap
8106 msgid ""
8107 " egrep regex path\n"
8108 "\n"
8109 msgstr ""
8110
8111 #. type: textblock
8112 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8113 msgid ""
8114 "This calls the external C<egrep> program and returns the matching lines."
8115 msgstr ""
8116
8117 #. type: =head2
8118 #: ../fish/guestfish-actions.pod:1106
8119 msgid "egrepi"
8120 msgstr ""
8121
8122 #. type: verbatim
8123 #: ../fish/guestfish-actions.pod:1108
8124 #, no-wrap
8125 msgid ""
8126 " egrepi regex path\n"
8127 "\n"
8128 msgstr ""
8129
8130 #. type: textblock
8131 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8132 msgid ""
8133 "This calls the external C<egrep -i> program and returns the matching lines."
8134 msgstr ""
8135
8136 #. type: =head2
8137 #: ../fish/guestfish-actions.pod:1116
8138 msgid "equal"
8139 msgstr ""
8140
8141 #. type: verbatim
8142 #: ../fish/guestfish-actions.pod:1118
8143 #, no-wrap
8144 msgid ""
8145 " equal file1 file2\n"
8146 "\n"
8147 msgstr ""
8148
8149 #. type: textblock
8150 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8151 msgid ""
8152 "This compares the two files C<file1> and C<file2> and returns true if their "
8153 "content is exactly equal, or false otherwise."
8154 msgstr ""
8155
8156 #. type: textblock
8157 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8158 msgid "The external L<cmp(1)> program is used for the comparison."
8159 msgstr ""
8160
8161 #. type: =head2
8162 #: ../fish/guestfish-actions.pod:1125
8163 msgid "exists"
8164 msgstr ""
8165
8166 #. type: verbatim
8167 #: ../fish/guestfish-actions.pod:1127
8168 #, no-wrap
8169 msgid ""
8170 " exists path\n"
8171 "\n"
8172 msgstr ""
8173
8174 #. type: textblock
8175 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8176 msgid ""
8177 "This returns C<true> if and only if there is a file, directory (or anything) "
8178 "with the given C<path> name."
8179 msgstr ""
8180
8181 #. type: textblock
8182 #: ../fish/guestfish-actions.pod:1132
8183 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8184 msgstr ""
8185
8186 #. type: =head2
8187 #: ../fish/guestfish-actions.pod:1134
8188 msgid "fallocate"
8189 msgstr ""
8190
8191 #. type: verbatim
8192 #: ../fish/guestfish-actions.pod:1136
8193 #, no-wrap
8194 msgid ""
8195 " fallocate path len\n"
8196 "\n"
8197 msgstr ""
8198
8199 #. type: textblock
8200 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8201 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8202 msgid ""
8203 "This command preallocates a file (containing zero bytes) named C<path> of "
8204 "size C<len> bytes.  If the file exists already, it is overwritten."
8205 msgstr ""
8206
8207 #. type: textblock
8208 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8209 msgid ""
8210 "Do not confuse this with the guestfish-specific C<alloc> command which "
8211 "allocates a file in the host and attaches it as a device."
8212 msgstr ""
8213
8214 #. type: textblock
8215 #: ../fish/guestfish-actions.pod:1146
8216 msgid ""
8217 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8218 "instead."
8219 msgstr ""
8220
8221 #. type: =head2
8222 #: ../fish/guestfish-actions.pod:1153
8223 msgid "fallocate64"
8224 msgstr ""
8225
8226 #. type: verbatim
8227 #: ../fish/guestfish-actions.pod:1155
8228 #, no-wrap
8229 msgid ""
8230 " fallocate64 path len\n"
8231 "\n"
8232 msgstr ""
8233
8234 #. type: textblock
8235 #: ../fish/guestfish-actions.pod:1161
8236 msgid ""
8237 "Note that this call allocates disk blocks for the file.  To create a sparse "
8238 "file use L</truncate-size> instead."
8239 msgstr ""
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:1164
8243 msgid ""
8244 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8245 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8246 "maximum size of files created through that call to 1GB."
8247 msgstr ""
8248
8249 #. type: textblock
8250 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
8251 msgid ""
8252 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8253 "commands which create a file in the host and attach it as a device."
8254 msgstr ""
8255
8256 #. type: =head2
8257 #: ../fish/guestfish-actions.pod:1173
8258 msgid "fgrep"
8259 msgstr ""
8260
8261 #. type: verbatim
8262 #: ../fish/guestfish-actions.pod:1175
8263 #, no-wrap
8264 msgid ""
8265 " fgrep pattern path\n"
8266 "\n"
8267 msgstr ""
8268
8269 #. type: textblock
8270 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
8271 msgid ""
8272 "This calls the external C<fgrep> program and returns the matching lines."
8273 msgstr ""
8274
8275 #. type: =head2
8276 #: ../fish/guestfish-actions.pod:1183
8277 msgid "fgrepi"
8278 msgstr ""
8279
8280 #. type: verbatim
8281 #: ../fish/guestfish-actions.pod:1185
8282 #, no-wrap
8283 msgid ""
8284 " fgrepi pattern path\n"
8285 "\n"
8286 msgstr ""
8287
8288 #. type: textblock
8289 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
8290 msgid ""
8291 "This calls the external C<fgrep -i> program and returns the matching lines."
8292 msgstr ""
8293
8294 #. type: =head2
8295 #: ../fish/guestfish-actions.pod:1193
8296 msgid "file"
8297 msgstr ""
8298
8299 #. type: verbatim
8300 #: ../fish/guestfish-actions.pod:1195
8301 #, no-wrap
8302 msgid ""
8303 " file path\n"
8304 "\n"
8305 msgstr ""
8306
8307 #. type: textblock
8308 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
8309 msgid ""
8310 "This call uses the standard L<file(1)> command to determine the type or "
8311 "contents of the file."
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
8316 msgid ""
8317 "This call will also transparently look inside various types of compressed "
8318 "file."
8319 msgstr ""
8320
8321 #. type: textblock
8322 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
8323 msgid ""
8324 "The exact command which runs is C<file -zb path>.  Note in particular that "
8325 "the filename is not prepended to the output (the I<-b> option)."
8326 msgstr ""
8327
8328 #. type: textblock
8329 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
8330 msgid ""
8331 "The output depends on the output of the underlying L<file(1)> command and it "
8332 "can change in future in ways beyond our control.  In other words, the output "
8333 "is not guaranteed by the ABI."
8334 msgstr ""
8335
8336 #. type: textblock
8337 #: ../fish/guestfish-actions.pod:1211
8338 msgid ""
8339 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8340 "(etc), L</is-zero>."
8341 msgstr ""
8342
8343 #. type: =head2
8344 #: ../fish/guestfish-actions.pod:1214
8345 msgid "file-architecture"
8346 msgstr ""
8347
8348 #. type: verbatim
8349 #: ../fish/guestfish-actions.pod:1216
8350 #, no-wrap
8351 msgid ""
8352 " file-architecture filename\n"
8353 "\n"
8354 msgstr ""
8355
8356 #. type: textblock
8357 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
8358 msgid ""
8359 "This detects the architecture of the binary C<filename>, and returns it if "
8360 "known."
8361 msgstr ""
8362
8363 #. type: textblock
8364 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
8365 msgid "Currently defined architectures are:"
8366 msgstr ""
8367
8368 #. type: =item
8369 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
8370 msgid "\"i386\""
8371 msgstr ""
8372
8373 #. type: textblock
8374 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
8375 msgid ""
8376 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8377 "irrespective of the precise processor requirements of the binary."
8378 msgstr ""
8379
8380 #. type: =item
8381 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
8382 msgid "\"x86_64\""
8383 msgstr ""
8384
8385 #. type: textblock
8386 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
8387 msgid "64 bit x86-64."
8388 msgstr ""
8389
8390 #. type: =item
8391 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
8392 msgid "\"sparc\""
8393 msgstr ""
8394
8395 #. type: textblock
8396 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
8397 msgid "32 bit SPARC."
8398 msgstr ""
8399
8400 #. type: =item
8401 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
8402 msgid "\"sparc64\""
8403 msgstr ""
8404
8405 #. type: textblock
8406 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
8407 msgid "64 bit SPARC V9 and above."
8408 msgstr ""
8409
8410 #. type: =item
8411 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
8412 msgid "\"ia64\""
8413 msgstr ""
8414
8415 #. type: textblock
8416 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
8417 msgid "Intel Itanium."
8418 msgstr ""
8419
8420 #. type: =item
8421 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
8422 msgid "\"ppc\""
8423 msgstr ""
8424
8425 #. type: textblock
8426 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
8427 msgid "32 bit Power PC."
8428 msgstr ""
8429
8430 #. type: =item
8431 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
8432 msgid "\"ppc64\""
8433 msgstr ""
8434
8435 #. type: textblock
8436 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
8437 msgid "64 bit Power PC."
8438 msgstr ""
8439
8440 #. type: textblock
8441 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
8442 msgid "Libguestfs may return other architecture strings in future."
8443 msgstr ""
8444
8445 #. type: textblock
8446 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
8447 msgid "The function works on at least the following types of files:"
8448 msgstr ""
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
8452 msgid "many types of Un*x and Linux binary"
8453 msgstr ""
8454
8455 #. type: textblock
8456 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
8457 msgid "many types of Un*x and Linux shared library"
8458 msgstr ""
8459
8460 #. type: textblock
8461 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
8462 msgid "Windows Win32 and Win64 binaries"
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
8467 msgid "Windows Win32 and Win64 DLLs"
8468 msgstr ""
8469
8470 #. type: textblock
8471 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
8472 msgid "Win32 binaries and DLLs return C<i386>."
8473 msgstr ""
8474
8475 #. type: textblock
8476 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
8477 msgid "Win64 binaries and DLLs return C<x86_64>."
8478 msgstr ""
8479
8480 #. type: textblock
8481 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
8482 msgid "Linux kernel modules"
8483 msgstr ""
8484
8485 #. type: textblock
8486 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
8487 msgid "Linux new-style initrd images"
8488 msgstr ""
8489
8490 #. type: textblock
8491 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
8492 msgid "some non-x86 Linux vmlinuz kernels"
8493 msgstr ""
8494
8495 #. type: textblock
8496 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
8497 msgid "What it can't do currently:"
8498 msgstr ""
8499
8500 #. type: textblock
8501 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
8502 msgid "static libraries (libfoo.a)"
8503 msgstr ""
8504
8505 #. type: textblock
8506 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
8507 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
8512 msgid "x86 Linux vmlinuz kernels"
8513 msgstr ""
8514
8515 #. type: textblock
8516 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
8517 msgid ""
8518 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8519 "compressed code, and are horribly hard to unpack.  If you want to find the "
8520 "architecture of a kernel, use the architecture of the associated initrd or "
8521 "kernel module(s) instead."
8522 msgstr ""
8523
8524 #. type: =head2
8525 #: ../fish/guestfish-actions.pod:1319
8526 msgid "filesize"
8527 msgstr ""
8528
8529 #. type: verbatim
8530 #: ../fish/guestfish-actions.pod:1321
8531 #, no-wrap
8532 msgid ""
8533 " filesize file\n"
8534 "\n"
8535 msgstr ""
8536
8537 #. type: textblock
8538 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
8539 msgid "This command returns the size of C<file> in bytes."
8540 msgstr ""
8541
8542 #. type: textblock
8543 #: ../fish/guestfish-actions.pod:1325
8544 msgid ""
8545 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8546 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8547 msgstr ""
8548
8549 #. type: =head2
8550 #: ../fish/guestfish-actions.pod:1329
8551 msgid "fill"
8552 msgstr ""
8553
8554 #. type: verbatim
8555 #: ../fish/guestfish-actions.pod:1331
8556 #, no-wrap
8557 msgid ""
8558 " fill c len path\n"
8559 "\n"
8560 msgstr ""
8561
8562 #. type: textblock
8563 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
8564 msgid ""
8565 "This command creates a new file called C<path>.  The initial content of the "
8566 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8567 "[0..255]>."
8568 msgstr ""
8569
8570 #. type: textblock
8571 #: ../fish/guestfish-actions.pod:1337
8572 msgid ""
8573 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8574 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8575 "L</fill-pattern>."
8576 msgstr ""
8577
8578 #. type: =head2
8579 #: ../fish/guestfish-actions.pod:1342
8580 msgid "fill-pattern"
8581 msgstr ""
8582
8583 #. type: verbatim
8584 #: ../fish/guestfish-actions.pod:1344
8585 #, no-wrap
8586 msgid ""
8587 " fill-pattern pattern len path\n"
8588 "\n"
8589 msgstr ""
8590
8591 #. type: textblock
8592 #: ../fish/guestfish-actions.pod:1346
8593 msgid ""
8594 "This function is like L</fill> except that it creates a new file of length "
8595 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8596 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8597 "bytes."
8598 msgstr ""
8599
8600 #. type: =head2
8601 #: ../fish/guestfish-actions.pod:1351
8602 msgid "find"
8603 msgstr ""
8604
8605 #. type: verbatim
8606 #: ../fish/guestfish-actions.pod:1353
8607 #, no-wrap
8608 msgid ""
8609 " find directory\n"
8610 "\n"
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
8615 msgid ""
8616 "This command lists out all files and directories, recursively, starting at "
8617 "C<directory>.  It is essentially equivalent to running the shell command "
8618 "C<find directory -print> but some post-processing happens on the output, "
8619 "described below."
8620 msgstr ""
8621
8622 #. type: textblock
8623 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
8624 msgid ""
8625 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8626 "structure was:"
8627 msgstr ""
8628
8629 #. type: verbatim
8630 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8631 #, no-wrap
8632 msgid ""
8633 " /tmp/a\n"
8634 " /tmp/b\n"
8635 " /tmp/c/d\n"
8636 "\n"
8637 msgstr ""
8638
8639 #. type: textblock
8640 #: ../fish/guestfish-actions.pod:1367
8641 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8642 msgstr ""
8643
8644 #. type: verbatim
8645 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
8646 #, no-wrap
8647 msgid ""
8648 " a\n"
8649 " b\n"
8650 " c\n"
8651 " c/d\n"
8652 "\n"
8653 msgstr ""
8654
8655 #. type: textblock
8656 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
8657 msgid "If C<directory> is not a directory, then this command returns an error."
8658 msgstr ""
8659
8660 #. type: textblock
8661 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
8662 msgid "The returned list is sorted."
8663 msgstr ""
8664
8665 #. type: textblock
8666 #: ../fish/guestfish-actions.pod:1380
8667 msgid "See also L</find0>."
8668 msgstr ""
8669
8670 #. type: =head2
8671 #: ../fish/guestfish-actions.pod:1385
8672 msgid "find0"
8673 msgstr ""
8674
8675 #. type: verbatim
8676 #: ../fish/guestfish-actions.pod:1387
8677 #, no-wrap
8678 msgid ""
8679 " find0 directory (files|-)\n"
8680 "\n"
8681 msgstr ""
8682
8683 #. type: textblock
8684 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
8685 msgid ""
8686 "This command lists out all files and directories, recursively, starting at "
8687 "C<directory>, placing the resulting list in the external file called "
8688 "C<files>."
8689 msgstr ""
8690
8691 #. type: textblock
8692 #: ../fish/guestfish-actions.pod:1393
8693 msgid ""
8694 "This command works the same way as L</find> with the following exceptions:"
8695 msgstr ""
8696
8697 #. type: textblock
8698 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
8699 msgid "The resulting list is written to an external file."
8700 msgstr ""
8701
8702 #. type: textblock
8703 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
8704 msgid ""
8705 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8706 "L<find(1)> option I<-print0>."
8707 msgstr ""
8708
8709 #. type: textblock
8710 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
8711 msgid "This command is not limited in the number of names that it can return."
8712 msgstr ""
8713
8714 #. type: textblock
8715 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
8716 msgid "The result list is not sorted."
8717 msgstr ""
8718
8719 #. type: =head2
8720 #: ../fish/guestfish-actions.pod:1420
8721 msgid "findfs-label"
8722 msgstr ""
8723
8724 #. type: verbatim
8725 #: ../fish/guestfish-actions.pod:1422
8726 #, no-wrap
8727 msgid ""
8728 " findfs-label label\n"
8729 "\n"
8730 msgstr ""
8731
8732 #. type: textblock
8733 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
8734 msgid ""
8735 "This command searches the filesystems and returns the one which has the "
8736 "given label.  An error is returned if no such filesystem can be found."
8737 msgstr ""
8738
8739 #. type: textblock
8740 #: ../fish/guestfish-actions.pod:1428
8741 msgid "To find the label of a filesystem, use L</vfs-label>."
8742 msgstr ""
8743
8744 #. type: =head2
8745 #: ../fish/guestfish-actions.pod:1430
8746 msgid "findfs-uuid"
8747 msgstr ""
8748
8749 #. type: verbatim
8750 #: ../fish/guestfish-actions.pod:1432
8751 #, no-wrap
8752 msgid ""
8753 " findfs-uuid uuid\n"
8754 "\n"
8755 msgstr ""
8756
8757 #. type: textblock
8758 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
8759 msgid ""
8760 "This command searches the filesystems and returns the one which has the "
8761 "given UUID.  An error is returned if no such filesystem can be found."
8762 msgstr ""
8763
8764 #. type: textblock
8765 #: ../fish/guestfish-actions.pod:1438
8766 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8767 msgstr ""
8768
8769 #. type: =head2
8770 #: ../fish/guestfish-actions.pod:1440
8771 msgid "fsck"
8772 msgstr ""
8773
8774 #. type: verbatim
8775 #: ../fish/guestfish-actions.pod:1442
8776 #, no-wrap
8777 msgid ""
8778 " fsck fstype device\n"
8779 "\n"
8780 msgstr ""
8781
8782 #. type: textblock
8783 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
8784 msgid ""
8785 "This runs the filesystem checker (fsck) on C<device> which should have "
8786 "filesystem type C<fstype>."
8787 msgstr ""
8788
8789 #. type: textblock
8790 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
8791 msgid ""
8792 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8793 "codes from C<fsck>."
8794 msgstr ""
8795
8796 #. type: textblock
8797 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
8798 msgid "Multiple status codes can be summed together."
8799 msgstr ""
8800
8801 #. type: textblock
8802 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
8803 msgid ""
8804 "A non-zero return code can mean \"success\", for example if errors have been "
8805 "corrected on the filesystem."
8806 msgstr ""
8807
8808 #. type: textblock
8809 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8810 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8811 msgstr ""
8812
8813 #. type: textblock
8814 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
8815 msgid ""
8816 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8817 msgstr ""
8818
8819 #. type: =head2
8820 #: ../fish/guestfish-actions.pod:1472
8821 msgid "get-append"
8822 msgstr ""
8823
8824 #. type: verbatim
8825 #: ../fish/guestfish-actions.pod:1474
8826 #, no-wrap
8827 msgid ""
8828 " get-append\n"
8829 "\n"
8830 msgstr ""
8831
8832 #. type: textblock
8833 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
8834 msgid ""
8835 "Return the additional kernel options which are added to the guest kernel "
8836 "command line."
8837 msgstr ""
8838
8839 #. type: textblock
8840 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
8841 msgid "If C<NULL> then no options are added."
8842 msgstr ""
8843
8844 #. type: =head2
8845 #: ../fish/guestfish-actions.pod:1481
8846 msgid "get-attach-method"
8847 msgstr ""
8848
8849 #. type: verbatim
8850 #: ../fish/guestfish-actions.pod:1483
8851 #, no-wrap
8852 msgid ""
8853 " get-attach-method\n"
8854 "\n"
8855 msgstr ""
8856
8857 #. type: textblock
8858 #: ../fish/guestfish-actions.pod:1485
8859 msgid "Return the current attach method.  See L</set-attach-method>."
8860 msgstr ""
8861
8862 #. type: =head2
8863 #: ../fish/guestfish-actions.pod:1487
8864 msgid "get-autosync"
8865 msgstr ""
8866
8867 #. type: verbatim
8868 #: ../fish/guestfish-actions.pod:1489
8869 #, no-wrap
8870 msgid ""
8871 " get-autosync\n"
8872 "\n"
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
8877 msgid "Get the autosync flag."
8878 msgstr ""
8879
8880 #. type: =head2
8881 #: ../fish/guestfish-actions.pod:1493
8882 msgid "get-direct"
8883 msgstr ""
8884
8885 #. type: verbatim
8886 #: ../fish/guestfish-actions.pod:1495
8887 #, no-wrap
8888 msgid ""
8889 " get-direct\n"
8890 "\n"
8891 msgstr ""
8892
8893 #. type: textblock
8894 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
8895 msgid "Return the direct appliance mode flag."
8896 msgstr ""
8897
8898 #. type: =head2
8899 #: ../fish/guestfish-actions.pod:1499
8900 msgid "get-e2label"
8901 msgstr ""
8902
8903 #. type: verbatim
8904 #: ../fish/guestfish-actions.pod:1501
8905 #, no-wrap
8906 msgid ""
8907 " get-e2label device\n"
8908 "\n"
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
8913 msgid ""
8914 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8915 msgstr ""
8916
8917 #. type: textblock
8918 #: ../fish/guestfish-actions.pod:1506
8919 msgid ""
8920 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8921 "instead."
8922 msgstr ""
8923
8924 #. type: =head2
8925 #: ../fish/guestfish-actions.pod:1513
8926 msgid "get-e2uuid"
8927 msgstr ""
8928
8929 #. type: verbatim
8930 #: ../fish/guestfish-actions.pod:1515
8931 #, no-wrap
8932 msgid ""
8933 " get-e2uuid device\n"
8934 "\n"
8935 msgstr ""
8936
8937 #. type: textblock
8938 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
8939 msgid ""
8940 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8941 msgstr ""
8942
8943 #. type: textblock
8944 #: ../fish/guestfish-actions.pod:1520
8945 msgid ""
8946 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8947 "instead."
8948 msgstr ""
8949
8950 #. type: =head2
8951 #: ../fish/guestfish-actions.pod:1527
8952 msgid "get-memsize"
8953 msgstr ""
8954
8955 #. type: verbatim
8956 #: ../fish/guestfish-actions.pod:1529
8957 #, no-wrap
8958 msgid ""
8959 " get-memsize\n"
8960 "\n"
8961 msgstr ""
8962
8963 #. type: textblock
8964 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
8965 msgid ""
8966 "This gets the memory size in megabytes allocated to the qemu subprocess."
8967 msgstr ""
8968
8969 #. type: textblock
8970 #: ../fish/guestfish-actions.pod:1534
8971 msgid ""
8972 "If L</set-memsize> was not called on this handle, and if "
8973 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8974 "value for memsize."
8975 msgstr ""
8976
8977 #. type: textblock
8978 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
8979 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4462
8980 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
8981 #: ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6881
8982 msgid ""
8983 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8984 msgstr ""
8985
8986 #. type: =head2
8987 #: ../fish/guestfish-actions.pod:1541
8988 msgid "get-network"
8989 msgstr ""
8990
8991 #. type: verbatim
8992 #: ../fish/guestfish-actions.pod:1543
8993 #, no-wrap
8994 msgid ""
8995 " get-network\n"
8996 "\n"
8997 msgstr ""
8998
8999 #. type: textblock
9000 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9001 msgid "This returns the enable network flag."
9002 msgstr ""
9003
9004 #. type: =head2
9005 #: ../fish/guestfish-actions.pod:1547
9006 msgid "get-path"
9007 msgstr ""
9008
9009 #. type: verbatim
9010 #: ../fish/guestfish-actions.pod:1549
9011 #, no-wrap
9012 msgid ""
9013 " get-path\n"
9014 "\n"
9015 msgstr ""
9016
9017 #. type: textblock
9018 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9019 msgid "Return the current search path."
9020 msgstr ""
9021
9022 #. type: textblock
9023 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9024 msgid ""
9025 "This is always non-NULL.  If it wasn't set already, then this will return "
9026 "the default path."
9027 msgstr ""
9028
9029 #. type: =head2
9030 #: ../fish/guestfish-actions.pod:1556
9031 msgid "get-pgroup"
9032 msgstr ""
9033
9034 #. type: verbatim
9035 #: ../fish/guestfish-actions.pod:1558
9036 #, no-wrap
9037 msgid ""
9038 " get-pgroup\n"
9039 "\n"
9040 msgstr ""
9041
9042 #. type: textblock
9043 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9044 msgid "This returns the process group flag."
9045 msgstr ""
9046
9047 #. type: =head2
9048 #: ../fish/guestfish-actions.pod:1562
9049 msgid "get-pid"
9050 msgstr ""
9051
9052 #. type: =head2
9053 #: ../fish/guestfish-actions.pod:1564
9054 msgid "pid"
9055 msgstr ""
9056
9057 #. type: verbatim
9058 #: ../fish/guestfish-actions.pod:1566
9059 #, no-wrap
9060 msgid ""
9061 " get-pid\n"
9062 "\n"
9063 msgstr ""
9064
9065 #. type: textblock
9066 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9067 msgid ""
9068 "Return the process ID of the qemu subprocess.  If there is no qemu "
9069 "subprocess, then this will return an error."
9070 msgstr ""
9071
9072 #. type: textblock
9073 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9074 msgid "This is an internal call used for debugging and testing."
9075 msgstr ""
9076
9077 #. type: =head2
9078 #: ../fish/guestfish-actions.pod:1573
9079 msgid "get-qemu"
9080 msgstr ""
9081
9082 #. type: verbatim
9083 #: ../fish/guestfish-actions.pod:1575
9084 #, no-wrap
9085 msgid ""
9086 " get-qemu\n"
9087 "\n"
9088 msgstr ""
9089
9090 #. type: textblock
9091 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9092 msgid "Return the current qemu binary."
9093 msgstr ""
9094
9095 #. type: textblock
9096 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9097 msgid ""
9098 "This is always non-NULL.  If it wasn't set already, then this will return "
9099 "the default qemu binary name."
9100 msgstr ""
9101
9102 #. type: =head2
9103 #: ../fish/guestfish-actions.pod:1582
9104 msgid "get-recovery-proc"
9105 msgstr ""
9106
9107 #. type: verbatim
9108 #: ../fish/guestfish-actions.pod:1584
9109 #, no-wrap
9110 msgid ""
9111 " get-recovery-proc\n"
9112 "\n"
9113 msgstr ""
9114
9115 #. type: textblock
9116 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9117 msgid "Return the recovery process enabled flag."
9118 msgstr ""
9119
9120 #. type: =head2
9121 #: ../fish/guestfish-actions.pod:1588
9122 msgid "get-selinux"
9123 msgstr ""
9124
9125 #. type: verbatim
9126 #: ../fish/guestfish-actions.pod:1590
9127 #, no-wrap
9128 msgid ""
9129 " get-selinux\n"
9130 "\n"
9131 msgstr ""
9132
9133 #. type: textblock
9134 #: ../fish/guestfish-actions.pod:1592
9135 msgid ""
9136 "This returns the current setting of the selinux flag which is passed to the "
9137 "appliance at boot time.  See L</set-selinux>."
9138 msgstr ""
9139
9140 #. type: =head2
9141 #: ../fish/guestfish-actions.pod:1598
9142 msgid "get-smp"
9143 msgstr ""
9144
9145 #. type: verbatim
9146 #: ../fish/guestfish-actions.pod:1600
9147 #, no-wrap
9148 msgid ""
9149 " get-smp\n"
9150 "\n"
9151 msgstr ""
9152
9153 #. type: textblock
9154 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9155 msgid "This returns the number of virtual CPUs assigned to the appliance."
9156 msgstr ""
9157
9158 #. type: =head2
9159 #: ../fish/guestfish-actions.pod:1604
9160 msgid "get-state"
9161 msgstr ""
9162
9163 #. type: verbatim
9164 #: ../fish/guestfish-actions.pod:1606
9165 #, no-wrap
9166 msgid ""
9167 " get-state\n"
9168 "\n"
9169 msgstr ""
9170
9171 #. type: textblock
9172 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9173 msgid ""
9174 "This returns the current state as an opaque integer.  This is only useful "
9175 "for printing debug and internal error messages."
9176 msgstr ""
9177
9178 #. type: textblock
9179 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9180 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9181 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582
9182 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930
9183 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
9184 msgid "For more information on states, see L<guestfs(3)>."
9185 msgstr ""
9186
9187 #. type: =head2
9188 #: ../fish/guestfish-actions.pod:1613
9189 msgid "get-trace"
9190 msgstr ""
9191
9192 #. type: verbatim
9193 #: ../fish/guestfish-actions.pod:1615
9194 #, no-wrap
9195 msgid ""
9196 " get-trace\n"
9197 "\n"
9198 msgstr ""
9199
9200 #. type: textblock
9201 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9202 msgid "Return the command trace flag."
9203 msgstr ""
9204
9205 #. type: =head2
9206 #: ../fish/guestfish-actions.pod:1619
9207 msgid "get-umask"
9208 msgstr ""
9209
9210 #. type: verbatim
9211 #: ../fish/guestfish-actions.pod:1621
9212 #, no-wrap
9213 msgid ""
9214 " get-umask\n"
9215 "\n"
9216 msgstr ""
9217
9218 #. type: textblock
9219 #: ../fish/guestfish-actions.pod:1623
9220 msgid ""
9221 "Return the current umask.  By default the umask is C<022> unless it has been "
9222 "set by calling L</umask>."
9223 msgstr ""
9224
9225 #. type: =head2
9226 #: ../fish/guestfish-actions.pod:1626
9227 msgid "get-verbose"
9228 msgstr ""
9229
9230 #. type: verbatim
9231 #: ../fish/guestfish-actions.pod:1628
9232 #, no-wrap
9233 msgid ""
9234 " get-verbose\n"
9235 "\n"
9236 msgstr ""
9237
9238 #. type: textblock
9239 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
9240 msgid "This returns the verbose messages flag."
9241 msgstr ""
9242
9243 #. type: =head2
9244 #: ../fish/guestfish-actions.pod:1632
9245 msgid "getcon"
9246 msgstr ""
9247
9248 #. type: verbatim
9249 #: ../fish/guestfish-actions.pod:1634
9250 #, no-wrap
9251 msgid ""
9252 " getcon\n"
9253 "\n"
9254 msgstr ""
9255
9256 #. type: textblock
9257 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
9258 msgid "This gets the SELinux security context of the daemon."
9259 msgstr ""
9260
9261 #. type: textblock
9262 #: ../fish/guestfish-actions.pod:1638
9263 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9264 msgstr ""
9265
9266 #. type: =head2
9267 #: ../fish/guestfish-actions.pod:1641
9268 msgid "getxattr"
9269 msgstr ""
9270
9271 #. type: verbatim
9272 #: ../fish/guestfish-actions.pod:1643
9273 #, no-wrap
9274 msgid ""
9275 " getxattr path name\n"
9276 "\n"
9277 msgstr ""
9278
9279 #. type: textblock
9280 #: ../fish/guestfish-actions.pod:1645
9281 msgid ""
9282 "Get a single extended attribute from file C<path> named C<name>.  This call "
9283 "follows symlinks.  If you want to lookup an extended attribute for the "
9284 "symlink itself, use L</lgetxattr>."
9285 msgstr ""
9286
9287 #. type: textblock
9288 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9289 msgid ""
9290 "Normally it is better to get all extended attributes from a file in one go "
9291 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9292 "buggy and do not provide a way to list out attributes.  For these "
9293 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9294 "attributes you want in advance and call this function."
9295 msgstr ""
9296
9297 #. type: textblock
9298 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
9299 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
9300 msgid ""
9301 "Extended attribute values are blobs of binary data.  If there is no extended "
9302 "attribute named C<name>, this returns an error."
9303 msgstr ""
9304
9305 #. type: textblock
9306 #: ../fish/guestfish-actions.pod:1659
9307 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9308 msgstr ""
9309
9310 #. type: =head2
9311 #: ../fish/guestfish-actions.pod:1661
9312 msgid "getxattrs"
9313 msgstr ""
9314
9315 #. type: verbatim
9316 #: ../fish/guestfish-actions.pod:1663
9317 #, no-wrap
9318 msgid ""
9319 " getxattrs path\n"
9320 "\n"
9321 msgstr ""
9322
9323 #. type: textblock
9324 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
9325 msgid ""
9326 "This call lists the extended attributes of the file or directory C<path>."
9327 msgstr ""
9328
9329 #. type: textblock
9330 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
9331 msgid ""
9332 "At the system call level, this is a combination of the L<listxattr(2)> and "
9333 "L<getxattr(2)> calls."
9334 msgstr ""
9335
9336 #. type: textblock
9337 #: ../fish/guestfish-actions.pod:1671
9338 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9339 msgstr ""
9340
9341 #. type: =head2
9342 #: ../fish/guestfish-actions.pod:1673
9343 msgid "glob-expand"
9344 msgstr ""
9345
9346 #. type: verbatim
9347 #: ../fish/guestfish-actions.pod:1675
9348 #, no-wrap
9349 msgid ""
9350 " glob-expand pattern\n"
9351 "\n"
9352 msgstr ""
9353
9354 #. type: textblock
9355 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
9356 msgid ""
9357 "This command searches for all the pathnames matching C<pattern> according to "
9358 "the wildcard expansion rules used by the shell."
9359 msgstr ""
9360
9361 #. type: textblock
9362 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
9363 msgid ""
9364 "If no paths match, then this returns an empty list (note: not an error)."
9365 msgstr ""
9366
9367 #. type: textblock
9368 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
9369 msgid ""
9370 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9371 "GLOB_BRACE>.  See that manual page for more details."
9372 msgstr ""
9373
9374 #. type: =head2
9375 #: ../fish/guestfish-actions.pod:1688
9376 msgid "grep"
9377 msgstr ""
9378
9379 #. type: verbatim
9380 #: ../fish/guestfish-actions.pod:1690
9381 #, no-wrap
9382 msgid ""
9383 " grep regex path\n"
9384 "\n"
9385 msgstr ""
9386
9387 #. type: textblock
9388 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
9389 msgid "This calls the external C<grep> program and returns the matching lines."
9390 msgstr ""
9391
9392 #. type: =head2
9393 #: ../fish/guestfish-actions.pod:1698
9394 msgid "grepi"
9395 msgstr ""
9396
9397 #. type: verbatim
9398 #: ../fish/guestfish-actions.pod:1700
9399 #, no-wrap
9400 msgid ""
9401 " grepi regex path\n"
9402 "\n"
9403 msgstr ""
9404
9405 #. type: textblock
9406 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
9407 msgid ""
9408 "This calls the external C<grep -i> program and returns the matching lines."
9409 msgstr ""
9410
9411 #. type: =head2
9412 #: ../fish/guestfish-actions.pod:1708
9413 msgid "grub-install"
9414 msgstr ""
9415
9416 #. type: verbatim
9417 #: ../fish/guestfish-actions.pod:1710
9418 #, no-wrap
9419 msgid ""
9420 " grub-install root device\n"
9421 "\n"
9422 msgstr ""
9423
9424 #. type: textblock
9425 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
9426 msgid ""
9427 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9428 "with the root directory being C<root>."
9429 msgstr ""
9430
9431 #. type: textblock
9432 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
9433 msgid ""
9434 "There is currently no way in the API to install grub2, which is used by most "
9435 "modern Linux guests.  It is possible to run the grub2 command from the "
9436 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9437 msgstr ""
9438
9439 #. type: textblock
9440 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
9441 msgid ""
9442 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9443 "compatible with itself, so this only works in rather narrow circumstances.  "
9444 "Careful testing with each guest version is advisable."
9445 msgstr ""
9446
9447 #. type: textblock
9448 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
9449 msgid ""
9450 "If grub-install reports the error \"No suitable drive was found in the "
9451 "generated device map.\" it may be that you need to create a C</boot/grub/"
9452 "device.map> file first that contains the mapping between grub device names "
9453 "and Linux device names.  It is usually sufficient to create a file "
9454 "containing:"
9455 msgstr ""
9456
9457 #. type: verbatim
9458 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
9459 #, no-wrap
9460 msgid ""
9461 " (hd0) /dev/vda\n"
9462 "\n"
9463 msgstr ""
9464
9465 #. type: textblock
9466 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
9467 msgid "replacing C</dev/vda> with the name of the installation device."
9468 msgstr ""
9469
9470 #. type: =head2
9471 #: ../fish/guestfish-actions.pod:1748
9472 msgid "head"
9473 msgstr ""
9474
9475 #. type: verbatim
9476 #: ../fish/guestfish-actions.pod:1750
9477 #, no-wrap
9478 msgid ""
9479 " head path\n"
9480 "\n"
9481 msgstr ""
9482
9483 #. type: textblock
9484 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
9485 msgid ""
9486 "This command returns up to the first 10 lines of a file as a list of strings."
9487 msgstr ""
9488
9489 #. type: =head2
9490 #: ../fish/guestfish-actions.pod:1758
9491 msgid "head-n"
9492 msgstr ""
9493
9494 #. type: verbatim
9495 #: ../fish/guestfish-actions.pod:1760
9496 #, no-wrap
9497 msgid ""
9498 " head-n nrlines path\n"
9499 "\n"
9500 msgstr ""
9501
9502 #. type: textblock
9503 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
9504 msgid ""
9505 "If the parameter C<nrlines> is a positive number, this returns the first "
9506 "C<nrlines> lines of the file C<path>."
9507 msgstr ""
9508
9509 #. type: textblock
9510 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
9511 msgid ""
9512 "If the parameter C<nrlines> is a negative number, this returns lines from "
9513 "the file C<path>, excluding the last C<nrlines> lines."
9514 msgstr ""
9515
9516 #. type: textblock
9517 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4843
9518 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7460
9519 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9520 msgstr ""
9521
9522 #. type: =head2
9523 #: ../fish/guestfish-actions.pod:1773
9524 msgid "hexdump"
9525 msgstr ""
9526
9527 #. type: verbatim
9528 #: ../fish/guestfish-actions.pod:1775
9529 #, no-wrap
9530 msgid ""
9531 " hexdump path\n"
9532 "\n"
9533 msgstr ""
9534
9535 #. type: textblock
9536 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
9537 msgid ""
9538 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9539 "readable, canonical hex dump of the file."
9540 msgstr ""
9541
9542 #. type: =head2
9543 #: ../fish/guestfish-actions.pod:1783
9544 msgid "initrd-cat"
9545 msgstr ""
9546
9547 #. type: verbatim
9548 #: ../fish/guestfish-actions.pod:1785
9549 #, no-wrap
9550 msgid ""
9551 " initrd-cat initrdpath filename\n"
9552 "\n"
9553 msgstr ""
9554
9555 #. type: textblock
9556 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
9557 msgid ""
9558 "This command unpacks the file C<filename> from the initrd file called "
9559 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9560 "character."
9561 msgstr ""
9562
9563 #. type: textblock
9564 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
9565 msgid ""
9566 "For example, in guestfish you could use the following command to examine the "
9567 "boot script (usually called C</init>)  contained in a Linux initrd or "
9568 "initramfs image:"
9569 msgstr ""
9570
9571 #. type: verbatim
9572 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
9573 #, no-wrap
9574 msgid ""
9575 " initrd-cat /boot/initrd-<version>.img init\n"
9576 "\n"
9577 msgstr ""
9578
9579 #. type: textblock
9580 #: ../fish/guestfish-actions.pod:1797
9581 msgid "See also L</initrd-list>."
9582 msgstr ""
9583
9584 #. type: =head2
9585 #: ../fish/guestfish-actions.pod:1802
9586 msgid "initrd-list"
9587 msgstr ""
9588
9589 #. type: verbatim
9590 #: ../fish/guestfish-actions.pod:1804
9591 #, no-wrap
9592 msgid ""
9593 " initrd-list path\n"
9594 "\n"
9595 msgstr ""
9596
9597 #. type: textblock
9598 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
9599 msgid "This command lists out files contained in an initrd."
9600 msgstr ""
9601
9602 #. type: textblock
9603 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
9604 msgid ""
9605 "The files are listed without any initial C</> character.  The files are "
9606 "listed in the order they appear (not necessarily alphabetical).  Directory "
9607 "names are listed as separate items."
9608 msgstr ""
9609
9610 #. type: textblock
9611 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
9612 msgid ""
9613 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9614 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9615 "files)."
9616 msgstr ""
9617
9618 #. type: =head2
9619 #: ../fish/guestfish-actions.pod:1816
9620 msgid "inotify-add-watch"
9621 msgstr ""
9622
9623 #. type: verbatim
9624 #: ../fish/guestfish-actions.pod:1818
9625 #, no-wrap
9626 msgid ""
9627 " inotify-add-watch path mask\n"
9628 "\n"
9629 msgstr ""
9630
9631 #. type: textblock
9632 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
9633 msgid "Watch C<path> for the events listed in C<mask>."
9634 msgstr ""
9635
9636 #. type: textblock
9637 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
9638 msgid ""
9639 "Note that if C<path> is a directory then events within that directory are "
9640 "watched, but this does I<not> happen recursively (in subdirectories)."
9641 msgstr ""
9642
9643 #. type: textblock
9644 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
9645 msgid ""
9646 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9647 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9648 msgstr ""
9649
9650 #. type: =head2
9651 #: ../fish/guestfish-actions.pod:1830
9652 msgid "inotify-close"
9653 msgstr ""
9654
9655 #. type: verbatim
9656 #: ../fish/guestfish-actions.pod:1832
9657 #, no-wrap
9658 msgid ""
9659 " inotify-close\n"
9660 "\n"
9661 msgstr ""
9662
9663 #. type: textblock
9664 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
9665 msgid ""
9666 "This closes the inotify handle which was previously opened by inotify_init.  "
9667 "It removes all watches, throws away any pending events, and deallocates all "
9668 "resources."
9669 msgstr ""
9670
9671 #. type: =head2
9672 #: ../fish/guestfish-actions.pod:1838
9673 msgid "inotify-files"
9674 msgstr ""
9675
9676 #. type: verbatim
9677 #: ../fish/guestfish-actions.pod:1840
9678 #, no-wrap
9679 msgid ""
9680 " inotify-files\n"
9681 "\n"
9682 msgstr ""
9683
9684 #. type: textblock
9685 #: ../fish/guestfish-actions.pod:1842
9686 msgid ""
9687 "This function is a helpful wrapper around L</inotify-read> which just "
9688 "returns a list of pathnames of objects that were touched.  The returned "
9689 "pathnames are sorted and deduplicated."
9690 msgstr ""
9691
9692 #. type: =head2
9693 #: ../fish/guestfish-actions.pod:1846
9694 msgid "inotify-init"
9695 msgstr ""
9696
9697 #. type: verbatim
9698 #: ../fish/guestfish-actions.pod:1848
9699 #, no-wrap
9700 msgid ""
9701 " inotify-init maxevents\n"
9702 "\n"
9703 msgstr ""
9704
9705 #. type: textblock
9706 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
9707 msgid ""
9708 "This command creates a new inotify handle.  The inotify subsystem can be "
9709 "used to notify events which happen to objects in the guest filesystem."
9710 msgstr ""
9711
9712 #. type: textblock
9713 #: ../fish/guestfish-actions.pod:1854
9714 msgid ""
9715 "C<maxevents> is the maximum number of events which will be queued up between "
9716 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9717 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9718 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9719 "but records the fact that it threw them away by setting a flag "
9720 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9721 msgstr ""
9722
9723 #. type: textblock
9724 #: ../fish/guestfish-actions.pod:1864
9725 msgid ""
9726 "Before any events are generated, you have to add some watches to the "
9727 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9728 "L</inotify-watch-all>."
9729 msgstr ""
9730
9731 #. type: textblock
9732 #: ../fish/guestfish-actions.pod:1870
9733 msgid ""
9734 "Queued up events should be read periodically by calling L</inotify-read> (or "
9735 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9736 "If you don't read the events out often enough then you risk the internal "
9737 "queue overflowing."
9738 msgstr ""
9739
9740 #. type: textblock
9741 #: ../fish/guestfish-actions.pod:1877
9742 msgid ""
9743 "The handle should be closed after use by calling L</inotify-close>.  This "
9744 "also removes any watches automatically."
9745 msgstr ""
9746
9747 #. type: textblock
9748 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
9749 msgid ""
9750 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9751 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9752 "that there is one global inotify handle per libguestfs instance."
9753 msgstr ""
9754
9755 #. type: =head2
9756 #: ../fish/guestfish-actions.pod:1886
9757 msgid "inotify-read"
9758 msgstr ""
9759
9760 #. type: verbatim
9761 #: ../fish/guestfish-actions.pod:1888
9762 #, no-wrap
9763 msgid ""
9764 " inotify-read\n"
9765 "\n"
9766 msgstr ""
9767
9768 #. type: textblock
9769 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
9770 msgid ""
9771 "Return the complete queue of events that have happened since the previous "
9772 "read call."
9773 msgstr ""
9774
9775 #. type: textblock
9776 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
9777 msgid "If no events have happened, this returns an empty list."
9778 msgstr ""
9779
9780 #. type: textblock
9781 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
9782 msgid ""
9783 "I<Note>: In order to make sure that all events have been read, you must call "
9784 "this function repeatedly until it returns an empty list.  The reason is that "
9785 "the call will read events up to the maximum appliance-to-host message size "
9786 "and leave remaining events in the queue."
9787 msgstr ""
9788
9789 #. type: =head2
9790 #: ../fish/guestfish-actions.pod:1901
9791 msgid "inotify-rm-watch"
9792 msgstr ""
9793
9794 #. type: verbatim
9795 #: ../fish/guestfish-actions.pod:1903
9796 #, no-wrap
9797 msgid ""
9798 " inotify-rm-watch wd\n"
9799 "\n"
9800 msgstr ""
9801
9802 #. type: textblock
9803 #: ../fish/guestfish-actions.pod:1905
9804 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9805 msgstr ""
9806
9807 #. type: =head2
9808 #: ../fish/guestfish-actions.pod:1908
9809 msgid "inspect-get-arch"
9810 msgstr ""
9811
9812 #. type: verbatim
9813 #: ../fish/guestfish-actions.pod:1910
9814 #, no-wrap
9815 msgid ""
9816 " inspect-get-arch root\n"
9817 "\n"
9818 msgstr ""
9819
9820 #. type: textblock
9821 #: ../fish/guestfish-actions.pod:1912
9822 msgid ""
9823 "This returns the architecture of the inspected operating system.  The "
9824 "possible return values are listed under L</file-architecture>."
9825 msgstr ""
9826
9827 #. type: textblock
9828 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
9829 msgid ""
9830 "If the architecture could not be determined, then the string C<unknown> is "
9831 "returned."
9832 msgstr ""
9833
9834 #. type: textblock
9835 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
9836 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
9837 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
9838 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
9839 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
9840 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
9841 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
9842 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
9843 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048
9844 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
9845 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
9846 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
9847 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
9848 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654
9849 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691
9850 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725
9851 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
9852 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9853 msgstr ""
9854
9855 #. type: =head2
9856 #: ../fish/guestfish-actions.pod:1921
9857 msgid "inspect-get-distro"
9858 msgstr ""
9859
9860 #. type: verbatim
9861 #: ../fish/guestfish-actions.pod:1923
9862 #, no-wrap
9863 msgid ""
9864 " inspect-get-distro root\n"
9865 "\n"
9866 msgstr ""
9867
9868 #. type: textblock
9869 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
9870 msgid ""
9871 "This returns the distro (distribution) of the inspected operating system."
9872 msgstr ""
9873
9874 #. type: textblock
9875 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
9876 msgid "Currently defined distros are:"
9877 msgstr ""
9878
9879 #. type: =item
9880 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
9881 msgid "\"archlinux\""
9882 msgstr ""
9883
9884 #. type: textblock
9885 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
9886 msgid "Arch Linux."
9887 msgstr ""
9888
9889 #. type: =item
9890 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
9891 msgid "\"centos\""
9892 msgstr ""
9893
9894 #. type: textblock
9895 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
9896 msgid "CentOS."
9897 msgstr ""
9898
9899 #. type: =item
9900 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
9901 msgid "\"debian\""
9902 msgstr ""
9903
9904 #. type: textblock
9905 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
9906 msgid "Debian."
9907 msgstr ""
9908
9909 #. type: =item
9910 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
9911 msgid "\"fedora\""
9912 msgstr ""
9913
9914 #. type: textblock
9915 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
9916 msgid "Fedora."
9917 msgstr ""
9918
9919 #. type: =item
9920 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
9921 msgid "\"gentoo\""
9922 msgstr ""
9923
9924 #. type: textblock
9925 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
9926 msgid "Gentoo."
9927 msgstr ""
9928
9929 #. type: =item
9930 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
9931 msgid "\"linuxmint\""
9932 msgstr ""
9933
9934 #. type: textblock
9935 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
9936 msgid "Linux Mint."
9937 msgstr ""
9938
9939 #. type: =item
9940 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
9941 msgid "\"mageia\""
9942 msgstr ""
9943
9944 #. type: textblock
9945 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
9946 msgid "Mageia."
9947 msgstr ""
9948
9949 #. type: =item
9950 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
9951 msgid "\"mandriva\""
9952 msgstr ""
9953
9954 #. type: textblock
9955 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
9956 msgid "Mandriva."
9957 msgstr ""
9958
9959 #. type: =item
9960 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
9961 msgid "\"meego\""
9962 msgstr ""
9963
9964 #. type: textblock
9965 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
9966 msgid "MeeGo."
9967 msgstr ""
9968
9969 #. type: =item
9970 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
9971 msgid "\"opensuse\""
9972 msgstr ""
9973
9974 #. type: textblock
9975 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
9976 msgid "OpenSUSE."
9977 msgstr ""
9978
9979 #. type: =item
9980 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
9981 msgid "\"pardus\""
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
9986 msgid "Pardus."
9987 msgstr ""
9988
9989 #. type: =item
9990 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
9991 msgid "\"redhat-based\""
9992 msgstr ""
9993
9994 #. type: textblock
9995 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
9996 msgid "Some Red Hat-derived distro."
9997 msgstr ""
9998
9999 #. type: =item
10000 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10001 msgid "\"rhel\""
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10006 msgid "Red Hat Enterprise Linux."
10007 msgstr ""
10008
10009 #. type: =item
10010 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10011 msgid "\"scientificlinux\""
10012 msgstr ""
10013
10014 #. type: textblock
10015 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10016 msgid "Scientific Linux."
10017 msgstr ""
10018
10019 #. type: =item
10020 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10021 msgid "\"slackware\""
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10026 msgid "Slackware."
10027 msgstr ""
10028
10029 #. type: =item
10030 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10031 msgid "\"ttylinux\""
10032 msgstr ""
10033
10034 #. type: textblock
10035 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10036 msgid "ttylinux."
10037 msgstr ""
10038
10039 #. type: =item
10040 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10041 msgid "\"ubuntu\""
10042 msgstr ""
10043
10044 #. type: textblock
10045 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10046 msgid "Ubuntu."
10047 msgstr ""
10048
10049 #. type: =item
10050 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10051 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136
10052 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
10053 msgid "\"unknown\""
10054 msgstr ""
10055
10056 #. type: textblock
10057 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10058 msgid "The distro could not be determined."
10059 msgstr ""
10060
10061 #. type: =item
10062 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10063 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10064 msgid "\"windows\""
10065 msgstr ""
10066
10067 #. type: textblock
10068 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10069 msgid ""
10070 "Windows does not have distributions.  This string is returned if the OS type "
10071 "is Windows."
10072 msgstr ""
10073
10074 #. type: textblock
10075 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10076 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147
10077 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
10078 msgid ""
10079 "Future versions of libguestfs may return other strings here.  The caller "
10080 "should be prepared to handle any string."
10081 msgstr ""
10082
10083 #. type: =head2
10084 #: ../fish/guestfish-actions.pod:2016
10085 msgid "inspect-get-drive-mappings"
10086 msgstr ""
10087
10088 #. type: verbatim
10089 #: ../fish/guestfish-actions.pod:2018
10090 #, no-wrap
10091 msgid ""
10092 " inspect-get-drive-mappings root\n"
10093 "\n"
10094 msgstr ""
10095
10096 #. type: textblock
10097 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10098 msgid ""
10099 "This call is useful for Windows which uses a primitive system of assigning "
10100 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10101 "Windows Registry to find out how disks/partitions are mapped to drive "
10102 "letters, and returns a hash table as in the example below:"
10103 msgstr ""
10104
10105 #. type: verbatim
10106 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10107 #, no-wrap
10108 msgid ""
10109 " C      =>     /dev/vda2\n"
10110 " E      =>     /dev/vdb1\n"
10111 " F      =>     /dev/vdc1\n"
10112 "\n"
10113 msgstr ""
10114
10115 #. type: textblock
10116 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10117 msgid ""
10118 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10119 "and just contains the drive letter, without the customary colon separator "
10120 "character."
10121 msgstr ""
10122
10123 #. type: textblock
10124 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10125 msgid ""
10126 "In future we may support other operating systems that also used drive "
10127 "letters, but the keys for those might not be case insensitive and might be "
10128 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10129 "C<h1> etc."
10130 msgstr ""
10131
10132 #. type: textblock
10133 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10134 msgid ""
10135 "For Windows guests, currently only hard drive mappings are returned.  "
10136 "Removable disks (eg. DVD-ROMs) are ignored."
10137 msgstr ""
10138
10139 #. type: textblock
10140 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10141 msgid ""
10142 "For guests that do not use drive mappings, or if the drive mappings could "
10143 "not be determined, this returns an empty hash table."
10144 msgstr ""
10145
10146 #. type: textblock
10147 #: ../fish/guestfish-actions.pod:2045
10148 msgid ""
10149 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10150 "get-mountpoints>, L</inspect-get-filesystems>."
10151 msgstr ""
10152
10153 #. type: =head2
10154 #: ../fish/guestfish-actions.pod:2049
10155 msgid "inspect-get-filesystems"
10156 msgstr ""
10157
10158 #. type: verbatim
10159 #: ../fish/guestfish-actions.pod:2051
10160 #, no-wrap
10161 msgid ""
10162 " inspect-get-filesystems root\n"
10163 "\n"
10164 msgstr ""
10165
10166 #. type: textblock
10167 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10168 msgid ""
10169 "This returns a list of all the filesystems that we think are associated with "
10170 "this operating system.  This includes the root filesystem, other ordinary "
10171 "filesystems, and non-mounted devices like swap partitions."
10172 msgstr ""
10173
10174 #. type: textblock
10175 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10176 msgid ""
10177 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10178 "to be shared between operating systems."
10179 msgstr ""
10180
10181 #. type: textblock
10182 #: ../fish/guestfish-actions.pod:2061
10183 msgid ""
10184 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10185 "get-mountpoints>."
10186 msgstr ""
10187
10188 #. type: =head2
10189 #: ../fish/guestfish-actions.pod:2064
10190 msgid "inspect-get-format"
10191 msgstr ""
10192
10193 #. type: verbatim
10194 #: ../fish/guestfish-actions.pod:2066
10195 #, no-wrap
10196 msgid ""
10197 " inspect-get-format root\n"
10198 "\n"
10199 msgstr ""
10200
10201 #. type: textblock
10202 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10203 msgid ""
10204 "This returns the format of the inspected operating system.  You can use it "
10205 "to detect install images, live CDs and similar."
10206 msgstr ""
10207
10208 #. type: textblock
10209 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10210 msgid "Currently defined formats are:"
10211 msgstr ""
10212
10213 #. type: =item
10214 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10215 msgid "\"installed\""
10216 msgstr ""
10217
10218 #. type: textblock
10219 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10220 msgid "This is an installed operating system."
10221 msgstr ""
10222
10223 #. type: =item
10224 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10225 msgid "\"installer\""
10226 msgstr ""
10227
10228 #. type: textblock
10229 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10230 msgid ""
10231 "The disk image being inspected is not an installed operating system, but a "
10232 "I<bootable> install disk, live CD, or similar."
10233 msgstr ""
10234
10235 #. type: textblock
10236 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10237 msgid "The format of this disk image is not known."
10238 msgstr ""
10239
10240 #. type: =head2
10241 #: ../fish/guestfish-actions.pod:2095
10242 msgid "inspect-get-hostname"
10243 msgstr ""
10244
10245 #. type: verbatim
10246 #: ../fish/guestfish-actions.pod:2097
10247 #, no-wrap
10248 msgid ""
10249 " inspect-get-hostname root\n"
10250 "\n"
10251 msgstr ""
10252
10253 #. type: textblock
10254 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
10255 msgid ""
10256 "This function returns the hostname of the operating system as found by "
10257 "inspection of the guest's configuration files."
10258 msgstr ""
10259
10260 #. type: textblock
10261 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
10262 msgid ""
10263 "If the hostname could not be determined, then the string C<unknown> is "
10264 "returned."
10265 msgstr ""
10266
10267 #. type: =head2
10268 #: ../fish/guestfish-actions.pod:2107
10269 msgid "inspect-get-icon"
10270 msgstr ""
10271
10272 #. type: verbatim
10273 #: ../fish/guestfish-actions.pod:2109
10274 #, no-wrap
10275 msgid ""
10276 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10277 "\n"
10278 msgstr ""
10279
10280 #. type: textblock
10281 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
10282 msgid ""
10283 "This function returns an icon corresponding to the inspected operating "
10284 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10285 "to PNG if necessary)."
10286 msgstr ""
10287
10288 #. type: textblock
10289 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
10290 msgid ""
10291 "If it was not possible to get an icon this function returns a zero-length "
10292 "(non-NULL) buffer.  I<Callers must check for this case>."
10293 msgstr ""
10294
10295 #. type: textblock
10296 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
10297 msgid ""
10298 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10299 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10300 "this file will be returned.  You can disable favicons by passing the "
10301 "optional C<favicon> boolean as false (default is true)."
10302 msgstr ""
10303
10304 #. type: textblock
10305 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
10306 msgid ""
10307 "If finding the favicon fails, then we look in other places in the guest for "
10308 "a suitable icon."
10309 msgstr ""
10310
10311 #. type: textblock
10312 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
10313 msgid ""
10314 "If the optional C<highquality> boolean is true then only high quality icons "
10315 "are returned, which means only icons of high resolution with an alpha "
10316 "channel.  The default (false) is to return any icon we can, even if it is of "
10317 "substandard quality."
10318 msgstr ""
10319
10320 #. type: textblock
10321 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
10322 msgid ""
10323 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10324 "before you call this, since it needs to read information from the guest "
10325 "filesystem during the call."
10326 msgstr ""
10327
10328 #. type: textblock
10329 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
10330 msgid ""
10331 "B<Security:> The icon data comes from the untrusted guest, and should be "
10332 "treated with caution.  PNG files have been known to contain exploits.  "
10333 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10334 "trying to process or display the icon."
10335 msgstr ""
10336
10337 #. type: textblock
10338 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
10339 msgid ""
10340 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10341 "tries to return the largest, highest quality icon available.  The "
10342 "application must scale the icon to the required size."
10343 msgstr ""
10344
10345 #. type: textblock
10346 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
10347 msgid ""
10348 "Extracting icons from Windows guests requires the external C<wrestool> "
10349 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10350 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10351 "installed separately."
10352 msgstr ""
10353
10354 #. type: textblock
10355 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
10356 msgid ""
10357 "Operating system icons are usually trademarks.  Seek legal advice before "
10358 "using trademarks in applications."
10359 msgstr ""
10360
10361 #. type: =head2
10362 #: ../fish/guestfish-actions.pod:2173
10363 msgid "inspect-get-major-version"
10364 msgstr ""
10365
10366 #. type: verbatim
10367 #: ../fish/guestfish-actions.pod:2175
10368 #, no-wrap
10369 msgid ""
10370 " inspect-get-major-version root\n"
10371 "\n"
10372 msgstr ""
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
10376 msgid ""
10377 "This returns the major version number of the inspected operating system."
10378 msgstr ""
10379
10380 #. type: textblock
10381 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
10382 msgid ""
10383 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10384 "popular public names used by the operating system.  Notably the operating "
10385 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10386 "1).  You can find out the real versions corresponding to releases of Windows "
10387 "by consulting Wikipedia or MSDN."
10388 msgstr ""
10389
10390 #. type: textblock
10391 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
10392 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
10393 msgid "If the version could not be determined, then C<0> is returned."
10394 msgstr ""
10395
10396 #. type: =head2
10397 #: ../fish/guestfish-actions.pod:2191
10398 msgid "inspect-get-minor-version"
10399 msgstr ""
10400
10401 #. type: verbatim
10402 #: ../fish/guestfish-actions.pod:2193
10403 #, no-wrap
10404 msgid ""
10405 " inspect-get-minor-version root\n"
10406 "\n"
10407 msgstr ""
10408
10409 #. type: textblock
10410 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
10411 msgid ""
10412 "This returns the minor version number of the inspected operating system."
10413 msgstr ""
10414
10415 #. type: textblock
10416 #: ../fish/guestfish-actions.pod:2200
10417 msgid ""
10418 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10419 "get-major-version>."
10420 msgstr ""
10421
10422 #. type: =head2
10423 #: ../fish/guestfish-actions.pod:2203
10424 msgid "inspect-get-mountpoints"
10425 msgstr ""
10426
10427 #. type: verbatim
10428 #: ../fish/guestfish-actions.pod:2205
10429 #, no-wrap
10430 msgid ""
10431 " inspect-get-mountpoints root\n"
10432 "\n"
10433 msgstr ""
10434
10435 #. type: textblock
10436 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
10437 msgid ""
10438 "This returns a hash of where we think the filesystems associated with this "
10439 "operating system should be mounted.  Callers should note that this is at "
10440 "best an educated guess made by reading configuration files such as C</etc/"
10441 "fstab>.  I<In particular note> that this may return filesystems which are "
10442 "non-existent or not mountable and callers should be prepared to handle or "
10443 "ignore failures if they try to mount them."
10444 msgstr ""
10445
10446 #. type: textblock
10447 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
10448 msgid ""
10449 "Each element in the returned hashtable has a key which is the path of the "
10450 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10451 "mounted there (eg. C</dev/sda1>)."
10452 msgstr ""
10453
10454 #. type: textblock
10455 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
10456 msgid ""
10457 "Non-mounted devices such as swap devices are I<not> returned in this list."
10458 msgstr ""
10459
10460 #. type: textblock
10461 #: ../fish/guestfish-actions.pod:2224
10462 msgid ""
10463 "For operating systems like Windows which still use drive letters, this call "
10464 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10465 "information about the mapping of drive letters to partitions, see L</inspect-"
10466 "get-drive-mappings>."
10467 msgstr ""
10468
10469 #. type: textblock
10470 #: ../fish/guestfish-actions.pod:2230
10471 msgid ""
10472 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10473 "get-filesystems>."
10474 msgstr ""
10475
10476 #. type: =head2
10477 #: ../fish/guestfish-actions.pod:2233
10478 msgid "inspect-get-package-format"
10479 msgstr ""
10480
10481 #. type: verbatim
10482 #: ../fish/guestfish-actions.pod:2235
10483 #, no-wrap
10484 msgid ""
10485 " inspect-get-package-format root\n"
10486 "\n"
10487 msgstr ""
10488
10489 #. type: textblock
10490 #: ../fish/guestfish-actions.pod:2237
10491 msgid ""
10492 "This function and L</inspect-get-package-management> return the package "
10493 "format and package management tool used by the inspected operating system.  "
10494 "For example for Fedora these functions would return C<rpm> (package format) "
10495 "and C<yum> (package management)."
10496 msgstr ""
10497
10498 #. type: textblock
10499 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
10500 msgid ""
10501 "This returns the string C<unknown> if we could not determine the package "
10502 "format I<or> if the operating system does not have a real packaging system "
10503 "(eg. Windows)."
10504 msgstr ""
10505
10506 #. type: textblock
10507 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
10508 msgid ""
10509 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10510 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10511 msgstr ""
10512
10513 #. type: =head2
10514 #: ../fish/guestfish-actions.pod:2253
10515 msgid "inspect-get-package-management"
10516 msgstr ""
10517
10518 #. type: verbatim
10519 #: ../fish/guestfish-actions.pod:2255
10520 #, no-wrap
10521 msgid ""
10522 " inspect-get-package-management root\n"
10523 "\n"
10524 msgstr ""
10525
10526 #. type: textblock
10527 #: ../fish/guestfish-actions.pod:2257
10528 msgid ""
10529 "L</inspect-get-package-format> and this function return the package format "
10530 "and package management tool used by the inspected operating system.  For "
10531 "example for Fedora these functions would return C<rpm> (package format) and "
10532 "C<yum> (package management)."
10533 msgstr ""
10534
10535 #. type: textblock
10536 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
10537 msgid ""
10538 "This returns the string C<unknown> if we could not determine the package "
10539 "management tool I<or> if the operating system does not have a real packaging "
10540 "system (eg. Windows)."
10541 msgstr ""
10542
10543 #. type: textblock
10544 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
10545 msgid ""
10546 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10547 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10548 "versions of libguestfs may return other strings."
10549 msgstr ""
10550
10551 #. type: =head2
10552 #: ../fish/guestfish-actions.pod:2274
10553 msgid "inspect-get-product-name"
10554 msgstr ""
10555
10556 #. type: verbatim
10557 #: ../fish/guestfish-actions.pod:2276
10558 #, no-wrap
10559 msgid ""
10560 " inspect-get-product-name root\n"
10561 "\n"
10562 msgstr ""
10563
10564 #. type: textblock
10565 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
10566 msgid ""
10567 "This returns the product name of the inspected operating system.  The "
10568 "product name is generally some freeform string which can be displayed to the "
10569 "user, but should not be parsed by programs."
10570 msgstr ""
10571
10572 #. type: textblock
10573 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
10574 msgid ""
10575 "If the product name could not be determined, then the string C<unknown> is "
10576 "returned."
10577 msgstr ""
10578
10579 #. type: =head2
10580 #: ../fish/guestfish-actions.pod:2288
10581 msgid "inspect-get-product-variant"
10582 msgstr ""
10583
10584 #. type: verbatim
10585 #: ../fish/guestfish-actions.pod:2290
10586 #, no-wrap
10587 msgid ""
10588 " inspect-get-product-variant root\n"
10589 "\n"
10590 msgstr ""
10591
10592 #. type: textblock
10593 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
10594 msgid "This returns the product variant of the inspected operating system."
10595 msgstr ""
10596
10597 #. type: textblock
10598 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
10599 msgid ""
10600 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10601 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10602 "is usually a string such as C<Client> or C<Server> (other values are "
10603 "possible).  This can be used to distinguish consumer and enterprise versions "
10604 "of Windows that have the same version number (for example, Windows 7 and "
10605 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10606 "the latter is C<Server>)."
10607 msgstr ""
10608
10609 #. type: textblock
10610 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
10611 msgid ""
10612 "For enterprise Linux guests, in future we intend this to return the product "
10613 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10614 "implemented at present."
10615 msgstr ""
10616
10617 #. type: textblock
10618 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
10619 msgid ""
10620 "If the product variant could not be determined, then the string C<unknown> "
10621 "is returned."
10622 msgstr ""
10623
10624 #. type: textblock
10625 #: ../fish/guestfish-actions.pod:2311
10626 msgid ""
10627 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10628 "get-product-name>, L</inspect-get-major-version>."
10629 msgstr ""
10630
10631 #. type: =head2
10632 #: ../fish/guestfish-actions.pod:2315
10633 msgid "inspect-get-roots"
10634 msgstr ""
10635
10636 #. type: verbatim
10637 #: ../fish/guestfish-actions.pod:2317
10638 #, no-wrap
10639 msgid ""
10640 " inspect-get-roots\n"
10641 "\n"
10642 msgstr ""
10643
10644 #. type: textblock
10645 #: ../fish/guestfish-actions.pod:2319
10646 msgid ""
10647 "This function is a convenient way to get the list of root devices, as "
10648 "returned from a previous call to L</inspect-os>, but without redoing the "
10649 "whole inspection process."
10650 msgstr ""
10651
10652 #. type: textblock
10653 #: ../fish/guestfish-actions.pod:2323
10654 msgid ""
10655 "This returns an empty list if either no root devices were found or the "
10656 "caller has not called L</inspect-os>."
10657 msgstr ""
10658
10659 #. type: =head2
10660 #: ../fish/guestfish-actions.pod:2328
10661 msgid "inspect-get-type"
10662 msgstr ""
10663
10664 #. type: verbatim
10665 #: ../fish/guestfish-actions.pod:2330
10666 #, no-wrap
10667 msgid ""
10668 " inspect-get-type root\n"
10669 "\n"
10670 msgstr ""
10671
10672 #. type: textblock
10673 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
10674 msgid ""
10675 "This returns the type of the inspected operating system.  Currently defined "
10676 "types are:"
10677 msgstr ""
10678
10679 #. type: =item
10680 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
10681 msgid "\"linux\""
10682 msgstr ""
10683
10684 #. type: textblock
10685 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
10686 msgid "Any Linux-based operating system."
10687 msgstr ""
10688
10689 #. type: textblock
10690 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
10691 msgid "Any Microsoft Windows operating system."
10692 msgstr ""
10693
10694 #. type: =item
10695 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
10696 msgid "\"freebsd\""
10697 msgstr ""
10698
10699 #. type: textblock
10700 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
10701 msgid "FreeBSD."
10702 msgstr ""
10703
10704 #. type: =item
10705 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
10706 msgid "\"netbsd\""
10707 msgstr ""
10708
10709 #. type: textblock
10710 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
10711 msgid "NetBSD."
10712 msgstr ""
10713
10714 #. type: textblock
10715 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10716 msgid "The operating system type could not be determined."
10717 msgstr ""
10718
10719 #. type: =head2
10720 #: ../fish/guestfish-actions.pod:2364
10721 msgid "inspect-get-windows-current-control-set"
10722 msgstr ""
10723
10724 #. type: verbatim
10725 #: ../fish/guestfish-actions.pod:2366
10726 #, no-wrap
10727 msgid ""
10728 " inspect-get-windows-current-control-set root\n"
10729 "\n"
10730 msgstr ""
10731
10732 #. type: textblock
10733 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
10734 msgid ""
10735 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10736 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10737 msgstr ""
10738
10739 #. type: textblock
10740 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
10741 msgid ""
10742 "This call assumes that the guest is Windows and that the Registry could be "
10743 "examined by inspection.  If this is not the case then an error is returned."
10744 msgstr ""
10745
10746 #. type: =head2
10747 #: ../fish/guestfish-actions.pod:2377
10748 msgid "inspect-get-windows-systemroot"
10749 msgstr ""
10750
10751 #. type: verbatim
10752 #: ../fish/guestfish-actions.pod:2379
10753 #, no-wrap
10754 msgid ""
10755 " inspect-get-windows-systemroot root\n"
10756 "\n"
10757 msgstr ""
10758
10759 #. type: textblock
10760 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
10761 msgid ""
10762 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10763 "is a directory path such as C</WINDOWS>."
10764 msgstr ""
10765
10766 #. type: textblock
10767 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
10768 msgid ""
10769 "This call assumes that the guest is Windows and that the systemroot could be "
10770 "determined by inspection.  If this is not the case then an error is returned."
10771 msgstr ""
10772
10773 #. type: =head2
10774 #: ../fish/guestfish-actions.pod:2390
10775 msgid "inspect-is-live"
10776 msgstr ""
10777
10778 #. type: verbatim
10779 #: ../fish/guestfish-actions.pod:2392
10780 #, no-wrap
10781 msgid ""
10782 " inspect-is-live root\n"
10783 "\n"
10784 msgstr ""
10785
10786 #. type: textblock
10787 #: ../fish/guestfish-actions.pod:2394
10788 msgid ""
10789 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10790 "then this returns true if a live image was detected on the disk."
10791 msgstr ""
10792
10793 #. type: =head2
10794 #: ../fish/guestfish-actions.pod:2400
10795 msgid "inspect-is-multipart"
10796 msgstr ""
10797
10798 #. type: verbatim
10799 #: ../fish/guestfish-actions.pod:2402
10800 #, no-wrap
10801 msgid ""
10802 " inspect-is-multipart root\n"
10803 "\n"
10804 msgstr ""
10805
10806 #. type: textblock
10807 #: ../fish/guestfish-actions.pod:2404
10808 msgid ""
10809 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10810 "then this returns true if the disk is part of a set."
10811 msgstr ""
10812
10813 #. type: =head2
10814 #: ../fish/guestfish-actions.pod:2410
10815 msgid "inspect-is-netinst"
10816 msgstr ""
10817
10818 #. type: verbatim
10819 #: ../fish/guestfish-actions.pod:2412
10820 #, no-wrap
10821 msgid ""
10822 " inspect-is-netinst root\n"
10823 "\n"
10824 msgstr ""
10825
10826 #. type: textblock
10827 #: ../fish/guestfish-actions.pod:2414
10828 msgid ""
10829 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10830 "then this returns true if the disk is a network installer, ie. not a self-"
10831 "contained install CD but one which is likely to require network access to "
10832 "complete the install."
10833 msgstr ""
10834
10835 #. type: =head2
10836 #: ../fish/guestfish-actions.pod:2422
10837 msgid "inspect-list-applications"
10838 msgstr ""
10839
10840 #. type: verbatim
10841 #: ../fish/guestfish-actions.pod:2424
10842 #, no-wrap
10843 msgid ""
10844 " inspect-list-applications root\n"
10845 "\n"
10846 msgstr ""
10847
10848 #. type: textblock
10849 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
10850 msgid "Return the list of applications installed in the operating system."
10851 msgstr ""
10852
10853 #. type: textblock
10854 #: ../fish/guestfish-actions.pod:2428
10855 msgid ""
10856 "I<Note:> This call works differently from other parts of the inspection "
10857 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10858 "then mount up the disks, before calling this.  Listing applications is a "
10859 "significantly more difficult operation which requires access to the full "
10860 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10861 "are just returning data cached in the libguestfs handle, this call actually "
10862 "reads parts of the mounted filesystems during the call."
10863 msgstr ""
10864
10865 #. type: textblock
10866 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
10867 msgid ""
10868 "This returns an empty list if the inspection code was not able to determine "
10869 "the list of applications."
10870 msgstr ""
10871
10872 #. type: textblock
10873 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
10874 msgid "The application structure contains the following fields:"
10875 msgstr ""
10876
10877 #. type: =item
10878 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
10879 msgid "C<app_name>"
10880 msgstr ""
10881
10882 #. type: textblock
10883 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
10884 msgid ""
10885 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10886 "guests, this is the package name."
10887 msgstr ""
10888
10889 #. type: =item
10890 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
10891 msgid "C<app_display_name>"
10892 msgstr ""
10893
10894 #. type: textblock
10895 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
10896 msgid ""
10897 "The display name of the application, sometimes localized to the install "
10898 "language of the guest operating system."
10899 msgstr ""
10900
10901 #. type: textblock
10902 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
10903 msgid ""
10904 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10905 "to display something can use C<app_name> instead."
10906 msgstr ""
10907
10908 #. type: =item
10909 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
10910 msgid "C<app_epoch>"
10911 msgstr ""
10912
10913 #. type: textblock
10914 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
10915 msgid ""
10916 "For package managers which use epochs, this contains the epoch of the "
10917 "package (an integer).  If unavailable, this is returned as C<0>."
10918 msgstr ""
10919
10920 #. type: =item
10921 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
10922 msgid "C<app_version>"
10923 msgstr ""
10924
10925 #. type: textblock
10926 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
10927 msgid ""
10928 "The version string of the application or package.  If unavailable this is "
10929 "returned as an empty string C<\"\">."
10930 msgstr ""
10931
10932 #. type: =item
10933 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
10934 msgid "C<app_release>"
10935 msgstr ""
10936
10937 #. type: textblock
10938 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
10939 msgid ""
10940 "The release string of the application or package, for package managers that "
10941 "use this.  If unavailable this is returned as an empty string C<\"\">."
10942 msgstr ""
10943
10944 #. type: =item
10945 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
10946 msgid "C<app_install_path>"
10947 msgstr ""
10948
10949 #. type: textblock
10950 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
10951 msgid ""
10952 "The installation path of the application (on operating systems such as "
10953 "Windows which use installation paths).  This path is in the format used by "
10954 "the guest operating system, it is not a libguestfs path."
10955 msgstr ""
10956
10957 #. type: textblock
10958 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
10959 msgid "If unavailable this is returned as an empty string C<\"\">."
10960 msgstr ""
10961
10962 #. type: =item
10963 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
10964 msgid "C<app_trans_path>"
10965 msgstr ""
10966
10967 #. type: textblock
10968 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
10969 msgid ""
10970 "The install path translated into a libguestfs path.  If unavailable this is "
10971 "returned as an empty string C<\"\">."
10972 msgstr ""
10973
10974 #. type: =item
10975 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
10976 msgid "C<app_publisher>"
10977 msgstr ""
10978
10979 #. type: textblock
10980 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
10981 msgid ""
10982 "The name of the publisher of the application, for package managers that use "
10983 "this.  If unavailable this is returned as an empty string C<\"\">."
10984 msgstr ""
10985
10986 #. type: =item
10987 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
10988 msgid "C<app_url>"
10989 msgstr ""
10990
10991 #. type: textblock
10992 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
10993 msgid ""
10994 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10995 "returned as an empty string C<\"\">."
10996 msgstr ""
10997
10998 #. type: =item
10999 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11000 msgid "C<app_source_package>"
11001 msgstr ""
11002
11003 #. type: textblock
11004 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11005 msgid ""
11006 "For packaging systems which support this, the name of the source package.  "
11007 "If unavailable this is returned as an empty string C<\"\">."
11008 msgstr ""
11009
11010 #. type: =item
11011 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11012 msgid "C<app_summary>"
11013 msgstr ""
11014
11015 #. type: textblock
11016 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11017 msgid ""
11018 "A short (usually one line) description of the application or package.  If "
11019 "unavailable this is returned as an empty string C<\"\">."
11020 msgstr ""
11021
11022 #. type: =item
11023 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11024 msgid "C<app_description>"
11025 msgstr ""
11026
11027 #. type: textblock
11028 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11029 msgid ""
11030 "A longer description of the application or package.  If unavailable this is "
11031 "returned as an empty string C<\"\">."
11032 msgstr ""
11033
11034 #. type: =head2
11035 #: ../fish/guestfish-actions.pod:2518
11036 msgid "inspect-os"
11037 msgstr ""
11038
11039 #. type: verbatim
11040 #: ../fish/guestfish-actions.pod:2520
11041 #, no-wrap
11042 msgid ""
11043 " inspect-os\n"
11044 "\n"
11045 msgstr ""
11046
11047 #. type: textblock
11048 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11049 msgid ""
11050 "This function uses other libguestfs functions and certain heuristics to "
11051 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11052 "for operating systems."
11053 msgstr ""
11054
11055 #. type: textblock
11056 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11057 msgid "The list returned is empty if no operating systems were found."
11058 msgstr ""
11059
11060 #. type: textblock
11061 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11062 msgid ""
11063 "If one operating system was found, then this returns a list with a single "
11064 "element, which is the name of the root filesystem of this operating system.  "
11065 "It is also possible for this function to return a list containing more than "
11066 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11067 "element being the root filesystem of one of the operating systems."
11068 msgstr ""
11069
11070 #. type: textblock
11071 #: ../fish/guestfish-actions.pod:2535
11072 msgid ""
11073 "You can pass the root string(s) returned to other L</inspect-get-*> "
11074 "functions in order to query further information about each operating system, "
11075 "such as the name and version."
11076 msgstr ""
11077
11078 #. type: textblock
11079 #: ../fish/guestfish-actions.pod:2540
11080 msgid ""
11081 "This function uses other libguestfs features such as L</mount-ro> and L</"
11082 "umount-all> in order to mount and unmount filesystems and look at the "
11083 "contents.  This should be called with no disks currently mounted.  The "
11084 "function may also use Augeas, so any existing Augeas handle will be closed."
11085 msgstr ""
11086
11087 #. type: textblock
11088 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11089 msgid ""
11090 "This function cannot decrypt encrypted disks.  The caller must do that first "
11091 "(supplying the necessary keys) if the disk is encrypted."
11092 msgstr ""
11093
11094 #. type: textblock
11095 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11096 #: ../fish/guestfish-actions.pod:2809
11097 msgid "See also L</list-filesystems>."
11098 msgstr ""
11099
11100 #. type: =head2
11101 #: ../fish/guestfish-actions.pod:2554
11102 msgid "is-blockdev"
11103 msgstr ""
11104
11105 #. type: verbatim
11106 #: ../fish/guestfish-actions.pod:2556
11107 #, no-wrap
11108 msgid ""
11109 " is-blockdev path\n"
11110 "\n"
11111 msgstr ""
11112
11113 #. type: textblock
11114 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11115 msgid ""
11116 "This returns C<true> if and only if there is a block device with the given "
11117 "C<path> name."
11118 msgstr ""
11119
11120 #. type: textblock
11121 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11122 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11123 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11124 #: ../fish/guestfish-actions.pod:2660
11125 msgid "See also L</stat>."
11126 msgstr ""
11127
11128 #. type: =head2
11129 #: ../fish/guestfish-actions.pod:2563
11130 msgid "is-busy"
11131 msgstr ""
11132
11133 #. type: verbatim
11134 #: ../fish/guestfish-actions.pod:2565
11135 #, no-wrap
11136 msgid ""
11137 " is-busy\n"
11138 "\n"
11139 msgstr ""
11140
11141 #. type: textblock
11142 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11143 msgid ""
11144 "This returns true iff this handle is busy processing a command (in the "
11145 "C<BUSY> state)."
11146 msgstr ""
11147
11148 #. type: =head2
11149 #: ../fish/guestfish-actions.pod:2572
11150 msgid "is-chardev"
11151 msgstr ""
11152
11153 #. type: verbatim
11154 #: ../fish/guestfish-actions.pod:2574
11155 #, no-wrap
11156 msgid ""
11157 " is-chardev path\n"
11158 "\n"
11159 msgstr ""
11160
11161 #. type: textblock
11162 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11163 msgid ""
11164 "This returns C<true> if and only if there is a character device with the "
11165 "given C<path> name."
11166 msgstr ""
11167
11168 #. type: =head2
11169 #: ../fish/guestfish-actions.pod:2581
11170 msgid "is-config"
11171 msgstr ""
11172
11173 #. type: verbatim
11174 #: ../fish/guestfish-actions.pod:2583
11175 #, no-wrap
11176 msgid ""
11177 " is-config\n"
11178 "\n"
11179 msgstr ""
11180
11181 #. type: textblock
11182 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11183 msgid ""
11184 "This returns true iff this handle is being configured (in the C<CONFIG> "
11185 "state)."
11186 msgstr ""
11187
11188 #. type: =head2
11189 #: ../fish/guestfish-actions.pod:2590
11190 msgid "is-dir"
11191 msgstr ""
11192
11193 #. type: verbatim
11194 #: ../fish/guestfish-actions.pod:2592
11195 #, no-wrap
11196 msgid ""
11197 " is-dir path\n"
11198 "\n"
11199 msgstr ""
11200
11201 #. type: textblock
11202 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11203 msgid ""
11204 "This returns C<true> if and only if there is a directory with the given "
11205 "C<path> name.  Note that it returns false for other objects like files."
11206 msgstr ""
11207
11208 #. type: =head2
11209 #: ../fish/guestfish-actions.pod:2600
11210 msgid "is-fifo"
11211 msgstr ""
11212
11213 #. type: verbatim
11214 #: ../fish/guestfish-actions.pod:2602
11215 #, no-wrap
11216 msgid ""
11217 " is-fifo path\n"
11218 "\n"
11219 msgstr ""
11220
11221 #. type: textblock
11222 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11223 msgid ""
11224 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11225 "given C<path> name."
11226 msgstr ""
11227
11228 #. type: =head2
11229 #: ../fish/guestfish-actions.pod:2609
11230 msgid "is-file"
11231 msgstr ""
11232
11233 #. type: verbatim
11234 #: ../fish/guestfish-actions.pod:2611
11235 #, no-wrap
11236 msgid ""
11237 " is-file path\n"
11238 "\n"
11239 msgstr ""
11240
11241 #. type: textblock
11242 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
11243 msgid ""
11244 "This returns C<true> if and only if there is a regular file with the given "
11245 "C<path> name.  Note that it returns false for other objects like directories."
11246 msgstr ""
11247
11248 #. type: =head2
11249 #: ../fish/guestfish-actions.pod:2619
11250 msgid "is-launching"
11251 msgstr ""
11252
11253 #. type: verbatim
11254 #: ../fish/guestfish-actions.pod:2621
11255 #, no-wrap
11256 msgid ""
11257 " is-launching\n"
11258 "\n"
11259 msgstr ""
11260
11261 #. type: textblock
11262 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
11263 msgid ""
11264 "This returns true iff this handle is launching the subprocess (in the "
11265 "C<LAUNCHING> state)."
11266 msgstr ""
11267
11268 #. type: =head2
11269 #: ../fish/guestfish-actions.pod:2628
11270 msgid "is-lv"
11271 msgstr ""
11272
11273 #. type: verbatim
11274 #: ../fish/guestfish-actions.pod:2630
11275 #, no-wrap
11276 msgid ""
11277 " is-lv device\n"
11278 "\n"
11279 msgstr ""
11280
11281 #. type: textblock
11282 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
11283 msgid ""
11284 "This command tests whether C<device> is a logical volume, and returns true "
11285 "iff this is the case."
11286 msgstr ""
11287
11288 #. type: =head2
11289 #: ../fish/guestfish-actions.pod:2635
11290 msgid "is-ready"
11291 msgstr ""
11292
11293 #. type: verbatim
11294 #: ../fish/guestfish-actions.pod:2637
11295 #, no-wrap
11296 msgid ""
11297 " is-ready\n"
11298 "\n"
11299 msgstr ""
11300
11301 #. type: textblock
11302 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
11303 msgid ""
11304 "This returns true iff this handle is ready to accept commands (in the "
11305 "C<READY> state)."
11306 msgstr ""
11307
11308 #. type: =head2
11309 #: ../fish/guestfish-actions.pod:2644
11310 msgid "is-socket"
11311 msgstr ""
11312
11313 #. type: verbatim
11314 #: ../fish/guestfish-actions.pod:2646
11315 #, no-wrap
11316 msgid ""
11317 " is-socket path\n"
11318 "\n"
11319 msgstr ""
11320
11321 #. type: textblock
11322 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
11323 msgid ""
11324 "This returns C<true> if and only if there is a Unix domain socket with the "
11325 "given C<path> name."
11326 msgstr ""
11327
11328 #. type: =head2
11329 #: ../fish/guestfish-actions.pod:2653
11330 msgid "is-symlink"
11331 msgstr ""
11332
11333 #. type: verbatim
11334 #: ../fish/guestfish-actions.pod:2655
11335 #, no-wrap
11336 msgid ""
11337 " is-symlink path\n"
11338 "\n"
11339 msgstr ""
11340
11341 #. type: textblock
11342 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
11343 msgid ""
11344 "This returns C<true> if and only if there is a symbolic link with the given "
11345 "C<path> name."
11346 msgstr ""
11347
11348 #. type: =head2
11349 #: ../fish/guestfish-actions.pod:2662
11350 msgid "is-zero"
11351 msgstr ""
11352
11353 #. type: verbatim
11354 #: ../fish/guestfish-actions.pod:2664
11355 #, no-wrap
11356 msgid ""
11357 " is-zero path\n"
11358 "\n"
11359 msgstr ""
11360
11361 #. type: textblock
11362 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
11363 msgid ""
11364 "This returns true iff the file exists and the file is empty or it contains "
11365 "all zero bytes."
11366 msgstr ""
11367
11368 #. type: =head2
11369 #: ../fish/guestfish-actions.pod:2669
11370 msgid "is-zero-device"
11371 msgstr ""
11372
11373 #. type: verbatim
11374 #: ../fish/guestfish-actions.pod:2671
11375 #, no-wrap
11376 msgid ""
11377 " is-zero-device device\n"
11378 "\n"
11379 msgstr ""
11380
11381 #. type: textblock
11382 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
11383 msgid "This returns true iff the device exists and contains all zero bytes."
11384 msgstr ""
11385
11386 #. type: textblock
11387 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
11388 msgid "Note that for large devices this can take a long time to run."
11389 msgstr ""
11390
11391 #. type: =head2
11392 #: ../fish/guestfish-actions.pod:2677
11393 msgid "kill-subprocess"
11394 msgstr ""
11395
11396 #. type: verbatim
11397 #: ../fish/guestfish-actions.pod:2679
11398 #, no-wrap
11399 msgid ""
11400 " kill-subprocess\n"
11401 "\n"
11402 msgstr ""
11403
11404 #. type: textblock
11405 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
11406 msgid "This kills the qemu subprocess.  You should never need to call this."
11407 msgstr ""
11408
11409 #. type: =head2
11410 #: ../fish/guestfish-actions.pod:2683
11411 msgid "launch"
11412 msgstr ""
11413
11414 #. type: =head2
11415 #: ../fish/guestfish-actions.pod:2685
11416 msgid "run"
11417 msgstr ""
11418
11419 #. type: verbatim
11420 #: ../fish/guestfish-actions.pod:2687
11421 #, no-wrap
11422 msgid ""
11423 " launch\n"
11424 "\n"
11425 msgstr ""
11426
11427 #. type: textblock
11428 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
11429 msgid ""
11430 "Internally libguestfs is implemented by running a virtual machine using "
11431 "L<qemu(1)>."
11432 msgstr ""
11433
11434 #. type: textblock
11435 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
11436 msgid ""
11437 "You should call this after configuring the handle (eg. adding drives) but "
11438 "before performing any actions."
11439 msgstr ""
11440
11441 #. type: =head2
11442 #: ../fish/guestfish-actions.pod:2695
11443 msgid "lchown"
11444 msgstr ""
11445
11446 #. type: verbatim
11447 #: ../fish/guestfish-actions.pod:2697
11448 #, no-wrap
11449 msgid ""
11450 " lchown owner group path\n"
11451 "\n"
11452 msgstr ""
11453
11454 #. type: textblock
11455 #: ../fish/guestfish-actions.pod:2699
11456 msgid ""
11457 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11458 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11459 "target."
11460 msgstr ""
11461
11462 #. type: =head2
11463 #: ../fish/guestfish-actions.pod:2707
11464 msgid "lgetxattr"
11465 msgstr ""
11466
11467 #. type: verbatim
11468 #: ../fish/guestfish-actions.pod:2709
11469 #, no-wrap
11470 msgid ""
11471 " lgetxattr path name\n"
11472 "\n"
11473 msgstr ""
11474
11475 #. type: textblock
11476 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
11477 msgid ""
11478 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11479 "is a symlink, then this call returns an extended attribute from the symlink."
11480 msgstr ""
11481
11482 #. type: textblock
11483 #: ../fish/guestfish-actions.pod:2725
11484 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11485 msgstr ""
11486
11487 #. type: =head2
11488 #: ../fish/guestfish-actions.pod:2727
11489 msgid "lgetxattrs"
11490 msgstr ""
11491
11492 #. type: verbatim
11493 #: ../fish/guestfish-actions.pod:2729
11494 #, no-wrap
11495 msgid ""
11496 " lgetxattrs path\n"
11497 "\n"
11498 msgstr ""
11499
11500 #. type: textblock
11501 #: ../fish/guestfish-actions.pod:2731
11502 msgid ""
11503 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11504 "it returns the extended attributes of the link itself."
11505 msgstr ""
11506
11507 #. type: =head2
11508 #: ../fish/guestfish-actions.pod:2735
11509 msgid "list-9p"
11510 msgstr ""
11511
11512 #. type: verbatim
11513 #: ../fish/guestfish-actions.pod:2737
11514 #, no-wrap
11515 msgid ""
11516 " list-9p\n"
11517 "\n"
11518 msgstr ""
11519
11520 #. type: textblock
11521 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
11522 msgid ""
11523 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11524 "returned."
11525 msgstr ""
11526
11527 #. type: =head2
11528 #: ../fish/guestfish-actions.pod:2742
11529 msgid "list-devices"
11530 msgstr ""
11531
11532 #. type: verbatim
11533 #: ../fish/guestfish-actions.pod:2744
11534 #, no-wrap
11535 msgid ""
11536 " list-devices\n"
11537 "\n"
11538 msgstr ""
11539
11540 #. type: textblock
11541 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
11542 msgid "List all the block devices."
11543 msgstr ""
11544
11545 #. type: textblock
11546 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
11547 msgid "The full block device names are returned, eg. C</dev/sda>."
11548 msgstr ""
11549
11550 #. type: =head2
11551 #: ../fish/guestfish-actions.pod:2752
11552 msgid "list-dm-devices"
11553 msgstr ""
11554
11555 #. type: verbatim
11556 #: ../fish/guestfish-actions.pod:2754
11557 #, no-wrap
11558 msgid ""
11559 " list-dm-devices\n"
11560 "\n"
11561 msgstr ""
11562
11563 #. type: textblock
11564 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
11565 msgid "List all device mapper devices."
11566 msgstr ""
11567
11568 #. type: textblock
11569 #: ../fish/guestfish-actions.pod:2758
11570 msgid ""
11571 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11572 "previous call to L</luks-open>."
11573 msgstr ""
11574
11575 #. type: textblock
11576 #: ../fish/guestfish-actions.pod:2761
11577 msgid ""
11578 "Device mapper devices which correspond to logical volumes are I<not> "
11579 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11580 msgstr ""
11581
11582 #. type: =head2
11583 #: ../fish/guestfish-actions.pod:2765
11584 msgid "list-filesystems"
11585 msgstr ""
11586
11587 #. type: verbatim
11588 #: ../fish/guestfish-actions.pod:2767
11589 #, no-wrap
11590 msgid ""
11591 " list-filesystems\n"
11592 "\n"
11593 msgstr ""
11594
11595 #. type: textblock
11596 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
11597 msgid ""
11598 "This inspection command looks for filesystems on partitions, block devices "
11599 "and logical volumes, returning a list of devices containing filesystems and "
11600 "their type."
11601 msgstr ""
11602
11603 #. type: textblock
11604 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
11605 msgid ""
11606 "The return value is a hash, where the keys are the devices containing "
11607 "filesystems, and the values are the filesystem types.  For example:"
11608 msgstr ""
11609
11610 #. type: verbatim
11611 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
11612 #, no-wrap
11613 msgid ""
11614 " \"/dev/sda1\" => \"ntfs\"\n"
11615 " \"/dev/sda2\" => \"ext2\"\n"
11616 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11617 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11618 "\n"
11619 msgstr ""
11620
11621 #. type: textblock
11622 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
11623 msgid ""
11624 "The value can have the special value \"unknown\", meaning the content of the "
11625 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11626 msgstr ""
11627
11628 #. type: textblock
11629 #: ../fish/guestfish-actions.pod:2786
11630 msgid ""
11631 "This command runs other libguestfs commands, which might include L</mount> "
11632 "and L</umount>, and therefore you should use this soon after launch and only "
11633 "when nothing is mounted."
11634 msgstr ""
11635
11636 #. type: textblock
11637 #: ../fish/guestfish-actions.pod:2790
11638 msgid ""
11639 "Not all of the filesystems returned will be mountable.  In particular, swap "
11640 "partitions are returned in the list.  Also this command does not check that "
11641 "each filesystem found is valid and mountable, and some filesystems might be "
11642 "mountable but require special options.  Filesystems may not all belong to a "
11643 "single logical operating system (use L</inspect-os> to look for OSes)."
11644 msgstr ""
11645
11646 #. type: =head2
11647 #: ../fish/guestfish-actions.pod:2798
11648 msgid "list-partitions"
11649 msgstr ""
11650
11651 #. type: verbatim
11652 #: ../fish/guestfish-actions.pod:2800
11653 #, no-wrap
11654 msgid ""
11655 " list-partitions\n"
11656 "\n"
11657 msgstr ""
11658
11659 #. type: textblock
11660 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
11661 msgid "List all the partitions detected on all block devices."
11662 msgstr ""
11663
11664 #. type: textblock
11665 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4278
11666 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11667 msgstr ""
11668
11669 #. type: textblock
11670 #: ../fish/guestfish-actions.pod:2806
11671 msgid ""
11672 "This does not return logical volumes.  For that you will need to call L</"
11673 "lvs>."
11674 msgstr ""
11675
11676 #. type: =head2
11677 #: ../fish/guestfish-actions.pod:2811
11678 msgid "ll"
11679 msgstr ""
11680
11681 #. type: verbatim
11682 #: ../fish/guestfish-actions.pod:2813
11683 #, no-wrap
11684 msgid ""
11685 " ll directory\n"
11686 "\n"
11687 msgstr ""
11688
11689 #. type: textblock
11690 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4297
11691 msgid ""
11692 "List the files in C<directory> (relative to the root directory, there is no "
11693 "cwd) in the format of 'ls -la'."
11694 msgstr ""
11695
11696 #. type: textblock
11697 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4300
11698 msgid ""
11699 "This command is mostly useful for interactive sessions.  It is I<not> "
11700 "intended that you try to parse the output string."
11701 msgstr ""
11702
11703 #. type: =head2
11704 #: ../fish/guestfish-actions.pod:2821
11705 msgid "ln"
11706 msgstr ""
11707
11708 #. type: verbatim
11709 #: ../fish/guestfish-actions.pod:2823
11710 #, no-wrap
11711 msgid ""
11712 " ln target linkname\n"
11713 "\n"
11714 msgstr ""
11715
11716 #. type: textblock
11717 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4315
11718 msgid "This command creates a hard link using the C<ln> command."
11719 msgstr ""
11720
11721 #. type: =head2
11722 #: ../fish/guestfish-actions.pod:2827
11723 msgid "ln-f"
11724 msgstr ""
11725
11726 #. type: verbatim
11727 #: ../fish/guestfish-actions.pod:2829
11728 #, no-wrap
11729 msgid ""
11730 " ln-f target linkname\n"
11731 "\n"
11732 msgstr ""
11733
11734 #. type: textblock
11735 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4328
11736 msgid ""
11737 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11738 "option removes the link (C<linkname>) if it exists already."
11739 msgstr ""
11740
11741 #. type: =head2
11742 #: ../fish/guestfish-actions.pod:2834
11743 msgid "ln-s"
11744 msgstr ""
11745
11746 #. type: verbatim
11747 #: ../fish/guestfish-actions.pod:2836
11748 #, no-wrap
11749 msgid ""
11750 " ln-s target linkname\n"
11751 "\n"
11752 msgstr ""
11753
11754 #. type: textblock
11755 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4342
11756 msgid "This command creates a symbolic link using the C<ln -s> command."
11757 msgstr ""
11758
11759 #. type: =head2
11760 #: ../fish/guestfish-actions.pod:2840
11761 msgid "ln-sf"
11762 msgstr ""
11763
11764 #. type: verbatim
11765 #: ../fish/guestfish-actions.pod:2842
11766 #, no-wrap
11767 msgid ""
11768 " ln-sf target linkname\n"
11769 "\n"
11770 msgstr ""
11771
11772 #. type: textblock
11773 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4355
11774 msgid ""
11775 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11776 "option removes the link (C<linkname>) if it exists already."
11777 msgstr ""
11778
11779 #. type: =head2
11780 #: ../fish/guestfish-actions.pod:2847
11781 msgid "lremovexattr"
11782 msgstr ""
11783
11784 #. type: verbatim
11785 #: ../fish/guestfish-actions.pod:2849
11786 #, no-wrap
11787 msgid ""
11788 " lremovexattr xattr path\n"
11789 "\n"
11790 msgstr ""
11791
11792 #. type: textblock
11793 #: ../fish/guestfish-actions.pod:2851
11794 msgid ""
11795 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11796 "it removes an extended attribute of the link itself."
11797 msgstr ""
11798
11799 #. type: =head2
11800 #: ../fish/guestfish-actions.pod:2855
11801 msgid "ls"
11802 msgstr ""
11803
11804 #. type: verbatim
11805 #: ../fish/guestfish-actions.pod:2857
11806 #, no-wrap
11807 msgid ""
11808 " ls directory\n"
11809 "\n"
11810 msgstr ""
11811
11812 #. type: textblock
11813 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4383
11814 msgid ""
11815 "List the files in C<directory> (relative to the root directory, there is no "
11816 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
11817 msgstr ""
11818
11819 #. type: textblock
11820 #: ../fish/guestfish-actions.pod:2863
11821 msgid ""
11822 "This command is mostly useful for interactive sessions.  Programs should "
11823 "probably use L</readdir> instead."
11824 msgstr ""
11825
11826 #. type: =head2
11827 #: ../fish/guestfish-actions.pod:2866
11828 msgid "lsetxattr"
11829 msgstr ""
11830
11831 #. type: verbatim
11832 #: ../fish/guestfish-actions.pod:2868
11833 #, no-wrap
11834 msgid ""
11835 " lsetxattr xattr val vallen path\n"
11836 "\n"
11837 msgstr ""
11838
11839 #. type: textblock
11840 #: ../fish/guestfish-actions.pod:2870
11841 msgid ""
11842 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11843 "sets an extended attribute of the link itself."
11844 msgstr ""
11845
11846 #. type: =head2
11847 #: ../fish/guestfish-actions.pod:2874
11848 msgid "lstat"
11849 msgstr ""
11850
11851 #. type: verbatim
11852 #: ../fish/guestfish-actions.pod:2876
11853 #, no-wrap
11854 msgid ""
11855 " lstat path\n"
11856 "\n"
11857 msgstr ""
11858
11859 #. type: textblock
11860 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4678
11861 #: ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7200
11862 msgid "Returns file information for the given C<path>."
11863 msgstr ""
11864
11865 #. type: textblock
11866 #: ../fish/guestfish-actions.pod:2880
11867 msgid ""
11868 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11869 "the link is stat-ed, not the file it refers to."
11870 msgstr ""
11871
11872 #. type: textblock
11873 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4425
11874 msgid "This is the same as the C<lstat(2)> system call."
11875 msgstr ""
11876
11877 #. type: =head2
11878 #: ../fish/guestfish-actions.pod:2886
11879 msgid "lstatlist"
11880 msgstr ""
11881
11882 #. type: verbatim
11883 #: ../fish/guestfish-actions.pod:2888
11884 #, no-wrap
11885 msgid ""
11886 " lstatlist path 'names ...'\n"
11887 "\n"
11888 msgstr ""
11889
11890 #. type: textblock
11891 #: ../fish/guestfish-actions.pod:2890
11892 msgid ""
11893 "This call allows you to perform the L</lstat> operation on multiple files, "
11894 "where all files are in the directory C<path>.  C<names> is the list of files "
11895 "from this directory."
11896 msgstr ""
11897
11898 #. type: textblock
11899 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4444
11900 msgid ""
11901 "On return you get a list of stat structs, with a one-to-one correspondence "
11902 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11903 "then the C<ino> field of that structure is set to C<-1>."
11904 msgstr ""
11905
11906 #. type: textblock
11907 #: ../fish/guestfish-actions.pod:2899
11908 msgid ""
11909 "This call is intended for programs that want to efficiently list a directory "
11910 "contents without making many round-trips.  See also L</lxattrlist> for a "
11911 "similarly efficient call for getting extended attributes.  Very long "
11912 "directory listings might cause the protocol message size to be exceeded, "
11913 "causing this call to fail.  The caller must split up such requests into "
11914 "smaller groups of names."
11915 msgstr ""
11916
11917 #. type: =head2
11918 #: ../fish/guestfish-actions.pod:2907
11919 msgid "luks-add-key"
11920 msgstr ""
11921
11922 #. type: verbatim
11923 #: ../fish/guestfish-actions.pod:2909
11924 #, no-wrap
11925 msgid ""
11926 " luks-add-key device keyslot\n"
11927 "\n"
11928 msgstr ""
11929
11930 #. type: textblock
11931 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4472
11932 msgid ""
11933 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11934 "existing key, and is used to access the device.  C<newkey> is the new key to "
11935 "add.  C<keyslot> is the key slot that will be replaced."
11936 msgstr ""
11937
11938 #. type: textblock
11939 #: ../fish/guestfish-actions.pod:2916
11940 msgid ""
11941 "Note that if C<keyslot> already contains a key, then this command will "
11942 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11943 msgstr ""
11944
11945 #. type: textblock
11946 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942
11947 #: ../fish/guestfish-actions.pod:2952 ../fish/guestfish-actions.pod:2963
11948 #: ../fish/guestfish-actions.pod:2989 ../fish/guestfish-actions.pod:2999
11949 msgid ""
11950 "This command has one or more key or passphrase parameters.  Guestfish will "
11951 "prompt for these separately."
11952 msgstr ""
11953
11954 #. type: =head2
11955 #: ../fish/guestfish-actions.pod:2923
11956 msgid "luks-close"
11957 msgstr ""
11958
11959 #. type: verbatim
11960 #: ../fish/guestfish-actions.pod:2925
11961 #, no-wrap
11962 msgid ""
11963 " luks-close device\n"
11964 "\n"
11965 msgstr ""
11966
11967 #. type: textblock
11968 #: ../fish/guestfish-actions.pod:2927
11969 msgid ""
11970 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
11971 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
11972 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
11973 "block device."
11974 msgstr ""
11975
11976 #. type: =head2
11977 #: ../fish/guestfish-actions.pod:2933
11978 msgid "luks-format"
11979 msgstr ""
11980
11981 #. type: verbatim
11982 #: ../fish/guestfish-actions.pod:2935
11983 #, no-wrap
11984 msgid ""
11985 " luks-format device keyslot\n"
11986 "\n"
11987 msgstr ""
11988
11989 #. type: textblock
11990 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4513
11991 msgid ""
11992 "This command erases existing data on C<device> and formats the device as a "
11993 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11994 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11995 msgstr ""
11996
11997 #. type: =head2
11998 #: ../fish/guestfish-actions.pod:2945
11999 msgid "luks-format-cipher"
12000 msgstr ""
12001
12002 #. type: verbatim
12003 #: ../fish/guestfish-actions.pod:2947
12004 #, no-wrap
12005 msgid ""
12006 " luks-format-cipher device keyslot cipher\n"
12007 "\n"
12008 msgstr ""
12009
12010 #. type: textblock
12011 #: ../fish/guestfish-actions.pod:2949
12012 msgid ""
12013 "This command is the same as L</luks-format> but it also allows you to set "
12014 "the C<cipher> used."
12015 msgstr ""
12016
12017 #. type: =head2
12018 #: ../fish/guestfish-actions.pod:2955
12019 msgid "luks-kill-slot"
12020 msgstr ""
12021
12022 #. type: verbatim
12023 #: ../fish/guestfish-actions.pod:2957
12024 #, no-wrap
12025 msgid ""
12026 " luks-kill-slot device keyslot\n"
12027 "\n"
12028 msgstr ""
12029
12030 #. type: textblock
12031 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4554
12032 msgid ""
12033 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12034 "device C<device>.  C<key> must be one of the I<other> keys."
12035 msgstr ""
12036
12037 #. type: =head2
12038 #: ../fish/guestfish-actions.pod:2966
12039 msgid "luks-open"
12040 msgstr ""
12041
12042 #. type: verbatim
12043 #: ../fish/guestfish-actions.pod:2968
12044 #, no-wrap
12045 msgid ""
12046 " luks-open device mapname\n"
12047 "\n"
12048 msgstr ""
12049
12050 #. type: textblock
12051 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4574
12052 msgid ""
12053 "This command opens a block device which has been encrypted according to the "
12054 "Linux Unified Key Setup (LUKS) standard."
12055 msgstr ""
12056
12057 #. type: textblock
12058 #: ../fish/guestfish-actions.pod:2973 ../src/guestfs-actions.pod:4577
12059 msgid "C<device> is the encrypted block device or partition."
12060 msgstr ""
12061
12062 #. type: textblock
12063 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4579
12064 msgid ""
12065 "The caller must supply one of the keys associated with the LUKS block "
12066 "device, in the C<key> parameter."
12067 msgstr ""
12068
12069 #. type: textblock
12070 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4582
12071 msgid ""
12072 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12073 "writes to this block device are decrypted from and encrypted to the "
12074 "underlying C<device> respectively."
12075 msgstr ""
12076
12077 #. type: textblock
12078 #: ../fish/guestfish-actions.pod:2982
12079 msgid ""
12080 "If this block device contains LVM volume groups, then calling L</vgscan> "
12081 "followed by L</vg-activate-all> will make them visible."
12082 msgstr ""
12083
12084 #. type: textblock
12085 #: ../fish/guestfish-actions.pod:2986
12086 msgid "Use L</list-dm-devices> to list all device mapper devices."
12087 msgstr ""
12088
12089 #. type: =head2
12090 #: ../fish/guestfish-actions.pod:2992
12091 msgid "luks-open-ro"
12092 msgstr ""
12093
12094 #. type: verbatim
12095 #: ../fish/guestfish-actions.pod:2994
12096 #, no-wrap
12097 msgid ""
12098 " luks-open-ro device mapname\n"
12099 "\n"
12100 msgstr ""
12101
12102 #. type: textblock
12103 #: ../fish/guestfish-actions.pod:2996
12104 msgid ""
12105 "This is the same as L</luks-open> except that a read-only mapping is created."
12106 msgstr ""
12107
12108 #. type: =head2
12109 #: ../fish/guestfish-actions.pod:3002
12110 msgid "lvcreate"
12111 msgstr ""
12112
12113 #. type: verbatim
12114 #: ../fish/guestfish-actions.pod:3004
12115 #, no-wrap
12116 msgid ""
12117 " lvcreate logvol volgroup mbytes\n"
12118 "\n"
12119 msgstr ""
12120
12121 #. type: textblock
12122 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4628
12123 msgid ""
12124 "This creates an LVM logical volume called C<logvol> on the volume group "
12125 "C<volgroup>, with C<size> megabytes."
12126 msgstr ""
12127
12128 #. type: =head2
12129 #: ../fish/guestfish-actions.pod:3009
12130 msgid "lvm-canonical-lv-name"
12131 msgstr ""
12132
12133 #. type: verbatim
12134 #: ../fish/guestfish-actions.pod:3011
12135 #, no-wrap
12136 msgid ""
12137 " lvm-canonical-lv-name lvname\n"
12138 "\n"
12139 msgstr ""
12140
12141 #. type: textblock
12142 #: ../fish/guestfish-actions.pod:3013 ../src/guestfs-actions.pod:4641
12143 msgid ""
12144 "This converts alternative naming schemes for LVs that you might find to the "
12145 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12146 "LV>."
12147 msgstr ""
12148
12149 #. type: textblock
12150 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4645
12151 msgid ""
12152 "This command returns an error if the C<lvname> parameter does not refer to a "
12153 "logical volume."
12154 msgstr ""
12155
12156 #. type: textblock
12157 #: ../fish/guestfish-actions.pod:3020
12158 msgid "See also L</is-lv>."
12159 msgstr ""
12160
12161 #. type: =head2
12162 #: ../fish/guestfish-actions.pod:3022
12163 msgid "lvm-clear-filter"
12164 msgstr ""
12165
12166 #. type: verbatim
12167 #: ../fish/guestfish-actions.pod:3024
12168 #, no-wrap
12169 msgid ""
12170 " lvm-clear-filter\n"
12171 "\n"
12172 msgstr ""
12173
12174 #. type: textblock
12175 #: ../fish/guestfish-actions.pod:3026
12176 msgid ""
12177 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12178 "block device."
12179 msgstr ""
12180
12181 #. type: textblock
12182 #: ../fish/guestfish-actions.pod:3029 ../fish/guestfish-actions.pod:3057
12183 #: ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4702
12184 msgid ""
12185 "This command also clears the LVM cache and performs a volume group scan."
12186 msgstr ""
12187
12188 #. type: =head2
12189 #: ../fish/guestfish-actions.pod:3032
12190 msgid "lvm-remove-all"
12191 msgstr ""
12192
12193 #. type: verbatim
12194 #: ../fish/guestfish-actions.pod:3034
12195 #, no-wrap
12196 msgid ""
12197 " lvm-remove-all\n"
12198 "\n"
12199 msgstr ""
12200
12201 #. type: textblock
12202 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4675
12203 msgid ""
12204 "This command removes all LVM logical volumes, volume groups and physical "
12205 "volumes."
12206 msgstr ""
12207
12208 #. type: =head2
12209 #: ../fish/guestfish-actions.pod:3039
12210 msgid "lvm-set-filter"
12211 msgstr ""
12212
12213 #. type: verbatim
12214 #: ../fish/guestfish-actions.pod:3041
12215 #, no-wrap
12216 msgid ""
12217 " lvm-set-filter 'devices ...'\n"
12218 "\n"
12219 msgstr ""
12220
12221 #. type: textblock
12222 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4688
12223 msgid ""
12224 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12225 "block devices in the list C<devices>, and will ignore all other attached "
12226 "block devices."
12227 msgstr ""
12228
12229 #. type: textblock
12230 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4692
12231 msgid ""
12232 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12233 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12234 "there are two types of duplication possible: either cloned PVs/VGs which "
12235 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12236 "same name.  In normal operation you cannot create this situation, but you "
12237 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12238 "inside the LVM metadata."
12239 msgstr ""
12240
12241 #. type: textblock
12242 #: ../fish/guestfish-actions.pod:3060 ../src/guestfs-actions.pod:4705
12243 msgid "You can filter whole block devices or individual partitions."
12244 msgstr ""
12245
12246 #. type: textblock
12247 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4707
12248 msgid ""
12249 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12250 "filesystem), even if you are not filtering out that VG."
12251 msgstr ""
12252
12253 #. type: =head2
12254 #: ../fish/guestfish-actions.pod:3066
12255 msgid "lvremove"
12256 msgstr ""
12257
12258 #. type: verbatim
12259 #: ../fish/guestfish-actions.pod:3068
12260 #, no-wrap
12261 msgid ""
12262 " lvremove device\n"
12263 "\n"
12264 msgstr ""
12265
12266 #. type: textblock
12267 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4721
12268 msgid ""
12269 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12270 "LV, such as C</dev/VG/LV>."
12271 msgstr ""
12272
12273 #. type: textblock
12274 #: ../fish/guestfish-actions.pod:3073 ../src/guestfs-actions.pod:4724
12275 msgid ""
12276 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12277 "dev/VG>."
12278 msgstr ""
12279
12280 #. type: =head2
12281 #: ../fish/guestfish-actions.pod:3076
12282 msgid "lvrename"
12283 msgstr ""
12284
12285 #. type: verbatim
12286 #: ../fish/guestfish-actions.pod:3078
12287 #, no-wrap
12288 msgid ""
12289 " lvrename logvol newlogvol\n"
12290 "\n"
12291 msgstr ""
12292
12293 #. type: textblock
12294 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
12295 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12296 msgstr ""
12297
12298 #. type: =head2
12299 #: ../fish/guestfish-actions.pod:3082
12300 msgid "lvresize"
12301 msgstr ""
12302
12303 #. type: verbatim
12304 #: ../fish/guestfish-actions.pod:3084
12305 #, no-wrap
12306 msgid ""
12307 " lvresize device mbytes\n"
12308 "\n"
12309 msgstr ""
12310
12311 #. type: textblock
12312 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4751
12313 msgid ""
12314 "This resizes (expands or shrinks) an existing LVM logical volume to "
12315 "C<mbytes>.  When reducing, data in the reduced part is lost."
12316 msgstr ""
12317
12318 #. type: =head2
12319 #: ../fish/guestfish-actions.pod:3090
12320 msgid "lvresize-free"
12321 msgstr ""
12322
12323 #. type: verbatim
12324 #: ../fish/guestfish-actions.pod:3092
12325 #, no-wrap
12326 msgid ""
12327 " lvresize-free lv percent\n"
12328 "\n"
12329 msgstr ""
12330
12331 #. type: textblock
12332 #: ../fish/guestfish-actions.pod:3094 ../src/guestfs-actions.pod:4766
12333 msgid ""
12334 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12335 "remaining free space in the volume group.  Commonly you would call this with "
12336 "pc = 100 which expands the logical volume as much as possible, using all "
12337 "remaining free space in the volume group."
12338 msgstr ""
12339
12340 #. type: =head2
12341 #: ../fish/guestfish-actions.pod:3100
12342 msgid "lvs"
12343 msgstr ""
12344
12345 #. type: verbatim
12346 #: ../fish/guestfish-actions.pod:3102
12347 #, no-wrap
12348 msgid ""
12349 " lvs\n"
12350 "\n"
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4781
12355 msgid ""
12356 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12357 "(8)> command."
12358 msgstr ""
12359
12360 #. type: textblock
12361 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4784
12362 msgid ""
12363 "This returns a list of the logical volume device names (eg. C</dev/"
12364 "VolGroup00/LogVol00>)."
12365 msgstr ""
12366
12367 #. type: textblock
12368 #: ../fish/guestfish-actions.pod:3110
12369 msgid "See also L</lvs-full>, L</list-filesystems>."
12370 msgstr ""
12371
12372 #. type: =head2
12373 #: ../fish/guestfish-actions.pod:3112
12374 msgid "lvs-full"
12375 msgstr ""
12376
12377 #. type: verbatim
12378 #: ../fish/guestfish-actions.pod:3114
12379 #, no-wrap
12380 msgid ""
12381 " lvs-full\n"
12382 "\n"
12383 msgstr ""
12384
12385 #. type: textblock
12386 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4800
12387 msgid ""
12388 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12389 "(8)> command.  The \"full\" version includes all fields."
12390 msgstr ""
12391
12392 #. type: =head2
12393 #: ../fish/guestfish-actions.pod:3119
12394 msgid "lvuuid"
12395 msgstr ""
12396
12397 #. type: verbatim
12398 #: ../fish/guestfish-actions.pod:3121
12399 #, no-wrap
12400 msgid ""
12401 " lvuuid device\n"
12402 "\n"
12403 msgstr ""
12404
12405 #. type: textblock
12406 #: ../fish/guestfish-actions.pod:3123 ../src/guestfs-actions.pod:4815
12407 msgid "This command returns the UUID of the LVM LV C<device>."
12408 msgstr ""
12409
12410 #. type: =head2
12411 #: ../fish/guestfish-actions.pod:3125
12412 msgid "lxattrlist"
12413 msgstr ""
12414
12415 #. type: verbatim
12416 #: ../fish/guestfish-actions.pod:3127
12417 #, no-wrap
12418 msgid ""
12419 " lxattrlist path 'names ...'\n"
12420 "\n"
12421 msgstr ""
12422
12423 #. type: textblock
12424 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4829
12425 msgid ""
12426 "This call allows you to get the extended attributes of multiple files, where "
12427 "all files are in the directory C<path>.  C<names> is the list of files from "
12428 "this directory."
12429 msgstr ""
12430
12431 #. type: textblock
12432 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4833
12433 msgid ""
12434 "On return you get a flat list of xattr structs which must be interpreted "
12435 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12436 "C<attrval> in this struct is zero-length to indicate there was an error "
12437 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12438 "number (the number of following attributes for this file, which could be C<"
12439 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12440 "for the first named file.  This repeats for the second and subsequent files."
12441 msgstr ""
12442
12443 #. type: textblock
12444 #: ../fish/guestfish-actions.pod:3143
12445 msgid ""
12446 "This call is intended for programs that want to efficiently list a directory "
12447 "contents without making many round-trips.  See also L</lstatlist> for a "
12448 "similarly efficient call for getting standard stats.  Very long directory "
12449 "listings might cause the protocol message size to be exceeded, causing this "
12450 "call to fail.  The caller must split up such requests into smaller groups of "
12451 "names."
12452 msgstr ""
12453
12454 #. type: =head2
12455 #: ../fish/guestfish-actions.pod:3151
12456 msgid "mkdir"
12457 msgstr ""
12458
12459 #. type: verbatim
12460 #: ../fish/guestfish-actions.pod:3153
12461 #, no-wrap
12462 msgid ""
12463 " mkdir path\n"
12464 "\n"
12465 msgstr ""
12466
12467 #. type: textblock
12468 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4863
12469 msgid "Create a directory named C<path>."
12470 msgstr ""
12471
12472 #. type: =head2
12473 #: ../fish/guestfish-actions.pod:3157
12474 msgid "mkdir-mode"
12475 msgstr ""
12476
12477 #. type: verbatim
12478 #: ../fish/guestfish-actions.pod:3159
12479 #, no-wrap
12480 msgid ""
12481 " mkdir-mode path mode\n"
12482 "\n"
12483 msgstr ""
12484
12485 #. type: textblock
12486 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4876
12487 msgid ""
12488 "This command creates a directory, setting the initial permissions of the "
12489 "directory to C<mode>."
12490 msgstr ""
12491
12492 #. type: textblock
12493 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4879
12494 msgid ""
12495 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12496 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12497 "other ways."
12498 msgstr ""
12499
12500 #. type: textblock
12501 #: ../fish/guestfish-actions.pod:3168
12502 msgid "See also L</mkdir>, L</umask>"
12503 msgstr ""
12504
12505 #. type: =head2
12506 #: ../fish/guestfish-actions.pod:3170
12507 msgid "mkdir-p"
12508 msgstr ""
12509
12510 #. type: verbatim
12511 #: ../fish/guestfish-actions.pod:3172
12512 #, no-wrap
12513 msgid ""
12514 " mkdir-p path\n"
12515 "\n"
12516 msgstr ""
12517
12518 #. type: textblock
12519 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4895
12520 msgid ""
12521 "Create a directory named C<path>, creating any parent directories as "
12522 "necessary.  This is like the C<mkdir -p> shell command."
12523 msgstr ""
12524
12525 #. type: =head2
12526 #: ../fish/guestfish-actions.pod:3177
12527 msgid "mkdtemp"
12528 msgstr ""
12529
12530 #. type: verbatim
12531 #: ../fish/guestfish-actions.pod:3179
12532 #, no-wrap
12533 msgid ""
12534 " mkdtemp template\n"
12535 "\n"
12536 msgstr ""
12537
12538 #. type: textblock
12539 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4908
12540 msgid ""
12541 "This command creates a temporary directory.  The C<template> parameter "
12542 "should be a full pathname for the temporary directory name with the final "
12543 "six characters being \"XXXXXX\"."
12544 msgstr ""
12545
12546 #. type: textblock
12547 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4913
12548 msgid ""
12549 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12550 "being suitable for Windows filesystems."
12551 msgstr ""
12552
12553 #. type: textblock
12554 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4916
12555 msgid "The name of the temporary directory that was created is returned."
12556 msgstr ""
12557
12558 #. type: textblock
12559 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4919
12560 msgid "The temporary directory is created with mode 0700 and is owned by root."
12561 msgstr ""
12562
12563 #. type: textblock
12564 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4922
12565 msgid ""
12566 "The caller is responsible for deleting the temporary directory and its "
12567 "contents after use."
12568 msgstr ""
12569
12570 #. type: textblock
12571 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4925
12572 msgid "See also: L<mkdtemp(3)>"
12573 msgstr ""
12574
12575 #. type: =head2
12576 #: ../fish/guestfish-actions.pod:3200
12577 msgid "mke2fs-J"
12578 msgstr ""
12579
12580 #. type: verbatim
12581 #: ../fish/guestfish-actions.pod:3202
12582 #, no-wrap
12583 msgid ""
12584 " mke2fs-J fstype blocksize device journal\n"
12585 "\n"
12586 msgstr ""
12587
12588 #. type: textblock
12589 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4941
12590 msgid ""
12591 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12592 "C<journal>.  It is equivalent to the command:"
12593 msgstr ""
12594
12595 #. type: verbatim
12596 #: ../fish/guestfish-actions.pod:3208 ../src/guestfs-actions.pod:4945
12597 #, no-wrap
12598 msgid ""
12599 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12600 "\n"
12601 msgstr ""
12602
12603 #. type: textblock
12604 #: ../fish/guestfish-actions.pod:3210
12605 msgid "See also L</mke2journal>."
12606 msgstr ""
12607
12608 #. type: =head2
12609 #: ../fish/guestfish-actions.pod:3212
12610 msgid "mke2fs-JL"
12611 msgstr ""
12612
12613 #. type: verbatim
12614 #: ../fish/guestfish-actions.pod:3214
12615 #, no-wrap
12616 msgid ""
12617 " mke2fs-JL fstype blocksize device label\n"
12618 "\n"
12619 msgstr ""
12620
12621 #. type: textblock
12622 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4962
12623 msgid ""
12624 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12625 "the journal labeled C<label>."
12626 msgstr ""
12627
12628 #. type: textblock
12629 #: ../fish/guestfish-actions.pod:3219
12630 msgid "See also L</mke2journal-L>."
12631 msgstr ""
12632
12633 #. type: =head2
12634 #: ../fish/guestfish-actions.pod:3221
12635 msgid "mke2fs-JU"
12636 msgstr ""
12637
12638 #. type: verbatim
12639 #: ../fish/guestfish-actions.pod:3223
12640 #, no-wrap
12641 msgid ""
12642 " mke2fs-JU fstype blocksize device uuid\n"
12643 "\n"
12644 msgstr ""
12645
12646 #. type: textblock
12647 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4980
12648 msgid ""
12649 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12650 "the journal with UUID C<uuid>."
12651 msgstr ""
12652
12653 #. type: textblock
12654 #: ../fish/guestfish-actions.pod:3228
12655 msgid "See also L</mke2journal-U>."
12656 msgstr ""
12657
12658 #. type: =head2
12659 #: ../fish/guestfish-actions.pod:3230
12660 msgid "mke2journal"
12661 msgstr ""
12662
12663 #. type: verbatim
12664 #: ../fish/guestfish-actions.pod:3232
12665 #, no-wrap
12666 msgid ""
12667 " mke2journal blocksize device\n"
12668 "\n"
12669 msgstr ""
12670
12671 #. type: textblock
12672 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4996
12673 msgid ""
12674 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12675 "command:"
12676 msgstr ""
12677
12678 #. type: verbatim
12679 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4999
12680 #, no-wrap
12681 msgid ""
12682 " mke2fs -O journal_dev -b blocksize device\n"
12683 "\n"
12684 msgstr ""
12685
12686 #. type: =head2
12687 #: ../fish/guestfish-actions.pod:3239
12688 msgid "mke2journal-L"
12689 msgstr ""
12690
12691 #. type: verbatim
12692 #: ../fish/guestfish-actions.pod:3241
12693 #, no-wrap
12694 msgid ""
12695 " mke2journal-L blocksize label device\n"
12696 "\n"
12697 msgstr ""
12698
12699 #. type: textblock
12700 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:5013
12701 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12702 msgstr ""
12703
12704 #. type: =head2
12705 #: ../fish/guestfish-actions.pod:3245
12706 msgid "mke2journal-U"
12707 msgstr ""
12708
12709 #. type: verbatim
12710 #: ../fish/guestfish-actions.pod:3247
12711 #, no-wrap
12712 msgid ""
12713 " mke2journal-U blocksize uuid device\n"
12714 "\n"
12715 msgstr ""
12716
12717 #. type: textblock
12718 #: ../fish/guestfish-actions.pod:3249 ../src/guestfs-actions.pod:5027
12719 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12720 msgstr ""
12721
12722 #. type: =head2
12723 #: ../fish/guestfish-actions.pod:3251
12724 msgid "mkfifo"
12725 msgstr ""
12726
12727 #. type: verbatim
12728 #: ../fish/guestfish-actions.pod:3253
12729 #, no-wrap
12730 msgid ""
12731 " mkfifo mode path\n"
12732 "\n"
12733 msgstr ""
12734
12735 #. type: textblock
12736 #: ../fish/guestfish-actions.pod:3255
12737 msgid ""
12738 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12739 "is just a convenient wrapper around L</mknod>."
12740 msgstr ""
12741
12742 #. type: =head2
12743 #: ../fish/guestfish-actions.pod:3261
12744 msgid "mkfs"
12745 msgstr ""
12746
12747 #. type: verbatim
12748 #: ../fish/guestfish-actions.pod:3263
12749 #, no-wrap
12750 msgid ""
12751 " mkfs fstype device\n"
12752 "\n"
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5057
12757 msgid ""
12758 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12759 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12760 msgstr ""
12761
12762 #. type: =head2
12763 #: ../fish/guestfish-actions.pod:3269
12764 msgid "mkfs-b"
12765 msgstr ""
12766
12767 #. type: verbatim
12768 #: ../fish/guestfish-actions.pod:3271
12769 #, no-wrap
12770 msgid ""
12771 " mkfs-b fstype blocksize device\n"
12772 "\n"
12773 msgstr ""
12774
12775 #. type: textblock
12776 #: ../fish/guestfish-actions.pod:3273
12777 msgid ""
12778 "This call is similar to L</mkfs>, but it allows you to control the block "
12779 "size of the resulting filesystem.  Supported block sizes depend on the "
12780 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12781 msgstr ""
12782
12783 #. type: textblock
12784 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3305
12785 #: ../src/guestfs-actions.pod:5085 ../src/guestfs-actions.pod:5123
12786 msgid ""
12787 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12788 "cluster size."
12789 msgstr ""
12790
12791 #. type: textblock
12792 #: ../fish/guestfish-actions.pod:3281
12793 msgid ""
12794 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12795 "instead."
12796 msgstr ""
12797
12798 #. type: =head2
12799 #: ../fish/guestfish-actions.pod:3288
12800 msgid "mkfs-opts"
12801 msgstr ""
12802
12803 #. type: verbatim
12804 #: ../fish/guestfish-actions.pod:3290
12805 #, no-wrap
12806 msgid ""
12807 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12808 "\n"
12809 msgstr ""
12810
12811 #. type: textblock
12812 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5110
12813 msgid ""
12814 "This function creates a filesystem on C<device>.  The filesystem type is "
12815 "C<fstype>, for example C<ext3>."
12816 msgstr ""
12817
12818 #. type: =item
12819 #: ../fish/guestfish-actions.pod:3299 ../src/guestfs-actions.pod:5117
12820 msgid "C<blocksize>"
12821 msgstr ""
12822
12823 #. type: textblock
12824 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5119
12825 msgid ""
12826 "The filesystem block size.  Supported block sizes depend on the filesystem "
12827 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12828 "filesystems."
12829 msgstr ""
12830
12831 #. type: textblock
12832 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5126
12833 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12834 msgstr ""
12835
12836 #. type: =item
12837 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5128
12838 msgid "C<features>"
12839 msgstr ""
12840
12841 #. type: textblock
12842 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5130
12843 msgid "This passes the I<-O> parameter to the external mkfs program."
12844 msgstr ""
12845
12846 #. type: textblock
12847 #: ../fish/guestfish-actions.pod:3314 ../src/guestfs-actions.pod:5132
12848 msgid ""
12849 "For certain filesystem types, this allows extra filesystem features to be "
12850 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12851 msgstr ""
12852
12853 #. type: textblock
12854 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5136
12855 msgid ""
12856 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12857 "type."
12858 msgstr ""
12859
12860 #. type: =item
12861 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5139
12862 msgid "C<inode>"
12863 msgstr ""
12864
12865 #. type: textblock
12866 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5141
12867 msgid ""
12868 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12869 "sets the inode size (only for ext2/3/4 filesystems at present)."
12870 msgstr ""
12871
12872 #. type: =item
12873 #: ../fish/guestfish-actions.pod:3326 ../src/guestfs-actions.pod:5144
12874 msgid "C<sectorsize>"
12875 msgstr ""
12876
12877 #. type: textblock
12878 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5146
12879 msgid ""
12880 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12881 "sets sector size for ufs filesystem."
12882 msgstr ""
12883
12884 #. type: =head2
12885 #: ../fish/guestfish-actions.pod:3335
12886 msgid "mkmountpoint"
12887 msgstr ""
12888
12889 #. type: verbatim
12890 #: ../fish/guestfish-actions.pod:3337
12891 #, no-wrap
12892 msgid ""
12893 " mkmountpoint exemptpath\n"
12894 "\n"
12895 msgstr ""
12896
12897 #. type: textblock
12898 #: ../fish/guestfish-actions.pod:3339
12899 msgid ""
12900 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12901 "to create extra mountpoints before mounting the first filesystem."
12902 msgstr ""
12903
12904 #. type: textblock
12905 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5189
12906 msgid ""
12907 "These calls are I<only> necessary in some very limited circumstances, mainly "
12908 "the case where you want to mount a mix of unrelated and/or read-only "
12909 "filesystems together."
12910 msgstr ""
12911
12912 #. type: textblock
12913 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5193
12914 msgid ""
12915 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12916 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12917 "inside that.  You can unpack this as follows in guestfish:"
12918 msgstr ""
12919
12920 #. type: verbatim
12921 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5198
12922 #, no-wrap
12923 msgid ""
12924 " add-ro Fedora-11-i686-Live.iso\n"
12925 " run\n"
12926 " mkmountpoint /cd\n"
12927 " mkmountpoint /sqsh\n"
12928 " mkmountpoint /ext3fs\n"
12929 " mount /dev/sda /cd\n"
12930 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12931 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12932 "\n"
12933 msgstr ""
12934
12935 #. type: textblock
12936 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5207
12937 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12938 msgstr ""
12939
12940 #. type: textblock
12941 #: ../fish/guestfish-actions.pod:3363
12942 msgid ""
12943 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12944 "unexpected errors if you try to mix these calls.  It is safest to manually "
12945 "unmount filesystems and remove mountpoints after use."
12946 msgstr ""
12947
12948 #. type: textblock
12949 #: ../fish/guestfish-actions.pod:3367
12950 msgid ""
12951 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12952 "for this to work for manual mountpoints, you must ensure that the innermost "
12953 "mountpoints have the longest pathnames, as in the example code above."
12954 msgstr ""
12955
12956 #. type: textblock
12957 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5218
12958 msgid ""
12959 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12960 msgstr ""
12961
12962 #. type: textblock
12963 #: ../fish/guestfish-actions.pod:3374
12964 msgid ""
12965 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12966 "L</umount-all> to be called when the handle is closed which can also trigger "
12967 "these issues."
12968 msgstr ""
12969
12970 #. type: =head2
12971 #: ../fish/guestfish-actions.pod:3378
12972 msgid "mknod"
12973 msgstr ""
12974
12975 #. type: verbatim
12976 #: ../fish/guestfish-actions.pod:3380
12977 #, no-wrap
12978 msgid ""
12979 " mknod mode devmajor devminor path\n"
12980 "\n"
12981 msgstr ""
12982
12983 #. type: textblock
12984 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5237
12985 msgid ""
12986 "This call creates block or character special devices, or named pipes (FIFOs)."
12987 msgstr ""
12988
12989 #. type: textblock
12990 #: ../fish/guestfish-actions.pod:3385 ../src/guestfs-actions.pod:5240
12991 msgid ""
12992 "The C<mode> parameter should be the mode, using the standard constants.  "
12993 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12994 "used when creating block and character special devices."
12995 msgstr ""
12996
12997 #. type: textblock
12998 #: ../fish/guestfish-actions.pod:3390
12999 msgid ""
13000 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13001 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13002 "regular file).  These constants are available in the standard Linux header "
13003 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13004 "wrappers around this command which bitwise OR in the appropriate constant "
13005 "for you."
13006 msgstr ""
13007
13008 #. type: =head2
13009 #: ../fish/guestfish-actions.pod:3400
13010 msgid "mknod-b"
13011 msgstr ""
13012
13013 #. type: verbatim
13014 #: ../fish/guestfish-actions.pod:3402
13015 #, no-wrap
13016 msgid ""
13017 " mknod-b mode devmajor devminor path\n"
13018 "\n"
13019 msgstr ""
13020
13021 #. type: textblock
13022 #: ../fish/guestfish-actions.pod:3404
13023 msgid ""
13024 "This call creates a block device node called C<path> with mode C<mode> and "
13025 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13026 "wrapper around L</mknod>."
13027 msgstr ""
13028
13029 #. type: =head2
13030 #: ../fish/guestfish-actions.pod:3410
13031 msgid "mknod-c"
13032 msgstr ""
13033
13034 #. type: verbatim
13035 #: ../fish/guestfish-actions.pod:3412
13036 #, no-wrap
13037 msgid ""
13038 " mknod-c mode devmajor devminor path\n"
13039 "\n"
13040 msgstr ""
13041
13042 #. type: textblock
13043 #: ../fish/guestfish-actions.pod:3414
13044 msgid ""
13045 "This call creates a char device node called C<path> with mode C<mode> and "
13046 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13047 "wrapper around L</mknod>."
13048 msgstr ""
13049
13050 #. type: =head2
13051 #: ../fish/guestfish-actions.pod:3420
13052 msgid "mkswap"
13053 msgstr ""
13054
13055 #. type: verbatim
13056 #: ../fish/guestfish-actions.pod:3422
13057 #, no-wrap
13058 msgid ""
13059 " mkswap device\n"
13060 "\n"
13061 msgstr ""
13062
13063 #. type: textblock
13064 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5303
13065 msgid "Create a swap partition on C<device>."
13066 msgstr ""
13067
13068 #. type: =head2
13069 #: ../fish/guestfish-actions.pod:3426
13070 msgid "mkswap-L"
13071 msgstr ""
13072
13073 #. type: verbatim
13074 #: ../fish/guestfish-actions.pod:3428
13075 #, no-wrap
13076 msgid ""
13077 " mkswap-L label device\n"
13078 "\n"
13079 msgstr ""
13080
13081 #. type: textblock
13082 #: ../fish/guestfish-actions.pod:3430 ../src/guestfs-actions.pod:5316
13083 msgid "Create a swap partition on C<device> with label C<label>."
13084 msgstr ""
13085
13086 #. type: textblock
13087 #: ../fish/guestfish-actions.pod:3432 ../src/guestfs-actions.pod:5318
13088 msgid ""
13089 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13090 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13091 "or swap tools."
13092 msgstr ""
13093
13094 #. type: =head2
13095 #: ../fish/guestfish-actions.pod:3436
13096 msgid "mkswap-U"
13097 msgstr ""
13098
13099 #. type: verbatim
13100 #: ../fish/guestfish-actions.pod:3438
13101 #, no-wrap
13102 msgid ""
13103 " mkswap-U uuid device\n"
13104 "\n"
13105 msgstr ""
13106
13107 #. type: textblock
13108 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5333
13109 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13110 msgstr ""
13111
13112 #. type: =head2
13113 #: ../fish/guestfish-actions.pod:3442
13114 msgid "mkswap-file"
13115 msgstr ""
13116
13117 #. type: verbatim
13118 #: ../fish/guestfish-actions.pod:3444
13119 #, no-wrap
13120 msgid ""
13121 " mkswap-file path\n"
13122 "\n"
13123 msgstr ""
13124
13125 #. type: textblock
13126 #: ../fish/guestfish-actions.pod:3446 ../src/guestfs-actions.pod:5345
13127 msgid "Create a swap file."
13128 msgstr ""
13129
13130 #. type: textblock
13131 #: ../fish/guestfish-actions.pod:3448
13132 msgid ""
13133 "This command just writes a swap file signature to an existing file.  To "
13134 "create the file itself, use something like L</fallocate>."
13135 msgstr ""
13136
13137 #. type: =head2
13138 #: ../fish/guestfish-actions.pod:3451
13139 msgid "modprobe"
13140 msgstr ""
13141
13142 #. type: verbatim
13143 #: ../fish/guestfish-actions.pod:3453
13144 #, no-wrap
13145 msgid ""
13146 " modprobe modulename\n"
13147 "\n"
13148 msgstr ""
13149
13150 #. type: textblock
13151 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5360
13152 msgid "This loads a kernel module in the appliance."
13153 msgstr ""
13154
13155 #. type: textblock
13156 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5362
13157 msgid ""
13158 "The kernel module must have been whitelisted when libguestfs was built (see "
13159 "C<appliance/kmod.whitelist.in> in the source)."
13160 msgstr ""
13161
13162 #. type: =head2
13163 #: ../fish/guestfish-actions.pod:3460
13164 msgid "mount"
13165 msgstr ""
13166
13167 #. type: verbatim
13168 #: ../fish/guestfish-actions.pod:3462
13169 #, no-wrap
13170 msgid ""
13171 " mount device mountpoint\n"
13172 "\n"
13173 msgstr ""
13174
13175 #. type: textblock
13176 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5376
13177 msgid ""
13178 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13179 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13180 "those block devices contain partitions, they will have the usual names (eg. "
13181 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13182 msgstr ""
13183
13184 #. type: textblock
13185 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5382
13186 msgid ""
13187 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13188 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13189 "mounted on directories which already exist."
13190 msgstr ""
13191
13192 #. type: textblock
13193 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5387
13194 msgid ""
13195 "The mounted filesystem is writable, if we have sufficient permissions on the "
13196 "underlying device."
13197 msgstr ""
13198
13199 #. type: textblock
13200 #: ../fish/guestfish-actions.pod:3478
13201 msgid ""
13202 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13203 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13204 "problems for users.  If your program might need to work with older versions "
13205 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13206 "first parameter if you don't want any options)."
13207 msgstr ""
13208
13209 #. type: =head2
13210 #: ../fish/guestfish-actions.pod:3485
13211 msgid "mount-9p"
13212 msgstr ""
13213
13214 #. type: verbatim
13215 #: ../fish/guestfish-actions.pod:3487
13216 #, no-wrap
13217 msgid ""
13218 " mount-9p mounttag mountpoint [options:..]\n"
13219 "\n"
13220 msgstr ""
13221
13222 #. type: textblock
13223 #: ../fish/guestfish-actions.pod:3489 ../src/guestfs-actions.pod:5416
13224 msgid ""
13225 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13226 "C<mountpoint>."
13227 msgstr ""
13228
13229 #. type: textblock
13230 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5419
13231 msgid ""
13232 "If required, C<trans=virtio> will be automatically added to the options.  "
13233 "Any other options required can be passed in the optional C<options> "
13234 "parameter."
13235 msgstr ""
13236
13237 #. type: =head2
13238 #: ../fish/guestfish-actions.pod:3498
13239 msgid "mount-loop"
13240 msgstr ""
13241
13242 #. type: verbatim
13243 #: ../fish/guestfish-actions.pod:3500
13244 #, no-wrap
13245 msgid ""
13246 " mount-loop file mountpoint\n"
13247 "\n"
13248 msgstr ""
13249
13250 #. type: textblock
13251 #: ../fish/guestfish-actions.pod:3502 ../src/guestfs-actions.pod:5458
13252 msgid ""
13253 "This command lets you mount C<file> (a filesystem image in a file) on a "
13254 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13255 "mountpoint>."
13256 msgstr ""
13257
13258 #. type: =head2
13259 #: ../fish/guestfish-actions.pod:3506
13260 msgid "mount-options"
13261 msgstr ""
13262
13263 #. type: verbatim
13264 #: ../fish/guestfish-actions.pod:3508
13265 #, no-wrap
13266 msgid ""
13267 " mount-options options device mountpoint\n"
13268 "\n"
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:3510
13273 msgid ""
13274 "This is the same as the L</mount> command, but it allows you to set the "
13275 "mount options as for the L<mount(8)> I<-o> flag."
13276 msgstr ""
13277
13278 #. type: textblock
13279 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5478
13280 msgid ""
13281 "If the C<options> parameter is an empty string, then no options are passed "
13282 "(all options default to whatever the filesystem uses)."
13283 msgstr ""
13284
13285 #. type: =head2
13286 #: ../fish/guestfish-actions.pod:3518
13287 msgid "mount-ro"
13288 msgstr ""
13289
13290 #. type: verbatim
13291 #: ../fish/guestfish-actions.pod:3520
13292 #, no-wrap
13293 msgid ""
13294 " mount-ro device mountpoint\n"
13295 "\n"
13296 msgstr ""
13297
13298 #. type: textblock
13299 #: ../fish/guestfish-actions.pod:3522
13300 msgid ""
13301 "This is the same as the L</mount> command, but it mounts the filesystem with "
13302 "the read-only (I<-o ro>) flag."
13303 msgstr ""
13304
13305 #. type: =head2
13306 #: ../fish/guestfish-actions.pod:3525
13307 msgid "mount-vfs"
13308 msgstr ""
13309
13310 #. type: verbatim
13311 #: ../fish/guestfish-actions.pod:3527
13312 #, no-wrap
13313 msgid ""
13314 " mount-vfs options vfstype device mountpoint\n"
13315 "\n"
13316 msgstr ""
13317
13318 #. type: textblock
13319 #: ../fish/guestfish-actions.pod:3529
13320 msgid ""
13321 "This is the same as the L</mount> command, but it allows you to set both the "
13322 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13323 msgstr ""
13324
13325 #. type: =head2
13326 #: ../fish/guestfish-actions.pod:3533
13327 msgid "mountpoints"
13328 msgstr ""
13329
13330 #. type: verbatim
13331 #: ../fish/guestfish-actions.pod:3535
13332 #, no-wrap
13333 msgid ""
13334 " mountpoints\n"
13335 "\n"
13336 msgstr ""
13337
13338 #. type: textblock
13339 #: ../fish/guestfish-actions.pod:3537
13340 msgid ""
13341 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13342 "This one returns a hash table (map) of device name to directory where the "
13343 "device is mounted."
13344 msgstr ""
13345
13346 #. type: =head2
13347 #: ../fish/guestfish-actions.pod:3541
13348 msgid "mounts"
13349 msgstr ""
13350
13351 #. type: verbatim
13352 #: ../fish/guestfish-actions.pod:3543
13353 #, no-wrap
13354 msgid ""
13355 " mounts\n"
13356 "\n"
13357 msgstr ""
13358
13359 #. type: textblock
13360 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5539
13361 msgid ""
13362 "This returns the list of currently mounted filesystems.  It returns the list "
13363 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13364 msgstr ""
13365
13366 #. type: textblock
13367 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5542
13368 msgid "Some internal mounts are not shown."
13369 msgstr ""
13370
13371 #. type: textblock
13372 #: ../fish/guestfish-actions.pod:3550
13373 msgid "See also: L</mountpoints>"
13374 msgstr ""
13375
13376 #. type: =head2
13377 #: ../fish/guestfish-actions.pod:3552
13378 msgid "mv"
13379 msgstr ""
13380
13381 #. type: verbatim
13382 #: ../fish/guestfish-actions.pod:3554
13383 #, no-wrap
13384 msgid ""
13385 " mv src dest\n"
13386 "\n"
13387 msgstr ""
13388
13389 #. type: textblock
13390 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5559
13391 msgid ""
13392 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13393 "destination filename or destination directory."
13394 msgstr ""
13395
13396 #. type: =head2
13397 #: ../fish/guestfish-actions.pod:3559
13398 msgid "ntfs-3g-probe"
13399 msgstr ""
13400
13401 #. type: verbatim
13402 #: ../fish/guestfish-actions.pod:3561
13403 #, no-wrap
13404 msgid ""
13405 " ntfs-3g-probe true|false device\n"
13406 "\n"
13407 msgstr ""
13408
13409 #. type: textblock
13410 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5573
13411 msgid ""
13412 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13413 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13414 "write, and some cannot be mounted at all)."
13415 msgstr ""
13416
13417 #. type: textblock
13418 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5577
13419 msgid ""
13420 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13421 "can be mounted read-write.  Set it to false if you want to test if the "
13422 "volume can be mounted read-only."
13423 msgstr ""
13424
13425 #. type: textblock
13426 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5581
13427 msgid ""
13428 "The return value is an integer which C<0> if the operation would succeed, or "
13429 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13430 msgstr ""
13431
13432 #. type: =head2
13433 #: ../fish/guestfish-actions.pod:3575
13434 msgid "ntfsresize"
13435 msgstr ""
13436
13437 #. type: verbatim
13438 #: ../fish/guestfish-actions.pod:3577
13439 #, no-wrap
13440 msgid ""
13441 " ntfsresize device\n"
13442 "\n"
13443 msgstr ""
13444
13445 #. type: textblock
13446 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3603
13447 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5634
13448 msgid ""
13449 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13450 "size of the underlying device."
13451 msgstr ""
13452
13453 #. type: textblock
13454 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5605
13455 msgid ""
13456 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13457 "consistency check (for safety).  You have to boot into Windows to perform "
13458 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13459 "resize filesystems which have been marked in this way.  So in effect it is "
13460 "not possible to call ntfsresize multiple times on a single filesystem "
13461 "without booting into Windows between each resize."
13462 msgstr ""
13463
13464 #. type: textblock
13465 #: ../fish/guestfish-actions.pod:3590 ../fish/guestfish-actions.pod:3629
13466 #: ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5660
13467 msgid "See also L<ntfsresize(8)>."
13468 msgstr ""
13469
13470 #. type: textblock
13471 #: ../fish/guestfish-actions.pod:3592 ../fish/guestfish-actions.pod:3640
13472 msgid ""
13473 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13474 "call instead."
13475 msgstr ""
13476
13477 #. type: =head2
13478 #: ../fish/guestfish-actions.pod:3599
13479 msgid "ntfsresize-opts"
13480 msgstr ""
13481
13482 #. type: verbatim
13483 #: ../fish/guestfish-actions.pod:3601
13484 #, no-wrap
13485 msgid ""
13486 " ntfsresize-opts device [size:..] [force:..]\n"
13487 "\n"
13488 msgstr ""
13489
13490 #. type: textblock
13491 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5643
13492 msgid ""
13493 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13494 "resized to fit the container (eg. partition)."
13495 msgstr ""
13496
13497 #. type: =item
13498 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5646
13499 msgid "C<force>"
13500 msgstr ""
13501
13502 #. type: textblock
13503 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5648
13504 msgid ""
13505 "If this option is true, then force the resize of the filesystem even if the "
13506 "filesystem is marked as requiring a consistency check."
13507 msgstr ""
13508
13509 #. type: textblock
13510 #: ../fish/guestfish-actions.pod:3620
13511 msgid ""
13512 "After the resize operation, the filesystem is always marked as requiring a "
13513 "consistency check (for safety).  You have to boot into Windows to perform "
13514 "this check and clear this condition.  If you I<don't> set the C<force> "
13515 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13516 "a single filesystem without booting into Windows between each resize."
13517 msgstr ""
13518
13519 #. type: =head2
13520 #: ../fish/guestfish-actions.pod:3633
13521 msgid "ntfsresize-size"
13522 msgstr ""
13523
13524 #. type: verbatim
13525 #: ../fish/guestfish-actions.pod:3635
13526 #, no-wrap
13527 msgid ""
13528 " ntfsresize-size device size\n"
13529 "\n"
13530 msgstr ""
13531
13532 #. type: textblock
13533 #: ../fish/guestfish-actions.pod:3637
13534 msgid ""
13535 "This command is the same as L</ntfsresize> except that it allows you to "
13536 "specify the new size (in bytes) explicitly."
13537 msgstr ""
13538
13539 #. type: =head2
13540 #: ../fish/guestfish-actions.pod:3647
13541 msgid "part-add"
13542 msgstr ""
13543
13544 #. type: verbatim
13545 #: ../fish/guestfish-actions.pod:3649
13546 #, no-wrap
13547 msgid ""
13548 " part-add device prlogex startsect endsect\n"
13549 "\n"
13550 msgstr ""
13551
13552 #. type: textblock
13553 #: ../fish/guestfish-actions.pod:3651
13554 msgid ""
13555 "This command adds a partition to C<device>.  If there is no partition table "
13556 "on the device, call L</part-init> first."
13557 msgstr ""
13558
13559 #. type: textblock
13560 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5721
13561 msgid ""
13562 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13563 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13564 "C<logical>) and C<e> (or C<extended>) partition types."
13565 msgstr ""
13566
13567 #. type: textblock
13568 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5726
13569 msgid ""
13570 "C<startsect> and C<endsect> are the start and end of the partition in "
13571 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13572 "from the end of the disk (C<-1> is the last sector)."
13573 msgstr ""
13574
13575 #. type: textblock
13576 #: ../fish/guestfish-actions.pod:3663
13577 msgid ""
13578 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13579 "part-disk> to do that."
13580 msgstr ""
13581
13582 #. type: =head2
13583 #: ../fish/guestfish-actions.pod:3666
13584 msgid "part-del"
13585 msgstr ""
13586
13587 #. type: verbatim
13588 #: ../fish/guestfish-actions.pod:3668
13589 #, no-wrap
13590 msgid ""
13591 " part-del device partnum\n"
13592 "\n"
13593 msgstr ""
13594
13595 #. type: textblock
13596 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5744
13597 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13598 msgstr ""
13599
13600 #. type: textblock
13601 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5746
13602 msgid ""
13603 "Note that in the case of MBR partitioning, deleting an extended partition "
13604 "also deletes any logical partitions it contains."
13605 msgstr ""
13606
13607 #. type: =head2
13608 #: ../fish/guestfish-actions.pod:3676
13609 msgid "part-disk"
13610 msgstr ""
13611
13612 #. type: verbatim
13613 #: ../fish/guestfish-actions.pod:3678
13614 #, no-wrap
13615 msgid ""
13616 " part-disk device parttype\n"
13617 "\n"
13618 msgstr ""
13619
13620 #. type: textblock
13621 #: ../fish/guestfish-actions.pod:3680
13622 msgid ""
13623 "This command is simply a combination of L</part-init> followed by L</part-"
13624 "add> to create a single primary partition covering the whole disk."
13625 msgstr ""
13626
13627 #. type: textblock
13628 #: ../fish/guestfish-actions.pod:3684
13629 msgid ""
13630 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13631 "possible values are described in L</part-init>."
13632 msgstr ""
13633
13634 #. type: =head2
13635 #: ../fish/guestfish-actions.pod:3687
13636 msgid "part-get-bootable"
13637 msgstr ""
13638
13639 #. type: verbatim
13640 #: ../fish/guestfish-actions.pod:3689
13641 #, no-wrap
13642 msgid ""
13643 " part-get-bootable device partnum\n"
13644 "\n"
13645 msgstr ""
13646
13647 #. type: textblock
13648 #: ../fish/guestfish-actions.pod:3691 ../src/guestfs-actions.pod:5779
13649 msgid ""
13650 "This command returns true if the partition C<partnum> on C<device> has the "
13651 "bootable flag set."
13652 msgstr ""
13653
13654 #. type: textblock
13655 #: ../fish/guestfish-actions.pod:3694
13656 msgid "See also L</part-set-bootable>."
13657 msgstr ""
13658
13659 #. type: =head2
13660 #: ../fish/guestfish-actions.pod:3696
13661 msgid "part-get-mbr-id"
13662 msgstr ""
13663
13664 #. type: verbatim
13665 #: ../fish/guestfish-actions.pod:3698
13666 #, no-wrap
13667 msgid ""
13668 " part-get-mbr-id device partnum\n"
13669 "\n"
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5795
13674 msgid ""
13675 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13676 "partition C<partnum>."
13677 msgstr ""
13678
13679 #. type: textblock
13680 #: ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:3847
13681 msgid ""
13682 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13683 "undefined results for other partition table types (see L</part-get-"
13684 "parttype>)."
13685 msgstr ""
13686
13687 #. type: =head2
13688 #: ../fish/guestfish-actions.pod:3707
13689 msgid "part-get-parttype"
13690 msgstr ""
13691
13692 #. type: verbatim
13693 #: ../fish/guestfish-actions.pod:3709
13694 #, no-wrap
13695 msgid ""
13696 " part-get-parttype device\n"
13697 "\n"
13698 msgstr ""
13699
13700 #. type: textblock
13701 #: ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5812
13702 msgid ""
13703 "This command examines the partition table on C<device> and returns the "
13704 "partition table type (format) being used."
13705 msgstr ""
13706
13707 #. type: textblock
13708 #: ../fish/guestfish-actions.pod:3714
13709 msgid ""
13710 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13711 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13712 "possible, although unusual.  See L</part-init> for a full list."
13713 msgstr ""
13714
13715 #. type: =head2
13716 #: ../fish/guestfish-actions.pod:3719
13717 msgid "part-init"
13718 msgstr ""
13719
13720 #. type: verbatim
13721 #: ../fish/guestfish-actions.pod:3721
13722 #, no-wrap
13723 msgid ""
13724 " part-init device parttype\n"
13725 "\n"
13726 msgstr ""
13727
13728 #. type: textblock
13729 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5832
13730 msgid ""
13731 "This creates an empty partition table on C<device> of one of the partition "
13732 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13733 "(for large disks)."
13734 msgstr ""
13735
13736 #. type: textblock
13737 #: ../fish/guestfish-actions.pod:3727
13738 msgid ""
13739 "Initially there are no partitions.  Following this, you should call L</part-"
13740 "add> for each partition required."
13741 msgstr ""
13742
13743 #. type: textblock
13744 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5839
13745 msgid "Possible values for C<parttype> are:"
13746 msgstr ""
13747
13748 #. type: =item
13749 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5843
13750 msgid "B<efi>"
13751 msgstr ""
13752
13753 #. type: =item
13754 #: ../fish/guestfish-actions.pod:3736 ../src/guestfs-actions.pod:5845
13755 msgid "B<gpt>"
13756 msgstr ""
13757
13758 #. type: textblock
13759 #: ../fish/guestfish-actions.pod:3738 ../src/guestfs-actions.pod:5847
13760 msgid "Intel EFI / GPT partition table."
13761 msgstr ""
13762
13763 #. type: textblock
13764 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5849
13765 msgid ""
13766 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13767 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13768 "the C<mbr> format."
13769 msgstr ""
13770
13771 #. type: =item
13772 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5853
13773 msgid "B<mbr>"
13774 msgstr ""
13775
13776 #. type: =item
13777 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5855
13778 msgid "B<msdos>"
13779 msgstr ""
13780
13781 #. type: textblock
13782 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5857
13783 msgid ""
13784 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13785 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13786 "TB.  For large disks we recommend using C<gpt>."
13787 msgstr ""
13788
13789 #. type: textblock
13790 #: ../fish/guestfish-actions.pod:3755 ../src/guestfs-actions.pod:5864
13791 msgid ""
13792 "Other partition table types that may work but are not supported include:"
13793 msgstr ""
13794
13795 #. type: =item
13796 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5869
13797 msgid "B<aix>"
13798 msgstr ""
13799
13800 #. type: textblock
13801 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5871
13802 msgid "AIX disk labels."
13803 msgstr ""
13804
13805 #. type: =item
13806 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5873
13807 msgid "B<amiga>"
13808 msgstr ""
13809
13810 #. type: =item
13811 #: ../fish/guestfish-actions.pod:3766 ../src/guestfs-actions.pod:5875
13812 msgid "B<rdb>"
13813 msgstr ""
13814
13815 #. type: textblock
13816 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5877
13817 msgid "Amiga \"Rigid Disk Block\" format."
13818 msgstr ""
13819
13820 #. type: =item
13821 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5879
13822 msgid "B<bsd>"
13823 msgstr ""
13824
13825 #. type: textblock
13826 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5881
13827 msgid "BSD disk labels."
13828 msgstr ""
13829
13830 #. type: =item
13831 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5883
13832 msgid "B<dasd>"
13833 msgstr ""
13834
13835 #. type: textblock
13836 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5885
13837 msgid "DASD, used on IBM mainframes."
13838 msgstr ""
13839
13840 #. type: =item
13841 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5887
13842 msgid "B<dvh>"
13843 msgstr ""
13844
13845 #. type: textblock
13846 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5889
13847 msgid "MIPS/SGI volumes."
13848 msgstr ""
13849
13850 #. type: =item
13851 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5891
13852 msgid "B<mac>"
13853 msgstr ""
13854
13855 #. type: textblock
13856 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5893
13857 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13858 msgstr ""
13859
13860 #. type: =item
13861 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5895
13862 msgid "B<pc98>"
13863 msgstr ""
13864
13865 #. type: textblock
13866 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5897
13867 msgid "NEC PC-98 format, common in Japan apparently."
13868 msgstr ""
13869
13870 #. type: =item
13871 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5899
13872 msgid "B<sun>"
13873 msgstr ""
13874
13875 #. type: textblock
13876 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5901
13877 msgid "Sun disk labels."
13878 msgstr ""
13879
13880 #. type: =head2
13881 #: ../fish/guestfish-actions.pod:3796
13882 msgid "part-list"
13883 msgstr ""
13884
13885 #. type: verbatim
13886 #: ../fish/guestfish-actions.pod:3798
13887 #, no-wrap
13888 msgid ""
13889 " part-list device\n"
13890 "\n"
13891 msgstr ""
13892
13893 #. type: textblock
13894 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5915
13895 msgid ""
13896 "This command parses the partition table on C<device> and returns the list of "
13897 "partitions found."
13898 msgstr ""
13899
13900 #. type: textblock
13901 #: ../fish/guestfish-actions.pod:3803 ../src/guestfs-actions.pod:5918
13902 msgid "The fields in the returned structure are:"
13903 msgstr ""
13904
13905 #. type: =item
13906 #: ../fish/guestfish-actions.pod:3807 ../src/guestfs-actions.pod:5922
13907 msgid "B<part_num>"
13908 msgstr ""
13909
13910 #. type: textblock
13911 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5924
13912 msgid "Partition number, counting from 1."
13913 msgstr ""
13914
13915 #. type: =item
13916 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5926
13917 msgid "B<part_start>"
13918 msgstr ""
13919
13920 #. type: textblock
13921 #: ../fish/guestfish-actions.pod:3813
13922 msgid ""
13923 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13924 "the device's sector size, see L</blockdev-getss>."
13925 msgstr ""
13926
13927 #. type: =item
13928 #: ../fish/guestfish-actions.pod:3816 ../src/guestfs-actions.pod:5931
13929 msgid "B<part_end>"
13930 msgstr ""
13931
13932 #. type: textblock
13933 #: ../fish/guestfish-actions.pod:3818 ../src/guestfs-actions.pod:5933
13934 msgid "End of the partition in bytes."
13935 msgstr ""
13936
13937 #. type: =item
13938 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5935
13939 msgid "B<part_size>"
13940 msgstr ""
13941
13942 #. type: textblock
13943 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5937
13944 msgid "Size of the partition in bytes."
13945 msgstr ""
13946
13947 #. type: =head2
13948 #: ../fish/guestfish-actions.pod:3826
13949 msgid "part-set-bootable"
13950 msgstr ""
13951
13952 #. type: verbatim
13953 #: ../fish/guestfish-actions.pod:3828
13954 #, no-wrap
13955 msgid ""
13956 " part-set-bootable device partnum true|false\n"
13957 "\n"
13958 msgstr ""
13959
13960 #. type: textblock
13961 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5955
13962 msgid ""
13963 "This sets the bootable flag on partition numbered C<partnum> on device "
13964 "C<device>.  Note that partitions are numbered from 1."
13965 msgstr ""
13966
13967 #. type: textblock
13968 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5958
13969 msgid ""
13970 "The bootable flag is used by some operating systems (notably Windows) to "
13971 "determine which partition to boot from.  It is by no means universally "
13972 "recognized."
13973 msgstr ""
13974
13975 #. type: =head2
13976 #: ../fish/guestfish-actions.pod:3837
13977 msgid "part-set-mbr-id"
13978 msgstr ""
13979
13980 #. type: verbatim
13981 #: ../fish/guestfish-actions.pod:3839
13982 #, no-wrap
13983 msgid ""
13984 " part-set-mbr-id device partnum idbyte\n"
13985 "\n"
13986 msgstr ""
13987
13988 #. type: textblock
13989 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:5974
13990 msgid ""
13991 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13992 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13993 "documentation are in fact hexadecimal numbers, but usually documented "
13994 "without any leading \"0x\" which might be confusing."
13995 msgstr ""
13996
13997 #. type: =head2
13998 #: ../fish/guestfish-actions.pod:3851
13999 msgid "part-set-name"
14000 msgstr ""
14001
14002 #. type: verbatim
14003 #: ../fish/guestfish-actions.pod:3853
14004 #, no-wrap
14005 msgid ""
14006 " part-set-name device partnum name\n"
14007 "\n"
14008 msgstr ""
14009
14010 #. type: textblock
14011 #: ../fish/guestfish-actions.pod:3855 ../src/guestfs-actions.pod:5996
14012 msgid ""
14013 "This sets the partition name on partition numbered C<partnum> on device "
14014 "C<device>.  Note that partitions are numbered from 1."
14015 msgstr ""
14016
14017 #. type: textblock
14018 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5999
14019 msgid ""
14020 "The partition name can only be set on certain types of partition table.  "
14021 "This works on C<gpt> but not on C<mbr> partitions."
14022 msgstr ""
14023
14024 #. type: =head2
14025 #: ../fish/guestfish-actions.pod:3861
14026 msgid "part-to-dev"
14027 msgstr ""
14028
14029 #. type: verbatim
14030 #: ../fish/guestfish-actions.pod:3863
14031 #, no-wrap
14032 msgid ""
14033 " part-to-dev partition\n"
14034 "\n"
14035 msgstr ""
14036
14037 #. type: textblock
14038 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6012
14039 msgid ""
14040 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14041 "partition number, returning the device name (eg. \"/dev/sdb\")."
14042 msgstr ""
14043
14044 #. type: textblock
14045 #: ../fish/guestfish-actions.pod:3869 ../fish/guestfish-actions.pod:3881
14046 msgid ""
14047 "The named partition must exist, for example as a string returned from L</"
14048 "list-partitions>."
14049 msgstr ""
14050
14051 #. type: textblock
14052 #: ../fish/guestfish-actions.pod:3872
14053 msgid "See also L</part-to-partnum>."
14054 msgstr ""
14055
14056 #. type: =head2
14057 #: ../fish/guestfish-actions.pod:3874
14058 msgid "part-to-partnum"
14059 msgstr ""
14060
14061 #. type: verbatim
14062 #: ../fish/guestfish-actions.pod:3876
14063 #, no-wrap
14064 msgid ""
14065 " part-to-partnum partition\n"
14066 "\n"
14067 msgstr ""
14068
14069 #. type: textblock
14070 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6032
14071 msgid ""
14072 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14073 "partition number (eg. C<1>)."
14074 msgstr ""
14075
14076 #. type: textblock
14077 #: ../fish/guestfish-actions.pod:3884
14078 msgid "See also L</part-to-dev>."
14079 msgstr ""
14080
14081 #. type: =head2
14082 #: ../fish/guestfish-actions.pod:3886
14083 msgid "ping-daemon"
14084 msgstr ""
14085
14086 #. type: verbatim
14087 #: ../fish/guestfish-actions.pod:3888
14088 #, no-wrap
14089 msgid ""
14090 " ping-daemon\n"
14091 "\n"
14092 msgstr ""
14093
14094 #. type: textblock
14095 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6049
14096 msgid ""
14097 "This is a test probe into the guestfs daemon running inside the qemu "
14098 "subprocess.  Calling this function checks that the daemon responds to the "
14099 "ping message, without affecting the daemon or attached block device(s) in "
14100 "any other way."
14101 msgstr ""
14102
14103 #. type: =head2
14104 #: ../fish/guestfish-actions.pod:3895
14105 msgid "pread"
14106 msgstr ""
14107
14108 #. type: verbatim
14109 #: ../fish/guestfish-actions.pod:3897
14110 #, no-wrap
14111 msgid ""
14112 " pread path count offset\n"
14113 "\n"
14114 msgstr ""
14115
14116 #. type: textblock
14117 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6067
14118 msgid ""
14119 "This command lets you read part of a file.  It reads C<count> bytes of the "
14120 "file, starting at C<offset>, from file C<path>."
14121 msgstr ""
14122
14123 #. type: textblock
14124 #: ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:3917
14125 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6096
14126 msgid ""
14127 "This may read fewer bytes than requested.  For further details see the "
14128 "L<pread(2)> system call."
14129 msgstr ""
14130
14131 #. type: textblock
14132 #: ../fish/guestfish-actions.pod:3905
14133 msgid "See also L</pwrite>, L</pread-device>."
14134 msgstr ""
14135
14136 #. type: =head2
14137 #: ../fish/guestfish-actions.pod:3910
14138 msgid "pread-device"
14139 msgstr ""
14140
14141 #. type: verbatim
14142 #: ../fish/guestfish-actions.pod:3912
14143 #, no-wrap
14144 msgid ""
14145 " pread-device device count offset\n"
14146 "\n"
14147 msgstr ""
14148
14149 #. type: textblock
14150 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6093
14151 msgid ""
14152 "This command lets you read part of a file.  It reads C<count> bytes of "
14153 "C<device>, starting at C<offset>."
14154 msgstr ""
14155
14156 #. type: textblock
14157 #: ../fish/guestfish-actions.pod:3920
14158 msgid "See also L</pread>."
14159 msgstr ""
14160
14161 #. type: =head2
14162 #: ../fish/guestfish-actions.pod:3925
14163 msgid "pvcreate"
14164 msgstr ""
14165
14166 #. type: verbatim
14167 #: ../fish/guestfish-actions.pod:3927
14168 #, no-wrap
14169 msgid ""
14170 " pvcreate device\n"
14171 "\n"
14172 msgstr ""
14173
14174 #. type: textblock
14175 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6116
14176 msgid ""
14177 "This creates an LVM physical volume on the named C<device>, where C<device> "
14178 "should usually be a partition name such as C</dev/sda1>."
14179 msgstr ""
14180
14181 #. type: =head2
14182 #: ../fish/guestfish-actions.pod:3933
14183 msgid "pvremove"
14184 msgstr ""
14185
14186 #. type: verbatim
14187 #: ../fish/guestfish-actions.pod:3935
14188 #, no-wrap
14189 msgid ""
14190 " pvremove device\n"
14191 "\n"
14192 msgstr ""
14193
14194 #. type: textblock
14195 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6130
14196 msgid ""
14197 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14198 "it."
14199 msgstr ""
14200
14201 #. type: textblock
14202 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6133
14203 msgid ""
14204 "The implementation uses the C<pvremove> command which refuses to wipe "
14205 "physical volumes that contain any volume groups, so you have to remove those "
14206 "first."
14207 msgstr ""
14208
14209 #. type: =head2
14210 #: ../fish/guestfish-actions.pod:3944
14211 msgid "pvresize"
14212 msgstr ""
14213
14214 #. type: verbatim
14215 #: ../fish/guestfish-actions.pod:3946
14216 #, no-wrap
14217 msgid ""
14218 " pvresize device\n"
14219 "\n"
14220 msgstr ""
14221
14222 #. type: textblock
14223 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6147
14224 msgid ""
14225 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14226 "the new size of the underlying device."
14227 msgstr ""
14228
14229 #. type: =head2
14230 #: ../fish/guestfish-actions.pod:3951
14231 msgid "pvresize-size"
14232 msgstr ""
14233
14234 #. type: verbatim
14235 #: ../fish/guestfish-actions.pod:3953
14236 #, no-wrap
14237 msgid ""
14238 " pvresize-size device size\n"
14239 "\n"
14240 msgstr ""
14241
14242 #. type: textblock
14243 #: ../fish/guestfish-actions.pod:3955
14244 msgid ""
14245 "This command is the same as L</pvresize> except that it allows you to "
14246 "specify the new size (in bytes) explicitly."
14247 msgstr ""
14248
14249 #. type: =head2
14250 #: ../fish/guestfish-actions.pod:3958
14251 msgid "pvs"
14252 msgstr ""
14253
14254 #. type: verbatim
14255 #: ../fish/guestfish-actions.pod:3960
14256 #, no-wrap
14257 msgid ""
14258 " pvs\n"
14259 "\n"
14260 msgstr ""
14261
14262 #. type: textblock
14263 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6173
14264 msgid ""
14265 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14266 "(8)> command."
14267 msgstr ""
14268
14269 #. type: textblock
14270 #: ../fish/guestfish-actions.pod:3965 ../src/guestfs-actions.pod:6176
14271 msgid ""
14272 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14273 "sda2>)."
14274 msgstr ""
14275
14276 #. type: textblock
14277 #: ../fish/guestfish-actions.pod:3968
14278 msgid "See also L</pvs-full>."
14279 msgstr ""
14280
14281 #. type: =head2
14282 #: ../fish/guestfish-actions.pod:3970
14283 msgid "pvs-full"
14284 msgstr ""
14285
14286 #. type: verbatim
14287 #: ../fish/guestfish-actions.pod:3972
14288 #, no-wrap
14289 msgid ""
14290 " pvs-full\n"
14291 "\n"
14292 msgstr ""
14293
14294 #. type: textblock
14295 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6192
14296 msgid ""
14297 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14298 "(8)> command.  The \"full\" version includes all fields."
14299 msgstr ""
14300
14301 #. type: =head2
14302 #: ../fish/guestfish-actions.pod:3977
14303 msgid "pvuuid"
14304 msgstr ""
14305
14306 #. type: verbatim
14307 #: ../fish/guestfish-actions.pod:3979
14308 #, no-wrap
14309 msgid ""
14310 " pvuuid device\n"
14311 "\n"
14312 msgstr ""
14313
14314 #. type: textblock
14315 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6207
14316 msgid "This command returns the UUID of the LVM PV C<device>."
14317 msgstr ""
14318
14319 #. type: =head2
14320 #: ../fish/guestfish-actions.pod:3983
14321 msgid "pwrite"
14322 msgstr ""
14323
14324 #. type: verbatim
14325 #: ../fish/guestfish-actions.pod:3985
14326 #, no-wrap
14327 msgid ""
14328 " pwrite path content offset\n"
14329 "\n"
14330 msgstr ""
14331
14332 #. type: textblock
14333 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6223
14334 msgid ""
14335 "This command writes to part of a file.  It writes the data buffer C<content> "
14336 "to the file C<path> starting at offset C<offset>."
14337 msgstr ""
14338
14339 #. type: textblock
14340 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6226
14341 msgid ""
14342 "This command implements the L<pwrite(2)> system call, and like that system "
14343 "call it may not write the full data requested.  The return value is the "
14344 "number of bytes that were actually written to the file.  This could even be "
14345 "0, although short writes are unlikely for regular files in ordinary "
14346 "circumstances."
14347 msgstr ""
14348
14349 #. type: textblock
14350 #: ../fish/guestfish-actions.pod:3996
14351 msgid "See also L</pread>, L</pwrite-device>."
14352 msgstr ""
14353
14354 #. type: =head2
14355 #: ../fish/guestfish-actions.pod:4001
14356 msgid "pwrite-device"
14357 msgstr ""
14358
14359 #. type: verbatim
14360 #: ../fish/guestfish-actions.pod:4003
14361 #, no-wrap
14362 msgid ""
14363 " pwrite-device device content offset\n"
14364 "\n"
14365 msgstr ""
14366
14367 #. type: textblock
14368 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6250
14369 msgid ""
14370 "This command writes to part of a device.  It writes the data buffer "
14371 "C<content> to C<device> starting at offset C<offset>."
14372 msgstr ""
14373
14374 #. type: textblock
14375 #: ../fish/guestfish-actions.pod:4008 ../src/guestfs-actions.pod:6253
14376 msgid ""
14377 "This command implements the L<pwrite(2)> system call, and like that system "
14378 "call it may not write the full data requested (although short writes to disk "
14379 "devices and partitions are probably impossible with standard Linux kernels)."
14380 msgstr ""
14381
14382 #. type: textblock
14383 #: ../fish/guestfish-actions.pod:4013
14384 msgid "See also L</pwrite>."
14385 msgstr ""
14386
14387 #. type: =head2
14388 #: ../fish/guestfish-actions.pod:4018
14389 msgid "read-file"
14390 msgstr ""
14391
14392 #. type: verbatim
14393 #: ../fish/guestfish-actions.pod:4020
14394 #, no-wrap
14395 msgid ""
14396 " read-file path\n"
14397 "\n"
14398 msgstr ""
14399
14400 #. type: textblock
14401 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6274
14402 msgid "This calls returns the contents of the file C<path> as a buffer."
14403 msgstr ""
14404
14405 #. type: textblock
14406 #: ../fish/guestfish-actions.pod:4025
14407 msgid ""
14408 "Unlike L</cat>, this function can correctly handle files that contain "
14409 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14410 "is limited in the total size of file that can be handled."
14411 msgstr ""
14412
14413 #. type: =head2
14414 #: ../fish/guestfish-actions.pod:4033
14415 msgid "read-lines"
14416 msgstr ""
14417
14418 #. type: verbatim
14419 #: ../fish/guestfish-actions.pod:4035
14420 #, no-wrap
14421 msgid ""
14422 " read-lines path\n"
14423 "\n"
14424 msgstr ""
14425
14426 #. type: textblock
14427 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6299
14428 msgid ""
14429 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14430 "C<CRLF> character sequences are I<not> returned."
14431 msgstr ""
14432
14433 #. type: textblock
14434 #: ../fish/guestfish-actions.pod:4042
14435 msgid ""
14436 "Note that this function cannot correctly handle binary files (specifically, "
14437 "files containing C<\\0> character which is treated as end of line).  For "
14438 "those you need to use the L</read-file> function which has a more complex "
14439 "interface."
14440 msgstr ""
14441
14442 #. type: =head2
14443 #: ../fish/guestfish-actions.pod:4047
14444 msgid "readdir"
14445 msgstr ""
14446
14447 #. type: verbatim
14448 #: ../fish/guestfish-actions.pod:4049
14449 #, no-wrap
14450 msgid ""
14451 " readdir dir\n"
14452 "\n"
14453 msgstr ""
14454
14455 #. type: textblock
14456 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6319
14457 msgid "This returns the list of directory entries in directory C<dir>."
14458 msgstr ""
14459
14460 #. type: textblock
14461 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6321
14462 msgid ""
14463 "All entries in the directory are returned, including C<.> and C<..>.  The "
14464 "entries are I<not> sorted, but returned in the same order as the underlying "
14465 "filesystem."
14466 msgstr ""
14467
14468 #. type: textblock
14469 #: ../fish/guestfish-actions.pod:4057 ../src/guestfs-actions.pod:6325
14470 msgid ""
14471 "Also this call returns basic file type information about each file.  The "
14472 "C<ftyp> field will contain one of the following characters:"
14473 msgstr ""
14474
14475 #. type: =item
14476 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6330
14477 msgid "'b'"
14478 msgstr ""
14479
14480 #. type: textblock
14481 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6332
14482 msgid "Block special"
14483 msgstr ""
14484
14485 #. type: =item
14486 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6334
14487 msgid "'c'"
14488 msgstr ""
14489
14490 #. type: textblock
14491 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6336
14492 msgid "Char special"
14493 msgstr ""
14494
14495 #. type: =item
14496 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6338
14497 msgid "'d'"
14498 msgstr ""
14499
14500 #. type: textblock
14501 #: ../fish/guestfish-actions.pod:4072 ../src/guestfs-actions.pod:6340
14502 msgid "Directory"
14503 msgstr ""
14504
14505 #. type: =item
14506 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6342
14507 msgid "'f'"
14508 msgstr ""
14509
14510 #. type: textblock
14511 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6344
14512 msgid "FIFO (named pipe)"
14513 msgstr ""
14514
14515 #. type: =item
14516 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6346
14517 msgid "'l'"
14518 msgstr ""
14519
14520 #. type: textblock
14521 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6348
14522 msgid "Symbolic link"
14523 msgstr ""
14524
14525 #. type: =item
14526 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6350
14527 msgid "'r'"
14528 msgstr ""
14529
14530 #. type: textblock
14531 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6352
14532 msgid "Regular file"
14533 msgstr ""
14534
14535 #. type: =item
14536 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6354
14537 msgid "'s'"
14538 msgstr ""
14539
14540 #. type: textblock
14541 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6356
14542 msgid "Socket"
14543 msgstr ""
14544
14545 #. type: =item
14546 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6358
14547 msgid "'u'"
14548 msgstr ""
14549
14550 #. type: textblock
14551 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6360
14552 msgid "Unknown file type"
14553 msgstr ""
14554
14555 #. type: =item
14556 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6362
14557 msgid "'?'"
14558 msgstr ""
14559
14560 #. type: textblock
14561 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6364
14562 msgid ""
14563 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14564 msgstr ""
14565
14566 #. type: textblock
14567 #: ../fish/guestfish-actions.pod:4101
14568 msgid ""
14569 "This function is primarily intended for use by programs.  To get a simple "
14570 "list of names, use L</ls>.  To get a printable directory for human "
14571 "consumption, use L</ll>."
14572 msgstr ""
14573
14574 #. type: =head2
14575 #: ../fish/guestfish-actions.pod:4105
14576 msgid "readlink"
14577 msgstr ""
14578
14579 #. type: verbatim
14580 #: ../fish/guestfish-actions.pod:4107
14581 #, no-wrap
14582 msgid ""
14583 " readlink path\n"
14584 "\n"
14585 msgstr ""
14586
14587 #. type: textblock
14588 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6385
14589 msgid "This command reads the target of a symbolic link."
14590 msgstr ""
14591
14592 #. type: =head2
14593 #: ../fish/guestfish-actions.pod:4111
14594 msgid "readlinklist"
14595 msgstr ""
14596
14597 #. type: verbatim
14598 #: ../fish/guestfish-actions.pod:4113
14599 #, no-wrap
14600 msgid ""
14601 " readlinklist path 'names ...'\n"
14602 "\n"
14603 msgstr ""
14604
14605 #. type: textblock
14606 #: ../fish/guestfish-actions.pod:4115 ../src/guestfs-actions.pod:6399
14607 msgid ""
14608 "This call allows you to do a C<readlink> operation on multiple files, where "
14609 "all files are in the directory C<path>.  C<names> is the list of files from "
14610 "this directory."
14611 msgstr ""
14612
14613 #. type: textblock
14614 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6403
14615 msgid ""
14616 "On return you get a list of strings, with a one-to-one correspondence to the "
14617 "C<names> list.  Each string is the value of the symbolic link."
14618 msgstr ""
14619
14620 #. type: textblock
14621 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6407
14622 msgid ""
14623 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14624 "result string is the empty string C<\"\">.  However the whole operation is "
14625 "completed even if there were C<readlink(2)> errors, and so you can call this "
14626 "function with names where you don't know if they are symbolic links already "
14627 "(albeit slightly less efficient)."
14628 msgstr ""
14629
14630 #. type: textblock
14631 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6414
14632 msgid ""
14633 "This call is intended for programs that want to efficiently list a directory "
14634 "contents without making many round-trips.  Very long directory listings "
14635 "might cause the protocol message size to be exceeded, causing this call to "
14636 "fail.  The caller must split up such requests into smaller groups of names."
14637 msgstr ""
14638
14639 #. type: =head2
14640 #: ../fish/guestfish-actions.pod:4137
14641 msgid "realpath"
14642 msgstr ""
14643
14644 #. type: verbatim
14645 #: ../fish/guestfish-actions.pod:4139
14646 #, no-wrap
14647 msgid ""
14648 " realpath path\n"
14649 "\n"
14650 msgstr ""
14651
14652 #. type: textblock
14653 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6433
14654 msgid ""
14655 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14656 "has no C<.>, C<..> or symbolic link path elements."
14657 msgstr ""
14658
14659 #. type: =head2
14660 #: ../fish/guestfish-actions.pod:4144
14661 msgid "removexattr"
14662 msgstr ""
14663
14664 #. type: verbatim
14665 #: ../fish/guestfish-actions.pod:4146
14666 #, no-wrap
14667 msgid ""
14668 " removexattr xattr path\n"
14669 "\n"
14670 msgstr ""
14671
14672 #. type: textblock
14673 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6448
14674 msgid ""
14675 "This call removes the extended attribute named C<xattr> of the file C<path>."
14676 msgstr ""
14677
14678 #. type: textblock
14679 #: ../fish/guestfish-actions.pod:4151
14680 msgid "See also: L</lremovexattr>, L<attr(5)>."
14681 msgstr ""
14682
14683 #. type: =head2
14684 #: ../fish/guestfish-actions.pod:4153
14685 msgid "resize2fs"
14686 msgstr ""
14687
14688 #. type: verbatim
14689 #: ../fish/guestfish-actions.pod:4155
14690 #, no-wrap
14691 msgid ""
14692 " resize2fs device\n"
14693 "\n"
14694 msgstr ""
14695
14696 #. type: textblock
14697 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6463
14698 msgid ""
14699 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14700 "underlying device."
14701 msgstr ""
14702
14703 #. type: textblock
14704 #: ../fish/guestfish-actions.pod:4160
14705 msgid ""
14706 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14707 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14708 "gives an error about this and sometimes not.  In any case, it is always safe "
14709 "to call L</e2fsck-f> before calling this function."
14710 msgstr ""
14711
14712 #. type: =head2
14713 #: ../fish/guestfish-actions.pod:4166
14714 msgid "resize2fs-M"
14715 msgstr ""
14716
14717 #. type: verbatim
14718 #: ../fish/guestfish-actions.pod:4168
14719 #, no-wrap
14720 msgid ""
14721 " resize2fs-M device\n"
14722 "\n"
14723 msgstr ""
14724
14725 #. type: textblock
14726 #: ../fish/guestfish-actions.pod:4170
14727 msgid ""
14728 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14729 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14730 "command."
14731 msgstr ""
14732
14733 #. type: textblock
14734 #: ../fish/guestfish-actions.pod:4174
14735 msgid ""
14736 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14737 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14738 "multiplied together, give the resulting size of the minimal filesystem in "
14739 "bytes."
14740 msgstr ""
14741
14742 #. type: =head2
14743 #: ../fish/guestfish-actions.pod:4179
14744 msgid "resize2fs-size"
14745 msgstr ""
14746
14747 #. type: verbatim
14748 #: ../fish/guestfish-actions.pod:4181
14749 #, no-wrap
14750 msgid ""
14751 " resize2fs-size device size\n"
14752 "\n"
14753 msgstr ""
14754
14755 #. type: textblock
14756 #: ../fish/guestfish-actions.pod:4183
14757 msgid ""
14758 "This command is the same as L</resize2fs> except that it allows you to "
14759 "specify the new size (in bytes) explicitly."
14760 msgstr ""
14761
14762 #. type: =head2
14763 #: ../fish/guestfish-actions.pod:4186
14764 msgid "rm"
14765 msgstr ""
14766
14767 #. type: verbatim
14768 #: ../fish/guestfish-actions.pod:4188
14769 #, no-wrap
14770 msgid ""
14771 " rm path\n"
14772 "\n"
14773 msgstr ""
14774
14775 #. type: textblock
14776 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6515
14777 msgid "Remove the single file C<path>."
14778 msgstr ""
14779
14780 #. type: =head2
14781 #: ../fish/guestfish-actions.pod:4192
14782 msgid "rm-rf"
14783 msgstr ""
14784
14785 #. type: verbatim
14786 #: ../fish/guestfish-actions.pod:4194
14787 #, no-wrap
14788 msgid ""
14789 " rm-rf path\n"
14790 "\n"
14791 msgstr ""
14792
14793 #. type: textblock
14794 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6527
14795 msgid ""
14796 "Remove the file or directory C<path>, recursively removing the contents if "
14797 "its a directory.  This is like the C<rm -rf> shell command."
14798 msgstr ""
14799
14800 #. type: =head2
14801 #: ../fish/guestfish-actions.pod:4200
14802 msgid "rmdir"
14803 msgstr ""
14804
14805 #. type: verbatim
14806 #: ../fish/guestfish-actions.pod:4202
14807 #, no-wrap
14808 msgid ""
14809 " rmdir path\n"
14810 "\n"
14811 msgstr ""
14812
14813 #. type: textblock
14814 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6541
14815 msgid "Remove the single directory C<path>."
14816 msgstr ""
14817
14818 #. type: =head2
14819 #: ../fish/guestfish-actions.pod:4206
14820 msgid "rmmountpoint"
14821 msgstr ""
14822
14823 #. type: verbatim
14824 #: ../fish/guestfish-actions.pod:4208
14825 #, no-wrap
14826 msgid ""
14827 " rmmountpoint exemptpath\n"
14828 "\n"
14829 msgstr ""
14830
14831 #. type: textblock
14832 #: ../fish/guestfish-actions.pod:4210
14833 msgid ""
14834 "This calls removes a mountpoint that was previously created with L</"
14835 "mkmountpoint>.  See L</mkmountpoint> for full details."
14836 msgstr ""
14837
14838 #. type: =head2
14839 #: ../fish/guestfish-actions.pod:4214
14840 msgid "scrub-device"
14841 msgstr ""
14842
14843 #. type: verbatim
14844 #: ../fish/guestfish-actions.pod:4216
14845 #, no-wrap
14846 msgid ""
14847 " scrub-device device\n"
14848 "\n"
14849 msgstr ""
14850
14851 #. type: textblock
14852 #: ../fish/guestfish-actions.pod:4218 ../src/guestfs-actions.pod:6567
14853 msgid ""
14854 "This command writes patterns over C<device> to make data retrieval more "
14855 "difficult."
14856 msgstr ""
14857
14858 #. type: textblock
14859 #: ../fish/guestfish-actions.pod:4221 ../fish/guestfish-actions.pod:4233
14860 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6570
14861 #: ../src/guestfs-actions.pod:6588 ../src/guestfs-actions.pod:6607
14862 msgid ""
14863 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14864 "more details."
14865 msgstr ""
14866
14867 #. type: =head2
14868 #: ../fish/guestfish-actions.pod:4224
14869 msgid "scrub-file"
14870 msgstr ""
14871
14872 #. type: verbatim
14873 #: ../fish/guestfish-actions.pod:4226
14874 #, no-wrap
14875 msgid ""
14876 " scrub-file file\n"
14877 "\n"
14878 msgstr ""
14879
14880 #. type: textblock
14881 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6583
14882 msgid ""
14883 "This command writes patterns over a file to make data retrieval more "
14884 "difficult."
14885 msgstr ""
14886
14887 #. type: textblock
14888 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6586
14889 msgid "The file is I<removed> after scrubbing."
14890 msgstr ""
14891
14892 #. type: =head2
14893 #: ../fish/guestfish-actions.pod:4236
14894 msgid "scrub-freespace"
14895 msgstr ""
14896
14897 #. type: verbatim
14898 #: ../fish/guestfish-actions.pod:4238
14899 #, no-wrap
14900 msgid ""
14901 " scrub-freespace dir\n"
14902 "\n"
14903 msgstr ""
14904
14905 #. type: textblock
14906 #: ../fish/guestfish-actions.pod:4240
14907 msgid ""
14908 "This command creates the directory C<dir> and then fills it with files until "
14909 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14910 "deletes them.  The intention is to scrub any free space on the partition "
14911 "containing C<dir>."
14912 msgstr ""
14913
14914 #. type: =head2
14915 #: ../fish/guestfish-actions.pod:4249
14916 msgid "set-append"
14917 msgstr ""
14918
14919 #. type: =head2
14920 #: ../fish/guestfish-actions.pod:4251
14921 msgid "append"
14922 msgstr ""
14923
14924 #. type: verbatim
14925 #: ../fish/guestfish-actions.pod:4253
14926 #, no-wrap
14927 msgid ""
14928 " set-append append\n"
14929 "\n"
14930 msgstr ""
14931
14932 #. type: textblock
14933 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6620
14934 msgid ""
14935 "This function is used to add additional options to the guest kernel command "
14936 "line."
14937 msgstr ""
14938
14939 #. type: textblock
14940 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6623
14941 msgid ""
14942 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14943 "environment variable."
14944 msgstr ""
14945
14946 #. type: textblock
14947 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6626
14948 msgid ""
14949 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14950 "(libguestfs always adds a few of its own)."
14951 msgstr ""
14952
14953 #. type: =head2
14954 #: ../fish/guestfish-actions.pod:4264
14955 msgid "set-attach-method"
14956 msgstr ""
14957
14958 #. type: =head2
14959 #: ../fish/guestfish-actions.pod:4266
14960 msgid "attach-method"
14961 msgstr ""
14962
14963 #. type: verbatim
14964 #: ../fish/guestfish-actions.pod:4268
14965 #, no-wrap
14966 msgid ""
14967 " set-attach-method attachmethod\n"
14968 "\n"
14969 msgstr ""
14970
14971 #. type: textblock
14972 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6639
14973 msgid ""
14974 "Set the method that libguestfs uses to connect to the back end guestfsd "
14975 "daemon.  Possible methods are:"
14976 msgstr ""
14977
14978 #. type: =item
14979 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6644
14980 #: ../src/guestfs.pod:2916
14981 msgid "C<appliance>"
14982 msgstr ""
14983
14984 #. type: textblock
14985 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6646
14986 msgid ""
14987 "Launch an appliance and connect to it.  This is the ordinary method and the "
14988 "default."
14989 msgstr ""
14990
14991 #. type: =item
14992 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6649
14993 msgid "C<unix:I<path>>"
14994 msgstr ""
14995
14996 #. type: textblock
14997 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6651
14998 msgid "Connect to the Unix domain socket I<path>."
14999 msgstr ""
15000
15001 #. type: textblock
15002 #: ../fish/guestfish-actions.pod:4284 ../src/guestfs-actions.pod:6653
15003 msgid ""
15004 "This method lets you connect to an existing daemon or (using virtio-serial) "
15005 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15006 "RUNNING DAEMONS>."
15007 msgstr ""
15008
15009 #. type: =head2
15010 #: ../fish/guestfish-actions.pod:4290
15011 msgid "set-autosync"
15012 msgstr ""
15013
15014 #. type: =head2
15015 #: ../fish/guestfish-actions.pod:4292
15016 msgid "autosync"
15017 msgstr ""
15018
15019 #. type: verbatim
15020 #: ../fish/guestfish-actions.pod:4294
15021 #, no-wrap
15022 msgid ""
15023 " set-autosync true|false\n"
15024 "\n"
15025 msgstr ""
15026
15027 #. type: textblock
15028 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6669
15029 msgid ""
15030 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15031 "effort attempt to make filesystems consistent and synchronized when the "
15032 "handle is closed (also if the program exits without closing handles)."
15033 msgstr ""
15034
15035 #. type: textblock
15036 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6674
15037 msgid ""
15038 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15039 "disabled by default)."
15040 msgstr ""
15041
15042 #. type: =head2
15043 #: ../fish/guestfish-actions.pod:4304
15044 msgid "set-direct"
15045 msgstr ""
15046
15047 #. type: =head2
15048 #: ../fish/guestfish-actions.pod:4306
15049 msgid "direct"
15050 msgstr ""
15051
15052 #. type: verbatim
15053 #: ../fish/guestfish-actions.pod:4308
15054 #, no-wrap
15055 msgid ""
15056 " set-direct true|false\n"
15057 "\n"
15058 msgstr ""
15059
15060 #. type: textblock
15061 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6687
15062 msgid ""
15063 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15064 "passed directly through to the appliance once it is launched."
15065 msgstr ""
15066
15067 #. type: textblock
15068 #: ../fish/guestfish-actions.pod:4314
15069 msgid ""
15070 "One consequence of this is that log messages aren't caught by the library "
15071 "and handled by L</set-log-message-callback>, but go straight to stdout."
15072 msgstr ""
15073
15074 #. type: textblock
15075 #: ../fish/guestfish-actions.pod:4318 ../src/guestfs-actions.pod:6695
15076 msgid "You probably don't want to use this unless you know what you are doing."
15077 msgstr ""
15078
15079 #. type: textblock
15080 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6698
15081 msgid "The default is disabled."
15082 msgstr ""
15083
15084 #. type: =head2
15085 #: ../fish/guestfish-actions.pod:4323
15086 msgid "set-e2label"
15087 msgstr ""
15088
15089 #. type: verbatim
15090 #: ../fish/guestfish-actions.pod:4325
15091 #, no-wrap
15092 msgid ""
15093 " set-e2label device label\n"
15094 "\n"
15095 msgstr ""
15096
15097 #. type: textblock
15098 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6711
15099 msgid ""
15100 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15101 "C<label>.  Filesystem labels are limited to 16 characters."
15102 msgstr ""
15103
15104 #. type: textblock
15105 #: ../fish/guestfish-actions.pod:4331
15106 msgid ""
15107 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15108 "label on a filesystem."
15109 msgstr ""
15110
15111 #. type: =head2
15112 #: ../fish/guestfish-actions.pod:4334
15113 msgid "set-e2uuid"
15114 msgstr ""
15115
15116 #. type: verbatim
15117 #: ../fish/guestfish-actions.pod:4336
15118 #, no-wrap
15119 msgid ""
15120 " set-e2uuid device uuid\n"
15121 "\n"
15122 msgstr ""
15123
15124 #. type: textblock
15125 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6729
15126 msgid ""
15127 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15128 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15129 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15130 msgstr ""
15131
15132 #. type: textblock
15133 #: ../fish/guestfish-actions.pod:4343
15134 msgid ""
15135 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15136 "UUID of a filesystem."
15137 msgstr ""
15138
15139 #. type: =head2
15140 #: ../fish/guestfish-actions.pod:4346
15141 msgid "set-memsize"
15142 msgstr ""
15143
15144 #. type: =head2
15145 #: ../fish/guestfish-actions.pod:4348
15146 msgid "memsize"
15147 msgstr ""
15148
15149 #. type: verbatim
15150 #: ../fish/guestfish-actions.pod:4350
15151 #, no-wrap
15152 msgid ""
15153 " set-memsize memsize\n"
15154 "\n"
15155 msgstr ""
15156
15157 #. type: textblock
15158 #: ../fish/guestfish-actions.pod:4352
15159 msgid ""
15160 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15161 "This only has any effect if called before L</launch>."
15162 msgstr ""
15163
15164 #. type: textblock
15165 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6751
15166 msgid ""
15167 "You can also change this by setting the environment variable "
15168 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15169 msgstr ""
15170
15171 #. type: =head2
15172 #: ../fish/guestfish-actions.pod:4363
15173 msgid "set-network"
15174 msgstr ""
15175
15176 #. type: =head2
15177 #: ../fish/guestfish-actions.pod:4365
15178 msgid "network"
15179 msgstr ""
15180
15181 #. type: verbatim
15182 #: ../fish/guestfish-actions.pod:4367
15183 #, no-wrap
15184 msgid ""
15185 " set-network true|false\n"
15186 "\n"
15187 msgstr ""
15188
15189 #. type: textblock
15190 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6768
15191 msgid ""
15192 "If C<network> is true, then the network is enabled in the libguestfs "
15193 "appliance.  The default is false."
15194 msgstr ""
15195
15196 #. type: textblock
15197 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6771
15198 msgid ""
15199 "This affects whether commands are able to access the network (see L<guestfs"
15200 "(3)/RUNNING COMMANDS>)."
15201 msgstr ""
15202
15203 #. type: textblock
15204 #: ../fish/guestfish-actions.pod:4375
15205 msgid ""
15206 "You must call this before calling L</launch>, otherwise it has no effect."
15207 msgstr ""
15208
15209 #. type: =head2
15210 #: ../fish/guestfish-actions.pod:4378
15211 msgid "set-path"
15212 msgstr ""
15213
15214 #. type: verbatim
15215 #: ../fish/guestfish-actions.pod:4382
15216 #, no-wrap
15217 msgid ""
15218 " set-path searchpath\n"
15219 "\n"
15220 msgstr ""
15221
15222 #. type: textblock
15223 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6787
15224 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15225 msgstr ""
15226
15227 #. type: textblock
15228 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6789
15229 msgid ""
15230 "The default is C<$libdir/guestfs> unless overridden by setting "
15231 "C<LIBGUESTFS_PATH> environment variable."
15232 msgstr ""
15233
15234 #. type: textblock
15235 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6792
15236 msgid "Setting C<path> to C<NULL> restores the default path."
15237 msgstr ""
15238
15239 #. type: =head2
15240 #: ../fish/guestfish-actions.pod:4391
15241 msgid "set-pgroup"
15242 msgstr ""
15243
15244 #. type: =head2
15245 #: ../fish/guestfish-actions.pod:4393
15246 msgid "pgroup"
15247 msgstr ""
15248
15249 #. type: verbatim
15250 #: ../fish/guestfish-actions.pod:4395
15251 #, no-wrap
15252 msgid ""
15253 " set-pgroup true|false\n"
15254 "\n"
15255 msgstr ""
15256
15257 #. type: textblock
15258 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6804
15259 msgid ""
15260 "If C<pgroup> is true, child processes are placed into their own process "
15261 "group."
15262 msgstr ""
15263
15264 #. type: textblock
15265 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6807
15266 msgid ""
15267 "The practical upshot of this is that signals like C<SIGINT> (from users "
15268 "pressing C<^C>) won't be received by the child process."
15269 msgstr ""
15270
15271 #. type: textblock
15272 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6810
15273 msgid ""
15274 "The default for this flag is false, because usually you want C<^C> to kill "
15275 "the subprocess."
15276 msgstr ""
15277
15278 #. type: =head2
15279 #: ../fish/guestfish-actions.pod:4406
15280 msgid "set-qemu"
15281 msgstr ""
15282
15283 #. type: =head2
15284 #: ../fish/guestfish-actions.pod:4408
15285 msgid "qemu"
15286 msgstr ""
15287
15288 #. type: verbatim
15289 #: ../fish/guestfish-actions.pod:4410
15290 #, no-wrap
15291 msgid ""
15292 " set-qemu qemu\n"
15293 "\n"
15294 msgstr ""
15295
15296 #. type: textblock
15297 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6823
15298 msgid "Set the qemu binary that we will use."
15299 msgstr ""
15300
15301 #. type: textblock
15302 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6825
15303 msgid ""
15304 "The default is chosen when the library was compiled by the configure script."
15305 msgstr ""
15306
15307 #. type: textblock
15308 #: ../fish/guestfish-actions.pod:4417 ../src/guestfs-actions.pod:6828
15309 msgid ""
15310 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15311 "variable."
15312 msgstr ""
15313
15314 #. type: textblock
15315 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6831
15316 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15317 msgstr ""
15318
15319 #. type: textblock
15320 #: ../fish/guestfish-actions.pod:4422 ../src/guestfs-actions.pod:6833
15321 msgid ""
15322 "Note that you should call this function as early as possible after creating "
15323 "the handle.  This is because some pre-launch operations depend on testing "
15324 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15325 "don't retest features, and so you might see inconsistent results.  Using the "
15326 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15327 "the qemu binary at the same time as the handle is created."
15328 msgstr ""
15329
15330 #. type: =head2
15331 #: ../fish/guestfish-actions.pod:4430
15332 msgid "set-recovery-proc"
15333 msgstr ""
15334
15335 #. type: =head2
15336 #: ../fish/guestfish-actions.pod:4432
15337 msgid "recovery-proc"
15338 msgstr ""
15339
15340 #. type: verbatim
15341 #: ../fish/guestfish-actions.pod:4434
15342 #, no-wrap
15343 msgid ""
15344 " set-recovery-proc true|false\n"
15345 "\n"
15346 msgstr ""
15347
15348 #. type: textblock
15349 #: ../fish/guestfish-actions.pod:4436
15350 msgid ""
15351 "If this is called with the parameter C<false> then L</launch> does not "
15352 "create a recovery process.  The purpose of the recovery process is to stop "
15353 "runaway qemu processes in the case where the main program aborts abruptly."
15354 msgstr ""
15355
15356 #. type: textblock
15357 #: ../fish/guestfish-actions.pod:4441
15358 msgid ""
15359 "This only has any effect if called before L</launch>, and the default is "
15360 "true."
15361 msgstr ""
15362
15363 #. type: textblock
15364 #: ../fish/guestfish-actions.pod:4444 ../src/guestfs-actions.pod:6859
15365 msgid ""
15366 "About the only time when you would want to disable this is if the main "
15367 "process will fork itself into the background (\"daemonize\" itself).  In "
15368 "this case the recovery process thinks that the main program has disappeared "
15369 "and so kills qemu, which is not very helpful."
15370 msgstr ""
15371
15372 #. type: =head2
15373 #: ../fish/guestfish-actions.pod:4450
15374 msgid "set-selinux"
15375 msgstr ""
15376
15377 #. type: =head2
15378 #: ../fish/guestfish-actions.pod:4452
15379 msgid "selinux"
15380 msgstr ""
15381
15382 #. type: verbatim
15383 #: ../fish/guestfish-actions.pod:4454
15384 #, no-wrap
15385 msgid ""
15386 " set-selinux true|false\n"
15387 "\n"
15388 msgstr ""
15389
15390 #. type: textblock
15391 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6875
15392 msgid ""
15393 "This sets the selinux flag that is passed to the appliance at boot time.  "
15394 "The default is C<selinux=0> (disabled)."
15395 msgstr ""
15396
15397 #. type: textblock
15398 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6878
15399 msgid ""
15400 "Note that if SELinux is enabled, it is always in Permissive mode "
15401 "(C<enforcing=0>)."
15402 msgstr ""
15403
15404 #. type: =head2
15405 #: ../fish/guestfish-actions.pod:4465
15406 msgid "set-smp"
15407 msgstr ""
15408
15409 #. type: =head2
15410 #: ../fish/guestfish-actions.pod:4467
15411 msgid "smp"
15412 msgstr ""
15413
15414 #. type: verbatim
15415 #: ../fish/guestfish-actions.pod:4469
15416 #, no-wrap
15417 msgid ""
15418 " set-smp smp\n"
15419 "\n"
15420 msgstr ""
15421
15422 #. type: textblock
15423 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6894
15424 msgid ""
15425 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15426 "C<1>.  Increasing this may improve performance, though often it has no "
15427 "effect."
15428 msgstr ""
15429
15430 #. type: textblock
15431 #: ../fish/guestfish-actions.pod:4475
15432 msgid "This function must be called before L</launch>."
15433 msgstr ""
15434
15435 #. type: =head2
15436 #: ../fish/guestfish-actions.pod:4477
15437 msgid "set-trace"
15438 msgstr ""
15439
15440 #. type: =head2
15441 #: ../fish/guestfish-actions.pod:4479
15442 msgid "trace"
15443 msgstr ""
15444
15445 #. type: verbatim
15446 #: ../fish/guestfish-actions.pod:4481
15447 #, no-wrap
15448 msgid ""
15449 " set-trace true|false\n"
15450 "\n"
15451 msgstr ""
15452
15453 #. type: textblock
15454 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6910
15455 msgid ""
15456 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15457 "return values are traced."
15458 msgstr ""
15459
15460 #. type: textblock
15461 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6913
15462 msgid ""
15463 "If you want to trace C API calls into libguestfs (and other libraries) then "
15464 "possibly a better way is to use the external ltrace(1) command."
15465 msgstr ""
15466
15467 #. type: textblock
15468 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6917
15469 msgid ""
15470 "Command traces are disabled unless the environment variable "
15471 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15472 msgstr ""
15473
15474 #. type: textblock
15475 #: ../fish/guestfish-actions.pod:4493
15476 msgid ""
15477 "Trace messages are normally sent to C<stderr>, unless you register a "
15478 "callback to send them somewhere else (see L</set-event-callback>)."
15479 msgstr ""
15480
15481 #. type: =head2
15482 #: ../fish/guestfish-actions.pod:4497
15483 msgid "set-verbose"
15484 msgstr ""
15485
15486 #. type: =head2
15487 #: ../fish/guestfish-actions.pod:4499
15488 msgid "verbose"
15489 msgstr ""
15490
15491 #. type: verbatim
15492 #: ../fish/guestfish-actions.pod:4501
15493 #, no-wrap
15494 msgid ""
15495 " set-verbose true|false\n"
15496 "\n"
15497 msgstr ""
15498
15499 #. type: textblock
15500 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6934
15501 msgid "If C<verbose> is true, this turns on verbose messages."
15502 msgstr ""
15503
15504 #. type: textblock
15505 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6936
15506 msgid ""
15507 "Verbose messages are disabled unless the environment variable "
15508 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15509 msgstr ""
15510
15511 #. type: textblock
15512 #: ../fish/guestfish-actions.pod:4508
15513 msgid ""
15514 "Verbose messages are normally sent to C<stderr>, unless you register a "
15515 "callback to send them somewhere else (see L</set-event-callback>)."
15516 msgstr ""
15517
15518 #. type: =head2
15519 #: ../fish/guestfish-actions.pod:4512
15520 msgid "setcon"
15521 msgstr ""
15522
15523 #. type: verbatim
15524 #: ../fish/guestfish-actions.pod:4514
15525 #, no-wrap
15526 msgid ""
15527 " setcon context\n"
15528 "\n"
15529 msgstr ""
15530
15531 #. type: textblock
15532 #: ../fish/guestfish-actions.pod:4516 ../src/guestfs-actions.pod:6953
15533 msgid ""
15534 "This sets the SELinux security context of the daemon to the string "
15535 "C<context>."
15536 msgstr ""
15537
15538 #. type: textblock
15539 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6956
15540 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15541 msgstr ""
15542
15543 #. type: =head2
15544 #: ../fish/guestfish-actions.pod:4521
15545 msgid "setxattr"
15546 msgstr ""
15547
15548 #. type: verbatim
15549 #: ../fish/guestfish-actions.pod:4523
15550 #, no-wrap
15551 msgid ""
15552 " setxattr xattr val vallen path\n"
15553 "\n"
15554 msgstr ""
15555
15556 #. type: textblock
15557 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6971
15558 msgid ""
15559 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15560 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15561 msgstr ""
15562
15563 #. type: textblock
15564 #: ../fish/guestfish-actions.pod:4529
15565 msgid "See also: L</lsetxattr>, L<attr(5)>."
15566 msgstr ""
15567
15568 #. type: =head2
15569 #: ../fish/guestfish-actions.pod:4531
15570 msgid "sfdisk"
15571 msgstr ""
15572
15573 #. type: verbatim
15574 #: ../fish/guestfish-actions.pod:4533
15575 #, no-wrap
15576 msgid ""
15577 " sfdisk device cyls heads sectors 'lines ...'\n"
15578 "\n"
15579 msgstr ""
15580
15581 #. type: textblock
15582 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6998
15583 msgid ""
15584 "This is a direct interface to the L<sfdisk(8)> program for creating "
15585 "partitions on block devices."
15586 msgstr ""
15587
15588 #. type: textblock
15589 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:7001
15590 msgid "C<device> should be a block device, for example C</dev/sda>."
15591 msgstr ""
15592
15593 #. type: textblock
15594 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:7003
15595 msgid ""
15596 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15597 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15598 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15599 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15600 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15601 "the kernel) cannot work out the right geometry and you will need to tell it."
15602 msgstr ""
15603
15604 #. type: textblock
15605 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:7011
15606 msgid ""
15607 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15608 "refer to the L<sfdisk(8)> manpage."
15609 msgstr ""
15610
15611 #. type: textblock
15612 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7014
15613 msgid ""
15614 "To create a single partition occupying the whole disk, you would pass "
15615 "C<lines> as a single element list, when the single element being the string "
15616 "C<,> (comma)."
15617 msgstr ""
15618
15619 #. type: textblock
15620 #: ../fish/guestfish-actions.pod:4555
15621 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15622 msgstr ""
15623
15624 #. type: textblock
15625 #: ../fish/guestfish-actions.pod:4558 ../fish/guestfish-actions.pod:4578
15626 #: ../fish/guestfish-actions.pod:4597
15627 msgid ""
15628 "I<This function is deprecated.> In new code, use the L</part_add> call "
15629 "instead."
15630 msgstr ""
15631
15632 #. type: =head2
15633 #: ../fish/guestfish-actions.pod:4565
15634 msgid "sfdiskM"
15635 msgstr ""
15636
15637 #. type: verbatim
15638 #: ../fish/guestfish-actions.pod:4567
15639 #, no-wrap
15640 msgid ""
15641 " sfdiskM device 'lines ...'\n"
15642 "\n"
15643 msgstr ""
15644
15645 #. type: textblock
15646 #: ../fish/guestfish-actions.pod:4569
15647 msgid ""
15648 "This is a simplified interface to the L</sfdisk> command, where partition "
15649 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15650 "you don't need to specify the cyls, heads and sectors parameters which were "
15651 "rarely if ever used anyway."
15652 msgstr ""
15653
15654 #. type: textblock
15655 #: ../fish/guestfish-actions.pod:4575
15656 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15657 msgstr ""
15658
15659 #. type: =head2
15660 #: ../fish/guestfish-actions.pod:4585
15661 msgid "sfdisk-N"
15662 msgstr ""
15663
15664 #. type: verbatim
15665 #: ../fish/guestfish-actions.pod:4587
15666 #, no-wrap
15667 msgid ""
15668 " sfdisk-N device partnum cyls heads sectors line\n"
15669 "\n"
15670 msgstr ""
15671
15672 #. type: textblock
15673 #: ../fish/guestfish-actions.pod:4589 ../src/guestfs-actions.pod:7070
15674 msgid ""
15675 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15676 "(note: C<n> counts from 1)."
15677 msgstr ""
15678
15679 #. type: textblock
15680 #: ../fish/guestfish-actions.pod:4592
15681 msgid ""
15682 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15683 "cyls/heads/sectors parameters."
15684 msgstr ""
15685
15686 #. type: textblock
15687 #: ../fish/guestfish-actions.pod:4595
15688 msgid "See also: L</part-add>"
15689 msgstr ""
15690
15691 #. type: =head2
15692 #: ../fish/guestfish-actions.pod:4604
15693 msgid "sfdisk-disk-geometry"
15694 msgstr ""
15695
15696 #. type: verbatim
15697 #: ../fish/guestfish-actions.pod:4606
15698 #, no-wrap
15699 msgid ""
15700 " sfdisk-disk-geometry device\n"
15701 "\n"
15702 msgstr ""
15703
15704 #. type: textblock
15705 #: ../fish/guestfish-actions.pod:4608
15706 msgid ""
15707 "This displays the disk geometry of C<device> read from the partition table.  "
15708 "Especially in the case where the underlying block device has been resized, "
15709 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15710 "kernel-geometry>)."
15711 msgstr ""
15712
15713 #. type: textblock
15714 #: ../fish/guestfish-actions.pod:4613 ../fish/guestfish-actions.pod:4622
15715 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7109
15716 msgid "The result is in human-readable format, and not designed to be parsed."
15717 msgstr ""
15718
15719 #. type: =head2
15720 #: ../fish/guestfish-actions.pod:4616
15721 msgid "sfdisk-kernel-geometry"
15722 msgstr ""
15723
15724 #. type: verbatim
15725 #: ../fish/guestfish-actions.pod:4618
15726 #, no-wrap
15727 msgid ""
15728 " sfdisk-kernel-geometry device\n"
15729 "\n"
15730 msgstr ""
15731
15732 #. type: textblock
15733 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:7107
15734 msgid "This displays the kernel's idea of the geometry of C<device>."
15735 msgstr ""
15736
15737 #. type: =head2
15738 #: ../fish/guestfish-actions.pod:4625
15739 msgid "sfdisk-l"
15740 msgstr ""
15741
15742 #. type: verbatim
15743 #: ../fish/guestfish-actions.pod:4627
15744 #, no-wrap
15745 msgid ""
15746 " sfdisk-l device\n"
15747 "\n"
15748 msgstr ""
15749
15750 #. type: textblock
15751 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7130
15752 msgid ""
15753 "This displays the partition table on C<device>, in the human-readable output "
15754 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15755 msgstr ""
15756
15757 #. type: textblock
15758 #: ../fish/guestfish-actions.pod:4633
15759 msgid "See also: L</part-list>"
15760 msgstr ""
15761
15762 #. type: textblock
15763 #: ../fish/guestfish-actions.pod:4635
15764 msgid ""
15765 "I<This function is deprecated.> In new code, use the L</part_list> call "
15766 "instead."
15767 msgstr ""
15768
15769 #. type: =head2
15770 #: ../fish/guestfish-actions.pod:4642
15771 msgid "sh"
15772 msgstr ""
15773
15774 #. type: verbatim
15775 #: ../fish/guestfish-actions.pod:4644
15776 #, no-wrap
15777 msgid ""
15778 " sh command\n"
15779 "\n"
15780 msgstr ""
15781
15782 #. type: textblock
15783 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7147
15784 msgid ""
15785 "This call runs a command from the guest filesystem via the guest's C</bin/"
15786 "sh>."
15787 msgstr ""
15788
15789 #. type: textblock
15790 #: ../fish/guestfish-actions.pod:4649
15791 msgid "This is like L</command>, but passes the command to:"
15792 msgstr ""
15793
15794 #. type: verbatim
15795 #: ../fish/guestfish-actions.pod:4651 ../src/guestfs-actions.pod:7152
15796 #, no-wrap
15797 msgid ""
15798 " /bin/sh -c \"command\"\n"
15799 "\n"
15800 msgstr ""
15801
15802 #. type: textblock
15803 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7154
15804 msgid ""
15805 "Depending on the guest's shell, this usually results in wildcards being "
15806 "expanded, shell expressions being interpolated and so on."
15807 msgstr ""
15808
15809 #. type: textblock
15810 #: ../fish/guestfish-actions.pod:4657
15811 msgid "All the provisos about L</command> apply to this call."
15812 msgstr ""
15813
15814 #. type: =head2
15815 #: ../fish/guestfish-actions.pod:4659
15816 msgid "sh-lines"
15817 msgstr ""
15818
15819 #. type: verbatim
15820 #: ../fish/guestfish-actions.pod:4661
15821 #, no-wrap
15822 msgid ""
15823 " sh-lines command\n"
15824 "\n"
15825 msgstr ""
15826
15827 #. type: textblock
15828 #: ../fish/guestfish-actions.pod:4663
15829 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15830 msgstr ""
15831
15832 #. type: textblock
15833 #: ../fish/guestfish-actions.pod:4666
15834 msgid "See also: L</command-lines>"
15835 msgstr ""
15836
15837 #. type: =head2
15838 #: ../fish/guestfish-actions.pod:4668
15839 msgid "sleep"
15840 msgstr ""
15841
15842 #. type: verbatim
15843 #: ../fish/guestfish-actions.pod:4670
15844 #, no-wrap
15845 msgid ""
15846 " sleep secs\n"
15847 "\n"
15848 msgstr ""
15849
15850 #. type: textblock
15851 #: ../fish/guestfish-actions.pod:4672 ../src/guestfs-actions.pod:7188
15852 msgid "Sleep for C<secs> seconds."
15853 msgstr ""
15854
15855 #. type: =head2
15856 #: ../fish/guestfish-actions.pod:4674
15857 msgid "stat"
15858 msgstr ""
15859
15860 #. type: verbatim
15861 #: ../fish/guestfish-actions.pod:4676
15862 #, no-wrap
15863 msgid ""
15864 " stat path\n"
15865 "\n"
15866 msgstr ""
15867
15868 #. type: textblock
15869 #: ../fish/guestfish-actions.pod:4680 ../src/guestfs-actions.pod:7202
15870 msgid "This is the same as the C<stat(2)> system call."
15871 msgstr ""
15872
15873 #. type: =head2
15874 #: ../fish/guestfish-actions.pod:4682
15875 msgid "statvfs"
15876 msgstr ""
15877
15878 #. type: verbatim
15879 #: ../fish/guestfish-actions.pod:4684
15880 #, no-wrap
15881 msgid ""
15882 " statvfs path\n"
15883 "\n"
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7216
15888 msgid ""
15889 "Returns file system statistics for any mounted file system.  C<path> should "
15890 "be a file or directory in the mounted file system (typically it is the mount "
15891 "point itself, but it doesn't need to be)."
15892 msgstr ""
15893
15894 #. type: textblock
15895 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7220
15896 msgid "This is the same as the C<statvfs(2)> system call."
15897 msgstr ""
15898
15899 #. type: =head2
15900 #: ../fish/guestfish-actions.pod:4692
15901 msgid "strings"
15902 msgstr ""
15903
15904 #. type: verbatim
15905 #: ../fish/guestfish-actions.pod:4694
15906 #, no-wrap
15907 msgid ""
15908 " strings path\n"
15909 "\n"
15910 msgstr ""
15911
15912 #. type: textblock
15913 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7234
15914 msgid ""
15915 "This runs the L<strings(1)> command on a file and returns the list of "
15916 "printable strings found."
15917 msgstr ""
15918
15919 #. type: =head2
15920 #: ../fish/guestfish-actions.pod:4702
15921 msgid "strings-e"
15922 msgstr ""
15923
15924 #. type: verbatim
15925 #: ../fish/guestfish-actions.pod:4704
15926 #, no-wrap
15927 msgid ""
15928 " strings-e encoding path\n"
15929 "\n"
15930 msgstr ""
15931
15932 #. type: textblock
15933 #: ../fish/guestfish-actions.pod:4706
15934 msgid ""
15935 "This is like the L</strings> command, but allows you to specify the encoding "
15936 "of strings that are looked for in the source file C<path>."
15937 msgstr ""
15938
15939 #. type: textblock
15940 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7257
15941 msgid "Allowed encodings are:"
15942 msgstr ""
15943
15944 #. type: =item
15945 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7261
15946 msgid "s"
15947 msgstr ""
15948
15949 #. type: textblock
15950 #: ../fish/guestfish-actions.pod:4716
15951 msgid ""
15952 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15953 "ISO-8859-X (this is what L</strings> uses)."
15954 msgstr ""
15955
15956 #. type: =item
15957 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7266
15958 msgid "S"
15959 msgstr ""
15960
15961 #. type: textblock
15962 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7268
15963 msgid "Single 8-bit-byte characters."
15964 msgstr ""
15965
15966 #. type: =item
15967 #: ../fish/guestfish-actions.pod:4723 ../src/guestfs-actions.pod:7270
15968 msgid "b"
15969 msgstr ""
15970
15971 #. type: textblock
15972 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7272
15973 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15974 msgstr ""
15975
15976 #. type: =item
15977 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
15978 msgid "l (lower case letter L)"
15979 msgstr ""
15980
15981 #. type: textblock
15982 #: ../fish/guestfish-actions.pod:4730 ../src/guestfs-actions.pod:7277
15983 msgid ""
15984 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15985 "examining binaries in Windows guests."
15986 msgstr ""
15987
15988 #. type: =item
15989 #: ../fish/guestfish-actions.pod:4733 ../src/guestfs-actions.pod:7280
15990 msgid "B"
15991 msgstr ""
15992
15993 #. type: textblock
15994 #: ../fish/guestfish-actions.pod:4735 ../src/guestfs-actions.pod:7282
15995 msgid "32-bit big endian such as UCS-4BE."
15996 msgstr ""
15997
15998 #. type: =item
15999 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7284
16000 msgid "L"
16001 msgstr ""
16002
16003 #. type: textblock
16004 #: ../fish/guestfish-actions.pod:4739 ../src/guestfs-actions.pod:7286
16005 msgid "32-bit little endian such as UCS-4LE."
16006 msgstr ""
16007
16008 #. type: textblock
16009 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7290
16010 msgid "The returned strings are transcoded to UTF-8."
16011 msgstr ""
16012
16013 #. type: =head2
16014 #: ../fish/guestfish-actions.pod:4748
16015 msgid "swapoff-device"
16016 msgstr ""
16017
16018 #. type: verbatim
16019 #: ../fish/guestfish-actions.pod:4750
16020 #, no-wrap
16021 msgid ""
16022 " swapoff-device device\n"
16023 "\n"
16024 msgstr ""
16025
16026 #. type: textblock
16027 #: ../fish/guestfish-actions.pod:4752
16028 msgid ""
16029 "This command disables the libguestfs appliance swap device or partition "
16030 "named C<device>.  See L</swapon-device>."
16031 msgstr ""
16032
16033 #. type: =head2
16034 #: ../fish/guestfish-actions.pod:4756
16035 msgid "swapoff-file"
16036 msgstr ""
16037
16038 #. type: verbatim
16039 #: ../fish/guestfish-actions.pod:4758
16040 #, no-wrap
16041 msgid ""
16042 " swapoff-file file\n"
16043 "\n"
16044 msgstr ""
16045
16046 #. type: textblock
16047 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7321
16048 msgid "This command disables the libguestfs appliance swap on file."
16049 msgstr ""
16050
16051 #. type: =head2
16052 #: ../fish/guestfish-actions.pod:4762
16053 msgid "swapoff-label"
16054 msgstr ""
16055
16056 #. type: verbatim
16057 #: ../fish/guestfish-actions.pod:4764
16058 #, no-wrap
16059 msgid ""
16060 " swapoff-label label\n"
16061 "\n"
16062 msgstr ""
16063
16064 #. type: textblock
16065 #: ../fish/guestfish-actions.pod:4766 ../src/guestfs-actions.pod:7333
16066 msgid ""
16067 "This command disables the libguestfs appliance swap on labeled swap "
16068 "partition."
16069 msgstr ""
16070
16071 #. type: =head2
16072 #: ../fish/guestfish-actions.pod:4769
16073 msgid "swapoff-uuid"
16074 msgstr ""
16075
16076 #. type: verbatim
16077 #: ../fish/guestfish-actions.pod:4771
16078 #, no-wrap
16079 msgid ""
16080 " swapoff-uuid uuid\n"
16081 "\n"
16082 msgstr ""
16083
16084 #. type: textblock
16085 #: ../fish/guestfish-actions.pod:4773 ../src/guestfs-actions.pod:7346
16086 msgid ""
16087 "This command disables the libguestfs appliance swap partition with the given "
16088 "UUID."
16089 msgstr ""
16090
16091 #. type: =head2
16092 #: ../fish/guestfish-actions.pod:4776
16093 msgid "swapon-device"
16094 msgstr ""
16095
16096 #. type: verbatim
16097 #: ../fish/guestfish-actions.pod:4778
16098 #, no-wrap
16099 msgid ""
16100 " swapon-device device\n"
16101 "\n"
16102 msgstr ""
16103
16104 #. type: textblock
16105 #: ../fish/guestfish-actions.pod:4780
16106 msgid ""
16107 "This command enables the libguestfs appliance to use the swap device or "
16108 "partition named C<device>.  The increased memory is made available for all "
16109 "commands, for example those run using L</command> or L</sh>."
16110 msgstr ""
16111
16112 #. type: textblock
16113 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7364
16114 msgid ""
16115 "Note that you should not swap to existing guest swap partitions unless you "
16116 "know what you are doing.  They may contain hibernation information, or other "
16117 "information that the guest doesn't want you to trash.  You also risk leaking "
16118 "information about the host to the guest this way.  Instead, attach a new "
16119 "host device to the guest and swap on that."
16120 msgstr ""
16121
16122 #. type: =head2
16123 #: ../fish/guestfish-actions.pod:4792
16124 msgid "swapon-file"
16125 msgstr ""
16126
16127 #. type: verbatim
16128 #: ../fish/guestfish-actions.pod:4794
16129 #, no-wrap
16130 msgid ""
16131 " swapon-file file\n"
16132 "\n"
16133 msgstr ""
16134
16135 #. type: textblock
16136 #: ../fish/guestfish-actions.pod:4796
16137 msgid ""
16138 "This command enables swap to a file.  See L</swapon-device> for other notes."
16139 msgstr ""
16140
16141 #. type: =head2
16142 #: ../fish/guestfish-actions.pod:4799
16143 msgid "swapon-label"
16144 msgstr ""
16145
16146 #. type: verbatim
16147 #: ../fish/guestfish-actions.pod:4801
16148 #, no-wrap
16149 msgid ""
16150 " swapon-label label\n"
16151 "\n"
16152 msgstr ""
16153
16154 #. type: textblock
16155 #: ../fish/guestfish-actions.pod:4803
16156 msgid ""
16157 "This command enables swap to a labeled swap partition.  See L</swapon-"
16158 "device> for other notes."
16159 msgstr ""
16160
16161 #. type: =head2
16162 #: ../fish/guestfish-actions.pod:4806
16163 msgid "swapon-uuid"
16164 msgstr ""
16165
16166 #. type: verbatim
16167 #: ../fish/guestfish-actions.pod:4808
16168 #, no-wrap
16169 msgid ""
16170 " swapon-uuid uuid\n"
16171 "\n"
16172 msgstr ""
16173
16174 #. type: textblock
16175 #: ../fish/guestfish-actions.pod:4810
16176 msgid ""
16177 "This command enables swap to a swap partition with the given UUID.  See L</"
16178 "swapon-device> for other notes."
16179 msgstr ""
16180
16181 #. type: =head2
16182 #: ../fish/guestfish-actions.pod:4813
16183 msgid "sync"
16184 msgstr ""
16185
16186 #. type: verbatim
16187 #: ../fish/guestfish-actions.pod:4815
16188 #, no-wrap
16189 msgid ""
16190 " sync\n"
16191 "\n"
16192 msgstr ""
16193
16194 #. type: textblock
16195 #: ../fish/guestfish-actions.pod:4817 ../src/guestfs-actions.pod:7419
16196 msgid ""
16197 "This syncs the disk, so that any writes are flushed through to the "
16198 "underlying disk image."
16199 msgstr ""
16200
16201 #. type: textblock
16202 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7422
16203 msgid ""
16204 "You should always call this if you have modified a disk image, before "
16205 "closing the handle."
16206 msgstr ""
16207
16208 #. type: =head2
16209 #: ../fish/guestfish-actions.pod:4823
16210 msgid "tail"
16211 msgstr ""
16212
16213 #. type: verbatim
16214 #: ../fish/guestfish-actions.pod:4825
16215 #, no-wrap
16216 msgid ""
16217 " tail path\n"
16218 "\n"
16219 msgstr ""
16220
16221 #. type: textblock
16222 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7435
16223 msgid ""
16224 "This command returns up to the last 10 lines of a file as a list of strings."
16225 msgstr ""
16226
16227 #. type: =head2
16228 #: ../fish/guestfish-actions.pod:4833
16229 msgid "tail-n"
16230 msgstr ""
16231
16232 #. type: verbatim
16233 #: ../fish/guestfish-actions.pod:4835
16234 #, no-wrap
16235 msgid ""
16236 " tail-n nrlines path\n"
16237 "\n"
16238 msgstr ""
16239
16240 #. type: textblock
16241 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7454
16242 msgid ""
16243 "If the parameter C<nrlines> is a positive number, this returns the last "
16244 "C<nrlines> lines of the file C<path>."
16245 msgstr ""
16246
16247 #. type: textblock
16248 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7457
16249 msgid ""
16250 "If the parameter C<nrlines> is a negative number, this returns lines from "
16251 "the file C<path>, starting with the C<-nrlines>th line."
16252 msgstr ""
16253
16254 #. type: =head2
16255 #: ../fish/guestfish-actions.pod:4848
16256 msgid "tar-in"
16257 msgstr ""
16258
16259 #. type: verbatim
16260 #: ../fish/guestfish-actions.pod:4850
16261 #, no-wrap
16262 msgid ""
16263 " tar-in (tarfile|-) directory\n"
16264 "\n"
16265 msgstr ""
16266
16267 #. type: textblock
16268 #: ../fish/guestfish-actions.pod:4852 ../src/guestfs-actions.pod:7478
16269 msgid ""
16270 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16271 "tar file) into C<directory>."
16272 msgstr ""
16273
16274 #. type: textblock
16275 #: ../fish/guestfish-actions.pod:4855
16276 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16277 msgstr ""
16278
16279 #. type: =head2
16280 #: ../fish/guestfish-actions.pod:4860
16281 msgid "tar-out"
16282 msgstr ""
16283
16284 #. type: verbatim
16285 #: ../fish/guestfish-actions.pod:4862
16286 #, no-wrap
16287 msgid ""
16288 " tar-out directory (tarfile|-)\n"
16289 "\n"
16290 msgstr ""
16291
16292 #. type: textblock
16293 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7495
16294 msgid ""
16295 "This command packs the contents of C<directory> and downloads it to local "
16296 "file C<tarfile>."
16297 msgstr ""
16298
16299 #. type: textblock
16300 #: ../fish/guestfish-actions.pod:4867
16301 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16302 msgstr ""
16303
16304 #. type: =head2
16305 #: ../fish/guestfish-actions.pod:4872
16306 msgid "tgz-in"
16307 msgstr ""
16308
16309 #. type: verbatim
16310 #: ../fish/guestfish-actions.pod:4874
16311 #, no-wrap
16312 msgid ""
16313 " tgz-in (tarball|-) directory\n"
16314 "\n"
16315 msgstr ""
16316
16317 #. type: textblock
16318 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7512
16319 msgid ""
16320 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16321 "tar file) into C<directory>."
16322 msgstr ""
16323
16324 #. type: textblock
16325 #: ../fish/guestfish-actions.pod:4879
16326 msgid "To upload an uncompressed tarball, use L</tar-in>."
16327 msgstr ""
16328
16329 #. type: =head2
16330 #: ../fish/guestfish-actions.pod:4883
16331 msgid "tgz-out"
16332 msgstr ""
16333
16334 #. type: verbatim
16335 #: ../fish/guestfish-actions.pod:4885
16336 #, no-wrap
16337 msgid ""
16338 " tgz-out directory (tarball|-)\n"
16339 "\n"
16340 msgstr ""
16341
16342 #. type: textblock
16343 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7528
16344 msgid ""
16345 "This command packs the contents of C<directory> and downloads it to local "
16346 "file C<tarball>."
16347 msgstr ""
16348
16349 #. type: textblock
16350 #: ../fish/guestfish-actions.pod:4890
16351 msgid "To download an uncompressed tarball, use L</tar-out>."
16352 msgstr ""
16353
16354 #. type: =head2
16355 #: ../fish/guestfish-actions.pod:4894
16356 msgid "touch"
16357 msgstr ""
16358
16359 #. type: verbatim
16360 #: ../fish/guestfish-actions.pod:4896
16361 #, no-wrap
16362 msgid ""
16363 " touch path\n"
16364 "\n"
16365 msgstr ""
16366
16367 #. type: textblock
16368 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7543
16369 msgid ""
16370 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16371 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16372 "length file."
16373 msgstr ""
16374
16375 #. type: textblock
16376 #: ../fish/guestfish-actions.pod:4902 ../src/guestfs-actions.pod:7547
16377 msgid ""
16378 "This command only works on regular files, and will fail on other file types "
16379 "such as directories, symbolic links, block special etc."
16380 msgstr ""
16381
16382 #. type: =head2
16383 #: ../fish/guestfish-actions.pod:4905
16384 msgid "truncate"
16385 msgstr ""
16386
16387 #. type: verbatim
16388 #: ../fish/guestfish-actions.pod:4907
16389 #, no-wrap
16390 msgid ""
16391 " truncate path\n"
16392 "\n"
16393 msgstr ""
16394
16395 #. type: textblock
16396 #: ../fish/guestfish-actions.pod:4909 ../src/guestfs-actions.pod:7560
16397 msgid ""
16398 "This command truncates C<path> to a zero-length file.  The file must exist "
16399 "already."
16400 msgstr ""
16401
16402 #. type: =head2
16403 #: ../fish/guestfish-actions.pod:4912
16404 msgid "truncate-size"
16405 msgstr ""
16406
16407 #. type: verbatim
16408 #: ../fish/guestfish-actions.pod:4914
16409 #, no-wrap
16410 msgid ""
16411 " truncate-size path size\n"
16412 "\n"
16413 msgstr ""
16414
16415 #. type: textblock
16416 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7574
16417 msgid ""
16418 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16419 "already."
16420 msgstr ""
16421
16422 #. type: textblock
16423 #: ../fish/guestfish-actions.pod:4919
16424 msgid ""
16425 "If the current file size is less than C<size> then the file is extended to "
16426 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16427 "blocks are not allocated for the file until you write to it).  To create a "
16428 "non-sparse file of zeroes, use L</fallocate64> instead."
16429 msgstr ""
16430
16431 #. type: =head2
16432 #: ../fish/guestfish-actions.pod:4925
16433 msgid "tune2fs-l"
16434 msgstr ""
16435
16436 #. type: verbatim
16437 #: ../fish/guestfish-actions.pod:4927
16438 #, no-wrap
16439 msgid ""
16440 " tune2fs-l device\n"
16441 "\n"
16442 msgstr ""
16443
16444 #. type: textblock
16445 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7593
16446 msgid ""
16447 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16448 "C<device>."
16449 msgstr ""
16450
16451 #. type: textblock
16452 #: ../fish/guestfish-actions.pod:4932 ../src/guestfs-actions.pod:7596
16453 msgid ""
16454 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16455 "for more details.  The list of fields returned isn't clearly defined, and "
16456 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16457 "and the filesystem itself."
16458 msgstr ""
16459
16460 #. type: =head2
16461 #: ../fish/guestfish-actions.pod:4937
16462 msgid "txz-in"
16463 msgstr ""
16464
16465 #. type: verbatim
16466 #: ../fish/guestfish-actions.pod:4939
16467 #, no-wrap
16468 msgid ""
16469 " txz-in (tarball|-) directory\n"
16470 "\n"
16471 msgstr ""
16472
16473 #. type: textblock
16474 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7616
16475 msgid ""
16476 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16477 "tar file) into C<directory>."
16478 msgstr ""
16479
16480 #. type: =head2
16481 #: ../fish/guestfish-actions.pod:4946
16482 msgid "txz-out"
16483 msgstr ""
16484
16485 #. type: verbatim
16486 #: ../fish/guestfish-actions.pod:4948
16487 #, no-wrap
16488 msgid ""
16489 " txz-out directory (tarball|-)\n"
16490 "\n"
16491 msgstr ""
16492
16493 #. type: textblock
16494 #: ../fish/guestfish-actions.pod:4950 ../src/guestfs-actions.pod:7630
16495 msgid ""
16496 "This command packs the contents of C<directory> and downloads it to local "
16497 "file C<tarball> (as an xz compressed tar archive)."
16498 msgstr ""
16499
16500 #. type: =head2
16501 #: ../fish/guestfish-actions.pod:4955
16502 msgid "umask"
16503 msgstr ""
16504
16505 #. type: verbatim
16506 #: ../fish/guestfish-actions.pod:4957
16507 #, no-wrap
16508 msgid ""
16509 " umask mask\n"
16510 "\n"
16511 msgstr ""
16512
16513 #. type: textblock
16514 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7643
16515 msgid ""
16516 "This function sets the mask used for creating new files and device nodes to "
16517 "C<mask & 0777>."
16518 msgstr ""
16519
16520 #. type: textblock
16521 #: ../fish/guestfish-actions.pod:4962 ../src/guestfs-actions.pod:7646
16522 msgid ""
16523 "Typical umask values would be C<022> which creates new files with "
16524 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16525 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16526 msgstr ""
16527
16528 #. type: textblock
16529 #: ../fish/guestfish-actions.pod:4967 ../src/guestfs-actions.pod:7651
16530 msgid ""
16531 "The default umask is C<022>.  This is important because it means that "
16532 "directories and device nodes will be created with C<0644> or C<0755> mode "
16533 "even if you specify C<0777>."
16534 msgstr ""
16535
16536 #. type: textblock
16537 #: ../fish/guestfish-actions.pod:4971
16538 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16539 msgstr ""
16540
16541 #. type: textblock
16542 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7658
16543 msgid "This call returns the previous umask."
16544 msgstr ""
16545
16546 #. type: =head2
16547 #: ../fish/guestfish-actions.pod:4976
16548 msgid "umount"
16549 msgstr ""
16550
16551 #. type: =head2
16552 #: ../fish/guestfish-actions.pod:4978
16553 msgid "unmount"
16554 msgstr ""
16555
16556 #. type: verbatim
16557 #: ../fish/guestfish-actions.pod:4980
16558 #, no-wrap
16559 msgid ""
16560 " umount pathordevice\n"
16561 "\n"
16562 msgstr ""
16563
16564 #. type: textblock
16565 #: ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:7670
16566 msgid ""
16567 "This unmounts the given filesystem.  The filesystem may be specified either "
16568 "by its mountpoint (path) or the device which contains the filesystem."
16569 msgstr ""
16570
16571 #. type: =head2
16572 #: ../fish/guestfish-actions.pod:4986
16573 msgid "umount-all"
16574 msgstr ""
16575
16576 #. type: =head2
16577 #: ../fish/guestfish-actions.pod:4988
16578 msgid "unmount-all"
16579 msgstr ""
16580
16581 #. type: verbatim
16582 #: ../fish/guestfish-actions.pod:4990
16583 #, no-wrap
16584 msgid ""
16585 " umount-all\n"
16586 "\n"
16587 msgstr ""
16588
16589 #. type: textblock
16590 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7683
16591 msgid "This unmounts all mounted filesystems."
16592 msgstr ""
16593
16594 #. type: textblock
16595 #: ../fish/guestfish-actions.pod:4994 ../src/guestfs-actions.pod:7685
16596 msgid "Some internal mounts are not unmounted by this call."
16597 msgstr ""
16598
16599 #. type: =head2
16600 #: ../fish/guestfish-actions.pod:4996
16601 msgid "upload"
16602 msgstr ""
16603
16604 #. type: verbatim
16605 #: ../fish/guestfish-actions.pod:4998
16606 #, no-wrap
16607 msgid ""
16608 " upload (filename|-) remotefilename\n"
16609 "\n"
16610 msgstr ""
16611
16612 #. type: textblock
16613 #: ../fish/guestfish-actions.pod:5000 ../fish/guestfish-actions.pod:5013
16614 #: ../src/guestfs-actions.pod:7698 ../src/guestfs-actions.pod:7722
16615 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16616 msgstr ""
16617
16618 #. type: textblock
16619 #: ../fish/guestfish-actions.pod:5005
16620 msgid "See also L</download>."
16621 msgstr ""
16622
16623 #. type: =head2
16624 #: ../fish/guestfish-actions.pod:5009
16625 msgid "upload-offset"
16626 msgstr ""
16627
16628 #. type: verbatim
16629 #: ../fish/guestfish-actions.pod:5011
16630 #, no-wrap
16631 msgid ""
16632 " upload-offset (filename|-) remotefilename offset\n"
16633 "\n"
16634 msgstr ""
16635
16636 #. type: textblock
16637 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7725
16638 msgid ""
16639 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16640 "The intention is to overwrite parts of existing files or devices, although "
16641 "if a non-existant file is specified then it is created with a \"hole\" "
16642 "before C<offset>.  The size of the data written is implicit in the size of "
16643 "the source C<filename>."
16644 msgstr ""
16645
16646 #. type: textblock
16647 #: ../fish/guestfish-actions.pod:5023
16648 msgid ""
16649 "Note that there is no limit on the amount of data that can be uploaded with "
16650 "this call, unlike with L</pwrite>, and this call always writes the full "
16651 "amount unless an error occurs."
16652 msgstr ""
16653
16654 #. type: textblock
16655 #: ../fish/guestfish-actions.pod:5028
16656 msgid "See also L</upload>, L</pwrite>."
16657 msgstr ""
16658
16659 #. type: =head2
16660 #: ../fish/guestfish-actions.pod:5032
16661 msgid "utimens"
16662 msgstr ""
16663
16664 #. type: verbatim
16665 #: ../fish/guestfish-actions.pod:5034
16666 #, no-wrap
16667 msgid ""
16668 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16669 "\n"
16670 msgstr ""
16671
16672 #. type: textblock
16673 #: ../fish/guestfish-actions.pod:5036 ../src/guestfs-actions.pod:7758
16674 msgid "This command sets the timestamps of a file with nanosecond precision."
16675 msgstr ""
16676
16677 #. type: textblock
16678 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7761
16679 msgid ""
16680 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16681 "from the epoch."
16682 msgstr ""
16683
16684 #. type: textblock
16685 #: ../fish/guestfish-actions.pod:5042 ../src/guestfs-actions.pod:7764
16686 msgid ""
16687 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16688 "nanoseconds from the epoch."
16689 msgstr ""
16690
16691 #. type: textblock
16692 #: ../fish/guestfish-actions.pod:5045 ../src/guestfs-actions.pod:7767
16693 msgid ""
16694 "If the C<*nsecs> field contains the special value C<-1> then the "
16695 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16696 "ignored in this case)."
16697 msgstr ""
16698
16699 #. type: textblock
16700 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7771
16701 msgid ""
16702 "If the C<*nsecs> field contains the special value C<-2> then the "
16703 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16704 "in this case)."
16705 msgstr ""
16706
16707 #. type: =head2
16708 #: ../fish/guestfish-actions.pod:5053
16709 msgid "version"
16710 msgstr ""
16711
16712 #. type: verbatim
16713 #: ../fish/guestfish-actions.pod:5055
16714 #, no-wrap
16715 msgid ""
16716 " version\n"
16717 "\n"
16718 msgstr ""
16719
16720 #. type: textblock
16721 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7784
16722 msgid ""
16723 "Return the libguestfs version number that the program is linked against."
16724 msgstr ""
16725
16726 #. type: textblock
16727 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7787
16728 msgid ""
16729 "Note that because of dynamic linking this is not necessarily the version of "
16730 "libguestfs that you compiled against.  You can compile the program, and then "
16731 "at runtime dynamically link against a completely different C<libguestfs.so> "
16732 "library."
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish-actions.pod:5065 ../src/guestfs-actions.pod:7792
16737 msgid ""
16738 "This call was added in version C<1.0.58>.  In previous versions of "
16739 "libguestfs there was no way to get the version number.  From C code you can "
16740 "use dynamic linker functions to find out if this symbol exists (if it "
16741 "doesn't, then it's an earlier version)."
16742 msgstr ""
16743
16744 #. type: textblock
16745 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7798
16746 msgid ""
16747 "The call returns a structure with four elements.  The first three (C<major>, "
16748 "C<minor> and C<release>) are numbers and correspond to the usual version "
16749 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16750 "but may be used for distro-specific information."
16751 msgstr ""
16752
16753 #. type: textblock
16754 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7804
16755 msgid ""
16756 "To construct the original version string: C<$major.$minor.$release$extra>"
16757 msgstr ""
16758
16759 #. type: textblock
16760 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7807
16761 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16762 msgstr ""
16763
16764 #. type: textblock
16765 #: ../fish/guestfish-actions.pod:5082
16766 msgid ""
16767 "I<Note:> Don't use this call to test for availability of features.  In "
16768 "enterprise distributions we backport features from later versions into "
16769 "earlier versions, making this an unreliable way to test for features.  Use "
16770 "L</available> instead."
16771 msgstr ""
16772
16773 #. type: =head2
16774 #: ../fish/guestfish-actions.pod:5088
16775 msgid "vfs-label"
16776 msgstr ""
16777
16778 #. type: verbatim
16779 #: ../fish/guestfish-actions.pod:5090
16780 #, no-wrap
16781 msgid ""
16782 " vfs-label device\n"
16783 "\n"
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../fish/guestfish-actions.pod:5092 ../src/guestfs-actions.pod:7827
16788 msgid "This returns the filesystem label of the filesystem on C<device>."
16789 msgstr ""
16790
16791 #. type: textblock
16792 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7830
16793 msgid "If the filesystem is unlabeled, this returns the empty string."
16794 msgstr ""
16795
16796 #. type: textblock
16797 #: ../fish/guestfish-actions.pod:5097
16798 msgid "To find a filesystem from the label, use L</findfs-label>."
16799 msgstr ""
16800
16801 #. type: =head2
16802 #: ../fish/guestfish-actions.pod:5099
16803 msgid "vfs-type"
16804 msgstr ""
16805
16806 #. type: verbatim
16807 #: ../fish/guestfish-actions.pod:5101
16808 #, no-wrap
16809 msgid ""
16810 " vfs-type device\n"
16811 "\n"
16812 msgstr ""
16813
16814 #. type: textblock
16815 #: ../fish/guestfish-actions.pod:5103 ../src/guestfs-actions.pod:7845
16816 msgid ""
16817 "This command gets the filesystem type corresponding to the filesystem on "
16818 "C<device>."
16819 msgstr ""
16820
16821 #. type: textblock
16822 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7848
16823 msgid ""
16824 "For most filesystems, the result is the name of the Linux VFS module which "
16825 "would be used to mount this filesystem if you mounted it without specifying "
16826 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16827 msgstr ""
16828
16829 #. type: =head2
16830 #: ../fish/guestfish-actions.pod:5111
16831 msgid "vfs-uuid"
16832 msgstr ""
16833
16834 #. type: verbatim
16835 #: ../fish/guestfish-actions.pod:5113
16836 #, no-wrap
16837 msgid ""
16838 " vfs-uuid device\n"
16839 "\n"
16840 msgstr ""
16841
16842 #. type: textblock
16843 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7864
16844 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16845 msgstr ""
16846
16847 #. type: textblock
16848 #: ../fish/guestfish-actions.pod:5118 ../src/guestfs-actions.pod:7867
16849 msgid "If the filesystem does not have a UUID, this returns the empty string."
16850 msgstr ""
16851
16852 #. type: textblock
16853 #: ../fish/guestfish-actions.pod:5120
16854 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16855 msgstr ""
16856
16857 #. type: =head2
16858 #: ../fish/guestfish-actions.pod:5122
16859 msgid "vg-activate"
16860 msgstr ""
16861
16862 #. type: verbatim
16863 #: ../fish/guestfish-actions.pod:5124
16864 #, no-wrap
16865 msgid ""
16866 " vg-activate true|false 'volgroups ...'\n"
16867 "\n"
16868 msgstr ""
16869
16870 #. type: textblock
16871 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7883
16872 msgid ""
16873 "This command activates or (if C<activate> is false) deactivates all logical "
16874 "volumes in the listed volume groups C<volgroups>."
16875 msgstr ""
16876
16877 #. type: textblock
16878 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7886
16879 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16880 msgstr ""
16881
16882 #. type: textblock
16883 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7888
16884 msgid ""
16885 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16886 "activated or deactivated."
16887 msgstr ""
16888
16889 #. type: =head2
16890 #: ../fish/guestfish-actions.pod:5134
16891 msgid "vg-activate-all"
16892 msgstr ""
16893
16894 #. type: verbatim
16895 #: ../fish/guestfish-actions.pod:5136
16896 #, no-wrap
16897 msgid ""
16898 " vg-activate-all true|false\n"
16899 "\n"
16900 msgstr ""
16901
16902 #. type: textblock
16903 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7901
16904 msgid ""
16905 "This command activates or (if C<activate> is false) deactivates all logical "
16906 "volumes in all volume groups."
16907 msgstr ""
16908
16909 #. type: textblock
16910 #: ../fish/guestfish-actions.pod:5141 ../src/guestfs-actions.pod:7904
16911 msgid "This command is the same as running C<vgchange -a y|n>"
16912 msgstr ""
16913
16914 #. type: =head2
16915 #: ../fish/guestfish-actions.pod:5143
16916 msgid "vgcreate"
16917 msgstr ""
16918
16919 #. type: verbatim
16920 #: ../fish/guestfish-actions.pod:5145
16921 #, no-wrap
16922 msgid ""
16923 " vgcreate volgroup 'physvols ...'\n"
16924 "\n"
16925 msgstr ""
16926
16927 #. type: textblock
16928 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7917
16929 msgid ""
16930 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16931 "of physical volumes C<physvols>."
16932 msgstr ""
16933
16934 #. type: =head2
16935 #: ../fish/guestfish-actions.pod:5150
16936 msgid "vglvuuids"
16937 msgstr ""
16938
16939 #. type: verbatim
16940 #: ../fish/guestfish-actions.pod:5152
16941 #, no-wrap
16942 msgid ""
16943 " vglvuuids vgname\n"
16944 "\n"
16945 msgstr ""
16946
16947 #. type: textblock
16948 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7930
16949 msgid ""
16950 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16951 "volumes created in this volume group."
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../fish/guestfish-actions.pod:5157
16956 msgid ""
16957 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16958 "logical volumes and volume groups."
16959 msgstr ""
16960
16961 #. type: textblock
16962 #: ../fish/guestfish-actions.pod:5160
16963 msgid "See also L</vgpvuuids>."
16964 msgstr ""
16965
16966 #. type: =head2
16967 #: ../fish/guestfish-actions.pod:5162
16968 msgid "vgpvuuids"
16969 msgstr ""
16970
16971 #. type: verbatim
16972 #: ../fish/guestfish-actions.pod:5164
16973 #, no-wrap
16974 msgid ""
16975 " vgpvuuids vgname\n"
16976 "\n"
16977 msgstr ""
16978
16979 #. type: textblock
16980 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7950
16981 msgid ""
16982 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16983 "volumes that this volume group resides on."
16984 msgstr ""
16985
16986 #. type: textblock
16987 #: ../fish/guestfish-actions.pod:5169
16988 msgid ""
16989 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16990 "physical volumes and volume groups."
16991 msgstr ""
16992
16993 #. type: textblock
16994 #: ../fish/guestfish-actions.pod:5172
16995 msgid "See also L</vglvuuids>."
16996 msgstr ""
16997
16998 #. type: =head2
16999 #: ../fish/guestfish-actions.pod:5174
17000 msgid "vgremove"
17001 msgstr ""
17002
17003 #. type: verbatim
17004 #: ../fish/guestfish-actions.pod:5176
17005 #, no-wrap
17006 msgid ""
17007 " vgremove vgname\n"
17008 "\n"
17009 msgstr ""
17010
17011 #. type: textblock
17012 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7970
17013 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17014 msgstr ""
17015
17016 #. type: textblock
17017 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7972
17018 msgid ""
17019 "This also forcibly removes all logical volumes in the volume group (if any)."
17020 msgstr ""
17021
17022 #. type: =head2
17023 #: ../fish/guestfish-actions.pod:5183
17024 msgid "vgrename"
17025 msgstr ""
17026
17027 #. type: verbatim
17028 #: ../fish/guestfish-actions.pod:5185
17029 #, no-wrap
17030 msgid ""
17031 " vgrename volgroup newvolgroup\n"
17032 "\n"
17033 msgstr ""
17034
17035 #. type: textblock
17036 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7986
17037 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17038 msgstr ""
17039
17040 #. type: =head2
17041 #: ../fish/guestfish-actions.pod:5189
17042 msgid "vgs"
17043 msgstr ""
17044
17045 #. type: verbatim
17046 #: ../fish/guestfish-actions.pod:5191
17047 #, no-wrap
17048 msgid ""
17049 " vgs\n"
17050 "\n"
17051 msgstr ""
17052
17053 #. type: textblock
17054 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7997
17055 msgid ""
17056 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17057 "> command."
17058 msgstr ""
17059
17060 #. type: textblock
17061 #: ../fish/guestfish-actions.pod:5196 ../src/guestfs-actions.pod:8000
17062 msgid ""
17063 "This returns a list of just the volume group names that were detected (eg. "
17064 "C<VolGroup00>)."
17065 msgstr ""
17066
17067 #. type: textblock
17068 #: ../fish/guestfish-actions.pod:5199
17069 msgid "See also L</vgs-full>."
17070 msgstr ""
17071
17072 #. type: =head2
17073 #: ../fish/guestfish-actions.pod:5201
17074 msgid "vgs-full"
17075 msgstr ""
17076
17077 #. type: verbatim
17078 #: ../fish/guestfish-actions.pod:5203
17079 #, no-wrap
17080 msgid ""
17081 " vgs-full\n"
17082 "\n"
17083 msgstr ""
17084
17085 #. type: textblock
17086 #: ../fish/guestfish-actions.pod:5205 ../src/guestfs-actions.pod:8016
17087 msgid ""
17088 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17089 "> command.  The \"full\" version includes all fields."
17090 msgstr ""
17091
17092 #. type: =head2
17093 #: ../fish/guestfish-actions.pod:5208
17094 msgid "vgscan"
17095 msgstr ""
17096
17097 #. type: verbatim
17098 #: ../fish/guestfish-actions.pod:5210
17099 #, no-wrap
17100 msgid ""
17101 " vgscan\n"
17102 "\n"
17103 msgstr ""
17104
17105 #. type: textblock
17106 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8030
17107 msgid ""
17108 "This rescans all block devices and rebuilds the list of LVM physical "
17109 "volumes, volume groups and logical volumes."
17110 msgstr ""
17111
17112 #. type: =head2
17113 #: ../fish/guestfish-actions.pod:5215
17114 msgid "vguuid"
17115 msgstr ""
17116
17117 #. type: verbatim
17118 #: ../fish/guestfish-actions.pod:5217
17119 #, no-wrap
17120 msgid ""
17121 " vguuid vgname\n"
17122 "\n"
17123 msgstr ""
17124
17125 #. type: textblock
17126 #: ../fish/guestfish-actions.pod:5219 ../src/guestfs-actions.pod:8043
17127 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17128 msgstr ""
17129
17130 #. type: =head2
17131 #: ../fish/guestfish-actions.pod:5221
17132 msgid "wc-c"
17133 msgstr ""
17134
17135 #. type: verbatim
17136 #: ../fish/guestfish-actions.pod:5223
17137 #, no-wrap
17138 msgid ""
17139 " wc-c path\n"
17140 "\n"
17141 msgstr ""
17142
17143 #. type: textblock
17144 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8083
17145 msgid ""
17146 "This command counts the characters in a file, using the C<wc -c> external "
17147 "command."
17148 msgstr ""
17149
17150 #. type: =head2
17151 #: ../fish/guestfish-actions.pod:5228
17152 msgid "wc-l"
17153 msgstr ""
17154
17155 #. type: verbatim
17156 #: ../fish/guestfish-actions.pod:5230
17157 #, no-wrap
17158 msgid ""
17159 " wc-l path\n"
17160 "\n"
17161 msgstr ""
17162
17163 #. type: textblock
17164 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8096
17165 msgid ""
17166 "This command counts the lines in a file, using the C<wc -l> external command."
17167 msgstr ""
17168
17169 #. type: =head2
17170 #: ../fish/guestfish-actions.pod:5235
17171 msgid "wc-w"
17172 msgstr ""
17173
17174 #. type: verbatim
17175 #: ../fish/guestfish-actions.pod:5237
17176 #, no-wrap
17177 msgid ""
17178 " wc-w path\n"
17179 "\n"
17180 msgstr ""
17181
17182 #. type: textblock
17183 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:8109
17184 msgid ""
17185 "This command counts the words in a file, using the C<wc -w> external command."
17186 msgstr ""
17187
17188 #. type: =head2
17189 #: ../fish/guestfish-actions.pod:5242
17190 msgid "write"
17191 msgstr ""
17192
17193 #. type: verbatim
17194 #: ../fish/guestfish-actions.pod:5244
17195 #, no-wrap
17196 msgid ""
17197 " write path content\n"
17198 "\n"
17199 msgstr ""
17200
17201 #. type: textblock
17202 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8124
17203 msgid ""
17204 "This call creates a file called C<path>.  The content of the file is the "
17205 "string C<content> (which can contain any 8 bit data)."
17206 msgstr ""
17207
17208 #. type: textblock
17209 #: ../fish/guestfish-actions.pod:5249
17210 msgid "See also L</write-append>."
17211 msgstr ""
17212
17213 #. type: =head2
17214 #: ../fish/guestfish-actions.pod:5254
17215 msgid "write-append"
17216 msgstr ""
17217
17218 #. type: verbatim
17219 #: ../fish/guestfish-actions.pod:5256
17220 #, no-wrap
17221 msgid ""
17222 " write-append path content\n"
17223 "\n"
17224 msgstr ""
17225
17226 #. type: textblock
17227 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8144
17228 msgid ""
17229 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17230 "not exist, then a new file is created."
17231 msgstr ""
17232
17233 #. type: textblock
17234 #: ../fish/guestfish-actions.pod:5261
17235 msgid "See also L</write>."
17236 msgstr ""
17237
17238 #. type: =head2
17239 #: ../fish/guestfish-actions.pod:5266
17240 msgid "write-file"
17241 msgstr ""
17242
17243 #. type: verbatim
17244 #: ../fish/guestfish-actions.pod:5268
17245 #, no-wrap
17246 msgid ""
17247 " write-file path content size\n"
17248 "\n"
17249 msgstr ""
17250
17251 #. type: textblock
17252 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8171
17253 msgid ""
17254 "This call creates a file called C<path>.  The contents of the file is the "
17255 "string C<content> (which can contain any 8 bit data), with length C<size>."
17256 msgstr ""
17257
17258 #. type: textblock
17259 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8175
17260 msgid ""
17261 "As a special case, if C<size> is C<0> then the length is calculated using "
17262 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17263 msgstr ""
17264
17265 #. type: textblock
17266 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8179
17267 msgid ""
17268 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17269 "I<not> work, even if the length is specified."
17270 msgstr ""
17271
17272 #. type: textblock
17273 #: ../fish/guestfish-actions.pod:5284
17274 msgid ""
17275 "I<This function is deprecated.> In new code, use the L</write> call instead."
17276 msgstr ""
17277
17278 #. type: =head2
17279 #: ../fish/guestfish-actions.pod:5291
17280 msgid "zegrep"
17281 msgstr ""
17282
17283 #. type: verbatim
17284 #: ../fish/guestfish-actions.pod:5293
17285 #, no-wrap
17286 msgid ""
17287 " zegrep regex path\n"
17288 "\n"
17289 msgstr ""
17290
17291 #. type: textblock
17292 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8196
17293 msgid ""
17294 "This calls the external C<zegrep> program and returns the matching lines."
17295 msgstr ""
17296
17297 #. type: =head2
17298 #: ../fish/guestfish-actions.pod:5301
17299 msgid "zegrepi"
17300 msgstr ""
17301
17302 #. type: verbatim
17303 #: ../fish/guestfish-actions.pod:5303
17304 #, no-wrap
17305 msgid ""
17306 " zegrepi regex path\n"
17307 "\n"
17308 msgstr ""
17309
17310 #. type: textblock
17311 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8215
17312 msgid ""
17313 "This calls the external C<zegrep -i> program and returns the matching lines."
17314 msgstr ""
17315
17316 #. type: =head2
17317 #: ../fish/guestfish-actions.pod:5311
17318 msgid "zero"
17319 msgstr ""
17320
17321 #. type: verbatim
17322 #: ../fish/guestfish-actions.pod:5313
17323 #, no-wrap
17324 msgid ""
17325 " zero device\n"
17326 "\n"
17327 msgstr ""
17328
17329 #. type: textblock
17330 #: ../fish/guestfish-actions.pod:5315 ../src/guestfs-actions.pod:8233
17331 msgid "This command writes zeroes over the first few blocks of C<device>."
17332 msgstr ""
17333
17334 #. type: textblock
17335 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8235
17336 msgid ""
17337 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17338 "securely wipe the device).  It should be sufficient to remove any partition "
17339 "tables, filesystem superblocks and so on."
17340 msgstr ""
17341
17342 #. type: textblock
17343 #: ../fish/guestfish-actions.pod:5321 ../fish/guestfish-actions.pod:5336
17344 #: ../src/guestfs-actions.pod:8239 ../src/guestfs-actions.pod:8265
17345 msgid ""
17346 "If blocks are already zero, then this command avoids writing zeroes.  This "
17347 "prevents the underlying device from becoming non-sparse or growing "
17348 "unnecessarily."
17349 msgstr ""
17350
17351 #. type: textblock
17352 #: ../fish/guestfish-actions.pod:5325
17353 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17354 msgstr ""
17355
17356 #. type: =head2
17357 #: ../fish/guestfish-actions.pod:5328
17358 msgid "zero-device"
17359 msgstr ""
17360
17361 #. type: verbatim
17362 #: ../fish/guestfish-actions.pod:5330
17363 #, no-wrap
17364 msgid ""
17365 " zero-device device\n"
17366 "\n"
17367 msgstr ""
17368
17369 #. type: textblock
17370 #: ../fish/guestfish-actions.pod:5332
17371 msgid ""
17372 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17373 "which just zeroes the first few blocks of a device."
17374 msgstr ""
17375
17376 #. type: =head2
17377 #: ../fish/guestfish-actions.pod:5340
17378 msgid "zerofree"
17379 msgstr ""
17380
17381 #. type: verbatim
17382 #: ../fish/guestfish-actions.pod:5342
17383 #, no-wrap
17384 msgid ""
17385 " zerofree device\n"
17386 "\n"
17387 msgstr ""
17388
17389 #. type: textblock
17390 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8284
17391 msgid ""
17392 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17393 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17394 "possible to compress the filesystem more effectively."
17395 msgstr ""
17396
17397 #. type: textblock
17398 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8289
17399 msgid "You should B<not> run this program if the filesystem is mounted."
17400 msgstr ""
17401
17402 #. type: textblock
17403 #: ../fish/guestfish-actions.pod:5352 ../src/guestfs-actions.pod:8292
17404 msgid ""
17405 "It is possible that using this program can damage the filesystem or data on "
17406 "the filesystem."
17407 msgstr ""
17408
17409 #. type: =head2
17410 #: ../fish/guestfish-actions.pod:5355
17411 msgid "zfgrep"
17412 msgstr ""
17413
17414 #. type: verbatim
17415 #: ../fish/guestfish-actions.pod:5357
17416 #, no-wrap
17417 msgid ""
17418 " zfgrep pattern path\n"
17419 "\n"
17420 msgstr ""
17421
17422 #. type: textblock
17423 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8306
17424 msgid ""
17425 "This calls the external C<zfgrep> program and returns the matching lines."
17426 msgstr ""
17427
17428 #. type: =head2
17429 #: ../fish/guestfish-actions.pod:5365
17430 msgid "zfgrepi"
17431 msgstr ""
17432
17433 #. type: verbatim
17434 #: ../fish/guestfish-actions.pod:5367
17435 #, no-wrap
17436 msgid ""
17437 " zfgrepi pattern path\n"
17438 "\n"
17439 msgstr ""
17440
17441 #. type: textblock
17442 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8325
17443 msgid ""
17444 "This calls the external C<zfgrep -i> program and returns the matching lines."
17445 msgstr ""
17446
17447 #. type: =head2
17448 #: ../fish/guestfish-actions.pod:5375
17449 msgid "zfile"
17450 msgstr ""
17451
17452 #. type: verbatim
17453 #: ../fish/guestfish-actions.pod:5377
17454 #, no-wrap
17455 msgid ""
17456 " zfile meth path\n"
17457 "\n"
17458 msgstr ""
17459
17460 #. type: textblock
17461 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8351
17462 msgid ""
17463 "This command runs C<file> after first decompressing C<path> using C<method>."
17464 msgstr ""
17465
17466 #. type: textblock
17467 #: ../fish/guestfish-actions.pod:5382 ../src/guestfs-actions.pod:8354
17468 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17469 msgstr ""
17470
17471 #. type: textblock
17472 #: ../fish/guestfish-actions.pod:5384
17473 msgid ""
17474 "Since 1.0.63, use L</file> instead which can now process compressed files."
17475 msgstr ""
17476
17477 #. type: textblock
17478 #: ../fish/guestfish-actions.pod:5387
17479 msgid ""
17480 "I<This function is deprecated.> In new code, use the L</file> call instead."
17481 msgstr ""
17482
17483 #. type: =head2
17484 #: ../fish/guestfish-actions.pod:5394
17485 msgid "zgrep"
17486 msgstr ""
17487
17488 #. type: verbatim
17489 #: ../fish/guestfish-actions.pod:5396
17490 #, no-wrap
17491 msgid ""
17492 " zgrep regex path\n"
17493 "\n"
17494 msgstr ""
17495
17496 #. type: textblock
17497 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8371
17498 msgid ""
17499 "This calls the external C<zgrep> program and returns the matching lines."
17500 msgstr ""
17501
17502 #. type: =head2
17503 #: ../fish/guestfish-actions.pod:5404
17504 msgid "zgrepi"
17505 msgstr ""
17506
17507 #. type: verbatim
17508 #: ../fish/guestfish-actions.pod:5406
17509 #, no-wrap
17510 msgid ""
17511 " zgrepi regex path\n"
17512 "\n"
17513 msgstr ""
17514
17515 #. type: textblock
17516 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8390
17517 msgid ""
17518 "This calls the external C<zgrep -i> program and returns the matching lines."
17519 msgstr ""
17520
17521 #. type: =head2
17522 #: ../fish/guestfish-commands.pod:1
17523 msgid "alloc"
17524 msgstr ""
17525
17526 #. type: =head2
17527 #: ../fish/guestfish-commands.pod:3
17528 msgid "allocate"
17529 msgstr ""
17530
17531 #. type: verbatim
17532 #: ../fish/guestfish-commands.pod:5
17533 #, no-wrap
17534 msgid ""
17535 " alloc filename size\n"
17536 "\n"
17537 msgstr ""
17538
17539 #. type: textblock
17540 #: ../fish/guestfish-commands.pod:7
17541 msgid ""
17542 "This creates an empty (zeroed) file of the given size, and then adds so it "
17543 "can be further examined."
17544 msgstr ""
17545
17546 #. type: textblock
17547 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17548 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17549 msgstr ""
17550
17551 #. type: textblock
17552 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17553 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17554 msgstr ""
17555
17556 #. type: textblock
17557 #: ../fish/guestfish-commands.pod:14
17558 msgid ""
17559 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17560 "image, see L</PREPARED DISK IMAGES>."
17561 msgstr ""
17562
17563 #. type: =head2
17564 #: ../fish/guestfish-commands.pod:17
17565 msgid "copy-in"
17566 msgstr ""
17567
17568 #. type: verbatim
17569 #: ../fish/guestfish-commands.pod:19
17570 #, no-wrap
17571 msgid ""
17572 " copy-in local [local ...] /remotedir\n"
17573 "\n"
17574 msgstr ""
17575
17576 #. type: textblock
17577 #: ../fish/guestfish-commands.pod:21
17578 msgid ""
17579 "C<copy-in> copies local files or directories recursively into the disk "
17580 "image, placing them in the directory called C</remotedir> (which must "
17581 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17582 "other commands as necessary."
17583 msgstr ""
17584
17585 #. type: textblock
17586 #: ../fish/guestfish-commands.pod:26
17587 msgid ""
17588 "Multiple local files and directories can be specified, but the last "
17589 "parameter must always be a remote directory.  Wildcards cannot be used."
17590 msgstr ""
17591
17592 #. type: =head2
17593 #: ../fish/guestfish-commands.pod:30
17594 msgid "copy-out"
17595 msgstr ""
17596
17597 #. type: verbatim
17598 #: ../fish/guestfish-commands.pod:32
17599 #, no-wrap
17600 msgid ""
17601 " copy-out remote [remote ...] localdir\n"
17602 "\n"
17603 msgstr ""
17604
17605 #. type: textblock
17606 #: ../fish/guestfish-commands.pod:34
17607 msgid ""
17608 "C<copy-out> copies remote files or directories recursively out of the disk "
17609 "image, placing them on the host disk in a local directory called C<localdir> "
17610 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
17611 "download>, L</tar-out> and other commands as necessary."
17612 msgstr ""
17613
17614 #. type: textblock
17615 #: ../fish/guestfish-commands.pod:40
17616 msgid ""
17617 "Multiple remote files and directories can be specified, but the last "
17618 "parameter must always be a local directory.  To download to the current "
17619 "directory, use C<.> as in:"
17620 msgstr ""
17621
17622 #. type: verbatim
17623 #: ../fish/guestfish-commands.pod:44
17624 #, no-wrap
17625 msgid ""
17626 " copy-out /home .\n"
17627 "\n"
17628 msgstr ""
17629
17630 #. type: textblock
17631 #: ../fish/guestfish-commands.pod:46
17632 msgid ""
17633 "Wildcards cannot be used in the ordinary command, but you can use them with "
17634 "the help of L</glob> like this:"
17635 msgstr ""
17636
17637 #. type: verbatim
17638 #: ../fish/guestfish-commands.pod:49
17639 #, no-wrap
17640 msgid ""
17641 " glob copy-out /home/* .\n"
17642 "\n"
17643 msgstr ""
17644
17645 #. type: =head2
17646 #: ../fish/guestfish-commands.pod:51
17647 msgid "display"
17648 msgstr ""
17649
17650 #. type: verbatim
17651 #: ../fish/guestfish-commands.pod:53
17652 #, no-wrap
17653 msgid ""
17654 " display filename\n"
17655 "\n"
17656 msgstr ""
17657
17658 #. type: textblock
17659 #: ../fish/guestfish-commands.pod:55
17660 msgid ""
17661 "Use C<display> (a graphical display program) to display an image file.  It "
17662 "downloads the file, and runs C<display> on it."
17663 msgstr ""
17664
17665 #. type: textblock
17666 #: ../fish/guestfish-commands.pod:58
17667 msgid ""
17668 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17669 "environment variable.  For example to use the GNOME display program:"
17670 msgstr ""
17671
17672 #. type: verbatim
17673 #: ../fish/guestfish-commands.pod:61
17674 #, no-wrap
17675 msgid ""
17676 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17677 "\n"
17678 msgstr ""
17679
17680 #. type: textblock
17681 #: ../fish/guestfish-commands.pod:63
17682 msgid "See also L<display(1)>."
17683 msgstr ""
17684
17685 #. type: =head2
17686 #: ../fish/guestfish-commands.pod:65
17687 msgid "echo"
17688 msgstr ""
17689
17690 #. type: verbatim
17691 #: ../fish/guestfish-commands.pod:67
17692 #, no-wrap
17693 msgid ""
17694 " echo [params ...]\n"
17695 "\n"
17696 msgstr ""
17697
17698 #. type: textblock
17699 #: ../fish/guestfish-commands.pod:69
17700 msgid "This echos the parameters to the terminal."
17701 msgstr ""
17702
17703 #. type: =head2
17704 #: ../fish/guestfish-commands.pod:71
17705 msgid "edit"
17706 msgstr ""
17707
17708 #. type: =head2
17709 #: ../fish/guestfish-commands.pod:73
17710 msgid "vi"
17711 msgstr ""
17712
17713 #. type: =head2
17714 #: ../fish/guestfish-commands.pod:75
17715 msgid "emacs"
17716 msgstr ""
17717
17718 #. type: verbatim
17719 #: ../fish/guestfish-commands.pod:77
17720 #, no-wrap
17721 msgid ""
17722 " edit filename\n"
17723 "\n"
17724 msgstr ""
17725
17726 #. type: textblock
17727 #: ../fish/guestfish-commands.pod:79
17728 msgid ""
17729 "This is used to edit a file.  It downloads the file, edits it locally using "
17730 "your editor, then uploads the result."
17731 msgstr ""
17732
17733 #. type: textblock
17734 #: ../fish/guestfish-commands.pod:82
17735 msgid ""
17736 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17737 "or C<emacs> you will get those corresponding editors."
17738 msgstr ""
17739
17740 #. type: =head2
17741 #: ../fish/guestfish-commands.pod:86
17742 msgid "glob"
17743 msgstr ""
17744
17745 #. type: verbatim
17746 #: ../fish/guestfish-commands.pod:88
17747 #, no-wrap
17748 msgid ""
17749 " glob command args...\n"
17750 "\n"
17751 msgstr ""
17752
17753 #. type: textblock
17754 #: ../fish/guestfish-commands.pod:90
17755 msgid ""
17756 "Expand wildcards in any paths in the args list, and run C<command> "
17757 "repeatedly on each matching path."
17758 msgstr ""
17759
17760 #. type: textblock
17761 #: ../fish/guestfish-commands.pod:93
17762 msgid "See L</WILDCARDS AND GLOBBING>."
17763 msgstr ""
17764
17765 #. type: =head2
17766 #: ../fish/guestfish-commands.pod:95
17767 msgid "hexedit"
17768 msgstr ""
17769
17770 #. type: verbatim
17771 #: ../fish/guestfish-commands.pod:97
17772 #, no-wrap
17773 msgid ""
17774 " hexedit <filename|device>\n"
17775 " hexedit <filename|device> <max>\n"
17776 " hexedit <filename|device> <start> <max>\n"
17777 "\n"
17778 msgstr ""
17779
17780 #. type: textblock
17781 #: ../fish/guestfish-commands.pod:101
17782 msgid ""
17783 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17784 "device."
17785 msgstr ""
17786
17787 #. type: textblock
17788 #: ../fish/guestfish-commands.pod:104
17789 msgid ""
17790 "This command works by downloading potentially the whole file or device, "
17791 "editing it locally, then uploading it.  If the file or device is large, you "
17792 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17793 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17794 "usual modifiers allowed such as C<1M> (1 megabyte)."
17795 msgstr ""
17796
17797 #. type: textblock
17798 #: ../fish/guestfish-commands.pod:111
17799 msgid "For example to edit the first few sectors of a disk you might do:"
17800 msgstr ""
17801
17802 #. type: verbatim
17803 #: ../fish/guestfish-commands.pod:114
17804 #, no-wrap
17805 msgid ""
17806 " hexedit /dev/sda 1M\n"
17807 "\n"
17808 msgstr ""
17809
17810 #. type: textblock
17811 #: ../fish/guestfish-commands.pod:116
17812 msgid ""
17813 "which would allow you to edit anywhere within the first megabyte of the disk."
17814 msgstr ""
17815
17816 #. type: textblock
17817 #: ../fish/guestfish-commands.pod:119
17818 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17819 msgstr ""
17820
17821 #. type: verbatim
17822 #: ../fish/guestfish-commands.pod:121
17823 #, no-wrap
17824 msgid ""
17825 " hexedit /dev/sda1 0x400 0x400\n"
17826 "\n"
17827 msgstr ""
17828
17829 #. type: textblock
17830 #: ../fish/guestfish-commands.pod:123
17831 msgid "(assuming the superblock is in the standard location)."
17832 msgstr ""
17833
17834 #. type: textblock
17835 #: ../fish/guestfish-commands.pod:125
17836 msgid ""
17837 "This command requires the external L<hexedit(1)> program.  You can specify "
17838 "another program to use by setting the C<HEXEDITOR> environment variable."
17839 msgstr ""
17840
17841 #. type: textblock
17842 #: ../fish/guestfish-commands.pod:129
17843 msgid "See also L</hexdump>."
17844 msgstr ""
17845
17846 #. type: =head2
17847 #: ../fish/guestfish-commands.pod:131
17848 msgid "lcd"
17849 msgstr ""
17850
17851 #. type: verbatim
17852 #: ../fish/guestfish-commands.pod:133
17853 #, no-wrap
17854 msgid ""
17855 " lcd directory\n"
17856 "\n"
17857 msgstr ""
17858
17859 #. type: textblock
17860 #: ../fish/guestfish-commands.pod:135
17861 msgid ""
17862 "Change the local directory, ie. the current directory of guestfish itself."
17863 msgstr ""
17864
17865 #. type: textblock
17866 #: ../fish/guestfish-commands.pod:138
17867 msgid "Note that C<!cd> won't do what you might expect."
17868 msgstr ""
17869
17870 #. type: =head2
17871 #: ../fish/guestfish-commands.pod:140
17872 msgid "man"
17873 msgstr ""
17874
17875 #. type: =head2
17876 #: ../fish/guestfish-commands.pod:142
17877 msgid "manual"
17878 msgstr ""
17879
17880 #. type: verbatim
17881 #: ../fish/guestfish-commands.pod:144
17882 #, no-wrap
17883 msgid ""
17884 "  man\n"
17885 "\n"
17886 msgstr ""
17887
17888 #. type: textblock
17889 #: ../fish/guestfish-commands.pod:146
17890 msgid "Opens the manual page for guestfish."
17891 msgstr ""
17892
17893 #. type: =head2
17894 #: ../fish/guestfish-commands.pod:148
17895 msgid "more"
17896 msgstr ""
17897
17898 #. type: =head2
17899 #: ../fish/guestfish-commands.pod:150
17900 msgid "less"
17901 msgstr ""
17902
17903 #. type: verbatim
17904 #: ../fish/guestfish-commands.pod:152
17905 #, no-wrap
17906 msgid ""
17907 " more filename\n"
17908 "\n"
17909 msgstr ""
17910
17911 #. type: verbatim
17912 #: ../fish/guestfish-commands.pod:154
17913 #, no-wrap
17914 msgid ""
17915 " less filename\n"
17916 "\n"
17917 msgstr ""
17918
17919 #. type: textblock
17920 #: ../fish/guestfish-commands.pod:156
17921 msgid "This is used to view a file."
17922 msgstr ""
17923
17924 #. type: textblock
17925 #: ../fish/guestfish-commands.pod:158
17926 msgid ""
17927 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17928 "C<less> you will get the C<less> command specifically."
17929 msgstr ""
17930
17931 #. type: =head2
17932 #: ../fish/guestfish-commands.pod:161
17933 msgid "reopen"
17934 msgstr ""
17935
17936 #. type: verbatim
17937 #: ../fish/guestfish-commands.pod:163
17938 #, no-wrap
17939 msgid ""
17940 "  reopen\n"
17941 "\n"
17942 msgstr ""
17943
17944 #. type: textblock
17945 #: ../fish/guestfish-commands.pod:165
17946 msgid ""
17947 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17948 "normally, because the handle is closed properly when guestfish exits.  "
17949 "However this is occasionally useful for testing."
17950 msgstr ""
17951
17952 #. type: =head2
17953 #: ../fish/guestfish-commands.pod:169
17954 msgid "setenv"
17955 msgstr ""
17956
17957 #. type: verbatim
17958 #: ../fish/guestfish-commands.pod:171
17959 #, no-wrap
17960 msgid ""
17961 "  setenv VAR value\n"
17962 "\n"
17963 msgstr ""
17964
17965 #. type: textblock
17966 #: ../fish/guestfish-commands.pod:173
17967 msgid "Set the environment variable C<VAR> to the string C<value>."
17968 msgstr ""
17969
17970 #. type: textblock
17971 #: ../fish/guestfish-commands.pod:175
17972 msgid ""
17973 "To print the value of an environment variable use a shell command such as:"
17974 msgstr ""
17975
17976 #. type: verbatim
17977 #: ../fish/guestfish-commands.pod:178
17978 #, no-wrap
17979 msgid ""
17980 " !echo $VAR\n"
17981 "\n"
17982 msgstr ""
17983
17984 #. type: =head2
17985 #: ../fish/guestfish-commands.pod:180
17986 msgid "sparse"
17987 msgstr ""
17988
17989 #. type: verbatim
17990 #: ../fish/guestfish-commands.pod:182
17991 #, no-wrap
17992 msgid ""
17993 " sparse filename size\n"
17994 "\n"
17995 msgstr ""
17996
17997 #. type: textblock
17998 #: ../fish/guestfish-commands.pod:184
17999 msgid ""
18000 "This creates an empty sparse file of the given size, and then adds so it can "
18001 "be further examined."
18002 msgstr ""
18003
18004 #. type: textblock
18005 #: ../fish/guestfish-commands.pod:187
18006 msgid ""
18007 "In all respects it works the same as the L</alloc> command, except that the "
18008 "image file is allocated sparsely, which means that disk blocks are not "
18009 "assigned to the file until they are needed.  Sparse disk files only use "
18010 "space when written to, but they are slower and there is a danger you could "
18011 "run out of real disk space during a write operation."
18012 msgstr ""
18013
18014 #. type: =head2
18015 #: ../fish/guestfish-commands.pod:197
18016 msgid "supported"
18017 msgstr ""
18018
18019 #. type: verbatim
18020 #: ../fish/guestfish-commands.pod:199
18021 #, no-wrap
18022 msgid ""
18023 " supported\n"
18024 "\n"
18025 msgstr ""
18026
18027 #. type: textblock
18028 #: ../fish/guestfish-commands.pod:201
18029 msgid ""
18030 "This command returns a list of the optional groups known to the daemon, and "
18031 "indicates which ones are supported by this build of the libguestfs appliance."
18032 msgstr ""
18033
18034 #. type: textblock
18035 #: ../fish/guestfish-commands.pod:205
18036 msgid "See also L<guestfs(3)/AVAILABILITY>."
18037 msgstr ""
18038
18039 #. type: =head2
18040 #: ../fish/guestfish-commands.pod:207
18041 msgid "time"
18042 msgstr ""
18043
18044 #. type: verbatim
18045 #: ../fish/guestfish-commands.pod:209
18046 #, no-wrap
18047 msgid ""
18048 " time command args...\n"
18049 "\n"
18050 msgstr ""
18051
18052 #. type: textblock
18053 #: ../fish/guestfish-commands.pod:211
18054 msgid ""
18055 "Run the command as usual, but print the elapsed time afterwards.  This can "
18056 "be useful for benchmarking operations."
18057 msgstr ""
18058
18059 #. type: =head2
18060 #: ../fish/guestfish-commands.pod:214
18061 msgid "unsetenv"
18062 msgstr ""
18063
18064 #. type: verbatim
18065 #: ../fish/guestfish-commands.pod:216
18066 #, no-wrap
18067 msgid ""
18068 "  unsetenv VAR\n"
18069 "\n"
18070 msgstr ""
18071
18072 #. type: textblock
18073 #: ../fish/guestfish-commands.pod:218
18074 msgid "Remove C<VAR> from the environment."
18075 msgstr ""
18076
18077 #. type: textblock
18078 #: ../fish/guestfish.pod:5
18079 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18080 msgstr ""
18081
18082 #. type: verbatim
18083 #: ../fish/guestfish.pod:9
18084 #, no-wrap
18085 msgid ""
18086 " guestfish [--options] [commands]\n"
18087 "\n"
18088 msgstr ""
18089
18090 #. type: verbatim
18091 #: ../fish/guestfish.pod:11
18092 #, no-wrap
18093 msgid ""
18094 " guestfish\n"
18095 "\n"
18096 msgstr ""
18097
18098 #. type: verbatim
18099 #: ../fish/guestfish.pod:13
18100 #, no-wrap
18101 msgid ""
18102 " guestfish [--ro|--rw] -a disk.img\n"
18103 "\n"
18104 msgstr ""
18105
18106 #. type: verbatim
18107 #: ../fish/guestfish.pod:15
18108 #, no-wrap
18109 msgid ""
18110 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18111 "\n"
18112 msgstr ""
18113
18114 #. type: verbatim
18115 #: ../fish/guestfish.pod:17
18116 #, no-wrap
18117 msgid ""
18118 " guestfish -d libvirt-domain\n"
18119 "\n"
18120 msgstr ""
18121
18122 #. type: verbatim
18123 #: ../fish/guestfish.pod:19
18124 #, no-wrap
18125 msgid ""
18126 " guestfish [--ro|--rw] -a disk.img -i\n"
18127 "\n"
18128 msgstr ""
18129
18130 #. type: verbatim
18131 #: ../fish/guestfish.pod:21
18132 #, no-wrap
18133 msgid ""
18134 " guestfish -d libvirt-domain -i\n"
18135 "\n"
18136 msgstr ""
18137
18138 #. type: textblock
18139 #: ../fish/guestfish.pod:25
18140 msgid ""
18141 "Using guestfish in read/write mode on live virtual machines can be "
18142 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18143 "option to use guestfish safely if the disk image or virtual machine might be "
18144 "live."
18145 msgstr ""
18146
18147 #. type: textblock
18148 #: ../fish/guestfish.pod:32
18149 msgid ""
18150 "Guestfish is a shell and command-line tool for examining and modifying "
18151 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18152 "functionality of the guestfs API, see L<guestfs(3)>."
18153 msgstr ""
18154
18155 #. type: textblock
18156 #: ../fish/guestfish.pod:36
18157 msgid ""
18158 "Guestfish gives you structured access to the libguestfs API, from shell "
18159 "scripts or the command line or interactively.  If you want to rescue a "
18160 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18161 "command."
18162 msgstr ""
18163
18164 #. type: =head2
18165 #: ../fish/guestfish.pod:43
18166 msgid "As an interactive shell"
18167 msgstr ""
18168
18169 #. type: verbatim
18170 #: ../fish/guestfish.pod:45
18171 #, no-wrap
18172 msgid ""
18173 " $ guestfish\n"
18174 " \n"
18175 msgstr ""
18176
18177 #. type: verbatim
18178 #: ../fish/guestfish.pod:47
18179 #, no-wrap
18180 msgid ""
18181 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18182 " editing virtual machine filesystems.\n"
18183 " \n"
18184 msgstr ""
18185
18186 #. type: verbatim
18187 #: ../fish/guestfish.pod:50
18188 #, no-wrap
18189 msgid ""
18190 " Type: 'help' for a list of commands\n"
18191 "       'man' to read the manual\n"
18192 "       'quit' to quit the shell\n"
18193 " \n"
18194 msgstr ""
18195
18196 #. type: verbatim
18197 #: ../fish/guestfish.pod:54
18198 #, no-wrap
18199 msgid ""
18200 " ><fs> add-ro disk.img\n"
18201 " ><fs> run\n"
18202 " ><fs> list-filesystems\n"
18203 " /dev/sda1: ext4\n"
18204 " /dev/vg_guest/lv_root: ext4\n"
18205 " /dev/vg_guest/lv_swap: swap\n"
18206 " ><fs> mount /dev/vg_guest/lv_root /\n"
18207 " ><fs> cat /etc/fstab\n"
18208 " # /etc/fstab\n"
18209 " # Created by anaconda\n"
18210 " [...]\n"
18211 " ><fs> exit\n"
18212 "\n"
18213 msgstr ""
18214
18215 #. type: =head2
18216 #: ../fish/guestfish.pod:67
18217 msgid "From shell scripts"
18218 msgstr ""
18219
18220 #. type: textblock
18221 #: ../fish/guestfish.pod:69
18222 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18223 msgstr ""
18224
18225 #. type: verbatim
18226 #: ../fish/guestfish.pod:71
18227 #, no-wrap
18228 msgid ""
18229 " guestfish <<_EOF_\n"
18230 " add disk.img\n"
18231 " run\n"
18232 " mount /dev/vg_guest/lv_root /\n"
18233 " write /etc/motd \"Welcome, new users\"\n"
18234 " _EOF_\n"
18235 "\n"
18236 msgstr ""
18237
18238 #. type: textblock
18239 #: ../fish/guestfish.pod:78
18240 msgid "List the LVM logical volumes in a disk image:"
18241 msgstr ""
18242
18243 #. type: verbatim
18244 #: ../fish/guestfish.pod:80
18245 #, no-wrap
18246 msgid ""
18247 " guestfish -a disk.img --ro <<_EOF_\n"
18248 " run\n"
18249 " lvs\n"
18250 " _EOF_\n"
18251 "\n"
18252 msgstr ""
18253
18254 #. type: textblock
18255 #: ../fish/guestfish.pod:85
18256 msgid "List all the filesystems in a disk image:"
18257 msgstr ""
18258
18259 #. type: verbatim
18260 #: ../fish/guestfish.pod:87
18261 #, no-wrap
18262 msgid ""
18263 " guestfish -a disk.img --ro <<_EOF_\n"
18264 " run\n"
18265 " list-filesystems\n"
18266 " _EOF_\n"
18267 "\n"
18268 msgstr ""
18269
18270 #. type: =head2
18271 #: ../fish/guestfish.pod:92
18272 msgid "On one command line"
18273 msgstr ""
18274
18275 #. type: textblock
18276 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18277 msgid "Update C</etc/resolv.conf> in a guest:"
18278 msgstr ""
18279
18280 #. type: verbatim
18281 #: ../fish/guestfish.pod:96
18282 #, no-wrap
18283 msgid ""
18284 " guestfish \\\n"
18285 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18286 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18287 "\n"
18288 msgstr ""
18289
18290 #. type: textblock
18291 #: ../fish/guestfish.pod:100
18292 msgid "Edit C</boot/grub/grub.conf> interactively:"
18293 msgstr ""
18294
18295 #. type: verbatim
18296 #: ../fish/guestfish.pod:102
18297 #, no-wrap
18298 msgid ""
18299 " guestfish --rw --add disk.img \\\n"
18300 "   --mount /dev/vg_guest/lv_root \\\n"
18301 "   --mount /dev/sda1:/boot \\\n"
18302 "   edit /boot/grub/grub.conf\n"
18303 "\n"
18304 msgstr ""
18305
18306 #. type: =head2
18307 #: ../fish/guestfish.pod:107
18308 msgid "Mount disks automatically"
18309 msgstr ""
18310
18311 #. type: textblock
18312 #: ../fish/guestfish.pod:109
18313 msgid ""
18314 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18315 msgstr ""
18316
18317 #. type: verbatim
18318 #: ../fish/guestfish.pod:112
18319 #, no-wrap
18320 msgid ""
18321 " guestfish --ro -a disk.img -i cat /etc/group\n"
18322 "\n"
18323 msgstr ""
18324
18325 #. type: verbatim
18326 #: ../fish/guestfish.pod:114
18327 #, no-wrap
18328 msgid ""
18329 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18330 "\n"
18331 msgstr ""
18332
18333 #. type: textblock
18334 #: ../fish/guestfish.pod:116
18335 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18336 msgstr ""
18337
18338 #. type: verbatim
18339 #: ../fish/guestfish.pod:118
18340 #, no-wrap
18341 msgid ""
18342 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18343 "\n"
18344 msgstr ""
18345
18346 #. type: =head2
18347 #: ../fish/guestfish.pod:120
18348 msgid "As a script interpreter"
18349 msgstr ""
18350
18351 #. type: textblock
18352 #: ../fish/guestfish.pod:122
18353 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18354 msgstr ""
18355
18356 #. type: verbatim
18357 #: ../fish/guestfish.pod:124
18358 #, no-wrap
18359 msgid ""
18360 " #!/usr/bin/guestfish -f\n"
18361 " sparse test1.img 100M\n"
18362 " run\n"
18363 " part-disk /dev/sda mbr\n"
18364 " mkfs ext2 /dev/sda1\n"
18365 "\n"
18366 msgstr ""
18367
18368 #. type: =head2
18369 #: ../fish/guestfish.pod:130
18370 msgid "Start with a prepared disk"
18371 msgstr ""
18372
18373 #. type: textblock
18374 #: ../fish/guestfish.pod:132
18375 msgid ""
18376 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18377 "single ext2-formatted partition:"
18378 msgstr ""
18379
18380 #. type: verbatim
18381 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18382 #, no-wrap
18383 msgid ""
18384 " guestfish -N fs\n"
18385 "\n"
18386 msgstr ""
18387
18388 #. type: textblock
18389 #: ../fish/guestfish.pod:137
18390 msgid "To list what is available do:"
18391 msgstr ""
18392
18393 #. type: verbatim
18394 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18395 #, no-wrap
18396 msgid ""
18397 " guestfish -N help | less\n"
18398 "\n"
18399 msgstr ""
18400
18401 #. type: =head2
18402 #: ../fish/guestfish.pod:141
18403 msgid "Remote control"
18404 msgstr ""
18405
18406 #. type: verbatim
18407 #: ../fish/guestfish.pod:143
18408 #, no-wrap
18409 msgid ""
18410 " eval \"`guestfish --listen`\"\n"
18411 " guestfish --remote add-ro disk.img\n"
18412 " guestfish --remote run\n"
18413 " guestfish --remote lvs\n"
18414 "\n"
18415 msgstr ""
18416
18417 #. type: textblock
18418 #: ../fish/guestfish.pod:154
18419 msgid "Displays general help on options."
18420 msgstr ""
18421
18422 #. type: =item
18423 #: ../fish/guestfish.pod:158
18424 msgid "B<--cmd-help>"
18425 msgstr ""
18426
18427 #. type: textblock
18428 #: ../fish/guestfish.pod:160
18429 msgid "Lists all available guestfish commands."
18430 msgstr ""
18431
18432 #. type: =item
18433 #: ../fish/guestfish.pod:162
18434 msgid "B<-h cmd>"
18435 msgstr ""
18436
18437 #. type: =item
18438 #: ../fish/guestfish.pod:164
18439 msgid "B<--cmd-help cmd>"
18440 msgstr ""
18441
18442 #. type: textblock
18443 #: ../fish/guestfish.pod:166
18444 msgid "Displays detailed help on a single command C<cmd>."
18445 msgstr ""
18446
18447 #. type: =item
18448 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18449 msgid "B<-a image>"
18450 msgstr ""
18451
18452 #. type: =item
18453 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18454 msgid "B<--add image>"
18455 msgstr ""
18456
18457 #. type: textblock
18458 #: ../fish/guestfish.pod:172
18459 msgid "Add a block device or virtual machine image to the shell."
18460 msgstr ""
18461
18462 #. type: textblock
18463 #: ../fish/guestfish.pod:177
18464 msgid ""
18465 "Using this flag is mostly equivalent to using the C<add> command, with "
18466 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18467 "the I<--format=...> flag was given."
18468 msgstr ""
18469
18470 #. type: textblock
18471 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18472 msgid ""
18473 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18474 "URI to use.  The default is to use the default libvirt connection."
18475 msgstr ""
18476
18477 #. type: =item
18478 #: ../fish/guestfish.pod:189
18479 msgid "B<--csh>"
18480 msgstr ""
18481
18482 #. type: textblock
18483 #: ../fish/guestfish.pod:191
18484 msgid ""
18485 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18486 "section L</REMOTE CONTROL AND CSH> below."
18487 msgstr ""
18488
18489 #. type: =item
18490 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18491 msgid "B<-d libvirt-domain>"
18492 msgstr ""
18493
18494 #. type: =item
18495 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18496 msgid "B<--domain libvirt-domain>"
18497 msgstr ""
18498
18499 #. type: textblock
18500 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18501 msgid ""
18502 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18503 "used, then any libvirt domain can be used.  However in write mode, only "
18504 "libvirt domains which are shut down can be named here."
18505 msgstr ""
18506
18507 #. type: textblock
18508 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18509 msgid "Domain UUIDs can be used instead of names."
18510 msgstr ""
18511
18512 #. type: textblock
18513 #: ../fish/guestfish.pod:204
18514 msgid ""
18515 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18516 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18517 "if the I<--format:...> flag was given."
18518 msgstr ""
18519
18520 #. type: =item
18521 #: ../fish/guestfish.pod:208
18522 msgid "B<-D>"
18523 msgstr ""
18524
18525 #. type: =item
18526 #: ../fish/guestfish.pod:210
18527 msgid "B<--no-dest-paths>"
18528 msgstr ""
18529
18530 #. type: textblock
18531 #: ../fish/guestfish.pod:212
18532 msgid ""
18533 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18534 "to hit the tab key to complete paths on the guest filesystem, but this "
18535 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18536 "allow this feature to be disabled."
18537 msgstr ""
18538
18539 #. type: textblock
18540 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18541 msgid ""
18542 "When prompting for keys and passphrases, guestfish normally turns echoing "
18543 "off so you cannot see what you are typing.  If you are not worried about "
18544 "Tempest attacks and there is no one else in the room you can specify this "
18545 "flag to see what you are typing."
18546 msgstr ""
18547
18548 #. type: =item
18549 #: ../fish/guestfish.pod:224
18550 msgid "B<-f file>"
18551 msgstr ""
18552
18553 #. type: =item
18554 #: ../fish/guestfish.pod:226
18555 msgid "B<--file file>"
18556 msgstr ""
18557
18558 #. type: textblock
18559 #: ../fish/guestfish.pod:228
18560 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18561 msgstr ""
18562
18563 #. type: verbatim
18564 #: ../fish/guestfish.pod:231
18565 #, no-wrap
18566 msgid ""
18567 " #!/usr/bin/guestfish -f\n"
18568 "\n"
18569 msgstr ""
18570
18571 #. type: verbatim
18572 #: ../fish/guestfish.pod:244
18573 #, no-wrap
18574 msgid ""
18575 " guestfish --format=raw -a disk.img\n"
18576 "\n"
18577 msgstr ""
18578
18579 #. type: verbatim
18580 #: ../fish/guestfish.pod:248
18581 #, no-wrap
18582 msgid ""
18583 " guestfish --format=raw -a disk.img --format -a another.img\n"
18584 "\n"
18585 msgstr ""
18586
18587 #. type: textblock
18588 #: ../fish/guestfish.pod:253
18589 msgid ""
18590 "If you have untrusted raw-format guest disk images, you should use this "
18591 "option to specify the disk format.  This avoids a possible security problem "
18592 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18593 msgstr ""
18594
18595 #. type: =item
18596 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18597 msgid "B<--inspector>"
18598 msgstr ""
18599
18600 #. type: textblock
18601 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18602 msgid ""
18603 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18604 "system and mount filesystems as they would be mounted on the real virtual "
18605 "machine."
18606 msgstr ""
18607
18608 #. type: textblock
18609 #: ../fish/guestfish.pod:266
18610 msgid "Typical usage is either:"
18611 msgstr ""
18612
18613 #. type: verbatim
18614 #: ../fish/guestfish.pod:268
18615 #, no-wrap
18616 msgid ""
18617 " guestfish -d myguest -i\n"
18618 "\n"
18619 msgstr ""
18620
18621 #. type: textblock
18622 #: ../fish/guestfish.pod:270
18623 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18624 msgstr ""
18625
18626 #. type: verbatim
18627 #: ../fish/guestfish.pod:272
18628 #, no-wrap
18629 msgid ""
18630 " guestfish --ro -d myguest -i\n"
18631 "\n"
18632 msgstr ""
18633
18634 #. type: textblock
18635 #: ../fish/guestfish.pod:274
18636 msgid "(for active domains, readonly), or specify the block device directly:"
18637 msgstr ""
18638
18639 #. type: verbatim
18640 #: ../fish/guestfish.pod:276
18641 #, no-wrap
18642 msgid ""
18643 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18644 "\n"
18645 msgstr ""
18646
18647 #. type: textblock
18648 #: ../fish/guestfish.pod:278
18649 msgid ""
18650 "Note that the command line syntax changed slightly over older versions of "
18651 "guestfish.  You can still use the old syntax:"
18652 msgstr ""
18653
18654 #. type: verbatim
18655 #: ../fish/guestfish.pod:281
18656 #, no-wrap
18657 msgid ""
18658 " guestfish [--ro] -i disk.img\n"
18659 "\n"
18660 msgstr ""
18661
18662 #. type: verbatim
18663 #: ../fish/guestfish.pod:283
18664 #, no-wrap
18665 msgid ""
18666 " guestfish [--ro] -i libvirt-domain\n"
18667 "\n"
18668 msgstr ""
18669
18670 #. type: textblock
18671 #: ../fish/guestfish.pod:285
18672 msgid ""
18673 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18674 "then using other commands to mount the filesystems that were found."
18675 msgstr ""
18676
18677 #. type: =item
18678 #: ../fish/guestfish.pod:294
18679 msgid "B<--listen>"
18680 msgstr ""
18681
18682 #. type: textblock
18683 #: ../fish/guestfish.pod:296
18684 msgid ""
18685 "Fork into the background and listen for remote commands.  See section L</"
18686 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18687 msgstr ""
18688
18689 #. type: =item
18690 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
18691 msgid "B<--live>"
18692 msgstr ""
18693
18694 #. type: textblock
18695 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
18696 msgid ""
18697 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
18698 "ATTACHING TO RUNNING DAEMONS>)."
18699 msgstr ""
18700
18701 #. type: =item
18702 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
18703 msgid "B<-m dev[:mountpoint[:options]]>"
18704 msgstr ""
18705
18706 #. type: =item
18707 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
18708 msgid "B<--mount dev[:mountpoint[:options]]>"
18709 msgstr ""
18710
18711 #. type: textblock
18712 #: ../fish/guestfish.pod:308
18713 msgid "Mount the named partition or logical volume on the given mountpoint."
18714 msgstr ""
18715
18716 #. type: textblock
18717 #: ../fish/guestfish.pod:310
18718 msgid "If the mountpoint is omitted, it defaults to C</>."
18719 msgstr ""
18720
18721 #. type: textblock
18722 #: ../fish/guestfish.pod:312
18723 msgid "You have to mount something on C</> before most commands will work."
18724 msgstr ""
18725
18726 #. type: textblock
18727 #: ../fish/guestfish.pod:314
18728 msgid ""
18729 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18730 "launched."
18731 msgstr ""
18732
18733 #. type: textblock
18734 #: ../fish/guestfish.pod:317
18735 msgid ""
18736 "If you don't know what filesystems a disk image contains, you can either run "
18737 "guestfish without this option, then list the partitions, filesystems and LVs "
18738 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18739 "commands), or you can use the L<virt-filesystems(1)> program."
18740 msgstr ""
18741
18742 #. type: textblock
18743 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
18744 msgid ""
18745 "The third (and rarely used) part of the mount parameter is the list of mount "
18746 "options used to mount the underlying filesystem.  If this is not given, then "
18747 "the mount options are either the empty string or C<ro> (the latter if the "
18748 "I<--ro> flag is used).  By specifying the mount options, you override this "
18749 "default choice.  Probably the only time you would use this is to enable ACLs "
18750 "and/or extended attributes if the filesystem can support them:"
18751 msgstr ""
18752
18753 #. type: verbatim
18754 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
18755 #, no-wrap
18756 msgid ""
18757 " -m /dev/sda1:/:acl,user_xattr\n"
18758 "\n"
18759 msgstr ""
18760
18761 #. type: textblock
18762 #: ../fish/guestfish.pod:333
18763 msgid "Using this flag is equivalent to using the C<mount-options> command."
18764 msgstr ""
18765
18766 #. type: =item
18767 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
18768 #: ../resize/virt-resize.pod:435
18769 msgid "B<-n>"
18770 msgstr ""
18771
18772 #. type: =item
18773 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
18774 msgid "B<--no-sync>"
18775 msgstr ""
18776
18777 #. type: textblock
18778 #: ../fish/guestfish.pod:339
18779 msgid ""
18780 "Disable autosync.  This is enabled by default.  See the discussion of "
18781 "autosync in the L<guestfs(3)> manpage."
18782 msgstr ""
18783
18784 #. type: =item
18785 #: ../fish/guestfish.pod:342
18786 msgid "B<-N type>"
18787 msgstr ""
18788
18789 #. type: =item
18790 #: ../fish/guestfish.pod:344
18791 msgid "B<--new type>"
18792 msgstr ""
18793
18794 #. type: =item
18795 #: ../fish/guestfish.pod:346
18796 msgid "B<-N help>"
18797 msgstr ""
18798
18799 #. type: textblock
18800 #: ../fish/guestfish.pod:348
18801 msgid ""
18802 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18803 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18804 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18805 "IMAGES> below."
18806 msgstr ""
18807
18808 #. type: =item
18809 #: ../fish/guestfish.pod:353
18810 msgid "B<--progress-bars>"
18811 msgstr ""
18812
18813 #. type: textblock
18814 #: ../fish/guestfish.pod:355
18815 msgid "Enable progress bars, even when guestfish is used non-interactively."
18816 msgstr ""
18817
18818 #. type: textblock
18819 #: ../fish/guestfish.pod:357
18820 msgid ""
18821 "Progress bars are enabled by default when guestfish is used as an "
18822 "interactive shell."
18823 msgstr ""
18824
18825 #. type: =item
18826 #: ../fish/guestfish.pod:360
18827 msgid "B<--no-progress-bars>"
18828 msgstr ""
18829
18830 #. type: textblock
18831 #: ../fish/guestfish.pod:362
18832 msgid "Disable progress bars."
18833 msgstr ""
18834
18835 #. type: =item
18836 #: ../fish/guestfish.pod:364
18837 msgid "B<--remote[=pid]>"
18838 msgstr ""
18839
18840 #. type: textblock
18841 #: ../fish/guestfish.pod:366
18842 msgid ""
18843 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18844 "CONTROL GUESTFISH OVER A SOCKET> below."
18845 msgstr ""
18846
18847 #. type: =item
18848 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
18849 #: ../rescue/virt-rescue.pod:161
18850 msgid "B<-r>"
18851 msgstr ""
18852
18853 #. type: =item
18854 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
18855 #: ../rescue/virt-rescue.pod:163
18856 msgid "B<--ro>"
18857 msgstr ""
18858
18859 #. type: textblock
18860 #: ../fish/guestfish.pod:373
18861 msgid ""
18862 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18863 "mounts are done read-only."
18864 msgstr ""
18865
18866 #. type: textblock
18867 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18868 msgid ""
18869 "The option must always be used if the disk image or virtual machine might be "
18870 "running, and is generally recommended in cases where you don't need write "
18871 "access to the disk."
18872 msgstr ""
18873
18874 #. type: textblock
18875 #: ../fish/guestfish.pod:380
18876 msgid ""
18877 "Note that prepared disk images created with I<-N> are not affected by this "
18878 "option.  Also commands like C<add> are not affected - you have to specify "
18879 "the C<readonly:true> option explicitly if you need it."
18880 msgstr ""
18881
18882 #. type: textblock
18883 #: ../fish/guestfish.pod:384
18884 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18885 msgstr ""
18886
18887 #. type: =item
18888 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
18889 #: ../rescue/virt-rescue.pod:173
18890 msgid "B<--selinux>"
18891 msgstr ""
18892
18893 #. type: textblock
18894 #: ../fish/guestfish.pod:388
18895 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18896 msgstr ""
18897
18898 #. type: textblock
18899 #: ../fish/guestfish.pod:394
18900 msgid ""
18901 "Enable very verbose messages.  This is particularly useful if you find a bug."
18902 msgstr ""
18903
18904 #. type: textblock
18905 #: ../fish/guestfish.pod:401
18906 msgid "Display the guestfish / libguestfs version number and exit."
18907 msgstr ""
18908
18909 #. type: =item
18910 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
18911 #: ../rescue/virt-rescue.pod:194
18912 msgid "B<-w>"
18913 msgstr ""
18914
18915 #. type: =item
18916 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
18917 #: ../rescue/virt-rescue.pod:196
18918 msgid "B<--rw>"
18919 msgstr ""
18920
18921 #. type: textblock
18922 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
18923 msgid ""
18924 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18925 "mounts are done read-write."
18926 msgstr ""
18927
18928 #. type: textblock
18929 #: ../fish/guestfish.pod:410
18930 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18931 msgstr ""
18932
18933 #. type: textblock
18934 #: ../fish/guestfish.pod:414
18935 msgid "Echo each command before executing it."
18936 msgstr ""
18937
18938 #. type: =head1
18939 #: ../fish/guestfish.pod:418
18940 msgid "COMMANDS ON COMMAND LINE"
18941 msgstr ""
18942
18943 #. type: textblock
18944 #: ../fish/guestfish.pod:420
18945 msgid ""
18946 "Any additional (non-option) arguments are treated as commands to execute."
18947 msgstr ""
18948
18949 #. type: textblock
18950 #: ../fish/guestfish.pod:423
18951 msgid ""
18952 "Commands to execute should be separated by a colon (C<:>), where the colon "
18953 "is a separate parameter.  Thus:"
18954 msgstr ""
18955
18956 #. type: verbatim
18957 #: ../fish/guestfish.pod:426
18958 #, no-wrap
18959 msgid ""
18960 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18961 "\n"
18962 msgstr ""
18963
18964 #. type: textblock
18965 #: ../fish/guestfish.pod:428
18966 msgid ""
18967 "If there are no additional arguments, then we enter a shell, either an "
18968 "interactive shell with a prompt (if the input is a terminal) or a non-"
18969 "interactive shell."
18970 msgstr ""
18971
18972 #. type: textblock
18973 #: ../fish/guestfish.pod:432
18974 msgid ""
18975 "In either command line mode or non-interactive shell, the first command that "
18976 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18977 "prompt) if a command fails, you can continue to enter commands."
18978 msgstr ""
18979
18980 #. type: =head1
18981 #: ../fish/guestfish.pod:437
18982 msgid "USING launch (OR run)"
18983 msgstr ""
18984
18985 #. type: textblock
18986 #: ../fish/guestfish.pod:439
18987 msgid ""
18988 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18989 "then launch it, then mount any disks you need, and finally issue actions/"
18990 "commands.  So the general order of the day is:"
18991 msgstr ""
18992
18993 #. type: textblock
18994 #: ../fish/guestfish.pod:447
18995 msgid "add or -a/--add"
18996 msgstr ""
18997
18998 #. type: textblock
18999 #: ../fish/guestfish.pod:451
19000 msgid "launch (aka run)"
19001 msgstr ""
19002
19003 #. type: textblock
19004 #: ../fish/guestfish.pod:455
19005 msgid "mount or -m/--mount"
19006 msgstr ""
19007
19008 #. type: textblock
19009 #: ../fish/guestfish.pod:459
19010 msgid "any other commands"
19011 msgstr ""
19012
19013 #. type: textblock
19014 #: ../fish/guestfish.pod:463
19015 msgid ""
19016 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19017 "guest before mounting or performing any other commands."
19018 msgstr ""
19019
19020 #. type: textblock
19021 #: ../fish/guestfish.pod:466
19022 msgid ""
19023 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19024 "I<--new> options were given then C<run> is done automatically, simply "
19025 "because guestfish can't perform the action you asked for without doing this."
19026 msgstr ""
19027
19028 #. type: =head1
19029 #: ../fish/guestfish.pod:471
19030 msgid "OPENING DISKS FOR READ AND WRITE"
19031 msgstr ""
19032
19033 #. type: textblock
19034 #: ../fish/guestfish.pod:473
19035 msgid ""
19036 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19037 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19038 "I<-i> and I<-m> open disk images read-only or for writing."
19039 msgstr ""
19040
19041 #. type: textblock
19042 #: ../fish/guestfish.pod:478
19043 msgid ""
19044 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19045 "opening disk images supplied on the command line for write.  To open a disk "
19046 "image read-only you have to do I<-a image --ro>."
19047 msgstr ""
19048
19049 #. type: textblock
19050 #: ../fish/guestfish.pod:482
19051 msgid ""
19052 "This matters: If you accidentally open a live VM disk image writable then "
19053 "you will cause irreversible disk corruption."
19054 msgstr ""
19055
19056 #. type: textblock
19057 #: ../fish/guestfish.pod:485
19058 msgid ""
19059 "In a future libguestfs we intend to change the default the other way.  Disk "
19060 "images will be opened read-only.  You will have to either specify "
19061 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19062 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19063 "access for disk images specified by those other command line options."
19064 msgstr ""
19065
19066 #. type: textblock
19067 #: ../fish/guestfish.pod:492
19068 msgid ""
19069 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19070 "which does nothing (it is already the default).  However it is highly "
19071 "recommended that you use this option to indicate that you need write access, "
19072 "and prepare your scripts for the day when this option will be required for "
19073 "write access."
19074 msgstr ""
19075
19076 #. type: textblock
19077 #: ../fish/guestfish.pod:498
19078 msgid ""
19079 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19080 "other libguestfs program apart from guestfish and guestmount."
19081 msgstr ""
19082
19083 #. type: =head1
19084 #: ../fish/guestfish.pod:501
19085 msgid "QUOTING"
19086 msgstr ""
19087
19088 #. type: textblock
19089 #: ../fish/guestfish.pod:503
19090 msgid ""
19091 "You can quote ordinary parameters using either single or double quotes.  For "
19092 "example:"
19093 msgstr ""
19094
19095 #. type: verbatim
19096 #: ../fish/guestfish.pod:506
19097 #, no-wrap
19098 msgid ""
19099 " add \"file with a space.img\"\n"
19100 "\n"
19101 msgstr ""
19102
19103 #. type: verbatim
19104 #: ../fish/guestfish.pod:508
19105 #, no-wrap
19106 msgid ""
19107 " rm '/file name'\n"
19108 "\n"
19109 msgstr ""
19110
19111 #. type: verbatim
19112 #: ../fish/guestfish.pod:510
19113 #, no-wrap
19114 msgid ""
19115 " rm '/\"'\n"
19116 "\n"
19117 msgstr ""
19118
19119 #. type: textblock
19120 #: ../fish/guestfish.pod:512
19121 msgid ""
19122 "A few commands require a list of strings to be passed.  For these, use a "
19123 "whitespace-separated list, enclosed in quotes.  Strings containing "
19124 "whitespace to be passed through must be enclosed in single quotes.  A "
19125 "literal single quote must be escaped with a backslash."
19126 msgstr ""
19127
19128 #. type: verbatim
19129 #: ../fish/guestfish.pod:517
19130 #, no-wrap
19131 msgid ""
19132 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19133 " command \"/bin/echo 'foo      bar'\"\n"
19134 " command \"/bin/echo \\'foo\\'\"\n"
19135 "\n"
19136 msgstr ""
19137
19138 #. type: =head2
19139 #: ../fish/guestfish.pod:521
19140 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19141 msgstr ""
19142
19143 #. type: textblock
19144 #: ../fish/guestfish.pod:523
19145 msgid ""
19146 "In double-quoted arguments (only) use backslash to insert special characters:"
19147 msgstr ""
19148
19149 #. type: =item
19150 #: ../fish/guestfish.pod:528
19151 msgid "C<\\a>"
19152 msgstr ""
19153
19154 #. type: textblock
19155 #: ../fish/guestfish.pod:530
19156 msgid "Alert (bell) character."
19157 msgstr ""
19158
19159 #. type: =item
19160 #: ../fish/guestfish.pod:532
19161 msgid "C<\\b>"
19162 msgstr ""
19163
19164 #. type: textblock
19165 #: ../fish/guestfish.pod:534
19166 msgid "Backspace character."
19167 msgstr ""
19168
19169 #. type: =item
19170 #: ../fish/guestfish.pod:536
19171 msgid "C<\\f>"
19172 msgstr ""
19173
19174 #. type: textblock
19175 #: ../fish/guestfish.pod:538
19176 msgid "Form feed character."
19177 msgstr ""
19178
19179 #. type: =item
19180 #: ../fish/guestfish.pod:540
19181 msgid "C<\\n>"
19182 msgstr ""
19183
19184 #. type: textblock
19185 #: ../fish/guestfish.pod:542
19186 msgid "Newline character."
19187 msgstr ""
19188
19189 #. type: =item
19190 #: ../fish/guestfish.pod:544
19191 msgid "C<\\r>"
19192 msgstr ""
19193
19194 #. type: textblock
19195 #: ../fish/guestfish.pod:546
19196 msgid "Carriage return character."
19197 msgstr ""
19198
19199 #. type: =item
19200 #: ../fish/guestfish.pod:548
19201 msgid "C<\\t>"
19202 msgstr ""
19203
19204 #. type: textblock
19205 #: ../fish/guestfish.pod:550
19206 msgid "Horizontal tab character."
19207 msgstr ""
19208
19209 #. type: =item
19210 #: ../fish/guestfish.pod:552
19211 msgid "C<\\v>"
19212 msgstr ""
19213
19214 #. type: textblock
19215 #: ../fish/guestfish.pod:554
19216 msgid "Vertical tab character."
19217 msgstr ""
19218
19219 #. type: =item
19220 #: ../fish/guestfish.pod:556
19221 msgid "C<\\\">"
19222 msgstr ""
19223
19224 #. type: textblock
19225 #: ../fish/guestfish.pod:558
19226 msgid "A literal double quote character."
19227 msgstr ""
19228
19229 #. type: =item
19230 #: ../fish/guestfish.pod:560
19231 msgid "C<\\ooo>"
19232 msgstr ""
19233
19234 #. type: textblock
19235 #: ../fish/guestfish.pod:562
19236 msgid ""
19237 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19238 "(unlike C)."
19239 msgstr ""
19240
19241 #. type: =item
19242 #: ../fish/guestfish.pod:565
19243 msgid "C<\\xhh>"
19244 msgstr ""
19245
19246 #. type: textblock
19247 #: ../fish/guestfish.pod:567
19248 msgid ""
19249 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19250 msgstr ""
19251
19252 #. type: textblock
19253 #: ../fish/guestfish.pod:570
19254 msgid ""
19255 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19256 "strings."
19257 msgstr ""
19258
19259 #. type: =item
19260 #: ../fish/guestfish.pod:573
19261 msgid "C<\\\\>"
19262 msgstr ""
19263
19264 #. type: textblock
19265 #: ../fish/guestfish.pod:575
19266 msgid "A literal backslash character."
19267 msgstr ""
19268
19269 #. type: =head1
19270 #: ../fish/guestfish.pod:579
19271 msgid "OPTIONAL ARGUMENTS"
19272 msgstr ""
19273
19274 #. type: textblock
19275 #: ../fish/guestfish.pod:581
19276 msgid ""
19277 "Some commands take optional arguments.  These arguments appear in this "
19278 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19279 msgstr ""
19280
19281 #. type: verbatim
19282 #: ../fish/guestfish.pod:585
19283 #, no-wrap
19284 msgid ""
19285 " add-drive-opts filename\n"
19286 "\n"
19287 msgstr ""
19288
19289 #. type: verbatim
19290 #: ../fish/guestfish.pod:587
19291 #, no-wrap
19292 msgid ""
19293 " add-drive-opts filename readonly:true\n"
19294 "\n"
19295 msgstr ""
19296
19297 #. type: verbatim
19298 #: ../fish/guestfish.pod:589
19299 #, no-wrap
19300 msgid ""
19301 " add-drive-opts filename format:qcow2 readonly:false\n"
19302 "\n"
19303 msgstr ""
19304
19305 #. type: textblock
19306 #: ../fish/guestfish.pod:591
19307 msgid ""
19308 "Each optional argument can appear at most once.  All optional arguments must "
19309 "appear after the required ones."
19310 msgstr ""
19311
19312 #. type: =head1
19313 #: ../fish/guestfish.pod:594
19314 msgid "NUMBERS"
19315 msgstr ""
19316
19317 #. type: textblock
19318 #: ../fish/guestfish.pod:596
19319 msgid ""
19320 "This section applies to all commands which can take integers as parameters."
19321 msgstr ""
19322
19323 #. type: =head2
19324 #: ../fish/guestfish.pod:599
19325 msgid "SIZE SUFFIX"
19326 msgstr ""
19327
19328 #. type: textblock
19329 #: ../fish/guestfish.pod:601
19330 msgid ""
19331 "When the command takes a parameter measured in bytes, you can use one of the "
19332 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19333 msgstr ""
19334
19335 #. type: =item
19336 #: ../fish/guestfish.pod:607
19337 msgid "B<k> or B<K> or B<KiB>"
19338 msgstr ""
19339
19340 #. type: textblock
19341 #: ../fish/guestfish.pod:609
19342 msgid "The size in kilobytes (multiplied by 1024)."
19343 msgstr ""
19344
19345 #. type: =item
19346 #: ../fish/guestfish.pod:611
19347 msgid "B<KB>"
19348 msgstr ""
19349
19350 #. type: textblock
19351 #: ../fish/guestfish.pod:613
19352 msgid "The size in SI 1000 byte units."
19353 msgstr ""
19354
19355 #. type: =item
19356 #: ../fish/guestfish.pod:615
19357 msgid "B<M> or B<MiB>"
19358 msgstr ""
19359
19360 #. type: textblock
19361 #: ../fish/guestfish.pod:617
19362 msgid "The size in megabytes (multiplied by 1048576)."
19363 msgstr ""
19364
19365 #. type: =item
19366 #: ../fish/guestfish.pod:619
19367 msgid "B<MB>"
19368 msgstr ""
19369
19370 #. type: textblock
19371 #: ../fish/guestfish.pod:621
19372 msgid "The size in SI 1000000 byte units."
19373 msgstr ""
19374
19375 #. type: =item
19376 #: ../fish/guestfish.pod:623
19377 msgid "B<G> or B<GiB>"
19378 msgstr ""
19379
19380 #. type: textblock
19381 #: ../fish/guestfish.pod:625
19382 msgid "The size in gigabytes (multiplied by 2**30)."
19383 msgstr ""
19384
19385 #. type: =item
19386 #: ../fish/guestfish.pod:627
19387 msgid "B<GB>"
19388 msgstr ""
19389
19390 #. type: textblock
19391 #: ../fish/guestfish.pod:629
19392 msgid "The size in SI 10**9 byte units."
19393 msgstr ""
19394
19395 #. type: =item
19396 #: ../fish/guestfish.pod:631
19397 msgid "B<T> or B<TiB>"
19398 msgstr ""
19399
19400 #. type: textblock
19401 #: ../fish/guestfish.pod:633
19402 msgid "The size in terabytes (multiplied by 2**40)."
19403 msgstr ""
19404
19405 #. type: =item
19406 #: ../fish/guestfish.pod:635
19407 msgid "B<TB>"
19408 msgstr ""
19409
19410 #. type: textblock
19411 #: ../fish/guestfish.pod:637
19412 msgid "The size in SI 10**12 byte units."
19413 msgstr ""
19414
19415 #. type: =item
19416 #: ../fish/guestfish.pod:639
19417 msgid "B<P> or B<PiB>"
19418 msgstr ""
19419
19420 #. type: textblock
19421 #: ../fish/guestfish.pod:641
19422 msgid "The size in petabytes (multiplied by 2**50)."
19423 msgstr ""
19424
19425 #. type: =item
19426 #: ../fish/guestfish.pod:643
19427 msgid "B<PB>"
19428 msgstr ""
19429
19430 #. type: textblock
19431 #: ../fish/guestfish.pod:645
19432 msgid "The size in SI 10**15 byte units."
19433 msgstr ""
19434
19435 #. type: =item
19436 #: ../fish/guestfish.pod:647
19437 msgid "B<E> or B<EiB>"
19438 msgstr ""
19439
19440 #. type: textblock
19441 #: ../fish/guestfish.pod:649
19442 msgid "The size in exabytes (multiplied by 2**60)."
19443 msgstr ""
19444
19445 #. type: =item
19446 #: ../fish/guestfish.pod:651
19447 msgid "B<EB>"
19448 msgstr ""
19449
19450 #. type: textblock
19451 #: ../fish/guestfish.pod:653
19452 msgid "The size in SI 10**18 byte units."
19453 msgstr ""
19454
19455 #. type: =item
19456 #: ../fish/guestfish.pod:655
19457 msgid "B<Z> or B<ZiB>"
19458 msgstr ""
19459
19460 #. type: textblock
19461 #: ../fish/guestfish.pod:657
19462 msgid "The size in zettabytes (multiplied by 2**70)."
19463 msgstr ""
19464
19465 #. type: =item
19466 #: ../fish/guestfish.pod:659
19467 msgid "B<ZB>"
19468 msgstr ""
19469
19470 #. type: textblock
19471 #: ../fish/guestfish.pod:661
19472 msgid "The size in SI 10**21 byte units."
19473 msgstr ""
19474
19475 #. type: =item
19476 #: ../fish/guestfish.pod:663
19477 msgid "B<Y> or B<YiB>"
19478 msgstr ""
19479
19480 #. type: textblock
19481 #: ../fish/guestfish.pod:665
19482 msgid "The size in yottabytes (multiplied by 2**80)."
19483 msgstr ""
19484
19485 #. type: =item
19486 #: ../fish/guestfish.pod:667
19487 msgid "B<YB>"
19488 msgstr ""
19489
19490 #. type: textblock
19491 #: ../fish/guestfish.pod:669
19492 msgid "The size in SI 10**24 byte units."
19493 msgstr ""
19494
19495 #. type: verbatim
19496 #: ../fish/guestfish.pod:675
19497 #, no-wrap
19498 msgid ""
19499 " truncate-size /file 1G\n"
19500 "\n"
19501 msgstr ""
19502
19503 #. type: textblock
19504 #: ../fish/guestfish.pod:677
19505 msgid "would truncate the file to 1 gigabyte."
19506 msgstr ""
19507
19508 #. type: textblock
19509 #: ../fish/guestfish.pod:679
19510 msgid ""
19511 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19512 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
19513 "suffix will probably not do what you expect."
19514 msgstr ""
19515
19516 #. type: =head2
19517 #: ../fish/guestfish.pod:683
19518 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19519 msgstr ""
19520
19521 #. type: textblock
19522 #: ../fish/guestfish.pod:685
19523 msgid ""
19524 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19525 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19526 msgstr ""
19527
19528 #. type: verbatim
19529 #: ../fish/guestfish.pod:688
19530 #, no-wrap
19531 msgid ""
19532 " 1234      decimal number 1234\n"
19533 " 02322     octal number, equivalent to decimal 1234\n"
19534 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19535 "\n"
19536 msgstr ""
19537
19538 #. type: textblock
19539 #: ../fish/guestfish.pod:692
19540 msgid ""
19541 "When using the C<chmod> command, you almost always want to specify an octal "
19542 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19543 "L<chmod(1)> program):"
19544 msgstr ""
19545
19546 #. type: verbatim
19547 #: ../fish/guestfish.pod:696
19548 #, no-wrap
19549 msgid ""
19550 " chmod 0777 /public  # OK\n"
19551 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19552 "\n"
19553 msgstr ""
19554
19555 #. type: textblock
19556 #: ../fish/guestfish.pod:699
19557 msgid ""
19558 "Commands that return numbers usually print them in decimal, but some "
19559 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19560 "octal, preceeded by C<0>)."
19561 msgstr ""
19562
19563 #. type: =head1
19564 #: ../fish/guestfish.pod:703
19565 msgid "WILDCARDS AND GLOBBING"
19566 msgstr ""
19567
19568 #. type: textblock
19569 #: ../fish/guestfish.pod:705
19570 msgid ""
19571 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19572 "(globbing) by default.  So for example the following will not do what you "
19573 "expect:"
19574 msgstr ""
19575
19576 #. type: verbatim
19577 #: ../fish/guestfish.pod:709
19578 #, no-wrap
19579 msgid ""
19580 " rm-rf /home/*\n"
19581 "\n"
19582 msgstr ""
19583
19584 #. type: textblock
19585 #: ../fish/guestfish.pod:711
19586 msgid ""
19587 "Assuming you don't have a directory called literally C</home/*> then the "
19588 "above command will return an error."
19589 msgstr ""
19590
19591 #. type: textblock
19592 #: ../fish/guestfish.pod:714
19593 msgid "To perform wildcard expansion, use the C<glob> command."
19594 msgstr ""
19595
19596 #. type: verbatim
19597 #: ../fish/guestfish.pod:716
19598 #, no-wrap
19599 msgid ""
19600 " glob rm-rf /home/*\n"
19601 "\n"
19602 msgstr ""
19603
19604 #. type: textblock
19605 #: ../fish/guestfish.pod:718
19606 msgid ""
19607 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19608 "many times), equivalent to:"
19609 msgstr ""
19610
19611 #. type: verbatim
19612 #: ../fish/guestfish.pod:721
19613 #, no-wrap
19614 msgid ""
19615 " rm-rf /home/jim\n"
19616 " rm-rf /home/joe\n"
19617 " rm-rf /home/mary\n"
19618 "\n"
19619 msgstr ""
19620
19621 #. type: textblock
19622 #: ../fish/guestfish.pod:725
19623 msgid "C<glob> only works on simple guest paths and not on device names."
19624 msgstr ""
19625
19626 #. type: textblock
19627 #: ../fish/guestfish.pod:727
19628 msgid ""
19629 "If you have several parameters, each containing a wildcard, then glob will "
19630 "perform a Cartesian product."
19631 msgstr ""
19632
19633 #. type: =head1
19634 #: ../fish/guestfish.pod:730
19635 msgid "COMMENTS"
19636 msgstr ""
19637
19638 #. type: textblock
19639 #: ../fish/guestfish.pod:732
19640 msgid ""
19641 "Any line which starts with a I<#> character is treated as a comment and "
19642 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19643 "a command.  For example:"
19644 msgstr ""
19645
19646 #. type: verbatim
19647 #: ../fish/guestfish.pod:736
19648 #, no-wrap
19649 msgid ""
19650 " # this is a comment\n"
19651 "         # this is a comment\n"
19652 " foo # NOT a comment\n"
19653 "\n"
19654 msgstr ""
19655
19656 #. type: textblock
19657 #: ../fish/guestfish.pod:740
19658 msgid "Blank lines are also ignored."
19659 msgstr ""
19660
19661 #. type: =head1
19662 #: ../fish/guestfish.pod:742
19663 msgid "RUNNING COMMANDS LOCALLY"
19664 msgstr ""
19665
19666 #. type: textblock
19667 #: ../fish/guestfish.pod:744
19668 msgid ""
19669 "Any line which starts with a I<!> character is treated as a command sent to "
19670 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19671 msgstr ""
19672
19673 #. type: verbatim
19674 #: ../fish/guestfish.pod:748
19675 #, no-wrap
19676 msgid ""
19677 " !mkdir local\n"
19678 " tgz-out /remote local/remote-data.tar.gz\n"
19679 "\n"
19680 msgstr ""
19681
19682 #. type: textblock
19683 #: ../fish/guestfish.pod:751
19684 msgid ""
19685 "will create a directory C<local> on the host, and then export the contents "
19686 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19687 "(See C<tgz-out>)."
19688 msgstr ""
19689
19690 #. type: textblock
19691 #: ../fish/guestfish.pod:755
19692 msgid ""
19693 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19694 "effect, due to the way that subprocesses work in Unix."
19695 msgstr ""
19696
19697 #. type: =head2
19698 #: ../fish/guestfish.pod:758
19699 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19700 msgstr ""
19701
19702 #. type: textblock
19703 #: ../fish/guestfish.pod:760
19704 msgid ""
19705 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19706 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19707 "and executed as guestfish commands."
19708 msgstr ""
19709
19710 #. type: textblock
19711 #: ../fish/guestfish.pod:764
19712 msgid ""
19713 "Thus you can use shell script to construct arbitrary guestfish commands "
19714 "which are then parsed by guestfish."
19715 msgstr ""
19716
19717 #. type: textblock
19718 #: ../fish/guestfish.pod:767
19719 msgid ""
19720 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19721 "through C</foo.100>) using guestfish commands alone.  However this is simple "
19722 "if we use a shell script to create the guestfish commands for us:"
19723 msgstr ""
19724
19725 #. type: verbatim
19726 #: ../fish/guestfish.pod:772
19727 #, no-wrap
19728 msgid ""
19729 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19730 "\n"
19731 msgstr ""
19732
19733 #. type: textblock
19734 #: ../fish/guestfish.pod:774
19735 msgid "or with names like C</foo.001>:"
19736 msgstr ""
19737
19738 #. type: verbatim
19739 #: ../fish/guestfish.pod:776
19740 #, no-wrap
19741 msgid ""
19742 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19743 "\n"
19744 msgstr ""
19745
19746 #. type: textblock
19747 #: ../fish/guestfish.pod:778
19748 msgid ""
19749 "When using guestfish interactively it can be helpful to just run the shell "
19750 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19751 "ordinary I<!> local command), see what guestfish commands it would run, and "
19752 "when you are happy with those prepend the C<E<lt>> character to run the "
19753 "guestfish commands for real."
19754 msgstr ""
19755
19756 #. type: =head1
19757 #: ../fish/guestfish.pod:784
19758 msgid "PIPES"
19759 msgstr ""
19760
19761 #. type: textblock
19762 #: ../fish/guestfish.pod:786
19763 msgid ""
19764 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19765 "command (a guestfish command) to the second command (any host command).  For "
19766 "example:"
19767 msgstr ""
19768
19769 #. type: verbatim
19770 #: ../fish/guestfish.pod:790
19771 #, no-wrap
19772 msgid ""
19773 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19774 "\n"
19775 msgstr ""
19776
19777 #. type: textblock
19778 #: ../fish/guestfish.pod:792
19779 msgid ""
19780 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19781 "program).  The above command would list all accounts in the guest filesystem "
19782 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19783 msgstr ""
19784
19785 #. type: verbatim
19786 #: ../fish/guestfish.pod:797
19787 #, no-wrap
19788 msgid ""
19789 " hexdump /bin/ls | head\n"
19790 " list-devices | tail -1\n"
19791 " tgz-out / - | tar ztf -\n"
19792 "\n"
19793 msgstr ""
19794
19795 #. type: textblock
19796 #: ../fish/guestfish.pod:801
19797 msgid ""
19798 "The space before the pipe symbol is required, any space after the pipe "
19799 "symbol is optional.  Everything after the pipe symbol is just passed "
19800 "straight to the host shell, so it can contain redirections, globs and "
19801 "anything else that makes sense on the host side."
19802 msgstr ""
19803
19804 #. type: textblock
19805 #: ../fish/guestfish.pod:806
19806 msgid ""
19807 "To use a literal argument which begins with a pipe symbol, you have to quote "
19808 "it, eg:"
19809 msgstr ""
19810
19811 #. type: verbatim
19812 #: ../fish/guestfish.pod:809
19813 #, no-wrap
19814 msgid ""
19815 " echo \"|\"\n"
19816 "\n"
19817 msgstr ""
19818
19819 #. type: =head1
19820 #: ../fish/guestfish.pod:811
19821 msgid "HOME DIRECTORIES"
19822 msgstr ""
19823
19824 #. type: textblock
19825 #: ../fish/guestfish.pod:813
19826 msgid ""
19827 "If a parameter starts with the character C<~> then the tilde may be expanded "
19828 "as a home directory path (either C<~> for the current user's home directory, "
19829 "or C<~user> for another user)."
19830 msgstr ""
19831
19832 #. type: textblock
19833 #: ../fish/guestfish.pod:817
19834 msgid ""
19835 "Note that home directory expansion happens for users known I<on the host>, "
19836 "not in the guest filesystem."
19837 msgstr ""
19838
19839 #. type: textblock
19840 #: ../fish/guestfish.pod:820
19841 msgid ""
19842 "To use a literal argument which begins with a tilde, you have to quote it, "
19843 "eg:"
19844 msgstr ""
19845
19846 #. type: verbatim
19847 #: ../fish/guestfish.pod:823
19848 #, no-wrap
19849 msgid ""
19850 " echo \"~\"\n"
19851 "\n"
19852 msgstr ""
19853
19854 #. type: =head2
19855 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
19856 msgid "ENCRYPTED DISKS"
19857 msgstr ""
19858
19859 #. type: textblock
19860 #: ../fish/guestfish.pod:827
19861 msgid ""
19862 "Libguestfs has some support for Linux guests encrypted according to the "
19863 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19864 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
19865 "LUKS is supported."
19866 msgstr ""
19867
19868 #. type: textblock
19869 #: ../fish/guestfish.pod:832
19870 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19871 msgstr ""
19872
19873 #. type: verbatim
19874 #: ../fish/guestfish.pod:834
19875 #, no-wrap
19876 msgid ""
19877 " ><fs> vfs-type /dev/sda2\n"
19878 " crypto_LUKS\n"
19879 "\n"
19880 msgstr ""
19881
19882 #. type: textblock
19883 #: ../fish/guestfish.pod:837
19884 msgid ""
19885 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19886 "device called C</dev/mapper/luksdev>."
19887 msgstr ""
19888
19889 #. type: verbatim
19890 #: ../fish/guestfish.pod:840
19891 #, no-wrap
19892 msgid ""
19893 " ><fs> luks-open /dev/sda2 luksdev\n"
19894 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19895 "\n"
19896 msgstr ""
19897
19898 #. type: textblock
19899 #: ../fish/guestfish.pod:843
19900 msgid ""
19901 "Finally you have to tell LVM to scan for volume groups on the newly created "
19902 "mapper device:"
19903 msgstr ""
19904
19905 #. type: verbatim
19906 #: ../fish/guestfish.pod:846
19907 #, no-wrap
19908 msgid ""
19909 " vgscan\n"
19910 " vg-activate-all true\n"
19911 "\n"
19912 msgstr ""
19913
19914 #. type: textblock
19915 #: ../fish/guestfish.pod:849
19916 msgid "The logical volume(s) can now be mounted in the usual way."
19917 msgstr ""
19918
19919 #. type: textblock
19920 #: ../fish/guestfish.pod:851
19921 msgid ""
19922 "Before closing a LUKS device you must unmount any logical volumes on it and "
19923 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19924 "one.  Then you can close the mapper device:"
19925 msgstr ""
19926
19927 #. type: verbatim
19928 #: ../fish/guestfish.pod:855
19929 #, no-wrap
19930 msgid ""
19931 " vg-activate false /dev/VG\n"
19932 " luks-close /dev/mapper/luksdev\n"
19933 "\n"
19934 msgstr ""
19935
19936 #. type: textblock
19937 #: ../fish/guestfish.pod:860
19938 msgid ""
19939 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19940 "letters and paths (with some limitations).  The following commands are "
19941 "equivalent:"
19942 msgstr ""
19943
19944 #. type: verbatim
19945 #: ../fish/guestfish.pod:864
19946 #, no-wrap
19947 msgid ""
19948 " file /WINDOWS/system32/config/system.LOG\n"
19949 "\n"
19950 msgstr ""
19951
19952 #. type: verbatim
19953 #: ../fish/guestfish.pod:866
19954 #, no-wrap
19955 msgid ""
19956 " file win:\\windows\\system32\\config\\system.log\n"
19957 "\n"
19958 msgstr ""
19959
19960 #. type: verbatim
19961 #: ../fish/guestfish.pod:868
19962 #, no-wrap
19963 msgid ""
19964 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19965 "\n"
19966 msgstr ""
19967
19968 #. type: textblock
19969 #: ../fish/guestfish.pod:870
19970 msgid ""
19971 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19972 "where the drive is mounted, prepending that to the path, changing all "
19973 "backslash characters to forward slash, then resolving the result using L</"
19974 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
19975 "the parameter might be rewritten like this:"
19976 msgstr ""
19977
19978 #. type: verbatim
19979 #: ../fish/guestfish.pod:876
19980 #, no-wrap
19981 msgid ""
19982 " win:e:\\foo\\bar => /e/FOO/bar\n"
19983 "\n"
19984 msgstr ""
19985
19986 #. type: textblock
19987 #: ../fish/guestfish.pod:878
19988 msgid "This only works in argument positions that expect a path."
19989 msgstr ""
19990
19991 #. type: =head1
19992 #: ../fish/guestfish.pod:880
19993 msgid "UPLOADING AND DOWNLOADING FILES"
19994 msgstr ""
19995
19996 #. type: textblock
19997 #: ../fish/guestfish.pod:882
19998 msgid ""
19999 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20000 "others which upload from or download to a local file, you can use the "
20001 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20002 msgstr ""
20003
20004 #. type: verbatim
20005 #: ../fish/guestfish.pod:886
20006 #, no-wrap
20007 msgid ""
20008 " upload - /foo\n"
20009 "\n"
20010 msgstr ""
20011
20012 #. type: textblock
20013 #: ../fish/guestfish.pod:888
20014 msgid ""
20015 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20016 msgstr ""
20017
20018 #. type: verbatim
20019 #: ../fish/guestfish.pod:891
20020 #, no-wrap
20021 msgid ""
20022 " tar-out /etc - | tar tf -\n"
20023 "\n"
20024 msgstr ""
20025
20026 #. type: textblock
20027 #: ../fish/guestfish.pod:893
20028 msgid ""
20029 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20030 "command (see L</PIPES>)."
20031 msgstr ""
20032
20033 #. type: textblock
20034 #: ../fish/guestfish.pod:896
20035 msgid ""
20036 "When using C<-> to read from stdin, the input is read up to the end of "
20037 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20038 "some arbitrary end marker:"
20039 msgstr ""
20040
20041 #. type: verbatim
20042 #: ../fish/guestfish.pod:900
20043 #, no-wrap
20044 msgid ""
20045 " upload -<<END /foo\n"
20046 " input line 1\n"
20047 " input line 2\n"
20048 " input line 3\n"
20049 " END\n"
20050 "\n"
20051 msgstr ""
20052
20053 #. type: textblock
20054 #: ../fish/guestfish.pod:906
20055 msgid ""
20056 "Any string of characters can be used instead of C<END>.  The end marker must "
20057 "appear on a line of its own, without any preceeding or following characters "
20058 "(not even spaces)."
20059 msgstr ""
20060
20061 #. type: textblock
20062 #: ../fish/guestfish.pod:910
20063 msgid ""
20064 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20065 "upload local files (so-called \"FileIn\" parameters in the generator)."
20066 msgstr ""
20067
20068 #. type: =head1
20069 #: ../fish/guestfish.pod:913
20070 msgid "EXIT ON ERROR BEHAVIOUR"
20071 msgstr ""
20072
20073 #. type: textblock
20074 #: ../fish/guestfish.pod:915
20075 msgid ""
20076 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20077 "taking commands from a human over a tty), and will exit on the first error "
20078 "in non-interactive mode (scripts, commands given on the command line)."
20079 msgstr ""
20080
20081 #. type: textblock
20082 #: ../fish/guestfish.pod:920
20083 msgid ""
20084 "If you prefix a command with a I<-> character, then that command will not "
20085 "cause guestfish to exit, even if that (one) command returns an error."
20086 msgstr ""
20087
20088 #. type: =head1
20089 #: ../fish/guestfish.pod:924
20090 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20091 msgstr ""
20092
20093 #. type: textblock
20094 #: ../fish/guestfish.pod:926
20095 msgid ""
20096 "Guestfish can be remote-controlled over a socket.  This is useful "
20097 "particularly in shell scripts where you want to make several different "
20098 "changes to a filesystem, but you don't want the overhead of starting up a "
20099 "guestfish process each time."
20100 msgstr ""
20101
20102 #. type: textblock
20103 #: ../fish/guestfish.pod:931
20104 msgid "Start a guestfish server process using:"
20105 msgstr ""
20106
20107 #. type: verbatim
20108 #: ../fish/guestfish.pod:933
20109 #, no-wrap
20110 msgid ""
20111 " eval \"`guestfish --listen`\"\n"
20112 "\n"
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fish/guestfish.pod:935
20117 msgid "and then send it commands by doing:"
20118 msgstr ""
20119
20120 #. type: verbatim
20121 #: ../fish/guestfish.pod:937
20122 #, no-wrap
20123 msgid ""
20124 " guestfish --remote cmd [...]\n"
20125 "\n"
20126 msgstr ""
20127
20128 #. type: textblock
20129 #: ../fish/guestfish.pod:939
20130 msgid "To cause the server to exit, send it the exit command:"
20131 msgstr ""
20132
20133 #. type: textblock
20134 #: ../fish/guestfish.pod:943
20135 msgid ""
20136 "Note that the server will normally exit if there is an error in a command.  "
20137 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20138 "BEHAVIOUR>."
20139 msgstr ""
20140
20141 #. type: =head2
20142 #: ../fish/guestfish.pod:947
20143 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20144 msgstr ""
20145
20146 #. type: textblock
20147 #: ../fish/guestfish.pod:949
20148 msgid ""
20149 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20150 "is how the I<--remote> option knows where to send the commands.  You can "
20151 "have several guestfish listener processes running using:"
20152 msgstr ""
20153
20154 #. type: verbatim
20155 #: ../fish/guestfish.pod:953
20156 #, no-wrap
20157 msgid ""
20158 " eval \"`guestfish --listen`\"\n"
20159 " pid1=$GUESTFISH_PID\n"
20160 " eval \"`guestfish --listen`\"\n"
20161 " pid2=$GUESTFISH_PID\n"
20162 " ...\n"
20163 " guestfish --remote=$pid1 cmd\n"
20164 " guestfish --remote=$pid2 cmd\n"
20165 "\n"
20166 msgstr ""
20167
20168 #. type: =head2
20169 #: ../fish/guestfish.pod:961
20170 msgid "REMOTE CONTROL AND CSH"
20171 msgstr ""
20172
20173 #. type: textblock
20174 #: ../fish/guestfish.pod:963
20175 msgid ""
20176 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20177 "option:"
20178 msgstr ""
20179
20180 #. type: verbatim
20181 #: ../fish/guestfish.pod:966
20182 #, no-wrap
20183 msgid ""
20184 " eval \"`guestfish --listen --csh`\"\n"
20185 "\n"
20186 msgstr ""
20187
20188 #. type: =head2
20189 #: ../fish/guestfish.pod:968
20190 msgid "REMOTE CONTROL DETAILS"
20191 msgstr ""
20192
20193 #. type: textblock
20194 #: ../fish/guestfish.pod:970
20195 msgid ""
20196 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20197 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20198 "and C<$PID> is the process ID of the server."
20199 msgstr ""
20200
20201 #. type: textblock
20202 #: ../fish/guestfish.pod:974
20203 msgid "Guestfish client and server versions must match exactly."
20204 msgstr ""
20205
20206 #. type: =head2
20207 #: ../fish/guestfish.pod:976
20208 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20209 msgstr ""
20210
20211 #. type: textblock
20212 #: ../fish/guestfish.pod:978
20213 msgid ""
20214 "From Bash, you can use the following code which creates a guestfish "
20215 "instance, correctly quotes the command line, handles failure to start, and "
20216 "cleans up guestfish when the script exits:"
20217 msgstr ""
20218
20219 #. type: verbatim
20220 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20221 #, no-wrap
20222 msgid ""
20223 " #!/bin/bash -\n"
20224 " \n"
20225 msgstr ""
20226
20227 #. type: verbatim
20228 #: ../fish/guestfish.pod:986
20229 #, no-wrap
20230 msgid ""
20231 " guestfish[0]=\"guestfish\"\n"
20232 " guestfish[1]=\"--listen\"\n"
20233 " guestfish[2]=\"--ro\"\n"
20234 " guestfish[3]=\"-a\"\n"
20235 " guestfish[4]=\"disk.img\"\n"
20236 " \n"
20237 msgstr ""
20238
20239 #. type: verbatim
20240 #: ../fish/guestfish.pod:992
20241 #, no-wrap
20242 msgid ""
20243 " GUESTFISH_PID=\n"
20244 " eval $(\"${guestfish[@]}\")\n"
20245 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20246 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20247 "     exit 1\n"
20248 " fi\n"
20249 " \n"
20250 msgstr ""
20251
20252 #. type: verbatim
20253 #: ../fish/guestfish.pod:999
20254 #, no-wrap
20255 msgid ""
20256 " cleanup_guestfish ()\n"
20257 " {\n"
20258 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20259 " }\n"
20260 " trap cleanup_guestfish EXIT ERR\n"
20261 " \n"
20262 msgstr ""
20263
20264 #. type: verbatim
20265 #: ../fish/guestfish.pod:1005
20266 #, no-wrap
20267 msgid ""
20268 " guestfish --remote -- run\n"
20269 " \n"
20270 msgstr ""
20271
20272 #. type: verbatim
20273 #: ../fish/guestfish.pod:1007
20274 #, no-wrap
20275 msgid ""
20276 " # ...\n"
20277 "\n"
20278 msgstr ""
20279
20280 #. type: =head2
20281 #: ../fish/guestfish.pod:1009
20282 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20283 msgstr ""
20284
20285 #. type: textblock
20286 #: ../fish/guestfish.pod:1011
20287 msgid ""
20288 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20289 "context hangs, ie. don't do (note the backquotes):"
20290 msgstr ""
20291
20292 #. type: verbatim
20293 #: ../fish/guestfish.pod:1014
20294 #, no-wrap
20295 msgid ""
20296 " a=`guestfish --remote run`\n"
20297 "\n"
20298 msgstr ""
20299
20300 #. type: textblock
20301 #: ../fish/guestfish.pod:1016
20302 msgid ""
20303 "Since the C<run> command produces no output on stdout, this is not useful "
20304 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20305 "cgi?id=592910>."
20306 msgstr ""
20307
20308 #. type: =head1
20309 #: ../fish/guestfish.pod:1020
20310 msgid "PREPARED DISK IMAGES"
20311 msgstr ""
20312
20313 #. type: textblock
20314 #: ../fish/guestfish.pod:1022
20315 msgid ""
20316 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20317 "preformatted disk images that guestfish can make for you to save typing.  "
20318 "This is particularly useful for testing purposes.  This option is used "
20319 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20320 "can be mixed with I<-a>)."
20321 msgstr ""
20322
20323 #. type: textblock
20324 #: ../fish/guestfish.pod:1028
20325 msgid ""
20326 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20327 "the second and so on.  Existing files in the current directory are "
20328 "I<overwritten>."
20329 msgstr ""
20330
20331 #. type: textblock
20332 #: ../fish/guestfish.pod:1032
20333 msgid ""
20334 "The type briefly describes how the disk should be sized, partitioned, how "
20335 "filesystem(s) should be created, and how content should be added.  "
20336 "Optionally the type can be followed by extra parameters, separated by C<:> "
20337 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20338 "allocated disk, containing a single partition, with the partition formatted "
20339 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20340 "disk instead."
20341 msgstr ""
20342
20343 #. type: textblock
20344 #: ../fish/guestfish.pod:1040
20345 msgid "To list the available types and any extra parameters they take, run:"
20346 msgstr ""
20347
20348 #. type: textblock
20349 #: ../fish/guestfish.pod:1044
20350 msgid ""
20351 "Note that the prepared filesystem is not mounted.  You would usually have to "
20352 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20353 msgstr ""
20354
20355 #. type: textblock
20356 #: ../fish/guestfish.pod:1048
20357 msgid ""
20358 "If any I<-N> or I<--new> options are given, the guest is automatically "
20359 "launched."
20360 msgstr ""
20361
20362 #. type: textblock
20363 #: ../fish/guestfish.pod:1053
20364 msgid "Create a 100MB disk with an ext4-formatted partition:"
20365 msgstr ""
20366
20367 #. type: verbatim
20368 #: ../fish/guestfish.pod:1055
20369 #, no-wrap
20370 msgid ""
20371 " guestfish -N fs:ext4\n"
20372 "\n"
20373 msgstr ""
20374
20375 #. type: textblock
20376 #: ../fish/guestfish.pod:1057
20377 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20378 msgstr ""
20379
20380 #. type: verbatim
20381 #: ../fish/guestfish.pod:1059
20382 #, no-wrap
20383 msgid ""
20384 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20385 "\n"
20386 msgstr ""
20387
20388 #. type: textblock
20389 #: ../fish/guestfish.pod:1061
20390 msgid "Create a blank 200MB disk:"
20391 msgstr ""
20392
20393 #. type: verbatim
20394 #: ../fish/guestfish.pod:1063
20395 #, no-wrap
20396 msgid ""
20397 " guestfish -N disk:200M\n"
20398 "\n"
20399 msgstr ""
20400
20401 #. type: =head1
20402 #: ../fish/guestfish.pod:1065
20403 msgid "PROGRESS BARS"
20404 msgstr ""
20405
20406 #. type: textblock
20407 #: ../fish/guestfish.pod:1067
20408 msgid ""
20409 "Some (not all) long-running commands send progress notification messages as "
20410 "they are running.  Guestfish turns these messages into progress bars."
20411 msgstr ""
20412
20413 #. type: textblock
20414 #: ../fish/guestfish.pod:1071
20415 msgid ""
20416 "When a command that supports progress bars takes longer than two seconds to "
20417 "run, and if progress bars are enabled, then you will see one appearing below "
20418 "the command:"
20419 msgstr ""
20420
20421 #. type: verbatim
20422 #: ../fish/guestfish.pod:1075
20423 #, no-wrap
20424 msgid ""
20425 " ><fs> copy-size /large-file /another-file 2048M\n"
20426 " / 10% [#####-----------------------------------------] 00:30\n"
20427 "\n"
20428 msgstr ""
20429
20430 #. type: textblock
20431 #: ../fish/guestfish.pod:1078
20432 msgid ""
20433 "The spinner on the left hand side moves round once for every progress "
20434 "notification received from the backend.  This is a (reasonably) golden "
20435 "assurance that the command is \"doing something\" even if the progress bar "
20436 "is not moving, because the command is able to send the progress "
20437 "notifications.  When the bar reaches 100% and the command finishes, the "
20438 "spinner disappears."
20439 msgstr ""
20440
20441 #. type: textblock
20442 #: ../fish/guestfish.pod:1085
20443 msgid ""
20444 "Progress bars are enabled by default when guestfish is used interactively.  "
20445 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20446 "and you can disable them completely using I<--no-progress-bars>."
20447 msgstr ""
20448
20449 #. type: =head1
20450 #: ../fish/guestfish.pod:1090
20451 msgid "GUESTFISH COMMANDS"
20452 msgstr ""
20453
20454 #. type: textblock
20455 #: ../fish/guestfish.pod:1092
20456 msgid ""
20457 "The commands in this section are guestfish convenience commands, in other "
20458 "words, they are not part of the L<guestfs(3)> API."
20459 msgstr ""
20460
20461 #. type: =head2
20462 #: ../fish/guestfish.pod:1095
20463 msgid "help"
20464 msgstr ""
20465
20466 #. type: verbatim
20467 #: ../fish/guestfish.pod:1097
20468 #, no-wrap
20469 msgid ""
20470 " help\n"
20471 " help cmd\n"
20472 "\n"
20473 msgstr ""
20474
20475 #. type: textblock
20476 #: ../fish/guestfish.pod:1100
20477 msgid "Without any parameter, this provides general help."
20478 msgstr ""
20479
20480 #. type: textblock
20481 #: ../fish/guestfish.pod:1102
20482 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20483 msgstr ""
20484
20485 #. type: =head2
20486 #: ../fish/guestfish.pod:1104
20487 msgid "quit | exit"
20488 msgstr ""
20489
20490 #. type: textblock
20491 #: ../fish/guestfish.pod:1106
20492 msgid "This exits guestfish.  You can also use C<^D> key."
20493 msgstr ""
20494
20495 #. type: textblock
20496 #: ../fish/guestfish.pod:1108
20497 msgid "@FISH_COMMANDS@"
20498 msgstr ""
20499
20500 #. type: =head1
20501 #: ../fish/guestfish.pod:1110
20502 msgid "COMMANDS"
20503 msgstr ""
20504
20505 #. type: textblock
20506 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
20507 msgid "@ACTIONS@"
20508 msgstr ""
20509
20510 #. type: textblock
20511 #: ../fish/guestfish.pod:1116
20512 msgid ""
20513 "guestfish returns 0 if the commands completed without error, or 1 if there "
20514 "was an error."
20515 msgstr ""
20516
20517 #. type: =item
20518 #: ../fish/guestfish.pod:1123
20519 msgid "EDITOR"
20520 msgstr ""
20521
20522 #. type: textblock
20523 #: ../fish/guestfish.pod:1125
20524 msgid ""
20525 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20526 "C<vi>."
20527 msgstr ""
20528
20529 #. type: =item
20530 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
20531 msgid "FEBOOTSTRAP_KERNEL"
20532 msgstr ""
20533
20534 #. type: =item
20535 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
20536 msgid "FEBOOTSTRAP_MODULES"
20537 msgstr ""
20538
20539 #. type: textblock
20540 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
20541 msgid ""
20542 "These two environment variables allow the kernel that libguestfs uses in the "
20543 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20544 "most recent host kernel is chosen.  For more information about kernel "
20545 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20546 "available in febootstrap E<ge> 3.8."
20547 msgstr ""
20548
20549 #. type: =item
20550 #: ../fish/guestfish.pod:1138
20551 msgid "GUESTFISH_DISPLAY_IMAGE"
20552 msgstr ""
20553
20554 #. type: textblock
20555 #: ../fish/guestfish.pod:1140
20556 msgid ""
20557 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20558 "If not set, it uses L<display(1)>."
20559 msgstr ""
20560
20561 #. type: =item
20562 #: ../fish/guestfish.pod:1143
20563 msgid "GUESTFISH_PID"
20564 msgstr ""
20565
20566 #. type: textblock
20567 #: ../fish/guestfish.pod:1145
20568 msgid ""
20569 "Used with the I<--remote> option to specify the remote guestfish process to "
20570 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20571 msgstr ""
20572
20573 #. type: =item
20574 #: ../fish/guestfish.pod:1149
20575 msgid "HEXEDITOR"
20576 msgstr ""
20577
20578 #. type: textblock
20579 #: ../fish/guestfish.pod:1151
20580 msgid ""
20581 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20582 "not specified, the external L<hexedit(1)> program is used."
20583 msgstr ""
20584
20585 #. type: =item
20586 #: ../fish/guestfish.pod:1155
20587 msgid "HOME"
20588 msgstr ""
20589
20590 #. type: textblock
20591 #: ../fish/guestfish.pod:1157
20592 msgid ""
20593 "If compiled with GNU readline support, various files in the home directory "
20594 "can be used.  See L</FILES>."
20595 msgstr ""
20596
20597 #. type: =item
20598 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
20599 msgid "LIBGUESTFS_APPEND"
20600 msgstr ""
20601
20602 #. type: textblock
20603 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
20604 msgid "Pass additional options to the guest kernel."
20605 msgstr ""
20606
20607 #. type: =item
20608 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
20609 msgid "LIBGUESTFS_DEBUG"
20610 msgstr ""
20611
20612 #. type: textblock
20613 #: ../fish/guestfish.pod:1166
20614 msgid ""
20615 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20616 "effect as using the B<-v> option."
20617 msgstr ""
20618
20619 #. type: =item
20620 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
20621 msgid "LIBGUESTFS_MEMSIZE"
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
20626 msgid ""
20627 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20628 msgstr ""
20629
20630 #. type: verbatim
20631 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
20632 #, no-wrap
20633 msgid ""
20634 " LIBGUESTFS_MEMSIZE=700\n"
20635 "\n"
20636 msgstr ""
20637
20638 #. type: =item
20639 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
20640 msgid "LIBGUESTFS_PATH"
20641 msgstr ""
20642
20643 #. type: textblock
20644 #: ../fish/guestfish.pod:1178
20645 msgid ""
20646 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20647 "the discussion of paths in L<guestfs(3)>."
20648 msgstr ""
20649
20650 #. type: =item
20651 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
20652 msgid "LIBGUESTFS_QEMU"
20653 msgstr ""
20654
20655 #. type: textblock
20656 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
20657 msgid ""
20658 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
20659 "which was found at compile time by the configure script is used."
20660 msgstr ""
20661
20662 #. type: =item
20663 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
20664 msgid "LIBGUESTFS_TRACE"
20665 msgstr ""
20666
20667 #. type: textblock
20668 #: ../fish/guestfish.pod:1189
20669 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20670 msgstr ""
20671
20672 #. type: =item
20673 #: ../fish/guestfish.pod:1191
20674 msgid "PAGER"
20675 msgstr ""
20676
20677 #. type: textblock
20678 #: ../fish/guestfish.pod:1193
20679 msgid ""
20680 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20681 "C<more>."
20682 msgstr ""
20683
20684 #. type: =item
20685 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
20686 #: ../src/guestfs.pod:3257
20687 msgid "TMPDIR"
20688 msgstr ""
20689
20690 #. type: textblock
20691 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
20692 msgid ""
20693 "Location of temporary directory, defaults to C</tmp> except for the cached "
20694 "supermin appliance which defaults to C</var/tmp>."
20695 msgstr ""
20696
20697 #. type: textblock
20698 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
20699 msgid ""
20700 "If libguestfs was compiled to use the supermin appliance then the real "
20701 "appliance is cached in this directory, shared between all handles belonging "
20702 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
20703 "use in case C</var/tmp> is not large enough."
20704 msgstr ""
20705
20706 #. type: =head1
20707 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
20708 #: ../rescue/virt-rescue.pod:273
20709 msgid "FILES"
20710 msgstr ""
20711
20712 #. type: =item
20713 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
20714 #: ../rescue/virt-rescue.pod:277
20715 msgid "$HOME/.libguestfs-tools.rc"
20716 msgstr ""
20717
20718 #. type: =item
20719 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
20720 #: ../rescue/virt-rescue.pod:279
20721 msgid "/etc/libguestfs-tools.conf"
20722 msgstr ""
20723
20724 #. type: textblock
20725 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
20726 #: ../rescue/virt-rescue.pod:281
20727 msgid ""
20728 "This configuration file controls the default read-only or read-write mode "
20729 "(I<--ro> or I<--rw>)."
20730 msgstr ""
20731
20732 #. type: textblock
20733 #: ../fish/guestfish.pod:1220
20734 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20735 msgstr ""
20736
20737 #. type: =item
20738 #: ../fish/guestfish.pod:1222
20739 msgid "$HOME/.guestfish"
20740 msgstr ""
20741
20742 #. type: textblock
20743 #: ../fish/guestfish.pod:1224
20744 msgid ""
20745 "If compiled with GNU readline support, then the command history is saved in "
20746 "this file."
20747 msgstr ""
20748
20749 #. type: =item
20750 #: ../fish/guestfish.pod:1227
20751 msgid "$HOME/.inputrc"
20752 msgstr ""
20753
20754 #. type: =item
20755 #: ../fish/guestfish.pod:1229
20756 msgid "/etc/inputrc"
20757 msgstr ""
20758
20759 #. type: textblock
20760 #: ../fish/guestfish.pod:1231
20761 msgid ""
20762 "If compiled with GNU readline support, then these files can be used to "
20763 "configure readline.  For further information, please see L<readline(3)/"
20764 "INITIALIZATION FILE>."
20765 msgstr ""
20766
20767 #. type: textblock
20768 #: ../fish/guestfish.pod:1235
20769 msgid "To write rules which only apply to guestfish, use:"
20770 msgstr ""
20771
20772 #. type: verbatim
20773 #: ../fish/guestfish.pod:1237
20774 #, no-wrap
20775 msgid ""
20776 " $if guestfish\n"
20777 " ...\n"
20778 " $endif\n"
20779 "\n"
20780 msgstr ""
20781
20782 #. type: textblock
20783 #: ../fish/guestfish.pod:1241
20784 msgid ""
20785 "Variables that you can set in inputrc that change the behaviour of guestfish "
20786 "in useful ways include:"
20787 msgstr ""
20788
20789 #. type: =item
20790 #: ../fish/guestfish.pod:1246
20791 msgid "completion-ignore-case (default: on)"
20792 msgstr ""
20793
20794 #. type: textblock
20795 #: ../fish/guestfish.pod:1248
20796 msgid ""
20797 "By default, guestfish will ignore case when tab-completing paths on the "
20798 "disk.  Use:"
20799 msgstr ""
20800
20801 #. type: verbatim
20802 #: ../fish/guestfish.pod:1251
20803 #, no-wrap
20804 msgid ""
20805 " set completion-ignore-case off\n"
20806 "\n"
20807 msgstr ""
20808
20809 #. type: textblock
20810 #: ../fish/guestfish.pod:1253
20811 msgid "to make guestfish case sensitive."
20812 msgstr ""
20813
20814 #. type: =item
20815 #: ../fish/guestfish.pod:1257
20816 msgid "test1.img"
20817 msgstr ""
20818
20819 #. type: =item
20820 #: ../fish/guestfish.pod:1259
20821 msgid "test2.img (etc)"
20822 msgstr ""
20823
20824 #. type: textblock
20825 #: ../fish/guestfish.pod:1261
20826 msgid ""
20827 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20828 "will be created in the file C<test1.img> in the current directory.  The "
20829 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20830 "the same name will be overwritten."
20831 msgstr ""
20832
20833 #. type: textblock
20834 #: ../fish/guestfish.pod:1270
20835 msgid ""
20836 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
20837 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
20838 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
20839 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
20840 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
20841 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
20842 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
20843 msgstr ""
20844
20845 #. type: textblock
20846 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
20847 #: ../test-tool/libguestfs-test-tool.pod:112
20848 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20849 msgstr ""
20850
20851 #. type: textblock
20852 #: ../fish/virt-copy-in.pod:5
20853 msgid ""
20854 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20855 msgstr ""
20856
20857 #. type: verbatim
20858 #: ../fish/virt-copy-in.pod:9
20859 #, no-wrap
20860 msgid ""
20861 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20862 "\n"
20863 msgstr ""
20864
20865 #. type: verbatim
20866 #: ../fish/virt-copy-in.pod:11
20867 #, no-wrap
20868 msgid ""
20869 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20870 "\n"
20871 msgstr ""
20872
20873 #. type: textblock
20874 #: ../fish/virt-copy-in.pod:15
20875 msgid ""
20876 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20877 "causing disk corruption.  The virtual machine must be shut down before you "
20878 "use this command."
20879 msgstr ""
20880
20881 #. type: textblock
20882 #: ../fish/virt-copy-in.pod:21
20883 msgid ""
20884 "C<virt-copy-in> copies files and directories from the local disk into a "
20885 "virtual machine disk image or named libvirt domain."
20886 msgstr ""
20887
20888 #. type: textblock
20889 #: ../fish/virt-copy-in.pod:24
20890 msgid ""
20891 "You can give one of more filenames and directories on the command line.  "
20892 "Directories are copied in recursively.  The final parameter must be the "
20893 "destination directory in the disk image which must be an absolute path "
20894 "starting with a C</> character."
20895 msgstr ""
20896
20897 #. type: verbatim
20898 #: ../fish/virt-copy-in.pod:33
20899 #, no-wrap
20900 msgid ""
20901 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20902 "\n"
20903 msgstr ""
20904
20905 #. type: textblock
20906 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20907 msgid "Upload a home directory to a guest:"
20908 msgstr ""
20909
20910 #. type: verbatim
20911 #: ../fish/virt-copy-in.pod:37
20912 #, no-wrap
20913 msgid ""
20914 " virt-copy-in -d MyGuest skel /home\n"
20915 "\n"
20916 msgstr ""
20917
20918 #. type: =head1
20919 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20920 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20921 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20922 msgstr ""
20923
20924 #. type: textblock
20925 #: ../fish/virt-copy-in.pod:41
20926 msgid ""
20927 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20928 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
20929 "are probably better off using guestfish directly."
20930 msgstr ""
20931
20932 #. type: textblock
20933 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20934 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20935 msgid ""
20936 "Since the shell script just passes options straight to guestfish, read "
20937 "L<guestfish(1)> to see the full list of options."
20938 msgstr ""
20939
20940 #. type: textblock
20941 #: ../fish/virt-copy-in.pod:52
20942 msgid ""
20943 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20944 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20945 msgstr ""
20946
20947 #. type: textblock
20948 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20949 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20950 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20951 msgstr ""
20952
20953 #. type: textblock
20954 #: ../fish/virt-copy-out.pod:5
20955 msgid ""
20956 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20957 "image."
20958 msgstr ""
20959
20960 #. type: verbatim
20961 #: ../fish/virt-copy-out.pod:9
20962 #, no-wrap
20963 msgid ""
20964 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20965 "\n"
20966 msgstr ""
20967
20968 #. type: verbatim
20969 #: ../fish/virt-copy-out.pod:11
20970 #, no-wrap
20971 msgid ""
20972 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20973 "\n"
20974 msgstr ""
20975
20976 #. type: textblock
20977 #: ../fish/virt-copy-out.pod:15
20978 msgid ""
20979 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20980 "image or named libvirt domain."
20981 msgstr ""
20982
20983 #. type: textblock
20984 #: ../fish/virt-copy-out.pod:18
20985 msgid ""
20986 "You can give one of more filenames and directories on the command line.  "
20987 "Directories are copied out recursively."
20988 msgstr ""
20989
20990 #. type: textblock
20991 #: ../fish/virt-copy-out.pod:23
20992 msgid "Download the home directories from a virtual machine:"
20993 msgstr ""
20994
20995 #. type: verbatim
20996 #: ../fish/virt-copy-out.pod:25
20997 #, no-wrap
20998 msgid ""
20999 " mkdir homes\n"
21000 " virt-copy-out -d MyGuest /home homes\n"
21001 "\n"
21002 msgstr ""
21003
21004 #. type: textblock
21005 #: ../fish/virt-copy-out.pod:30
21006 msgid ""
21007 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21008 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
21009 "are probably better off using guestfish directly."
21010 msgstr ""
21011
21012 #. type: textblock
21013 #: ../fish/virt-copy-out.pod:41
21014 msgid ""
21015 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21016 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21017 msgstr ""
21018
21019 #. type: textblock
21020 #: ../fish/virt-tar-in.pod:5
21021 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21022 msgstr ""
21023
21024 #. type: verbatim
21025 #: ../fish/virt-tar-in.pod:9
21026 #, no-wrap
21027 msgid ""
21028 " virt-tar-in -a disk.img data.tar /destination\n"
21029 "\n"
21030 msgstr ""
21031
21032 #. type: verbatim
21033 #: ../fish/virt-tar-in.pod:11
21034 #, no-wrap
21035 msgid ""
21036 " virt-tar-in -d domain data.tar /destination\n"
21037 "\n"
21038 msgstr ""
21039
21040 #. type: verbatim
21041 #: ../fish/virt-tar-in.pod:13
21042 #, no-wrap
21043 msgid ""
21044 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21045 "\n"
21046 msgstr ""
21047
21048 #. type: textblock
21049 #: ../fish/virt-tar-in.pod:17
21050 msgid ""
21051 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21052 "causing disk corruption.  The virtual machine must be shut down before you "
21053 "use this command."
21054 msgstr ""
21055
21056 #. type: textblock
21057 #: ../fish/virt-tar-in.pod:23
21058 msgid ""
21059 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21060 "image or named libvirt domain."
21061 msgstr ""
21062
21063 #. type: textblock
21064 #: ../fish/virt-tar-in.pod:26
21065 msgid ""
21066 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21067 "standard input.  The second parameter is the absolute target directory to "
21068 "unpack into."
21069 msgstr ""
21070
21071 #. type: verbatim
21072 #: ../fish/virt-tar-in.pod:34
21073 #, no-wrap
21074 msgid ""
21075 " virt-tar-in -d MyGuest homes.tar /home\n"
21076 "\n"
21077 msgstr ""
21078
21079 #. type: textblock
21080 #: ../fish/virt-tar-in.pod:38
21081 msgid ""
21082 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21083 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
21084 "probably better off using guestfish directly."
21085 msgstr ""
21086
21087 #. type: textblock
21088 #: ../fish/virt-tar-in.pod:49
21089 msgid ""
21090 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21091 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21092 "org/>."
21093 msgstr ""
21094
21095 #. type: textblock
21096 #: ../fish/virt-tar-out.pod:5
21097 msgid ""
21098 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21099 msgstr ""
21100
21101 #. type: verbatim
21102 #: ../fish/virt-tar-out.pod:9
21103 #, no-wrap
21104 msgid ""
21105 " virt-tar-out -a disk.img /dir files.tar\n"
21106 "\n"
21107 msgstr ""
21108
21109 #. type: verbatim
21110 #: ../fish/virt-tar-out.pod:11
21111 #, no-wrap
21112 msgid ""
21113 " virt-tar-out -d domain /dir files.tar\n"
21114 "\n"
21115 msgstr ""
21116
21117 #. type: verbatim
21118 #: ../fish/virt-tar-out.pod:13
21119 #, no-wrap
21120 msgid ""
21121 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21122 "\n"
21123 msgstr ""
21124
21125 #. type: textblock
21126 #: ../fish/virt-tar-out.pod:17
21127 msgid ""
21128 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21129 msgstr ""
21130
21131 #. type: textblock
21132 #: ../fish/virt-tar-out.pod:20
21133 msgid ""
21134 "The first parameter is the absolute path of the virtual machine directory.  "
21135 "The second parameter is the tar file to write.  Use C<-> to write to "
21136 "standard output."
21137 msgstr ""
21138
21139 #. type: textblock
21140 #: ../fish/virt-tar-out.pod:26
21141 msgid "Download the home directories from a guest:"
21142 msgstr ""
21143
21144 #. type: verbatim
21145 #: ../fish/virt-tar-out.pod:28
21146 #, no-wrap
21147 msgid ""
21148 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21149 "\n"
21150 msgstr ""
21151
21152 #. type: textblock
21153 #: ../fish/virt-tar-out.pod:32
21154 msgid ""
21155 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21156 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
21157 "are probably better off using guestfish directly."
21158 msgstr ""
21159
21160 #. type: textblock
21161 #: ../fish/virt-tar-out.pod:43
21162 msgid ""
21163 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21164 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21165 msgstr ""
21166
21167 #. type: textblock
21168 #: ../fuse/guestmount.pod:5
21169 msgid ""
21170 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21171 msgstr ""
21172
21173 #. type: verbatim
21174 #: ../fuse/guestmount.pod:9
21175 #, no-wrap
21176 msgid ""
21177 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21178 "\n"
21179 msgstr ""
21180
21181 #. type: verbatim
21182 #: ../fuse/guestmount.pod:11
21183 #, no-wrap
21184 msgid ""
21185 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21186 "\n"
21187 msgstr ""
21188
21189 #. type: verbatim
21190 #: ../fuse/guestmount.pod:13
21191 #, no-wrap
21192 msgid ""
21193 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21194 "\n"
21195 msgstr ""
21196
21197 #. type: textblock
21198 #: ../fuse/guestmount.pod:17
21199 msgid ""
21200 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21201 "machines.  If you do this, you risk disk corruption in the VM."
21202 msgstr ""
21203
21204 #. type: textblock
21205 #: ../fuse/guestmount.pod:22
21206 msgid ""
21207 "The guestmount program can be used to mount virtual machine filesystems and "
21208 "other disk images on the host.  It uses libguestfs for access to the guest "
21209 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21210 "a mountable device."
21211 msgstr ""
21212
21213 #. type: textblock
21214 #: ../fuse/guestmount.pod:27
21215 msgid ""
21216 "Along with other options, you have to give at least one device (I<-a> "
21217 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21218 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21219 "this works is better explained in the L<guestfish(1)> manual page, or by "
21220 "looking at the examples below."
21221 msgstr ""
21222
21223 #. type: textblock
21224 #: ../fuse/guestmount.pod:33
21225 msgid ""
21226 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21227 "by you, and the filesystem will not be visible to any other users unless you "
21228 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21229 "the filesystem, use the C<fusermount -u> command."
21230 msgstr ""
21231
21232 #. type: textblock
21233 #: ../fuse/guestmount.pod:41
21234 msgid ""
21235 "For a typical Windows guest which has its main filesystem on the first "
21236 "partition:"
21237 msgstr ""
21238
21239 #. type: verbatim
21240 #: ../fuse/guestmount.pod:44
21241 #, no-wrap
21242 msgid ""
21243 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21244 "\n"
21245 msgstr ""
21246
21247 #. type: textblock
21248 #: ../fuse/guestmount.pod:46
21249 msgid ""
21250 "For a typical Linux guest which has a /boot filesystem on the first "
21251 "partition, and the root filesystem on a logical volume:"
21252 msgstr ""
21253
21254 #. type: verbatim
21255 #: ../fuse/guestmount.pod:49
21256 #, no-wrap
21257 msgid ""
21258 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21259 "\n"
21260 msgstr ""
21261
21262 #. type: textblock
21263 #: ../fuse/guestmount.pod:51
21264 msgid "To get libguestfs to detect guest mountpoints for you:"
21265 msgstr ""
21266
21267 #. type: verbatim
21268 #: ../fuse/guestmount.pod:53
21269 #, no-wrap
21270 msgid ""
21271 " guestmount -a guest.img -i --ro /mnt\n"
21272 "\n"
21273 msgstr ""
21274
21275 #. type: textblock
21276 #: ../fuse/guestmount.pod:55
21277 msgid "For a libvirt guest called \"Guest\" you could do:"
21278 msgstr ""
21279
21280 #. type: verbatim
21281 #: ../fuse/guestmount.pod:57
21282 #, no-wrap
21283 msgid ""
21284 " guestmount -d Guest -i --ro /mnt\n"
21285 "\n"
21286 msgstr ""
21287
21288 #. type: textblock
21289 #: ../fuse/guestmount.pod:59
21290 msgid ""
21291 "If you don't know what filesystems are contained in a guest or disk image, "
21292 "use L<virt-filesystems(1)> first:"
21293 msgstr ""
21294
21295 #. type: verbatim
21296 #: ../fuse/guestmount.pod:62
21297 #, no-wrap
21298 msgid ""
21299 " virt-filesystems MyGuest\n"
21300 "\n"
21301 msgstr ""
21302
21303 #. type: textblock
21304 #: ../fuse/guestmount.pod:64
21305 msgid ""
21306 "If you want to trace the libguestfs calls but without excessive debugging "
21307 "information, we recommend:"
21308 msgstr ""
21309
21310 #. type: verbatim
21311 #: ../fuse/guestmount.pod:67
21312 #, no-wrap
21313 msgid ""
21314 " guestmount [...] --trace /mnt\n"
21315 "\n"
21316 msgstr ""
21317
21318 #. type: textblock
21319 #: ../fuse/guestmount.pod:69
21320 msgid "If you want to debug the program, we recommend:"
21321 msgstr ""
21322
21323 #. type: verbatim
21324 #: ../fuse/guestmount.pod:71
21325 #, no-wrap
21326 msgid ""
21327 " guestmount [...] --trace --verbose /mnt\n"
21328 "\n"
21329 msgstr ""
21330
21331 #. type: =head1
21332 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21333 #: ../resize/virt-resize.pod:621
21334 msgid "NOTES"
21335 msgstr ""
21336
21337 #. type: =head2
21338 #: ../fuse/guestmount.pod:75
21339 msgid "Other users cannot see the filesystem by default"
21340 msgstr ""
21341
21342 #. type: textblock
21343 #: ../fuse/guestmount.pod:77
21344 msgid ""
21345 "If you mount a filesystem as one user (eg. root), then other users will not "
21346 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21347 "option when mounting:"
21348 msgstr ""
21349
21350 #. type: verbatim
21351 #: ../fuse/guestmount.pod:81
21352 #, no-wrap
21353 msgid ""
21354 " sudo guestmount [...] -o allow_other /mnt\n"
21355 "\n"
21356 msgstr ""
21357
21358 #. type: =head2
21359 #: ../fuse/guestmount.pod:83
21360 msgid "Enabling FUSE"
21361 msgstr ""
21362
21363 #. type: textblock
21364 #: ../fuse/guestmount.pod:85
21365 msgid ""
21366 "On some distros, you may need to add yourself to a special group (eg. "
21367 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21368 "Debian and derivatives."
21369 msgstr ""
21370
21371 #. type: textblock
21372 #: ../fuse/guestmount.pod:89
21373 msgid ""
21374 "On other distros, no special group is required.  It is not necessary on "
21375 "Fedora or Red Hat Enterprise Linux."
21376 msgstr ""
21377
21378 #. type: textblock
21379 #: ../fuse/guestmount.pod:100
21380 msgid "Add a block device or virtual machine image."
21381 msgstr ""
21382
21383 #. type: =item
21384 #: ../fuse/guestmount.pod:123
21385 msgid "B<--dir-cache-timeout N>"
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../fuse/guestmount.pod:125
21390 msgid ""
21391 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21392 "seconds.  The readdir cache [actually, there are several semi-independent "
21393 "caches] is populated after a readdir(2) call with the stat and extended "
21394 "attributes of the files in the directory, in anticipation that they will be "
21395 "requested soon after."
21396 msgstr ""
21397
21398 #. type: textblock
21399 #: ../fuse/guestmount.pod:131
21400 msgid ""
21401 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21402 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21403 "requests, only cache existing ones."
21404 msgstr ""
21405
21406 #. type: textblock
21407 #: ../fuse/guestmount.pod:151
21408 msgid ""
21409 "If you have untrusted raw-format guest disk images, you should use this "
21410 "option to specify the disk format.  This avoids a possible security problem "
21411 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
21412 "guestfs_add_drive_opts>."
21413 msgstr ""
21414
21415 #. type: =item
21416 #: ../fuse/guestmount.pod:156
21417 msgid "B<--fuse-help>"
21418 msgstr ""
21419
21420 #. type: textblock
21421 #: ../fuse/guestmount.pod:158
21422 msgid "Display help on special FUSE options (see I<-o> below)."
21423 msgstr ""
21424
21425 #. type: textblock
21426 #: ../fuse/guestmount.pod:162
21427 msgid "Display brief help and exit."
21428 msgstr ""
21429
21430 #. type: textblock
21431 #: ../fuse/guestmount.pod:186
21432 msgid ""
21433 "Mount the named partition or logical volume on the given mountpoint B<in the "
21434 "guest> (this has nothing to do with mountpoints in the host)."
21435 msgstr ""
21436
21437 #. type: textblock
21438 #: ../fuse/guestmount.pod:189
21439 msgid ""
21440 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21441 "something on C</>."
21442 msgstr ""
21443
21444 #. type: textblock
21445 #: ../fuse/guestmount.pod:206
21446 msgid ""
21447 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21448 "unmounted.  If you specify this option, then we don't attempt to sync the "
21449 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21450 msgstr ""
21451
21452 #. type: =item
21453 #: ../fuse/guestmount.pod:211
21454 msgid "B<-o option>"
21455 msgstr ""
21456
21457 #. type: =item
21458 #: ../fuse/guestmount.pod:213
21459 msgid "B<--option option>"
21460 msgstr ""
21461
21462 #. type: textblock
21463 #: ../fuse/guestmount.pod:215
21464 msgid "Pass extra options to FUSE."
21465 msgstr ""
21466
21467 #. type: textblock
21468 #: ../fuse/guestmount.pod:217
21469 msgid ""
21470 "To get a list of all the extra options supported by FUSE, use the command "
21471 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21472 "of them are a good idea."
21473 msgstr ""
21474
21475 #. type: verbatim
21476 #: ../fuse/guestmount.pod:221
21477 #, no-wrap
21478 msgid ""
21479 " guestmount --fuse-help\n"
21480 "\n"
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../fuse/guestmount.pod:223
21485 msgid "Some potentially useful FUSE options:"
21486 msgstr ""
21487
21488 #. type: =item
21489 #: ../fuse/guestmount.pod:227
21490 msgid "B<-o allow_other>"
21491 msgstr ""
21492
21493 #. type: textblock
21494 #: ../fuse/guestmount.pod:229
21495 msgid "Allow other users to see the filesystem."
21496 msgstr ""
21497
21498 #. type: =item
21499 #: ../fuse/guestmount.pod:231
21500 msgid "B<-o attr_timeout=N>"
21501 msgstr ""
21502
21503 #. type: textblock
21504 #: ../fuse/guestmount.pod:233
21505 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21506 msgstr ""
21507
21508 #. type: =item
21509 #: ../fuse/guestmount.pod:235
21510 msgid "B<-o kernel_cache>"
21511 msgstr ""
21512
21513 #. type: textblock
21514 #: ../fuse/guestmount.pod:237
21515 msgid ""
21516 "Allow the kernel to cache files (reduces the number of reads that have to go "
21517 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21518 "afford the extra memory usage."
21519 msgstr ""
21520
21521 #. type: =item
21522 #: ../fuse/guestmount.pod:241
21523 msgid "B<-o uid=N> B<-o gid=N>"
21524 msgstr ""
21525
21526 #. type: textblock
21527 #: ../fuse/guestmount.pod:243
21528 msgid ""
21529 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21530 "the chosen values."
21531 msgstr ""
21532
21533 #. type: textblock
21534 #: ../fuse/guestmount.pod:252
21535 msgid ""
21536 "Add devices and mount everything read-only.  Also disallow writes and make "
21537 "the disk appear read-only to FUSE."
21538 msgstr ""
21539
21540 #. type: textblock
21541 #: ../fuse/guestmount.pod:255
21542 msgid ""
21543 "This is highly recommended if you are not going to edit the guest disk.  If "
21544 "the guest is running and this option is I<not> supplied, then there is a "
21545 "strong risk of disk corruption in the guest.  We try to prevent this from "
21546 "happening, but it is not always possible."
21547 msgstr ""
21548
21549 #. type: textblock
21550 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21551 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21552 msgstr ""
21553
21554 #. type: textblock
21555 #: ../fuse/guestmount.pod:264
21556 msgid "Enable SELinux support for the guest."
21557 msgstr ""
21558
21559 #. type: textblock
21560 #: ../fuse/guestmount.pod:270
21561 msgid "Enable verbose messages from underlying libguestfs."
21562 msgstr ""
21563
21564 #. type: textblock
21565 #: ../fuse/guestmount.pod:276
21566 msgid "Display the program version and exit."
21567 msgstr ""
21568
21569 #. type: textblock
21570 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21571 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21572 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21573 msgstr ""
21574
21575 #. type: =item
21576 #: ../fuse/guestmount.pod:289
21577 msgid "B<--trace>"
21578 msgstr ""
21579
21580 #. type: textblock
21581 #: ../fuse/guestmount.pod:291
21582 msgid "Trace libguestfs calls and entry into each FUSE function."
21583 msgstr ""
21584
21585 #. type: textblock
21586 #: ../fuse/guestmount.pod:293
21587 msgid "This also stops the daemon from forking into the background."
21588 msgstr ""
21589
21590 #. type: textblock
21591 #: ../fuse/guestmount.pod:319
21592 msgid ""
21593 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21594 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21595 "net/>."
21596 msgstr ""
21597
21598 #. type: textblock
21599 #: ../fuse/guestmount.pod:334
21600 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21601 msgstr ""
21602
21603 #. type: textblock
21604 #: ../inspector/virt-inspector.pod:5
21605 msgid ""
21606 "virt-inspector - Display operating system version and other information "
21607 "about a virtual machine"
21608 msgstr ""
21609
21610 #. type: verbatim
21611 #: ../inspector/virt-inspector.pod:9
21612 #, no-wrap
21613 msgid ""
21614 " virt-inspector [--options] -d domname\n"
21615 "\n"
21616 msgstr ""
21617
21618 #. type: verbatim
21619 #: ../inspector/virt-inspector.pod:11
21620 #, no-wrap
21621 msgid ""
21622 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21623 "\n"
21624 msgstr ""
21625
21626 #. type: verbatim
21627 #: ../inspector/virt-inspector.pod:15
21628 #, no-wrap
21629 msgid ""
21630 " virt-inspector domname\n"
21631 "\n"
21632 msgstr ""
21633
21634 #. type: verbatim
21635 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21636 #, no-wrap
21637 msgid ""
21638 " virt-inspector disk.img [disk.img ...]\n"
21639 "\n"
21640 msgstr ""
21641
21642 #. type: textblock
21643 #: ../inspector/virt-inspector.pod:21
21644 msgid ""
21645 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21646 "determine the version of the operating system and other information about "
21647 "the virtual machine."
21648 msgstr ""
21649
21650 #. type: textblock
21651 #: ../inspector/virt-inspector.pod:25
21652 msgid "Virt-inspector produces XML output for feeding into other programs."
21653 msgstr ""
21654
21655 #. type: textblock
21656 #: ../inspector/virt-inspector.pod:27
21657 msgid ""
21658 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21659 "the libvirt domain (see: C<virsh list --all>)."
21660 msgstr ""
21661
21662 #. type: textblock
21663 #: ../inspector/virt-inspector.pod:30
21664 msgid ""
21665 "You can also run virt-inspector directly on disk images from a single "
21666 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
21667 "has several block devices, in which case you should list several I<-a> "
21668 "options one after another, with the first corresponding to the guest's C</"
21669 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
21670 msgstr ""
21671
21672 #. type: textblock
21673 #: ../inspector/virt-inspector.pod:37
21674 msgid ""
21675 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21676 "keys and similar."
21677 msgstr ""
21678
21679 #. type: textblock
21680 #: ../inspector/virt-inspector.pod:40
21681 msgid ""
21682 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
21683 "inspect several virtual machines, you have to run virt-inspector several "
21684 "times (for example, from a shell script for-loop)."
21685 msgstr ""
21686
21687 #. type: textblock
21688 #: ../inspector/virt-inspector.pod:45
21689 msgid ""
21690 "Because virt-inspector needs direct access to guest images, it won't "
21691 "normally work over remote libvirt connections."
21692 msgstr ""
21693
21694 #. type: textblock
21695 #: ../inspector/virt-inspector.pod:48
21696 msgid ""
21697 "All of the information available from virt-inspector is also available "
21698 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
21699 "The same information can also be fetched using guestfish or via libguestfs "
21700 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21701 "WITH OTHER PROGRAMMING LANGUAGES>)."
21702 msgstr ""
21703
21704 #. type: textblock
21705 #: ../inspector/virt-inspector.pod:81
21706 msgid ""
21707 "Libvirt is only used if you specify a C<domname> on the command line.  If "
21708 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21709 "at all."
21710 msgstr ""
21711
21712 #. type: textblock
21713 #: ../inspector/virt-inspector.pod:94
21714 msgid ""
21715 "When prompting for keys and passphrases, virt-inspector normally turns "
21716 "echoing off so you cannot see what you are typing.  If you are not worried "
21717 "about Tempest attacks and there is no one else in the room you can specify "
21718 "this flag to see what you are typing."
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
21723 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
21724 #: ../tools/virt-win-reg.pl:144
21725 msgid ""
21726 "Specify the format of disk images given on the command line.  If this is "
21727 "omitted then the format is autodetected from the content of the disk image."
21728 msgstr ""
21729
21730 #. type: textblock
21731 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
21732 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
21733 #: ../tools/virt-win-reg.pl:148
21734 msgid ""
21735 "If disk images are requested from libvirt, then this program asks libvirt "
21736 "for this information.  In this case, the value of the format parameter is "
21737 "ignored."
21738 msgstr ""
21739
21740 #. type: textblock
21741 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
21742 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
21743 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
21744 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
21745 msgid ""
21746 "If working with untrusted raw-format guest disk images, you should ensure "
21747 "the format is always specified."
21748 msgstr ""
21749
21750 #. type: textblock
21751 #: ../inspector/virt-inspector.pod:139
21752 msgid "Previous versions of virt-inspector allowed you to write either:"
21753 msgstr ""
21754
21755 #. type: verbatim
21756 #: ../inspector/virt-inspector.pod:145
21757 #, no-wrap
21758 msgid ""
21759 " virt-inspector guestname\n"
21760 "\n"
21761 msgstr ""
21762
21763 #. type: =head1
21764 #: ../inspector/virt-inspector.pod:153
21765 msgid "XML FORMAT"
21766 msgstr ""
21767
21768 #. type: textblock
21769 #: ../inspector/virt-inspector.pod:155
21770 msgid ""
21771 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21772 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21773 "just an overview."
21774 msgstr ""
21775
21776 #. type: textblock
21777 #: ../inspector/virt-inspector.pod:159
21778 msgid ""
21779 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21780 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21781 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21782 "which is vanishingly rare in real world VMs."
21783 msgstr ""
21784
21785 #. type: =head2
21786 #: ../inspector/virt-inspector.pod:164
21787 msgid "E<lt>operatingsystemE<gt>"
21788 msgstr ""
21789
21790 #. type: textblock
21791 #: ../inspector/virt-inspector.pod:166
21792 msgid ""
21793 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21794 "describe the operating system, its architecture, the descriptive \"product "
21795 "name\" string, the type of OS and so on, as in this example:"
21796 msgstr ""
21797
21798 #. type: verbatim
21799 #: ../inspector/virt-inspector.pod:170
21800 #, no-wrap
21801 msgid ""
21802 " <operatingsystems>\n"
21803 "   <operatingsystem>\n"
21804 "     <root>/dev/sda2</root>\n"
21805 "     <name>windows</name>\n"
21806 "     <arch>i386</arch>\n"
21807 "     <distro>windows</distro>\n"
21808 "     <product_name>Windows 7 Enterprise</product_name>\n"
21809 "     <product_variant>Client</product_variant>\n"
21810 "     <major_version>6</major_version>\n"
21811 "     <minor_version>1</minor_version>\n"
21812 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21813 "     <format>installed</format>\n"
21814 "\n"
21815 msgstr ""
21816
21817 #. type: textblock
21818 #: ../inspector/virt-inspector.pod:183
21819 msgid ""
21820 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21821 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21822 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21823 "architecture.  The other fields are fairly self-explanatory, but because "
21824 "these fields are taken directly from the libguestfs inspection API you can "
21825 "find precise information from L<guestfs(3)/INSPECTION>."
21826 msgstr ""
21827
21828 #. type: textblock
21829 #: ../inspector/virt-inspector.pod:191
21830 msgid ""
21831 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21832 "of view of libguestfs (block devices may have completely different names "
21833 "inside the VM itself)."
21834 msgstr ""
21835
21836 #. type: =head2
21837 #: ../inspector/virt-inspector.pod:195
21838 msgid "E<lt>mountpointsE<gt>"
21839 msgstr ""
21840
21841 #. type: textblock
21842 #: ../inspector/virt-inspector.pod:197
21843 msgid ""
21844 "Un*x-like guests typically have multiple filesystems which are mounted at "
21845 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21846 "element which looks like this:"
21847 msgstr ""
21848
21849 #. type: verbatim
21850 #: ../inspector/virt-inspector.pod:201
21851 #, no-wrap
21852 msgid ""
21853 " <operatingsystems>\n"
21854 "   <operatingsystem>\n"
21855 "     ...\n"
21856 "     <mountpoints>\n"
21857 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21858 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21859 "     </mountpoints>\n"
21860 "\n"
21861 msgstr ""
21862
21863 #. type: textblock
21864 #: ../inspector/virt-inspector.pod:209
21865 msgid ""
21866 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21867 "and may have completely different names inside the guest.  Only mountable "
21868 "filesystems appear in this list, not things like swap devices."
21869 msgstr ""
21870
21871 #. type: =head2
21872 #: ../inspector/virt-inspector.pod:214
21873 msgid "E<lt>filesystemsE<gt>"
21874 msgstr ""
21875
21876 #. type: textblock
21877 #: ../inspector/virt-inspector.pod:216
21878 msgid ""
21879 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21880 "filesystems belonging to the guest, including swap and empty partitions.  "
21881 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21882 "this OS or shared with this OS and other OSes)."
21883 msgstr ""
21884
21885 #. type: textblock
21886 #: ../inspector/virt-inspector.pod:222
21887 msgid "You might see something like this:"
21888 msgstr ""
21889
21890 #. type: verbatim
21891 #: ../inspector/virt-inspector.pod:224
21892 #, no-wrap
21893 msgid ""
21894 " <operatingsystems>\n"
21895 "   <operatingsystem>\n"
21896 "     ...\n"
21897 "     <filesystems>\n"
21898 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21899 "         <type>ext4</type>\n"
21900 "         <label>Fedora-13-x86_64</label>\n"
21901 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21902 "       </filesystem>\n"
21903 "\n"
21904 msgstr ""
21905
21906 #. type: textblock
21907 #: ../inspector/virt-inspector.pod:234
21908 msgid ""
21909 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21910 "the label, and the UUID."
21911 msgstr ""
21912
21913 #. type: =head2
21914 #: ../inspector/virt-inspector.pod:237
21915 msgid "E<lt>applicationsE<gt>"
21916 msgstr ""
21917
21918 #. type: textblock
21919 #: ../inspector/virt-inspector.pod:239
21920 msgid ""
21921 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21922 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21923 "machine."
21924 msgstr ""
21925
21926 #. type: textblock
21927 #: ../inspector/virt-inspector.pod:243
21928 msgid ""
21929 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21930 "Typical values would be C<rpm> and C<deb>."
21931 msgstr ""
21932
21933 #. type: textblock
21934 #: ../inspector/virt-inspector.pod:246
21935 msgid ""
21936 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21937 "Typical values include C<yum>, C<up2date> and C<apt>"
21938 msgstr ""
21939
21940 #. type: textblock
21941 #: ../inspector/virt-inspector.pod:249
21942 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21943 msgstr ""
21944
21945 #. type: verbatim
21946 #: ../inspector/virt-inspector.pod:252
21947 #, no-wrap
21948 msgid ""
21949 " <operatingsystems>\n"
21950 "   <operatingsystem>\n"
21951 "     ...\n"
21952 "     <applications>\n"
21953 "       <application>\n"
21954 "         <name>coreutils</name>\n"
21955 "         <version>8.5</version>\n"
21956 "         <release>1</release>\n"
21957 "       </application>\n"
21958 "\n"
21959 msgstr ""
21960
21961 #. type: textblock
21962 #: ../inspector/virt-inspector.pod:262
21963 msgid ""
21964 "The version and release fields may not be available for some types guests.  "
21965 "Other fields are possible, see L<guestfs(3)/"
21966 "guestfs_inspect_list_applications>."
21967 msgstr ""
21968
21969 #. type: =head2
21970 #: ../inspector/virt-inspector.pod:266
21971 msgid "E<lt>drive_mappingsE<gt>"
21972 msgstr ""
21973
21974 #. type: textblock
21975 #: ../inspector/virt-inspector.pod:268
21976 msgid ""
21977 "For operating systems like Windows which use drive letters, virt-inspector "
21978 "is able to find out how drive letters map to filesystems."
21979 msgstr ""
21980
21981 #. type: verbatim
21982 #: ../inspector/virt-inspector.pod:272
21983 #, no-wrap
21984 msgid ""
21985 " <operatingsystems>\n"
21986 "   <operatingsystem>\n"
21987 "     ...\n"
21988 "     <drive_mappings>\n"
21989 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21990 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21991 "     </drive_mappings>\n"
21992 "\n"
21993 msgstr ""
21994
21995 #. type: textblock
21996 #: ../inspector/virt-inspector.pod:280
21997 msgid ""
21998 "In the example above, drive C maps to the filesystem on the second partition "
21999 "on the first disk, and drive E maps to the filesystem on the first partition "
22000 "on the second disk."
22001 msgstr ""
22002
22003 #. type: textblock
22004 #: ../inspector/virt-inspector.pod:284
22005 msgid ""
22006 "Note that this only covers permanent local filesystem mappings, not things "
22007 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22008 "here."
22009 msgstr ""
22010
22011 #. type: =head2
22012 #: ../inspector/virt-inspector.pod:288
22013 msgid "E<lt>iconE<gt>"
22014 msgstr ""
22015
22016 #. type: textblock
22017 #: ../inspector/virt-inspector.pod:290
22018 msgid ""
22019 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22020 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22021 "very large and high quality."
22022 msgstr ""
22023
22024 #. type: verbatim
22025 #: ../inspector/virt-inspector.pod:294
22026 #, no-wrap
22027 msgid ""
22028 " <operatingsystems>\n"
22029 "   <operatingsystem>\n"
22030 "     ...\n"
22031 "     <icon>\n"
22032 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22033 "       [... many lines of base64 data ...]\n"
22034 "     </icon>\n"
22035 "\n"
22036 msgstr ""
22037
22038 #. type: textblock
22039 #: ../inspector/virt-inspector.pod:302
22040 msgid ""
22041 "To display the icon, you have to extract it and convert the base64 data back "
22042 "to a binary file.  Use an XPath query or simply an editor to extract the "
22043 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22044 "to a PNG file:"
22045 msgstr ""
22046
22047 #. type: verbatim
22048 #: ../inspector/virt-inspector.pod:307
22049 #, no-wrap
22050 msgid ""
22051 " base64 -i -d < icon.data > icon.png\n"
22052 "\n"
22053 msgstr ""
22054
22055 #. type: =head2
22056 #: ../inspector/virt-inspector.pod:309
22057 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22058 msgstr ""
22059
22060 #. type: textblock
22061 #: ../inspector/virt-inspector.pod:311
22062 msgid ""
22063 "Virt-inspector can detect some operating system installers on install disks, "
22064 "live CDs, bootable USB keys and more."
22065 msgstr ""
22066
22067 #. type: textblock
22068 #: ../inspector/virt-inspector.pod:314
22069 msgid ""
22070 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22071 "fields may be present to indicate a live CD, network installer, or one part "
22072 "of a multipart CD.  For example:"
22073 msgstr ""
22074
22075 #. type: verbatim
22076 #: ../inspector/virt-inspector.pod:318
22077 #, no-wrap
22078 msgid ""
22079 " <operatingsystems>\n"
22080 "   <operatingsystem>\n"
22081 "     <root>/dev/sda</root>\n"
22082 "     <name>linux</name>\n"
22083 "     <arch>i386</arch>\n"
22084 "     <distro>ubuntu</distro>\n"
22085 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22086 "     <major_version>10</major_version>\n"
22087 "     <minor_version>10</minor_version>\n"
22088 "     <format>installer</format>\n"
22089 "     <live/>\n"
22090 "\n"
22091 msgstr ""
22092
22093 #. type: =head1
22094 #: ../inspector/virt-inspector.pod:330
22095 msgid "USING XPATH"
22096 msgstr ""
22097
22098 #. type: textblock
22099 #: ../inspector/virt-inspector.pod:332
22100 msgid ""
22101 "You can use the XPath query language to select parts of the XML.  We "
22102 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22103 msgstr ""
22104
22105 #. type: verbatim
22106 #: ../inspector/virt-inspector.pod:338
22107 #, no-wrap
22108 msgid ""
22109 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22110 " <filesystems>\n"
22111 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22112 "        <type>ext4</type>\n"
22113 " [...]\n"
22114 "\n"
22115 msgstr ""
22116
22117 #. type: verbatim
22118 #: ../inspector/virt-inspector.pod:344
22119 #, no-wrap
22120 msgid ""
22121 " $ virt-inspector -d Guest | \\\n"
22122 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22123 " ext4\n"
22124 "\n"
22125 msgstr ""
22126
22127 #. type: verbatim
22128 #: ../inspector/virt-inspector.pod:348
22129 #, no-wrap
22130 msgid ""
22131 " $ virt-inspector -d Guest | \\\n"
22132 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22133 " [displays the guest icon, if there is one]\n"
22134 "\n"
22135 msgstr ""
22136
22137 #. type: =head1
22138 #: ../inspector/virt-inspector.pod:359
22139 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22140 msgstr ""
22141
22142 #. type: textblock
22143 #: ../inspector/virt-inspector.pod:361
22144 msgid ""
22145 "Early versions of libguestfs shipped with a different virt-inspector program "
22146 "written in Perl (the current version is written in C).  The XML output of "
22147 "the Perl virt-inspector was different and it could also output in other "
22148 "formats like text."
22149 msgstr ""
22150
22151 #. type: textblock
22152 #: ../inspector/virt-inspector.pod:366
22153 msgid ""
22154 "The old virt-inspector is no longer supported or shipped with libguestfs."
22155 msgstr ""
22156
22157 #. type: textblock
22158 #: ../inspector/virt-inspector.pod:369
22159 msgid ""
22160 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22161 "versions of virt-inspector with different names:"
22162 msgstr ""
22163
22164 #. type: verbatim
22165 #: ../inspector/virt-inspector.pod:372
22166 #, no-wrap
22167 msgid ""
22168 " virt-inspector     Old Perl version.\n"
22169 " virt-inspector2    New C version.\n"
22170 "\n"
22171 msgstr ""
22172
22173 #. type: textblock
22174 #: ../inspector/virt-inspector.pod:382
22175 msgid ""
22176 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22177 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22178 msgstr ""
22179
22180 #. type: textblock
22181 #: ../inspector/virt-inspector.pod:399
22182 msgid "Matthew Booth L<mbooth@redhat.com>"
22183 msgstr ""
22184
22185 #. type: textblock
22186 #: ../java/examples/guestfs-java.pod:5
22187 msgid "guestfs-java - How to use libguestfs from Java"
22188 msgstr ""
22189
22190 #. type: verbatim
22191 #: ../java/examples/guestfs-java.pod:9
22192 #, no-wrap
22193 msgid ""
22194 " import com.redhat.et.libguestfs.*;\n"
22195 " \n"
22196 msgstr ""
22197
22198 #. type: verbatim
22199 #: ../java/examples/guestfs-java.pod:11
22200 #, no-wrap
22201 msgid ""
22202 " GuestFS g = new GuestFS ();\n"
22203 " g.add_drive_opts (\"disk.img\", null);\n"
22204 " g.launch ();\n"
22205 "\n"
22206 msgstr ""
22207
22208 #. type: textblock
22209 #: ../java/examples/guestfs-java.pod:17
22210 msgid ""
22211 "This manual page documents how to call libguestfs from the Java programming "
22212 "language.  This page just documents the differences from the C API and gives "
22213 "some examples.  If you are not familiar with using libguestfs, you also need "
22214 "to read L<guestfs(3)>."
22215 msgstr ""
22216
22217 #. type: =head2
22218 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22219 msgid "CLOSING THE HANDLE"
22220 msgstr ""
22221
22222 #. type: textblock
22223 #: ../java/examples/guestfs-java.pod:24
22224 msgid ""
22225 "The handle is closed when it is reaped by the garbage collector.  Because "
22226 "libguestfs handles include a lot of state, it is also possible to close (and "
22227 "hence free) them explicitly by calling the C<close> method."
22228 msgstr ""
22229
22230 #. type: =head2
22231 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22232 #: ../python/examples/guestfs-python.pod:21
22233 #: ../ruby/examples/guestfs-ruby.pod:22
22234 msgid "EXCEPTIONS"
22235 msgstr ""
22236
22237 #. type: textblock
22238 #: ../java/examples/guestfs-java.pod:31
22239 msgid ""
22240 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22241 "exception.  This has a single parameter which is the error message (a "
22242 "C<String>)."
22243 msgstr ""
22244
22245 #. type: textblock
22246 #: ../java/examples/guestfs-java.pod:35
22247 msgid "Calling any method on a closed handle raises the same exception."
22248 msgstr ""
22249
22250 #. type: textblock
22251 #: ../java/examples/guestfs-java.pod:47
22252 msgid ""
22253 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22254 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22255 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22256 msgstr ""
22257
22258 #. type: textblock
22259 #: ../ocaml/examples/guestfs-ocaml.pod:5
22260 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22261 msgstr ""
22262
22263 #. type: textblock
22264 #: ../ocaml/examples/guestfs-ocaml.pod:9
22265 msgid "Module style:"
22266 msgstr ""
22267
22268 #. type: verbatim
22269 #: ../ocaml/examples/guestfs-ocaml.pod:11
22270 #, no-wrap
22271 msgid ""
22272 " let g = Guestfs.create () in\n"
22273 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22274 " Guestfs.launch g;\n"
22275 "\n"
22276 msgstr ""
22277
22278 #. type: textblock
22279 #: ../ocaml/examples/guestfs-ocaml.pod:15
22280 msgid "Object-oriented style:"
22281 msgstr ""
22282
22283 #. type: verbatim
22284 #: ../ocaml/examples/guestfs-ocaml.pod:17
22285 #, no-wrap
22286 msgid ""
22287 " let g = new Guestfs.guestfs () in\n"
22288 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22289 " g#launch ();\n"
22290 "\n"
22291 msgstr ""
22292
22293 #. type: verbatim
22294 #: ../ocaml/examples/guestfs-ocaml.pod:21
22295 #, no-wrap
22296 msgid ""
22297 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22298 "or:\n"
22299 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22300 "\n"
22301 msgstr ""
22302
22303 #. type: textblock
22304 #: ../ocaml/examples/guestfs-ocaml.pod:27
22305 msgid ""
22306 "This manual page documents how to call libguestfs from the OCaml programming "
22307 "language.  This page just documents the differences from the C API and gives "
22308 "some examples.  If you are not familiar with using libguestfs, you also need "
22309 "to read L<guestfs(3)>."
22310 msgstr ""
22311
22312 #. type: =head2
22313 #: ../ocaml/examples/guestfs-ocaml.pod:32
22314 msgid "PROGRAMMING STYLES"
22315 msgstr ""
22316
22317 #. type: textblock
22318 #: ../ocaml/examples/guestfs-ocaml.pod:34
22319 msgid ""
22320 "There are two different programming styles supported by the OCaml bindings.  "
22321 "You can use a module style, with each C function mapped to an OCaml function:"
22322 msgstr ""
22323
22324 #. type: verbatim
22325 #: ../ocaml/examples/guestfs-ocaml.pod:38
22326 #, no-wrap
22327 msgid ""
22328 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22329 "\n"
22330 msgstr ""
22331
22332 #. type: textblock
22333 #: ../ocaml/examples/guestfs-ocaml.pod:40
22334 msgid "becomes:"
22335 msgstr ""
22336
22337 #. type: verbatim
22338 #: ../ocaml/examples/guestfs-ocaml.pod:42
22339 #, no-wrap
22340 msgid ""
22341 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22342 "\n"
22343 msgstr ""
22344
22345 #. type: textblock
22346 #: ../ocaml/examples/guestfs-ocaml.pod:44
22347 msgid ""
22348 "Alternately you can use an object-oriented style, calling methods on the "
22349 "class C<Guestfs.guestfs>:"
22350 msgstr ""
22351
22352 #. type: verbatim
22353 #: ../ocaml/examples/guestfs-ocaml.pod:47
22354 #, no-wrap
22355 msgid ""
22356 " method set_verbose : bool -> unit\n"
22357 "\n"
22358 msgstr ""
22359
22360 #. type: textblock
22361 #: ../ocaml/examples/guestfs-ocaml.pod:49
22362 msgid ""
22363 "The object-oriented style is usually briefer, and the minor performance "
22364 "penalty isn't noticable in the general overhead of performing libguestfs "
22365 "functions."
22366 msgstr ""
22367
22368 #. type: textblock
22369 #: ../ocaml/examples/guestfs-ocaml.pod:55
22370 msgid ""
22371 "The handle is closed when it is reaped by the garbage collector.  Because "
22372 "libguestfs handles include a lot of state, it is also possible to close (and "
22373 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22374 "method."
22375 msgstr ""
22376
22377 #. type: textblock
22378 #: ../ocaml/examples/guestfs-ocaml.pod:62
22379 msgid ""
22380 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22381 "exception.  This has a single parameter which is the error message (a "
22382 "string)."
22383 msgstr ""
22384
22385 #. type: textblock
22386 #: ../ocaml/examples/guestfs-ocaml.pod:66
22387 msgid ""
22388 "Calling any function/method on a closed handle raises C<Guestfs."
22389 "Handle_closed>.  The single parameter is the name of the function that you "
22390 "called."
22391 msgstr ""
22392
22393 #. type: textblock
22394 #: ../ocaml/examples/guestfs-ocaml.pod:80
22395 msgid ""
22396 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22397 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22398 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22399 msgstr ""
22400
22401 #. type: textblock
22402 #: ../perl/examples/guestfs-perl.pod:5
22403 msgid "guestfs-perl - How to use libguestfs from Perl"
22404 msgstr ""
22405
22406 #. type: verbatim
22407 #: ../perl/examples/guestfs-perl.pod:9
22408 #, no-wrap
22409 msgid ""
22410 " use Sys::Guestfs;\n"
22411 " \n"
22412 msgstr ""
22413
22414 #. type: verbatim
22415 #: ../perl/examples/guestfs-perl.pod:11
22416 #, no-wrap
22417 msgid ""
22418 " my $h = Sys::Guestfs->new ();\n"
22419 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22420 " $h->launch ();\n"
22421 " $h->mount_options ('', '/dev/sda1', '/');\n"
22422 " $h->touch ('/hello');\n"
22423 " $h->sync ();\n"
22424 "\n"
22425 msgstr ""
22426
22427 #. type: textblock
22428 #: ../perl/examples/guestfs-perl.pod:20
22429 msgid ""
22430 "This manual page documents how to call libguestfs from the Perl programming "
22431 "language.  This page just documents the differences from the C API and gives "
22432 "some examples.  If you are not familiar with using libguestfs, you also need "
22433 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22434 msgstr ""
22435
22436 #. type: =head2
22437 #: ../perl/examples/guestfs-perl.pod:26
22438 msgid "ERRORS"
22439 msgstr ""
22440
22441 #. type: textblock
22442 #: ../perl/examples/guestfs-perl.pod:28
22443 msgid ""
22444 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22445 ">)."
22446 msgstr ""
22447
22448 #. type: textblock
22449 #: ../perl/examples/guestfs-perl.pod:41
22450 msgid ""
22451 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22452 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22453 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22454 msgstr ""
22455
22456 #. type: textblock
22457 #: ../python/examples/guestfs-python.pod:5
22458 msgid "guestfs-python - How to use libguestfs from Python"
22459 msgstr ""
22460
22461 #. type: verbatim
22462 #: ../python/examples/guestfs-python.pod:9
22463 #, no-wrap
22464 msgid ""
22465 " import guestfs\n"
22466 " g = guestfs.GuestFS ()\n"
22467 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22468 " g.launch\n"
22469 "\n"
22470 msgstr ""
22471
22472 #. type: textblock
22473 #: ../python/examples/guestfs-python.pod:16
22474 msgid ""
22475 "This manual page documents how to call libguestfs from the Python "
22476 "programming language.  This page just documents the differences from the C "
22477 "API and gives some examples.  If you are not familiar with using libguestfs, "
22478 "you also need to read L<guestfs(3)>."
22479 msgstr ""
22480
22481 #. type: textblock
22482 #: ../python/examples/guestfs-python.pod:23
22483 msgid ""
22484 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22485 "single string argument which is the error message."
22486 msgstr ""
22487
22488 #. type: =head2
22489 #: ../python/examples/guestfs-python.pod:26
22490 msgid "MORE DOCUMENTATION"
22491 msgstr ""
22492
22493 #. type: textblock
22494 #: ../python/examples/guestfs-python.pod:28
22495 msgid "Type:"
22496 msgstr ""
22497
22498 #. type: verbatim
22499 #: ../python/examples/guestfs-python.pod:30
22500 #, no-wrap
22501 msgid ""
22502 " $ python\n"
22503 " >>> import guestfs\n"
22504 " >>> help (guestfs)\n"
22505 "\n"
22506 msgstr ""
22507
22508 #. type: textblock
22509 #: ../python/examples/guestfs-python.pod:44
22510 msgid ""
22511 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22512 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22513 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22514 msgstr ""
22515
22516 #. type: textblock
22517 #: ../rescue/virt-rescue.pod:5
22518 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22519 msgstr ""
22520
22521 #. type: verbatim
22522 #: ../rescue/virt-rescue.pod:9
22523 #, no-wrap
22524 msgid ""
22525 " virt-rescue [--options] -d domname\n"
22526 "\n"
22527 msgstr ""
22528
22529 #. type: verbatim
22530 #: ../rescue/virt-rescue.pod:11
22531 #, no-wrap
22532 msgid ""
22533 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22534 "\n"
22535 msgstr ""
22536
22537 #. type: verbatim
22538 #: ../rescue/virt-rescue.pod:15
22539 #, no-wrap
22540 msgid ""
22541 " virt-rescue [--options] domname\n"
22542 "\n"
22543 msgstr ""
22544
22545 #. type: verbatim
22546 #: ../rescue/virt-rescue.pod:17
22547 #, no-wrap
22548 msgid ""
22549 " virt-rescue [--options] disk.img [disk.img ...]\n"
22550 "\n"
22551 msgstr ""
22552
22553 #. type: textblock
22554 #: ../rescue/virt-rescue.pod:21
22555 msgid ""
22556 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22557 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22558 "you from doing this, but doesn't catch all cases."
22559 msgstr ""
22560
22561 #. type: textblock
22562 #: ../rescue/virt-rescue.pod:25
22563 msgid ""
22564 "However if you use the I<--ro> (read only) option, then you can attach a "
22565 "shell to a live virtual machine.  The results might be strange or "
22566 "inconsistent at times but you won't get disk corruption."
22567 msgstr ""
22568
22569 #. type: textblock
22570 #: ../rescue/virt-rescue.pod:31
22571 msgid ""
22572 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22573 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22574 "recovery tools which you can use to examine or rescue a virtual machine or "
22575 "disk image."
22576 msgstr ""
22577
22578 #. type: textblock
22579 #: ../rescue/virt-rescue.pod:36
22580 msgid ""
22581 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22582 "on disk image(s):"
22583 msgstr ""
22584
22585 #. type: verbatim
22586 #: ../rescue/virt-rescue.pod:39
22587 #, no-wrap
22588 msgid ""
22589 " virt-rescue -d GuestName\n"
22590 "\n"
22591 msgstr ""
22592
22593 #. type: verbatim
22594 #: ../rescue/virt-rescue.pod:41
22595 #, no-wrap
22596 msgid ""
22597 " virt-rescue --ro -a /path/to/disk.img\n"
22598 "\n"
22599 msgstr ""
22600
22601 #. type: verbatim
22602 #: ../rescue/virt-rescue.pod:43
22603 #, no-wrap
22604 msgid ""
22605 " virt-rescue -a /dev/sdc\n"
22606 "\n"
22607 msgstr ""
22608
22609 #. type: textblock
22610 #: ../rescue/virt-rescue.pod:45
22611 msgid "For live VMs you I<must> use the --ro option."
22612 msgstr ""
22613
22614 #. type: textblock
22615 #: ../rescue/virt-rescue.pod:47
22616 msgid ""
22617 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22618 "in an interactive bash shell where you can use many ordinary Linux "
22619 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22620 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22621 "is an empty directory called C</sysroot> where you can mount filesystems."
22622 msgstr ""
22623
22624 #. type: textblock
22625 #: ../rescue/virt-rescue.pod:54
22626 msgid ""
22627 "In the example below, we list logical volumes, then choose one to mount "
22628 "under C</sysroot>:"
22629 msgstr ""
22630
22631 #. type: verbatim
22632 #: ../rescue/virt-rescue.pod:57
22633 #, no-wrap
22634 msgid ""
22635 " ><rescue> lvs\n"
22636 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22637 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22638 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22639 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22640 " ><rescue> ls /sysroot\n"
22641 "\n"
22642 msgstr ""
22643
22644 #. type: textblock
22645 #: ../rescue/virt-rescue.pod:64
22646 msgid ""
22647 "If you don't know what filesystems are available on the virtual machine then "
22648 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22649 msgstr ""
22650
22651 #. type: textblock
22652 #: ../rescue/virt-rescue.pod:70
22653 msgid ""
22654 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22655 "virtual machine.  For example you can use it on a blank file if you want to "
22656 "partition that file (although we would recommend using L<guestfish(1)> "
22657 "instead as it is more suitable for this purpose).  You can even use virt-"
22658 "rescue on things like SD cards."
22659 msgstr ""
22660
22661 #. type: textblock
22662 #: ../rescue/virt-rescue.pod:76
22663 msgid ""
22664 "Virt-rescue does not require root.  You only need to run it as root if you "
22665 "need root to open the disk image."
22666 msgstr ""
22667
22668 #. type: textblock
22669 #: ../rescue/virt-rescue.pod:79
22670 msgid ""
22671 "This tool is just designed for quick interactive hacking on a virtual "
22672 "machine.  For more structured access to a virtual machine disk image, you "
22673 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22674 "make scripted changes to guests, use L<guestfish(1)>."
22675 msgstr ""
22676
22677 #. type: =item
22678 #: ../rescue/virt-rescue.pod:103
22679 msgid "B<--append kernelopts>"
22680 msgstr ""
22681
22682 #. type: textblock
22683 #: ../rescue/virt-rescue.pod:105
22684 msgid "Pass additional options to the rescue kernel."
22685 msgstr ""
22686
22687 #. type: verbatim
22688 #: ../rescue/virt-rescue.pod:135
22689 #, no-wrap
22690 msgid ""
22691 " virt-rescue --format=raw -a disk.img\n"
22692 "\n"
22693 msgstr ""
22694
22695 #. type: verbatim
22696 #: ../rescue/virt-rescue.pod:139
22697 #, no-wrap
22698 msgid ""
22699 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22700 "\n"
22701 msgstr ""
22702
22703 #. type: =item
22704 #: ../rescue/virt-rescue.pod:148
22705 msgid "B<-m MB>"
22706 msgstr ""
22707
22708 #. type: =item
22709 #: ../rescue/virt-rescue.pod:150
22710 msgid "B<--memsize MB>"
22711 msgstr ""
22712
22713 #. type: textblock
22714 #: ../rescue/virt-rescue.pod:152
22715 msgid ""
22716 "Change the amount of memory allocated to the rescue system.  The default is "
22717 "set by libguestfs and is small but adequate for running system tools.  The "
22718 "occasional program might need more memory.  The parameter is specified in "
22719 "megabytes."
22720 msgstr ""
22721
22722 #. type: =item
22723 #: ../rescue/virt-rescue.pod:157
22724 msgid "B<--network>"
22725 msgstr ""
22726
22727 #. type: textblock
22728 #: ../rescue/virt-rescue.pod:159
22729 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22730 msgstr ""
22731
22732 #. type: textblock
22733 #: ../rescue/virt-rescue.pod:165
22734 msgid "Open the image read-only."
22735 msgstr ""
22736
22737 #. type: textblock
22738 #: ../rescue/virt-rescue.pod:175
22739 msgid ""
22740 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
22741 "SELINUX> before using this option."
22742 msgstr ""
22743
22744 #. type: =item
22745 #: ../rescue/virt-rescue.pod:178
22746 msgid "B<--smp> N"
22747 msgstr ""
22748
22749 #. type: textblock
22750 #: ../rescue/virt-rescue.pod:180
22751 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22752 msgstr ""
22753
22754 #. type: textblock
22755 #: ../rescue/virt-rescue.pod:198
22756 msgid ""
22757 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22758 "are done read-write."
22759 msgstr ""
22760
22761 #. type: textblock
22762 #: ../rescue/virt-rescue.pod:211
22763 msgid "Previous versions of virt-rescue allowed you to write either:"
22764 msgstr ""
22765
22766 #. type: verbatim
22767 #: ../rescue/virt-rescue.pod:213
22768 #, no-wrap
22769 msgid ""
22770 " virt-rescue disk.img [disk.img ...]\n"
22771 "\n"
22772 msgstr ""
22773
22774 #. type: verbatim
22775 #: ../rescue/virt-rescue.pod:217
22776 #, no-wrap
22777 msgid ""
22778 " virt-rescue guestname\n"
22779 "\n"
22780 msgstr ""
22781
22782 #. type: =head1
22783 #: ../rescue/virt-rescue.pod:225
22784 msgid "NETWORK"
22785 msgstr ""
22786
22787 #. type: textblock
22788 #: ../rescue/virt-rescue.pod:227
22789 msgid ""
22790 "Adding the I<--network> option enables QEMU user networking in the rescue "
22791 "appliance.  There are some differences between user networking and ordinary "
22792 "networking:"
22793 msgstr ""
22794
22795 #. type: =item
22796 #: ../rescue/virt-rescue.pod:233
22797 msgid "ping does not work"
22798 msgstr ""
22799
22800 #. type: textblock
22801 #: ../rescue/virt-rescue.pod:235
22802 msgid ""
22803 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22804 "send the ping packets, and because virt-rescue must be able to run as non-"
22805 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22806 "The ping command will appear to resolve addresses but will not be able to "
22807 "send or receive any packets.  This does not mean that the network is not "
22808 "working."
22809 msgstr ""
22810
22811 #. type: =item
22812 #: ../rescue/virt-rescue.pod:242
22813 msgid "cannot receive connections"
22814 msgstr ""
22815
22816 #. type: textblock
22817 #: ../rescue/virt-rescue.pod:244
22818 msgid "QEMU user networking cannot receive incoming connections."
22819 msgstr ""
22820
22821 #. type: =item
22822 #: ../rescue/virt-rescue.pod:246
22823 msgid "making TCP connections"
22824 msgstr ""
22825
22826 #. type: textblock
22827 #: ../rescue/virt-rescue.pod:248
22828 msgid ""
22829 "The virt-rescue appliance needs to be small and so does not include many "
22830 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22831 "make TCP connections from the shell using the magical C</dev/tcp/"
22832 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22833 msgstr ""
22834
22835 #. type: verbatim
22836 #: ../rescue/virt-rescue.pod:253
22837 #, no-wrap
22838 msgid ""
22839 " exec 3<>/dev/tcp/redhat.com/80\n"
22840 " echo \"GET /\" >&3\n"
22841 " cat <&3\n"
22842 "\n"
22843 msgstr ""
22844
22845 #. type: textblock
22846 #: ../rescue/virt-rescue.pod:257
22847 msgid "See L<bash(1)> for more details."
22848 msgstr ""
22849
22850 #. type: textblock
22851 #: ../rescue/virt-rescue.pod:263
22852 msgid ""
22853 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22854 "ENVIRONMENT VARIABLES> for the complete list."
22855 msgstr ""
22856
22857 #. type: textblock
22858 #: ../rescue/virt-rescue.pod:290
22859 msgid ""
22860 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22861 "libguestfs.org/>."
22862 msgstr ""
22863
22864 #. type: textblock
22865 #: ../resize/virt-resize.pod:5
22866 msgid "virt-resize - Resize a virtual machine disk"
22867 msgstr ""
22868
22869 #. type: verbatim
22870 #: ../resize/virt-resize.pod:9
22871 #, no-wrap
22872 msgid ""
22873 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22874 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22875 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22876 "\n"
22877 msgstr ""
22878
22879 #. type: textblock
22880 #: ../resize/virt-resize.pod:15
22881 msgid ""
22882 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22883 "larger or smaller overall, and resizing or deleting any partitions contained "
22884 "within."
22885 msgstr ""
22886
22887 #. type: textblock
22888 #: ../resize/virt-resize.pod:19
22889 msgid ""
22890 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22891 "not> be used on live virtual machines - for consistent results, shut the "
22892 "virtual machine down before resizing it."
22893 msgstr ""
22894
22895 #. type: textblock
22896 #: ../resize/virt-resize.pod:23
22897 msgid ""
22898 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22899 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22900 msgstr ""
22901
22902 #. type: =item
22903 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
22904 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
22905 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
22906 msgid "1."
22907 msgstr ""
22908
22909 #. type: textblock
22910 #: ../resize/virt-resize.pod:33
22911 msgid ""
22912 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22913 "fill the extra 5GB of space."
22914 msgstr ""
22915
22916 #. type: verbatim
22917 #: ../resize/virt-resize.pod:36
22918 #, no-wrap
22919 msgid ""
22920 " virt-filesystems --long -h --all -a olddisk\n"
22921 " \n"
22922 msgstr ""
22923
22924 #. type: verbatim
22925 #: ../resize/virt-resize.pod:38
22926 #, no-wrap
22927 msgid ""
22928 " truncate -r olddisk newdisk\n"
22929 " truncate -s +5G newdisk\n"
22930 " \n"
22931 msgstr ""
22932
22933 #. type: verbatim
22934 #: ../resize/virt-resize.pod:41
22935 #, no-wrap
22936 msgid ""
22937 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22938 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22939 "\n"
22940 msgstr ""
22941
22942 #. type: =item
22943 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
22944 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
22945 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
22946 msgid "2."
22947 msgstr ""
22948
22949 #. type: textblock
22950 #: ../resize/virt-resize.pod:46
22951 msgid ""
22952 "As above, but make the /boot partition 200MB bigger, while giving the "
22953 "remaining space to /dev/sda2:"
22954 msgstr ""
22955
22956 #. type: verbatim
22957 #: ../resize/virt-resize.pod:49
22958 #, no-wrap
22959 msgid ""
22960 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22961 "   olddisk newdisk\n"
22962 "\n"
22963 msgstr ""
22964
22965 #. type: =item
22966 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
22967 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
22968 #: ../src/guestfs.pod:1451
22969 msgid "3."
22970 msgstr ""
22971
22972 #. type: textblock
22973 #: ../resize/virt-resize.pod:54
22974 msgid ""
22975 "As in the first example, but expand a logical volume as the final step.  "
22976 "This is what you would typically use for Linux guests that use LVM:"
22977 msgstr ""
22978
22979 #. type: verbatim
22980 #: ../resize/virt-resize.pod:58
22981 #, no-wrap
22982 msgid ""
22983 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22984 "   olddisk newdisk\n"
22985 "\n"
22986 msgstr ""
22987
22988 #. type: =item
22989 #: ../resize/virt-resize.pod:61
22990 msgid "4."
22991 msgstr ""
22992
22993 #. type: textblock
22994 #: ../resize/virt-resize.pod:63
22995 msgid ""
22996 "As in the first example, but the output format will be qcow2 instead of a "
22997 "raw disk:"
22998 msgstr ""
22999
23000 #. type: verbatim
23001 #: ../resize/virt-resize.pod:66
23002 #, no-wrap
23003 msgid ""
23004 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23005 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23006 "\n"
23007 msgstr ""
23008
23009 #. type: =head1
23010 #: ../resize/virt-resize.pod:71
23011 msgid "DETAILED USAGE"
23012 msgstr ""
23013
23014 #. type: =head2
23015 #: ../resize/virt-resize.pod:73
23016 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23017 msgstr ""
23018
23019 #. type: =item
23020 #: ../resize/virt-resize.pod:77
23021 msgid "1. Shut down the virtual machine"
23022 msgstr ""
23023
23024 #. type: =item
23025 #: ../resize/virt-resize.pod:79
23026 msgid "2. Locate input disk image"
23027 msgstr ""
23028
23029 #. type: textblock
23030 #: ../resize/virt-resize.pod:81
23031 msgid ""
23032 "Locate the input disk image (ie. the file or device on the host containing "
23033 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23034 "dumpxml> like this to find the disk image name:"
23035 msgstr ""
23036
23037 #. type: verbatim
23038 #: ../resize/virt-resize.pod:85
23039 #, no-wrap
23040 msgid ""
23041 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23042 " Found 1 nodes:\n"
23043 " -- NODE --\n"
23044 " <source dev=\"/dev/vg/lv_guest\" />\n"
23045 "\n"
23046 msgstr ""
23047
23048 #. type: =item
23049 #: ../resize/virt-resize.pod:90
23050 msgid "3. Look at current sizing"
23051 msgstr ""
23052
23053 #. type: textblock
23054 #: ../resize/virt-resize.pod:92
23055 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23056 msgstr ""
23057
23058 #. type: verbatim
23059 #: ../resize/virt-resize.pod:95
23060 #, no-wrap
23061 msgid ""
23062 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23063 " Name       Type       Size  Parent\n"
23064 " /dev/sda1  partition  101M  /dev/sda\n"
23065 " /dev/sda2  partition  7.9G  /dev/sda\n"
23066 " /dev/sda   device     8.0G  -\n"
23067 "\n"
23068 msgstr ""
23069
23070 #. type: textblock
23071 #: ../resize/virt-resize.pod:101
23072 msgid ""
23073 "(This example is a virtual machine with an 8 GB disk which we would like to "
23074 "expand up to 10 GB)."
23075 msgstr ""
23076
23077 #. type: =item
23078 #: ../resize/virt-resize.pod:104
23079 msgid "4. Create output disk"
23080 msgstr ""
23081
23082 #. type: textblock
23083 #: ../resize/virt-resize.pod:106
23084 msgid ""
23085 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23086 "to store the resized output disk."
23087 msgstr ""
23088
23089 #. type: textblock
23090 #: ../resize/virt-resize.pod:109
23091 msgid ""
23092 "To store the resized disk image in a file, create a file of a suitable size:"
23093 msgstr ""
23094
23095 #. type: verbatim
23096 #: ../resize/virt-resize.pod:112
23097 #, no-wrap
23098 msgid ""
23099 " # rm -f outdisk\n"
23100 " # truncate -s 10G outdisk\n"
23101 "\n"
23102 msgstr ""
23103
23104 #. type: textblock
23105 #: ../resize/virt-resize.pod:115
23106 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23107 msgstr ""
23108
23109 #. type: verbatim
23110 #: ../resize/virt-resize.pod:117
23111 #, no-wrap
23112 msgid ""
23113 " # lvcreate -L 10G -n lv_name vg_name\n"
23114 "\n"
23115 msgstr ""
23116
23117 #. type: textblock
23118 #: ../resize/virt-resize.pod:119
23119 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23120 msgstr ""
23121
23122 #. type: verbatim
23123 #: ../resize/virt-resize.pod:121
23124 #, no-wrap
23125 msgid ""
23126 " # virsh pool-list\n"
23127 " # virsh vol-create-as poolname newvol 10G\n"
23128 "\n"
23129 msgstr ""
23130
23131 #. type: =item
23132 #: ../resize/virt-resize.pod:124
23133 msgid "5. Resize"
23134 msgstr ""
23135
23136 #. type: textblock
23137 #: ../resize/virt-resize.pod:126
23138 msgid ""
23139 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23140 "file) and the output disk.  The output disk is the one created in the "
23141 "previous step."
23142 msgstr ""
23143
23144 #. type: verbatim
23145 #: ../resize/virt-resize.pod:130
23146 #, no-wrap
23147 msgid ""
23148 " # virt-resize indisk outdisk\n"
23149 "\n"
23150 msgstr ""
23151
23152 #. type: textblock
23153 #: ../resize/virt-resize.pod:132
23154 msgid ""
23155 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23156 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23157 "larger, then an extra, empty partition is created at the end of the disk "
23158 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23159 "error."
23160 msgstr ""
23161
23162 #. type: textblock
23163 #: ../resize/virt-resize.pod:138
23164 msgid ""
23165 "More realistically you'd want to expand existing partitions in the disk "
23166 "image by passing extra options (for the full list see the L</OPTIONS> "
23167 "section below)."
23168 msgstr ""
23169
23170 #. type: textblock
23171 #: ../resize/virt-resize.pod:142
23172 msgid ""
23173 "L</--expand> is the most useful option.  It expands the named partition "
23174 "within the disk to fill any extra space:"
23175 msgstr ""
23176
23177 #. type: verbatim
23178 #: ../resize/virt-resize.pod:145
23179 #, no-wrap
23180 msgid ""
23181 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23182 "\n"
23183 msgstr ""
23184
23185 #. type: textblock
23186 #: ../resize/virt-resize.pod:147
23187 msgid ""
23188 "(In this case, an extra partition is I<not> created at the end of the disk, "
23189 "because there will be no unused space)."
23190 msgstr ""
23191
23192 #. type: textblock
23193 #: ../resize/virt-resize.pod:150
23194 msgid ""
23195 "L</--resize> is the other commonly used option.  The following would "
23196 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23197 "rest of the available space:"
23198 msgstr ""
23199
23200 #. type: verbatim
23201 #: ../resize/virt-resize.pod:154
23202 #, no-wrap
23203 msgid ""
23204 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23205 "     indisk outdisk\n"
23206 "\n"
23207 msgstr ""
23208
23209 #. type: textblock
23210 #: ../resize/virt-resize.pod:157
23211 msgid ""
23212 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23213 "if virt-resize knows how, it will resize the contents, the equivalent of "
23214 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23215 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23216 "filesystems, so you would have to online resize them after booting the guest."
23217 msgstr ""
23218
23219 #. type: textblock
23220 #: ../resize/virt-resize.pod:164
23221 msgid "Other options are covered below."
23222 msgstr ""
23223
23224 #. type: =item
23225 #: ../resize/virt-resize.pod:166
23226 msgid "6. Test"
23227 msgstr ""
23228
23229 #. type: textblock
23230 #: ../resize/virt-resize.pod:168
23231 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23232 msgstr ""
23233
23234 #. type: textblock
23235 #: ../resize/virt-resize.pod:170
23236 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23237 msgstr ""
23238
23239 #. type: verbatim
23240 #: ../resize/virt-resize.pod:172
23241 #, no-wrap
23242 msgid ""
23243 " # virsh edit guestname\n"
23244 "\n"
23245 msgstr ""
23246
23247 #. type: textblock
23248 #: ../resize/virt-resize.pod:174
23249 msgid ""
23250 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23251 "html#elementsDisks>"
23252 msgstr ""
23253
23254 #. type: textblock
23255 #: ../resize/virt-resize.pod:177
23256 msgid "Then start up the domain with the new, resized disk:"
23257 msgstr ""
23258
23259 #. type: verbatim
23260 #: ../resize/virt-resize.pod:179
23261 #, no-wrap
23262 msgid ""
23263 " # virsh start guestname\n"
23264 "\n"
23265 msgstr ""
23266
23267 #. type: textblock
23268 #: ../resize/virt-resize.pod:181
23269 msgid ""
23270 "and check that it still works.  See also the L</NOTES> section below for "
23271 "additional information."
23272 msgstr ""
23273
23274 #. type: =item
23275 #: ../resize/virt-resize.pod:184
23276 msgid "7. Resize LVs etc inside the guest"
23277 msgstr ""
23278
23279 #. type: textblock
23280 #: ../resize/virt-resize.pod:186
23281 msgid "(This can also be done offline using L<guestfish(1)>)"
23282 msgstr ""
23283
23284 #. type: textblock
23285 #: ../resize/virt-resize.pod:188
23286 msgid ""
23287 "Once the guest has booted you should see the new space available, at least "
23288 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23289 "may need to resize LVs inside PVs, and also resize filesystem types that "
23290 "virt-resize does not know how to expand."
23291 msgstr ""
23292
23293 #. type: =head2
23294 #: ../resize/virt-resize.pod:195
23295 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23296 msgstr ""
23297
23298 #. type: textblock
23299 #: ../resize/virt-resize.pod:197
23300 msgid ""
23301 "Shrinking is somewhat more complex than expanding, and only an overview is "
23302 "given here."
23303 msgstr ""
23304
23305 #. type: textblock
23306 #: ../resize/virt-resize.pod:200
23307 msgid ""
23308 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23309 "filesystems).  The user has to shrink content before passing the disk image "
23310 "to virt-resize, and virt-resize will check that the content has been shrunk "
23311 "properly."
23312 msgstr ""
23313
23314 #. type: textblock
23315 #: ../resize/virt-resize.pod:205
23316 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23317 msgstr ""
23318
23319 #. type: textblock
23320 #: ../resize/virt-resize.pod:207
23321 msgid ""
23322 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23323 "steps 3 and 4 above to allocate a new disk image."
23324 msgstr ""
23325
23326 #. type: textblock
23327 #: ../resize/virt-resize.pod:210
23328 msgid ""
23329 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23330 msgstr ""
23331
23332 #. type: =head2
23333 #: ../resize/virt-resize.pod:213
23334 msgid "IGNORING OR DELETING PARTITIONS"
23335 msgstr ""
23336
23337 #. type: textblock
23338 #: ../resize/virt-resize.pod:215
23339 msgid ""
23340 "virt-resize also gives a convenient way to ignore or delete partitions when "
23341 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23342 "up the copy where you don't care about the existing contents of a "
23343 "partition.  Deleting a partition removes it completely, but note that it "
23344 "also renumbers any partitions after the one which is deleted, which can "
23345 "leave some guests unbootable."
23346 msgstr ""
23347
23348 #. type: =head2
23349 #: ../resize/virt-resize.pod:222
23350 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23351 msgstr ""
23352
23353 #. type: textblock
23354 #: ../resize/virt-resize.pod:224
23355 msgid ""
23356 "If the input disk is in qcow2 format, then you may prefer that the output is "
23357 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23358 "the fly.  The output format is simply determined by the format of the empty "
23359 "output container that you provide.  Thus to create qcow2 output, use:"
23360 msgstr ""
23361
23362 #. type: verbatim
23363 #: ../resize/virt-resize.pod:230
23364 #, no-wrap
23365 msgid ""
23366 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23367 "\n"
23368 msgstr ""
23369
23370 #. type: textblock
23371 #: ../resize/virt-resize.pod:232
23372 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23373 msgstr ""
23374
23375 #. type: textblock
23376 #: ../resize/virt-resize.pod:234
23377 msgid "Similarly, to get non-sparse raw output use:"
23378 msgstr ""
23379
23380 #. type: verbatim
23381 #: ../resize/virt-resize.pod:236
23382 #, no-wrap
23383 msgid ""
23384 " fallocate -l size outdisk\n"
23385 "\n"
23386 msgstr ""
23387
23388 #. type: textblock
23389 #: ../resize/virt-resize.pod:238
23390 msgid ""
23391 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23392 "dev/zero of=outdisk bs=1M count=..>)"
23393 msgstr ""
23394
23395 #. type: =head2
23396 #: ../resize/virt-resize.pod:241
23397 msgid "LOGICAL PARTITIONS"
23398 msgstr ""
23399
23400 #. type: textblock
23401 #: ../resize/virt-resize.pod:243
23402 msgid ""
23403 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23404 "tables) cannot be resized."
23405 msgstr ""
23406
23407 #. type: textblock
23408 #: ../resize/virt-resize.pod:246
23409 msgid ""
23410 "To understand what is going on, firstly one of the four partitions C</dev/"
23411 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
23412 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
23413 "type."
23414 msgstr ""
23415
23416 #. type: textblock
23417 #: ../resize/virt-resize.pod:251
23418 msgid "Logical partitions live inside the extended partition."
23419 msgstr ""
23420
23421 #. type: textblock
23422 #: ../resize/virt-resize.pod:253
23423 msgid ""
23424 "The extended partition can be expanded, but not shrunk (unless you force it, "
23425 "which is not advisable).  When the extended partition is copied across, all "
23426 "the logical partitions contained inside are copied over implicitly.  Virt-"
23427 "resize does not look inside the extended partition, so it copies the logical "
23428 "partitions blindly."
23429 msgstr ""
23430
23431 #. type: textblock
23432 #: ../resize/virt-resize.pod:259
23433 msgid ""
23434 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23435 "line.  Doing so will give an error."
23436 msgstr ""
23437
23438 #. type: textblock
23439 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23440 msgid "Display help."
23441 msgstr ""
23442
23443 #. type: =item
23444 #: ../resize/virt-resize.pod:270
23445 msgid "B<--align-first auto>"
23446 msgstr ""
23447
23448 #. type: =item
23449 #: ../resize/virt-resize.pod:272
23450 msgid "B<--align-first never>"
23451 msgstr ""
23452
23453 #. type: =item
23454 #: ../resize/virt-resize.pod:274
23455 msgid "B<--align-first always>"
23456 msgstr ""
23457
23458 #. type: textblock
23459 #: ../resize/virt-resize.pod:276
23460 msgid ""
23461 "Align the first partition for improved performance (see also the I<--"
23462 "alignment> option)."
23463 msgstr ""
23464
23465 #. type: textblock
23466 #: ../resize/virt-resize.pod:279
23467 msgid ""
23468 "The default is I<--align-first auto> which only aligns the first partition "
23469 "if it is safe to do so.  That is, only when we know how to fix the "
23470 "bootloader automatically, and at the moment that can only be done for "
23471 "Windows guests."
23472 msgstr ""
23473
23474 #. type: textblock
23475 #: ../resize/virt-resize.pod:284
23476 msgid ""
23477 "I<--align-first never> means we never move the first partition.  This is the "
23478 "safest option.  Try this if the guest does not boot after resizing."
23479 msgstr ""
23480
23481 #. type: textblock
23482 #: ../resize/virt-resize.pod:288
23483 msgid ""
23484 "I<--align-first always> means we always align the first partition (if it "
23485 "needs to be aligned).  For some guests this will break the bootloader, "
23486 "making the guest unbootable."
23487 msgstr ""
23488
23489 #. type: =item
23490 #: ../resize/virt-resize.pod:292
23491 msgid "B<--alignment N>"
23492 msgstr ""
23493
23494 #. type: textblock
23495 #: ../resize/virt-resize.pod:294
23496 msgid ""
23497 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23498 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23499 msgstr ""
23500
23501 #. type: textblock
23502 #: ../resize/virt-resize.pod:298
23503 msgid ""
23504 "Assuming 512 byte sector size inside the guest, here are some suitable "
23505 "values for this:"
23506 msgstr ""
23507
23508 #. type: =item
23509 #: ../resize/virt-resize.pod:303
23510 msgid "I<--alignment 1> (512 bytes)"
23511 msgstr ""
23512
23513 #. type: textblock
23514 #: ../resize/virt-resize.pod:305
23515 msgid ""
23516 "The partitions would be packed together as closely as possible, but would be "
23517 "completely unaligned.  In some cases this can cause very poor performance.  "
23518 "See L<virt-alignment-scan(1)> for further details."
23519 msgstr ""
23520
23521 #. type: =item
23522 #: ../resize/virt-resize.pod:309
23523 msgid "I<--alignment 8> (4K)"
23524 msgstr ""
23525
23526 #. type: textblock
23527 #: ../resize/virt-resize.pod:311
23528 msgid ""
23529 "This would be the minimum acceptable alignment for reasonable performance on "
23530 "modern hosts."
23531 msgstr ""
23532
23533 #. type: =item
23534 #: ../resize/virt-resize.pod:314
23535 msgid "I<--alignment 128> (64K)"
23536 msgstr ""
23537
23538 #. type: textblock
23539 #: ../resize/virt-resize.pod:316
23540 msgid ""
23541 "This alignment provides good performance when the host is using high end "
23542 "network storage."
23543 msgstr ""
23544
23545 #. type: =item
23546 #: ../resize/virt-resize.pod:319
23547 msgid "I<--alignment 2048> (1M)"
23548 msgstr ""
23549
23550 #. type: textblock
23551 #: ../resize/virt-resize.pod:321
23552 msgid ""
23553 "This is the standard alignment used by all newly installed guests since "
23554 "around 2008."
23555 msgstr ""
23556
23557 #. type: =item
23558 #: ../resize/virt-resize.pod:326
23559 msgid "B<-d>"
23560 msgstr ""
23561
23562 #. type: =item
23563 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
23564 #: ../tools/virt-win-reg.pl:120
23565 msgid "B<--debug>"
23566 msgstr ""
23567
23568 #. type: textblock
23569 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
23570 msgid "Enable debugging messages."
23571 msgstr ""
23572
23573 #. type: =item
23574 #: ../resize/virt-resize.pod:332
23575 msgid "B<--delete part>"
23576 msgstr ""
23577
23578 #. type: textblock
23579 #: ../resize/virt-resize.pod:334
23580 msgid ""
23581 "Delete the named partition.  It would be more accurate to describe this as "
23582 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23583 "the original disk image is left intact."
23584 msgstr ""
23585
23586 #. type: textblock
23587 #: ../resize/virt-resize.pod:338
23588 msgid ""
23589 "Note that when you delete a partition, then anything contained in the "
23590 "partition is also deleted.  Furthermore, this causes any partitions that "
23591 "come after to be I<renumbered>, which can easily make your guest unbootable."
23592 msgstr ""
23593
23594 #. type: textblock
23595 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
23596 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
23597 msgid "You can give this option multiple times."
23598 msgstr ""
23599
23600 #. type: =item
23601 #: ../resize/virt-resize.pod:345
23602 msgid "B<--expand part>"
23603 msgstr ""
23604
23605 #. type: textblock
23606 #: ../resize/virt-resize.pod:347
23607 msgid ""
23608 "Expand the named partition so it uses up all extra space (space left over "
23609 "after any other resize changes that you request have been done)."
23610 msgstr ""
23611
23612 #. type: textblock
23613 #: ../resize/virt-resize.pod:350
23614 msgid ""
23615 "If virt-resize knows how, it will expand the direct content of the "
23616 "partition.  For example, if the partition is an LVM PV, it will expand the "
23617 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23618 "content it doesn't know about alone."
23619 msgstr ""
23620
23621 #. type: textblock
23622 #: ../resize/virt-resize.pod:355
23623 msgid "Currently virt-resize can resize:"
23624 msgstr ""
23625
23626 #. type: textblock
23627 #: ../resize/virt-resize.pod:361
23628 msgid "ext2, ext3 and ext4 filesystems."
23629 msgstr ""
23630
23631 #. type: textblock
23632 #: ../resize/virt-resize.pod:365
23633 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23634 msgstr ""
23635
23636 #. type: textblock
23637 #: ../resize/virt-resize.pod:367
23638 msgid ""
23639 "The filesystem must have been shut down consistently last time it was used.  "
23640 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23641 "consistency check, so at the first boot after resizing Windows will check "
23642 "the disk."
23643 msgstr ""
23644
23645 #. type: textblock
23646 #: ../resize/virt-resize.pod:374
23647 msgid ""
23648 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23649 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23650 "resize LVs as desired after boot."
23651 msgstr ""
23652
23653 #. type: textblock
23654 #: ../resize/virt-resize.pod:380
23655 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23656 msgstr ""
23657
23658 #. type: textblock
23659 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
23660 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23661 msgstr ""
23662
23663 #. type: =item
23664 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
23665 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23666 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23667 msgid "B<--format> raw"
23668 msgstr ""
23669
23670 #. type: textblock
23671 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
23672 msgid ""
23673 "Specify the format of the input disk image.  If this flag is not given then "
23674 "it is auto-detected from the image itself."
23675 msgstr ""
23676
23677 #. type: textblock
23678 #: ../resize/virt-resize.pod:394
23679 msgid ""
23680 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23681 "AND NON-SPARSE RAW FORMATS>."
23682 msgstr ""
23683
23684 #. type: =item
23685 #: ../resize/virt-resize.pod:397
23686 msgid "B<--ignore part>"
23687 msgstr ""
23688
23689 #. type: textblock
23690 #: ../resize/virt-resize.pod:399
23691 msgid ""
23692 "Ignore the named partition.  Effectively this means the partition is "
23693 "allocated on the destination disk, but the content is not copied across from "
23694 "the source disk.  The content of the partition will be blank (all zero "
23695 "bytes)."
23696 msgstr ""
23697
23698 #. type: =item
23699 #: ../resize/virt-resize.pod:406
23700 msgid "B<--LV-expand logvol>"
23701 msgstr ""
23702
23703 #. type: textblock
23704 #: ../resize/virt-resize.pod:408
23705 msgid ""
23706 "This takes the logical volume and, as a final step, expands it to fill all "
23707 "the space available in its volume group.  A typical usage, assuming a Linux "
23708 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
23709 "lv_root> would be:"
23710 msgstr ""
23711
23712 #. type: verbatim
23713 #: ../resize/virt-resize.pod:413
23714 #, no-wrap
23715 msgid ""
23716 " virt-resize indisk outdisk \\\n"
23717 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23718 "\n"
23719 msgstr ""
23720
23721 #. type: textblock
23722 #: ../resize/virt-resize.pod:416
23723 msgid ""
23724 "This would first expand the partition (and PV), and then expand the root "
23725 "device to fill the extra space in the PV."
23726 msgstr ""
23727
23728 #. type: textblock
23729 #: ../resize/virt-resize.pod:419
23730 msgid ""
23731 "The contents of the LV are also resized if virt-resize knows how to do "
23732 "that.  You can stop virt-resize from trying to expand the content by using "
23733 "the option I<--no-expand-content>."
23734 msgstr ""
23735
23736 #. type: textblock
23737 #: ../resize/virt-resize.pod:423
23738 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23739 msgstr ""
23740
23741 #. type: textblock
23742 #: ../resize/virt-resize.pod:425
23743 msgid ""
23744 "You can give this option multiple times, I<but> it doesn't make sense to do "
23745 "this unless the logical volumes you specify are all in different volume "
23746 "groups."
23747 msgstr ""
23748
23749 #. type: =item
23750 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
23751 msgid "B<--machine-readable>"
23752 msgstr ""
23753
23754 #. type: textblock
23755 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
23756 msgid ""
23757 "This option is used to make the output more machine friendly when being "
23758 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23759 msgstr ""
23760
23761 #. type: =item
23762 #: ../resize/virt-resize.pod:437
23763 msgid "B<--dryrun>"
23764 msgstr ""
23765
23766 #. type: textblock
23767 #: ../resize/virt-resize.pod:439
23768 msgid "Print a summary of what would be done, but don't do anything."
23769 msgstr ""
23770
23771 #. type: =item
23772 #: ../resize/virt-resize.pod:441
23773 msgid "B<--no-copy-boot-loader>"
23774 msgstr ""
23775
23776 #. type: textblock
23777 #: ../resize/virt-resize.pod:443
23778 msgid ""
23779 "By default, virt-resize copies over some sectors at the start of the disk "
23780 "(up to the beginning of the first partition).  Commonly these sectors "
23781 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23782 "in order for the guest to boot correctly."
23783 msgstr ""
23784
23785 #. type: textblock
23786 #: ../resize/virt-resize.pod:448
23787 msgid ""
23788 "If you specify this flag, then this initial copy is not done.  You may need "
23789 "to reinstall the boot loader in this case."
23790 msgstr ""
23791
23792 #. type: =item
23793 #: ../resize/virt-resize.pod:451
23794 msgid "B<--no-extra-partition>"
23795 msgstr ""
23796
23797 #. type: textblock
23798 #: ../resize/virt-resize.pod:453
23799 msgid ""
23800 "By default, virt-resize creates an extra partition if there is any extra, "
23801 "unused space after all resizing has happened.  Use this option to prevent "
23802 "the extra partition from being created.  If you do this then the extra space "
23803 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23804 "tool in the guest."
23805 msgstr ""
23806
23807 #. type: textblock
23808 #: ../resize/virt-resize.pod:459
23809 msgid ""
23810 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23811 "will be created."
23812 msgstr ""
23813
23814 #. type: =item
23815 #: ../resize/virt-resize.pod:462
23816 msgid "B<--no-expand-content>"
23817 msgstr ""
23818
23819 #. type: textblock
23820 #: ../resize/virt-resize.pod:464
23821 msgid ""
23822 "By default, virt-resize will try to expand the direct contents of "
23823 "partitions, if it knows how (see I<--expand> option above)."
23824 msgstr ""
23825
23826 #. type: textblock
23827 #: ../resize/virt-resize.pod:467
23828 msgid ""
23829 "If you give the I<--no-expand-content> option then virt-resize will not "
23830 "attempt this."
23831 msgstr ""
23832
23833 #. type: =item
23834 #: ../resize/virt-resize.pod:470
23835 msgid "B<--ntfsresize-force>"
23836 msgstr ""
23837
23838 #. type: textblock
23839 #: ../resize/virt-resize.pod:472
23840 msgid ""
23841 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23842 "the NTFS disk is marked as needing a consistency check.  You have to use "
23843 "this option if you want to resize a Windows guest multiple times without "
23844 "booting into Windows between each resize."
23845 msgstr ""
23846
23847 #. type: =item
23848 #: ../resize/virt-resize.pod:478
23849 msgid "B<--output-format> raw"
23850 msgstr ""
23851
23852 #. type: textblock
23853 #: ../resize/virt-resize.pod:480
23854 msgid ""
23855 "Specify the format of the output disk image.  If this flag is not given then "
23856 "it is auto-detected from the image itself."
23857 msgstr ""
23858
23859 #. type: textblock
23860 #: ../resize/virt-resize.pod:486
23861 msgid ""
23862 "Note that this option I<does not create> the output format.  This option "
23863 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23864 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23865 "SPARSE RAW FORMATS>."
23866 msgstr ""
23867
23868 #. type: textblock
23869 #: ../resize/virt-resize.pod:495
23870 msgid "Don't print the summary."
23871 msgstr ""
23872
23873 #. type: =item
23874 #: ../resize/virt-resize.pod:497
23875 msgid "B<--resize part=size>"
23876 msgstr ""
23877
23878 #. type: textblock
23879 #: ../resize/virt-resize.pod:499
23880 msgid ""
23881 "Resize the named partition (expanding or shrinking it) so that it has the "
23882 "given size."
23883 msgstr ""
23884
23885 #. type: textblock
23886 #: ../resize/virt-resize.pod:502
23887 msgid ""
23888 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23889 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23890 "size; or as a relative number or percentage.  For example:"
23891 msgstr ""
23892
23893 #. type: verbatim
23894 #: ../resize/virt-resize.pod:508
23895 #, no-wrap
23896 msgid ""
23897 " --resize /dev/sda2=10G\n"
23898 "\n"
23899 msgstr ""
23900
23901 #. type: verbatim
23902 #: ../resize/virt-resize.pod:510
23903 #, no-wrap
23904 msgid ""
23905 " --resize /dev/sda4=90%\n"
23906 "\n"
23907 msgstr ""
23908
23909 #. type: verbatim
23910 #: ../resize/virt-resize.pod:512
23911 #, no-wrap
23912 msgid ""
23913 " --resize /dev/sda2=+1G\n"
23914 "\n"
23915 msgstr ""
23916
23917 #. type: verbatim
23918 #: ../resize/virt-resize.pod:514
23919 #, no-wrap
23920 msgid ""
23921 " --resize /dev/sda2=-200M\n"
23922 "\n"
23923 msgstr ""
23924
23925 #. type: verbatim
23926 #: ../resize/virt-resize.pod:516
23927 #, no-wrap
23928 msgid ""
23929 " --resize /dev/sda1=+128K\n"
23930 "\n"
23931 msgstr ""
23932
23933 #. type: verbatim
23934 #: ../resize/virt-resize.pod:518
23935 #, no-wrap
23936 msgid ""
23937 " --resize /dev/sda1=+10%\n"
23938 "\n"
23939 msgstr ""
23940
23941 #. type: verbatim
23942 #: ../resize/virt-resize.pod:520
23943 #, no-wrap
23944 msgid ""
23945 " --resize /dev/sda1=-10%\n"
23946 "\n"
23947 msgstr ""
23948
23949 #. type: textblock
23950 #: ../resize/virt-resize.pod:522
23951 msgid ""
23952 "You can increase the size of any partition.  Virt-resize will expand the "
23953 "direct content of the partition if it knows how (see I<--expand> below)."
23954 msgstr ""
23955
23956 #. type: textblock
23957 #: ../resize/virt-resize.pod:526
23958 msgid ""
23959 "You can only I<decrease> the size of partitions that contain filesystems or "
23960 "PVs which have already been shrunk.  Virt-resize will check this has been "
23961 "done before proceeding, or else will print an error (see also I<--resize-"
23962 "force>)."
23963 msgstr ""
23964
23965 #. type: =item
23966 #: ../resize/virt-resize.pod:533
23967 msgid "B<--resize-force part=size>"
23968 msgstr ""
23969
23970 #. type: textblock
23971 #: ../resize/virt-resize.pod:535
23972 msgid ""
23973 "This is the same as I<--resize> except that it will let you decrease the "
23974 "size of any partition.  Generally this means you will lose any data which "
23975 "was at the end of the partition you shrink, but you may not care about that "
23976 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23977 "as a swap partition)."
23978 msgstr ""
23979
23980 #. type: textblock
23981 #: ../resize/virt-resize.pod:541
23982 msgid "See also the I<--ignore> option."
23983 msgstr ""
23984
23985 #. type: =item
23986 #: ../resize/virt-resize.pod:543
23987 msgid "B<--shrink part>"
23988 msgstr ""
23989
23990 #. type: textblock
23991 #: ../resize/virt-resize.pod:545
23992 msgid ""
23993 "Shrink the named partition until the overall disk image fits in the "
23994 "destination.  The named partition B<must> contain a filesystem or PV which "
23995 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23996 "online tools).  Virt-resize will check this and give an error if it has not "
23997 "been done."
23998 msgstr ""
23999
24000 #. type: textblock
24001 #: ../resize/virt-resize.pod:551
24002 msgid ""
24003 "The amount by which the overall disk must be shrunk (after carrying out all "
24004 "other operations requested by the user) is called the \"deficit\".  For "
24005 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24006 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24007 "would give an error unless the user specified a partition to shrink and that "
24008 "partition had more than a gigabyte of free space."
24009 msgstr ""
24010
24011 #. type: =head1
24012 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24013 msgid "MACHINE READABLE OUTPUT"
24014 msgstr ""
24015
24016 #. type: textblock
24017 #: ../resize/virt-resize.pod:571
24018 msgid ""
24019 "The I<--machine-readable> option can be used to make the output more machine "
24020 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24021 "etc."
24022 msgstr ""
24023
24024 #. type: textblock
24025 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24026 msgid "There are two ways to use this option."
24027 msgstr ""
24028
24029 #. type: textblock
24030 #: ../resize/virt-resize.pod:577
24031 msgid ""
24032 "Firstly use the option on its own to query the capabilities of the virt-"
24033 "resize binary.  Typical output looks like this:"
24034 msgstr ""
24035
24036 #. type: verbatim
24037 #: ../resize/virt-resize.pod:580
24038 #, no-wrap
24039 msgid ""
24040 " $ virt-resize --machine-readable\n"
24041 " virt-resize\n"
24042 " ntfsresize-force\n"
24043 " 32bitok\n"
24044 " ntfs\n"
24045 " btrfs\n"
24046 "\n"
24047 msgstr ""
24048
24049 #. type: textblock
24050 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24051 msgid ""
24052 "A list of features is printed, one per line, and the program exits with "
24053 "status 0."
24054 msgstr ""
24055
24056 #. type: textblock
24057 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24058 msgid ""
24059 "Secondly use the option in conjunction with other options to make the "
24060 "regular program output more machine friendly."
24061 msgstr ""
24062
24063 #. type: textblock
24064 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24065 msgid "At the moment this means:"
24066 msgstr ""
24067
24068 #. type: textblock
24069 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24070 msgid ""
24071 "Progress bar messages can be parsed from stdout by looking for this regular "
24072 "expression:"
24073 msgstr ""
24074
24075 #. type: verbatim
24076 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24077 #, no-wrap
24078 msgid ""
24079 " ^[0-9]+/[0-9]+$\n"
24080 "\n"
24081 msgstr ""
24082
24083 #. type: textblock
24084 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24085 msgid ""
24086 "The calling program should treat messages sent to stdout (except for "
24087 "progress bar messages) as status messages.  They can be logged and/or "
24088 "displayed to the user."
24089 msgstr ""
24090
24091 #. type: textblock
24092 #: ../resize/virt-resize.pod:612
24093 msgid ""
24094 "The calling program should treat messages sent to stderr as error messages.  "
24095 "In addition, virt-resize exits with a non-zero status code if there was a "
24096 "fatal error."
24097 msgstr ""
24098
24099 #. type: textblock
24100 #: ../resize/virt-resize.pod:618
24101 msgid ""
24102 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24103 "readable> option and will return an error."
24104 msgstr ""
24105
24106 #. type: =head2
24107 #: ../resize/virt-resize.pod:623
24108 msgid "\"Partition 1 does not end on cylinder boundary.\""
24109 msgstr ""
24110
24111 #. type: textblock
24112 #: ../resize/virt-resize.pod:625
24113 msgid ""
24114 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24115 "alignment> parameter).  Usually this means the partitions will not be "
24116 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24117 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24118 "drives.  Alignment of partitions to cylinders is not required by any modern "
24119 "operating system."
24120 msgstr ""
24121
24122 #. type: =head2
24123 #: ../resize/virt-resize.pod:632
24124 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24125 msgstr ""
24126
24127 #. type: textblock
24128 #: ../resize/virt-resize.pod:634
24129 msgid ""
24130 "In Windows Vista and later versions, Microsoft switched to using a separate "
24131 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24132 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24133 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24134 "the second partition (ie. C: drive)  should work."
24135 msgstr ""
24136
24137 #. type: textblock
24138 #: ../resize/virt-resize.pod:641
24139 msgid ""
24140 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24141 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24142 "it find errors) is nothing to worry about."
24143 msgstr ""
24144
24145 #. type: =head2
24146 #: ../resize/virt-resize.pod:645
24147 msgid "GUEST BOOT STUCK AT \"GRUB\""
24148 msgstr ""
24149
24150 #. type: textblock
24151 #: ../resize/virt-resize.pod:647
24152 msgid ""
24153 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24154 "printing C<GRUB> on the console, try reinstalling grub."
24155 msgstr ""
24156
24157 #. type: verbatim
24158 #: ../resize/virt-resize.pod:650
24159 #, no-wrap
24160 msgid ""
24161 " guestfish -i -a newdisk\n"
24162 " ><fs> cat /boot/grub/device.map\n"
24163 " # check the contents of this file are sensible or\n"
24164 " # edit the file if necessary\n"
24165 " ><fs> grub-install / /dev/vda\n"
24166 " ><fs> exit\n"
24167 "\n"
24168 msgstr ""
24169
24170 #. type: textblock
24171 #: ../resize/virt-resize.pod:657
24172 msgid ""
24173 "For more flexible guest reconfiguration, including if you need to specify "
24174 "other parameters to grub-install, use L<virt-rescue(1)>."
24175 msgstr ""
24176
24177 #. type: =head1
24178 #: ../resize/virt-resize.pod:660
24179 msgid "ALTERNATIVE TOOLS"
24180 msgstr ""
24181
24182 #. type: textblock
24183 #: ../resize/virt-resize.pod:662
24184 msgid ""
24185 "There are several proprietary tools for resizing partitions.  We won't "
24186 "mention any here."
24187 msgstr ""
24188
24189 #. type: textblock
24190 #: ../resize/virt-resize.pod:665
24191 msgid ""
24192 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24193 "operations on disk images.  They can resize and move partitions, but I don't "
24194 "think they can do anything with the contents, and they certainly don't "
24195 "understand LVM."
24196 msgstr ""
24197
24198 #. type: textblock
24199 #: ../resize/virt-resize.pod:670
24200 msgid ""
24201 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24202 "but at a much lower level.  You will probably end up hand-calculating sector "
24203 "offsets, which is something that virt-resize was designed to avoid.  If you "
24204 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24205 "I<--debug> flag."
24206 msgstr ""
24207
24208 #. type: textblock
24209 #: ../resize/virt-resize.pod:690
24210 msgid ""
24211 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24212 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24213 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24214 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24215 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24216 msgstr ""
24217
24218 #. type: textblock
24219 #: ../ruby/examples/guestfs-ruby.pod:5
24220 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24221 msgstr ""
24222
24223 #. type: verbatim
24224 #: ../ruby/examples/guestfs-ruby.pod:9
24225 #, no-wrap
24226 msgid ""
24227 " require 'guestfs'\n"
24228 " g = Guestfs::Guestfs.new()\n"
24229 " g.add_drive_opts(\"disk.img\",\n"
24230 "                  :readonly => 1, :format => \"raw\")\n"
24231 " g.launch()\n"
24232 "\n"
24233 msgstr ""
24234
24235 #. type: textblock
24236 #: ../ruby/examples/guestfs-ruby.pod:17
24237 msgid ""
24238 "This manual page documents how to call libguestfs from the Ruby programming "
24239 "language.  This page just documents the differences from the C API and gives "
24240 "some examples.  If you are not familiar with using libguestfs, you also need "
24241 "to read L<guestfs(3)>."
24242 msgstr ""
24243
24244 #. type: textblock
24245 #: ../ruby/examples/guestfs-ruby.pod:24
24246 msgid ""
24247 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24248 "This has a single parameter which is the error message (a string)."
24249 msgstr ""
24250
24251 #. type: textblock
24252 #: ../ruby/examples/guestfs-ruby.pod:38
24253 msgid ""
24254 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24255 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24256 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24257 msgstr ""
24258
24259 #. type: textblock
24260 #: ../sparsify/virt-sparsify.pod:5
24261 msgid "virt-sparsify - Make a virtual machine disk sparse"
24262 msgstr ""
24263
24264 #. type: verbatim
24265 #: ../sparsify/virt-sparsify.pod:9
24266 #, no-wrap
24267 msgid ""
24268 " virt-sparsify [--options] indisk outdisk\n"
24269 "\n"
24270 msgstr ""
24271
24272 #. type: textblock
24273 #: ../sparsify/virt-sparsify.pod:13
24274 msgid ""
24275 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24276 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24277 "the disk image can be converted back to free space on the host."
24278 msgstr ""
24279
24280 #. type: textblock
24281 #: ../sparsify/virt-sparsify.pod:18
24282 msgid ""
24283 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24284 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24285 msgstr ""
24286
24287 #. type: textblock
24288 #: ../sparsify/virt-sparsify.pod:21
24289 msgid ""
24290 "Virt-sparsify can also convert between some disk formats, for example "
24291 "converting a raw disk image to a thin-provisioned qcow2 image."
24292 msgstr ""
24293
24294 #. type: textblock
24295 #: ../sparsify/virt-sparsify.pod:24
24296 msgid ""
24297 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24298 "machines.  If a virtual machine has more than one attached disk, you must "
24299 "sparsify each one separately."
24300 msgstr ""
24301
24302 #. type: =head2
24303 #: ../sparsify/virt-sparsify.pod:28
24304 msgid "IMPORTANT LIMITATIONS"
24305 msgstr ""
24306
24307 #. type: textblock
24308 #: ../sparsify/virt-sparsify.pod:34
24309 msgid ""
24310 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24311 "image to a destination image, leaving the source unchanged.  I<Check that "
24312 "the sparsification was successful before deleting the source image>."
24313 msgstr ""
24314
24315 #. type: textblock
24316 #: ../sparsify/virt-sparsify.pod:41
24317 msgid "The virtual machine I<must be shut down> before using this tool."
24318 msgstr ""
24319
24320 #. type: textblock
24321 #: ../sparsify/virt-sparsify.pod:45
24322 msgid ""
24323 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24324 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24325 "usually much less space is required."
24326 msgstr ""
24327
24328 #. type: textblock
24329 #: ../sparsify/virt-sparsify.pod:51
24330 msgid ""
24331 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24332 msgstr ""
24333
24334 #. type: textblock
24335 #: ../sparsify/virt-sparsify.pod:56
24336 msgid "Virt-sparsify cannot handle encrypted disks."
24337 msgstr ""
24338
24339 #. type: textblock
24340 #: ../sparsify/virt-sparsify.pod:60
24341 msgid ""
24342 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24343 "this space is often used for critical items like bootloaders so it's not "
24344 "really unused."
24345 msgstr ""
24346
24347 #. type: textblock
24348 #: ../sparsify/virt-sparsify.pod:66
24349 msgid ""
24350 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24351 "to do this unless we can be sure there is no hibernation data, so at the "
24352 "moment swap partitions are ignored."
24353 msgstr ""
24354
24355 #. type: textblock
24356 #: ../sparsify/virt-sparsify.pod:72
24357 msgid ""
24358 "You may also want to read the manual pages for the associated tools L<virt-"
24359 "filesystems(1)> and L<virt-df(1)> before starting."
24360 msgstr ""
24361
24362 #. type: textblock
24363 #: ../sparsify/virt-sparsify.pod:77
24364 msgid "Typical usage is:"
24365 msgstr ""
24366
24367 #. type: verbatim
24368 #: ../sparsify/virt-sparsify.pod:79
24369 #, no-wrap
24370 msgid ""
24371 " virt-sparsify indisk outdisk\n"
24372 "\n"
24373 msgstr ""
24374
24375 #. type: textblock
24376 #: ../sparsify/virt-sparsify.pod:81
24377 msgid ""
24378 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24379 "is created, or overwritten if it already exists.  The format of the input "
24380 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24381 msgstr ""
24382
24383 #. type: textblock
24384 #: ../sparsify/virt-sparsify.pod:86
24385 msgid "To convert between formats, use the I<--convert> option:"
24386 msgstr ""
24387
24388 #. type: verbatim
24389 #: ../sparsify/virt-sparsify.pod:88
24390 #, no-wrap
24391 msgid ""
24392 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24393 "\n"
24394 msgstr ""
24395
24396 #. type: textblock
24397 #: ../sparsify/virt-sparsify.pod:90
24398 msgid ""
24399 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24400 "can find within the source disk image.  You can get it to ignore (don't zero "
24401 "free space on) certain filesystems by doing:"
24402 msgstr ""
24403
24404 #. type: verbatim
24405 #: ../sparsify/virt-sparsify.pod:94
24406 #, no-wrap
24407 msgid ""
24408 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24409 "\n"
24410 msgstr ""
24411
24412 #. type: textblock
24413 #: ../sparsify/virt-sparsify.pod:96
24414 msgid ""
24415 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24416 msgstr ""
24417
24418 #. type: =item
24419 #: ../sparsify/virt-sparsify.pod:107
24420 msgid "B<--convert> raw"
24421 msgstr ""
24422
24423 #. type: =item
24424 #: ../sparsify/virt-sparsify.pod:109
24425 msgid "B<--convert> qcow2"
24426 msgstr ""
24427
24428 #. type: =item
24429 #: ../sparsify/virt-sparsify.pod:111
24430 msgid "B<--convert> [other formats]"
24431 msgstr ""
24432
24433 #. type: textblock
24434 #: ../sparsify/virt-sparsify.pod:113
24435 msgid ""
24436 "Use C<output-format> as the format for the destination image.  If this is "
24437 "not specified, then the input format is used."
24438 msgstr ""
24439
24440 #. type: textblock
24441 #: ../sparsify/virt-sparsify.pod:116
24442 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24443 msgstr ""
24444
24445 #. type: textblock
24446 #: ../sparsify/virt-sparsify.pod:118
24447 msgid ""
24448 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24449 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24450 msgstr ""
24451
24452 #. type: textblock
24453 #: ../sparsify/virt-sparsify.pod:122
24454 msgid ""
24455 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24456 "sparsify doesn't need to try to guess the input format."
24457 msgstr ""
24458
24459 #. type: =item
24460 #: ../sparsify/virt-sparsify.pod:127
24461 msgid "B<--format> qcow2"
24462 msgstr ""
24463
24464 #. type: =item
24465 #: ../sparsify/virt-sparsify.pod:135
24466 msgid "B<--ignore> filesystem"
24467 msgstr ""
24468
24469 #. type: =item
24470 #: ../sparsify/virt-sparsify.pod:137
24471 msgid "B<--ignore> volgroup"
24472 msgstr ""
24473
24474 #. type: textblock
24475 #: ../sparsify/virt-sparsify.pod:139
24476 msgid ""
24477 "Ignore the named filesystem.  Free space on the filesystem will not be "
24478 "zeroed, but existing blocks of zeroes will still be sparsified."
24479 msgstr ""
24480
24481 #. type: textblock
24482 #: ../sparsify/virt-sparsify.pod:142
24483 msgid ""
24484 "In the second form, this ignores the named volume group.  Use the volume "
24485 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24486 msgstr ""
24487
24488 #. type: textblock
24489 #: ../sparsify/virt-sparsify.pod:157
24490 msgid "This disables progress bars and other unnecessary output."
24491 msgstr ""
24492
24493 #. type: textblock
24494 #: ../sparsify/virt-sparsify.pod:179
24495 msgid ""
24496 "The I<--machine-readable> option can be used to make the output more machine "
24497 "friendly, which is useful when calling virt-sparsify from other programs, "
24498 "GUIs etc."
24499 msgstr ""
24500
24501 #. type: textblock
24502 #: ../sparsify/virt-sparsify.pod:185
24503 msgid ""
24504 "Firstly use the option on its own to query the capabilities of the virt-"
24505 "sparsify binary.  Typical output looks like this:"
24506 msgstr ""
24507
24508 #. type: verbatim
24509 #: ../sparsify/virt-sparsify.pod:188
24510 #, no-wrap
24511 msgid ""
24512 " $ virt-sparsify --machine-readable\n"
24513 " virt-sparsify\n"
24514 " ntfs\n"
24515 " btrfs\n"
24516 "\n"
24517 msgstr ""
24518
24519 #. type: textblock
24520 #: ../sparsify/virt-sparsify.pod:218
24521 msgid ""
24522 "The calling program should treat messages sent to stderr as error messages.  "
24523 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24524 "fatal error."
24525 msgstr ""
24526
24527 #. type: textblock
24528 #: ../sparsify/virt-sparsify.pod:224
24529 msgid ""
24530 "All versions of virt-sparsify have supported the I<--machine-readable> "
24531 "option."
24532 msgstr ""
24533
24534 #. type: textblock
24535 #: ../sparsify/virt-sparsify.pod:238
24536 msgid ""
24537 "Location of the temporary directory used for the potentially large temporary "
24538 "overlay file."
24539 msgstr ""
24540
24541 #. type: textblock
24542 #: ../sparsify/virt-sparsify.pod:241
24543 msgid ""
24544 "You should ensure there is enough free space in the worst case for a full "
24545 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24546 "to another directory that has enough space."
24547 msgstr ""
24548
24549 #. type: textblock
24550 #: ../sparsify/virt-sparsify.pod:245
24551 msgid "This defaults to C</tmp>."
24552 msgstr ""
24553
24554 #. type: textblock
24555 #: ../sparsify/virt-sparsify.pod:249
24556 msgid ""
24557 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24558 msgstr ""
24559
24560 #. type: textblock
24561 #: ../sparsify/virt-sparsify.pod:253
24562 msgid ""
24563 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24564 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24565 "(1)>, L<http://libguestfs.org/>."
24566 msgstr ""
24567
24568 #. type: =head2
24569 #: ../src/guestfs-actions.pod:1
24570 msgid "guestfs_add_cdrom"
24571 msgstr ""
24572
24573 #. type: verbatim
24574 #: ../src/guestfs-actions.pod:3
24575 #, no-wrap
24576 msgid ""
24577 " int\n"
24578 " guestfs_add_cdrom (guestfs_h *g,\n"
24579 "                    const char *filename);\n"
24580 "\n"
24581 msgstr ""
24582
24583 #. type: textblock
24584 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
24585 #: ../src/guestfs-actions.pod:323
24586 msgid ""
24587 "I<This function is deprecated.> In new code, use the L</"
24588 "guestfs_add_drive_opts> call instead."
24589 msgstr ""
24590
24591 #. type: textblock
24592 #: ../src/guestfs-actions.pod:24
24593 msgid ""
24594 "This call checks for the existence of C<filename>.  This stops you from "
24595 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24596 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24597 "instead."
24598 msgstr ""
24599
24600 #. type: textblock
24601 #: ../src/guestfs-actions.pod:31
24602 msgid ""
24603 "If you just want to add an ISO file (often you use this as an efficient way "
24604 "to transfer large files into the guest), then you should probably use "
24605 "C<guestfs_add_drive_ro> instead."
24606 msgstr ""
24607
24608 #. type: textblock
24609 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
24610 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
24611 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
24612 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
24613 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
24614 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
24615 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
24616 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
24617 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
24618 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
24619 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
24620 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
24621 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
24622 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
24623 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
24624 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
24625 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
24626 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
24627 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
24628 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
24629 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
24630 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
24631 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
24632 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
24633 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
24634 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
24635 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4317
24636 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4344
24637 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4373
24638 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4481
24639 #: ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4518
24640 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
24641 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
24642 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4666
24643 #: ../src/guestfs-actions.pod:4678 ../src/guestfs-actions.pod:4711
24644 #: ../src/guestfs-actions.pod:4727 ../src/guestfs-actions.pod:4740
24645 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4772
24646 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4885
24647 #: ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:4949
24648 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4985
24649 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5015
24650 #: ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5046
24651 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5088
24652 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5224
24653 #: ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5274
24654 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5305
24655 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:5335
24656 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5365
24657 #: ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423
24658 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5482
24659 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5513
24660 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5615
24661 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5705
24662 #: ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5750
24663 #: ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5905
24664 #: ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5984
24665 #: ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6054
24666 #: ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6137
24667 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6164
24668 #: ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6472
24669 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6505
24670 #: ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6531
24671 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557
24672 #: ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6591
24673 #: ../src/guestfs-actions.pod:6610 ../src/guestfs-actions.pod:6629
24674 #: ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6677
24675 #: ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6718
24676 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6758
24677 #: ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6794
24678 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6841
24679 #: ../src/guestfs-actions.pod:6865 ../src/guestfs-actions.pod:6884
24680 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6924
24681 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6958
24682 #: ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7021
24683 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7078
24684 #: ../src/guestfs-actions.pod:7190 ../src/guestfs-actions.pod:7311
24685 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7336
24686 #: ../src/guestfs-actions.pod:7349 ../src/guestfs-actions.pod:7371
24687 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7397
24688 #: ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7425
24689 #: ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7501
24690 #: ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7533
24691 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
24692 #: ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7619
24693 #: ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7674
24694 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7705
24695 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7775
24696 #: ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7906
24697 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7975
24698 #: ../src/guestfs-actions.pod:7988 ../src/guestfs-actions.pod:8033
24699 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8129
24700 #: ../src/guestfs-actions.pod:8149 ../src/guestfs-actions.pod:8182
24701 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8269
24702 #: ../src/guestfs-actions.pod:8295
24703 msgid "This function returns 0 on success or -1 on error."
24704 msgstr ""
24705
24706 #. type: textblock
24707 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
24708 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
24709 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
24710 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
24711 #: ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:6679
24712 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6945
24713 #: ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7552
24714 #: ../src/guestfs-actions.pod:8075
24715 msgid "(Added in 0.3)"
24716 msgstr ""
24717
24718 #. type: =head2
24719 #: ../src/guestfs-actions.pod:41
24720 msgid "guestfs_add_domain"
24721 msgstr ""
24722
24723 #. type: verbatim
24724 #: ../src/guestfs-actions.pod:43
24725 #, no-wrap
24726 msgid ""
24727 " int\n"
24728 " guestfs_add_domain (guestfs_h *g,\n"
24729 "                     const char *dom,\n"
24730 "                     ...);\n"
24731 "\n"
24732 msgstr ""
24733
24734 #. type: textblock
24735 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
24736 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
24737 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
24738 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
24739 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
24740 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5409
24741 #: ../src/guestfs-actions.pod:5626
24742 msgid ""
24743 "You may supply a list of optional arguments to this call.  Use zero or more "
24744 "of the following pairs of parameters, and terminate the list with C<-1> on "
24745 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24746 msgstr ""
24747
24748 #. type: verbatim
24749 #: ../src/guestfs-actions.pod:53
24750 #, no-wrap
24751 msgid ""
24752 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24753 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24754 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24755 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24756 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24757 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
24758 "\n"
24759 msgstr ""
24760
24761 #. type: textblock
24762 #: ../src/guestfs-actions.pod:60
24763 msgid ""
24764 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24765 "It works by connecting to libvirt, requesting the domain and domain XML from "
24766 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24767 "one."
24768 msgstr ""
24769
24770 #. type: textblock
24771 #: ../src/guestfs-actions.pod:141
24772 msgid ""
24773 "The other optional parameters are passed directly through to "
24774 "C<guestfs_add_drive_opts>."
24775 msgstr ""
24776
24777 #. type: textblock
24778 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
24779 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
24780 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24781 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
24782 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
24783 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
24784 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
24785 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
24786 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
24787 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5802
24788 #: ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6234
24789 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:7660
24790 #: ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8099
24791 #: ../src/guestfs-actions.pod:8112
24792 msgid "On error this function returns -1."
24793 msgstr ""
24794
24795 #. type: textblock
24796 #: ../src/guestfs-actions.pod:146
24797 msgid "(Added in 1.7.4)"
24798 msgstr ""
24799
24800 #. type: =head2
24801 #: ../src/guestfs-actions.pod:148
24802 msgid "guestfs_add_domain_va"
24803 msgstr ""
24804
24805 #. type: verbatim
24806 #: ../src/guestfs-actions.pod:150
24807 #, no-wrap
24808 msgid ""
24809 " int\n"
24810 " guestfs_add_domain_va (guestfs_h *g,\n"
24811 "                        const char *dom,\n"
24812 "                        va_list args);\n"
24813 "\n"
24814 msgstr ""
24815
24816 #. type: textblock
24817 #: ../src/guestfs-actions.pod:155
24818 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24819 msgstr ""
24820
24821 #. type: textblock
24822 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
24823 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
24824 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
24825 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
24826 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
24827 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
24828 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
24829 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
24830 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
24831 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
24832 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5177
24833 #: ../src/guestfs-actions.pod:5437 ../src/guestfs-actions.pod:5449
24834 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:5686
24835 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24836 msgstr ""
24837
24838 #. type: =head2
24839 #: ../src/guestfs-actions.pod:159
24840 msgid "guestfs_add_domain_argv"
24841 msgstr ""
24842
24843 #. type: verbatim
24844 #: ../src/guestfs-actions.pod:161
24845 #, no-wrap
24846 msgid ""
24847 " int\n"
24848 " guestfs_add_domain_argv (guestfs_h *g,\n"
24849 "                          const char *dom,\n"
24850 "                          const struct guestfs_add_domain_argv *optargs);\n"
24851 "\n"
24852 msgstr ""
24853
24854 #. type: textblock
24855 #: ../src/guestfs-actions.pod:166
24856 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24857 msgstr ""
24858
24859 #. type: =head2
24860 #: ../src/guestfs-actions.pod:170
24861 msgid "guestfs_add_drive"
24862 msgstr ""
24863
24864 #. type: verbatim
24865 #: ../src/guestfs-actions.pod:172
24866 #, no-wrap
24867 msgid ""
24868 " int\n"
24869 " guestfs_add_drive (guestfs_h *g,\n"
24870 "                    const char *filename);\n"
24871 "\n"
24872 msgstr ""
24873
24874 #. type: textblock
24875 #: ../src/guestfs-actions.pod:176
24876 msgid ""
24877 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24878 "optional parameters, so the disk is added writable, with the format being "
24879 "detected automatically."
24880 msgstr ""
24881
24882 #. type: textblock
24883 #: ../src/guestfs-actions.pod:180
24884 msgid ""
24885 "Automatic detection of the format opens you up to a potential security hole "
24886 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24887 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24888 "you should think about replacing calls to this function with calls to "
24889 "C<guestfs_add_drive_opts>, and specifying the format."
24890 msgstr ""
24891
24892 #. type: =head2
24893 #: ../src/guestfs-actions.pod:191
24894 msgid "guestfs_add_drive_opts"
24895 msgstr ""
24896
24897 #. type: verbatim
24898 #: ../src/guestfs-actions.pod:193
24899 #, no-wrap
24900 msgid ""
24901 " int\n"
24902 " guestfs_add_drive_opts (guestfs_h *g,\n"
24903 "                         const char *filename,\n"
24904 "                         ...);\n"
24905 "\n"
24906 msgstr ""
24907
24908 #. type: verbatim
24909 #: ../src/guestfs-actions.pod:203
24910 #, no-wrap
24911 msgid ""
24912 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24913 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24914 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24915 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
24916 "\n"
24917 msgstr ""
24918
24919 #. type: textblock
24920 #: ../src/guestfs-actions.pod:233
24921 msgid ""
24922 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24923 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24924 "Possible formats include C<raw> and C<qcow2>."
24925 msgstr ""
24926
24927 #. type: textblock
24928 #: ../src/guestfs-actions.pod:244
24929 msgid ""
24930 "This rarely-used option lets you emulate the behaviour of the deprecated "
24931 "C<guestfs_add_drive_with_if> call (q.v.)"
24932 msgstr ""
24933
24934 #. type: textblock
24935 #: ../src/guestfs-actions.pod:256
24936 msgid "(Added in 1.5.23)"
24937 msgstr ""
24938
24939 #. type: =head2
24940 #: ../src/guestfs-actions.pod:258
24941 msgid "guestfs_add_drive_opts_va"
24942 msgstr ""
24943
24944 #. type: verbatim
24945 #: ../src/guestfs-actions.pod:260
24946 #, no-wrap
24947 msgid ""
24948 " int\n"
24949 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24950 "                            const char *filename,\n"
24951 "                            va_list args);\n"
24952 "\n"
24953 msgstr ""
24954
24955 #. type: textblock
24956 #: ../src/guestfs-actions.pod:265
24957 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24958 msgstr ""
24959
24960 #. type: =head2
24961 #: ../src/guestfs-actions.pod:269
24962 msgid "guestfs_add_drive_opts_argv"
24963 msgstr ""
24964
24965 #. type: verbatim
24966 #: ../src/guestfs-actions.pod:271
24967 #, no-wrap
24968 msgid ""
24969 " int\n"
24970 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24971 "                              const char *filename,\n"
24972 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
24973 "\n"
24974 msgstr ""
24975
24976 #. type: textblock
24977 #: ../src/guestfs-actions.pod:276
24978 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24979 msgstr ""
24980
24981 #. type: =head2
24982 #: ../src/guestfs-actions.pod:280
24983 msgid "guestfs_add_drive_ro"
24984 msgstr ""
24985
24986 #. type: verbatim
24987 #: ../src/guestfs-actions.pod:282
24988 #, no-wrap
24989 msgid ""
24990 " int\n"
24991 " guestfs_add_drive_ro (guestfs_h *g,\n"
24992 "                       const char *filename);\n"
24993 "\n"
24994 msgstr ""
24995
24996 #. type: textblock
24997 #: ../src/guestfs-actions.pod:286
24998 msgid ""
24999 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25000 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25001 "disk is added read-only, with the format being detected automatically."
25002 msgstr ""
25003
25004 #. type: textblock
25005 #: ../src/guestfs-actions.pod:293
25006 msgid "(Added in 1.0.38)"
25007 msgstr ""
25008
25009 #. type: =head2
25010 #: ../src/guestfs-actions.pod:295
25011 msgid "guestfs_add_drive_ro_with_if"
25012 msgstr ""
25013
25014 #. type: verbatim
25015 #: ../src/guestfs-actions.pod:297
25016 #, no-wrap
25017 msgid ""
25018 " int\n"
25019 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25020 "                               const char *filename,\n"
25021 "                               const char *iface);\n"
25022 "\n"
25023 msgstr ""
25024
25025 #. type: textblock
25026 #: ../src/guestfs-actions.pod:309
25027 msgid ""
25028 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25029 "QEMU interface emulation to use at run time."
25030 msgstr ""
25031
25032 #. type: textblock
25033 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
25034 #: ../src/guestfs-actions.pod:2881
25035 msgid "(Added in 1.0.84)"
25036 msgstr ""
25037
25038 #. type: =head2
25039 #: ../src/guestfs-actions.pod:316
25040 msgid "guestfs_add_drive_with_if"
25041 msgstr ""
25042
25043 #. type: verbatim
25044 #: ../src/guestfs-actions.pod:318
25045 #, no-wrap
25046 msgid ""
25047 " int\n"
25048 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25049 "                            const char *filename,\n"
25050 "                            const char *iface);\n"
25051 "\n"
25052 msgstr ""
25053
25054 #. type: textblock
25055 #: ../src/guestfs-actions.pod:330
25056 msgid ""
25057 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25058 "QEMU interface emulation to use at run time."
25059 msgstr ""
25060
25061 #. type: =head2
25062 #: ../src/guestfs-actions.pod:337
25063 msgid "guestfs_aug_clear"
25064 msgstr ""
25065
25066 #. type: verbatim
25067 #: ../src/guestfs-actions.pod:339
25068 #, no-wrap
25069 msgid ""
25070 " int\n"
25071 " guestfs_aug_clear (guestfs_h *g,\n"
25072 "                    const char *augpath);\n"
25073 "\n"
25074 msgstr ""
25075
25076 #. type: textblock
25077 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25078 msgid "(Added in 1.3.4)"
25079 msgstr ""
25080
25081 #. type: =head2
25082 #: ../src/guestfs-actions.pod:350
25083 msgid "guestfs_aug_close"
25084 msgstr ""
25085
25086 #. type: verbatim
25087 #: ../src/guestfs-actions.pod:352
25088 #, no-wrap
25089 msgid ""
25090 " int\n"
25091 " guestfs_aug_close (guestfs_h *g);\n"
25092 "\n"
25093 msgstr ""
25094
25095 #. type: textblock
25096 #: ../src/guestfs-actions.pod:355
25097 msgid ""
25098 "Close the current Augeas handle and free up any resources used by it.  After "
25099 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25100 "any other Augeas functions."
25101 msgstr ""
25102
25103 #. type: textblock
25104 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
25105 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
25106 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
25107 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
25108 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
25109 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
25110 #: ../src/guestfs-actions.pod:6311
25111 msgid "(Added in 0.7)"
25112 msgstr ""
25113
25114 #. type: =head2
25115 #: ../src/guestfs-actions.pod:364
25116 msgid "guestfs_aug_defnode"
25117 msgstr ""
25118
25119 #. type: verbatim
25120 #: ../src/guestfs-actions.pod:366
25121 #, no-wrap
25122 msgid ""
25123 " struct guestfs_int_bool *\n"
25124 " guestfs_aug_defnode (guestfs_h *g,\n"
25125 "                      const char *name,\n"
25126 "                      const char *expr,\n"
25127 "                      const char *val);\n"
25128 "\n"
25129 msgstr ""
25130
25131 #. type: textblock
25132 #: ../src/guestfs-actions.pod:375
25133 msgid ""
25134 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25135 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25136 "containing that single node."
25137 msgstr ""
25138
25139 #. type: textblock
25140 #: ../src/guestfs-actions.pod:383
25141 msgid ""
25142 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25143 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25144 msgstr ""
25145
25146 #. type: =head2
25147 #: ../src/guestfs-actions.pod:389
25148 msgid "guestfs_aug_defvar"
25149 msgstr ""
25150
25151 #. type: verbatim
25152 #: ../src/guestfs-actions.pod:391
25153 #, no-wrap
25154 msgid ""
25155 " int\n"
25156 " guestfs_aug_defvar (guestfs_h *g,\n"
25157 "                     const char *name,\n"
25158 "                     const char *expr);\n"
25159 "\n"
25160 msgstr ""
25161
25162 #. type: =head2
25163 #: ../src/guestfs-actions.pod:407
25164 msgid "guestfs_aug_get"
25165 msgstr ""
25166
25167 #. type: verbatim
25168 #: ../src/guestfs-actions.pod:409
25169 #, no-wrap
25170 msgid ""
25171 " char *\n"
25172 " guestfs_aug_get (guestfs_h *g,\n"
25173 "                  const char *augpath);\n"
25174 "\n"
25175 msgstr ""
25176
25177 #. type: textblock
25178 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
25179 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
25180 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
25181 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
25182 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
25183 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
25184 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
25185 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
25186 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
25187 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
25188 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
25189 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
25190 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
25191 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
25192 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
25193 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4650
25194 #: ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4927
25195 #: ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:6021
25196 #: ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6387
25197 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:7096
25198 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7136
25199 #: ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7834
25200 #: ../src/guestfs-actions.pod:7853 ../src/guestfs-actions.pod:7871
25201 #: ../src/guestfs-actions.pod:8045 ../src/guestfs-actions.pod:8359
25202 msgid ""
25203 "This function returns a string, or NULL on error.  I<The caller must free "
25204 "the returned string after use>."
25205 msgstr ""
25206
25207 #. type: =head2
25208 #: ../src/guestfs-actions.pod:421
25209 msgid "guestfs_aug_init"
25210 msgstr ""
25211
25212 #. type: verbatim
25213 #: ../src/guestfs-actions.pod:423
25214 #, no-wrap
25215 msgid ""
25216 " int\n"
25217 " guestfs_aug_init (guestfs_h *g,\n"
25218 "                   const char *root,\n"
25219 "                   int flags);\n"
25220 "\n"
25221 msgstr ""
25222
25223 #. type: textblock
25224 #: ../src/guestfs-actions.pod:432
25225 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25226 msgstr ""
25227
25228 #. type: textblock
25229 #: ../src/guestfs-actions.pod:457
25230 msgid ""
25231 "This option is only useful when debugging Augeas lenses.  Use of this option "
25232 "may require additional memory for the libguestfs appliance.  You may need to "
25233 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25234 "C<guestfs_set_memsize>."
25235 msgstr ""
25236
25237 #. type: textblock
25238 #: ../src/guestfs-actions.pod:472
25239 msgid "Do not load the tree in C<guestfs_aug_init>."
25240 msgstr ""
25241
25242 #. type: textblock
25243 #: ../src/guestfs-actions.pod:476
25244 msgid "To close the handle, you can call C<guestfs_aug_close>."
25245 msgstr ""
25246
25247 #. type: =head2
25248 #: ../src/guestfs-actions.pod:484
25249 msgid "guestfs_aug_insert"
25250 msgstr ""
25251
25252 #. type: verbatim
25253 #: ../src/guestfs-actions.pod:486
25254 #, no-wrap
25255 msgid ""
25256 " int\n"
25257 " guestfs_aug_insert (guestfs_h *g,\n"
25258 "                     const char *augpath,\n"
25259 "                     const char *label,\n"
25260 "                     int before);\n"
25261 "\n"
25262 msgstr ""
25263
25264 #. type: =head2
25265 #: ../src/guestfs-actions.pod:504
25266 msgid "guestfs_aug_load"
25267 msgstr ""
25268
25269 #. type: verbatim
25270 #: ../src/guestfs-actions.pod:506
25271 #, no-wrap
25272 msgid ""
25273 " int\n"
25274 " guestfs_aug_load (guestfs_h *g);\n"
25275 "\n"
25276 msgstr ""
25277
25278 #. type: =head2
25279 #: ../src/guestfs-actions.pod:518
25280 msgid "guestfs_aug_ls"
25281 msgstr ""
25282
25283 #. type: verbatim
25284 #: ../src/guestfs-actions.pod:520
25285 #, no-wrap
25286 msgid ""
25287 " char **\n"
25288 " guestfs_aug_ls (guestfs_h *g,\n"
25289 "                 const char *augpath);\n"
25290 "\n"
25291 msgstr ""
25292
25293 #. type: textblock
25294 #: ../src/guestfs-actions.pod:524
25295 msgid ""
25296 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25297 "sorting the resulting nodes into alphabetical order."
25298 msgstr ""
25299
25300 #. type: textblock
25301 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
25302 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
25303 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
25304 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
25305 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
25306 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
25307 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
25308 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
25309 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
25310 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
25311 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
25312 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4390
25313 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5546
25314 #: ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6307
25315 #: ../src/guestfs-actions.pod:6421 ../src/guestfs-actions.pod:7176
25316 #: ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7292
25317 #: ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7462
25318 #: ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7958
25319 #: ../src/guestfs-actions.pod:8005 ../src/guestfs-actions.pod:8199
25320 #: ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8309
25321 #: ../src/guestfs-actions.pod:8328 ../src/guestfs-actions.pod:8374
25322 #: ../src/guestfs-actions.pod:8393
25323 msgid ""
25324 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25325 ">), or NULL if there was an error.  I<The caller must free the strings and "
25326 "the array after use>."
25327 msgstr ""
25328
25329 #. type: textblock
25330 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
25331 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
25332 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
25333 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4680
25334 #: ../src/guestfs-actions.pod:4867 ../src/guestfs-actions.pod:4900
25335 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5550
25336 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6519
25337 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6545
25338 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7676
25339 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7922
25340 #: ../src/guestfs-actions.pod:8187
25341 msgid "(Added in 0.8)"
25342 msgstr ""
25343
25344 #. type: =head2
25345 #: ../src/guestfs-actions.pod:533
25346 msgid "guestfs_aug_match"
25347 msgstr ""
25348
25349 #. type: verbatim
25350 #: ../src/guestfs-actions.pod:535
25351 #, no-wrap
25352 msgid ""
25353 " char **\n"
25354 " guestfs_aug_match (guestfs_h *g,\n"
25355 "                    const char *augpath);\n"
25356 "\n"
25357 msgstr ""
25358
25359 #. type: =head2
25360 #: ../src/guestfs-actions.pod:549
25361 msgid "guestfs_aug_mv"
25362 msgstr ""
25363
25364 #. type: verbatim
25365 #: ../src/guestfs-actions.pod:551
25366 #, no-wrap
25367 msgid ""
25368 " int\n"
25369 " guestfs_aug_mv (guestfs_h *g,\n"
25370 "                 const char *src,\n"
25371 "                 const char *dest);\n"
25372 "\n"
25373 msgstr ""
25374
25375 #. type: =head2
25376 #: ../src/guestfs-actions.pod:563
25377 msgid "guestfs_aug_rm"
25378 msgstr ""
25379
25380 #. type: verbatim
25381 #: ../src/guestfs-actions.pod:565
25382 #, no-wrap
25383 msgid ""
25384 " int\n"
25385 " guestfs_aug_rm (guestfs_h *g,\n"
25386 "                 const char *augpath);\n"
25387 "\n"
25388 msgstr ""
25389
25390 #. type: =head2
25391 #: ../src/guestfs-actions.pod:577
25392 msgid "guestfs_aug_save"
25393 msgstr ""
25394
25395 #. type: verbatim
25396 #: ../src/guestfs-actions.pod:579
25397 #, no-wrap
25398 msgid ""
25399 " int\n"
25400 " guestfs_aug_save (guestfs_h *g);\n"
25401 "\n"
25402 msgstr ""
25403
25404 #. type: textblock
25405 #: ../src/guestfs-actions.pod:584
25406 msgid ""
25407 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25408 "are saved."
25409 msgstr ""
25410
25411 #. type: =head2
25412 #: ../src/guestfs-actions.pod:591
25413 msgid "guestfs_aug_set"
25414 msgstr ""
25415
25416 #. type: verbatim
25417 #: ../src/guestfs-actions.pod:593
25418 #, no-wrap
25419 msgid ""
25420 " int\n"
25421 " guestfs_aug_set (guestfs_h *g,\n"
25422 "                  const char *augpath,\n"
25423 "                  const char *val);\n"
25424 "\n"
25425 msgstr ""
25426
25427 #. type: textblock
25428 #: ../src/guestfs-actions.pod:600
25429 msgid ""
25430 "In the Augeas API, it is possible to clear a node by setting the value to "
25431 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25432 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25433 msgstr ""
25434
25435 #. type: =head2
25436 #: ../src/guestfs-actions.pod:609
25437 msgid "guestfs_available"
25438 msgstr ""
25439
25440 #. type: verbatim
25441 #: ../src/guestfs-actions.pod:611
25442 #, no-wrap
25443 msgid ""
25444 " int\n"
25445 " guestfs_available (guestfs_h *g,\n"
25446 "                    char *const *groups);\n"
25447 "\n"
25448 msgstr ""
25449
25450 #. type: textblock
25451 #: ../src/guestfs-actions.pod:619
25452 msgid ""
25453 "The libguestfs groups, and the functions that those groups correspond to, "
25454 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25455 "runtime by calling C<guestfs_available_all_groups>."
25456 msgstr ""
25457
25458 #. type: textblock
25459 #: ../src/guestfs-actions.pod:643
25460 msgid "You must call C<guestfs_launch> before calling this function."
25461 msgstr ""
25462
25463 #. type: textblock
25464 #: ../src/guestfs-actions.pod:665
25465 msgid ""
25466 "This call was added in version C<1.0.80>.  In previous versions of "
25467 "libguestfs all you could do would be to speculatively execute a command to "
25468 "find out if the daemon implemented it.  See also C<guestfs_version>."
25469 msgstr ""
25470
25471 #. type: textblock
25472 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
25473 msgid "(Added in 1.0.80)"
25474 msgstr ""
25475
25476 #. type: =head2
25477 #: ../src/guestfs-actions.pod:676
25478 msgid "guestfs_available_all_groups"
25479 msgstr ""
25480
25481 #. type: verbatim
25482 #: ../src/guestfs-actions.pod:678
25483 #, no-wrap
25484 msgid ""
25485 " char **\n"
25486 " guestfs_available_all_groups (guestfs_h *g);\n"
25487 "\n"
25488 msgstr ""
25489
25490 #. type: textblock
25491 #: ../src/guestfs-actions.pod:681
25492 msgid ""
25493 "This command returns a list of all optional groups that this daemon knows "
25494 "about.  Note this returns both supported and unsupported groups.  To find "
25495 "out which ones the daemon can actually support you have to call "
25496 "C<guestfs_available> on each member of the returned list."
25497 msgstr ""
25498
25499 #. type: textblock
25500 #: ../src/guestfs-actions.pod:687
25501 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25502 msgstr ""
25503
25504 #. type: textblock
25505 #: ../src/guestfs-actions.pod:693
25506 msgid "(Added in 1.3.15)"
25507 msgstr ""
25508
25509 #. type: =head2
25510 #: ../src/guestfs-actions.pod:695
25511 msgid "guestfs_base64_in"
25512 msgstr ""
25513
25514 #. type: verbatim
25515 #: ../src/guestfs-actions.pod:697
25516 #, no-wrap
25517 msgid ""
25518 " int\n"
25519 " guestfs_base64_in (guestfs_h *g,\n"
25520 "                    const char *base64file,\n"
25521 "                    const char *filename);\n"
25522 "\n"
25523 msgstr ""
25524
25525 #. type: textblock
25526 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
25527 msgid "(Added in 1.3.5)"
25528 msgstr ""
25529
25530 #. type: =head2
25531 #: ../src/guestfs-actions.pod:709
25532 msgid "guestfs_base64_out"
25533 msgstr ""
25534
25535 #. type: verbatim
25536 #: ../src/guestfs-actions.pod:711
25537 #, no-wrap
25538 msgid ""
25539 " int\n"
25540 " guestfs_base64_out (guestfs_h *g,\n"
25541 "                     const char *filename,\n"
25542 "                     const char *base64file);\n"
25543 "\n"
25544 msgstr ""
25545
25546 #. type: =head2
25547 #: ../src/guestfs-actions.pod:723
25548 msgid "guestfs_blockdev_flushbufs"
25549 msgstr ""
25550
25551 #. type: verbatim
25552 #: ../src/guestfs-actions.pod:725
25553 #, no-wrap
25554 msgid ""
25555 " int\n"
25556 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25557 "                             const char *device);\n"
25558 "\n"
25559 msgstr ""
25560
25561 #. type: textblock
25562 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
25563 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
25564 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
25565 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
25566 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
25567 msgid "(Added in 0.9.3)"
25568 msgstr ""
25569
25570 #. type: =head2
25571 #: ../src/guestfs-actions.pod:738
25572 msgid "guestfs_blockdev_getbsz"
25573 msgstr ""
25574
25575 #. type: verbatim
25576 #: ../src/guestfs-actions.pod:740
25577 #, no-wrap
25578 msgid ""
25579 " int\n"
25580 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25581 "                          const char *device);\n"
25582 "\n"
25583 msgstr ""
25584
25585 #. type: =head2
25586 #: ../src/guestfs-actions.pod:755
25587 msgid "guestfs_blockdev_getro"
25588 msgstr ""
25589
25590 #. type: verbatim
25591 #: ../src/guestfs-actions.pod:757
25592 #, no-wrap
25593 msgid ""
25594 " int\n"
25595 " guestfs_blockdev_getro (guestfs_h *g,\n"
25596 "                         const char *device);\n"
25597 "\n"
25598 msgstr ""
25599
25600 #. type: textblock
25601 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
25602 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
25603 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
25604 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
25605 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
25606 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
25607 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
25608 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
25609 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
25610 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
25611 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
25612 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
25613 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
25614 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
25615 #: ../src/guestfs-actions.pod:5784
25616 msgid "This function returns a C truth value on success or -1 on error."
25617 msgstr ""
25618
25619 #. type: =head2
25620 #: ../src/guestfs-actions.pod:770
25621 msgid "guestfs_blockdev_getsize64"
25622 msgstr ""
25623
25624 #. type: verbatim
25625 #: ../src/guestfs-actions.pod:772
25626 #, no-wrap
25627 msgid ""
25628 " int64_t\n"
25629 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25630 "                             const char *device);\n"
25631 "\n"
25632 msgstr ""
25633
25634 #. type: textblock
25635 #: ../src/guestfs-actions.pod:778
25636 msgid "See also C<guestfs_blockdev_getsz>."
25637 msgstr ""
25638
25639 #. type: =head2
25640 #: ../src/guestfs-actions.pod:786
25641 msgid "guestfs_blockdev_getss"
25642 msgstr ""
25643
25644 #. type: verbatim
25645 #: ../src/guestfs-actions.pod:788
25646 #, no-wrap
25647 msgid ""
25648 " int\n"
25649 " guestfs_blockdev_getss (guestfs_h *g,\n"
25650 "                         const char *device);\n"
25651 "\n"
25652 msgstr ""
25653
25654 #. type: textblock
25655 #: ../src/guestfs-actions.pod:795
25656 msgid ""
25657 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25658 "that)."
25659 msgstr ""
25660
25661 #. type: =head2
25662 #: ../src/guestfs-actions.pod:804
25663 msgid "guestfs_blockdev_getsz"
25664 msgstr ""
25665
25666 #. type: verbatim
25667 #: ../src/guestfs-actions.pod:806
25668 #, no-wrap
25669 msgid ""
25670 " int64_t\n"
25671 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25672 "                         const char *device);\n"
25673 "\n"
25674 msgstr ""
25675
25676 #. type: textblock
25677 #: ../src/guestfs-actions.pod:813
25678 msgid ""
25679 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25680 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25681 msgstr ""
25682
25683 #. type: =head2
25684 #: ../src/guestfs-actions.pod:823
25685 msgid "guestfs_blockdev_rereadpt"
25686 msgstr ""
25687
25688 #. type: verbatim
25689 #: ../src/guestfs-actions.pod:825
25690 #, no-wrap
25691 msgid ""
25692 " int\n"
25693 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25694 "                            const char *device);\n"
25695 "\n"
25696 msgstr ""
25697
25698 #. type: =head2
25699 #: ../src/guestfs-actions.pod:837
25700 msgid "guestfs_blockdev_setbsz"
25701 msgstr ""
25702
25703 #. type: verbatim
25704 #: ../src/guestfs-actions.pod:839
25705 #, no-wrap
25706 msgid ""
25707 " int\n"
25708 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25709 "                          const char *device,\n"
25710 "                          int blocksize);\n"
25711 "\n"
25712 msgstr ""
25713
25714 #. type: =head2
25715 #: ../src/guestfs-actions.pod:855
25716 msgid "guestfs_blockdev_setro"
25717 msgstr ""
25718
25719 #. type: verbatim
25720 #: ../src/guestfs-actions.pod:857
25721 #, no-wrap
25722 msgid ""
25723 " int\n"
25724 " guestfs_blockdev_setro (guestfs_h *g,\n"
25725 "                         const char *device);\n"
25726 "\n"
25727 msgstr ""
25728
25729 #. type: =head2
25730 #: ../src/guestfs-actions.pod:869
25731 msgid "guestfs_blockdev_setrw"
25732 msgstr ""
25733
25734 #. type: verbatim
25735 #: ../src/guestfs-actions.pod:871
25736 #, no-wrap
25737 msgid ""
25738 " int\n"
25739 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25740 "                         const char *device);\n"
25741 "\n"
25742 msgstr ""
25743
25744 #. type: =head2
25745 #: ../src/guestfs-actions.pod:883
25746 msgid "guestfs_btrfs_filesystem_resize"
25747 msgstr ""
25748
25749 #. type: verbatim
25750 #: ../src/guestfs-actions.pod:885
25751 #, no-wrap
25752 msgid ""
25753 " int\n"
25754 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25755 "                                  const char *mountpoint,\n"
25756 "                                  ...);\n"
25757 "\n"
25758 msgstr ""
25759
25760 #. type: verbatim
25761 #: ../src/guestfs-actions.pod:895
25762 #, no-wrap
25763 msgid ""
25764 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25765 "\n"
25766 msgstr ""
25767
25768 #. type: textblock
25769 #: ../src/guestfs-actions.pod:918
25770 msgid "(Added in 1.11.17)"
25771 msgstr ""
25772
25773 #. type: =head2
25774 #: ../src/guestfs-actions.pod:920
25775 msgid "guestfs_btrfs_filesystem_resize_va"
25776 msgstr ""
25777
25778 #. type: verbatim
25779 #: ../src/guestfs-actions.pod:922
25780 #, no-wrap
25781 msgid ""
25782 " int\n"
25783 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25784 "                                     const char *mountpoint,\n"
25785 "                                     va_list args);\n"
25786 "\n"
25787 msgstr ""
25788
25789 #. type: textblock
25790 #: ../src/guestfs-actions.pod:927
25791 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25792 msgstr ""
25793
25794 #. type: =head2
25795 #: ../src/guestfs-actions.pod:931
25796 msgid "guestfs_btrfs_filesystem_resize_argv"
25797 msgstr ""
25798
25799 #. type: verbatim
25800 #: ../src/guestfs-actions.pod:933
25801 #, no-wrap
25802 msgid ""
25803 " int\n"
25804 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25805 "                                       const char *mountpoint,\n"
25806 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25807 "\n"
25808 msgstr ""
25809
25810 #. type: textblock
25811 #: ../src/guestfs-actions.pod:938
25812 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25813 msgstr ""
25814
25815 #. type: =head2
25816 #: ../src/guestfs-actions.pod:942
25817 msgid "guestfs_case_sensitive_path"
25818 msgstr ""
25819
25820 #. type: verbatim
25821 #: ../src/guestfs-actions.pod:944
25822 #, no-wrap
25823 msgid ""
25824 " char *\n"
25825 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25826 "                              const char *path);\n"
25827 "\n"
25828 msgstr ""
25829
25830 #. type: textblock
25831 #: ../src/guestfs-actions.pod:970
25832 msgid ""
25833 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
25834 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25835 "how the directories were originally created under Windows)."
25836 msgstr ""
25837
25838 #. type: textblock
25839 #: ../src/guestfs-actions.pod:978
25840 msgid "See also C<guestfs_realpath>."
25841 msgstr ""
25842
25843 #. type: textblock
25844 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7856
25845 msgid "(Added in 1.0.75)"
25846 msgstr ""
25847
25848 #. type: =head2
25849 #: ../src/guestfs-actions.pod:985
25850 msgid "guestfs_cat"
25851 msgstr ""
25852
25853 #. type: verbatim
25854 #: ../src/guestfs-actions.pod:987
25855 #, no-wrap
25856 msgid ""
25857 " char *\n"
25858 " guestfs_cat (guestfs_h *g,\n"
25859 "              const char *path);\n"
25860 "\n"
25861 msgstr ""
25862
25863 #. type: textblock
25864 #: ../src/guestfs-actions.pod:993
25865 msgid ""
25866 "Note that this function cannot correctly handle binary files (specifically, "
25867 "files containing C<\\0> character which is treated as end of string).  For "
25868 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25869 "functions which have a more complex interface."
25870 msgstr ""
25871
25872 #. type: textblock
25873 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
25874 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4306
25875 #: ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4793
25876 #: ../src/guestfs-actions.pod:4807 ../src/guestfs-actions.pod:6185
25877 #: ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:8009
25878 #: ../src/guestfs-actions.pod:8023
25879 msgid "(Added in 0.4)"
25880 msgstr ""
25881
25882 #. type: =head2
25883 #: ../src/guestfs-actions.pod:1006
25884 msgid "guestfs_checksum"
25885 msgstr ""
25886
25887 #. type: verbatim
25888 #: ../src/guestfs-actions.pod:1008
25889 #, no-wrap
25890 msgid ""
25891 " char *\n"
25892 " guestfs_checksum (guestfs_h *g,\n"
25893 "                   const char *csumtype,\n"
25894 "                   const char *path);\n"
25895 "\n"
25896 msgstr ""
25897
25898 #. type: textblock
25899 #: ../src/guestfs-actions.pod:1054
25900 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25901 msgstr ""
25902
25903 #. type: textblock
25904 #: ../src/guestfs-actions.pod:1056
25905 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25906 msgstr ""
25907
25908 #. type: textblock
25909 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
25910 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
25911 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
25912 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7712
25913 msgid "(Added in 1.0.2)"
25914 msgstr ""
25915
25916 #. type: =head2
25917 #: ../src/guestfs-actions.pod:1063
25918 msgid "guestfs_checksum_device"
25919 msgstr ""
25920
25921 #. type: verbatim
25922 #: ../src/guestfs-actions.pod:1065
25923 #, no-wrap
25924 msgid ""
25925 " char *\n"
25926 " guestfs_checksum_device (guestfs_h *g,\n"
25927 "                          const char *csumtype,\n"
25928 "                          const char *device);\n"
25929 "\n"
25930 msgstr ""
25931
25932 #. type: textblock
25933 #: ../src/guestfs-actions.pod:1070
25934 msgid ""
25935 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25936 "device named C<device>.  For the types of checksums supported see the "
25937 "C<guestfs_checksum> command."
25938 msgstr ""
25939
25940 #. type: textblock
25941 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5617
25942 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5786
25943 #: ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:5986
25944 #: ../src/guestfs-actions.pod:7621 ../src/guestfs-actions.pod:7635
25945 #: ../src/guestfs-actions.pod:8035
25946 msgid "(Added in 1.3.2)"
25947 msgstr ""
25948
25949 #. type: =head2
25950 #: ../src/guestfs-actions.pod:1079
25951 msgid "guestfs_checksums_out"
25952 msgstr ""
25953
25954 #. type: verbatim
25955 #: ../src/guestfs-actions.pod:1081
25956 #, no-wrap
25957 msgid ""
25958 " int\n"
25959 " guestfs_checksums_out (guestfs_h *g,\n"
25960 "                        const char *csumtype,\n"
25961 "                        const char *directory,\n"
25962 "                        const char *sumsfile);\n"
25963 "\n"
25964 msgstr ""
25965
25966 #. type: textblock
25967 #: ../src/guestfs-actions.pod:1101
25968 msgid "(Added in 1.3.7)"
25969 msgstr ""
25970
25971 #. type: =head2
25972 #: ../src/guestfs-actions.pod:1103
25973 msgid "guestfs_chmod"
25974 msgstr ""
25975
25976 #. type: verbatim
25977 #: ../src/guestfs-actions.pod:1105
25978 #, no-wrap
25979 msgid ""
25980 " int\n"
25981 " guestfs_chmod (guestfs_h *g,\n"
25982 "                int mode,\n"
25983 "                const char *path);\n"
25984 "\n"
25985 msgstr ""
25986
25987 #. type: =head2
25988 #: ../src/guestfs-actions.pod:1123
25989 msgid "guestfs_chown"
25990 msgstr ""
25991
25992 #. type: verbatim
25993 #: ../src/guestfs-actions.pod:1125
25994 #, no-wrap
25995 msgid ""
25996 " int\n"
25997 " guestfs_chown (guestfs_h *g,\n"
25998 "                int owner,\n"
25999 "                int group,\n"
26000 "                const char *path);\n"
26001 "\n"
26002 msgstr ""
26003
26004 #. type: =head2
26005 #: ../src/guestfs-actions.pod:1141
26006 msgid "guestfs_command"
26007 msgstr ""
26008
26009 #. type: verbatim
26010 #: ../src/guestfs-actions.pod:1143
26011 #, no-wrap
26012 msgid ""
26013 " char *\n"
26014 " guestfs_command (guestfs_h *g,\n"
26015 "                  char *const *arguments);\n"
26016 "\n"
26017 msgstr ""
26018
26019 #. type: textblock
26020 #: ../src/guestfs-actions.pod:1152
26021 msgid ""
26022 "The single parameter is an argv-style list of arguments.  The first element "
26023 "is the name of the program to run.  Subsequent elements are parameters.  The "
26024 "list must be non-empty (ie. must contain a program name).  Note that the "
26025 "command runs directly, and is I<not> invoked via the shell (see "
26026 "C<guestfs_sh>)."
26027 msgstr ""
26028
26029 #. type: textblock
26030 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
26031 #: ../src/guestfs-actions.pod:2027
26032 msgid "(Added in 0.9.1)"
26033 msgstr ""
26034
26035 #. type: =head2
26036 #: ../src/guestfs-actions.pod:1185
26037 msgid "guestfs_command_lines"
26038 msgstr ""
26039
26040 #. type: verbatim
26041 #: ../src/guestfs-actions.pod:1187
26042 #, no-wrap
26043 msgid ""
26044 " char **\n"
26045 " guestfs_command_lines (guestfs_h *g,\n"
26046 "                        char *const *arguments);\n"
26047 "\n"
26048 msgstr ""
26049
26050 #. type: textblock
26051 #: ../src/guestfs-actions.pod:1191
26052 msgid ""
26053 "This is the same as C<guestfs_command>, but splits the result into a list of "
26054 "lines."
26055 msgstr ""
26056
26057 #. type: textblock
26058 #: ../src/guestfs-actions.pod:1194
26059 msgid "See also: C<guestfs_sh_lines>"
26060 msgstr ""
26061
26062 #. type: =head2
26063 #: ../src/guestfs-actions.pod:1205
26064 msgid "guestfs_compress_device_out"
26065 msgstr ""
26066
26067 #. type: verbatim
26068 #: ../src/guestfs-actions.pod:1207
26069 #, no-wrap
26070 msgid ""
26071 " int\n"
26072 " guestfs_compress_device_out (guestfs_h *g,\n"
26073 "                              const char *ctype,\n"
26074 "                              const char *device,\n"
26075 "                              const char *zdevice,\n"
26076 "                              ...);\n"
26077 "\n"
26078 msgstr ""
26079
26080 #. type: verbatim
26081 #: ../src/guestfs-actions.pod:1219
26082 #, no-wrap
26083 msgid ""
26084 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26085 "\n"
26086 msgstr ""
26087
26088 #. type: textblock
26089 #: ../src/guestfs-actions.pod:1224
26090 msgid ""
26091 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26092 "C<guestfs_compress_out>."
26093 msgstr ""
26094
26095 #. type: textblock
26096 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
26097 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:6902
26098 msgid "(Added in 1.13.15)"
26099 msgstr ""
26100
26101 #. type: =head2
26102 #: ../src/guestfs-actions.pod:1231
26103 msgid "guestfs_compress_device_out_va"
26104 msgstr ""
26105
26106 #. type: verbatim
26107 #: ../src/guestfs-actions.pod:1233
26108 #, no-wrap
26109 msgid ""
26110 " int\n"
26111 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26112 "                                 const char *ctype,\n"
26113 "                                 const char *device,\n"
26114 "                                 const char *zdevice,\n"
26115 "                                 va_list args);\n"
26116 "\n"
26117 msgstr ""
26118
26119 #. type: textblock
26120 #: ../src/guestfs-actions.pod:1240
26121 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26122 msgstr ""
26123
26124 #. type: =head2
26125 #: ../src/guestfs-actions.pod:1244
26126 msgid "guestfs_compress_device_out_argv"
26127 msgstr ""
26128
26129 #. type: verbatim
26130 #: ../src/guestfs-actions.pod:1246
26131 #, no-wrap
26132 msgid ""
26133 " int\n"
26134 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26135 "                                   const char *ctype,\n"
26136 "                                   const char *device,\n"
26137 "                                   const char *zdevice,\n"
26138 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26139 "\n"
26140 msgstr ""
26141
26142 #. type: textblock
26143 #: ../src/guestfs-actions.pod:1253
26144 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26145 msgstr ""
26146
26147 #. type: =head2
26148 #: ../src/guestfs-actions.pod:1257
26149 msgid "guestfs_compress_out"
26150 msgstr ""
26151
26152 #. type: verbatim
26153 #: ../src/guestfs-actions.pod:1259
26154 #, no-wrap
26155 msgid ""
26156 " int\n"
26157 " guestfs_compress_out (guestfs_h *g,\n"
26158 "                       const char *ctype,\n"
26159 "                       const char *file,\n"
26160 "                       const char *zfile,\n"
26161 "                       ...);\n"
26162 "\n"
26163 msgstr ""
26164
26165 #. type: verbatim
26166 #: ../src/guestfs-actions.pod:1271
26167 #, no-wrap
26168 msgid ""
26169 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26170 "\n"
26171 msgstr ""
26172
26173 #. type: =head2
26174 #: ../src/guestfs-actions.pod:1290
26175 msgid "guestfs_compress_out_va"
26176 msgstr ""
26177
26178 #. type: verbatim
26179 #: ../src/guestfs-actions.pod:1292
26180 #, no-wrap
26181 msgid ""
26182 " int\n"
26183 " guestfs_compress_out_va (guestfs_h *g,\n"
26184 "                          const char *ctype,\n"
26185 "                          const char *file,\n"
26186 "                          const char *zfile,\n"
26187 "                          va_list args);\n"
26188 "\n"
26189 msgstr ""
26190
26191 #. type: textblock
26192 #: ../src/guestfs-actions.pod:1299
26193 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26194 msgstr ""
26195
26196 #. type: =head2
26197 #: ../src/guestfs-actions.pod:1303
26198 msgid "guestfs_compress_out_argv"
26199 msgstr ""
26200
26201 #. type: verbatim
26202 #: ../src/guestfs-actions.pod:1305
26203 #, no-wrap
26204 msgid ""
26205 " int\n"
26206 " guestfs_compress_out_argv (guestfs_h *g,\n"
26207 "                            const char *ctype,\n"
26208 "                            const char *file,\n"
26209 "                            const char *zfile,\n"
26210 "                            const struct guestfs_compress_out_argv *optargs);\n"
26211 "\n"
26212 msgstr ""
26213
26214 #. type: textblock
26215 #: ../src/guestfs-actions.pod:1312
26216 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26217 msgstr ""
26218
26219 #. type: =head2
26220 #: ../src/guestfs-actions.pod:1316
26221 msgid "guestfs_config"
26222 msgstr ""
26223
26224 #. type: verbatim
26225 #: ../src/guestfs-actions.pod:1318
26226 #, no-wrap
26227 msgid ""
26228 " int\n"
26229 " guestfs_config (guestfs_h *g,\n"
26230 "                 const char *qemuparam,\n"
26231 "                 const char *qemuvalue);\n"
26232 "\n"
26233 msgstr ""
26234
26235 #. type: =head2
26236 #: ../src/guestfs-actions.pod:1336
26237 msgid "guestfs_copy_device_to_device"
26238 msgstr ""
26239
26240 #. type: verbatim
26241 #: ../src/guestfs-actions.pod:1338
26242 #, no-wrap
26243 msgid ""
26244 " int\n"
26245 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26246 "                                const char *src,\n"
26247 "                                const char *dest,\n"
26248 "                                ...);\n"
26249 "\n"
26250 msgstr ""
26251
26252 #. type: verbatim
26253 #: ../src/guestfs-actions.pod:1349
26254 #, no-wrap
26255 msgid ""
26256 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26257 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26258 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26259 "\n"
26260 msgstr ""
26261
26262 #. type: textblock
26263 #: ../src/guestfs-actions.pod:1353
26264 msgid ""
26265 "The four calls C<guestfs_copy_device_to_device>, "
26266 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26267 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26268 "destination (device|file)."
26269 msgstr ""
26270
26271 #. type: textblock
26272 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
26273 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
26274 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
26275 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
26276 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
26277 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7707
26278 #: ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:8248
26279 #: ../src/guestfs-actions.pod:8271
26280 msgid ""
26281 "This long-running command can generate progress notification messages so "
26282 "that the caller can display a progress bar or indicator.  To receive these "
26283 "messages, the caller must register a progress event callback.  See L<guestfs"
26284 "(3)/GUESTFS_EVENT_PROGRESS>."
26285 msgstr ""
26286
26287 #. type: textblock
26288 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
26289 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
26290 #: ../src/guestfs-actions.pod:6042
26291 msgid "(Added in 1.13.25)"
26292 msgstr ""
26293
26294 #. type: =head2
26295 #: ../src/guestfs-actions.pod:1381
26296 msgid "guestfs_copy_device_to_device_va"
26297 msgstr ""
26298
26299 #. type: verbatim
26300 #: ../src/guestfs-actions.pod:1383
26301 #, no-wrap
26302 msgid ""
26303 " int\n"
26304 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26305 "                                   const char *src,\n"
26306 "                                   const char *dest,\n"
26307 "                                   va_list args);\n"
26308 "\n"
26309 msgstr ""
26310
26311 #. type: textblock
26312 #: ../src/guestfs-actions.pod:1389
26313 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26314 msgstr ""
26315
26316 #. type: =head2
26317 #: ../src/guestfs-actions.pod:1393
26318 msgid "guestfs_copy_device_to_device_argv"
26319 msgstr ""
26320
26321 #. type: verbatim
26322 #: ../src/guestfs-actions.pod:1395
26323 #, no-wrap
26324 msgid ""
26325 " int\n"
26326 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26327 "                                     const char *src,\n"
26328 "                                     const char *dest,\n"
26329 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
26330 "\n"
26331 msgstr ""
26332
26333 #. type: textblock
26334 #: ../src/guestfs-actions.pod:1401
26335 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26336 msgstr ""
26337
26338 #. type: =head2
26339 #: ../src/guestfs-actions.pod:1405
26340 msgid "guestfs_copy_device_to_file"
26341 msgstr ""
26342
26343 #. type: verbatim
26344 #: ../src/guestfs-actions.pod:1407
26345 #, no-wrap
26346 msgid ""
26347 " int\n"
26348 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26349 "                              const char *src,\n"
26350 "                              const char *dest,\n"
26351 "                              ...);\n"
26352 "\n"
26353 msgstr ""
26354
26355 #. type: verbatim
26356 #: ../src/guestfs-actions.pod:1418
26357 #, no-wrap
26358 msgid ""
26359 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26360 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26361 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26362 "\n"
26363 msgstr ""
26364
26365 #. type: textblock
26366 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
26367 #: ../src/guestfs-actions.pod:1528
26368 msgid ""
26369 "See C<guestfs_copy_device_to_device> for a general overview of this call."
26370 msgstr ""
26371
26372 #. type: =head2
26373 #: ../src/guestfs-actions.pod:1434
26374 msgid "guestfs_copy_device_to_file_va"
26375 msgstr ""
26376
26377 #. type: verbatim
26378 #: ../src/guestfs-actions.pod:1436
26379 #, no-wrap
26380 msgid ""
26381 " int\n"
26382 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26383 "                                 const char *src,\n"
26384 "                                 const char *dest,\n"
26385 "                                 va_list args);\n"
26386 "\n"
26387 msgstr ""
26388
26389 #. type: textblock
26390 #: ../src/guestfs-actions.pod:1442
26391 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26392 msgstr ""
26393
26394 #. type: =head2
26395 #: ../src/guestfs-actions.pod:1446
26396 msgid "guestfs_copy_device_to_file_argv"
26397 msgstr ""
26398
26399 #. type: verbatim
26400 #: ../src/guestfs-actions.pod:1448
26401 #, no-wrap
26402 msgid ""
26403 " int\n"
26404 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26405 "                                   const char *src,\n"
26406 "                                   const char *dest,\n"
26407 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
26408 "\n"
26409 msgstr ""
26410
26411 #. type: textblock
26412 #: ../src/guestfs-actions.pod:1454
26413 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26414 msgstr ""
26415
26416 #. type: =head2
26417 #: ../src/guestfs-actions.pod:1458
26418 msgid "guestfs_copy_file_to_device"
26419 msgstr ""
26420
26421 #. type: verbatim
26422 #: ../src/guestfs-actions.pod:1460
26423 #, no-wrap
26424 msgid ""
26425 " int\n"
26426 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26427 "                              const char *src,\n"
26428 "                              const char *dest,\n"
26429 "                              ...);\n"
26430 "\n"
26431 msgstr ""
26432
26433 #. type: verbatim
26434 #: ../src/guestfs-actions.pod:1471
26435 #, no-wrap
26436 msgid ""
26437 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26438 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26439 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26440 "\n"
26441 msgstr ""
26442
26443 #. type: =head2
26444 #: ../src/guestfs-actions.pod:1487
26445 msgid "guestfs_copy_file_to_device_va"
26446 msgstr ""
26447
26448 #. type: verbatim
26449 #: ../src/guestfs-actions.pod:1489
26450 #, no-wrap
26451 msgid ""
26452 " int\n"
26453 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26454 "                                 const char *src,\n"
26455 "                                 const char *dest,\n"
26456 "                                 va_list args);\n"
26457 "\n"
26458 msgstr ""
26459
26460 #. type: textblock
26461 #: ../src/guestfs-actions.pod:1495
26462 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26463 msgstr ""
26464
26465 #. type: =head2
26466 #: ../src/guestfs-actions.pod:1499
26467 msgid "guestfs_copy_file_to_device_argv"
26468 msgstr ""
26469
26470 #. type: verbatim
26471 #: ../src/guestfs-actions.pod:1501
26472 #, no-wrap
26473 msgid ""
26474 " int\n"
26475 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26476 "                                   const char *src,\n"
26477 "                                   const char *dest,\n"
26478 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
26479 "\n"
26480 msgstr ""
26481
26482 #. type: textblock
26483 #: ../src/guestfs-actions.pod:1507
26484 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26485 msgstr ""
26486
26487 #. type: =head2
26488 #: ../src/guestfs-actions.pod:1511
26489 msgid "guestfs_copy_file_to_file"
26490 msgstr ""
26491
26492 #. type: verbatim
26493 #: ../src/guestfs-actions.pod:1513
26494 #, no-wrap
26495 msgid ""
26496 " int\n"
26497 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26498 "                            const char *src,\n"
26499 "                            const char *dest,\n"
26500 "                            ...);\n"
26501 "\n"
26502 msgstr ""
26503
26504 #. type: verbatim
26505 #: ../src/guestfs-actions.pod:1524
26506 #, no-wrap
26507 msgid ""
26508 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26509 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26510 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26511 "\n"
26512 msgstr ""
26513
26514 #. type: textblock
26515 #: ../src/guestfs-actions.pod:1531
26516 msgid ""
26517 "This is B<not> the function you want for copying files.  This is for copying "
26518 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26519 "C<guestfs_mv> for general file copying and moving functions."
26520 msgstr ""
26521
26522 #. type: =head2
26523 #: ../src/guestfs-actions.pod:1545
26524 msgid "guestfs_copy_file_to_file_va"
26525 msgstr ""
26526
26527 #. type: verbatim
26528 #: ../src/guestfs-actions.pod:1547
26529 #, no-wrap
26530 msgid ""
26531 " int\n"
26532 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26533 "                               const char *src,\n"
26534 "                               const char *dest,\n"
26535 "                               va_list args);\n"
26536 "\n"
26537 msgstr ""
26538
26539 #. type: textblock
26540 #: ../src/guestfs-actions.pod:1553
26541 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
26542 msgstr ""
26543
26544 #. type: =head2
26545 #: ../src/guestfs-actions.pod:1557
26546 msgid "guestfs_copy_file_to_file_argv"
26547 msgstr ""
26548
26549 #. type: verbatim
26550 #: ../src/guestfs-actions.pod:1559
26551 #, no-wrap
26552 msgid ""
26553 " int\n"
26554 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
26555 "                                 const char *src,\n"
26556 "                                 const char *dest,\n"
26557 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
26558 "\n"
26559 msgstr ""
26560
26561 #. type: textblock
26562 #: ../src/guestfs-actions.pod:1565
26563 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
26564 msgstr ""
26565
26566 #. type: =head2
26567 #: ../src/guestfs-actions.pod:1569
26568 msgid "guestfs_copy_size"
26569 msgstr ""
26570
26571 #. type: verbatim
26572 #: ../src/guestfs-actions.pod:1571
26573 #, no-wrap
26574 msgid ""
26575 " int\n"
26576 " guestfs_copy_size (guestfs_h *g,\n"
26577 "                    const char *src,\n"
26578 "                    const char *dest,\n"
26579 "                    int64_t size);\n"
26580 "\n"
26581 msgstr ""
26582
26583 #. type: textblock
26584 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
26585 msgid ""
26586 "I<This function is deprecated.> In new code, use the L</"
26587 "guestfs_copy_device_to_device> call instead."
26588 msgstr ""
26589
26590 #. type: textblock
26591 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4820
26592 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:7942
26593 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8048
26594 msgid "(Added in 1.0.87)"
26595 msgstr ""
26596
26597 #. type: =head2
26598 #: ../src/guestfs-actions.pod:1599
26599 msgid "guestfs_cp"
26600 msgstr ""
26601
26602 #. type: verbatim
26603 #: ../src/guestfs-actions.pod:1601
26604 #, no-wrap
26605 msgid ""
26606 " int\n"
26607 " guestfs_cp (guestfs_h *g,\n"
26608 "             const char *src,\n"
26609 "             const char *dest);\n"
26610 "\n"
26611 msgstr ""
26612
26613 #. type: textblock
26614 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
26615 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
26616 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5564
26617 #: ../src/guestfs-actions.pod:6056
26618 msgid "(Added in 1.0.18)"
26619 msgstr ""
26620
26621 #. type: =head2
26622 #: ../src/guestfs-actions.pod:1613
26623 msgid "guestfs_cp_a"
26624 msgstr ""
26625
26626 #. type: verbatim
26627 #: ../src/guestfs-actions.pod:1615
26628 #, no-wrap
26629 msgid ""
26630 " int\n"
26631 " guestfs_cp_a (guestfs_h *g,\n"
26632 "               const char *src,\n"
26633 "               const char *dest);\n"
26634 "\n"
26635 msgstr ""
26636
26637 #. type: =head2
26638 #: ../src/guestfs-actions.pod:1627
26639 msgid "guestfs_dd"
26640 msgstr ""
26641
26642 #. type: verbatim
26643 #: ../src/guestfs-actions.pod:1629
26644 #, no-wrap
26645 msgid ""
26646 " int\n"
26647 " guestfs_dd (guestfs_h *g,\n"
26648 "             const char *src,\n"
26649 "             const char *dest);\n"
26650 "\n"
26651 msgstr ""
26652
26653 #. type: textblock
26654 #: ../src/guestfs-actions.pod:1646
26655 msgid ""
26656 "If the destination is a device, it must be as large or larger than the "
26657 "source file or device, otherwise the copy will fail.  This command cannot do "
26658 "partial copies (see C<guestfs_copy_device_to_device>)."
26659 msgstr ""
26660
26661 #. type: =head2
26662 #: ../src/guestfs-actions.pod:1655
26663 msgid "guestfs_df"
26664 msgstr ""
26665
26666 #. type: verbatim
26667 #: ../src/guestfs-actions.pod:1657
26668 #, no-wrap
26669 msgid ""
26670 " char *\n"
26671 " guestfs_df (guestfs_h *g);\n"
26672 "\n"
26673 msgstr ""
26674
26675 #. type: textblock
26676 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
26677 msgid ""
26678 "This command is mostly useful for interactive sessions.  It is I<not> "
26679 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26680 "from programs."
26681 msgstr ""
26682
26683 #. type: textblock
26684 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
26685 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
26686 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
26687 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:5464
26688 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7469
26689 #: ../src/guestfs-actions.pod:8088 ../src/guestfs-actions.pod:8101
26690 #: ../src/guestfs-actions.pod:8114
26691 msgid "(Added in 1.0.54)"
26692 msgstr ""
26693
26694 #. type: =head2
26695 #: ../src/guestfs-actions.pod:1671
26696 msgid "guestfs_df_h"
26697 msgstr ""
26698
26699 #. type: verbatim
26700 #: ../src/guestfs-actions.pod:1673
26701 #, no-wrap
26702 msgid ""
26703 " char *\n"
26704 " guestfs_df_h (guestfs_h *g);\n"
26705 "\n"
26706 msgstr ""
26707
26708 #. type: =head2
26709 #: ../src/guestfs-actions.pod:1688
26710 msgid "guestfs_dmesg"
26711 msgstr ""
26712
26713 #. type: verbatim
26714 #: ../src/guestfs-actions.pod:1690
26715 #, no-wrap
26716 msgid ""
26717 " char *\n"
26718 " guestfs_dmesg (guestfs_h *g);\n"
26719 "\n"
26720 msgstr ""
26721
26722 #. type: textblock
26723 #: ../src/guestfs-actions.pod:1697
26724 msgid ""
26725 "Another way to get the same information is to enable verbose messages with "
26726 "C<guestfs_set_verbose> or by setting the environment variable "
26727 "C<LIBGUESTFS_DEBUG=1> before running the program."
26728 msgstr ""
26729
26730 #. type: =head2
26731 #: ../src/guestfs-actions.pod:1707
26732 msgid "guestfs_download"
26733 msgstr ""
26734
26735 #. type: verbatim
26736 #: ../src/guestfs-actions.pod:1709
26737 #, no-wrap
26738 msgid ""
26739 " int\n"
26740 " guestfs_download (guestfs_h *g,\n"
26741 "                   const char *remotefilename,\n"
26742 "                   const char *filename);\n"
26743 "\n"
26744 msgstr ""
26745
26746 #. type: textblock
26747 #: ../src/guestfs-actions.pod:1719
26748 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26749 msgstr ""
26750
26751 #. type: =head2
26752 #: ../src/guestfs-actions.pod:1730
26753 msgid "guestfs_download_offset"
26754 msgstr ""
26755
26756 #. type: verbatim
26757 #: ../src/guestfs-actions.pod:1732
26758 #, no-wrap
26759 msgid ""
26760 " int\n"
26761 " guestfs_download_offset (guestfs_h *g,\n"
26762 "                          const char *remotefilename,\n"
26763 "                          const char *filename,\n"
26764 "                          int64_t offset,\n"
26765 "                          int64_t size);\n"
26766 "\n"
26767 msgstr ""
26768
26769 #. type: textblock
26770 #: ../src/guestfs-actions.pod:1745
26771 msgid ""
26772 "Note that there is no limit on the amount of data that can be downloaded "
26773 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26774 "full amount unless an error occurs."
26775 msgstr ""
26776
26777 #. type: textblock
26778 #: ../src/guestfs-actions.pod:1750
26779 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26780 msgstr ""
26781
26782 #. type: textblock
26783 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:7746
26784 msgid "(Added in 1.5.17)"
26785 msgstr ""
26786
26787 #. type: =head2
26788 #: ../src/guestfs-actions.pod:1761
26789 msgid "guestfs_drop_caches"
26790 msgstr ""
26791
26792 #. type: verbatim
26793 #: ../src/guestfs-actions.pod:1763
26794 #, no-wrap
26795 msgid ""
26796 " int\n"
26797 " guestfs_drop_caches (guestfs_h *g,\n"
26798 "                      int whattodrop);\n"
26799 "\n"
26800 msgstr ""
26801
26802 #. type: =head2
26803 #: ../src/guestfs-actions.pod:1781
26804 msgid "guestfs_du"
26805 msgstr ""
26806
26807 #. type: verbatim
26808 #: ../src/guestfs-actions.pod:1783
26809 #, no-wrap
26810 msgid ""
26811 " int64_t\n"
26812 " guestfs_du (guestfs_h *g,\n"
26813 "             const char *path);\n"
26814 "\n"
26815 msgstr ""
26816
26817 #. type: =head2
26818 #: ../src/guestfs-actions.pod:1806
26819 msgid "guestfs_e2fsck_f"
26820 msgstr ""
26821
26822 #. type: verbatim
26823 #: ../src/guestfs-actions.pod:1808
26824 #, no-wrap
26825 msgid ""
26826 " int\n"
26827 " guestfs_e2fsck_f (guestfs_h *g,\n"
26828 "                   const char *device);\n"
26829 "\n"
26830 msgstr ""
26831
26832 #. type: textblock
26833 #: ../src/guestfs-actions.pod:1816
26834 msgid ""
26835 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26836 "Normally you should use C<guestfs_fsck>."
26837 msgstr ""
26838
26839 #. type: textblock
26840 #: ../src/guestfs-actions.pod:1821
26841 msgid "(Added in 1.0.29)"
26842 msgstr ""
26843
26844 #. type: =head2
26845 #: ../src/guestfs-actions.pod:1823
26846 msgid "guestfs_echo_daemon"
26847 msgstr ""
26848
26849 #. type: verbatim
26850 #: ../src/guestfs-actions.pod:1825
26851 #, no-wrap
26852 msgid ""
26853 " char *\n"
26854 " guestfs_echo_daemon (guestfs_h *g,\n"
26855 "                      char *const *words);\n"
26856 "\n"
26857 msgstr ""
26858
26859 #. type: textblock
26860 #: ../src/guestfs-actions.pod:1834
26861 msgid "See also C<guestfs_ping_daemon>."
26862 msgstr ""
26863
26864 #. type: textblock
26865 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
26866 #: ../src/guestfs-actions.pod:6926
26867 msgid "(Added in 1.0.69)"
26868 msgstr ""
26869
26870 #. type: =head2
26871 #: ../src/guestfs-actions.pod:1841
26872 msgid "guestfs_egrep"
26873 msgstr ""
26874
26875 #. type: verbatim
26876 #: ../src/guestfs-actions.pod:1843
26877 #, no-wrap
26878 msgid ""
26879 " char **\n"
26880 " guestfs_egrep (guestfs_h *g,\n"
26881 "                const char *regex,\n"
26882 "                const char *path);\n"
26883 "\n"
26884 msgstr ""
26885
26886 #. type: textblock
26887 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
26888 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
26889 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
26890 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
26891 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
26892 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
26893 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4319
26894 #: ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4346
26895 #: ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:5352
26896 #: ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6439
26897 #: ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7325
26898 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7351
26899 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386
26900 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7412
26901 #: ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8225
26902 #: ../src/guestfs-actions.pod:8316 ../src/guestfs-actions.pod:8335
26903 #: ../src/guestfs-actions.pod:8381 ../src/guestfs-actions.pod:8400
26904 msgid "(Added in 1.0.66)"
26905 msgstr ""
26906
26907 #. type: =head2
26908 #: ../src/guestfs-actions.pod:1860
26909 msgid "guestfs_egrepi"
26910 msgstr ""
26911
26912 #. type: verbatim
26913 #: ../src/guestfs-actions.pod:1862
26914 #, no-wrap
26915 msgid ""
26916 " char **\n"
26917 " guestfs_egrepi (guestfs_h *g,\n"
26918 "                 const char *regex,\n"
26919 "                 const char *path);\n"
26920 "\n"
26921 msgstr ""
26922
26923 #. type: =head2
26924 #: ../src/guestfs-actions.pod:1879
26925 msgid "guestfs_equal"
26926 msgstr ""
26927
26928 #. type: verbatim
26929 #: ../src/guestfs-actions.pod:1881
26930 #, no-wrap
26931 msgid ""
26932 " int\n"
26933 " guestfs_equal (guestfs_h *g,\n"
26934 "                const char *file1,\n"
26935 "                const char *file2);\n"
26936 "\n"
26937 msgstr ""
26938
26939 #. type: =head2
26940 #: ../src/guestfs-actions.pod:1895
26941 msgid "guestfs_exists"
26942 msgstr ""
26943
26944 #. type: verbatim
26945 #: ../src/guestfs-actions.pod:1897
26946 #, no-wrap
26947 msgid ""
26948 " int\n"
26949 " guestfs_exists (guestfs_h *g,\n"
26950 "                 const char *path);\n"
26951 "\n"
26952 msgstr ""
26953
26954 #. type: textblock
26955 #: ../src/guestfs-actions.pod:1904
26956 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26957 msgstr ""
26958
26959 #. type: =head2
26960 #: ../src/guestfs-actions.pod:1910
26961 msgid "guestfs_fallocate"
26962 msgstr ""
26963
26964 #. type: verbatim
26965 #: ../src/guestfs-actions.pod:1912
26966 #, no-wrap
26967 msgid ""
26968 " int\n"
26969 " guestfs_fallocate (guestfs_h *g,\n"
26970 "                    const char *path,\n"
26971 "                    int len);\n"
26972 "\n"
26973 msgstr ""
26974
26975 #. type: textblock
26976 #: ../src/guestfs-actions.pod:1917
26977 msgid ""
26978 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26979 "call instead."
26980 msgstr ""
26981
26982 #. type: =head2
26983 #: ../src/guestfs-actions.pod:1936
26984 msgid "guestfs_fallocate64"
26985 msgstr ""
26986
26987 #. type: verbatim
26988 #: ../src/guestfs-actions.pod:1938
26989 #, no-wrap
26990 msgid ""
26991 " int\n"
26992 " guestfs_fallocate64 (guestfs_h *g,\n"
26993 "                      const char *path,\n"
26994 "                      int64_t len);\n"
26995 "\n"
26996 msgstr ""
26997
26998 #. type: textblock
26999 #: ../src/guestfs-actions.pod:1947
27000 msgid ""
27001 "Note that this call allocates disk blocks for the file.  To create a sparse "
27002 "file use C<guestfs_truncate_size> instead."
27003 msgstr ""
27004
27005 #. type: textblock
27006 #: ../src/guestfs-actions.pod:1950
27007 msgid ""
27008 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27009 "oversight it only allowed 30 bit lengths to be specified, effectively "
27010 "limiting the maximum size of files created through that call to 1GB."
27011 msgstr ""
27012
27013 #. type: textblock
27014 #: ../src/guestfs-actions.pod:1961
27015 msgid "(Added in 1.3.17)"
27016 msgstr ""
27017
27018 #. type: =head2
27019 #: ../src/guestfs-actions.pod:1963
27020 msgid "guestfs_fgrep"
27021 msgstr ""
27022
27023 #. type: verbatim
27024 #: ../src/guestfs-actions.pod:1965
27025 #, no-wrap
27026 msgid ""
27027 " char **\n"
27028 " guestfs_fgrep (guestfs_h *g,\n"
27029 "                const char *pattern,\n"
27030 "                const char *path);\n"
27031 "\n"
27032 msgstr ""
27033
27034 #. type: =head2
27035 #: ../src/guestfs-actions.pod:1982
27036 msgid "guestfs_fgrepi"
27037 msgstr ""
27038
27039 #. type: verbatim
27040 #: ../src/guestfs-actions.pod:1984
27041 #, no-wrap
27042 msgid ""
27043 " char **\n"
27044 " guestfs_fgrepi (guestfs_h *g,\n"
27045 "                 const char *pattern,\n"
27046 "                 const char *path);\n"
27047 "\n"
27048 msgstr ""
27049
27050 #. type: =head2
27051 #: ../src/guestfs-actions.pod:2001
27052 msgid "guestfs_file"
27053 msgstr ""
27054
27055 #. type: verbatim
27056 #: ../src/guestfs-actions.pod:2003
27057 #, no-wrap
27058 msgid ""
27059 " char *\n"
27060 " guestfs_file (guestfs_h *g,\n"
27061 "               const char *path);\n"
27062 "\n"
27063 msgstr ""
27064
27065 #. type: textblock
27066 #: ../src/guestfs-actions.pod:2021
27067 msgid ""
27068 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27069 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27070 msgstr ""
27071
27072 #. type: =head2
27073 #: ../src/guestfs-actions.pod:2029
27074 msgid "guestfs_file_architecture"
27075 msgstr ""
27076
27077 #. type: verbatim
27078 #: ../src/guestfs-actions.pod:2031
27079 #, no-wrap
27080 msgid ""
27081 " char *\n"
27082 " guestfs_file_architecture (guestfs_h *g,\n"
27083 "                            const char *filename);\n"
27084 "\n"
27085 msgstr ""
27086
27087 #. type: textblock
27088 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
27089 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
27090 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
27091 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
27092 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
27093 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
27094 #: ../src/guestfs-actions.pod:4008
27095 msgid "(Added in 1.5.3)"
27096 msgstr ""
27097
27098 #. type: =head2
27099 #: ../src/guestfs-actions.pod:2141
27100 msgid "guestfs_filesize"
27101 msgstr ""
27102
27103 #. type: verbatim
27104 #: ../src/guestfs-actions.pod:2143
27105 #, no-wrap
27106 msgid ""
27107 " int64_t\n"
27108 " guestfs_filesize (guestfs_h *g,\n"
27109 "                   const char *file);\n"
27110 "\n"
27111 msgstr ""
27112
27113 #. type: textblock
27114 #: ../src/guestfs-actions.pod:2149
27115 msgid ""
27116 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27117 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27118 "devices, use C<guestfs_blockdev_getsize64>."
27119 msgstr ""
27120
27121 #. type: textblock
27122 #: ../src/guestfs-actions.pod:2155
27123 msgid "(Added in 1.0.82)"
27124 msgstr ""
27125
27126 #. type: =head2
27127 #: ../src/guestfs-actions.pod:2157
27128 msgid "guestfs_fill"
27129 msgstr ""
27130
27131 #. type: verbatim
27132 #: ../src/guestfs-actions.pod:2159
27133 #, no-wrap
27134 msgid ""
27135 " int\n"
27136 " guestfs_fill (guestfs_h *g,\n"
27137 "               int c,\n"
27138 "               int len,\n"
27139 "               const char *path);\n"
27140 "\n"
27141 msgstr ""
27142
27143 #. type: textblock
27144 #: ../src/guestfs-actions.pod:2169
27145 msgid ""
27146 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27147 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27148 "bytes use C<guestfs_fill_pattern>."
27149 msgstr ""
27150
27151 #. type: textblock
27152 #: ../src/guestfs-actions.pod:2181
27153 msgid "(Added in 1.0.79)"
27154 msgstr ""
27155
27156 #. type: =head2
27157 #: ../src/guestfs-actions.pod:2183
27158 msgid "guestfs_fill_pattern"
27159 msgstr ""
27160
27161 #. type: verbatim
27162 #: ../src/guestfs-actions.pod:2185
27163 #, no-wrap
27164 msgid ""
27165 " int\n"
27166 " guestfs_fill_pattern (guestfs_h *g,\n"
27167 "                       const char *pattern,\n"
27168 "                       int len,\n"
27169 "                       const char *path);\n"
27170 "\n"
27171 msgstr ""
27172
27173 #. type: textblock
27174 #: ../src/guestfs-actions.pod:2191
27175 msgid ""
27176 "This function is like C<guestfs_fill> except that it creates a new file of "
27177 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27178 "pattern is truncated if necessary to ensure the length of the file is "
27179 "exactly C<len> bytes."
27180 msgstr ""
27181
27182 #. type: textblock
27183 #: ../src/guestfs-actions.pod:2203
27184 msgid "(Added in 1.3.12)"
27185 msgstr ""
27186
27187 #. type: =head2
27188 #: ../src/guestfs-actions.pod:2205
27189 msgid "guestfs_find"
27190 msgstr ""
27191
27192 #. type: verbatim
27193 #: ../src/guestfs-actions.pod:2207
27194 #, no-wrap
27195 msgid ""
27196 " char **\n"
27197 " guestfs_find (guestfs_h *g,\n"
27198 "               const char *directory);\n"
27199 "\n"
27200 msgstr ""
27201
27202 #. type: textblock
27203 #: ../src/guestfs-actions.pod:2223
27204 msgid ""
27205 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27206 msgstr ""
27207
27208 #. type: textblock
27209 #: ../src/guestfs-actions.pod:2236
27210 msgid "See also C<guestfs_find0>."
27211 msgstr ""
27212
27213 #. type: textblock
27214 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4757
27215 #: ../src/guestfs-actions.pod:6474
27216 msgid "(Added in 1.0.27)"
27217 msgstr ""
27218
27219 #. type: =head2
27220 #: ../src/guestfs-actions.pod:2247
27221 msgid "guestfs_find0"
27222 msgstr ""
27223
27224 #. type: verbatim
27225 #: ../src/guestfs-actions.pod:2249
27226 #, no-wrap
27227 msgid ""
27228 " int\n"
27229 " guestfs_find0 (guestfs_h *g,\n"
27230 "                const char *directory,\n"
27231 "                const char *files);\n"
27232 "\n"
27233 msgstr ""
27234
27235 #. type: textblock
27236 #: ../src/guestfs-actions.pod:2258
27237 msgid ""
27238 "This command works the same way as C<guestfs_find> with the following "
27239 "exceptions:"
27240 msgstr ""
27241
27242 #. type: textblock
27243 #: ../src/guestfs-actions.pod:2285
27244 msgid "(Added in 1.0.74)"
27245 msgstr ""
27246
27247 #. type: =head2
27248 #: ../src/guestfs-actions.pod:2287
27249 msgid "guestfs_findfs_label"
27250 msgstr ""
27251
27252 #. type: verbatim
27253 #: ../src/guestfs-actions.pod:2289
27254 #, no-wrap
27255 msgid ""
27256 " char *\n"
27257 " guestfs_findfs_label (guestfs_h *g,\n"
27258 "                       const char *label);\n"
27259 "\n"
27260 msgstr ""
27261
27262 #. type: textblock
27263 #: ../src/guestfs-actions.pod:2297
27264 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27265 msgstr ""
27266
27267 #. type: =head2
27268 #: ../src/guestfs-actions.pod:2304
27269 msgid "guestfs_findfs_uuid"
27270 msgstr ""
27271
27272 #. type: verbatim
27273 #: ../src/guestfs-actions.pod:2306
27274 #, no-wrap
27275 msgid ""
27276 " char *\n"
27277 " guestfs_findfs_uuid (guestfs_h *g,\n"
27278 "                      const char *uuid);\n"
27279 "\n"
27280 msgstr ""
27281
27282 #. type: textblock
27283 #: ../src/guestfs-actions.pod:2314
27284 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27285 msgstr ""
27286
27287 #. type: =head2
27288 #: ../src/guestfs-actions.pod:2321
27289 msgid "guestfs_fsck"
27290 msgstr ""
27291
27292 #. type: verbatim
27293 #: ../src/guestfs-actions.pod:2323
27294 #, no-wrap
27295 msgid ""
27296 " int\n"
27297 " guestfs_fsck (guestfs_h *g,\n"
27298 "               const char *fstype,\n"
27299 "               const char *device);\n"
27300 "\n"
27301 msgstr ""
27302
27303 #. type: textblock
27304 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8253
27305 msgid "(Added in 1.0.16)"
27306 msgstr ""
27307
27308 #. type: =head2
27309 #: ../src/guestfs-actions.pod:2360
27310 msgid "guestfs_get_append"
27311 msgstr ""
27312
27313 #. type: verbatim
27314 #: ../src/guestfs-actions.pod:2362
27315 #, no-wrap
27316 msgid ""
27317 " const char *\n"
27318 " guestfs_get_append (guestfs_h *g);\n"
27319 "\n"
27320 msgstr ""
27321
27322 #. type: textblock
27323 #: ../src/guestfs-actions.pod:2370
27324 msgid ""
27325 "This function returns a string which may be NULL.  There is no way to return "
27326 "an error from this function.  The string is owned by the guest handle and "
27327 "must I<not> be freed."
27328 msgstr ""
27329
27330 #. type: textblock
27331 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6152
27332 #: ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:7080
27333 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7115
27334 #: ../src/guestfs-actions.pod:7139 ../src/guestfs-actions.pod:7893
27335 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8297
27336 msgid "(Added in 1.0.26)"
27337 msgstr ""
27338
27339 #. type: =head2
27340 #: ../src/guestfs-actions.pod:2376
27341 msgid "guestfs_get_attach_method"
27342 msgstr ""
27343
27344 #. type: verbatim
27345 #: ../src/guestfs-actions.pod:2378
27346 #, no-wrap
27347 msgid ""
27348 " char *\n"
27349 " guestfs_get_attach_method (guestfs_h *g);\n"
27350 "\n"
27351 msgstr ""
27352
27353 #. type: textblock
27354 #: ../src/guestfs-actions.pod:2381
27355 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27356 msgstr ""
27357
27358 #. type: textblock
27359 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6661
27360 msgid "(Added in 1.9.8)"
27361 msgstr ""
27362
27363 #. type: =head2
27364 #: ../src/guestfs-actions.pod:2388
27365 msgid "guestfs_get_autosync"
27366 msgstr ""
27367
27368 #. type: verbatim
27369 #: ../src/guestfs-actions.pod:2390
27370 #, no-wrap
27371 msgid ""
27372 " int\n"
27373 " guestfs_get_autosync (guestfs_h *g);\n"
27374 "\n"
27375 msgstr ""
27376
27377 #. type: =head2
27378 #: ../src/guestfs-actions.pod:2399
27379 msgid "guestfs_get_direct"
27380 msgstr ""
27381
27382 #. type: verbatim
27383 #: ../src/guestfs-actions.pod:2401
27384 #, no-wrap
27385 msgid ""
27386 " int\n"
27387 " guestfs_get_direct (guestfs_h *g);\n"
27388 "\n"
27389 msgstr ""
27390
27391 #. type: textblock
27392 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6702
27393 msgid "(Added in 1.0.72)"
27394 msgstr ""
27395
27396 #. type: =head2
27397 #: ../src/guestfs-actions.pod:2410
27398 msgid "guestfs_get_e2label"
27399 msgstr ""
27400
27401 #. type: verbatim
27402 #: ../src/guestfs-actions.pod:2412
27403 #, no-wrap
27404 msgid ""
27405 " char *\n"
27406 " guestfs_get_e2label (guestfs_h *g,\n"
27407 "                      const char *device);\n"
27408 "\n"
27409 msgstr ""
27410
27411 #. type: textblock
27412 #: ../src/guestfs-actions.pod:2416
27413 msgid ""
27414 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27415 "call instead."
27416 msgstr ""
27417
27418 #. type: textblock
27419 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
27420 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6739
27421 msgid "(Added in 1.0.15)"
27422 msgstr ""
27423
27424 #. type: =head2
27425 #: ../src/guestfs-actions.pod:2431
27426 msgid "guestfs_get_e2uuid"
27427 msgstr ""
27428
27429 #. type: verbatim
27430 #: ../src/guestfs-actions.pod:2433
27431 #, no-wrap
27432 msgid ""
27433 " char *\n"
27434 " guestfs_get_e2uuid (guestfs_h *g,\n"
27435 "                     const char *device);\n"
27436 "\n"
27437 msgstr ""
27438
27439 #. type: textblock
27440 #: ../src/guestfs-actions.pod:2437
27441 msgid ""
27442 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27443 "call instead."
27444 msgstr ""
27445
27446 #. type: =head2
27447 #: ../src/guestfs-actions.pod:2452
27448 msgid "guestfs_get_memsize"
27449 msgstr ""
27450
27451 #. type: verbatim
27452 #: ../src/guestfs-actions.pod:2454
27453 #, no-wrap
27454 msgid ""
27455 " int\n"
27456 " guestfs_get_memsize (guestfs_h *g);\n"
27457 "\n"
27458 msgstr ""
27459
27460 #. type: textblock
27461 #: ../src/guestfs-actions.pod:2460
27462 msgid ""
27463 "If C<guestfs_set_memsize> was not called on this handle, and if "
27464 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27465 "value for memsize."
27466 msgstr ""
27467
27468 #. type: textblock
27469 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5048
27470 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5276
27471 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5307
27472 #: ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5337
27473 #: ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6760
27474 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7662
27475 msgid "(Added in 1.0.55)"
27476 msgstr ""
27477
27478 #. type: =head2
27479 #: ../src/guestfs-actions.pod:2471
27480 msgid "guestfs_get_network"
27481 msgstr ""
27482
27483 #. type: verbatim
27484 #: ../src/guestfs-actions.pod:2473
27485 #, no-wrap
27486 msgid ""
27487 " int\n"
27488 " guestfs_get_network (guestfs_h *g);\n"
27489 "\n"
27490 msgstr ""
27491
27492 #. type: textblock
27493 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6779
27494 msgid "(Added in 1.5.4)"
27495 msgstr ""
27496
27497 #. type: =head2
27498 #: ../src/guestfs-actions.pod:2482
27499 msgid "guestfs_get_path"
27500 msgstr ""
27501
27502 #. type: verbatim
27503 #: ../src/guestfs-actions.pod:2484
27504 #, no-wrap
27505 msgid ""
27506 " const char *\n"
27507 " guestfs_get_path (guestfs_h *g);\n"
27508 "\n"
27509 msgstr ""
27510
27511 #. type: textblock
27512 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
27513 msgid ""
27514 "This function returns a string, or NULL on error.  The string is owned by "
27515 "the guest handle and must I<not> be freed."
27516 msgstr ""
27517
27518 #. type: =head2
27519 #: ../src/guestfs-actions.pod:2497
27520 msgid "guestfs_get_pgroup"
27521 msgstr ""
27522
27523 #. type: verbatim
27524 #: ../src/guestfs-actions.pod:2499
27525 #, no-wrap
27526 msgid ""
27527 " int\n"
27528 " guestfs_get_pgroup (guestfs_h *g);\n"
27529 "\n"
27530 msgstr ""
27531
27532 #. type: textblock
27533 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6815
27534 #: ../src/guestfs-actions.pod:8154
27535 msgid "(Added in 1.11.18)"
27536 msgstr ""
27537
27538 #. type: =head2
27539 #: ../src/guestfs-actions.pod:2508
27540 msgid "guestfs_get_pid"
27541 msgstr ""
27542
27543 #. type: verbatim
27544 #: ../src/guestfs-actions.pod:2510
27545 #, no-wrap
27546 msgid ""
27547 " int\n"
27548 " guestfs_get_pid (guestfs_h *g);\n"
27549 "\n"
27550 msgstr ""
27551
27552 #. type: textblock
27553 #: ../src/guestfs-actions.pod:2520
27554 msgid "(Added in 1.0.56)"
27555 msgstr ""
27556
27557 #. type: =head2
27558 #: ../src/guestfs-actions.pod:2522
27559 msgid "guestfs_get_qemu"
27560 msgstr ""
27561
27562 #. type: verbatim
27563 #: ../src/guestfs-actions.pod:2524
27564 #, no-wrap
27565 msgid ""
27566 " const char *\n"
27567 " guestfs_get_qemu (guestfs_h *g);\n"
27568 "\n"
27569 msgstr ""
27570
27571 #. type: textblock
27572 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6843
27573 msgid "(Added in 1.0.6)"
27574 msgstr ""
27575
27576 #. type: =head2
27577 #: ../src/guestfs-actions.pod:2537
27578 msgid "guestfs_get_recovery_proc"
27579 msgstr ""
27580
27581 #. type: verbatim
27582 #: ../src/guestfs-actions.pod:2539
27583 #, no-wrap
27584 msgid ""
27585 " int\n"
27586 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27587 "\n"
27588 msgstr ""
27589
27590 #. type: textblock
27591 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
27592 #: ../src/guestfs-actions.pod:4461 ../src/guestfs-actions.pod:4855
27593 #: ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:6082
27594 #: ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6867
27595 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7585
27596 #: ../src/guestfs-actions.pod:7777
27597 msgid "(Added in 1.0.77)"
27598 msgstr ""
27599
27600 #. type: =head2
27601 #: ../src/guestfs-actions.pod:2548
27602 msgid "guestfs_get_selinux"
27603 msgstr ""
27604
27605 #. type: verbatim
27606 #: ../src/guestfs-actions.pod:2550
27607 #, no-wrap
27608 msgid ""
27609 " int\n"
27610 " guestfs_get_selinux (guestfs_h *g);\n"
27611 "\n"
27612 msgstr ""
27613
27614 #. type: textblock
27615 #: ../src/guestfs-actions.pod:2553
27616 msgid ""
27617 "This returns the current setting of the selinux flag which is passed to the "
27618 "appliance at boot time.  See C<guestfs_set_selinux>."
27619 msgstr ""
27620
27621 #. type: textblock
27622 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
27623 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6960
27624 msgid "(Added in 1.0.67)"
27625 msgstr ""
27626
27627 #. type: =head2
27628 #: ../src/guestfs-actions.pod:2563
27629 msgid "guestfs_get_smp"
27630 msgstr ""
27631
27632 #. type: verbatim
27633 #: ../src/guestfs-actions.pod:2565
27634 #, no-wrap
27635 msgid ""
27636 " int\n"
27637 " guestfs_get_smp (guestfs_h *g);\n"
27638 "\n"
27639 msgstr ""
27640
27641 #. type: =head2
27642 #: ../src/guestfs-actions.pod:2574
27643 msgid "guestfs_get_state"
27644 msgstr ""
27645
27646 #. type: verbatim
27647 #: ../src/guestfs-actions.pod:2576
27648 #, no-wrap
27649 msgid ""
27650 " int\n"
27651 " guestfs_get_state (guestfs_h *g);\n"
27652 "\n"
27653 msgstr ""
27654
27655 #. type: =head2
27656 #: ../src/guestfs-actions.pod:2588
27657 msgid "guestfs_get_trace"
27658 msgstr ""
27659
27660 #. type: verbatim
27661 #: ../src/guestfs-actions.pod:2590
27662 #, no-wrap
27663 msgid ""
27664 " int\n"
27665 " guestfs_get_trace (guestfs_h *g);\n"
27666 "\n"
27667 msgstr ""
27668
27669 #. type: =head2
27670 #: ../src/guestfs-actions.pod:2599
27671 msgid "guestfs_get_umask"
27672 msgstr ""
27673
27674 #. type: verbatim
27675 #: ../src/guestfs-actions.pod:2601
27676 #, no-wrap
27677 msgid ""
27678 " int\n"
27679 " guestfs_get_umask (guestfs_h *g);\n"
27680 "\n"
27681 msgstr ""
27682
27683 #. type: textblock
27684 #: ../src/guestfs-actions.pod:2604
27685 msgid ""
27686 "Return the current umask.  By default the umask is C<022> unless it has been "
27687 "set by calling C<guestfs_umask>."
27688 msgstr ""
27689
27690 #. type: =head2
27691 #: ../src/guestfs-actions.pod:2611
27692 msgid "guestfs_get_verbose"
27693 msgstr ""
27694
27695 #. type: verbatim
27696 #: ../src/guestfs-actions.pod:2613
27697 #, no-wrap
27698 msgid ""
27699 " int\n"
27700 " guestfs_get_verbose (guestfs_h *g);\n"
27701 "\n"
27702 msgstr ""
27703
27704 #. type: =head2
27705 #: ../src/guestfs-actions.pod:2622
27706 msgid "guestfs_getcon"
27707 msgstr ""
27708
27709 #. type: verbatim
27710 #: ../src/guestfs-actions.pod:2624
27711 #, no-wrap
27712 msgid ""
27713 " char *\n"
27714 " guestfs_getcon (guestfs_h *g);\n"
27715 "\n"
27716 msgstr ""
27717
27718 #. type: textblock
27719 #: ../src/guestfs-actions.pod:2629
27720 msgid ""
27721 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27722 msgstr ""
27723
27724 #. type: =head2
27725 #: ../src/guestfs-actions.pod:2637
27726 msgid "guestfs_getxattr"
27727 msgstr ""
27728
27729 #. type: verbatim
27730 #: ../src/guestfs-actions.pod:2639
27731 #, no-wrap
27732 msgid ""
27733 " char *\n"
27734 " guestfs_getxattr (guestfs_h *g,\n"
27735 "                   const char *path,\n"
27736 "                   const char *name,\n"
27737 "                   size_t *size_r);\n"
27738 "\n"
27739 msgstr ""
27740
27741 #. type: textblock
27742 #: ../src/guestfs-actions.pod:2645
27743 msgid ""
27744 "Get a single extended attribute from file C<path> named C<name>.  This call "
27745 "follows symlinks.  If you want to lookup an extended attribute for the "
27746 "symlink itself, use C<guestfs_lgetxattr>."
27747 msgstr ""
27748
27749 #. type: textblock
27750 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
27751 msgid ""
27752 "Normally it is better to get all extended attributes from a file in one go "
27753 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27754 "implementations are buggy and do not provide a way to list out attributes.  "
27755 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27756 "extended attributes you want in advance and call this function."
27757 msgstr ""
27758
27759 #. type: textblock
27760 #: ../src/guestfs-actions.pod:2659
27761 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27762 msgstr ""
27763
27764 #. type: textblock
27765 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
27766 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
27767 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6101
27768 #: ../src/guestfs-actions.pod:6282
27769 msgid ""
27770 "This function returns a buffer, or NULL on error.  The size of the returned "
27771 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27772 "after use>."
27773 msgstr ""
27774
27775 #. type: textblock
27776 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
27777 msgid "(Added in 1.7.24)"
27778 msgstr ""
27779
27780 #. type: =head2
27781 #: ../src/guestfs-actions.pod:2667
27782 msgid "guestfs_getxattrs"
27783 msgstr ""
27784
27785 #. type: verbatim
27786 #: ../src/guestfs-actions.pod:2669
27787 #, no-wrap
27788 msgid ""
27789 " struct guestfs_xattr_list *\n"
27790 " guestfs_getxattrs (guestfs_h *g,\n"
27791 "                    const char *path);\n"
27792 "\n"
27793 msgstr ""
27794
27795 #. type: textblock
27796 #: ../src/guestfs-actions.pod:2679
27797 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27798 msgstr ""
27799
27800 #. type: textblock
27801 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
27802 #: ../src/guestfs-actions.pod:4851
27803 msgid ""
27804 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27805 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27806 msgstr ""
27807
27808 #. type: textblock
27809 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
27810 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4411
27811 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6979
27812 #: ../src/guestfs-actions.pod:8362
27813 msgid "(Added in 1.0.59)"
27814 msgstr ""
27815
27816 #. type: =head2
27817 #: ../src/guestfs-actions.pod:2687
27818 msgid "guestfs_glob_expand"
27819 msgstr ""
27820
27821 #. type: verbatim
27822 #: ../src/guestfs-actions.pod:2689
27823 #, no-wrap
27824 msgid ""
27825 " char **\n"
27826 " guestfs_glob_expand (guestfs_h *g,\n"
27827 "                      const char *pattern);\n"
27828 "\n"
27829 msgstr ""
27830
27831 #. type: textblock
27832 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7163
27833 #: ../src/guestfs-actions.pod:7180
27834 msgid "(Added in 1.0.50)"
27835 msgstr ""
27836
27837 #. type: =head2
27838 #: ../src/guestfs-actions.pod:2710
27839 msgid "guestfs_grep"
27840 msgstr ""
27841
27842 #. type: verbatim
27843 #: ../src/guestfs-actions.pod:2712
27844 #, no-wrap
27845 msgid ""
27846 " char **\n"
27847 " guestfs_grep (guestfs_h *g,\n"
27848 "               const char *regex,\n"
27849 "               const char *path);\n"
27850 "\n"
27851 msgstr ""
27852
27853 #. type: =head2
27854 #: ../src/guestfs-actions.pod:2729
27855 msgid "guestfs_grepi"
27856 msgstr ""
27857
27858 #. type: verbatim
27859 #: ../src/guestfs-actions.pod:2731
27860 #, no-wrap
27861 msgid ""
27862 " char **\n"
27863 " guestfs_grepi (guestfs_h *g,\n"
27864 "                const char *regex,\n"
27865 "                const char *path);\n"
27866 "\n"
27867 msgstr ""
27868
27869 #. type: =head2
27870 #: ../src/guestfs-actions.pod:2748
27871 msgid "guestfs_grub_install"
27872 msgstr ""
27873
27874 #. type: verbatim
27875 #: ../src/guestfs-actions.pod:2750
27876 #, no-wrap
27877 msgid ""
27878 " int\n"
27879 " guestfs_grub_install (guestfs_h *g,\n"
27880 "                       const char *root,\n"
27881 "                       const char *device);\n"
27882 "\n"
27883 msgstr ""
27884
27885 #. type: textblock
27886 #: ../src/guestfs-actions.pod:2793
27887 msgid "(Added in 1.0.17)"
27888 msgstr ""
27889
27890 #. type: =head2
27891 #: ../src/guestfs-actions.pod:2795
27892 msgid "guestfs_head"
27893 msgstr ""
27894
27895 #. type: verbatim
27896 #: ../src/guestfs-actions.pod:2797
27897 #, no-wrap
27898 msgid ""
27899 " char **\n"
27900 " guestfs_head (guestfs_h *g,\n"
27901 "               const char *path);\n"
27902 "\n"
27903 msgstr ""
27904
27905 #. type: =head2
27906 #: ../src/guestfs-actions.pod:2813
27907 msgid "guestfs_head_n"
27908 msgstr ""
27909
27910 #. type: verbatim
27911 #: ../src/guestfs-actions.pod:2815
27912 #, no-wrap
27913 msgid ""
27914 " char **\n"
27915 " guestfs_head_n (guestfs_h *g,\n"
27916 "                 int nrlines,\n"
27917 "                 const char *path);\n"
27918 "\n"
27919 msgstr ""
27920
27921 #. type: =head2
27922 #: ../src/guestfs-actions.pod:2837
27923 msgid "guestfs_hexdump"
27924 msgstr ""
27925
27926 #. type: verbatim
27927 #: ../src/guestfs-actions.pod:2839
27928 #, no-wrap
27929 msgid ""
27930 " char *\n"
27931 " guestfs_hexdump (guestfs_h *g,\n"
27932 "                  const char *path);\n"
27933 "\n"
27934 msgstr ""
27935
27936 #. type: textblock
27937 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7244
27938 #: ../src/guestfs-actions.pod:7299
27939 msgid "(Added in 1.0.22)"
27940 msgstr ""
27941
27942 #. type: =head2
27943 #: ../src/guestfs-actions.pod:2854
27944 msgid "guestfs_initrd_cat"
27945 msgstr ""
27946
27947 #. type: verbatim
27948 #: ../src/guestfs-actions.pod:2856
27949 #, no-wrap
27950 msgid ""
27951 " char *\n"
27952 " guestfs_initrd_cat (guestfs_h *g,\n"
27953 "                     const char *initrdpath,\n"
27954 "                     const char *filename,\n"
27955 "                     size_t *size_r);\n"
27956 "\n"
27957 msgstr ""
27958
27959 #. type: textblock
27960 #: ../src/guestfs-actions.pod:2872
27961 msgid "See also C<guestfs_initrd_list>."
27962 msgstr ""
27963
27964 #. type: =head2
27965 #: ../src/guestfs-actions.pod:2883
27966 msgid "guestfs_initrd_list"
27967 msgstr ""
27968
27969 #. type: verbatim
27970 #: ../src/guestfs-actions.pod:2885
27971 #, no-wrap
27972 msgid ""
27973 " char **\n"
27974 " guestfs_initrd_list (guestfs_h *g,\n"
27975 "                      const char *path);\n"
27976 "\n"
27977 msgstr ""
27978
27979 #. type: =head2
27980 #: ../src/guestfs-actions.pod:2905
27981 msgid "guestfs_inotify_add_watch"
27982 msgstr ""
27983
27984 #. type: verbatim
27985 #: ../src/guestfs-actions.pod:2907
27986 #, no-wrap
27987 msgid ""
27988 " int64_t\n"
27989 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27990 "                            const char *path,\n"
27991 "                            int mask);\n"
27992 "\n"
27993 msgstr ""
27994
27995 #. type: =head2
27996 #: ../src/guestfs-actions.pod:2926
27997 msgid "guestfs_inotify_close"
27998 msgstr ""
27999
28000 #. type: verbatim
28001 #: ../src/guestfs-actions.pod:2928
28002 #, no-wrap
28003 msgid ""
28004 " int\n"
28005 " guestfs_inotify_close (guestfs_h *g);\n"
28006 "\n"
28007 msgstr ""
28008
28009 #. type: =head2
28010 #: ../src/guestfs-actions.pod:2939
28011 msgid "guestfs_inotify_files"
28012 msgstr ""
28013
28014 #. type: verbatim
28015 #: ../src/guestfs-actions.pod:2941
28016 #, no-wrap
28017 msgid ""
28018 " char **\n"
28019 " guestfs_inotify_files (guestfs_h *g);\n"
28020 "\n"
28021 msgstr ""
28022
28023 #. type: textblock
28024 #: ../src/guestfs-actions.pod:2944
28025 msgid ""
28026 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28027 "returns a list of pathnames of objects that were touched.  The returned "
28028 "pathnames are sorted and deduplicated."
28029 msgstr ""
28030
28031 #. type: =head2
28032 #: ../src/guestfs-actions.pod:2954
28033 msgid "guestfs_inotify_init"
28034 msgstr ""
28035
28036 #. type: verbatim
28037 #: ../src/guestfs-actions.pod:2956
28038 #, no-wrap
28039 msgid ""
28040 " int\n"
28041 " guestfs_inotify_init (guestfs_h *g,\n"
28042 "                       int maxevents);\n"
28043 "\n"
28044 msgstr ""
28045
28046 #. type: textblock
28047 #: ../src/guestfs-actions.pod:2964
28048 msgid ""
28049 "C<maxevents> is the maximum number of events which will be queued up between "
28050 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28051 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28052 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28053 "throws away events, but records the fact that it threw them away by setting "
28054 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28055 "C<guestfs_inotify_read>)."
28056 msgstr ""
28057
28058 #. type: textblock
28059 #: ../src/guestfs-actions.pod:2974
28060 msgid ""
28061 "Before any events are generated, you have to add some watches to the "
28062 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28063 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28064 msgstr ""
28065
28066 #. type: textblock
28067 #: ../src/guestfs-actions.pod:2980
28068 msgid ""
28069 "Queued up events should be read periodically by calling "
28070 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28071 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28072 "often enough then you risk the internal queue overflowing."
28073 msgstr ""
28074
28075 #. type: textblock
28076 #: ../src/guestfs-actions.pod:2987
28077 msgid ""
28078 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28079 "This also removes any watches automatically."
28080 msgstr ""
28081
28082 #. type: =head2
28083 #: ../src/guestfs-actions.pod:3000
28084 msgid "guestfs_inotify_read"
28085 msgstr ""
28086
28087 #. type: verbatim
28088 #: ../src/guestfs-actions.pod:3002
28089 #, no-wrap
28090 msgid ""
28091 " struct guestfs_inotify_event_list *\n"
28092 " guestfs_inotify_read (guestfs_h *g);\n"
28093 "\n"
28094 msgstr ""
28095
28096 #. type: textblock
28097 #: ../src/guestfs-actions.pod:3016
28098 msgid ""
28099 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28100 "there was an error.  I<The caller must call "
28101 "C<guestfs_free_inotify_event_list> after use>."
28102 msgstr ""
28103
28104 #. type: =head2
28105 #: ../src/guestfs-actions.pod:3022
28106 msgid "guestfs_inotify_rm_watch"
28107 msgstr ""
28108
28109 #. type: verbatim
28110 #: ../src/guestfs-actions.pod:3024
28111 #, no-wrap
28112 msgid ""
28113 " int\n"
28114 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28115 "                           int wd);\n"
28116 "\n"
28117 msgstr ""
28118
28119 #. type: textblock
28120 #: ../src/guestfs-actions.pod:3028
28121 msgid ""
28122 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28123 msgstr ""
28124
28125 #. type: =head2
28126 #: ../src/guestfs-actions.pod:3035
28127 msgid "guestfs_inspect_get_arch"
28128 msgstr ""
28129
28130 #. type: verbatim
28131 #: ../src/guestfs-actions.pod:3037
28132 #, no-wrap
28133 msgid ""
28134 " char *\n"
28135 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28136 "                           const char *root);\n"
28137 "\n"
28138 msgstr ""
28139
28140 #. type: textblock
28141 #: ../src/guestfs-actions.pod:3041
28142 msgid ""
28143 "This returns the architecture of the inspected operating system.  The "
28144 "possible return values are listed under C<guestfs_file_architecture>."
28145 msgstr ""
28146
28147 #. type: =head2
28148 #: ../src/guestfs-actions.pod:3055
28149 msgid "guestfs_inspect_get_distro"
28150 msgstr ""
28151
28152 #. type: verbatim
28153 #: ../src/guestfs-actions.pod:3057
28154 #, no-wrap
28155 msgid ""
28156 " char *\n"
28157 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28158 "                             const char *root);\n"
28159 "\n"
28160 msgstr ""
28161
28162 #. type: =head2
28163 #: ../src/guestfs-actions.pod:3157
28164 msgid "guestfs_inspect_get_drive_mappings"
28165 msgstr ""
28166
28167 #. type: verbatim
28168 #: ../src/guestfs-actions.pod:3159
28169 #, no-wrap
28170 msgid ""
28171 " char **\n"
28172 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28173 "                                     const char *root);\n"
28174 "\n"
28175 msgstr ""
28176
28177 #. type: textblock
28178 #: ../src/guestfs-actions.pod:3188
28179 msgid ""
28180 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28181 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28182 msgstr ""
28183
28184 #. type: textblock
28185 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
28186 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5526
28187 #: ../src/guestfs-actions.pod:7601
28188 msgid ""
28189 "This function returns a NULL-terminated array of strings, or NULL if there "
28190 "was an error.  The array of strings will always have length C<2n+1>, where "
28191 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28192 "caller must free the strings and the array after use>."
28193 msgstr ""
28194
28195 #. type: textblock
28196 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
28197 msgid "(Added in 1.9.17)"
28198 msgstr ""
28199
28200 #. type: =head2
28201 #: ../src/guestfs-actions.pod:3200
28202 msgid "guestfs_inspect_get_filesystems"
28203 msgstr ""
28204
28205 #. type: verbatim
28206 #: ../src/guestfs-actions.pod:3202
28207 #, no-wrap
28208 msgid ""
28209 " char **\n"
28210 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28211 "                                  const char *root);\n"
28212 "\n"
28213 msgstr ""
28214
28215 #. type: textblock
28216 #: ../src/guestfs-actions.pod:3214
28217 msgid ""
28218 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28219 "C<guestfs_inspect_get_mountpoints>."
28220 msgstr ""
28221
28222 #. type: =head2
28223 #: ../src/guestfs-actions.pod:3223
28224 msgid "guestfs_inspect_get_format"
28225 msgstr ""
28226
28227 #. type: verbatim
28228 #: ../src/guestfs-actions.pod:3225
28229 #, no-wrap
28230 msgid ""
28231 " char *\n"
28232 " guestfs_inspect_get_format (guestfs_h *g,\n"
28233 "                             const char *root);\n"
28234 "\n"
28235 msgstr ""
28236
28237 #. type: textblock
28238 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
28239 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
28240 #: ../src/guestfs-actions.pod:6493
28241 msgid "(Added in 1.9.4)"
28242 msgstr ""
28243
28244 #. type: =head2
28245 #: ../src/guestfs-actions.pod:3261
28246 msgid "guestfs_inspect_get_hostname"
28247 msgstr ""
28248
28249 #. type: verbatim
28250 #: ../src/guestfs-actions.pod:3263
28251 #, no-wrap
28252 msgid ""
28253 " char *\n"
28254 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28255 "                               const char *root);\n"
28256 "\n"
28257 msgstr ""
28258
28259 #. type: textblock
28260 #: ../src/guestfs-actions.pod:3278
28261 msgid "(Added in 1.7.9)"
28262 msgstr ""
28263
28264 #. type: =head2
28265 #: ../src/guestfs-actions.pod:3280
28266 msgid "guestfs_inspect_get_icon"
28267 msgstr ""
28268
28269 #. type: verbatim
28270 #: ../src/guestfs-actions.pod:3282
28271 #, no-wrap
28272 msgid ""
28273 " char *\n"
28274 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28275 "                           const char *root,\n"
28276 "                           size_t *size_r,\n"
28277 "                           ...);\n"
28278 "\n"
28279 msgstr ""
28280
28281 #. type: verbatim
28282 #: ../src/guestfs-actions.pod:3293
28283 #, no-wrap
28284 msgid ""
28285 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28286 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28287 "\n"
28288 msgstr ""
28289
28290 #. type: textblock
28291 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
28292 #: ../src/guestfs-actions.pod:5425
28293 msgid "(Added in 1.11.12)"
28294 msgstr ""
28295
28296 #. type: =head2
28297 #: ../src/guestfs-actions.pod:3362
28298 msgid "guestfs_inspect_get_icon_va"
28299 msgstr ""
28300
28301 #. type: verbatim
28302 #: ../src/guestfs-actions.pod:3364
28303 #, no-wrap
28304 msgid ""
28305 " char *\n"
28306 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28307 "                              const char *root,\n"
28308 "                              size_t *size_r,\n"
28309 "                              va_list args);\n"
28310 "\n"
28311 msgstr ""
28312
28313 #. type: textblock
28314 #: ../src/guestfs-actions.pod:3370
28315 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28316 msgstr ""
28317
28318 #. type: =head2
28319 #: ../src/guestfs-actions.pod:3374
28320 msgid "guestfs_inspect_get_icon_argv"
28321 msgstr ""
28322
28323 #. type: verbatim
28324 #: ../src/guestfs-actions.pod:3376
28325 #, no-wrap
28326 msgid ""
28327 " char *\n"
28328 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28329 "                                const char *root,\n"
28330 "                                size_t *size_r,\n"
28331 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
28332 "\n"
28333 msgstr ""
28334
28335 #. type: textblock
28336 #: ../src/guestfs-actions.pod:3382
28337 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28338 msgstr ""
28339
28340 #. type: =head2
28341 #: ../src/guestfs-actions.pod:3386
28342 msgid "guestfs_inspect_get_major_version"
28343 msgstr ""
28344
28345 #. type: verbatim
28346 #: ../src/guestfs-actions.pod:3388
28347 #, no-wrap
28348 msgid ""
28349 " int\n"
28350 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28351 "                                    const char *root);\n"
28352 "\n"
28353 msgstr ""
28354
28355 #. type: =head2
28356 #: ../src/guestfs-actions.pod:3410
28357 msgid "guestfs_inspect_get_minor_version"
28358 msgstr ""
28359
28360 #. type: verbatim
28361 #: ../src/guestfs-actions.pod:3412
28362 #, no-wrap
28363 msgid ""
28364 " int\n"
28365 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28366 "                                    const char *root);\n"
28367 "\n"
28368 msgstr ""
28369
28370 #. type: textblock
28371 #: ../src/guestfs-actions.pod:3421
28372 msgid ""
28373 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28374 "C<guestfs_inspect_get_major_version>."
28375 msgstr ""
28376
28377 #. type: =head2
28378 #: ../src/guestfs-actions.pod:3428
28379 msgid "guestfs_inspect_get_mountpoints"
28380 msgstr ""
28381
28382 #. type: verbatim
28383 #: ../src/guestfs-actions.pod:3430
28384 #, no-wrap
28385 msgid ""
28386 " char **\n"
28387 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28388 "                                  const char *root);\n"
28389 "\n"
28390 msgstr ""
28391
28392 #. type: textblock
28393 #: ../src/guestfs-actions.pod:3451
28394 msgid ""
28395 "For operating systems like Windows which still use drive letters, this call "
28396 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28397 "information about the mapping of drive letters to partitions, see "
28398 "C<guestfs_inspect_get_drive_mappings>."
28399 msgstr ""
28400
28401 #. type: textblock
28402 #: ../src/guestfs-actions.pod:3457
28403 msgid ""
28404 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28405 "C<guestfs_inspect_get_filesystems>."
28406 msgstr ""
28407
28408 #. type: =head2
28409 #: ../src/guestfs-actions.pod:3468
28410 msgid "guestfs_inspect_get_package_format"
28411 msgstr ""
28412
28413 #. type: verbatim
28414 #: ../src/guestfs-actions.pod:3470
28415 #, no-wrap
28416 msgid ""
28417 " char *\n"
28418 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28419 "                                     const char *root);\n"
28420 "\n"
28421 msgstr ""
28422
28423 #. type: textblock
28424 #: ../src/guestfs-actions.pod:3474
28425 msgid ""
28426 "This function and C<guestfs_inspect_get_package_management> return the "
28427 "package format and package management tool used by the inspected operating "
28428 "system.  For example for Fedora these functions would return C<rpm> (package "
28429 "format) and C<yum> (package management)."
28430 msgstr ""
28431
28432 #. type: textblock
28433 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
28434 msgid "(Added in 1.7.5)"
28435 msgstr ""
28436
28437 #. type: =head2
28438 #: ../src/guestfs-actions.pod:3495
28439 msgid "guestfs_inspect_get_package_management"
28440 msgstr ""
28441
28442 #. type: verbatim
28443 #: ../src/guestfs-actions.pod:3497
28444 #, no-wrap
28445 msgid ""
28446 " char *\n"
28447 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28448 "                                         const char *root);\n"
28449 "\n"
28450 msgstr ""
28451
28452 #. type: textblock
28453 #: ../src/guestfs-actions.pod:3501
28454 msgid ""
28455 "C<guestfs_inspect_get_package_format> and this function return the package "
28456 "format and package management tool used by the inspected operating system.  "
28457 "For example for Fedora these functions would return C<rpm> (package format) "
28458 "and C<yum> (package management)."
28459 msgstr ""
28460
28461 #. type: =head2
28462 #: ../src/guestfs-actions.pod:3523
28463 msgid "guestfs_inspect_get_product_name"
28464 msgstr ""
28465
28466 #. type: verbatim
28467 #: ../src/guestfs-actions.pod:3525
28468 #, no-wrap
28469 msgid ""
28470 " char *\n"
28471 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28472 "                                   const char *root);\n"
28473 "\n"
28474 msgstr ""
28475
28476 #. type: =head2
28477 #: ../src/guestfs-actions.pod:3544
28478 msgid "guestfs_inspect_get_product_variant"
28479 msgstr ""
28480
28481 #. type: verbatim
28482 #: ../src/guestfs-actions.pod:3546
28483 #, no-wrap
28484 msgid ""
28485 " char *\n"
28486 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28487 "                                      const char *root);\n"
28488 "\n"
28489 msgstr ""
28490
28491 #. type: textblock
28492 #: ../src/guestfs-actions.pod:3569
28493 msgid ""
28494 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28495 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28496 msgstr ""
28497
28498 #. type: textblock
28499 #: ../src/guestfs-actions.pod:3576
28500 msgid "(Added in 1.9.13)"
28501 msgstr ""
28502
28503 #. type: =head2
28504 #: ../src/guestfs-actions.pod:3578
28505 msgid "guestfs_inspect_get_roots"
28506 msgstr ""
28507
28508 #. type: verbatim
28509 #: ../src/guestfs-actions.pod:3580
28510 #, no-wrap
28511 msgid ""
28512 " char **\n"
28513 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28514 "\n"
28515 msgstr ""
28516
28517 #. type: textblock
28518 #: ../src/guestfs-actions.pod:3583
28519 msgid ""
28520 "This function is a convenient way to get the list of root devices, as "
28521 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28522 "the whole inspection process."
28523 msgstr ""
28524
28525 #. type: textblock
28526 #: ../src/guestfs-actions.pod:3587
28527 msgid ""
28528 "This returns an empty list if either no root devices were found or the "
28529 "caller has not called C<guestfs_inspect_os>."
28530 msgstr ""
28531
28532 #. type: textblock
28533 #: ../src/guestfs-actions.pod:3596
28534 msgid "(Added in 1.7.3)"
28535 msgstr ""
28536
28537 #. type: =head2
28538 #: ../src/guestfs-actions.pod:3598
28539 msgid "guestfs_inspect_get_type"
28540 msgstr ""
28541
28542 #. type: verbatim
28543 #: ../src/guestfs-actions.pod:3600
28544 #, no-wrap
28545 msgid ""
28546 " char *\n"
28547 " guestfs_inspect_get_type (guestfs_h *g,\n"
28548 "                           const char *root);\n"
28549 "\n"
28550 msgstr ""
28551
28552 #. type: =head2
28553 #: ../src/guestfs-actions.pod:3641
28554 msgid "guestfs_inspect_get_windows_current_control_set"
28555 msgstr ""
28556
28557 #. type: verbatim
28558 #: ../src/guestfs-actions.pod:3643
28559 #, no-wrap
28560 msgid ""
28561 " char *\n"
28562 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28563 "                                                  const char *root);\n"
28564 "\n"
28565 msgstr ""
28566
28567 #. type: =head2
28568 #: ../src/guestfs-actions.pod:3661
28569 msgid "guestfs_inspect_get_windows_systemroot"
28570 msgstr ""
28571
28572 #. type: verbatim
28573 #: ../src/guestfs-actions.pod:3663
28574 #, no-wrap
28575 msgid ""
28576 " char *\n"
28577 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28578 "                                         const char *root);\n"
28579 "\n"
28580 msgstr ""
28581
28582 #. type: textblock
28583 #: ../src/guestfs-actions.pod:3679
28584 msgid "(Added in 1.5.25)"
28585 msgstr ""
28586
28587 #. type: =head2
28588 #: ../src/guestfs-actions.pod:3681
28589 msgid "guestfs_inspect_is_live"
28590 msgstr ""
28591
28592 #. type: verbatim
28593 #: ../src/guestfs-actions.pod:3683
28594 #, no-wrap
28595 msgid ""
28596 " int\n"
28597 " guestfs_inspect_is_live (guestfs_h *g,\n"
28598 "                          const char *root);\n"
28599 "\n"
28600 msgstr ""
28601
28602 #. type: textblock
28603 #: ../src/guestfs-actions.pod:3687
28604 msgid ""
28605 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28606 "disk), then this returns true if a live image was detected on the disk."
28607 msgstr ""
28608
28609 #. type: =head2
28610 #: ../src/guestfs-actions.pod:3697
28611 msgid "guestfs_inspect_is_multipart"
28612 msgstr ""
28613
28614 #. type: verbatim
28615 #: ../src/guestfs-actions.pod:3699
28616 #, no-wrap
28617 msgid ""
28618 " int\n"
28619 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28620 "                               const char *root);\n"
28621 "\n"
28622 msgstr ""
28623
28624 #. type: textblock
28625 #: ../src/guestfs-actions.pod:3703
28626 msgid ""
28627 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28628 "disk), then this returns true if the disk is part of a set."
28629 msgstr ""
28630
28631 #. type: =head2
28632 #: ../src/guestfs-actions.pod:3713
28633 msgid "guestfs_inspect_is_netinst"
28634 msgstr ""
28635
28636 #. type: verbatim
28637 #: ../src/guestfs-actions.pod:3715
28638 #, no-wrap
28639 msgid ""
28640 " int\n"
28641 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28642 "                             const char *root);\n"
28643 "\n"
28644 msgstr ""
28645
28646 #. type: textblock
28647 #: ../src/guestfs-actions.pod:3719
28648 msgid ""
28649 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28650 "disk), then this returns true if the disk is a network installer, ie. not a "
28651 "self-contained install CD but one which is likely to require network access "
28652 "to complete the install."
28653 msgstr ""
28654
28655 #. type: =head2
28656 #: ../src/guestfs-actions.pod:3731
28657 msgid "guestfs_inspect_list_applications"
28658 msgstr ""
28659
28660 #. type: verbatim
28661 #: ../src/guestfs-actions.pod:3733
28662 #, no-wrap
28663 msgid ""
28664 " struct guestfs_application_list *\n"
28665 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28666 "                                    const char *root);\n"
28667 "\n"
28668 msgstr ""
28669
28670 #. type: textblock
28671 #: ../src/guestfs-actions.pod:3739
28672 msgid ""
28673 "I<Note:> This call works differently from other parts of the inspection "
28674 "API.  You have to call C<guestfs_inspect_os>, then "
28675 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28676 "this.  Listing applications is a significantly more difficult operation "
28677 "which requires access to the full filesystem.  Also note that unlike the "
28678 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28679 "the libguestfs handle, this call actually reads parts of the mounted "
28680 "filesystems during the call."
28681 msgstr ""
28682
28683 #. type: textblock
28684 #: ../src/guestfs-actions.pod:3829
28685 msgid ""
28686 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28687 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28688 "after use>."
28689 msgstr ""
28690
28691 #. type: textblock
28692 #: ../src/guestfs-actions.pod:3833
28693 msgid "(Added in 1.7.8)"
28694 msgstr ""
28695
28696 #. type: =head2
28697 #: ../src/guestfs-actions.pod:3835
28698 msgid "guestfs_inspect_os"
28699 msgstr ""
28700
28701 #. type: verbatim
28702 #: ../src/guestfs-actions.pod:3837
28703 #, no-wrap
28704 msgid ""
28705 " char **\n"
28706 " guestfs_inspect_os (guestfs_h *g);\n"
28707 "\n"
28708 msgstr ""
28709
28710 #. type: textblock
28711 #: ../src/guestfs-actions.pod:3853
28712 msgid ""
28713 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28714 "functions in order to query further information about each operating system, "
28715 "such as the name and version."
28716 msgstr ""
28717
28718 #. type: textblock
28719 #: ../src/guestfs-actions.pod:3858
28720 msgid ""
28721 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28722 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28723 "the contents.  This should be called with no disks currently mounted.  The "
28724 "function may also use Augeas, so any existing Augeas handle will be closed."
28725 msgstr ""
28726
28727 #. type: textblock
28728 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
28729 #: ../src/guestfs-actions.pod:4283
28730 msgid "See also C<guestfs_list_filesystems>."
28731 msgstr ""
28732
28733 #. type: =head2
28734 #: ../src/guestfs-actions.pod:3878
28735 msgid "guestfs_is_blockdev"
28736 msgstr ""
28737
28738 #. type: verbatim
28739 #: ../src/guestfs-actions.pod:3880
28740 #, no-wrap
28741 msgid ""
28742 " int\n"
28743 " guestfs_is_blockdev (guestfs_h *g,\n"
28744 "                      const char *path);\n"
28745 "\n"
28746 msgstr ""
28747
28748 #. type: textblock
28749 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
28750 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
28751 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
28752 #: ../src/guestfs-actions.pod:4048
28753 msgid "See also C<guestfs_stat>."
28754 msgstr ""
28755
28756 #. type: textblock
28757 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
28758 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
28759 #: ../src/guestfs-actions.pod:4052
28760 msgid "(Added in 1.5.10)"
28761 msgstr ""
28762
28763 #. type: =head2
28764 #: ../src/guestfs-actions.pod:3893
28765 msgid "guestfs_is_busy"
28766 msgstr ""
28767
28768 #. type: verbatim
28769 #: ../src/guestfs-actions.pod:3895
28770 #, no-wrap
28771 msgid ""
28772 " int\n"
28773 " guestfs_is_busy (guestfs_h *g);\n"
28774 "\n"
28775 msgstr ""
28776
28777 #. type: =head2
28778 #: ../src/guestfs-actions.pod:3907
28779 msgid "guestfs_is_chardev"
28780 msgstr ""
28781
28782 #. type: verbatim
28783 #: ../src/guestfs-actions.pod:3909
28784 #, no-wrap
28785 msgid ""
28786 " int\n"
28787 " guestfs_is_chardev (guestfs_h *g,\n"
28788 "                     const char *path);\n"
28789 "\n"
28790 msgstr ""
28791
28792 #. type: =head2
28793 #: ../src/guestfs-actions.pod:3922
28794 msgid "guestfs_is_config"
28795 msgstr ""
28796
28797 #. type: verbatim
28798 #: ../src/guestfs-actions.pod:3924
28799 #, no-wrap
28800 msgid ""
28801 " int\n"
28802 " guestfs_is_config (guestfs_h *g);\n"
28803 "\n"
28804 msgstr ""
28805
28806 #. type: =head2
28807 #: ../src/guestfs-actions.pod:3936
28808 msgid "guestfs_is_dir"
28809 msgstr ""
28810
28811 #. type: verbatim
28812 #: ../src/guestfs-actions.pod:3938
28813 #, no-wrap
28814 msgid ""
28815 " int\n"
28816 " guestfs_is_dir (guestfs_h *g,\n"
28817 "                 const char *path);\n"
28818 "\n"
28819 msgstr ""
28820
28821 #. type: =head2
28822 #: ../src/guestfs-actions.pod:3952
28823 msgid "guestfs_is_fifo"
28824 msgstr ""
28825
28826 #. type: verbatim
28827 #: ../src/guestfs-actions.pod:3954
28828 #, no-wrap
28829 msgid ""
28830 " int\n"
28831 " guestfs_is_fifo (guestfs_h *g,\n"
28832 "                  const char *path);\n"
28833 "\n"
28834 msgstr ""
28835
28836 #. type: =head2
28837 #: ../src/guestfs-actions.pod:3967
28838 msgid "guestfs_is_file"
28839 msgstr ""
28840
28841 #. type: verbatim
28842 #: ../src/guestfs-actions.pod:3969
28843 #, no-wrap
28844 msgid ""
28845 " int\n"
28846 " guestfs_is_file (guestfs_h *g,\n"
28847 "                  const char *path);\n"
28848 "\n"
28849 msgstr ""
28850
28851 #. type: =head2
28852 #: ../src/guestfs-actions.pod:3983
28853 msgid "guestfs_is_launching"
28854 msgstr ""
28855
28856 #. type: verbatim
28857 #: ../src/guestfs-actions.pod:3985
28858 #, no-wrap
28859 msgid ""
28860 " int\n"
28861 " guestfs_is_launching (guestfs_h *g);\n"
28862 "\n"
28863 msgstr ""
28864
28865 #. type: =head2
28866 #: ../src/guestfs-actions.pod:3997
28867 msgid "guestfs_is_lv"
28868 msgstr ""
28869
28870 #. type: verbatim
28871 #: ../src/guestfs-actions.pod:3999
28872 #, no-wrap
28873 msgid ""
28874 " int\n"
28875 " guestfs_is_lv (guestfs_h *g,\n"
28876 "                const char *device);\n"
28877 "\n"
28878 msgstr ""
28879
28880 #. type: =head2
28881 #: ../src/guestfs-actions.pod:4010
28882 msgid "guestfs_is_ready"
28883 msgstr ""
28884
28885 #. type: verbatim
28886 #: ../src/guestfs-actions.pod:4012
28887 #, no-wrap
28888 msgid ""
28889 " int\n"
28890 " guestfs_is_ready (guestfs_h *g);\n"
28891 "\n"
28892 msgstr ""
28893
28894 #. type: =head2
28895 #: ../src/guestfs-actions.pod:4024
28896 msgid "guestfs_is_socket"
28897 msgstr ""
28898
28899 #. type: verbatim
28900 #: ../src/guestfs-actions.pod:4026
28901 #, no-wrap
28902 msgid ""
28903 " int\n"
28904 " guestfs_is_socket (guestfs_h *g,\n"
28905 "                    const char *path);\n"
28906 "\n"
28907 msgstr ""
28908
28909 #. type: =head2
28910 #: ../src/guestfs-actions.pod:4039
28911 msgid "guestfs_is_symlink"
28912 msgstr ""
28913
28914 #. type: verbatim
28915 #: ../src/guestfs-actions.pod:4041
28916 #, no-wrap
28917 msgid ""
28918 " int\n"
28919 " guestfs_is_symlink (guestfs_h *g,\n"
28920 "                     const char *path);\n"
28921 "\n"
28922 msgstr ""
28923
28924 #. type: =head2
28925 #: ../src/guestfs-actions.pod:4054
28926 msgid "guestfs_is_zero"
28927 msgstr ""
28928
28929 #. type: verbatim
28930 #: ../src/guestfs-actions.pod:4056
28931 #, no-wrap
28932 msgid ""
28933 " int\n"
28934 " guestfs_is_zero (guestfs_h *g,\n"
28935 "                  const char *path);\n"
28936 "\n"
28937 msgstr ""
28938
28939 #. type: textblock
28940 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
28941 msgid "(Added in 1.11.8)"
28942 msgstr ""
28943
28944 #. type: =head2
28945 #: ../src/guestfs-actions.pod:4067
28946 msgid "guestfs_is_zero_device"
28947 msgstr ""
28948
28949 #. type: verbatim
28950 #: ../src/guestfs-actions.pod:4069
28951 #, no-wrap
28952 msgid ""
28953 " int\n"
28954 " guestfs_is_zero_device (guestfs_h *g,\n"
28955 "                         const char *device);\n"
28956 "\n"
28957 msgstr ""
28958
28959 #. type: =head2
28960 #: ../src/guestfs-actions.pod:4081
28961 msgid "guestfs_kill_subprocess"
28962 msgstr ""
28963
28964 #. type: verbatim
28965 #: ../src/guestfs-actions.pod:4083
28966 #, no-wrap
28967 msgid ""
28968 " int\n"
28969 " guestfs_kill_subprocess (guestfs_h *g);\n"
28970 "\n"
28971 msgstr ""
28972
28973 #. type: =head2
28974 #: ../src/guestfs-actions.pod:4092
28975 msgid "guestfs_launch"
28976 msgstr ""
28977
28978 #. type: verbatim
28979 #: ../src/guestfs-actions.pod:4094
28980 #, no-wrap
28981 msgid ""
28982 " int\n"
28983 " guestfs_launch (guestfs_h *g);\n"
28984 "\n"
28985 msgstr ""
28986
28987 #. type: =head2
28988 #: ../src/guestfs-actions.pod:4112
28989 msgid "guestfs_lchown"
28990 msgstr ""
28991
28992 #. type: verbatim
28993 #: ../src/guestfs-actions.pod:4114
28994 #, no-wrap
28995 msgid ""
28996 " int\n"
28997 " guestfs_lchown (guestfs_h *g,\n"
28998 "                 int owner,\n"
28999 "                 int group,\n"
29000 "                 const char *path);\n"
29001 "\n"
29002 msgstr ""
29003
29004 #. type: textblock
29005 #: ../src/guestfs-actions.pod:4120
29006 msgid ""
29007 "Change the file owner to C<owner> and group to C<group>.  This is like "
29008 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29009 "changed, not the target."
29010 msgstr ""
29011
29012 #. type: =head2
29013 #: ../src/guestfs-actions.pod:4132
29014 msgid "guestfs_lgetxattr"
29015 msgstr ""
29016
29017 #. type: verbatim
29018 #: ../src/guestfs-actions.pod:4134
29019 #, no-wrap
29020 msgid ""
29021 " char *\n"
29022 " guestfs_lgetxattr (guestfs_h *g,\n"
29023 "                    const char *path,\n"
29024 "                    const char *name,\n"
29025 "                    size_t *size_r);\n"
29026 "\n"
29027 msgstr ""
29028
29029 #. type: textblock
29030 #: ../src/guestfs-actions.pod:4154
29031 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29032 msgstr ""
29033
29034 #. type: =head2
29035 #: ../src/guestfs-actions.pod:4162
29036 msgid "guestfs_lgetxattrs"
29037 msgstr ""
29038
29039 #. type: verbatim
29040 #: ../src/guestfs-actions.pod:4164
29041 #, no-wrap
29042 msgid ""
29043 " struct guestfs_xattr_list *\n"
29044 " guestfs_lgetxattrs (guestfs_h *g,\n"
29045 "                     const char *path);\n"
29046 "\n"
29047 msgstr ""
29048
29049 #. type: textblock
29050 #: ../src/guestfs-actions.pod:4168
29051 msgid ""
29052 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29053 "then it returns the extended attributes of the link itself."
29054 msgstr ""
29055
29056 #. type: =head2
29057 #: ../src/guestfs-actions.pod:4178
29058 msgid "guestfs_list_9p"
29059 msgstr ""
29060
29061 #. type: verbatim
29062 #: ../src/guestfs-actions.pod:4180
29063 #, no-wrap
29064 msgid ""
29065 " char **\n"
29066 " guestfs_list_9p (guestfs_h *g);\n"
29067 "\n"
29068 msgstr ""
29069
29070 #. type: =head2
29071 #: ../src/guestfs-actions.pod:4192
29072 msgid "guestfs_list_devices"
29073 msgstr ""
29074
29075 #. type: verbatim
29076 #: ../src/guestfs-actions.pod:4194
29077 #, no-wrap
29078 msgid ""
29079 " char **\n"
29080 " guestfs_list_devices (guestfs_h *g);\n"
29081 "\n"
29082 msgstr ""
29083
29084 #. type: =head2
29085 #: ../src/guestfs-actions.pod:4209
29086 msgid "guestfs_list_dm_devices"
29087 msgstr ""
29088
29089 #. type: verbatim
29090 #: ../src/guestfs-actions.pod:4211
29091 #, no-wrap
29092 msgid ""
29093 " char **\n"
29094 " guestfs_list_dm_devices (guestfs_h *g);\n"
29095 "\n"
29096 msgstr ""
29097
29098 #. type: textblock
29099 #: ../src/guestfs-actions.pod:4216
29100 msgid ""
29101 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29102 "previous call to C<guestfs_luks_open>."
29103 msgstr ""
29104
29105 #. type: textblock
29106 #: ../src/guestfs-actions.pod:4219
29107 msgid ""
29108 "Device mapper devices which correspond to logical volumes are I<not> "
29109 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29110 "volumes."
29111 msgstr ""
29112
29113 #. type: textblock
29114 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5664
29115 msgid "(Added in 1.11.15)"
29116 msgstr ""
29117
29118 #. type: =head2
29119 #: ../src/guestfs-actions.pod:4229
29120 msgid "guestfs_list_filesystems"
29121 msgstr ""
29122
29123 #. type: verbatim
29124 #: ../src/guestfs-actions.pod:4231
29125 #, no-wrap
29126 msgid ""
29127 " char **\n"
29128 " guestfs_list_filesystems (guestfs_h *g);\n"
29129 "\n"
29130 msgstr ""
29131
29132 #. type: textblock
29133 #: ../src/guestfs-actions.pod:4251
29134 msgid ""
29135 "This command runs other libguestfs commands, which might include "
29136 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29137 "soon after launch and only when nothing is mounted."
29138 msgstr ""
29139
29140 #. type: textblock
29141 #: ../src/guestfs-actions.pod:4255
29142 msgid ""
29143 "Not all of the filesystems returned will be mountable.  In particular, swap "
29144 "partitions are returned in the list.  Also this command does not check that "
29145 "each filesystem found is valid and mountable, and some filesystems might be "
29146 "mountable but require special options.  Filesystems may not all belong to a "
29147 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29148 msgstr ""
29149
29150 #. type: textblock
29151 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6024
29152 msgid "(Added in 1.5.15)"
29153 msgstr ""
29154
29155 #. type: =head2
29156 #: ../src/guestfs-actions.pod:4271
29157 msgid "guestfs_list_partitions"
29158 msgstr ""
29159
29160 #. type: verbatim
29161 #: ../src/guestfs-actions.pod:4273
29162 #, no-wrap
29163 msgid ""
29164 " char **\n"
29165 " guestfs_list_partitions (guestfs_h *g);\n"
29166 "\n"
29167 msgstr ""
29168
29169 #. type: textblock
29170 #: ../src/guestfs-actions.pod:4280
29171 msgid ""
29172 "This does not return logical volumes.  For that you will need to call "
29173 "C<guestfs_lvs>."
29174 msgstr ""
29175
29176 #. type: =head2
29177 #: ../src/guestfs-actions.pod:4291
29178 msgid "guestfs_ll"
29179 msgstr ""
29180
29181 #. type: verbatim
29182 #: ../src/guestfs-actions.pod:4293
29183 #, no-wrap
29184 msgid ""
29185 " char *\n"
29186 " guestfs_ll (guestfs_h *g,\n"
29187 "             const char *directory);\n"
29188 "\n"
29189 msgstr ""
29190
29191 #. type: =head2
29192 #: ../src/guestfs-actions.pod:4308
29193 msgid "guestfs_ln"
29194 msgstr ""
29195
29196 #. type: verbatim
29197 #: ../src/guestfs-actions.pod:4310
29198 #, no-wrap
29199 msgid ""
29200 " int\n"
29201 " guestfs_ln (guestfs_h *g,\n"
29202 "             const char *target,\n"
29203 "             const char *linkname);\n"
29204 "\n"
29205 msgstr ""
29206
29207 #. type: =head2
29208 #: ../src/guestfs-actions.pod:4321
29209 msgid "guestfs_ln_f"
29210 msgstr ""
29211
29212 #. type: verbatim
29213 #: ../src/guestfs-actions.pod:4323
29214 #, no-wrap
29215 msgid ""
29216 " int\n"
29217 " guestfs_ln_f (guestfs_h *g,\n"
29218 "               const char *target,\n"
29219 "               const char *linkname);\n"
29220 "\n"
29221 msgstr ""
29222
29223 #. type: =head2
29224 #: ../src/guestfs-actions.pod:4335
29225 msgid "guestfs_ln_s"
29226 msgstr ""
29227
29228 #. type: verbatim
29229 #: ../src/guestfs-actions.pod:4337
29230 #, no-wrap
29231 msgid ""
29232 " int\n"
29233 " guestfs_ln_s (guestfs_h *g,\n"
29234 "               const char *target,\n"
29235 "               const char *linkname);\n"
29236 "\n"
29237 msgstr ""
29238
29239 #. type: =head2
29240 #: ../src/guestfs-actions.pod:4348
29241 msgid "guestfs_ln_sf"
29242 msgstr ""
29243
29244 #. type: verbatim
29245 #: ../src/guestfs-actions.pod:4350
29246 #, no-wrap
29247 msgid ""
29248 " int\n"
29249 " guestfs_ln_sf (guestfs_h *g,\n"
29250 "                const char *target,\n"
29251 "                const char *linkname);\n"
29252 "\n"
29253 msgstr ""
29254
29255 #. type: =head2
29256 #: ../src/guestfs-actions.pod:4362
29257 msgid "guestfs_lremovexattr"
29258 msgstr ""
29259
29260 #. type: verbatim
29261 #: ../src/guestfs-actions.pod:4364
29262 #, no-wrap
29263 msgid ""
29264 " int\n"
29265 " guestfs_lremovexattr (guestfs_h *g,\n"
29266 "                       const char *xattr,\n"
29267 "                       const char *path);\n"
29268 "\n"
29269 msgstr ""
29270
29271 #. type: textblock
29272 #: ../src/guestfs-actions.pod:4369
29273 msgid ""
29274 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29275 "link, then it removes an extended attribute of the link itself."
29276 msgstr ""
29277
29278 #. type: =head2
29279 #: ../src/guestfs-actions.pod:4377
29280 msgid "guestfs_ls"
29281 msgstr ""
29282
29283 #. type: verbatim
29284 #: ../src/guestfs-actions.pod:4379
29285 #, no-wrap
29286 msgid ""
29287 " char **\n"
29288 " guestfs_ls (guestfs_h *g,\n"
29289 "             const char *directory);\n"
29290 "\n"
29291 msgstr ""
29292
29293 #. type: textblock
29294 #: ../src/guestfs-actions.pod:4387
29295 msgid ""
29296 "This command is mostly useful for interactive sessions.  Programs should "
29297 "probably use C<guestfs_readdir> instead."
29298 msgstr ""
29299
29300 #. type: =head2
29301 #: ../src/guestfs-actions.pod:4396
29302 msgid "guestfs_lsetxattr"
29303 msgstr ""
29304
29305 #. type: verbatim
29306 #: ../src/guestfs-actions.pod:4398
29307 #, no-wrap
29308 msgid ""
29309 " int\n"
29310 " guestfs_lsetxattr (guestfs_h *g,\n"
29311 "                    const char *xattr,\n"
29312 "                    const char *val,\n"
29313 "                    int vallen,\n"
29314 "                    const char *path);\n"
29315 "\n"
29316 msgstr ""
29317
29318 #. type: textblock
29319 #: ../src/guestfs-actions.pod:4405
29320 msgid ""
29321 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29322 "then it sets an extended attribute of the link itself."
29323 msgstr ""
29324
29325 #. type: =head2
29326 #: ../src/guestfs-actions.pod:4413
29327 msgid "guestfs_lstat"
29328 msgstr ""
29329
29330 #. type: verbatim
29331 #: ../src/guestfs-actions.pod:4415
29332 #, no-wrap
29333 msgid ""
29334 " struct guestfs_stat *\n"
29335 " guestfs_lstat (guestfs_h *g,\n"
29336 "                const char *path);\n"
29337 "\n"
29338 msgstr ""
29339
29340 #. type: textblock
29341 #: ../src/guestfs-actions.pod:4421
29342 msgid ""
29343 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29344 "link, then the link is stat-ed, not the file it refers to."
29345 msgstr ""
29346
29347 #. type: textblock
29348 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:7204
29349 msgid ""
29350 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29351 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29352 msgstr ""
29353
29354 #. type: textblock
29355 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7208
29356 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7607
29357 msgid "(Added in 0.9.2)"
29358 msgstr ""
29359
29360 #. type: =head2
29361 #: ../src/guestfs-actions.pod:4433
29362 msgid "guestfs_lstatlist"
29363 msgstr ""
29364
29365 #. type: verbatim
29366 #: ../src/guestfs-actions.pod:4435
29367 #, no-wrap
29368 msgid ""
29369 " struct guestfs_stat_list *\n"
29370 " guestfs_lstatlist (guestfs_h *g,\n"
29371 "                    const char *path,\n"
29372 "                    char *const *names);\n"
29373 "\n"
29374 msgstr ""
29375
29376 #. type: textblock
29377 #: ../src/guestfs-actions.pod:4440
29378 msgid ""
29379 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29380 "files, where all files are in the directory C<path>.  C<names> is the list "
29381 "of files from this directory."
29382 msgstr ""
29383
29384 #. type: textblock
29385 #: ../src/guestfs-actions.pod:4449
29386 msgid ""
29387 "This call is intended for programs that want to efficiently list a directory "
29388 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29389 "for a similarly efficient call for getting extended attributes.  Very long "
29390 "directory listings might cause the protocol message size to be exceeded, "
29391 "causing this call to fail.  The caller must split up such requests into "
29392 "smaller groups of names."
29393 msgstr ""
29394
29395 #. type: textblock
29396 #: ../src/guestfs-actions.pod:4457
29397 msgid ""
29398 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29399 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29400 msgstr ""
29401
29402 #. type: =head2
29403 #: ../src/guestfs-actions.pod:4463
29404 msgid "guestfs_luks_add_key"
29405 msgstr ""
29406
29407 #. type: verbatim
29408 #: ../src/guestfs-actions.pod:4465
29409 #, no-wrap
29410 msgid ""
29411 " int\n"
29412 " guestfs_luks_add_key (guestfs_h *g,\n"
29413 "                       const char *device,\n"
29414 "                       const char *key,\n"
29415 "                       const char *newkey,\n"
29416 "                       int keyslot);\n"
29417 "\n"
29418 msgstr ""
29419
29420 #. type: textblock
29421 #: ../src/guestfs-actions.pod:4477
29422 msgid ""
29423 "Note that if C<keyslot> already contains a key, then this command will "
29424 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29425 msgstr ""
29426
29427 #. type: textblock
29428 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:4520
29429 #: ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4560
29430 #: ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4614
29431 msgid ""
29432 "This function takes a key or passphrase parameter which could contain "
29433 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29434 "information."
29435 msgstr ""
29436
29437 #. type: textblock
29438 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4524
29439 #: ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4564
29440 msgid "(Added in 1.5.2)"
29441 msgstr ""
29442
29443 #. type: =head2
29444 #: ../src/guestfs-actions.pod:4489
29445 msgid "guestfs_luks_close"
29446 msgstr ""
29447
29448 #. type: verbatim
29449 #: ../src/guestfs-actions.pod:4491
29450 #, no-wrap
29451 msgid ""
29452 " int\n"
29453 " guestfs_luks_close (guestfs_h *g,\n"
29454 "                     const char *device);\n"
29455 "\n"
29456 msgstr ""
29457
29458 #. type: textblock
29459 #: ../src/guestfs-actions.pod:4495
29460 msgid ""
29461 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29462 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29463 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29464 "underlying block device."
29465 msgstr ""
29466
29467 #. type: textblock
29468 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4599
29469 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4668
29470 #: ../src/guestfs-actions.pod:4713
29471 msgid "(Added in 1.5.1)"
29472 msgstr ""
29473
29474 #. type: =head2
29475 #: ../src/guestfs-actions.pod:4505
29476 msgid "guestfs_luks_format"
29477 msgstr ""
29478
29479 #. type: verbatim
29480 #: ../src/guestfs-actions.pod:4507
29481 #, no-wrap
29482 msgid ""
29483 " int\n"
29484 " guestfs_luks_format (guestfs_h *g,\n"
29485 "                      const char *device,\n"
29486 "                      const char *key,\n"
29487 "                      int keyslot);\n"
29488 "\n"
29489 msgstr ""
29490
29491 #. type: =head2
29492 #: ../src/guestfs-actions.pod:4526
29493 msgid "guestfs_luks_format_cipher"
29494 msgstr ""
29495
29496 #. type: verbatim
29497 #: ../src/guestfs-actions.pod:4528
29498 #, no-wrap
29499 msgid ""
29500 " int\n"
29501 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29502 "                             const char *device,\n"
29503 "                             const char *key,\n"
29504 "                             int keyslot,\n"
29505 "                             const char *cipher);\n"
29506 "\n"
29507 msgstr ""
29508
29509 #. type: textblock
29510 #: ../src/guestfs-actions.pod:4535
29511 msgid ""
29512 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29513 "set the C<cipher> used."
29514 msgstr ""
29515
29516 #. type: =head2
29517 #: ../src/guestfs-actions.pod:4546
29518 msgid "guestfs_luks_kill_slot"
29519 msgstr ""
29520
29521 #. type: verbatim
29522 #: ../src/guestfs-actions.pod:4548
29523 #, no-wrap
29524 msgid ""
29525 " int\n"
29526 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29527 "                         const char *device,\n"
29528 "                         const char *key,\n"
29529 "                         int keyslot);\n"
29530 "\n"
29531 msgstr ""
29532
29533 #. type: =head2
29534 #: ../src/guestfs-actions.pod:4566
29535 msgid "guestfs_luks_open"
29536 msgstr ""
29537
29538 #. type: verbatim
29539 #: ../src/guestfs-actions.pod:4568
29540 #, no-wrap
29541 msgid ""
29542 " int\n"
29543 " guestfs_luks_open (guestfs_h *g,\n"
29544 "                    const char *device,\n"
29545 "                    const char *key,\n"
29546 "                    const char *mapname);\n"
29547 "\n"
29548 msgstr ""
29549
29550 #. type: textblock
29551 #: ../src/guestfs-actions.pod:4586
29552 msgid ""
29553 "If this block device contains LVM volume groups, then calling "
29554 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29555 "visible."
29556 msgstr ""
29557
29558 #. type: textblock
29559 #: ../src/guestfs-actions.pod:4590
29560 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29561 msgstr ""
29562
29563 #. type: =head2
29564 #: ../src/guestfs-actions.pod:4601
29565 msgid "guestfs_luks_open_ro"
29566 msgstr ""
29567
29568 #. type: verbatim
29569 #: ../src/guestfs-actions.pod:4603
29570 #, no-wrap
29571 msgid ""
29572 " int\n"
29573 " guestfs_luks_open_ro (guestfs_h *g,\n"
29574 "                       const char *device,\n"
29575 "                       const char *key,\n"
29576 "                       const char *mapname);\n"
29577 "\n"
29578 msgstr ""
29579
29580 #. type: textblock
29581 #: ../src/guestfs-actions.pod:4609
29582 msgid ""
29583 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29584 "created."
29585 msgstr ""
29586
29587 #. type: =head2
29588 #: ../src/guestfs-actions.pod:4620
29589 msgid "guestfs_lvcreate"
29590 msgstr ""
29591
29592 #. type: verbatim
29593 #: ../src/guestfs-actions.pod:4622
29594 #, no-wrap
29595 msgid ""
29596 " int\n"
29597 " guestfs_lvcreate (guestfs_h *g,\n"
29598 "                   const char *logvol,\n"
29599 "                   const char *volgroup,\n"
29600 "                   int mbytes);\n"
29601 "\n"
29602 msgstr ""
29603
29604 #. type: =head2
29605 #: ../src/guestfs-actions.pod:4635
29606 msgid "guestfs_lvm_canonical_lv_name"
29607 msgstr ""
29608
29609 #. type: verbatim
29610 #: ../src/guestfs-actions.pod:4637
29611 #, no-wrap
29612 msgid ""
29613 " char *\n"
29614 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29615 "                                const char *lvname);\n"
29616 "\n"
29617 msgstr ""
29618
29619 #. type: textblock
29620 #: ../src/guestfs-actions.pod:4648
29621 msgid "See also C<guestfs_is_lv>."
29622 msgstr ""
29623
29624 #. type: textblock
29625 #: ../src/guestfs-actions.pod:4653
29626 msgid "(Added in 1.5.24)"
29627 msgstr ""
29628
29629 #. type: =head2
29630 #: ../src/guestfs-actions.pod:4655
29631 msgid "guestfs_lvm_clear_filter"
29632 msgstr ""
29633
29634 #. type: verbatim
29635 #: ../src/guestfs-actions.pod:4657
29636 #, no-wrap
29637 msgid ""
29638 " int\n"
29639 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29640 "\n"
29641 msgstr ""
29642
29643 #. type: textblock
29644 #: ../src/guestfs-actions.pod:4660
29645 msgid ""
29646 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29647 "see every block device."
29648 msgstr ""
29649
29650 #. type: =head2
29651 #: ../src/guestfs-actions.pod:4670
29652 msgid "guestfs_lvm_remove_all"
29653 msgstr ""
29654
29655 #. type: verbatim
29656 #: ../src/guestfs-actions.pod:4672
29657 #, no-wrap
29658 msgid ""
29659 " int\n"
29660 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29661 "\n"
29662 msgstr ""
29663
29664 #. type: =head2
29665 #: ../src/guestfs-actions.pod:4682
29666 msgid "guestfs_lvm_set_filter"
29667 msgstr ""
29668
29669 #. type: verbatim
29670 #: ../src/guestfs-actions.pod:4684
29671 #, no-wrap
29672 msgid ""
29673 " int\n"
29674 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29675 "                         char *const *devices);\n"
29676 "\n"
29677 msgstr ""
29678
29679 #. type: =head2
29680 #: ../src/guestfs-actions.pod:4715
29681 msgid "guestfs_lvremove"
29682 msgstr ""
29683
29684 #. type: verbatim
29685 #: ../src/guestfs-actions.pod:4717
29686 #, no-wrap
29687 msgid ""
29688 " int\n"
29689 " guestfs_lvremove (guestfs_h *g,\n"
29690 "                   const char *device);\n"
29691 "\n"
29692 msgstr ""
29693
29694 #. type: textblock
29695 #: ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:6139
29696 #: ../src/guestfs-actions.pod:7977
29697 msgid "(Added in 1.0.13)"
29698 msgstr ""
29699
29700 #. type: =head2
29701 #: ../src/guestfs-actions.pod:4731
29702 msgid "guestfs_lvrename"
29703 msgstr ""
29704
29705 #. type: verbatim
29706 #: ../src/guestfs-actions.pod:4733
29707 #, no-wrap
29708 msgid ""
29709 " int\n"
29710 " guestfs_lvrename (guestfs_h *g,\n"
29711 "                   const char *logvol,\n"
29712 "                   const char *newlogvol);\n"
29713 "\n"
29714 msgstr ""
29715
29716 #. type: textblock
29717 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:7990
29718 msgid "(Added in 1.0.83)"
29719 msgstr ""
29720
29721 #. type: =head2
29722 #: ../src/guestfs-actions.pod:4744
29723 msgid "guestfs_lvresize"
29724 msgstr ""
29725
29726 #. type: verbatim
29727 #: ../src/guestfs-actions.pod:4746
29728 #, no-wrap
29729 msgid ""
29730 " int\n"
29731 " guestfs_lvresize (guestfs_h *g,\n"
29732 "                   const char *device,\n"
29733 "                   int mbytes);\n"
29734 "\n"
29735 msgstr ""
29736
29737 #. type: =head2
29738 #: ../src/guestfs-actions.pod:4759
29739 msgid "guestfs_lvresize_free"
29740 msgstr ""
29741
29742 #. type: verbatim
29743 #: ../src/guestfs-actions.pod:4761
29744 #, no-wrap
29745 msgid ""
29746 " int\n"
29747 " guestfs_lvresize_free (guestfs_h *g,\n"
29748 "                        const char *lv,\n"
29749 "                        int percent);\n"
29750 "\n"
29751 msgstr ""
29752
29753 #. type: textblock
29754 #: ../src/guestfs-actions.pod:4774
29755 msgid "(Added in 1.3.3)"
29756 msgstr ""
29757
29758 #. type: =head2
29759 #: ../src/guestfs-actions.pod:4776
29760 msgid "guestfs_lvs"
29761 msgstr ""
29762
29763 #. type: verbatim
29764 #: ../src/guestfs-actions.pod:4778
29765 #, no-wrap
29766 msgid ""
29767 " char **\n"
29768 " guestfs_lvs (guestfs_h *g);\n"
29769 "\n"
29770 msgstr ""
29771
29772 #. type: textblock
29773 #: ../src/guestfs-actions.pod:4787
29774 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29775 msgstr ""
29776
29777 #. type: =head2
29778 #: ../src/guestfs-actions.pod:4795
29779 msgid "guestfs_lvs_full"
29780 msgstr ""
29781
29782 #. type: verbatim
29783 #: ../src/guestfs-actions.pod:4797
29784 #, no-wrap
29785 msgid ""
29786 " struct guestfs_lvm_lv_list *\n"
29787 " guestfs_lvs_full (guestfs_h *g);\n"
29788 "\n"
29789 msgstr ""
29790
29791 #. type: textblock
29792 #: ../src/guestfs-actions.pod:4803
29793 msgid ""
29794 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29795 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29796 msgstr ""
29797
29798 #. type: =head2
29799 #: ../src/guestfs-actions.pod:4809
29800 msgid "guestfs_lvuuid"
29801 msgstr ""
29802
29803 #. type: verbatim
29804 #: ../src/guestfs-actions.pod:4811
29805 #, no-wrap
29806 msgid ""
29807 " char *\n"
29808 " guestfs_lvuuid (guestfs_h *g,\n"
29809 "                 const char *device);\n"
29810 "\n"
29811 msgstr ""
29812
29813 #. type: =head2
29814 #: ../src/guestfs-actions.pod:4822
29815 msgid "guestfs_lxattrlist"
29816 msgstr ""
29817
29818 #. type: verbatim
29819 #: ../src/guestfs-actions.pod:4824
29820 #, no-wrap
29821 msgid ""
29822 " struct guestfs_xattr_list *\n"
29823 " guestfs_lxattrlist (guestfs_h *g,\n"
29824 "                     const char *path,\n"
29825 "                     char *const *names);\n"
29826 "\n"
29827 msgstr ""
29828
29829 #. type: textblock
29830 #: ../src/guestfs-actions.pod:4843
29831 msgid ""
29832 "This call is intended for programs that want to efficiently list a directory "
29833 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29834 "a similarly efficient call for getting standard stats.  Very long directory "
29835 "listings might cause the protocol message size to be exceeded, causing this "
29836 "call to fail.  The caller must split up such requests into smaller groups of "
29837 "names."
29838 msgstr ""
29839
29840 #. type: =head2
29841 #: ../src/guestfs-actions.pod:4857
29842 msgid "guestfs_mkdir"
29843 msgstr ""
29844
29845 #. type: verbatim
29846 #: ../src/guestfs-actions.pod:4859
29847 #, no-wrap
29848 msgid ""
29849 " int\n"
29850 " guestfs_mkdir (guestfs_h *g,\n"
29851 "                const char *path);\n"
29852 "\n"
29853 msgstr ""
29854
29855 #. type: =head2
29856 #: ../src/guestfs-actions.pod:4869
29857 msgid "guestfs_mkdir_mode"
29858 msgstr ""
29859
29860 #. type: verbatim
29861 #: ../src/guestfs-actions.pod:4871
29862 #, no-wrap
29863 msgid ""
29864 " int\n"
29865 " guestfs_mkdir_mode (guestfs_h *g,\n"
29866 "                     const char *path,\n"
29867 "                     int mode);\n"
29868 "\n"
29869 msgstr ""
29870
29871 #. type: textblock
29872 #: ../src/guestfs-actions.pod:4883
29873 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29874 msgstr ""
29875
29876 #. type: =head2
29877 #: ../src/guestfs-actions.pod:4889
29878 msgid "guestfs_mkdir_p"
29879 msgstr ""
29880
29881 #. type: verbatim
29882 #: ../src/guestfs-actions.pod:4891
29883 #, no-wrap
29884 msgid ""
29885 " int\n"
29886 " guestfs_mkdir_p (guestfs_h *g,\n"
29887 "                  const char *path);\n"
29888 "\n"
29889 msgstr ""
29890
29891 #. type: =head2
29892 #: ../src/guestfs-actions.pod:4902
29893 msgid "guestfs_mkdtemp"
29894 msgstr ""
29895
29896 #. type: verbatim
29897 #: ../src/guestfs-actions.pod:4904
29898 #, no-wrap
29899 msgid ""
29900 " char *\n"
29901 " guestfs_mkdtemp (guestfs_h *g,\n"
29902 "                  const char *template);\n"
29903 "\n"
29904 msgstr ""
29905
29906 #. type: =head2
29907 #: ../src/guestfs-actions.pod:4932
29908 msgid "guestfs_mke2fs_J"
29909 msgstr ""
29910
29911 #. type: verbatim
29912 #: ../src/guestfs-actions.pod:4934
29913 #, no-wrap
29914 msgid ""
29915 " int\n"
29916 " guestfs_mke2fs_J (guestfs_h *g,\n"
29917 "                   const char *fstype,\n"
29918 "                   int blocksize,\n"
29919 "                   const char *device,\n"
29920 "                   const char *journal);\n"
29921 "\n"
29922 msgstr ""
29923
29924 #. type: textblock
29925 #: ../src/guestfs-actions.pod:4947
29926 msgid "See also C<guestfs_mke2journal>."
29927 msgstr ""
29928
29929 #. type: textblock
29930 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:4969
29931 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5003
29932 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5031
29933 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5367
29934 msgid "(Added in 1.0.68)"
29935 msgstr ""
29936
29937 #. type: =head2
29938 #: ../src/guestfs-actions.pod:4953
29939 msgid "guestfs_mke2fs_JL"
29940 msgstr ""
29941
29942 #. type: verbatim
29943 #: ../src/guestfs-actions.pod:4955
29944 #, no-wrap
29945 msgid ""
29946 " int\n"
29947 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29948 "                    const char *fstype,\n"
29949 "                    int blocksize,\n"
29950 "                    const char *device,\n"
29951 "                    const char *label);\n"
29952 "\n"
29953 msgstr ""
29954
29955 #. type: textblock
29956 #: ../src/guestfs-actions.pod:4965
29957 msgid "See also C<guestfs_mke2journal_L>."
29958 msgstr ""
29959
29960 #. type: =head2
29961 #: ../src/guestfs-actions.pod:4971
29962 msgid "guestfs_mke2fs_JU"
29963 msgstr ""
29964
29965 #. type: verbatim
29966 #: ../src/guestfs-actions.pod:4973
29967 #, no-wrap
29968 msgid ""
29969 " int\n"
29970 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29971 "                    const char *fstype,\n"
29972 "                    int blocksize,\n"
29973 "                    const char *device,\n"
29974 "                    const char *uuid);\n"
29975 "\n"
29976 msgstr ""
29977
29978 #. type: textblock
29979 #: ../src/guestfs-actions.pod:4983
29980 msgid "See also C<guestfs_mke2journal_U>."
29981 msgstr ""
29982
29983 #. type: =head2
29984 #: ../src/guestfs-actions.pod:4989
29985 msgid "guestfs_mke2journal"
29986 msgstr ""
29987
29988 #. type: verbatim
29989 #: ../src/guestfs-actions.pod:4991
29990 #, no-wrap
29991 msgid ""
29992 " int\n"
29993 " guestfs_mke2journal (guestfs_h *g,\n"
29994 "                      int blocksize,\n"
29995 "                      const char *device);\n"
29996 "\n"
29997 msgstr ""
29998
29999 #. type: =head2
30000 #: ../src/guestfs-actions.pod:5005
30001 msgid "guestfs_mke2journal_L"
30002 msgstr ""
30003
30004 #. type: verbatim
30005 #: ../src/guestfs-actions.pod:5007
30006 #, no-wrap
30007 msgid ""
30008 " int\n"
30009 " guestfs_mke2journal_L (guestfs_h *g,\n"
30010 "                        int blocksize,\n"
30011 "                        const char *label,\n"
30012 "                        const char *device);\n"
30013 "\n"
30014 msgstr ""
30015
30016 #. type: =head2
30017 #: ../src/guestfs-actions.pod:5019
30018 msgid "guestfs_mke2journal_U"
30019 msgstr ""
30020
30021 #. type: verbatim
30022 #: ../src/guestfs-actions.pod:5021
30023 #, no-wrap
30024 msgid ""
30025 " int\n"
30026 " guestfs_mke2journal_U (guestfs_h *g,\n"
30027 "                        int blocksize,\n"
30028 "                        const char *uuid,\n"
30029 "                        const char *device);\n"
30030 "\n"
30031 msgstr ""
30032
30033 #. type: =head2
30034 #: ../src/guestfs-actions.pod:5033
30035 msgid "guestfs_mkfifo"
30036 msgstr ""
30037
30038 #. type: verbatim
30039 #: ../src/guestfs-actions.pod:5035
30040 #, no-wrap
30041 msgid ""
30042 " int\n"
30043 " guestfs_mkfifo (guestfs_h *g,\n"
30044 "                 int mode,\n"
30045 "                 const char *path);\n"
30046 "\n"
30047 msgstr ""
30048
30049 #. type: textblock
30050 #: ../src/guestfs-actions.pod:5040
30051 msgid ""
30052 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30053 "is just a convenient wrapper around C<guestfs_mknod>."
30054 msgstr ""
30055
30056 #. type: =head2
30057 #: ../src/guestfs-actions.pod:5050
30058 msgid "guestfs_mkfs"
30059 msgstr ""
30060
30061 #. type: verbatim
30062 #: ../src/guestfs-actions.pod:5052
30063 #, no-wrap
30064 msgid ""
30065 " int\n"
30066 " guestfs_mkfs (guestfs_h *g,\n"
30067 "               const char *fstype,\n"
30068 "               const char *device);\n"
30069 "\n"
30070 msgstr ""
30071
30072 #. type: =head2
30073 #: ../src/guestfs-actions.pod:5065
30074 msgid "guestfs_mkfs_b"
30075 msgstr ""
30076
30077 #. type: verbatim
30078 #: ../src/guestfs-actions.pod:5067
30079 #, no-wrap
30080 msgid ""
30081 " int\n"
30082 " guestfs_mkfs_b (guestfs_h *g,\n"
30083 "                 const char *fstype,\n"
30084 "                 int blocksize,\n"
30085 "                 const char *device);\n"
30086 "\n"
30087 msgstr ""
30088
30089 #. type: textblock
30090 #: ../src/guestfs-actions.pod:5073
30091 msgid ""
30092 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30093 "call instead."
30094 msgstr ""
30095
30096 #. type: textblock
30097 #: ../src/guestfs-actions.pod:5080
30098 msgid ""
30099 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30100 "block size of the resulting filesystem.  Supported block sizes depend on the "
30101 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30102 msgstr ""
30103
30104 #. type: =head2
30105 #: ../src/guestfs-actions.pod:5092
30106 msgid "guestfs_mkfs_opts"
30107 msgstr ""
30108
30109 #. type: verbatim
30110 #: ../src/guestfs-actions.pod:5094
30111 #, no-wrap
30112 msgid ""
30113 " int\n"
30114 " guestfs_mkfs_opts (guestfs_h *g,\n"
30115 "                    const char *fstype,\n"
30116 "                    const char *device,\n"
30117 "                    ...);\n"
30118 "\n"
30119 msgstr ""
30120
30121 #. type: verbatim
30122 #: ../src/guestfs-actions.pod:5105
30123 #, no-wrap
30124 msgid ""
30125 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30126 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30127 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30128 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30129 "\n"
30130 msgstr ""
30131
30132 #. type: textblock
30133 #: ../src/guestfs-actions.pod:5153
30134 msgid "(Added in 1.7.19)"
30135 msgstr ""
30136
30137 #. type: =head2
30138 #: ../src/guestfs-actions.pod:5155
30139 msgid "guestfs_mkfs_opts_va"
30140 msgstr ""
30141
30142 #. type: verbatim
30143 #: ../src/guestfs-actions.pod:5157
30144 #, no-wrap
30145 msgid ""
30146 " int\n"
30147 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30148 "                       const char *fstype,\n"
30149 "                       const char *device,\n"
30150 "                       va_list args);\n"
30151 "\n"
30152 msgstr ""
30153
30154 #. type: textblock
30155 #: ../src/guestfs-actions.pod:5163
30156 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30157 msgstr ""
30158
30159 #. type: =head2
30160 #: ../src/guestfs-actions.pod:5167
30161 msgid "guestfs_mkfs_opts_argv"
30162 msgstr ""
30163
30164 #. type: verbatim
30165 #: ../src/guestfs-actions.pod:5169
30166 #, no-wrap
30167 msgid ""
30168 " int\n"
30169 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30170 "                         const char *fstype,\n"
30171 "                         const char *device,\n"
30172 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30173 "\n"
30174 msgstr ""
30175
30176 #. type: textblock
30177 #: ../src/guestfs-actions.pod:5175
30178 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30179 msgstr ""
30180
30181 #. type: =head2
30182 #: ../src/guestfs-actions.pod:5179
30183 msgid "guestfs_mkmountpoint"
30184 msgstr ""
30185
30186 #. type: verbatim
30187 #: ../src/guestfs-actions.pod:5181
30188 #, no-wrap
30189 msgid ""
30190 " int\n"
30191 " guestfs_mkmountpoint (guestfs_h *g,\n"
30192 "                       const char *exemptpath);\n"
30193 "\n"
30194 msgstr ""
30195
30196 #. type: textblock
30197 #: ../src/guestfs-actions.pod:5185
30198 msgid ""
30199 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30200 "that can be used to create extra mountpoints before mounting the first "
30201 "filesystem."
30202 msgstr ""
30203
30204 #. type: textblock
30205 #: ../src/guestfs-actions.pod:5209
30206 msgid ""
30207 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30208 "may get unexpected errors if you try to mix these calls.  It is safest to "
30209 "manually unmount filesystems and remove mountpoints after use."
30210 msgstr ""
30211
30212 #. type: textblock
30213 #: ../src/guestfs-actions.pod:5213
30214 msgid ""
30215 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30216 "first, so for this to work for manual mountpoints, you must ensure that the "
30217 "innermost mountpoints have the longest pathnames, as in the example code "
30218 "above."
30219 msgstr ""
30220
30221 #. type: textblock
30222 #: ../src/guestfs-actions.pod:5220
30223 msgid ""
30224 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30225 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30226 "can also trigger these issues."
30227 msgstr ""
30228
30229 #. type: textblock
30230 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5532
30231 #: ../src/guestfs-actions.pod:6559
30232 msgid "(Added in 1.0.62)"
30233 msgstr ""
30234
30235 #. type: =head2
30236 #: ../src/guestfs-actions.pod:5228
30237 msgid "guestfs_mknod"
30238 msgstr ""
30239
30240 #. type: verbatim
30241 #: ../src/guestfs-actions.pod:5230
30242 #, no-wrap
30243 msgid ""
30244 " int\n"
30245 " guestfs_mknod (guestfs_h *g,\n"
30246 "                int mode,\n"
30247 "                int devmajor,\n"
30248 "                int devminor,\n"
30249 "                const char *path);\n"
30250 "\n"
30251 msgstr ""
30252
30253 #. type: textblock
30254 #: ../src/guestfs-actions.pod:5245
30255 msgid ""
30256 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30257 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30258 "regular file).  These constants are available in the standard Linux header "
30259 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30260 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30261 "the appropriate constant for you."
30262 msgstr ""
30263
30264 #. type: =head2
30265 #: ../src/guestfs-actions.pod:5259
30266 msgid "guestfs_mknod_b"
30267 msgstr ""
30268
30269 #. type: verbatim
30270 #: ../src/guestfs-actions.pod:5261
30271 #, no-wrap
30272 msgid ""
30273 " int\n"
30274 " guestfs_mknod_b (guestfs_h *g,\n"
30275 "                  int mode,\n"
30276 "                  int devmajor,\n"
30277 "                  int devminor,\n"
30278 "                  const char *path);\n"
30279 "\n"
30280 msgstr ""
30281
30282 #. type: textblock
30283 #: ../src/guestfs-actions.pod:5268
30284 msgid ""
30285 "This call creates a block device node called C<path> with mode C<mode> and "
30286 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30287 "wrapper around C<guestfs_mknod>."
30288 msgstr ""
30289
30290 #. type: =head2
30291 #: ../src/guestfs-actions.pod:5278
30292 msgid "guestfs_mknod_c"
30293 msgstr ""
30294
30295 #. type: verbatim
30296 #: ../src/guestfs-actions.pod:5280
30297 #, no-wrap
30298 msgid ""
30299 " int\n"
30300 " guestfs_mknod_c (guestfs_h *g,\n"
30301 "                  int mode,\n"
30302 "                  int devmajor,\n"
30303 "                  int devminor,\n"
30304 "                  const char *path);\n"
30305 "\n"
30306 msgstr ""
30307
30308 #. type: textblock
30309 #: ../src/guestfs-actions.pod:5287
30310 msgid ""
30311 "This call creates a char device node called C<path> with mode C<mode> and "
30312 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30313 "wrapper around C<guestfs_mknod>."
30314 msgstr ""
30315
30316 #. type: =head2
30317 #: ../src/guestfs-actions.pod:5297
30318 msgid "guestfs_mkswap"
30319 msgstr ""
30320
30321 #. type: verbatim
30322 #: ../src/guestfs-actions.pod:5299
30323 #, no-wrap
30324 msgid ""
30325 " int\n"
30326 " guestfs_mkswap (guestfs_h *g,\n"
30327 "                 const char *device);\n"
30328 "\n"
30329 msgstr ""
30330
30331 #. type: =head2
30332 #: ../src/guestfs-actions.pod:5309
30333 msgid "guestfs_mkswap_L"
30334 msgstr ""
30335
30336 #. type: verbatim
30337 #: ../src/guestfs-actions.pod:5311
30338 #, no-wrap
30339 msgid ""
30340 " int\n"
30341 " guestfs_mkswap_L (guestfs_h *g,\n"
30342 "                   const char *label,\n"
30343 "                   const char *device);\n"
30344 "\n"
30345 msgstr ""
30346
30347 #. type: =head2
30348 #: ../src/guestfs-actions.pod:5326
30349 msgid "guestfs_mkswap_U"
30350 msgstr ""
30351
30352 #. type: verbatim
30353 #: ../src/guestfs-actions.pod:5328
30354 #, no-wrap
30355 msgid ""
30356 " int\n"
30357 " guestfs_mkswap_U (guestfs_h *g,\n"
30358 "                   const char *uuid,\n"
30359 "                   const char *device);\n"
30360 "\n"
30361 msgstr ""
30362
30363 #. type: =head2
30364 #: ../src/guestfs-actions.pod:5339
30365 msgid "guestfs_mkswap_file"
30366 msgstr ""
30367
30368 #. type: verbatim
30369 #: ../src/guestfs-actions.pod:5341
30370 #, no-wrap
30371 msgid ""
30372 " int\n"
30373 " guestfs_mkswap_file (guestfs_h *g,\n"
30374 "                      const char *path);\n"
30375 "\n"
30376 msgstr ""
30377
30378 #. type: textblock
30379 #: ../src/guestfs-actions.pod:5347
30380 msgid ""
30381 "This command just writes a swap file signature to an existing file.  To "
30382 "create the file itself, use something like C<guestfs_fallocate>."
30383 msgstr ""
30384
30385 #. type: =head2
30386 #: ../src/guestfs-actions.pod:5354
30387 msgid "guestfs_modprobe"
30388 msgstr ""
30389
30390 #. type: verbatim
30391 #: ../src/guestfs-actions.pod:5356
30392 #, no-wrap
30393 msgid ""
30394 " int\n"
30395 " guestfs_modprobe (guestfs_h *g,\n"
30396 "                   const char *modulename);\n"
30397 "\n"
30398 msgstr ""
30399
30400 #. type: =head2
30401 #: ../src/guestfs-actions.pod:5369
30402 msgid "guestfs_mount"
30403 msgstr ""
30404
30405 #. type: verbatim
30406 #: ../src/guestfs-actions.pod:5371
30407 #, no-wrap
30408 msgid ""
30409 " int\n"
30410 " guestfs_mount (guestfs_h *g,\n"
30411 "                const char *device,\n"
30412 "                const char *mountpoint);\n"
30413 "\n"
30414 msgstr ""
30415
30416 #. type: textblock
30417 #: ../src/guestfs-actions.pod:5390
30418 msgid ""
30419 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30420 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30421 "problems for users.  If your program might need to work with older versions "
30422 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30423 "for the first parameter if you don't want any options)."
30424 msgstr ""
30425
30426 #. type: =head2
30427 #: ../src/guestfs-actions.pod:5401
30428 msgid "guestfs_mount_9p"
30429 msgstr ""
30430
30431 #. type: verbatim
30432 #: ../src/guestfs-actions.pod:5403
30433 #, no-wrap
30434 msgid ""
30435 " int\n"
30436 " guestfs_mount_9p (guestfs_h *g,\n"
30437 "                   const char *mounttag,\n"
30438 "                   const char *mountpoint,\n"
30439 "                   ...);\n"
30440 "\n"
30441 msgstr ""
30442
30443 #. type: verbatim
30444 #: ../src/guestfs-actions.pod:5414
30445 #, no-wrap
30446 msgid ""
30447 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30448 "\n"
30449 msgstr ""
30450
30451 #. type: =head2
30452 #: ../src/guestfs-actions.pod:5427
30453 msgid "guestfs_mount_9p_va"
30454 msgstr ""
30455
30456 #. type: verbatim
30457 #: ../src/guestfs-actions.pod:5429
30458 #, no-wrap
30459 msgid ""
30460 " int\n"
30461 " guestfs_mount_9p_va (guestfs_h *g,\n"
30462 "                      const char *mounttag,\n"
30463 "                      const char *mountpoint,\n"
30464 "                      va_list args);\n"
30465 "\n"
30466 msgstr ""
30467
30468 #. type: textblock
30469 #: ../src/guestfs-actions.pod:5435
30470 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30471 msgstr ""
30472
30473 #. type: =head2
30474 #: ../src/guestfs-actions.pod:5439
30475 msgid "guestfs_mount_9p_argv"
30476 msgstr ""
30477
30478 #. type: verbatim
30479 #: ../src/guestfs-actions.pod:5441
30480 #, no-wrap
30481 msgid ""
30482 " int\n"
30483 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30484 "                        const char *mounttag,\n"
30485 "                        const char *mountpoint,\n"
30486 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30487 "\n"
30488 msgstr ""
30489
30490 #. type: textblock
30491 #: ../src/guestfs-actions.pod:5447
30492 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30493 msgstr ""
30494
30495 #. type: =head2
30496 #: ../src/guestfs-actions.pod:5451
30497 msgid "guestfs_mount_loop"
30498 msgstr ""
30499
30500 #. type: verbatim
30501 #: ../src/guestfs-actions.pod:5453
30502 #, no-wrap
30503 msgid ""
30504 " int\n"
30505 " guestfs_mount_loop (guestfs_h *g,\n"
30506 "                     const char *file,\n"
30507 "                     const char *mountpoint);\n"
30508 "\n"
30509 msgstr ""
30510
30511 #. type: =head2
30512 #: ../src/guestfs-actions.pod:5466
30513 msgid "guestfs_mount_options"
30514 msgstr ""
30515
30516 #. type: verbatim
30517 #: ../src/guestfs-actions.pod:5468
30518 #, no-wrap
30519 msgid ""
30520 " int\n"
30521 " guestfs_mount_options (guestfs_h *g,\n"
30522 "                        const char *options,\n"
30523 "                        const char *device,\n"
30524 "                        const char *mountpoint);\n"
30525 "\n"
30526 msgstr ""
30527
30528 #. type: textblock
30529 #: ../src/guestfs-actions.pod:5474
30530 msgid ""
30531 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30532 "the mount options as for the L<mount(8)> I<-o> flag."
30533 msgstr ""
30534
30535 #. type: textblock
30536 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5498
30537 #: ../src/guestfs-actions.pod:5515
30538 msgid "(Added in 1.0.10)"
30539 msgstr ""
30540
30541 #. type: =head2
30542 #: ../src/guestfs-actions.pod:5486
30543 msgid "guestfs_mount_ro"
30544 msgstr ""
30545
30546 #. type: verbatim
30547 #: ../src/guestfs-actions.pod:5488
30548 #, no-wrap
30549 msgid ""
30550 " int\n"
30551 " guestfs_mount_ro (guestfs_h *g,\n"
30552 "                   const char *device,\n"
30553 "                   const char *mountpoint);\n"
30554 "\n"
30555 msgstr ""
30556
30557 #. type: textblock
30558 #: ../src/guestfs-actions.pod:5493
30559 msgid ""
30560 "This is the same as the C<guestfs_mount> command, but it mounts the "
30561 "filesystem with the read-only (I<-o ro>) flag."
30562 msgstr ""
30563
30564 #. type: =head2
30565 #: ../src/guestfs-actions.pod:5500
30566 msgid "guestfs_mount_vfs"
30567 msgstr ""
30568
30569 #. type: verbatim
30570 #: ../src/guestfs-actions.pod:5502
30571 #, no-wrap
30572 msgid ""
30573 " int\n"
30574 " guestfs_mount_vfs (guestfs_h *g,\n"
30575 "                    const char *options,\n"
30576 "                    const char *vfstype,\n"
30577 "                    const char *device,\n"
30578 "                    const char *mountpoint);\n"
30579 "\n"
30580 msgstr ""
30581
30582 #. type: textblock
30583 #: ../src/guestfs-actions.pod:5509
30584 msgid ""
30585 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30586 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
30587 "t> flags."
30588 msgstr ""
30589
30590 #. type: =head2
30591 #: ../src/guestfs-actions.pod:5517
30592 msgid "guestfs_mountpoints"
30593 msgstr ""
30594
30595 #. type: verbatim
30596 #: ../src/guestfs-actions.pod:5519
30597 #, no-wrap
30598 msgid ""
30599 " char **\n"
30600 " guestfs_mountpoints (guestfs_h *g);\n"
30601 "\n"
30602 msgstr ""
30603
30604 #. type: textblock
30605 #: ../src/guestfs-actions.pod:5522
30606 msgid ""
30607 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30608 "devices.  This one returns a hash table (map) of device name to directory "
30609 "where the device is mounted."
30610 msgstr ""
30611
30612 #. type: =head2
30613 #: ../src/guestfs-actions.pod:5534
30614 msgid "guestfs_mounts"
30615 msgstr ""
30616
30617 #. type: verbatim
30618 #: ../src/guestfs-actions.pod:5536
30619 #, no-wrap
30620 msgid ""
30621 " char **\n"
30622 " guestfs_mounts (guestfs_h *g);\n"
30623 "\n"
30624 msgstr ""
30625
30626 #. type: textblock
30627 #: ../src/guestfs-actions.pod:5544
30628 msgid "See also: C<guestfs_mountpoints>"
30629 msgstr ""
30630
30631 #. type: =head2
30632 #: ../src/guestfs-actions.pod:5552
30633 msgid "guestfs_mv"
30634 msgstr ""
30635
30636 #. type: verbatim
30637 #: ../src/guestfs-actions.pod:5554
30638 #, no-wrap
30639 msgid ""
30640 " int\n"
30641 " guestfs_mv (guestfs_h *g,\n"
30642 "             const char *src,\n"
30643 "             const char *dest);\n"
30644 "\n"
30645 msgstr ""
30646
30647 #. type: =head2
30648 #: ../src/guestfs-actions.pod:5566
30649 msgid "guestfs_ntfs_3g_probe"
30650 msgstr ""
30651
30652 #. type: verbatim
30653 #: ../src/guestfs-actions.pod:5568
30654 #, no-wrap
30655 msgid ""
30656 " int\n"
30657 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30658 "                        int rw,\n"
30659 "                        const char *device);\n"
30660 "\n"
30661 msgstr ""
30662
30663 #. type: textblock
30664 #: ../src/guestfs-actions.pod:5587
30665 msgid "(Added in 1.0.43)"
30666 msgstr ""
30667
30668 #. type: =head2
30669 #: ../src/guestfs-actions.pod:5589
30670 msgid "guestfs_ntfsresize"
30671 msgstr ""
30672
30673 #. type: verbatim
30674 #: ../src/guestfs-actions.pod:5591
30675 #, no-wrap
30676 msgid ""
30677 " int\n"
30678 " guestfs_ntfsresize (guestfs_h *g,\n"
30679 "                     const char *device);\n"
30680 "\n"
30681 msgstr ""
30682
30683 #. type: textblock
30684 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5695
30685 msgid ""
30686 "I<This function is deprecated.> In new code, use the L</"
30687 "guestfs_ntfsresize_opts> call instead."
30688 msgstr ""
30689
30690 #. type: =head2
30691 #: ../src/guestfs-actions.pod:5619
30692 msgid "guestfs_ntfsresize_opts"
30693 msgstr ""
30694
30695 #. type: verbatim
30696 #: ../src/guestfs-actions.pod:5621
30697 #, no-wrap
30698 msgid ""
30699 " int\n"
30700 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30701 "                          const char *device,\n"
30702 "                          ...);\n"
30703 "\n"
30704 msgstr ""
30705
30706 #. type: verbatim
30707 #: ../src/guestfs-actions.pod:5631
30708 #, no-wrap
30709 msgid ""
30710 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30711 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30712 "\n"
30713 msgstr ""
30714
30715 #. type: textblock
30716 #: ../src/guestfs-actions.pod:5651
30717 msgid ""
30718 "After the resize operation, the filesystem is always marked as requiring a "
30719 "consistency check (for safety).  You have to boot into Windows to perform "
30720 "this check and clear this condition.  If you I<don't> set the C<force> "
30721 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30722 "times on a single filesystem without booting into Windows between each "
30723 "resize."
30724 msgstr ""
30725
30726 #. type: =head2
30727 #: ../src/guestfs-actions.pod:5666
30728 msgid "guestfs_ntfsresize_opts_va"
30729 msgstr ""
30730
30731 #. type: verbatim
30732 #: ../src/guestfs-actions.pod:5668
30733 #, no-wrap
30734 msgid ""
30735 " int\n"
30736 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30737 "                             const char *device,\n"
30738 "                             va_list args);\n"
30739 "\n"
30740 msgstr ""
30741
30742 #. type: textblock
30743 #: ../src/guestfs-actions.pod:5673
30744 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30745 msgstr ""
30746
30747 #. type: =head2
30748 #: ../src/guestfs-actions.pod:5677
30749 msgid "guestfs_ntfsresize_opts_argv"
30750 msgstr ""
30751
30752 #. type: verbatim
30753 #: ../src/guestfs-actions.pod:5679
30754 #, no-wrap
30755 msgid ""
30756 " int\n"
30757 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30758 "                               const char *device,\n"
30759 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30760 "\n"
30761 msgstr ""
30762
30763 #. type: textblock
30764 #: ../src/guestfs-actions.pod:5684
30765 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30766 msgstr ""
30767
30768 #. type: =head2
30769 #: ../src/guestfs-actions.pod:5688
30770 msgid "guestfs_ntfsresize_size"
30771 msgstr ""
30772
30773 #. type: verbatim
30774 #: ../src/guestfs-actions.pod:5690
30775 #, no-wrap
30776 msgid ""
30777 " int\n"
30778 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30779 "                          const char *device,\n"
30780 "                          int64_t size);\n"
30781 "\n"
30782 msgstr ""
30783
30784 #. type: textblock
30785 #: ../src/guestfs-actions.pod:5702
30786 msgid ""
30787 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30788 "to specify the new size (in bytes) explicitly."
30789 msgstr ""
30790
30791 #. type: textblock
30792 #: ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:6166
30793 #: ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6507
30794 #: ../src/guestfs-actions.pod:8134
30795 msgid "(Added in 1.3.14)"
30796 msgstr ""
30797
30798 #. type: =head2
30799 #: ../src/guestfs-actions.pod:5709
30800 msgid "guestfs_part_add"
30801 msgstr ""
30802
30803 #. type: verbatim
30804 #: ../src/guestfs-actions.pod:5711
30805 #, no-wrap
30806 msgid ""
30807 " int\n"
30808 " guestfs_part_add (guestfs_h *g,\n"
30809 "                   const char *device,\n"
30810 "                   const char *prlogex,\n"
30811 "                   int64_t startsect,\n"
30812 "                   int64_t endsect);\n"
30813 "\n"
30814 msgstr ""
30815
30816 #. type: textblock
30817 #: ../src/guestfs-actions.pod:5718
30818 msgid ""
30819 "This command adds a partition to C<device>.  If there is no partition table "
30820 "on the device, call C<guestfs_part_init> first."
30821 msgstr ""
30822
30823 #. type: textblock
30824 #: ../src/guestfs-actions.pod:5730
30825 msgid ""
30826 "Creating a partition which covers the whole disk is not so easy.  Use "
30827 "C<guestfs_part_disk> to do that."
30828 msgstr ""
30829
30830 #. type: textblock
30831 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5770
30832 #: ../src/guestfs-actions.pod:5823 ../src/guestfs-actions.pod:5907
30833 #: ../src/guestfs-actions.pod:5945 ../src/guestfs-actions.pod:5964
30834 #: ../src/guestfs-actions.pod:6004
30835 msgid "(Added in 1.0.78)"
30836 msgstr ""
30837
30838 #. type: =head2
30839 #: ../src/guestfs-actions.pod:5737
30840 msgid "guestfs_part_del"
30841 msgstr ""
30842
30843 #. type: verbatim
30844 #: ../src/guestfs-actions.pod:5739
30845 #, no-wrap
30846 msgid ""
30847 " int\n"
30848 " guestfs_part_del (guestfs_h *g,\n"
30849 "                   const char *device,\n"
30850 "                   int partnum);\n"
30851 "\n"
30852 msgstr ""
30853
30854 #. type: =head2
30855 #: ../src/guestfs-actions.pod:5754
30856 msgid "guestfs_part_disk"
30857 msgstr ""
30858
30859 #. type: verbatim
30860 #: ../src/guestfs-actions.pod:5756
30861 #, no-wrap
30862 msgid ""
30863 " int\n"
30864 " guestfs_part_disk (guestfs_h *g,\n"
30865 "                    const char *device,\n"
30866 "                    const char *parttype);\n"
30867 "\n"
30868 msgstr ""
30869
30870 #. type: textblock
30871 #: ../src/guestfs-actions.pod:5761
30872 msgid ""
30873 "This command is simply a combination of C<guestfs_part_init> followed by "
30874 "C<guestfs_part_add> to create a single primary partition covering the whole "
30875 "disk."
30876 msgstr ""
30877
30878 #. type: textblock
30879 #: ../src/guestfs-actions.pod:5765
30880 msgid ""
30881 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30882 "possible values are described in C<guestfs_part_init>."
30883 msgstr ""
30884
30885 #. type: =head2
30886 #: ../src/guestfs-actions.pod:5772
30887 msgid "guestfs_part_get_bootable"
30888 msgstr ""
30889
30890 #. type: verbatim
30891 #: ../src/guestfs-actions.pod:5774
30892 #, no-wrap
30893 msgid ""
30894 " int\n"
30895 " guestfs_part_get_bootable (guestfs_h *g,\n"
30896 "                            const char *device,\n"
30897 "                            int partnum);\n"
30898 "\n"
30899 msgstr ""
30900
30901 #. type: textblock
30902 #: ../src/guestfs-actions.pod:5782
30903 msgid "See also C<guestfs_part_set_bootable>."
30904 msgstr ""
30905
30906 #. type: =head2
30907 #: ../src/guestfs-actions.pod:5788
30908 msgid "guestfs_part_get_mbr_id"
30909 msgstr ""
30910
30911 #. type: verbatim
30912 #: ../src/guestfs-actions.pod:5790
30913 #, no-wrap
30914 msgid ""
30915 " int\n"
30916 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30917 "                          const char *device,\n"
30918 "                          int partnum);\n"
30919 "\n"
30920 msgstr ""
30921
30922 #. type: textblock
30923 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5980
30924 msgid ""
30925 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
30926 "undefined results for other partition table types (see "
30927 "C<guestfs_part_get_parttype>)."
30928 msgstr ""
30929
30930 #. type: =head2
30931 #: ../src/guestfs-actions.pod:5806
30932 msgid "guestfs_part_get_parttype"
30933 msgstr ""
30934
30935 #. type: verbatim
30936 #: ../src/guestfs-actions.pod:5808
30937 #, no-wrap
30938 msgid ""
30939 " char *\n"
30940 " guestfs_part_get_parttype (guestfs_h *g,\n"
30941 "                            const char *device);\n"
30942 "\n"
30943 msgstr ""
30944
30945 #. type: textblock
30946 #: ../src/guestfs-actions.pod:5815
30947 msgid ""
30948 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30949 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30950 "possible, although unusual.  See C<guestfs_part_init> for a full list."
30951 msgstr ""
30952
30953 #. type: =head2
30954 #: ../src/guestfs-actions.pod:5825
30955 msgid "guestfs_part_init"
30956 msgstr ""
30957
30958 #. type: verbatim
30959 #: ../src/guestfs-actions.pod:5827
30960 #, no-wrap
30961 msgid ""
30962 " int\n"
30963 " guestfs_part_init (guestfs_h *g,\n"
30964 "                    const char *device,\n"
30965 "                    const char *parttype);\n"
30966 "\n"
30967 msgstr ""
30968
30969 #. type: textblock
30970 #: ../src/guestfs-actions.pod:5836
30971 msgid ""
30972 "Initially there are no partitions.  Following this, you should call "
30973 "C<guestfs_part_add> for each partition required."
30974 msgstr ""
30975
30976 #. type: =head2
30977 #: ../src/guestfs-actions.pod:5909
30978 msgid "guestfs_part_list"
30979 msgstr ""
30980
30981 #. type: verbatim
30982 #: ../src/guestfs-actions.pod:5911
30983 #, no-wrap
30984 msgid ""
30985 " struct guestfs_partition_list *\n"
30986 " guestfs_part_list (guestfs_h *g,\n"
30987 "                    const char *device);\n"
30988 "\n"
30989 msgstr ""
30990
30991 #. type: textblock
30992 #: ../src/guestfs-actions.pod:5928
30993 msgid ""
30994 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
30995 "the device's sector size, see C<guestfs_blockdev_getss>."
30996 msgstr ""
30997
30998 #. type: textblock
30999 #: ../src/guestfs-actions.pod:5941
31000 msgid ""
31001 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31002 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31003 "use>."
31004 msgstr ""
31005
31006 #. type: =head2
31007 #: ../src/guestfs-actions.pod:5947
31008 msgid "guestfs_part_set_bootable"
31009 msgstr ""
31010
31011 #. type: verbatim
31012 #: ../src/guestfs-actions.pod:5949
31013 #, no-wrap
31014 msgid ""
31015 " int\n"
31016 " guestfs_part_set_bootable (guestfs_h *g,\n"
31017 "                            const char *device,\n"
31018 "                            int partnum,\n"
31019 "                            int bootable);\n"
31020 "\n"
31021 msgstr ""
31022
31023 #. type: =head2
31024 #: ../src/guestfs-actions.pod:5966
31025 msgid "guestfs_part_set_mbr_id"
31026 msgstr ""
31027
31028 #. type: verbatim
31029 #: ../src/guestfs-actions.pod:5968
31030 #, no-wrap
31031 msgid ""
31032 " int\n"
31033 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31034 "                          const char *device,\n"
31035 "                          int partnum,\n"
31036 "                          int idbyte);\n"
31037 "\n"
31038 msgstr ""
31039
31040 #. type: =head2
31041 #: ../src/guestfs-actions.pod:5988
31042 msgid "guestfs_part_set_name"
31043 msgstr ""
31044
31045 #. type: verbatim
31046 #: ../src/guestfs-actions.pod:5990
31047 #, no-wrap
31048 msgid ""
31049 " int\n"
31050 " guestfs_part_set_name (guestfs_h *g,\n"
31051 "                        const char *device,\n"
31052 "                        int partnum,\n"
31053 "                        const char *name);\n"
31054 "\n"
31055 msgstr ""
31056
31057 #. type: =head2
31058 #: ../src/guestfs-actions.pod:6006
31059 msgid "guestfs_part_to_dev"
31060 msgstr ""
31061
31062 #. type: verbatim
31063 #: ../src/guestfs-actions.pod:6008
31064 #, no-wrap
31065 msgid ""
31066 " char *\n"
31067 " guestfs_part_to_dev (guestfs_h *g,\n"
31068 "                      const char *partition);\n"
31069 "\n"
31070 msgstr ""
31071
31072 #. type: textblock
31073 #: ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6035
31074 msgid ""
31075 "The named partition must exist, for example as a string returned from "
31076 "C<guestfs_list_partitions>."
31077 msgstr ""
31078
31079 #. type: textblock
31080 #: ../src/guestfs-actions.pod:6019
31081 msgid "See also C<guestfs_part_to_partnum>."
31082 msgstr ""
31083
31084 #. type: =head2
31085 #: ../src/guestfs-actions.pod:6026
31086 msgid "guestfs_part_to_partnum"
31087 msgstr ""
31088
31089 #. type: verbatim
31090 #: ../src/guestfs-actions.pod:6028
31091 #, no-wrap
31092 msgid ""
31093 " int\n"
31094 " guestfs_part_to_partnum (guestfs_h *g,\n"
31095 "                          const char *partition);\n"
31096 "\n"
31097 msgstr ""
31098
31099 #. type: textblock
31100 #: ../src/guestfs-actions.pod:6038
31101 msgid "See also C<guestfs_part_to_dev>."
31102 msgstr ""
31103
31104 #. type: =head2
31105 #: ../src/guestfs-actions.pod:6044
31106 msgid "guestfs_ping_daemon"
31107 msgstr ""
31108
31109 #. type: verbatim
31110 #: ../src/guestfs-actions.pod:6046
31111 #, no-wrap
31112 msgid ""
31113 " int\n"
31114 " guestfs_ping_daemon (guestfs_h *g);\n"
31115 "\n"
31116 msgstr ""
31117
31118 #. type: =head2
31119 #: ../src/guestfs-actions.pod:6058
31120 msgid "guestfs_pread"
31121 msgstr ""
31122
31123 #. type: verbatim
31124 #: ../src/guestfs-actions.pod:6060
31125 #, no-wrap
31126 msgid ""
31127 " char *\n"
31128 " guestfs_pread (guestfs_h *g,\n"
31129 "                const char *path,\n"
31130 "                int count,\n"
31131 "                int64_t offset,\n"
31132 "                size_t *size_r);\n"
31133 "\n"
31134 msgstr ""
31135
31136 #. type: textblock
31137 #: ../src/guestfs-actions.pod:6073
31138 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31139 msgstr ""
31140
31141 #. type: =head2
31142 #: ../src/guestfs-actions.pod:6084
31143 msgid "guestfs_pread_device"
31144 msgstr ""
31145
31146 #. type: verbatim
31147 #: ../src/guestfs-actions.pod:6086
31148 #, no-wrap
31149 msgid ""
31150 " char *\n"
31151 " guestfs_pread_device (guestfs_h *g,\n"
31152 "                       const char *device,\n"
31153 "                       int count,\n"
31154 "                       int64_t offset,\n"
31155 "                       size_t *size_r);\n"
31156 "\n"
31157 msgstr ""
31158
31159 #. type: textblock
31160 #: ../src/guestfs-actions.pod:6099
31161 msgid "See also C<guestfs_pread>."
31162 msgstr ""
31163
31164 #. type: textblock
31165 #: ../src/guestfs-actions.pod:6108
31166 msgid "(Added in 1.5.21)"
31167 msgstr ""
31168
31169 #. type: =head2
31170 #: ../src/guestfs-actions.pod:6110
31171 msgid "guestfs_pvcreate"
31172 msgstr ""
31173
31174 #. type: verbatim
31175 #: ../src/guestfs-actions.pod:6112
31176 #, no-wrap
31177 msgid ""
31178 " int\n"
31179 " guestfs_pvcreate (guestfs_h *g,\n"
31180 "                   const char *device);\n"
31181 "\n"
31182 msgstr ""
31183
31184 #. type: =head2
31185 #: ../src/guestfs-actions.pod:6124
31186 msgid "guestfs_pvremove"
31187 msgstr ""
31188
31189 #. type: verbatim
31190 #: ../src/guestfs-actions.pod:6126
31191 #, no-wrap
31192 msgid ""
31193 " int\n"
31194 " guestfs_pvremove (guestfs_h *g,\n"
31195 "                   const char *device);\n"
31196 "\n"
31197 msgstr ""
31198
31199 #. type: =head2
31200 #: ../src/guestfs-actions.pod:6141
31201 msgid "guestfs_pvresize"
31202 msgstr ""
31203
31204 #. type: verbatim
31205 #: ../src/guestfs-actions.pod:6143
31206 #, no-wrap
31207 msgid ""
31208 " int\n"
31209 " guestfs_pvresize (guestfs_h *g,\n"
31210 "                   const char *device);\n"
31211 "\n"
31212 msgstr ""
31213
31214 #. type: =head2
31215 #: ../src/guestfs-actions.pod:6154
31216 msgid "guestfs_pvresize_size"
31217 msgstr ""
31218
31219 #. type: verbatim
31220 #: ../src/guestfs-actions.pod:6156
31221 #, no-wrap
31222 msgid ""
31223 " int\n"
31224 " guestfs_pvresize_size (guestfs_h *g,\n"
31225 "                        const char *device,\n"
31226 "                        int64_t size);\n"
31227 "\n"
31228 msgstr ""
31229
31230 #. type: textblock
31231 #: ../src/guestfs-actions.pod:6161
31232 msgid ""
31233 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31234 "specify the new size (in bytes) explicitly."
31235 msgstr ""
31236
31237 #. type: =head2
31238 #: ../src/guestfs-actions.pod:6168
31239 msgid "guestfs_pvs"
31240 msgstr ""
31241
31242 #. type: verbatim
31243 #: ../src/guestfs-actions.pod:6170
31244 #, no-wrap
31245 msgid ""
31246 " char **\n"
31247 " guestfs_pvs (guestfs_h *g);\n"
31248 "\n"
31249 msgstr ""
31250
31251 #. type: textblock
31252 #: ../src/guestfs-actions.pod:6179
31253 msgid "See also C<guestfs_pvs_full>."
31254 msgstr ""
31255
31256 #. type: =head2
31257 #: ../src/guestfs-actions.pod:6187
31258 msgid "guestfs_pvs_full"
31259 msgstr ""
31260
31261 #. type: verbatim
31262 #: ../src/guestfs-actions.pod:6189
31263 #, no-wrap
31264 msgid ""
31265 " struct guestfs_lvm_pv_list *\n"
31266 " guestfs_pvs_full (guestfs_h *g);\n"
31267 "\n"
31268 msgstr ""
31269
31270 #. type: textblock
31271 #: ../src/guestfs-actions.pod:6195
31272 msgid ""
31273 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31274 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31275 msgstr ""
31276
31277 #. type: =head2
31278 #: ../src/guestfs-actions.pod:6201
31279 msgid "guestfs_pvuuid"
31280 msgstr ""
31281
31282 #. type: verbatim
31283 #: ../src/guestfs-actions.pod:6203
31284 #, no-wrap
31285 msgid ""
31286 " char *\n"
31287 " guestfs_pvuuid (guestfs_h *g,\n"
31288 "                 const char *device);\n"
31289 "\n"
31290 msgstr ""
31291
31292 #. type: =head2
31293 #: ../src/guestfs-actions.pod:6214
31294 msgid "guestfs_pwrite"
31295 msgstr ""
31296
31297 #. type: verbatim
31298 #: ../src/guestfs-actions.pod:6216
31299 #, no-wrap
31300 msgid ""
31301 " int\n"
31302 " guestfs_pwrite (guestfs_h *g,\n"
31303 "                 const char *path,\n"
31304 "                 const char *content,\n"
31305 "                 size_t content_size,\n"
31306 "                 int64_t offset);\n"
31307 "\n"
31308 msgstr ""
31309
31310 #. type: textblock
31311 #: ../src/guestfs-actions.pod:6232
31312 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31313 msgstr ""
31314
31315 #. type: =head2
31316 #: ../src/guestfs-actions.pod:6241
31317 msgid "guestfs_pwrite_device"
31318 msgstr ""
31319
31320 #. type: verbatim
31321 #: ../src/guestfs-actions.pod:6243
31322 #, no-wrap
31323 msgid ""
31324 " int\n"
31325 " guestfs_pwrite_device (guestfs_h *g,\n"
31326 "                        const char *device,\n"
31327 "                        const char *content,\n"
31328 "                        size_t content_size,\n"
31329 "                        int64_t offset);\n"
31330 "\n"
31331 msgstr ""
31332
31333 #. type: textblock
31334 #: ../src/guestfs-actions.pod:6258
31335 msgid "See also C<guestfs_pwrite>."
31336 msgstr ""
31337
31338 #. type: textblock
31339 #: ../src/guestfs-actions.pod:6265
31340 msgid "(Added in 1.5.20)"
31341 msgstr ""
31342
31343 #. type: =head2
31344 #: ../src/guestfs-actions.pod:6267
31345 msgid "guestfs_read_file"
31346 msgstr ""
31347
31348 #. type: verbatim
31349 #: ../src/guestfs-actions.pod:6269
31350 #, no-wrap
31351 msgid ""
31352 " char *\n"
31353 " guestfs_read_file (guestfs_h *g,\n"
31354 "                    const char *path,\n"
31355 "                    size_t *size_r);\n"
31356 "\n"
31357 msgstr ""
31358
31359 #. type: textblock
31360 #: ../src/guestfs-actions.pod:6277
31361 msgid ""
31362 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31363 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31364 "function is limited in the total size of file that can be handled."
31365 msgstr ""
31366
31367 #. type: textblock
31368 #: ../src/guestfs-actions.pod:6289
31369 msgid "(Added in 1.0.63)"
31370 msgstr ""
31371
31372 #. type: =head2
31373 #: ../src/guestfs-actions.pod:6291
31374 msgid "guestfs_read_lines"
31375 msgstr ""
31376
31377 #. type: verbatim
31378 #: ../src/guestfs-actions.pod:6293
31379 #, no-wrap
31380 msgid ""
31381 " char **\n"
31382 " guestfs_read_lines (guestfs_h *g,\n"
31383 "                     const char *path);\n"
31384 "\n"
31385 msgstr ""
31386
31387 #. type: textblock
31388 #: ../src/guestfs-actions.pod:6302
31389 msgid ""
31390 "Note that this function cannot correctly handle binary files (specifically, "
31391 "files containing C<\\0> character which is treated as end of line).  For "
31392 "those you need to use the C<guestfs_read_file> function which has a more "
31393 "complex interface."
31394 msgstr ""
31395
31396 #. type: =head2
31397 #: ../src/guestfs-actions.pod:6313
31398 msgid "guestfs_readdir"
31399 msgstr ""
31400
31401 #. type: verbatim
31402 #: ../src/guestfs-actions.pod:6315
31403 #, no-wrap
31404 msgid ""
31405 " struct guestfs_dirent_list *\n"
31406 " guestfs_readdir (guestfs_h *g,\n"
31407 "                  const char *dir);\n"
31408 "\n"
31409 msgstr ""
31410
31411 #. type: textblock
31412 #: ../src/guestfs-actions.pod:6369
31413 msgid ""
31414 "This function is primarily intended for use by programs.  To get a simple "
31415 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31416 "consumption, use C<guestfs_ll>."
31417 msgstr ""
31418
31419 #. type: textblock
31420 #: ../src/guestfs-actions.pod:6373
31421 msgid ""
31422 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31423 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
31424 msgstr ""
31425
31426 #. type: =head2
31427 #: ../src/guestfs-actions.pod:6379
31428 msgid "guestfs_readlink"
31429 msgstr ""
31430
31431 #. type: verbatim
31432 #: ../src/guestfs-actions.pod:6381
31433 #, no-wrap
31434 msgid ""
31435 " char *\n"
31436 " guestfs_readlink (guestfs_h *g,\n"
31437 "                   const char *path);\n"
31438 "\n"
31439 msgstr ""
31440
31441 #. type: =head2
31442 #: ../src/guestfs-actions.pod:6392
31443 msgid "guestfs_readlinklist"
31444 msgstr ""
31445
31446 #. type: verbatim
31447 #: ../src/guestfs-actions.pod:6394
31448 #, no-wrap
31449 msgid ""
31450 " char **\n"
31451 " guestfs_readlinklist (guestfs_h *g,\n"
31452 "                       const char *path,\n"
31453 "                       char *const *names);\n"
31454 "\n"
31455 msgstr ""
31456
31457 #. type: =head2
31458 #: ../src/guestfs-actions.pod:6427
31459 msgid "guestfs_realpath"
31460 msgstr ""
31461
31462 #. type: verbatim
31463 #: ../src/guestfs-actions.pod:6429
31464 #, no-wrap
31465 msgid ""
31466 " char *\n"
31467 " guestfs_realpath (guestfs_h *g,\n"
31468 "                   const char *path);\n"
31469 "\n"
31470 msgstr ""
31471
31472 #. type: =head2
31473 #: ../src/guestfs-actions.pod:6441
31474 msgid "guestfs_removexattr"
31475 msgstr ""
31476
31477 #. type: verbatim
31478 #: ../src/guestfs-actions.pod:6443
31479 #, no-wrap
31480 msgid ""
31481 " int\n"
31482 " guestfs_removexattr (guestfs_h *g,\n"
31483 "                      const char *xattr,\n"
31484 "                      const char *path);\n"
31485 "\n"
31486 msgstr ""
31487
31488 #. type: textblock
31489 #: ../src/guestfs-actions.pod:6451
31490 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31491 msgstr ""
31492
31493 #. type: =head2
31494 #: ../src/guestfs-actions.pod:6457
31495 msgid "guestfs_resize2fs"
31496 msgstr ""
31497
31498 #. type: verbatim
31499 #: ../src/guestfs-actions.pod:6459
31500 #, no-wrap
31501 msgid ""
31502 " int\n"
31503 " guestfs_resize2fs (guestfs_h *g,\n"
31504 "                    const char *device);\n"
31505 "\n"
31506 msgstr ""
31507
31508 #. type: textblock
31509 #: ../src/guestfs-actions.pod:6466
31510 msgid ""
31511 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31512 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31513 "sometimes gives an error about this and sometimes not.  In any case, it is "
31514 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31515 msgstr ""
31516
31517 #. type: =head2
31518 #: ../src/guestfs-actions.pod:6476
31519 msgid "guestfs_resize2fs_M"
31520 msgstr ""
31521
31522 #. type: verbatim
31523 #: ../src/guestfs-actions.pod:6478
31524 #, no-wrap
31525 msgid ""
31526 " int\n"
31527 " guestfs_resize2fs_M (guestfs_h *g,\n"
31528 "                      const char *device);\n"
31529 "\n"
31530 msgstr ""
31531
31532 #. type: textblock
31533 #: ../src/guestfs-actions.pod:6482
31534 msgid ""
31535 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31536 "resized to its minimum size.  This works like the I<-M> option to the "
31537 "C<resize2fs> command."
31538 msgstr ""
31539
31540 #. type: textblock
31541 #: ../src/guestfs-actions.pod:6486
31542 msgid ""
31543 "To get the resulting size of the filesystem you should call "
31544 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31545 "These two numbers, multiplied together, give the resulting size of the "
31546 "minimal filesystem in bytes."
31547 msgstr ""
31548
31549 #. type: =head2
31550 #: ../src/guestfs-actions.pod:6495
31551 msgid "guestfs_resize2fs_size"
31552 msgstr ""
31553
31554 #. type: verbatim
31555 #: ../src/guestfs-actions.pod:6497
31556 #, no-wrap
31557 msgid ""
31558 " int\n"
31559 " guestfs_resize2fs_size (guestfs_h *g,\n"
31560 "                         const char *device,\n"
31561 "                         int64_t size);\n"
31562 "\n"
31563 msgstr ""
31564
31565 #. type: textblock
31566 #: ../src/guestfs-actions.pod:6502
31567 msgid ""
31568 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31569 "to specify the new size (in bytes) explicitly."
31570 msgstr ""
31571
31572 #. type: =head2
31573 #: ../src/guestfs-actions.pod:6509
31574 msgid "guestfs_rm"
31575 msgstr ""
31576
31577 #. type: verbatim
31578 #: ../src/guestfs-actions.pod:6511
31579 #, no-wrap
31580 msgid ""
31581 " int\n"
31582 " guestfs_rm (guestfs_h *g,\n"
31583 "             const char *path);\n"
31584 "\n"
31585 msgstr ""
31586
31587 #. type: =head2
31588 #: ../src/guestfs-actions.pod:6521
31589 msgid "guestfs_rm_rf"
31590 msgstr ""
31591
31592 #. type: verbatim
31593 #: ../src/guestfs-actions.pod:6523
31594 #, no-wrap
31595 msgid ""
31596 " int\n"
31597 " guestfs_rm_rf (guestfs_h *g,\n"
31598 "                const char *path);\n"
31599 "\n"
31600 msgstr ""
31601
31602 #. type: =head2
31603 #: ../src/guestfs-actions.pod:6535
31604 msgid "guestfs_rmdir"
31605 msgstr ""
31606
31607 #. type: verbatim
31608 #: ../src/guestfs-actions.pod:6537
31609 #, no-wrap
31610 msgid ""
31611 " int\n"
31612 " guestfs_rmdir (guestfs_h *g,\n"
31613 "                const char *path);\n"
31614 "\n"
31615 msgstr ""
31616
31617 #. type: =head2
31618 #: ../src/guestfs-actions.pod:6547
31619 msgid "guestfs_rmmountpoint"
31620 msgstr ""
31621
31622 #. type: verbatim
31623 #: ../src/guestfs-actions.pod:6549
31624 #, no-wrap
31625 msgid ""
31626 " int\n"
31627 " guestfs_rmmountpoint (guestfs_h *g,\n"
31628 "                       const char *exemptpath);\n"
31629 "\n"
31630 msgstr ""
31631
31632 #. type: textblock
31633 #: ../src/guestfs-actions.pod:6553
31634 msgid ""
31635 "This calls removes a mountpoint that was previously created with "
31636 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31637 msgstr ""
31638
31639 #. type: =head2
31640 #: ../src/guestfs-actions.pod:6561
31641 msgid "guestfs_scrub_device"
31642 msgstr ""
31643
31644 #. type: verbatim
31645 #: ../src/guestfs-actions.pod:6563
31646 #, no-wrap
31647 msgid ""
31648 " int\n"
31649 " guestfs_scrub_device (guestfs_h *g,\n"
31650 "                       const char *device);\n"
31651 "\n"
31652 msgstr ""
31653
31654 #. type: textblock
31655 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6593
31656 #: ../src/guestfs-actions.pod:6612
31657 msgid "(Added in 1.0.52)"
31658 msgstr ""
31659
31660 #. type: =head2
31661 #: ../src/guestfs-actions.pod:6577
31662 msgid "guestfs_scrub_file"
31663 msgstr ""
31664
31665 #. type: verbatim
31666 #: ../src/guestfs-actions.pod:6579
31667 #, no-wrap
31668 msgid ""
31669 " int\n"
31670 " guestfs_scrub_file (guestfs_h *g,\n"
31671 "                     const char *file);\n"
31672 "\n"
31673 msgstr ""
31674
31675 #. type: =head2
31676 #: ../src/guestfs-actions.pod:6595
31677 msgid "guestfs_scrub_freespace"
31678 msgstr ""
31679
31680 #. type: verbatim
31681 #: ../src/guestfs-actions.pod:6597
31682 #, no-wrap
31683 msgid ""
31684 " int\n"
31685 " guestfs_scrub_freespace (guestfs_h *g,\n"
31686 "                          const char *dir);\n"
31687 "\n"
31688 msgstr ""
31689
31690 #. type: textblock
31691 #: ../src/guestfs-actions.pod:6601
31692 msgid ""
31693 "This command creates the directory C<dir> and then fills it with files until "
31694 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31695 "and deletes them.  The intention is to scrub any free space on the partition "
31696 "containing C<dir>."
31697 msgstr ""
31698
31699 #. type: =head2
31700 #: ../src/guestfs-actions.pod:6614
31701 msgid "guestfs_set_append"
31702 msgstr ""
31703
31704 #. type: verbatim
31705 #: ../src/guestfs-actions.pod:6616
31706 #, no-wrap
31707 msgid ""
31708 " int\n"
31709 " guestfs_set_append (guestfs_h *g,\n"
31710 "                     const char *append);\n"
31711 "\n"
31712 msgstr ""
31713
31714 #. type: =head2
31715 #: ../src/guestfs-actions.pod:6633
31716 msgid "guestfs_set_attach_method"
31717 msgstr ""
31718
31719 #. type: verbatim
31720 #: ../src/guestfs-actions.pod:6635
31721 #, no-wrap
31722 msgid ""
31723 " int\n"
31724 " guestfs_set_attach_method (guestfs_h *g,\n"
31725 "                            const char *attachmethod);\n"
31726 "\n"
31727 msgstr ""
31728
31729 #. type: =head2
31730 #: ../src/guestfs-actions.pod:6663
31731 msgid "guestfs_set_autosync"
31732 msgstr ""
31733
31734 #. type: verbatim
31735 #: ../src/guestfs-actions.pod:6665
31736 #, no-wrap
31737 msgid ""
31738 " int\n"
31739 " guestfs_set_autosync (guestfs_h *g,\n"
31740 "                       int autosync);\n"
31741 "\n"
31742 msgstr ""
31743
31744 #. type: =head2
31745 #: ../src/guestfs-actions.pod:6681
31746 msgid "guestfs_set_direct"
31747 msgstr ""
31748
31749 #. type: verbatim
31750 #: ../src/guestfs-actions.pod:6683
31751 #, no-wrap
31752 msgid ""
31753 " int\n"
31754 " guestfs_set_direct (guestfs_h *g,\n"
31755 "                     int direct);\n"
31756 "\n"
31757 msgstr ""
31758
31759 #. type: textblock
31760 #: ../src/guestfs-actions.pod:6691
31761 msgid ""
31762 "One consequence of this is that log messages aren't caught by the library "
31763 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31764 "stdout."
31765 msgstr ""
31766
31767 #. type: =head2
31768 #: ../src/guestfs-actions.pod:6704
31769 msgid "guestfs_set_e2label"
31770 msgstr ""
31771
31772 #. type: verbatim
31773 #: ../src/guestfs-actions.pod:6706
31774 #, no-wrap
31775 msgid ""
31776 " int\n"
31777 " guestfs_set_e2label (guestfs_h *g,\n"
31778 "                      const char *device,\n"
31779 "                      const char *label);\n"
31780 "\n"
31781 msgstr ""
31782
31783 #. type: textblock
31784 #: ../src/guestfs-actions.pod:6715
31785 msgid ""
31786 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31787 "the existing label on a filesystem."
31788 msgstr ""
31789
31790 #. type: =head2
31791 #: ../src/guestfs-actions.pod:6722
31792 msgid "guestfs_set_e2uuid"
31793 msgstr ""
31794
31795 #. type: verbatim
31796 #: ../src/guestfs-actions.pod:6724
31797 #, no-wrap
31798 msgid ""
31799 " int\n"
31800 " guestfs_set_e2uuid (guestfs_h *g,\n"
31801 "                     const char *device,\n"
31802 "                     const char *uuid);\n"
31803 "\n"
31804 msgstr ""
31805
31806 #. type: textblock
31807 #: ../src/guestfs-actions.pod:6734
31808 msgid ""
31809 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31810 "the existing UUID of a filesystem."
31811 msgstr ""
31812
31813 #. type: =head2
31814 #: ../src/guestfs-actions.pod:6741
31815 msgid "guestfs_set_memsize"
31816 msgstr ""
31817
31818 #. type: verbatim
31819 #: ../src/guestfs-actions.pod:6743
31820 #, no-wrap
31821 msgid ""
31822 " int\n"
31823 " guestfs_set_memsize (guestfs_h *g,\n"
31824 "                      int memsize);\n"
31825 "\n"
31826 msgstr ""
31827
31828 #. type: textblock
31829 #: ../src/guestfs-actions.pod:6747
31830 msgid ""
31831 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31832 "This only has any effect if called before C<guestfs_launch>."
31833 msgstr ""
31834
31835 #. type: =head2
31836 #: ../src/guestfs-actions.pod:6762
31837 msgid "guestfs_set_network"
31838 msgstr ""
31839
31840 #. type: verbatim
31841 #: ../src/guestfs-actions.pod:6764
31842 #, no-wrap
31843 msgid ""
31844 " int\n"
31845 " guestfs_set_network (guestfs_h *g,\n"
31846 "                      int network);\n"
31847 "\n"
31848 msgstr ""
31849
31850 #. type: textblock
31851 #: ../src/guestfs-actions.pod:6774
31852 msgid ""
31853 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31854 "effect."
31855 msgstr ""
31856
31857 #. type: =head2
31858 #: ../src/guestfs-actions.pod:6781
31859 msgid "guestfs_set_path"
31860 msgstr ""
31861
31862 #. type: verbatim
31863 #: ../src/guestfs-actions.pod:6783
31864 #, no-wrap
31865 msgid ""
31866 " int\n"
31867 " guestfs_set_path (guestfs_h *g,\n"
31868 "                   const char *searchpath);\n"
31869 "\n"
31870 msgstr ""
31871
31872 #. type: =head2
31873 #: ../src/guestfs-actions.pod:6798
31874 msgid "guestfs_set_pgroup"
31875 msgstr ""
31876
31877 #. type: verbatim
31878 #: ../src/guestfs-actions.pod:6800
31879 #, no-wrap
31880 msgid ""
31881 " int\n"
31882 " guestfs_set_pgroup (guestfs_h *g,\n"
31883 "                     int pgroup);\n"
31884 "\n"
31885 msgstr ""
31886
31887 #. type: =head2
31888 #: ../src/guestfs-actions.pod:6817
31889 msgid "guestfs_set_qemu"
31890 msgstr ""
31891
31892 #. type: verbatim
31893 #: ../src/guestfs-actions.pod:6819
31894 #, no-wrap
31895 msgid ""
31896 " int\n"
31897 " guestfs_set_qemu (guestfs_h *g,\n"
31898 "                   const char *qemu);\n"
31899 "\n"
31900 msgstr ""
31901
31902 #. type: =head2
31903 #: ../src/guestfs-actions.pod:6845
31904 msgid "guestfs_set_recovery_proc"
31905 msgstr ""
31906
31907 #. type: verbatim
31908 #: ../src/guestfs-actions.pod:6847
31909 #, no-wrap
31910 msgid ""
31911 " int\n"
31912 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31913 "                            int recoveryproc);\n"
31914 "\n"
31915 msgstr ""
31916
31917 #. type: textblock
31918 #: ../src/guestfs-actions.pod:6851
31919 msgid ""
31920 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31921 "not create a recovery process.  The purpose of the recovery process is to "
31922 "stop runaway qemu processes in the case where the main program aborts "
31923 "abruptly."
31924 msgstr ""
31925
31926 #. type: textblock
31927 #: ../src/guestfs-actions.pod:6856
31928 msgid ""
31929 "This only has any effect if called before C<guestfs_launch>, and the default "
31930 "is true."
31931 msgstr ""
31932
31933 #. type: =head2
31934 #: ../src/guestfs-actions.pod:6869
31935 msgid "guestfs_set_selinux"
31936 msgstr ""
31937
31938 #. type: verbatim
31939 #: ../src/guestfs-actions.pod:6871
31940 #, no-wrap
31941 msgid ""
31942 " int\n"
31943 " guestfs_set_selinux (guestfs_h *g,\n"
31944 "                      int selinux);\n"
31945 "\n"
31946 msgstr ""
31947
31948 #. type: =head2
31949 #: ../src/guestfs-actions.pod:6888
31950 msgid "guestfs_set_smp"
31951 msgstr ""
31952
31953 #. type: verbatim
31954 #: ../src/guestfs-actions.pod:6890
31955 #, no-wrap
31956 msgid ""
31957 " int\n"
31958 " guestfs_set_smp (guestfs_h *g,\n"
31959 "                  int smp);\n"
31960 "\n"
31961 msgstr ""
31962
31963 #. type: textblock
31964 #: ../src/guestfs-actions.pod:6898
31965 msgid "This function must be called before C<guestfs_launch>."
31966 msgstr ""
31967
31968 #. type: =head2
31969 #: ../src/guestfs-actions.pod:6904
31970 msgid "guestfs_set_trace"
31971 msgstr ""
31972
31973 #. type: verbatim
31974 #: ../src/guestfs-actions.pod:6906
31975 #, no-wrap
31976 msgid ""
31977 " int\n"
31978 " guestfs_set_trace (guestfs_h *g,\n"
31979 "                    int trace);\n"
31980 "\n"
31981 msgstr ""
31982
31983 #. type: textblock
31984 #: ../src/guestfs-actions.pod:6920
31985 msgid ""
31986 "Trace messages are normally sent to C<stderr>, unless you register a "
31987 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31988 msgstr ""
31989
31990 #. type: =head2
31991 #: ../src/guestfs-actions.pod:6928
31992 msgid "guestfs_set_verbose"
31993 msgstr ""
31994
31995 #. type: verbatim
31996 #: ../src/guestfs-actions.pod:6930
31997 #, no-wrap
31998 msgid ""
31999 " int\n"
32000 " guestfs_set_verbose (guestfs_h *g,\n"
32001 "                      int verbose);\n"
32002 "\n"
32003 msgstr ""
32004
32005 #. type: textblock
32006 #: ../src/guestfs-actions.pod:6939
32007 msgid ""
32008 "Verbose messages are normally sent to C<stderr>, unless you register a "
32009 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32010 msgstr ""
32011
32012 #. type: =head2
32013 #: ../src/guestfs-actions.pod:6947
32014 msgid "guestfs_setcon"
32015 msgstr ""
32016
32017 #. type: verbatim
32018 #: ../src/guestfs-actions.pod:6949
32019 #, no-wrap
32020 msgid ""
32021 " int\n"
32022 " guestfs_setcon (guestfs_h *g,\n"
32023 "                 const char *context);\n"
32024 "\n"
32025 msgstr ""
32026
32027 #. type: =head2
32028 #: ../src/guestfs-actions.pod:6962
32029 msgid "guestfs_setxattr"
32030 msgstr ""
32031
32032 #. type: verbatim
32033 #: ../src/guestfs-actions.pod:6964
32034 #, no-wrap
32035 msgid ""
32036 " int\n"
32037 " guestfs_setxattr (guestfs_h *g,\n"
32038 "                   const char *xattr,\n"
32039 "                   const char *val,\n"
32040 "                   int vallen,\n"
32041 "                   const char *path);\n"
32042 "\n"
32043 msgstr ""
32044
32045 #. type: textblock
32046 #: ../src/guestfs-actions.pod:6975
32047 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32048 msgstr ""
32049
32050 #. type: =head2
32051 #: ../src/guestfs-actions.pod:6981
32052 msgid "guestfs_sfdisk"
32053 msgstr ""
32054
32055 #. type: verbatim
32056 #: ../src/guestfs-actions.pod:6983
32057 #, no-wrap
32058 msgid ""
32059 " int\n"
32060 " guestfs_sfdisk (guestfs_h *g,\n"
32061 "                 const char *device,\n"
32062 "                 int cyls,\n"
32063 "                 int heads,\n"
32064 "                 int sectors,\n"
32065 "                 char *const *lines);\n"
32066 "\n"
32067 msgstr ""
32068
32069 #. type: textblock
32070 #: ../src/guestfs-actions.pod:6991 ../src/guestfs-actions.pod:7032
32071 #: ../src/guestfs-actions.pod:7063
32072 msgid ""
32073 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32074 "call instead."
32075 msgstr ""
32076
32077 #. type: textblock
32078 #: ../src/guestfs-actions.pod:7018
32079 msgid ""
32080 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32081 msgstr ""
32082
32083 #. type: =head2
32084 #: ../src/guestfs-actions.pod:7025
32085 msgid "guestfs_sfdiskM"
32086 msgstr ""
32087
32088 #. type: verbatim
32089 #: ../src/guestfs-actions.pod:7027
32090 #, no-wrap
32091 msgid ""
32092 " int\n"
32093 " guestfs_sfdiskM (guestfs_h *g,\n"
32094 "                  const char *device,\n"
32095 "                  char *const *lines);\n"
32096 "\n"
32097 msgstr ""
32098
32099 #. type: textblock
32100 #: ../src/guestfs-actions.pod:7039
32101 msgid ""
32102 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32103 "partition sizes are specified in megabytes only (rounded to the nearest "
32104 "cylinder) and you don't need to specify the cyls, heads and sectors "
32105 "parameters which were rarely if ever used anyway."
32106 msgstr ""
32107
32108 #. type: textblock
32109 #: ../src/guestfs-actions.pod:7045
32110 msgid ""
32111 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32112 "C<guestfs_part_disk>"
32113 msgstr ""
32114
32115 #. type: =head2
32116 #: ../src/guestfs-actions.pod:7052
32117 msgid "guestfs_sfdisk_N"
32118 msgstr ""
32119
32120 #. type: verbatim
32121 #: ../src/guestfs-actions.pod:7054
32122 #, no-wrap
32123 msgid ""
32124 " int\n"
32125 " guestfs_sfdisk_N (guestfs_h *g,\n"
32126 "                   const char *device,\n"
32127 "                   int partnum,\n"
32128 "                   int cyls,\n"
32129 "                   int heads,\n"
32130 "                   int sectors,\n"
32131 "                   const char *line);\n"
32132 "\n"
32133 msgstr ""
32134
32135 #. type: textblock
32136 #: ../src/guestfs-actions.pod:7073
32137 msgid ""
32138 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32139 "for the cyls/heads/sectors parameters."
32140 msgstr ""
32141
32142 #. type: textblock
32143 #: ../src/guestfs-actions.pod:7076
32144 msgid "See also: C<guestfs_part_add>"
32145 msgstr ""
32146
32147 #. type: =head2
32148 #: ../src/guestfs-actions.pod:7082
32149 msgid "guestfs_sfdisk_disk_geometry"
32150 msgstr ""
32151
32152 #. type: verbatim
32153 #: ../src/guestfs-actions.pod:7084
32154 #, no-wrap
32155 msgid ""
32156 " char *\n"
32157 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32158 "                               const char *device);\n"
32159 "\n"
32160 msgstr ""
32161
32162 #. type: textblock
32163 #: ../src/guestfs-actions.pod:7088
32164 msgid ""
32165 "This displays the disk geometry of C<device> read from the partition table.  "
32166 "Especially in the case where the underlying block device has been resized, "
32167 "this can be different from the kernel's idea of the geometry (see "
32168 "C<guestfs_sfdisk_kernel_geometry>)."
32169 msgstr ""
32170
32171 #. type: =head2
32172 #: ../src/guestfs-actions.pod:7101
32173 msgid "guestfs_sfdisk_kernel_geometry"
32174 msgstr ""
32175
32176 #. type: verbatim
32177 #: ../src/guestfs-actions.pod:7103
32178 #, no-wrap
32179 msgid ""
32180 " char *\n"
32181 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32182 "                                 const char *device);\n"
32183 "\n"
32184 msgstr ""
32185
32186 #. type: =head2
32187 #: ../src/guestfs-actions.pod:7117
32188 msgid "guestfs_sfdisk_l"
32189 msgstr ""
32190
32191 #. type: verbatim
32192 #: ../src/guestfs-actions.pod:7119
32193 #, no-wrap
32194 msgid ""
32195 " char *\n"
32196 " guestfs_sfdisk_l (guestfs_h *g,\n"
32197 "                   const char *device);\n"
32198 "\n"
32199 msgstr ""
32200
32201 #. type: textblock
32202 #: ../src/guestfs-actions.pod:7123
32203 msgid ""
32204 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32205 "call instead."
32206 msgstr ""
32207
32208 #. type: textblock
32209 #: ../src/guestfs-actions.pod:7134
32210 msgid "See also: C<guestfs_part_list>"
32211 msgstr ""
32212
32213 #. type: =head2
32214 #: ../src/guestfs-actions.pod:7141
32215 msgid "guestfs_sh"
32216 msgstr ""
32217
32218 #. type: verbatim
32219 #: ../src/guestfs-actions.pod:7143
32220 #, no-wrap
32221 msgid ""
32222 " char *\n"
32223 " guestfs_sh (guestfs_h *g,\n"
32224 "             const char *command);\n"
32225 "\n"
32226 msgstr ""
32227
32228 #. type: textblock
32229 #: ../src/guestfs-actions.pod:7150
32230 msgid "This is like C<guestfs_command>, but passes the command to:"
32231 msgstr ""
32232
32233 #. type: textblock
32234 #: ../src/guestfs-actions.pod:7158
32235 msgid "All the provisos about C<guestfs_command> apply to this call."
32236 msgstr ""
32237
32238 #. type: =head2
32239 #: ../src/guestfs-actions.pod:7165
32240 msgid "guestfs_sh_lines"
32241 msgstr ""
32242
32243 #. type: verbatim
32244 #: ../src/guestfs-actions.pod:7167
32245 #, no-wrap
32246 msgid ""
32247 " char **\n"
32248 " guestfs_sh_lines (guestfs_h *g,\n"
32249 "                   const char *command);\n"
32250 "\n"
32251 msgstr ""
32252
32253 #. type: textblock
32254 #: ../src/guestfs-actions.pod:7171
32255 msgid ""
32256 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32257 "lines."
32258 msgstr ""
32259
32260 #. type: textblock
32261 #: ../src/guestfs-actions.pod:7174
32262 msgid "See also: C<guestfs_command_lines>"
32263 msgstr ""
32264
32265 #. type: =head2
32266 #: ../src/guestfs-actions.pod:7182
32267 msgid "guestfs_sleep"
32268 msgstr ""
32269
32270 #. type: verbatim
32271 #: ../src/guestfs-actions.pod:7184
32272 #, no-wrap
32273 msgid ""
32274 " int\n"
32275 " guestfs_sleep (guestfs_h *g,\n"
32276 "                int secs);\n"
32277 "\n"
32278 msgstr ""
32279
32280 #. type: textblock
32281 #: ../src/guestfs-actions.pod:7192
32282 msgid "(Added in 1.0.41)"
32283 msgstr ""
32284
32285 #. type: =head2
32286 #: ../src/guestfs-actions.pod:7194 ../src/guestfs-structs.pod:109
32287 msgid "guestfs_stat"
32288 msgstr ""
32289
32290 #. type: verbatim
32291 #: ../src/guestfs-actions.pod:7196
32292 #, no-wrap
32293 msgid ""
32294 " struct guestfs_stat *\n"
32295 " guestfs_stat (guestfs_h *g,\n"
32296 "               const char *path);\n"
32297 "\n"
32298 msgstr ""
32299
32300 #. type: =head2
32301 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-structs.pod:135
32302 msgid "guestfs_statvfs"
32303 msgstr ""
32304
32305 #. type: verbatim
32306 #: ../src/guestfs-actions.pod:7212
32307 #, no-wrap
32308 msgid ""
32309 " struct guestfs_statvfs *\n"
32310 " guestfs_statvfs (guestfs_h *g,\n"
32311 "                  const char *path);\n"
32312 "\n"
32313 msgstr ""
32314
32315 #. type: textblock
32316 #: ../src/guestfs-actions.pod:7222
32317 msgid ""
32318 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32319 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32320 msgstr ""
32321
32322 #. type: =head2
32323 #: ../src/guestfs-actions.pod:7228
32324 msgid "guestfs_strings"
32325 msgstr ""
32326
32327 #. type: verbatim
32328 #: ../src/guestfs-actions.pod:7230
32329 #, no-wrap
32330 msgid ""
32331 " char **\n"
32332 " guestfs_strings (guestfs_h *g,\n"
32333 "                  const char *path);\n"
32334 "\n"
32335 msgstr ""
32336
32337 #. type: =head2
32338 #: ../src/guestfs-actions.pod:7246
32339 msgid "guestfs_strings_e"
32340 msgstr ""
32341
32342 #. type: verbatim
32343 #: ../src/guestfs-actions.pod:7248
32344 #, no-wrap
32345 msgid ""
32346 " char **\n"
32347 " guestfs_strings_e (guestfs_h *g,\n"
32348 "                    const char *encoding,\n"
32349 "                    const char *path);\n"
32350 "\n"
32351 msgstr ""
32352
32353 #. type: textblock
32354 #: ../src/guestfs-actions.pod:7253
32355 msgid ""
32356 "This is like the C<guestfs_strings> command, but allows you to specify the "
32357 "encoding of strings that are looked for in the source file C<path>."
32358 msgstr ""
32359
32360 #. type: textblock
32361 #: ../src/guestfs-actions.pod:7263
32362 msgid ""
32363 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32364 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32365 msgstr ""
32366
32367 #. type: =head2
32368 #: ../src/guestfs-actions.pod:7301
32369 msgid "guestfs_swapoff_device"
32370 msgstr ""
32371
32372 #. type: verbatim
32373 #: ../src/guestfs-actions.pod:7303
32374 #, no-wrap
32375 msgid ""
32376 " int\n"
32377 " guestfs_swapoff_device (guestfs_h *g,\n"
32378 "                         const char *device);\n"
32379 "\n"
32380 msgstr ""
32381
32382 #. type: textblock
32383 #: ../src/guestfs-actions.pod:7307
32384 msgid ""
32385 "This command disables the libguestfs appliance swap device or partition "
32386 "named C<device>.  See C<guestfs_swapon_device>."
32387 msgstr ""
32388
32389 #. type: =head2
32390 #: ../src/guestfs-actions.pod:7315
32391 msgid "guestfs_swapoff_file"
32392 msgstr ""
32393
32394 #. type: verbatim
32395 #: ../src/guestfs-actions.pod:7317
32396 #, no-wrap
32397 msgid ""
32398 " int\n"
32399 " guestfs_swapoff_file (guestfs_h *g,\n"
32400 "                       const char *file);\n"
32401 "\n"
32402 msgstr ""
32403
32404 #. type: =head2
32405 #: ../src/guestfs-actions.pod:7327
32406 msgid "guestfs_swapoff_label"
32407 msgstr ""
32408
32409 #. type: verbatim
32410 #: ../src/guestfs-actions.pod:7329
32411 #, no-wrap
32412 msgid ""
32413 " int\n"
32414 " guestfs_swapoff_label (guestfs_h *g,\n"
32415 "                        const char *label);\n"
32416 "\n"
32417 msgstr ""
32418
32419 #. type: =head2
32420 #: ../src/guestfs-actions.pod:7340
32421 msgid "guestfs_swapoff_uuid"
32422 msgstr ""
32423
32424 #. type: verbatim
32425 #: ../src/guestfs-actions.pod:7342
32426 #, no-wrap
32427 msgid ""
32428 " int\n"
32429 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32430 "                       const char *uuid);\n"
32431 "\n"
32432 msgstr ""
32433
32434 #. type: =head2
32435 #: ../src/guestfs-actions.pod:7353
32436 msgid "guestfs_swapon_device"
32437 msgstr ""
32438
32439 #. type: verbatim
32440 #: ../src/guestfs-actions.pod:7355
32441 #, no-wrap
32442 msgid ""
32443 " int\n"
32444 " guestfs_swapon_device (guestfs_h *g,\n"
32445 "                        const char *device);\n"
32446 "\n"
32447 msgstr ""
32448
32449 #. type: textblock
32450 #: ../src/guestfs-actions.pod:7359
32451 msgid ""
32452 "This command enables the libguestfs appliance to use the swap device or "
32453 "partition named C<device>.  The increased memory is made available for all "
32454 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32455 msgstr ""
32456
32457 #. type: =head2
32458 #: ../src/guestfs-actions.pod:7375
32459 msgid "guestfs_swapon_file"
32460 msgstr ""
32461
32462 #. type: verbatim
32463 #: ../src/guestfs-actions.pod:7377
32464 #, no-wrap
32465 msgid ""
32466 " int\n"
32467 " guestfs_swapon_file (guestfs_h *g,\n"
32468 "                      const char *file);\n"
32469 "\n"
32470 msgstr ""
32471
32472 #. type: textblock
32473 #: ../src/guestfs-actions.pod:7381
32474 msgid ""
32475 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32476 "notes."
32477 msgstr ""
32478
32479 #. type: =head2
32480 #: ../src/guestfs-actions.pod:7388
32481 msgid "guestfs_swapon_label"
32482 msgstr ""
32483
32484 #. type: verbatim
32485 #: ../src/guestfs-actions.pod:7390
32486 #, no-wrap
32487 msgid ""
32488 " int\n"
32489 " guestfs_swapon_label (guestfs_h *g,\n"
32490 "                       const char *label);\n"
32491 "\n"
32492 msgstr ""
32493
32494 #. type: textblock
32495 #: ../src/guestfs-actions.pod:7394
32496 msgid ""
32497 "This command enables swap to a labeled swap partition.  See "
32498 "C<guestfs_swapon_device> for other notes."
32499 msgstr ""
32500
32501 #. type: =head2
32502 #: ../src/guestfs-actions.pod:7401
32503 msgid "guestfs_swapon_uuid"
32504 msgstr ""
32505
32506 #. type: verbatim
32507 #: ../src/guestfs-actions.pod:7403
32508 #, no-wrap
32509 msgid ""
32510 " int\n"
32511 " guestfs_swapon_uuid (guestfs_h *g,\n"
32512 "                      const char *uuid);\n"
32513 "\n"
32514 msgstr ""
32515
32516 #. type: textblock
32517 #: ../src/guestfs-actions.pod:7407
32518 msgid ""
32519 "This command enables swap to a swap partition with the given UUID.  See "
32520 "C<guestfs_swapon_device> for other notes."
32521 msgstr ""
32522
32523 #. type: =head2
32524 #: ../src/guestfs-actions.pod:7414
32525 msgid "guestfs_sync"
32526 msgstr ""
32527
32528 #. type: verbatim
32529 #: ../src/guestfs-actions.pod:7416
32530 #, no-wrap
32531 msgid ""
32532 " int\n"
32533 " guestfs_sync (guestfs_h *g);\n"
32534 "\n"
32535 msgstr ""
32536
32537 #. type: =head2
32538 #: ../src/guestfs-actions.pod:7429
32539 msgid "guestfs_tail"
32540 msgstr ""
32541
32542 #. type: verbatim
32543 #: ../src/guestfs-actions.pod:7431
32544 #, no-wrap
32545 msgid ""
32546 " char **\n"
32547 " guestfs_tail (guestfs_h *g,\n"
32548 "               const char *path);\n"
32549 "\n"
32550 msgstr ""
32551
32552 #. type: =head2
32553 #: ../src/guestfs-actions.pod:7447
32554 msgid "guestfs_tail_n"
32555 msgstr ""
32556
32557 #. type: verbatim
32558 #: ../src/guestfs-actions.pod:7449
32559 #, no-wrap
32560 msgid ""
32561 " char **\n"
32562 " guestfs_tail_n (guestfs_h *g,\n"
32563 "                 int nrlines,\n"
32564 "                 const char *path);\n"
32565 "\n"
32566 msgstr ""
32567
32568 #. type: =head2
32569 #: ../src/guestfs-actions.pod:7471
32570 msgid "guestfs_tar_in"
32571 msgstr ""
32572
32573 #. type: verbatim
32574 #: ../src/guestfs-actions.pod:7473
32575 #, no-wrap
32576 msgid ""
32577 " int\n"
32578 " guestfs_tar_in (guestfs_h *g,\n"
32579 "                 const char *tarfile,\n"
32580 "                 const char *directory);\n"
32581 "\n"
32582 msgstr ""
32583
32584 #. type: textblock
32585 #: ../src/guestfs-actions.pod:7481
32586 msgid ""
32587 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32588 msgstr ""
32589
32590 #. type: textblock
32591 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7503
32592 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7535
32593 msgid "(Added in 1.0.3)"
32594 msgstr ""
32595
32596 #. type: =head2
32597 #: ../src/guestfs-actions.pod:7488
32598 msgid "guestfs_tar_out"
32599 msgstr ""
32600
32601 #. type: verbatim
32602 #: ../src/guestfs-actions.pod:7490
32603 #, no-wrap
32604 msgid ""
32605 " int\n"
32606 " guestfs_tar_out (guestfs_h *g,\n"
32607 "                  const char *directory,\n"
32608 "                  const char *tarfile);\n"
32609 "\n"
32610 msgstr ""
32611
32612 #. type: textblock
32613 #: ../src/guestfs-actions.pod:7498
32614 msgid ""
32615 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32616 "C<guestfs_txz_out>."
32617 msgstr ""
32618
32619 #. type: =head2
32620 #: ../src/guestfs-actions.pod:7505
32621 msgid "guestfs_tgz_in"
32622 msgstr ""
32623
32624 #. type: verbatim
32625 #: ../src/guestfs-actions.pod:7507
32626 #, no-wrap
32627 msgid ""
32628 " int\n"
32629 " guestfs_tgz_in (guestfs_h *g,\n"
32630 "                 const char *tarball,\n"
32631 "                 const char *directory);\n"
32632 "\n"
32633 msgstr ""
32634
32635 #. type: textblock
32636 #: ../src/guestfs-actions.pod:7515
32637 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32638 msgstr ""
32639
32640 #. type: =head2
32641 #: ../src/guestfs-actions.pod:7521
32642 msgid "guestfs_tgz_out"
32643 msgstr ""
32644
32645 #. type: verbatim
32646 #: ../src/guestfs-actions.pod:7523
32647 #, no-wrap
32648 msgid ""
32649 " int\n"
32650 " guestfs_tgz_out (guestfs_h *g,\n"
32651 "                  const char *directory,\n"
32652 "                  const char *tarball);\n"
32653 "\n"
32654 msgstr ""
32655
32656 #. type: textblock
32657 #: ../src/guestfs-actions.pod:7531
32658 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32659 msgstr ""
32660
32661 #. type: =head2
32662 #: ../src/guestfs-actions.pod:7537
32663 msgid "guestfs_touch"
32664 msgstr ""
32665
32666 #. type: verbatim
32667 #: ../src/guestfs-actions.pod:7539
32668 #, no-wrap
32669 msgid ""
32670 " int\n"
32671 " guestfs_touch (guestfs_h *g,\n"
32672 "                const char *path);\n"
32673 "\n"
32674 msgstr ""
32675
32676 #. type: =head2
32677 #: ../src/guestfs-actions.pod:7554
32678 msgid "guestfs_truncate"
32679 msgstr ""
32680
32681 #. type: verbatim
32682 #: ../src/guestfs-actions.pod:7556
32683 #, no-wrap
32684 msgid ""
32685 " int\n"
32686 " guestfs_truncate (guestfs_h *g,\n"
32687 "                   const char *path);\n"
32688 "\n"
32689 msgstr ""
32690
32691 #. type: =head2
32692 #: ../src/guestfs-actions.pod:7567
32693 msgid "guestfs_truncate_size"
32694 msgstr ""
32695
32696 #. type: verbatim
32697 #: ../src/guestfs-actions.pod:7569
32698 #, no-wrap
32699 msgid ""
32700 " int\n"
32701 " guestfs_truncate_size (guestfs_h *g,\n"
32702 "                        const char *path,\n"
32703 "                        int64_t size);\n"
32704 "\n"
32705 msgstr ""
32706
32707 #. type: textblock
32708 #: ../src/guestfs-actions.pod:7577
32709 msgid ""
32710 "If the current file size is less than C<size> then the file is extended to "
32711 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32712 "blocks are not allocated for the file until you write to it).  To create a "
32713 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32714 msgstr ""
32715
32716 #. type: =head2
32717 #: ../src/guestfs-actions.pod:7587
32718 msgid "guestfs_tune2fs_l"
32719 msgstr ""
32720
32721 #. type: verbatim
32722 #: ../src/guestfs-actions.pod:7589
32723 #, no-wrap
32724 msgid ""
32725 " char **\n"
32726 " guestfs_tune2fs_l (guestfs_h *g,\n"
32727 "                    const char *device);\n"
32728 "\n"
32729 msgstr ""
32730
32731 #. type: =head2
32732 #: ../src/guestfs-actions.pod:7609
32733 msgid "guestfs_txz_in"
32734 msgstr ""
32735
32736 #. type: verbatim
32737 #: ../src/guestfs-actions.pod:7611
32738 #, no-wrap
32739 msgid ""
32740 " int\n"
32741 " guestfs_txz_in (guestfs_h *g,\n"
32742 "                 const char *tarball,\n"
32743 "                 const char *directory);\n"
32744 "\n"
32745 msgstr ""
32746
32747 #. type: =head2
32748 #: ../src/guestfs-actions.pod:7623
32749 msgid "guestfs_txz_out"
32750 msgstr ""
32751
32752 #. type: verbatim
32753 #: ../src/guestfs-actions.pod:7625
32754 #, no-wrap
32755 msgid ""
32756 " int\n"
32757 " guestfs_txz_out (guestfs_h *g,\n"
32758 "                  const char *directory,\n"
32759 "                  const char *tarball);\n"
32760 "\n"
32761 msgstr ""
32762
32763 #. type: =head2
32764 #: ../src/guestfs-actions.pod:7637
32765 msgid "guestfs_umask"
32766 msgstr ""
32767
32768 #. type: verbatim
32769 #: ../src/guestfs-actions.pod:7639
32770 #, no-wrap
32771 msgid ""
32772 " int\n"
32773 " guestfs_umask (guestfs_h *g,\n"
32774 "                int mask);\n"
32775 "\n"
32776 msgstr ""
32777
32778 #. type: textblock
32779 #: ../src/guestfs-actions.pod:7655
32780 msgid ""
32781 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32782 "C<guestfs_mkdir>."
32783 msgstr ""
32784
32785 #. type: =head2
32786 #: ../src/guestfs-actions.pod:7664
32787 msgid "guestfs_umount"
32788 msgstr ""
32789
32790 #. type: verbatim
32791 #: ../src/guestfs-actions.pod:7666
32792 #, no-wrap
32793 msgid ""
32794 " int\n"
32795 " guestfs_umount (guestfs_h *g,\n"
32796 "                 const char *pathordevice);\n"
32797 "\n"
32798 msgstr ""
32799
32800 #. type: =head2
32801 #: ../src/guestfs-actions.pod:7678
32802 msgid "guestfs_umount_all"
32803 msgstr ""
32804
32805 #. type: verbatim
32806 #: ../src/guestfs-actions.pod:7680
32807 #, no-wrap
32808 msgid ""
32809 " int\n"
32810 " guestfs_umount_all (guestfs_h *g);\n"
32811 "\n"
32812 msgstr ""
32813
32814 #. type: =head2
32815 #: ../src/guestfs-actions.pod:7691
32816 msgid "guestfs_upload"
32817 msgstr ""
32818
32819 #. type: verbatim
32820 #: ../src/guestfs-actions.pod:7693
32821 #, no-wrap
32822 msgid ""
32823 " int\n"
32824 " guestfs_upload (guestfs_h *g,\n"
32825 "                 const char *filename,\n"
32826 "                 const char *remotefilename);\n"
32827 "\n"
32828 msgstr ""
32829
32830 #. type: textblock
32831 #: ../src/guestfs-actions.pod:7703
32832 msgid "See also C<guestfs_download>."
32833 msgstr ""
32834
32835 #. type: =head2
32836 #: ../src/guestfs-actions.pod:7714
32837 msgid "guestfs_upload_offset"
32838 msgstr ""
32839
32840 #. type: verbatim
32841 #: ../src/guestfs-actions.pod:7716
32842 #, no-wrap
32843 msgid ""
32844 " int\n"
32845 " guestfs_upload_offset (guestfs_h *g,\n"
32846 "                        const char *filename,\n"
32847 "                        const char *remotefilename,\n"
32848 "                        int64_t offset);\n"
32849 "\n"
32850 msgstr ""
32851
32852 #. type: textblock
32853 #: ../src/guestfs-actions.pod:7732
32854 msgid ""
32855 "Note that there is no limit on the amount of data that can be uploaded with "
32856 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32857 "full amount unless an error occurs."
32858 msgstr ""
32859
32860 #. type: textblock
32861 #: ../src/guestfs-actions.pod:7737
32862 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32863 msgstr ""
32864
32865 #. type: =head2
32866 #: ../src/guestfs-actions.pod:7748
32867 msgid "guestfs_utimens"
32868 msgstr ""
32869
32870 #. type: verbatim
32871 #: ../src/guestfs-actions.pod:7750
32872 #, no-wrap
32873 msgid ""
32874 " int\n"
32875 " guestfs_utimens (guestfs_h *g,\n"
32876 "                  const char *path,\n"
32877 "                  int64_t atsecs,\n"
32878 "                  int64_t atnsecs,\n"
32879 "                  int64_t mtsecs,\n"
32880 "                  int64_t mtnsecs);\n"
32881 "\n"
32882 msgstr ""
32883
32884 #. type: =head2
32885 #: ../src/guestfs-actions.pod:7779 ../src/guestfs-structs.pod:175
32886 msgid "guestfs_version"
32887 msgstr ""
32888
32889 #. type: verbatim
32890 #: ../src/guestfs-actions.pod:7781
32891 #, no-wrap
32892 msgid ""
32893 " struct guestfs_version *\n"
32894 " guestfs_version (guestfs_h *g);\n"
32895 "\n"
32896 msgstr ""
32897
32898 #. type: textblock
32899 #: ../src/guestfs-actions.pod:7809
32900 msgid ""
32901 "I<Note:> Don't use this call to test for availability of features.  In "
32902 "enterprise distributions we backport features from later versions into "
32903 "earlier versions, making this an unreliable way to test for features.  Use "
32904 "C<guestfs_available> instead."
32905 msgstr ""
32906
32907 #. type: textblock
32908 #: ../src/guestfs-actions.pod:7815
32909 msgid ""
32910 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32911 "error.  I<The caller must call C<guestfs_free_version> after use>."
32912 msgstr ""
32913
32914 #. type: textblock
32915 #: ../src/guestfs-actions.pod:7819
32916 msgid "(Added in 1.0.58)"
32917 msgstr ""
32918
32919 #. type: =head2
32920 #: ../src/guestfs-actions.pod:7821
32921 msgid "guestfs_vfs_label"
32922 msgstr ""
32923
32924 #. type: verbatim
32925 #: ../src/guestfs-actions.pod:7823
32926 #, no-wrap
32927 msgid ""
32928 " char *\n"
32929 " guestfs_vfs_label (guestfs_h *g,\n"
32930 "                    const char *device);\n"
32931 "\n"
32932 msgstr ""
32933
32934 #. type: textblock
32935 #: ../src/guestfs-actions.pod:7832
32936 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32937 msgstr ""
32938
32939 #. type: textblock
32940 #: ../src/guestfs-actions.pod:7837 ../src/guestfs-actions.pod:7874
32941 msgid "(Added in 1.3.18)"
32942 msgstr ""
32943
32944 #. type: =head2
32945 #: ../src/guestfs-actions.pod:7839
32946 msgid "guestfs_vfs_type"
32947 msgstr ""
32948
32949 #. type: verbatim
32950 #: ../src/guestfs-actions.pod:7841
32951 #, no-wrap
32952 msgid ""
32953 " char *\n"
32954 " guestfs_vfs_type (guestfs_h *g,\n"
32955 "                   const char *device);\n"
32956 "\n"
32957 msgstr ""
32958
32959 #. type: =head2
32960 #: ../src/guestfs-actions.pod:7858
32961 msgid "guestfs_vfs_uuid"
32962 msgstr ""
32963
32964 #. type: verbatim
32965 #: ../src/guestfs-actions.pod:7860
32966 #, no-wrap
32967 msgid ""
32968 " char *\n"
32969 " guestfs_vfs_uuid (guestfs_h *g,\n"
32970 "                   const char *device);\n"
32971 "\n"
32972 msgstr ""
32973
32974 #. type: textblock
32975 #: ../src/guestfs-actions.pod:7869
32976 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
32977 msgstr ""
32978
32979 #. type: =head2
32980 #: ../src/guestfs-actions.pod:7876
32981 msgid "guestfs_vg_activate"
32982 msgstr ""
32983
32984 #. type: verbatim
32985 #: ../src/guestfs-actions.pod:7878
32986 #, no-wrap
32987 msgid ""
32988 " int\n"
32989 " guestfs_vg_activate (guestfs_h *g,\n"
32990 "                      int activate,\n"
32991 "                      char *const *volgroups);\n"
32992 "\n"
32993 msgstr ""
32994
32995 #. type: =head2
32996 #: ../src/guestfs-actions.pod:7895
32997 msgid "guestfs_vg_activate_all"
32998 msgstr ""
32999
33000 #. type: verbatim
33001 #: ../src/guestfs-actions.pod:7897
33002 #, no-wrap
33003 msgid ""
33004 " int\n"
33005 " guestfs_vg_activate_all (guestfs_h *g,\n"
33006 "                          int activate);\n"
33007 "\n"
33008 msgstr ""
33009
33010 #. type: =head2
33011 #: ../src/guestfs-actions.pod:7910
33012 msgid "guestfs_vgcreate"
33013 msgstr ""
33014
33015 #. type: verbatim
33016 #: ../src/guestfs-actions.pod:7912
33017 #, no-wrap
33018 msgid ""
33019 " int\n"
33020 " guestfs_vgcreate (guestfs_h *g,\n"
33021 "                   const char *volgroup,\n"
33022 "                   char *const *physvols);\n"
33023 "\n"
33024 msgstr ""
33025
33026 #. type: =head2
33027 #: ../src/guestfs-actions.pod:7924
33028 msgid "guestfs_vglvuuids"
33029 msgstr ""
33030
33031 #. type: verbatim
33032 #: ../src/guestfs-actions.pod:7926
33033 #, no-wrap
33034 msgid ""
33035 " char **\n"
33036 " guestfs_vglvuuids (guestfs_h *g,\n"
33037 "                    const char *vgname);\n"
33038 "\n"
33039 msgstr ""
33040
33041 #. type: textblock
33042 #: ../src/guestfs-actions.pod:7933
33043 msgid ""
33044 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33045 "associate logical volumes and volume groups."
33046 msgstr ""
33047
33048 #. type: textblock
33049 #: ../src/guestfs-actions.pod:7936
33050 msgid "See also C<guestfs_vgpvuuids>."
33051 msgstr ""
33052
33053 #. type: =head2
33054 #: ../src/guestfs-actions.pod:7944
33055 msgid "guestfs_vgpvuuids"
33056 msgstr ""
33057
33058 #. type: verbatim
33059 #: ../src/guestfs-actions.pod:7946
33060 #, no-wrap
33061 msgid ""
33062 " char **\n"
33063 " guestfs_vgpvuuids (guestfs_h *g,\n"
33064 "                    const char *vgname);\n"
33065 "\n"
33066 msgstr ""
33067
33068 #. type: textblock
33069 #: ../src/guestfs-actions.pod:7953
33070 msgid ""
33071 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33072 "associate physical volumes and volume groups."
33073 msgstr ""
33074
33075 #. type: textblock
33076 #: ../src/guestfs-actions.pod:7956
33077 msgid "See also C<guestfs_vglvuuids>."
33078 msgstr ""
33079
33080 #. type: =head2
33081 #: ../src/guestfs-actions.pod:7964
33082 msgid "guestfs_vgremove"
33083 msgstr ""
33084
33085 #. type: verbatim
33086 #: ../src/guestfs-actions.pod:7966
33087 #, no-wrap
33088 msgid ""
33089 " int\n"
33090 " guestfs_vgremove (guestfs_h *g,\n"
33091 "                   const char *vgname);\n"
33092 "\n"
33093 msgstr ""
33094
33095 #. type: =head2
33096 #: ../src/guestfs-actions.pod:7979
33097 msgid "guestfs_vgrename"
33098 msgstr ""
33099
33100 #. type: verbatim
33101 #: ../src/guestfs-actions.pod:7981
33102 #, no-wrap
33103 msgid ""
33104 " int\n"
33105 " guestfs_vgrename (guestfs_h *g,\n"
33106 "                   const char *volgroup,\n"
33107 "                   const char *newvolgroup);\n"
33108 "\n"
33109 msgstr ""
33110
33111 #. type: =head2
33112 #: ../src/guestfs-actions.pod:7992
33113 msgid "guestfs_vgs"
33114 msgstr ""
33115
33116 #. type: verbatim
33117 #: ../src/guestfs-actions.pod:7994
33118 #, no-wrap
33119 msgid ""
33120 " char **\n"
33121 " guestfs_vgs (guestfs_h *g);\n"
33122 "\n"
33123 msgstr ""
33124
33125 #. type: textblock
33126 #: ../src/guestfs-actions.pod:8003
33127 msgid "See also C<guestfs_vgs_full>."
33128 msgstr ""
33129
33130 #. type: =head2
33131 #: ../src/guestfs-actions.pod:8011
33132 msgid "guestfs_vgs_full"
33133 msgstr ""
33134
33135 #. type: verbatim
33136 #: ../src/guestfs-actions.pod:8013
33137 #, no-wrap
33138 msgid ""
33139 " struct guestfs_lvm_vg_list *\n"
33140 " guestfs_vgs_full (guestfs_h *g);\n"
33141 "\n"
33142 msgstr ""
33143
33144 #. type: textblock
33145 #: ../src/guestfs-actions.pod:8019
33146 msgid ""
33147 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33148 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33149 msgstr ""
33150
33151 #. type: =head2
33152 #: ../src/guestfs-actions.pod:8025
33153 msgid "guestfs_vgscan"
33154 msgstr ""
33155
33156 #. type: verbatim
33157 #: ../src/guestfs-actions.pod:8027
33158 #, no-wrap
33159 msgid ""
33160 " int\n"
33161 " guestfs_vgscan (guestfs_h *g);\n"
33162 "\n"
33163 msgstr ""
33164
33165 #. type: =head2
33166 #: ../src/guestfs-actions.pod:8037
33167 msgid "guestfs_vguuid"
33168 msgstr ""
33169
33170 #. type: verbatim
33171 #: ../src/guestfs-actions.pod:8039
33172 #, no-wrap
33173 msgid ""
33174 " char *\n"
33175 " guestfs_vguuid (guestfs_h *g,\n"
33176 "                 const char *vgname);\n"
33177 "\n"
33178 msgstr ""
33179
33180 #. type: =head2
33181 #: ../src/guestfs-actions.pod:8050
33182 msgid "guestfs_wait_ready"
33183 msgstr ""
33184
33185 #. type: verbatim
33186 #: ../src/guestfs-actions.pod:8052
33187 #, no-wrap
33188 msgid ""
33189 " int\n"
33190 " guestfs_wait_ready (guestfs_h *g);\n"
33191 "\n"
33192 msgstr ""
33193
33194 #. type: textblock
33195 #: ../src/guestfs-actions.pod:8055
33196 msgid ""
33197 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33198 "instead."
33199 msgstr ""
33200
33201 #. type: textblock
33202 #: ../src/guestfs-actions.pod:8062
33203 msgid "This function is a no op."
33204 msgstr ""
33205
33206 #. type: textblock
33207 #: ../src/guestfs-actions.pod:8064
33208 msgid ""
33209 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33210 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33211 "is no longer necessary because C<guestfs_launch> now does the waiting."
33212 msgstr ""
33213
33214 #. type: textblock
33215 #: ../src/guestfs-actions.pod:8069
33216 msgid ""
33217 "If you see any calls to this function in code then you can just remove them, "
33218 "unless you want to retain compatibility with older versions of the API."
33219 msgstr ""
33220
33221 #. type: =head2
33222 #: ../src/guestfs-actions.pod:8077
33223 msgid "guestfs_wc_c"
33224 msgstr ""
33225
33226 #. type: verbatim
33227 #: ../src/guestfs-actions.pod:8079
33228 #, no-wrap
33229 msgid ""
33230 " int\n"
33231 " guestfs_wc_c (guestfs_h *g,\n"
33232 "               const char *path);\n"
33233 "\n"
33234 msgstr ""
33235
33236 #. type: =head2
33237 #: ../src/guestfs-actions.pod:8090
33238 msgid "guestfs_wc_l"
33239 msgstr ""
33240
33241 #. type: verbatim
33242 #: ../src/guestfs-actions.pod:8092
33243 #, no-wrap
33244 msgid ""
33245 " int\n"
33246 " guestfs_wc_l (guestfs_h *g,\n"
33247 "               const char *path);\n"
33248 "\n"
33249 msgstr ""
33250
33251 #. type: =head2
33252 #: ../src/guestfs-actions.pod:8103
33253 msgid "guestfs_wc_w"
33254 msgstr ""
33255
33256 #. type: verbatim
33257 #: ../src/guestfs-actions.pod:8105
33258 #, no-wrap
33259 msgid ""
33260 " int\n"
33261 " guestfs_wc_w (guestfs_h *g,\n"
33262 "               const char *path);\n"
33263 "\n"
33264 msgstr ""
33265
33266 #. type: =head2
33267 #: ../src/guestfs-actions.pod:8116
33268 msgid "guestfs_write"
33269 msgstr ""
33270
33271 #. type: verbatim
33272 #: ../src/guestfs-actions.pod:8118
33273 #, no-wrap
33274 msgid ""
33275 " int\n"
33276 " guestfs_write (guestfs_h *g,\n"
33277 "                const char *path,\n"
33278 "                const char *content,\n"
33279 "                size_t content_size);\n"
33280 "\n"
33281 msgstr ""
33282
33283 #. type: textblock
33284 #: ../src/guestfs-actions.pod:8127
33285 msgid "See also C<guestfs_write_append>."
33286 msgstr ""
33287
33288 #. type: =head2
33289 #: ../src/guestfs-actions.pod:8136
33290 msgid "guestfs_write_append"
33291 msgstr ""
33292
33293 #. type: verbatim
33294 #: ../src/guestfs-actions.pod:8138
33295 #, no-wrap
33296 msgid ""
33297 " int\n"
33298 " guestfs_write_append (guestfs_h *g,\n"
33299 "                       const char *path,\n"
33300 "                       const char *content,\n"
33301 "                       size_t content_size);\n"
33302 "\n"
33303 msgstr ""
33304
33305 #. type: textblock
33306 #: ../src/guestfs-actions.pod:8147
33307 msgid "See also C<guestfs_write>."
33308 msgstr ""
33309
33310 #. type: =head2
33311 #: ../src/guestfs-actions.pod:8156
33312 msgid "guestfs_write_file"
33313 msgstr ""
33314
33315 #. type: verbatim
33316 #: ../src/guestfs-actions.pod:8158
33317 #, no-wrap
33318 msgid ""
33319 " int\n"
33320 " guestfs_write_file (guestfs_h *g,\n"
33321 "                     const char *path,\n"
33322 "                     const char *content,\n"
33323 "                     int size);\n"
33324 "\n"
33325 msgstr ""
33326
33327 #. type: textblock
33328 #: ../src/guestfs-actions.pod:8164
33329 msgid ""
33330 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33331 "instead."
33332 msgstr ""
33333
33334 #. type: =head2
33335 #: ../src/guestfs-actions.pod:8189
33336 msgid "guestfs_zegrep"
33337 msgstr ""
33338
33339 #. type: verbatim
33340 #: ../src/guestfs-actions.pod:8191
33341 #, no-wrap
33342 msgid ""
33343 " char **\n"
33344 " guestfs_zegrep (guestfs_h *g,\n"
33345 "                 const char *regex,\n"
33346 "                 const char *path);\n"
33347 "\n"
33348 msgstr ""
33349
33350 #. type: =head2
33351 #: ../src/guestfs-actions.pod:8208
33352 msgid "guestfs_zegrepi"
33353 msgstr ""
33354
33355 #. type: verbatim
33356 #: ../src/guestfs-actions.pod:8210
33357 #, no-wrap
33358 msgid ""
33359 " char **\n"
33360 " guestfs_zegrepi (guestfs_h *g,\n"
33361 "                  const char *regex,\n"
33362 "                  const char *path);\n"
33363 "\n"
33364 msgstr ""
33365
33366 #. type: =head2
33367 #: ../src/guestfs-actions.pod:8227
33368 msgid "guestfs_zero"
33369 msgstr ""
33370
33371 #. type: verbatim
33372 #: ../src/guestfs-actions.pod:8229
33373 #, no-wrap
33374 msgid ""
33375 " int\n"
33376 " guestfs_zero (guestfs_h *g,\n"
33377 "               const char *device);\n"
33378 "\n"
33379 msgstr ""
33380
33381 #. type: textblock
33382 #: ../src/guestfs-actions.pod:8243
33383 msgid ""
33384 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33385 "C<guestfs_is_zero_device>"
33386 msgstr ""
33387
33388 #. type: =head2
33389 #: ../src/guestfs-actions.pod:8255
33390 msgid "guestfs_zero_device"
33391 msgstr ""
33392
33393 #. type: verbatim
33394 #: ../src/guestfs-actions.pod:8257
33395 #, no-wrap
33396 msgid ""
33397 " int\n"
33398 " guestfs_zero_device (guestfs_h *g,\n"
33399 "                      const char *device);\n"
33400 "\n"
33401 msgstr ""
33402
33403 #. type: textblock
33404 #: ../src/guestfs-actions.pod:8261
33405 msgid ""
33406 "This command writes zeroes over the entire C<device>.  Compare with "
33407 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33408 msgstr ""
33409
33410 #. type: textblock
33411 #: ../src/guestfs-actions.pod:8276
33412 msgid "(Added in 1.3.1)"
33413 msgstr ""
33414
33415 #. type: =head2
33416 #: ../src/guestfs-actions.pod:8278
33417 msgid "guestfs_zerofree"
33418 msgstr ""
33419
33420 #. type: verbatim
33421 #: ../src/guestfs-actions.pod:8280
33422 #, no-wrap
33423 msgid ""
33424 " int\n"
33425 " guestfs_zerofree (guestfs_h *g,\n"
33426 "                   const char *device);\n"
33427 "\n"
33428 msgstr ""
33429
33430 #. type: =head2
33431 #: ../src/guestfs-actions.pod:8299
33432 msgid "guestfs_zfgrep"
33433 msgstr ""
33434
33435 #. type: verbatim
33436 #: ../src/guestfs-actions.pod:8301
33437 #, no-wrap
33438 msgid ""
33439 " char **\n"
33440 " guestfs_zfgrep (guestfs_h *g,\n"
33441 "                 const char *pattern,\n"
33442 "                 const char *path);\n"
33443 "\n"
33444 msgstr ""
33445
33446 #. type: =head2
33447 #: ../src/guestfs-actions.pod:8318
33448 msgid "guestfs_zfgrepi"
33449 msgstr ""
33450
33451 #. type: verbatim
33452 #: ../src/guestfs-actions.pod:8320
33453 #, no-wrap
33454 msgid ""
33455 " char **\n"
33456 " guestfs_zfgrepi (guestfs_h *g,\n"
33457 "                  const char *pattern,\n"
33458 "                  const char *path);\n"
33459 "\n"
33460 msgstr ""
33461
33462 #. type: =head2
33463 #: ../src/guestfs-actions.pod:8337
33464 msgid "guestfs_zfile"
33465 msgstr ""
33466
33467 #. type: verbatim
33468 #: ../src/guestfs-actions.pod:8339
33469 #, no-wrap
33470 msgid ""
33471 " char *\n"
33472 " guestfs_zfile (guestfs_h *g,\n"
33473 "                const char *meth,\n"
33474 "                const char *path);\n"
33475 "\n"
33476 msgstr ""
33477
33478 #. type: textblock
33479 #: ../src/guestfs-actions.pod:8344
33480 msgid ""
33481 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33482 "instead."
33483 msgstr ""
33484
33485 #. type: textblock
33486 #: ../src/guestfs-actions.pod:8356
33487 msgid ""
33488 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33489 "files."
33490 msgstr ""
33491
33492 #. type: =head2
33493 #: ../src/guestfs-actions.pod:8364
33494 msgid "guestfs_zgrep"
33495 msgstr ""
33496
33497 #. type: verbatim
33498 #: ../src/guestfs-actions.pod:8366
33499 #, no-wrap
33500 msgid ""
33501 " char **\n"
33502 " guestfs_zgrep (guestfs_h *g,\n"
33503 "                const char *regex,\n"
33504 "                const char *path);\n"
33505 "\n"
33506 msgstr ""
33507
33508 #. type: =head2
33509 #: ../src/guestfs-actions.pod:8383
33510 msgid "guestfs_zgrepi"
33511 msgstr ""
33512
33513 #. type: verbatim
33514 #: ../src/guestfs-actions.pod:8385
33515 #, no-wrap
33516 msgid ""
33517 " char **\n"
33518 " guestfs_zgrepi (guestfs_h *g,\n"
33519 "                 const char *regex,\n"
33520 "                 const char *path);\n"
33521 "\n"
33522 msgstr ""
33523
33524 #. type: =item
33525 #: ../src/guestfs-availability.pod:3
33526 msgid "B<augeas>"
33527 msgstr ""
33528
33529 #. type: textblock
33530 #: ../src/guestfs-availability.pod:5
33531 msgid ""
33532 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
33533 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
33534 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
33535 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
33536 "L</guestfs_aug_save> L</guestfs_aug_set>"
33537 msgstr ""
33538
33539 #. type: =item
33540 #: ../src/guestfs-availability.pod:21
33541 msgid "B<btrfs>"
33542 msgstr ""
33543
33544 #. type: textblock
33545 #: ../src/guestfs-availability.pod:23
33546 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33547 msgstr ""
33548
33549 #. type: =item
33550 #: ../src/guestfs-availability.pod:26
33551 msgid "B<grub>"
33552 msgstr ""
33553
33554 #. type: textblock
33555 #: ../src/guestfs-availability.pod:28
33556 msgid "The following functions: L</guestfs_grub_install>"
33557 msgstr ""
33558
33559 #. type: =item
33560 #: ../src/guestfs-availability.pod:31
33561 msgid "B<inotify>"
33562 msgstr ""
33563
33564 #. type: textblock
33565 #: ../src/guestfs-availability.pod:33
33566 msgid ""
33567 "The following functions: L</guestfs_inotify_add_watch> L</"
33568 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
33569 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33570 msgstr ""
33571
33572 #. type: =item
33573 #: ../src/guestfs-availability.pod:41
33574 msgid "B<linuxfsuuid>"
33575 msgstr ""
33576
33577 #. type: textblock
33578 #: ../src/guestfs-availability.pod:43
33579 msgid ""
33580 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
33581 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33582 msgstr ""
33583
33584 #. type: =item
33585 #: ../src/guestfs-availability.pod:50
33586 msgid "B<linuxmodules>"
33587 msgstr ""
33588
33589 #. type: textblock
33590 #: ../src/guestfs-availability.pod:52
33591 msgid "The following functions: L</guestfs_modprobe>"
33592 msgstr ""
33593
33594 #. type: =item
33595 #: ../src/guestfs-availability.pod:55
33596 msgid "B<linuxxattrs>"
33597 msgstr ""
33598
33599 #. type: textblock
33600 #: ../src/guestfs-availability.pod:57
33601 msgid ""
33602 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
33603 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
33604 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
33605 "guestfs_setxattr>"
33606 msgstr ""
33607
33608 #. type: =item
33609 #: ../src/guestfs-availability.pod:68
33610 msgid "B<luks>"
33611 msgstr ""
33612
33613 #. type: textblock
33614 #: ../src/guestfs-availability.pod:70
33615 msgid ""
33616 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
33617 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
33618 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33619 msgstr ""
33620
33621 #. type: =item
33622 #: ../src/guestfs-availability.pod:79
33623 msgid "B<lvm2>"
33624 msgstr ""
33625
33626 #. type: textblock
33627 #: ../src/guestfs-availability.pod:81
33628 msgid ""
33629 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
33630 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
33631 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
33632 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
33633 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
33634 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
33635 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
33636 msgstr ""
33637
33638 #. type: =item
33639 #: ../src/guestfs-availability.pod:104
33640 msgid "B<mknod>"
33641 msgstr ""
33642
33643 #. type: textblock
33644 #: ../src/guestfs-availability.pod:106
33645 msgid ""
33646 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
33647 "guestfs_mknod_b> L</guestfs_mknod_c>"
33648 msgstr ""
33649
33650 #. type: =item
33651 #: ../src/guestfs-availability.pod:112
33652 msgid "B<ntfs3g>"
33653 msgstr ""
33654
33655 #. type: textblock
33656 #: ../src/guestfs-availability.pod:114
33657 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33658 msgstr ""
33659
33660 #. type: =item
33661 #: ../src/guestfs-availability.pod:117
33662 msgid "B<ntfsprogs>"
33663 msgstr ""
33664
33665 #. type: textblock
33666 #: ../src/guestfs-availability.pod:119
33667 msgid ""
33668 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33669 "L</guestfs_ntfsresize_size>"
33670 msgstr ""
33671
33672 #. type: =item
33673 #: ../src/guestfs-availability.pod:124
33674 msgid "B<realpath>"
33675 msgstr ""
33676
33677 #. type: textblock
33678 #: ../src/guestfs-availability.pod:126
33679 msgid "The following functions: L</guestfs_realpath>"
33680 msgstr ""
33681
33682 #. type: =item
33683 #: ../src/guestfs-availability.pod:129
33684 msgid "B<scrub>"
33685 msgstr ""
33686
33687 #. type: textblock
33688 #: ../src/guestfs-availability.pod:131
33689 msgid ""
33690 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
33691 "guestfs_scrub_freespace>"
33692 msgstr ""
33693
33694 #. type: =item
33695 #: ../src/guestfs-availability.pod:136
33696 msgid "B<selinux>"
33697 msgstr ""
33698
33699 #. type: textblock
33700 #: ../src/guestfs-availability.pod:138
33701 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33702 msgstr ""
33703
33704 #. type: =item
33705 #: ../src/guestfs-availability.pod:142
33706 msgid "B<xz>"
33707 msgstr ""
33708
33709 #. type: textblock
33710 #: ../src/guestfs-availability.pod:144
33711 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33712 msgstr ""
33713
33714 #. type: =item
33715 #: ../src/guestfs-availability.pod:148
33716 msgid "B<zerofree>"
33717 msgstr ""
33718
33719 #. type: textblock
33720 #: ../src/guestfs-availability.pod:150
33721 msgid "The following functions: L</guestfs_zerofree>"
33722 msgstr ""
33723
33724 #. type: =head2
33725 #: ../src/guestfs-structs.pod:1
33726 msgid "guestfs_int_bool"
33727 msgstr ""
33728
33729 #. type: verbatim
33730 #: ../src/guestfs-structs.pod:3
33731 #, no-wrap
33732 msgid ""
33733 " struct guestfs_int_bool {\n"
33734 "   int32_t i;\n"
33735 "   int32_t b;\n"
33736 " };\n"
33737 " \n"
33738 msgstr ""
33739
33740 #. type: verbatim
33741 #: ../src/guestfs-structs.pod:8
33742 #, no-wrap
33743 msgid ""
33744 " struct guestfs_int_bool_list {\n"
33745 "   uint32_t len; /* Number of elements in list. */\n"
33746 "   struct guestfs_int_bool *val; /* Elements. */\n"
33747 " };\n"
33748 " \n"
33749 msgstr ""
33750
33751 #. type: verbatim
33752 #: ../src/guestfs-structs.pod:13
33753 #, no-wrap
33754 msgid ""
33755 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33756 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33757 "\n"
33758 msgstr ""
33759
33760 #. type: =head2
33761 #: ../src/guestfs-structs.pod:16
33762 msgid "guestfs_lvm_pv"
33763 msgstr ""
33764
33765 #. type: verbatim
33766 #: ../src/guestfs-structs.pod:18
33767 #, no-wrap
33768 msgid ""
33769 " struct guestfs_lvm_pv {\n"
33770 "   char *pv_name;\n"
33771 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33772 "   char pv_uuid[32];\n"
33773 "   char *pv_fmt;\n"
33774 "   uint64_t pv_size;\n"
33775 "   uint64_t dev_size;\n"
33776 "   uint64_t pv_free;\n"
33777 "   uint64_t pv_used;\n"
33778 "   char *pv_attr;\n"
33779 "   int64_t pv_pe_count;\n"
33780 "   int64_t pv_pe_alloc_count;\n"
33781 "   char *pv_tags;\n"
33782 "   uint64_t pe_start;\n"
33783 "   int64_t pv_mda_count;\n"
33784 "   uint64_t pv_mda_free;\n"
33785 " };\n"
33786 " \n"
33787 msgstr ""
33788
33789 #. type: verbatim
33790 #: ../src/guestfs-structs.pod:36
33791 #, no-wrap
33792 msgid ""
33793 " struct guestfs_lvm_pv_list {\n"
33794 "   uint32_t len; /* Number of elements in list. */\n"
33795 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33796 " };\n"
33797 " \n"
33798 msgstr ""
33799
33800 #. type: verbatim
33801 #: ../src/guestfs-structs.pod:41
33802 #, no-wrap
33803 msgid ""
33804 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33805 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33806 "\n"
33807 msgstr ""
33808
33809 #. type: =head2
33810 #: ../src/guestfs-structs.pod:44
33811 msgid "guestfs_lvm_vg"
33812 msgstr ""
33813
33814 #. type: verbatim
33815 #: ../src/guestfs-structs.pod:46
33816 #, no-wrap
33817 msgid ""
33818 " struct guestfs_lvm_vg {\n"
33819 "   char *vg_name;\n"
33820 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33821 "   char vg_uuid[32];\n"
33822 "   char *vg_fmt;\n"
33823 "   char *vg_attr;\n"
33824 "   uint64_t vg_size;\n"
33825 "   uint64_t vg_free;\n"
33826 "   char *vg_sysid;\n"
33827 "   uint64_t vg_extent_size;\n"
33828 "   int64_t vg_extent_count;\n"
33829 "   int64_t vg_free_count;\n"
33830 "   int64_t max_lv;\n"
33831 "   int64_t max_pv;\n"
33832 "   int64_t pv_count;\n"
33833 "   int64_t lv_count;\n"
33834 "   int64_t snap_count;\n"
33835 "   int64_t vg_seqno;\n"
33836 "   char *vg_tags;\n"
33837 "   int64_t vg_mda_count;\n"
33838 "   uint64_t vg_mda_free;\n"
33839 " };\n"
33840 " \n"
33841 msgstr ""
33842
33843 #. type: verbatim
33844 #: ../src/guestfs-structs.pod:69
33845 #, no-wrap
33846 msgid ""
33847 " struct guestfs_lvm_vg_list {\n"
33848 "   uint32_t len; /* Number of elements in list. */\n"
33849 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33850 " };\n"
33851 " \n"
33852 msgstr ""
33853
33854 #. type: verbatim
33855 #: ../src/guestfs-structs.pod:74
33856 #, no-wrap
33857 msgid ""
33858 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33859 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33860 "\n"
33861 msgstr ""
33862
33863 #. type: =head2
33864 #: ../src/guestfs-structs.pod:77
33865 msgid "guestfs_lvm_lv"
33866 msgstr ""
33867
33868 #. type: verbatim
33869 #: ../src/guestfs-structs.pod:79
33870 #, no-wrap
33871 msgid ""
33872 " struct guestfs_lvm_lv {\n"
33873 "   char *lv_name;\n"
33874 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33875 "   char lv_uuid[32];\n"
33876 "   char *lv_attr;\n"
33877 "   int64_t lv_major;\n"
33878 "   int64_t lv_minor;\n"
33879 "   int64_t lv_kernel_major;\n"
33880 "   int64_t lv_kernel_minor;\n"
33881 "   uint64_t lv_size;\n"
33882 "   int64_t seg_count;\n"
33883 "   char *origin;\n"
33884 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33885 "   float snap_percent;\n"
33886 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33887 "   float copy_percent;\n"
33888 "   char *move_pv;\n"
33889 "   char *lv_tags;\n"
33890 "   char *mirror_log;\n"
33891 "   char *modules;\n"
33892 " };\n"
33893 " \n"
33894 msgstr ""
33895
33896 #. type: verbatim
33897 #: ../src/guestfs-structs.pod:101
33898 #, no-wrap
33899 msgid ""
33900 " struct guestfs_lvm_lv_list {\n"
33901 "   uint32_t len; /* Number of elements in list. */\n"
33902 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
33903 " };\n"
33904 " \n"
33905 msgstr ""
33906
33907 #. type: verbatim
33908 #: ../src/guestfs-structs.pod:106
33909 #, no-wrap
33910 msgid ""
33911 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33912 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33913 "\n"
33914 msgstr ""
33915
33916 #. type: verbatim
33917 #: ../src/guestfs-structs.pod:111
33918 #, no-wrap
33919 msgid ""
33920 " struct guestfs_stat {\n"
33921 "   int64_t dev;\n"
33922 "   int64_t ino;\n"
33923 "   int64_t mode;\n"
33924 "   int64_t nlink;\n"
33925 "   int64_t uid;\n"
33926 "   int64_t gid;\n"
33927 "   int64_t rdev;\n"
33928 "   int64_t size;\n"
33929 "   int64_t blksize;\n"
33930 "   int64_t blocks;\n"
33931 "   int64_t atime;\n"
33932 "   int64_t mtime;\n"
33933 "   int64_t ctime;\n"
33934 " };\n"
33935 " \n"
33936 msgstr ""
33937
33938 #. type: verbatim
33939 #: ../src/guestfs-structs.pod:127
33940 #, no-wrap
33941 msgid ""
33942 " struct guestfs_stat_list {\n"
33943 "   uint32_t len; /* Number of elements in list. */\n"
33944 "   struct guestfs_stat *val; /* Elements. */\n"
33945 " };\n"
33946 " \n"
33947 msgstr ""
33948
33949 #. type: verbatim
33950 #: ../src/guestfs-structs.pod:132
33951 #, no-wrap
33952 msgid ""
33953 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33954 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33955 "\n"
33956 msgstr ""
33957
33958 #. type: verbatim
33959 #: ../src/guestfs-structs.pod:137
33960 #, no-wrap
33961 msgid ""
33962 " struct guestfs_statvfs {\n"
33963 "   int64_t bsize;\n"
33964 "   int64_t frsize;\n"
33965 "   int64_t blocks;\n"
33966 "   int64_t bfree;\n"
33967 "   int64_t bavail;\n"
33968 "   int64_t files;\n"
33969 "   int64_t ffree;\n"
33970 "   int64_t favail;\n"
33971 "   int64_t fsid;\n"
33972 "   int64_t flag;\n"
33973 "   int64_t namemax;\n"
33974 " };\n"
33975 " \n"
33976 msgstr ""
33977
33978 #. type: verbatim
33979 #: ../src/guestfs-structs.pod:151
33980 #, no-wrap
33981 msgid ""
33982 " struct guestfs_statvfs_list {\n"
33983 "   uint32_t len; /* Number of elements in list. */\n"
33984 "   struct guestfs_statvfs *val; /* Elements. */\n"
33985 " };\n"
33986 " \n"
33987 msgstr ""
33988
33989 #. type: verbatim
33990 #: ../src/guestfs-structs.pod:156
33991 #, no-wrap
33992 msgid ""
33993 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33994 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33995 "\n"
33996 msgstr ""
33997
33998 #. type: =head2
33999 #: ../src/guestfs-structs.pod:159
34000 msgid "guestfs_dirent"
34001 msgstr ""
34002
34003 #. type: verbatim
34004 #: ../src/guestfs-structs.pod:161
34005 #, no-wrap
34006 msgid ""
34007 " struct guestfs_dirent {\n"
34008 "   int64_t ino;\n"
34009 "   char ftyp;\n"
34010 "   char *name;\n"
34011 " };\n"
34012 " \n"
34013 msgstr ""
34014
34015 #. type: verbatim
34016 #: ../src/guestfs-structs.pod:167
34017 #, no-wrap
34018 msgid ""
34019 " struct guestfs_dirent_list {\n"
34020 "   uint32_t len; /* Number of elements in list. */\n"
34021 "   struct guestfs_dirent *val; /* Elements. */\n"
34022 " };\n"
34023 " \n"
34024 msgstr ""
34025
34026 #. type: verbatim
34027 #: ../src/guestfs-structs.pod:172
34028 #, no-wrap
34029 msgid ""
34030 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34031 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34032 "\n"
34033 msgstr ""
34034
34035 #. type: verbatim
34036 #: ../src/guestfs-structs.pod:177
34037 #, no-wrap
34038 msgid ""
34039 " struct guestfs_version {\n"
34040 "   int64_t major;\n"
34041 "   int64_t minor;\n"
34042 "   int64_t release;\n"
34043 "   char *extra;\n"
34044 " };\n"
34045 " \n"
34046 msgstr ""
34047
34048 #. type: verbatim
34049 #: ../src/guestfs-structs.pod:184
34050 #, no-wrap
34051 msgid ""
34052 " struct guestfs_version_list {\n"
34053 "   uint32_t len; /* Number of elements in list. */\n"
34054 "   struct guestfs_version *val; /* Elements. */\n"
34055 " };\n"
34056 " \n"
34057 msgstr ""
34058
34059 #. type: verbatim
34060 #: ../src/guestfs-structs.pod:189
34061 #, no-wrap
34062 msgid ""
34063 " void guestfs_free_version (struct guestfs_free_version *);\n"
34064 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34065 "\n"
34066 msgstr ""
34067
34068 #. type: =head2
34069 #: ../src/guestfs-structs.pod:192
34070 msgid "guestfs_xattr"
34071 msgstr ""
34072
34073 #. type: verbatim
34074 #: ../src/guestfs-structs.pod:194
34075 #, no-wrap
34076 msgid ""
34077 " struct guestfs_xattr {\n"
34078 "   char *attrname;\n"
34079 "   /* The next two fields describe a byte array. */\n"
34080 "   uint32_t attrval_len;\n"
34081 "   char *attrval;\n"
34082 " };\n"
34083 " \n"
34084 msgstr ""
34085
34086 #. type: verbatim
34087 #: ../src/guestfs-structs.pod:201
34088 #, no-wrap
34089 msgid ""
34090 " struct guestfs_xattr_list {\n"
34091 "   uint32_t len; /* Number of elements in list. */\n"
34092 "   struct guestfs_xattr *val; /* Elements. */\n"
34093 " };\n"
34094 " \n"
34095 msgstr ""
34096
34097 #. type: verbatim
34098 #: ../src/guestfs-structs.pod:206
34099 #, no-wrap
34100 msgid ""
34101 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34102 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34103 "\n"
34104 msgstr ""
34105
34106 #. type: =head2
34107 #: ../src/guestfs-structs.pod:209
34108 msgid "guestfs_inotify_event"
34109 msgstr ""
34110
34111 #. type: verbatim
34112 #: ../src/guestfs-structs.pod:211
34113 #, no-wrap
34114 msgid ""
34115 " struct guestfs_inotify_event {\n"
34116 "   int64_t in_wd;\n"
34117 "   uint32_t in_mask;\n"
34118 "   uint32_t in_cookie;\n"
34119 "   char *in_name;\n"
34120 " };\n"
34121 " \n"
34122 msgstr ""
34123
34124 #. type: verbatim
34125 #: ../src/guestfs-structs.pod:218
34126 #, no-wrap
34127 msgid ""
34128 " struct guestfs_inotify_event_list {\n"
34129 "   uint32_t len; /* Number of elements in list. */\n"
34130 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34131 " };\n"
34132 " \n"
34133 msgstr ""
34134
34135 #. type: verbatim
34136 #: ../src/guestfs-structs.pod:223
34137 #, no-wrap
34138 msgid ""
34139 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34140 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34141 "\n"
34142 msgstr ""
34143
34144 #. type: =head2
34145 #: ../src/guestfs-structs.pod:226
34146 msgid "guestfs_partition"
34147 msgstr ""
34148
34149 #. type: verbatim
34150 #: ../src/guestfs-structs.pod:228
34151 #, no-wrap
34152 msgid ""
34153 " struct guestfs_partition {\n"
34154 "   int32_t part_num;\n"
34155 "   uint64_t part_start;\n"
34156 "   uint64_t part_end;\n"
34157 "   uint64_t part_size;\n"
34158 " };\n"
34159 " \n"
34160 msgstr ""
34161
34162 #. type: verbatim
34163 #: ../src/guestfs-structs.pod:235
34164 #, no-wrap
34165 msgid ""
34166 " struct guestfs_partition_list {\n"
34167 "   uint32_t len; /* Number of elements in list. */\n"
34168 "   struct guestfs_partition *val; /* Elements. */\n"
34169 " };\n"
34170 " \n"
34171 msgstr ""
34172
34173 #. type: verbatim
34174 #: ../src/guestfs-structs.pod:240
34175 #, no-wrap
34176 msgid ""
34177 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34178 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34179 "\n"
34180 msgstr ""
34181
34182 #. type: =head2
34183 #: ../src/guestfs-structs.pod:243
34184 msgid "guestfs_application"
34185 msgstr ""
34186
34187 #. type: verbatim
34188 #: ../src/guestfs-structs.pod:245
34189 #, no-wrap
34190 msgid ""
34191 " struct guestfs_application {\n"
34192 "   char *app_name;\n"
34193 "   char *app_display_name;\n"
34194 "   int32_t app_epoch;\n"
34195 "   char *app_version;\n"
34196 "   char *app_release;\n"
34197 "   char *app_install_path;\n"
34198 "   char *app_trans_path;\n"
34199 "   char *app_publisher;\n"
34200 "   char *app_url;\n"
34201 "   char *app_source_package;\n"
34202 "   char *app_summary;\n"
34203 "   char *app_description;\n"
34204 " };\n"
34205 " \n"
34206 msgstr ""
34207
34208 #. type: verbatim
34209 #: ../src/guestfs-structs.pod:260
34210 #, no-wrap
34211 msgid ""
34212 " struct guestfs_application_list {\n"
34213 "   uint32_t len; /* Number of elements in list. */\n"
34214 "   struct guestfs_application *val; /* Elements. */\n"
34215 " };\n"
34216 " \n"
34217 msgstr ""
34218
34219 #. type: verbatim
34220 #: ../src/guestfs-structs.pod:265
34221 #, no-wrap
34222 msgid ""
34223 " void guestfs_free_application (struct guestfs_free_application *);\n"
34224 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34225 "\n"
34226 msgstr ""
34227
34228 #. type: textblock
34229 #: ../src/guestfs.pod:5
34230 msgid "guestfs - Library for accessing and modifying virtual machine images"
34231 msgstr ""
34232
34233 #. type: verbatim
34234 #: ../src/guestfs.pod:11
34235 #, no-wrap
34236 msgid ""
34237 " guestfs_h *g = guestfs_create ();\n"
34238 " guestfs_add_drive (g, \"guest.img\");\n"
34239 " guestfs_launch (g);\n"
34240 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34241 " guestfs_touch (g, \"/hello\");\n"
34242 " guestfs_umount (g, \"/\");\n"
34243 " guestfs_close (g);\n"
34244 "\n"
34245 msgstr ""
34246 " guestfs_h *g = guestfs_create ();\n"
34247 " guestfs_add_drive (g, \"guest.img\");\n"
34248 " guestfs_launch (g);\n"
34249 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34250 " guestfs_touch (g, \"/hello\");\n"
34251 " guestfs_umount (g, \"/\");\n"
34252 " guestfs_close (g);\n"
34253 "\n"
34254
34255 #. type: textblock
34256 #: ../src/guestfs.pod:25
34257 msgid ""
34258 "Libguestfs is a library for accessing and modifying guest disk images.  "
34259 "Amongst the things this is good for: making batch configuration changes to "
34260 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34261 "between virtualization systems (see also: virt-p2v), performing partial "
34262 "backups, performing partial guest clones, cloning guests and changing "
34263 "registry/UUID/hostname info, and much else besides."
34264 msgstr ""
34265
34266 #. type: textblock
34267 #: ../src/guestfs.pod:33
34268 msgid ""
34269 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34270 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34271 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34272 "qcow2, vmdk."
34273 msgstr ""
34274
34275 #. type: textblock
34276 #: ../src/guestfs.pod:38
34277 msgid ""
34278 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34279 "what filesystem is in each LV, etc.).  It can also run commands in the "
34280 "context of the guest.  Also you can access filesystems over FUSE."
34281 msgstr ""
34282
34283 #. type: textblock
34284 #: ../src/guestfs.pod:43
34285 msgid ""
34286 "Libguestfs is a library that can be linked with C and C++ management "
34287 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34288 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34289 "command line."
34290 msgstr ""
34291
34292 #. type: textblock
34293 #: ../src/guestfs.pod:48
34294 msgid ""
34295 "You don't need to be root to use libguestfs, although obviously you do need "
34296 "enough permissions to access the disk images."
34297 msgstr ""
34298
34299 #. type: textblock
34300 #: ../src/guestfs.pod:51
34301 msgid ""
34302 "Libguestfs is a large API because it can do many things.  For a gentle "
34303 "introduction, please read the L</API OVERVIEW> section next."
34304 msgstr ""
34305
34306 #. type: textblock
34307 #: ../src/guestfs.pod:54
34308 msgid ""
34309 "There are also some example programs in the L<guestfs-examples(3)> manual "
34310 "page."
34311 msgstr ""
34312
34313 #. type: =head1
34314 #: ../src/guestfs.pod:57
34315 msgid "API OVERVIEW"
34316 msgstr ""
34317
34318 #. type: textblock
34319 #: ../src/guestfs.pod:59
34320 msgid ""
34321 "This section provides a gentler overview of the libguestfs API.  We also try "
34322 "to group API calls together, where that may not be obvious from reading "
34323 "about the individual calls in the main section of this manual."
34324 msgstr ""
34325
34326 #. type: =head2
34327 #: ../src/guestfs.pod:64
34328 msgid "HANDLES"
34329 msgstr ""
34330
34331 #. type: textblock
34332 #: ../src/guestfs.pod:66
34333 msgid ""
34334 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34335 "must add at least one disk image to the handle, followed by launching the "
34336 "handle, then performing whatever operations you want, and finally closing "
34337 "the handle.  By convention we use the single letter C<g> for the name of the "
34338 "handle variable, although of course you can use any name you want."
34339 msgstr ""
34340
34341 #. type: textblock
34342 #: ../src/guestfs.pod:73
34343 msgid "The general structure of all libguestfs-using programs looks like this:"
34344 msgstr ""
34345
34346 #. type: verbatim
34347 #: ../src/guestfs.pod:76
34348 #, no-wrap
34349 msgid ""
34350 " guestfs_h *g = guestfs_create ();\n"
34351 " \n"
34352 msgstr ""
34353
34354 #. type: verbatim
34355 #: ../src/guestfs.pod:78
34356 #, no-wrap
34357 msgid ""
34358 " /* Call guestfs_add_drive additional times if there are\n"
34359 "  * multiple disk images.\n"
34360 "  */\n"
34361 " guestfs_add_drive (g, \"guest.img\");\n"
34362 " \n"
34363 msgstr ""
34364
34365 #. type: verbatim
34366 #: ../src/guestfs.pod:83
34367 #, no-wrap
34368 msgid ""
34369 " /* Most manipulation calls won't work until you've launched\n"
34370 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34371 "  * and _before_ other commands.\n"
34372 "  */\n"
34373 " guestfs_launch (g);\n"
34374 " \n"
34375 msgstr ""
34376
34377 #. type: verbatim
34378 #: ../src/guestfs.pod:89
34379 #, no-wrap
34380 msgid ""
34381 " /* Now you can examine what partitions, LVs etc are available.\n"
34382 "  */\n"
34383 " char **partitions = guestfs_list_partitions (g);\n"
34384 " char **logvols = guestfs_lvs (g);\n"
34385 " \n"
34386 msgstr ""
34387
34388 #. type: verbatim
34389 #: ../src/guestfs.pod:94
34390 #, no-wrap
34391 msgid ""
34392 " /* To access a filesystem in the image, you must mount it.\n"
34393 "  */\n"
34394 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34395 " \n"
34396 msgstr ""
34397
34398 #. type: verbatim
34399 #: ../src/guestfs.pod:98
34400 #, no-wrap
34401 msgid ""
34402 " /* Now you can perform filesystem actions on the guest\n"
34403 "  * disk image.\n"
34404 "  */\n"
34405 " guestfs_touch (g, \"/hello\");\n"
34406 " \n"
34407 msgstr ""
34408
34409 #. type: verbatim
34410 #: ../src/guestfs.pod:103
34411 #, no-wrap
34412 msgid ""
34413 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34414 "  * it is done automatically when you close the handle.  See\n"
34415 "  * discussion of autosync in this page.\n"
34416 "  */\n"
34417 " guestfs_sync (g);\n"
34418 " \n"
34419 msgstr ""
34420
34421 #. type: verbatim
34422 #: ../src/guestfs.pod:109
34423 #, no-wrap
34424 msgid ""
34425 " /* Close the handle 'g'. */\n"
34426 " guestfs_close (g);\n"
34427 "\n"
34428 msgstr ""
34429
34430 #. type: textblock
34431 #: ../src/guestfs.pod:112
34432 msgid ""
34433 "The code above doesn't include any error checking.  In real code you should "
34434 "check return values carefully for errors.  In general all functions that "
34435 "return integers return C<-1> on error, and all functions that return "
34436 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34437 "how to handle errors, and consult the documentation for each function call "
34438 "below to see precisely how they return error indications.  See L<guestfs-"
34439 "examples(3)> for fully worked examples."
34440 msgstr ""
34441
34442 #. type: =head2
34443 #: ../src/guestfs.pod:121
34444 msgid "DISK IMAGES"
34445 msgstr ""
34446
34447 #. type: textblock
34448 #: ../src/guestfs.pod:123
34449 msgid ""
34450 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34451 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34452 "actual block device, or simply an empty file of zeroes that you have created "
34453 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34454 "of these."
34455 msgstr ""
34456
34457 #. type: textblock
34458 #: ../src/guestfs.pod:129
34459 msgid ""
34460 "The call you should use in modern code for adding drives is L</"
34461 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34462 "specifying that the format is raw, do:"
34463 msgstr ""
34464
34465 #. type: verbatim
34466 #: ../src/guestfs.pod:133
34467 #, no-wrap
34468 msgid ""
34469 " guestfs_add_drive_opts (g, filename,\n"
34470 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34471 "                         -1);\n"
34472 "\n"
34473 msgstr ""
34474
34475 #. type: textblock
34476 #: ../src/guestfs.pod:137
34477 msgid "You can add a disk read-only using:"
34478 msgstr ""
34479
34480 #. type: verbatim
34481 #: ../src/guestfs.pod:139
34482 #, no-wrap
34483 msgid ""
34484 " guestfs_add_drive_opts (g, filename,\n"
34485 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34486 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34487 "                         -1);\n"
34488 "\n"
34489 msgstr ""
34490
34491 #. type: textblock
34492 #: ../src/guestfs.pod:144
34493 msgid ""
34494 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34495 "libguestfs won't modify the file."
34496 msgstr ""
34497
34498 #. type: textblock
34499 #: ../src/guestfs.pod:147
34500 msgid ""
34501 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34502 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34503 "corruption, but adding it read-only is safe."
34504 msgstr ""
34505
34506 #. type: textblock
34507 #: ../src/guestfs.pod:151
34508 msgid ""
34509 "You must add at least one disk image, and you may add multiple disk images.  "
34510 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34511 "first one you added), C</dev/sdb> (for the second one you added), etc."
34512 msgstr ""
34513
34514 #. type: textblock
34515 #: ../src/guestfs.pod:156
34516 msgid ""
34517 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34518 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34519 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34520 msgstr ""
34521
34522 #. type: =head2
34523 #: ../src/guestfs.pod:161
34524 msgid "MOUNTING"
34525 msgstr ""
34526
34527 #. type: textblock
34528 #: ../src/guestfs.pod:163
34529 msgid ""
34530 "Before you can read or write files, create directories and so on in a disk "
34531 "image that contains filesystems, you have to mount those filesystems using "
34532 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
34533 "a disk image contains (for example) one partition with a filesystem on that "
34534 "partition, then you can mount it directly:"
34535 msgstr ""
34536
34537 #. type: verbatim
34538 #: ../src/guestfs.pod:170
34539 #, no-wrap
34540 msgid ""
34541 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34542 "\n"
34543 msgstr ""
34544
34545 #. type: textblock
34546 #: ../src/guestfs.pod:172
34547 msgid ""
34548 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34549 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34550 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34551 "that these are libguestfs virtual devices, and are nothing to do with host "
34552 "devices."
34553 msgstr ""
34554
34555 #. type: textblock
34556 #: ../src/guestfs.pod:178
34557 msgid ""
34558 "If you are given a disk image and you don't know what it contains then you "
34559 "have to find out.  Libguestfs can do that too: use L</"
34560 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
34561 "LVs, and either try mounting each to see what is mountable, or else examine "
34562 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34563 "filesystems, use L</guestfs_list_filesystems>."
34564 msgstr ""
34565
34566 #. type: textblock
34567 #: ../src/guestfs.pod:186
34568 msgid ""
34569 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34570 "L</INSPECTION> below).  But you might find it easier to look at higher level "
34571 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34572 msgstr ""
34573
34574 #. type: textblock
34575 #: ../src/guestfs.pod:191
34576 msgid ""
34577 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34578 "several other variations of the C<guestfs_mount_*> call."
34579 msgstr ""
34580
34581 #. type: =head2
34582 #: ../src/guestfs.pod:194
34583 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34584 msgstr ""
34585
34586 #. type: textblock
34587 #: ../src/guestfs.pod:196
34588 msgid ""
34589 "The majority of the libguestfs API consists of fairly low-level calls for "
34590 "accessing and modifying the files, directories, symlinks etc on mounted "
34591 "filesystems.  There are over a hundred such calls which you can find listed "
34592 "in detail below in this man page, and we don't even pretend to cover them "
34593 "all in this overview."
34594 msgstr ""
34595
34596 #. type: textblock
34597 #: ../src/guestfs.pod:202
34598 msgid ""
34599 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34600 "mount point."
34601 msgstr ""
34602
34603 #. type: textblock
34604 #: ../src/guestfs.pod:205
34605 msgid ""
34606 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34607 "the file called C<\"etc/passwd\"> then you could do:"
34608 msgstr ""
34609
34610 #. type: verbatim
34611 #: ../src/guestfs.pod:208
34612 #, no-wrap
34613 msgid ""
34614 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34615 "\n"
34616 msgstr ""
34617
34618 #. type: textblock
34619 #: ../src/guestfs.pod:210
34620 msgid ""
34621 "This would return C<data> as a newly allocated buffer containing the full "
34622 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34623 "or C<NULL> if there was an error."
34624 msgstr ""
34625
34626 #. type: textblock
34627 #: ../src/guestfs.pod:214
34628 msgid ""
34629 "As another example, to create a top-level directory on that filesystem "
34630 "called C<\"var\"> you would do:"
34631 msgstr ""
34632
34633 #. type: verbatim
34634 #: ../src/guestfs.pod:217
34635 #, no-wrap
34636 msgid ""
34637 " guestfs_mkdir (g, \"/var\");\n"
34638 "\n"
34639 msgstr ""
34640
34641 #. type: textblock
34642 #: ../src/guestfs.pod:219
34643 msgid "To create a symlink you could do:"
34644 msgstr ""
34645
34646 #. type: verbatim
34647 #: ../src/guestfs.pod:221
34648 #, no-wrap
34649 msgid ""
34650 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34651 "               \"/etc/rc3.d/S30portmap\");\n"
34652 "\n"
34653 msgstr ""
34654
34655 #. type: textblock
34656 #: ../src/guestfs.pod:224
34657 msgid ""
34658 "Libguestfs will reject attempts to use relative paths and there is no "
34659 "concept of a current working directory."
34660 msgstr ""
34661
34662 #. type: textblock
34663 #: ../src/guestfs.pod:227
34664 msgid ""
34665 "Libguestfs can return errors in many situations: for example if the "
34666 "filesystem isn't writable, or if a file or directory that you requested "
34667 "doesn't exist.  If you are using the C API (documented here)  you have to "
34668 "check for those error conditions after each call.  (Other language bindings "
34669 "turn these errors into exceptions)."
34670 msgstr ""
34671
34672 #. type: textblock
34673 #: ../src/guestfs.pod:233
34674 msgid ""
34675 "File writes are affected by the per-handle umask, set by calling L</"
34676 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
34677 msgstr ""
34678
34679 #. type: =head2
34680 #: ../src/guestfs.pod:236
34681 msgid "PARTITIONING"
34682 msgstr ""
34683
34684 #. type: textblock
34685 #: ../src/guestfs.pod:238
34686 msgid ""
34687 "Libguestfs contains API calls to read, create and modify partition tables on "
34688 "disk images."
34689 msgstr ""
34690
34691 #. type: textblock
34692 #: ../src/guestfs.pod:241
34693 msgid ""
34694 "In the common case where you want to create a single partition covering the "
34695 "whole disk, you should use the L</guestfs_part_disk> call:"
34696 msgstr ""
34697
34698 #. type: verbatim
34699 #: ../src/guestfs.pod:245
34700 #, no-wrap
34701 msgid ""
34702 " const char *parttype = \"mbr\";\n"
34703 " if (disk_is_larger_than_2TB)\n"
34704 "   parttype = \"gpt\";\n"
34705 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34706 "\n"
34707 msgstr ""
34708
34709 #. type: textblock
34710 #: ../src/guestfs.pod:250
34711 msgid ""
34712 "Obviously this effectively wipes anything that was on that disk image before."
34713 msgstr ""
34714
34715 #. type: =head2
34716 #: ../src/guestfs.pod:253
34717 msgid "LVM2"
34718 msgstr ""
34719
34720 #. type: textblock
34721 #: ../src/guestfs.pod:255
34722 msgid ""
34723 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
34724 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
34725 "you familiarize yourself with the concepts of physical volumes, volume "
34726 "groups and logical volumes."
34727 msgstr ""
34728
34729 #. type: textblock
34730 #: ../src/guestfs.pod:260
34731 msgid ""
34732 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
34733 "tldp.org/HOWTO/LVM-HOWTO/>."
34734 msgstr ""
34735
34736 #. type: =head2
34737 #: ../src/guestfs.pod:263
34738 msgid "DOWNLOADING"
34739 msgstr ""
34740
34741 #. type: textblock
34742 #: ../src/guestfs.pod:265
34743 msgid ""
34744 "Use L</guestfs_cat> to download small, text only files.  This call is "
34745 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34746 "NUL (C<\\0>) characters.  However the API is very simple to use."
34747 msgstr ""
34748
34749 #. type: textblock
34750 #: ../src/guestfs.pod:269
34751 msgid ""
34752 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34753 "bit data, since it returns a (pointer, size) pair.  However it is still "
34754 "limited to \"small\" files, less than 2 MB."
34755 msgstr ""
34756
34757 #. type: textblock
34758 #: ../src/guestfs.pod:273
34759 msgid ""
34760 "L</guestfs_download> can be used to download any file, with no limits on "
34761 "content or size (even files larger than 4 GB)."
34762 msgstr ""
34763
34764 #. type: textblock
34765 #: ../src/guestfs.pod:276
34766 msgid ""
34767 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34768 msgstr ""
34769
34770 #. type: =head2
34771 #: ../src/guestfs.pod:279
34772 msgid "UPLOADING"
34773 msgstr ""
34774
34775 #. type: textblock
34776 #: ../src/guestfs.pod:281
34777 msgid ""
34778 "It's often the case that you want to write a file or files to the disk image."
34779 msgstr ""
34780
34781 #. type: textblock
34782 #: ../src/guestfs.pod:284
34783 msgid ""
34784 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34785 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
34786 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
34787 "of other functions for creating test files, for example L</guestfs_fill> and "
34788 "L</guestfs_fill_pattern>."
34789 msgstr ""
34790
34791 #. type: textblock
34792 #: ../src/guestfs.pod:290
34793 msgid ""
34794 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
34795 "file content or size (even files larger than 4 GB)."
34796 msgstr ""
34797
34798 #. type: textblock
34799 #: ../src/guestfs.pod:293
34800 msgid ""
34801 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34802 msgstr ""
34803
34804 #. type: textblock
34805 #: ../src/guestfs.pod:295
34806 msgid ""
34807 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34808 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
34809 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
34810 "in a predictable way (eg. adding it last after all other drives) then you "
34811 "can get the device name from L</guestfs_list_devices> and mount it directly "
34812 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
34813 "portable between kernel versions, and they don't support labels or UUIDs.  "
34814 "If you want to pre-build an image or you need to mount it using a label or "
34815 "UUID, use an ISO image instead."
34816 msgstr ""
34817
34818 #. type: =head2
34819 #: ../src/guestfs.pod:306
34820 msgid "COPYING"
34821 msgstr ""
34822
34823 #. type: textblock
34824 #: ../src/guestfs.pod:308
34825 msgid ""
34826 "There are various different commands for copying between files and devices "
34827 "and in and out of the guest filesystem.  These are summarised in the table "
34828 "below."
34829 msgstr ""
34830
34831 #. type: =item
34832 #: ../src/guestfs.pod:314
34833 msgid "B<file> to B<file>"
34834 msgstr ""
34835
34836 #. type: textblock
34837 #: ../src/guestfs.pod:316
34838 msgid ""
34839 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34840 "directories recursively."
34841 msgstr ""
34842
34843 #. type: textblock
34844 #: ../src/guestfs.pod:319
34845 msgid ""
34846 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
34847 msgstr ""
34848
34849 #. type: =item
34850 #: ../src/guestfs.pod:322
34851 msgid "B<file> to B<device>"
34852 msgstr ""
34853
34854 #. type: =item
34855 #: ../src/guestfs.pod:324
34856 msgid "B<device> to B<file>"
34857 msgstr ""
34858
34859 #. type: =item
34860 #: ../src/guestfs.pod:326
34861 msgid "B<device> to B<device>"
34862 msgstr ""
34863
34864 #. type: textblock
34865 #: ../src/guestfs.pod:328
34866 msgid ""
34867 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
34868 "guestfs_copy_device_to_device>."
34869 msgstr ""
34870
34871 #. type: textblock
34872 #: ../src/guestfs.pod:331
34873 msgid "Example: duplicate the contents of an LV:"
34874 msgstr ""
34875
34876 #. type: verbatim
34877 #: ../src/guestfs.pod:333
34878 #, no-wrap
34879 msgid ""
34880 " guestfs_copy_device_to_device (g,\n"
34881 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34882 "         /* -1 marks the end of the list of optional parameters */\n"
34883 "         -1);\n"
34884 "\n"
34885 msgstr ""
34886
34887 #. type: textblock
34888 #: ../src/guestfs.pod:338
34889 msgid ""
34890 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34891 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
34892 "optional C<size> parameter:"
34893 msgstr ""
34894
34895 #. type: verbatim
34896 #: ../src/guestfs.pod:342
34897 #, no-wrap
34898 msgid ""
34899 " guestfs_copy_device_to_device (g,\n"
34900 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34901 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
34902 "         -1);\n"
34903 "\n"
34904 msgstr ""
34905
34906 #. type: =item
34907 #: ../src/guestfs.pod:347
34908 msgid "B<file on the host> to B<file or device>"
34909 msgstr ""
34910
34911 #. type: textblock
34912 #: ../src/guestfs.pod:349
34913 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
34914 msgstr ""
34915
34916 #. type: =item
34917 #: ../src/guestfs.pod:351
34918 msgid "B<file or device> to B<file on the host>"
34919 msgstr ""
34920
34921 #. type: textblock
34922 #: ../src/guestfs.pod:353
34923 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
34924 msgstr ""
34925
34926 #. type: =head2
34927 #: ../src/guestfs.pod:357
34928 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34929 msgstr ""
34930
34931 #. type: textblock
34932 #: ../src/guestfs.pod:359
34933 msgid ""
34934 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
34935 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34936 "appears you can only upload and download to files.  However many Un*x-like "
34937 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
34938 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
34939 "and arbitrary file descriptor N."
34940 msgstr ""
34941
34942 #. type: textblock
34943 #: ../src/guestfs.pod:367
34944 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34945 msgstr ""
34946
34947 #. type: verbatim
34948 #: ../src/guestfs.pod:370
34949 #, no-wrap
34950 msgid ""
34951 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34952 "\n"
34953 msgstr ""
34954
34955 #. type: textblock
34956 #: ../src/guestfs.pod:372
34957 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34958 msgstr ""
34959
34960 #. type: verbatim
34961 #: ../src/guestfs.pod:374
34962 #, no-wrap
34963 msgid ""
34964 " char devfd[64];\n"
34965 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34966 " guestfs_tar_out (g, \"/\", devfd);\n"
34967 "\n"
34968 msgstr ""
34969
34970 #. type: =head2
34971 #: ../src/guestfs.pod:378
34972 msgid "LISTING FILES"
34973 msgstr ""
34974
34975 #. type: textblock
34976 #: ../src/guestfs.pod:380
34977 msgid ""
34978 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34979 "L<guestfish(1)>-equivalent command C<ll>)."
34980 msgstr ""
34981
34982 #. type: textblock
34983 #: ../src/guestfs.pod:383
34984 msgid ""
34985 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34986 "programs, as a flat list of strings."
34987 msgstr ""
34988
34989 #. type: textblock
34990 #: ../src/guestfs.pod:386
34991 msgid ""
34992 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34993 "directory, plus additional information about each one.  It is more "
34994 "equivalent to using the L<readdir(3)> call on a local filesystem."
34995 msgstr ""
34996
34997 #. type: textblock
34998 #: ../src/guestfs.pod:390
34999 msgid ""
35000 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
35001 msgstr ""
35002
35003 #. type: =head2
35004 #: ../src/guestfs.pod:393
35005 msgid "RUNNING COMMANDS"
35006 msgstr ""
35007
35008 #. type: textblock
35009 #: ../src/guestfs.pod:395
35010 msgid ""
35011 "Although libguestfs is primarily an API for manipulating files inside guest "
35012 "images, we also provide some limited facilities for running commands inside "
35013 "guests."
35014 msgstr ""
35015
35016 #. type: textblock
35017 #: ../src/guestfs.pod:399
35018 msgid "There are many limitations to this:"
35019 msgstr ""
35020
35021 #. type: textblock
35022 #: ../src/guestfs.pod:405
35023 msgid ""
35024 "The kernel version that the command runs under will be different from what "
35025 "it expects."
35026 msgstr ""
35027
35028 #. type: textblock
35029 #: ../src/guestfs.pod:410
35030 msgid ""
35031 "If the command needs to communicate with daemons, then most likely they "
35032 "won't be running."
35033 msgstr ""
35034
35035 #. type: textblock
35036 #: ../src/guestfs.pod:415
35037 msgid "The command will be running in limited memory."
35038 msgstr ""
35039
35040 #. type: textblock
35041 #: ../src/guestfs.pod:419
35042 msgid ""
35043 "The network may not be available unless you enable it (see L</"
35044 "guestfs_set_network>)."
35045 msgstr ""
35046
35047 #. type: textblock
35048 #: ../src/guestfs.pod:424
35049 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35050 msgstr ""
35051
35052 #. type: textblock
35053 #: ../src/guestfs.pod:428
35054 msgid ""
35055 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35056 msgstr ""
35057
35058 #. type: textblock
35059 #: ../src/guestfs.pod:433
35060 msgid ""
35061 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35062 "See L</SELINUX> in this manpage."
35063 msgstr ""
35064
35065 #. type: textblock
35066 #: ../src/guestfs.pod:438
35067 msgid ""
35068 "I<Security:> It is not safe to run commands from untrusted, possibly "
35069 "malicious guests.  These commands may attempt to exploit your program by "
35070 "sending unexpected output.  They could also try to exploit the Linux kernel "
35071 "or qemu provided by the libguestfs appliance.  They could use the network "
35072 "provided by the libguestfs appliance to bypass ordinary network partitions "
35073 "and firewalls.  They could use the elevated privileges or different SELinux "
35074 "context of your program to their advantage."
35075 msgstr ""
35076
35077 #. type: textblock
35078 #: ../src/guestfs.pod:447
35079 msgid ""
35080 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35081 "(a script which runs when the guest next boots normally), and to have this "
35082 "script run the commands you want in the normal context of the running guest, "
35083 "network security and so on.  For information about other security issues, "
35084 "see L</SECURITY>."
35085 msgstr ""
35086
35087 #. type: textblock
35088 #: ../src/guestfs.pod:455
35089 msgid ""
35090 "The two main API calls to run commands are L</guestfs_command> and L</"
35091 "guestfs_sh> (there are also variations)."
35092 msgstr ""
35093
35094 #. type: textblock
35095 #: ../src/guestfs.pod:458
35096 msgid ""
35097 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35098 "shell globs, redirections, etc will work."
35099 msgstr ""
35100
35101 #. type: =head2
35102 #: ../src/guestfs.pod:461
35103 msgid "CONFIGURATION FILES"
35104 msgstr ""
35105
35106 #. type: textblock
35107 #: ../src/guestfs.pod:463
35108 msgid ""
35109 "To read and write configuration files in Linux guest filesystems, we "
35110 "strongly recommend using Augeas.  For example, Augeas understands how to "
35111 "read and write, say, a Linux shadow password file or X.org configuration "
35112 "file, and so avoids you having to write that code."
35113 msgstr ""
35114
35115 #. type: textblock
35116 #: ../src/guestfs.pod:468
35117 msgid ""
35118 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35119 "document Augeas itself here because there is excellent documentation on the "
35120 "L<http://augeas.net/> website."
35121 msgstr ""
35122
35123 #. type: textblock
35124 #: ../src/guestfs.pod:472
35125 msgid ""
35126 "If you don't want to use Augeas (you fool!) then try calling L</"
35127 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35128 "over."
35129 msgstr ""
35130
35131 #. type: =head2
35132 #: ../src/guestfs.pod:476
35133 msgid "SELINUX"
35134 msgstr ""
35135
35136 #. type: textblock
35137 #: ../src/guestfs.pod:478
35138 msgid ""
35139 "We support SELinux guests.  To ensure that labeling happens correctly in "
35140 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35141 msgstr ""
35142
35143 #. type: textblock
35144 #: ../src/guestfs.pod:486
35145 msgid "Before launching, do:"
35146 msgstr ""
35147
35148 #. type: verbatim
35149 #: ../src/guestfs.pod:488
35150 #, no-wrap
35151 msgid ""
35152 " guestfs_set_selinux (g, 1);\n"
35153 "\n"
35154 msgstr ""
35155
35156 #. type: textblock
35157 #: ../src/guestfs.pod:492
35158 msgid ""
35159 "After mounting the guest's filesystem(s), load the policy.  This is best "
35160 "done by running the L<load_policy(8)> command in the guest itself:"
35161 msgstr ""
35162
35163 #. type: verbatim
35164 #: ../src/guestfs.pod:496
35165 #, no-wrap
35166 msgid ""
35167 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35168 "\n"
35169 msgstr ""
35170
35171 #. type: textblock
35172 #: ../src/guestfs.pod:498
35173 msgid ""
35174 "(Older versions of C<load_policy> require you to specify the name of the "
35175 "policy file)."
35176 msgstr ""
35177
35178 #. type: textblock
35179 #: ../src/guestfs.pod:503
35180 msgid ""
35181 "Optionally, set the security context for the API.  The correct security "
35182 "context to use can only be known by inspecting the guest.  As an example:"
35183 msgstr ""
35184
35185 #. type: verbatim
35186 #: ../src/guestfs.pod:507
35187 #, no-wrap
35188 msgid ""
35189 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35190 "\n"
35191 msgstr ""
35192
35193 #. type: textblock
35194 #: ../src/guestfs.pod:511
35195 msgid "This will work for running commands and editing existing files."
35196 msgstr ""
35197
35198 #. type: textblock
35199 #: ../src/guestfs.pod:513
35200 msgid ""
35201 "When new files are created, you may need to label them explicitly, for "
35202 "example by running the external command C<restorecon pathname>."
35203 msgstr ""
35204
35205 #. type: =head2
35206 #: ../src/guestfs.pod:517
35207 msgid "UMASK"
35208 msgstr ""
35209
35210 #. type: textblock
35211 #: ../src/guestfs.pod:519
35212 msgid ""
35213 "Certain calls are affected by the current file mode creation mask (the "
35214 "\"umask\").  In particular ones which create files or directories, such as "
35215 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35216 "either the default mode that the file is created with or modifies the mode "
35217 "that you supply."
35218 msgstr ""
35219
35220 #. type: textblock
35221 #: ../src/guestfs.pod:525
35222 msgid ""
35223 "The default umask is C<022>, so files are created with modes such as C<0644> "
35224 "and directories with C<0755>."
35225 msgstr ""
35226
35227 #. type: textblock
35228 #: ../src/guestfs.pod:528
35229 msgid ""
35230 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35231 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
35232 "guestfs_chmod> after creating each file or directory."
35233 msgstr ""
35234
35235 #. type: textblock
35236 #: ../src/guestfs.pod:532
35237 msgid "For more information about umask, see L<umask(2)>."
35238 msgstr ""
35239
35240 #. type: textblock
35241 #: ../src/guestfs.pod:536
35242 msgid ""
35243 "Libguestfs allows you to access Linux guests which have been encrypted using "
35244 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35245 "standard.  This includes nearly all whole disk encryption systems used by "
35246 "modern Linux guests."
35247 msgstr ""
35248
35249 #. type: textblock
35250 #: ../src/guestfs.pod:542
35251 msgid ""
35252 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35253 "returns the string C<crypto_LUKS>)."
35254 msgstr ""
35255
35256 #. type: textblock
35257 #: ../src/guestfs.pod:545
35258 msgid ""
35259 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35260 "will require the passphrase!"
35261 msgstr ""
35262
35263 #. type: textblock
35264 #: ../src/guestfs.pod:548
35265 msgid ""
35266 "Opening a LUKS device creates a new device mapper device called C</dev/"
35267 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35268 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
35269 "from and encrypted to the underlying block device respectively."
35270 msgstr ""
35271
35272 #. type: textblock
35273 #: ../src/guestfs.pod:554
35274 msgid ""
35275 "LVM volume groups on the device can be made visible by calling L</"
35276 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
35277 "(s) can now be mounted in the usual way."
35278 msgstr ""
35279
35280 #. type: textblock
35281 #: ../src/guestfs.pod:558
35282 msgid ""
35283 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35284 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35285 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
35286 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35287 "underlying encrypted block device)."
35288 msgstr ""
35289
35290 #. type: =head2
35291 #: ../src/guestfs.pod:565
35292 msgid "INSPECTION"
35293 msgstr ""
35294
35295 #. type: textblock
35296 #: ../src/guestfs.pod:567
35297 msgid ""
35298 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35299 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35300 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35301 "version 1.5.3 the most frequently used part of this library has been "
35302 "rewritten in C and moved into the core code)."
35303 msgstr ""
35304
35305 #. type: textblock
35306 #: ../src/guestfs.pod:574
35307 msgid ""
35308 "Add all disks belonging to the unknown virtual machine and call L</"
35309 "guestfs_launch> in the usual way."
35310 msgstr ""
35311
35312 #. type: textblock
35313 #: ../src/guestfs.pod:577
35314 msgid ""
35315 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35316 "and certain heuristics, and returns a list of operating systems that were "
35317 "found.  An empty list means none were found.  A single element is the root "
35318 "filesystem of the operating system.  For dual- or multi-boot guests, "
35319 "multiple roots can be returned, each one corresponding to a separate "
35320 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35321 "world of virtualization, but since this scenario can happen, we have built "
35322 "libguestfs to deal with it.)"
35323 msgstr ""
35324
35325 #. type: textblock
35326 #: ../src/guestfs.pod:586
35327 msgid ""
35328 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35329 "to get additional details about that operating system.  For example, call L</"
35330 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35331 "Windows and Linux-based operating systems respectively."
35332 msgstr ""
35333
35334 #. type: textblock
35335 #: ../src/guestfs.pod:592
35336 msgid ""
35337 "Un*x-like and Linux-based operating systems usually consist of several "
35338 "filesystems which are mounted at boot time (for example, a separate boot "
35339 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35340 "filesystems correspond to mount points.  Call "
35341 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35342 "hash table like this example:"
35343 msgstr ""
35344
35345 #. type: verbatim
35346 #: ../src/guestfs.pod:599
35347 #, no-wrap
35348 msgid ""
35349 " /boot => /dev/sda1\n"
35350 " /     => /dev/vg_guest/lv_root\n"
35351 " /usr  => /dev/vg_guest/lv_usr\n"
35352 "\n"
35353 msgstr ""
35354
35355 #. type: textblock
35356 #: ../src/guestfs.pod:603
35357 msgid ""
35358 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35359 "filesystems as suggested."
35360 msgstr ""
35361
35362 #. type: textblock
35363 #: ../src/guestfs.pod:606
35364 msgid ""
35365 "Be careful to mount filesystems in the right order (eg. C</> before C</"
35366 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
35367 msgstr ""
35368
35369 #. type: textblock
35370 #: ../src/guestfs.pod:610
35371 msgid ""
35372 "Inspection currently only works for some common operating systems.  "
35373 "Contributors are welcome to send patches for other operating systems that we "
35374 "currently cannot detect."
35375 msgstr ""
35376
35377 #. type: textblock
35378 #: ../src/guestfs.pod:614
35379 msgid ""
35380 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35381 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35382 "encrypted devices."
35383 msgstr ""
35384
35385 #. type: textblock
35386 #: ../src/guestfs.pod:618
35387 msgid ""
35388 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35389 "inspection and caches the results in the guest handle.  Subsequent calls to "
35390 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35391 "read the disks.  If you change the content of the guest disks, you can redo "
35392 "inspection by calling L</guestfs_inspect_os> again.  (L</"
35393 "guestfs_inspect_list_applications> works a little differently from the other "
35394 "calls and does read the disks.  See documentation for that function for "
35395 "details)."
35396 msgstr ""
35397
35398 #. type: =head3
35399 #: ../src/guestfs.pod:627
35400 msgid "INSPECTING INSTALL DISKS"
35401 msgstr ""
35402
35403 #. type: textblock
35404 #: ../src/guestfs.pod:629
35405 msgid ""
35406 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35407 "CDs and more."
35408 msgstr ""
35409
35410 #. type: textblock
35411 #: ../src/guestfs.pod:632
35412 msgid ""
35413 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35414 "system, which currently can be C<installed> (a regular operating system) or "
35415 "C<installer> (some sort of install disk)."
35416 msgstr ""
35417
35418 #. type: textblock
35419 #: ../src/guestfs.pod:636
35420 msgid ""
35421 "Further information is available about the operating system that can be "
35422 "installed using the regular inspection APIs like L</"
35423 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
35424 msgstr ""
35425
35426 #. type: textblock
35427 #: ../src/guestfs.pod:641
35428 msgid ""
35429 "Some additional information specific to installer disks is also available "
35430 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
35431 "guestfs_inspect_is_multipart> calls."
35432 msgstr ""
35433
35434 #. type: =head2
35435 #: ../src/guestfs.pod:646
35436 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35437 msgstr ""
35438
35439 #. type: textblock
35440 #: ../src/guestfs.pod:648
35441 msgid ""
35442 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
35443 "ntfs-3g.org/> driver."
35444 msgstr ""
35445
35446 #. type: =head3
35447 #: ../src/guestfs.pod:651
35448 msgid "DRIVE LETTERS AND PATHS"
35449 msgstr ""
35450
35451 #. type: textblock
35452 #: ../src/guestfs.pod:653
35453 msgid ""
35454 "DOS and Windows still use drive letters, and the filesystems are always "
35455 "treated as case insensitive by Windows itself, and therefore you might find "
35456 "a Windows configuration file referring to a path like C<c:\\windows"
35457 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
35458 "might be referred to as C</WINDOWS/System32>."
35459 msgstr ""
35460
35461 #. type: textblock
35462 #: ../src/guestfs.pod:659
35463 msgid ""
35464 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35465 "L</guestfs_inspect_get_drive_mappings>)"
35466 msgstr ""
35467
35468 #. type: textblock
35469 #: ../src/guestfs.pod:662
35470 msgid ""
35471 "Dealing with separator characters (backslash vs forward slash) is outside "
35472 "the scope of libguestfs, but usually a simple character replacement will "
35473 "work."
35474 msgstr ""
35475
35476 #. type: textblock
35477 #: ../src/guestfs.pod:666
35478 msgid ""
35479 "To resolve the case insensitivity of paths, call L</"
35480 "guestfs_case_sensitive_path>."
35481 msgstr ""
35482
35483 #. type: =head3
35484 #: ../src/guestfs.pod:669
35485 msgid "ACCESSING THE WINDOWS REGISTRY"
35486 msgstr ""
35487
35488 #. type: textblock
35489 #: ../src/guestfs.pod:671
35490 msgid ""
35491 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35492 "files, through the library C<hivex> which is part of the libguestfs project "
35493 "although ships as a separate tarball.  You have to locate and download the "
35494 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35495 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
35496 "reg(1)> for more help on this issue."
35497 msgstr ""
35498
35499 #. type: =head3
35500 #: ../src/guestfs.pod:679
35501 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35502 msgstr ""
35503
35504 #. type: textblock
35505 #: ../src/guestfs.pod:681
35506 msgid ""
35507 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35508 "provide something which looks like a Linux symlink.  The way it tries to do "
35509 "the rewriting is described here:"
35510 msgstr ""
35511
35512 #. type: textblock
35513 #: ../src/guestfs.pod:685
35514 msgid ""
35515 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35516 "symbolic-links/>"
35517 msgstr ""
35518
35519 #. type: textblock
35520 #: ../src/guestfs.pod:687
35521 msgid ""
35522 "The essential problem is that ntfs-3g simply does not have enough "
35523 "information to do a correct job.  NTFS links can contain drive letters and "
35524 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35525 "It is almost certainly the case that libguestfs callers should ignore what "
35526 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35527 msgstr ""
35528
35529 #. type: textblock
35530 #: ../src/guestfs.pod:694
35531 msgid ""
35532 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
35533 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35534 "attribute, and read the raw reparse data from that (you can find the format "
35535 "documented in various places around the web)."
35536 msgstr ""
35537
35538 #. type: =head3
35539 #: ../src/guestfs.pod:699
35540 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35541 msgstr ""
35542
35543 #. type: textblock
35544 #: ../src/guestfs.pod:701
35545 msgid ""
35546 "There are other useful extended attributes that can be read from ntfs-3g "
35547 "filesystems (using L</guestfs_getxattr>).  See:"
35548 msgstr ""
35549
35550 #. type: textblock
35551 #: ../src/guestfs.pod:704
35552 msgid ""
35553 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35554 msgstr ""
35555
35556 #. type: =head2
35557 #: ../src/guestfs.pod:706
35558 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35559 msgstr ""
35560
35561 #. type: textblock
35562 #: ../src/guestfs.pod:708
35563 msgid ""
35564 "Although we don't want to discourage you from using the C API, we will "
35565 "mention here that the same API is also available in other languages."
35566 msgstr ""
35567
35568 #. type: textblock
35569 #: ../src/guestfs.pod:711
35570 msgid ""
35571 "The API is broadly identical in all supported languages.  This means that "
35572 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35573 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35574 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35575 "each language."
35576 msgstr ""
35577
35578 #. type: textblock
35579 #: ../src/guestfs.pod:717
35580 msgid ""
35581 "Error messages are automatically transformed into exceptions if the language "
35582 "supports it."
35583 msgstr ""
35584
35585 #. type: textblock
35586 #: ../src/guestfs.pod:720
35587 msgid ""
35588 "We don't try to \"object orientify\" parts of the API in OO languages, "
35589 "although contributors are welcome to write higher level APIs above what we "
35590 "provide in their favourite languages if they wish."
35591 msgstr ""
35592
35593 #. type: =item
35594 #: ../src/guestfs.pod:726
35595 msgid "B<C++>"
35596 msgstr ""
35597
35598 #. type: textblock
35599 #: ../src/guestfs.pod:728
35600 msgid ""
35601 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
35602 "identical to the C API.  C++ classes and exceptions are not used."
35603 msgstr ""
35604
35605 #. type: =item
35606 #: ../src/guestfs.pod:732
35607 msgid "B<C#>"
35608 msgstr ""
35609
35610 #. type: textblock
35611 #: ../src/guestfs.pod:734
35612 msgid ""
35613 "The C# bindings are highly experimental.  Please read the warnings at the "
35614 "top of C<csharp/Libguestfs.cs>."
35615 msgstr ""
35616
35617 #. type: =item
35618 #: ../src/guestfs.pod:737
35619 msgid "B<Erlang>"
35620 msgstr ""
35621
35622 #. type: textblock
35623 #: ../src/guestfs.pod:739
35624 msgid "See L<guestfs-erlang(3)>."
35625 msgstr ""
35626
35627 #. type: =item
35628 #: ../src/guestfs.pod:741
35629 msgid "B<Haskell>"
35630 msgstr ""
35631
35632 #. type: textblock
35633 #: ../src/guestfs.pod:743
35634 msgid ""
35635 "This is the only language binding that is working but incomplete.  Only "
35636 "calls which return simple integers have been bound in Haskell, and we are "
35637 "looking for help to complete this binding."
35638 msgstr ""
35639
35640 #. type: =item
35641 #: ../src/guestfs.pod:747
35642 msgid "B<Java>"
35643 msgstr ""
35644
35645 #. type: textblock
35646 #: ../src/guestfs.pod:749
35647 msgid ""
35648 "Full documentation is contained in the Javadoc which is distributed with "
35649 "libguestfs.  For examples, see L<guestfs-java(3)>."
35650 msgstr ""
35651
35652 #. type: =item
35653 #: ../src/guestfs.pod:752
35654 msgid "B<OCaml>"
35655 msgstr ""
35656
35657 #. type: textblock
35658 #: ../src/guestfs.pod:754
35659 msgid "See L<guestfs-ocaml(3)>."
35660 msgstr ""
35661
35662 #. type: =item
35663 #: ../src/guestfs.pod:756
35664 msgid "B<Perl>"
35665 msgstr ""
35666
35667 #. type: textblock
35668 #: ../src/guestfs.pod:758
35669 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35670 msgstr ""
35671
35672 #. type: =item
35673 #: ../src/guestfs.pod:760
35674 msgid "B<PHP>"
35675 msgstr ""
35676
35677 #. type: textblock
35678 #: ../src/guestfs.pod:762
35679 msgid ""
35680 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35681 "the php-libguestfs package for your distribution."
35682 msgstr ""
35683
35684 #. type: textblock
35685 #: ../src/guestfs.pod:765
35686 msgid "The PHP binding only works correctly on 64 bit machines."
35687 msgstr ""
35688
35689 #. type: =item
35690 #: ../src/guestfs.pod:767
35691 msgid "B<Python>"
35692 msgstr ""
35693
35694 #. type: textblock
35695 #: ../src/guestfs.pod:769
35696 msgid "See L<guestfs-python(3)>."
35697 msgstr ""
35698
35699 #. type: =item
35700 #: ../src/guestfs.pod:771
35701 msgid "B<Ruby>"
35702 msgstr ""
35703
35704 #. type: textblock
35705 #: ../src/guestfs.pod:773
35706 msgid "See L<guestfs-ruby(3)>."
35707 msgstr ""
35708
35709 #. type: =item
35710 #: ../src/guestfs.pod:775
35711 msgid "B<shell scripts>"
35712 msgstr ""
35713
35714 #. type: textblock
35715 #: ../src/guestfs.pod:777
35716 msgid "See L<guestfish(1)>."
35717 msgstr ""
35718
35719 #. type: =head2
35720 #: ../src/guestfs.pod:781
35721 msgid "LIBGUESTFS GOTCHAS"
35722 msgstr ""
35723
35724 #. type: textblock
35725 #: ../src/guestfs.pod:783
35726 msgid ""
35727 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35728 "system [...] that works in the way it is documented but is counterintuitive "
35729 "and almost invites mistakes.\""
35730 msgstr ""
35731
35732 #. type: textblock
35733 #: ../src/guestfs.pod:787
35734 msgid ""
35735 "Since we developed libguestfs and the associated tools, there are several "
35736 "things we would have designed differently, but are now stuck with for "
35737 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
35738 "release, you can expect these to change.  Beware of them."
35739 msgstr ""
35740
35741 #. type: =item
35742 #: ../src/guestfs.pod:795
35743 msgid "Autosync / forgetting to sync."
35744 msgstr ""
35745
35746 #. type: textblock
35747 #: ../src/guestfs.pod:797
35748 msgid ""
35749 "I<Update:> Autosync is enabled by default for all API users starting from "
35750 "libguestfs 1.5.24.  This section only applies to older versions."
35751 msgstr ""
35752
35753 #. type: textblock
35754 #: ../src/guestfs.pod:800
35755 msgid ""
35756 "When modifying a filesystem from C or another language, you B<must> unmount "
35757 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35758 "libguestfs handle.  You can also call:"
35759 msgstr ""
35760
35761 #. type: verbatim
35762 #: ../src/guestfs.pod:804
35763 #, no-wrap
35764 msgid ""
35765 " guestfs_set_autosync (g, 1);\n"
35766 "\n"
35767 msgstr ""
35768
35769 #. type: textblock
35770 #: ../src/guestfs.pod:806
35771 msgid ""
35772 "to have the unmount/sync done automatically for you when the handle 'g' is "
35773 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
35774 msgstr ""
35775
35776 #. type: textblock
35777 #: ../src/guestfs.pod:810
35778 msgid ""
35779 "If you forget to do this, then it is entirely possible that your changes "
35780 "won't be written out, or will be partially written, or (very rarely) that "
35781 "you'll get disk corruption."
35782 msgstr ""
35783
35784 #. type: textblock
35785 #: ../src/guestfs.pod:814
35786 msgid ""
35787 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
35788 "guestfish scripts that forget to sync will work just fine, which can make "
35789 "this very puzzling if you are trying to debug a problem."
35790 msgstr ""
35791
35792 #. type: =item
35793 #: ../src/guestfs.pod:818
35794 msgid "Mount option C<-o sync> should not be the default."
35795 msgstr ""
35796
35797 #. type: textblock
35798 #: ../src/guestfs.pod:820
35799 msgid ""
35800 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35801 "libguestfs 1.13.16.  This section only applies to older versions."
35802 msgstr ""
35803
35804 #. type: textblock
35805 #: ../src/guestfs.pod:823
35806 msgid ""
35807 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
35808 "However C<-o sync> does not add any reliability benefit, but does have a "
35809 "very large performance impact."
35810 msgstr ""
35811
35812 #. type: textblock
35813 #: ../src/guestfs.pod:827
35814 msgid ""
35815 "The work around is to use L</guestfs_mount_options> and set the mount "
35816 "options that you actually want to use."
35817 msgstr ""
35818
35819 #. type: =item
35820 #: ../src/guestfs.pod:830
35821 msgid "Read-only should be the default."
35822 msgstr ""
35823
35824 #. type: textblock
35825 #: ../src/guestfs.pod:832
35826 msgid ""
35827 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35828 "specify I<--rw> if you want to make changes to the image."
35829 msgstr ""
35830
35831 #. type: textblock
35832 #: ../src/guestfs.pod:835
35833 msgid "This would reduce the potential to corrupt live VM images."
35834 msgstr ""
35835
35836 #. type: textblock
35837 #: ../src/guestfs.pod:837
35838 msgid ""
35839 "Note that many filesystems change the disk when you just mount and unmount, "
35840 "even if you didn't perform any writes.  You need to use L</"
35841 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
35842 msgstr ""
35843
35844 #. type: =item
35845 #: ../src/guestfs.pod:841
35846 msgid "guestfish command line is hard to use."
35847 msgstr ""
35848
35849 #. type: textblock
35850 #: ../src/guestfs.pod:843
35851 msgid ""
35852 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35853 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
35854 "exist, so it fails.  In earlier versions of guestfish the error message was "
35855 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
35856 "we should have used C<guestfish -c command> to run commands."
35857 msgstr ""
35858
35859 #. type: =item
35860 #: ../src/guestfs.pod:850
35861 msgid "guestfish megabyte modifiers don't work right on all commands"
35862 msgstr ""
35863
35864 #. type: textblock
35865 #: ../src/guestfs.pod:852
35866 msgid ""
35867 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35868 "other modifiers).  What guestfish actually does is to multiply the number "
35869 "part by the modifier part and pass the result to the C API.  However this "
35870 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35871 "expecting some other unit (eg. megabytes)."
35872 msgstr ""
35873
35874 #. type: textblock
35875 #: ../src/guestfs.pod:859
35876 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35877 msgstr ""
35878
35879 #. type: verbatim
35880 #: ../src/guestfs.pod:861
35881 #, no-wrap
35882 msgid ""
35883 " lvcreate LV VG 100M\n"
35884 "\n"
35885 msgstr ""
35886
35887 #. type: textblock
35888 #: ../src/guestfs.pod:863
35889 msgid ""
35890 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
35891 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35892 "megabytes * megabytes) logical volume.  The error message you get from this "
35893 "is also a little obscure."
35894 msgstr ""
35895
35896 #. type: textblock
35897 #: ../src/guestfs.pod:868
35898 msgid ""
35899 "This could be fixed in the generator by specially marking parameters and "
35900 "return values which take bytes or other units."
35901 msgstr ""
35902
35903 #. type: =item
35904 #: ../src/guestfs.pod:871
35905 msgid "Ambiguity between devices and paths"
35906 msgstr ""
35907
35908 #. type: textblock
35909 #: ../src/guestfs.pod:873
35910 msgid ""
35911 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
35912 "sdb2>) and a similar pathname.  A file might just happen to be called "
35913 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35914 msgstr ""
35915
35916 #. type: textblock
35917 #: ../src/guestfs.pod:878
35918 msgid ""
35919 "In the current API we usually resolve this ambiguity by having two separate "
35920 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
35921 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35922 "detecting if the path supplied begins with C</dev/>."
35923 msgstr ""
35924
35925 #. type: textblock
35926 #: ../src/guestfs.pod:884
35927 msgid ""
35928 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35929 "make paths/devices into structured names.  One way to do this would be to "
35930 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35931 "aspect of grub.  Another way would be to use a structured type, equivalent "
35932 "to this OCaml type:"
35933 msgstr ""
35934
35935 #. type: verbatim
35936 #: ../src/guestfs.pod:890
35937 #, no-wrap
35938 msgid ""
35939 " type path = Path of string | Device of int | Partition of int * int\n"
35940 "\n"
35941 msgstr ""
35942
35943 #. type: textblock
35944 #: ../src/guestfs.pod:892
35945 msgid "which would allow you to pass arguments like:"
35946 msgstr ""
35947
35948 #. type: verbatim
35949 #: ../src/guestfs.pod:894
35950 #, no-wrap
35951 msgid ""
35952 " Path \"/foo/bar\"\n"
35953 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35954 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35955 " Path \"/dev/sdb2\"    (* not a device *)\n"
35956 "\n"
35957 msgstr ""
35958
35959 #. type: textblock
35960 #: ../src/guestfs.pod:899
35961 msgid ""
35962 "As you can see there are still problems to resolve even with this "
35963 "representation.  Also consider how it might work in guestfish."
35964 msgstr ""
35965
35966 #. type: =head2
35967 #: ../src/guestfs.pod:904
35968 msgid "KEYS AND PASSPHRASES"
35969 msgstr ""
35970
35971 #. type: textblock
35972 #: ../src/guestfs.pod:906
35973 msgid ""
35974 "Certain libguestfs calls take a parameter that contains sensitive key "
35975 "material, passed in as a C string."
35976 msgstr ""
35977
35978 #. type: textblock
35979 #: ../src/guestfs.pod:909
35980 msgid ""
35981 "In the future we would hope to change the libguestfs implementation so that "
35982 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35983 "swap.  However this is I<not> done at the moment, because of the complexity "
35984 "of such an implementation."
35985 msgstr ""
35986
35987 #. type: textblock
35988 #: ../src/guestfs.pod:914
35989 msgid ""
35990 "Therefore you should be aware that any key parameter you pass to libguestfs "
35991 "might end up being written out to the swap partition.  If this is a concern, "
35992 "scrub the swap partition or don't use libguestfs on encrypted devices."
35993 msgstr ""
35994
35995 #. type: =head2
35996 #: ../src/guestfs.pod:919
35997 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35998 msgstr ""
35999
36000 #. type: textblock
36001 #: ../src/guestfs.pod:921
36002 msgid ""
36003 "All high-level libguestfs actions are synchronous.  If you want to use "
36004 "libguestfs asynchronously then you must create a thread."
36005 msgstr ""
36006
36007 #. type: textblock
36008 #: ../src/guestfs.pod:924
36009 msgid ""
36010 "Only use the handle from a single thread.  Either use the handle exclusively "
36011 "from one thread, or provide your own mutex so that two threads cannot issue "
36012 "calls on the same handle at the same time."
36013 msgstr ""
36014
36015 #. type: textblock
36016 #: ../src/guestfs.pod:928
36017 msgid ""
36018 "See the graphical program guestfs-browser for one possible architecture for "
36019 "multithreaded programs using libvirt and libguestfs."
36020 msgstr ""
36021
36022 #. type: =head2
36023 #: ../src/guestfs.pod:931
36024 msgid "PATH"
36025 msgstr ""
36026
36027 #. type: textblock
36028 #: ../src/guestfs.pod:933
36029 msgid ""
36030 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36031 "internal path."
36032 msgstr ""
36033
36034 #. type: textblock
36035 #: ../src/guestfs.pod:936
36036 msgid ""
36037 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36038 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36039 msgstr ""
36040
36041 #. type: textblock
36042 #: ../src/guestfs.pod:939
36043 msgid ""
36044 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36045 "to change the directories that libguestfs will search in.  The value is a "
36046 "colon-separated list of paths.  The current directory is I<not> searched "
36047 "unless the path contains an empty element or C<.>.  For example "
36048 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36049 "then C</usr/lib/guestfs>."
36050 msgstr ""
36051
36052 #. type: =head2
36053 #: ../src/guestfs.pod:946
36054 msgid "QEMU WRAPPERS"
36055 msgstr ""
36056
36057 #. type: textblock
36058 #: ../src/guestfs.pod:948
36059 msgid ""
36060 "If you want to compile your own qemu, run qemu from a non-standard location, "
36061 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36062 "around qemu."
36063 msgstr ""
36064
36065 #. type: textblock
36066 #: ../src/guestfs.pod:952
36067 msgid ""
36068 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36069 "last command in the shell script (so that qemu replaces the shell and "
36070 "becomes the direct child of the libguestfs-using program).  If you don't do "
36071 "this, then the qemu process won't be cleaned up correctly."
36072 msgstr ""
36073
36074 #. type: textblock
36075 #: ../src/guestfs.pod:957
36076 msgid ""
36077 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36078 "source:"
36079 msgstr ""
36080
36081 #. type: verbatim
36082 #: ../src/guestfs.pod:960
36083 #, no-wrap
36084 msgid ""
36085 " #!/bin/sh -\n"
36086 " qemudir=/home/rjones/d/qemu\n"
36087 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36088 "\n"
36089 msgstr ""
36090
36091 #. type: textblock
36092 #: ../src/guestfs.pod:964
36093 msgid ""
36094 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36095 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36096 "example:"
36097 msgstr ""
36098
36099 #. type: verbatim
36100 #: ../src/guestfs.pod:968
36101 #, no-wrap
36102 msgid ""
36103 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36104 "\n"
36105 msgstr ""
36106
36107 #. type: textblock
36108 #: ../src/guestfs.pod:970
36109 msgid ""
36110 "Note that libguestfs also calls qemu with the -help and -version options in "
36111 "order to determine features."
36112 msgstr ""
36113
36114 #. type: textblock
36115 #: ../src/guestfs.pod:973
36116 msgid ""
36117 "Wrappers can also be used to edit the options passed to qemu.  In the "
36118 "following example, the C<-machine ...> option (C<-machine> and the following "
36119 "argument) are removed from the command line and replaced with C<-machine pc,"
36120 "accel=tcg>.  The while loop iterates over the options until it finds the "
36121 "right one to remove, putting the remaining options into the C<args> array."
36122 msgstr ""
36123
36124 #. type: verbatim
36125 #: ../src/guestfs.pod:982
36126 #, no-wrap
36127 msgid ""
36128 " i=0\n"
36129 " while [ $# -gt 0 ]; do\n"
36130 "     case \"$1\" in\n"
36131 "     -machine)\n"
36132 "         shift 2;;\n"
36133 "     *)\n"
36134 "         args[i]=\"$1\"\n"
36135 "         (( i++ ))\n"
36136 "         shift ;;\n"
36137 "     esac\n"
36138 " done\n"
36139 " \n"
36140 msgstr ""
36141
36142 #. type: verbatim
36143 #: ../src/guestfs.pod:994
36144 #, no-wrap
36145 msgid ""
36146 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36147 "\n"
36148 msgstr ""
36149
36150 #. type: =head2
36151 #: ../src/guestfs.pod:996
36152 msgid "ATTACHING TO RUNNING DAEMONS"
36153 msgstr ""
36154
36155 #. type: textblock
36156 #: ../src/guestfs.pod:998
36157 msgid ""
36158 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36159 "babies.  Use with caution."
36160 msgstr ""
36161
36162 #. type: textblock
36163 #: ../src/guestfs.pod:1001
36164 msgid ""
36165 "I<Note (2):> This section explains how to attach to a running daemon from a "
36166 "low level perspective.  For most users, simply using virt tools such as "
36167 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36168 msgstr ""
36169
36170 #. type: =head3
36171 #: ../src/guestfs.pod:1005
36172 msgid "Using guestfs_set_attach_method"
36173 msgstr ""
36174
36175 #. type: textblock
36176 #: ../src/guestfs.pod:1007
36177 msgid ""
36178 "By calling L</guestfs_set_attach_method> you can change how the library "
36179 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36180 "ARCHITECTURE> for some background)."
36181 msgstr ""
36182
36183 #. type: textblock
36184 #: ../src/guestfs.pod:1011
36185 msgid ""
36186 "The normal attach method is C<appliance>, where a small appliance is created "
36187 "containing the daemon, and then the library connects to this."
36188 msgstr ""
36189
36190 #. type: textblock
36191 #: ../src/guestfs.pod:1014
36192 msgid ""
36193 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36194 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36195 "daemon over the Unix domain socket."
36196 msgstr ""
36197
36198 #. type: textblock
36199 #: ../src/guestfs.pod:1018
36200 msgid ""
36201 "The normal use for this is to connect to a running virtual machine that "
36202 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36203 "files inside the live virtual machine."
36204 msgstr ""
36205
36206 #. type: =head3
36207 #: ../src/guestfs.pod:1022
36208 msgid "Using guestfs_add_domain with live flag"
36209 msgstr ""
36210
36211 #. type: textblock
36212 #: ../src/guestfs.pod:1024
36213 msgid ""
36214 "L</guestfs_add_domain> provides some help for getting the correct attach "
36215 "method.  If you pass the C<live> option to this function, then (if the "
36216 "virtual machine is running) it will examine the libvirt XML looking for a "
36217 "virtio-serial channel to connect to:"
36218 msgstr ""
36219
36220 #. type: verbatim
36221 #: ../src/guestfs.pod:1030
36222 #, no-wrap
36223 msgid ""
36224 " <domain>\n"
36225 "   ...\n"
36226 "   <devices>\n"
36227 "     ...\n"
36228 "     <channel type='unix'>\n"
36229 "       <source mode='bind' path='/path/to/socket'/>\n"
36230 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36231 "     </channel>\n"
36232 "     ...\n"
36233 "   </devices>\n"
36234 " </domain>\n"
36235 "\n"
36236 msgstr ""
36237
36238 #. type: textblock
36239 #: ../src/guestfs.pod:1042
36240 msgid ""
36241 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36242 "method to C<unix:/path/to/socket>."
36243 msgstr ""
36244
36245 #. type: textblock
36246 #: ../src/guestfs.pod:1045
36247 msgid ""
36248 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36249 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36250 "to attach to and modify live virtual machines."
36251 msgstr ""
36252
36253 #. type: textblock
36254 #: ../src/guestfs.pod:1049
36255 msgid ""
36256 "The virtual machine needs to have been set up beforehand so that it has the "
36257 "virtio-serial channel and so that guestfsd is running inside it."
36258 msgstr ""
36259
36260 #. type: =head2
36261 #: ../src/guestfs.pod:1053
36262 msgid "ABI GUARANTEE"
36263 msgstr ""
36264
36265 #. type: textblock
36266 #: ../src/guestfs.pod:1055
36267 msgid ""
36268 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36269 "actions as outlined in this section.  Although we will deprecate some "
36270 "actions, for example if they get replaced by newer calls, we will keep the "
36271 "old actions forever.  This allows you the developer to program in confidence "
36272 "against the libguestfs API."
36273 msgstr ""
36274
36275 #. type: =head2
36276 #: ../src/guestfs.pod:1061
36277 msgid "BLOCK DEVICE NAMING"
36278 msgstr ""
36279
36280 #. type: textblock
36281 #: ../src/guestfs.pod:1063
36282 msgid ""
36283 "In the kernel there is now quite a profusion of schemata for naming block "
36284 "devices (in this context, by I<block device> I mean a physical or virtual "
36285 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
36286 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
36287 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
36288 "for the old IDE driver (particularly for SATA devices) those devices also "
36289 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
36290 "paravirtualized drivers.  This has created several different naming systems, "
36291 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36292 msgstr ""
36293
36294 #. type: textblock
36295 #: ../src/guestfs.pod:1075
36296 msgid ""
36297 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36298 "Linux kernel to access block devices.  We can run a variety of appliances "
36299 "based on a variety of Linux kernels."
36300 msgstr ""
36301
36302 #. type: textblock
36303 #: ../src/guestfs.pod:1079
36304 msgid ""
36305 "This causes a problem for libguestfs because many API calls use device or "
36306 "partition names.  Working scripts and the recipe (example) scripts that we "
36307 "make available over the internet could fail if the naming scheme changes."
36308 msgstr ""
36309
36310 #. type: textblock
36311 #: ../src/guestfs.pod:1084
36312 msgid ""
36313 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36314 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36315 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36316 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36317 msgstr ""
36318
36319 #. type: textblock
36320 #: ../src/guestfs.pod:1090
36321 msgid ""
36322 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36323 "L</guestfs_list_partitions> and similar calls return the true names of the "
36324 "devices and partitions as known to the appliance."
36325 msgstr ""
36326
36327 #. type: =head3
36328 #: ../src/guestfs.pod:1095
36329 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36330 msgstr ""
36331
36332 #. type: textblock
36333 #: ../src/guestfs.pod:1097
36334 msgid ""
36335 "Usually this translation is transparent.  However in some (very rare)  cases "
36336 "you may need to know the exact algorithm.  Such cases include where you use "
36337 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36338 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36339 msgstr ""
36340
36341 #. type: textblock
36342 #: ../src/guestfs.pod:1103
36343 msgid ""
36344 "The algorithm is applied only to I<parameters> which are known to be either "
36345 "device or partition names.  Return values from functions such as L</"
36346 "guestfs_list_devices> are never changed."
36347 msgstr ""
36348
36349 #. type: textblock
36350 #: ../src/guestfs.pod:1111
36351 msgid "Is the string a parameter which is a device or partition name?"
36352 msgstr ""
36353
36354 #. type: textblock
36355 #: ../src/guestfs.pod:1115
36356 msgid "Does the string begin with C</dev/sd>?"
36357 msgstr ""
36358
36359 #. type: textblock
36360 #: ../src/guestfs.pod:1119
36361 msgid ""
36362 "Does the named device exist? If so, we use that device.  However if I<not> "
36363 "then we continue with this algorithm."
36364 msgstr ""
36365
36366 #. type: textblock
36367 #: ../src/guestfs.pod:1124
36368 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36369 msgstr ""
36370
36371 #. type: textblock
36372 #: ../src/guestfs.pod:1126
36373 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36374 msgstr ""
36375
36376 #. type: textblock
36377 #: ../src/guestfs.pod:1128
36378 msgid "If that named device exists, use it.  If not, continue."
36379 msgstr ""
36380
36381 #. type: textblock
36382 #: ../src/guestfs.pod:1132
36383 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36384 msgstr ""
36385
36386 #. type: textblock
36387 #: ../src/guestfs.pod:1134
36388 msgid "If that named device exists, use it.  If not, return an error."
36389 msgstr ""
36390
36391 #. type: =head3
36392 #: ../src/guestfs.pod:1138
36393 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36394 msgstr ""
36395
36396 #. type: textblock
36397 #: ../src/guestfs.pod:1140
36398 msgid ""
36399 "Although the standard naming scheme and automatic translation is useful for "
36400 "simple programs and guestfish scripts, for larger programs it is best not to "
36401 "rely on this mechanism."
36402 msgstr ""
36403
36404 #. type: textblock
36405 #: ../src/guestfs.pod:1144
36406 msgid ""
36407 "Where possible for maximum future portability programs using libguestfs "
36408 "should use these future-proof techniques:"
36409 msgstr ""
36410
36411 #. type: textblock
36412 #: ../src/guestfs.pod:1151
36413 msgid ""
36414 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36415 "device names, and then use those names directly."
36416 msgstr ""
36417
36418 #. type: textblock
36419 #: ../src/guestfs.pod:1154
36420 msgid ""
36421 "Since those device names exist by definition, they will never be translated."
36422 msgstr ""
36423
36424 #. type: textblock
36425 #: ../src/guestfs.pod:1159
36426 msgid ""
36427 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36428 "filesystem labels."
36429 msgstr ""
36430
36431 #. type: textblock
36432 #: ../src/guestfs.pod:1166
36433 msgid ""
36434 "This section discusses security implications of using libguestfs, "
36435 "particularly with untrusted or malicious guests or disk images."
36436 msgstr ""
36437
36438 #. type: =head2
36439 #: ../src/guestfs.pod:1169
36440 msgid "GENERAL SECURITY CONSIDERATIONS"
36441 msgstr ""
36442
36443 #. type: textblock
36444 #: ../src/guestfs.pod:1171
36445 msgid ""
36446 "Be careful with any files or data that you download from a guest (by "
36447 "\"download\" we mean not just the L</guestfs_download> command but any "
36448 "command that reads files, filenames, directories or anything else from a "
36449 "disk image).  An attacker could manipulate the data to fool your program "
36450 "into doing the wrong thing.  Consider cases such as:"
36451 msgstr ""
36452
36453 #. type: textblock
36454 #: ../src/guestfs.pod:1181
36455 msgid "the data (file etc) not being present"
36456 msgstr ""
36457
36458 #. type: textblock
36459 #: ../src/guestfs.pod:1185
36460 msgid "being present but empty"
36461 msgstr ""
36462
36463 #. type: textblock
36464 #: ../src/guestfs.pod:1189
36465 msgid "being much larger than normal"
36466 msgstr ""
36467
36468 #. type: textblock
36469 #: ../src/guestfs.pod:1193
36470 msgid "containing arbitrary 8 bit data"
36471 msgstr ""
36472
36473 #. type: textblock
36474 #: ../src/guestfs.pod:1197
36475 msgid "being in an unexpected character encoding"
36476 msgstr ""
36477
36478 #. type: textblock
36479 #: ../src/guestfs.pod:1201
36480 msgid "containing homoglyphs."
36481 msgstr ""
36482
36483 #. type: =head2
36484 #: ../src/guestfs.pod:1205
36485 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36486 msgstr ""
36487
36488 #. type: textblock
36489 #: ../src/guestfs.pod:1207
36490 msgid ""
36491 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36492 "(VFS) module can sometimes be escalated into exploits by deliberately "
36493 "creating a malicious, malformed filesystem.  These exploits are very severe "
36494 "for two reasons.  Firstly there are very many filesystem drivers in the "
36495 "kernel, and many of them are infrequently used and not much developer "
36496 "attention has been paid to the code.  Linux userspace helps potential "
36497 "crackers by detecting the filesystem type and automatically choosing the "
36498 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36499 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36500 "exploit (worse in some ways), giving immediate and total access to the "
36501 "system right down to the hardware level."
36502 msgstr ""
36503
36504 #. type: textblock
36505 #: ../src/guestfs.pod:1220
36506 msgid ""
36507 "That explains why you should never mount a filesystem from an untrusted "
36508 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36509 "inside a qemu virtual machine, usually running as a non-root user.  The "
36510 "attacker would need to write a filesystem which first exploited the kernel, "
36511 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36512 "the libguestfs protocol, and finally to be as serious as the host kernel "
36513 "exploit it would need to escalate its privileges to root.  This multi-step "
36514 "escalation, performed by a static piece of data, is thought to be extremely "
36515 "hard to do, although we never say 'never' about security issues."
36516 msgstr ""
36517
36518 #. type: textblock
36519 #: ../src/guestfs.pod:1231
36520 msgid ""
36521 "In any case callers can reduce the attack surface by forcing the filesystem "
36522 "type when mounting (use L</guestfs_mount_vfs>)."
36523 msgstr ""
36524
36525 #. type: =head2
36526 #: ../src/guestfs.pod:1234
36527 msgid "PROTOCOL SECURITY"
36528 msgstr ""
36529
36530 #. type: textblock
36531 #: ../src/guestfs.pod:1236
36532 msgid ""
36533 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
36534 "defined upper message size.  However a program that uses libguestfs must "
36535 "also take care - for example you can write a program that downloads a binary "
36536 "from a disk image and executes it locally, and no amount of protocol "
36537 "security will save you from the consequences."
36538 msgstr ""
36539
36540 #. type: =head2
36541 #: ../src/guestfs.pod:1242
36542 msgid "INSPECTION SECURITY"
36543 msgstr ""
36544
36545 #. type: textblock
36546 #: ../src/guestfs.pod:1244
36547 msgid ""
36548 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36549 "directly from the guest, and these could contain any 8 bit data.  Callers "
36550 "should be careful to escape these before printing them to a structured file "
36551 "(for example, use HTML escaping if creating a web page)."
36552 msgstr ""
36553
36554 #. type: textblock
36555 #: ../src/guestfs.pod:1250
36556 msgid ""
36557 "Guest configuration may be altered in unusual ways by the administrator of "
36558 "the virtual machine, and may not reflect reality (particularly for untrusted "
36559 "or actively malicious guests).  For example we parse the hostname from "
36560 "configuration files like C</etc/sysconfig/network> that we find in the "
36561 "guest, but the guest administrator can easily manipulate these files to "
36562 "provide the wrong hostname."
36563 msgstr ""
36564
36565 #. type: textblock
36566 #: ../src/guestfs.pod:1258
36567 msgid ""
36568 "The inspection API parses guest configuration using two external libraries: "
36569 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
36570 "designed to be robust in the face of malicious data, although denial of "
36571 "service attacks are still possible, for example with oversized configuration "
36572 "files."
36573 msgstr ""
36574
36575 #. type: =head2
36576 #: ../src/guestfs.pod:1264
36577 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36578 msgstr ""
36579
36580 #. type: textblock
36581 #: ../src/guestfs.pod:1266
36582 msgid ""
36583 "Be very cautious about running commands from the guest.  By running a "
36584 "command in the guest, you are giving CPU time to a binary that you do not "
36585 "control, under the same user account as the library, albeit wrapped in qemu "
36586 "virtualization.  More information and alternatives can be found in the "
36587 "section L</RUNNING COMMANDS>."
36588 msgstr ""
36589
36590 #. type: =head2
36591 #: ../src/guestfs.pod:1272
36592 msgid "CVE-2010-3851"
36593 msgstr ""
36594
36595 #. type: textblock
36596 #: ../src/guestfs.pod:1274
36597 msgid "https://bugzilla.redhat.com/642934"
36598 msgstr ""
36599
36600 #. type: textblock
36601 #: ../src/guestfs.pod:1276
36602 msgid ""
36603 "This security bug concerns the automatic disk format detection that qemu "
36604 "does on disk images."
36605 msgstr ""
36606
36607 #. type: textblock
36608 #: ../src/guestfs.pod:1279
36609 msgid ""
36610 "A raw disk image is just the raw bytes, there is no header.  Other disk "
36611 "images like qcow2 contain a special header.  Qemu deals with this by looking "
36612 "for one of the known headers, and if none is found then assuming the disk "
36613 "image must be raw."
36614 msgstr ""
36615
36616 #. type: textblock
36617 #: ../src/guestfs.pod:1284
36618 msgid ""
36619 "This allows a guest which has been given a raw disk image to write some "
36620 "other header.  At next boot (or when the disk image is accessed by "
36621 "libguestfs) qemu would do autodetection and think the disk image format was, "
36622 "say, qcow2 based on the header written by the guest."
36623 msgstr ""
36624
36625 #. type: textblock
36626 #: ../src/guestfs.pod:1289
36627 msgid ""
36628 "This in itself would not be a problem, but qcow2 offers many features, one "
36629 "of which is to allow a disk image to refer to another image (called the "
36630 "\"backing disk\").  It does this by placing the path to the backing disk "
36631 "into the qcow2 header.  This path is not validated and could point to any "
36632 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
36633 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36634 "control of the attacker."
36635 msgstr ""
36636
36637 #. type: textblock
36638 #: ../src/guestfs.pod:1297
36639 msgid ""
36640 "In libguestfs this is rather hard to exploit except under two circumstances:"
36641 msgstr ""
36642
36643 #. type: textblock
36644 #: ../src/guestfs.pod:1304
36645 msgid "You have enabled the network or have opened the disk in write mode."
36646 msgstr ""
36647
36648 #. type: textblock
36649 #: ../src/guestfs.pod:1308
36650 msgid ""
36651 "You are also running untrusted code from the guest (see L</RUNNING "
36652 "COMMANDS>)."
36653 msgstr ""
36654
36655 #. type: textblock
36656 #: ../src/guestfs.pod:1313
36657 msgid ""
36658 "The way to avoid this is to specify the expected disk format when adding "
36659 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
36660 "should always do this if the disk is raw format, and it's a good idea for "
36661 "other cases too."
36662 msgstr ""
36663
36664 #. type: textblock
36665 #: ../src/guestfs.pod:1318
36666 msgid ""
36667 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36668 "format is fetched from libvirt and passed through."
36669 msgstr ""
36670
36671 #. type: textblock
36672 #: ../src/guestfs.pod:1321
36673 msgid ""
36674 "For libguestfs tools, use the I<--format> command line parameter as "
36675 "appropriate."
36676 msgstr ""
36677
36678 #. type: =head1
36679 #: ../src/guestfs.pod:1324
36680 msgid "CONNECTION MANAGEMENT"
36681 msgstr ""
36682
36683 #. type: =head2
36684 #: ../src/guestfs.pod:1326
36685 msgid "guestfs_h *"
36686 msgstr ""
36687
36688 #. type: textblock
36689 #: ../src/guestfs.pod:1328
36690 msgid ""
36691 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36692 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36693 "handle and release all resources used."
36694 msgstr ""
36695
36696 #. type: textblock
36697 #: ../src/guestfs.pod:1332
36698 msgid ""
36699 "For information on using multiple handles and threads, see the section L</"
36700 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36701 msgstr ""
36702
36703 #. type: =head2
36704 #: ../src/guestfs.pod:1335
36705 msgid "guestfs_create"
36706 msgstr ""
36707
36708 #. type: verbatim
36709 #: ../src/guestfs.pod:1337
36710 #, no-wrap
36711 msgid ""
36712 " guestfs_h *guestfs_create (void);\n"
36713 "\n"
36714 msgstr ""
36715
36716 #. type: textblock
36717 #: ../src/guestfs.pod:1339
36718 msgid "Create a connection handle."
36719 msgstr ""
36720
36721 #. type: textblock
36722 #: ../src/guestfs.pod:1341
36723 msgid ""
36724 "On success this returns a non-NULL pointer to a handle.  On error it returns "
36725 "NULL."
36726 msgstr ""
36727
36728 #. type: textblock
36729 #: ../src/guestfs.pod:1344
36730 msgid ""
36731 "You have to \"configure\" the handle after creating it.  This includes "
36732 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36733 "handle at least once."
36734 msgstr ""
36735
36736 #. type: textblock
36737 #: ../src/guestfs.pod:1348
36738 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36739 msgstr ""
36740
36741 #. type: textblock
36742 #: ../src/guestfs.pod:1350
36743 msgid ""
36744 "You may also want to configure error handling for the handle.  See the L</"
36745 "ERROR HANDLING> section below."
36746 msgstr ""
36747
36748 #. type: =head2
36749 #: ../src/guestfs.pod:1353
36750 msgid "guestfs_close"
36751 msgstr ""
36752
36753 #. type: verbatim
36754 #: ../src/guestfs.pod:1355
36755 #, no-wrap
36756 msgid ""
36757 " void guestfs_close (guestfs_h *g);\n"
36758 "\n"
36759 msgstr ""
36760
36761 #. type: textblock
36762 #: ../src/guestfs.pod:1357
36763 msgid "This closes the connection handle and frees up all resources used."
36764 msgstr ""
36765
36766 #. type: textblock
36767 #: ../src/guestfs.pod:1359
36768 msgid ""
36769 "If autosync was set on the handle and the handle was launched, then this "
36770 "implicitly calls various functions to unmount filesystems and sync the "
36771 "disk.  See L</guestfs_set_autosync> for more details."
36772 msgstr ""
36773
36774 #. type: textblock
36775 #: ../src/guestfs.pod:1363
36776 msgid "If a close callback was set on the handle, then it is called."
36777 msgstr ""
36778
36779 #. type: =head1
36780 #: ../src/guestfs.pod:1365
36781 msgid "ERROR HANDLING"
36782 msgstr ""
36783
36784 #. type: textblock
36785 #: ../src/guestfs.pod:1367
36786 msgid ""
36787 "API functions can return errors.  For example, almost all functions that "
36788 "return C<int> will return C<-1> to indicate an error."
36789 msgstr ""
36790
36791 #. type: textblock
36792 #: ../src/guestfs.pod:1370
36793 msgid ""
36794 "Additional information is available for errors: an error message string and "
36795 "optionally an error number (errno) if the thing that failed was a system "
36796 "call."
36797 msgstr ""
36798
36799 #. type: textblock
36800 #: ../src/guestfs.pod:1374
36801 msgid ""
36802 "You can get at the additional information about the last error on the handle "
36803 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36804 "up an error handler with L</guestfs_set_error_handler>."
36805 msgstr ""
36806
36807 #. type: textblock
36808 #: ../src/guestfs.pod:1379
36809 msgid ""
36810 "When the handle is created, a default error handler is installed which "
36811 "prints the error message string to C<stderr>.  For small short-running "
36812 "command line programs it is sufficient to do:"
36813 msgstr ""
36814
36815 #. type: verbatim
36816 #: ../src/guestfs.pod:1383
36817 #, no-wrap
36818 msgid ""
36819 " if (guestfs_launch (g) == -1)\n"
36820 "   exit (EXIT_FAILURE);\n"
36821 "\n"
36822 msgstr ""
36823
36824 #. type: textblock
36825 #: ../src/guestfs.pod:1386
36826 msgid ""
36827 "since the default error handler will ensure that an error message has been "
36828 "printed to C<stderr> before the program exits."
36829 msgstr ""
36830
36831 #. type: textblock
36832 #: ../src/guestfs.pod:1389
36833 msgid ""
36834 "For other programs the caller will almost certainly want to install an "
36835 "alternate error handler or do error handling in-line like this:"
36836 msgstr ""
36837
36838 #. type: verbatim
36839 #: ../src/guestfs.pod:1392
36840 #, no-wrap
36841 msgid ""
36842 " /* This disables the default behaviour of printing errors\n"
36843 "    on stderr. */\n"
36844 " guestfs_set_error_handler (g, NULL, NULL);\n"
36845 " \n"
36846 msgstr ""
36847
36848 #. type: verbatim
36849 #: ../src/guestfs.pod:1396
36850 #, no-wrap
36851 msgid ""
36852 " if (guestfs_launch (g) == -1) {\n"
36853 "   /* Examine the error message and print it etc. */\n"
36854 "   char *msg = guestfs_last_error (g);\n"
36855 "   int errnum = guestfs_last_errno (g);\n"
36856 "   fprintf (stderr, \"%s\", msg);\n"
36857 "   if (errnum != 0)\n"
36858 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36859 "   fprintf (stderr, \"\\n\");\n"
36860 "   /* ... */\n"
36861 " }\n"
36862 "\n"
36863 msgstr ""
36864
36865 #. type: textblock
36866 #: ../src/guestfs.pod:1407
36867 msgid ""
36868 "Out of memory errors are handled differently.  The default action is to call "
36869 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
36870 "guestfs_set_out_of_memory_handler>."
36871 msgstr ""
36872
36873 #. type: textblock
36874 #: ../src/guestfs.pod:1411
36875 msgid ""
36876 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36877 "because there is no handle if this happens there is no way to get additional "
36878 "error information.  However L</guestfs_create> is supposed to be a "
36879 "lightweight operation which can only fail because of insufficient memory (it "
36880 "returns NULL in this case)."
36881 msgstr ""
36882
36883 #. type: =head2
36884 #: ../src/guestfs.pod:1417
36885 msgid "guestfs_last_error"
36886 msgstr ""
36887
36888 #. type: verbatim
36889 #: ../src/guestfs.pod:1419
36890 #, no-wrap
36891 msgid ""
36892 " const char *guestfs_last_error (guestfs_h *g);\n"
36893 "\n"
36894 msgstr ""
36895
36896 #. type: textblock
36897 #: ../src/guestfs.pod:1421
36898 msgid ""
36899 "This returns the last error message that happened on C<g>.  If there has not "
36900 "been an error since the handle was created, then this returns C<NULL>."
36901 msgstr ""
36902
36903 #. type: textblock
36904 #: ../src/guestfs.pod:1425
36905 msgid ""
36906 "The lifetime of the returned string is until the next error occurs, or L</"
36907 "guestfs_close> is called."
36908 msgstr ""
36909
36910 #. type: =head2
36911 #: ../src/guestfs.pod:1428
36912 msgid "guestfs_last_errno"
36913 msgstr ""
36914
36915 #. type: verbatim
36916 #: ../src/guestfs.pod:1430
36917 #, no-wrap
36918 msgid ""
36919 " int guestfs_last_errno (guestfs_h *g);\n"
36920 "\n"
36921 msgstr ""
36922
36923 #. type: textblock
36924 #: ../src/guestfs.pod:1432
36925 msgid "This returns the last error number (errno) that happened on C<g>."
36926 msgstr ""
36927
36928 #. type: textblock
36929 #: ../src/guestfs.pod:1434
36930 msgid "If successful, an errno integer not equal to zero is returned."
36931 msgstr ""
36932
36933 #. type: textblock
36934 #: ../src/guestfs.pod:1436
36935 msgid ""
36936 "If no error, this returns 0.  This call can return 0 in three situations:"
36937 msgstr ""
36938
36939 #. type: textblock
36940 #: ../src/guestfs.pod:1443
36941 msgid "There has not been any error on the handle."
36942 msgstr ""
36943
36944 #. type: textblock
36945 #: ../src/guestfs.pod:1447
36946 msgid ""
36947 "There has been an error but the errno was meaningless.  This corresponds to "
36948 "the case where the error did not come from a failed system call, but for "
36949 "some other reason."
36950 msgstr ""
36951
36952 #. type: textblock
36953 #: ../src/guestfs.pod:1453
36954 msgid ""
36955 "There was an error from a failed system call, but for some reason the errno "
36956 "was not captured and returned.  This usually indicates a bug in libguestfs."
36957 msgstr ""
36958
36959 #. type: textblock
36960 #: ../src/guestfs.pod:1459
36961 msgid ""
36962 "Libguestfs tries to convert the errno from inside the applicance into a "
36963 "corresponding errno for the caller (not entirely trivial: the appliance "
36964 "might be running a completely different operating system from the library "
36965 "and error numbers are not standardized across Un*xen).  If this could not be "
36966 "done, then the error is translated to C<EINVAL>.  In practice this should "
36967 "only happen in very rare circumstances."
36968 msgstr ""
36969
36970 #. type: =head2
36971 #: ../src/guestfs.pod:1467
36972 msgid "guestfs_set_error_handler"
36973 msgstr ""
36974
36975 #. type: verbatim
36976 #: ../src/guestfs.pod:1469
36977 #, no-wrap
36978 msgid ""
36979 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36980 "                                           void *opaque,\n"
36981 "                                           const char *msg);\n"
36982 " void guestfs_set_error_handler (guestfs_h *g,\n"
36983 "                                 guestfs_error_handler_cb cb,\n"
36984 "                                 void *opaque);\n"
36985 "\n"
36986 msgstr ""
36987
36988 #. type: textblock
36989 #: ../src/guestfs.pod:1476
36990 msgid ""
36991 "The callback C<cb> will be called if there is an error.  The parameters "
36992 "passed to the callback are an opaque data pointer and the error message "
36993 "string."
36994 msgstr ""
36995
36996 #. type: textblock
36997 #: ../src/guestfs.pod:1480
36998 msgid ""
36999 "C<errno> is not passed to the callback.  To get that the callback must call "
37000 "L</guestfs_last_errno>."
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:1483
37005 msgid ""
37006 "Note that the message string C<msg> is freed as soon as the callback "
37007 "function returns, so if you want to stash it somewhere you must make your "
37008 "own copy."
37009 msgstr ""
37010
37011 #. type: textblock
37012 #: ../src/guestfs.pod:1487
37013 msgid "The default handler prints messages on C<stderr>."
37014 msgstr ""
37015
37016 #. type: textblock
37017 #: ../src/guestfs.pod:1489
37018 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37019 msgstr ""
37020
37021 #. type: =head2
37022 #: ../src/guestfs.pod:1491
37023 msgid "guestfs_get_error_handler"
37024 msgstr ""
37025
37026 #. type: verbatim
37027 #: ../src/guestfs.pod:1493
37028 #, no-wrap
37029 msgid ""
37030 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37031 "                                                     void **opaque_rtn);\n"
37032 "\n"
37033 msgstr ""
37034
37035 #. type: textblock
37036 #: ../src/guestfs.pod:1496
37037 msgid "Returns the current error handler callback."
37038 msgstr ""
37039
37040 #. type: =head2
37041 #: ../src/guestfs.pod:1498
37042 msgid "guestfs_set_out_of_memory_handler"
37043 msgstr ""
37044
37045 #. type: verbatim
37046 #: ../src/guestfs.pod:1500
37047 #, no-wrap
37048 msgid ""
37049 " typedef void (*guestfs_abort_cb) (void);\n"
37050 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37051 "                                         guestfs_abort_cb);\n"
37052 "\n"
37053 msgstr ""
37054
37055 #. type: textblock
37056 #: ../src/guestfs.pod:1504
37057 msgid ""
37058 "The callback C<cb> will be called if there is an out of memory situation.  "
37059 "I<Note this callback must not return>."
37060 msgstr ""
37061
37062 #. type: textblock
37063 #: ../src/guestfs.pod:1507
37064 msgid "The default is to call L<abort(3)>."
37065 msgstr ""
37066
37067 #. type: textblock
37068 #: ../src/guestfs.pod:1509
37069 msgid ""
37070 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37071 msgstr ""
37072
37073 #. type: =head2
37074 #: ../src/guestfs.pod:1512
37075 msgid "guestfs_get_out_of_memory_handler"
37076 msgstr ""
37077
37078 #. type: verbatim
37079 #: ../src/guestfs.pod:1514
37080 #, no-wrap
37081 msgid ""
37082 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37083 "\n"
37084 msgstr ""
37085
37086 #. type: textblock
37087 #: ../src/guestfs.pod:1516
37088 msgid "This returns the current out of memory handler."
37089 msgstr ""
37090
37091 #. type: =head1
37092 #: ../src/guestfs.pod:1518
37093 msgid "API CALLS"
37094 msgstr ""
37095
37096 #. type: =head1
37097 #: ../src/guestfs.pod:1522
37098 msgid "STRUCTURES"
37099 msgstr ""
37100
37101 #. type: textblock
37102 #: ../src/guestfs.pod:1524
37103 msgid "@STRUCTS@"
37104 msgstr ""
37105
37106 #. type: =head1
37107 #: ../src/guestfs.pod:1526
37108 msgid "AVAILABILITY"
37109 msgstr ""
37110
37111 #. type: =head2
37112 #: ../src/guestfs.pod:1528
37113 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37114 msgstr ""
37115
37116 #. type: textblock
37117 #: ../src/guestfs.pod:1530
37118 msgid ""
37119 "Using L</guestfs_available> you can test availability of the following "
37120 "groups of functions.  This test queries the appliance to see if the "
37121 "appliance you are currently using supports the functionality."
37122 msgstr ""
37123
37124 #. type: textblock
37125 #: ../src/guestfs.pod:1535
37126 msgid "@AVAILABILITY@"
37127 msgstr ""
37128
37129 #. type: =head2
37130 #: ../src/guestfs.pod:1537
37131 msgid "GUESTFISH supported COMMAND"
37132 msgstr ""
37133
37134 #. type: textblock
37135 #: ../src/guestfs.pod:1539
37136 msgid ""
37137 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37138 "prints out the available groups and whether they are supported by this build "
37139 "of libguestfs.  Note however that you have to do C<run> first."
37140 msgstr ""
37141
37142 #. type: =head2
37143 #: ../src/guestfs.pod:1544
37144 msgid "SINGLE CALLS AT COMPILE TIME"
37145 msgstr ""
37146
37147 #. type: textblock
37148 #: ../src/guestfs.pod:1546
37149 msgid ""
37150 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37151 "function, such as:"
37152 msgstr ""
37153
37154 #. type: verbatim
37155 #: ../src/guestfs.pod:1549
37156 #, no-wrap
37157 msgid ""
37158 " #define LIBGUESTFS_HAVE_DD 1\n"
37159 "\n"
37160 msgstr ""
37161
37162 #. type: textblock
37163 #: ../src/guestfs.pod:1551
37164 msgid "if L</guestfs_dd> is available."
37165 msgstr ""
37166
37167 #. type: textblock
37168 #: ../src/guestfs.pod:1553
37169 msgid ""
37170 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37171 "function is available at compile time, we recommended using build tools such "
37172 "as autoconf or cmake.  For example in autotools you could use:"
37173 msgstr ""
37174
37175 #. type: verbatim
37176 #: ../src/guestfs.pod:1558
37177 #, no-wrap
37178 msgid ""
37179 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37180 " AC_CHECK_FUNCS([guestfs_dd])\n"
37181 "\n"
37182 msgstr ""
37183
37184 #. type: textblock
37185 #: ../src/guestfs.pod:1561
37186 msgid ""
37187 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37188 "in your program."
37189 msgstr ""
37190
37191 #. type: =head2
37192 #: ../src/guestfs.pod:1564
37193 msgid "SINGLE CALLS AT RUN TIME"
37194 msgstr ""
37195
37196 #. type: textblock
37197 #: ../src/guestfs.pod:1566
37198 msgid ""
37199 "Testing at compile time doesn't guarantee that a function really exists in "
37200 "the library.  The reason is that you might be dynamically linked against a "
37201 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37202 "This situation unfortunately results in a segmentation fault, which is a "
37203 "shortcoming of the C dynamic linking system itself."
37204 msgstr ""
37205
37206 #. type: textblock
37207 #: ../src/guestfs.pod:1573
37208 msgid ""
37209 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37210 "in this example program (note that you still need the compile time check as "
37211 "well):"
37212 msgstr ""
37213
37214 #. type: verbatim
37215 #: ../src/guestfs.pod:1577
37216 #, no-wrap
37217 msgid ""
37218 " #include <stdio.h>\n"
37219 " #include <stdlib.h>\n"
37220 " #include <unistd.h>\n"
37221 " #include <dlfcn.h>\n"
37222 " #include <guestfs.h>\n"
37223 " \n"
37224 msgstr ""
37225
37226 #. type: verbatim
37227 #: ../src/guestfs.pod:1583
37228 #, no-wrap
37229 msgid ""
37230 " main ()\n"
37231 " {\n"
37232 " #ifdef LIBGUESTFS_HAVE_DD\n"
37233 "   void *dl;\n"
37234 "   int has_function;\n"
37235 " \n"
37236 msgstr ""
37237
37238 #. type: verbatim
37239 #: ../src/guestfs.pod:1589
37240 #, no-wrap
37241 msgid ""
37242 "   /* Test if the function guestfs_dd is really available. */\n"
37243 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37244 "   if (!dl) {\n"
37245 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37246 "     exit (EXIT_FAILURE);\n"
37247 "   }\n"
37248 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37249 "   dlclose (dl);\n"
37250 " \n"
37251 msgstr ""
37252
37253 #. type: verbatim
37254 #: ../src/guestfs.pod:1598
37255 #, no-wrap
37256 msgid ""
37257 "   if (!has_function)\n"
37258 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37259 "   else {\n"
37260 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37261 "     /* Now it's safe to call\n"
37262 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37263 "     */\n"
37264 "   }\n"
37265 " #else\n"
37266 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37267 " #endif\n"
37268 "  }\n"
37269 "\n"
37270 msgstr ""
37271
37272 #. type: textblock
37273 #: ../src/guestfs.pod:1611
37274 msgid ""
37275 "You may think the above is an awful lot of hassle, and it is.  There are "
37276 "other ways outside of the C linking system to ensure that this kind of "
37277 "incompatibility never arises, such as using package versioning:"
37278 msgstr ""
37279
37280 #. type: verbatim
37281 #: ../src/guestfs.pod:1616
37282 #, no-wrap
37283 msgid ""
37284 " Requires: libguestfs >= 1.0.80\n"
37285 "\n"
37286 msgstr ""
37287
37288 #. type: =head1
37289 #: ../src/guestfs.pod:1618
37290 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37291 msgstr ""
37292
37293 #. type: textblock
37294 #: ../src/guestfs.pod:1620
37295 msgid ""
37296 "A recent feature of the API is the introduction of calls which take optional "
37297 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37298 "takes variable arguments (ie. C<...>), as in this example:"
37299 msgstr ""
37300
37301 #. type: verbatim
37302 #: ../src/guestfs.pod:1625
37303 #, no-wrap
37304 msgid ""
37305 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37306 "\n"
37307 msgstr ""
37308
37309 #. type: textblock
37310 #: ../src/guestfs.pod:1627
37311 msgid ""
37312 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37313 "call with no optional arguments specified:"
37314 msgstr ""
37315
37316 #. type: verbatim
37317 #: ../src/guestfs.pod:1630
37318 #, no-wrap
37319 msgid ""
37320 " guestfs_add_drive_opts (g, filename, -1);\n"
37321 "\n"
37322 msgstr ""
37323
37324 #. type: textblock
37325 #: ../src/guestfs.pod:1632
37326 msgid "With a single optional argument:"
37327 msgstr ""
37328
37329 #. type: verbatim
37330 #: ../src/guestfs.pod:1634
37331 #, no-wrap
37332 msgid ""
37333 " guestfs_add_drive_opts (g, filename,\n"
37334 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37335 "                         -1);\n"
37336 "\n"
37337 msgstr ""
37338
37339 #. type: textblock
37340 #: ../src/guestfs.pod:1638
37341 msgid "With two:"
37342 msgstr ""
37343
37344 #. type: verbatim
37345 #: ../src/guestfs.pod:1640
37346 #, no-wrap
37347 msgid ""
37348 " guestfs_add_drive_opts (g, filename,\n"
37349 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37350 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37351 "                         -1);\n"
37352 "\n"
37353 msgstr ""
37354
37355 #. type: textblock
37356 #: ../src/guestfs.pod:1645
37357 msgid ""
37358 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37359 "happen!"
37360 msgstr ""
37361
37362 #. type: =head2
37363 #: ../src/guestfs.pod:1648
37364 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37365 msgstr ""
37366
37367 #. type: textblock
37368 #: ../src/guestfs.pod:1650
37369 msgid ""
37370 "The second variant has the same name with the suffix C<_va>, which works the "
37371 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37372 "example function, this is declared:"
37373 msgstr ""
37374
37375 #. type: verbatim
37376 #: ../src/guestfs.pod:1654
37377 #, no-wrap
37378 msgid ""
37379 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37380 "                                va_list args);\n"
37381 "\n"
37382 msgstr ""
37383
37384 #. type: =head2
37385 #: ../src/guestfs.pod:1657
37386 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37387 msgstr ""
37388
37389 #. type: textblock
37390 #: ../src/guestfs.pod:1659
37391 msgid ""
37392 "The third variant is useful where you need to construct these calls.  You "
37393 "pass in a structure where you fill in the optional fields.  The structure "
37394 "has a bitmask as the first element which you must set to indicate which "
37395 "fields you have filled in.  For our example function the structure and call "
37396 "are declared:"
37397 msgstr ""
37398
37399 #. type: verbatim
37400 #: ../src/guestfs.pod:1665
37401 #, no-wrap
37402 msgid ""
37403 " struct guestfs_add_drive_opts_argv {\n"
37404 "   uint64_t bitmask;\n"
37405 "   int readonly;\n"
37406 "   const char *format;\n"
37407 "   /* ... */\n"
37408 " };\n"
37409 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37410 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37411 "\n"
37412 msgstr ""
37413
37414 #. type: textblock
37415 #: ../src/guestfs.pod:1674
37416 msgid "You could call it like this:"
37417 msgstr ""
37418
37419 #. type: verbatim
37420 #: ../src/guestfs.pod:1676
37421 #, no-wrap
37422 msgid ""
37423 " struct guestfs_add_drive_opts_argv optargs = {\n"
37424 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37425 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37426 "   .readonly = 1,\n"
37427 "   .format = \"qcow2\"\n"
37428 " };\n"
37429 " \n"
37430 msgstr ""
37431
37432 #. type: verbatim
37433 #: ../src/guestfs.pod:1683
37434 #, no-wrap
37435 msgid ""
37436 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37437 "\n"
37438 msgstr ""
37439
37440 #. type: textblock
37441 #: ../src/guestfs.pod:1691
37442 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37443 msgstr ""
37444
37445 #. type: textblock
37446 #: ../src/guestfs.pod:1696
37447 msgid "You do not need to fill in all fields of the structure."
37448 msgstr ""
37449
37450 #. type: textblock
37451 #: ../src/guestfs.pod:1700
37452 msgid ""
37453 "There must be a one-to-one correspondence between fields of the structure "
37454 "that are filled in, and bits set in the bitmask."
37455 msgstr ""
37456
37457 #. type: =head2
37458 #: ../src/guestfs.pod:1705
37459 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37460 msgstr ""
37461
37462 #. type: textblock
37463 #: ../src/guestfs.pod:1707
37464 msgid ""
37465 "In other languages, optional arguments are expressed in the way that is "
37466 "natural for that language.  We refer you to the language-specific "
37467 "documentation for more details on that."
37468 msgstr ""
37469
37470 #. type: textblock
37471 #: ../src/guestfs.pod:1711
37472 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37473 msgstr ""
37474
37475 #. type: =head2
37476 #: ../src/guestfs.pod:1713
37477 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37478 msgstr ""
37479
37480 #. type: textblock
37481 #: ../src/guestfs.pod:1715
37482 msgid ""
37483 "B<Note:> This section documents the generic event mechanism introduced in "
37484 "libguestfs 1.10, which you should use in new code if possible.  The old "
37485 "functions C<guestfs_set_log_message_callback>, "
37486 "C<guestfs_set_subprocess_quit_callback>, "
37487 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37488 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37489 "page.  Because of the ABI guarantee, the old functions continue to work."
37490 msgstr ""
37491
37492 #. type: textblock
37493 #: ../src/guestfs.pod:1724
37494 msgid ""
37495 "Handles generate events when certain things happen, such as log messages "
37496 "being generated, progress messages during long-running operations, or the "
37497 "handle being closed.  The API calls described below let you register a "
37498 "callback to be called when events happen.  You can register multiple "
37499 "callbacks (for the same, different or overlapping sets of events), and "
37500 "individually remove callbacks.  If callbacks are not removed, then they "
37501 "remain in force until the handle is closed."
37502 msgstr ""
37503
37504 #. type: textblock
37505 #: ../src/guestfs.pod:1732
37506 msgid ""
37507 "In the current implementation, events are only generated synchronously: that "
37508 "means that events (and hence callbacks) can only happen while you are in the "
37509 "middle of making another libguestfs call.  The callback is called in the "
37510 "same thread."
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../src/guestfs.pod:1737
37515 msgid ""
37516 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37517 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37518 msgstr ""
37519
37520 #. type: =head3
37521 #: ../src/guestfs.pod:1741
37522 msgid "CLASSES OF EVENTS"
37523 msgstr ""
37524
37525 #. type: =item
37526 #: ../src/guestfs.pod:1745
37527 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37528 msgstr ""
37529
37530 #. type: textblock
37531 #: ../src/guestfs.pod:1748
37532 msgid ""
37533 "The callback function will be called while the handle is being closed "
37534 "(synchronously from L</guestfs_close>)."
37535 msgstr ""
37536
37537 #. type: textblock
37538 #: ../src/guestfs.pod:1751
37539 msgid ""
37540 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37541 "handles that are open when the program exits.  This means that this callback "
37542 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37543 "problems in higher-level languages (eg. if your HLL interpreter has already "
37544 "been cleaned up by the time this is called, and if your callback then jumps "
37545 "into some HLL function)."
37546 msgstr ""
37547
37548 #. type: textblock
37549 #: ../src/guestfs.pod:1758
37550 msgid ""
37551 "If no callback is registered: the handle is closed without any callback "
37552 "being invoked."
37553 msgstr ""
37554
37555 #. type: =item
37556 #: ../src/guestfs.pod:1761
37557 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37558 msgstr ""
37559
37560 #. type: textblock
37561 #: ../src/guestfs.pod:1764
37562 msgid ""
37563 "The callback function will be called when the child process quits, either "
37564 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
37565 "corresponds to a transition from any state to the CONFIG state)."
37566 msgstr ""
37567
37568 #. type: textblock
37569 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
37570 msgid "If no callback is registered: the event is ignored."
37571 msgstr ""
37572
37573 #. type: =item
37574 #: ../src/guestfs.pod:1770
37575 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37576 msgstr ""
37577
37578 #. type: textblock
37579 #: ../src/guestfs.pod:1773
37580 msgid ""
37581 "The callback function will be called when the child process becomes ready "
37582 "first time after it has been launched.  (This corresponds to a transition "
37583 "from LAUNCHING to the READY state)."
37584 msgstr ""
37585
37586 #. type: =item
37587 #: ../src/guestfs.pod:1779
37588 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37589 msgstr ""
37590
37591 #. type: textblock
37592 #: ../src/guestfs.pod:1782
37593 msgid ""
37594 "Some long-running operations can generate progress messages.  If this "
37595 "callback is registered, then it will be called each time a progress message "
37596 "is generated (usually two seconds after the operation started, and three "
37597 "times per second thereafter until it completes, although the frequency may "
37598 "change in future versions)."
37599 msgstr ""
37600
37601 #. type: textblock
37602 #: ../src/guestfs.pod:1788
37603 msgid ""
37604 "The callback receives in the payload four unsigned 64 bit numbers which are "
37605 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37606 msgstr ""
37607
37608 #. type: textblock
37609 #: ../src/guestfs.pod:1791
37610 msgid ""
37611 "The units of C<total> are not defined, although for some operations C<total> "
37612 "may relate in some way to the amount of data to be transferred (eg. in bytes "
37613 "or megabytes), and C<position> may be the portion which has been transferred."
37614 msgstr ""
37615
37616 #. type: textblock
37617 #: ../src/guestfs.pod:1796
37618 msgid "The only defined and stable parts of the API are:"
37619 msgstr ""
37620
37621 #. type: textblock
37622 #: ../src/guestfs.pod:1802
37623 msgid ""
37624 "The callback can display to the user some type of progress bar or indicator "
37625 "which shows the ratio of C<position>:C<total>."
37626 msgstr ""
37627
37628 #. type: textblock
37629 #: ../src/guestfs.pod:1807
37630 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37631 msgstr ""
37632
37633 #. type: textblock
37634 #: ../src/guestfs.pod:1811
37635 msgid ""
37636 "If any progress notification is sent during a call, then a final progress "
37637 "notification is always sent when C<position> = C<total> (I<unless> the call "
37638 "fails with an error)."
37639 msgstr ""
37640
37641 #. type: textblock
37642 #: ../src/guestfs.pod:1815
37643 msgid ""
37644 "This is to simplify caller code, so callers can easily set the progress "
37645 "indicator to \"100%\" at the end of the operation, without requiring special "
37646 "code to detect this case."
37647 msgstr ""
37648
37649 #. type: textblock
37650 #: ../src/guestfs.pod:1821
37651 msgid ""
37652 "For some calls we are unable to estimate the progress of the call, but we "
37653 "can still generate progress messages to indicate activity.  This is known as "
37654 "\"pulse mode\", and is directly supported by certain progress bar "
37655 "implementations (eg. GtkProgressBar)."
37656 msgstr ""
37657
37658 #. type: textblock
37659 #: ../src/guestfs.pod:1826
37660 msgid ""
37661 "For these calls, zero or more progress messages are generated with "
37662 "C<position = 0> and C<total = 1>, followed by a final message with "
37663 "C<position = total = 1>."
37664 msgstr ""
37665
37666 #. type: textblock
37667 #: ../src/guestfs.pod:1830
37668 msgid ""
37669 "As noted above, if the call fails with an error then the final message may "
37670 "not be generated."
37671 msgstr ""
37672
37673 #. type: textblock
37674 #: ../src/guestfs.pod:1835
37675 msgid ""
37676 "The callback also receives the procedure number (C<proc_nr>) and serial "
37677 "number (C<serial>) of the call.  These are only useful for debugging "
37678 "protocol issues, and the callback can normally ignore them.  The callback "
37679 "may want to print these numbers in error messages or debugging messages."
37680 msgstr ""
37681
37682 #. type: textblock
37683 #: ../src/guestfs.pod:1841
37684 msgid "If no callback is registered: progress messages are discarded."
37685 msgstr ""
37686
37687 #. type: =item
37688 #: ../src/guestfs.pod:1843
37689 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37690 msgstr ""
37691
37692 #. type: textblock
37693 #: ../src/guestfs.pod:1846
37694 msgid ""
37695 "The callback function is called whenever a log message is generated by qemu, "
37696 "the appliance kernel, guestfsd (daemon), or utility programs."
37697 msgstr ""
37698
37699 #. type: textblock
37700 #: ../src/guestfs.pod:1849
37701 msgid ""
37702 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
37703 "guestfs_launch>) then additional debug messages are generated."
37704 msgstr ""
37705
37706 #. type: textblock
37707 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
37708 msgid ""
37709 "If no callback is registered: the messages are discarded unless the verbose "
37710 "flag is set in which case they are sent to stderr.  You can override the "
37711 "printing of verbose messages to stderr by setting up a callback."
37712 msgstr ""
37713
37714 #. type: =item
37715 #: ../src/guestfs.pod:1857
37716 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37717 msgstr ""
37718
37719 #. type: textblock
37720 #: ../src/guestfs.pod:1860
37721 msgid ""
37722 "The callback function is called whenever a log message is generated by the "
37723 "library part of libguestfs."
37724 msgstr ""
37725
37726 #. type: textblock
37727 #: ../src/guestfs.pod:1863
37728 msgid ""
37729 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37730 "messages are generated."
37731 msgstr ""
37732
37733 #. type: =item
37734 #: ../src/guestfs.pod:1871
37735 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37736 msgstr ""
37737
37738 #. type: textblock
37739 #: ../src/guestfs.pod:1874
37740 msgid ""
37741 "The callback function is called whenever a trace message is generated.  This "
37742 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37743 msgstr ""
37744
37745 #. type: textblock
37746 #: ../src/guestfs.pod:1877
37747 msgid ""
37748 "If no callback is registered: the messages are sent to stderr.  You can "
37749 "override the printing of trace messages to stderr by setting up a callback."
37750 msgstr ""
37751
37752 #. type: =item
37753 #: ../src/guestfs.pod:1881
37754 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37755 msgstr ""
37756
37757 #. type: textblock
37758 #: ../src/guestfs.pod:1884
37759 msgid ""
37760 "The callback function is called whenever a libguestfs function is entered."
37761 msgstr ""
37762
37763 #. type: textblock
37764 #: ../src/guestfs.pod:1887
37765 msgid ""
37766 "The payload is a string which contains the name of the function that we are "
37767 "entering (not including C<guestfs_> prefix)."
37768 msgstr ""
37769
37770 #. type: textblock
37771 #: ../src/guestfs.pod:1890
37772 msgid ""
37773 "Note that libguestfs functions can call themselves, so you may see many "
37774 "events from a single call.  A few libguestfs functions do not generate this "
37775 "event."
37776 msgstr ""
37777
37778 #. type: =head3
37779 #: ../src/guestfs.pod:1898
37780 msgid "guestfs_set_event_callback"
37781 msgstr ""
37782
37783 #. type: verbatim
37784 #: ../src/guestfs.pod:1900
37785 #, no-wrap
37786 msgid ""
37787 " int guestfs_set_event_callback (guestfs_h *g,\n"
37788 "                                 guestfs_event_callback cb,\n"
37789 "                                 uint64_t event_bitmask,\n"
37790 "                                 int flags,\n"
37791 "                                 void *opaque);\n"
37792 "\n"
37793 msgstr ""
37794
37795 #. type: textblock
37796 #: ../src/guestfs.pod:1906
37797 msgid ""
37798 "This function registers a callback (C<cb>) for all event classes in the "
37799 "C<event_bitmask>."
37800 msgstr ""
37801
37802 #. type: textblock
37803 #: ../src/guestfs.pod:1909
37804 msgid ""
37805 "For example, to register for all log message events, you could call this "
37806 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
37807 "To register a single callback for all possible classes of events, use "
37808 "C<GUESTFS_EVENT_ALL>."
37809 msgstr ""
37810
37811 #. type: textblock
37812 #: ../src/guestfs.pod:1915
37813 msgid "C<flags> should always be passed as 0."
37814 msgstr ""
37815
37816 #. type: textblock
37817 #: ../src/guestfs.pod:1917
37818 msgid ""
37819 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37820 "it for any purpose."
37821 msgstr ""
37822
37823 #. type: textblock
37824 #: ../src/guestfs.pod:1920
37825 msgid ""
37826 "The return value is the event handle (an integer) which you can use to "
37827 "delete the callback (see below)."
37828 msgstr ""
37829
37830 #. type: textblock
37831 #: ../src/guestfs.pod:1923
37832 msgid ""
37833 "If there is an error, this function returns C<-1>, and sets the error in the "
37834 "handle in the usual way (see L</guestfs_last_error> etc.)"
37835 msgstr ""
37836
37837 #. type: textblock
37838 #: ../src/guestfs.pod:1926
37839 msgid ""
37840 "Callbacks remain in effect until they are deleted, or until the handle is "
37841 "closed."
37842 msgstr ""
37843
37844 #. type: textblock
37845 #: ../src/guestfs.pod:1929
37846 msgid ""
37847 "In the case where multiple callbacks are registered for a particular event "
37848 "class, all of the callbacks are called.  The order in which multiple "
37849 "callbacks are called is not defined."
37850 msgstr ""
37851
37852 #. type: =head3
37853 #: ../src/guestfs.pod:1933
37854 msgid "guestfs_delete_event_callback"
37855 msgstr ""
37856
37857 #. type: verbatim
37858 #: ../src/guestfs.pod:1935
37859 #, no-wrap
37860 msgid ""
37861 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37862 "\n"
37863 msgstr ""
37864
37865 #. type: textblock
37866 #: ../src/guestfs.pod:1937
37867 msgid ""
37868 "Delete a callback that was previously registered.  C<event_handle> should be "
37869 "the integer that was returned by a previous call to "
37870 "C<guestfs_set_event_callback> on the same handle."
37871 msgstr ""
37872
37873 #. type: =head3
37874 #: ../src/guestfs.pod:1941
37875 msgid "guestfs_event_callback"
37876 msgstr ""
37877
37878 #. type: verbatim
37879 #: ../src/guestfs.pod:1943
37880 #, no-wrap
37881 msgid ""
37882 " typedef void (*guestfs_event_callback) (\n"
37883 "                  guestfs_h *g,\n"
37884 "                  void *opaque,\n"
37885 "                  uint64_t event,\n"
37886 "                  int event_handle,\n"
37887 "                  int flags,\n"
37888 "                  const char *buf, size_t buf_len,\n"
37889 "                  const uint64_t *array, size_t array_len);\n"
37890 "\n"
37891 msgstr ""
37892
37893 #. type: textblock
37894 #: ../src/guestfs.pod:1952
37895 msgid ""
37896 "This is the type of the event callback function that you have to provide."
37897 msgstr ""
37898
37899 #. type: textblock
37900 #: ../src/guestfs.pod:1955
37901 msgid ""
37902 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37903 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37904 "handle, and C<flags> which in the current API you should ignore."
37905 msgstr ""
37906
37907 #. type: textblock
37908 #: ../src/guestfs.pod:1959
37909 msgid ""
37910 "The remaining parameters contain the event payload (if any).  Each event may "
37911 "contain a payload, which usually relates to the event class, but for future "
37912 "proofing your code should be written to handle any payload for any event "
37913 "class."
37914 msgstr ""
37915
37916 #. type: textblock
37917 #: ../src/guestfs.pod:1964
37918 msgid ""
37919 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37920 "there is no message buffer).  Note that this message buffer can contain "
37921 "arbitrary 8 bit data, including NUL bytes."
37922 msgstr ""
37923
37924 #. type: textblock
37925 #: ../src/guestfs.pod:1968
37926 msgid ""
37927 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37928 "moment this is only used for progress messages."
37929 msgstr ""
37930
37931 #. type: =head3
37932 #: ../src/guestfs.pod:1971
37933 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37934 msgstr ""
37935
37936 #. type: textblock
37937 #: ../src/guestfs.pod:1973
37938 msgid ""
37939 "One motivation for the generic event API was to allow GUI programs to "
37940 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37941 "unconditionally to C<stderr>."
37942 msgstr ""
37943
37944 #. type: textblock
37945 #: ../src/guestfs.pod:1977
37946 msgid ""
37947 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37948 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37949 "messages are not events; you must capture error messages separately)."
37950 msgstr ""
37951
37952 #. type: textblock
37953 #: ../src/guestfs.pod:1982
37954 msgid ""
37955 "Programs have to set up a callback to capture the classes of events of "
37956 "interest:"
37957 msgstr ""
37958
37959 #. type: verbatim
37960 #: ../src/guestfs.pod:1985
37961 #, no-wrap
37962 msgid ""
37963 " int eh =\n"
37964 "   guestfs_set_event_callback\n"
37965 "     (g, message_callback,\n"
37966 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37967 "      GUESTFS_EVENT_TRACE,\n"
37968 "      0, NULL) == -1)\n"
37969 " if (eh == -1) {\n"
37970 "   // handle error in the usual way\n"
37971 " }\n"
37972 "\n"
37973 msgstr ""
37974
37975 #. type: textblock
37976 #: ../src/guestfs.pod:1995
37977 msgid ""
37978 "The callback can then direct messages to the appropriate place.  In this "
37979 "example, messages are directed to syslog:"
37980 msgstr ""
37981
37982 #. type: verbatim
37983 #: ../src/guestfs.pod:1998
37984 #, no-wrap
37985 msgid ""
37986 " static void\n"
37987 " message_callback (\n"
37988 "         guestfs_h *g,\n"
37989 "         void *opaque,\n"
37990 "         uint64_t event,\n"
37991 "         int event_handle,\n"
37992 "         int flags,\n"
37993 "         const char *buf, size_t buf_len,\n"
37994 "         const uint64_t *array, size_t array_len)\n"
37995 " {\n"
37996 "   const int priority = LOG_USER|LOG_INFO;\n"
37997 "   if (buf_len > 0)\n"
37998 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37999 " }\n"
38000 "\n"
38001 msgstr ""
38002
38003 #. type: =head1
38004 #: ../src/guestfs.pod:2013
38005 msgid "CANCELLING LONG TRANSFERS"
38006 msgstr ""
38007
38008 #. type: textblock
38009 #: ../src/guestfs.pod:2015
38010 msgid ""
38011 "Some operations can be cancelled by the caller while they are in progress.  "
38012 "Currently only operations that involve uploading or downloading data can be "
38013 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38014 "parameters in the generator)."
38015 msgstr ""
38016
38017 #. type: =head2
38018 #: ../src/guestfs.pod:2020
38019 msgid "guestfs_user_cancel"
38020 msgstr ""
38021
38022 #. type: verbatim
38023 #: ../src/guestfs.pod:2022
38024 #, no-wrap
38025 msgid ""
38026 " void guestfs_user_cancel (guestfs_h *g);\n"
38027 "\n"
38028 msgstr ""
38029
38030 #. type: textblock
38031 #: ../src/guestfs.pod:2024
38032 msgid ""
38033 "C<guestfs_user_cancel> cancels the current upload or download operation."
38034 msgstr ""
38035
38036 #. type: textblock
38037 #: ../src/guestfs.pod:2027
38038 msgid ""
38039 "Unlike most other libguestfs calls, this function is signal safe and thread "
38040 "safe.  You can call it from a signal handler or from another thread, without "
38041 "needing to do any locking."
38042 msgstr ""
38043
38044 #. type: textblock
38045 #: ../src/guestfs.pod:2031
38046 msgid ""
38047 "The transfer that was in progress (if there is one) will stop shortly "
38048 "afterwards, and will return an error.  The errno (see L</"
38049 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38050 "out if the operation was cancelled or failed because of another error."
38051 msgstr ""
38052
38053 #. type: textblock
38054 #: ../src/guestfs.pod:2037
38055 msgid ""
38056 "No cleanup is performed: for example, if a file was being uploaded then "
38057 "after cancellation there may be a partially uploaded file.  It is the "
38058 "caller's responsibility to clean up if necessary."
38059 msgstr ""
38060
38061 #. type: textblock
38062 #: ../src/guestfs.pod:2041
38063 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38064 msgstr ""
38065
38066 #. type: textblock
38067 #: ../src/guestfs.pod:2043
38068 msgid ""
38069 "In an interactive text-based program, you might call it from a C<SIGINT> "
38070 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38071 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38072 "receive the C<^C> signal)."
38073 msgstr ""
38074
38075 #. type: textblock
38076 #: ../src/guestfs.pod:2048
38077 msgid ""
38078 "In a graphical program, when the main thread is displaying a progress bar "
38079 "with a cancel button, wire up the cancel button to call this function."
38080 msgstr ""
38081
38082 #. type: =head1
38083 #: ../src/guestfs.pod:2052
38084 msgid "PRIVATE DATA AREA"
38085 msgstr ""
38086
38087 #. type: textblock
38088 #: ../src/guestfs.pod:2054
38089 msgid ""
38090 "You can attach named pieces of private data to the libguestfs handle, fetch "
38091 "them by name, and walk over them, for the lifetime of the handle.  This is "
38092 "called the private data area and is only available from the C API."
38093 msgstr ""
38094
38095 #. type: textblock
38096 #: ../src/guestfs.pod:2059
38097 msgid "To attach a named piece of data, use the following call:"
38098 msgstr ""
38099
38100 #. type: verbatim
38101 #: ../src/guestfs.pod:2061
38102 #, no-wrap
38103 msgid ""
38104 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38105 "\n"
38106 msgstr ""
38107
38108 #. type: textblock
38109 #: ../src/guestfs.pod:2063
38110 msgid ""
38111 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38112 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38113 "overwritten."
38114 msgstr ""
38115
38116 #. type: textblock
38117 #: ../src/guestfs.pod:2067
38118 msgid ""
38119 "You can use any C<key> you want, but your key should I<not> start with an "
38120 "underscore character.  Keys beginning with an underscore character are "
38121 "reserved for internal libguestfs purposes (eg. for implementing language "
38122 "bindings).  It is recommended that you prefix the key with some unique "
38123 "string to avoid collisions with other users."
38124 msgstr ""
38125
38126 #. type: textblock
38127 #: ../src/guestfs.pod:2073
38128 msgid "To retrieve the pointer, use:"
38129 msgstr ""
38130
38131 #. type: verbatim
38132 #: ../src/guestfs.pod:2075
38133 #, no-wrap
38134 msgid ""
38135 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38136 "\n"
38137 msgstr ""
38138
38139 #. type: textblock
38140 #: ../src/guestfs.pod:2077
38141 msgid ""
38142 "This function returns C<NULL> if either no data is found associated with "
38143 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38144 "C<NULL>."
38145 msgstr ""
38146
38147 #. type: textblock
38148 #: ../src/guestfs.pod:2081
38149 msgid ""
38150 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38151 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38152 "all.  In particular, libguestfs does I<not> try to free the data when the "
38153 "handle is closed.  If the data must be freed, then the caller must either "
38154 "free it before calling L</guestfs_close> or must set up a close callback to "
38155 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38156 msgstr ""
38157
38158 #. type: textblock
38159 #: ../src/guestfs.pod:2088
38160 msgid "To walk over all entries, use these two functions:"
38161 msgstr ""
38162
38163 #. type: verbatim
38164 #: ../src/guestfs.pod:2090
38165 #, no-wrap
38166 msgid ""
38167 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38168 "\n"
38169 msgstr ""
38170
38171 #. type: verbatim
38172 #: ../src/guestfs.pod:2092
38173 #, no-wrap
38174 msgid ""
38175 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38176 "\n"
38177 msgstr ""
38178
38179 #. type: textblock
38180 #: ../src/guestfs.pod:2094
38181 msgid ""
38182 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38183 "not have any particular meaning -- keys are not returned in any defined "
38184 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38185 "corresponding data pointer is returned from the function.  C<NULL> is "
38186 "returned if there are no keys stored in the handle."
38187 msgstr ""
38188
38189 #. type: textblock
38190 #: ../src/guestfs.pod:2100
38191 msgid ""
38192 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38193 "value of this function is also C<NULL> is there are no further entries to "
38194 "return."
38195 msgstr ""
38196
38197 #. type: textblock
38198 #: ../src/guestfs.pod:2104
38199 msgid "Notes about walking over entries:"
38200 msgstr ""
38201
38202 #. type: textblock
38203 #: ../src/guestfs.pod:2110
38204 msgid ""
38205 "You must not call C<guestfs_set_private> while walking over the entries."
38206 msgstr ""
38207
38208 #. type: textblock
38209 #: ../src/guestfs.pod:2115
38210 msgid ""
38211 "The handle maintains an internal iterator which is reset when you call "
38212 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38213 "call C<guestfs_set_private>."
38214 msgstr ""
38215
38216 #. type: textblock
38217 #: ../src/guestfs.pod:2121
38218 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38219 msgstr ""
38220
38221 #. type: verbatim
38222 #: ../src/guestfs.pod:2123
38223 #, no-wrap
38224 msgid ""
38225 " guestfs_set_private (g, key, NULL);\n"
38226 "\n"
38227 msgstr ""
38228
38229 #. type: textblock
38230 #: ../src/guestfs.pod:2125
38231 msgid "then that C<key> is not returned when walking."
38232 msgstr ""
38233
38234 #. type: textblock
38235 #: ../src/guestfs.pod:2129
38236 msgid ""
38237 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38238 "C<guestfs_next_private> or C<guestfs_set_private>."
38239 msgstr ""
38240
38241 #. type: textblock
38242 #: ../src/guestfs.pod:2135
38243 msgid ""
38244 "The following example code shows how to print all keys and data pointers "
38245 "that are associated with the handle C<g>:"
38246 msgstr ""
38247
38248 #. type: verbatim
38249 #: ../src/guestfs.pod:2138
38250 #, no-wrap
38251 msgid ""
38252 " const char *key;\n"
38253 " void *data = guestfs_first_private (g, &key);\n"
38254 " while (data != NULL)\n"
38255 "   {\n"
38256 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38257 "     data = guestfs_next_private (g, &key);\n"
38258 "   }\n"
38259 "\n"
38260 msgstr ""
38261
38262 #. type: textblock
38263 #: ../src/guestfs.pod:2146
38264 msgid ""
38265 "More commonly you are only interested in keys that begin with an application-"
38266 "specific prefix C<foo_>.  Modify the loop like so:"
38267 msgstr ""
38268
38269 #. type: verbatim
38270 #: ../src/guestfs.pod:2149
38271 #, no-wrap
38272 msgid ""
38273 " const char *key;\n"
38274 " void *data = guestfs_first_private (g, &key);\n"
38275 " while (data != NULL)\n"
38276 "   {\n"
38277 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38278 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38279 "     data = guestfs_next_private (g, &key);\n"
38280 "   }\n"
38281 "\n"
38282 msgstr ""
38283
38284 #. type: textblock
38285 #: ../src/guestfs.pod:2158
38286 msgid ""
38287 "If you need to modify keys while walking, then you have to jump back to the "
38288 "beginning of the loop.  For example, to delete all keys prefixed with "
38289 "C<foo_>:"
38290 msgstr ""
38291
38292 #. type: verbatim
38293 #: ../src/guestfs.pod:2162
38294 #, no-wrap
38295 msgid ""
38296 "  const char *key;\n"
38297 "  void *data;\n"
38298 " again:\n"
38299 "  data = guestfs_first_private (g, &key);\n"
38300 "  while (data != NULL)\n"
38301 "    {\n"
38302 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38303 "        {\n"
38304 "          guestfs_set_private (g, key, NULL);\n"
38305 "          /* note that 'key' pointer is now invalid, and so is\n"
38306 "             the internal iterator */\n"
38307 "          goto again;\n"
38308 "        }\n"
38309 "      data = guestfs_next_private (g, &key);\n"
38310 "    }\n"
38311 "\n"
38312 msgstr ""
38313
38314 #. type: textblock
38315 #: ../src/guestfs.pod:2178
38316 msgid ""
38317 "Note that the above loop is guaranteed to terminate because the keys are "
38318 "being deleted, but other manipulations of keys within the loop might not "
38319 "terminate unless you also maintain an indication of which keys have been "
38320 "visited."
38321 msgstr ""
38322
38323 #. type: =head1
38324 #: ../src/guestfs.pod:2183
38325 msgid "SYSTEMTAP"
38326 msgstr ""
38327
38328 #. type: textblock
38329 #: ../src/guestfs.pod:2185
38330 msgid ""
38331 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38332 "true of any library, not just libguestfs.  However libguestfs also contains "
38333 "static markers to help in probing internal operations."
38334 msgstr ""
38335
38336 #. type: textblock
38337 #: ../src/guestfs.pod:2189
38338 msgid "You can list all the static markers by doing:"
38339 msgstr ""
38340
38341 #. type: verbatim
38342 #: ../src/guestfs.pod:2191
38343 #, no-wrap
38344 msgid ""
38345 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38346 "              .provider(\"guestfs\").mark(\"*\")'\n"
38347 "\n"
38348 msgstr ""
38349
38350 #. type: textblock
38351 #: ../src/guestfs.pod:2194
38352 msgid ""
38353 "B<Note:> These static markers are I<not> part of the stable API and may "
38354 "change in future versions."
38355 msgstr ""
38356
38357 #. type: =head2
38358 #: ../src/guestfs.pod:2197
38359 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38360 msgstr ""
38361
38362 #. type: textblock
38363 #: ../src/guestfs.pod:2199
38364 msgid ""
38365 "This script contains examples of displaying both the static markers and some "
38366 "ordinary C entry points:"
38367 msgstr ""
38368
38369 #. type: verbatim
38370 #: ../src/guestfs.pod:2202
38371 #, no-wrap
38372 msgid ""
38373 " global last;\n"
38374 " \n"
38375 msgstr ""
38376
38377 #. type: verbatim
38378 #: ../src/guestfs.pod:2204
38379 #, no-wrap
38380 msgid ""
38381 " function display_time () {\n"
38382 "       now = gettimeofday_us ();\n"
38383 "       delta = 0;\n"
38384 "       if (last > 0)\n"
38385 "             delta = now - last;\n"
38386 "       last = now;\n"
38387 " \n"
38388 msgstr ""
38389
38390 #. type: verbatim
38391 #: ../src/guestfs.pod:2211
38392 #, no-wrap
38393 msgid ""
38394 "       printf (\"%d (+%d):\", now, delta);\n"
38395 " }\n"
38396 " \n"
38397 msgstr ""
38398
38399 #. type: verbatim
38400 #: ../src/guestfs.pod:2214
38401 #, no-wrap
38402 msgid ""
38403 " probe begin {\n"
38404 "       last = 0;\n"
38405 "       printf (\"ready\\n\");\n"
38406 " }\n"
38407 " \n"
38408 msgstr ""
38409
38410 #. type: verbatim
38411 #: ../src/guestfs.pod:2219
38412 #, no-wrap
38413 msgid ""
38414 " /* Display all calls to static markers. */\n"
38415 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38416 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38417 "       display_time();\n"
38418 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38419 " }\n"
38420 " \n"
38421 msgstr ""
38422
38423 #. type: verbatim
38424 #: ../src/guestfs.pod:2226
38425 #, no-wrap
38426 msgid ""
38427 " /* Display all calls to guestfs_mkfs* functions. */\n"
38428 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38429 "           .function(\"guestfs_mkfs*\") ? {\n"
38430 "       display_time();\n"
38431 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38432 " }\n"
38433 "\n"
38434 msgstr ""
38435
38436 #. type: textblock
38437 #: ../src/guestfs.pod:2233
38438 msgid ""
38439 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38440 "program.  Note that you either have to be root, or you have to add yourself "
38441 "to several special stap groups.  Consult the systemtap documentation for "
38442 "more information."
38443 msgstr ""
38444
38445 #. type: verbatim
38446 #: ../src/guestfs.pod:2238
38447 #, no-wrap
38448 msgid ""
38449 " # stap /tmp/test.stap\n"
38450 " ready\n"
38451 "\n"
38452 msgstr ""
38453
38454 #. type: textblock
38455 #: ../src/guestfs.pod:2241
38456 msgid "In another terminal, run a guestfish command such as this:"
38457 msgstr ""
38458
38459 #. type: textblock
38460 #: ../src/guestfs.pod:2245
38461 msgid "In the first terminal, stap trace output similar to this is shown:"
38462 msgstr ""
38463
38464 #. type: verbatim
38465 #: ../src/guestfs.pod:2247
38466 #, no-wrap
38467 msgid ""
38468 " 1318248056692655 (+0):\tlaunch_start\n"
38469 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38470 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38471 " 1318248056838059 (+19774):     launch_run_qemu\n"
38472 " 1318248061071167 (+4233108):   launch_end\n"
38473 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
38474 "\n"
38475 msgstr ""
38476
38477 #. type: =end
38478 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
38479 msgid "html"
38480 msgstr ""
38481
38482 #. type: textblock
38483 #: ../src/guestfs.pod:2256
38484 msgid ""
38485 "<!-- old anchor for the next section --> <a name="
38486 "\"state_machine_and_low_level_event_api\"/>"
38487 msgstr ""
38488
38489 #. type: =head1
38490 #: ../src/guestfs.pod:2261
38491 msgid "ARCHITECTURE"
38492 msgstr ""
38493
38494 #. type: textblock
38495 #: ../src/guestfs.pod:2263
38496 msgid ""
38497 "Internally, libguestfs is implemented by running an appliance (a special "
38498 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38499 "process of the main program."
38500 msgstr ""
38501
38502 #. type: verbatim
38503 #: ../src/guestfs.pod:2267
38504 #, no-wrap
38505 msgid ""
38506 "  ___________________\n"
38507 " /                   \\\n"
38508 " | main program      |\n"
38509 " |                   |\n"
38510 " |                   |           child process / appliance\n"
38511 " |                   |           __________________________\n"
38512 " |                   |          / qemu                     \\\n"
38513 " +-------------------+   RPC    |      +-----------------+ |\n"
38514 " | libguestfs     <--------------------> guestfsd        | |\n"
38515 " |                   |          |      +-----------------+ |\n"
38516 " \\___________________/          |      | Linux kernel    | |\n"
38517 "                                |      +--^--------------+ |\n"
38518 "                                \\_________|________________/\n"
38519 "                                          |\n"
38520 "                                   _______v______\n"
38521 "                                  /              \\\n"
38522 "                                  | Device or    |\n"
38523 "                                  | disk image   |\n"
38524 "                                  \\______________/\n"
38525 "\n"
38526 msgstr ""
38527
38528 #. type: textblock
38529 #: ../src/guestfs.pod:2287
38530 msgid ""
38531 "The library, linked to the main program, creates the child process and hence "
38532 "the appliance in the L</guestfs_launch> function."
38533 msgstr ""
38534
38535 #. type: textblock
38536 #: ../src/guestfs.pod:2290
38537 msgid ""
38538 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38539 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38540 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
38541 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
38542 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
38543 "attached to the qemu process which translates device access by the "
38544 "appliance's Linux kernel into accesses to the image."
38545 msgstr ""
38546
38547 #. type: textblock
38548 #: ../src/guestfs.pod:2299
38549 msgid ""
38550 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
38551 "Although the disk image you are attached to might also be used by some "
38552 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
38553 "care if both libguestfs's qemu process and your virtual machine are trying "
38554 "to update the disk image at the same time, since these usually results in "
38555 "massive disk corruption)."
38556 msgstr ""
38557
38558 #. type: =head1
38559 #: ../src/guestfs.pod:2306
38560 msgid "STATE MACHINE"
38561 msgstr ""
38562
38563 #. type: textblock
38564 #: ../src/guestfs.pod:2308
38565 msgid "libguestfs uses a state machine to model the child process:"
38566 msgstr ""
38567
38568 #. type: verbatim
38569 #: ../src/guestfs.pod:2310
38570 #, no-wrap
38571 msgid ""
38572 "                         |\n"
38573 "                    guestfs_create\n"
38574 "                         |\n"
38575 "                         |\n"
38576 "                     ____V_____\n"
38577 "                    /          \\\n"
38578 "                    |  CONFIG  |\n"
38579 "                    \\__________/\n"
38580 "                     ^ ^   ^  \\\n"
38581 "                    /  |    \\  \\ guestfs_launch\n"
38582 "                   /   |    _\\__V______\n"
38583 "                  /    |   /           \\\n"
38584 "                 /     |   | LAUNCHING |\n"
38585 "                /      |   \\___________/\n"
38586 "               /       |       /\n"
38587 "              /        |  guestfs_launch\n"
38588 "             /         |     /\n"
38589 "    ______  /        __|____V\n"
38590 "   /      \\ ------> /        \\\n"
38591 "   | BUSY |         | READY  |\n"
38592 "   \\______/ <------ \\________/\n"
38593 "\n"
38594 msgstr ""
38595
38596 #. type: textblock
38597 #: ../src/guestfs.pod:2332
38598 msgid ""
38599 "The normal transitions are (1) CONFIG (when the handle is created, but there "
38600 "is no child process), (2) LAUNCHING (when the child process is booting up), "
38601 "(3) alternating between READY and BUSY as commands are issued to, and "
38602 "carried out by, the child process."
38603 msgstr ""
38604
38605 #. type: textblock
38606 #: ../src/guestfs.pod:2337
38607 msgid ""
38608 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38609 "asynchronously at any time (eg. due to some internal error), and that causes "
38610 "the state to transition back to CONFIG."
38611 msgstr ""
38612
38613 #. type: textblock
38614 #: ../src/guestfs.pod:2341
38615 msgid ""
38616 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38617 "issued when in the CONFIG state."
38618 msgstr ""
38619
38620 #. type: textblock
38621 #: ../src/guestfs.pod:2344
38622 msgid ""
38623 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
38624 "L</guestfs_launch> blocks until the child process is READY to accept "
38625 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
38626 "moves the state from CONFIG to LAUNCHING while it is running."
38627 msgstr ""
38628
38629 #. type: textblock
38630 #: ../src/guestfs.pod:2350
38631 msgid ""
38632 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38633 "state.  These API calls block waiting for the command to be carried out (ie. "
38634 "the state to transition to BUSY and then back to READY).  There are no non-"
38635 "blocking versions, and no way to issue more than one command per handle at "
38636 "the same time."
38637 msgstr ""
38638
38639 #. type: textblock
38640 #: ../src/guestfs.pod:2356
38641 msgid ""
38642 "Finally, the child process sends asynchronous messages back to the main "
38643 "program, such as kernel log messages.  You can register a callback to "
38644 "receive these messages."
38645 msgstr ""
38646
38647 #. type: =head1
38648 #: ../src/guestfs.pod:2360
38649 msgid "INTERNALS"
38650 msgstr ""
38651
38652 #. type: =head2
38653 #: ../src/guestfs.pod:2362
38654 msgid "APPLIANCE BOOT PROCESS"
38655 msgstr ""
38656
38657 #. type: textblock
38658 #: ../src/guestfs.pod:2364
38659 msgid ""
38660 "This process has evolved and continues to evolve.  The description here "
38661 "corresponds only to the current version of libguestfs and is provided for "
38662 "information only."
38663 msgstr ""
38664
38665 #. type: textblock
38666 #: ../src/guestfs.pod:2368
38667 msgid ""
38668 "In order to follow the stages involved below, enable libguestfs debugging "
38669 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38670 msgstr ""
38671
38672 #. type: =item
38673 #: ../src/guestfs.pod:2373
38674 msgid "Create the appliance"
38675 msgstr ""
38676
38677 #. type: textblock
38678 #: ../src/guestfs.pod:2375
38679 msgid ""
38680 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38681 "initrd and the appliance."
38682 msgstr ""
38683
38684 #. type: textblock
38685 #: ../src/guestfs.pod:2378
38686 msgid ""
38687 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
38688 "directory if C<TMPDIR> is set)."
38689 msgstr ""
38690
38691 #. type: textblock
38692 #: ../src/guestfs.pod:2381
38693 msgid ""
38694 "For a complete description of how the appliance is created and cached, read "
38695 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38696 msgstr ""
38697
38698 #. type: =item
38699 #: ../src/guestfs.pod:2385
38700 msgid "Start qemu and boot the kernel"
38701 msgstr ""
38702
38703 #. type: textblock
38704 #: ../src/guestfs.pod:2387
38705 msgid "qemu is invoked to boot the kernel."
38706 msgstr ""
38707
38708 #. type: =item
38709 #: ../src/guestfs.pod:2389
38710 msgid "Run the initrd"
38711 msgstr ""
38712
38713 #. type: textblock
38714 #: ../src/guestfs.pod:2391
38715 msgid ""
38716 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
38717 "appliance.  The purpose of the initrd is to load enough kernel modules in "
38718 "order that the appliance itself can be mounted and started."
38719 msgstr ""
38720
38721 #. type: textblock
38722 #: ../src/guestfs.pod:2395
38723 msgid ""
38724 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
38725 "initrd>."
38726 msgstr ""
38727
38728 #. type: textblock
38729 #: ../src/guestfs.pod:2398
38730 msgid ""
38731 "When the initrd has started you will see messages showing that kernel "
38732 "modules are being loaded, similar to this:"
38733 msgstr ""
38734
38735 #. type: verbatim
38736 #: ../src/guestfs.pod:2401
38737 #, no-wrap
38738 msgid ""
38739 " febootstrap: ext2 mini initrd starting up\n"
38740 " febootstrap: mounting /sys\n"
38741 " febootstrap: internal insmod libcrc32c.ko\n"
38742 " febootstrap: internal insmod crc32c-intel.ko\n"
38743 "\n"
38744 msgstr ""
38745
38746 #. type: =item
38747 #: ../src/guestfs.pod:2406
38748 msgid "Find and mount the appliance device"
38749 msgstr ""
38750
38751 #. type: textblock
38752 #: ../src/guestfs.pod:2408
38753 msgid ""
38754 "The appliance is a sparse file containing an ext2 filesystem which contains "
38755 "a familiar (although reduced in size) Linux operating system.  It would "
38756 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38757 msgstr ""
38758
38759 #. type: textblock
38760 #: ../src/guestfs.pod:2412
38761 msgid ""
38762 "The regular disks being inspected by libguestfs are the first devices "
38763 "exposed by qemu (eg. as C</dev/vda>)."
38764 msgstr ""
38765
38766 #. type: textblock
38767 #: ../src/guestfs.pod:2415
38768 msgid ""
38769 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38770 "there was only one regular disk)."
38771 msgstr ""
38772
38773 #. type: textblock
38774 #: ../src/guestfs.pod:2418
38775 msgid ""
38776 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38777 "and switch root into the appliance, and run C</init> from the appliance."
38778 msgstr ""
38779
38780 #. type: textblock
38781 #: ../src/guestfs.pod:2422
38782 msgid "If this works successfully you will see messages such as:"
38783 msgstr ""
38784
38785 #. type: verbatim
38786 #: ../src/guestfs.pod:2424
38787 #, no-wrap
38788 msgid ""
38789 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38790 " febootstrap: creating /dev/root as block special 252:16\n"
38791 " febootstrap: mounting new root on /root\n"
38792 " febootstrap: chroot\n"
38793 " Starting /init script ...\n"
38794 "\n"
38795 msgstr ""
38796
38797 #. type: textblock
38798 #: ../src/guestfs.pod:2430
38799 msgid ""
38800 "Note that C<Starting /init script ...> indicates that the appliance's init "
38801 "script is now running."
38802 msgstr ""
38803
38804 #. type: =item
38805 #: ../src/guestfs.pod:2433
38806 msgid "Initialize the appliance"
38807 msgstr ""
38808
38809 #. type: textblock
38810 #: ../src/guestfs.pod:2435
38811 msgid ""
38812 "The appliance itself now initializes itself.  This involves starting certain "
38813 "processes like C<udev>, possibly printing some debug information, and "
38814 "finally running the daemon (C<guestfsd>)."
38815 msgstr ""
38816
38817 #. type: =item
38818 #: ../src/guestfs.pod:2439
38819 msgid "The daemon"
38820 msgstr ""
38821
38822 #. type: textblock
38823 #: ../src/guestfs.pod:2441
38824 msgid ""
38825 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38826 "should see:"
38827 msgstr ""
38828
38829 #. type: verbatim
38830 #: ../src/guestfs.pod:2444
38831 #, no-wrap
38832 msgid ""
38833 " verbose daemon enabled\n"
38834 "\n"
38835 msgstr ""
38836
38837 #. type: textblock
38838 #: ../src/guestfs.pod:2446
38839 msgid ""
38840 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38841 "connected on the other end to the library."
38842 msgstr ""
38843
38844 #. type: textblock
38845 #: ../src/guestfs.pod:2449
38846 msgid ""
38847 "The daemon connects to this port (and hence to the library) and sends a four "
38848 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38849 "protocol (see below)."
38850 msgstr ""
38851
38852 #. type: =head2
38853 #: ../src/guestfs.pod:2455
38854 msgid "COMMUNICATION PROTOCOL"
38855 msgstr ""
38856
38857 #. type: textblock
38858 #: ../src/guestfs.pod:2457
38859 msgid ""
38860 "Don't rely on using this protocol directly.  This section documents how it "
38861 "currently works, but it may change at any time."
38862 msgstr ""
38863
38864 #. type: textblock
38865 #: ../src/guestfs.pod:2460
38866 msgid ""
38867 "The protocol used to talk between the library and the daemon running inside "
38868 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38869 "1014, RFC 1832, RFC 4506)."
38870 msgstr ""
38871
38872 #. type: textblock
38873 #: ../src/guestfs.pod:2464
38874 msgid ""
38875 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38876 "this file is automatically generated)."
38877 msgstr ""
38878
38879 #. type: textblock
38880 #: ../src/guestfs.pod:2467
38881 msgid ""
38882 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38883 "and C<FileOut> parameters, which are handled with very simple request/reply "
38884 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
38885 "parameters, which use the same request and reply messages, but they may also "
38886 "be followed by files sent using a chunked encoding."
38887 msgstr ""
38888
38889 #. type: =head3
38890 #: ../src/guestfs.pod:2474
38891 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38892 msgstr ""
38893
38894 #. type: textblock
38895 #: ../src/guestfs.pod:2476
38896 msgid "For ordinary functions, the request message is:"
38897 msgstr ""
38898
38899 #. type: verbatim
38900 #: ../src/guestfs.pod:2478
38901 #, no-wrap
38902 msgid ""
38903 " total length (header + arguments,\n"
38904 "      but not including the length word itself)\n"
38905 " struct guestfs_message_header (encoded as XDR)\n"
38906 " struct guestfs_<foo>_args (encoded as XDR)\n"
38907 "\n"
38908 msgstr ""
38909
38910 #. type: textblock
38911 #: ../src/guestfs.pod:2483
38912 msgid ""
38913 "The total length field allows the daemon to allocate a fixed size buffer "
38914 "into which it slurps the rest of the message.  As a result, the total length "
38915 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38916 "effective size of any request is limited to somewhere under this size."
38917 msgstr ""
38918
38919 #. type: textblock
38920 #: ../src/guestfs.pod:2489
38921 msgid ""
38922 "Note also that many functions don't take any arguments, in which case the "
38923 "C<guestfs_I<foo>_args> is completely omitted."
38924 msgstr ""
38925
38926 #. type: textblock
38927 #: ../src/guestfs.pod:2492
38928 msgid ""
38929 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38930 "receiver knows what type of args structure to expect, or none at all."
38931 msgstr ""
38932
38933 #. type: textblock
38934 #: ../src/guestfs.pod:2496
38935 msgid ""
38936 "For functions that take optional arguments, the optional arguments are "
38937 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38938 "arguments.  A bitmask in the header indicates which optional arguments are "
38939 "meaningful.  The bitmask is also checked to see if it contains bits set "
38940 "which the daemon does not know about (eg. if more optional arguments were "
38941 "added in a later version of the library), and this causes the call to be "
38942 "rejected."
38943 msgstr ""
38944
38945 #. type: textblock
38946 #: ../src/guestfs.pod:2504
38947 msgid "The reply message for ordinary functions is:"
38948 msgstr ""
38949
38950 #. type: verbatim
38951 #: ../src/guestfs.pod:2506
38952 #, no-wrap
38953 msgid ""
38954 " total length (header + ret,\n"
38955 "      but not including the length word itself)\n"
38956 " struct guestfs_message_header (encoded as XDR)\n"
38957 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38958 "\n"
38959 msgstr ""
38960
38961 #. type: textblock
38962 #: ../src/guestfs.pod:2511
38963 msgid ""
38964 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38965 "functions that return no formal return values."
38966 msgstr ""
38967
38968 #. type: textblock
38969 #: ../src/guestfs.pod:2514
38970 msgid ""
38971 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38972 msgstr ""
38973
38974 #. type: textblock
38975 #: ../src/guestfs.pod:2517
38976 msgid ""
38977 "In the case of an error, a flag is set in the header, and the reply message "
38978 "is slightly changed:"
38979 msgstr ""
38980
38981 #. type: verbatim
38982 #: ../src/guestfs.pod:2520
38983 #, no-wrap
38984 msgid ""
38985 " total length (header + error,\n"
38986 "      but not including the length word itself)\n"
38987 " struct guestfs_message_header (encoded as XDR)\n"
38988 " struct guestfs_message_error (encoded as XDR)\n"
38989 "\n"
38990 msgstr ""
38991
38992 #. type: textblock
38993 #: ../src/guestfs.pod:2525
38994 msgid ""
38995 "The C<guestfs_message_error> structure contains the error message as a "
38996 "string."
38997 msgstr ""
38998
38999 #. type: =head3
39000 #: ../src/guestfs.pod:2528
39001 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39002 msgstr ""
39003
39004 #. type: textblock
39005 #: ../src/guestfs.pod:2530
39006 msgid ""
39007 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39008 "The normal request message is sent (see above).  However this is followed by "
39009 "a sequence of file chunks."
39010 msgstr ""
39011
39012 #. type: verbatim
39013 #: ../src/guestfs.pod:2534
39014 #, no-wrap
39015 msgid ""
39016 " total length (header + arguments,\n"
39017 "      but not including the length word itself,\n"
39018 "      and not including the chunks)\n"
39019 " struct guestfs_message_header (encoded as XDR)\n"
39020 " struct guestfs_<foo>_args (encoded as XDR)\n"
39021 " sequence of chunks for FileIn param #0\n"
39022 " sequence of chunks for FileIn param #1 etc.\n"
39023 "\n"
39024 msgstr ""
39025
39026 #. type: textblock
39027 #: ../src/guestfs.pod:2542
39028 msgid "The \"sequence of chunks\" is:"
39029 msgstr ""
39030
39031 #. type: verbatim
39032 #: ../src/guestfs.pod:2544
39033 #, no-wrap
39034 msgid ""
39035 " length of chunk (not including length word itself)\n"
39036 " struct guestfs_chunk (encoded as XDR)\n"
39037 " length of chunk\n"
39038 " struct guestfs_chunk (encoded as XDR)\n"
39039 "   ...\n"
39040 " length of chunk\n"
39041 " struct guestfs_chunk (with data.data_len == 0)\n"
39042 "\n"
39043 msgstr ""
39044
39045 #. type: textblock
39046 #: ../src/guestfs.pod:2552
39047 msgid ""
39048 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39049 "is set in the final chunk to indicate either successful completion or early "
39050 "cancellation."
39051 msgstr ""
39052
39053 #. type: textblock
39054 #: ../src/guestfs.pod:2556
39055 msgid ""
39056 "At time of writing there are no functions that have more than one FileIn "
39057 "parameter.  However this is (theoretically) supported, by sending the "
39058 "sequence of chunks for each FileIn parameter one after another (from left to "
39059 "right)."
39060 msgstr ""
39061
39062 #. type: textblock
39063 #: ../src/guestfs.pod:2561
39064 msgid ""
39065 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39066 "transfer.  The library does this by sending a chunk with a special flag set "
39067 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39068 "RPC, does I<not> send any reply, and goes back to reading the next request."
39069 msgstr ""
39070
39071 #. type: textblock
39072 #: ../src/guestfs.pod:2567
39073 msgid ""
39074 "The daemon may also cancel.  It does this by writing a special word "
39075 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39076 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39077 "cancel chunk).  The special word is chosen so that even if cancellation "
39078 "happens right at the end of the transfer (after the library has finished "
39079 "writing and has started listening for the reply), the \"spurious\" cancel "
39080 "flag will not be confused with the reply message."
39081 msgstr ""
39082
39083 #. type: textblock
39084 #: ../src/guestfs.pod:2576
39085 msgid ""
39086 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39087 "limit), and also files where the size is not known in advance (eg. from "
39088 "pipes or sockets).  However the chunks are rather small "
39089 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39090 "to keep much in memory."
39091 msgstr ""
39092
39093 #. type: =head3
39094 #: ../src/guestfs.pod:2582
39095 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39096 msgstr ""
39097
39098 #. type: textblock
39099 #: ../src/guestfs.pod:2584
39100 msgid ""
39101 "The protocol for FileOut parameters is exactly the same as for FileIn "
39102 "parameters, but with the roles of daemon and library reversed."
39103 msgstr ""
39104
39105 #. type: verbatim
39106 #: ../src/guestfs.pod:2587
39107 #, no-wrap
39108 msgid ""
39109 " total length (header + ret,\n"
39110 "      but not including the length word itself,\n"
39111 "      and not including the chunks)\n"
39112 " struct guestfs_message_header (encoded as XDR)\n"
39113 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39114 " sequence of chunks for FileOut param #0\n"
39115 " sequence of chunks for FileOut param #1 etc.\n"
39116 "\n"
39117 msgstr ""
39118
39119 #. type: =head3
39120 #: ../src/guestfs.pod:2595
39121 msgid "INITIAL MESSAGE"
39122 msgstr ""
39123
39124 #. type: textblock
39125 #: ../src/guestfs.pod:2597
39126 msgid ""
39127 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39128 "which indicates that the guest and daemon is alive.  This is what L</"
39129 "guestfs_launch> waits for."
39130 msgstr ""
39131
39132 #. type: =head3
39133 #: ../src/guestfs.pod:2601
39134 msgid "PROGRESS NOTIFICATION MESSAGES"
39135 msgstr ""
39136
39137 #. type: textblock
39138 #: ../src/guestfs.pod:2603
39139 msgid ""
39140 "The daemon may send progress notification messages at any time.  These are "
39141 "distinguished by the normal length word being replaced by "
39142 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39143 msgstr ""
39144
39145 #. type: textblock
39146 #: ../src/guestfs.pod:2607
39147 msgid ""
39148 "The library turns them into progress callbacks (see L</"
39149 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39150 "if not."
39151 msgstr ""
39152
39153 #. type: textblock
39154 #: ../src/guestfs.pod:2611
39155 msgid ""
39156 "The daemon self-limits the frequency of progress messages it sends (see "
39157 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39158 "messages."
39159 msgstr ""
39160
39161 #. type: =head1
39162 #: ../src/guestfs.pod:2615
39163 msgid "LIBGUESTFS VERSION NUMBERS"
39164 msgstr ""
39165
39166 #. type: textblock
39167 #: ../src/guestfs.pod:2617
39168 msgid ""
39169 "Since April 2010, libguestfs has started to make separate development and "
39170 "stable releases, along with corresponding branches in our git repository.  "
39171 "These separate releases can be identified by version number:"
39172 msgstr ""
39173
39174 #. type: verbatim
39175 #: ../src/guestfs.pod:2622
39176 #, no-wrap
39177 msgid ""
39178 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39179 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39180 "       |\n"
39181 "       v\n"
39182 " 1  .  3  .  5\n"
39183 " ^           ^\n"
39184 " |           |\n"
39185 " |           `-------- sub-version\n"
39186 " |\n"
39187 " `------ always '1' because we don't change the ABI\n"
39188 "\n"
39189 msgstr ""
39190
39191 #. type: textblock
39192 #: ../src/guestfs.pod:2633
39193 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39194 msgstr ""
39195
39196 #. type: textblock
39197 #: ../src/guestfs.pod:2635
39198 msgid ""
39199 "As time passes we cherry pick fixes from the development branch and backport "
39200 "those into the stable branch, the effect being that the stable branch should "
39201 "get more stable and less buggy over time.  So the stable releases are ideal "
39202 "for people who don't need new features but would just like the software to "
39203 "work."
39204 msgstr ""
39205
39206 #. type: textblock
39207 #: ../src/guestfs.pod:2641
39208 msgid "Our criteria for backporting changes are:"
39209 msgstr ""
39210
39211 #. type: textblock
39212 #: ../src/guestfs.pod:2647
39213 msgid ""
39214 "Documentation changes which don't affect any code are backported unless the "
39215 "documentation refers to a future feature which is not in stable."
39216 msgstr ""
39217
39218 #. type: textblock
39219 #: ../src/guestfs.pod:2653
39220 msgid ""
39221 "Bug fixes which are not controversial, fix obvious problems, and have been "
39222 "well tested are backported."
39223 msgstr ""
39224
39225 #. type: textblock
39226 #: ../src/guestfs.pod:2658
39227 msgid ""
39228 "Simple rearrangements of code which shouldn't affect how it works get "
39229 "backported.  This is so that the code in the two branches doesn't get too "
39230 "far out of step, allowing us to backport future fixes more easily."
39231 msgstr ""
39232
39233 #. type: textblock
39234 #: ../src/guestfs.pod:2664
39235 msgid ""
39236 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39237 "exceptional case: the new feature is required in order to implement an "
39238 "important bug fix."
39239 msgstr ""
39240
39241 #. type: textblock
39242 #: ../src/guestfs.pod:2670
39243 msgid ""
39244 "A new stable branch starts when we think the new features in development are "
39245 "substantial and compelling enough over the current stable branch to warrant "
39246 "it.  When that happens we create new stable and development versions 1.N.0 "
39247 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39248 "stable at this point, but by backporting fixes from development, that branch "
39249 "will stabilize over time."
39250 msgstr ""
39251
39252 #. type: =head1
39253 #: ../src/guestfs.pod:2678
39254 msgid "EXTENDING LIBGUESTFS"
39255 msgstr ""
39256
39257 #. type: =head2
39258 #: ../src/guestfs.pod:2680
39259 msgid "ADDING A NEW API ACTION"
39260 msgstr ""
39261
39262 #. type: textblock
39263 #: ../src/guestfs.pod:2682
39264 msgid ""
39265 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39266 "documentation) are generated, and this makes it easy to extend the "
39267 "libguestfs API."
39268 msgstr ""
39269
39270 #. type: textblock
39271 #: ../src/guestfs.pod:2686
39272 msgid "To add a new API action there are two changes:"
39273 msgstr ""
39274
39275 #. type: textblock
39276 #: ../src/guestfs.pod:2692
39277 msgid ""
39278 "You need to add a description of the call (name, parameters, return type, "
39279 "tests, documentation) to C<generator/generator_actions.ml>."
39280 msgstr ""
39281
39282 #. type: textblock
39283 #: ../src/guestfs.pod:2695
39284 msgid ""
39285 "There are two sorts of API action, depending on whether the call goes "
39286 "through to the daemon in the appliance, or is serviced entirely by the "
39287 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39288 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39289 "an example of the latter, since a trace flag is maintained in the handle and "
39290 "all tracing is done on the library side."
39291 msgstr ""
39292
39293 #. type: textblock
39294 #: ../src/guestfs.pod:2703
39295 msgid ""
39296 "Most new actions are of the first type, and get added to the "
39297 "C<daemon_functions> list.  Each function has a unique procedure number used "
39298 "in the RPC protocol which is assigned to that action when we publish "
39299 "libguestfs and cannot be reused.  Take the latest procedure number and "
39300 "increment it."
39301 msgstr ""
39302
39303 #. type: textblock
39304 #: ../src/guestfs.pod:2709
39305 msgid ""
39306 "For library-only actions of the second type, add to the "
39307 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39308 "library and do not travel over the RPC mechanism to the daemon, these "
39309 "functions do not need a procedure number, and so the procedure number is set "
39310 "to C<-1>."
39311 msgstr ""
39312
39313 #. type: textblock
39314 #: ../src/guestfs.pod:2717
39315 msgid "Implement the action (in C):"
39316 msgstr ""
39317
39318 #. type: textblock
39319 #: ../src/guestfs.pod:2719
39320 msgid ""
39321 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39322 "C<daemon/> directory."
39323 msgstr ""
39324
39325 #. type: textblock
39326 #: ../src/guestfs.pod:2722
39327 msgid ""
39328 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39329 "(note: double underscore) in the C<src/> directory."
39330 msgstr ""
39331
39332 #. type: textblock
39333 #: ../src/guestfs.pod:2725
39334 msgid "In either case, use another function as an example of what to do."
39335 msgstr ""
39336
39337 #. type: textblock
39338 #: ../src/guestfs.pod:2729
39339 msgid "After making these changes, use C<make> to compile."
39340 msgstr ""
39341
39342 #. type: textblock
39343 #: ../src/guestfs.pod:2731
39344 msgid ""
39345 "Note that you don't need to implement the RPC, language bindings, manual "
39346 "pages or anything else.  It's all automatically generated from the OCaml "
39347 "description."
39348 msgstr ""
39349
39350 #. type: =head2
39351 #: ../src/guestfs.pod:2735
39352 msgid "ADDING TESTS FOR AN API ACTION"
39353 msgstr ""
39354
39355 #. type: textblock
39356 #: ../src/guestfs.pod:2737
39357 msgid ""
39358 "You can supply zero or as many tests as you want per API call.  The tests "
39359 "can either be added as part of the API description (C<generator/"
39360 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
39361 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
39362 "slower, so if possible use the first method."
39363 msgstr ""
39364
39365 #. type: textblock
39366 #: ../src/guestfs.pod:2743
39367 msgid ""
39368 "The following describes the test environment used when you add an API test "
39369 "in C<generator_actions.ml>."
39370 msgstr ""
39371
39372 #. type: textblock
39373 #: ../src/guestfs.pod:2746
39374 msgid "The test environment has 4 block devices:"
39375 msgstr ""
39376
39377 #. type: =item
39378 #: ../src/guestfs.pod:2750
39379 msgid "C</dev/sda> 500MB"
39380 msgstr ""
39381
39382 #. type: textblock
39383 #: ../src/guestfs.pod:2752
39384 msgid "General block device for testing."
39385 msgstr ""
39386
39387 #. type: =item
39388 #: ../src/guestfs.pod:2754
39389 msgid "C</dev/sdb> 50MB"
39390 msgstr ""
39391
39392 #. type: textblock
39393 #: ../src/guestfs.pod:2756
39394 msgid ""
39395 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39396 "operations."
39397 msgstr ""
39398
39399 #. type: =item
39400 #: ../src/guestfs.pod:2759
39401 msgid "C</dev/sdc> 10MB"
39402 msgstr ""
39403
39404 #. type: textblock
39405 #: ../src/guestfs.pod:2761
39406 msgid "Used in a few tests where two block devices are needed."
39407 msgstr ""
39408
39409 #. type: =item
39410 #: ../src/guestfs.pod:2763
39411 msgid "C</dev/sdd>"
39412 msgstr ""
39413
39414 #. type: textblock
39415 #: ../src/guestfs.pod:2765
39416 msgid "ISO with fixed content (see C<images/test.iso>)."
39417 msgstr ""
39418
39419 #. type: textblock
39420 #: ../src/guestfs.pod:2769
39421 msgid ""
39422 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39423 "appliance and block devices are reused between tests.  So don't try testing "
39424 "L</guestfs_kill_subprocess> :-x"
39425 msgstr ""
39426
39427 #. type: textblock
39428 #: ../src/guestfs.pod:2773
39429 msgid ""
39430 "Each test starts with an initial scenario, selected using one of the "
39431 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39432 "initialize the disks mentioned above in a particular way as documented in "
39433 "C<generator_types.ml>.  You should not assume anything about the previous "
39434 "contents of other disks that are not initialized."
39435 msgstr ""
39436
39437 #. type: textblock
39438 #: ../src/guestfs.pod:2779
39439 msgid ""
39440 "You can add a prerequisite clause to any individual test.  This is a run-"
39441 "time check, which, if it fails, causes the test to be skipped.  Useful if "
39442 "testing a command which might not work on all variations of libguestfs "
39443 "builds.  A test that has prerequisite of C<Always> means to run "
39444 "unconditionally."
39445 msgstr ""
39446
39447 #. type: textblock
39448 #: ../src/guestfs.pod:2785
39449 msgid ""
39450 "In addition, packagers can skip individual tests by setting environment "
39451 "variables before running C<make check>."
39452 msgstr ""
39453
39454 #. type: verbatim
39455 #: ../src/guestfs.pod:2788
39456 #, no-wrap
39457 msgid ""
39458 " SKIP_TEST_<CMD>_<NUM>=1\n"
39459 "\n"
39460 msgstr ""
39461
39462 #. type: textblock
39463 #: ../src/guestfs.pod:2790
39464 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39465 msgstr ""
39466
39467 #. type: textblock
39468 #: ../src/guestfs.pod:2792
39469 msgid "or:"
39470 msgstr ""
39471
39472 #. type: verbatim
39473 #: ../src/guestfs.pod:2794
39474 #, no-wrap
39475 msgid ""
39476 " SKIP_TEST_<CMD>=1\n"
39477 "\n"
39478 msgstr ""
39479
39480 #. type: textblock
39481 #: ../src/guestfs.pod:2796
39482 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39483 msgstr ""
39484
39485 #. type: textblock
39486 #: ../src/guestfs.pod:2798
39487 msgid "Packagers can run only certain tests by setting for example:"
39488 msgstr ""
39489
39490 #. type: verbatim
39491 #: ../src/guestfs.pod:2800
39492 #, no-wrap
39493 msgid ""
39494 " TEST_ONLY=\"vfs_type zerofree\"\n"
39495 "\n"
39496 msgstr ""
39497
39498 #. type: textblock
39499 #: ../src/guestfs.pod:2802
39500 msgid ""
39501 "See C<capitests/tests.c> for more details of how these environment variables "
39502 "work."
39503 msgstr ""
39504
39505 #. type: =head2
39506 #: ../src/guestfs.pod:2805
39507 msgid "DEBUGGING NEW API ACTIONS"
39508 msgstr ""
39509
39510 #. type: textblock
39511 #: ../src/guestfs.pod:2807
39512 msgid "Test new actions work before submitting them."
39513 msgstr ""
39514
39515 #. type: textblock
39516 #: ../src/guestfs.pod:2809
39517 msgid "You can use guestfish to try out new commands."
39518 msgstr ""
39519
39520 #. type: textblock
39521 #: ../src/guestfs.pod:2811
39522 msgid ""
39523 "Debugging the daemon is a problem because it runs inside a minimal "
39524 "environment.  However you can fprintf messages in the daemon to stderr, and "
39525 "they will show up if you use C<guestfish -v>."
39526 msgstr ""
39527
39528 #. type: =head2
39529 #: ../src/guestfs.pod:2815
39530 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39531 msgstr ""
39532
39533 #. type: textblock
39534 #: ../src/guestfs.pod:2817
39535 msgid ""
39536 "Our C source code generally adheres to some basic code-formatting "
39537 "conventions.  The existing code base is not totally consistent on this "
39538 "front, but we do prefer that contributed code be formatted similarly.  In "
39539 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39540 "indentation level, and other than that, follow the K&R style."
39541 msgstr ""
39542
39543 #. type: textblock
39544 #: ../src/guestfs.pod:2823
39545 msgid ""
39546 "If you use Emacs, add the following to one of one of your start-up files (e."
39547 "g., ~/.emacs), to help ensure that you get indentation right:"
39548 msgstr ""
39549
39550 #. type: verbatim
39551 #: ../src/guestfs.pod:2826
39552 #, no-wrap
39553 msgid ""
39554 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39555 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39556 " (add-hook 'find-file-hook\n"
39557 "     '(lambda () (if (and buffer-file-name\n"
39558 "                          (string-match \"/libguestfs\\\\>\"\n"
39559 "                              (buffer-file-name))\n"
39560 "                          (not (string-equal mode-name \"Change Log\"))\n"
39561 "                          (not (string-equal mode-name \"Makefile\")))\n"
39562 "                     (setq indent-tabs-mode nil))))\n"
39563 " \n"
39564 msgstr ""
39565
39566 #. type: verbatim
39567 #: ../src/guestfs.pod:2836
39568 #, no-wrap
39569 msgid ""
39570 " ;;; When editing C sources in libguestfs, use this style.\n"
39571 " (defun libguestfs-c-mode ()\n"
39572 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
39573 "   (interactive)\n"
39574 "   (c-set-style \"K&R\")\n"
39575 "   (setq c-indent-level 2)\n"
39576 "   (setq c-basic-offset 2))\n"
39577 " (add-hook 'c-mode-hook\n"
39578 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39579 "                               (buffer-file-name))\n"
39580 "                           (libguestfs-c-mode))))\n"
39581 "\n"
39582 msgstr ""
39583
39584 #. type: textblock
39585 #: ../src/guestfs.pod:2848
39586 msgid "Enable warnings when compiling (and fix any problems this finds):"
39587 msgstr ""
39588
39589 #. type: verbatim
39590 #: ../src/guestfs.pod:2851
39591 #, no-wrap
39592 msgid ""
39593 " ./configure --enable-gcc-warnings\n"
39594 "\n"
39595 msgstr ""
39596
39597 #. type: textblock
39598 #: ../src/guestfs.pod:2853
39599 msgid "Useful targets are:"
39600 msgstr ""
39601
39602 #. type: verbatim
39603 #: ../src/guestfs.pod:2855
39604 #, no-wrap
39605 msgid ""
39606 " make syntax-check  # checks the syntax of the C code\n"
39607 " make check         # runs the test suite\n"
39608 "\n"
39609 msgstr ""
39610
39611 #. type: =head2
39612 #: ../src/guestfs.pod:2858
39613 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39614 msgstr ""
39615
39616 #. type: textblock
39617 #: ../src/guestfs.pod:2860
39618 msgid ""
39619 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
39620 "which are used to do shell quoting."
39621 msgstr ""
39622
39623 #. type: =item
39624 #: ../src/guestfs.pod:2865
39625 msgid "%Q"
39626 msgstr ""
39627
39628 #. type: textblock
39629 #: ../src/guestfs.pod:2867
39630 msgid ""
39631 "Simple shell quoted string.  Any spaces or other shell characters are "
39632 "escaped for you."
39633 msgstr ""
39634
39635 #. type: =item
39636 #: ../src/guestfs.pod:2870
39637 msgid "%R"
39638 msgstr ""
39639
39640 #. type: textblock
39641 #: ../src/guestfs.pod:2872
39642 msgid ""
39643 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39644 "the sysroot."
39645 msgstr ""
39646
39647 #. type: verbatim
39648 #: ../src/guestfs.pod:2879
39649 #, no-wrap
39650 msgid ""
39651 " asprintf (&cmd, \"cat %R\", path);\n"
39652 "\n"
39653 msgstr ""
39654
39655 #. type: textblock
39656 #: ../src/guestfs.pod:2881
39657 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39658 msgstr ""
39659
39660 #. type: textblock
39661 #: ../src/guestfs.pod:2883
39662 msgid ""
39663 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
39664 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
39665 "they are not passed via the shell (instead, straight to exec).  You probably "
39666 "want to use the C<sysroot_path()> function however."
39667 msgstr ""
39668
39669 #. type: =head2
39670 #: ../src/guestfs.pod:2889
39671 msgid "SUBMITTING YOUR NEW API ACTIONS"
39672 msgstr ""
39673
39674 #. type: textblock
39675 #: ../src/guestfs.pod:2891
39676 msgid ""
39677 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
39678 "libguestfs> and CC to L<rjones@redhat.com>."
39679 msgstr ""
39680
39681 #. type: =head2
39682 #: ../src/guestfs.pod:2895
39683 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39684 msgstr ""
39685
39686 #. type: textblock
39687 #: ../src/guestfs.pod:2897
39688 msgid "We support i18n (gettext anyhow) in the library."
39689 msgstr ""
39690
39691 #. type: textblock
39692 #: ../src/guestfs.pod:2899
39693 msgid ""
39694 "However many messages come from the daemon, and we don't translate those at "
39695 "the moment.  One reason is that the appliance generally has all locale files "
39696 "removed from it, because they take up a lot of space.  So we'd have to readd "
39697 "some of those, as well as copying our PO files into the appliance."
39698 msgstr ""
39699
39700 #. type: textblock
39701 #: ../src/guestfs.pod:2905
39702 msgid ""
39703 "Debugging messages are never translated, since they are intended for the "
39704 "programmers."
39705 msgstr ""
39706
39707 #. type: =head2
39708 #: ../src/guestfs.pod:2908
39709 msgid "SOURCE CODE SUBDIRECTORIES"
39710 msgstr ""
39711
39712 #. type: =item
39713 #: ../src/guestfs.pod:2912
39714 msgid "C<align>"
39715 msgstr ""
39716
39717 #. type: textblock
39718 #: ../src/guestfs.pod:2914
39719 msgid "L<virt-alignment-scan(1)> command and documentation."
39720 msgstr ""
39721
39722 #. type: textblock
39723 #: ../src/guestfs.pod:2918
39724 msgid "The libguestfs appliance, build scripts and so on."
39725 msgstr ""
39726
39727 #. type: =item
39728 #: ../src/guestfs.pod:2920
39729 msgid "C<capitests>"
39730 msgstr ""
39731
39732 #. type: textblock
39733 #: ../src/guestfs.pod:2922
39734 msgid "Automated tests of the C API."
39735 msgstr ""
39736
39737 #. type: =item
39738 #: ../src/guestfs.pod:2924
39739 msgid "C<cat>"
39740 msgstr ""
39741
39742 #. type: textblock
39743 #: ../src/guestfs.pod:2926
39744 msgid ""
39745 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39746 "documentation."
39747 msgstr ""
39748
39749 #. type: =item
39750 #: ../src/guestfs.pod:2929
39751 msgid "C<caution>"
39752 msgstr ""
39753
39754 #. type: textblock
39755 #: ../src/guestfs.pod:2931
39756 msgid ""
39757 "Safety and liveness tests of components that libguestfs depends upon (not of "
39758 "libguestfs itself).  Mainly this is for qemu and the kernel."
39759 msgstr ""
39760
39761 #. type: =item
39762 #: ../src/guestfs.pod:2934
39763 msgid "C<clone>"
39764 msgstr ""
39765
39766 #. type: textblock
39767 #: ../src/guestfs.pod:2936
39768 msgid ""
39769 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
39770 "command and documentation."
39771 msgstr ""
39772
39773 #. type: =item
39774 #: ../src/guestfs.pod:2939
39775 msgid "C<contrib>"
39776 msgstr ""
39777
39778 #. type: textblock
39779 #: ../src/guestfs.pod:2941
39780 msgid "Outside contributions, experimental parts."
39781 msgstr ""
39782
39783 #. type: =item
39784 #: ../src/guestfs.pod:2943
39785 msgid "C<daemon>"
39786 msgstr ""
39787
39788 #. type: textblock
39789 #: ../src/guestfs.pod:2945
39790 msgid ""
39791 "The daemon that runs inside the libguestfs appliance and carries out actions."
39792 msgstr ""
39793
39794 #. type: =item
39795 #: ../src/guestfs.pod:2948
39796 msgid "C<df>"
39797 msgstr ""
39798
39799 #. type: textblock
39800 #: ../src/guestfs.pod:2950
39801 msgid "L<virt-df(1)> command and documentation."
39802 msgstr ""
39803
39804 #. type: =item
39805 #: ../src/guestfs.pod:2952
39806 msgid "C<edit>"
39807 msgstr ""
39808
39809 #. type: textblock
39810 #: ../src/guestfs.pod:2954
39811 msgid "L<virt-edit(1)> command and documentation."
39812 msgstr ""
39813
39814 #. type: =item
39815 #: ../src/guestfs.pod:2956
39816 msgid "C<examples>"
39817 msgstr ""
39818
39819 #. type: textblock
39820 #: ../src/guestfs.pod:2958
39821 msgid "C API example code."
39822 msgstr ""
39823
39824 #. type: =item
39825 #: ../src/guestfs.pod:2960
39826 msgid "C<fish>"
39827 msgstr ""
39828
39829 #. type: textblock
39830 #: ../src/guestfs.pod:2962
39831 msgid ""
39832 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39833 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39834 "L<virt-tar-out(1)>."
39835 msgstr ""
39836
39837 #. type: =item
39838 #: ../src/guestfs.pod:2966
39839 msgid "C<fuse>"
39840 msgstr ""
39841
39842 #. type: textblock
39843 #: ../src/guestfs.pod:2968
39844 msgid ""
39845 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39846 msgstr ""
39847
39848 #. type: =item
39849 #: ../src/guestfs.pod:2970
39850 msgid "C<generator>"
39851 msgstr ""
39852
39853 #. type: textblock
39854 #: ../src/guestfs.pod:2972
39855 msgid ""
39856 "The crucially important generator, used to automatically generate large "
39857 "amounts of boilerplate C code for things like RPC and bindings."
39858 msgstr ""
39859
39860 #. type: =item
39861 #: ../src/guestfs.pod:2975
39862 msgid "C<images>"
39863 msgstr ""
39864
39865 #. type: textblock
39866 #: ../src/guestfs.pod:2977
39867 msgid "Files used by the test suite."
39868 msgstr ""
39869
39870 #. type: textblock
39871 #: ../src/guestfs.pod:2979
39872 msgid "Some \"phony\" guest images which we test against."
39873 msgstr ""
39874
39875 #. type: =item
39876 #: ../src/guestfs.pod:2981
39877 msgid "C<inspector>"
39878 msgstr ""
39879
39880 #. type: textblock
39881 #: ../src/guestfs.pod:2983
39882 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39883 msgstr ""
39884
39885 #. type: =item
39886 #: ../src/guestfs.pod:2985
39887 msgid "C<logo>"
39888 msgstr ""
39889
39890 #. type: textblock
39891 #: ../src/guestfs.pod:2987
39892 msgid "Logo used on the website.  The fish is called Arthur by the way."
39893 msgstr ""
39894
39895 #. type: =item
39896 #: ../src/guestfs.pod:2989
39897 msgid "C<m4>"
39898 msgstr ""
39899
39900 #. type: textblock
39901 #: ../src/guestfs.pod:2991
39902 msgid "M4 macros used by autoconf."
39903 msgstr ""
39904
39905 #. type: =item
39906 #: ../src/guestfs.pod:2993
39907 msgid "C<po>"
39908 msgstr ""
39909
39910 #. type: textblock
39911 #: ../src/guestfs.pod:2995
39912 msgid "Translations of simple gettext strings."
39913 msgstr ""
39914
39915 #. type: =item
39916 #: ../src/guestfs.pod:2997
39917 msgid "C<po-docs>"
39918 msgstr ""
39919
39920 #. type: textblock
39921 #: ../src/guestfs.pod:2999
39922 msgid ""
39923 "The build infrastructure and PO files for translations of manpages and POD "
39924 "files.  Eventually this will be combined with the C<po> directory, but that "
39925 "is rather complicated."
39926 msgstr ""
39927
39928 #. type: =item
39929 #: ../src/guestfs.pod:3003
39930 msgid "C<regressions>"
39931 msgstr ""
39932
39933 #. type: textblock
39934 #: ../src/guestfs.pod:3005
39935 msgid "Regression tests."
39936 msgstr ""
39937
39938 #. type: =item
39939 #: ../src/guestfs.pod:3007
39940 msgid "C<rescue>"
39941 msgstr ""
39942
39943 #. type: textblock
39944 #: ../src/guestfs.pod:3009
39945 msgid "L<virt-rescue(1)> command and documentation."
39946 msgstr ""
39947
39948 #. type: =item
39949 #: ../src/guestfs.pod:3011
39950 msgid "C<resize>"
39951 msgstr ""
39952
39953 #. type: textblock
39954 #: ../src/guestfs.pod:3013
39955 msgid "L<virt-resize(1)> command and documentation."
39956 msgstr ""
39957
39958 #. type: =item
39959 #: ../src/guestfs.pod:3015
39960 msgid "C<sparsify>"
39961 msgstr ""
39962
39963 #. type: textblock
39964 #: ../src/guestfs.pod:3017
39965 msgid "L<virt-sparsify(1)> command and documentation."
39966 msgstr ""
39967
39968 #. type: =item
39969 #: ../src/guestfs.pod:3019
39970 msgid "C<src>"
39971 msgstr ""
39972
39973 #. type: textblock
39974 #: ../src/guestfs.pod:3021
39975 msgid "Source code to the C library."
39976 msgstr ""
39977
39978 #. type: =item
39979 #: ../src/guestfs.pod:3023
39980 msgid "C<tools>"
39981 msgstr ""
39982
39983 #. type: textblock
39984 #: ../src/guestfs.pod:3025
39985 msgid ""
39986 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
39987 msgstr ""
39988
39989 #. type: =item
39990 #: ../src/guestfs.pod:3027
39991 msgid "C<test-tool>"
39992 msgstr ""
39993
39994 #. type: textblock
39995 #: ../src/guestfs.pod:3029
39996 msgid ""
39997 "Test tool for end users to test if their qemu/kernel combination will work "
39998 "with libguestfs."
39999 msgstr ""
40000
40001 #. type: =item
40002 #: ../src/guestfs.pod:3032
40003 msgid "C<csharp>"
40004 msgstr ""
40005
40006 #. type: =item
40007 #: ../src/guestfs.pod:3034
40008 msgid "C<erlang>"
40009 msgstr ""
40010
40011 #. type: =item
40012 #: ../src/guestfs.pod:3036
40013 msgid "C<haskell>"
40014 msgstr ""
40015
40016 #. type: =item
40017 #: ../src/guestfs.pod:3038
40018 msgid "C<java>"
40019 msgstr ""
40020
40021 #. type: =item
40022 #: ../src/guestfs.pod:3040
40023 msgid "C<ocaml>"
40024 msgstr ""
40025
40026 #. type: =item
40027 #: ../src/guestfs.pod:3042
40028 msgid "C<php>"
40029 msgstr ""
40030
40031 #. type: =item
40032 #: ../src/guestfs.pod:3044
40033 msgid "C<perl>"
40034 msgstr ""
40035
40036 #. type: =item
40037 #: ../src/guestfs.pod:3046
40038 msgid "C<python>"
40039 msgstr ""
40040
40041 #. type: =item
40042 #: ../src/guestfs.pod:3048
40043 msgid "C<ruby>"
40044 msgstr ""
40045
40046 #. type: textblock
40047 #: ../src/guestfs.pod:3050
40048 msgid "Language bindings."
40049 msgstr ""
40050
40051 #. type: =head2
40052 #: ../src/guestfs.pod:3054
40053 msgid "MAKING A STABLE RELEASE"
40054 msgstr ""
40055
40056 #. type: textblock
40057 #: ../src/guestfs.pod:3056
40058 msgid ""
40059 "When we make a stable release, there are several steps documented here.  See "
40060 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40061 "branch policy."
40062 msgstr ""
40063
40064 #. type: textblock
40065 #: ../src/guestfs.pod:3064
40066 msgid ""
40067 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40068 msgstr ""
40069
40070 #. type: textblock
40071 #: ../src/guestfs.pod:3069
40072 msgid "Finalize RELEASE-NOTES."
40073 msgstr ""
40074
40075 #. type: textblock
40076 #: ../src/guestfs.pod:3073
40077 msgid "Update ROADMAP."
40078 msgstr ""
40079
40080 #. type: textblock
40081 #: ../src/guestfs.pod:3077
40082 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40083 msgstr ""
40084
40085 #. type: textblock
40086 #: ../src/guestfs.pod:3081
40087 msgid "Push and pull from Transifex."
40088 msgstr ""
40089
40090 #. type: textblock
40091 #: ../src/guestfs.pod:3083
40092 msgid "Run:"
40093 msgstr ""
40094
40095 #. type: verbatim
40096 #: ../src/guestfs.pod:3085
40097 #, no-wrap
40098 msgid ""
40099 " tx push -s\n"
40100 "\n"
40101 msgstr ""
40102
40103 #. type: textblock
40104 #: ../src/guestfs.pod:3087
40105 msgid "to push the latest POT files to Transifex.  Then run:"
40106 msgstr ""
40107
40108 #. type: verbatim
40109 #: ../src/guestfs.pod:3089
40110 #, no-wrap
40111 msgid ""
40112 " ./tx-pull.sh\n"
40113 "\n"
40114 msgstr ""
40115
40116 #. type: textblock
40117 #: ../src/guestfs.pod:3091
40118 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40119 msgstr ""
40120
40121 #. type: textblock
40122 #: ../src/guestfs.pod:3095
40123 msgid ""
40124 "Create new stable and development directories under L<http://libguestfs.org/"
40125 "download>."
40126 msgstr ""
40127
40128 #. type: textblock
40129 #: ../src/guestfs.pod:3100
40130 msgid "Create the branch in git:"
40131 msgstr ""
40132
40133 #. type: verbatim
40134 #: ../src/guestfs.pod:3102
40135 #, no-wrap
40136 msgid ""
40137 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40138 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40139 " git branch stable-1.XX\n"
40140 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40141 "\n"
40142 msgstr ""
40143
40144 #. type: =head1
40145 #: ../src/guestfs.pod:3109
40146 msgid "LIMITS"
40147 msgstr ""
40148
40149 #. type: =head2
40150 #: ../src/guestfs.pod:3111
40151 msgid "PROTOCOL LIMITS"
40152 msgstr ""
40153
40154 #. type: textblock
40155 #: ../src/guestfs.pod:3113
40156 msgid ""
40157 "Internally libguestfs uses a message-based protocol to pass API calls and "
40158 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40159 "plenty more detail about this).  The maximum message size used by the "
40160 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40161 "aware of this limit.  The API calls which may be affected are individually "
40162 "documented, with a link back to this section of the documentation."
40163 msgstr ""
40164
40165 #. type: textblock
40166 #: ../src/guestfs.pod:3121
40167 msgid ""
40168 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40169 "a simple string.  Because this string is at some point internally encoded as "
40170 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40171 "the requested file is larger than this then you will get an error."
40172 msgstr ""
40173
40174 #. type: textblock
40175 #: ../src/guestfs.pod:3127
40176 msgid ""
40177 "In order to transfer large files into and out of the guest filesystem, you "
40178 "need to use particular calls that support this.  The sections L</UPLOADING> "
40179 "and L</DOWNLOADING> document how to do this."
40180 msgstr ""
40181
40182 #. type: textblock
40183 #: ../src/guestfs.pod:3131
40184 msgid ""
40185 "You might also consider mounting the disk image using our FUSE filesystem "
40186 "support (L<guestmount(1)>)."
40187 msgstr ""
40188
40189 #. type: =head2
40190 #: ../src/guestfs.pod:3134
40191 msgid "MAXIMUM NUMBER OF DISKS"
40192 msgstr ""
40193
40194 #. type: textblock
40195 #: ../src/guestfs.pod:3136
40196 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40197 msgstr ""
40198
40199 #. type: textblock
40200 #: ../src/guestfs.pod:3139
40201 msgid ""
40202 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40203 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40204 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40205 "purposes."
40206 msgstr ""
40207
40208 #. type: textblock
40209 #: ../src/guestfs.pod:3144
40210 msgid ""
40211 "We are working to substantially raise this limit in future versions but it "
40212 "requires complex changes to qemu."
40213 msgstr ""
40214
40215 #. type: textblock
40216 #: ../src/guestfs.pod:3147
40217 msgid ""
40218 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40219 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40220 "requires changes to qemu."
40221 msgstr ""
40222
40223 #. type: =head2
40224 #: ../src/guestfs.pod:3151
40225 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40226 msgstr ""
40227
40228 #. type: textblock
40229 #: ../src/guestfs.pod:3153
40230 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40231 msgstr ""
40232
40233 #. type: textblock
40234 #: ../src/guestfs.pod:3155
40235 msgid ""
40236 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
40237 "vda>, and C</dev/vda1> through C</dev/vda15>)."
40238 msgstr ""
40239
40240 #. type: textblock
40241 #: ../src/guestfs.pod:3158
40242 msgid ""
40243 "If you attach a disk with more than 15 partitions, the extra partitions are "
40244 "ignored by libguestfs."
40245 msgstr ""
40246
40247 #. type: =head2
40248 #: ../src/guestfs.pod:3161
40249 msgid "MAXIMUM SIZE OF A DISK"
40250 msgstr ""
40251
40252 #. type: textblock
40253 #: ../src/guestfs.pod:3163
40254 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40255 msgstr ""
40256
40257 #. type: textblock
40258 #: ../src/guestfs.pod:3165
40259 msgid ""
40260 "We have tested block devices up to 1 exabyte (2**60 or "
40261 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40262 "filesystem."
40263 msgstr ""
40264
40265 #. type: textblock
40266 #: ../src/guestfs.pod:3169
40267 msgid ""
40268 "Although libguestfs probably does not impose any limit, the underlying host "
40269 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40270 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40271 "TB).  If you store disk images as host logical volumes then you are limited "
40272 "by the maximum size of an LV."
40273 msgstr ""
40274
40275 #. type: textblock
40276 #: ../src/guestfs.pod:3175
40277 msgid ""
40278 "For the hugest disk image files, we recommend using XFS on the host for "
40279 "storage."
40280 msgstr ""
40281
40282 #. type: =head2
40283 #: ../src/guestfs.pod:3178
40284 msgid "MAXIMUM SIZE OF A PARTITION"
40285 msgstr ""
40286
40287 #. type: textblock
40288 #: ../src/guestfs.pod:3180
40289 msgid ""
40290 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40291 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40292 "address a partition located beyond 2 TB on the disk."
40293 msgstr ""
40294
40295 #. type: textblock
40296 #: ../src/guestfs.pod:3184
40297 msgid ""
40298 "It is recommended that you use GPT partitions on disks which are larger than "
40299 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40300 "which are theoretically larger than the largest disk we could support."
40301 msgstr ""
40302
40303 #. type: =head2
40304 #: ../src/guestfs.pod:3189
40305 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40306 msgstr ""
40307
40308 #. type: textblock
40309 #: ../src/guestfs.pod:3191
40310 msgid ""
40311 "This depends on the filesystem type.  libguestfs itself does not impose any "
40312 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40313 "what these limits are."
40314 msgstr ""
40315
40316 #. type: =head2
40317 #: ../src/guestfs.pod:3195
40318 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40319 msgstr ""
40320
40321 #. type: textblock
40322 #: ../src/guestfs.pod:3197
40323 msgid ""
40324 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
40325 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40326 "uploads and downloads."
40327 msgstr ""
40328
40329 #. type: =head2
40330 #: ../src/guestfs.pod:3201
40331 msgid "INSPECTION LIMITS"
40332 msgstr ""
40333
40334 #. type: textblock
40335 #: ../src/guestfs.pod:3203
40336 msgid ""
40337 "The inspection code has several arbitrary limits on things like the size of "
40338 "Windows Registry hive it will read, and the length of product name.  These "
40339 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40340 "memory and disk space on the host, and should not be reached in practice.  "
40341 "See the source code for more information."
40342 msgstr ""
40343
40344 #. type: textblock
40345 #: ../src/guestfs.pod:3229
40346 msgid ""
40347 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40348 "effect as calling C<guestfs_set_verbose (g, 1)>."
40349 msgstr ""
40350
40351 #. type: textblock
40352 #: ../src/guestfs.pod:3241
40353 msgid ""
40354 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40355 "the discussion of paths in section L</PATH> above."
40356 msgstr ""
40357
40358 #. type: textblock
40359 #: ../src/guestfs.pod:3250
40360 msgid "See also L</QEMU WRAPPERS> above."
40361 msgstr ""
40362
40363 #. type: textblock
40364 #: ../src/guestfs.pod:3254
40365 msgid ""
40366 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40367 "effect as calling C<guestfs_set_trace (g, 1)>."
40368 msgstr ""
40369
40370 #. type: textblock
40371 #: ../src/guestfs.pod:3272
40372 msgid ""
40373 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40374 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40375 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
40376 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
40377 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40378 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
40379 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
40380 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
40381 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
40382 ">, L<http://libguestfs.org/>."
40383 msgstr ""
40384
40385 #. type: textblock
40386 #: ../src/guestfs.pod:3308
40387 msgid ""
40388 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
40389 "(8)>, L<disktype(1)>."
40390 msgstr ""
40391
40392 #. type: =head1
40393 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
40394 #: ../tools/virt-win-reg.pl:772
40395 msgid "BUGS"
40396 msgstr ""
40397
40398 #. type: textblock
40399 #: ../src/guestfs.pod:3317
40400 msgid "To get a list of bugs against libguestfs use this link:"
40401 msgstr ""
40402
40403 #. type: textblock
40404 #: ../src/guestfs.pod:3319
40405 msgid ""
40406 "L<https://bugzilla.redhat.com/buglist.cgi?"
40407 "component=libguestfs&product=Virtualization+Tools>"
40408 msgstr ""
40409
40410 #. type: textblock
40411 #: ../src/guestfs.pod:3321
40412 msgid "To report a new bug against libguestfs use this link:"
40413 msgstr ""
40414
40415 #. type: textblock
40416 #: ../src/guestfs.pod:3323
40417 msgid ""
40418 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40419 "component=libguestfs&product=Virtualization+Tools>"
40420 msgstr ""
40421
40422 #. type: textblock
40423 #: ../src/guestfs.pod:3325
40424 msgid "When reporting a bug, please check:"
40425 msgstr ""
40426
40427 #. type: textblock
40428 #: ../src/guestfs.pod:3331
40429 msgid "That the bug hasn't been reported already."
40430 msgstr ""
40431
40432 #. type: textblock
40433 #: ../src/guestfs.pod:3335
40434 msgid "That you are testing a recent version."
40435 msgstr ""
40436
40437 #. type: textblock
40438 #: ../src/guestfs.pod:3339
40439 msgid "Describe the bug accurately, and give a way to reproduce it."
40440 msgstr ""
40441
40442 #. type: textblock
40443 #: ../src/guestfs.pod:3343
40444 msgid ""
40445 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40446 "bug report."
40447 msgstr ""
40448
40449 #. type: textblock
40450 #: ../test-tool/libguestfs-test-tool.pod:5
40451 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40452 msgstr ""
40453
40454 #. type: verbatim
40455 #: ../test-tool/libguestfs-test-tool.pod:9
40456 #, no-wrap
40457 msgid ""
40458 " libguestfs-test-tool [--options]\n"
40459 "\n"
40460 msgstr ""
40461
40462 #. type: textblock
40463 #: ../test-tool/libguestfs-test-tool.pod:13
40464 msgid ""
40465 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40466 "to check basic libguestfs functionality is working.  This is needed because "
40467 "libguestfs occasionally breaks for reasons beyond our control: usually "
40468 "because of changes in the underlying qemu or kernel packages, or the host "
40469 "environment."
40470 msgstr ""
40471
40472 #. type: textblock
40473 #: ../test-tool/libguestfs-test-tool.pod:19
40474 msgid "If you suspect a problem in libguestfs, then just run:"
40475 msgstr ""
40476
40477 #. type: verbatim
40478 #: ../test-tool/libguestfs-test-tool.pod:21
40479 #, no-wrap
40480 msgid ""
40481 " libguestfs-test-tool\n"
40482 "\n"
40483 msgstr ""
40484
40485 #. type: textblock
40486 #: ../test-tool/libguestfs-test-tool.pod:23
40487 msgid "It will print lots of diagnostic messages."
40488 msgstr ""
40489
40490 #. type: textblock
40491 #: ../test-tool/libguestfs-test-tool.pod:25
40492 msgid "If it runs to completion successfully, you will see this near the end:"
40493 msgstr ""
40494
40495 #. type: verbatim
40496 #: ../test-tool/libguestfs-test-tool.pod:27
40497 #, no-wrap
40498 msgid ""
40499 " ===== TEST FINISHED OK =====\n"
40500 "\n"
40501 msgstr ""
40502
40503 #. type: textblock
40504 #: ../test-tool/libguestfs-test-tool.pod:29
40505 msgid "and the test tool will exit with code 0."
40506 msgstr ""
40507
40508 #. type: textblock
40509 #: ../test-tool/libguestfs-test-tool.pod:31
40510 msgid ""
40511 "If it fails (and/or exits with non-zero error code), please paste the "
40512 "I<complete, unedited> output of the test tool into a bug report.  More "
40513 "information about reporting bugs can be found on the L<http://libguestfs.org/"
40514 "> website."
40515 msgstr ""
40516
40517 #. type: textblock
40518 #: ../test-tool/libguestfs-test-tool.pod:42
40519 msgid "Display short usage information and exit."
40520 msgstr ""
40521
40522 #. type: =item
40523 #: ../test-tool/libguestfs-test-tool.pod:44
40524 msgid "B<--qemu qemu_binary>"
40525 msgstr ""
40526
40527 #. type: textblock
40528 #: ../test-tool/libguestfs-test-tool.pod:46
40529 msgid ""
40530 "If you have downloaded another qemu binary, point this option at the full "
40531 "path of the binary to try it."
40532 msgstr ""
40533
40534 #. type: =item
40535 #: ../test-tool/libguestfs-test-tool.pod:49
40536 msgid "B<--qemudir qemu_source_dir>"
40537 msgstr ""
40538
40539 #. type: textblock
40540 #: ../test-tool/libguestfs-test-tool.pod:51
40541 msgid ""
40542 "If you have compiled qemu from source, point this option at the source "
40543 "directory to try it."
40544 msgstr ""
40545
40546 #. type: =item
40547 #: ../test-tool/libguestfs-test-tool.pod:54
40548 msgid "B<-t N>"
40549 msgstr ""
40550
40551 #. type: =item
40552 #: ../test-tool/libguestfs-test-tool.pod:56
40553 msgid "B<--timeout N>"
40554 msgstr ""
40555
40556 #. type: textblock
40557 #: ../test-tool/libguestfs-test-tool.pod:58
40558 msgid ""
40559 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
40560 "minutes) which does not usually need to be adjusted."
40561 msgstr ""
40562
40563 #. type: =head1
40564 #: ../test-tool/libguestfs-test-tool.pod:63
40565 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40566 msgstr ""
40567
40568 #. type: textblock
40569 #: ../test-tool/libguestfs-test-tool.pod:65
40570 msgid ""
40571 "If you have compiled another version of qemu from source and would like to "
40572 "try that, then you can use the I<--qemudir> option to point to the qemu "
40573 "source directory."
40574 msgstr ""
40575
40576 #. type: textblock
40577 #: ../test-tool/libguestfs-test-tool.pod:69
40578 msgid ""
40579 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40580 "option to point to the binary."
40581 msgstr ""
40582
40583 #. type: textblock
40584 #: ../test-tool/libguestfs-test-tool.pod:72
40585 msgid ""
40586 "Note when using these options, you can ignore the business of qemu wrapper "
40587 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
40588 "wrapper script for you if one is needed."
40589 msgstr ""
40590
40591 #. type: =head1
40592 #: ../test-tool/libguestfs-test-tool.pod:76
40593 msgid "TRYING OUT A DIFFERENT KERNEL"
40594 msgstr ""
40595
40596 #. type: textblock
40597 #: ../test-tool/libguestfs-test-tool.pod:78
40598 msgid ""
40599 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
40600 "libguestfs tries.  You do this by setting the environment variables "
40601 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
40602 msgstr ""
40603
40604 #. type: textblock
40605 #: ../test-tool/libguestfs-test-tool.pod:82
40606 msgid ""
40607 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
40608 "information."
40609 msgstr ""
40610
40611 #. type: =head1
40612 #: ../test-tool/libguestfs-test-tool.pod:85
40613 msgid "SELF-DIAGNOSIS"
40614 msgstr ""
40615
40616 #. type: textblock
40617 #: ../test-tool/libguestfs-test-tool.pod:87
40618 msgid ""
40619 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40620 "produced by libguestfs-test-tool and/or possible errors."
40621 msgstr ""
40622
40623 #. type: textblock
40624 #: ../test-tool/libguestfs-test-tool.pod:92
40625 msgid ""
40626 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40627 "I<1> if there was an error."
40628 msgstr ""
40629
40630 #. type: textblock
40631 #: ../test-tool/libguestfs-test-tool.pod:97
40632 msgid ""
40633 "For the full list of environment variables which may affect libguestfs, "
40634 "please see the L<guestfs(3)> manual page."
40635 msgstr ""
40636
40637 #. type: textblock
40638 #: ../test-tool/libguestfs-test-tool.pod:102
40639 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40640 msgstr ""
40641
40642 #. type: textblock
40643 #: ../tools/virt-list-filesystems.pl:32
40644 msgid ""
40645 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40646 msgstr ""
40647
40648 #. type: verbatim
40649 #: ../tools/virt-list-filesystems.pl:36
40650 #, no-wrap
40651 msgid ""
40652 " virt-list-filesystems [--options] domname\n"
40653 "\n"
40654 msgstr ""
40655
40656 #. type: verbatim
40657 #: ../tools/virt-list-filesystems.pl:38
40658 #, no-wrap
40659 msgid ""
40660 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40661 "\n"
40662 msgstr ""
40663
40664 #. type: textblock
40665 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40666 msgid ""
40667 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
40668 "replacement."
40669 msgstr ""
40670
40671 #. type: textblock
40672 #: ../tools/virt-list-filesystems.pl:45
40673 msgid ""
40674 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
40675 "are contained in a virtual machine or disk image."
40676 msgstr ""
40677
40678 #. type: textblock
40679 #: ../tools/virt-list-filesystems.pl:49
40680 msgid ""
40681 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40682 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40683 "> tool."
40684 msgstr ""
40685
40686 #. type: textblock
40687 #: ../tools/virt-list-filesystems.pl:112
40688 msgid ""
40689 "With this option, C<virt-list-filesystems> displays the type of each "
40690 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40691 msgstr ""
40692
40693 #. type: =item
40694 #: ../tools/virt-list-filesystems.pl:119
40695 msgid "B<-a>"
40696 msgstr ""
40697
40698 #. type: textblock
40699 #: ../tools/virt-list-filesystems.pl:123
40700 msgid ""
40701 "Normally we only show mountable filesystems.  If this option is given then "
40702 "swap devices are shown too."
40703 msgstr ""
40704
40705 #. type: textblock
40706 #: ../tools/virt-list-filesystems.pl:197
40707 msgid ""
40708 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40709 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40710 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40711 msgstr ""
40712
40713 #. type: textblock
40714 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40715 msgid "Copyright (C) 2009 Red Hat Inc."
40716 msgstr ""
40717
40718 #. type: textblock
40719 #: ../tools/virt-list-partitions.pl:32
40720 msgid ""
40721 "virt-list-partitions - List partitions in a virtual machine or disk image"
40722 msgstr ""
40723
40724 #. type: verbatim
40725 #: ../tools/virt-list-partitions.pl:36
40726 #, no-wrap
40727 msgid ""
40728 " virt-list-partitions [--options] domname\n"
40729 "\n"
40730 msgstr ""
40731
40732 #. type: verbatim
40733 #: ../tools/virt-list-partitions.pl:38
40734 #, no-wrap
40735 msgid ""
40736 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40737 "\n"
40738 msgstr ""
40739
40740 #. type: textblock
40741 #: ../tools/virt-list-partitions.pl:45
40742 msgid ""
40743 "C<virt-list-partitions> is a command line tool to list the partitions that "
40744 "are contained in a virtual machine or disk image.  It is mainly useful as a "
40745 "first step to using L<virt-resize(1)>."
40746 msgstr ""
40747
40748 #. type: textblock
40749 #: ../tools/virt-list-partitions.pl:50
40750 msgid ""
40751 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40752 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40753 "> tool."
40754 msgstr ""
40755
40756 #. type: textblock
40757 #: ../tools/virt-list-partitions.pl:113
40758 msgid "Show sizes in human-readable form (eg. \"1G\")."
40759 msgstr ""
40760
40761 #. type: textblock
40762 #: ../tools/virt-list-partitions.pl:123
40763 msgid ""
40764 "With this option, C<virt-list-partitions> displays the type and size of each "
40765 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40766 msgstr ""
40767
40768 #. type: =item
40769 #: ../tools/virt-list-partitions.pl:130
40770 msgid "B<-t>"
40771 msgstr ""
40772
40773 #. type: =item
40774 #: ../tools/virt-list-partitions.pl:132
40775 msgid "B<--total>"
40776 msgstr ""
40777
40778 #. type: textblock
40779 #: ../tools/virt-list-partitions.pl:134
40780 msgid ""
40781 "Display the total size of each block device (as a separate row or rows)."
40782 msgstr ""
40783
40784 #. type: textblock
40785 #: ../tools/virt-list-partitions.pl:267
40786 msgid ""
40787 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40788 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40789 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40790 msgstr ""
40791
40792 #. type: textblock
40793 #: ../tools/virt-list-partitions.pl:283
40794 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40795 msgstr ""
40796
40797 #. type: textblock
40798 #: ../tools/virt-make-fs.pl:37
40799 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40800 msgstr ""
40801
40802 #. type: verbatim
40803 #: ../tools/virt-make-fs.pl:41
40804 #, no-wrap
40805 msgid ""
40806 " virt-make-fs [--options] input.tar output.img\n"
40807 "\n"
40808 msgstr ""
40809
40810 #. type: verbatim
40811 #: ../tools/virt-make-fs.pl:43
40812 #, no-wrap
40813 msgid ""
40814 " virt-make-fs [--options] input.tar.gz output.img\n"
40815 "\n"
40816 msgstr ""
40817
40818 #. type: verbatim
40819 #: ../tools/virt-make-fs.pl:45
40820 #, no-wrap
40821 msgid ""
40822 " virt-make-fs [--options] directory output.img\n"
40823 "\n"
40824 msgstr ""
40825
40826 #. type: textblock
40827 #: ../tools/virt-make-fs.pl:49
40828 msgid ""
40829 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40830 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
40831 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
40832 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
40833 "you want to attach these filesystems to existing virtual machines (eg. to "
40834 "import large amounts of read-only data to a VM)."
40835 msgstr ""
40836
40837 #. type: textblock
40838 #: ../tools/virt-make-fs.pl:57
40839 msgid "Basic usage is:"
40840 msgstr ""
40841
40842 #. type: verbatim
40843 #: ../tools/virt-make-fs.pl:59
40844 #, no-wrap
40845 msgid ""
40846 " virt-make-fs input output.img\n"
40847 "\n"
40848 msgstr ""
40849
40850 #. type: textblock
40851 #: ../tools/virt-make-fs.pl:61
40852 msgid ""
40853 "where C<input> is either a directory containing files that you want to add, "
40854 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40855 "C<output.img> is a disk image.  The input type is detected automatically.  "
40856 "The output disk image defaults to a raw ext2 sparse image unless you specify "
40857 "extra flags (see L</OPTIONS> below)."
40858 msgstr ""
40859
40860 #. type: =head2
40861 #: ../tools/virt-make-fs.pl:67
40862 msgid "FILESYSTEM TYPE"
40863 msgstr ""
40864
40865 #. type: textblock
40866 #: ../tools/virt-make-fs.pl:69
40867 msgid ""
40868 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
40869 "libguestfs supports can be used (but I<not> read-only formats like "
40870 "ISO9660).  Here are some of the more common choices:"
40871 msgstr ""
40872
40873 #. type: =item
40874 #: ../tools/virt-make-fs.pl:75
40875 msgid "I<ext3>"
40876 msgstr ""
40877
40878 #. type: textblock
40879 #: ../tools/virt-make-fs.pl:77
40880 msgid ""
40881 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
40882 "you are not going to use the filesystem in a way that requires the journal, "
40883 "then this is just wasted overhead."
40884 msgstr ""
40885
40886 #. type: =item
40887 #: ../tools/virt-make-fs.pl:81
40888 msgid "I<ntfs> or I<vfat>"
40889 msgstr ""
40890
40891 #. type: textblock
40892 #: ../tools/virt-make-fs.pl:83
40893 msgid "Useful if exporting data to a Windows guest."
40894 msgstr ""
40895
40896 #. type: textblock
40897 #: ../tools/virt-make-fs.pl:85
40898 msgid ""
40899 "I<Note for vfat>: The tar archive or local directory must only contain files "
40900 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
40901 "program running within libguestfs is unable to change the ownership of non-"
40902 "root files, since vfat itself does not support this."
40903 msgstr ""
40904
40905 #. type: =item
40906 #: ../tools/virt-make-fs.pl:90
40907 msgid "I<minix>"
40908 msgstr ""
40909
40910 #. type: textblock
40911 #: ../tools/virt-make-fs.pl:92
40912 msgid ""
40913 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40914 "total filesystem size."
40915 msgstr ""
40916
40917 #. type: =head3
40918 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
40919 #: ../tools/virt-make-fs.pl:149
40920 msgid "EXAMPLE"
40921 msgstr ""
40922
40923 #. type: verbatim
40924 #: ../tools/virt-make-fs.pl:99
40925 #, no-wrap
40926 msgid ""
40927 " virt-make-fs --type=minix input minixfs.img\n"
40928 "\n"
40929 msgstr ""
40930
40931 #. type: =head2
40932 #: ../tools/virt-make-fs.pl:101
40933 msgid "TO PARTITION OR NOT TO PARTITION"
40934 msgstr ""
40935
40936 #. type: textblock
40937 #: ../tools/virt-make-fs.pl:103
40938 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40939 msgstr ""
40940
40941 #. type: textblock
40942 #: ../tools/virt-make-fs.pl:105
40943 msgid ""
40944 "Adding a partition can make the disk image more compatible with certain "
40945 "virtualized operating systems which don't expect to see a filesystem "
40946 "directly located on a block device (Linux doesn't care and will happily "
40947 "handle both types)."
40948 msgstr ""
40949
40950 #. type: textblock
40951 #: ../tools/virt-make-fs.pl:110
40952 msgid ""
40953 "On the other hand, if you have a partition table then the output image is no "
40954 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40955 "directly on a partitioned disk image.  (However libguestfs tools such as "
40956 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40957 msgstr ""
40958
40959 #. type: textblock
40960 #: ../tools/virt-make-fs.pl:118
40961 msgid "Add an MBR partition:"
40962 msgstr ""
40963
40964 #. type: verbatim
40965 #: ../tools/virt-make-fs.pl:120
40966 #, no-wrap
40967 msgid ""
40968 " virt-make-fs --partition -- input disk.img\n"
40969 "\n"
40970 msgstr ""
40971
40972 #. type: textblock
40973 #: ../tools/virt-make-fs.pl:122
40974 msgid ""
40975 "If the output disk image could be terabyte-sized or larger, it's better to "
40976 "use an EFI/GPT-compatible partition table:"
40977 msgstr ""
40978
40979 #. type: verbatim
40980 #: ../tools/virt-make-fs.pl:125
40981 #, no-wrap
40982 msgid ""
40983 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40984 "\n"
40985 msgstr ""
40986
40987 #. type: =head2
40988 #: ../tools/virt-make-fs.pl:127
40989 msgid "EXTRA SPACE"
40990 msgstr ""
40991
40992 #. type: textblock
40993 #: ../tools/virt-make-fs.pl:129
40994 msgid ""
40995 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
40996 "the files that it contains, but might have extra space.  Depending on how "
40997 "you are going to use the output, you might think this extra space is wasted "
40998 "and want to minimize it, or you might want to leave space so that more files "
40999 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41000 "but you can use the I<--size> flag to leave space in the filesystem if you "
41001 "want it."
41002 msgstr ""
41003
41004 #. type: textblock
41005 #: ../tools/virt-make-fs.pl:137
41006 msgid ""
41007 "An alternative way to leave extra space but not make the output image any "
41008 "bigger is to use an alternative disk image format (instead of the default "
41009 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41010 "image format (check your hypervisor supports this before using it).  This "
41011 "allows you to choose a large I<--size> but the extra space won't actually be "
41012 "allocated in the image until you try to store something in it."
41013 msgstr ""
41014
41015 #. type: textblock
41016 #: ../tools/virt-make-fs.pl:145
41017 msgid ""
41018 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41019 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41020 "to build another image from scratch."
41021 msgstr ""
41022
41023 #. type: verbatim
41024 #: ../tools/virt-make-fs.pl:151
41025 #, no-wrap
41026 msgid ""
41027 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41028 "\n"
41029 msgstr ""
41030
41031 #. type: textblock
41032 #: ../tools/virt-make-fs.pl:179
41033 msgid "Enable debugging information."
41034 msgstr ""
41035
41036 #. type: =item
41037 #: ../tools/virt-make-fs.pl:185
41038 msgid "B<--size=E<lt>NE<gt>>"
41039 msgstr ""
41040
41041 #. type: =item
41042 #: ../tools/virt-make-fs.pl:187
41043 msgid "B<--size=+E<lt>NE<gt>>"
41044 msgstr ""
41045
41046 #. type: =item
41047 #: ../tools/virt-make-fs.pl:189
41048 msgid "B<-s E<lt>NE<gt>>"
41049 msgstr ""
41050
41051 #. type: =item
41052 #: ../tools/virt-make-fs.pl:191
41053 msgid "B<-s +E<lt>NE<gt>>"
41054 msgstr ""
41055
41056 #. type: textblock
41057 #: ../tools/virt-make-fs.pl:193
41058 msgid ""
41059 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41060 msgstr ""
41061
41062 #. type: textblock
41063 #: ../tools/virt-make-fs.pl:196
41064 msgid ""
41065 "If this option is I<not> given, then the output image will be just large "
41066 "enough to contain all the files, with not much wasted space."
41067 msgstr ""
41068
41069 #. type: textblock
41070 #: ../tools/virt-make-fs.pl:199
41071 msgid ""
41072 "To choose a fixed size output disk, specify an absolute number followed by b/"
41073 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41074 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41075 "files, else you will get an error."
41076 msgstr ""
41077
41078 #. type: textblock
41079 #: ../tools/virt-make-fs.pl:204
41080 msgid ""
41081 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41082 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41083 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41084 "the input files, and (approximately) an extra 200 MB free space."
41085 msgstr ""
41086
41087 #. type: textblock
41088 #: ../tools/virt-make-fs.pl:210
41089 msgid ""
41090 "Note that virt-make-fs estimates free space, and therefore will not produce "
41091 "filesystems containing precisely the free space requested.  (It is much more "
41092 "expensive and time-consuming to produce a filesystem which has precisely the "
41093 "desired free space)."
41094 msgstr ""
41095
41096 #. type: =item
41097 #: ../tools/virt-make-fs.pl:219
41098 msgid "B<--format=E<lt>fmtE<gt>>"
41099 msgstr ""
41100
41101 #. type: =item
41102 #: ../tools/virt-make-fs.pl:221
41103 msgid "B<-F E<lt>fmtE<gt>>"
41104 msgstr ""
41105
41106 #. type: textblock
41107 #: ../tools/virt-make-fs.pl:223
41108 msgid "Choose the output disk image format."
41109 msgstr ""
41110
41111 #. type: textblock
41112 #: ../tools/virt-make-fs.pl:225
41113 msgid "The default is C<raw> (raw sparse disk image)."
41114 msgstr ""
41115
41116 #. type: textblock
41117 #: ../tools/virt-make-fs.pl:227
41118 msgid ""
41119 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41120 "that would really make sense here is C<qcow2>."
41121 msgstr ""
41122
41123 #. type: =item
41124 #: ../tools/virt-make-fs.pl:234
41125 msgid "B<--type=E<lt>fsE<gt>>"
41126 msgstr ""
41127
41128 #. type: =item
41129 #: ../tools/virt-make-fs.pl:236
41130 msgid "B<-t E<lt>fsE<gt>>"
41131 msgstr ""
41132
41133 #. type: textblock
41134 #: ../tools/virt-make-fs.pl:238
41135 msgid "Choose the output filesystem type."
41136 msgstr ""
41137
41138 #. type: textblock
41139 #: ../tools/virt-make-fs.pl:240
41140 msgid "The default is C<ext2>."
41141 msgstr ""
41142
41143 #. type: textblock
41144 #: ../tools/virt-make-fs.pl:242
41145 msgid ""
41146 "Any filesystem which is supported read-write by libguestfs can be used here."
41147 msgstr ""
41148
41149 #. type: =item
41150 #: ../tools/virt-make-fs.pl:249
41151 msgid "B<--partition>"
41152 msgstr ""
41153
41154 #. type: =item
41155 #: ../tools/virt-make-fs.pl:251
41156 msgid "B<--partition=E<lt>parttypeE<gt>>"
41157 msgstr ""
41158
41159 #. type: textblock
41160 #: ../tools/virt-make-fs.pl:253
41161 msgid ""
41162 "If specified, this flag adds an MBR partition table to the output disk image."
41163 msgstr ""
41164
41165 #. type: textblock
41166 #: ../tools/virt-make-fs.pl:256
41167 msgid ""
41168 "You can change the partition table type, eg. I<--partition=gpt> for large "
41169 "disks."
41170 msgstr ""
41171
41172 #. type: textblock
41173 #: ../tools/virt-make-fs.pl:259
41174 msgid ""
41175 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41176 "might consider the next parameter to be the partition type.  For example:"
41177 msgstr ""
41178
41179 #. type: verbatim
41180 #: ../tools/virt-make-fs.pl:263
41181 #, no-wrap
41182 msgid ""
41183 " virt-make-fs --partition input.tar output.img\n"
41184 "\n"
41185 msgstr ""
41186
41187 #. type: textblock
41188 #: ../tools/virt-make-fs.pl:265
41189 msgid ""
41190 "would cause virt-make-fs to think you wanted to use a partition type of "
41191 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41192 "dash) between options and the input and output arguments:"
41193 msgstr ""
41194
41195 #. type: verbatim
41196 #: ../tools/virt-make-fs.pl:269
41197 #, no-wrap
41198 msgid ""
41199 " virt-make-fs --partition -- input.tar output.img\n"
41200 "\n"
41201 msgstr ""
41202
41203 #. type: textblock
41204 #: ../tools/virt-make-fs.pl:271
41205 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41206 msgstr ""
41207
41208 #. type: textblock
41209 #: ../tools/virt-make-fs.pl:559
41210 msgid ""
41211 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41212 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41213 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41214 msgstr ""
41215
41216 #. type: textblock
41217 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41218 msgid ""
41219 "When reporting bugs, please enable debugging and capture the I<complete> "
41220 "output:"
41221 msgstr ""
41222
41223 #. type: verbatim
41224 #: ../tools/virt-make-fs.pl:576
41225 #, no-wrap
41226 msgid ""
41227 " export LIBGUESTFS_DEBUG=1\n"
41228 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41229 "\n"
41230 msgstr ""
41231
41232 #. type: textblock
41233 #: ../tools/virt-make-fs.pl:579
41234 msgid ""
41235 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41236 "redhat.com/>"
41237 msgstr ""
41238
41239 #. type: textblock
41240 #: ../tools/virt-tar.pl:33
41241 msgid "virt-tar - Extract or upload files to a virtual machine"
41242 msgstr ""
41243
41244 #. type: verbatim
41245 #: ../tools/virt-tar.pl:37
41246 #, no-wrap
41247 msgid ""
41248 " virt-tar [--options] -x domname directory tarball\n"
41249 "\n"
41250 msgstr ""
41251
41252 #. type: verbatim
41253 #: ../tools/virt-tar.pl:39
41254 #, no-wrap
41255 msgid ""
41256 " virt-tar [--options] -u domname tarball directory\n"
41257 "\n"
41258 msgstr ""
41259
41260 #. type: verbatim
41261 #: ../tools/virt-tar.pl:41
41262 #, no-wrap
41263 msgid ""
41264 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41265 "\n"
41266 msgstr ""
41267
41268 #. type: verbatim
41269 #: ../tools/virt-tar.pl:43
41270 #, no-wrap
41271 msgid ""
41272 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41273 "\n"
41274 msgstr ""
41275
41276 #. type: =head2
41277 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41278 msgid "NOTE"
41279 msgstr ""
41280
41281 #. type: textblock
41282 #: ../tools/virt-tar.pl:47
41283 msgid ""
41284 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41285 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41286 msgstr ""
41287
41288 #. type: textblock
41289 #: ../tools/virt-tar.pl:52
41290 msgid "Download C</home> from the VM into a local tarball:"
41291 msgstr ""
41292
41293 #. type: verbatim
41294 #: ../tools/virt-tar.pl:54
41295 #, no-wrap
41296 msgid ""
41297 " virt-tar -x domname /home home.tar\n"
41298 "\n"
41299 msgstr ""
41300
41301 #. type: verbatim
41302 #: ../tools/virt-tar.pl:56
41303 #, no-wrap
41304 msgid ""
41305 " virt-tar -zx domname /home home.tar.gz\n"
41306 "\n"
41307 msgstr ""
41308
41309 #. type: textblock
41310 #: ../tools/virt-tar.pl:58
41311 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41312 msgstr ""
41313
41314 #. type: verbatim
41315 #: ../tools/virt-tar.pl:60
41316 #, no-wrap
41317 msgid ""
41318 " virt-tar -u domname uploadstuff.tar /tmp\n"
41319 "\n"
41320 msgstr ""
41321
41322 #. type: verbatim
41323 #: ../tools/virt-tar.pl:62
41324 #, no-wrap
41325 msgid ""
41326 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41327 "\n"
41328 msgstr ""
41329
41330 #. type: textblock
41331 #: ../tools/virt-tar.pl:66
41332 msgid ""
41333 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41334 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41335 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41336 msgstr ""
41337
41338 #. type: textblock
41339 #: ../tools/virt-tar.pl:71
41340 msgid ""
41341 "You can use I<-x> (extract) on live virtual machines, but you might get "
41342 "inconsistent results or errors if there is filesystem activity inside the "
41343 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41344 "work, but the only way to guarantee consistent results is if the virtual "
41345 "machine is shut down."
41346 msgstr ""
41347
41348 #. type: textblock
41349 #: ../tools/virt-tar.pl:79
41350 msgid ""
41351 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41352 "parts of a guest filesystem.  There are many possibilities: making backups, "
41353 "uploading data files, snooping on guest activity, fixing or customizing "
41354 "guests, etc."
41355 msgstr ""
41356
41357 #. type: textblock
41358 #: ../tools/virt-tar.pl:84
41359 msgid ""
41360 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41361 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41362 "should look at the L<guestfish(1)> tool."
41363 msgstr ""
41364
41365 #. type: textblock
41366 #: ../tools/virt-tar.pl:88
41367 msgid ""
41368 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41369 "its contents (recursively) from the virtual machine into a local tarball.  "
41370 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41371 "virtual machine.  You cannot use these two options together."
41372 msgstr ""
41373
41374 #. type: textblock
41375 #: ../tools/virt-tar.pl:94
41376 msgid ""
41377 "In addition, you may need to use the I<-z> (gZip) option to enable "
41378 "compression.  When uploading, you have to specify I<-z> if the upload file "
41379 "is compressed because virt-tar won't detect this on its own."
41380 msgstr ""
41381
41382 #. type: textblock
41383 #: ../tools/virt-tar.pl:98
41384 msgid ""
41385 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41386 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41387 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41388 "the L<libguestfs(3)> API)."
41389 msgstr ""
41390
41391 #. type: =item
41392 #: ../tools/virt-tar.pl:160
41393 msgid "B<--extract>"
41394 msgstr ""
41395
41396 #. type: =item
41397 #: ../tools/virt-tar.pl:162
41398 msgid "B<--download>"
41399 msgstr ""
41400
41401 #. type: =item
41402 #: ../tools/virt-tar.pl:164
41403 msgid "B<-u>"
41404 msgstr ""
41405
41406 #. type: =item
41407 #: ../tools/virt-tar.pl:166
41408 msgid "B<--upload>"
41409 msgstr ""
41410
41411 #. type: textblock
41412 #: ../tools/virt-tar.pl:168
41413 msgid ""
41414 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41415 "local tarball."
41416 msgstr ""
41417
41418 #. type: textblock
41419 #: ../tools/virt-tar.pl:171
41420 msgid ""
41421 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41422 "Please read the L</WARNING> section above before using this option."
41423 msgstr ""
41424
41425 #. type: textblock
41426 #: ../tools/virt-tar.pl:175
41427 msgid "You must specify exactly one of these options."
41428 msgstr ""
41429
41430 #. type: =item
41431 #: ../tools/virt-tar.pl:181
41432 msgid "B<-z>"
41433 msgstr ""
41434
41435 #. type: =item
41436 #: ../tools/virt-tar.pl:183
41437 msgid "B<--gzip>"
41438 msgstr ""
41439
41440 #. type: textblock
41441 #: ../tools/virt-tar.pl:185
41442 msgid "Specify that the input or output tarball is gzip-compressed."
41443 msgstr ""
41444
41445 #. type: textblock
41446 #: ../tools/virt-tar.pl:298
41447 msgid ""
41448 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41449 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41450 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41451 "org/>."
41452 msgstr ""
41453
41454 #. type: textblock
41455 #: ../tools/virt-win-reg.pl:37
41456 msgid ""
41457 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
41458 msgstr ""
41459
41460 #. type: verbatim
41461 #: ../tools/virt-win-reg.pl:41
41462 #, no-wrap
41463 msgid ""
41464 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41465 "\n"
41466 msgstr ""
41467
41468 #. type: verbatim
41469 #: ../tools/virt-win-reg.pl:43
41470 #, no-wrap
41471 msgid ""
41472 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41473 "\n"
41474 msgstr ""
41475
41476 #. type: verbatim
41477 #: ../tools/virt-win-reg.pl:45
41478 #, no-wrap
41479 msgid ""
41480 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41481 "\n"
41482 msgstr ""
41483
41484 #. type: verbatim
41485 #: ../tools/virt-win-reg.pl:47
41486 #, no-wrap
41487 msgid ""
41488 " virt-win-reg --merge domname [input.reg ...]\n"
41489 "\n"
41490 msgstr ""
41491
41492 #. type: verbatim
41493 #: ../tools/virt-win-reg.pl:49
41494 #, no-wrap
41495 msgid ""
41496 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41497 "\n"
41498 msgstr ""
41499
41500 #. type: textblock
41501 #: ../tools/virt-win-reg.pl:53
41502 msgid ""
41503 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41504 "virtual machines.  If you do this, you I<will> get irreversible disk "
41505 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41506 "but doesn't catch all cases."
41507 msgstr ""
41508
41509 #. type: textblock
41510 #: ../tools/virt-win-reg.pl:58
41511 msgid ""
41512 "Modifying the Windows Registry is an inherently risky operation.  The format "
41513 "is deliberately obscure and undocumented, and Registry changes can leave the "
41514 "system unbootable.  Therefore when using the I<--merge> option, make sure "
41515 "you have a reliable backup first."
41516 msgstr ""
41517
41518 #. type: textblock
41519 #: ../tools/virt-win-reg.pl:65
41520 msgid ""
41521 "This program can export and merge Windows Registry entries from a Windows "
41522 "guest."
41523 msgstr ""
41524
41525 #. type: textblock
41526 #: ../tools/virt-win-reg.pl:68
41527 msgid ""
41528 "The first parameter is the libvirt guest name or the raw disk image of a "
41529 "Windows guest."
41530 msgstr ""
41531
41532 #. type: textblock
41533 #: ../tools/virt-win-reg.pl:71
41534 msgid ""
41535 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
41536 "exported (recursively).  For example:"
41537 msgstr ""
41538
41539 #. type: verbatim
41540 #: ../tools/virt-win-reg.pl:74
41541 #, no-wrap
41542 msgid ""
41543 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41544 "\n"
41545 msgstr ""
41546
41547 #. type: textblock
41548 #: ../tools/virt-win-reg.pl:76
41549 msgid ""
41550 "You can also display single values from within registry keys, for example:"
41551 msgstr ""
41552
41553 #. type: verbatim
41554 #: ../tools/virt-win-reg.pl:79
41555 #, no-wrap
41556 msgid ""
41557 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
41558 " $ virt-win-reg Windows7 $cvkey ProductName\n"
41559 " Windows 7 Enterprise\n"
41560 "\n"
41561 msgstr ""
41562
41563 #. type: textblock
41564 #: ../tools/virt-win-reg.pl:83
41565 msgid ""
41566 "With I<--merge>, you can merge a textual regedit file into the Windows "
41567 "Registry:"
41568 msgstr ""
41569
41570 #. type: verbatim
41571 #: ../tools/virt-win-reg.pl:86
41572 #, no-wrap
41573 msgid ""
41574 " $ virt-win-reg --merge Windows7 changes.reg\n"
41575 "\n"
41576 msgstr ""
41577
41578 #. type: textblock
41579 #: ../tools/virt-win-reg.pl:90
41580 msgid ""
41581 "This program is only meant for simple access to the registry.  If you want "
41582 "to do complicated things with the registry, we suggest you download the "
41583 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
41584 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
41585 "L<hivexregedit(1)>."
41586 msgstr ""
41587
41588 #. type: =item
41589 #: ../tools/virt-win-reg.pl:159
41590 msgid "B<--merge>"
41591 msgstr ""
41592
41593 #. type: textblock
41594 #: ../tools/virt-win-reg.pl:161
41595 msgid ""
41596 "In merge mode, this merges a textual regedit file into the Windows Registry "
41597 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
41598 "displays or exports Registry entries instead."
41599 msgstr ""
41600
41601 #. type: textblock
41602 #: ../tools/virt-win-reg.pl:165
41603 msgid ""
41604 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41605 "result in disk corruption.  However exporting (without this flag)  is always "
41606 "safe."
41607 msgstr ""
41608
41609 #. type: =item
41610 #: ../tools/virt-win-reg.pl:173
41611 msgid "B<--encoding> UTF-16LE|ASCII"
41612 msgstr ""
41613
41614 #. type: textblock
41615 #: ../tools/virt-win-reg.pl:175
41616 msgid ""
41617 "When merging (only), you may need to specify the encoding for strings to be "
41618 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
41619 "(3)/ENCODING STRINGS>."
41620 msgstr ""
41621
41622 #. type: textblock
41623 #: ../tools/virt-win-reg.pl:179
41624 msgid ""
41625 "The default is to use UTF-16LE, which should work with recent versions of "
41626 "Windows."
41627 msgstr ""
41628
41629 #. type: =item
41630 #: ../tools/virt-win-reg.pl:186
41631 msgid "B<--unsafe-printable-strings>"
41632 msgstr ""
41633
41634 #. type: textblock
41635 #: ../tools/virt-win-reg.pl:188
41636 msgid ""
41637 "When exporting (only), assume strings are UTF-16LE and print them as strings "
41638 "instead of hex sequences.  Remove the final zero codepoint from strings if "
41639 "present."
41640 msgstr ""
41641
41642 #. type: textblock
41643 #: ../tools/virt-win-reg.pl:192
41644 msgid ""
41645 "This is unsafe and does not preserve the fidelity of strings in the original "
41646 "Registry for various reasons:"
41647 msgstr ""
41648
41649 #. type: textblock
41650 #: ../tools/virt-win-reg.pl:199
41651 msgid ""
41652 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
41653 "other encodings will be corrupted by this transformation."
41654 msgstr ""
41655
41656 #. type: textblock
41657 #: ../tools/virt-win-reg.pl:204
41658 msgid ""
41659 "Assumes that everything which has type 1 or 2 is really a string and that "
41660 "everything else is not a string, but the type field in real Registries is "
41661 "not reliable."
41662 msgstr ""
41663
41664 #. type: textblock
41665 #: ../tools/virt-win-reg.pl:210
41666 msgid ""
41667 "Loses information about whether a zero codepoint followed the string in the "
41668 "Registry or not."
41669 msgstr ""
41670
41671 #. type: textblock
41672 #: ../tools/virt-win-reg.pl:215
41673 msgid ""
41674 "This all happens because the Registry itself contains no information about "
41675 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41676 msgstr ""
41677
41678 #. type: textblock
41679 #: ../tools/virt-win-reg.pl:219
41680 msgid ""
41681 "You should only use this option for quick hacking and debugging of the "
41682 "Registry contents, and I<never> use it if the output is going to be passed "
41683 "into another program or stored in another Registry."
41684 msgstr ""
41685
41686 #. type: =head1
41687 #: ../tools/virt-win-reg.pl:556
41688 msgid "SUPPORTED SYSTEMS"
41689 msgstr ""
41690
41691 #. type: textblock
41692 #: ../tools/virt-win-reg.pl:558
41693 msgid ""
41694 "The program currently supports Windows NT-derived guests starting with "
41695 "Windows XP through to at least Windows 7."
41696 msgstr ""
41697
41698 #. type: textblock
41699 #: ../tools/virt-win-reg.pl:561
41700 msgid "The following Registry keys are supported:"
41701 msgstr ""
41702
41703 #. type: =item
41704 #: ../tools/virt-win-reg.pl:565
41705 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41706 msgstr ""
41707
41708 #. type: =item
41709 #: ../tools/virt-win-reg.pl:567
41710 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41711 msgstr ""
41712
41713 #. type: =item
41714 #: ../tools/virt-win-reg.pl:569
41715 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41716 msgstr ""
41717
41718 #. type: =item
41719 #: ../tools/virt-win-reg.pl:571
41720 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41721 msgstr ""
41722
41723 #. type: =item
41724 #: ../tools/virt-win-reg.pl:573
41725 msgid "C<HKEY_USERS\\.DEFAULT>"
41726 msgstr ""
41727
41728 #. type: =item
41729 #: ../tools/virt-win-reg.pl:575
41730 msgid "C<HKEY_USERS\\I<SID>>"
41731 msgstr ""
41732
41733 #. type: textblock
41734 #: ../tools/virt-win-reg.pl:577
41735 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41736 msgstr ""
41737
41738 #. type: =item
41739 #: ../tools/virt-win-reg.pl:579
41740 msgid "C<HKEY_USERS\\I<username>>"
41741 msgstr ""
41742
41743 #. type: textblock
41744 #: ../tools/virt-win-reg.pl:581
41745 msgid ""
41746 "where I<username> is a local user name (this is a libguestfs extension)."
41747 msgstr ""
41748
41749 #. type: textblock
41750 #: ../tools/virt-win-reg.pl:585
41751 msgid ""
41752 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41753 "C<HKEY_USERS>."
41754 msgstr ""
41755
41756 #. type: textblock
41757 #: ../tools/virt-win-reg.pl:588
41758 msgid ""
41759 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41760 "supported (there is no \"current user\")."
41761 msgstr ""
41762
41763 #. type: =head1
41764 #: ../tools/virt-win-reg.pl:591
41765 msgid "ENCODING"
41766 msgstr ""
41767
41768 #. type: textblock
41769 #: ../tools/virt-win-reg.pl:593
41770 msgid ""
41771 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41772 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
41773 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
41774 "Windows-style line endings, you may need to reencode the whole file before "
41775 "or after processing."
41776 msgstr ""
41777
41778 #. type: textblock
41779 #: ../tools/virt-win-reg.pl:599
41780 msgid ""
41781 "To reencode a file from Windows format to Linux (before processing it with "
41782 "the I<--merge> option), you would do something like this:"
41783 msgstr ""
41784
41785 #. type: verbatim
41786 #: ../tools/virt-win-reg.pl:602
41787 #, no-wrap
41788 msgid ""
41789 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41790 "\n"
41791 msgstr ""
41792
41793 #. type: textblock
41794 #: ../tools/virt-win-reg.pl:604
41795 msgid ""
41796 "To go in the opposite direction, after exporting and before sending the file "
41797 "to a Windows user, do something like this:"
41798 msgstr ""
41799
41800 #. type: verbatim
41801 #: ../tools/virt-win-reg.pl:607
41802 #, no-wrap
41803 msgid ""
41804 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41805 "\n"
41806 msgstr ""
41807
41808 #. type: textblock
41809 #: ../tools/virt-win-reg.pl:609
41810 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41811 msgstr ""
41812
41813 #. type: textblock
41814 #: ../tools/virt-win-reg.pl:611
41815 msgid ""
41816 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41817 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
41818 "style (CRLF) line endings, like this:"
41819 msgstr ""
41820
41821 #. type: verbatim
41822 #: ../tools/virt-win-reg.pl:615
41823 #, no-wrap
41824 msgid ""
41825 " $ file software.reg\n"
41826 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41827 " with CRLF line terminators\n"
41828 "\n"
41829 msgstr ""
41830
41831 #. type: textblock
41832 #: ../tools/virt-win-reg.pl:619
41833 msgid "This file would need conversion before you could I<--merge> it."
41834 msgstr ""
41835
41836 #. type: =head1
41837 #: ../tools/virt-win-reg.pl:621
41838 msgid "CurrentControlSet etc."
41839 msgstr ""
41840
41841 #. type: textblock
41842 #: ../tools/virt-win-reg.pl:623
41843 msgid ""
41844 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41845 "Registry at the level of the hive file, and therefore you cannot modify "
41846 "these."
41847 msgstr ""
41848
41849 #. type: textblock
41850 #: ../tools/virt-win-reg.pl:627
41851 msgid ""
41852 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41853 "circumstances it might refer to another control set.  The way to find out is "
41854 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41855 msgstr ""
41856
41857 #. type: verbatim
41858 #: ../tools/virt-win-reg.pl:631
41859 #, no-wrap
41860 msgid ""
41861 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41862 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41863 " \"Current\"=dword:00000001\n"
41864 " \"Default\"=dword:00000001\n"
41865 " \"Failed\"=dword:00000000\n"
41866 " \"LastKnownGood\"=dword:00000002\n"
41867 "\n"
41868 msgstr ""
41869
41870 #. type: textblock
41871 #: ../tools/virt-win-reg.pl:638
41872 msgid "\"Current\" is the one which Windows will choose when it boots."
41873 msgstr ""
41874
41875 #. type: textblock
41876 #: ../tools/virt-win-reg.pl:640
41877 msgid ""
41878 "Similarly, other C<Current...> keys in the path may need to be replaced."
41879 msgstr ""
41880
41881 #. type: =head1
41882 #: ../tools/virt-win-reg.pl:643
41883 msgid "DELETING REGISTRY KEYS AND VALUES"
41884 msgstr ""
41885
41886 #. type: textblock
41887 #: ../tools/virt-win-reg.pl:645
41888 msgid "To delete a whole registry key, use the syntax:"
41889 msgstr ""
41890
41891 #. type: verbatim
41892 #: ../tools/virt-win-reg.pl:647
41893 #, no-wrap
41894 msgid ""
41895 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
41896 "\n"
41897 msgstr ""
41898
41899 #. type: textblock
41900 #: ../tools/virt-win-reg.pl:649
41901 msgid "To delete a single value within a key, use the syntax:"
41902 msgstr ""
41903
41904 #. type: verbatim
41905 #: ../tools/virt-win-reg.pl:651
41906 #, no-wrap
41907 msgid ""
41908 " [HKEY_LOCAL_MACHINE\\Foo]\n"
41909 " \"Value\"=-\n"
41910 "\n"
41911 msgstr ""
41912
41913 #. type: =head1
41914 #: ../tools/virt-win-reg.pl:654
41915 msgid "WINDOWS TIPS"
41916 msgstr ""
41917
41918 #. type: textblock
41919 #: ../tools/virt-win-reg.pl:656
41920 msgid ""
41921 "Note that some of these tips modify the guest disk image.  The guest I<must> "
41922 "be shut off, else you will get disk corruption."
41923 msgstr ""
41924
41925 #. type: =head2
41926 #: ../tools/virt-win-reg.pl:659
41927 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41928 msgstr ""
41929
41930 #. type: textblock
41931 #: ../tools/virt-win-reg.pl:661
41932 msgid ""
41933 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
41934 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
41935 "is uploaded into C<C:\\>:"
41936 msgstr ""
41937
41938 #. type: verbatim
41939 #: ../tools/virt-win-reg.pl:665
41940 #, no-wrap
41941 msgid ""
41942 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41943 "\n"
41944 msgstr ""
41945
41946 #. type: textblock
41947 #: ../tools/virt-win-reg.pl:667
41948 msgid "Prepare a regedit file containing the registry change:"
41949 msgstr ""
41950
41951 #. type: verbatim
41952 #: ../tools/virt-win-reg.pl:669
41953 #, no-wrap
41954 msgid ""
41955 " cat > test.reg <<'EOF'\n"
41956 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41957 " \"Test\"=\"c:\\\\test.bat\"\n"
41958 " EOF\n"
41959 "\n"
41960 msgstr ""
41961
41962 #. type: textblock
41963 #: ../tools/virt-win-reg.pl:674
41964 msgid ""
41965 "In this example we use the key C<RunOnce> which means that the script will "
41966 "run precisely once when the first user logs in.  If you want it to run every "
41967 "time a user logs in, replace C<RunOnce> with C<Run>."
41968 msgstr ""
41969
41970 #. type: textblock
41971 #: ../tools/virt-win-reg.pl:678
41972 msgid "Now update the registry:"
41973 msgstr ""
41974
41975 #. type: verbatim
41976 #: ../tools/virt-win-reg.pl:680
41977 #, no-wrap
41978 msgid ""
41979 " virt-win-reg --merge WindowsGuest test.reg\n"
41980 "\n"
41981 msgstr ""
41982
41983 #. type: =head2
41984 #: ../tools/virt-win-reg.pl:682
41985 msgid "INSTALLING A SERVICE"
41986 msgstr ""
41987
41988 #. type: textblock
41989 #: ../tools/virt-win-reg.pl:684
41990 msgid ""
41991 "This section assumes you are familiar with Windows services, and you either "
41992 "have a program which handles the Windows Service Control Protocol directly "
41993 "or you want to run any program using a service wrapper like SrvAny or the "
41994 "free RHSrvAny."
41995 msgstr ""
41996
41997 #. type: textblock
41998 #: ../tools/virt-win-reg.pl:689
41999 msgid ""
42000 "First upload the program and optionally the service wrapper.  In this case "
42001 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
42002 msgstr ""
42003
42004 #. type: verbatim
42005 #: ../tools/virt-win-reg.pl:693
42006 #, no-wrap
42007 msgid ""
42008 " guestfish -i -d WindowsGuest <<EOF\n"
42009 "   upload rhsrvany.exe /rhsrvany.exe\n"
42010 "   upload test.exe /test.exe\n"
42011 " EOF\n"
42012 "\n"
42013 msgstr ""
42014
42015 #. type: textblock
42016 #: ../tools/virt-win-reg.pl:698
42017 msgid ""
42018 "Prepare a regedit file containing the registry changes.  In this example, "
42019 "the first registry change is needed for the service itself or the service "
42020 "wrapper (if used).  The second registry change is only needed because I am "
42021 "using the RHSrvAny service wrapper."
42022 msgstr ""
42023
42024 #. type: verbatim
42025 #: ../tools/virt-win-reg.pl:703
42026 #, no-wrap
42027 msgid ""
42028 " cat > service.reg <<'EOF'\n"
42029 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42030 " \"Type\"=dword:00000010\n"
42031 " \"Start\"=dword:00000002\n"
42032 " \"ErrorControl\"=dword:00000001\n"
42033 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42034 " \"DisplayName\"=\"RHSrvAny\"\n"
42035 " \"ObjectName\"=\"NetworkService\"\n"
42036 " \n"
42037 msgstr ""
42038
42039 #. type: verbatim
42040 #: ../tools/virt-win-reg.pl:712
42041 #, no-wrap
42042 msgid ""
42043 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42044 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42045 " \"PWD\"=\"c:\\\\Temp\"\n"
42046 " EOF\n"
42047 "\n"
42048 msgstr ""
42049
42050 #. type: textblock
42051 #: ../tools/virt-win-reg.pl:723
42052 msgid ""
42053 "For use of C<ControlSet001> see the section above in this manual page.  You "
42054 "may need to adjust this according to the control set that is in use by the "
42055 "guest."
42056 msgstr ""
42057
42058 #. type: textblock
42059 #: ../tools/virt-win-reg.pl:729
42060 msgid ""
42061 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42062 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42063 "privileged account."
42064 msgstr ""
42065
42066 #. type: textblock
42067 #: ../tools/virt-win-reg.pl:735
42068 msgid ""
42069 "For the meaning of the magic numbers, see this Microsoft KB article: "
42070 "L<http://support.microsoft.com/kb/103000>."
42071 msgstr ""
42072
42073 #. type: textblock
42074 #: ../tools/virt-win-reg.pl:740
42075 msgid "Update the registry:"
42076 msgstr ""
42077
42078 #. type: verbatim
42079 #: ../tools/virt-win-reg.pl:742
42080 #, no-wrap
42081 msgid ""
42082 " virt-win-reg --merge WindowsGuest service.reg\n"
42083 "\n"
42084 msgstr ""
42085
42086 #. type: textblock
42087 #: ../tools/virt-win-reg.pl:746
42088 msgid ""
42089 "Be careful when passing parameters containing C<\\> (backslash) in the "
42090 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42091 "(but not both) to protect them from the shell."
42092 msgstr ""
42093
42094 #. type: textblock
42095 #: ../tools/virt-win-reg.pl:750
42096 msgid "Paths and value names are case-insensitive."
42097 msgstr ""
42098
42099 #. type: textblock
42100 #: ../tools/virt-win-reg.pl:759
42101 msgid ""
42102 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42103 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42104 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42105 msgstr ""
42106
42107 #. type: verbatim
42108 #: ../tools/virt-win-reg.pl:777
42109 #, no-wrap
42110 msgid ""
42111 " export LIBGUESTFS_DEBUG=1\n"
42112 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42113 "\n"
42114 msgstr ""
42115
42116 #. type: textblock
42117 #: ../tools/virt-win-reg.pl:780
42118 msgid ""
42119 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
42120 "redhat.com/>"
42121 msgstr ""