ee8ccd161529b70812ee1886816038f6a71d914b
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Translators:
6 # rjones <rjones@redhat.com>, 2011.
7 #   <www.carrotsoft@gmail.com>, 2011.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: libguestfs\n"
11 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
12 "POT-Creation-Date: 2011-12-02 09:28+0000\n"
13 "PO-Revision-Date: 2011-10-27 09:15+0000\n"
14 "Last-Translator: rjones <rjones@redhat.com>\n"
15 "Language-Team: Japanese <trans-ja@lists.fedoraproject.org>\n"
16 "Language: ja\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=1; plural=0\n"
21
22 #. type: =head1
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../examples/guestfs-testing.pod:3
28 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
29 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
30 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
31 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
32 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
33 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
34 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
35 #: ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3
36 #: ../test-tool/libguestfs-test-tool.pod:3
37 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
38 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
39 #: ../tools/virt-win-reg.pl:35
40 msgid "NAME"
41 msgstr "名前"
42
43 #. type: textblock
44 #: ../align/virt-alignment-scan.pod:5
45 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
46 msgstr ""
47
48 #. type: =head1
49 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
50 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
51 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
52 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
53 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
54 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
55 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
56 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
57 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
58 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
59 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
60 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
61 #: ../test-tool/libguestfs-test-tool.pod:7
62 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
63 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
64 #: ../tools/virt-win-reg.pl:39
65 msgid "SYNOPSIS"
66 msgstr ""
67
68 #. type: verbatim
69 #: ../align/virt-alignment-scan.pod:9
70 #, no-wrap
71 msgid ""
72 " virt-alignment-scan [--options] -d domname\n"
73 "\n"
74 msgstr ""
75
76 #. type: verbatim
77 #: ../align/virt-alignment-scan.pod:11
78 #, no-wrap
79 msgid ""
80 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
81 "\n"
82 msgstr ""
83
84 #. type: =head1
85 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
86 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
87 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
88 #: ../erlang/examples/guestfs-erlang.pod:16
89 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
90 #: ../examples/guestfs-testing.pod:7 ../fish/guestfish.pod:30
91 #: ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13
92 #: ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15
93 #: ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19
94 #: ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25
95 #: ../perl/examples/guestfs-perl.pod:18
96 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
97 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
98 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
99 #: ../test-tool/libguestfs-test-tool.pod:11
100 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
101 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
102 #: ../tools/virt-win-reg.pl:63
103 msgid "DESCRIPTION"
104 msgstr ""
105
106 #. type: textblock
107 #: ../align/virt-alignment-scan.pod:15
108 msgid ""
109 "When older operating systems install themselves, the partitioning tools "
110 "place partitions at a sector misaligned with the underlying storage "
111 "(commonly the first partition starts on sector C<63>).  Misaligned "
112 "partitions can result in an operating system issuing more I/O than should be "
113 "necessary."
114 msgstr ""
115
116 #. type: textblock
117 #: ../align/virt-alignment-scan.pod:21
118 msgid ""
119 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
120 "machines and disk images and warns you if there are alignment problems."
121 msgstr ""
122
123 #. type: textblock
124 #: ../align/virt-alignment-scan.pod:25
125 msgid ""
126 "Currently there is no virt tool for fixing alignment problems.  You can only "
127 "reinstall the guest operating system.  The following NetApp document "
128 "summarises the problem and possible solutions: L<http://media.netapp.com/"
129 "documents/tr-3747.pdf>"
130 msgstr ""
131
132 #. type: =head1
133 #: ../align/virt-alignment-scan.pod:30
134 msgid "OUTPUT"
135 msgstr ""
136
137 #. type: textblock
138 #: ../align/virt-alignment-scan.pod:32
139 msgid "To run this tool on a disk image directly, use the I<-a> option:"
140 msgstr ""
141
142 #. type: verbatim
143 #: ../align/virt-alignment-scan.pod:34
144 #, no-wrap
145 msgid ""
146 " $ virt-alignment-scan -a winxp.img\n"
147 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
148 "\n"
149 msgstr ""
150
151 #. type: verbatim
152 #: ../align/virt-alignment-scan.pod:37
153 #, no-wrap
154 msgid ""
155 " $ virt-alignment-scan -a fedora16.img\n"
156 " /dev/sda1      1048576         1024K   ok\n"
157 " /dev/sda2      2097152         2048K   ok\n"
158 " /dev/sda3    526385152         2048K   ok\n"
159 "\n"
160 msgstr ""
161
162 #. type: textblock
163 #: ../align/virt-alignment-scan.pod:42
164 msgid ""
165 "To run the tool on a guest known to libvirt, use the I<-d> option and "
166 "possibly the I<-c> option:"
167 msgstr ""
168
169 #. type: verbatim
170 #: ../align/virt-alignment-scan.pod:45
171 #, no-wrap
172 msgid ""
173 " # virt-alignment-scan -d RHEL5\n"
174 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
175 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
176 "\n"
177 msgstr ""
178
179 #. type: verbatim
180 #: ../align/virt-alignment-scan.pod:49
181 #, no-wrap
182 msgid ""
183 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
184 " /dev/sda1      1048576         1024K   ok\n"
185 " /dev/sda2    105906176         1024K   ok\n"
186 " /dev/sdb1        65536           64K   ok\n"
187 "\n"
188 msgstr ""
189
190 #. type: textblock
191 #: ../align/virt-alignment-scan.pod:54
192 msgid ""
193 "The output consists of 4 or more whitespace-separated columns.  Only the "
194 "first 4 columns are signficant if you want to parse this from a program.  "
195 "The columns are:"
196 msgstr ""
197
198 #. type: =item
199 #: ../align/virt-alignment-scan.pod:60
200 msgid "col 1"
201 msgstr ""
202
203 #. type: textblock
204 #: ../align/virt-alignment-scan.pod:62
205 msgid ""
206 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
207 "on the first block device)"
208 msgstr ""
209
210 #. type: =item
211 #: ../align/virt-alignment-scan.pod:65
212 msgid "col 2"
213 msgstr ""
214
215 #. type: textblock
216 #: ../align/virt-alignment-scan.pod:67
217 msgid "the start of the partition in bytes"
218 msgstr ""
219
220 #. type: =item
221 #: ../align/virt-alignment-scan.pod:69
222 msgid "col 3"
223 msgstr ""
224
225 #. type: textblock
226 #: ../align/virt-alignment-scan.pod:71
227 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
228 msgstr ""
229
230 #. type: =item
231 #: ../align/virt-alignment-scan.pod:73
232 msgid "col 4"
233 msgstr ""
234
235 #. type: textblock
236 #: ../align/virt-alignment-scan.pod:75
237 msgid ""
238 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
239 "can cause performance problems"
240 msgstr ""
241
242 #. type: =item
243 #: ../align/virt-alignment-scan.pod:78
244 msgid "cols 5+"
245 msgstr ""
246
247 #. type: textblock
248 #: ../align/virt-alignment-scan.pod:80
249 msgid "optional free-text explanation."
250 msgstr ""
251
252 #. type: textblock
253 #: ../align/virt-alignment-scan.pod:84
254 msgid ""
255 "The exit code from the program changes depending on whether poorly aligned "
256 "partitions were found.  See L</EXIT STATUS> below."
257 msgstr ""
258
259 #. type: textblock
260 #: ../align/virt-alignment-scan.pod:87
261 msgid "If you just want the exit code with no output, use the I<-q> option."
262 msgstr ""
263
264 #. type: =head1
265 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
266 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
267 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
268 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
269 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
270 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
271 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
272 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
273 #: ../test-tool/libguestfs-test-tool.pod:36
274 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
275 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
276 #: ../tools/virt-win-reg.pl:96
277 msgid "OPTIONS"
278 msgstr ""
279
280 #. type: =item
281 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
282 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
283 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
284 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
285 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
286 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
287 #: ../test-tool/libguestfs-test-tool.pod:40
288 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
289 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
290 #: ../tools/virt-win-reg.pl:104
291 msgid "B<--help>"
292 msgstr ""
293
294 #. type: textblock
295 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
296 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
297 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
298 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
299 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
300 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
301 #: ../tools/virt-win-reg.pl:106
302 msgid "Display brief help."
303 msgstr ""
304
305 #. type: =item
306 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
307 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
308 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
309 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
310 msgid "B<-a> file"
311 msgstr ""
312
313 #. type: =item
314 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
315 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
316 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
317 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
318 msgid "B<--add> file"
319 msgstr ""
320
321 #. type: textblock
322 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
323 msgid "Add I<file> which should be a disk image from a virtual machine."
324 msgstr ""
325
326 #. type: textblock
327 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
328 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
329 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
330 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
331 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
332 msgid ""
333 "The format of the disk image is auto-detected.  To override this and force a "
334 "particular format use the I<--format=..> option."
335 msgstr ""
336
337 #. type: =item
338 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
339 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
340 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
341 #: ../rescue/virt-rescue.pod:107
342 msgid "B<-c> URI"
343 msgstr ""
344
345 #. type: =item
346 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
347 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
348 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
349 #: ../rescue/virt-rescue.pod:109
350 msgid "B<--connect> URI"
351 msgstr ""
352
353 #. type: textblock
354 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
355 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
356 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
357 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
358 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
359 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
360 msgid ""
361 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
362 "to the default libvirt hypervisor."
363 msgstr ""
364
365 #. type: textblock
366 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
367 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
368 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
369 #: ../rescue/virt-rescue.pod:114
370 msgid ""
371 "If you specify guest block devices directly (I<-a>), then libvirt is not "
372 "used at all."
373 msgstr ""
374
375 #. type: =item
376 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
377 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
378 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
379 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
380 msgid "B<-d> guest"
381 msgstr ""
382
383 #. type: =item
384 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
385 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
386 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
387 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
388 msgid "B<--domain> guest"
389 msgstr ""
390
391 #. type: textblock
392 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
393 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
394 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
395 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
396 msgid ""
397 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
398 "instead of names."
399 msgstr ""
400
401 #. type: =item
402 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
403 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
404 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
405 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
406 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
407 msgid "B<--format=raw|qcow2|..>"
408 msgstr ""
409
410 #. type: =item
411 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
412 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
413 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
414 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
415 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
416 #: ../rescue/virt-rescue.pod:126
417 msgid "B<--format>"
418 msgstr ""
419
420 #. type: textblock
421 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
422 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
423 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
424 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
425 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
426 msgid ""
427 "The default for the I<-a> option is to auto-detect the format of the disk "
428 "image.  Using this forces the disk format for I<-a> options which follow on "
429 "the command line.  Using I<--format> with no argument switches back to auto-"
430 "detection for subsequent I<-a> options."
431 msgstr ""
432
433 #. type: textblock
434 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
435 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
436 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
437 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
438 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351
439 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2877
440 msgid "For example:"
441 msgstr ""
442
443 #. type: verbatim
444 #: ../align/virt-alignment-scan.pod:134
445 #, no-wrap
446 msgid ""
447 " virt-alignment-scan --format=raw -a disk.img\n"
448 "\n"
449 msgstr ""
450
451 #. type: textblock
452 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
453 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
454 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
455 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
456 #: ../rescue/virt-rescue.pod:137
457 msgid "forces raw format (no auto-detection) for C<disk.img>."
458 msgstr ""
459
460 #. type: verbatim
461 #: ../align/virt-alignment-scan.pod:138
462 #, no-wrap
463 msgid ""
464 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
465 "\n"
466 msgstr ""
467
468 #. type: textblock
469 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
470 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
471 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
472 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
473 #: ../rescue/virt-rescue.pod:141
474 msgid ""
475 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
476 "detection for C<another.img>."
477 msgstr ""
478
479 #. type: textblock
480 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
481 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
482 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
483 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
484 msgid ""
485 "If you have untrusted raw-format guest disk images, you should use this "
486 "option to specify the disk format.  This avoids a possible security problem "
487 "with malicious guests (CVE-2010-3851)."
488 msgstr ""
489
490 #. type: =item
491 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:497
492 #: ../sparsify/virt-sparsify.pod:158
493 msgid "B<-q>"
494 msgstr ""
495
496 #. type: =item
497 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:499
498 #: ../sparsify/virt-sparsify.pod:160
499 msgid "B<--quiet>"
500 msgstr ""
501
502 #. type: textblock
503 #: ../align/virt-alignment-scan.pod:151
504 msgid ""
505 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
506 "below)."
507 msgstr ""
508
509 #. type: =item
510 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
511 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
512 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
513 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
514 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
515 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:164
516 msgid "B<-v>"
517 msgstr ""
518
519 #. type: =item
520 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
521 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
522 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
523 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
524 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
525 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:166
526 msgid "B<--verbose>"
527 msgstr ""
528
529 #. type: textblock
530 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
531 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
532 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
533 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
534 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:168
535 msgid "Enable verbose messages for debugging."
536 msgstr ""
537
538 #. type: =item
539 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
540 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
541 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
542 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
543 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
544 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:567
545 #: ../sparsify/virt-sparsify.pod:170
546 msgid "B<-V>"
547 msgstr ""
548
549 #. type: =item
550 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
551 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
552 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
553 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
554 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
555 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:569
556 #: ../sparsify/virt-sparsify.pod:172 ../tools/virt-list-filesystems.pl:69
557 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
558 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
559 msgid "B<--version>"
560 msgstr ""
561
562 #. type: textblock
563 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
564 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
565 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
566 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
567 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:571
568 #: ../sparsify/virt-sparsify.pod:174 ../tools/virt-list-filesystems.pl:71
569 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
570 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
571 msgid "Display version number and exit."
572 msgstr ""
573
574 #. type: =item
575 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
576 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
577 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
578 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
579 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
580 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:176
581 #: ../tools/virt-tar.pl:158
582 msgid "B<-x>"
583 msgstr ""
584
585 #. type: textblock
586 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
587 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
588 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
589 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
590 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:178
591 msgid "Enable tracing of libguestfs API calls."
592 msgstr ""
593
594 #. type: =head1
595 #: ../align/virt-alignment-scan.pod:172
596 msgid "RECOMMENDED ALIGNMENT"
597 msgstr ""
598
599 #. type: textblock
600 #: ../align/virt-alignment-scan.pod:174
601 msgid ""
602 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
603 "first sector of the first partition at sector 63, with a 512 byte sector "
604 "size.  This happens because of a historical accident.  Drives have to report "
605 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
606 "completely meaningless on modern drives, but it happens that the geometry "
607 "reported always has 63 sectors per track.  The operating system therefore "
608 "places the first partition at the start of the second \"track\", at sector "
609 "63."
610 msgstr ""
611
612 #. type: textblock
613 #: ../align/virt-alignment-scan.pod:183
614 msgid ""
615 "When the guest OS is virtualized, the host operating system and hypervisor "
616 "may prefer accesses aligned to one of:"
617 msgstr ""
618
619 #. type: =item
620 #: ../align/virt-alignment-scan.pod:188
621 msgid "* 512 bytes"
622 msgstr ""
623
624 #. type: textblock
625 #: ../align/virt-alignment-scan.pod:190
626 msgid ""
627 "if the host OS uses local storage directly on hard drive partitions, and the "
628 "hard drive has 512 byte physical sectors."
629 msgstr ""
630
631 #. type: =item
632 #: ../align/virt-alignment-scan.pod:193
633 msgid "* 4 Kbytes"
634 msgstr ""
635
636 #. type: textblock
637 #: ../align/virt-alignment-scan.pod:195
638 msgid ""
639 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
640 "backed storage on filesystems with 4Kbyte block size; or for some types of "
641 "network-attached storage."
642 msgstr ""
643
644 #. type: =item
645 #: ../align/virt-alignment-scan.pod:199
646 msgid "* 64 Kbytes"
647 msgstr ""
648
649 #. type: textblock
650 #: ../align/virt-alignment-scan.pod:201
651 msgid ""
652 "for high-end network-attached storage.  This is the optimal block size for "
653 "some NetApp hardware."
654 msgstr ""
655
656 #. type: =item
657 #: ../align/virt-alignment-scan.pod:204
658 msgid "* 1 Mbyte"
659 msgstr ""
660
661 #. type: textblock
662 #: ../align/virt-alignment-scan.pod:206
663 msgid "see L</1 MB PARTITION ALIGNMENT> below."
664 msgstr ""
665
666 #. type: textblock
667 #: ../align/virt-alignment-scan.pod:210
668 msgid ""
669 "Partitions which are not aligned correctly to the underlying storage cause "
670 "extra I/O.  For example:"
671 msgstr ""
672
673 #. type: verbatim
674 #: ../align/virt-alignment-scan.pod:213
675 #, no-wrap
676 msgid ""
677 "                       sect#63\n"
678 "                       +--------------------------+------\n"
679 "                       |         guest            |\n"
680 "                       |    filesystem block      |\n"
681 " ---+------------------+------+-------------------+-----+---\n"
682 "    |  host block             |  host block             |\n"
683 "    |                         |                         |\n"
684 " ---+-------------------------+-------------------------+---\n"
685 "\n"
686 msgstr ""
687
688 #. type: textblock
689 #: ../align/virt-alignment-scan.pod:222
690 msgid ""
691 "In this example, each time a 4K guest block is read, two blocks on the host "
692 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
693 "written, two host blocks must first be read, the old and new data combined, "
694 "and the two blocks written back (4x I/O)."
695 msgstr ""
696
697 #. type: =head2
698 #: ../align/virt-alignment-scan.pod:227
699 msgid "LINUX HOST BLOCK AND I/O SIZE"
700 msgstr ""
701
702 #. type: textblock
703 #: ../align/virt-alignment-scan.pod:229
704 msgid ""
705 "New versions of the Linux kernel expose the physical and logical block size, "
706 "and minimum and recommended I/O size."
707 msgstr ""
708
709 #. type: textblock
710 #: ../align/virt-alignment-scan.pod:232
711 msgid "For a typical consumer hard drive with 512 byte sectors:"
712 msgstr ""
713
714 #. type: verbatim
715 #: ../align/virt-alignment-scan.pod:234
716 #, no-wrap
717 msgid ""
718 " $ cat /sys/block/sda/queue/hw_sector_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/physical_block_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/logical_block_size\n"
723 " 512\n"
724 " $ cat /sys/block/sda/queue/minimum_io_size\n"
725 " 512\n"
726 " $ cat /sys/block/sda/queue/optimal_io_size\n"
727 " 0\n"
728 "\n"
729 msgstr ""
730
731 #. type: textblock
732 #: ../align/virt-alignment-scan.pod:245
733 msgid "For a new consumer hard drive with 4Kbyte sectors:"
734 msgstr ""
735
736 #. type: verbatim
737 #: ../align/virt-alignment-scan.pod:247
738 #, no-wrap
739 msgid ""
740 " $ cat /sys/block/sda/queue/hw_sector_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sda/queue/physical_block_size\n"
743 " 4096\n"
744 " $ cat /sys/block/sda/queue/logical_block_size\n"
745 " 4096\n"
746 " $ cat /sys/block/sda/queue/minimum_io_size\n"
747 " 4096\n"
748 " $ cat /sys/block/sda/queue/optimal_io_size\n"
749 " 0\n"
750 "\n"
751 msgstr ""
752
753 #. type: textblock
754 #: ../align/virt-alignment-scan.pod:258
755 msgid "For a NetApp LUN:"
756 msgstr ""
757
758 #. type: verbatim
759 #: ../align/virt-alignment-scan.pod:260
760 #, no-wrap
761 msgid ""
762 " $ cat /sys/block/sdc/queue/logical_block_size\n"
763 " 512\n"
764 " $ cat /sys/block/sdc/queue/physical_block_size\n"
765 " 512\n"
766 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
767 " 4096\n"
768 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
769 " 65536\n"
770 "\n"
771 msgstr ""
772
773 #. type: textblock
774 #: ../align/virt-alignment-scan.pod:269
775 msgid ""
776 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
777 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
778 msgstr ""
779
780 #. type: textblock
781 #: ../align/virt-alignment-scan.pod:273
782 msgid ""
783 "For detailed information about what these numbers mean, see L<http://docs."
784 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
785 "Storage_Administration_Guide/newstorage-iolimits.html>"
786 msgstr ""
787
788 #. type: textblock
789 #: ../align/virt-alignment-scan.pod:276
790 msgid ""
791 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
792 "for providing NetApp data and additional information.]"
793 msgstr ""
794
795 #. type: =head2
796 #: ../align/virt-alignment-scan.pod:279
797 msgid "1 MB PARTITION ALIGNMENT"
798 msgstr ""
799
800 #. type: textblock
801 #: ../align/virt-alignment-scan.pod:281
802 msgid ""
803 "Microsoft picked 1 MB as the default alignment for all partitions starting "
804 "with Windows 2008 Server, and Linux has followed this."
805 msgstr ""
806
807 #. type: textblock
808 #: ../align/virt-alignment-scan.pod:284
809 msgid ""
810 "Assuming 512 byte sectors in the guest, you will now see the first partition "
811 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
812 "multiple of 2048 sectors."
813 msgstr ""
814
815 #. type: textblock
816 #: ../align/virt-alignment-scan.pod:288
817 msgid ""
818 "1 MB alignment is compatible with all current alignment requirements (4K, "
819 "64K) and provides room for future growth in physical block sizes."
820 msgstr ""
821
822 #. type: =head2
823 #: ../align/virt-alignment-scan.pod:291
824 msgid "SETTING ALIGNMENT"
825 msgstr ""
826
827 #. type: textblock
828 #: ../align/virt-alignment-scan.pod:293
829 msgid ""
830 "L<virt-resize(1)> can change the alignment of the partitions of some "
831 "guests.  Currently it can fully align all the partitions of all Windows "
832 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
833 "it can align the second and subsequent partitions, so the majority of OS "
834 "accesses except at boot will be aligned."
835 msgstr ""
836
837 #. type: textblock
838 #: ../align/virt-alignment-scan.pod:299
839 msgid ""
840 "Another way to correct partition alignment problems is to reinstall your "
841 "guest operating systems.  If you install operating systems from templates, "
842 "ensure these have correct partition alignment too."
843 msgstr ""
844
845 #. type: textblock
846 #: ../align/virt-alignment-scan.pod:303
847 msgid ""
848 "For older versions of Windows, the following NetApp document contains useful "
849 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
850 msgstr ""
851
852 #. type: textblock
853 #: ../align/virt-alignment-scan.pod:306
854 msgid ""
855 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
856 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
857 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
858 "contains an example."
859 msgstr ""
860
861 #. type: =head1
862 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
863 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
864 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:241
865 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
866 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:682
867 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
868 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
869 #: ../tools/virt-win-reg.pl:744
870 msgid "SHELL QUOTING"
871 msgstr ""
872
873 #. type: textblock
874 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
875 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
876 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243
877 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
878 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:684
879 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
880 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
881 #: ../tools/virt-win-reg.pl:752
882 msgid ""
883 "Libvirt guest names can contain arbitrary characters, some of which have "
884 "meaning to the shell such as C<#> and space.  You may need to quote or "
885 "escape these characters on the command line.  See the shell manual page L<sh"
886 "(1)> for details."
887 msgstr ""
888
889 #. type: =head1
890 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
891 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
892 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:248
893 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
894 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
895 #: ../resize/virt-resize.pod:689 ../sparsify/virt-sparsify.pod:232
896 #: ../test-tool/libguestfs-test-tool.pod:90
897 msgid "EXIT STATUS"
898 msgstr ""
899
900 #. type: textblock
901 #: ../align/virt-alignment-scan.pod:320
902 msgid "This program returns:"
903 msgstr ""
904
905 #. type: =item
906 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
907 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
908 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
909 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
910 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
911 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
912 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
913 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
914 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
915 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
916 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
917 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
918 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
919 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
920 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
921 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
922 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
923 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
924 #: ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114
925 #: ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:13
926 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:441
927 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:456
928 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:1262
929 #: ../fish/guestfish-actions.pod:1266 ../fish/guestfish-actions.pod:1270
930 #: ../fish/guestfish-actions.pod:1274 ../fish/guestfish-actions.pod:1282
931 #: ../fish/guestfish-actions.pod:1286 ../fish/guestfish-actions.pod:1290
932 #: ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1304
933 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1398
934 #: ../fish/guestfish-actions.pod:1402 ../fish/guestfish-actions.pod:1407
935 #: ../fish/guestfish-actions.pod:1412 ../fish/guestfish-actions.pod:1454
936 #: ../fish/guestfish-actions.pod:1458 ../fish/guestfish-actions.pod:1463
937 #: ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1726
938 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:2136
939 #: ../fish/guestfish-actions.pod:2142 ../fish/guestfish-actions.pod:2150
940 #: ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2164
941 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
942 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
943 #: ../inspector/virt-inspector.pod:408 ../inspector/virt-inspector.pod:412
944 #: ../resize/virt-resize.pod:365 ../resize/virt-resize.pod:369
945 #: ../resize/virt-resize.pod:378 ../resize/virt-resize.pod:384
946 #: ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39
947 #: ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49
948 #: ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58
949 #: ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22
950 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:641
951 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:656
952 #: ../src/guestfs-actions.pod:663 ../src/guestfs-actions.pod:2079
953 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2087
954 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2099
955 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2107
956 #: ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2121
957 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2263
958 #: ../src/guestfs-actions.pod:2267 ../src/guestfs-actions.pod:2272
959 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2338
960 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:2347
961 #: ../src/guestfs-actions.pod:2762 ../src/guestfs-actions.pod:2769
962 #: ../src/guestfs-actions.pod:2776 ../src/guestfs-actions.pod:3321
963 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3335
964 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3349
965 #: ../src/guestfs.pod:403 ../src/guestfs.pod:408 ../src/guestfs.pod:413
966 #: ../src/guestfs.pod:417 ../src/guestfs.pod:422 ../src/guestfs.pod:426
967 #: ../src/guestfs.pod:431 ../src/guestfs.pod:436 ../src/guestfs.pod:1109
968 #: ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1122
969 #: ../src/guestfs.pod:1130 ../src/guestfs.pod:1149 ../src/guestfs.pod:1157
970 #: ../src/guestfs.pod:1179 ../src/guestfs.pod:1183 ../src/guestfs.pod:1187
971 #: ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1199
972 #: ../src/guestfs.pod:1689 ../src/guestfs.pod:1694 ../src/guestfs.pod:1698
973 #: ../src/guestfs.pod:1800 ../src/guestfs.pod:1805 ../src/guestfs.pod:1809
974 #: ../src/guestfs.pod:1819 ../src/guestfs.pod:2108 ../src/guestfs.pod:2113
975 #: ../src/guestfs.pod:2119 ../src/guestfs.pod:2127 ../src/guestfs.pod:2645
976 #: ../src/guestfs.pod:2651 ../src/guestfs.pod:2656 ../src/guestfs.pod:2662
977 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3072 ../src/guestfs.pod:3076
978 #: ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3098
979 #: ../src/guestfs.pod:3103 ../src/guestfs.pod:3335 ../src/guestfs.pod:3339
980 #: ../src/guestfs.pod:3343 ../src/guestfs.pod:3347
981 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
982 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721
983 #: ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733
984 msgid "*"
985 msgstr ""
986
987 #. type: textblock
988 #: ../align/virt-alignment-scan.pod:326
989 msgid "0"
990 msgstr ""
991
992 #. type: textblock
993 #: ../align/virt-alignment-scan.pod:328
994 msgid ""
995 "successful exit, all partitions are aligned E<ge> 64K for best performance"
996 msgstr ""
997
998 #. type: textblock
999 #: ../align/virt-alignment-scan.pod:332
1000 msgid "1"
1001 msgstr ""
1002
1003 #. type: textblock
1004 #: ../align/virt-alignment-scan.pod:334
1005 msgid "an error scanning the disk image or guest"
1006 msgstr ""
1007
1008 #. type: textblock
1009 #: ../align/virt-alignment-scan.pod:338
1010 msgid "2"
1011 msgstr ""
1012
1013 #. type: textblock
1014 #: ../align/virt-alignment-scan.pod:340
1015 msgid ""
1016 "successful exit, some partitions have alignment E<lt> 64K which can result "
1017 "in poor performance on high end network storage"
1018 msgstr ""
1019
1020 #. type: textblock
1021 #: ../align/virt-alignment-scan.pod:345
1022 msgid "3"
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../align/virt-alignment-scan.pod:347
1027 msgid ""
1028 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1029 "poor performance on most hypervisors"
1030 msgstr ""
1031
1032 #. type: =head1
1033 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1034 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1035 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253
1036 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1037 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1038 #: ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1268
1039 #: ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39
1040 #: ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41
1041 #: ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:395
1042 #: ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78
1043 #: ../perl/examples/guestfs-perl.pod:39
1044 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1045 #: ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:36
1046 #: ../sparsify/virt-sparsify.pod:256 ../src/guestfs.pod:3275
1047 #: ../test-tool/libguestfs-test-tool.pod:100
1048 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1049 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1050 #: ../tools/virt-win-reg.pl:757
1051 msgid "SEE ALSO"
1052 msgstr ""
1053
1054 #. type: textblock
1055 #: ../align/virt-alignment-scan.pod:354
1056 msgid ""
1057 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1058 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1059 msgstr ""
1060
1061 #. type: =head1
1062 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1063 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1064 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:261
1065 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1066 #: ../resize/virt-resize.pod:717 ../sparsify/virt-sparsify.pod:269
1067 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1068 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1069 #: ../tools/virt-win-reg.pl:783
1070 msgid "AUTHOR"
1071 msgstr ""
1072
1073 #. type: textblock
1074 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1075 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1076 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:263
1077 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1078 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:719
1079 #: ../sparsify/virt-sparsify.pod:271 ../tools/virt-list-filesystems.pl:210
1080 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1081 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1082 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1083 msgstr ""
1084
1085 #. type: =head1
1086 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1087 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1088 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:265
1089 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1090 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1091 #: ../examples/guestfs-testing.pod:302 ../fish/guestfish.pod:1300
1092 #: ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53
1093 #: ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55
1094 #: ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:418
1095 #: ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95
1096 #: ../perl/examples/guestfs-perl.pod:56
1097 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1098 #: ../resize/virt-resize.pod:721 ../ruby/examples/guestfs-ruby.pod:52
1099 #: ../sparsify/virt-sparsify.pod:273 ../src/guestfs.pod:3358
1100 #: ../test-tool/libguestfs-test-tool.pod:110
1101 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1102 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1103 #: ../tools/virt-win-reg.pl:787
1104 msgid "COPYRIGHT"
1105 msgstr ""
1106
1107 #. type: textblock
1108 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1109 #: ../sparsify/virt-sparsify.pod:275
1110 msgid "Copyright (C) 2011 Red Hat Inc."
1111 msgstr ""
1112
1113 #. type: textblock
1114 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1115 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1116 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:269
1117 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1118 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1119 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1120 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1121 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:725
1122 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:115
1123 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1124 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1125 #: ../tools/virt-win-reg.pl:791
1126 msgid ""
1127 "This program is free software; you can redistribute it and/or modify it "
1128 "under the terms of the GNU General Public License as published by the Free "
1129 "Software Foundation; either version 2 of the License, or (at your option) "
1130 "any later version."
1131 msgstr ""
1132
1133 #. type: textblock
1134 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1135 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1136 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:274
1137 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1138 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1139 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1140 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1141 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:730
1142 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:120
1143 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1144 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1145 #: ../tools/virt-win-reg.pl:796
1146 msgid ""
1147 "This program is distributed in the hope that it will be useful, but WITHOUT "
1148 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1149 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1150 "more details."
1151 msgstr ""
1152
1153 #. type: textblock
1154 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1155 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1156 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:279
1157 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1158 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1159 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1160 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1161 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:735
1162 #: ../sparsify/virt-sparsify.pod:287 ../test-tool/libguestfs-test-tool.pod:125
1163 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1164 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1165 #: ../tools/virt-win-reg.pl:801
1166 msgid ""
1167 "You should have received a copy of the GNU General Public License along with "
1168 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1169 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1170 msgstr ""
1171
1172 #. type: textblock
1173 #: ../cat/virt-cat.pod:5
1174 msgid "virt-cat - Display files in a virtual machine"
1175 msgstr ""
1176
1177 #. type: verbatim
1178 #: ../cat/virt-cat.pod:9
1179 #, no-wrap
1180 msgid ""
1181 " virt-cat [--options] -d domname file [file ...]\n"
1182 "\n"
1183 msgstr ""
1184
1185 #. type: verbatim
1186 #: ../cat/virt-cat.pod:11
1187 #, no-wrap
1188 msgid ""
1189 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1190 "\n"
1191 msgstr ""
1192
1193 #. type: textblock
1194 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1195 #: ../inspector/virt-inspector.pod:13
1196 msgid "Old-style:"
1197 msgstr ""
1198
1199 #. type: verbatim
1200 #: ../cat/virt-cat.pod:15
1201 #, no-wrap
1202 msgid ""
1203 " virt-cat domname file\n"
1204 "\n"
1205 msgstr ""
1206
1207 #. type: verbatim
1208 #: ../cat/virt-cat.pod:17
1209 #, no-wrap
1210 msgid ""
1211 " virt-cat disk.img file\n"
1212 "\n"
1213 msgstr ""
1214
1215 #. type: textblock
1216 #: ../cat/virt-cat.pod:21
1217 msgid ""
1218 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1219 "C<file> exists in the named virtual machine (or disk image)."
1220 msgstr ""
1221
1222 #. type: textblock
1223 #: ../cat/virt-cat.pod:24
1224 msgid ""
1225 "Multiple filenames can be given, in which case they are concatenated "
1226 "together.  Each filename must be a full path, starting at the root directory "
1227 "(starting with '/')."
1228 msgstr ""
1229
1230 #. type: textblock
1231 #: ../cat/virt-cat.pod:28
1232 msgid ""
1233 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1234 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1235 "(see L</USING GUESTFISH> below)."
1236 msgstr ""
1237
1238 #. type: =head1
1239 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1240 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1241 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1242 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1243 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1244 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1245 #: ../tools/virt-tar.pl:50
1246 msgid "EXAMPLES"
1247 msgstr ""
1248
1249 #. type: textblock
1250 #: ../cat/virt-cat.pod:34
1251 msgid ""
1252 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1253 msgstr ""
1254
1255 #. type: verbatim
1256 #: ../cat/virt-cat.pod:37
1257 #, no-wrap
1258 msgid ""
1259 " virt-cat -d mydomain /etc/fstab\n"
1260 "\n"
1261 msgstr ""
1262
1263 #. type: textblock
1264 #: ../cat/virt-cat.pod:39
1265 msgid "List syslog messages from a VM disk image file:"
1266 msgstr ""
1267
1268 #. type: verbatim
1269 #: ../cat/virt-cat.pod:41
1270 #, no-wrap
1271 msgid ""
1272 " virt-cat -a disk.img /var/log/messages | tail\n"
1273 "\n"
1274 msgstr ""
1275
1276 #. type: textblock
1277 #: ../cat/virt-cat.pod:43
1278 msgid "Find out what DHCP IP address a VM acquired:"
1279 msgstr ""
1280
1281 #. type: verbatim
1282 #: ../cat/virt-cat.pod:45
1283 #, no-wrap
1284 msgid ""
1285 " virt-cat -d mydomain /var/log/messages | \\\n"
1286 "   grep 'dhclient: bound to' | tail\n"
1287 "\n"
1288 msgstr ""
1289
1290 #. type: textblock
1291 #: ../cat/virt-cat.pod:48
1292 msgid "Find out what packages were recently installed:"
1293 msgstr ""
1294
1295 #. type: verbatim
1296 #: ../cat/virt-cat.pod:50
1297 #, no-wrap
1298 msgid ""
1299 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1300 "\n"
1301 msgstr ""
1302
1303 #. type: textblock
1304 #: ../cat/virt-cat.pod:52
1305 msgid "Find out who is logged on inside a virtual machine:"
1306 msgstr ""
1307
1308 #. type: verbatim
1309 #: ../cat/virt-cat.pod:54
1310 #, no-wrap
1311 msgid ""
1312 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1313 " who /tmp/utmp\n"
1314 "\n"
1315 msgstr ""
1316
1317 #. type: textblock
1318 #: ../cat/virt-cat.pod:57
1319 msgid "or who was logged on:"
1320 msgstr ""
1321
1322 #. type: verbatim
1323 #: ../cat/virt-cat.pod:59
1324 #, no-wrap
1325 msgid ""
1326 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1327 " last -f /tmp/wtmp\n"
1328 "\n"
1329 msgstr ""
1330
1331 #. type: textblock
1332 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1333 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1334 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1335 msgid ""
1336 "Add I<file> which should be a disk image from a virtual machine.  If the "
1337 "virtual machine has multiple block devices, you must supply all of them with "
1338 "separate I<-a> options."
1339 msgstr ""
1340
1341 #. type: =item
1342 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1343 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1344 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1345 msgid "B<--echo-keys>"
1346 msgstr ""
1347
1348 #. type: textblock
1349 #: ../cat/virt-cat.pod:100
1350 msgid ""
1351 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1352 "so you cannot see what you are typing.  If you are not worried about Tempest "
1353 "attacks and there is no one else in the room you can specify this flag to "
1354 "see what you are typing."
1355 msgstr ""
1356
1357 #. type: verbatim
1358 #: ../cat/virt-cat.pod:116
1359 #, no-wrap
1360 msgid ""
1361 " virt-cat --format=raw -a disk.img file\n"
1362 "\n"
1363 msgstr ""
1364
1365 #. type: verbatim
1366 #: ../cat/virt-cat.pod:120
1367 #, no-wrap
1368 msgid ""
1369 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1370 "\n"
1371 msgstr ""
1372
1373 #. type: =item
1374 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1375 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1376 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1377 msgid "B<--keys-from-stdin>"
1378 msgstr ""
1379
1380 #. type: textblock
1381 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1382 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1383 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1384 msgid ""
1385 "Read key or passphrase parameters from stdin.  The default is to try to read "
1386 "passphrases from the user by opening C</dev/tty>."
1387 msgstr ""
1388
1389 #. type: =head1
1390 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1391 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:209
1392 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1393 msgstr ""
1394
1395 #. type: textblock
1396 #: ../cat/virt-cat.pod:154
1397 msgid "Previous versions of virt-cat allowed you to write either:"
1398 msgstr ""
1399
1400 #. type: verbatim
1401 #: ../cat/virt-cat.pod:156
1402 #, no-wrap
1403 msgid ""
1404 " virt-cat disk.img [disk.img ...] file\n"
1405 "\n"
1406 msgstr ""
1407
1408 #. type: textblock
1409 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1410 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:215
1411 msgid "or"
1412 msgstr ""
1413
1414 #. type: verbatim
1415 #: ../cat/virt-cat.pod:160
1416 #, no-wrap
1417 msgid ""
1418 " virt-cat guestname file\n"
1419 "\n"
1420 msgstr ""
1421
1422 #. type: textblock
1423 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1424 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:219
1425 msgid ""
1426 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1427 "the confusing case where a disk image might have the same name as a guest."
1428 msgstr ""
1429
1430 #. type: textblock
1431 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1432 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:223
1433 msgid "For compatibility the old style is still supported."
1434 msgstr ""
1435
1436 #. type: =head1
1437 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1438 msgid "WINDOWS PATHS"
1439 msgstr ""
1440
1441 #. type: textblock
1442 #: ../cat/virt-cat.pod:170
1443 msgid ""
1444 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1445 "paths (eg. C<E:\\foo\\bar.txt>)."
1446 msgstr ""
1447
1448 #. type: textblock
1449 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1450 msgid "If and only if the guest is running Windows then:"
1451 msgstr ""
1452
1453 #. type: textblock
1454 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1455 msgid ""
1456 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1457 "to the correct filesystem."
1458 msgstr ""
1459
1460 #. type: textblock
1461 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1462 msgid ""
1463 "Any backslash (C<\\>) characters in the path are replaced with forward "
1464 "slashes so that libguestfs can process it."
1465 msgstr ""
1466
1467 #. type: textblock
1468 #: ../cat/virt-cat.pod:189
1469 msgid ""
1470 "The path is resolved case insensitively to locate the file that should be "
1471 "displayed."
1472 msgstr ""
1473
1474 #. type: textblock
1475 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1476 msgid "There are some known shortcomings:"
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1481 msgid "Some NTFS symbolic links may not be followed correctly."
1482 msgstr ""
1483
1484 #. type: textblock
1485 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1486 msgid "NTFS junction points that cross filesystems are not followed."
1487 msgstr ""
1488
1489 #. type: =head1
1490 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1491 msgid "USING GUESTFISH"
1492 msgstr ""
1493
1494 #. type: textblock
1495 #: ../cat/virt-cat.pod:210
1496 msgid ""
1497 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1498 "C<virt-cat> doesn't work."
1499 msgstr ""
1500
1501 #. type: textblock
1502 #: ../cat/virt-cat.pod:213
1503 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1504 msgstr ""
1505
1506 #. type: verbatim
1507 #: ../cat/virt-cat.pod:215
1508 #, no-wrap
1509 msgid ""
1510 " guestfish --ro -i -d domname download file -\n"
1511 "\n"
1512 msgstr ""
1513
1514 #. type: textblock
1515 #: ../cat/virt-cat.pod:217
1516 msgid ""
1517 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1518 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1519 msgstr ""
1520
1521 #. type: textblock
1522 #: ../cat/virt-cat.pod:221
1523 msgid ""
1524 "The command above uses libguestfs's guest inspection feature and so does not "
1525 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1526 "disk images that don't contain guests.  To display a file from a disk image "
1527 "directly, use:"
1528 msgstr ""
1529
1530 #. type: verbatim
1531 #: ../cat/virt-cat.pod:226
1532 #, no-wrap
1533 msgid ""
1534 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1535 "\n"
1536 msgstr ""
1537
1538 #. type: textblock
1539 #: ../cat/virt-cat.pod:228
1540 msgid ""
1541 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1542 "the disk image, and C<file> is the full path to the file."
1543 msgstr ""
1544
1545 #. type: textblock
1546 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1547 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:250 ../edit/virt-edit.pod:351
1548 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1549 #: ../resize/virt-resize.pod:691 ../sparsify/virt-sparsify.pod:234
1550 msgid ""
1551 "This program returns 0 if successful, or non-zero if there was an error."
1552 msgstr ""
1553
1554 #. type: textblock
1555 #: ../cat/virt-cat.pod:245
1556 msgid ""
1557 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1558 "tar-out(1)>, L<http://libguestfs.org/>."
1559 msgstr ""
1560
1561 #. type: textblock
1562 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1563 #: ../resize/virt-resize.pod:723 ../tools/virt-make-fs.pl:588
1564 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1565 msgstr ""
1566
1567 #. type: textblock
1568 #: ../cat/virt-filesystems.pod:5
1569 msgid ""
1570 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1571 "virtual machine or disk image"
1572 msgstr ""
1573
1574 #. type: verbatim
1575 #: ../cat/virt-filesystems.pod:9
1576 #, no-wrap
1577 msgid ""
1578 " virt-filesystems [--options] -d domname\n"
1579 "\n"
1580 msgstr ""
1581
1582 #. type: verbatim
1583 #: ../cat/virt-filesystems.pod:11
1584 #, no-wrap
1585 msgid ""
1586 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1587 "\n"
1588 msgstr ""
1589
1590 #. type: textblock
1591 #: ../cat/virt-filesystems.pod:15
1592 msgid ""
1593 "This tool allows you to discover filesystems, partitions, logical volumes, "
1594 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1595 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1596 msgstr ""
1597
1598 #. type: textblock
1599 #: ../cat/virt-filesystems.pod:20
1600 msgid ""
1601 "One use for this tool is from shell scripts to iterate over all filesystems "
1602 "from a disk image:"
1603 msgstr ""
1604
1605 #. type: verbatim
1606 #: ../cat/virt-filesystems.pod:23
1607 #, no-wrap
1608 msgid ""
1609 " for fs in $(virt-filesystems -a disk.img); do\n"
1610 "   # ...\n"
1611 " done\n"
1612 "\n"
1613 msgstr ""
1614
1615 #. type: textblock
1616 #: ../cat/virt-filesystems.pod:27
1617 msgid ""
1618 "Another use is to list partitions before using another tool to modify those "
1619 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1620 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1621 msgstr ""
1622
1623 #. type: textblock
1624 #: ../cat/virt-filesystems.pod:32
1625 msgid ""
1626 "Various command line options control what this program displays.  You need "
1627 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1628 "guest respectively.  If you just specify that then the program shows "
1629 "filesystems found, one per line, like this:"
1630 msgstr ""
1631
1632 #. type: verbatim
1633 #: ../cat/virt-filesystems.pod:37
1634 #, no-wrap
1635 msgid ""
1636 " $ virt-filesystems -a disk.img\n"
1637 " /dev/sda1\n"
1638 " /dev/vg_guest/lv_root\n"
1639 "\n"
1640 msgstr ""
1641
1642 #. type: textblock
1643 #: ../cat/virt-filesystems.pod:41
1644 msgid ""
1645 "If you add I<-l> or I<--long> then the output includes extra information:"
1646 msgstr ""
1647
1648 #. type: verbatim
1649 #: ../cat/virt-filesystems.pod:44
1650 #, no-wrap
1651 msgid ""
1652 " $ virt-filesystems -a disk.img -l\n"
1653 " Name                   Type         VFS   Label  Size\n"
1654 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1655 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1656 "\n"
1657 msgstr ""
1658
1659 #. type: textblock
1660 #: ../cat/virt-filesystems.pod:49
1661 msgid ""
1662 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1663 "shown as well:"
1664 msgstr ""
1665
1666 #. type: verbatim
1667 #: ../cat/virt-filesystems.pod:52
1668 #, no-wrap
1669 msgid ""
1670 " $ virt-filesystems -a disk.img --extra\n"
1671 " /dev/sda1\n"
1672 " /dev/vg_guest/lv_root\n"
1673 " /dev/vg_guest/lv_swap\n"
1674 " /dev/vg_guest/lv_data\n"
1675 "\n"
1676 msgstr ""
1677
1678 #. type: textblock
1679 #: ../cat/virt-filesystems.pod:58
1680 msgid ""
1681 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1682 msgstr ""
1683
1684 #. type: verbatim
1685 #: ../cat/virt-filesystems.pod:60
1686 #, no-wrap
1687 msgid ""
1688 " $ virt-filesystems -a disk.img --partitions\n"
1689 " /dev/sda1\n"
1690 " /dev/sda2\n"
1691 "\n"
1692 msgstr ""
1693
1694 #. type: textblock
1695 #: ../cat/virt-filesystems.pod:64
1696 msgid ""
1697 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1698 "volumes>, I<--block-devices> to list those items."
1699 msgstr ""
1700
1701 #. type: textblock
1702 #: ../cat/virt-filesystems.pod:67
1703 msgid ""
1704 "You can use these options in combination as well (if you want a combination "
1705 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1706 "items fall into several categories (eg. C</dev/sda1> might be both a "
1707 "partition and a filesystem).  These items are listed several times.  To get "
1708 "a list which includes absolutely everything that virt-filesystems knows "
1709 "about, use the I<--all> option."
1710 msgstr ""
1711
1712 #. type: textblock
1713 #: ../cat/virt-filesystems.pod:74
1714 msgid ""
1715 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1716 "uuid> option to display device and filesystem UUIDs in the long output."
1717 msgstr ""
1718
1719 #. type: textblock
1720 #: ../cat/virt-filesystems.pod:78
1721 msgid ""
1722 "I<--all --long --uuid> is a useful combination to display all possible "
1723 "information about everything."
1724 msgstr ""
1725
1726 #. type: verbatim
1727 #: ../cat/virt-filesystems.pod:81
1728 #, no-wrap
1729 msgid ""
1730 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1731 " Name      Type       VFS  Label           Size Parent   UUID\n"
1732 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1733 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1734 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1735 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1736 " /dev/sda  device     -    -               20G  -        -\n"
1737 "\n"
1738 msgstr ""
1739
1740 #. type: textblock
1741 #: ../cat/virt-filesystems.pod:89
1742 msgid ""
1743 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1744 msgstr ""
1745
1746 #. type: =item
1747 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1748 msgid "B<--all>"
1749 msgstr ""
1750
1751 #. type: textblock
1752 #: ../cat/virt-filesystems.pod:112
1753 msgid ""
1754 "Display everything.  This is currently the same as specifying these options: "
1755 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1756 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1757 "added to this list in future)."
1758 msgstr ""
1759
1760 #. type: textblock
1761 #: ../cat/virt-filesystems.pod:117
1762 msgid "See also I<--long>."
1763 msgstr ""
1764
1765 #. type: =item
1766 #: ../cat/virt-filesystems.pod:119
1767 msgid "B<--blkdevs>"
1768 msgstr ""
1769
1770 #. type: =item
1771 #: ../cat/virt-filesystems.pod:121
1772 msgid "B<--block-devices>"
1773 msgstr ""
1774
1775 #. type: textblock
1776 #: ../cat/virt-filesystems.pod:123
1777 msgid "Display block devices."
1778 msgstr ""
1779
1780 #. type: =item
1781 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1782 msgid "B<--csv>"
1783 msgstr ""
1784
1785 #. type: textblock
1786 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1787 msgid ""
1788 "Write out the results in CSV format (comma-separated values).  This format "
1789 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1790 "ABOUT CSV FORMAT> below."
1791 msgstr ""
1792
1793 #. type: textblock
1794 #: ../cat/virt-filesystems.pod:150
1795 msgid ""
1796 "When prompting for keys and passphrases, virt-filesystems normally turns "
1797 "echoing off so you cannot see what you are typing.  If you are not worried "
1798 "about Tempest attacks and there is no one else in the room you can specify "
1799 "this flag to see what you are typing."
1800 msgstr ""
1801
1802 #. type: =item
1803 #: ../cat/virt-filesystems.pod:155
1804 msgid "B<--extra>"
1805 msgstr ""
1806
1807 #. type: textblock
1808 #: ../cat/virt-filesystems.pod:157
1809 msgid ""
1810 "This causes filesystems that are not ordinary, mountable filesystems to be "
1811 "displayed.  This category includes swapspace, and filesystems that are empty "
1812 "or contain unknown data."
1813 msgstr ""
1814
1815 #. type: textblock
1816 #: ../cat/virt-filesystems.pod:161
1817 msgid "This option implies I<--filesystems>."
1818 msgstr ""
1819
1820 #. type: =item
1821 #: ../cat/virt-filesystems.pod:163
1822 msgid "B<--filesystems>"
1823 msgstr ""
1824
1825 #. type: textblock
1826 #: ../cat/virt-filesystems.pod:165
1827 msgid ""
1828 "Display mountable filesystems.  If no display option was selected then this "
1829 "option is implied."
1830 msgstr ""
1831
1832 #. type: textblock
1833 #: ../cat/virt-filesystems.pod:168
1834 msgid "With I<--extra>, non-mountable filesystems are shown too."
1835 msgstr ""
1836
1837 #. type: verbatim
1838 #: ../cat/virt-filesystems.pod:181
1839 #, no-wrap
1840 msgid ""
1841 " virt-filesystems --format=raw -a disk.img\n"
1842 "\n"
1843 msgstr ""
1844
1845 #. type: verbatim
1846 #: ../cat/virt-filesystems.pod:185
1847 #, no-wrap
1848 msgid ""
1849 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1850 "\n"
1851 msgstr ""
1852
1853 #. type: =item
1854 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1855 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1856 #: ../tools/virt-list-partitions.pl:109
1857 msgid "B<-h>"
1858 msgstr ""
1859
1860 #. type: =item
1861 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1862 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1863 msgid "B<--human-readable>"
1864 msgstr ""
1865
1866 #. type: textblock
1867 #: ../cat/virt-filesystems.pod:198
1868 msgid "In I<--long> mode, display sizes in human-readable format."
1869 msgstr ""
1870
1871 #. type: =item
1872 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1873 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1874 msgid "B<-l>"
1875 msgstr ""
1876
1877 #. type: =item
1878 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1879 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1880 msgid "B<--long>"
1881 msgstr ""
1882
1883 #. type: textblock
1884 #: ../cat/virt-filesystems.pod:209
1885 msgid "Display extra columns of data (\"long format\")."
1886 msgstr ""
1887
1888 #. type: textblock
1889 #: ../cat/virt-filesystems.pod:211
1890 msgid "A title row is added unless you also specify I<--no-title>."
1891 msgstr ""
1892
1893 #. type: textblock
1894 #: ../cat/virt-filesystems.pod:213
1895 msgid ""
1896 "The extra columns displayed depend on what output you select, and the "
1897 "ordering of columns may change in future versions.  Use the title row, I<--"
1898 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1899 "programs."
1900 msgstr ""
1901
1902 #. type: textblock
1903 #: ../cat/virt-filesystems.pod:218
1904 msgid ""
1905 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1906 "default is to show raw numbers of I<bytes>."
1907 msgstr ""
1908
1909 #. type: textblock
1910 #: ../cat/virt-filesystems.pod:221
1911 msgid "Use I<--uuid> to display UUIDs too."
1912 msgstr ""
1913
1914 #. type: =item
1915 #: ../cat/virt-filesystems.pod:223
1916 msgid "B<--lvs>"
1917 msgstr ""
1918
1919 #. type: =item
1920 #: ../cat/virt-filesystems.pod:225
1921 msgid "B<--logvols>"
1922 msgstr ""
1923
1924 #. type: =item
1925 #: ../cat/virt-filesystems.pod:227
1926 msgid "B<--logical-volumes>"
1927 msgstr ""
1928
1929 #. type: textblock
1930 #: ../cat/virt-filesystems.pod:229
1931 msgid ""
1932 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1933 "of whether the LVs contain filesystems."
1934 msgstr ""
1935
1936 #. type: =item
1937 #: ../cat/virt-filesystems.pod:232
1938 msgid "B<--no-title>"
1939 msgstr ""
1940
1941 #. type: textblock
1942 #: ../cat/virt-filesystems.pod:234
1943 msgid "In I<--long> mode, don't add a title row."
1944 msgstr ""
1945
1946 #. type: textblock
1947 #: ../cat/virt-filesystems.pod:236
1948 msgid ""
1949 "Note that the order of the columns is not fixed, and may change in future "
1950 "versions of virt-filesystems, so using this option may give you unexpected "
1951 "surprises."
1952 msgstr ""
1953
1954 #. type: =item
1955 #: ../cat/virt-filesystems.pod:240
1956 msgid "B<--parts>"
1957 msgstr ""
1958
1959 #. type: =item
1960 #: ../cat/virt-filesystems.pod:242
1961 msgid "B<--partitions>"
1962 msgstr ""
1963
1964 #. type: textblock
1965 #: ../cat/virt-filesystems.pod:244
1966 msgid ""
1967 "Display partitions.  In this mode, these are displayed irrespective of "
1968 "whether the partitions contain filesystems."
1969 msgstr ""
1970
1971 #. type: =item
1972 #: ../cat/virt-filesystems.pod:247
1973 msgid "B<--pvs>"
1974 msgstr ""
1975
1976 #. type: =item
1977 #: ../cat/virt-filesystems.pod:249
1978 msgid "B<--physvols>"
1979 msgstr ""
1980
1981 #. type: =item
1982 #: ../cat/virt-filesystems.pod:251
1983 msgid "B<--physical-volumes>"
1984 msgstr ""
1985
1986 #. type: textblock
1987 #: ../cat/virt-filesystems.pod:253
1988 msgid "Display LVM physical volumes."
1989 msgstr ""
1990
1991 #. type: =item
1992 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1993 msgid "B<--uuid>"
1994 msgstr ""
1995
1996 #. type: =item
1997 #: ../cat/virt-filesystems.pod:257
1998 msgid "B<--uuids>"
1999 msgstr ""
2000
2001 #. type: textblock
2002 #: ../cat/virt-filesystems.pod:259
2003 msgid "In I<--long> mode, display UUIDs as well."
2004 msgstr ""
2005
2006 #. type: =item
2007 #: ../cat/virt-filesystems.pod:273
2008 msgid "B<--vgs>"
2009 msgstr ""
2010
2011 #. type: =item
2012 #: ../cat/virt-filesystems.pod:275
2013 msgid "B<--volgroups>"
2014 msgstr ""
2015
2016 #. type: =item
2017 #: ../cat/virt-filesystems.pod:277
2018 msgid "B<--volume-groups>"
2019 msgstr ""
2020
2021 #. type: textblock
2022 #: ../cat/virt-filesystems.pod:279
2023 msgid "Display LVM volume groups."
2024 msgstr ""
2025
2026 #. type: =head1
2027 #: ../cat/virt-filesystems.pod:287
2028 msgid "COLUMNS"
2029 msgstr ""
2030
2031 #. type: textblock
2032 #: ../cat/virt-filesystems.pod:289
2033 msgid ""
2034 "Note that columns in the output are subject to reordering and change in "
2035 "future versions of this tool."
2036 msgstr ""
2037
2038 #. type: =item
2039 #: ../cat/virt-filesystems.pod:294
2040 msgid "B<Name>"
2041 msgstr ""
2042
2043 #. type: textblock
2044 #: ../cat/virt-filesystems.pod:296
2045 msgid "The filesystem, partition, block device or LVM name."
2046 msgstr ""
2047
2048 #. type: textblock
2049 #: ../cat/virt-filesystems.pod:298
2050 msgid ""
2051 "For device and partition names these are displayed as canonical libguestfs "
2052 "names, so that for example C</dev/sda2> is the second partition on the first "
2053 "device."
2054 msgstr ""
2055
2056 #. type: textblock
2057 #: ../cat/virt-filesystems.pod:302
2058 msgid ""
2059 "If the I<--long> option is B<not> specified, then only the name column is "
2060 "shown in the output."
2061 msgstr ""
2062
2063 #. type: =item
2064 #: ../cat/virt-filesystems.pod:305
2065 msgid "B<Type>"
2066 msgstr ""
2067
2068 #. type: textblock
2069 #: ../cat/virt-filesystems.pod:307
2070 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2071 msgstr ""
2072
2073 #. type: =item
2074 #: ../cat/virt-filesystems.pod:309
2075 msgid "B<VFS>"
2076 msgstr ""
2077
2078 #. type: textblock
2079 #: ../cat/virt-filesystems.pod:311
2080 msgid ""
2081 "If there is a filesystem, then this column displays the filesystem type if "
2082 "one could be detected, eg. C<ext4>."
2083 msgstr ""
2084
2085 #. type: =item
2086 #: ../cat/virt-filesystems.pod:314
2087 msgid "B<Label>"
2088 msgstr ""
2089
2090 #. type: textblock
2091 #: ../cat/virt-filesystems.pod:316
2092 msgid ""
2093 "If the object has a label (used for identifying and mounting filesystems) "
2094 "then this column contains the label."
2095 msgstr ""
2096
2097 #. type: =item
2098 #: ../cat/virt-filesystems.pod:319
2099 msgid "B<MBR>"
2100 msgstr ""
2101
2102 #. type: textblock
2103 #: ../cat/virt-filesystems.pod:321
2104 msgid ""
2105 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2106 "comprehensive list of partition types can be found here: L<http://www.win."
2107 "tue.nl/~aeb/partitions/partition_types-1.html>"
2108 msgstr ""
2109
2110 #. type: textblock
2111 #: ../cat/virt-filesystems.pod:325
2112 msgid "This is only applicable for DOS (MBR) partitions."
2113 msgstr ""
2114
2115 #. type: =item
2116 #: ../cat/virt-filesystems.pod:327
2117 msgid "B<Size>"
2118 msgstr ""
2119
2120 #. type: textblock
2121 #: ../cat/virt-filesystems.pod:329
2122 msgid ""
2123 "The size of the object in bytes.  If the I<--human> option is used then the "
2124 "size is displayed in a human-readable form."
2125 msgstr ""
2126
2127 #. type: =item
2128 #: ../cat/virt-filesystems.pod:332
2129 msgid "B<Parent>"
2130 msgstr ""
2131
2132 #. type: textblock
2133 #: ../cat/virt-filesystems.pod:334
2134 msgid ""
2135 "The parent column records the parent relationship between objects.  For "
2136 "example, if the object is a partition, then this column contains the name of "
2137 "the containing device.  If the object is a logical volume, then this column "
2138 "is the name of the volume group."
2139 msgstr ""
2140
2141 #. type: =item
2142 #: ../cat/virt-filesystems.pod:339
2143 msgid "B<UUID>"
2144 msgstr ""
2145
2146 #. type: textblock
2147 #: ../cat/virt-filesystems.pod:341
2148 msgid ""
2149 "If the object has a UUID (used for identifying and mounting filesystems and "
2150 "block devices) then this column contains the UUID as a string."
2151 msgstr ""
2152
2153 #. type: textblock
2154 #: ../cat/virt-filesystems.pod:345
2155 msgid "The UUID is only displayed if the I<--uuid> option is given."
2156 msgstr ""
2157
2158 #. type: =head1
2159 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2160 #: ../df/virt-df.pod:217
2161 msgid "NOTE ABOUT CSV FORMAT"
2162 msgstr ""
2163
2164 #. type: textblock
2165 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2166 #: ../df/virt-df.pod:219
2167 msgid ""
2168 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2169 "should be easy to parse, but it is definitely not easy to parse."
2170 msgstr ""
2171
2172 #. type: textblock
2173 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2174 #: ../df/virt-df.pod:222
2175 msgid ""
2176 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2177 "reliably.  This example has two columns:"
2178 msgstr ""
2179
2180 #. type: verbatim
2181 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2182 #: ../df/virt-df.pod:225
2183 #, no-wrap
2184 msgid ""
2185 " \"foo,bar\",baz\n"
2186 "\n"
2187 msgstr ""
2188
2189 #. type: textblock
2190 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2191 #: ../df/virt-df.pod:227
2192 msgid ""
2193 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2194 "reliably.  This example has one row:"
2195 msgstr ""
2196
2197 #. type: verbatim
2198 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2199 #: ../df/virt-df.pod:230
2200 #, no-wrap
2201 msgid ""
2202 " \"foo\n"
2203 " bar\",baz\n"
2204 "\n"
2205 msgstr ""
2206
2207 #. type: textblock
2208 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2209 #: ../df/virt-df.pod:233
2210 msgid ""
2211 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2212 "packaged in major Linux distributions)."
2213 msgstr ""
2214
2215 #. type: textblock
2216 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2217 #: ../df/virt-df.pod:236
2218 msgid ""
2219 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2220 "or Python's built-in csv library)."
2221 msgstr ""
2222
2223 #. type: textblock
2224 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2225 #: ../df/virt-df.pod:239
2226 msgid "Most spreadsheets and databases can import CSV directly."
2227 msgstr ""
2228
2229 #. type: textblock
2230 #: ../cat/virt-filesystems.pod:387
2231 msgid ""
2232 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2233 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2234 "libguestfs.org/>."
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2239 msgid "Copyright (C) 2010 Red Hat Inc."
2240 msgstr ""
2241
2242 #. type: textblock
2243 #: ../cat/virt-ls.pod:5
2244 msgid "virt-ls - List files in a virtual machine"
2245 msgstr ""
2246
2247 #. type: verbatim
2248 #: ../cat/virt-ls.pod:9
2249 #, no-wrap
2250 msgid ""
2251 " virt-ls [--options] -d domname directory [directory ...]\n"
2252 "\n"
2253 msgstr ""
2254
2255 #. type: verbatim
2256 #: ../cat/virt-ls.pod:11
2257 #, no-wrap
2258 msgid ""
2259 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2260 "\n"
2261 msgstr ""
2262
2263 #. type: textblock
2264 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2265 msgid "Old style:"
2266 msgstr ""
2267
2268 #. type: verbatim
2269 #: ../cat/virt-ls.pod:15
2270 #, no-wrap
2271 msgid ""
2272 " virt-ls [--options] domname directory\n"
2273 "\n"
2274 msgstr ""
2275
2276 #. type: verbatim
2277 #: ../cat/virt-ls.pod:17
2278 #, no-wrap
2279 msgid ""
2280 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2281 "\n"
2282 msgstr ""
2283
2284 #. type: textblock
2285 #: ../cat/virt-ls.pod:21
2286 msgid ""
2287 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2288 "more from a virtual machine or disk image."
2289 msgstr ""
2290
2291 #. type: textblock
2292 #: ../cat/virt-ls.pod:24
2293 msgid ""
2294 "Multiple directory names can be given, in which case the output from each is "
2295 "concatenated."
2296 msgstr ""
2297
2298 #. type: textblock
2299 #: ../cat/virt-ls.pod:27
2300 msgid ""
2301 "To list directories from a libvirt guest use the I<-d> option to specify the "
2302 "name of the guest.  For a disk image, use the I<-a> option."
2303 msgstr ""
2304
2305 #. type: textblock
2306 #: ../cat/virt-ls.pod:31
2307 msgid ""
2308 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2309 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2310 "(3)> API."
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../cat/virt-ls.pod:37
2315 msgid "Get a list of all files and directories in a virtual machine:"
2316 msgstr ""
2317
2318 #. type: verbatim
2319 #: ../cat/virt-ls.pod:39
2320 #, no-wrap
2321 msgid ""
2322 " virt-ls -R -d guest /\n"
2323 "\n"
2324 msgstr ""
2325
2326 #. type: textblock
2327 #: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:182
2328 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2329 msgstr ""
2330
2331 #. type: verbatim
2332 #: ../cat/virt-ls.pod:43
2333 #, no-wrap
2334 msgid ""
2335 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2336 "\n"
2337 msgstr ""
2338
2339 #. type: textblock
2340 #: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:186
2341 msgid "List all public-writable directories in a Linux virtual machine:"
2342 msgstr ""
2343
2344 #. type: verbatim
2345 #: ../cat/virt-ls.pod:47
2346 #, no-wrap
2347 msgid ""
2348 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2349 "\n"
2350 msgstr ""
2351
2352 #. type: textblock
2353 #: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:190
2354 msgid "List all Unix domain sockets in a Linux virtual machine:"
2355 msgstr ""
2356
2357 #. type: verbatim
2358 #: ../cat/virt-ls.pod:51
2359 #, no-wrap
2360 msgid ""
2361 " virt-ls -lR -d guest / | grep '^s'\n"
2362 "\n"
2363 msgstr ""
2364
2365 #. type: textblock
2366 #: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:194
2367 msgid "List all regular files with filenames ending in '.png':"
2368 msgstr ""
2369
2370 #. type: verbatim
2371 #: ../cat/virt-ls.pod:55
2372 #, no-wrap
2373 msgid ""
2374 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2375 "\n"
2376 msgstr ""
2377
2378 #. type: textblock
2379 #: ../cat/virt-ls.pod:57
2380 msgid "To display files larger than 10MB in home directories:"
2381 msgstr ""
2382
2383 #. type: verbatim
2384 #: ../cat/virt-ls.pod:59
2385 #, no-wrap
2386 msgid ""
2387 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2388 "\n"
2389 msgstr ""
2390
2391 #. type: textblock
2392 #: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:202
2393 msgid "Find everything modified in the last 7 days:"
2394 msgstr ""
2395
2396 #. type: verbatim
2397 #: ../cat/virt-ls.pod:63
2398 #, no-wrap
2399 msgid ""
2400 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2401 "\n"
2402 msgstr ""
2403
2404 #. type: textblock
2405 #: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:206
2406 msgid "Find regular files modified in the last 24 hours:"
2407 msgstr ""
2408
2409 #. type: verbatim
2410 #: ../cat/virt-ls.pod:67
2411 #, no-wrap
2412 msgid ""
2413 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2414 "\n"
2415 msgstr ""
2416
2417 #. type: =head2
2418 #: ../cat/virt-ls.pod:69
2419 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2420 msgstr ""
2421
2422 #. type: textblock
2423 #: ../cat/virt-ls.pod:71
2424 msgid ""
2425 "Find the differences between files in a guest and an earlier snapshot of the "
2426 "same guest."
2427 msgstr ""
2428
2429 #. type: verbatim
2430 #: ../cat/virt-ls.pod:74
2431 #, no-wrap
2432 msgid ""
2433 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2434 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2435 " diff -u old new | less\n"
2436 "\n"
2437 msgstr ""
2438
2439 #. type: textblock
2440 #: ../cat/virt-ls.pod:78
2441 msgid ""
2442 "The commands above won't find files where the content has changed but the "
2443 "metadata (eg. file size and modification date) is the same.  To do that, you "
2444 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2445 "checksum> can be quite slow since it has to read and compute a checksum of "
2446 "every regular file in the virtual machine."
2447 msgstr ""
2448
2449 #. type: =head1
2450 #: ../cat/virt-ls.pod:84
2451 msgid "OUTPUT MODES"
2452 msgstr ""
2453
2454 #. type: textblock
2455 #: ../cat/virt-ls.pod:86
2456 msgid ""
2457 "C<virt-ls> has four output modes, controlled by different combinations of "
2458 "the I<-l> and I<-R> options."
2459 msgstr ""
2460
2461 #. type: =head2
2462 #: ../cat/virt-ls.pod:89
2463 msgid "SIMPLE LISTING"
2464 msgstr ""
2465
2466 #. type: textblock
2467 #: ../cat/virt-ls.pod:91
2468 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2469 msgstr ""
2470
2471 #. type: verbatim
2472 #: ../cat/virt-ls.pod:93
2473 #, no-wrap
2474 msgid ""
2475 " $ virt-ls -d guest /\n"
2476 " bin\n"
2477 " boot\n"
2478 " [etc.]\n"
2479 "\n"
2480 msgstr ""
2481
2482 #. type: =head2
2483 #: ../cat/virt-ls.pod:98
2484 msgid "LONG LISTING"
2485 msgstr ""
2486
2487 #. type: textblock
2488 #: ../cat/virt-ls.pod:100
2489 msgid ""
2490 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2491 "(more specifically, like the C<guestfs_ll> function)."
2492 msgstr ""
2493
2494 #. type: verbatim
2495 #: ../cat/virt-ls.pod:103
2496 #, no-wrap
2497 msgid ""
2498 " $ virt-ls -l -d guest /\n"
2499 " total 204\n"
2500 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2501 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2502 " [etc.]\n"
2503 "\n"
2504 msgstr ""
2505
2506 #. type: textblock
2507 #: ../cat/virt-ls.pod:109
2508 msgid ""
2509 "Note that while this is useful for displaying a directory, do not try "
2510 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2511 "instead."
2512 msgstr ""
2513
2514 #. type: =head2
2515 #: ../cat/virt-ls.pod:113
2516 msgid "RECURSIVE LISTING"
2517 msgstr ""
2518
2519 #. type: textblock
2520 #: ../cat/virt-ls.pod:115
2521 msgid ""
2522 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2523 "and directories recursively:"
2524 msgstr ""
2525
2526 #. type: verbatim
2527 #: ../cat/virt-ls.pod:118
2528 #, no-wrap
2529 msgid ""
2530 " $ virt-ls -R -d guest /tmp\n"
2531 " foo\n"
2532 " foo/bar\n"
2533 " [etc.]\n"
2534 "\n"
2535 msgstr ""
2536
2537 #. type: textblock
2538 #: ../cat/virt-ls.pod:123
2539 msgid ""
2540 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2541 "converts C<\\0> characters to C<\\n>."
2542 msgstr ""
2543
2544 #. type: =head2
2545 #: ../cat/virt-ls.pod:126
2546 msgid "RECURSIVE LONG LISTING"
2547 msgstr ""
2548
2549 #. type: textblock
2550 #: ../cat/virt-ls.pod:128
2551 msgid ""
2552 "Using I<-lR> options together changes the output to display directories "
2553 "recursively, with file stats, and optionally other features such as "
2554 "checksums and extended attributes."
2555 msgstr ""
2556
2557 #. type: textblock
2558 #: ../cat/virt-ls.pod:132
2559 msgid ""
2560 "Most of the interesting features of C<virt-ls> are only available when using "
2561 "I<-lR> mode."
2562 msgstr ""
2563
2564 #. type: textblock
2565 #: ../cat/virt-ls.pod:135
2566 msgid ""
2567 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2568 "you cannot use the output in another program (because filenames can contain "
2569 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2570 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2571 "on you by creating filenames with embedded newline characters.  To B<safely> "
2572 "parse the output in another program, use the I<--csv> (Comma-Separated "
2573 "Values) option."
2574 msgstr ""
2575
2576 #. type: textblock
2577 #: ../cat/virt-ls.pod:143
2578 msgid ""
2579 "Note that this output format is completely unrelated to the C<ls -lR> "
2580 "command."
2581 msgstr ""
2582
2583 #. type: verbatim
2584 #: ../cat/virt-ls.pod:146
2585 #, no-wrap
2586 msgid ""
2587 " $ virt-ls -lR -d guest /bin\n"
2588 " d 0555       4096 /bin\n"
2589 " - 0755        123 /bin/alsaunmute\n"
2590 " - 0755      28328 /bin/arch\n"
2591 " l 0777          4 /bin/awk -> gawk\n"
2592 " - 0755      27216 /bin/basename\n"
2593 " - 0755     943360 /bin/bash\n"
2594 " [etc.]\n"
2595 "\n"
2596 msgstr ""
2597
2598 #. type: textblock
2599 #: ../cat/virt-ls.pod:155
2600 msgid "These basic fields are always shown:"
2601 msgstr ""
2602
2603 #. type: =item
2604 #: ../cat/virt-ls.pod:159
2605 msgid "type"
2606 msgstr ""
2607
2608 #. type: textblock
2609 #: ../cat/virt-ls.pod:161
2610 msgid ""
2611 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2612 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2613 "link), C<s> (socket) or C<u> (unknown)."
2614 msgstr ""
2615
2616 #. type: =item
2617 #: ../cat/virt-ls.pod:171
2618 msgid "permissions"
2619 msgstr ""
2620
2621 #. type: textblock
2622 #: ../cat/virt-ls.pod:173
2623 msgid "The Unix permissions, displayed as a 4 digit octal number."
2624 msgstr ""
2625
2626 #. type: =item
2627 #: ../cat/virt-ls.pod:175
2628 msgid "size"
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../cat/virt-ls.pod:177
2633 msgid ""
2634 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2635 "readable> option is given, in which case this is shown as a human-readable "
2636 "number."
2637 msgstr ""
2638
2639 #. type: =head2
2640 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4380
2641 msgid "path"
2642 msgstr ""
2643
2644 #. type: textblock
2645 #: ../cat/virt-ls.pod:183
2646 msgid "The full path of the file or directory."
2647 msgstr ""
2648
2649 #. type: =item
2650 #: ../cat/virt-ls.pod:185
2651 msgid "link"
2652 msgstr ""
2653
2654 #. type: textblock
2655 #: ../cat/virt-ls.pod:187
2656 msgid "For symbolic links only, the link target."
2657 msgstr ""
2658
2659 #. type: textblock
2660 #: ../cat/virt-ls.pod:191
2661 msgid ""
2662 "In I<-lR> mode, additional command line options enable the display of more "
2663 "fields."
2664 msgstr ""
2665
2666 #. type: textblock
2667 #: ../cat/virt-ls.pod:194
2668 msgid ""
2669 "With the I<--uids> flag, these additional fields are displayed before the "
2670 "path:"
2671 msgstr ""
2672
2673 #. type: =item
2674 #: ../cat/virt-ls.pod:199
2675 msgid "uid"
2676 msgstr ""
2677
2678 #. type: =item
2679 #: ../cat/virt-ls.pod:201
2680 msgid "gid"
2681 msgstr ""
2682
2683 #. type: textblock
2684 #: ../cat/virt-ls.pod:203
2685 msgid ""
2686 "The UID and GID of the owner of the file (displayed numerically).  Note "
2687 "these only make sense in the context of a Unix-like guest."
2688 msgstr ""
2689
2690 #. type: textblock
2691 #: ../cat/virt-ls.pod:208
2692 msgid "With the I<--times> flag, these additional fields are displayed:"
2693 msgstr ""
2694
2695 #. type: =item
2696 #: ../cat/virt-ls.pod:212
2697 msgid "atime"
2698 msgstr ""
2699
2700 #. type: textblock
2701 #: ../cat/virt-ls.pod:214
2702 msgid "The time of last access."
2703 msgstr ""
2704
2705 #. type: =item
2706 #: ../cat/virt-ls.pod:216
2707 msgid "mtime"
2708 msgstr ""
2709
2710 #. type: textblock
2711 #: ../cat/virt-ls.pod:218
2712 msgid "The time of last modification."
2713 msgstr ""
2714
2715 #. type: =item
2716 #: ../cat/virt-ls.pod:220
2717 msgid "ctime"
2718 msgstr ""
2719
2720 #. type: textblock
2721 #: ../cat/virt-ls.pod:222
2722 msgid "The time of last status change."
2723 msgstr ""
2724
2725 #. type: textblock
2726 #: ../cat/virt-ls.pod:226
2727 msgid ""
2728 "The time fields are displayed as string dates and times, unless one of the "
2729 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2730 msgstr ""
2731
2732 #. type: textblock
2733 #: ../cat/virt-ls.pod:229
2734 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2735 msgstr ""
2736
2737 #. type: =item
2738 #: ../cat/virt-ls.pod:233
2739 msgid "device"
2740 msgstr ""
2741
2742 #. type: textblock
2743 #: ../cat/virt-ls.pod:235
2744 msgid ""
2745 "The device containing the file (displayed as major:minor).  This may not "
2746 "match devices as known to the guest."
2747 msgstr ""
2748
2749 #. type: =item
2750 #: ../cat/virt-ls.pod:238
2751 msgid "inode"
2752 msgstr ""
2753
2754 #. type: textblock
2755 #: ../cat/virt-ls.pod:240
2756 msgid "The inode number."
2757 msgstr ""
2758
2759 #. type: =item
2760 #: ../cat/virt-ls.pod:242
2761 msgid "nlink"
2762 msgstr ""
2763
2764 #. type: textblock
2765 #: ../cat/virt-ls.pod:244
2766 msgid "The number of hard links."
2767 msgstr ""
2768
2769 #. type: =item
2770 #: ../cat/virt-ls.pod:246
2771 msgid "rdev"
2772 msgstr ""
2773
2774 #. type: textblock
2775 #: ../cat/virt-ls.pod:248
2776 msgid ""
2777 "For block and char special files, the device (displayed as major:minor)."
2778 msgstr ""
2779
2780 #. type: =item
2781 #: ../cat/virt-ls.pod:251
2782 msgid "blocks"
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../cat/virt-ls.pod:253
2787 msgid "The number of 512 byte blocks allocated to the file."
2788 msgstr ""
2789
2790 #. type: textblock
2791 #: ../cat/virt-ls.pod:257
2792 msgid ""
2793 "With the I<--checksum> flag, the checksum of the file contents is shown "
2794 "(only for regular files).  Computing file checksums can take a considerable "
2795 "amount of time."
2796 msgstr ""
2797
2798 #. type: =item
2799 #: ../cat/virt-ls.pod:280
2800 msgid "B<--checksum>"
2801 msgstr ""
2802
2803 #. type: =item
2804 #: ../cat/virt-ls.pod:282
2805 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2806 msgstr ""
2807
2808 #. type: textblock
2809 #: ../cat/virt-ls.pod:284
2810 msgid ""
2811 "Display checksum over file contents for regular files.  With no argument, "
2812 "this defaults to using I<md5>.  Using an argument, you can select the "
2813 "checksum type to use."
2814 msgstr ""
2815
2816 #. type: textblock
2817 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2818 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2819 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2820 msgid ""
2821 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2822 "LISTING> above."
2823 msgstr ""
2824
2825 #. type: textblock
2826 #: ../cat/virt-ls.pod:316
2827 msgid ""
2828 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2829 "so you cannot see what you are typing.  If you are not worried about Tempest "
2830 "attacks and there is no one else in the room you can specify this flag to "
2831 "see what you are typing."
2832 msgstr ""
2833
2834 #. type: =item
2835 #: ../cat/virt-ls.pod:321
2836 msgid "B<--extra-stats>"
2837 msgstr ""
2838
2839 #. type: textblock
2840 #: ../cat/virt-ls.pod:323
2841 msgid "Display extra stats."
2842 msgstr ""
2843
2844 #. type: verbatim
2845 #: ../cat/virt-ls.pod:339
2846 #, no-wrap
2847 msgid ""
2848 " virt-ls --format=raw -a disk.img /dir\n"
2849 "\n"
2850 msgstr ""
2851
2852 #. type: verbatim
2853 #: ../cat/virt-ls.pod:343
2854 #, no-wrap
2855 msgid ""
2856 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2857 "\n"
2858 msgstr ""
2859
2860 #. type: textblock
2861 #: ../cat/virt-ls.pod:356
2862 msgid "Display file sizes in human-readable format."
2863 msgstr ""
2864
2865 #. type: =item
2866 #: ../cat/virt-ls.pod:370
2867 msgid "B<-R>"
2868 msgstr ""
2869
2870 #. type: =item
2871 #: ../cat/virt-ls.pod:372
2872 msgid "B<--recursive>"
2873 msgstr ""
2874
2875 #. type: textblock
2876 #: ../cat/virt-ls.pod:374
2877 msgid ""
2878 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2879 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2880 "LISTING>."
2881 msgstr ""
2882
2883 #. type: textblock
2884 #: ../cat/virt-ls.pod:378
2885 msgid ""
2886 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2887 "LONG LISTING>."
2888 msgstr ""
2889
2890 #. type: textblock
2891 #: ../cat/virt-ls.pod:381
2892 msgid ""
2893 "C<virt-ls -R> produces a recursive list of files starting at the named "
2894 "directory.  See L</RECURSIVE LISTING>."
2895 msgstr ""
2896
2897 #. type: textblock
2898 #: ../cat/virt-ls.pod:384
2899 msgid ""
2900 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2901 "parsed.  See L</RECURSIVE LONG LISTING>."
2902 msgstr ""
2903
2904 #. type: =item
2905 #: ../cat/virt-ls.pod:387
2906 msgid "B<--times>"
2907 msgstr ""
2908
2909 #. type: textblock
2910 #: ../cat/virt-ls.pod:389
2911 msgid "Display time fields."
2912 msgstr ""
2913
2914 #. type: =item
2915 #: ../cat/virt-ls.pod:394
2916 msgid "B<--time-days>"
2917 msgstr ""
2918
2919 #. type: textblock
2920 #: ../cat/virt-ls.pod:396
2921 msgid "Display time fields as days before now (negative if in the future)."
2922 msgstr ""
2923
2924 #. type: textblock
2925 #: ../cat/virt-ls.pod:398
2926 msgid ""
2927 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2928 "of the file is between 0 and 86399 seconds."
2929 msgstr ""
2930
2931 #. type: =item
2932 #: ../cat/virt-ls.pod:404
2933 msgid "B<--time-relative>"
2934 msgstr ""
2935
2936 #. type: textblock
2937 #: ../cat/virt-ls.pod:406
2938 msgid "Display time fields as seconds before now (negative if in the future)."
2939 msgstr ""
2940
2941 #. type: =item
2942 #: ../cat/virt-ls.pod:411
2943 msgid "B<--time-t>"
2944 msgstr ""
2945
2946 #. type: textblock
2947 #: ../cat/virt-ls.pod:413
2948 msgid "Display time fields as seconds since the Unix epoch."
2949 msgstr ""
2950
2951 #. type: =item
2952 #: ../cat/virt-ls.pod:418
2953 msgid "B<--uids>"
2954 msgstr ""
2955
2956 #. type: textblock
2957 #: ../cat/virt-ls.pod:420
2958 msgid "Display UID and GID fields."
2959 msgstr ""
2960
2961 #. type: textblock
2962 #: ../cat/virt-ls.pod:445
2963 msgid "Previous versions of virt-ls allowed you to write either:"
2964 msgstr ""
2965
2966 #. type: verbatim
2967 #: ../cat/virt-ls.pod:447
2968 #, no-wrap
2969 msgid ""
2970 " virt-ls disk.img [disk.img ...] /dir\n"
2971 "\n"
2972 msgstr ""
2973
2974 #. type: verbatim
2975 #: ../cat/virt-ls.pod:451
2976 #, no-wrap
2977 msgid ""
2978 " virt-ls guestname /dir\n"
2979 "\n"
2980 msgstr ""
2981
2982 #. type: textblock
2983 #: ../cat/virt-ls.pod:497
2984 msgid ""
2985 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2986 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2987 "L<http://libguestfs.org/>."
2988 msgstr ""
2989
2990 #. type: textblock
2991 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:374
2992 #: ../rescue/virt-rescue.pod:302
2993 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2994 msgstr ""
2995
2996 #. type: textblock
2997 #: ../clone/virt-sysprep.pod:5
2998 msgid ""
2999 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3000 msgstr ""
3001
3002 #. type: verbatim
3003 #: ../clone/virt-sysprep.pod:9
3004 #, no-wrap
3005 msgid ""
3006 " virt-sysprep [--options] -d domname\n"
3007 "\n"
3008 msgstr ""
3009
3010 #. type: verbatim
3011 #: ../clone/virt-sysprep.pod:11
3012 #, no-wrap
3013 msgid ""
3014 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3015 "\n"
3016 msgstr ""
3017
3018 #. type: textblock
3019 #: ../clone/virt-sysprep.pod:15
3020 msgid ""
3021 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3022 "can be made from it.  Steps in this process include removing SSH host keys, "
3023 "removing persistent network MAC configuration, and removing user accounts.  "
3024 "Each step can be enabled or disabled as required."
3025 msgstr ""
3026
3027 #. type: textblock
3028 #: ../clone/virt-sysprep.pod:21
3029 msgid ""
3030 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3031 "customization by the system administrator."
3032 msgstr ""
3033
3034 #. type: textblock
3035 #: ../clone/virt-sysprep.pod:24
3036 msgid ""
3037 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3038 "be shut down.  If you want to preserve the existing contents of the guest, "
3039 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3040 msgstr ""
3041
3042 #. type: textblock
3043 #: ../clone/virt-sysprep.pod:29
3044 msgid ""
3045 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3046 "recommend that you don't.  The time you might want to run it as root is when "
3047 "you need root in order to access the disk image, but even in this case it "
3048 "would be better to change the permissions on the disk image to be writable "
3049 "as the non-root user running virt-sysprep."
3050 msgstr ""
3051
3052 #. type: textblock
3053 #: ../clone/virt-sysprep.pod:35
3054 msgid ""
3055 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3056 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3057 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3058 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3059 "Windows sysprepping in a future version, and we already have code to do it."
3060 msgstr ""
3061
3062 #. type: =item
3063 #: ../clone/virt-sysprep.pod:76
3064 msgid "B<--enable=...>"
3065 msgstr ""
3066
3067 #. type: textblock
3068 #: ../clone/virt-sysprep.pod:78
3069 msgid ""
3070 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3071 "operations, for example:"
3072 msgstr ""
3073
3074 #. type: verbatim
3075 #: ../clone/virt-sysprep.pod:81
3076 #, no-wrap
3077 msgid ""
3078 " --enable=ssh-hostkeys,udev-persistent-net\n"
3079 "\n"
3080 msgstr ""
3081
3082 #. type: textblock
3083 #: ../clone/virt-sysprep.pod:83
3084 msgid ""
3085 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3086 msgstr ""
3087
3088 #. type: textblock
3089 #: ../clone/virt-sysprep.pod:85
3090 msgid ""
3091 "If the I<--enable> option is not given, then we default to trying all "
3092 "possible sysprep operations.  But some sysprep operations are skipped for "
3093 "some guest types."
3094 msgstr ""
3095
3096 #. type: textblock
3097 #: ../clone/virt-sysprep.pod:89
3098 msgid ""
3099 "Use I<--list-operations> to list operations supported by a particular "
3100 "version of virt-sysprep."
3101 msgstr ""
3102
3103 #. type: textblock
3104 #: ../clone/virt-sysprep.pod:92
3105 msgid ""
3106 "See L</OPERATIONS> below for a list and an explanation of each operation."
3107 msgstr ""
3108
3109 #. type: verbatim
3110 #: ../clone/virt-sysprep.pod:106
3111 #, no-wrap
3112 msgid ""
3113 " virt-sysprep --format=raw -a disk.img\n"
3114 "\n"
3115 msgstr ""
3116
3117 #. type: verbatim
3118 #: ../clone/virt-sysprep.pod:110
3119 #, no-wrap
3120 msgid ""
3121 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3122 "\n"
3123 msgstr ""
3124
3125 #. type: =item
3126 #: ../clone/virt-sysprep.pod:119
3127 msgid "B<--hostname> newhostname"
3128 msgstr ""
3129
3130 #. type: textblock
3131 #: ../clone/virt-sysprep.pod:121
3132 msgid ""
3133 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3134 "defaults to C<localhost.localdomain>."
3135 msgstr ""
3136
3137 #. type: =item
3138 #: ../clone/virt-sysprep.pod:124
3139 msgid "B<--list-operations>"
3140 msgstr ""
3141
3142 #. type: textblock
3143 #: ../clone/virt-sysprep.pod:126
3144 msgid "List the operations supported by the virt-sysprep program."
3145 msgstr ""
3146
3147 #. type: =item
3148 #: ../clone/virt-sysprep.pod:128
3149 msgid "B<--selinux-relabel>"
3150 msgstr ""
3151
3152 #. type: =item
3153 #: ../clone/virt-sysprep.pod:130
3154 msgid "B<--no-selinux-relabel>"
3155 msgstr ""
3156
3157 #. type: textblock
3158 #: ../clone/virt-sysprep.pod:132
3159 msgid ""
3160 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3161 "I<--no-selinux-relabel> disables relabelling."
3162 msgstr ""
3163
3164 #. type: textblock
3165 #: ../clone/virt-sysprep.pod:135
3166 msgid ""
3167 "The default is to try to detect if SELinux relabelling is required.  See L</"
3168 "SELINUX RELABELLING> below for more details."
3169 msgstr ""
3170
3171 #. type: =head1
3172 #: ../clone/virt-sysprep.pod:156
3173 msgid "OPERATIONS"
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../clone/virt-sysprep.pod:158
3178 msgid ""
3179 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3180 "enabled>, although some are skipped depending on the type of guest."
3181 msgstr ""
3182
3183 #. type: textblock
3184 #: ../clone/virt-sysprep.pod:162
3185 msgid ""
3186 "Operations can be individually enabled using the I<--enable> option.  Use a "
3187 "comma-separated list, for example:"
3188 msgstr ""
3189
3190 #. type: verbatim
3191 #: ../clone/virt-sysprep.pod:165
3192 #, no-wrap
3193 msgid ""
3194 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3195 "\n"
3196 msgstr ""
3197
3198 #. type: textblock
3199 #: ../clone/virt-sysprep.pod:167
3200 msgid ""
3201 "To list the operations supported by the current version of virt-sysprep, use "
3202 "I<--list-operations>."
3203 msgstr ""
3204
3205 #. type: textblock
3206 #: ../clone/virt-sysprep.pod:170
3207 msgid ""
3208 "Future versions of virt-sysprep may add more operations.  If you are using "
3209 "virt-sysprep and want predictable behaviour, specify only the operations "
3210 "that you want to have enabled."
3211 msgstr ""
3212
3213 #. type: =head2
3214 #: ../clone/virt-sysprep.pod:174
3215 msgid "cron-spool"
3216 msgstr ""
3217
3218 #. type: textblock
3219 #: ../clone/virt-sysprep.pod:176
3220 msgid "Remove user at-jobs and cron-jobs."
3221 msgstr ""
3222
3223 #. type: =head2
3224 #: ../clone/virt-sysprep.pod:178
3225 msgid "dhcp-client-state"
3226 msgstr ""
3227
3228 #. type: textblock
3229 #: ../clone/virt-sysprep.pod:180
3230 msgid "Remove DHCP client leases."
3231 msgstr ""
3232
3233 #. type: =head2
3234 #: ../clone/virt-sysprep.pod:182
3235 msgid "dhcp-server-state"
3236 msgstr ""
3237
3238 #. type: textblock
3239 #: ../clone/virt-sysprep.pod:184
3240 msgid "Remove DHCP server leases."
3241 msgstr ""
3242
3243 #. type: =head2
3244 #: ../clone/virt-sysprep.pod:186
3245 msgid "hostname"
3246 msgstr ""
3247
3248 #. type: textblock
3249 #: ../clone/virt-sysprep.pod:188
3250 msgid ""
3251 "Changes the hostname of the guest to the value given in the I<--hostname> "
3252 "parameter."
3253 msgstr ""
3254
3255 #. type: textblock
3256 #: ../clone/virt-sysprep.pod:191
3257 msgid ""
3258 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3259 "C<localhost.localdomain>."
3260 msgstr ""
3261
3262 #. type: =head2
3263 #: ../clone/virt-sysprep.pod:194
3264 msgid "logfiles"
3265 msgstr ""
3266
3267 #. type: textblock
3268 #: ../clone/virt-sysprep.pod:196
3269 msgid "Remove many log files."
3270 msgstr ""
3271
3272 #. type: =head2
3273 #: ../clone/virt-sysprep.pod:198
3274 msgid "mail-spool"
3275 msgstr ""
3276
3277 #. type: textblock
3278 #: ../clone/virt-sysprep.pod:200
3279 msgid "Remove email from the local mail spool directory."
3280 msgstr ""
3281
3282 #. type: =head2
3283 #: ../clone/virt-sysprep.pod:202
3284 msgid "net-hwaddr"
3285 msgstr ""
3286
3287 #. type: textblock
3288 #: ../clone/virt-sysprep.pod:204
3289 msgid ""
3290 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3291 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3292 msgstr ""
3293
3294 #. type: =head2
3295 #: ../clone/virt-sysprep.pod:207
3296 msgid "random-seed"
3297 msgstr ""
3298
3299 #. type: textblock
3300 #: ../clone/virt-sysprep.pod:209
3301 msgid ""
3302 "Write some random bytes from the host into the random seed file of the guest."
3303 msgstr ""
3304
3305 #. type: textblock
3306 #: ../clone/virt-sysprep.pod:212
3307 msgid "See L</RANDOM SEED> below."
3308 msgstr ""
3309
3310 #. type: =head2
3311 #: ../clone/virt-sysprep.pod:214
3312 msgid "rhn-systemid"
3313 msgstr ""
3314
3315 #. type: textblock
3316 #: ../clone/virt-sysprep.pod:216
3317 msgid "Remove the RHN system ID."
3318 msgstr ""
3319
3320 #. type: =head2
3321 #: ../clone/virt-sysprep.pod:218
3322 msgid "smolt-uuid"
3323 msgstr ""
3324
3325 #. type: textblock
3326 #: ../clone/virt-sysprep.pod:220
3327 msgid "Remove the Smolt hardware UUID."
3328 msgstr ""
3329
3330 #. type: =head2
3331 #: ../clone/virt-sysprep.pod:222
3332 msgid "ssh-hostkeys"
3333 msgstr ""
3334
3335 #. type: textblock
3336 #: ../clone/virt-sysprep.pod:224
3337 msgid "Remove the SSH host keys in the guest."
3338 msgstr ""
3339
3340 #. type: textblock
3341 #: ../clone/virt-sysprep.pod:226
3342 msgid ""
3343 "The SSH host keys are regenerated (differently) next time the guest is "
3344 "booted."
3345 msgstr ""
3346
3347 #. type: textblock
3348 #: ../clone/virt-sysprep.pod:229
3349 msgid ""
3350 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3351 "stark warning about the host key changing:"
3352 msgstr ""
3353
3354 #. type: verbatim
3355 #: ../clone/virt-sysprep.pod:232
3356 #, no-wrap
3357 msgid ""
3358 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3359 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3360 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3361 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3362 "\n"
3363 msgstr ""
3364
3365 #. type: =head2
3366 #: ../clone/virt-sysprep.pod:237
3367 msgid "udev-persistent-net"
3368 msgstr ""
3369
3370 #. type: textblock
3371 #: ../clone/virt-sysprep.pod:239
3372 msgid ""
3373 "Remove udev persistent net rules which map the guest's existing MAC address "
3374 "to a fixed ethernet device (eg. eth0)."
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../clone/virt-sysprep.pod:242
3379 msgid ""
3380 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3381 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3382 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3383 "Erasing the udev persistent net rules avoids this."
3384 msgstr ""
3385
3386 #. type: =head2
3387 #: ../clone/virt-sysprep.pod:247
3388 msgid "utmp"
3389 msgstr ""
3390
3391 #. type: textblock
3392 #: ../clone/virt-sysprep.pod:249
3393 msgid "Remove the utmp file."
3394 msgstr ""
3395
3396 #. type: textblock
3397 #: ../clone/virt-sysprep.pod:251
3398 msgid ""
3399 "This records who is currently logged in on a machine.  In modern Linux "
3400 "distros it is stored in a ramdisk and hence not part of the virtual "
3401 "machine's disk, but it was stored on disk in older distros."
3402 msgstr ""
3403
3404 #. type: =head2
3405 #: ../clone/virt-sysprep.pod:255
3406 msgid "yum-uuid"
3407 msgstr ""
3408
3409 #. type: textblock
3410 #: ../clone/virt-sysprep.pod:257
3411 msgid "Remove the yum UUID."
3412 msgstr ""
3413
3414 #. type: textblock
3415 #: ../clone/virt-sysprep.pod:259
3416 msgid ""
3417 "Yum creates a fresh UUID the next time it runs when it notices that the "
3418 "original UUID has been erased."
3419 msgstr ""
3420
3421 #. type: =head1
3422 #: ../clone/virt-sysprep.pod:262
3423 msgid "COPYING AND CLONING"
3424 msgstr ""
3425
3426 #. type: textblock
3427 #: ../clone/virt-sysprep.pod:264
3428 msgid ""
3429 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3430 "prepare a template from which guests can be cloned.  There are many "
3431 "different ways to achieve this using the virt tools, and this section is "
3432 "just an introduction."
3433 msgstr ""
3434
3435 #. type: textblock
3436 #: ../clone/virt-sysprep.pod:269
3437 msgid "A virtual machine (when switched off) consists of two parts:"
3438 msgstr ""
3439
3440 #. type: =item
3441 #: ../clone/virt-sysprep.pod:273
3442 msgid "I<configuration>"
3443 msgstr ""
3444
3445 #. type: textblock
3446 #: ../clone/virt-sysprep.pod:275
3447 msgid ""
3448 "The configuration or description of the guest.  eg. The libvirt XML (see "
3449 "C<virsh dumpxml>), the running configuration of the guest, or another "
3450 "external format like OVF."
3451 msgstr ""
3452
3453 #. type: textblock
3454 #: ../clone/virt-sysprep.pod:279
3455 msgid "Some configuration items that might need to be changed:"
3456 msgstr ""
3457
3458 #. type: textblock
3459 #: ../clone/virt-sysprep.pod:285
3460 msgid "name"
3461 msgstr ""
3462
3463 #. type: textblock
3464 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3465 msgid "UUID"
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../clone/virt-sysprep.pod:293
3470 msgid "path to block device(s)"
3471 msgstr ""
3472
3473 #. type: textblock
3474 #: ../clone/virt-sysprep.pod:297
3475 msgid "network card MAC address"
3476 msgstr ""
3477
3478 #. type: =item
3479 #: ../clone/virt-sysprep.pod:301
3480 msgid "I<block device(s)>"
3481 msgstr ""
3482
3483 #. type: textblock
3484 #: ../clone/virt-sysprep.pod:303
3485 msgid ""
3486 "One or more hard disk images, themselves containing files, directories, "
3487 "applications, kernels, configuration, etc."
3488 msgstr ""
3489
3490 #. type: textblock
3491 #: ../clone/virt-sysprep.pod:306
3492 msgid "Some things inside the block devices that might need to be changed:"
3493 msgstr ""
3494
3495 #. type: textblock
3496 #: ../clone/virt-sysprep.pod:312
3497 msgid "hostname and other net configuration"
3498 msgstr ""
3499
3500 #. type: textblock
3501 #: ../clone/virt-sysprep.pod:320
3502 msgid "SSH host keys"
3503 msgstr ""
3504
3505 #. type: textblock
3506 #: ../clone/virt-sysprep.pod:324
3507 msgid "Windows unique security ID (SID)"
3508 msgstr ""
3509
3510 #. type: textblock
3511 #: ../clone/virt-sysprep.pod:328
3512 msgid "Puppet registration"
3513 msgstr ""
3514
3515 #. type: =head2
3516 #: ../clone/virt-sysprep.pod:334
3517 msgid "COPYING THE BLOCK DEVICE"
3518 msgstr ""
3519
3520 #. type: textblock
3521 #: ../clone/virt-sysprep.pod:336
3522 msgid ""
3523 "Starting with an original guest, you probably wish to copy the guest block "
3524 "device and its configuration to make a template.  Then once you are happy "
3525 "with the template, you will want to make many clones from it."
3526 msgstr ""
3527
3528 #. type: verbatim
3529 #: ../clone/virt-sysprep.pod:341
3530 #, no-wrap
3531 msgid ""
3532 "                        virt-sysprep\n"
3533 "                             |\n"
3534 "                             v\n"
3535 " original guest --------> template ---------->\n"
3536 "                                      \\------> cloned\n"
3537 "                                       \\-----> guests\n"
3538 "                                        \\---->\n"
3539 "\n"
3540 msgstr ""
3541
3542 #. type: textblock
3543 #: ../clone/virt-sysprep.pod:349
3544 msgid ""
3545 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3546 "L<dd(1)>."
3547 msgstr ""
3548
3549 #. type: verbatim
3550 #: ../clone/virt-sysprep.pod:352
3551 #, no-wrap
3552 msgid ""
3553 "                   dd                 dd\n"
3554 " original guest --------> template ---------->\n"
3555 "                                      \\------> cloned\n"
3556 "                                       \\-----> guests\n"
3557 "                                        \\---->\n"
3558 "\n"
3559 msgstr ""
3560
3561 #. type: textblock
3562 #: ../clone/virt-sysprep.pod:358
3563 msgid "There are some smarter (and faster) ways too:"
3564 msgstr ""
3565
3566 #. type: verbatim
3567 #: ../clone/virt-sysprep.pod:364
3568 #, no-wrap
3569 msgid ""
3570 "                          snapshot\n"
3571 "                template ---------->\n"
3572 "                            \\------> cloned\n"
3573 "                             \\-----> guests\n"
3574 "                              \\---->\n"
3575 "\n"
3576 msgstr ""
3577
3578 #. type: textblock
3579 #: ../clone/virt-sysprep.pod:370
3580 msgid ""
3581 "Use the block device as a backing file and create a snapshot on top for each "
3582 "guest.  The advantage is that you don't need to copy the block device (very "
3583 "fast) and only changes are stored (less storage required)."
3584 msgstr ""
3585
3586 #. type: textblock
3587 #: ../clone/virt-sysprep.pod:375
3588 msgid ""
3589 "Note that writing to the backing file once you have created guests on top of "
3590 "it is not possible: you will corrupt the guests."
3591 msgstr ""
3592
3593 #. type: textblock
3594 #: ../clone/virt-sysprep.pod:378
3595 msgid ""
3596 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3597 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3598 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3599 "also create cheap snapshots from files or LUNs."
3600 msgstr ""
3601
3602 #. type: textblock
3603 #: ../clone/virt-sysprep.pod:386
3604 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3605 msgstr ""
3606
3607 #. type: textblock
3608 #: ../clone/virt-sysprep.pod:390
3609 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3610 msgstr ""
3611
3612 #. type: =head2
3613 #: ../clone/virt-sysprep.pod:394
3614 msgid "VIRT-CLONE"
3615 msgstr ""
3616
3617 #. type: textblock
3618 #: ../clone/virt-sysprep.pod:396
3619 msgid ""
3620 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3621 "and/or modify the external libvirt configuration of a guest.  It will reset "
3622 "the name, UUID and MAC address of the guest in the libvirt XML."
3623 msgstr ""
3624
3625 #. type: textblock
3626 #: ../clone/virt-sysprep.pod:401
3627 msgid ""
3628 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3629 "image.  This was the original motivation to write virt-sysprep."
3630 msgstr ""
3631
3632 #. type: =head2
3633 #: ../clone/virt-sysprep.pod:404
3634 msgid "SPARSIFY"
3635 msgstr ""
3636
3637 #. type: verbatim
3638 #: ../clone/virt-sysprep.pod:406
3639 #, no-wrap
3640 msgid ""
3641 "              virt-sparsify\n"
3642 " original guest --------> template\n"
3643 "\n"
3644 msgstr ""
3645
3646 #. type: textblock
3647 #: ../clone/virt-sysprep.pod:409
3648 msgid ""
3649 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3650 "it easier to compress and/or faster to copy."
3651 msgstr ""
3652
3653 #. type: textblock
3654 #: ../clone/virt-sysprep.pod:412
3655 msgid ""
3656 "Notice that since virt-sparsify also copies the image, you can use it to "
3657 "make the initial copy (instead of C<dd>)."
3658 msgstr ""
3659
3660 #. type: =head2
3661 #: ../clone/virt-sysprep.pod:415
3662 msgid "RESIZE"
3663 msgstr ""
3664
3665 #. type: verbatim
3666 #: ../clone/virt-sysprep.pod:417
3667 #, no-wrap
3668 msgid ""
3669 "                         virt-resize\n"
3670 "                template ---------->\n"
3671 "                            \\------> cloned\n"
3672 "                             \\-----> guests\n"
3673 "                              \\---->\n"
3674 "\n"
3675 msgstr ""
3676
3677 #. type: textblock
3678 #: ../clone/virt-sysprep.pod:423
3679 msgid ""
3680 "If you want to give people cloned guests, but let them pick the size of the "
3681 "guest themselves (eg. depending on how much they are prepared to pay for "
3682 "disk space), then instead of copying the template, you can run L<virt-resize"
3683 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3684 "guests from a template."
3685 msgstr ""
3686
3687 #. type: =head1
3688 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3689 msgid "SECURITY"
3690 msgstr ""
3691
3692 #. type: textblock
3693 #: ../clone/virt-sysprep.pod:431
3694 msgid ""
3695 "Although virt-sysprep removes some sensitive information from the guest, it "
3696 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3697 "above, and the implementation of the operations in the shell script.  You "
3698 "should also examine the guest afterwards."
3699 msgstr ""
3700
3701 #. type: textblock
3702 #: ../clone/virt-sysprep.pod:436
3703 msgid ""
3704 "Sensitive files are simply removed.  The data they contained may still exist "
3705 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3706 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3707 "(1)> command to get rid of deleted content in directory entries and inodes."
3708 msgstr ""
3709
3710 #. type: =head2
3711 #: ../clone/virt-sysprep.pod:442
3712 msgid "RANDOM SEED"
3713 msgstr ""
3714
3715 #. type: textblock
3716 #: ../clone/virt-sysprep.pod:444
3717 msgid "I<(This section applies to Linux guests only)>"
3718 msgstr ""
3719
3720 #. type: textblock
3721 #: ../clone/virt-sysprep.pod:446
3722 msgid ""
3723 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3724 "from the host into the guest's random seed file."
3725 msgstr ""
3726
3727 #. type: textblock
3728 #: ../clone/virt-sysprep.pod:449
3729 msgid ""
3730 "If this is just done once and the guest is cloned from the same template, "
3731 "then each guest will start with the same entropy, and things like SSH host "
3732 "keys and TCP sequence numbers may be predictable."
3733 msgstr ""
3734
3735 #. type: textblock
3736 #: ../clone/virt-sysprep.pod:453
3737 msgid ""
3738 "Therefore you should arrange to add more randomness I<after> cloning from a "
3739 "template too, which can be done by just enabling the C<random-seed> "
3740 "operation:"
3741 msgstr ""
3742
3743 #. type: verbatim
3744 #: ../clone/virt-sysprep.pod:457
3745 #, no-wrap
3746 msgid ""
3747 " cp template.img newguest.img\n"
3748 " virt-sysprep --enable=random-seed -a newguest.img\n"
3749 "\n"
3750 msgstr ""
3751
3752 #. type: =head2
3753 #: ../clone/virt-sysprep.pod:460
3754 msgid "SELINUX RELABELLING"
3755 msgstr ""
3756
3757 #. type: textblock
3758 #: ../clone/virt-sysprep.pod:462
3759 msgid "I<(This section applies to Linux guests using SELinux only)>"
3760 msgstr ""
3761
3762 #. type: textblock
3763 #: ../clone/virt-sysprep.pod:464
3764 msgid ""
3765 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3766 "autorelabel> so that these will be correctly labelled by SELinux the next "
3767 "time the guest is booted.  This process interrupts boot and can take some "
3768 "time."
3769 msgstr ""
3770
3771 #. type: textblock
3772 #: ../clone/virt-sysprep.pod:469
3773 msgid ""
3774 "You can force relabelling for all guests by supplying the I<--selinux-"
3775 "relabel> option."
3776 msgstr ""
3777
3778 #. type: textblock
3779 #: ../clone/virt-sysprep.pod:472
3780 msgid ""
3781 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3782 "relabel> option."
3783 msgstr ""
3784
3785 #. type: textblock
3786 #: ../clone/virt-sysprep.pod:484
3787 msgid "This program returns 0 on success, or 1 if there was an error."
3788 msgstr ""
3789
3790 #. type: textblock
3791 #: ../clone/virt-sysprep.pod:488
3792 msgid ""
3793 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3794 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3795 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3796 msgstr ""
3797
3798 #. type: textblock
3799 #: ../df/virt-df.pod:5
3800 msgid "virt-df - Display free space on virtual filesystems"
3801 msgstr ""
3802
3803 #. type: verbatim
3804 #: ../df/virt-df.pod:9
3805 #, no-wrap
3806 msgid ""
3807 " virt-df [--options]\n"
3808 "\n"
3809 msgstr ""
3810
3811 #. type: verbatim
3812 #: ../df/virt-df.pod:11
3813 #, no-wrap
3814 msgid ""
3815 " virt-df [--options] -d domname\n"
3816 "\n"
3817 msgstr ""
3818
3819 #. type: verbatim
3820 #: ../df/virt-df.pod:13
3821 #, no-wrap
3822 msgid ""
3823 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3824 "\n"
3825 msgstr ""
3826
3827 #. type: verbatim
3828 #: ../df/virt-df.pod:17
3829 #, no-wrap
3830 msgid ""
3831 " virt-df [--options] domname\n"
3832 "\n"
3833 msgstr ""
3834
3835 #. type: verbatim
3836 #: ../df/virt-df.pod:19
3837 #, no-wrap
3838 msgid ""
3839 " virt-df [--options] disk.img [disk.img ...]\n"
3840 "\n"
3841 msgstr ""
3842
3843 #. type: textblock
3844 #: ../df/virt-df.pod:23
3845 msgid ""
3846 "C<virt-df> is a command line tool to display free space on virtual machine "
3847 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3848 "allocated to a virtual machine, but can look inside disk images to see how "
3849 "much space is really being used."
3850 msgstr ""
3851
3852 #. type: textblock
3853 #: ../df/virt-df.pod:28
3854 msgid ""
3855 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3856 "to get a list of all active and inactive guests, and performs a C<df>-type "
3857 "operation on each one in turn, printing out the results."
3858 msgstr ""
3859
3860 #. type: textblock
3861 #: ../df/virt-df.pod:32
3862 msgid ""
3863 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3864 "type operation on either the single named libvirt domain, or on the disk "
3865 "image(s) listed on the command line (which must all belong to a single VM).  "
3866 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3867 "guest>.  If you want to run on multiple guests, then you have to invoke "
3868 "C<virt-df> multiple times."
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../df/virt-df.pod:39
3873 msgid ""
3874 "Use the I<--csv> option to get a format which can be easily parsed by other "
3875 "programs.  Other options are similar to the standard L<df(1)> command."
3876 msgstr ""
3877
3878 #. type: textblock
3879 #: ../df/virt-df.pod:45
3880 msgid ""
3881 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3882 "output human-readable:"
3883 msgstr ""
3884
3885 #. type: verbatim
3886 #: ../df/virt-df.pod:48
3887 #, no-wrap
3888 msgid ""
3889 " # virt-df -d F14x64 -h\n"
3890 " Filesystem                       Size     Used  Available  Use%\n"
3891 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3892 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3893 "\n"
3894 msgstr ""
3895
3896 #. type: textblock
3897 #: ../df/virt-df.pod:53
3898 msgid "Show disk usage for a disk image file called C<test.img>:"
3899 msgstr ""
3900
3901 #. type: verbatim
3902 #: ../df/virt-df.pod:55
3903 #, no-wrap
3904 msgid ""
3905 " $ virt-df -a test1.img\n"
3906 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3907 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3908 "\n"
3909 msgstr ""
3910
3911 #. type: verbatim
3912 #: ../df/virt-df.pod:112
3913 #, no-wrap
3914 msgid ""
3915 " virt-df --format=raw -a disk.img\n"
3916 "\n"
3917 msgstr ""
3918
3919 #. type: verbatim
3920 #: ../df/virt-df.pod:116
3921 #, no-wrap
3922 msgid ""
3923 " virt-df --format=raw -a disk.img --format -a another.img\n"
3924 "\n"
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../df/virt-df.pod:129
3929 msgid "Print sizes in human-readable format."
3930 msgstr ""
3931
3932 #. type: textblock
3933 #: ../df/virt-df.pod:131
3934 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3935 msgstr ""
3936
3937 #. type: =item
3938 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3939 msgid "B<-i>"
3940 msgstr ""
3941
3942 #. type: =item
3943 #: ../df/virt-df.pod:135
3944 msgid "B<--inodes>"
3945 msgstr ""
3946
3947 #. type: textblock
3948 #: ../df/virt-df.pod:137
3949 msgid "Print inodes instead of blocks."
3950 msgstr ""
3951
3952 #. type: =item
3953 #: ../df/virt-df.pod:139
3954 msgid "B<--one-per-guest>"
3955 msgstr ""
3956
3957 #. type: textblock
3958 #: ../df/virt-df.pod:141
3959 msgid ""
3960 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3961 "disks from several guests to a single libguestfs appliance."
3962 msgstr ""
3963
3964 #. type: textblock
3965 #: ../df/virt-df.pod:144
3966 msgid "You might use this option in the following circumstances:"
3967 msgstr ""
3968
3969 #. type: textblock
3970 #: ../df/virt-df.pod:150
3971 msgid ""
3972 "If you think an untrusted guest might actively try to exploit the libguestfs "
3973 "appliance kernel, then this prevents one guest from interfering with the "
3974 "stats printed for another guest."
3975 msgstr ""
3976
3977 #. type: textblock
3978 #: ../df/virt-df.pod:156
3979 msgid ""
3980 "If the kernel has a bug which stops it from accessing a filesystem in one "
3981 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3982 "and report stats for further guests."
3983 msgstr ""
3984
3985 #. type: textblock
3986 #: ../df/virt-df.pod:165
3987 msgid ""
3988 "Print UUIDs instead of names.  This is useful for following a guest even "
3989 "when the guest is migrated or renamed, or when two guests happen to have the "
3990 "same name."
3991 msgstr ""
3992
3993 #. type: textblock
3994 #: ../df/virt-df.pod:169
3995 msgid ""
3996 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3997 "images, we still print the disk image name even when this option is "
3998 "specified."
3999 msgstr ""
4000
4001 #. type: =head1
4002 #: ../df/virt-df.pod:191
4003 msgid "STATVFS NUMBERS"
4004 msgstr ""
4005
4006 #. type: textblock
4007 #: ../df/virt-df.pod:193
4008 msgid ""
4009 "C<virt-df> (and L<df(1)>) get information by issuing a L<statvfs(3)> system "
4010 "call.  You can get the same information directly, either from the host "
4011 "(using libguestfs) or inside the guest:"
4012 msgstr ""
4013
4014 #. type: =item
4015 #: ../df/virt-df.pod:199
4016 msgid "From the host"
4017 msgstr ""
4018
4019 #. type: textblock
4020 #: ../df/virt-df.pod:201 ../df/virt-df.pod:209
4021 msgid "Run this command:"
4022 msgstr ""
4023
4024 #. type: verbatim
4025 #: ../df/virt-df.pod:203
4026 #, no-wrap
4027 msgid ""
4028 " guestfish --ro -d GuestName -i statvfs /\n"
4029 "\n"
4030 msgstr ""
4031
4032 #. type: textblock
4033 #: ../df/virt-df.pod:205 ../df/virt-df.pod:213
4034 msgid "(change C</> to see stats for other filesystems)."
4035 msgstr ""
4036
4037 #. type: =item
4038 #: ../df/virt-df.pod:207
4039 msgid "From inside the guest"
4040 msgstr ""
4041
4042 #. type: verbatim
4043 #: ../df/virt-df.pod:211
4044 #, no-wrap
4045 msgid ""
4046 " python -c 'import os; s = os.statvfs (\"/\"); print s'\n"
4047 "\n"
4048 msgstr ""
4049
4050 #. type: textblock
4051 #: ../df/virt-df.pod:255
4052 msgid ""
4053 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4054 "libguestfs.org/>."
4055 msgstr ""
4056
4057 #. type: textblock
4058 #: ../edit/virt-edit.pod:5
4059 msgid "virt-edit - Edit a file in a virtual machine"
4060 msgstr ""
4061
4062 #. type: verbatim
4063 #: ../edit/virt-edit.pod:9
4064 #, no-wrap
4065 msgid ""
4066 " virt-edit [--options] -d domname file [file ...]\n"
4067 "\n"
4068 msgstr ""
4069
4070 #. type: verbatim
4071 #: ../edit/virt-edit.pod:11
4072 #, no-wrap
4073 msgid ""
4074 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4075 "\n"
4076 msgstr ""
4077
4078 #. type: verbatim
4079 #: ../edit/virt-edit.pod:13
4080 #, no-wrap
4081 msgid ""
4082 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4083 "\n"
4084 msgstr ""
4085
4086 #. type: verbatim
4087 #: ../edit/virt-edit.pod:17
4088 #, no-wrap
4089 msgid ""
4090 " virt-edit domname file\n"
4091 "\n"
4092 msgstr ""
4093
4094 #. type: verbatim
4095 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4096 #, no-wrap
4097 msgid ""
4098 " virt-edit disk.img [disk.img ...] file\n"
4099 "\n"
4100 msgstr ""
4101
4102 #. type: =head1
4103 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4104 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4105 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4106 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4107 msgid "WARNING"
4108 msgstr ""
4109
4110 #. type: textblock
4111 #: ../edit/virt-edit.pod:23
4112 msgid ""
4113 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4114 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4115 "doing this, but doesn't catch all cases."
4116 msgstr ""
4117
4118 #. type: textblock
4119 #: ../edit/virt-edit.pod:29
4120 msgid ""
4121 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4122 "exists in the named virtual machine (or disk image)."
4123 msgstr ""
4124
4125 #. type: textblock
4126 #: ../edit/virt-edit.pod:32
4127 msgid ""
4128 "Multiple filenames can be given, in which case they are each edited in "
4129 "turn.  Each filename must be a full path, starting at the root directory "
4130 "(starting with '/')."
4131 msgstr ""
4132
4133 #. type: textblock
4134 #: ../edit/virt-edit.pod:36
4135 msgid "If you want to just view a file, use L<virt-cat(1)>."
4136 msgstr ""
4137
4138 #. type: textblock
4139 #: ../edit/virt-edit.pod:38
4140 msgid ""
4141 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4142 "USING GUESTFISH> below)."
4143 msgstr ""
4144
4145 #. type: textblock
4146 #: ../edit/virt-edit.pod:41
4147 msgid ""
4148 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4149 "that and much more."
4150 msgstr ""
4151
4152 #. type: textblock
4153 #: ../edit/virt-edit.pod:46
4154 msgid "Edit the named files interactively:"
4155 msgstr ""
4156
4157 #. type: verbatim
4158 #: ../edit/virt-edit.pod:48
4159 #, no-wrap
4160 msgid ""
4161 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4162 "\n"
4163 msgstr ""
4164
4165 #. type: verbatim
4166 #: ../edit/virt-edit.pod:50
4167 #, no-wrap
4168 msgid ""
4169 " virt-edit -d mydomain /etc/passwd\n"
4170 "\n"
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../edit/virt-edit.pod:52
4175 msgid "For Windows guests, some Windows paths are understood:"
4176 msgstr ""
4177
4178 #. type: verbatim
4179 #: ../edit/virt-edit.pod:54
4180 #, no-wrap
4181 msgid ""
4182 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4183 "\n"
4184 msgstr ""
4185
4186 #. type: textblock
4187 #: ../edit/virt-edit.pod:56
4188 msgid ""
4189 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4190 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4191 msgstr ""
4192
4193 #. type: verbatim
4194 #: ../edit/virt-edit.pod:60
4195 #, no-wrap
4196 msgid ""
4197 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4198 "\n"
4199 msgstr ""
4200
4201 #. type: =item
4202 #: ../edit/virt-edit.pod:81
4203 msgid "B<-b> extension"
4204 msgstr ""
4205
4206 #. type: =item
4207 #: ../edit/virt-edit.pod:83
4208 msgid "B<--backup> extension"
4209 msgstr ""
4210
4211 #. type: textblock
4212 #: ../edit/virt-edit.pod:85
4213 msgid ""
4214 "Create a backup of the original file I<in the guest disk image>.  The backup "
4215 "has the original filename with C<extension> added."
4216 msgstr ""
4217
4218 #. type: textblock
4219 #: ../edit/virt-edit.pod:88
4220 msgid ""
4221 "Usually the first character of C<extension> would be a dot C<.> so you would "
4222 "write:"
4223 msgstr ""
4224
4225 #. type: verbatim
4226 #: ../edit/virt-edit.pod:91
4227 #, no-wrap
4228 msgid ""
4229 " virt-edit -b .orig [etc]\n"
4230 "\n"
4231 msgstr ""
4232
4233 #. type: textblock
4234 #: ../edit/virt-edit.pod:93
4235 msgid "By default, no backup file is made."
4236 msgstr ""
4237
4238 #. type: =item
4239 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4240 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4241 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4242 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4243 msgid "B<-c URI>"
4244 msgstr ""
4245
4246 #. type: =item
4247 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4248 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4249 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4250 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4251 msgid "B<--connect URI>"
4252 msgstr ""
4253
4254 #. type: textblock
4255 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4256 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4257 #: ../tools/virt-win-reg.pl:135
4258 msgid ""
4259 "If you specify guest block devices directly, then libvirt is not used at all."
4260 msgstr ""
4261
4262 #. type: textblock
4263 #: ../edit/virt-edit.pod:114
4264 msgid ""
4265 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4266 "off so you cannot see what you are typing.  If you are not worried about "
4267 "Tempest attacks and there is no one else in the room you can specify this "
4268 "flag to see what you are typing."
4269 msgstr ""
4270
4271 #. type: =item
4272 #: ../edit/virt-edit.pod:119
4273 msgid "B<-e> EXPR"
4274 msgstr ""
4275
4276 #. type: =item
4277 #: ../edit/virt-edit.pod:121
4278 msgid "B<--expr> EXPR"
4279 msgstr ""
4280
4281 #. type: textblock
4282 #: ../edit/virt-edit.pod:123
4283 msgid ""
4284 "Instead of launching the external editor, non-interactively apply the Perl "
4285 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4286 "EDITING> below."
4287 msgstr ""
4288
4289 #. type: textblock
4290 #: ../edit/virt-edit.pod:127
4291 msgid ""
4292 "Be careful to properly quote the expression to prevent it from being altered "
4293 "by the shell."
4294 msgstr ""
4295
4296 #. type: textblock
4297 #: ../edit/virt-edit.pod:130
4298 msgid "Note that this option is only available when Perl 5 is installed."
4299 msgstr ""
4300
4301 #. type: =item
4302 #: ../edit/virt-edit.pod:132
4303 msgid "B<--format> raw|qcow2|..."
4304 msgstr ""
4305
4306 #. type: verbatim
4307 #: ../edit/virt-edit.pod:143
4308 #, no-wrap
4309 msgid ""
4310 " virt-edit --format=raw -a disk.img file\n"
4311 "\n"
4312 msgstr ""
4313
4314 #. type: verbatim
4315 #: ../edit/virt-edit.pod:147
4316 #, no-wrap
4317 msgid ""
4318 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4319 "\n"
4320 msgstr ""
4321
4322 #. type: textblock
4323 #: ../edit/virt-edit.pod:181
4324 msgid "Previous versions of virt-edit allowed you to write either:"
4325 msgstr ""
4326
4327 #. type: verbatim
4328 #: ../edit/virt-edit.pod:187
4329 #, no-wrap
4330 msgid ""
4331 " virt-edit guestname file\n"
4332 "\n"
4333 msgstr ""
4334
4335 #. type: =head1
4336 #: ../edit/virt-edit.pod:195
4337 msgid "NON-INTERACTIVE EDITING"
4338 msgstr ""
4339
4340 #. type: textblock
4341 #: ../edit/virt-edit.pod:197
4342 msgid ""
4343 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4344 "administrator can interactively edit the file."
4345 msgstr ""
4346
4347 #. type: textblock
4348 #: ../edit/virt-edit.pod:200
4349 msgid ""
4350 "There are two ways also to use C<virt-edit> from scripts in order to make "
4351 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4352 "like this, it's less error-prone to write scripts directly using the "
4353 "libguestfs API and Augeas for configuration file editing.)"
4354 msgstr ""
4355
4356 #. type: textblock
4357 #: ../edit/virt-edit.pod:206
4358 msgid ""
4359 "The first method is to temporarily set C<$EDITOR> to any script or program "
4360 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4361 "update C<tmpfile> in place however it likes."
4362 msgstr ""
4363
4364 #. type: textblock
4365 #: ../edit/virt-edit.pod:210
4366 msgid ""
4367 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4368 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4369 "instances of C<foo> with C<bar> in a file:"
4370 msgstr ""
4371
4372 #. type: verbatim
4373 #: ../edit/virt-edit.pod:214
4374 #, no-wrap
4375 msgid ""
4376 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4377 "\n"
4378 msgstr ""
4379
4380 #. type: textblock
4381 #: ../edit/virt-edit.pod:216
4382 msgid ""
4383 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4384 "For example to delete root's password you could do:"
4385 msgstr ""
4386
4387 #. type: verbatim
4388 #: ../edit/virt-edit.pod:219
4389 #, no-wrap
4390 msgid ""
4391 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4392 "\n"
4393 msgstr ""
4394
4395 #. type: textblock
4396 #: ../edit/virt-edit.pod:221
4397 msgid ""
4398 "What really happens is that the snippet is evaluated as a Perl expression "
4399 "for each line of the file.  The line, including the final C<\\n>, is passed "
4400 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4401 msgstr ""
4402
4403 #. type: textblock
4404 #: ../edit/virt-edit.pod:226
4405 msgid ""
4406 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4407 "C<apache> user account from the password file you can do:"
4408 msgstr ""
4409
4410 #. type: verbatim
4411 #: ../edit/virt-edit.pod:229
4412 #, no-wrap
4413 msgid ""
4414 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4415 "\n"
4416 msgstr ""
4417
4418 #. type: textblock
4419 #: ../edit/virt-edit.pod:231
4420 msgid ""
4421 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4422 "the end of the file is rather difficult this way since there is no concept "
4423 "of \"last line of the file\" - your expression just doesn't get called "
4424 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4425 "want to do this."
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../edit/virt-edit.pod:237
4430 msgid ""
4431 "The variable C<$lineno> contains the current line number.  As is "
4432 "traditional, the first line in the file is number C<1>."
4433 msgstr ""
4434
4435 #. type: textblock
4436 #: ../edit/virt-edit.pod:240
4437 msgid ""
4438 "The return value from the expression is ignored, but the expression may call "
4439 "C<die> in order to abort the whole program, leaving the original file "
4440 "untouched."
4441 msgstr ""
4442
4443 #. type: textblock
4444 #: ../edit/virt-edit.pod:244
4445 msgid ""
4446 "Remember when matching the end of a line that C<$_> may contain the final C<"
4447 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4448 "newline then neither of these.  Thus to match or substitute some text at the "
4449 "end of a line, use this regular expression:"
4450 msgstr ""
4451
4452 #. type: verbatim
4453 #: ../edit/virt-edit.pod:249
4454 #, no-wrap
4455 msgid ""
4456 " /some text(\\r?\\n)?$/\n"
4457 "\n"
4458 msgstr ""
4459
4460 #. type: textblock
4461 #: ../edit/virt-edit.pod:251
4462 msgid ""
4463 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4464 "$_> itself (since that would remove all newlines from the file):"
4465 msgstr ""
4466
4467 #. type: verbatim
4468 #: ../edit/virt-edit.pod:255
4469 #, no-wrap
4470 msgid ""
4471 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4472 "\n"
4473 msgstr ""
4474
4475 #. type: textblock
4476 #: ../edit/virt-edit.pod:259
4477 msgid ""
4478 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4479 "paths (eg. C<E:\\foo\\bar.txt>)."
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../edit/virt-edit.pod:278
4484 msgid ""
4485 "The path is resolved case insensitively to locate the file that should be "
4486 "edited."
4487 msgstr ""
4488
4489 #. type: textblock
4490 #: ../edit/virt-edit.pod:299
4491 msgid ""
4492 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4493 "C<virt-edit> doesn't work."
4494 msgstr ""
4495
4496 #. type: textblock
4497 #: ../edit/virt-edit.pod:302
4498 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4499 msgstr ""
4500
4501 #. type: verbatim
4502 #: ../edit/virt-edit.pod:304
4503 #, no-wrap
4504 msgid ""
4505 " guestfish --rw -i -d domname edit /file\n"
4506 "\n"
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../edit/virt-edit.pod:306
4511 msgid ""
4512 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4513 "path to the file."
4514 msgstr ""
4515
4516 #. type: textblock
4517 #: ../edit/virt-edit.pod:309
4518 msgid ""
4519 "The command above uses libguestfs's guest inspection feature and so does not "
4520 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4521 "disk images that don't contain guests.  To edit a file on a disk image "
4522 "directly, use:"
4523 msgstr ""
4524
4525 #. type: verbatim
4526 #: ../edit/virt-edit.pod:314
4527 #, no-wrap
4528 msgid ""
4529 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4530 "\n"
4531 msgstr ""
4532
4533 #. type: textblock
4534 #: ../edit/virt-edit.pod:316
4535 msgid ""
4536 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4537 "the disk image to edit, and C</file> is the full path to the file."
4538 msgstr ""
4539
4540 #. type: textblock
4541 #: ../edit/virt-edit.pod:320
4542 msgid ""
4543 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4544 "C<write> or C<upload> instead:"
4545 msgstr ""
4546
4547 #. type: verbatim
4548 #: ../edit/virt-edit.pod:323
4549 #, no-wrap
4550 msgid ""
4551 " guestfish --rw -i -d domname touch /newfile\n"
4552 "\n"
4553 msgstr ""
4554
4555 #. type: verbatim
4556 #: ../edit/virt-edit.pod:325
4557 #, no-wrap
4558 msgid ""
4559 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4560 "\n"
4561 msgstr ""
4562
4563 #. type: verbatim
4564 #: ../edit/virt-edit.pod:327
4565 #, no-wrap
4566 msgid ""
4567 " guestfish --rw -i -d domname upload localfile /newfile\n"
4568 "\n"
4569 msgstr ""
4570
4571 #. type: =head1
4572 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4573 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:237
4574 #: ../src/guestfs.pod:3214 ../test-tool/libguestfs-test-tool.pod:95
4575 msgid "ENVIRONMENT VARIABLES"
4576 msgstr ""
4577
4578 #. type: =item
4579 #: ../edit/virt-edit.pod:333
4580 msgid "C<EDITOR>"
4581 msgstr ""
4582
4583 #. type: textblock
4584 #: ../edit/virt-edit.pod:335
4585 msgid ""
4586 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4587 "\"emacs -nw\">"
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../edit/virt-edit.pod:338
4592 msgid "If not set, C<vi> is used."
4593 msgstr ""
4594
4595 #. type: textblock
4596 #: ../edit/virt-edit.pod:356
4597 msgid ""
4598 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4599 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4600 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4601 msgstr ""
4602
4603 #. type: textblock
4604 #: ../erlang/examples/guestfs-erlang.pod:5
4605 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4606 msgstr ""
4607
4608 #. type: verbatim
4609 #: ../erlang/examples/guestfs-erlang.pod:9
4610 #, no-wrap
4611 msgid ""
4612 " {ok, G} = guestfs:create(),\n"
4613 " ok = guestfs:add_drive_opts(G, Disk,\n"
4614 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4615 " ok = guestfs:launch(G),\n"
4616 " [Device] = guestfs:list_devices(G),\n"
4617 " ok = guestfs:close(G).\n"
4618 "\n"
4619 msgstr ""
4620
4621 #. type: textblock
4622 #: ../erlang/examples/guestfs-erlang.pod:18
4623 msgid ""
4624 "This manual page documents how to call libguestfs from the Erlang "
4625 "programming language.  This page just documents the differences from the C "
4626 "API and gives some examples.  If you are not familiar with using libguestfs, "
4627 "you also need to read L<guestfs(3)>."
4628 msgstr ""
4629
4630 #. type: =head2
4631 #: ../erlang/examples/guestfs-erlang.pod:23
4632 msgid "OPENING AND CLOSING THE HANDLE"
4633 msgstr ""
4634
4635 #. type: textblock
4636 #: ../erlang/examples/guestfs-erlang.pod:25
4637 msgid ""
4638 "The Erlang bindings are implemented using an external program called C<erl-"
4639 "guestfs>.  This program must be on the current PATH, or else you should "
4640 "specify the full path to the program:"
4641 msgstr ""
4642
4643 #. type: verbatim
4644 #: ../erlang/examples/guestfs-erlang.pod:29
4645 #, no-wrap
4646 msgid ""
4647 " {ok, G} = guestfs:create().\n"
4648 "\n"
4649 msgstr ""
4650
4651 #. type: verbatim
4652 #: ../erlang/examples/guestfs-erlang.pod:31
4653 #, no-wrap
4654 msgid ""
4655 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4656 "\n"
4657 msgstr ""
4658
4659 #. type: textblock
4660 #: ../erlang/examples/guestfs-erlang.pod:33
4661 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4662 msgstr ""
4663
4664 #. type: textblock
4665 #: ../erlang/examples/guestfs-erlang.pod:36
4666 msgid "To close the handle:"
4667 msgstr ""
4668
4669 #. type: verbatim
4670 #: ../erlang/examples/guestfs-erlang.pod:38
4671 #, no-wrap
4672 msgid ""
4673 " ok = guestfs:close(G).\n"
4674 "\n"
4675 msgstr ""
4676
4677 #. type: =head2
4678 #: ../erlang/examples/guestfs-erlang.pod:40
4679 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4680 msgstr ""
4681
4682 #. type: textblock
4683 #: ../erlang/examples/guestfs-erlang.pod:42
4684 msgid ""
4685 "For functions that take optional arguments, the first arguments are the non-"
4686 "optional ones.  The last argument is a list of tuples supplying the "
4687 "remaining optional arguments."
4688 msgstr ""
4689
4690 #. type: verbatim
4691 #: ../erlang/examples/guestfs-erlang.pod:46
4692 #, no-wrap
4693 msgid ""
4694 " ok = guestfs:add_drive_opts(G, Disk,\n"
4695 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4696 "\n"
4697 msgstr ""
4698
4699 #. type: textblock
4700 #: ../erlang/examples/guestfs-erlang.pod:49
4701 msgid "If the last argument would be an empty list, you can also omit it:"
4702 msgstr ""
4703
4704 #. type: verbatim
4705 #: ../erlang/examples/guestfs-erlang.pod:51
4706 #, no-wrap
4707 msgid ""
4708 " ok = guestfs:add_drive_opts(G, Disk).\n"
4709 "\n"
4710 msgstr ""
4711
4712 #. type: =head2
4713 #: ../erlang/examples/guestfs-erlang.pod:53
4714 msgid "RETURN VALUES AND ERRORS"
4715 msgstr ""
4716
4717 #. type: textblock
4718 #: ../erlang/examples/guestfs-erlang.pod:55
4719 msgid ""
4720 "On success, most functions return a C<Result> term (which could be a list, "
4721 "string, tuple etc.).  If there is nothing for the function to return, then "
4722 "the atom C<ok> is returned."
4723 msgstr ""
4724
4725 #. type: textblock
4726 #: ../erlang/examples/guestfs-erlang.pod:59
4727 msgid "On error, you would see one of the following tuples:"
4728 msgstr ""
4729
4730 #. type: =item
4731 #: ../erlang/examples/guestfs-erlang.pod:63
4732 msgid "C<{error, Msg, Errno}>"
4733 msgstr ""
4734
4735 #. type: textblock
4736 #: ../erlang/examples/guestfs-erlang.pod:65
4737 msgid "This indicates an ordinary error from the function."
4738 msgstr ""
4739
4740 #. type: textblock
4741 #: ../erlang/examples/guestfs-erlang.pod:67
4742 msgid ""
4743 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4744 "(integer)."
4745 msgstr ""
4746
4747 #. type: textblock
4748 #: ../erlang/examples/guestfs-erlang.pod:70
4749 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4750 msgstr ""
4751
4752 #. type: =item
4753 #: ../erlang/examples/guestfs-erlang.pod:72
4754 msgid "C<{unknown, Function}>"
4755 msgstr ""
4756
4757 #. type: textblock
4758 #: ../erlang/examples/guestfs-erlang.pod:74
4759 msgid ""
4760 "This indicates that the function you called is not known.  Generally this "
4761 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4762 "which you should not do."
4763 msgstr ""
4764
4765 #. type: textblock
4766 #: ../erlang/examples/guestfs-erlang.pod:78
4767 msgid "C<Function> is the name of the unknown function."
4768 msgstr ""
4769
4770 #. type: =item
4771 #: ../erlang/examples/guestfs-erlang.pod:80
4772 msgid "C<{unknownarg, Arg}>"
4773 msgstr ""
4774
4775 #. type: textblock
4776 #: ../erlang/examples/guestfs-erlang.pod:82
4777 msgid ""
4778 "This indicates that you called a function with optional arguments, with an "
4779 "unknown argument name."
4780 msgstr ""
4781
4782 #. type: textblock
4783 #: ../erlang/examples/guestfs-erlang.pod:85
4784 msgid "C<Arg> is the name of the unknown argument."
4785 msgstr ""
4786
4787 #. type: =head1
4788 #: ../erlang/examples/guestfs-erlang.pod:89
4789 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4790 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4791 #: ../python/examples/guestfs-python.pod:34
4792 #: ../ruby/examples/guestfs-ruby.pod:28
4793 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4794 msgstr ""
4795
4796 #. type: textblock
4797 #: ../erlang/examples/guestfs-erlang.pod:91
4798 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4799 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4800 #: ../python/examples/guestfs-python.pod:36
4801 #: ../ruby/examples/guestfs-ruby.pod:30
4802 msgid "@EXAMPLE1@"
4803 msgstr ""
4804
4805 #. type: =head1
4806 #: ../erlang/examples/guestfs-erlang.pod:93
4807 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4808 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4809 #: ../python/examples/guestfs-python.pod:38
4810 #: ../ruby/examples/guestfs-ruby.pod:32
4811 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4812 msgstr ""
4813
4814 #. type: textblock
4815 #: ../erlang/examples/guestfs-erlang.pod:95
4816 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4817 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4818 #: ../python/examples/guestfs-python.pod:40
4819 #: ../ruby/examples/guestfs-ruby.pod:34
4820 msgid "@EXAMPLE2@"
4821 msgstr ""
4822
4823 #. type: textblock
4824 #: ../erlang/examples/guestfs-erlang.pod:99
4825 msgid ""
4826 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4827 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4828 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4829 msgstr ""
4830
4831 #. type: =head1
4832 #: ../erlang/examples/guestfs-erlang.pod:110
4833 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4834 #: ../examples/guestfs-testing.pod:298 ../fish/guestfish.pod:1296
4835 #: ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49
4836 #: ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51
4837 #: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:404
4838 #: ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91
4839 #: ../perl/examples/guestfs-perl.pod:52
4840 #: ../python/examples/guestfs-python.pod:54
4841 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3354
4842 #: ../test-tool/libguestfs-test-tool.pod:106
4843 msgid "AUTHORS"
4844 msgstr ""
4845
4846 #. type: textblock
4847 #: ../erlang/examples/guestfs-erlang.pod:112
4848 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4849 #: ../examples/guestfs-testing.pod:300 ../fish/guestfish.pod:1298
4850 #: ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51
4851 #: ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53
4852 #: ../fuse/guestmount.pod:330 ../java/examples/guestfs-java.pod:60
4853 #: ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54
4854 #: ../python/examples/guestfs-python.pod:56
4855 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3356
4856 #: ../test-tool/libguestfs-test-tool.pod:108
4857 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4858 msgstr ""
4859
4860 #. type: textblock
4861 #: ../erlang/examples/guestfs-erlang.pod:116
4862 #: ../examples/guestfs-testing.pod:304 ../java/examples/guestfs-java.pod:64
4863 #: ../perl/examples/guestfs-perl.pod:58
4864 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4865 msgstr ""
4866
4867 #. type: textblock
4868 #: ../erlang/examples/guestfs-erlang.pod:118
4869 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4870 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4871 #: ../perl/examples/guestfs-perl.pod:60
4872 #: ../python/examples/guestfs-python.pod:62
4873 #: ../ruby/examples/guestfs-ruby.pod:56
4874 msgid ""
4875 "The examples in this manual page may be freely copied, modified and "
4876 "distributed without any restrictions."
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../erlang/examples/guestfs-erlang.pod:121
4881 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4882 #: ../examples/guestfs-testing.pod:306 ../java/examples/guestfs-java.pod:69
4883 #: ../ocaml/examples/guestfs-ocaml.pod:102
4884 #: ../perl/examples/guestfs-perl.pod:63
4885 #: ../python/examples/guestfs-python.pod:65
4886 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3363
4887 msgid ""
4888 "This library is free software; you can redistribute it and/or modify it "
4889 "under the terms of the GNU Lesser General Public License as published by the "
4890 "Free Software Foundation; either version 2 of the License, or (at your "
4891 "option) any later version."
4892 msgstr ""
4893
4894 #. type: textblock
4895 #: ../erlang/examples/guestfs-erlang.pod:126
4896 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4897 #: ../examples/guestfs-testing.pod:311 ../java/examples/guestfs-java.pod:74
4898 #: ../ocaml/examples/guestfs-ocaml.pod:107
4899 #: ../perl/examples/guestfs-perl.pod:68
4900 #: ../python/examples/guestfs-python.pod:70
4901 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3368
4902 msgid ""
4903 "This library is distributed in the hope that it will be useful, but WITHOUT "
4904 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4905 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4906 "for more details."
4907 msgstr ""
4908
4909 #. type: textblock
4910 #: ../erlang/examples/guestfs-erlang.pod:131
4911 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4912 #: ../examples/guestfs-testing.pod:316 ../java/examples/guestfs-java.pod:79
4913 #: ../ocaml/examples/guestfs-ocaml.pod:112
4914 #: ../perl/examples/guestfs-perl.pod:73
4915 #: ../python/examples/guestfs-python.pod:75
4916 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3373
4917 msgid ""
4918 "You should have received a copy of the GNU Lesser General Public License "
4919 "along with this library; if not, write to the Free Software Foundation, "
4920 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4921 msgstr ""
4922
4923 #. type: textblock
4924 #: ../examples/guestfs-examples.pod:5
4925 msgid "guestfs-examples - Examples of using libguestfs from C"
4926 msgstr ""
4927
4928 #. type: verbatim
4929 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4930 #, no-wrap
4931 msgid ""
4932 " #include <guestfs.h>\n"
4933 " \n"
4934 msgstr "#include <guestfs.h>\n"
4935
4936 #. type: verbatim
4937 #: ../examples/guestfs-examples.pod:11
4938 #, no-wrap
4939 msgid ""
4940 " guestfs_h *g = guestfs_create ();\n"
4941 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4942 " guestfs_launch (g);\n"
4943 "\n"
4944 msgstr ""
4945
4946 #. type: verbatim
4947 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4948 #, no-wrap
4949 msgid ""
4950 " cc prog.c -o prog -lguestfs\n"
4951 "or:\n"
4952 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4953 "\n"
4954 msgstr ""
4955 " cc prog.c -o prog -lguestfs\n"
4956 "or:\n"
4957 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4958 "\n"
4959
4960 #. type: textblock
4961 #: ../examples/guestfs-examples.pod:21
4962 msgid ""
4963 "This manual page contains examples of calling libguestfs from the C "
4964 "programming language.  If you are not familiar with using libguestfs, you "
4965 "also need to read L<guestfs(3)>."
4966 msgstr ""
4967
4968 #. type: textblock
4969 #: ../examples/guestfs-examples.pod:35
4970 msgid ""
4971 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4972 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4973 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4974 msgstr ""
4975
4976 #. type: textblock
4977 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4978 #: ../python/examples/guestfs-python.pod:60
4979 #: ../ruby/examples/guestfs-ruby.pod:54
4980 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4981 msgstr ""
4982
4983 #. type: =end
4984 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4985 msgid "comment"
4986 msgstr ""
4987
4988 #. type: textblock
4989 #: ../examples/guestfs-recipes.pod:5
4990 msgid ""
4991 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4992 "here.  The only way which works for both sorts of output is to just write "
4993 "the URL directly.  Do NOT use L<...> for URLs."
4994 msgstr ""
4995
4996 #. type: textblock
4997 #: ../examples/guestfs-recipes.pod:9
4998 msgid ""
4999 "We break with tradition here and don't use ALL CAPS for the section "
5000 "headings, as this makes them much easier to read."
5001 msgstr ""
5002
5003 #. type: textblock
5004 #: ../examples/guestfs-recipes.pod:16
5005 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5006 msgstr ""
5007
5008 #. type: textblock
5009 #: ../examples/guestfs-recipes.pod:20
5010 msgid ""
5011 "This page contains recipes for and links to things you can do using "
5012 "libguestfs, L<guestfish(1)> and the virt tools."
5013 msgstr ""
5014
5015 #. type: =head1
5016 #: ../examples/guestfs-recipes.pod:23
5017 msgid "Audit a virtual machine for setuid files"
5018 msgstr ""
5019
5020 #. type: textblock
5021 #: ../examples/guestfs-recipes.pod:25
5022 msgid ""
5023 "The link below contains a small program which can be used to audit a Linux "
5024 "virtual machine to see what setuid and setgid files it contains."
5025 msgstr ""
5026
5027 #. type: textblock
5028 #: ../examples/guestfs-recipes.pod:28
5029 msgid ""
5030 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5031 "files/#content"
5032 msgstr ""
5033
5034 #. type: =head1
5035 #: ../examples/guestfs-recipes.pod:30
5036 msgid "Change the background image in a Windows XP VM"
5037 msgstr ""
5038
5039 #. type: textblock
5040 #: ../examples/guestfs-recipes.pod:32
5041 msgid ""
5042 "The links below explain how to use L<guestfish(1)> to change the background "
5043 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
5044 "be substantially different for each version of Windows."
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../examples/guestfs-recipes.pod:37
5049 msgid ""
5050 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5051 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5052 msgstr ""
5053
5054 #. type: =head1
5055 #: ../examples/guestfs-recipes.pod:40
5056 msgid "Cloning a virtual machine (Linux)"
5057 msgstr ""
5058
5059 #. type: textblock
5060 #: ../examples/guestfs-recipes.pod:42
5061 msgid ""
5062 "The guestfish technique described in the link below works well for most "
5063 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5064 "slightly."
5065 msgstr ""
5066
5067 #. type: textblock
5068 #: ../examples/guestfs-recipes.pod:46
5069 msgid ""
5070 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5071 "vm/#content"
5072 msgstr ""
5073
5074 #. type: textblock
5075 #: ../examples/guestfs-recipes.pod:48
5076 msgid ""
5077 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5078 "discussion."
5079 msgstr ""
5080
5081 #. type: textblock
5082 #: ../examples/guestfs-recipes.pod:51
5083 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5084 msgstr ""
5085
5086 #. type: =head1
5087 #: ../examples/guestfs-recipes.pod:53
5088 msgid "Cloning a virtual machine (Windows)"
5089 msgstr ""
5090
5091 #. type: textblock
5092 #: ../examples/guestfs-recipes.pod:55
5093 msgid ""
5094 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5095 "straightforward.  Currently there is code in the Aeolus Oz project which "
5096 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5097 "we may add sysprepping ability."
5098 msgstr ""
5099
5100 #. type: textblock
5101 #: ../examples/guestfs-recipes.pod:60
5102 msgid ""
5103 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5104 "list/2011-May/msg00019.html"
5105 msgstr ""
5106
5107 #. type: =head1
5108 #: ../examples/guestfs-recipes.pod:63
5109 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5110 msgstr ""
5111
5112 #. type: textblock
5113 #: ../examples/guestfs-recipes.pod:65
5114 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5115 msgstr ""
5116
5117 #. type: verbatim
5118 #: ../examples/guestfs-recipes.pod:67
5119 #, no-wrap
5120 msgid ""
5121 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5122 "\n"
5123 msgstr ""
5124
5125 #. type: textblock
5126 #: ../examples/guestfs-recipes.pod:69
5127 msgid "To export just a subdirectory, eg. C</files>, do:"
5128 msgstr ""
5129
5130 #. type: verbatim
5131 #: ../examples/guestfs-recipes.pod:71
5132 #, no-wrap
5133 msgid ""
5134 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5135 "\n"
5136 msgstr ""
5137
5138 #. type: =head1
5139 #: ../examples/guestfs-recipes.pod:73
5140 msgid "Create empty disk images"
5141 msgstr ""
5142
5143 #. type: textblock
5144 #: ../examples/guestfs-recipes.pod:75
5145 msgid ""
5146 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5147 "The useful guide below explains the options available."
5148 msgstr ""
5149
5150 #. type: textblock
5151 #: ../examples/guestfs-recipes.pod:78
5152 msgid ""
5153 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5154 "#content"
5155 msgstr ""
5156
5157 #. type: =head1
5158 #: ../examples/guestfs-recipes.pod:80
5159 msgid "Dump raw filesystem content from inside a disk image or VM"
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../examples/guestfs-recipes.pod:82
5164 msgid ""
5165 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5166 "filesystem content from any filesystem in a disk image or a VM (even one "
5167 "which is encrypted or buried inside an LV):"
5168 msgstr ""
5169
5170 #. type: verbatim
5171 #: ../examples/guestfs-recipes.pod:86
5172 #, no-wrap
5173 msgid ""
5174 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5175 "\n"
5176 msgstr ""
5177
5178 #. type: verbatim
5179 #: ../examples/guestfs-recipes.pod:88
5180 #, no-wrap
5181 msgid ""
5182 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5183 "\n"
5184 msgstr ""
5185
5186 #. type: textblock
5187 #: ../examples/guestfs-recipes.pod:90
5188 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5189 msgstr ""
5190
5191 #. type: =head1
5192 #: ../examples/guestfs-recipes.pod:92
5193 msgid "Edit grub configuration in a VM"
5194 msgstr ""
5195
5196 #. type: textblock
5197 #: ../examples/guestfs-recipes.pod:94
5198 msgid "You can use this to:"
5199 msgstr ""
5200
5201 #. type: textblock
5202 #: ../examples/guestfs-recipes.pod:100
5203 msgid "Fix a virtual machine that does not boot."
5204 msgstr ""
5205
5206 #. type: textblock
5207 #: ../examples/guestfs-recipes.pod:104
5208 msgid "Change which kernel is used to boot the VM."
5209 msgstr ""
5210
5211 #. type: textblock
5212 #: ../examples/guestfs-recipes.pod:108
5213 msgid "Change kernel command line options."
5214 msgstr ""
5215
5216 #. type: textblock
5217 #: ../examples/guestfs-recipes.pod:112
5218 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5219 msgstr ""
5220
5221 #. type: verbatim
5222 #: ../examples/guestfs-recipes.pod:114
5223 #, no-wrap
5224 msgid ""
5225 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5226 "\n"
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../examples/guestfs-recipes.pod:116
5231 msgid ""
5232 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5233 "this:"
5234 msgstr ""
5235
5236 #. type: verbatim
5237 #: ../examples/guestfs-recipes.pod:119
5238 #, no-wrap
5239 msgid ""
5240 " virt-rescue -d BrokenGuest\n"
5241 "\n"
5242 msgstr ""
5243
5244 #. type: =head1
5245 #: ../examples/guestfs-recipes.pod:121
5246 msgid "Export any directory from a VM"
5247 msgstr ""
5248
5249 #. type: textblock
5250 #: ../examples/guestfs-recipes.pod:123
5251 msgid ""
5252 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5253 msgstr ""
5254
5255 #. type: verbatim
5256 #: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93
5257 #, no-wrap
5258 msgid ""
5259 " virt-copy-out -d Guest /home .\n"
5260 "\n"
5261 msgstr ""
5262
5263 #. type: textblock
5264 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5265 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5266 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5267 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5268 #: ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685
5269 #: ../tools/virt-win-reg.pl:717
5270 msgid "Notes:"
5271 msgstr ""
5272
5273 #. type: textblock
5274 #: ../examples/guestfs-recipes.pod:134
5275 msgid ""
5276 "The final dot of the command is not a printing error.  It means we want to "
5277 "copy out to the current directory."
5278 msgstr ""
5279
5280 #. type: textblock
5281 #: ../examples/guestfs-recipes.pod:139
5282 msgid "This creates a directory called C<home> under the current directory."
5283 msgstr ""
5284
5285 #. type: textblock
5286 #: ../examples/guestfs-recipes.pod:143
5287 msgid ""
5288 "If the guest is a Windows guest then you can use drive letters and "
5289 "backslashes, but you must prefix the path with C<win:> and quote it to "
5290 "protect it from the shell, like this:"
5291 msgstr ""
5292
5293 #. type: verbatim
5294 #: ../examples/guestfs-recipes.pod:147
5295 #, no-wrap
5296 msgid ""
5297 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5298 "\n"
5299 msgstr ""
5300
5301 #. type: textblock
5302 #: ../examples/guestfs-recipes.pod:149
5303 msgid "To get the output as a compressed tarball, do:"
5304 msgstr ""
5305
5306 #. type: verbatim
5307 #: ../examples/guestfs-recipes.pod:151
5308 #, no-wrap
5309 msgid ""
5310 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5311 "\n"
5312 msgstr ""
5313
5314 #. type: textblock
5315 #: ../examples/guestfs-recipes.pod:153
5316 msgid ""
5317 "Although it sounds tempting, this is usually not a reliable way to get a "
5318 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5319 "org/FAQ.html#backup"
5320 msgstr ""
5321
5322 #. type: =head1
5323 #: ../examples/guestfs-recipes.pod:157
5324 msgid "Find out which user is using the most space"
5325 msgstr ""
5326
5327 #. type: textblock
5328 #: ../examples/guestfs-recipes.pod:159
5329 msgid ""
5330 "This simple script examines a Linux guest to find out which user is using "
5331 "the most space in their home directory:"
5332 msgstr ""
5333
5334 #. type: verbatim
5335 #: ../examples/guestfs-recipes.pod:162
5336 #, no-wrap
5337 msgid ""
5338 " #!/bin/sh -\n"
5339 " \n"
5340 msgstr ""
5341
5342 #. type: verbatim
5343 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5344 #, no-wrap
5345 msgid ""
5346 " set -e\n"
5347 " \n"
5348 msgstr ""
5349
5350 #. type: verbatim
5351 #: ../examples/guestfs-recipes.pod:166
5352 #, no-wrap
5353 msgid ""
5354 " vm=\"$1\"\n"
5355 " dir=/home\n"
5356 " \n"
5357 msgstr ""
5358
5359 #. type: verbatim
5360 #: ../examples/guestfs-recipes.pod:169
5361 #, no-wrap
5362 msgid ""
5363 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5364 " \n"
5365 msgstr ""
5366
5367 #. type: verbatim
5368 #: ../examples/guestfs-recipes.pod:171
5369 #, no-wrap
5370 msgid ""
5371 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5372 "     echo -n \"$dir/$d\"\n"
5373 "     echo -ne '\\t'\n"
5374 "     guestfish --remote du \"$dir/$d\";\n"
5375 " done | sort -nr -k 2\n"
5376 " \n"
5377 msgstr ""
5378
5379 #. type: verbatim
5380 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5381 #, no-wrap
5382 msgid ""
5383 " guestfish --remote exit\n"
5384 "\n"
5385 msgstr ""
5386
5387 #. type: =head1
5388 #: ../examples/guestfs-recipes.pod:179
5389 msgid "Get DHCP address from a VM"
5390 msgstr ""
5391
5392 #. type: textblock
5393 #: ../examples/guestfs-recipes.pod:181
5394 msgid ""
5395 "The link below explains the many different possible techniques for getting "
5396 "the last assigned DHCP address of a virtual machine."
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../examples/guestfs-recipes.pod:184
5401 msgid ""
5402 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5403 "a-virtual-machine-disk-image/#content"
5404 msgstr ""
5405
5406 #. type: textblock
5407 #: ../examples/guestfs-recipes.pod:186
5408 msgid ""
5409 "In the libguestfs source examples directory you will find the latest version "
5410 "of the C<virt-dhcp-address.c> program."
5411 msgstr ""
5412
5413 #. type: =head1
5414 #: ../examples/guestfs-recipes.pod:189
5415 msgid "Get the operating system product name string"
5416 msgstr ""
5417
5418 #. type: textblock
5419 #: ../examples/guestfs-recipes.pod:191
5420 msgid "Save the following script into a file called C<product-name.sh>:"
5421 msgstr ""
5422
5423 #. type: verbatim
5424 #: ../examples/guestfs-recipes.pod:193
5425 #, no-wrap
5426 msgid ""
5427 " #!/bin/sh -\n"
5428 " set -e\n"
5429 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5430 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5431 " guestfish --remote inspect-get-product-name \"$root\"\n"
5432 " guestfish --remote exit\n"
5433 "\n"
5434 msgstr ""
5435
5436 #. type: textblock
5437 #: ../examples/guestfs-recipes.pod:200
5438 msgid "Make the script executable and run it on a named guest:"
5439 msgstr ""
5440
5441 #. type: verbatim
5442 #: ../examples/guestfs-recipes.pod:202
5443 #, no-wrap
5444 msgid ""
5445 " # product-name.sh RHEL60x64\n"
5446 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5447 "\n"
5448 msgstr ""
5449
5450 #. type: textblock
5451 #: ../examples/guestfs-recipes.pod:205
5452 msgid ""
5453 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5454 "C<xpath> command line tool or from your favourite programming language:"
5455 msgstr ""
5456
5457 #. type: verbatim
5458 #: ../examples/guestfs-recipes.pod:209
5459 #, no-wrap
5460 msgid ""
5461 " # virt-inspector RHEL60x64 > xml\n"
5462 " # xpath '//product_name' < xml\n"
5463 " Found 1 nodes:\n"
5464 " -- NODE --\n"
5465 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5466 "\n"
5467 msgstr ""
5468
5469 #. type: =head1
5470 #: ../examples/guestfs-recipes.pod:215
5471 msgid "Get the default boot kernel for a Linux VM"
5472 msgstr ""
5473
5474 #. type: textblock
5475 #: ../examples/guestfs-recipes.pod:217
5476 msgid ""
5477 "The link below contains a program to print the default boot kernel for a "
5478 "Linux VM."
5479 msgstr ""
5480
5481 #. type: textblock
5482 #: ../examples/guestfs-recipes.pod:220
5483 msgid ""
5484 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5485 "kernel-for-a-vm/#content"
5486 msgstr ""
5487
5488 #. type: textblock
5489 #: ../examples/guestfs-recipes.pod:222
5490 msgid ""
5491 "It uses Augeas, and the technique is generally applicable for many different "
5492 "tasks, such as:"
5493 msgstr ""
5494
5495 #. type: textblock
5496 #: ../examples/guestfs-recipes.pod:229
5497 msgid "listing the user accounts in the guest"
5498 msgstr ""
5499
5500 #. type: textblock
5501 #: ../examples/guestfs-recipes.pod:233
5502 msgid "what repositories is it configured to use"
5503 msgstr ""
5504
5505 #. type: textblock
5506 #: ../examples/guestfs-recipes.pod:237
5507 msgid "what NTP servers does it connect to"
5508 msgstr ""
5509
5510 #. type: textblock
5511 #: ../examples/guestfs-recipes.pod:241
5512 msgid "what were the boot messages last time it booted"
5513 msgstr ""
5514
5515 #. type: textblock
5516 #: ../examples/guestfs-recipes.pod:245
5517 msgid "listing who was logged in recently"
5518 msgstr ""
5519
5520 #. type: textblock
5521 #: ../examples/guestfs-recipes.pod:249
5522 msgid "http://augeas.net/"
5523 msgstr ""
5524
5525 #. type: =head1
5526 #: ../examples/guestfs-recipes.pod:251
5527 msgid "Install RPMs in a guest"
5528 msgstr ""
5529
5530 #. type: textblock
5531 #: ../examples/guestfs-recipes.pod:253
5532 msgid ""
5533 "The link below contains a method to install RPMs in a guest.  In fact the "
5534 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5535 "installs them next time the guest is booted.  You could use this technique "
5536 "to install vital security updates in an offline guest."
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../examples/guestfs-recipes.pod:259
5541 msgid ""
5542 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5543 msgstr ""
5544
5545 #. type: =head1
5546 #: ../examples/guestfs-recipes.pod:261
5547 msgid "List applications installed in a VM"
5548 msgstr ""
5549
5550 #. type: textblock
5551 #: ../examples/guestfs-recipes.pod:263
5552 msgid "Save the following to a file C<list-apps.sh>:"
5553 msgstr ""
5554
5555 #. type: verbatim
5556 #: ../examples/guestfs-recipes.pod:265
5557 #, no-wrap
5558 msgid ""
5559 " #!/bin/sh -\n"
5560 " set -e\n"
5561 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5562 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5563 " guestfish --remote inspect-list-applications \"$root\"\n"
5564 " guestfish --remote exit\n"
5565 "\n"
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../examples/guestfs-recipes.pod:272
5570 msgid ""
5571 "Make the file executable and then you can run it on any named virtual "
5572 "machine:"
5573 msgstr ""
5574
5575 #. type: verbatim
5576 #: ../examples/guestfs-recipes.pod:275
5577 #, no-wrap
5578 msgid ""
5579 " # list-apps.sh WinGuest\n"
5580 " [0] = {\n"
5581 "   app_name: Mozilla Firefox (3.6.12)\n"
5582 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5583 "   app_epoch: 0\n"
5584 "   app_version: 3.6.12 (en-GB)\n"
5585 "   app_release:\n"
5586 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5587 "   app_trans_path:\n"
5588 "   app_publisher: Mozilla\n"
5589 "   app_url: http://www.mozilla.com/en-GB/\n"
5590 "   app_source_package:\n"
5591 "   app_summary:\n"
5592 "   app_description: Mozilla Firefox\n"
5593 " }\n"
5594 " [1] = {\n"
5595 "   app_name: VLC media player\n"
5596 "   app_display_name: VLC media player 1.1.5\n"
5597 "   app_epoch: 0\n"
5598 "   app_version: 1.1.5\n"
5599 "   app_release:\n"
5600 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5601 "   app_trans_path:\n"
5602 "   app_publisher: VideoLAN\n"
5603 "   app_url: http://www.videolan.org/\n"
5604 "   app_source_package:\n"
5605 "   app_summary:\n"
5606 "   app_description:\n"
5607 " }\n"
5608 "\n"
5609 msgstr ""
5610
5611 #. type: textblock
5612 #: ../examples/guestfs-recipes.pod:305
5613 msgid ""
5614 "If you want to run the script on disk images (instead of libvirt virtual "
5615 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5616 ">."
5617 msgstr ""
5618
5619 #. type: =head1
5620 #: ../examples/guestfs-recipes.pod:309
5621 msgid "List files and directories in a VM"
5622 msgstr ""
5623
5624 #. type: textblock
5625 #: ../examples/guestfs-recipes.pod:311
5626 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5627 msgstr ""
5628
5629 #. type: verbatim
5630 #: ../examples/guestfs-recipes.pod:313
5631 #, no-wrap
5632 msgid ""
5633 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5634 "\n"
5635 msgstr ""
5636
5637 #. type: =head1
5638 #: ../examples/guestfs-recipes.pod:315
5639 msgid "List services in a Windows VM"
5640 msgstr ""
5641
5642 #. type: textblock
5643 #: ../examples/guestfs-recipes.pod:317
5644 msgid ""
5645 "The link below contains a script that can be used to list out the services "
5646 "from a Windows VM, and whether those services run at boot time or are loaded "
5647 "on demand."
5648 msgstr ""
5649
5650 #. type: textblock
5651 #: ../examples/guestfs-recipes.pod:321
5652 msgid ""
5653 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5654 "#content"
5655 msgstr ""
5656
5657 #. type: =head1
5658 #: ../examples/guestfs-recipes.pod:323
5659 msgid "Make a disk image sparse"
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../examples/guestfs-recipes.pod:325
5664 msgid ""
5665 "The link below contains some guides for making a disk image sparse (or "
5666 "reintroducing sparseness)."
5667 msgstr ""
5668
5669 #. type: textblock
5670 #: ../examples/guestfs-recipes.pod:328
5671 msgid ""
5672 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5673 msgstr ""
5674
5675 #. type: =head1
5676 #: ../examples/guestfs-recipes.pod:330
5677 msgid "Monitor disk usage over time"
5678 msgstr ""
5679
5680 #. type: textblock
5681 #: ../examples/guestfs-recipes.pod:332
5682 msgid ""
5683 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5684 "The link below contains a guide."
5685 msgstr ""
5686
5687 #. type: textblock
5688 #: ../examples/guestfs-recipes.pod:335
5689 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5690 msgstr ""
5691
5692 #. type: =head1
5693 #: ../examples/guestfs-recipes.pod:337
5694 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5695 msgstr ""
5696
5697 #. type: textblock
5698 #: ../examples/guestfs-recipes.pod:339
5699 msgid ""
5700 "L<guestfish(1)> plus the tools described in the link below can be used to "
5701 "read out the Windows Event Log from any virtual machine running Windows "
5702 "Vista or a later version."
5703 msgstr ""
5704
5705 #. type: textblock
5706 #: ../examples/guestfs-recipes.pod:343
5707 msgid ""
5708 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5709 "guestfish/#content"
5710 msgstr ""
5711
5712 #. type: =head1
5713 #: ../examples/guestfs-recipes.pod:345
5714 msgid "Remove root password (Linux)"
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../examples/guestfs-recipes.pod:347
5719 msgid ""
5720 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5721 "files.  One use is to remove the root password from a Linux guest:"
5722 msgstr ""
5723
5724 #. type: verbatim
5725 #: ../examples/guestfs-recipes.pod:350
5726 #, no-wrap
5727 msgid ""
5728 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5729 "\n"
5730 msgstr ""
5731
5732 #. type: =head1
5733 #: ../examples/guestfs-recipes.pod:352
5734 msgid "Remove Administrator password (Windows)"
5735 msgstr ""
5736
5737 #. type: textblock
5738 #: ../examples/guestfs-recipes.pod:354
5739 msgid ""
5740 "The link below contains one technique for removing the Administrator "
5741 "password from a Windows VM, or to be more precise, it gives you a command "
5742 "prompt the next time you log in which you can use to bypass any security:"
5743 msgstr ""
5744
5745 #. type: textblock
5746 #: ../examples/guestfs-recipes.pod:359
5747 msgid ""
5748 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5749 "administrator-password-with-guestfish/"
5750 msgstr ""
5751
5752 #. type: =head1
5753 #: ../examples/guestfs-recipes.pod:361
5754 msgid "Unpack a live CD"
5755 msgstr ""
5756
5757 #. type: textblock
5758 #: ../examples/guestfs-recipes.pod:363
5759 msgid ""
5760 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5761 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5762 "layers, as outlined in the guide below."
5763 msgstr ""
5764
5765 #. type: textblock
5766 #: ../examples/guestfs-recipes.pod:367
5767 msgid ""
5768 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5769 "cd/#content"
5770 msgstr ""
5771
5772 #. type: =head1
5773 #: ../examples/guestfs-recipes.pod:369
5774 msgid "Uploading and downloading files"
5775 msgstr ""
5776
5777 #. type: textblock
5778 #: ../examples/guestfs-recipes.pod:371
5779 msgid ""
5780 "The link below contains general tips on uploading (copying in)  and "
5781 "downloading (copying out) files from VMs."
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../examples/guestfs-recipes.pod:374
5786 msgid ""
5787 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5788 msgstr ""
5789
5790 #. type: =head1
5791 #: ../examples/guestfs-recipes.pod:376
5792 msgid "Use libguestfs tools on VMware ESX guests"
5793 msgstr ""
5794
5795 #. type: textblock
5796 #: ../examples/guestfs-recipes.pod:378
5797 msgid ""
5798 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5799 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5800 msgstr ""
5801
5802 #. type: textblock
5803 #: ../examples/guestfs-recipes.pod:382
5804 msgid ""
5805 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5806 "guests/#content"
5807 msgstr ""
5808
5809 #. type: textblock
5810 #: ../examples/guestfs-recipes.pod:386
5811 msgid ""
5812 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5813 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5814 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5815 msgstr ""
5816
5817 #. type: textblock
5818 #: ../examples/guestfs-recipes.pod:403
5819 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5820 msgstr ""
5821
5822 #. type: textblock
5823 #: ../examples/guestfs-testing.pod:5
5824 msgid "guestfs-testing - manual testing of libguestfs, you can help!"
5825 msgstr ""
5826
5827 #. type: textblock
5828 #: ../examples/guestfs-testing.pod:9
5829 msgid ""
5830 "This page has manual tests you can try on libguestfs.  Everyone has a "
5831 "slightly different combination of platform, hardware and guests, so this "
5832 "testing is very valuable.  Thanks for helping out!"
5833 msgstr ""
5834
5835 #. type: textblock
5836 #: ../examples/guestfs-testing.pod:13
5837 msgid "These tests require libguestfs E<ge> 1.14."
5838 msgstr ""
5839
5840 #. type: textblock
5841 #: ../examples/guestfs-testing.pod:15
5842 msgid ""
5843 "Tests marked with a B<*> (asterisk) can B<destroy data> if you're not "
5844 "careful.  The others are safe and won't modify anything."
5845 msgstr ""
5846
5847 #. type: textblock
5848 #: ../examples/guestfs-testing.pod:18
5849 msgid "You can report bugs you find through this link:"
5850 msgstr ""
5851
5852 #. type: textblock
5853 #: ../examples/guestfs-testing.pod:20
5854 msgid ""
5855 "https://bugzilla.redhat.com/enter_bug.cgi?"
5856 "component=libguestfs&product=Virtualization+Tools"
5857 msgstr ""
5858
5859 #. type: textblock
5860 #: ../examples/guestfs-testing.pod:22
5861 msgid ""
5862 "or post on the mailing list (registration is B<not> required, but if you're "
5863 "not registered then you'll have to wait for a moderator to manually approve "
5864 "your message):"
5865 msgstr ""
5866
5867 #. type: textblock
5868 #: ../examples/guestfs-testing.pod:26
5869 msgid "https://www.redhat.com/mailman/listinfo/libguestfs"
5870 msgstr ""
5871
5872 #. type: =head1
5873 #: ../examples/guestfs-testing.pod:28
5874 msgid "TESTS"
5875 msgstr ""
5876
5877 #. type: =head2
5878 #: ../examples/guestfs-testing.pod:30
5879 msgid "Check KVM acceleration is being used."
5880 msgstr ""
5881
5882 #. type: textblock
5883 #: ../examples/guestfs-testing.pod:32
5884 msgid ""
5885 "If your host has hardware virt acceleration, then with a hot cache "
5886 "libguestfs should be able to start up in a few seconds.  Run the following "
5887 "command a few times:"
5888 msgstr ""
5889
5890 #. type: verbatim
5891 #: ../examples/guestfs-testing.pod:36
5892 #, no-wrap
5893 msgid ""
5894 " time guestfish -a /dev/null run\n"
5895 "\n"
5896 msgstr ""
5897
5898 #. type: textblock
5899 #: ../examples/guestfs-testing.pod:38
5900 msgid ""
5901 "After a few runs, the time should settle down to a few seconds (under 5 "
5902 "seconds on fast 64 bit hardware)."
5903 msgstr ""
5904
5905 #. type: textblock
5906 #: ../examples/guestfs-testing.pod:41
5907 msgid "How to check for hardware virt:"
5908 msgstr ""
5909
5910 #. type: textblock
5911 #: ../examples/guestfs-testing.pod:43
5912 msgid "http://virt-tools.org/learning/check-hardware-virt/"
5913 msgstr ""
5914
5915 #. type: textblock
5916 #: ../examples/guestfs-testing.pod:45
5917 msgid ""
5918 "If the command above does not work at all, use L<libguestfs-test-tool(1)>."
5919 msgstr ""
5920
5921 #. type: =head2
5922 #: ../examples/guestfs-testing.pod:48
5923 msgid "Run virt-alignment-scan on all your guests."
5924 msgstr ""
5925
5926 #. type: textblock
5927 #: ../examples/guestfs-testing.pod:50
5928 msgid "Run L<virt-alignment-scan(1)> on guests or disk images:"
5929 msgstr ""
5930
5931 #. type: verbatim
5932 #: ../examples/guestfs-testing.pod:52
5933 #, no-wrap
5934 msgid ""
5935 " virt-alignment-scan -a /path/to/disk.img\n"
5936 "\n"
5937 msgstr ""
5938
5939 #. type: textblock
5940 #: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:161
5941 #: ../examples/guestfs-testing.pod:174 ../examples/guestfs-testing.pod:234
5942 #: ../src/guestfs.pod:2792
5943 msgid "or:"
5944 msgstr ""
5945
5946 #. type: verbatim
5947 #: ../examples/guestfs-testing.pod:56
5948 #, no-wrap
5949 msgid ""
5950 " virt-alignment-scan -d Guest\n"
5951 "\n"
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../examples/guestfs-testing.pod:58
5956 msgid "Does the alignment report match how the guest partitions are aligned?"
5957 msgstr ""
5958
5959 #. type: =head2
5960 #: ../examples/guestfs-testing.pod:60
5961 msgid "Run virt-cat on some files in guests."
5962 msgstr ""
5963
5964 #. type: textblock
5965 #: ../examples/guestfs-testing.pod:62
5966 msgid "L<virt-cat(1)> can display files from guests.  For a Linux guest, try:"
5967 msgstr ""
5968
5969 #. type: verbatim
5970 #: ../examples/guestfs-testing.pod:64
5971 #, no-wrap
5972 msgid ""
5973 " virt-cat LinuxGuest /etc/passwd\n"
5974 "\n"
5975 msgstr ""
5976
5977 #. type: textblock
5978 #: ../examples/guestfs-testing.pod:66
5979 msgid "A recent feature is support for Windows paths, for example:"
5980 msgstr ""
5981
5982 #. type: verbatim
5983 #: ../examples/guestfs-testing.pod:68
5984 #, no-wrap
5985 msgid ""
5986 " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
5987 "\n"
5988 msgstr ""
5989
5990 #. type: textblock
5991 #: ../examples/guestfs-testing.pod:70
5992 msgid ""
5993 "An even better test is if you have a Windows guest with multiple drives.  Do "
5994 "C<D:>, C<E:> etc paths work correctly?"
5995 msgstr ""
5996
5997 #. type: =head2
5998 #: ../examples/guestfs-testing.pod:73
5999 msgid "B<*> Copy some files into a B<shut off> guest."
6000 msgstr ""
6001
6002 #. type: textblock
6003 #: ../examples/guestfs-testing.pod:75
6004 msgid ""
6005 "L<virt-copy-in(1)> can recursively copy files and directories into a guest "
6006 "or disk image."
6007 msgstr ""
6008
6009 #. type: verbatim
6010 #: ../examples/guestfs-testing.pod:78
6011 #, no-wrap
6012 msgid ""
6013 " virt-copy-in -d Guest /etc /tmp\n"
6014 "\n"
6015 msgstr ""
6016
6017 #. type: textblock
6018 #: ../examples/guestfs-testing.pod:80
6019 msgid ""
6020 "This should copy local directory C</etc> to C</tmp/etc> in the guest "
6021 "(recursively).  If you boot the guest, can you see all of the copied files "
6022 "and directories?"
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../examples/guestfs-testing.pod:84
6027 msgid "Shut the guest down and try copying multiple files and directories:"
6028 msgstr ""
6029
6030 #. type: verbatim
6031 #: ../examples/guestfs-testing.pod:86
6032 #, no-wrap
6033 msgid ""
6034 " virt-copy-in -d Guest /home /etc/issue /tmp\n"
6035 "\n"
6036 msgstr ""
6037
6038 #. type: =head2
6039 #: ../examples/guestfs-testing.pod:88
6040 msgid "Copy some files out of a guest."
6041 msgstr ""
6042
6043 #. type: textblock
6044 #: ../examples/guestfs-testing.pod:90
6045 msgid ""
6046 "L<virt-copy-out(1)> can recursively copy files and directories out of a "
6047 "guest or disk image."
6048 msgstr ""
6049
6050 #. type: textblock
6051 #: ../examples/guestfs-testing.pod:95
6052 msgid "Note the final space and period in the command is not a typo."
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../examples/guestfs-testing.pod:97
6057 msgid "This should copy C</home> from the guest into the current directory."
6058 msgstr ""
6059
6060 #. type: =head2
6061 #: ../examples/guestfs-testing.pod:99
6062 msgid "Run virt-df."
6063 msgstr ""
6064
6065 #. type: textblock
6066 #: ../examples/guestfs-testing.pod:101
6067 msgid "L<virt-df(1)> lists disk space.  Run:"
6068 msgstr ""
6069
6070 #. type: verbatim
6071 #: ../examples/guestfs-testing.pod:103
6072 #, no-wrap
6073 msgid ""
6074 " virt-df\n"
6075 "\n"
6076 msgstr ""
6077
6078 #. type: textblock
6079 #: ../examples/guestfs-testing.pod:105
6080 msgid ""
6081 "You can try comparing this to the results from L<df(1)> inside the guest, "
6082 "but there are some provisos:"
6083 msgstr ""
6084
6085 #. type: textblock
6086 #: ../examples/guestfs-testing.pod:112
6087 msgid "The guest must be idle."
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../examples/guestfs-testing.pod:116
6092 msgid "The guest disks must be synched using L<sync(1)>."
6093 msgstr ""
6094
6095 #. type: textblock
6096 #: ../examples/guestfs-testing.pod:120
6097 msgid ""
6098 "Any action such as booting the guest will write log files causing the "
6099 "numbers to change."
6100 msgstr ""
6101
6102 #. type: textblock
6103 #: ../examples/guestfs-testing.pod:125
6104 msgid ""
6105 "We don't guarantee that the numbers will be identical even under these "
6106 "circumstances.  They should be similar.  It would indicate a bug if you saw "
6107 "greatly differing numbers."
6108 msgstr ""
6109
6110 #. type: =head2
6111 #: ../examples/guestfs-testing.pod:129
6112 msgid "Try importing virt-df CSV output into a spreadsheet or database."
6113 msgstr ""
6114
6115 #. type: textblock
6116 #: ../examples/guestfs-testing.pod:131 ../src/guestfs.pod:3088
6117 msgid "Run:"
6118 msgstr ""
6119
6120 #. type: verbatim
6121 #: ../examples/guestfs-testing.pod:133
6122 #, no-wrap
6123 msgid ""
6124 " virt-df --csv > /tmp/report.csv\n"
6125 "\n"
6126 msgstr ""
6127
6128 #. type: textblock
6129 #: ../examples/guestfs-testing.pod:135
6130 msgid ""
6131 "Now try to load this into your favorite spreadsheet or database.  Are the "
6132 "results reproduced faithfully in the spreadsheet/database?"
6133 msgstr ""
6134
6135 #. type: textblock
6136 #: ../examples/guestfs-testing.pod:138
6137 msgid ""
6138 "http://www.postgresql.org/docs/8.1/static/sql-copy.html http://dev.mysql.com/"
6139 "doc/refman/5.1/en/load-data.html"
6140 msgstr ""
6141
6142 #. type: =head2
6143 #: ../examples/guestfs-testing.pod:141
6144 msgid "B<*> Edit a file in a B<shut off> guest."
6145 msgstr ""
6146
6147 #. type: textblock
6148 #: ../examples/guestfs-testing.pod:143
6149 msgid ""
6150 "L<virt-edit(1)> can edit files in guests.  Try this command on a RHEL or "
6151 "Fedora guest:"
6152 msgstr ""
6153
6154 #. type: verbatim
6155 #: ../examples/guestfs-testing.pod:146
6156 #, no-wrap
6157 msgid ""
6158 " virt-edit LinuxGuest /etc/sysconfig/network\n"
6159 "\n"
6160 msgstr ""
6161
6162 #. type: textblock
6163 #: ../examples/guestfs-testing.pod:148
6164 msgid "On other Linux guests try editing other files such as:"
6165 msgstr ""
6166
6167 #. type: verbatim
6168 #: ../examples/guestfs-testing.pod:150
6169 #, no-wrap
6170 msgid ""
6171 " virt-edit LinuxGuest /etc/motd\n"
6172 "\n"
6173 msgstr ""
6174
6175 #. type: textblock
6176 #: ../examples/guestfs-testing.pod:152
6177 msgid "Are the changes seen inside the guest when it is booted?"
6178 msgstr ""
6179
6180 #. type: =head2
6181 #: ../examples/guestfs-testing.pod:154
6182 msgid "Display the filesystems / partitions / LVs in a guest."
6183 msgstr ""
6184
6185 #. type: textblock
6186 #: ../examples/guestfs-testing.pod:156
6187 msgid ""
6188 "L<virt-filesystems(1)> can be used to display filesystems in a guest.  Try "
6189 "this command on any disk image or guest:"
6190 msgstr ""
6191
6192 #. type: verbatim
6193 #: ../examples/guestfs-testing.pod:159
6194 #, no-wrap
6195 msgid ""
6196 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
6197 "\n"
6198 msgstr ""
6199
6200 #. type: verbatim
6201 #: ../examples/guestfs-testing.pod:163
6202 #, no-wrap
6203 msgid ""
6204 " virt-filesystems -d Guest --all --long -h\n"
6205 "\n"
6206 msgstr ""
6207
6208 #. type: textblock
6209 #: ../examples/guestfs-testing.pod:165
6210 msgid "Do the results match what is seen in the guest?"
6211 msgstr ""
6212
6213 #. type: =head2
6214 #: ../examples/guestfs-testing.pod:167
6215 msgid "Run virt-inspector on all your guests."
6216 msgstr ""
6217
6218 #. type: textblock
6219 #: ../examples/guestfs-testing.pod:169
6220 msgid ""
6221 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
6222 "images:"
6223 msgstr ""
6224
6225 #. type: verbatim
6226 #: ../examples/guestfs-testing.pod:172
6227 #, no-wrap
6228 msgid ""
6229 " virt-inspector -a /path/to/disk.img | less\n"
6230 "\n"
6231 msgstr ""
6232
6233 #. type: verbatim
6234 #: ../examples/guestfs-testing.pod:176
6235 #, no-wrap
6236 msgid ""
6237 " virt-inspector -d Guest | less\n"
6238 "\n"
6239 msgstr ""
6240
6241 #. type: textblock
6242 #: ../examples/guestfs-testing.pod:178
6243 msgid "Do the results match what is actually in the guest?"
6244 msgstr ""
6245
6246 #. type: =head2
6247 #: ../examples/guestfs-testing.pod:180
6248 msgid "Try the auditing features of virt-ls on all your guests."
6249 msgstr ""
6250
6251 #. type: verbatim
6252 #: ../examples/guestfs-testing.pod:184
6253 #, no-wrap
6254 msgid ""
6255 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
6256 "\n"
6257 msgstr ""
6258
6259 #. type: verbatim
6260 #: ../examples/guestfs-testing.pod:188
6261 #, no-wrap
6262 msgid ""
6263 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
6264 "\n"
6265 msgstr ""
6266
6267 #. type: verbatim
6268 #: ../examples/guestfs-testing.pod:192
6269 #, no-wrap
6270 msgid ""
6271 " virt-ls -lR -d Guest / | grep '^s'\n"
6272 "\n"
6273 msgstr ""
6274
6275 #. type: verbatim
6276 #: ../examples/guestfs-testing.pod:196
6277 #, no-wrap
6278 msgid ""
6279 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
6280 "\n"
6281 msgstr ""
6282
6283 #. type: textblock
6284 #: ../examples/guestfs-testing.pod:198
6285 msgid "Display files larger than 10MB in home directories:"
6286 msgstr ""
6287
6288 #. type: verbatim
6289 #: ../examples/guestfs-testing.pod:200
6290 #, no-wrap
6291 msgid ""
6292 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
6293 "\n"
6294 msgstr ""
6295
6296 #. type: verbatim
6297 #: ../examples/guestfs-testing.pod:204
6298 #, no-wrap
6299 msgid ""
6300 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
6301 "\n"
6302 msgstr ""
6303
6304 #. type: verbatim
6305 #: ../examples/guestfs-testing.pod:208
6306 #, no-wrap
6307 msgid ""
6308 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
6309 "\n"
6310 msgstr ""
6311
6312 #. type: textblock
6313 #: ../examples/guestfs-testing.pod:210
6314 msgid "Do the results match what is in the guest?"
6315 msgstr ""
6316
6317 #. type: =head2
6318 #: ../examples/guestfs-testing.pod:212
6319 msgid "Create a disk image from a tarball."
6320 msgstr ""
6321
6322 #. type: textblock
6323 #: ../examples/guestfs-testing.pod:214
6324 msgid ""
6325 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
6326 "happen to have:"
6327 msgstr ""
6328
6329 #. type: verbatim
6330 #: ../examples/guestfs-testing.pod:217
6331 #, no-wrap
6332 msgid ""
6333 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
6334 "\n"
6335 msgstr ""
6336
6337 #. type: textblock
6338 #: ../examples/guestfs-testing.pod:219
6339 msgid ""
6340 "Add 'output.img' as a raw disk to an existing guest.  Check the guest can "
6341 "see the files.  This test is particularly useful if you try it with a "
6342 "Windows guest."
6343 msgstr ""
6344
6345 #. type: textblock
6346 #: ../examples/guestfs-testing.pod:223
6347 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
6348 msgstr ""
6349
6350 #. type: textblock
6351 #: ../examples/guestfs-testing.pod:225
6352 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
6353 msgstr ""
6354
6355 #. type: =head2
6356 #: ../examples/guestfs-testing.pod:227
6357 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
6358 msgstr ""
6359
6360 #. type: textblock
6361 #: ../examples/guestfs-testing.pod:229
6362 msgid ""
6363 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
6364 "disk image:"
6365 msgstr ""
6366
6367 #. type: verbatim
6368 #: ../examples/guestfs-testing.pod:232
6369 #, no-wrap
6370 msgid ""
6371 " virt-rescue -a /path/to/disk.img\n"
6372 "\n"
6373 msgstr ""
6374
6375 #. type: verbatim
6376 #: ../examples/guestfs-testing.pod:236
6377 #, no-wrap
6378 msgid ""
6379 " virt-rescue -d Guest\n"
6380 "\n"
6381 msgstr ""
6382
6383 #. type: textblock
6384 #: ../examples/guestfs-testing.pod:238
6385 msgid "Can you use ordinary shell commands to examine the guest?"
6386 msgstr ""
6387
6388 #. type: =head2
6389 #: ../examples/guestfs-testing.pod:240
6390 msgid "B<*> Resize your guests."
6391 msgstr ""
6392
6393 #. type: textblock
6394 #: ../examples/guestfs-testing.pod:242
6395 msgid ""
6396 "Use L<virt-resize(1)> to give a guest some more disk space.  For example, if "
6397 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
6398 msgstr ""
6399
6400 #. type: verbatim
6401 #: ../examples/guestfs-testing.pod:246
6402 #, no-wrap
6403 msgid ""
6404 " truncate -s 30G newdisk.img\n"
6405 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
6406 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
6407 " qemu-kvm -m 1024 -hda newdisk.img\n"
6408 "\n"
6409 msgstr ""
6410
6411 #. type: textblock
6412 #: ../examples/guestfs-testing.pod:251
6413 msgid "Does the guest still boot? Try expanding other partitions."
6414 msgstr ""
6415
6416 #. type: =head2
6417 #: ../examples/guestfs-testing.pod:253
6418 msgid "B<*> Sparsify a guest disk."
6419 msgstr ""
6420
6421 #. type: textblock
6422 #: ../examples/guestfs-testing.pod:255
6423 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
6424 msgstr ""
6425
6426 #. type: verbatim
6427 #: ../examples/guestfs-testing.pod:257
6428 #, no-wrap
6429 msgid ""
6430 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
6431 "\n"
6432 msgstr ""
6433
6434 #. type: textblock
6435 #: ../examples/guestfs-testing.pod:259
6436 msgid ""
6437 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
6438 "image smaller (use C<du> to check)?"
6439 msgstr ""
6440
6441 #. type: =head2
6442 #: ../examples/guestfs-testing.pod:262
6443 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../examples/guestfs-testing.pod:264
6448 msgid ""
6449 "Note that this really will mess up an existing guest, so it's better to "
6450 "clone the guest before trying this."
6451 msgstr ""
6452
6453 #. type: verbatim
6454 #: ../examples/guestfs-testing.pod:267
6455 #, no-wrap
6456 msgid ""
6457 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
6458 "\n"
6459 msgstr ""
6460
6461 #. type: textblock
6462 #: ../examples/guestfs-testing.pod:269
6463 msgid ""
6464 "Was the sysprep successful? After booting, what changes were made and were "
6465 "they successful?"
6466 msgstr ""
6467
6468 #. type: =head2
6469 #: ../examples/guestfs-testing.pod:272
6470 msgid "Dump the Windows Registry from your Windows guests."
6471 msgstr ""
6472
6473 #. type: textblock
6474 #: ../examples/guestfs-testing.pod:274
6475 msgid ""
6476 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
6477 "guests that you have."
6478 msgstr ""
6479
6480 #. type: verbatim
6481 #: ../examples/guestfs-testing.pod:277
6482 #, no-wrap
6483 msgid ""
6484 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
6485 "   less\n"
6486 "\n"
6487 msgstr ""
6488
6489 #. type: verbatim
6490 #: ../examples/guestfs-testing.pod:280
6491 #, no-wrap
6492 msgid ""
6493 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
6494 "   less\n"
6495 "\n"
6496 msgstr ""
6497
6498 #. type: textblock
6499 #: ../examples/guestfs-testing.pod:283
6500 msgid "Does the output match running C<regedit> inside the guest?"
6501 msgstr ""
6502
6503 #. type: textblock
6504 #: ../examples/guestfs-testing.pod:285
6505 msgid ""
6506 "A recent feature is the ability to dump user registries, so try this, "
6507 "replacing I<username> with the name of a local user in the guest:"
6508 msgstr ""
6509
6510 #. type: verbatim
6511 #: ../examples/guestfs-testing.pod:288
6512 #, no-wrap
6513 msgid ""
6514 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' |\n"
6515 "   less\n"
6516 "\n"
6517 msgstr ""
6518
6519 #. type: textblock
6520 #: ../examples/guestfs-testing.pod:293
6521 msgid ""
6522 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<http://libguestfs."
6523 "org/>."
6524 msgstr ""
6525
6526 #. type: =head2
6527 #: ../fish/guestfish-actions.pod:1
6528 msgid "add-cdrom"
6529 msgstr ""
6530
6531 #. type: verbatim
6532 #: ../fish/guestfish-actions.pod:3
6533 #, no-wrap
6534 msgid ""
6535 " add-cdrom filename\n"
6536 "\n"
6537 msgstr ""
6538
6539 #. type: textblock
6540 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6541 msgid "This function adds a virtual CD-ROM disk image to the guest."
6542 msgstr ""
6543
6544 #. type: textblock
6545 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6546 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6547 msgstr ""
6548
6549 #. type: textblock
6550 #: ../fish/guestfish-actions.pod:15
6551 msgid ""
6552 "This call checks for the existence of C<filename>.  This stops you from "
6553 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6554 "and C<http:> URLs.  To specify those, use the general L</config> call "
6555 "instead."
6556 msgstr ""
6557
6558 #. type: textblock
6559 #: ../fish/guestfish-actions.pod:22
6560 msgid ""
6561 "If you just want to add an ISO file (often you use this as an efficient way "
6562 "to transfer large files into the guest), then you should probably use L</add-"
6563 "drive-ro> instead."
6564 msgstr ""
6565
6566 #. type: textblock
6567 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
6568 #: ../fish/guestfish-actions.pod:228
6569 msgid ""
6570 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6571 "instead."
6572 msgstr ""
6573
6574 #. type: textblock
6575 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
6576 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
6577 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
6578 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
6579 #: ../fish/guestfish-actions.pod:3284 ../fish/guestfish-actions.pod:3595
6580 #: ../fish/guestfish-actions.pod:3643 ../fish/guestfish-actions.pod:4561
6581 #: ../fish/guestfish-actions.pod:4581 ../fish/guestfish-actions.pod:4600
6582 #: ../fish/guestfish-actions.pod:4638 ../fish/guestfish-actions.pod:5287
6583 #: ../fish/guestfish-actions.pod:5390 ../src/guestfs-actions.pod:10
6584 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
6585 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
6586 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
6587 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5076
6588 #: ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5698
6589 #: ../src/guestfs-actions.pod:6994 ../src/guestfs-actions.pod:7035
6590 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7126
6591 #: ../src/guestfs-actions.pod:8058 ../src/guestfs-actions.pod:8167
6592 #: ../src/guestfs-actions.pod:8347
6593 msgid ""
6594 "Deprecated functions will not be removed from the API, but the fact that "
6595 "they are deprecated indicates that there are problems with correct use of "
6596 "these functions."
6597 msgstr ""
6598
6599 #. type: =head2
6600 #: ../fish/guestfish-actions.pod:35
6601 msgid "add-domain"
6602 msgstr ""
6603
6604 #. type: =head2
6605 #: ../fish/guestfish-actions.pod:37
6606 msgid "domain"
6607 msgstr ""
6608
6609 #. type: verbatim
6610 #: ../fish/guestfish-actions.pod:39
6611 #, no-wrap
6612 msgid ""
6613 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
6614 "\n"
6615 msgstr ""
6616
6617 #. type: textblock
6618 #: ../fish/guestfish-actions.pod:41
6619 msgid ""
6620 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6621 "It works by connecting to libvirt, requesting the domain and domain XML from "
6622 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6623 msgstr ""
6624
6625 #. type: textblock
6626 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
6627 msgid ""
6628 "The number of disks added is returned.  This operation is atomic: if an "
6629 "error is returned, then no disks are added."
6630 msgstr ""
6631
6632 #. type: textblock
6633 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
6634 msgid ""
6635 "This function does some minimal checks to make sure the libvirt domain is "
6636 "not running (unless C<readonly> is true).  In a future version we will try "
6637 "to acquire the libvirt lock on each disk."
6638 msgstr ""
6639
6640 #. type: textblock
6641 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6642 msgid ""
6643 "Disks must be accessible locally.  This often means that adding disks from a "
6644 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6645 "unless those disks are accessible via the same device path locally too."
6646 msgstr ""
6647
6648 #. type: textblock
6649 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6650 msgid ""
6651 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6652 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6653 "libvirt URI (or one set through an environment variable, see the libvirt "
6654 "documentation for full details)."
6655 msgstr ""
6656
6657 #. type: textblock
6658 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6659 msgid ""
6660 "The optional C<live> flag controls whether this call will try to connect to "
6661 "a running virtual machine C<guestfsd> process if it sees a suitable "
6662 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6663 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6664 "DAEMONS> for more information."
6665 msgstr ""
6666
6667 #. type: textblock
6668 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6669 msgid ""
6670 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6671 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6672 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6673 "as usual."
6674 msgstr ""
6675
6676 #. type: textblock
6677 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6678 msgid ""
6679 "The optional C<readonlydisk> parameter controls what we do for disks which "
6680 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6681 msgstr ""
6682
6683 #. type: =item
6684 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6685 msgid "readonlydisk = \"error\""
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6690 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6691 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6692 msgid "If C<readonly> is false:"
6693 msgstr ""
6694
6695 #. type: textblock
6696 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6697 msgid ""
6698 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
6699 "E<gt> flag is found."
6700 msgstr ""
6701
6702 #. type: textblock
6703 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6704 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6705 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6706 msgid "If C<readonly> is true:"
6707 msgstr ""
6708
6709 #. type: textblock
6710 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6711 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6712 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6713 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6714 msgstr ""
6715
6716 #. type: =item
6717 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6718 msgid "readonlydisk = \"read\""
6719 msgstr ""
6720
6721 #. type: textblock
6722 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6723 msgid ""
6724 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6725 "are added read/write."
6726 msgstr ""
6727
6728 #. type: =item
6729 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6730 msgid "readonlydisk = \"write\" (default)"
6731 msgstr ""
6732
6733 #. type: textblock
6734 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6735 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6736 msgstr ""
6737
6738 #. type: =item
6739 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6740 msgid "readonlydisk = \"ignore\""
6741 msgstr ""
6742
6743 #. type: textblock
6744 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6745 msgid "If C<readonly> is true or false:"
6746 msgstr ""
6747
6748 #. type: textblock
6749 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6750 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6751 msgstr ""
6752
6753 #. type: textblock
6754 #: ../fish/guestfish-actions.pod:122
6755 msgid ""
6756 "The other optional parameters are passed directly through to L</add-drive-"
6757 "opts>."
6758 msgstr ""
6759
6760 #. type: textblock
6761 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6762 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6763 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6764 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6765 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6766 #: ../fish/guestfish-actions.pod:3333 ../fish/guestfish-actions.pod:3496
6767 #: ../fish/guestfish-actions.pod:3631
6768 msgid ""
6769 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6770 msgstr ""
6771
6772 #. type: =head2
6773 #: ../fish/guestfish-actions.pod:127
6774 msgid "add-drive"
6775 msgstr ""
6776
6777 #. type: verbatim
6778 #: ../fish/guestfish-actions.pod:129
6779 #, no-wrap
6780 msgid ""
6781 " add-drive filename\n"
6782 "\n"
6783 msgstr ""
6784
6785 #. type: textblock
6786 #: ../fish/guestfish-actions.pod:131
6787 msgid ""
6788 "This function is the equivalent of calling L</add-drive-opts> with no "
6789 "optional parameters, so the disk is added writable, with the format being "
6790 "detected automatically."
6791 msgstr ""
6792
6793 #. type: textblock
6794 #: ../fish/guestfish-actions.pod:135
6795 msgid ""
6796 "Automatic detection of the format opens you up to a potential security hole "
6797 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6798 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6799 "you should think about replacing calls to this function with calls to L</add-"
6800 "drive-opts>, and specifying the format."
6801 msgstr ""
6802
6803 #. type: =head2
6804 #: ../fish/guestfish-actions.pod:142
6805 msgid "add-drive-opts"
6806 msgstr ""
6807
6808 #. type: =head2
6809 #: ../fish/guestfish-actions.pod:144
6810 msgid "add"
6811 msgstr ""
6812
6813 #. type: verbatim
6814 #: ../fish/guestfish-actions.pod:146
6815 #, no-wrap
6816 msgid ""
6817 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
6818 "\n"
6819 msgstr ""
6820
6821 #. type: textblock
6822 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6823 msgid ""
6824 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6825 "The first time you call this function, the disk appears as C</dev/sda>, the "
6826 "second time as C</dev/sdb>, and so on."
6827 msgstr ""
6828
6829 #. type: textblock
6830 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6831 msgid ""
6832 "You don't necessarily need to be root when using libguestfs.  However you "
6833 "obviously do need sufficient permissions to access the filename for whatever "
6834 "operations you want to perform (ie. read access if you just want to read the "
6835 "image or write access if you want to modify the image)."
6836 msgstr ""
6837
6838 #. type: textblock
6839 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6840 msgid "This call checks that C<filename> exists."
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3295
6845 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5113
6846 msgid "The optional arguments are:"
6847 msgstr ""
6848
6849 #. type: =item
6850 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6851 msgid "C<readonly>"
6852 msgstr ""
6853
6854 #. type: textblock
6855 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6856 msgid ""
6857 "If true then the image is treated as read-only.  Writes are still allowed, "
6858 "but they are stored in a temporary snapshot overlay which is discarded at "
6859 "the end.  The disk that you add is not modified."
6860 msgstr ""
6861
6862 #. type: =item
6863 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6864 msgid "C<format>"
6865 msgstr ""
6866
6867 #. type: textblock
6868 #: ../fish/guestfish-actions.pod:173
6869 msgid ""
6870 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6871 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6872 "include C<raw> and C<qcow2>."
6873 msgstr ""
6874
6875 #. type: textblock
6876 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6877 msgid ""
6878 "Automatic detection of the format opens you up to a potential security hole "
6879 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6880 "RHBZ#642934.  Specifying the format closes this security hole."
6881 msgstr ""
6882
6883 #. type: =item
6884 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6885 msgid "C<iface>"
6886 msgstr ""
6887
6888 #. type: textblock
6889 #: ../fish/guestfish-actions.pod:184
6890 msgid ""
6891 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6892 "add-drive-with-if> call (q.v.)"
6893 msgstr ""
6894
6895 #. type: =item
6896 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
6897 msgid "C<name>"
6898 msgstr ""
6899
6900 #. type: textblock
6901 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6902 msgid ""
6903 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6904 "a hint to the guest inspection process if it is available."
6905 msgstr ""
6906
6907 #. type: =head2
6908 #: ../fish/guestfish-actions.pod:196
6909 msgid "add-drive-ro"
6910 msgstr ""
6911
6912 #. type: =head2
6913 #: ../fish/guestfish-actions.pod:198
6914 msgid "add-ro"
6915 msgstr ""
6916
6917 #. type: verbatim
6918 #: ../fish/guestfish-actions.pod:200
6919 #, no-wrap
6920 msgid ""
6921 " add-drive-ro filename\n"
6922 "\n"
6923 msgstr ""
6924
6925 #. type: textblock
6926 #: ../fish/guestfish-actions.pod:202
6927 msgid ""
6928 "This function is the equivalent of calling L</add-drive-opts> with the "
6929 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6930 "is added read-only, with the format being detected automatically."
6931 msgstr ""
6932
6933 #. type: =head2
6934 #: ../fish/guestfish-actions.pod:207
6935 msgid "add-drive-ro-with-if"
6936 msgstr ""
6937
6938 #. type: verbatim
6939 #: ../fish/guestfish-actions.pod:209
6940 #, no-wrap
6941 msgid ""
6942 " add-drive-ro-with-if filename iface\n"
6943 "\n"
6944 msgstr ""
6945
6946 #. type: textblock
6947 #: ../fish/guestfish-actions.pod:211
6948 msgid ""
6949 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6950 "interface emulation to use at run time."
6951 msgstr ""
6952
6953 #. type: =head2
6954 #: ../fish/guestfish-actions.pod:221
6955 msgid "add-drive-with-if"
6956 msgstr ""
6957
6958 #. type: verbatim
6959 #: ../fish/guestfish-actions.pod:223
6960 #, no-wrap
6961 msgid ""
6962 " add-drive-with-if filename iface\n"
6963 "\n"
6964 msgstr ""
6965
6966 #. type: textblock
6967 #: ../fish/guestfish-actions.pod:225
6968 msgid ""
6969 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6970 "interface emulation to use at run time."
6971 msgstr ""
6972
6973 #. type: =head2
6974 #: ../fish/guestfish-actions.pod:235
6975 msgid "aug-clear"
6976 msgstr ""
6977
6978 #. type: verbatim
6979 #: ../fish/guestfish-actions.pod:237
6980 #, no-wrap
6981 msgid ""
6982 " aug-clear augpath\n"
6983 "\n"
6984 msgstr ""
6985
6986 #. type: textblock
6987 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6988 msgid ""
6989 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6990 "L<augtool(1)> C<clear> command."
6991 msgstr ""
6992
6993 #. type: =head2
6994 #: ../fish/guestfish-actions.pod:242
6995 msgid "aug-close"
6996 msgstr ""
6997
6998 #. type: verbatim
6999 #: ../fish/guestfish-actions.pod:244
7000 #, no-wrap
7001 msgid ""
7002 " aug-close\n"
7003 "\n"
7004 msgstr ""
7005
7006 #. type: textblock
7007 #: ../fish/guestfish-actions.pod:246
7008 msgid ""
7009 "Close the current Augeas handle and free up any resources used by it.  After "
7010 "calling this, you have to call L</aug-init> again before you can use any "
7011 "other Augeas functions."
7012 msgstr ""
7013
7014 #. type: =head2
7015 #: ../fish/guestfish-actions.pod:251
7016 msgid "aug-defnode"
7017 msgstr ""
7018
7019 #. type: verbatim
7020 #: ../fish/guestfish-actions.pod:253
7021 #, no-wrap
7022 msgid ""
7023 " aug-defnode name expr val\n"
7024 "\n"
7025 msgstr ""
7026
7027 #. type: textblock
7028 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
7029 msgid ""
7030 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7031 msgstr ""
7032
7033 #. type: textblock
7034 #: ../fish/guestfish-actions.pod:258
7035 msgid ""
7036 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7037 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
7038 "containing that single node."
7039 msgstr ""
7040
7041 #. type: textblock
7042 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
7043 msgid ""
7044 "On success this returns a pair containing the number of nodes in the "
7045 "nodeset, and a boolean flag if a node was created."
7046 msgstr ""
7047
7048 #. type: =head2
7049 #: ../fish/guestfish-actions.pod:266
7050 msgid "aug-defvar"
7051 msgstr ""
7052
7053 #. type: verbatim
7054 #: ../fish/guestfish-actions.pod:268
7055 #, no-wrap
7056 msgid ""
7057 " aug-defvar name expr\n"
7058 "\n"
7059 msgstr ""
7060
7061 #. type: textblock
7062 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
7063 msgid ""
7064 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7065 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
7066 msgstr ""
7067
7068 #. type: textblock
7069 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
7070 msgid ""
7071 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7072 "evaluates to something which is not a nodeset."
7073 msgstr ""
7074
7075 #. type: =head2
7076 #: ../fish/guestfish-actions.pod:277
7077 msgid "aug-get"
7078 msgstr ""
7079
7080 #. type: verbatim
7081 #: ../fish/guestfish-actions.pod:279
7082 #, no-wrap
7083 msgid ""
7084 " aug-get augpath\n"
7085 "\n"
7086 msgstr ""
7087
7088 #. type: textblock
7089 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
7090 msgid ""
7091 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7092 "node, the C<value> is returned."
7093 msgstr ""
7094
7095 #. type: =head2
7096 #: ../fish/guestfish-actions.pod:284
7097 msgid "aug-init"
7098 msgstr ""
7099
7100 #. type: verbatim
7101 #: ../fish/guestfish-actions.pod:286
7102 #, no-wrap
7103 msgid ""
7104 " aug-init root flags\n"
7105 "\n"
7106 msgstr ""
7107
7108 #. type: textblock
7109 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
7110 msgid ""
7111 "Create a new Augeas handle for editing configuration files.  If there was "
7112 "any previous Augeas handle associated with this guestfs session, then it is "
7113 "closed."
7114 msgstr ""
7115
7116 #. type: textblock
7117 #: ../fish/guestfish-actions.pod:292
7118 msgid "You must call this before using any other L</aug-*> commands."
7119 msgstr ""
7120
7121 #. type: textblock
7122 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
7123 msgid ""
7124 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7125 msgstr ""
7126
7127 #. type: textblock
7128 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
7129 msgid ""
7130 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7131 "logical I<or> of the following integers:"
7132 msgstr ""
7133
7134 #. type: =item
7135 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
7136 msgid "C<AUG_SAVE_BACKUP> = 1"
7137 msgstr ""
7138
7139 #. type: textblock
7140 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
7141 msgid "Keep the original file with a C<.augsave> extension."
7142 msgstr ""
7143
7144 #. type: =item
7145 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
7146 msgid "C<AUG_SAVE_NEWFILE> = 2"
7147 msgstr ""
7148
7149 #. type: textblock
7150 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
7151 msgid ""
7152 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7153 "original.  Overrides C<AUG_SAVE_BACKUP>."
7154 msgstr ""
7155
7156 #. type: =item
7157 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
7158 msgid "C<AUG_TYPE_CHECK> = 4"
7159 msgstr ""
7160
7161 #. type: textblock
7162 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
7163 msgid "Typecheck lenses."
7164 msgstr ""
7165
7166 #. type: textblock
7167 #: ../fish/guestfish-actions.pod:317
7168 msgid ""
7169 "This option is only useful when debugging Augeas lenses.  Use of this option "
7170 "may require additional memory for the libguestfs appliance.  You may need to "
7171 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
7172 msgstr ""
7173
7174 #. type: =item
7175 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
7176 msgid "C<AUG_NO_STDINC> = 8"
7177 msgstr ""
7178
7179 #. type: textblock
7180 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
7181 msgid "Do not use standard load path for modules."
7182 msgstr ""
7183
7184 #. type: =item
7185 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
7186 msgid "C<AUG_SAVE_NOOP> = 16"
7187 msgstr ""
7188
7189 #. type: textblock
7190 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
7191 msgid "Make save a no-op, just record what would have been changed."
7192 msgstr ""
7193
7194 #. type: =item
7195 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
7196 msgid "C<AUG_NO_LOAD> = 32"
7197 msgstr ""
7198
7199 #. type: textblock
7200 #: ../fish/guestfish-actions.pod:332
7201 msgid "Do not load the tree in L</aug-init>."
7202 msgstr ""
7203
7204 #. type: textblock
7205 #: ../fish/guestfish-actions.pod:336
7206 msgid "To close the handle, you can call L</aug-close>."
7207 msgstr ""
7208
7209 #. type: textblock
7210 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
7211 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7212 msgstr ""
7213
7214 #. type: =head2
7215 #: ../fish/guestfish-actions.pod:340
7216 msgid "aug-insert"
7217 msgstr ""
7218
7219 #. type: verbatim
7220 #: ../fish/guestfish-actions.pod:342
7221 #, no-wrap
7222 msgid ""
7223 " aug-insert augpath label true|false\n"
7224 "\n"
7225 msgstr ""
7226
7227 #. type: textblock
7228 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
7229 msgid ""
7230 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7231 "or after C<path> (depending on the boolean flag C<before>)."
7232 msgstr ""
7233
7234 #. type: textblock
7235 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
7236 msgid ""
7237 "C<path> must match exactly one existing node in the tree, and C<label> must "
7238 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7239 msgstr ""
7240
7241 #. type: =head2
7242 #: ../fish/guestfish-actions.pod:352
7243 msgid "aug-load"
7244 msgstr ""
7245
7246 #. type: verbatim
7247 #: ../fish/guestfish-actions.pod:354
7248 #, no-wrap
7249 msgid ""
7250 " aug-load\n"
7251 "\n"
7252 msgstr ""
7253
7254 #. type: textblock
7255 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
7256 msgid "Load files into the tree."
7257 msgstr ""
7258
7259 #. type: textblock
7260 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
7261 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7262 msgstr ""
7263
7264 #. type: =head2
7265 #: ../fish/guestfish-actions.pod:361
7266 msgid "aug-ls"
7267 msgstr ""
7268
7269 #. type: verbatim
7270 #: ../fish/guestfish-actions.pod:363
7271 #, no-wrap
7272 msgid ""
7273 " aug-ls augpath\n"
7274 "\n"
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:365
7279 msgid ""
7280 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
7281 "resulting nodes into alphabetical order."
7282 msgstr ""
7283
7284 #. type: =head2
7285 #: ../fish/guestfish-actions.pod:368
7286 msgid "aug-match"
7287 msgstr ""
7288
7289 #. type: verbatim
7290 #: ../fish/guestfish-actions.pod:370
7291 #, no-wrap
7292 msgid ""
7293 " aug-match augpath\n"
7294 "\n"
7295 msgstr ""
7296
7297 #. type: textblock
7298 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
7299 msgid ""
7300 "Returns a list of paths which match the path expression C<path>.  The "
7301 "returned paths are sufficiently qualified so that they match exactly one "
7302 "node in the current tree."
7303 msgstr ""
7304
7305 #. type: =head2
7306 #: ../fish/guestfish-actions.pod:376
7307 msgid "aug-mv"
7308 msgstr ""
7309
7310 #. type: verbatim
7311 #: ../fish/guestfish-actions.pod:378
7312 #, no-wrap
7313 msgid ""
7314 " aug-mv src dest\n"
7315 "\n"
7316 msgstr ""
7317
7318 #. type: textblock
7319 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
7320 msgid ""
7321 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7322 "C<dest> is overwritten if it exists."
7323 msgstr ""
7324
7325 #. type: =head2
7326 #: ../fish/guestfish-actions.pod:383
7327 msgid "aug-rm"
7328 msgstr ""
7329
7330 #. type: verbatim
7331 #: ../fish/guestfish-actions.pod:385
7332 #, no-wrap
7333 msgid ""
7334 " aug-rm augpath\n"
7335 "\n"
7336 msgstr ""
7337
7338 #. type: textblock
7339 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
7340 msgid "Remove C<path> and all of its children."
7341 msgstr ""
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
7345 msgid "On success this returns the number of entries which were removed."
7346 msgstr ""
7347
7348 #. type: =head2
7349 #: ../fish/guestfish-actions.pod:391
7350 msgid "aug-save"
7351 msgstr ""
7352
7353 #. type: verbatim
7354 #: ../fish/guestfish-actions.pod:393
7355 #, no-wrap
7356 msgid ""
7357 " aug-save\n"
7358 "\n"
7359 msgstr ""
7360
7361 #. type: textblock
7362 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
7363 msgid "This writes all pending changes to disk."
7364 msgstr ""
7365
7366 #. type: textblock
7367 #: ../fish/guestfish-actions.pod:397
7368 msgid ""
7369 "The flags which were passed to L</aug-init> affect exactly how files are "
7370 "saved."
7371 msgstr ""
7372
7373 #. type: =head2
7374 #: ../fish/guestfish-actions.pod:400
7375 msgid "aug-set"
7376 msgstr ""
7377
7378 #. type: verbatim
7379 #: ../fish/guestfish-actions.pod:402
7380 #, no-wrap
7381 msgid ""
7382 " aug-set augpath val\n"
7383 "\n"
7384 msgstr ""
7385
7386 #. type: textblock
7387 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
7388 msgid "Set the value associated with C<path> to C<val>."
7389 msgstr ""
7390
7391 #. type: textblock
7392 #: ../fish/guestfish-actions.pod:406
7393 msgid ""
7394 "In the Augeas API, it is possible to clear a node by setting the value to "
7395 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7396 "this call.  Instead you must use the L</aug-clear> call."
7397 msgstr ""
7398
7399 #. type: =head2
7400 #: ../fish/guestfish-actions.pod:411
7401 msgid "available"
7402 msgstr ""
7403
7404 #. type: verbatim
7405 #: ../fish/guestfish-actions.pod:413
7406 #, no-wrap
7407 msgid ""
7408 " available 'groups ...'\n"
7409 "\n"
7410 msgstr ""
7411
7412 #. type: textblock
7413 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
7414 msgid ""
7415 "This command is used to check the availability of some groups of "
7416 "functionality in the appliance, which not all builds of the libguestfs "
7417 "appliance will be able to provide."
7418 msgstr ""
7419
7420 #. type: textblock
7421 #: ../fish/guestfish-actions.pod:419
7422 msgid ""
7423 "The libguestfs groups, and the functions that those groups correspond to, "
7424 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7425 "runtime by calling L</available-all-groups>."
7426 msgstr ""
7427
7428 #. type: textblock
7429 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
7430 msgid ""
7431 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7432 "\"]> would check for the availability of the Linux inotify functions and "
7433 "Augeas (configuration file editing) functions."
7434 msgstr ""
7435
7436 #. type: textblock
7437 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
7438 msgid "The command returns no error if I<all> requested groups are available."
7439 msgstr ""
7440
7441 #. type: textblock
7442 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
7443 msgid ""
7444 "It fails with an error if one or more of the requested groups is unavailable "
7445 "in the appliance."
7446 msgstr ""
7447
7448 #. type: textblock
7449 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
7450 msgid ""
7451 "If an unknown group name is included in the list of groups then an error is "
7452 "always returned."
7453 msgstr ""
7454
7455 #. type: textblock
7456 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
7457 msgid "I<Notes:>"
7458 msgstr ""
7459
7460 #. type: textblock
7461 #: ../fish/guestfish-actions.pod:443
7462 msgid "You must call L</launch> before calling this function."
7463 msgstr ""
7464
7465 #. type: textblock
7466 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
7467 msgid ""
7468 "The reason is because we don't know what groups are supported by the "
7469 "appliance/daemon until it is running and can be queried."
7470 msgstr ""
7471
7472 #. type: textblock
7473 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
7474 msgid ""
7475 "If a group of functions is available, this does not necessarily mean that "
7476 "they will work.  You still have to check for errors when calling individual "
7477 "API functions even if they are available."
7478 msgstr ""
7479
7480 #. type: textblock
7481 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
7482 msgid ""
7483 "It is usually the job of distro packagers to build complete functionality "
7484 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7485 "with all requirements satisfied, will support everything."
7486 msgstr ""
7487
7488 #. type: textblock
7489 #: ../fish/guestfish-actions.pod:465
7490 msgid ""
7491 "This call was added in version C<1.0.80>.  In previous versions of "
7492 "libguestfs all you could do would be to speculatively execute a command to "
7493 "find out if the daemon implemented it.  See also L</version>."
7494 msgstr ""
7495
7496 #. type: =head2
7497 #: ../fish/guestfish-actions.pod:472
7498 msgid "available-all-groups"
7499 msgstr ""
7500
7501 #. type: verbatim
7502 #: ../fish/guestfish-actions.pod:474
7503 #, no-wrap
7504 msgid ""
7505 " available-all-groups\n"
7506 "\n"
7507 msgstr ""
7508
7509 #. type: textblock
7510 #: ../fish/guestfish-actions.pod:476
7511 msgid ""
7512 "This command returns a list of all optional groups that this daemon knows "
7513 "about.  Note this returns both supported and unsupported groups.  To find "
7514 "out which ones the daemon can actually support you have to call L</"
7515 "available> on each member of the returned list."
7516 msgstr ""
7517
7518 #. type: textblock
7519 #: ../fish/guestfish-actions.pod:482
7520 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
7521 msgstr ""
7522
7523 #. type: =head2
7524 #: ../fish/guestfish-actions.pod:484
7525 msgid "base64-in"
7526 msgstr ""
7527
7528 #. type: verbatim
7529 #: ../fish/guestfish-actions.pod:486
7530 #, no-wrap
7531 msgid ""
7532 " base64-in (base64file|-) filename\n"
7533 "\n"
7534 msgstr ""
7535
7536 #. type: textblock
7537 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
7538 msgid ""
7539 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7540 msgstr ""
7541
7542 #. type: textblock
7543 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
7544 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
7545 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
7546 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
7547 #: ../fish/guestfish-actions.pod:4858 ../fish/guestfish-actions.pod:4870
7548 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4892
7549 #: ../fish/guestfish-actions.pod:4944 ../fish/guestfish-actions.pod:4953
7550 #: ../fish/guestfish-actions.pod:5007 ../fish/guestfish-actions.pod:5030
7551 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
7552 msgstr ""
7553
7554 #. type: =head2
7555 #: ../fish/guestfish-actions.pod:493
7556 msgid "base64-out"
7557 msgstr ""
7558
7559 #. type: verbatim
7560 #: ../fish/guestfish-actions.pod:495
7561 #, no-wrap
7562 msgid ""
7563 " base64-out filename (base64file|-)\n"
7564 "\n"
7565 msgstr ""
7566
7567 #. type: textblock
7568 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7569 msgid ""
7570 "This command downloads the contents of C<filename>, writing it out to local "
7571 "file C<base64file> encoded as base64."
7572 msgstr ""
7573
7574 #. type: =head2
7575 #: ../fish/guestfish-actions.pod:502
7576 msgid "blockdev-flushbufs"
7577 msgstr ""
7578
7579 #. type: verbatim
7580 #: ../fish/guestfish-actions.pod:504
7581 #, no-wrap
7582 msgid ""
7583 " blockdev-flushbufs device\n"
7584 "\n"
7585 msgstr ""
7586
7587 #. type: textblock
7588 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7589 msgid ""
7590 "This tells the kernel to flush internal buffers associated with C<device>."
7591 msgstr ""
7592
7593 #. type: textblock
7594 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
7595 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
7596 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
7597 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
7598 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
7599 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
7600 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
7601 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
7602 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
7603 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
7604 msgid "This uses the L<blockdev(8)> command."
7605 msgstr ""
7606
7607 #. type: =head2
7608 #: ../fish/guestfish-actions.pod:511
7609 msgid "blockdev-getbsz"
7610 msgstr ""
7611
7612 #. type: verbatim
7613 #: ../fish/guestfish-actions.pod:513
7614 #, no-wrap
7615 msgid ""
7616 " blockdev-getbsz device\n"
7617 "\n"
7618 msgstr ""
7619
7620 #. type: textblock
7621 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
7622 msgid "This returns the block size of a device."
7623 msgstr ""
7624
7625 #. type: textblock
7626 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
7627 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
7628 msgid ""
7629 "(Note this is different from both I<size in blocks> and I<filesystem block "
7630 "size>)."
7631 msgstr ""
7632
7633 #. type: =head2
7634 #: ../fish/guestfish-actions.pod:522
7635 msgid "blockdev-getro"
7636 msgstr ""
7637
7638 #. type: verbatim
7639 #: ../fish/guestfish-actions.pod:524
7640 #, no-wrap
7641 msgid ""
7642 " blockdev-getro device\n"
7643 "\n"
7644 msgstr ""
7645
7646 #. type: textblock
7647 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7648 msgid ""
7649 "Returns a boolean indicating if the block device is read-only (true if read-"
7650 "only, false if not)."
7651 msgstr ""
7652
7653 #. type: =head2
7654 #: ../fish/guestfish-actions.pod:531
7655 msgid "blockdev-getsize64"
7656 msgstr ""
7657
7658 #. type: verbatim
7659 #: ../fish/guestfish-actions.pod:533
7660 #, no-wrap
7661 msgid ""
7662 " blockdev-getsize64 device\n"
7663 "\n"
7664 msgstr ""
7665
7666 #. type: textblock
7667 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7668 msgid "This returns the size of the device in bytes."
7669 msgstr ""
7670
7671 #. type: textblock
7672 #: ../fish/guestfish-actions.pod:537
7673 msgid "See also L</blockdev-getsz>."
7674 msgstr ""
7675
7676 #. type: =head2
7677 #: ../fish/guestfish-actions.pod:541
7678 msgid "blockdev-getss"
7679 msgstr ""
7680
7681 #. type: verbatim
7682 #: ../fish/guestfish-actions.pod:543
7683 #, no-wrap
7684 msgid ""
7685 " blockdev-getss device\n"
7686 "\n"
7687 msgstr ""
7688
7689 #. type: textblock
7690 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7691 msgid ""
7692 "This returns the size of sectors on a block device.  Usually 512, but can be "
7693 "larger for modern devices."
7694 msgstr ""
7695
7696 #. type: textblock
7697 #: ../fish/guestfish-actions.pod:548
7698 msgid ""
7699 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7700 msgstr ""
7701
7702 #. type: =head2
7703 #: ../fish/guestfish-actions.pod:553
7704 msgid "blockdev-getsz"
7705 msgstr ""
7706
7707 #. type: verbatim
7708 #: ../fish/guestfish-actions.pod:555
7709 #, no-wrap
7710 msgid ""
7711 " blockdev-getsz device\n"
7712 "\n"
7713 msgstr ""
7714
7715 #. type: textblock
7716 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7717 msgid ""
7718 "This returns the size of the device in units of 512-byte sectors (even if "
7719 "the sectorsize isn't 512 bytes ... weird)."
7720 msgstr ""
7721
7722 #. type: textblock
7723 #: ../fish/guestfish-actions.pod:560
7724 msgid ""
7725 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7726 "blockdev-getsize64> for the more useful I<size in bytes>."
7727 msgstr ""
7728
7729 #. type: =head2
7730 #: ../fish/guestfish-actions.pod:566
7731 msgid "blockdev-rereadpt"
7732 msgstr ""
7733
7734 #. type: verbatim
7735 #: ../fish/guestfish-actions.pod:568
7736 #, no-wrap
7737 msgid ""
7738 " blockdev-rereadpt device\n"
7739 "\n"
7740 msgstr ""
7741
7742 #. type: textblock
7743 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7744 msgid "Reread the partition table on C<device>."
7745 msgstr ""
7746
7747 #. type: =head2
7748 #: ../fish/guestfish-actions.pod:574
7749 msgid "blockdev-setbsz"
7750 msgstr ""
7751
7752 #. type: verbatim
7753 #: ../fish/guestfish-actions.pod:576
7754 #, no-wrap
7755 msgid ""
7756 " blockdev-setbsz device blocksize\n"
7757 "\n"
7758 msgstr ""
7759
7760 #. type: textblock
7761 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7762 msgid "This sets the block size of a device."
7763 msgstr ""
7764
7765 #. type: =head2
7766 #: ../fish/guestfish-actions.pod:585
7767 msgid "blockdev-setro"
7768 msgstr ""
7769
7770 #. type: verbatim
7771 #: ../fish/guestfish-actions.pod:587
7772 #, no-wrap
7773 msgid ""
7774 " blockdev-setro device\n"
7775 "\n"
7776 msgstr ""
7777
7778 #. type: textblock
7779 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7780 msgid "Sets the block device named C<device> to read-only."
7781 msgstr ""
7782
7783 #. type: =head2
7784 #: ../fish/guestfish-actions.pod:593
7785 msgid "blockdev-setrw"
7786 msgstr ""
7787
7788 #. type: verbatim
7789 #: ../fish/guestfish-actions.pod:595
7790 #, no-wrap
7791 msgid ""
7792 " blockdev-setrw device\n"
7793 "\n"
7794 msgstr ""
7795
7796 #. type: textblock
7797 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7798 msgid "Sets the block device named C<device> to read-write."
7799 msgstr ""
7800
7801 #. type: =head2
7802 #: ../fish/guestfish-actions.pod:601
7803 msgid "btrfs-filesystem-resize"
7804 msgstr ""
7805
7806 #. type: verbatim
7807 #: ../fish/guestfish-actions.pod:603
7808 #, no-wrap
7809 msgid ""
7810 " btrfs-filesystem-resize mountpoint [size:N]\n"
7811 "\n"
7812 msgstr ""
7813
7814 #. type: textblock
7815 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7816 msgid "This command resizes a btrfs filesystem."
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7821 msgid ""
7822 "Note that unlike other resize calls, the filesystem has to be mounted and "
7823 "the parameter is the mountpoint not the device (this is a requirement of "
7824 "btrfs itself)."
7825 msgstr ""
7826
7827 #. type: textblock
7828 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3606
7829 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5637
7830 msgid "The optional parameters are:"
7831 msgstr ""
7832
7833 #. type: =item
7834 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3610
7835 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5641
7836 msgid "C<size>"
7837 msgstr ""
7838
7839 #. type: textblock
7840 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7841 msgid ""
7842 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7843 "resized to the maximum size."
7844 msgstr ""
7845
7846 #. type: textblock
7847 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7848 msgid "See also L<btrfs(8)>."
7849 msgstr ""
7850
7851 #. type: =head2
7852 #: ../fish/guestfish-actions.pod:626
7853 msgid "case-sensitive-path"
7854 msgstr ""
7855
7856 #. type: verbatim
7857 #: ../fish/guestfish-actions.pod:628
7858 #, no-wrap
7859 msgid ""
7860 " case-sensitive-path path\n"
7861 "\n"
7862 msgstr ""
7863
7864 #. type: textblock
7865 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7866 msgid ""
7867 "This can be used to resolve case insensitive paths on a filesystem which is "
7868 "case sensitive.  The use case is to resolve paths which you have read from "
7869 "Windows configuration files or the Windows Registry, to the true path."
7870 msgstr ""
7871
7872 #. type: textblock
7873 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7874 msgid ""
7875 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7876 "(and probably others), which is that although the underlying filesystem is "
7877 "case-insensitive, the driver exports the filesystem to Linux as case-"
7878 "sensitive."
7879 msgstr ""
7880
7881 #. type: textblock
7882 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7883 msgid ""
7884 "One consequence of this is that special directories such as C<c:\\windows> "
7885 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7886 "precise details of how they were created.  In Windows itself this would not "
7887 "be a problem."
7888 msgstr ""
7889
7890 #. type: textblock
7891 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7892 msgid ""
7893 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7894 "#posixfilenames1>"
7895 msgstr ""
7896
7897 #. type: textblock
7898 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7899 msgid ""
7900 "This function resolves the true case of each element in the path and returns "
7901 "the case-sensitive path."
7902 msgstr ""
7903
7904 #. type: textblock
7905 #: ../fish/guestfish-actions.pod:652
7906 msgid ""
7907 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7908 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7909 "the directories were originally created under Windows)."
7910 msgstr ""
7911
7912 #. type: textblock
7913 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7914 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7915 msgstr ""
7916
7917 #. type: textblock
7918 #: ../fish/guestfish-actions.pod:660
7919 msgid "See also L</realpath>."
7920 msgstr ""
7921
7922 #. type: =head2
7923 #: ../fish/guestfish-actions.pod:662
7924 msgid "cat"
7925 msgstr ""
7926
7927 #. type: verbatim
7928 #: ../fish/guestfish-actions.pod:664
7929 #, no-wrap
7930 msgid ""
7931 " cat path\n"
7932 "\n"
7933 msgstr ""
7934
7935 #. type: textblock
7936 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4037
7937 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6297
7938 msgid "Return the contents of the file named C<path>."
7939 msgstr ""
7940
7941 #. type: textblock
7942 #: ../fish/guestfish-actions.pod:668
7943 msgid ""
7944 "Note that this function cannot correctly handle binary files (specifically, "
7945 "files containing C<\\0> character which is treated as end of string).  For "
7946 "those you need to use the L</read-file> or L</download> functions which have "
7947 "a more complex interface."
7948 msgstr ""
7949
7950 #. type: textblock
7951 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7952 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7953 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7954 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7955 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7956 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7957 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7958 #: ../fish/guestfish-actions.pod:3907 ../fish/guestfish-actions.pod:3922
7959 #: ../fish/guestfish-actions.pod:3998 ../fish/guestfish-actions.pod:4015
7960 #: ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4699
7961 #: ../fish/guestfish-actions.pod:4745 ../fish/guestfish-actions.pod:4830
7962 #: ../fish/guestfish-actions.pod:4845 ../fish/guestfish-actions.pod:5251
7963 #: ../fish/guestfish-actions.pod:5263 ../fish/guestfish-actions.pod:5281
7964 #: ../fish/guestfish-actions.pod:5298 ../fish/guestfish-actions.pod:5308
7965 #: ../fish/guestfish-actions.pod:5362 ../fish/guestfish-actions.pod:5372
7966 #: ../fish/guestfish-actions.pod:5401 ../fish/guestfish-actions.pod:5411
7967 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7968 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
7969 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
7970 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
7971 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
7972 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
7973 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
7974 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6105
7975 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262
7976 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:7241
7977 #: ../src/guestfs-actions.pod:7296 ../src/guestfs-actions.pod:7442
7978 #: ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:8131
7979 #: ../src/guestfs-actions.pod:8151 ../src/guestfs-actions.pod:8184
7980 #: ../src/guestfs-actions.pod:8203 ../src/guestfs-actions.pod:8222
7981 #: ../src/guestfs-actions.pod:8313 ../src/guestfs-actions.pod:8332
7982 #: ../src/guestfs-actions.pod:8378 ../src/guestfs-actions.pod:8397
7983 msgid ""
7984 "Because of the message protocol, there is a transfer limit of somewhere "
7985 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7986 msgstr ""
7987
7988 #. type: =head2
7989 #: ../fish/guestfish-actions.pod:676
7990 msgid "checksum"
7991 msgstr ""
7992
7993 #. type: verbatim
7994 #: ../fish/guestfish-actions.pod:678
7995 #, no-wrap
7996 msgid ""
7997 " checksum csumtype path\n"
7998 "\n"
7999 msgstr ""
8000
8001 #. type: textblock
8002 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
8003 msgid ""
8004 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8005 msgstr ""
8006
8007 #. type: textblock
8008 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
8009 msgid ""
8010 "The type of checksum to compute is given by the C<csumtype> parameter which "
8011 "must have one of the following values:"
8012 msgstr ""
8013
8014 #. type: =item
8015 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
8016 msgid "C<crc>"
8017 msgstr ""
8018
8019 #. type: textblock
8020 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
8021 msgid ""
8022 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8023 "C<cksum> command."
8024 msgstr ""
8025
8026 #. type: =item
8027 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
8028 msgid "C<md5>"
8029 msgstr ""
8030
8031 #. type: textblock
8032 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
8033 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8034 msgstr ""
8035
8036 #. type: =item
8037 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
8038 msgid "C<sha1>"
8039 msgstr ""
8040
8041 #. type: textblock
8042 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
8043 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8044 msgstr ""
8045
8046 #. type: =item
8047 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
8048 msgid "C<sha224>"
8049 msgstr ""
8050
8051 #. type: textblock
8052 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
8053 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8054 msgstr ""
8055
8056 #. type: =item
8057 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
8058 msgid "C<sha256>"
8059 msgstr ""
8060
8061 #. type: textblock
8062 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
8063 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8064 msgstr ""
8065
8066 #. type: =item
8067 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
8068 msgid "C<sha384>"
8069 msgstr ""
8070
8071 #. type: textblock
8072 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
8073 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8074 msgstr ""
8075
8076 #. type: =item
8077 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
8078 msgid "C<sha512>"
8079 msgstr ""
8080
8081 #. type: textblock
8082 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
8083 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8084 msgstr ""
8085
8086 #. type: textblock
8087 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
8088 msgid "The checksum is returned as a printable string."
8089 msgstr ""
8090
8091 #. type: textblock
8092 #: ../fish/guestfish-actions.pod:721
8093 msgid "To get the checksum for a device, use L</checksum-device>."
8094 msgstr ""
8095
8096 #. type: textblock
8097 #: ../fish/guestfish-actions.pod:723
8098 msgid "To get the checksums for many files, use L</checksums-out>."
8099 msgstr ""
8100
8101 #. type: =head2
8102 #: ../fish/guestfish-actions.pod:725
8103 msgid "checksum-device"
8104 msgstr ""
8105
8106 #. type: verbatim
8107 #: ../fish/guestfish-actions.pod:727
8108 #, no-wrap
8109 msgid ""
8110 " checksum-device csumtype device\n"
8111 "\n"
8112 msgstr ""
8113
8114 #. type: textblock
8115 #: ../fish/guestfish-actions.pod:729
8116 msgid ""
8117 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8118 "device named C<device>.  For the types of checksums supported see the L</"
8119 "checksum> command."
8120 msgstr ""
8121
8122 #. type: =head2
8123 #: ../fish/guestfish-actions.pod:733
8124 msgid "checksums-out"
8125 msgstr ""
8126
8127 #. type: verbatim
8128 #: ../fish/guestfish-actions.pod:735
8129 #, no-wrap
8130 msgid ""
8131 " checksums-out csumtype directory (sumsfile|-)\n"
8132 "\n"
8133 msgstr ""
8134
8135 #. type: textblock
8136 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
8137 msgid ""
8138 "This command computes the checksums of all regular files in C<directory> and "
8139 "then emits a list of those checksums to the local output file C<sumsfile>."
8140 msgstr ""
8141
8142 #. type: textblock
8143 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
8144 msgid ""
8145 "This can be used for verifying the integrity of a virtual machine.  However "
8146 "to be properly secure you should pay attention to the output of the checksum "
8147 "command (it uses the ones from GNU coreutils).  In particular when the "
8148 "filename is not printable, coreutils uses a special backslash syntax.  For "
8149 "more information, see the GNU coreutils info file."
8150 msgstr ""
8151
8152 #. type: =head2
8153 #: ../fish/guestfish-actions.pod:751
8154 msgid "chmod"
8155 msgstr ""
8156
8157 #. type: verbatim
8158 #: ../fish/guestfish-actions.pod:753
8159 #, no-wrap
8160 msgid ""
8161 " chmod mode path\n"
8162 "\n"
8163 msgstr ""
8164
8165 #. type: textblock
8166 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
8167 msgid ""
8168 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8169 "supported."
8170 msgstr ""
8171
8172 #. type: textblock
8173 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
8174 msgid ""
8175 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8176 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8177 "C<700>."
8178 msgstr ""
8179
8180 #. type: textblock
8181 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3259
8182 #: ../fish/guestfish-actions.pod:3398 ../fish/guestfish-actions.pod:3408
8183 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:1117
8184 #: ../src/guestfs-actions.pod:5044 ../src/guestfs-actions.pod:5253
8185 #: ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5291
8186 msgid "The mode actually set is affected by the umask."
8187 msgstr ""
8188
8189 #. type: =head2
8190 #: ../fish/guestfish-actions.pod:764
8191 msgid "chown"
8192 msgstr ""
8193
8194 #. type: verbatim
8195 #: ../fish/guestfish-actions.pod:766
8196 #, no-wrap
8197 msgid ""
8198 " chown owner group path\n"
8199 "\n"
8200 msgstr ""
8201
8202 #. type: textblock
8203 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
8204 msgid "Change the file owner to C<owner> and group to C<group>."
8205 msgstr ""
8206
8207 #. type: textblock
8208 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
8209 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
8210 msgid ""
8211 "Only numeric uid and gid are supported.  If you want to use names, you will "
8212 "need to locate and parse the password file yourself (Augeas support makes "
8213 "this relatively easy)."
8214 msgstr ""
8215
8216 #. type: =head2
8217 #: ../fish/guestfish-actions.pod:774
8218 msgid "command"
8219 msgstr ""
8220
8221 #. type: verbatim
8222 #: ../fish/guestfish-actions.pod:776
8223 #, no-wrap
8224 msgid ""
8225 " command 'arguments ...'\n"
8226 "\n"
8227 msgstr ""
8228
8229 #. type: textblock
8230 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
8231 msgid ""
8232 "This call runs a command from the guest filesystem.  The filesystem must be "
8233 "mounted, and must contain a compatible operating system (ie. something "
8234 "Linux, with the same or compatible processor architecture)."
8235 msgstr ""
8236
8237 #. type: textblock
8238 #: ../fish/guestfish-actions.pod:783
8239 msgid ""
8240 "The single parameter is an argv-style list of arguments.  The first element "
8241 "is the name of the program to run.  Subsequent elements are parameters.  The "
8242 "list must be non-empty (ie. must contain a program name).  Note that the "
8243 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
8244 msgstr ""
8245
8246 #. type: textblock
8247 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
8248 msgid "The return value is anything printed to I<stdout> by the command."
8249 msgstr ""
8250
8251 #. type: textblock
8252 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
8253 msgid ""
8254 "If the command returns a non-zero exit status, then this function returns an "
8255 "error message.  The error message string is the content of I<stderr> from "
8256 "the command."
8257 msgstr ""
8258
8259 #. type: textblock
8260 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
8261 msgid ""
8262 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8263 "bin>.  If you require a program from another location, you should provide "
8264 "the full path in the first parameter."
8265 msgstr ""
8266
8267 #. type: textblock
8268 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
8269 msgid ""
8270 "Shared libraries and data files required by the program must be available on "
8271 "filesystems which are mounted in the correct places.  It is the caller's "
8272 "responsibility to ensure all filesystems that are needed are mounted at the "
8273 "right locations."
8274 msgstr ""
8275
8276 #. type: =head2
8277 #: ../fish/guestfish-actions.pod:811
8278 msgid "command-lines"
8279 msgstr ""
8280
8281 #. type: verbatim
8282 #: ../fish/guestfish-actions.pod:813
8283 #, no-wrap
8284 msgid ""
8285 " command-lines 'arguments ...'\n"
8286 "\n"
8287 msgstr ""
8288
8289 #. type: textblock
8290 #: ../fish/guestfish-actions.pod:815
8291 msgid ""
8292 "This is the same as L</command>, but splits the result into a list of lines."
8293 msgstr ""
8294
8295 #. type: textblock
8296 #: ../fish/guestfish-actions.pod:818
8297 msgid "See also: L</sh-lines>"
8298 msgstr ""
8299
8300 #. type: =head2
8301 #: ../fish/guestfish-actions.pod:823
8302 msgid "compress-device-out"
8303 msgstr ""
8304
8305 #. type: verbatim
8306 #: ../fish/guestfish-actions.pod:825
8307 #, no-wrap
8308 msgid ""
8309 " compress-device-out ctype device (zdevice|-) [level:N]\n"
8310 "\n"
8311 msgstr ""
8312
8313 #. type: textblock
8314 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
8315 msgid ""
8316 "This command compresses C<device> and writes it out to the local file "
8317 "C<zdevice>."
8318 msgstr ""
8319
8320 #. type: textblock
8321 #: ../fish/guestfish-actions.pod:830
8322 msgid ""
8323 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
8324 "compress-out>."
8325 msgstr ""
8326
8327 #. type: =head2
8328 #: ../fish/guestfish-actions.pod:837
8329 msgid "compress-out"
8330 msgstr ""
8331
8332 #. type: verbatim
8333 #: ../fish/guestfish-actions.pod:839
8334 #, no-wrap
8335 msgid ""
8336 " compress-out ctype file (zfile|-) [level:N]\n"
8337 "\n"
8338 msgstr ""
8339
8340 #. type: textblock
8341 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
8342 msgid ""
8343 "This command compresses C<file> and writes it out to the local file C<zfile>."
8344 msgstr ""
8345
8346 #. type: textblock
8347 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
8348 msgid ""
8349 "The compression program used is controlled by the C<ctype> parameter.  "
8350 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
8351 "Some compression types may not be supported by particular builds of "
8352 "libguestfs, in which case you will get an error containing the substring "
8353 "\"not supported\"."
8354 msgstr ""
8355
8356 #. type: textblock
8357 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
8358 msgid ""
8359 "The optional C<level> parameter controls compression level.  The meaning and "
8360 "default for this parameter depends on the compression program being used."
8361 msgstr ""
8362
8363 #. type: =head2
8364 #: ../fish/guestfish-actions.pod:858
8365 msgid "config"
8366 msgstr ""
8367
8368 #. type: verbatim
8369 #: ../fish/guestfish-actions.pod:860
8370 #, no-wrap
8371 msgid ""
8372 " config qemuparam qemuvalue\n"
8373 "\n"
8374 msgstr ""
8375
8376 #. type: textblock
8377 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
8378 msgid ""
8379 "This can be used to add arbitrary qemu command line parameters of the form "
8380 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8381 "setting some parameters which would interfere with parameters that we use."
8382 msgstr ""
8383
8384 #. type: textblock
8385 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
8386 msgid "The first character of C<param> string must be a C<-> (dash)."
8387 msgstr ""
8388
8389 #. type: textblock
8390 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
8391 msgid "C<value> can be NULL."
8392 msgstr ""
8393
8394 #. type: =head2
8395 #: ../fish/guestfish-actions.pod:871
8396 msgid "copy-device-to-device"
8397 msgstr ""
8398
8399 #. type: verbatim
8400 #: ../fish/guestfish-actions.pod:873
8401 #, no-wrap
8402 msgid ""
8403 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8404 "\n"
8405 msgstr ""
8406
8407 #. type: textblock
8408 #: ../fish/guestfish-actions.pod:875
8409 msgid ""
8410 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
8411 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
8412 "(device|file) to a destination (device|file)."
8413 msgstr ""
8414
8415 #. type: textblock
8416 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
8417 msgid ""
8418 "Partial copies can be made since you can specify optionally the source "
8419 "offset, destination offset and size to copy.  These values are all specified "
8420 "in bytes.  If not given, the offsets both default to zero, and the size "
8421 "defaults to copying as much as possible until we hit the end of the source."
8422 msgstr ""
8423
8424 #. type: textblock
8425 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
8426 msgid ""
8427 "The source and destination may be the same object.  However overlapping "
8428 "regions may not be copied correctly."
8429 msgstr ""
8430
8431 #. type: textblock
8432 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
8433 msgid ""
8434 "If the destination is a file, it is created if required.  If the destination "
8435 "file is not large enough, it is extended."
8436 msgstr ""
8437
8438 #. type: =head2
8439 #: ../fish/guestfish-actions.pod:896
8440 msgid "copy-device-to-file"
8441 msgstr ""
8442
8443 #. type: verbatim
8444 #: ../fish/guestfish-actions.pod:898
8445 #, no-wrap
8446 msgid ""
8447 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8448 "\n"
8449 msgstr ""
8450
8451 #. type: textblock
8452 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
8453 #: ../fish/guestfish-actions.pod:918
8454 msgid "See L</copy-device-to-device> for a general overview of this call."
8455 msgstr ""
8456
8457 #. type: =head2
8458 #: ../fish/guestfish-actions.pod:905
8459 msgid "copy-file-to-device"
8460 msgstr ""
8461
8462 #. type: verbatim
8463 #: ../fish/guestfish-actions.pod:907
8464 #, no-wrap
8465 msgid ""
8466 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8467 "\n"
8468 msgstr ""
8469
8470 #. type: =head2
8471 #: ../fish/guestfish-actions.pod:914
8472 msgid "copy-file-to-file"
8473 msgstr ""
8474
8475 #. type: verbatim
8476 #: ../fish/guestfish-actions.pod:916
8477 #, no-wrap
8478 msgid ""
8479 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8480 "\n"
8481 msgstr ""
8482
8483 #. type: textblock
8484 #: ../fish/guestfish-actions.pod:921
8485 msgid ""
8486 "This is B<not> the function you want for copying files.  This is for copying "
8487 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
8488 "file copying and moving functions."
8489 msgstr ""
8490
8491 #. type: =head2
8492 #: ../fish/guestfish-actions.pod:928
8493 msgid "copy-size"
8494 msgstr ""
8495
8496 #. type: verbatim
8497 #: ../fish/guestfish-actions.pod:930
8498 #, no-wrap
8499 msgid ""
8500 " copy-size src dest size\n"
8501 "\n"
8502 msgstr ""
8503
8504 #. type: textblock
8505 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
8506 msgid ""
8507 "This command copies exactly C<size> bytes from one source device or file "
8508 "C<src> to another destination device or file C<dest>."
8509 msgstr ""
8510
8511 #. type: textblock
8512 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
8513 msgid ""
8514 "Note this will fail if the source is too short or if the destination is not "
8515 "large enough."
8516 msgstr ""
8517
8518 #. type: textblock
8519 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
8520 msgid ""
8521 "I<This function is deprecated.> In new code, use the L</"
8522 "copy_device_to_device> call instead."
8523 msgstr ""
8524
8525 #. type: =head2
8526 #: ../fish/guestfish-actions.pod:945
8527 msgid "cp"
8528 msgstr ""
8529
8530 #. type: verbatim
8531 #: ../fish/guestfish-actions.pod:947
8532 #, no-wrap
8533 msgid ""
8534 " cp src dest\n"
8535 "\n"
8536 msgstr ""
8537
8538 #. type: textblock
8539 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
8540 msgid ""
8541 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8542 "destination filename or destination directory."
8543 msgstr ""
8544
8545 #. type: =head2
8546 #: ../fish/guestfish-actions.pod:952
8547 msgid "cp-a"
8548 msgstr ""
8549
8550 #. type: verbatim
8551 #: ../fish/guestfish-actions.pod:954
8552 #, no-wrap
8553 msgid ""
8554 " cp-a src dest\n"
8555 "\n"
8556 msgstr ""
8557
8558 #. type: textblock
8559 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
8560 msgid ""
8561 "This copies a file or directory from C<src> to C<dest> recursively using the "
8562 "C<cp -a> command."
8563 msgstr ""
8564
8565 #. type: =head2
8566 #: ../fish/guestfish-actions.pod:959
8567 msgid "dd"
8568 msgstr ""
8569
8570 #. type: verbatim
8571 #: ../fish/guestfish-actions.pod:961
8572 #, no-wrap
8573 msgid ""
8574 " dd src dest\n"
8575 "\n"
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
8580 msgid ""
8581 "This command copies from one source device or file C<src> to another "
8582 "destination device or file C<dest>.  Normally you would use this to copy to "
8583 "or from a device or partition, for example to duplicate a filesystem."
8584 msgstr ""
8585
8586 #. type: textblock
8587 #: ../fish/guestfish-actions.pod:968
8588 msgid ""
8589 "If the destination is a device, it must be as large or larger than the "
8590 "source file or device, otherwise the copy will fail.  This command cannot do "
8591 "partial copies (see L</copy-device-to-device>)."
8592 msgstr ""
8593
8594 #. type: =head2
8595 #: ../fish/guestfish-actions.pod:980
8596 msgid "df"
8597 msgstr ""
8598
8599 #. type: verbatim
8600 #: ../fish/guestfish-actions.pod:982
8601 #, no-wrap
8602 msgid ""
8603 " df\n"
8604 "\n"
8605 msgstr ""
8606
8607 #. type: textblock
8608 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
8609 msgid "This command runs the C<df> command to report disk space used."
8610 msgstr ""
8611
8612 #. type: textblock
8613 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
8614 msgid ""
8615 "This command is mostly useful for interactive sessions.  It is I<not> "
8616 "intended that you try to parse the output string.  Use L</statvfs> from "
8617 "programs."
8618 msgstr ""
8619
8620 #. type: =head2
8621 #: ../fish/guestfish-actions.pod:990
8622 msgid "df-h"
8623 msgstr ""
8624
8625 #. type: verbatim
8626 #: ../fish/guestfish-actions.pod:992
8627 #, no-wrap
8628 msgid ""
8629 " df-h\n"
8630 "\n"
8631 msgstr ""
8632
8633 #. type: textblock
8634 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8635 msgid ""
8636 "This command runs the C<df -h> command to report disk space used in human-"
8637 "readable format."
8638 msgstr ""
8639
8640 #. type: =head2
8641 #: ../fish/guestfish-actions.pod:1001
8642 msgid "dmesg"
8643 msgstr ""
8644
8645 #. type: verbatim
8646 #: ../fish/guestfish-actions.pod:1003
8647 #, no-wrap
8648 msgid ""
8649 " dmesg\n"
8650 "\n"
8651 msgstr ""
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8655 msgid ""
8656 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8657 "This is sometimes useful for extended debugging of problems."
8658 msgstr ""
8659
8660 #. type: textblock
8661 #: ../fish/guestfish-actions.pod:1009
8662 msgid ""
8663 "Another way to get the same information is to enable verbose messages with "
8664 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8665 "before running the program."
8666 msgstr ""
8667
8668 #. type: =head2
8669 #: ../fish/guestfish-actions.pod:1014
8670 msgid "download"
8671 msgstr ""
8672
8673 #. type: verbatim
8674 #: ../fish/guestfish-actions.pod:1016
8675 #, no-wrap
8676 msgid ""
8677 " download remotefilename (filename|-)\n"
8678 "\n"
8679 msgstr ""
8680
8681 #. type: textblock
8682 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8683 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8684 msgid ""
8685 "Download file C<remotefilename> and save it as C<filename> on the local "
8686 "machine."
8687 msgstr ""
8688
8689 #. type: textblock
8690 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5003
8691 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7701
8692 msgid "C<filename> can also be a named pipe."
8693 msgstr ""
8694
8695 #. type: textblock
8696 #: ../fish/guestfish-actions.pod:1023
8697 msgid "See also L</upload>, L</cat>."
8698 msgstr ""
8699
8700 #. type: =head2
8701 #: ../fish/guestfish-actions.pod:1027
8702 msgid "download-offset"
8703 msgstr ""
8704
8705 #. type: verbatim
8706 #: ../fish/guestfish-actions.pod:1029
8707 #, no-wrap
8708 msgid ""
8709 " download-offset remotefilename (filename|-) offset size\n"
8710 "\n"
8711 msgstr ""
8712
8713 #. type: textblock
8714 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8715 msgid ""
8716 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8717 "region must be within the file or device)."
8718 msgstr ""
8719
8720 #. type: textblock
8721 #: ../fish/guestfish-actions.pod:1037
8722 msgid ""
8723 "Note that there is no limit on the amount of data that can be downloaded "
8724 "with this call, unlike with L</pread>, and this call always reads the full "
8725 "amount unless an error occurs."
8726 msgstr ""
8727
8728 #. type: textblock
8729 #: ../fish/guestfish-actions.pod:1042
8730 msgid "See also L</download>, L</pread>."
8731 msgstr ""
8732
8733 #. type: =head2
8734 #: ../fish/guestfish-actions.pod:1046
8735 msgid "drop-caches"
8736 msgstr ""
8737
8738 #. type: verbatim
8739 #: ../fish/guestfish-actions.pod:1048
8740 #, no-wrap
8741 msgid ""
8742 " drop-caches whattodrop\n"
8743 "\n"
8744 msgstr ""
8745
8746 #. type: textblock
8747 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8748 msgid ""
8749 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8750 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8751 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8752 msgstr ""
8753
8754 #. type: textblock
8755 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8756 msgid "Setting C<whattodrop> to 3 should drop everything."
8757 msgstr ""
8758
8759 #. type: textblock
8760 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8761 msgid ""
8762 "This automatically calls L<sync(2)> before the operation, so that the "
8763 "maximum guest memory is freed."
8764 msgstr ""
8765
8766 #. type: =head2
8767 #: ../fish/guestfish-actions.pod:1060
8768 msgid "du"
8769 msgstr ""
8770
8771 #. type: verbatim
8772 #: ../fish/guestfish-actions.pod:1062
8773 #, no-wrap
8774 msgid ""
8775 " du path\n"
8776 "\n"
8777 msgstr ""
8778
8779 #. type: textblock
8780 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8781 msgid ""
8782 "This command runs the C<du -s> command to estimate file space usage for "
8783 "C<path>."
8784 msgstr ""
8785
8786 #. type: textblock
8787 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8788 msgid ""
8789 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8790 "estimate includes the contents of the directory and all subdirectories "
8791 "(recursively)."
8792 msgstr ""
8793
8794 #. type: textblock
8795 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8796 msgid ""
8797 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8798 msgstr ""
8799
8800 #. type: =head2
8801 #: ../fish/guestfish-actions.pod:1074
8802 msgid "e2fsck-f"
8803 msgstr ""
8804
8805 #. type: verbatim
8806 #: ../fish/guestfish-actions.pod:1076
8807 #, no-wrap
8808 msgid ""
8809 " e2fsck-f device\n"
8810 "\n"
8811 msgstr ""
8812
8813 #. type: textblock
8814 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8815 msgid ""
8816 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8817 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8818 "clean (I<-f>)."
8819 msgstr ""
8820
8821 #. type: textblock
8822 #: ../fish/guestfish-actions.pod:1082
8823 msgid ""
8824 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8825 "should use L</fsck>."
8826 msgstr ""
8827
8828 #. type: =head2
8829 #: ../fish/guestfish-actions.pod:1085
8830 msgid "echo-daemon"
8831 msgstr ""
8832
8833 #. type: verbatim
8834 #: ../fish/guestfish-actions.pod:1087
8835 #, no-wrap
8836 msgid ""
8837 " echo-daemon 'words ...'\n"
8838 "\n"
8839 msgstr ""
8840
8841 #. type: textblock
8842 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8843 msgid ""
8844 "This command concatenates the list of C<words> passed with single spaces "
8845 "between them and returns the resulting string."
8846 msgstr ""
8847
8848 #. type: textblock
8849 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8850 msgid "You can use this command to test the connection through to the daemon."
8851 msgstr ""
8852
8853 #. type: textblock
8854 #: ../fish/guestfish-actions.pod:1094
8855 msgid "See also L</ping-daemon>."
8856 msgstr ""
8857
8858 #. type: =head2
8859 #: ../fish/guestfish-actions.pod:1096
8860 msgid "egrep"
8861 msgstr ""
8862
8863 #. type: verbatim
8864 #: ../fish/guestfish-actions.pod:1098
8865 #, no-wrap
8866 msgid ""
8867 " egrep regex path\n"
8868 "\n"
8869 msgstr ""
8870
8871 #. type: textblock
8872 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8873 msgid ""
8874 "This calls the external C<egrep> program and returns the matching lines."
8875 msgstr ""
8876
8877 #. type: =head2
8878 #: ../fish/guestfish-actions.pod:1106
8879 msgid "egrepi"
8880 msgstr ""
8881
8882 #. type: verbatim
8883 #: ../fish/guestfish-actions.pod:1108
8884 #, no-wrap
8885 msgid ""
8886 " egrepi regex path\n"
8887 "\n"
8888 msgstr ""
8889
8890 #. type: textblock
8891 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8892 msgid ""
8893 "This calls the external C<egrep -i> program and returns the matching lines."
8894 msgstr ""
8895
8896 #. type: =head2
8897 #: ../fish/guestfish-actions.pod:1116
8898 msgid "equal"
8899 msgstr ""
8900
8901 #. type: verbatim
8902 #: ../fish/guestfish-actions.pod:1118
8903 #, no-wrap
8904 msgid ""
8905 " equal file1 file2\n"
8906 "\n"
8907 msgstr ""
8908
8909 #. type: textblock
8910 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8911 msgid ""
8912 "This compares the two files C<file1> and C<file2> and returns true if their "
8913 "content is exactly equal, or false otherwise."
8914 msgstr ""
8915
8916 #. type: textblock
8917 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8918 msgid "The external L<cmp(1)> program is used for the comparison."
8919 msgstr ""
8920
8921 #. type: =head2
8922 #: ../fish/guestfish-actions.pod:1125
8923 msgid "exists"
8924 msgstr ""
8925
8926 #. type: verbatim
8927 #: ../fish/guestfish-actions.pod:1127
8928 #, no-wrap
8929 msgid ""
8930 " exists path\n"
8931 "\n"
8932 msgstr ""
8933
8934 #. type: textblock
8935 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8936 msgid ""
8937 "This returns C<true> if and only if there is a file, directory (or anything) "
8938 "with the given C<path> name."
8939 msgstr ""
8940
8941 #. type: textblock
8942 #: ../fish/guestfish-actions.pod:1132
8943 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8944 msgstr ""
8945
8946 #. type: =head2
8947 #: ../fish/guestfish-actions.pod:1134
8948 msgid "fallocate"
8949 msgstr ""
8950
8951 #. type: verbatim
8952 #: ../fish/guestfish-actions.pod:1136
8953 #, no-wrap
8954 msgid ""
8955 " fallocate path len\n"
8956 "\n"
8957 msgstr ""
8958
8959 #. type: textblock
8960 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8961 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8962 msgid ""
8963 "This command preallocates a file (containing zero bytes) named C<path> of "
8964 "size C<len> bytes.  If the file exists already, it is overwritten."
8965 msgstr ""
8966
8967 #. type: textblock
8968 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8969 msgid ""
8970 "Do not confuse this with the guestfish-specific C<alloc> command which "
8971 "allocates a file in the host and attaches it as a device."
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:1146
8976 msgid ""
8977 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8978 "instead."
8979 msgstr ""
8980
8981 #. type: =head2
8982 #: ../fish/guestfish-actions.pod:1153
8983 msgid "fallocate64"
8984 msgstr ""
8985
8986 #. type: verbatim
8987 #: ../fish/guestfish-actions.pod:1155
8988 #, no-wrap
8989 msgid ""
8990 " fallocate64 path len\n"
8991 "\n"
8992 msgstr ""
8993
8994 #. type: textblock
8995 #: ../fish/guestfish-actions.pod:1161
8996 msgid ""
8997 "Note that this call allocates disk blocks for the file.  To create a sparse "
8998 "file use L</truncate-size> instead."
8999 msgstr ""
9000
9001 #. type: textblock
9002 #: ../fish/guestfish-actions.pod:1164
9003 msgid ""
9004 "The deprecated call L</fallocate> does the same, but owing to an oversight "
9005 "it only allowed 30 bit lengths to be specified, effectively limiting the "
9006 "maximum size of files created through that call to 1GB."
9007 msgstr ""
9008
9009 #. type: textblock
9010 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
9011 msgid ""
9012 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9013 "commands which create a file in the host and attach it as a device."
9014 msgstr ""
9015
9016 #. type: =head2
9017 #: ../fish/guestfish-actions.pod:1173
9018 msgid "fgrep"
9019 msgstr ""
9020
9021 #. type: verbatim
9022 #: ../fish/guestfish-actions.pod:1175
9023 #, no-wrap
9024 msgid ""
9025 " fgrep pattern path\n"
9026 "\n"
9027 msgstr ""
9028
9029 #. type: textblock
9030 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
9031 msgid ""
9032 "This calls the external C<fgrep> program and returns the matching lines."
9033 msgstr ""
9034
9035 #. type: =head2
9036 #: ../fish/guestfish-actions.pod:1183
9037 msgid "fgrepi"
9038 msgstr ""
9039
9040 #. type: verbatim
9041 #: ../fish/guestfish-actions.pod:1185
9042 #, no-wrap
9043 msgid ""
9044 " fgrepi pattern path\n"
9045 "\n"
9046 msgstr ""
9047
9048 #. type: textblock
9049 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
9050 msgid ""
9051 "This calls the external C<fgrep -i> program and returns the matching lines."
9052 msgstr ""
9053
9054 #. type: =head2
9055 #: ../fish/guestfish-actions.pod:1193
9056 msgid "file"
9057 msgstr ""
9058
9059 #. type: verbatim
9060 #: ../fish/guestfish-actions.pod:1195
9061 #, no-wrap
9062 msgid ""
9063 " file path\n"
9064 "\n"
9065 msgstr ""
9066
9067 #. type: textblock
9068 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
9069 msgid ""
9070 "This call uses the standard L<file(1)> command to determine the type or "
9071 "contents of the file."
9072 msgstr ""
9073
9074 #. type: textblock
9075 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
9076 msgid ""
9077 "This call will also transparently look inside various types of compressed "
9078 "file."
9079 msgstr ""
9080
9081 #. type: textblock
9082 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
9083 msgid ""
9084 "The exact command which runs is C<file -zb path>.  Note in particular that "
9085 "the filename is not prepended to the output (the I<-b> option)."
9086 msgstr ""
9087
9088 #. type: textblock
9089 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
9090 msgid ""
9091 "The output depends on the output of the underlying L<file(1)> command and it "
9092 "can change in future in ways beyond our control.  In other words, the output "
9093 "is not guaranteed by the ABI."
9094 msgstr ""
9095
9096 #. type: textblock
9097 #: ../fish/guestfish-actions.pod:1211
9098 msgid ""
9099 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
9100 "(etc), L</is-zero>."
9101 msgstr ""
9102
9103 #. type: =head2
9104 #: ../fish/guestfish-actions.pod:1214
9105 msgid "file-architecture"
9106 msgstr ""
9107
9108 #. type: verbatim
9109 #: ../fish/guestfish-actions.pod:1216
9110 #, no-wrap
9111 msgid ""
9112 " file-architecture filename\n"
9113 "\n"
9114 msgstr ""
9115
9116 #. type: textblock
9117 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
9118 msgid ""
9119 "This detects the architecture of the binary C<filename>, and returns it if "
9120 "known."
9121 msgstr ""
9122
9123 #. type: textblock
9124 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
9125 msgid "Currently defined architectures are:"
9126 msgstr ""
9127
9128 #. type: =item
9129 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
9130 msgid "\"i386\""
9131 msgstr ""
9132
9133 #. type: textblock
9134 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
9135 msgid ""
9136 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9137 "irrespective of the precise processor requirements of the binary."
9138 msgstr ""
9139
9140 #. type: =item
9141 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
9142 msgid "\"x86_64\""
9143 msgstr ""
9144
9145 #. type: textblock
9146 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
9147 msgid "64 bit x86-64."
9148 msgstr ""
9149
9150 #. type: =item
9151 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
9152 msgid "\"sparc\""
9153 msgstr ""
9154
9155 #. type: textblock
9156 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
9157 msgid "32 bit SPARC."
9158 msgstr ""
9159
9160 #. type: =item
9161 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
9162 msgid "\"sparc64\""
9163 msgstr ""
9164
9165 #. type: textblock
9166 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
9167 msgid "64 bit SPARC V9 and above."
9168 msgstr ""
9169
9170 #. type: =item
9171 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
9172 msgid "\"ia64\""
9173 msgstr ""
9174
9175 #. type: textblock
9176 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
9177 msgid "Intel Itanium."
9178 msgstr ""
9179
9180 #. type: =item
9181 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
9182 msgid "\"ppc\""
9183 msgstr ""
9184
9185 #. type: textblock
9186 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
9187 msgid "32 bit Power PC."
9188 msgstr ""
9189
9190 #. type: =item
9191 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
9192 msgid "\"ppc64\""
9193 msgstr ""
9194
9195 #. type: textblock
9196 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
9197 msgid "64 bit Power PC."
9198 msgstr ""
9199
9200 #. type: textblock
9201 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
9202 msgid "Libguestfs may return other architecture strings in future."
9203 msgstr ""
9204
9205 #. type: textblock
9206 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
9207 msgid "The function works on at least the following types of files:"
9208 msgstr ""
9209
9210 #. type: textblock
9211 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
9212 msgid "many types of Un*x and Linux binary"
9213 msgstr ""
9214
9215 #. type: textblock
9216 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
9217 msgid "many types of Un*x and Linux shared library"
9218 msgstr ""
9219
9220 #. type: textblock
9221 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
9222 msgid "Windows Win32 and Win64 binaries"
9223 msgstr ""
9224
9225 #. type: textblock
9226 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
9227 msgid "Windows Win32 and Win64 DLLs"
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
9232 msgid "Win32 binaries and DLLs return C<i386>."
9233 msgstr ""
9234
9235 #. type: textblock
9236 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
9237 msgid "Win64 binaries and DLLs return C<x86_64>."
9238 msgstr ""
9239
9240 #. type: textblock
9241 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
9242 msgid "Linux kernel modules"
9243 msgstr ""
9244
9245 #. type: textblock
9246 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
9247 msgid "Linux new-style initrd images"
9248 msgstr ""
9249
9250 #. type: textblock
9251 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
9252 msgid "some non-x86 Linux vmlinuz kernels"
9253 msgstr ""
9254
9255 #. type: textblock
9256 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
9257 msgid "What it can't do currently:"
9258 msgstr ""
9259
9260 #. type: textblock
9261 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
9262 msgid "static libraries (libfoo.a)"
9263 msgstr ""
9264
9265 #. type: textblock
9266 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
9267 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9268 msgstr ""
9269
9270 #. type: textblock
9271 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
9272 msgid "x86 Linux vmlinuz kernels"
9273 msgstr ""
9274
9275 #. type: textblock
9276 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
9277 msgid ""
9278 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9279 "compressed code, and are horribly hard to unpack.  If you want to find the "
9280 "architecture of a kernel, use the architecture of the associated initrd or "
9281 "kernel module(s) instead."
9282 msgstr ""
9283
9284 #. type: =head2
9285 #: ../fish/guestfish-actions.pod:1319
9286 msgid "filesize"
9287 msgstr ""
9288
9289 #. type: verbatim
9290 #: ../fish/guestfish-actions.pod:1321
9291 #, no-wrap
9292 msgid ""
9293 " filesize file\n"
9294 "\n"
9295 msgstr ""
9296
9297 #. type: textblock
9298 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
9299 msgid "This command returns the size of C<file> in bytes."
9300 msgstr ""
9301
9302 #. type: textblock
9303 #: ../fish/guestfish-actions.pod:1325
9304 msgid ""
9305 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
9306 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
9307 msgstr ""
9308
9309 #. type: =head2
9310 #: ../fish/guestfish-actions.pod:1329
9311 msgid "fill"
9312 msgstr ""
9313
9314 #. type: verbatim
9315 #: ../fish/guestfish-actions.pod:1331
9316 #, no-wrap
9317 msgid ""
9318 " fill c len path\n"
9319 "\n"
9320 msgstr ""
9321
9322 #. type: textblock
9323 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
9324 msgid ""
9325 "This command creates a new file called C<path>.  The initial content of the "
9326 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9327 "[0..255]>."
9328 msgstr ""
9329
9330 #. type: textblock
9331 #: ../fish/guestfish-actions.pod:1337
9332 msgid ""
9333 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9334 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
9335 "L</fill-pattern>."
9336 msgstr ""
9337
9338 #. type: =head2
9339 #: ../fish/guestfish-actions.pod:1342
9340 msgid "fill-pattern"
9341 msgstr ""
9342
9343 #. type: verbatim
9344 #: ../fish/guestfish-actions.pod:1344
9345 #, no-wrap
9346 msgid ""
9347 " fill-pattern pattern len path\n"
9348 "\n"
9349 msgstr ""
9350
9351 #. type: textblock
9352 #: ../fish/guestfish-actions.pod:1346
9353 msgid ""
9354 "This function is like L</fill> except that it creates a new file of length "
9355 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
9356 "is truncated if necessary to ensure the length of the file is exactly C<len> "
9357 "bytes."
9358 msgstr ""
9359
9360 #. type: =head2
9361 #: ../fish/guestfish-actions.pod:1351
9362 msgid "find"
9363 msgstr ""
9364
9365 #. type: verbatim
9366 #: ../fish/guestfish-actions.pod:1353
9367 #, no-wrap
9368 msgid ""
9369 " find directory\n"
9370 "\n"
9371 msgstr ""
9372
9373 #. type: textblock
9374 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
9375 msgid ""
9376 "This command lists out all files and directories, recursively, starting at "
9377 "C<directory>.  It is essentially equivalent to running the shell command "
9378 "C<find directory -print> but some post-processing happens on the output, "
9379 "described below."
9380 msgstr ""
9381
9382 #. type: textblock
9383 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
9384 msgid ""
9385 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9386 "structure was:"
9387 msgstr ""
9388
9389 #. type: verbatim
9390 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
9391 #, no-wrap
9392 msgid ""
9393 " /tmp/a\n"
9394 " /tmp/b\n"
9395 " /tmp/c/d\n"
9396 "\n"
9397 msgstr ""
9398
9399 #. type: textblock
9400 #: ../fish/guestfish-actions.pod:1367
9401 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
9402 msgstr ""
9403
9404 #. type: verbatim
9405 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
9406 #, no-wrap
9407 msgid ""
9408 " a\n"
9409 " b\n"
9410 " c\n"
9411 " c/d\n"
9412 "\n"
9413 msgstr ""
9414
9415 #. type: textblock
9416 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
9417 msgid "If C<directory> is not a directory, then this command returns an error."
9418 msgstr ""
9419
9420 #. type: textblock
9421 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
9422 msgid "The returned list is sorted."
9423 msgstr ""
9424
9425 #. type: textblock
9426 #: ../fish/guestfish-actions.pod:1380
9427 msgid "See also L</find0>."
9428 msgstr ""
9429
9430 #. type: =head2
9431 #: ../fish/guestfish-actions.pod:1385
9432 msgid "find0"
9433 msgstr ""
9434
9435 #. type: verbatim
9436 #: ../fish/guestfish-actions.pod:1387
9437 #, no-wrap
9438 msgid ""
9439 " find0 directory (files|-)\n"
9440 "\n"
9441 msgstr ""
9442
9443 #. type: textblock
9444 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
9445 msgid ""
9446 "This command lists out all files and directories, recursively, starting at "
9447 "C<directory>, placing the resulting list in the external file called "
9448 "C<files>."
9449 msgstr ""
9450
9451 #. type: textblock
9452 #: ../fish/guestfish-actions.pod:1393
9453 msgid ""
9454 "This command works the same way as L</find> with the following exceptions:"
9455 msgstr ""
9456
9457 #. type: textblock
9458 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
9459 msgid "The resulting list is written to an external file."
9460 msgstr ""
9461
9462 #. type: textblock
9463 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
9464 msgid ""
9465 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9466 "L<find(1)> option I<-print0>."
9467 msgstr ""
9468
9469 #. type: textblock
9470 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
9471 msgid "This command is not limited in the number of names that it can return."
9472 msgstr ""
9473
9474 #. type: textblock
9475 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
9476 msgid "The result list is not sorted."
9477 msgstr ""
9478
9479 #. type: =head2
9480 #: ../fish/guestfish-actions.pod:1420
9481 msgid "findfs-label"
9482 msgstr ""
9483
9484 #. type: verbatim
9485 #: ../fish/guestfish-actions.pod:1422
9486 #, no-wrap
9487 msgid ""
9488 " findfs-label label\n"
9489 "\n"
9490 msgstr ""
9491
9492 #. type: textblock
9493 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
9494 msgid ""
9495 "This command searches the filesystems and returns the one which has the "
9496 "given label.  An error is returned if no such filesystem can be found."
9497 msgstr ""
9498
9499 #. type: textblock
9500 #: ../fish/guestfish-actions.pod:1428
9501 msgid "To find the label of a filesystem, use L</vfs-label>."
9502 msgstr ""
9503
9504 #. type: =head2
9505 #: ../fish/guestfish-actions.pod:1430
9506 msgid "findfs-uuid"
9507 msgstr ""
9508
9509 #. type: verbatim
9510 #: ../fish/guestfish-actions.pod:1432
9511 #, no-wrap
9512 msgid ""
9513 " findfs-uuid uuid\n"
9514 "\n"
9515 msgstr ""
9516
9517 #. type: textblock
9518 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
9519 msgid ""
9520 "This command searches the filesystems and returns the one which has the "
9521 "given UUID.  An error is returned if no such filesystem can be found."
9522 msgstr ""
9523
9524 #. type: textblock
9525 #: ../fish/guestfish-actions.pod:1438
9526 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
9527 msgstr ""
9528
9529 #. type: =head2
9530 #: ../fish/guestfish-actions.pod:1440
9531 msgid "fsck"
9532 msgstr ""
9533
9534 #. type: verbatim
9535 #: ../fish/guestfish-actions.pod:1442
9536 #, no-wrap
9537 msgid ""
9538 " fsck fstype device\n"
9539 "\n"
9540 msgstr ""
9541
9542 #. type: textblock
9543 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
9544 msgid ""
9545 "This runs the filesystem checker (fsck) on C<device> which should have "
9546 "filesystem type C<fstype>."
9547 msgstr ""
9548
9549 #. type: textblock
9550 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
9551 msgid ""
9552 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9553 "codes from C<fsck>."
9554 msgstr ""
9555
9556 #. type: textblock
9557 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
9558 msgid "Multiple status codes can be summed together."
9559 msgstr ""
9560
9561 #. type: textblock
9562 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
9563 msgid ""
9564 "A non-zero return code can mean \"success\", for example if errors have been "
9565 "corrected on the filesystem."
9566 msgstr ""
9567
9568 #. type: textblock
9569 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
9570 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9571 msgstr ""
9572
9573 #. type: textblock
9574 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
9575 msgid ""
9576 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9577 msgstr ""
9578
9579 #. type: =head2
9580 #: ../fish/guestfish-actions.pod:1472
9581 msgid "get-append"
9582 msgstr ""
9583
9584 #. type: verbatim
9585 #: ../fish/guestfish-actions.pod:1474
9586 #, no-wrap
9587 msgid ""
9588 " get-append\n"
9589 "\n"
9590 msgstr ""
9591
9592 #. type: textblock
9593 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
9594 msgid ""
9595 "Return the additional kernel options which are added to the guest kernel "
9596 "command line."
9597 msgstr ""
9598
9599 #. type: textblock
9600 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
9601 msgid "If C<NULL> then no options are added."
9602 msgstr ""
9603
9604 #. type: =head2
9605 #: ../fish/guestfish-actions.pod:1481
9606 msgid "get-attach-method"
9607 msgstr ""
9608
9609 #. type: verbatim
9610 #: ../fish/guestfish-actions.pod:1483
9611 #, no-wrap
9612 msgid ""
9613 " get-attach-method\n"
9614 "\n"
9615 msgstr ""
9616
9617 #. type: textblock
9618 #: ../fish/guestfish-actions.pod:1485
9619 msgid "Return the current attach method.  See L</set-attach-method>."
9620 msgstr ""
9621
9622 #. type: =head2
9623 #: ../fish/guestfish-actions.pod:1487
9624 msgid "get-autosync"
9625 msgstr ""
9626
9627 #. type: verbatim
9628 #: ../fish/guestfish-actions.pod:1489
9629 #, no-wrap
9630 msgid ""
9631 " get-autosync\n"
9632 "\n"
9633 msgstr ""
9634
9635 #. type: textblock
9636 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9637 msgid "Get the autosync flag."
9638 msgstr ""
9639
9640 #. type: =head2
9641 #: ../fish/guestfish-actions.pod:1493
9642 msgid "get-direct"
9643 msgstr ""
9644
9645 #. type: verbatim
9646 #: ../fish/guestfish-actions.pod:1495
9647 #, no-wrap
9648 msgid ""
9649 " get-direct\n"
9650 "\n"
9651 msgstr ""
9652
9653 #. type: textblock
9654 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9655 msgid "Return the direct appliance mode flag."
9656 msgstr ""
9657
9658 #. type: =head2
9659 #: ../fish/guestfish-actions.pod:1499
9660 msgid "get-e2label"
9661 msgstr ""
9662
9663 #. type: verbatim
9664 #: ../fish/guestfish-actions.pod:1501
9665 #, no-wrap
9666 msgid ""
9667 " get-e2label device\n"
9668 "\n"
9669 msgstr ""
9670
9671 #. type: textblock
9672 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9673 msgid ""
9674 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9675 msgstr ""
9676
9677 #. type: textblock
9678 #: ../fish/guestfish-actions.pod:1506
9679 msgid ""
9680 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9681 "instead."
9682 msgstr ""
9683
9684 #. type: =head2
9685 #: ../fish/guestfish-actions.pod:1513
9686 msgid "get-e2uuid"
9687 msgstr ""
9688
9689 #. type: verbatim
9690 #: ../fish/guestfish-actions.pod:1515
9691 #, no-wrap
9692 msgid ""
9693 " get-e2uuid device\n"
9694 "\n"
9695 msgstr ""
9696
9697 #. type: textblock
9698 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9699 msgid ""
9700 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9701 msgstr ""
9702
9703 #. type: textblock
9704 #: ../fish/guestfish-actions.pod:1520
9705 msgid ""
9706 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9707 "instead."
9708 msgstr ""
9709
9710 #. type: =head2
9711 #: ../fish/guestfish-actions.pod:1527
9712 msgid "get-memsize"
9713 msgstr ""
9714
9715 #. type: verbatim
9716 #: ../fish/guestfish-actions.pod:1529
9717 #, no-wrap
9718 msgid ""
9719 " get-memsize\n"
9720 "\n"
9721 msgstr ""
9722
9723 #. type: textblock
9724 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9725 msgid ""
9726 "This gets the memory size in megabytes allocated to the qemu subprocess."
9727 msgstr ""
9728
9729 #. type: textblock
9730 #: ../fish/guestfish-actions.pod:1534
9731 msgid ""
9732 "If L</set-memsize> was not called on this handle, and if "
9733 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9734 "value for memsize."
9735 msgstr ""
9736
9737 #. type: textblock
9738 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
9739 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4462
9740 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
9741 #: ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6881
9742 msgid ""
9743 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9744 msgstr ""
9745
9746 #. type: =head2
9747 #: ../fish/guestfish-actions.pod:1541
9748 msgid "get-network"
9749 msgstr ""
9750
9751 #. type: verbatim
9752 #: ../fish/guestfish-actions.pod:1543
9753 #, no-wrap
9754 msgid ""
9755 " get-network\n"
9756 "\n"
9757 msgstr ""
9758
9759 #. type: textblock
9760 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9761 msgid "This returns the enable network flag."
9762 msgstr ""
9763
9764 #. type: =head2
9765 #: ../fish/guestfish-actions.pod:1547
9766 msgid "get-path"
9767 msgstr ""
9768
9769 #. type: verbatim
9770 #: ../fish/guestfish-actions.pod:1549
9771 #, no-wrap
9772 msgid ""
9773 " get-path\n"
9774 "\n"
9775 msgstr ""
9776
9777 #. type: textblock
9778 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9779 msgid "Return the current search path."
9780 msgstr ""
9781
9782 #. type: textblock
9783 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9784 msgid ""
9785 "This is always non-NULL.  If it wasn't set already, then this will return "
9786 "the default path."
9787 msgstr ""
9788
9789 #. type: =head2
9790 #: ../fish/guestfish-actions.pod:1556
9791 msgid "get-pgroup"
9792 msgstr ""
9793
9794 #. type: verbatim
9795 #: ../fish/guestfish-actions.pod:1558
9796 #, no-wrap
9797 msgid ""
9798 " get-pgroup\n"
9799 "\n"
9800 msgstr ""
9801
9802 #. type: textblock
9803 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9804 msgid "This returns the process group flag."
9805 msgstr ""
9806
9807 #. type: =head2
9808 #: ../fish/guestfish-actions.pod:1562
9809 msgid "get-pid"
9810 msgstr ""
9811
9812 #. type: =head2
9813 #: ../fish/guestfish-actions.pod:1564
9814 msgid "pid"
9815 msgstr ""
9816
9817 #. type: verbatim
9818 #: ../fish/guestfish-actions.pod:1566
9819 #, no-wrap
9820 msgid ""
9821 " get-pid\n"
9822 "\n"
9823 msgstr ""
9824
9825 #. type: textblock
9826 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9827 msgid ""
9828 "Return the process ID of the qemu subprocess.  If there is no qemu "
9829 "subprocess, then this will return an error."
9830 msgstr ""
9831
9832 #. type: textblock
9833 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9834 msgid "This is an internal call used for debugging and testing."
9835 msgstr ""
9836
9837 #. type: =head2
9838 #: ../fish/guestfish-actions.pod:1573
9839 msgid "get-qemu"
9840 msgstr ""
9841
9842 #. type: verbatim
9843 #: ../fish/guestfish-actions.pod:1575
9844 #, no-wrap
9845 msgid ""
9846 " get-qemu\n"
9847 "\n"
9848 msgstr ""
9849
9850 #. type: textblock
9851 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9852 msgid "Return the current qemu binary."
9853 msgstr ""
9854
9855 #. type: textblock
9856 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9857 msgid ""
9858 "This is always non-NULL.  If it wasn't set already, then this will return "
9859 "the default qemu binary name."
9860 msgstr ""
9861
9862 #. type: =head2
9863 #: ../fish/guestfish-actions.pod:1582
9864 msgid "get-recovery-proc"
9865 msgstr ""
9866
9867 #. type: verbatim
9868 #: ../fish/guestfish-actions.pod:1584
9869 #, no-wrap
9870 msgid ""
9871 " get-recovery-proc\n"
9872 "\n"
9873 msgstr ""
9874
9875 #. type: textblock
9876 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9877 msgid "Return the recovery process enabled flag."
9878 msgstr ""
9879
9880 #. type: =head2
9881 #: ../fish/guestfish-actions.pod:1588
9882 msgid "get-selinux"
9883 msgstr ""
9884
9885 #. type: verbatim
9886 #: ../fish/guestfish-actions.pod:1590
9887 #, no-wrap
9888 msgid ""
9889 " get-selinux\n"
9890 "\n"
9891 msgstr ""
9892
9893 #. type: textblock
9894 #: ../fish/guestfish-actions.pod:1592
9895 msgid ""
9896 "This returns the current setting of the selinux flag which is passed to the "
9897 "appliance at boot time.  See L</set-selinux>."
9898 msgstr ""
9899
9900 #. type: =head2
9901 #: ../fish/guestfish-actions.pod:1598
9902 msgid "get-smp"
9903 msgstr ""
9904
9905 #. type: verbatim
9906 #: ../fish/guestfish-actions.pod:1600
9907 #, no-wrap
9908 msgid ""
9909 " get-smp\n"
9910 "\n"
9911 msgstr ""
9912
9913 #. type: textblock
9914 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9915 msgid "This returns the number of virtual CPUs assigned to the appliance."
9916 msgstr ""
9917
9918 #. type: =head2
9919 #: ../fish/guestfish-actions.pod:1604
9920 msgid "get-state"
9921 msgstr ""
9922
9923 #. type: verbatim
9924 #: ../fish/guestfish-actions.pod:1606
9925 #, no-wrap
9926 msgid ""
9927 " get-state\n"
9928 "\n"
9929 msgstr ""
9930
9931 #. type: textblock
9932 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9933 msgid ""
9934 "This returns the current state as an opaque integer.  This is only useful "
9935 "for printing debug and internal error messages."
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9940 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9941 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582
9942 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930
9943 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
9944 msgid "For more information on states, see L<guestfs(3)>."
9945 msgstr ""
9946
9947 #. type: =head2
9948 #: ../fish/guestfish-actions.pod:1613
9949 msgid "get-trace"
9950 msgstr ""
9951
9952 #. type: verbatim
9953 #: ../fish/guestfish-actions.pod:1615
9954 #, no-wrap
9955 msgid ""
9956 " get-trace\n"
9957 "\n"
9958 msgstr ""
9959
9960 #. type: textblock
9961 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9962 msgid "Return the command trace flag."
9963 msgstr ""
9964
9965 #. type: =head2
9966 #: ../fish/guestfish-actions.pod:1619
9967 msgid "get-umask"
9968 msgstr ""
9969
9970 #. type: verbatim
9971 #: ../fish/guestfish-actions.pod:1621
9972 #, no-wrap
9973 msgid ""
9974 " get-umask\n"
9975 "\n"
9976 msgstr ""
9977
9978 #. type: textblock
9979 #: ../fish/guestfish-actions.pod:1623
9980 msgid ""
9981 "Return the current umask.  By default the umask is C<022> unless it has been "
9982 "set by calling L</umask>."
9983 msgstr ""
9984
9985 #. type: =head2
9986 #: ../fish/guestfish-actions.pod:1626
9987 msgid "get-verbose"
9988 msgstr ""
9989
9990 #. type: verbatim
9991 #: ../fish/guestfish-actions.pod:1628
9992 #, no-wrap
9993 msgid ""
9994 " get-verbose\n"
9995 "\n"
9996 msgstr ""
9997
9998 #. type: textblock
9999 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
10000 msgid "This returns the verbose messages flag."
10001 msgstr ""
10002
10003 #. type: =head2
10004 #: ../fish/guestfish-actions.pod:1632
10005 msgid "getcon"
10006 msgstr ""
10007
10008 #. type: verbatim
10009 #: ../fish/guestfish-actions.pod:1634
10010 #, no-wrap
10011 msgid ""
10012 " getcon\n"
10013 "\n"
10014 msgstr ""
10015
10016 #. type: textblock
10017 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
10018 msgid "This gets the SELinux security context of the daemon."
10019 msgstr ""
10020
10021 #. type: textblock
10022 #: ../fish/guestfish-actions.pod:1638
10023 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
10024 msgstr ""
10025
10026 #. type: =head2
10027 #: ../fish/guestfish-actions.pod:1641
10028 msgid "getxattr"
10029 msgstr ""
10030
10031 #. type: verbatim
10032 #: ../fish/guestfish-actions.pod:1643
10033 #, no-wrap
10034 msgid ""
10035 " getxattr path name\n"
10036 "\n"
10037 msgstr ""
10038
10039 #. type: textblock
10040 #: ../fish/guestfish-actions.pod:1645
10041 msgid ""
10042 "Get a single extended attribute from file C<path> named C<name>.  This call "
10043 "follows symlinks.  If you want to lookup an extended attribute for the "
10044 "symlink itself, use L</lgetxattr>."
10045 msgstr ""
10046
10047 #. type: textblock
10048 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
10049 msgid ""
10050 "Normally it is better to get all extended attributes from a file in one go "
10051 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
10052 "buggy and do not provide a way to list out attributes.  For these "
10053 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
10054 "attributes you want in advance and call this function."
10055 msgstr ""
10056
10057 #. type: textblock
10058 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
10059 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
10060 msgid ""
10061 "Extended attribute values are blobs of binary data.  If there is no extended "
10062 "attribute named C<name>, this returns an error."
10063 msgstr ""
10064
10065 #. type: textblock
10066 #: ../fish/guestfish-actions.pod:1659
10067 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10068 msgstr ""
10069
10070 #. type: =head2
10071 #: ../fish/guestfish-actions.pod:1661
10072 msgid "getxattrs"
10073 msgstr ""
10074
10075 #. type: verbatim
10076 #: ../fish/guestfish-actions.pod:1663
10077 #, no-wrap
10078 msgid ""
10079 " getxattrs path\n"
10080 "\n"
10081 msgstr ""
10082
10083 #. type: textblock
10084 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
10085 msgid ""
10086 "This call lists the extended attributes of the file or directory C<path>."
10087 msgstr ""
10088
10089 #. type: textblock
10090 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
10091 msgid ""
10092 "At the system call level, this is a combination of the L<listxattr(2)> and "
10093 "L<getxattr(2)> calls."
10094 msgstr ""
10095
10096 #. type: textblock
10097 #: ../fish/guestfish-actions.pod:1671
10098 msgid "See also: L</lgetxattrs>, L<attr(5)>."
10099 msgstr ""
10100
10101 #. type: =head2
10102 #: ../fish/guestfish-actions.pod:1673
10103 msgid "glob-expand"
10104 msgstr ""
10105
10106 #. type: verbatim
10107 #: ../fish/guestfish-actions.pod:1675
10108 #, no-wrap
10109 msgid ""
10110 " glob-expand pattern\n"
10111 "\n"
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
10116 msgid ""
10117 "This command searches for all the pathnames matching C<pattern> according to "
10118 "the wildcard expansion rules used by the shell."
10119 msgstr ""
10120
10121 #. type: textblock
10122 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
10123 msgid ""
10124 "If no paths match, then this returns an empty list (note: not an error)."
10125 msgstr ""
10126
10127 #. type: textblock
10128 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
10129 msgid ""
10130 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10131 "GLOB_BRACE>.  See that manual page for more details."
10132 msgstr ""
10133
10134 #. type: =head2
10135 #: ../fish/guestfish-actions.pod:1688
10136 msgid "grep"
10137 msgstr ""
10138
10139 #. type: verbatim
10140 #: ../fish/guestfish-actions.pod:1690
10141 #, no-wrap
10142 msgid ""
10143 " grep regex path\n"
10144 "\n"
10145 msgstr ""
10146
10147 #. type: textblock
10148 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
10149 msgid "This calls the external C<grep> program and returns the matching lines."
10150 msgstr ""
10151
10152 #. type: =head2
10153 #: ../fish/guestfish-actions.pod:1698
10154 msgid "grepi"
10155 msgstr ""
10156
10157 #. type: verbatim
10158 #: ../fish/guestfish-actions.pod:1700
10159 #, no-wrap
10160 msgid ""
10161 " grepi regex path\n"
10162 "\n"
10163 msgstr ""
10164
10165 #. type: textblock
10166 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
10167 msgid ""
10168 "This calls the external C<grep -i> program and returns the matching lines."
10169 msgstr ""
10170
10171 #. type: =head2
10172 #: ../fish/guestfish-actions.pod:1708
10173 msgid "grub-install"
10174 msgstr ""
10175
10176 #. type: verbatim
10177 #: ../fish/guestfish-actions.pod:1710
10178 #, no-wrap
10179 msgid ""
10180 " grub-install root device\n"
10181 "\n"
10182 msgstr ""
10183
10184 #. type: textblock
10185 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
10186 msgid ""
10187 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
10188 "with the root directory being C<root>."
10189 msgstr ""
10190
10191 #. type: textblock
10192 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
10193 msgid ""
10194 "There is currently no way in the API to install grub2, which is used by most "
10195 "modern Linux guests.  It is possible to run the grub2 command from the "
10196 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
10197 msgstr ""
10198
10199 #. type: textblock
10200 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
10201 msgid ""
10202 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
10203 "compatible with itself, so this only works in rather narrow circumstances.  "
10204 "Careful testing with each guest version is advisable."
10205 msgstr ""
10206
10207 #. type: textblock
10208 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
10209 msgid ""
10210 "If grub-install reports the error \"No suitable drive was found in the "
10211 "generated device map.\" it may be that you need to create a C</boot/grub/"
10212 "device.map> file first that contains the mapping between grub device names "
10213 "and Linux device names.  It is usually sufficient to create a file "
10214 "containing:"
10215 msgstr ""
10216
10217 #. type: verbatim
10218 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
10219 #, no-wrap
10220 msgid ""
10221 " (hd0) /dev/vda\n"
10222 "\n"
10223 msgstr ""
10224
10225 #. type: textblock
10226 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
10227 msgid "replacing C</dev/vda> with the name of the installation device."
10228 msgstr ""
10229
10230 #. type: =head2
10231 #: ../fish/guestfish-actions.pod:1748
10232 msgid "head"
10233 msgstr ""
10234
10235 #. type: verbatim
10236 #: ../fish/guestfish-actions.pod:1750
10237 #, no-wrap
10238 msgid ""
10239 " head path\n"
10240 "\n"
10241 msgstr ""
10242
10243 #. type: textblock
10244 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
10245 msgid ""
10246 "This command returns up to the first 10 lines of a file as a list of strings."
10247 msgstr ""
10248
10249 #. type: =head2
10250 #: ../fish/guestfish-actions.pod:1758
10251 msgid "head-n"
10252 msgstr ""
10253
10254 #. type: verbatim
10255 #: ../fish/guestfish-actions.pod:1760
10256 #, no-wrap
10257 msgid ""
10258 " head-n nrlines path\n"
10259 "\n"
10260 msgstr ""
10261
10262 #. type: textblock
10263 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
10264 msgid ""
10265 "If the parameter C<nrlines> is a positive number, this returns the first "
10266 "C<nrlines> lines of the file C<path>."
10267 msgstr ""
10268
10269 #. type: textblock
10270 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
10271 msgid ""
10272 "If the parameter C<nrlines> is a negative number, this returns lines from "
10273 "the file C<path>, excluding the last C<nrlines> lines."
10274 msgstr ""
10275
10276 #. type: textblock
10277 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4843
10278 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7460
10279 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10280 msgstr ""
10281
10282 #. type: =head2
10283 #: ../fish/guestfish-actions.pod:1773
10284 msgid "hexdump"
10285 msgstr ""
10286
10287 #. type: verbatim
10288 #: ../fish/guestfish-actions.pod:1775
10289 #, no-wrap
10290 msgid ""
10291 " hexdump path\n"
10292 "\n"
10293 msgstr ""
10294
10295 #. type: textblock
10296 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
10297 msgid ""
10298 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10299 "readable, canonical hex dump of the file."
10300 msgstr ""
10301
10302 #. type: =head2
10303 #: ../fish/guestfish-actions.pod:1783
10304 msgid "initrd-cat"
10305 msgstr ""
10306
10307 #. type: verbatim
10308 #: ../fish/guestfish-actions.pod:1785
10309 #, no-wrap
10310 msgid ""
10311 " initrd-cat initrdpath filename\n"
10312 "\n"
10313 msgstr ""
10314
10315 #. type: textblock
10316 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
10317 msgid ""
10318 "This command unpacks the file C<filename> from the initrd file called "
10319 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10320 "character."
10321 msgstr ""
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
10325 msgid ""
10326 "For example, in guestfish you could use the following command to examine the "
10327 "boot script (usually called C</init>)  contained in a Linux initrd or "
10328 "initramfs image:"
10329 msgstr ""
10330
10331 #. type: verbatim
10332 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
10333 #, no-wrap
10334 msgid ""
10335 " initrd-cat /boot/initrd-<version>.img init\n"
10336 "\n"
10337 msgstr ""
10338
10339 #. type: textblock
10340 #: ../fish/guestfish-actions.pod:1797
10341 msgid "See also L</initrd-list>."
10342 msgstr ""
10343
10344 #. type: =head2
10345 #: ../fish/guestfish-actions.pod:1802
10346 msgid "initrd-list"
10347 msgstr ""
10348
10349 #. type: verbatim
10350 #: ../fish/guestfish-actions.pod:1804
10351 #, no-wrap
10352 msgid ""
10353 " initrd-list path\n"
10354 "\n"
10355 msgstr ""
10356
10357 #. type: textblock
10358 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
10359 msgid "This command lists out files contained in an initrd."
10360 msgstr ""
10361
10362 #. type: textblock
10363 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
10364 msgid ""
10365 "The files are listed without any initial C</> character.  The files are "
10366 "listed in the order they appear (not necessarily alphabetical).  Directory "
10367 "names are listed as separate items."
10368 msgstr ""
10369
10370 #. type: textblock
10371 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
10372 msgid ""
10373 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10374 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10375 "files)."
10376 msgstr ""
10377
10378 #. type: =head2
10379 #: ../fish/guestfish-actions.pod:1816
10380 msgid "inotify-add-watch"
10381 msgstr ""
10382
10383 #. type: verbatim
10384 #: ../fish/guestfish-actions.pod:1818
10385 #, no-wrap
10386 msgid ""
10387 " inotify-add-watch path mask\n"
10388 "\n"
10389 msgstr ""
10390
10391 #. type: textblock
10392 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
10393 msgid "Watch C<path> for the events listed in C<mask>."
10394 msgstr ""
10395
10396 #. type: textblock
10397 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
10398 msgid ""
10399 "Note that if C<path> is a directory then events within that directory are "
10400 "watched, but this does I<not> happen recursively (in subdirectories)."
10401 msgstr ""
10402
10403 #. type: textblock
10404 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
10405 msgid ""
10406 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10407 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10408 msgstr ""
10409
10410 #. type: =head2
10411 #: ../fish/guestfish-actions.pod:1830
10412 msgid "inotify-close"
10413 msgstr ""
10414
10415 #. type: verbatim
10416 #: ../fish/guestfish-actions.pod:1832
10417 #, no-wrap
10418 msgid ""
10419 " inotify-close\n"
10420 "\n"
10421 msgstr ""
10422
10423 #. type: textblock
10424 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
10425 msgid ""
10426 "This closes the inotify handle which was previously opened by inotify_init.  "
10427 "It removes all watches, throws away any pending events, and deallocates all "
10428 "resources."
10429 msgstr ""
10430
10431 #. type: =head2
10432 #: ../fish/guestfish-actions.pod:1838
10433 msgid "inotify-files"
10434 msgstr ""
10435
10436 #. type: verbatim
10437 #: ../fish/guestfish-actions.pod:1840
10438 #, no-wrap
10439 msgid ""
10440 " inotify-files\n"
10441 "\n"
10442 msgstr ""
10443
10444 #. type: textblock
10445 #: ../fish/guestfish-actions.pod:1842
10446 msgid ""
10447 "This function is a helpful wrapper around L</inotify-read> which just "
10448 "returns a list of pathnames of objects that were touched.  The returned "
10449 "pathnames are sorted and deduplicated."
10450 msgstr ""
10451
10452 #. type: =head2
10453 #: ../fish/guestfish-actions.pod:1846
10454 msgid "inotify-init"
10455 msgstr ""
10456
10457 #. type: verbatim
10458 #: ../fish/guestfish-actions.pod:1848
10459 #, no-wrap
10460 msgid ""
10461 " inotify-init maxevents\n"
10462 "\n"
10463 msgstr ""
10464
10465 #. type: textblock
10466 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
10467 msgid ""
10468 "This command creates a new inotify handle.  The inotify subsystem can be "
10469 "used to notify events which happen to objects in the guest filesystem."
10470 msgstr ""
10471
10472 #. type: textblock
10473 #: ../fish/guestfish-actions.pod:1854
10474 msgid ""
10475 "C<maxevents> is the maximum number of events which will be queued up between "
10476 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
10477 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
10478 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
10479 "but records the fact that it threw them away by setting a flag "
10480 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
10481 msgstr ""
10482
10483 #. type: textblock
10484 #: ../fish/guestfish-actions.pod:1864
10485 msgid ""
10486 "Before any events are generated, you have to add some watches to the "
10487 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
10488 "L</inotify-watch-all>."
10489 msgstr ""
10490
10491 #. type: textblock
10492 #: ../fish/guestfish-actions.pod:1870
10493 msgid ""
10494 "Queued up events should be read periodically by calling L</inotify-read> (or "
10495 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
10496 "If you don't read the events out often enough then you risk the internal "
10497 "queue overflowing."
10498 msgstr ""
10499
10500 #. type: textblock
10501 #: ../fish/guestfish-actions.pod:1877
10502 msgid ""
10503 "The handle should be closed after use by calling L</inotify-close>.  This "
10504 "also removes any watches automatically."
10505 msgstr ""
10506
10507 #. type: textblock
10508 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
10509 msgid ""
10510 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10511 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10512 "that there is one global inotify handle per libguestfs instance."
10513 msgstr ""
10514
10515 #. type: =head2
10516 #: ../fish/guestfish-actions.pod:1886
10517 msgid "inotify-read"
10518 msgstr ""
10519
10520 #. type: verbatim
10521 #: ../fish/guestfish-actions.pod:1888
10522 #, no-wrap
10523 msgid ""
10524 " inotify-read\n"
10525 "\n"
10526 msgstr ""
10527
10528 #. type: textblock
10529 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
10530 msgid ""
10531 "Return the complete queue of events that have happened since the previous "
10532 "read call."
10533 msgstr ""
10534
10535 #. type: textblock
10536 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
10537 msgid "If no events have happened, this returns an empty list."
10538 msgstr ""
10539
10540 #. type: textblock
10541 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
10542 msgid ""
10543 "I<Note>: In order to make sure that all events have been read, you must call "
10544 "this function repeatedly until it returns an empty list.  The reason is that "
10545 "the call will read events up to the maximum appliance-to-host message size "
10546 "and leave remaining events in the queue."
10547 msgstr ""
10548
10549 #. type: =head2
10550 #: ../fish/guestfish-actions.pod:1901
10551 msgid "inotify-rm-watch"
10552 msgstr ""
10553
10554 #. type: verbatim
10555 #: ../fish/guestfish-actions.pod:1903
10556 #, no-wrap
10557 msgid ""
10558 " inotify-rm-watch wd\n"
10559 "\n"
10560 msgstr ""
10561
10562 #. type: textblock
10563 #: ../fish/guestfish-actions.pod:1905
10564 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10565 msgstr ""
10566
10567 #. type: =head2
10568 #: ../fish/guestfish-actions.pod:1908
10569 msgid "inspect-get-arch"
10570 msgstr ""
10571
10572 #. type: verbatim
10573 #: ../fish/guestfish-actions.pod:1910
10574 #, no-wrap
10575 msgid ""
10576 " inspect-get-arch root\n"
10577 "\n"
10578 msgstr ""
10579
10580 #. type: textblock
10581 #: ../fish/guestfish-actions.pod:1912
10582 msgid ""
10583 "This returns the architecture of the inspected operating system.  The "
10584 "possible return values are listed under L</file-architecture>."
10585 msgstr ""
10586
10587 #. type: textblock
10588 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
10589 msgid ""
10590 "If the architecture could not be determined, then the string C<unknown> is "
10591 "returned."
10592 msgstr ""
10593
10594 #. type: textblock
10595 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10596 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10597 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10598 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10599 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
10600 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
10601 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
10602 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
10603 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048
10604 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
10605 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
10606 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
10607 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
10608 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654
10609 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691
10610 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725
10611 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
10612 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10613 msgstr ""
10614
10615 #. type: =head2
10616 #: ../fish/guestfish-actions.pod:1921
10617 msgid "inspect-get-distro"
10618 msgstr ""
10619
10620 #. type: verbatim
10621 #: ../fish/guestfish-actions.pod:1923
10622 #, no-wrap
10623 msgid ""
10624 " inspect-get-distro root\n"
10625 "\n"
10626 msgstr ""
10627
10628 #. type: textblock
10629 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
10630 msgid ""
10631 "This returns the distro (distribution) of the inspected operating system."
10632 msgstr ""
10633
10634 #. type: textblock
10635 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
10636 msgid "Currently defined distros are:"
10637 msgstr ""
10638
10639 #. type: =item
10640 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
10641 msgid "\"archlinux\""
10642 msgstr ""
10643
10644 #. type: textblock
10645 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
10646 msgid "Arch Linux."
10647 msgstr ""
10648
10649 #. type: =item
10650 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10651 msgid "\"centos\""
10652 msgstr ""
10653
10654 #. type: textblock
10655 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10656 msgid "CentOS."
10657 msgstr ""
10658
10659 #. type: =item
10660 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10661 msgid "\"debian\""
10662 msgstr ""
10663
10664 #. type: textblock
10665 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10666 msgid "Debian."
10667 msgstr ""
10668
10669 #. type: =item
10670 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
10671 msgid "\"fedora\""
10672 msgstr ""
10673
10674 #. type: textblock
10675 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
10676 msgid "Fedora."
10677 msgstr ""
10678
10679 #. type: =item
10680 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
10681 msgid "\"gentoo\""
10682 msgstr ""
10683
10684 #. type: textblock
10685 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
10686 msgid "Gentoo."
10687 msgstr ""
10688
10689 #. type: =item
10690 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
10691 msgid "\"linuxmint\""
10692 msgstr ""
10693
10694 #. type: textblock
10695 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
10696 msgid "Linux Mint."
10697 msgstr ""
10698
10699 #. type: =item
10700 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
10701 msgid "\"mageia\""
10702 msgstr ""
10703
10704 #. type: textblock
10705 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
10706 msgid "Mageia."
10707 msgstr ""
10708
10709 #. type: =item
10710 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
10711 msgid "\"mandriva\""
10712 msgstr ""
10713
10714 #. type: textblock
10715 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
10716 msgid "Mandriva."
10717 msgstr ""
10718
10719 #. type: =item
10720 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
10721 msgid "\"meego\""
10722 msgstr ""
10723
10724 #. type: textblock
10725 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
10726 msgid "MeeGo."
10727 msgstr ""
10728
10729 #. type: =item
10730 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
10731 msgid "\"opensuse\""
10732 msgstr ""
10733
10734 #. type: textblock
10735 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
10736 msgid "OpenSUSE."
10737 msgstr ""
10738
10739 #. type: =item
10740 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
10741 msgid "\"pardus\""
10742 msgstr ""
10743
10744 #. type: textblock
10745 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
10746 msgid "Pardus."
10747 msgstr ""
10748
10749 #. type: =item
10750 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
10751 msgid "\"redhat-based\""
10752 msgstr ""
10753
10754 #. type: textblock
10755 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10756 msgid "Some Red Hat-derived distro."
10757 msgstr ""
10758
10759 #. type: =item
10760 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10761 msgid "\"rhel\""
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10766 msgid "Red Hat Enterprise Linux."
10767 msgstr ""
10768
10769 #. type: =item
10770 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10771 msgid "\"scientificlinux\""
10772 msgstr ""
10773
10774 #. type: textblock
10775 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10776 msgid "Scientific Linux."
10777 msgstr ""
10778
10779 #. type: =item
10780 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10781 msgid "\"slackware\""
10782 msgstr ""
10783
10784 #. type: textblock
10785 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10786 msgid "Slackware."
10787 msgstr ""
10788
10789 #. type: =item
10790 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10791 msgid "\"ttylinux\""
10792 msgstr ""
10793
10794 #. type: textblock
10795 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10796 msgid "ttylinux."
10797 msgstr ""
10798
10799 #. type: =item
10800 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10801 msgid "\"ubuntu\""
10802 msgstr ""
10803
10804 #. type: textblock
10805 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10806 msgid "Ubuntu."
10807 msgstr ""
10808
10809 #. type: =item
10810 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10811 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136
10812 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
10813 msgid "\"unknown\""
10814 msgstr ""
10815
10816 #. type: textblock
10817 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10818 msgid "The distro could not be determined."
10819 msgstr ""
10820
10821 #. type: =item
10822 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10823 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10824 msgid "\"windows\""
10825 msgstr ""
10826
10827 #. type: textblock
10828 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10829 msgid ""
10830 "Windows does not have distributions.  This string is returned if the OS type "
10831 "is Windows."
10832 msgstr ""
10833
10834 #. type: textblock
10835 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10836 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147
10837 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
10838 msgid ""
10839 "Future versions of libguestfs may return other strings here.  The caller "
10840 "should be prepared to handle any string."
10841 msgstr ""
10842
10843 #. type: =head2
10844 #: ../fish/guestfish-actions.pod:2016
10845 msgid "inspect-get-drive-mappings"
10846 msgstr ""
10847
10848 #. type: verbatim
10849 #: ../fish/guestfish-actions.pod:2018
10850 #, no-wrap
10851 msgid ""
10852 " inspect-get-drive-mappings root\n"
10853 "\n"
10854 msgstr ""
10855
10856 #. type: textblock
10857 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10858 msgid ""
10859 "This call is useful for Windows which uses a primitive system of assigning "
10860 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10861 "Windows Registry to find out how disks/partitions are mapped to drive "
10862 "letters, and returns a hash table as in the example below:"
10863 msgstr ""
10864
10865 #. type: verbatim
10866 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10867 #, no-wrap
10868 msgid ""
10869 " C      =>     /dev/vda2\n"
10870 " E      =>     /dev/vdb1\n"
10871 " F      =>     /dev/vdc1\n"
10872 "\n"
10873 msgstr ""
10874
10875 #. type: textblock
10876 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10877 msgid ""
10878 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10879 "and just contains the drive letter, without the customary colon separator "
10880 "character."
10881 msgstr ""
10882
10883 #. type: textblock
10884 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10885 msgid ""
10886 "In future we may support other operating systems that also used drive "
10887 "letters, but the keys for those might not be case insensitive and might be "
10888 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10889 "C<h1> etc."
10890 msgstr ""
10891
10892 #. type: textblock
10893 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10894 msgid ""
10895 "For Windows guests, currently only hard drive mappings are returned.  "
10896 "Removable disks (eg. DVD-ROMs) are ignored."
10897 msgstr ""
10898
10899 #. type: textblock
10900 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10901 msgid ""
10902 "For guests that do not use drive mappings, or if the drive mappings could "
10903 "not be determined, this returns an empty hash table."
10904 msgstr ""
10905
10906 #. type: textblock
10907 #: ../fish/guestfish-actions.pod:2045
10908 msgid ""
10909 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10910 "get-mountpoints>, L</inspect-get-filesystems>."
10911 msgstr ""
10912
10913 #. type: =head2
10914 #: ../fish/guestfish-actions.pod:2049
10915 msgid "inspect-get-filesystems"
10916 msgstr ""
10917
10918 #. type: verbatim
10919 #: ../fish/guestfish-actions.pod:2051
10920 #, no-wrap
10921 msgid ""
10922 " inspect-get-filesystems root\n"
10923 "\n"
10924 msgstr ""
10925
10926 #. type: textblock
10927 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10928 msgid ""
10929 "This returns a list of all the filesystems that we think are associated with "
10930 "this operating system.  This includes the root filesystem, other ordinary "
10931 "filesystems, and non-mounted devices like swap partitions."
10932 msgstr ""
10933
10934 #. type: textblock
10935 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10936 msgid ""
10937 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10938 "to be shared between operating systems."
10939 msgstr ""
10940
10941 #. type: textblock
10942 #: ../fish/guestfish-actions.pod:2061
10943 msgid ""
10944 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10945 "get-mountpoints>."
10946 msgstr ""
10947
10948 #. type: =head2
10949 #: ../fish/guestfish-actions.pod:2064
10950 msgid "inspect-get-format"
10951 msgstr ""
10952
10953 #. type: verbatim
10954 #: ../fish/guestfish-actions.pod:2066
10955 #, no-wrap
10956 msgid ""
10957 " inspect-get-format root\n"
10958 "\n"
10959 msgstr ""
10960
10961 #. type: textblock
10962 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10963 msgid ""
10964 "This returns the format of the inspected operating system.  You can use it "
10965 "to detect install images, live CDs and similar."
10966 msgstr ""
10967
10968 #. type: textblock
10969 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10970 msgid "Currently defined formats are:"
10971 msgstr ""
10972
10973 #. type: =item
10974 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10975 msgid "\"installed\""
10976 msgstr ""
10977
10978 #. type: textblock
10979 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10980 msgid "This is an installed operating system."
10981 msgstr ""
10982
10983 #. type: =item
10984 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10985 msgid "\"installer\""
10986 msgstr ""
10987
10988 #. type: textblock
10989 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10990 msgid ""
10991 "The disk image being inspected is not an installed operating system, but a "
10992 "I<bootable> install disk, live CD, or similar."
10993 msgstr ""
10994
10995 #. type: textblock
10996 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10997 msgid "The format of this disk image is not known."
10998 msgstr ""
10999
11000 #. type: =head2
11001 #: ../fish/guestfish-actions.pod:2095
11002 msgid "inspect-get-hostname"
11003 msgstr ""
11004
11005 #. type: verbatim
11006 #: ../fish/guestfish-actions.pod:2097
11007 #, no-wrap
11008 msgid ""
11009 " inspect-get-hostname root\n"
11010 "\n"
11011 msgstr ""
11012
11013 #. type: textblock
11014 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
11015 msgid ""
11016 "This function returns the hostname of the operating system as found by "
11017 "inspection of the guest's configuration files."
11018 msgstr ""
11019
11020 #. type: textblock
11021 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
11022 msgid ""
11023 "If the hostname could not be determined, then the string C<unknown> is "
11024 "returned."
11025 msgstr ""
11026
11027 #. type: =head2
11028 #: ../fish/guestfish-actions.pod:2107
11029 msgid "inspect-get-icon"
11030 msgstr ""
11031
11032 #. type: verbatim
11033 #: ../fish/guestfish-actions.pod:2109
11034 #, no-wrap
11035 msgid ""
11036 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
11037 "\n"
11038 msgstr ""
11039
11040 #. type: textblock
11041 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
11042 msgid ""
11043 "This function returns an icon corresponding to the inspected operating "
11044 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
11045 "to PNG if necessary)."
11046 msgstr ""
11047
11048 #. type: textblock
11049 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
11050 msgid ""
11051 "If it was not possible to get an icon this function returns a zero-length "
11052 "(non-NULL) buffer.  I<Callers must check for this case>."
11053 msgstr ""
11054
11055 #. type: textblock
11056 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
11057 msgid ""
11058 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
11059 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
11060 "this file will be returned.  You can disable favicons by passing the "
11061 "optional C<favicon> boolean as false (default is true)."
11062 msgstr ""
11063
11064 #. type: textblock
11065 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
11066 msgid ""
11067 "If finding the favicon fails, then we look in other places in the guest for "
11068 "a suitable icon."
11069 msgstr ""
11070
11071 #. type: textblock
11072 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
11073 msgid ""
11074 "If the optional C<highquality> boolean is true then only high quality icons "
11075 "are returned, which means only icons of high resolution with an alpha "
11076 "channel.  The default (false) is to return any icon we can, even if it is of "
11077 "substandard quality."
11078 msgstr ""
11079
11080 #. type: textblock
11081 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
11082 msgid ""
11083 "Unlike most other inspection API calls, the guest's disks must be mounted up "
11084 "before you call this, since it needs to read information from the guest "
11085 "filesystem during the call."
11086 msgstr ""
11087
11088 #. type: textblock
11089 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
11090 msgid ""
11091 "B<Security:> The icon data comes from the untrusted guest, and should be "
11092 "treated with caution.  PNG files have been known to contain exploits.  "
11093 "Ensure that libpng (or other relevant libraries) are fully up to date before "
11094 "trying to process or display the icon."
11095 msgstr ""
11096
11097 #. type: textblock
11098 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
11099 msgid ""
11100 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
11101 "tries to return the largest, highest quality icon available.  The "
11102 "application must scale the icon to the required size."
11103 msgstr ""
11104
11105 #. type: textblock
11106 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
11107 msgid ""
11108 "Extracting icons from Windows guests requires the external C<wrestool> "
11109 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
11110 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
11111 "installed separately."
11112 msgstr ""
11113
11114 #. type: textblock
11115 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
11116 msgid ""
11117 "Operating system icons are usually trademarks.  Seek legal advice before "
11118 "using trademarks in applications."
11119 msgstr ""
11120
11121 #. type: =head2
11122 #: ../fish/guestfish-actions.pod:2173
11123 msgid "inspect-get-major-version"
11124 msgstr ""
11125
11126 #. type: verbatim
11127 #: ../fish/guestfish-actions.pod:2175
11128 #, no-wrap
11129 msgid ""
11130 " inspect-get-major-version root\n"
11131 "\n"
11132 msgstr ""
11133
11134 #. type: textblock
11135 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
11136 msgid ""
11137 "This returns the major version number of the inspected operating system."
11138 msgstr ""
11139
11140 #. type: textblock
11141 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
11142 msgid ""
11143 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11144 "popular public names used by the operating system.  Notably the operating "
11145 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11146 "1).  You can find out the real versions corresponding to releases of Windows "
11147 "by consulting Wikipedia or MSDN."
11148 msgstr ""
11149
11150 #. type: textblock
11151 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
11152 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
11153 msgid "If the version could not be determined, then C<0> is returned."
11154 msgstr ""
11155
11156 #. type: =head2
11157 #: ../fish/guestfish-actions.pod:2191
11158 msgid "inspect-get-minor-version"
11159 msgstr ""
11160
11161 #. type: verbatim
11162 #: ../fish/guestfish-actions.pod:2193
11163 #, no-wrap
11164 msgid ""
11165 " inspect-get-minor-version root\n"
11166 "\n"
11167 msgstr ""
11168
11169 #. type: textblock
11170 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
11171 msgid ""
11172 "This returns the minor version number of the inspected operating system."
11173 msgstr ""
11174
11175 #. type: textblock
11176 #: ../fish/guestfish-actions.pod:2200
11177 msgid ""
11178 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11179 "get-major-version>."
11180 msgstr ""
11181
11182 #. type: =head2
11183 #: ../fish/guestfish-actions.pod:2203
11184 msgid "inspect-get-mountpoints"
11185 msgstr ""
11186
11187 #. type: verbatim
11188 #: ../fish/guestfish-actions.pod:2205
11189 #, no-wrap
11190 msgid ""
11191 " inspect-get-mountpoints root\n"
11192 "\n"
11193 msgstr ""
11194
11195 #. type: textblock
11196 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
11197 msgid ""
11198 "This returns a hash of where we think the filesystems associated with this "
11199 "operating system should be mounted.  Callers should note that this is at "
11200 "best an educated guess made by reading configuration files such as C</etc/"
11201 "fstab>.  I<In particular note> that this may return filesystems which are "
11202 "non-existent or not mountable and callers should be prepared to handle or "
11203 "ignore failures if they try to mount them."
11204 msgstr ""
11205
11206 #. type: textblock
11207 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
11208 msgid ""
11209 "Each element in the returned hashtable has a key which is the path of the "
11210 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11211 "mounted there (eg. C</dev/sda1>)."
11212 msgstr ""
11213
11214 #. type: textblock
11215 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
11216 msgid ""
11217 "Non-mounted devices such as swap devices are I<not> returned in this list."
11218 msgstr ""
11219
11220 #. type: textblock
11221 #: ../fish/guestfish-actions.pod:2224
11222 msgid ""
11223 "For operating systems like Windows which still use drive letters, this call "
11224 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11225 "information about the mapping of drive letters to partitions, see L</inspect-"
11226 "get-drive-mappings>."
11227 msgstr ""
11228
11229 #. type: textblock
11230 #: ../fish/guestfish-actions.pod:2230
11231 msgid ""
11232 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11233 "get-filesystems>."
11234 msgstr ""
11235
11236 #. type: =head2
11237 #: ../fish/guestfish-actions.pod:2233
11238 msgid "inspect-get-package-format"
11239 msgstr ""
11240
11241 #. type: verbatim
11242 #: ../fish/guestfish-actions.pod:2235
11243 #, no-wrap
11244 msgid ""
11245 " inspect-get-package-format root\n"
11246 "\n"
11247 msgstr ""
11248
11249 #. type: textblock
11250 #: ../fish/guestfish-actions.pod:2237
11251 msgid ""
11252 "This function and L</inspect-get-package-management> return the package "
11253 "format and package management tool used by the inspected operating system.  "
11254 "For example for Fedora these functions would return C<rpm> (package format) "
11255 "and C<yum> (package management)."
11256 msgstr ""
11257
11258 #. type: textblock
11259 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
11260 msgid ""
11261 "This returns the string C<unknown> if we could not determine the package "
11262 "format I<or> if the operating system does not have a real packaging system "
11263 "(eg. Windows)."
11264 msgstr ""
11265
11266 #. type: textblock
11267 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
11268 msgid ""
11269 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
11270 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
11271 msgstr ""
11272
11273 #. type: =head2
11274 #: ../fish/guestfish-actions.pod:2253
11275 msgid "inspect-get-package-management"
11276 msgstr ""
11277
11278 #. type: verbatim
11279 #: ../fish/guestfish-actions.pod:2255
11280 #, no-wrap
11281 msgid ""
11282 " inspect-get-package-management root\n"
11283 "\n"
11284 msgstr ""
11285
11286 #. type: textblock
11287 #: ../fish/guestfish-actions.pod:2257
11288 msgid ""
11289 "L</inspect-get-package-format> and this function return the package format "
11290 "and package management tool used by the inspected operating system.  For "
11291 "example for Fedora these functions would return C<rpm> (package format) and "
11292 "C<yum> (package management)."
11293 msgstr ""
11294
11295 #. type: textblock
11296 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
11297 msgid ""
11298 "This returns the string C<unknown> if we could not determine the package "
11299 "management tool I<or> if the operating system does not have a real packaging "
11300 "system (eg. Windows)."
11301 msgstr ""
11302
11303 #. type: textblock
11304 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
11305 msgid ""
11306 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11307 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
11308 "versions of libguestfs may return other strings."
11309 msgstr ""
11310
11311 #. type: =head2
11312 #: ../fish/guestfish-actions.pod:2274
11313 msgid "inspect-get-product-name"
11314 msgstr ""
11315
11316 #. type: verbatim
11317 #: ../fish/guestfish-actions.pod:2276
11318 #, no-wrap
11319 msgid ""
11320 " inspect-get-product-name root\n"
11321 "\n"
11322 msgstr ""
11323
11324 #. type: textblock
11325 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
11326 msgid ""
11327 "This returns the product name of the inspected operating system.  The "
11328 "product name is generally some freeform string which can be displayed to the "
11329 "user, but should not be parsed by programs."
11330 msgstr ""
11331
11332 #. type: textblock
11333 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
11334 msgid ""
11335 "If the product name could not be determined, then the string C<unknown> is "
11336 "returned."
11337 msgstr ""
11338
11339 #. type: =head2
11340 #: ../fish/guestfish-actions.pod:2288
11341 msgid "inspect-get-product-variant"
11342 msgstr ""
11343
11344 #. type: verbatim
11345 #: ../fish/guestfish-actions.pod:2290
11346 #, no-wrap
11347 msgid ""
11348 " inspect-get-product-variant root\n"
11349 "\n"
11350 msgstr ""
11351
11352 #. type: textblock
11353 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
11354 msgid "This returns the product variant of the inspected operating system."
11355 msgstr ""
11356
11357 #. type: textblock
11358 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
11359 msgid ""
11360 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11361 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11362 "is usually a string such as C<Client> or C<Server> (other values are "
11363 "possible).  This can be used to distinguish consumer and enterprise versions "
11364 "of Windows that have the same version number (for example, Windows 7 and "
11365 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11366 "the latter is C<Server>)."
11367 msgstr ""
11368
11369 #. type: textblock
11370 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
11371 msgid ""
11372 "For enterprise Linux guests, in future we intend this to return the product "
11373 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11374 "implemented at present."
11375 msgstr ""
11376
11377 #. type: textblock
11378 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
11379 msgid ""
11380 "If the product variant could not be determined, then the string C<unknown> "
11381 "is returned."
11382 msgstr ""
11383
11384 #. type: textblock
11385 #: ../fish/guestfish-actions.pod:2311
11386 msgid ""
11387 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11388 "get-product-name>, L</inspect-get-major-version>."
11389 msgstr ""
11390
11391 #. type: =head2
11392 #: ../fish/guestfish-actions.pod:2315
11393 msgid "inspect-get-roots"
11394 msgstr ""
11395
11396 #. type: verbatim
11397 #: ../fish/guestfish-actions.pod:2317
11398 #, no-wrap
11399 msgid ""
11400 " inspect-get-roots\n"
11401 "\n"
11402 msgstr ""
11403
11404 #. type: textblock
11405 #: ../fish/guestfish-actions.pod:2319
11406 msgid ""
11407 "This function is a convenient way to get the list of root devices, as "
11408 "returned from a previous call to L</inspect-os>, but without redoing the "
11409 "whole inspection process."
11410 msgstr ""
11411
11412 #. type: textblock
11413 #: ../fish/guestfish-actions.pod:2323
11414 msgid ""
11415 "This returns an empty list if either no root devices were found or the "
11416 "caller has not called L</inspect-os>."
11417 msgstr ""
11418
11419 #. type: =head2
11420 #: ../fish/guestfish-actions.pod:2328
11421 msgid "inspect-get-type"
11422 msgstr ""
11423
11424 #. type: verbatim
11425 #: ../fish/guestfish-actions.pod:2330
11426 #, no-wrap
11427 msgid ""
11428 " inspect-get-type root\n"
11429 "\n"
11430 msgstr ""
11431
11432 #. type: textblock
11433 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
11434 msgid ""
11435 "This returns the type of the inspected operating system.  Currently defined "
11436 "types are:"
11437 msgstr ""
11438
11439 #. type: =item
11440 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
11441 msgid "\"linux\""
11442 msgstr ""
11443
11444 #. type: textblock
11445 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
11446 msgid "Any Linux-based operating system."
11447 msgstr ""
11448
11449 #. type: textblock
11450 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
11451 msgid "Any Microsoft Windows operating system."
11452 msgstr ""
11453
11454 #. type: =item
11455 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
11456 msgid "\"freebsd\""
11457 msgstr ""
11458
11459 #. type: textblock
11460 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
11461 msgid "FreeBSD."
11462 msgstr ""
11463
11464 #. type: =item
11465 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
11466 msgid "\"netbsd\""
11467 msgstr ""
11468
11469 #. type: textblock
11470 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
11471 msgid "NetBSD."
11472 msgstr ""
11473
11474 #. type: textblock
11475 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
11476 msgid "The operating system type could not be determined."
11477 msgstr ""
11478
11479 #. type: =head2
11480 #: ../fish/guestfish-actions.pod:2364
11481 msgid "inspect-get-windows-current-control-set"
11482 msgstr ""
11483
11484 #. type: verbatim
11485 #: ../fish/guestfish-actions.pod:2366
11486 #, no-wrap
11487 msgid ""
11488 " inspect-get-windows-current-control-set root\n"
11489 "\n"
11490 msgstr ""
11491
11492 #. type: textblock
11493 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
11494 msgid ""
11495 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11496 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11497 msgstr ""
11498
11499 #. type: textblock
11500 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
11501 msgid ""
11502 "This call assumes that the guest is Windows and that the Registry could be "
11503 "examined by inspection.  If this is not the case then an error is returned."
11504 msgstr ""
11505
11506 #. type: =head2
11507 #: ../fish/guestfish-actions.pod:2377
11508 msgid "inspect-get-windows-systemroot"
11509 msgstr ""
11510
11511 #. type: verbatim
11512 #: ../fish/guestfish-actions.pod:2379
11513 #, no-wrap
11514 msgid ""
11515 " inspect-get-windows-systemroot root\n"
11516 "\n"
11517 msgstr ""
11518
11519 #. type: textblock
11520 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
11521 msgid ""
11522 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11523 "is a directory path such as C</WINDOWS>."
11524 msgstr ""
11525
11526 #. type: textblock
11527 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
11528 msgid ""
11529 "This call assumes that the guest is Windows and that the systemroot could be "
11530 "determined by inspection.  If this is not the case then an error is returned."
11531 msgstr ""
11532
11533 #. type: =head2
11534 #: ../fish/guestfish-actions.pod:2390
11535 msgid "inspect-is-live"
11536 msgstr ""
11537
11538 #. type: verbatim
11539 #: ../fish/guestfish-actions.pod:2392
11540 #, no-wrap
11541 msgid ""
11542 " inspect-is-live root\n"
11543 "\n"
11544 msgstr ""
11545
11546 #. type: textblock
11547 #: ../fish/guestfish-actions.pod:2394
11548 msgid ""
11549 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11550 "then this returns true if a live image was detected on the disk."
11551 msgstr ""
11552
11553 #. type: =head2
11554 #: ../fish/guestfish-actions.pod:2400
11555 msgid "inspect-is-multipart"
11556 msgstr ""
11557
11558 #. type: verbatim
11559 #: ../fish/guestfish-actions.pod:2402
11560 #, no-wrap
11561 msgid ""
11562 " inspect-is-multipart root\n"
11563 "\n"
11564 msgstr ""
11565
11566 #. type: textblock
11567 #: ../fish/guestfish-actions.pod:2404
11568 msgid ""
11569 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11570 "then this returns true if the disk is part of a set."
11571 msgstr ""
11572
11573 #. type: =head2
11574 #: ../fish/guestfish-actions.pod:2410
11575 msgid "inspect-is-netinst"
11576 msgstr ""
11577
11578 #. type: verbatim
11579 #: ../fish/guestfish-actions.pod:2412
11580 #, no-wrap
11581 msgid ""
11582 " inspect-is-netinst root\n"
11583 "\n"
11584 msgstr ""
11585
11586 #. type: textblock
11587 #: ../fish/guestfish-actions.pod:2414
11588 msgid ""
11589 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11590 "then this returns true if the disk is a network installer, ie. not a self-"
11591 "contained install CD but one which is likely to require network access to "
11592 "complete the install."
11593 msgstr ""
11594
11595 #. type: =head2
11596 #: ../fish/guestfish-actions.pod:2422
11597 msgid "inspect-list-applications"
11598 msgstr ""
11599
11600 #. type: verbatim
11601 #: ../fish/guestfish-actions.pod:2424
11602 #, no-wrap
11603 msgid ""
11604 " inspect-list-applications root\n"
11605 "\n"
11606 msgstr ""
11607
11608 #. type: textblock
11609 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
11610 msgid "Return the list of applications installed in the operating system."
11611 msgstr ""
11612
11613 #. type: textblock
11614 #: ../fish/guestfish-actions.pod:2428
11615 msgid ""
11616 "I<Note:> This call works differently from other parts of the inspection "
11617 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11618 "then mount up the disks, before calling this.  Listing applications is a "
11619 "significantly more difficult operation which requires access to the full "
11620 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11621 "are just returning data cached in the libguestfs handle, this call actually "
11622 "reads parts of the mounted filesystems during the call."
11623 msgstr ""
11624
11625 #. type: textblock
11626 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
11627 msgid ""
11628 "This returns an empty list if the inspection code was not able to determine "
11629 "the list of applications."
11630 msgstr ""
11631
11632 #. type: textblock
11633 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
11634 msgid "The application structure contains the following fields:"
11635 msgstr ""
11636
11637 #. type: =item
11638 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
11639 msgid "C<app_name>"
11640 msgstr ""
11641
11642 #. type: textblock
11643 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
11644 msgid ""
11645 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11646 "guests, this is the package name."
11647 msgstr ""
11648
11649 #. type: =item
11650 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
11651 msgid "C<app_display_name>"
11652 msgstr ""
11653
11654 #. type: textblock
11655 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
11656 msgid ""
11657 "The display name of the application, sometimes localized to the install "
11658 "language of the guest operating system."
11659 msgstr ""
11660
11661 #. type: textblock
11662 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
11663 msgid ""
11664 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11665 "to display something can use C<app_name> instead."
11666 msgstr ""
11667
11668 #. type: =item
11669 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
11670 msgid "C<app_epoch>"
11671 msgstr ""
11672
11673 #. type: textblock
11674 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
11675 msgid ""
11676 "For package managers which use epochs, this contains the epoch of the "
11677 "package (an integer).  If unavailable, this is returned as C<0>."
11678 msgstr ""
11679
11680 #. type: =item
11681 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
11682 msgid "C<app_version>"
11683 msgstr ""
11684
11685 #. type: textblock
11686 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
11687 msgid ""
11688 "The version string of the application or package.  If unavailable this is "
11689 "returned as an empty string C<\"\">."
11690 msgstr ""
11691
11692 #. type: =item
11693 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
11694 msgid "C<app_release>"
11695 msgstr ""
11696
11697 #. type: textblock
11698 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
11699 msgid ""
11700 "The release string of the application or package, for package managers that "
11701 "use this.  If unavailable this is returned as an empty string C<\"\">."
11702 msgstr ""
11703
11704 #. type: =item
11705 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
11706 msgid "C<app_install_path>"
11707 msgstr ""
11708
11709 #. type: textblock
11710 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
11711 msgid ""
11712 "The installation path of the application (on operating systems such as "
11713 "Windows which use installation paths).  This path is in the format used by "
11714 "the guest operating system, it is not a libguestfs path."
11715 msgstr ""
11716
11717 #. type: textblock
11718 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
11719 msgid "If unavailable this is returned as an empty string C<\"\">."
11720 msgstr ""
11721
11722 #. type: =item
11723 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
11724 msgid "C<app_trans_path>"
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
11729 msgid ""
11730 "The install path translated into a libguestfs path.  If unavailable this is "
11731 "returned as an empty string C<\"\">."
11732 msgstr ""
11733
11734 #. type: =item
11735 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
11736 msgid "C<app_publisher>"
11737 msgstr ""
11738
11739 #. type: textblock
11740 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
11741 msgid ""
11742 "The name of the publisher of the application, for package managers that use "
11743 "this.  If unavailable this is returned as an empty string C<\"\">."
11744 msgstr ""
11745
11746 #. type: =item
11747 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11748 msgid "C<app_url>"
11749 msgstr ""
11750
11751 #. type: textblock
11752 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
11753 msgid ""
11754 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11755 "returned as an empty string C<\"\">."
11756 msgstr ""
11757
11758 #. type: =item
11759 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11760 msgid "C<app_source_package>"
11761 msgstr ""
11762
11763 #. type: textblock
11764 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11765 msgid ""
11766 "For packaging systems which support this, the name of the source package.  "
11767 "If unavailable this is returned as an empty string C<\"\">."
11768 msgstr ""
11769
11770 #. type: =item
11771 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11772 msgid "C<app_summary>"
11773 msgstr ""
11774
11775 #. type: textblock
11776 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11777 msgid ""
11778 "A short (usually one line) description of the application or package.  If "
11779 "unavailable this is returned as an empty string C<\"\">."
11780 msgstr ""
11781
11782 #. type: =item
11783 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11784 msgid "C<app_description>"
11785 msgstr ""
11786
11787 #. type: textblock
11788 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11789 msgid ""
11790 "A longer description of the application or package.  If unavailable this is "
11791 "returned as an empty string C<\"\">."
11792 msgstr ""
11793
11794 #. type: =head2
11795 #: ../fish/guestfish-actions.pod:2518
11796 msgid "inspect-os"
11797 msgstr ""
11798
11799 #. type: verbatim
11800 #: ../fish/guestfish-actions.pod:2520
11801 #, no-wrap
11802 msgid ""
11803 " inspect-os\n"
11804 "\n"
11805 msgstr ""
11806
11807 #. type: textblock
11808 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11809 msgid ""
11810 "This function uses other libguestfs functions and certain heuristics to "
11811 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11812 "for operating systems."
11813 msgstr ""
11814
11815 #. type: textblock
11816 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11817 msgid "The list returned is empty if no operating systems were found."
11818 msgstr ""
11819
11820 #. type: textblock
11821 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11822 msgid ""
11823 "If one operating system was found, then this returns a list with a single "
11824 "element, which is the name of the root filesystem of this operating system.  "
11825 "It is also possible for this function to return a list containing more than "
11826 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11827 "element being the root filesystem of one of the operating systems."
11828 msgstr ""
11829
11830 #. type: textblock
11831 #: ../fish/guestfish-actions.pod:2535
11832 msgid ""
11833 "You can pass the root string(s) returned to other L</inspect-get-*> "
11834 "functions in order to query further information about each operating system, "
11835 "such as the name and version."
11836 msgstr ""
11837
11838 #. type: textblock
11839 #: ../fish/guestfish-actions.pod:2540
11840 msgid ""
11841 "This function uses other libguestfs features such as L</mount-ro> and L</"
11842 "umount-all> in order to mount and unmount filesystems and look at the "
11843 "contents.  This should be called with no disks currently mounted.  The "
11844 "function may also use Augeas, so any existing Augeas handle will be closed."
11845 msgstr ""
11846
11847 #. type: textblock
11848 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11849 msgid ""
11850 "This function cannot decrypt encrypted disks.  The caller must do that first "
11851 "(supplying the necessary keys) if the disk is encrypted."
11852 msgstr ""
11853
11854 #. type: textblock
11855 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11856 #: ../fish/guestfish-actions.pod:2809
11857 msgid "See also L</list-filesystems>."
11858 msgstr ""
11859
11860 #. type: =head2
11861 #: ../fish/guestfish-actions.pod:2554
11862 msgid "is-blockdev"
11863 msgstr ""
11864
11865 #. type: verbatim
11866 #: ../fish/guestfish-actions.pod:2556
11867 #, no-wrap
11868 msgid ""
11869 " is-blockdev path\n"
11870 "\n"
11871 msgstr ""
11872
11873 #. type: textblock
11874 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11875 msgid ""
11876 "This returns C<true> if and only if there is a block device with the given "
11877 "C<path> name."
11878 msgstr ""
11879
11880 #. type: textblock
11881 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11882 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11883 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11884 #: ../fish/guestfish-actions.pod:2660
11885 msgid "See also L</stat>."
11886 msgstr ""
11887
11888 #. type: =head2
11889 #: ../fish/guestfish-actions.pod:2563
11890 msgid "is-busy"
11891 msgstr ""
11892
11893 #. type: verbatim
11894 #: ../fish/guestfish-actions.pod:2565
11895 #, no-wrap
11896 msgid ""
11897 " is-busy\n"
11898 "\n"
11899 msgstr ""
11900
11901 #. type: textblock
11902 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11903 msgid ""
11904 "This returns true iff this handle is busy processing a command (in the "
11905 "C<BUSY> state)."
11906 msgstr ""
11907
11908 #. type: =head2
11909 #: ../fish/guestfish-actions.pod:2572
11910 msgid "is-chardev"
11911 msgstr ""
11912
11913 #. type: verbatim
11914 #: ../fish/guestfish-actions.pod:2574
11915 #, no-wrap
11916 msgid ""
11917 " is-chardev path\n"
11918 "\n"
11919 msgstr ""
11920
11921 #. type: textblock
11922 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11923 msgid ""
11924 "This returns C<true> if and only if there is a character device with the "
11925 "given C<path> name."
11926 msgstr ""
11927
11928 #. type: =head2
11929 #: ../fish/guestfish-actions.pod:2581
11930 msgid "is-config"
11931 msgstr ""
11932
11933 #. type: verbatim
11934 #: ../fish/guestfish-actions.pod:2583
11935 #, no-wrap
11936 msgid ""
11937 " is-config\n"
11938 "\n"
11939 msgstr ""
11940
11941 #. type: textblock
11942 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11943 msgid ""
11944 "This returns true iff this handle is being configured (in the C<CONFIG> "
11945 "state)."
11946 msgstr ""
11947
11948 #. type: =head2
11949 #: ../fish/guestfish-actions.pod:2590
11950 msgid "is-dir"
11951 msgstr ""
11952
11953 #. type: verbatim
11954 #: ../fish/guestfish-actions.pod:2592
11955 #, no-wrap
11956 msgid ""
11957 " is-dir path\n"
11958 "\n"
11959 msgstr ""
11960
11961 #. type: textblock
11962 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11963 msgid ""
11964 "This returns C<true> if and only if there is a directory with the given "
11965 "C<path> name.  Note that it returns false for other objects like files."
11966 msgstr ""
11967
11968 #. type: =head2
11969 #: ../fish/guestfish-actions.pod:2600
11970 msgid "is-fifo"
11971 msgstr ""
11972
11973 #. type: verbatim
11974 #: ../fish/guestfish-actions.pod:2602
11975 #, no-wrap
11976 msgid ""
11977 " is-fifo path\n"
11978 "\n"
11979 msgstr ""
11980
11981 #. type: textblock
11982 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11983 msgid ""
11984 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11985 "given C<path> name."
11986 msgstr ""
11987
11988 #. type: =head2
11989 #: ../fish/guestfish-actions.pod:2609
11990 msgid "is-file"
11991 msgstr ""
11992
11993 #. type: verbatim
11994 #: ../fish/guestfish-actions.pod:2611
11995 #, no-wrap
11996 msgid ""
11997 " is-file path\n"
11998 "\n"
11999 msgstr ""
12000
12001 #. type: textblock
12002 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
12003 msgid ""
12004 "This returns C<true> if and only if there is a regular file with the given "
12005 "C<path> name.  Note that it returns false for other objects like directories."
12006 msgstr ""
12007
12008 #. type: =head2
12009 #: ../fish/guestfish-actions.pod:2619
12010 msgid "is-launching"
12011 msgstr ""
12012
12013 #. type: verbatim
12014 #: ../fish/guestfish-actions.pod:2621
12015 #, no-wrap
12016 msgid ""
12017 " is-launching\n"
12018 "\n"
12019 msgstr ""
12020
12021 #. type: textblock
12022 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
12023 msgid ""
12024 "This returns true iff this handle is launching the subprocess (in the "
12025 "C<LAUNCHING> state)."
12026 msgstr ""
12027
12028 #. type: =head2
12029 #: ../fish/guestfish-actions.pod:2628
12030 msgid "is-lv"
12031 msgstr ""
12032
12033 #. type: verbatim
12034 #: ../fish/guestfish-actions.pod:2630
12035 #, no-wrap
12036 msgid ""
12037 " is-lv device\n"
12038 "\n"
12039 msgstr ""
12040
12041 #. type: textblock
12042 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
12043 msgid ""
12044 "This command tests whether C<device> is a logical volume, and returns true "
12045 "iff this is the case."
12046 msgstr ""
12047
12048 #. type: =head2
12049 #: ../fish/guestfish-actions.pod:2635
12050 msgid "is-ready"
12051 msgstr ""
12052
12053 #. type: verbatim
12054 #: ../fish/guestfish-actions.pod:2637
12055 #, no-wrap
12056 msgid ""
12057 " is-ready\n"
12058 "\n"
12059 msgstr ""
12060
12061 #. type: textblock
12062 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
12063 msgid ""
12064 "This returns true iff this handle is ready to accept commands (in the "
12065 "C<READY> state)."
12066 msgstr ""
12067
12068 #. type: =head2
12069 #: ../fish/guestfish-actions.pod:2644
12070 msgid "is-socket"
12071 msgstr ""
12072
12073 #. type: verbatim
12074 #: ../fish/guestfish-actions.pod:2646
12075 #, no-wrap
12076 msgid ""
12077 " is-socket path\n"
12078 "\n"
12079 msgstr ""
12080
12081 #. type: textblock
12082 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
12083 msgid ""
12084 "This returns C<true> if and only if there is a Unix domain socket with the "
12085 "given C<path> name."
12086 msgstr ""
12087
12088 #. type: =head2
12089 #: ../fish/guestfish-actions.pod:2653
12090 msgid "is-symlink"
12091 msgstr ""
12092
12093 #. type: verbatim
12094 #: ../fish/guestfish-actions.pod:2655
12095 #, no-wrap
12096 msgid ""
12097 " is-symlink path\n"
12098 "\n"
12099 msgstr ""
12100
12101 #. type: textblock
12102 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
12103 msgid ""
12104 "This returns C<true> if and only if there is a symbolic link with the given "
12105 "C<path> name."
12106 msgstr ""
12107
12108 #. type: =head2
12109 #: ../fish/guestfish-actions.pod:2662
12110 msgid "is-zero"
12111 msgstr ""
12112
12113 #. type: verbatim
12114 #: ../fish/guestfish-actions.pod:2664
12115 #, no-wrap
12116 msgid ""
12117 " is-zero path\n"
12118 "\n"
12119 msgstr ""
12120
12121 #. type: textblock
12122 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
12123 msgid ""
12124 "This returns true iff the file exists and the file is empty or it contains "
12125 "all zero bytes."
12126 msgstr ""
12127
12128 #. type: =head2
12129 #: ../fish/guestfish-actions.pod:2669
12130 msgid "is-zero-device"
12131 msgstr ""
12132
12133 #. type: verbatim
12134 #: ../fish/guestfish-actions.pod:2671
12135 #, no-wrap
12136 msgid ""
12137 " is-zero-device device\n"
12138 "\n"
12139 msgstr ""
12140
12141 #. type: textblock
12142 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
12143 msgid "This returns true iff the device exists and contains all zero bytes."
12144 msgstr ""
12145
12146 #. type: textblock
12147 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
12148 msgid "Note that for large devices this can take a long time to run."
12149 msgstr ""
12150
12151 #. type: =head2
12152 #: ../fish/guestfish-actions.pod:2677
12153 msgid "kill-subprocess"
12154 msgstr ""
12155
12156 #. type: verbatim
12157 #: ../fish/guestfish-actions.pod:2679
12158 #, no-wrap
12159 msgid ""
12160 " kill-subprocess\n"
12161 "\n"
12162 msgstr ""
12163
12164 #. type: textblock
12165 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
12166 msgid "This kills the qemu subprocess.  You should never need to call this."
12167 msgstr ""
12168
12169 #. type: =head2
12170 #: ../fish/guestfish-actions.pod:2683
12171 msgid "launch"
12172 msgstr ""
12173
12174 #. type: =head2
12175 #: ../fish/guestfish-actions.pod:2685
12176 msgid "run"
12177 msgstr ""
12178
12179 #. type: verbatim
12180 #: ../fish/guestfish-actions.pod:2687
12181 #, no-wrap
12182 msgid ""
12183 " launch\n"
12184 "\n"
12185 msgstr ""
12186
12187 #. type: textblock
12188 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
12189 msgid ""
12190 "Internally libguestfs is implemented by running a virtual machine using "
12191 "L<qemu(1)>."
12192 msgstr ""
12193
12194 #. type: textblock
12195 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
12196 msgid ""
12197 "You should call this after configuring the handle (eg. adding drives) but "
12198 "before performing any actions."
12199 msgstr ""
12200
12201 #. type: =head2
12202 #: ../fish/guestfish-actions.pod:2695
12203 msgid "lchown"
12204 msgstr ""
12205
12206 #. type: verbatim
12207 #: ../fish/guestfish-actions.pod:2697
12208 #, no-wrap
12209 msgid ""
12210 " lchown owner group path\n"
12211 "\n"
12212 msgstr ""
12213
12214 #. type: textblock
12215 #: ../fish/guestfish-actions.pod:2699
12216 msgid ""
12217 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
12218 "chown> but if C<path> is a symlink then the link itself is changed, not the "
12219 "target."
12220 msgstr ""
12221
12222 #. type: =head2
12223 #: ../fish/guestfish-actions.pod:2707
12224 msgid "lgetxattr"
12225 msgstr ""
12226
12227 #. type: verbatim
12228 #: ../fish/guestfish-actions.pod:2709
12229 #, no-wrap
12230 msgid ""
12231 " lgetxattr path name\n"
12232 "\n"
12233 msgstr ""
12234
12235 #. type: textblock
12236 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
12237 msgid ""
12238 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12239 "is a symlink, then this call returns an extended attribute from the symlink."
12240 msgstr ""
12241
12242 #. type: textblock
12243 #: ../fish/guestfish-actions.pod:2725
12244 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12245 msgstr ""
12246
12247 #. type: =head2
12248 #: ../fish/guestfish-actions.pod:2727
12249 msgid "lgetxattrs"
12250 msgstr ""
12251
12252 #. type: verbatim
12253 #: ../fish/guestfish-actions.pod:2729
12254 #, no-wrap
12255 msgid ""
12256 " lgetxattrs path\n"
12257 "\n"
12258 msgstr ""
12259
12260 #. type: textblock
12261 #: ../fish/guestfish-actions.pod:2731
12262 msgid ""
12263 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12264 "it returns the extended attributes of the link itself."
12265 msgstr ""
12266
12267 #. type: =head2
12268 #: ../fish/guestfish-actions.pod:2735
12269 msgid "list-9p"
12270 msgstr ""
12271
12272 #. type: verbatim
12273 #: ../fish/guestfish-actions.pod:2737
12274 #, no-wrap
12275 msgid ""
12276 " list-9p\n"
12277 "\n"
12278 msgstr ""
12279
12280 #. type: textblock
12281 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
12282 msgid ""
12283 "List all 9p filesystems attached to the guest.  A list of mount tags is "
12284 "returned."
12285 msgstr ""
12286
12287 #. type: =head2
12288 #: ../fish/guestfish-actions.pod:2742
12289 msgid "list-devices"
12290 msgstr ""
12291
12292 #. type: verbatim
12293 #: ../fish/guestfish-actions.pod:2744
12294 #, no-wrap
12295 msgid ""
12296 " list-devices\n"
12297 "\n"
12298 msgstr ""
12299
12300 #. type: textblock
12301 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
12302 msgid "List all the block devices."
12303 msgstr ""
12304
12305 #. type: textblock
12306 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
12307 msgid "The full block device names are returned, eg. C</dev/sda>."
12308 msgstr ""
12309
12310 #. type: =head2
12311 #: ../fish/guestfish-actions.pod:2752
12312 msgid "list-dm-devices"
12313 msgstr ""
12314
12315 #. type: verbatim
12316 #: ../fish/guestfish-actions.pod:2754
12317 #, no-wrap
12318 msgid ""
12319 " list-dm-devices\n"
12320 "\n"
12321 msgstr ""
12322
12323 #. type: textblock
12324 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
12325 msgid "List all device mapper devices."
12326 msgstr ""
12327
12328 #. type: textblock
12329 #: ../fish/guestfish-actions.pod:2758
12330 msgid ""
12331 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12332 "previous call to L</luks-open>."
12333 msgstr ""
12334
12335 #. type: textblock
12336 #: ../fish/guestfish-actions.pod:2761
12337 msgid ""
12338 "Device mapper devices which correspond to logical volumes are I<not> "
12339 "returned in this list.  Call L</lvs> if you want to list logical volumes."
12340 msgstr ""
12341
12342 #. type: =head2
12343 #: ../fish/guestfish-actions.pod:2765
12344 msgid "list-filesystems"
12345 msgstr ""
12346
12347 #. type: verbatim
12348 #: ../fish/guestfish-actions.pod:2767
12349 #, no-wrap
12350 msgid ""
12351 " list-filesystems\n"
12352 "\n"
12353 msgstr ""
12354
12355 #. type: textblock
12356 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
12357 msgid ""
12358 "This inspection command looks for filesystems on partitions, block devices "
12359 "and logical volumes, returning a list of devices containing filesystems and "
12360 "their type."
12361 msgstr ""
12362
12363 #. type: textblock
12364 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
12365 msgid ""
12366 "The return value is a hash, where the keys are the devices containing "
12367 "filesystems, and the values are the filesystem types.  For example:"
12368 msgstr ""
12369
12370 #. type: verbatim
12371 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
12372 #, no-wrap
12373 msgid ""
12374 " \"/dev/sda1\" => \"ntfs\"\n"
12375 " \"/dev/sda2\" => \"ext2\"\n"
12376 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12377 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12378 "\n"
12379 msgstr ""
12380
12381 #. type: textblock
12382 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
12383 msgid ""
12384 "The value can have the special value \"unknown\", meaning the content of the "
12385 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12386 msgstr ""
12387
12388 #. type: textblock
12389 #: ../fish/guestfish-actions.pod:2786
12390 msgid ""
12391 "This command runs other libguestfs commands, which might include L</mount> "
12392 "and L</umount>, and therefore you should use this soon after launch and only "
12393 "when nothing is mounted."
12394 msgstr ""
12395
12396 #. type: textblock
12397 #: ../fish/guestfish-actions.pod:2790
12398 msgid ""
12399 "Not all of the filesystems returned will be mountable.  In particular, swap "
12400 "partitions are returned in the list.  Also this command does not check that "
12401 "each filesystem found is valid and mountable, and some filesystems might be "
12402 "mountable but require special options.  Filesystems may not all belong to a "
12403 "single logical operating system (use L</inspect-os> to look for OSes)."
12404 msgstr ""
12405
12406 #. type: =head2
12407 #: ../fish/guestfish-actions.pod:2798
12408 msgid "list-partitions"
12409 msgstr ""
12410
12411 #. type: verbatim
12412 #: ../fish/guestfish-actions.pod:2800
12413 #, no-wrap
12414 msgid ""
12415 " list-partitions\n"
12416 "\n"
12417 msgstr ""
12418
12419 #. type: textblock
12420 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
12421 msgid "List all the partitions detected on all block devices."
12422 msgstr ""
12423
12424 #. type: textblock
12425 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4278
12426 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12427 msgstr ""
12428
12429 #. type: textblock
12430 #: ../fish/guestfish-actions.pod:2806
12431 msgid ""
12432 "This does not return logical volumes.  For that you will need to call L</"
12433 "lvs>."
12434 msgstr ""
12435
12436 #. type: =head2
12437 #: ../fish/guestfish-actions.pod:2811
12438 msgid "ll"
12439 msgstr ""
12440
12441 #. type: verbatim
12442 #: ../fish/guestfish-actions.pod:2813
12443 #, no-wrap
12444 msgid ""
12445 " ll directory\n"
12446 "\n"
12447 msgstr ""
12448
12449 #. type: textblock
12450 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4297
12451 msgid ""
12452 "List the files in C<directory> (relative to the root directory, there is no "
12453 "cwd) in the format of 'ls -la'."
12454 msgstr ""
12455
12456 #. type: textblock
12457 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4300
12458 msgid ""
12459 "This command is mostly useful for interactive sessions.  It is I<not> "
12460 "intended that you try to parse the output string."
12461 msgstr ""
12462
12463 #. type: =head2
12464 #: ../fish/guestfish-actions.pod:2821
12465 msgid "ln"
12466 msgstr ""
12467
12468 #. type: verbatim
12469 #: ../fish/guestfish-actions.pod:2823
12470 #, no-wrap
12471 msgid ""
12472 " ln target linkname\n"
12473 "\n"
12474 msgstr ""
12475
12476 #. type: textblock
12477 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4315
12478 msgid "This command creates a hard link using the C<ln> command."
12479 msgstr ""
12480
12481 #. type: =head2
12482 #: ../fish/guestfish-actions.pod:2827
12483 msgid "ln-f"
12484 msgstr ""
12485
12486 #. type: verbatim
12487 #: ../fish/guestfish-actions.pod:2829
12488 #, no-wrap
12489 msgid ""
12490 " ln-f target linkname\n"
12491 "\n"
12492 msgstr ""
12493
12494 #. type: textblock
12495 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4328
12496 msgid ""
12497 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12498 "option removes the link (C<linkname>) if it exists already."
12499 msgstr ""
12500
12501 #. type: =head2
12502 #: ../fish/guestfish-actions.pod:2834
12503 msgid "ln-s"
12504 msgstr ""
12505
12506 #. type: verbatim
12507 #: ../fish/guestfish-actions.pod:2836
12508 #, no-wrap
12509 msgid ""
12510 " ln-s target linkname\n"
12511 "\n"
12512 msgstr ""
12513
12514 #. type: textblock
12515 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4342
12516 msgid "This command creates a symbolic link using the C<ln -s> command."
12517 msgstr ""
12518
12519 #. type: =head2
12520 #: ../fish/guestfish-actions.pod:2840
12521 msgid "ln-sf"
12522 msgstr ""
12523
12524 #. type: verbatim
12525 #: ../fish/guestfish-actions.pod:2842
12526 #, no-wrap
12527 msgid ""
12528 " ln-sf target linkname\n"
12529 "\n"
12530 msgstr ""
12531
12532 #. type: textblock
12533 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4355
12534 msgid ""
12535 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12536 "option removes the link (C<linkname>) if it exists already."
12537 msgstr ""
12538
12539 #. type: =head2
12540 #: ../fish/guestfish-actions.pod:2847
12541 msgid "lremovexattr"
12542 msgstr ""
12543
12544 #. type: verbatim
12545 #: ../fish/guestfish-actions.pod:2849
12546 #, no-wrap
12547 msgid ""
12548 " lremovexattr xattr path\n"
12549 "\n"
12550 msgstr ""
12551
12552 #. type: textblock
12553 #: ../fish/guestfish-actions.pod:2851
12554 msgid ""
12555 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12556 "it removes an extended attribute of the link itself."
12557 msgstr ""
12558
12559 #. type: =head2
12560 #: ../fish/guestfish-actions.pod:2855
12561 msgid "ls"
12562 msgstr ""
12563
12564 #. type: verbatim
12565 #: ../fish/guestfish-actions.pod:2857
12566 #, no-wrap
12567 msgid ""
12568 " ls directory\n"
12569 "\n"
12570 msgstr ""
12571
12572 #. type: textblock
12573 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4383
12574 msgid ""
12575 "List the files in C<directory> (relative to the root directory, there is no "
12576 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12577 msgstr ""
12578
12579 #. type: textblock
12580 #: ../fish/guestfish-actions.pod:2863
12581 msgid ""
12582 "This command is mostly useful for interactive sessions.  Programs should "
12583 "probably use L</readdir> instead."
12584 msgstr ""
12585
12586 #. type: =head2
12587 #: ../fish/guestfish-actions.pod:2866
12588 msgid "lsetxattr"
12589 msgstr ""
12590
12591 #. type: verbatim
12592 #: ../fish/guestfish-actions.pod:2868
12593 #, no-wrap
12594 msgid ""
12595 " lsetxattr xattr val vallen path\n"
12596 "\n"
12597 msgstr ""
12598
12599 #. type: textblock
12600 #: ../fish/guestfish-actions.pod:2870
12601 msgid ""
12602 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12603 "sets an extended attribute of the link itself."
12604 msgstr ""
12605
12606 #. type: =head2
12607 #: ../fish/guestfish-actions.pod:2874
12608 msgid "lstat"
12609 msgstr ""
12610
12611 #. type: verbatim
12612 #: ../fish/guestfish-actions.pod:2876
12613 #, no-wrap
12614 msgid ""
12615 " lstat path\n"
12616 "\n"
12617 msgstr ""
12618
12619 #. type: textblock
12620 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4678
12621 #: ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7200
12622 msgid "Returns file information for the given C<path>."
12623 msgstr ""
12624
12625 #. type: textblock
12626 #: ../fish/guestfish-actions.pod:2880
12627 msgid ""
12628 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12629 "the link is stat-ed, not the file it refers to."
12630 msgstr ""
12631
12632 #. type: textblock
12633 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4425
12634 msgid "This is the same as the C<lstat(2)> system call."
12635 msgstr ""
12636
12637 #. type: =head2
12638 #: ../fish/guestfish-actions.pod:2886
12639 msgid "lstatlist"
12640 msgstr ""
12641
12642 #. type: verbatim
12643 #: ../fish/guestfish-actions.pod:2888
12644 #, no-wrap
12645 msgid ""
12646 " lstatlist path 'names ...'\n"
12647 "\n"
12648 msgstr ""
12649
12650 #. type: textblock
12651 #: ../fish/guestfish-actions.pod:2890
12652 msgid ""
12653 "This call allows you to perform the L</lstat> operation on multiple files, "
12654 "where all files are in the directory C<path>.  C<names> is the list of files "
12655 "from this directory."
12656 msgstr ""
12657
12658 #. type: textblock
12659 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4444
12660 msgid ""
12661 "On return you get a list of stat structs, with a one-to-one correspondence "
12662 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12663 "then the C<ino> field of that structure is set to C<-1>."
12664 msgstr ""
12665
12666 #. type: textblock
12667 #: ../fish/guestfish-actions.pod:2899
12668 msgid ""
12669 "This call is intended for programs that want to efficiently list a directory "
12670 "contents without making many round-trips.  See also L</lxattrlist> for a "
12671 "similarly efficient call for getting extended attributes.  Very long "
12672 "directory listings might cause the protocol message size to be exceeded, "
12673 "causing this call to fail.  The caller must split up such requests into "
12674 "smaller groups of names."
12675 msgstr ""
12676
12677 #. type: =head2
12678 #: ../fish/guestfish-actions.pod:2907
12679 msgid "luks-add-key"
12680 msgstr ""
12681
12682 #. type: verbatim
12683 #: ../fish/guestfish-actions.pod:2909
12684 #, no-wrap
12685 msgid ""
12686 " luks-add-key device keyslot\n"
12687 "\n"
12688 msgstr ""
12689
12690 #. type: textblock
12691 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4472
12692 msgid ""
12693 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12694 "existing key, and is used to access the device.  C<newkey> is the new key to "
12695 "add.  C<keyslot> is the key slot that will be replaced."
12696 msgstr ""
12697
12698 #. type: textblock
12699 #: ../fish/guestfish-actions.pod:2916
12700 msgid ""
12701 "Note that if C<keyslot> already contains a key, then this command will "
12702 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12703 msgstr ""
12704
12705 #. type: textblock
12706 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942
12707 #: ../fish/guestfish-actions.pod:2952 ../fish/guestfish-actions.pod:2963
12708 #: ../fish/guestfish-actions.pod:2989 ../fish/guestfish-actions.pod:2999
12709 msgid ""
12710 "This command has one or more key or passphrase parameters.  Guestfish will "
12711 "prompt for these separately."
12712 msgstr ""
12713
12714 #. type: =head2
12715 #: ../fish/guestfish-actions.pod:2923
12716 msgid "luks-close"
12717 msgstr ""
12718
12719 #. type: verbatim
12720 #: ../fish/guestfish-actions.pod:2925
12721 #, no-wrap
12722 msgid ""
12723 " luks-close device\n"
12724 "\n"
12725 msgstr ""
12726
12727 #. type: textblock
12728 #: ../fish/guestfish-actions.pod:2927
12729 msgid ""
12730 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12731 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12732 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12733 "block device."
12734 msgstr ""
12735
12736 #. type: =head2
12737 #: ../fish/guestfish-actions.pod:2933
12738 msgid "luks-format"
12739 msgstr ""
12740
12741 #. type: verbatim
12742 #: ../fish/guestfish-actions.pod:2935
12743 #, no-wrap
12744 msgid ""
12745 " luks-format device keyslot\n"
12746 "\n"
12747 msgstr ""
12748
12749 #. type: textblock
12750 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4513
12751 msgid ""
12752 "This command erases existing data on C<device> and formats the device as a "
12753 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12754 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12755 msgstr ""
12756
12757 #. type: =head2
12758 #: ../fish/guestfish-actions.pod:2945
12759 msgid "luks-format-cipher"
12760 msgstr ""
12761
12762 #. type: verbatim
12763 #: ../fish/guestfish-actions.pod:2947
12764 #, no-wrap
12765 msgid ""
12766 " luks-format-cipher device keyslot cipher\n"
12767 "\n"
12768 msgstr ""
12769
12770 #. type: textblock
12771 #: ../fish/guestfish-actions.pod:2949
12772 msgid ""
12773 "This command is the same as L</luks-format> but it also allows you to set "
12774 "the C<cipher> used."
12775 msgstr ""
12776
12777 #. type: =head2
12778 #: ../fish/guestfish-actions.pod:2955
12779 msgid "luks-kill-slot"
12780 msgstr ""
12781
12782 #. type: verbatim
12783 #: ../fish/guestfish-actions.pod:2957
12784 #, no-wrap
12785 msgid ""
12786 " luks-kill-slot device keyslot\n"
12787 "\n"
12788 msgstr ""
12789
12790 #. type: textblock
12791 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4554
12792 msgid ""
12793 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12794 "device C<device>.  C<key> must be one of the I<other> keys."
12795 msgstr ""
12796
12797 #. type: =head2
12798 #: ../fish/guestfish-actions.pod:2966
12799 msgid "luks-open"
12800 msgstr ""
12801
12802 #. type: verbatim
12803 #: ../fish/guestfish-actions.pod:2968
12804 #, no-wrap
12805 msgid ""
12806 " luks-open device mapname\n"
12807 "\n"
12808 msgstr ""
12809
12810 #. type: textblock
12811 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4574
12812 msgid ""
12813 "This command opens a block device which has been encrypted according to the "
12814 "Linux Unified Key Setup (LUKS) standard."
12815 msgstr ""
12816
12817 #. type: textblock
12818 #: ../fish/guestfish-actions.pod:2973 ../src/guestfs-actions.pod:4577
12819 msgid "C<device> is the encrypted block device or partition."
12820 msgstr ""
12821
12822 #. type: textblock
12823 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4579
12824 msgid ""
12825 "The caller must supply one of the keys associated with the LUKS block "
12826 "device, in the C<key> parameter."
12827 msgstr ""
12828
12829 #. type: textblock
12830 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4582
12831 msgid ""
12832 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12833 "writes to this block device are decrypted from and encrypted to the "
12834 "underlying C<device> respectively."
12835 msgstr ""
12836
12837 #. type: textblock
12838 #: ../fish/guestfish-actions.pod:2982
12839 msgid ""
12840 "If this block device contains LVM volume groups, then calling L</vgscan> "
12841 "followed by L</vg-activate-all> will make them visible."
12842 msgstr ""
12843
12844 #. type: textblock
12845 #: ../fish/guestfish-actions.pod:2986
12846 msgid "Use L</list-dm-devices> to list all device mapper devices."
12847 msgstr ""
12848
12849 #. type: =head2
12850 #: ../fish/guestfish-actions.pod:2992
12851 msgid "luks-open-ro"
12852 msgstr ""
12853
12854 #. type: verbatim
12855 #: ../fish/guestfish-actions.pod:2994
12856 #, no-wrap
12857 msgid ""
12858 " luks-open-ro device mapname\n"
12859 "\n"
12860 msgstr ""
12861
12862 #. type: textblock
12863 #: ../fish/guestfish-actions.pod:2996
12864 msgid ""
12865 "This is the same as L</luks-open> except that a read-only mapping is created."
12866 msgstr ""
12867
12868 #. type: =head2
12869 #: ../fish/guestfish-actions.pod:3002
12870 msgid "lvcreate"
12871 msgstr ""
12872
12873 #. type: verbatim
12874 #: ../fish/guestfish-actions.pod:3004
12875 #, no-wrap
12876 msgid ""
12877 " lvcreate logvol volgroup mbytes\n"
12878 "\n"
12879 msgstr ""
12880
12881 #. type: textblock
12882 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4628
12883 msgid ""
12884 "This creates an LVM logical volume called C<logvol> on the volume group "
12885 "C<volgroup>, with C<size> megabytes."
12886 msgstr ""
12887
12888 #. type: =head2
12889 #: ../fish/guestfish-actions.pod:3009
12890 msgid "lvm-canonical-lv-name"
12891 msgstr ""
12892
12893 #. type: verbatim
12894 #: ../fish/guestfish-actions.pod:3011
12895 #, no-wrap
12896 msgid ""
12897 " lvm-canonical-lv-name lvname\n"
12898 "\n"
12899 msgstr ""
12900
12901 #. type: textblock
12902 #: ../fish/guestfish-actions.pod:3013 ../src/guestfs-actions.pod:4641
12903 msgid ""
12904 "This converts alternative naming schemes for LVs that you might find to the "
12905 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12906 "LV>."
12907 msgstr ""
12908
12909 #. type: textblock
12910 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4645
12911 msgid ""
12912 "This command returns an error if the C<lvname> parameter does not refer to a "
12913 "logical volume."
12914 msgstr ""
12915
12916 #. type: textblock
12917 #: ../fish/guestfish-actions.pod:3020
12918 msgid "See also L</is-lv>."
12919 msgstr ""
12920
12921 #. type: =head2
12922 #: ../fish/guestfish-actions.pod:3022
12923 msgid "lvm-clear-filter"
12924 msgstr ""
12925
12926 #. type: verbatim
12927 #: ../fish/guestfish-actions.pod:3024
12928 #, no-wrap
12929 msgid ""
12930 " lvm-clear-filter\n"
12931 "\n"
12932 msgstr ""
12933
12934 #. type: textblock
12935 #: ../fish/guestfish-actions.pod:3026
12936 msgid ""
12937 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12938 "block device."
12939 msgstr ""
12940
12941 #. type: textblock
12942 #: ../fish/guestfish-actions.pod:3029 ../fish/guestfish-actions.pod:3057
12943 #: ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4702
12944 msgid ""
12945 "This command also clears the LVM cache and performs a volume group scan."
12946 msgstr ""
12947
12948 #. type: =head2
12949 #: ../fish/guestfish-actions.pod:3032
12950 msgid "lvm-remove-all"
12951 msgstr ""
12952
12953 #. type: verbatim
12954 #: ../fish/guestfish-actions.pod:3034
12955 #, no-wrap
12956 msgid ""
12957 " lvm-remove-all\n"
12958 "\n"
12959 msgstr ""
12960
12961 #. type: textblock
12962 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4675
12963 msgid ""
12964 "This command removes all LVM logical volumes, volume groups and physical "
12965 "volumes."
12966 msgstr ""
12967
12968 #. type: =head2
12969 #: ../fish/guestfish-actions.pod:3039
12970 msgid "lvm-set-filter"
12971 msgstr ""
12972
12973 #. type: verbatim
12974 #: ../fish/guestfish-actions.pod:3041
12975 #, no-wrap
12976 msgid ""
12977 " lvm-set-filter 'devices ...'\n"
12978 "\n"
12979 msgstr ""
12980
12981 #. type: textblock
12982 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4688
12983 msgid ""
12984 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12985 "block devices in the list C<devices>, and will ignore all other attached "
12986 "block devices."
12987 msgstr ""
12988
12989 #. type: textblock
12990 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4692
12991 msgid ""
12992 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12993 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12994 "there are two types of duplication possible: either cloned PVs/VGs which "
12995 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12996 "same name.  In normal operation you cannot create this situation, but you "
12997 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12998 "inside the LVM metadata."
12999 msgstr ""
13000
13001 #. type: textblock
13002 #: ../fish/guestfish-actions.pod:3060 ../src/guestfs-actions.pod:4705
13003 msgid "You can filter whole block devices or individual partitions."
13004 msgstr ""
13005
13006 #. type: textblock
13007 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4707
13008 msgid ""
13009 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13010 "filesystem), even if you are not filtering out that VG."
13011 msgstr ""
13012
13013 #. type: =head2
13014 #: ../fish/guestfish-actions.pod:3066
13015 msgid "lvremove"
13016 msgstr ""
13017
13018 #. type: verbatim
13019 #: ../fish/guestfish-actions.pod:3068
13020 #, no-wrap
13021 msgid ""
13022 " lvremove device\n"
13023 "\n"
13024 msgstr ""
13025
13026 #. type: textblock
13027 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4721
13028 msgid ""
13029 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13030 "LV, such as C</dev/VG/LV>."
13031 msgstr ""
13032
13033 #. type: textblock
13034 #: ../fish/guestfish-actions.pod:3073 ../src/guestfs-actions.pod:4724
13035 msgid ""
13036 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13037 "dev/VG>."
13038 msgstr ""
13039
13040 #. type: =head2
13041 #: ../fish/guestfish-actions.pod:3076
13042 msgid "lvrename"
13043 msgstr ""
13044
13045 #. type: verbatim
13046 #: ../fish/guestfish-actions.pod:3078
13047 #, no-wrap
13048 msgid ""
13049 " lvrename logvol newlogvol\n"
13050 "\n"
13051 msgstr ""
13052
13053 #. type: textblock
13054 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
13055 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13056 msgstr ""
13057
13058 #. type: =head2
13059 #: ../fish/guestfish-actions.pod:3082
13060 msgid "lvresize"
13061 msgstr ""
13062
13063 #. type: verbatim
13064 #: ../fish/guestfish-actions.pod:3084
13065 #, no-wrap
13066 msgid ""
13067 " lvresize device mbytes\n"
13068 "\n"
13069 msgstr ""
13070
13071 #. type: textblock
13072 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4751
13073 msgid ""
13074 "This resizes (expands or shrinks) an existing LVM logical volume to "
13075 "C<mbytes>.  When reducing, data in the reduced part is lost."
13076 msgstr ""
13077
13078 #. type: =head2
13079 #: ../fish/guestfish-actions.pod:3090
13080 msgid "lvresize-free"
13081 msgstr ""
13082
13083 #. type: verbatim
13084 #: ../fish/guestfish-actions.pod:3092
13085 #, no-wrap
13086 msgid ""
13087 " lvresize-free lv percent\n"
13088 "\n"
13089 msgstr ""
13090
13091 #. type: textblock
13092 #: ../fish/guestfish-actions.pod:3094 ../src/guestfs-actions.pod:4766
13093 msgid ""
13094 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13095 "remaining free space in the volume group.  Commonly you would call this with "
13096 "pc = 100 which expands the logical volume as much as possible, using all "
13097 "remaining free space in the volume group."
13098 msgstr ""
13099
13100 #. type: =head2
13101 #: ../fish/guestfish-actions.pod:3100
13102 msgid "lvs"
13103 msgstr ""
13104
13105 #. type: verbatim
13106 #: ../fish/guestfish-actions.pod:3102
13107 #, no-wrap
13108 msgid ""
13109 " lvs\n"
13110 "\n"
13111 msgstr ""
13112
13113 #. type: textblock
13114 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4781
13115 msgid ""
13116 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13117 "(8)> command."
13118 msgstr ""
13119
13120 #. type: textblock
13121 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4784
13122 msgid ""
13123 "This returns a list of the logical volume device names (eg. C</dev/"
13124 "VolGroup00/LogVol00>)."
13125 msgstr ""
13126
13127 #. type: textblock
13128 #: ../fish/guestfish-actions.pod:3110
13129 msgid "See also L</lvs-full>, L</list-filesystems>."
13130 msgstr ""
13131
13132 #. type: =head2
13133 #: ../fish/guestfish-actions.pod:3112
13134 msgid "lvs-full"
13135 msgstr ""
13136
13137 #. type: verbatim
13138 #: ../fish/guestfish-actions.pod:3114
13139 #, no-wrap
13140 msgid ""
13141 " lvs-full\n"
13142 "\n"
13143 msgstr ""
13144
13145 #. type: textblock
13146 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4800
13147 msgid ""
13148 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13149 "(8)> command.  The \"full\" version includes all fields."
13150 msgstr ""
13151
13152 #. type: =head2
13153 #: ../fish/guestfish-actions.pod:3119
13154 msgid "lvuuid"
13155 msgstr ""
13156
13157 #. type: verbatim
13158 #: ../fish/guestfish-actions.pod:3121
13159 #, no-wrap
13160 msgid ""
13161 " lvuuid device\n"
13162 "\n"
13163 msgstr ""
13164
13165 #. type: textblock
13166 #: ../fish/guestfish-actions.pod:3123 ../src/guestfs-actions.pod:4815
13167 msgid "This command returns the UUID of the LVM LV C<device>."
13168 msgstr ""
13169
13170 #. type: =head2
13171 #: ../fish/guestfish-actions.pod:3125
13172 msgid "lxattrlist"
13173 msgstr ""
13174
13175 #. type: verbatim
13176 #: ../fish/guestfish-actions.pod:3127
13177 #, no-wrap
13178 msgid ""
13179 " lxattrlist path 'names ...'\n"
13180 "\n"
13181 msgstr ""
13182
13183 #. type: textblock
13184 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4829
13185 msgid ""
13186 "This call allows you to get the extended attributes of multiple files, where "
13187 "all files are in the directory C<path>.  C<names> is the list of files from "
13188 "this directory."
13189 msgstr ""
13190
13191 #. type: textblock
13192 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4833
13193 msgid ""
13194 "On return you get a flat list of xattr structs which must be interpreted "
13195 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13196 "C<attrval> in this struct is zero-length to indicate there was an error "
13197 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13198 "number (the number of following attributes for this file, which could be C<"
13199 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13200 "for the first named file.  This repeats for the second and subsequent files."
13201 msgstr ""
13202
13203 #. type: textblock
13204 #: ../fish/guestfish-actions.pod:3143
13205 msgid ""
13206 "This call is intended for programs that want to efficiently list a directory "
13207 "contents without making many round-trips.  See also L</lstatlist> for a "
13208 "similarly efficient call for getting standard stats.  Very long directory "
13209 "listings might cause the protocol message size to be exceeded, causing this "
13210 "call to fail.  The caller must split up such requests into smaller groups of "
13211 "names."
13212 msgstr ""
13213
13214 #. type: =head2
13215 #: ../fish/guestfish-actions.pod:3151
13216 msgid "mkdir"
13217 msgstr ""
13218
13219 #. type: verbatim
13220 #: ../fish/guestfish-actions.pod:3153
13221 #, no-wrap
13222 msgid ""
13223 " mkdir path\n"
13224 "\n"
13225 msgstr ""
13226
13227 #. type: textblock
13228 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4863
13229 msgid "Create a directory named C<path>."
13230 msgstr ""
13231
13232 #. type: =head2
13233 #: ../fish/guestfish-actions.pod:3157
13234 msgid "mkdir-mode"
13235 msgstr ""
13236
13237 #. type: verbatim
13238 #: ../fish/guestfish-actions.pod:3159
13239 #, no-wrap
13240 msgid ""
13241 " mkdir-mode path mode\n"
13242 "\n"
13243 msgstr ""
13244
13245 #. type: textblock
13246 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4876
13247 msgid ""
13248 "This command creates a directory, setting the initial permissions of the "
13249 "directory to C<mode>."
13250 msgstr ""
13251
13252 #. type: textblock
13253 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4879
13254 msgid ""
13255 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13256 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13257 "other ways."
13258 msgstr ""
13259
13260 #. type: textblock
13261 #: ../fish/guestfish-actions.pod:3168
13262 msgid "See also L</mkdir>, L</umask>"
13263 msgstr ""
13264
13265 #. type: =head2
13266 #: ../fish/guestfish-actions.pod:3170
13267 msgid "mkdir-p"
13268 msgstr ""
13269
13270 #. type: verbatim
13271 #: ../fish/guestfish-actions.pod:3172
13272 #, no-wrap
13273 msgid ""
13274 " mkdir-p path\n"
13275 "\n"
13276 msgstr ""
13277
13278 #. type: textblock
13279 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4895
13280 msgid ""
13281 "Create a directory named C<path>, creating any parent directories as "
13282 "necessary.  This is like the C<mkdir -p> shell command."
13283 msgstr ""
13284
13285 #. type: =head2
13286 #: ../fish/guestfish-actions.pod:3177
13287 msgid "mkdtemp"
13288 msgstr ""
13289
13290 #. type: verbatim
13291 #: ../fish/guestfish-actions.pod:3179
13292 #, no-wrap
13293 msgid ""
13294 " mkdtemp template\n"
13295 "\n"
13296 msgstr ""
13297
13298 #. type: textblock
13299 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4908
13300 msgid ""
13301 "This command creates a temporary directory.  The C<template> parameter "
13302 "should be a full pathname for the temporary directory name with the final "
13303 "six characters being \"XXXXXX\"."
13304 msgstr ""
13305
13306 #. type: textblock
13307 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4913
13308 msgid ""
13309 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13310 "being suitable for Windows filesystems."
13311 msgstr ""
13312
13313 #. type: textblock
13314 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4916
13315 msgid "The name of the temporary directory that was created is returned."
13316 msgstr ""
13317
13318 #. type: textblock
13319 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4919
13320 msgid "The temporary directory is created with mode 0700 and is owned by root."
13321 msgstr ""
13322
13323 #. type: textblock
13324 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4922
13325 msgid ""
13326 "The caller is responsible for deleting the temporary directory and its "
13327 "contents after use."
13328 msgstr ""
13329
13330 #. type: textblock
13331 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4925
13332 msgid "See also: L<mkdtemp(3)>"
13333 msgstr ""
13334
13335 #. type: =head2
13336 #: ../fish/guestfish-actions.pod:3200
13337 msgid "mke2fs-J"
13338 msgstr ""
13339
13340 #. type: verbatim
13341 #: ../fish/guestfish-actions.pod:3202
13342 #, no-wrap
13343 msgid ""
13344 " mke2fs-J fstype blocksize device journal\n"
13345 "\n"
13346 msgstr ""
13347
13348 #. type: textblock
13349 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4941
13350 msgid ""
13351 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13352 "C<journal>.  It is equivalent to the command:"
13353 msgstr ""
13354
13355 #. type: verbatim
13356 #: ../fish/guestfish-actions.pod:3208 ../src/guestfs-actions.pod:4945
13357 #, no-wrap
13358 msgid ""
13359 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13360 "\n"
13361 msgstr ""
13362
13363 #. type: textblock
13364 #: ../fish/guestfish-actions.pod:3210
13365 msgid "See also L</mke2journal>."
13366 msgstr ""
13367
13368 #. type: =head2
13369 #: ../fish/guestfish-actions.pod:3212
13370 msgid "mke2fs-JL"
13371 msgstr ""
13372
13373 #. type: verbatim
13374 #: ../fish/guestfish-actions.pod:3214
13375 #, no-wrap
13376 msgid ""
13377 " mke2fs-JL fstype blocksize device label\n"
13378 "\n"
13379 msgstr ""
13380
13381 #. type: textblock
13382 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4962
13383 msgid ""
13384 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13385 "the journal labeled C<label>."
13386 msgstr ""
13387
13388 #. type: textblock
13389 #: ../fish/guestfish-actions.pod:3219
13390 msgid "See also L</mke2journal-L>."
13391 msgstr ""
13392
13393 #. type: =head2
13394 #: ../fish/guestfish-actions.pod:3221
13395 msgid "mke2fs-JU"
13396 msgstr ""
13397
13398 #. type: verbatim
13399 #: ../fish/guestfish-actions.pod:3223
13400 #, no-wrap
13401 msgid ""
13402 " mke2fs-JU fstype blocksize device uuid\n"
13403 "\n"
13404 msgstr ""
13405
13406 #. type: textblock
13407 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4980
13408 msgid ""
13409 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13410 "the journal with UUID C<uuid>."
13411 msgstr ""
13412
13413 #. type: textblock
13414 #: ../fish/guestfish-actions.pod:3228
13415 msgid "See also L</mke2journal-U>."
13416 msgstr ""
13417
13418 #. type: =head2
13419 #: ../fish/guestfish-actions.pod:3230
13420 msgid "mke2journal"
13421 msgstr ""
13422
13423 #. type: verbatim
13424 #: ../fish/guestfish-actions.pod:3232
13425 #, no-wrap
13426 msgid ""
13427 " mke2journal blocksize device\n"
13428 "\n"
13429 msgstr ""
13430
13431 #. type: textblock
13432 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4996
13433 msgid ""
13434 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13435 "command:"
13436 msgstr ""
13437
13438 #. type: verbatim
13439 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4999
13440 #, no-wrap
13441 msgid ""
13442 " mke2fs -O journal_dev -b blocksize device\n"
13443 "\n"
13444 msgstr ""
13445
13446 #. type: =head2
13447 #: ../fish/guestfish-actions.pod:3239
13448 msgid "mke2journal-L"
13449 msgstr ""
13450
13451 #. type: verbatim
13452 #: ../fish/guestfish-actions.pod:3241
13453 #, no-wrap
13454 msgid ""
13455 " mke2journal-L blocksize label device\n"
13456 "\n"
13457 msgstr ""
13458
13459 #. type: textblock
13460 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:5013
13461 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13462 msgstr ""
13463
13464 #. type: =head2
13465 #: ../fish/guestfish-actions.pod:3245
13466 msgid "mke2journal-U"
13467 msgstr ""
13468
13469 #. type: verbatim
13470 #: ../fish/guestfish-actions.pod:3247
13471 #, no-wrap
13472 msgid ""
13473 " mke2journal-U blocksize uuid device\n"
13474 "\n"
13475 msgstr ""
13476
13477 #. type: textblock
13478 #: ../fish/guestfish-actions.pod:3249 ../src/guestfs-actions.pod:5027
13479 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13480 msgstr ""
13481
13482 #. type: =head2
13483 #: ../fish/guestfish-actions.pod:3251
13484 msgid "mkfifo"
13485 msgstr ""
13486
13487 #. type: verbatim
13488 #: ../fish/guestfish-actions.pod:3253
13489 #, no-wrap
13490 msgid ""
13491 " mkfifo mode path\n"
13492 "\n"
13493 msgstr ""
13494
13495 #. type: textblock
13496 #: ../fish/guestfish-actions.pod:3255
13497 msgid ""
13498 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13499 "is just a convenient wrapper around L</mknod>."
13500 msgstr ""
13501
13502 #. type: =head2
13503 #: ../fish/guestfish-actions.pod:3261
13504 msgid "mkfs"
13505 msgstr ""
13506
13507 #. type: verbatim
13508 #: ../fish/guestfish-actions.pod:3263
13509 #, no-wrap
13510 msgid ""
13511 " mkfs fstype device\n"
13512 "\n"
13513 msgstr ""
13514
13515 #. type: textblock
13516 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5057
13517 msgid ""
13518 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13519 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13520 msgstr ""
13521
13522 #. type: =head2
13523 #: ../fish/guestfish-actions.pod:3269
13524 msgid "mkfs-b"
13525 msgstr ""
13526
13527 #. type: verbatim
13528 #: ../fish/guestfish-actions.pod:3271
13529 #, no-wrap
13530 msgid ""
13531 " mkfs-b fstype blocksize device\n"
13532 "\n"
13533 msgstr ""
13534
13535 #. type: textblock
13536 #: ../fish/guestfish-actions.pod:3273
13537 msgid ""
13538 "This call is similar to L</mkfs>, but it allows you to control the block "
13539 "size of the resulting filesystem.  Supported block sizes depend on the "
13540 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13541 msgstr ""
13542
13543 #. type: textblock
13544 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3305
13545 #: ../src/guestfs-actions.pod:5085 ../src/guestfs-actions.pod:5123
13546 msgid ""
13547 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13548 "cluster size."
13549 msgstr ""
13550
13551 #. type: textblock
13552 #: ../fish/guestfish-actions.pod:3281
13553 msgid ""
13554 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13555 "instead."
13556 msgstr ""
13557
13558 #. type: =head2
13559 #: ../fish/guestfish-actions.pod:3288
13560 msgid "mkfs-opts"
13561 msgstr ""
13562
13563 #. type: verbatim
13564 #: ../fish/guestfish-actions.pod:3290
13565 #, no-wrap
13566 msgid ""
13567 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
13568 "\n"
13569 msgstr ""
13570
13571 #. type: textblock
13572 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5110
13573 msgid ""
13574 "This function creates a filesystem on C<device>.  The filesystem type is "
13575 "C<fstype>, for example C<ext3>."
13576 msgstr ""
13577
13578 #. type: =item
13579 #: ../fish/guestfish-actions.pod:3299 ../src/guestfs-actions.pod:5117
13580 msgid "C<blocksize>"
13581 msgstr ""
13582
13583 #. type: textblock
13584 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5119
13585 msgid ""
13586 "The filesystem block size.  Supported block sizes depend on the filesystem "
13587 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13588 "filesystems."
13589 msgstr ""
13590
13591 #. type: textblock
13592 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5126
13593 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13594 msgstr ""
13595
13596 #. type: =item
13597 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5128
13598 msgid "C<features>"
13599 msgstr ""
13600
13601 #. type: textblock
13602 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5130
13603 msgid "This passes the I<-O> parameter to the external mkfs program."
13604 msgstr ""
13605
13606 #. type: textblock
13607 #: ../fish/guestfish-actions.pod:3314 ../src/guestfs-actions.pod:5132
13608 msgid ""
13609 "For certain filesystem types, this allows extra filesystem features to be "
13610 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13611 msgstr ""
13612
13613 #. type: textblock
13614 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5136
13615 msgid ""
13616 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13617 "type."
13618 msgstr ""
13619
13620 #. type: =item
13621 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5139
13622 msgid "C<inode>"
13623 msgstr ""
13624
13625 #. type: textblock
13626 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5141
13627 msgid ""
13628 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13629 "sets the inode size (only for ext2/3/4 filesystems at present)."
13630 msgstr ""
13631
13632 #. type: =item
13633 #: ../fish/guestfish-actions.pod:3326 ../src/guestfs-actions.pod:5144
13634 msgid "C<sectorsize>"
13635 msgstr ""
13636
13637 #. type: textblock
13638 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5146
13639 msgid ""
13640 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13641 "sets sector size for ufs filesystem."
13642 msgstr ""
13643
13644 #. type: =head2
13645 #: ../fish/guestfish-actions.pod:3335
13646 msgid "mkmountpoint"
13647 msgstr ""
13648
13649 #. type: verbatim
13650 #: ../fish/guestfish-actions.pod:3337
13651 #, no-wrap
13652 msgid ""
13653 " mkmountpoint exemptpath\n"
13654 "\n"
13655 msgstr ""
13656
13657 #. type: textblock
13658 #: ../fish/guestfish-actions.pod:3339
13659 msgid ""
13660 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13661 "to create extra mountpoints before mounting the first filesystem."
13662 msgstr ""
13663
13664 #. type: textblock
13665 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5189
13666 msgid ""
13667 "These calls are I<only> necessary in some very limited circumstances, mainly "
13668 "the case where you want to mount a mix of unrelated and/or read-only "
13669 "filesystems together."
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5193
13674 msgid ""
13675 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13676 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13677 "inside that.  You can unpack this as follows in guestfish:"
13678 msgstr ""
13679
13680 #. type: verbatim
13681 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5198
13682 #, no-wrap
13683 msgid ""
13684 " add-ro Fedora-11-i686-Live.iso\n"
13685 " run\n"
13686 " mkmountpoint /cd\n"
13687 " mkmountpoint /sqsh\n"
13688 " mkmountpoint /ext3fs\n"
13689 " mount /dev/sda /cd\n"
13690 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13691 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13692 "\n"
13693 msgstr ""
13694
13695 #. type: textblock
13696 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5207
13697 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13698 msgstr ""
13699
13700 #. type: textblock
13701 #: ../fish/guestfish-actions.pod:3363
13702 msgid ""
13703 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13704 "unexpected errors if you try to mix these calls.  It is safest to manually "
13705 "unmount filesystems and remove mountpoints after use."
13706 msgstr ""
13707
13708 #. type: textblock
13709 #: ../fish/guestfish-actions.pod:3367
13710 msgid ""
13711 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13712 "for this to work for manual mountpoints, you must ensure that the innermost "
13713 "mountpoints have the longest pathnames, as in the example code above."
13714 msgstr ""
13715
13716 #. type: textblock
13717 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5218
13718 msgid ""
13719 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13720 msgstr ""
13721
13722 #. type: textblock
13723 #: ../fish/guestfish-actions.pod:3374
13724 msgid ""
13725 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13726 "L</umount-all> to be called when the handle is closed which can also trigger "
13727 "these issues."
13728 msgstr ""
13729
13730 #. type: =head2
13731 #: ../fish/guestfish-actions.pod:3378
13732 msgid "mknod"
13733 msgstr ""
13734
13735 #. type: verbatim
13736 #: ../fish/guestfish-actions.pod:3380
13737 #, no-wrap
13738 msgid ""
13739 " mknod mode devmajor devminor path\n"
13740 "\n"
13741 msgstr ""
13742
13743 #. type: textblock
13744 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5237
13745 msgid ""
13746 "This call creates block or character special devices, or named pipes (FIFOs)."
13747 msgstr ""
13748
13749 #. type: textblock
13750 #: ../fish/guestfish-actions.pod:3385 ../src/guestfs-actions.pod:5240
13751 msgid ""
13752 "The C<mode> parameter should be the mode, using the standard constants.  "
13753 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13754 "used when creating block and character special devices."
13755 msgstr ""
13756
13757 #. type: textblock
13758 #: ../fish/guestfish-actions.pod:3390
13759 msgid ""
13760 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13761 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13762 "regular file).  These constants are available in the standard Linux header "
13763 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13764 "wrappers around this command which bitwise OR in the appropriate constant "
13765 "for you."
13766 msgstr ""
13767
13768 #. type: =head2
13769 #: ../fish/guestfish-actions.pod:3400
13770 msgid "mknod-b"
13771 msgstr ""
13772
13773 #. type: verbatim
13774 #: ../fish/guestfish-actions.pod:3402
13775 #, no-wrap
13776 msgid ""
13777 " mknod-b mode devmajor devminor path\n"
13778 "\n"
13779 msgstr ""
13780
13781 #. type: textblock
13782 #: ../fish/guestfish-actions.pod:3404
13783 msgid ""
13784 "This call creates a block device node called C<path> with mode C<mode> and "
13785 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13786 "wrapper around L</mknod>."
13787 msgstr ""
13788
13789 #. type: =head2
13790 #: ../fish/guestfish-actions.pod:3410
13791 msgid "mknod-c"
13792 msgstr ""
13793
13794 #. type: verbatim
13795 #: ../fish/guestfish-actions.pod:3412
13796 #, no-wrap
13797 msgid ""
13798 " mknod-c mode devmajor devminor path\n"
13799 "\n"
13800 msgstr ""
13801
13802 #. type: textblock
13803 #: ../fish/guestfish-actions.pod:3414
13804 msgid ""
13805 "This call creates a char device node called C<path> with mode C<mode> and "
13806 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13807 "wrapper around L</mknod>."
13808 msgstr ""
13809
13810 #. type: =head2
13811 #: ../fish/guestfish-actions.pod:3420
13812 msgid "mkswap"
13813 msgstr ""
13814
13815 #. type: verbatim
13816 #: ../fish/guestfish-actions.pod:3422
13817 #, no-wrap
13818 msgid ""
13819 " mkswap device\n"
13820 "\n"
13821 msgstr ""
13822
13823 #. type: textblock
13824 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5303
13825 msgid "Create a swap partition on C<device>."
13826 msgstr ""
13827
13828 #. type: =head2
13829 #: ../fish/guestfish-actions.pod:3426
13830 msgid "mkswap-L"
13831 msgstr ""
13832
13833 #. type: verbatim
13834 #: ../fish/guestfish-actions.pod:3428
13835 #, no-wrap
13836 msgid ""
13837 " mkswap-L label device\n"
13838 "\n"
13839 msgstr ""
13840
13841 #. type: textblock
13842 #: ../fish/guestfish-actions.pod:3430 ../src/guestfs-actions.pod:5316
13843 msgid "Create a swap partition on C<device> with label C<label>."
13844 msgstr ""
13845
13846 #. type: textblock
13847 #: ../fish/guestfish-actions.pod:3432 ../src/guestfs-actions.pod:5318
13848 msgid ""
13849 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13850 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13851 "or swap tools."
13852 msgstr ""
13853
13854 #. type: =head2
13855 #: ../fish/guestfish-actions.pod:3436
13856 msgid "mkswap-U"
13857 msgstr ""
13858
13859 #. type: verbatim
13860 #: ../fish/guestfish-actions.pod:3438
13861 #, no-wrap
13862 msgid ""
13863 " mkswap-U uuid device\n"
13864 "\n"
13865 msgstr ""
13866
13867 #. type: textblock
13868 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5333
13869 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13870 msgstr ""
13871
13872 #. type: =head2
13873 #: ../fish/guestfish-actions.pod:3442
13874 msgid "mkswap-file"
13875 msgstr ""
13876
13877 #. type: verbatim
13878 #: ../fish/guestfish-actions.pod:3444
13879 #, no-wrap
13880 msgid ""
13881 " mkswap-file path\n"
13882 "\n"
13883 msgstr ""
13884
13885 #. type: textblock
13886 #: ../fish/guestfish-actions.pod:3446 ../src/guestfs-actions.pod:5345
13887 msgid "Create a swap file."
13888 msgstr ""
13889
13890 #. type: textblock
13891 #: ../fish/guestfish-actions.pod:3448
13892 msgid ""
13893 "This command just writes a swap file signature to an existing file.  To "
13894 "create the file itself, use something like L</fallocate>."
13895 msgstr ""
13896
13897 #. type: =head2
13898 #: ../fish/guestfish-actions.pod:3451
13899 msgid "modprobe"
13900 msgstr ""
13901
13902 #. type: verbatim
13903 #: ../fish/guestfish-actions.pod:3453
13904 #, no-wrap
13905 msgid ""
13906 " modprobe modulename\n"
13907 "\n"
13908 msgstr ""
13909
13910 #. type: textblock
13911 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5360
13912 msgid "This loads a kernel module in the appliance."
13913 msgstr ""
13914
13915 #. type: textblock
13916 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5362
13917 msgid ""
13918 "The kernel module must have been whitelisted when libguestfs was built (see "
13919 "C<appliance/kmod.whitelist.in> in the source)."
13920 msgstr ""
13921
13922 #. type: =head2
13923 #: ../fish/guestfish-actions.pod:3460
13924 msgid "mount"
13925 msgstr ""
13926
13927 #. type: verbatim
13928 #: ../fish/guestfish-actions.pod:3462
13929 #, no-wrap
13930 msgid ""
13931 " mount device mountpoint\n"
13932 "\n"
13933 msgstr ""
13934
13935 #. type: textblock
13936 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5376
13937 msgid ""
13938 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13939 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13940 "those block devices contain partitions, they will have the usual names (eg. "
13941 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13942 msgstr ""
13943
13944 #. type: textblock
13945 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5382
13946 msgid ""
13947 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13948 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13949 "mounted on directories which already exist."
13950 msgstr ""
13951
13952 #. type: textblock
13953 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5387
13954 msgid ""
13955 "The mounted filesystem is writable, if we have sufficient permissions on the "
13956 "underlying device."
13957 msgstr ""
13958
13959 #. type: textblock
13960 #: ../fish/guestfish-actions.pod:3478
13961 msgid ""
13962 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13963 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13964 "problems for users.  If your program might need to work with older versions "
13965 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13966 "first parameter if you don't want any options)."
13967 msgstr ""
13968
13969 #. type: =head2
13970 #: ../fish/guestfish-actions.pod:3485
13971 msgid "mount-9p"
13972 msgstr ""
13973
13974 #. type: verbatim
13975 #: ../fish/guestfish-actions.pod:3487
13976 #, no-wrap
13977 msgid ""
13978 " mount-9p mounttag mountpoint [options:..]\n"
13979 "\n"
13980 msgstr ""
13981
13982 #. type: textblock
13983 #: ../fish/guestfish-actions.pod:3489 ../src/guestfs-actions.pod:5416
13984 msgid ""
13985 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13986 "C<mountpoint>."
13987 msgstr ""
13988
13989 #. type: textblock
13990 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5419
13991 msgid ""
13992 "If required, C<trans=virtio> will be automatically added to the options.  "
13993 "Any other options required can be passed in the optional C<options> "
13994 "parameter."
13995 msgstr ""
13996
13997 #. type: =head2
13998 #: ../fish/guestfish-actions.pod:3498
13999 msgid "mount-loop"
14000 msgstr ""
14001
14002 #. type: verbatim
14003 #: ../fish/guestfish-actions.pod:3500
14004 #, no-wrap
14005 msgid ""
14006 " mount-loop file mountpoint\n"
14007 "\n"
14008 msgstr ""
14009
14010 #. type: textblock
14011 #: ../fish/guestfish-actions.pod:3502 ../src/guestfs-actions.pod:5458
14012 msgid ""
14013 "This command lets you mount C<file> (a filesystem image in a file) on a "
14014 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14015 "mountpoint>."
14016 msgstr ""
14017
14018 #. type: =head2
14019 #: ../fish/guestfish-actions.pod:3506
14020 msgid "mount-options"
14021 msgstr ""
14022
14023 #. type: verbatim
14024 #: ../fish/guestfish-actions.pod:3508
14025 #, no-wrap
14026 msgid ""
14027 " mount-options options device mountpoint\n"
14028 "\n"
14029 msgstr ""
14030
14031 #. type: textblock
14032 #: ../fish/guestfish-actions.pod:3510
14033 msgid ""
14034 "This is the same as the L</mount> command, but it allows you to set the "
14035 "mount options as for the L<mount(8)> I<-o> flag."
14036 msgstr ""
14037
14038 #. type: textblock
14039 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5478
14040 msgid ""
14041 "If the C<options> parameter is an empty string, then no options are passed "
14042 "(all options default to whatever the filesystem uses)."
14043 msgstr ""
14044
14045 #. type: =head2
14046 #: ../fish/guestfish-actions.pod:3518
14047 msgid "mount-ro"
14048 msgstr ""
14049
14050 #. type: verbatim
14051 #: ../fish/guestfish-actions.pod:3520
14052 #, no-wrap
14053 msgid ""
14054 " mount-ro device mountpoint\n"
14055 "\n"
14056 msgstr ""
14057
14058 #. type: textblock
14059 #: ../fish/guestfish-actions.pod:3522
14060 msgid ""
14061 "This is the same as the L</mount> command, but it mounts the filesystem with "
14062 "the read-only (I<-o ro>) flag."
14063 msgstr ""
14064
14065 #. type: =head2
14066 #: ../fish/guestfish-actions.pod:3525
14067 msgid "mount-vfs"
14068 msgstr ""
14069
14070 #. type: verbatim
14071 #: ../fish/guestfish-actions.pod:3527
14072 #, no-wrap
14073 msgid ""
14074 " mount-vfs options vfstype device mountpoint\n"
14075 "\n"
14076 msgstr ""
14077
14078 #. type: textblock
14079 #: ../fish/guestfish-actions.pod:3529
14080 msgid ""
14081 "This is the same as the L</mount> command, but it allows you to set both the "
14082 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
14083 msgstr ""
14084
14085 #. type: =head2
14086 #: ../fish/guestfish-actions.pod:3533
14087 msgid "mountpoints"
14088 msgstr ""
14089
14090 #. type: verbatim
14091 #: ../fish/guestfish-actions.pod:3535
14092 #, no-wrap
14093 msgid ""
14094 " mountpoints\n"
14095 "\n"
14096 msgstr ""
14097
14098 #. type: textblock
14099 #: ../fish/guestfish-actions.pod:3537
14100 msgid ""
14101 "This call is similar to L</mounts>.  That call returns a list of devices.  "
14102 "This one returns a hash table (map) of device name to directory where the "
14103 "device is mounted."
14104 msgstr ""
14105
14106 #. type: =head2
14107 #: ../fish/guestfish-actions.pod:3541
14108 msgid "mounts"
14109 msgstr ""
14110
14111 #. type: verbatim
14112 #: ../fish/guestfish-actions.pod:3543
14113 #, no-wrap
14114 msgid ""
14115 " mounts\n"
14116 "\n"
14117 msgstr ""
14118
14119 #. type: textblock
14120 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5539
14121 msgid ""
14122 "This returns the list of currently mounted filesystems.  It returns the list "
14123 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14124 msgstr ""
14125
14126 #. type: textblock
14127 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5542
14128 msgid "Some internal mounts are not shown."
14129 msgstr ""
14130
14131 #. type: textblock
14132 #: ../fish/guestfish-actions.pod:3550
14133 msgid "See also: L</mountpoints>"
14134 msgstr ""
14135
14136 #. type: =head2
14137 #: ../fish/guestfish-actions.pod:3552
14138 msgid "mv"
14139 msgstr ""
14140
14141 #. type: verbatim
14142 #: ../fish/guestfish-actions.pod:3554
14143 #, no-wrap
14144 msgid ""
14145 " mv src dest\n"
14146 "\n"
14147 msgstr ""
14148
14149 #. type: textblock
14150 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5559
14151 msgid ""
14152 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14153 "destination filename or destination directory."
14154 msgstr ""
14155
14156 #. type: =head2
14157 #: ../fish/guestfish-actions.pod:3559
14158 msgid "ntfs-3g-probe"
14159 msgstr ""
14160
14161 #. type: verbatim
14162 #: ../fish/guestfish-actions.pod:3561
14163 #, no-wrap
14164 msgid ""
14165 " ntfs-3g-probe true|false device\n"
14166 "\n"
14167 msgstr ""
14168
14169 #. type: textblock
14170 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5573
14171 msgid ""
14172 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14173 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14174 "write, and some cannot be mounted at all)."
14175 msgstr ""
14176
14177 #. type: textblock
14178 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5577
14179 msgid ""
14180 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14181 "can be mounted read-write.  Set it to false if you want to test if the "
14182 "volume can be mounted read-only."
14183 msgstr ""
14184
14185 #. type: textblock
14186 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5581
14187 msgid ""
14188 "The return value is an integer which C<0> if the operation would succeed, or "
14189 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14190 msgstr ""
14191
14192 #. type: =head2
14193 #: ../fish/guestfish-actions.pod:3575
14194 msgid "ntfsresize"
14195 msgstr ""
14196
14197 #. type: verbatim
14198 #: ../fish/guestfish-actions.pod:3577
14199 #, no-wrap
14200 msgid ""
14201 " ntfsresize device\n"
14202 "\n"
14203 msgstr ""
14204
14205 #. type: textblock
14206 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3603
14207 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5634
14208 msgid ""
14209 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14210 "size of the underlying device."
14211 msgstr ""
14212
14213 #. type: textblock
14214 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5605
14215 msgid ""
14216 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14217 "consistency check (for safety).  You have to boot into Windows to perform "
14218 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
14219 "resize filesystems which have been marked in this way.  So in effect it is "
14220 "not possible to call ntfsresize multiple times on a single filesystem "
14221 "without booting into Windows between each resize."
14222 msgstr ""
14223
14224 #. type: textblock
14225 #: ../fish/guestfish-actions.pod:3590 ../fish/guestfish-actions.pod:3629
14226 #: ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5660
14227 msgid "See also L<ntfsresize(8)>."
14228 msgstr ""
14229
14230 #. type: textblock
14231 #: ../fish/guestfish-actions.pod:3592 ../fish/guestfish-actions.pod:3640
14232 msgid ""
14233 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14234 "call instead."
14235 msgstr ""
14236
14237 #. type: =head2
14238 #: ../fish/guestfish-actions.pod:3599
14239 msgid "ntfsresize-opts"
14240 msgstr ""
14241
14242 #. type: verbatim
14243 #: ../fish/guestfish-actions.pod:3601
14244 #, no-wrap
14245 msgid ""
14246 " ntfsresize-opts device [size:N] [force:true|false]\n"
14247 "\n"
14248 msgstr ""
14249
14250 #. type: textblock
14251 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5643
14252 msgid ""
14253 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
14254 "resized to fit the container (eg. partition)."
14255 msgstr ""
14256
14257 #. type: =item
14258 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5646
14259 msgid "C<force>"
14260 msgstr ""
14261
14262 #. type: textblock
14263 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5648
14264 msgid ""
14265 "If this option is true, then force the resize of the filesystem even if the "
14266 "filesystem is marked as requiring a consistency check."
14267 msgstr ""
14268
14269 #. type: textblock
14270 #: ../fish/guestfish-actions.pod:3620
14271 msgid ""
14272 "After the resize operation, the filesystem is always marked as requiring a "
14273 "consistency check (for safety).  You have to boot into Windows to perform "
14274 "this check and clear this condition.  If you I<don't> set the C<force> "
14275 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
14276 "a single filesystem without booting into Windows between each resize."
14277 msgstr ""
14278
14279 #. type: =head2
14280 #: ../fish/guestfish-actions.pod:3633
14281 msgid "ntfsresize-size"
14282 msgstr ""
14283
14284 #. type: verbatim
14285 #: ../fish/guestfish-actions.pod:3635
14286 #, no-wrap
14287 msgid ""
14288 " ntfsresize-size device size\n"
14289 "\n"
14290 msgstr ""
14291
14292 #. type: textblock
14293 #: ../fish/guestfish-actions.pod:3637
14294 msgid ""
14295 "This command is the same as L</ntfsresize> except that it allows you to "
14296 "specify the new size (in bytes) explicitly."
14297 msgstr ""
14298
14299 #. type: =head2
14300 #: ../fish/guestfish-actions.pod:3647
14301 msgid "part-add"
14302 msgstr ""
14303
14304 #. type: verbatim
14305 #: ../fish/guestfish-actions.pod:3649
14306 #, no-wrap
14307 msgid ""
14308 " part-add device prlogex startsect endsect\n"
14309 "\n"
14310 msgstr ""
14311
14312 #. type: textblock
14313 #: ../fish/guestfish-actions.pod:3651
14314 msgid ""
14315 "This command adds a partition to C<device>.  If there is no partition table "
14316 "on the device, call L</part-init> first."
14317 msgstr ""
14318
14319 #. type: textblock
14320 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5721
14321 msgid ""
14322 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14323 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14324 "C<logical>) and C<e> (or C<extended>) partition types."
14325 msgstr ""
14326
14327 #. type: textblock
14328 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5726
14329 msgid ""
14330 "C<startsect> and C<endsect> are the start and end of the partition in "
14331 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14332 "from the end of the disk (C<-1> is the last sector)."
14333 msgstr ""
14334
14335 #. type: textblock
14336 #: ../fish/guestfish-actions.pod:3663
14337 msgid ""
14338 "Creating a partition which covers the whole disk is not so easy.  Use L</"
14339 "part-disk> to do that."
14340 msgstr ""
14341
14342 #. type: =head2
14343 #: ../fish/guestfish-actions.pod:3666
14344 msgid "part-del"
14345 msgstr ""
14346
14347 #. type: verbatim
14348 #: ../fish/guestfish-actions.pod:3668
14349 #, no-wrap
14350 msgid ""
14351 " part-del device partnum\n"
14352 "\n"
14353 msgstr ""
14354
14355 #. type: textblock
14356 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5744
14357 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14358 msgstr ""
14359
14360 #. type: textblock
14361 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5746
14362 msgid ""
14363 "Note that in the case of MBR partitioning, deleting an extended partition "
14364 "also deletes any logical partitions it contains."
14365 msgstr ""
14366
14367 #. type: =head2
14368 #: ../fish/guestfish-actions.pod:3676
14369 msgid "part-disk"
14370 msgstr ""
14371
14372 #. type: verbatim
14373 #: ../fish/guestfish-actions.pod:3678
14374 #, no-wrap
14375 msgid ""
14376 " part-disk device parttype\n"
14377 "\n"
14378 msgstr ""
14379
14380 #. type: textblock
14381 #: ../fish/guestfish-actions.pod:3680
14382 msgid ""
14383 "This command is simply a combination of L</part-init> followed by L</part-"
14384 "add> to create a single primary partition covering the whole disk."
14385 msgstr ""
14386
14387 #. type: textblock
14388 #: ../fish/guestfish-actions.pod:3684
14389 msgid ""
14390 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14391 "possible values are described in L</part-init>."
14392 msgstr ""
14393
14394 #. type: =head2
14395 #: ../fish/guestfish-actions.pod:3687
14396 msgid "part-get-bootable"
14397 msgstr ""
14398
14399 #. type: verbatim
14400 #: ../fish/guestfish-actions.pod:3689
14401 #, no-wrap
14402 msgid ""
14403 " part-get-bootable device partnum\n"
14404 "\n"
14405 msgstr ""
14406
14407 #. type: textblock
14408 #: ../fish/guestfish-actions.pod:3691 ../src/guestfs-actions.pod:5779
14409 msgid ""
14410 "This command returns true if the partition C<partnum> on C<device> has the "
14411 "bootable flag set."
14412 msgstr ""
14413
14414 #. type: textblock
14415 #: ../fish/guestfish-actions.pod:3694
14416 msgid "See also L</part-set-bootable>."
14417 msgstr ""
14418
14419 #. type: =head2
14420 #: ../fish/guestfish-actions.pod:3696
14421 msgid "part-get-mbr-id"
14422 msgstr ""
14423
14424 #. type: verbatim
14425 #: ../fish/guestfish-actions.pod:3698
14426 #, no-wrap
14427 msgid ""
14428 " part-get-mbr-id device partnum\n"
14429 "\n"
14430 msgstr ""
14431
14432 #. type: textblock
14433 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5795
14434 msgid ""
14435 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14436 "partition C<partnum>."
14437 msgstr ""
14438
14439 #. type: textblock
14440 #: ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:3847
14441 msgid ""
14442 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14443 "undefined results for other partition table types (see L</part-get-"
14444 "parttype>)."
14445 msgstr ""
14446
14447 #. type: =head2
14448 #: ../fish/guestfish-actions.pod:3707
14449 msgid "part-get-parttype"
14450 msgstr ""
14451
14452 #. type: verbatim
14453 #: ../fish/guestfish-actions.pod:3709
14454 #, no-wrap
14455 msgid ""
14456 " part-get-parttype device\n"
14457 "\n"
14458 msgstr ""
14459
14460 #. type: textblock
14461 #: ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5812
14462 msgid ""
14463 "This command examines the partition table on C<device> and returns the "
14464 "partition table type (format) being used."
14465 msgstr ""
14466
14467 #. type: textblock
14468 #: ../fish/guestfish-actions.pod:3714
14469 msgid ""
14470 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14471 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14472 "possible, although unusual.  See L</part-init> for a full list."
14473 msgstr ""
14474
14475 #. type: =head2
14476 #: ../fish/guestfish-actions.pod:3719
14477 msgid "part-init"
14478 msgstr ""
14479
14480 #. type: verbatim
14481 #: ../fish/guestfish-actions.pod:3721
14482 #, no-wrap
14483 msgid ""
14484 " part-init device parttype\n"
14485 "\n"
14486 msgstr ""
14487
14488 #. type: textblock
14489 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5832
14490 msgid ""
14491 "This creates an empty partition table on C<device> of one of the partition "
14492 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14493 "(for large disks)."
14494 msgstr ""
14495
14496 #. type: textblock
14497 #: ../fish/guestfish-actions.pod:3727
14498 msgid ""
14499 "Initially there are no partitions.  Following this, you should call L</part-"
14500 "add> for each partition required."
14501 msgstr ""
14502
14503 #. type: textblock
14504 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5839
14505 msgid "Possible values for C<parttype> are:"
14506 msgstr ""
14507
14508 #. type: =item
14509 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5843
14510 msgid "B<efi>"
14511 msgstr ""
14512
14513 #. type: =item
14514 #: ../fish/guestfish-actions.pod:3736 ../src/guestfs-actions.pod:5845
14515 msgid "B<gpt>"
14516 msgstr ""
14517
14518 #. type: textblock
14519 #: ../fish/guestfish-actions.pod:3738 ../src/guestfs-actions.pod:5847
14520 msgid "Intel EFI / GPT partition table."
14521 msgstr ""
14522
14523 #. type: textblock
14524 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5849
14525 msgid ""
14526 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14527 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14528 "the C<mbr> format."
14529 msgstr ""
14530
14531 #. type: =item
14532 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5853
14533 msgid "B<mbr>"
14534 msgstr ""
14535
14536 #. type: =item
14537 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5855
14538 msgid "B<msdos>"
14539 msgstr ""
14540
14541 #. type: textblock
14542 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5857
14543 msgid ""
14544 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14545 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14546 "TB.  For large disks we recommend using C<gpt>."
14547 msgstr ""
14548
14549 #. type: textblock
14550 #: ../fish/guestfish-actions.pod:3755 ../src/guestfs-actions.pod:5864
14551 msgid ""
14552 "Other partition table types that may work but are not supported include:"
14553 msgstr ""
14554
14555 #. type: =item
14556 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5869
14557 msgid "B<aix>"
14558 msgstr ""
14559
14560 #. type: textblock
14561 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5871
14562 msgid "AIX disk labels."
14563 msgstr ""
14564
14565 #. type: =item
14566 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5873
14567 msgid "B<amiga>"
14568 msgstr ""
14569
14570 #. type: =item
14571 #: ../fish/guestfish-actions.pod:3766 ../src/guestfs-actions.pod:5875
14572 msgid "B<rdb>"
14573 msgstr ""
14574
14575 #. type: textblock
14576 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5877
14577 msgid "Amiga \"Rigid Disk Block\" format."
14578 msgstr ""
14579
14580 #. type: =item
14581 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5879
14582 msgid "B<bsd>"
14583 msgstr ""
14584
14585 #. type: textblock
14586 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5881
14587 msgid "BSD disk labels."
14588 msgstr ""
14589
14590 #. type: =item
14591 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5883
14592 msgid "B<dasd>"
14593 msgstr ""
14594
14595 #. type: textblock
14596 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5885
14597 msgid "DASD, used on IBM mainframes."
14598 msgstr ""
14599
14600 #. type: =item
14601 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5887
14602 msgid "B<dvh>"
14603 msgstr ""
14604
14605 #. type: textblock
14606 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5889
14607 msgid "MIPS/SGI volumes."
14608 msgstr ""
14609
14610 #. type: =item
14611 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5891
14612 msgid "B<mac>"
14613 msgstr ""
14614
14615 #. type: textblock
14616 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5893
14617 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14618 msgstr ""
14619
14620 #. type: =item
14621 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5895
14622 msgid "B<pc98>"
14623 msgstr ""
14624
14625 #. type: textblock
14626 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5897
14627 msgid "NEC PC-98 format, common in Japan apparently."
14628 msgstr ""
14629
14630 #. type: =item
14631 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5899
14632 msgid "B<sun>"
14633 msgstr ""
14634
14635 #. type: textblock
14636 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5901
14637 msgid "Sun disk labels."
14638 msgstr ""
14639
14640 #. type: =head2
14641 #: ../fish/guestfish-actions.pod:3796
14642 msgid "part-list"
14643 msgstr ""
14644
14645 #. type: verbatim
14646 #: ../fish/guestfish-actions.pod:3798
14647 #, no-wrap
14648 msgid ""
14649 " part-list device\n"
14650 "\n"
14651 msgstr ""
14652
14653 #. type: textblock
14654 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5915
14655 msgid ""
14656 "This command parses the partition table on C<device> and returns the list of "
14657 "partitions found."
14658 msgstr ""
14659
14660 #. type: textblock
14661 #: ../fish/guestfish-actions.pod:3803 ../src/guestfs-actions.pod:5918
14662 msgid "The fields in the returned structure are:"
14663 msgstr ""
14664
14665 #. type: =item
14666 #: ../fish/guestfish-actions.pod:3807 ../src/guestfs-actions.pod:5922
14667 msgid "B<part_num>"
14668 msgstr ""
14669
14670 #. type: textblock
14671 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5924
14672 msgid "Partition number, counting from 1."
14673 msgstr ""
14674
14675 #. type: =item
14676 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5926
14677 msgid "B<part_start>"
14678 msgstr ""
14679
14680 #. type: textblock
14681 #: ../fish/guestfish-actions.pod:3813
14682 msgid ""
14683 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14684 "the device's sector size, see L</blockdev-getss>."
14685 msgstr ""
14686
14687 #. type: =item
14688 #: ../fish/guestfish-actions.pod:3816 ../src/guestfs-actions.pod:5931
14689 msgid "B<part_end>"
14690 msgstr ""
14691
14692 #. type: textblock
14693 #: ../fish/guestfish-actions.pod:3818 ../src/guestfs-actions.pod:5933
14694 msgid "End of the partition in bytes."
14695 msgstr ""
14696
14697 #. type: =item
14698 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5935
14699 msgid "B<part_size>"
14700 msgstr ""
14701
14702 #. type: textblock
14703 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5937
14704 msgid "Size of the partition in bytes."
14705 msgstr ""
14706
14707 #. type: =head2
14708 #: ../fish/guestfish-actions.pod:3826
14709 msgid "part-set-bootable"
14710 msgstr ""
14711
14712 #. type: verbatim
14713 #: ../fish/guestfish-actions.pod:3828
14714 #, no-wrap
14715 msgid ""
14716 " part-set-bootable device partnum true|false\n"
14717 "\n"
14718 msgstr ""
14719
14720 #. type: textblock
14721 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5955
14722 msgid ""
14723 "This sets the bootable flag on partition numbered C<partnum> on device "
14724 "C<device>.  Note that partitions are numbered from 1."
14725 msgstr ""
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5958
14729 msgid ""
14730 "The bootable flag is used by some operating systems (notably Windows) to "
14731 "determine which partition to boot from.  It is by no means universally "
14732 "recognized."
14733 msgstr ""
14734
14735 #. type: =head2
14736 #: ../fish/guestfish-actions.pod:3837
14737 msgid "part-set-mbr-id"
14738 msgstr ""
14739
14740 #. type: verbatim
14741 #: ../fish/guestfish-actions.pod:3839
14742 #, no-wrap
14743 msgid ""
14744 " part-set-mbr-id device partnum idbyte\n"
14745 "\n"
14746 msgstr ""
14747
14748 #. type: textblock
14749 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:5974
14750 msgid ""
14751 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14752 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14753 "documentation are in fact hexadecimal numbers, but usually documented "
14754 "without any leading \"0x\" which might be confusing."
14755 msgstr ""
14756
14757 #. type: =head2
14758 #: ../fish/guestfish-actions.pod:3851
14759 msgid "part-set-name"
14760 msgstr ""
14761
14762 #. type: verbatim
14763 #: ../fish/guestfish-actions.pod:3853
14764 #, no-wrap
14765 msgid ""
14766 " part-set-name device partnum name\n"
14767 "\n"
14768 msgstr ""
14769
14770 #. type: textblock
14771 #: ../fish/guestfish-actions.pod:3855 ../src/guestfs-actions.pod:5996
14772 msgid ""
14773 "This sets the partition name on partition numbered C<partnum> on device "
14774 "C<device>.  Note that partitions are numbered from 1."
14775 msgstr ""
14776
14777 #. type: textblock
14778 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5999
14779 msgid ""
14780 "The partition name can only be set on certain types of partition table.  "
14781 "This works on C<gpt> but not on C<mbr> partitions."
14782 msgstr ""
14783
14784 #. type: =head2
14785 #: ../fish/guestfish-actions.pod:3861
14786 msgid "part-to-dev"
14787 msgstr ""
14788
14789 #. type: verbatim
14790 #: ../fish/guestfish-actions.pod:3863
14791 #, no-wrap
14792 msgid ""
14793 " part-to-dev partition\n"
14794 "\n"
14795 msgstr ""
14796
14797 #. type: textblock
14798 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6012
14799 msgid ""
14800 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14801 "partition number, returning the device name (eg. \"/dev/sdb\")."
14802 msgstr ""
14803
14804 #. type: textblock
14805 #: ../fish/guestfish-actions.pod:3869 ../fish/guestfish-actions.pod:3881
14806 msgid ""
14807 "The named partition must exist, for example as a string returned from L</"
14808 "list-partitions>."
14809 msgstr ""
14810
14811 #. type: textblock
14812 #: ../fish/guestfish-actions.pod:3872
14813 msgid "See also L</part-to-partnum>."
14814 msgstr ""
14815
14816 #. type: =head2
14817 #: ../fish/guestfish-actions.pod:3874
14818 msgid "part-to-partnum"
14819 msgstr ""
14820
14821 #. type: verbatim
14822 #: ../fish/guestfish-actions.pod:3876
14823 #, no-wrap
14824 msgid ""
14825 " part-to-partnum partition\n"
14826 "\n"
14827 msgstr ""
14828
14829 #. type: textblock
14830 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6032
14831 msgid ""
14832 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14833 "partition number (eg. C<1>)."
14834 msgstr ""
14835
14836 #. type: textblock
14837 #: ../fish/guestfish-actions.pod:3884
14838 msgid "See also L</part-to-dev>."
14839 msgstr ""
14840
14841 #. type: =head2
14842 #: ../fish/guestfish-actions.pod:3886
14843 msgid "ping-daemon"
14844 msgstr ""
14845
14846 #. type: verbatim
14847 #: ../fish/guestfish-actions.pod:3888
14848 #, no-wrap
14849 msgid ""
14850 " ping-daemon\n"
14851 "\n"
14852 msgstr ""
14853
14854 #. type: textblock
14855 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6049
14856 msgid ""
14857 "This is a test probe into the guestfs daemon running inside the qemu "
14858 "subprocess.  Calling this function checks that the daemon responds to the "
14859 "ping message, without affecting the daemon or attached block device(s) in "
14860 "any other way."
14861 msgstr ""
14862
14863 #. type: =head2
14864 #: ../fish/guestfish-actions.pod:3895
14865 msgid "pread"
14866 msgstr ""
14867
14868 #. type: verbatim
14869 #: ../fish/guestfish-actions.pod:3897
14870 #, no-wrap
14871 msgid ""
14872 " pread path count offset\n"
14873 "\n"
14874 msgstr ""
14875
14876 #. type: textblock
14877 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6067
14878 msgid ""
14879 "This command lets you read part of a file.  It reads C<count> bytes of the "
14880 "file, starting at C<offset>, from file C<path>."
14881 msgstr ""
14882
14883 #. type: textblock
14884 #: ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:3917
14885 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6096
14886 msgid ""
14887 "This may read fewer bytes than requested.  For further details see the "
14888 "L<pread(2)> system call."
14889 msgstr ""
14890
14891 #. type: textblock
14892 #: ../fish/guestfish-actions.pod:3905
14893 msgid "See also L</pwrite>, L</pread-device>."
14894 msgstr ""
14895
14896 #. type: =head2
14897 #: ../fish/guestfish-actions.pod:3910
14898 msgid "pread-device"
14899 msgstr ""
14900
14901 #. type: verbatim
14902 #: ../fish/guestfish-actions.pod:3912
14903 #, no-wrap
14904 msgid ""
14905 " pread-device device count offset\n"
14906 "\n"
14907 msgstr ""
14908
14909 #. type: textblock
14910 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6093
14911 msgid ""
14912 "This command lets you read part of a file.  It reads C<count> bytes of "
14913 "C<device>, starting at C<offset>."
14914 msgstr ""
14915
14916 #. type: textblock
14917 #: ../fish/guestfish-actions.pod:3920
14918 msgid "See also L</pread>."
14919 msgstr ""
14920
14921 #. type: =head2
14922 #: ../fish/guestfish-actions.pod:3925
14923 msgid "pvcreate"
14924 msgstr ""
14925
14926 #. type: verbatim
14927 #: ../fish/guestfish-actions.pod:3927
14928 #, no-wrap
14929 msgid ""
14930 " pvcreate device\n"
14931 "\n"
14932 msgstr ""
14933
14934 #. type: textblock
14935 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6116
14936 msgid ""
14937 "This creates an LVM physical volume on the named C<device>, where C<device> "
14938 "should usually be a partition name such as C</dev/sda1>."
14939 msgstr ""
14940
14941 #. type: =head2
14942 #: ../fish/guestfish-actions.pod:3933
14943 msgid "pvremove"
14944 msgstr ""
14945
14946 #. type: verbatim
14947 #: ../fish/guestfish-actions.pod:3935
14948 #, no-wrap
14949 msgid ""
14950 " pvremove device\n"
14951 "\n"
14952 msgstr ""
14953
14954 #. type: textblock
14955 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6130
14956 msgid ""
14957 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14958 "it."
14959 msgstr ""
14960
14961 #. type: textblock
14962 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6133
14963 msgid ""
14964 "The implementation uses the C<pvremove> command which refuses to wipe "
14965 "physical volumes that contain any volume groups, so you have to remove those "
14966 "first."
14967 msgstr ""
14968
14969 #. type: =head2
14970 #: ../fish/guestfish-actions.pod:3944
14971 msgid "pvresize"
14972 msgstr ""
14973
14974 #. type: verbatim
14975 #: ../fish/guestfish-actions.pod:3946
14976 #, no-wrap
14977 msgid ""
14978 " pvresize device\n"
14979 "\n"
14980 msgstr ""
14981
14982 #. type: textblock
14983 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6147
14984 msgid ""
14985 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14986 "the new size of the underlying device."
14987 msgstr ""
14988
14989 #. type: =head2
14990 #: ../fish/guestfish-actions.pod:3951
14991 msgid "pvresize-size"
14992 msgstr ""
14993
14994 #. type: verbatim
14995 #: ../fish/guestfish-actions.pod:3953
14996 #, no-wrap
14997 msgid ""
14998 " pvresize-size device size\n"
14999 "\n"
15000 msgstr ""
15001
15002 #. type: textblock
15003 #: ../fish/guestfish-actions.pod:3955
15004 msgid ""
15005 "This command is the same as L</pvresize> except that it allows you to "
15006 "specify the new size (in bytes) explicitly."
15007 msgstr ""
15008
15009 #. type: =head2
15010 #: ../fish/guestfish-actions.pod:3958
15011 msgid "pvs"
15012 msgstr ""
15013
15014 #. type: verbatim
15015 #: ../fish/guestfish-actions.pod:3960
15016 #, no-wrap
15017 msgid ""
15018 " pvs\n"
15019 "\n"
15020 msgstr ""
15021
15022 #. type: textblock
15023 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6173
15024 msgid ""
15025 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15026 "(8)> command."
15027 msgstr ""
15028
15029 #. type: textblock
15030 #: ../fish/guestfish-actions.pod:3965 ../src/guestfs-actions.pod:6176
15031 msgid ""
15032 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15033 "sda2>)."
15034 msgstr ""
15035
15036 #. type: textblock
15037 #: ../fish/guestfish-actions.pod:3968
15038 msgid "See also L</pvs-full>."
15039 msgstr ""
15040
15041 #. type: =head2
15042 #: ../fish/guestfish-actions.pod:3970
15043 msgid "pvs-full"
15044 msgstr ""
15045
15046 #. type: verbatim
15047 #: ../fish/guestfish-actions.pod:3972
15048 #, no-wrap
15049 msgid ""
15050 " pvs-full\n"
15051 "\n"
15052 msgstr ""
15053
15054 #. type: textblock
15055 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6192
15056 msgid ""
15057 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15058 "(8)> command.  The \"full\" version includes all fields."
15059 msgstr ""
15060
15061 #. type: =head2
15062 #: ../fish/guestfish-actions.pod:3977
15063 msgid "pvuuid"
15064 msgstr ""
15065
15066 #. type: verbatim
15067 #: ../fish/guestfish-actions.pod:3979
15068 #, no-wrap
15069 msgid ""
15070 " pvuuid device\n"
15071 "\n"
15072 msgstr ""
15073
15074 #. type: textblock
15075 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6207
15076 msgid "This command returns the UUID of the LVM PV C<device>."
15077 msgstr ""
15078
15079 #. type: =head2
15080 #: ../fish/guestfish-actions.pod:3983
15081 msgid "pwrite"
15082 msgstr ""
15083
15084 #. type: verbatim
15085 #: ../fish/guestfish-actions.pod:3985
15086 #, no-wrap
15087 msgid ""
15088 " pwrite path content offset\n"
15089 "\n"
15090 msgstr ""
15091
15092 #. type: textblock
15093 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6223
15094 msgid ""
15095 "This command writes to part of a file.  It writes the data buffer C<content> "
15096 "to the file C<path> starting at offset C<offset>."
15097 msgstr ""
15098
15099 #. type: textblock
15100 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6226
15101 msgid ""
15102 "This command implements the L<pwrite(2)> system call, and like that system "
15103 "call it may not write the full data requested.  The return value is the "
15104 "number of bytes that were actually written to the file.  This could even be "
15105 "0, although short writes are unlikely for regular files in ordinary "
15106 "circumstances."
15107 msgstr ""
15108
15109 #. type: textblock
15110 #: ../fish/guestfish-actions.pod:3996
15111 msgid "See also L</pread>, L</pwrite-device>."
15112 msgstr ""
15113
15114 #. type: =head2
15115 #: ../fish/guestfish-actions.pod:4001
15116 msgid "pwrite-device"
15117 msgstr ""
15118
15119 #. type: verbatim
15120 #: ../fish/guestfish-actions.pod:4003
15121 #, no-wrap
15122 msgid ""
15123 " pwrite-device device content offset\n"
15124 "\n"
15125 msgstr ""
15126
15127 #. type: textblock
15128 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6250
15129 msgid ""
15130 "This command writes to part of a device.  It writes the data buffer "
15131 "C<content> to C<device> starting at offset C<offset>."
15132 msgstr ""
15133
15134 #. type: textblock
15135 #: ../fish/guestfish-actions.pod:4008 ../src/guestfs-actions.pod:6253
15136 msgid ""
15137 "This command implements the L<pwrite(2)> system call, and like that system "
15138 "call it may not write the full data requested (although short writes to disk "
15139 "devices and partitions are probably impossible with standard Linux kernels)."
15140 msgstr ""
15141
15142 #. type: textblock
15143 #: ../fish/guestfish-actions.pod:4013
15144 msgid "See also L</pwrite>."
15145 msgstr ""
15146
15147 #. type: =head2
15148 #: ../fish/guestfish-actions.pod:4018
15149 msgid "read-file"
15150 msgstr ""
15151
15152 #. type: verbatim
15153 #: ../fish/guestfish-actions.pod:4020
15154 #, no-wrap
15155 msgid ""
15156 " read-file path\n"
15157 "\n"
15158 msgstr ""
15159
15160 #. type: textblock
15161 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6274
15162 msgid "This calls returns the contents of the file C<path> as a buffer."
15163 msgstr ""
15164
15165 #. type: textblock
15166 #: ../fish/guestfish-actions.pod:4025
15167 msgid ""
15168 "Unlike L</cat>, this function can correctly handle files that contain "
15169 "embedded ASCII NUL characters.  However unlike L</download>, this function "
15170 "is limited in the total size of file that can be handled."
15171 msgstr ""
15172
15173 #. type: =head2
15174 #: ../fish/guestfish-actions.pod:4033
15175 msgid "read-lines"
15176 msgstr ""
15177
15178 #. type: verbatim
15179 #: ../fish/guestfish-actions.pod:4035
15180 #, no-wrap
15181 msgid ""
15182 " read-lines path\n"
15183 "\n"
15184 msgstr ""
15185
15186 #. type: textblock
15187 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6299
15188 msgid ""
15189 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15190 "C<CRLF> character sequences are I<not> returned."
15191 msgstr ""
15192
15193 #. type: textblock
15194 #: ../fish/guestfish-actions.pod:4042
15195 msgid ""
15196 "Note that this function cannot correctly handle binary files (specifically, "
15197 "files containing C<\\0> character which is treated as end of line).  For "
15198 "those you need to use the L</read-file> function which has a more complex "
15199 "interface."
15200 msgstr ""
15201
15202 #. type: =head2
15203 #: ../fish/guestfish-actions.pod:4047
15204 msgid "readdir"
15205 msgstr ""
15206
15207 #. type: verbatim
15208 #: ../fish/guestfish-actions.pod:4049
15209 #, no-wrap
15210 msgid ""
15211 " readdir dir\n"
15212 "\n"
15213 msgstr ""
15214
15215 #. type: textblock
15216 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6319
15217 msgid "This returns the list of directory entries in directory C<dir>."
15218 msgstr ""
15219
15220 #. type: textblock
15221 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6321
15222 msgid ""
15223 "All entries in the directory are returned, including C<.> and C<..>.  The "
15224 "entries are I<not> sorted, but returned in the same order as the underlying "
15225 "filesystem."
15226 msgstr ""
15227
15228 #. type: textblock
15229 #: ../fish/guestfish-actions.pod:4057 ../src/guestfs-actions.pod:6325
15230 msgid ""
15231 "Also this call returns basic file type information about each file.  The "
15232 "C<ftyp> field will contain one of the following characters:"
15233 msgstr ""
15234
15235 #. type: =item
15236 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6330
15237 msgid "'b'"
15238 msgstr ""
15239
15240 #. type: textblock
15241 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6332
15242 msgid "Block special"
15243 msgstr ""
15244
15245 #. type: =item
15246 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6334
15247 msgid "'c'"
15248 msgstr ""
15249
15250 #. type: textblock
15251 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6336
15252 msgid "Char special"
15253 msgstr ""
15254
15255 #. type: =item
15256 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6338
15257 msgid "'d'"
15258 msgstr ""
15259
15260 #. type: textblock
15261 #: ../fish/guestfish-actions.pod:4072 ../src/guestfs-actions.pod:6340
15262 msgid "Directory"
15263 msgstr ""
15264
15265 #. type: =item
15266 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6342
15267 msgid "'f'"
15268 msgstr ""
15269
15270 #. type: textblock
15271 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6344
15272 msgid "FIFO (named pipe)"
15273 msgstr ""
15274
15275 #. type: =item
15276 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6346
15277 msgid "'l'"
15278 msgstr ""
15279
15280 #. type: textblock
15281 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6348
15282 msgid "Symbolic link"
15283 msgstr ""
15284
15285 #. type: =item
15286 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6350
15287 msgid "'r'"
15288 msgstr ""
15289
15290 #. type: textblock
15291 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6352
15292 msgid "Regular file"
15293 msgstr ""
15294
15295 #. type: =item
15296 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6354
15297 msgid "'s'"
15298 msgstr ""
15299
15300 #. type: textblock
15301 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6356
15302 msgid "Socket"
15303 msgstr ""
15304
15305 #. type: =item
15306 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6358
15307 msgid "'u'"
15308 msgstr ""
15309
15310 #. type: textblock
15311 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6360
15312 msgid "Unknown file type"
15313 msgstr ""
15314
15315 #. type: =item
15316 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6362
15317 msgid "'?'"
15318 msgstr ""
15319
15320 #. type: textblock
15321 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6364
15322 msgid ""
15323 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15324 msgstr ""
15325
15326 #. type: textblock
15327 #: ../fish/guestfish-actions.pod:4101
15328 msgid ""
15329 "This function is primarily intended for use by programs.  To get a simple "
15330 "list of names, use L</ls>.  To get a printable directory for human "
15331 "consumption, use L</ll>."
15332 msgstr ""
15333
15334 #. type: =head2
15335 #: ../fish/guestfish-actions.pod:4105
15336 msgid "readlink"
15337 msgstr ""
15338
15339 #. type: verbatim
15340 #: ../fish/guestfish-actions.pod:4107
15341 #, no-wrap
15342 msgid ""
15343 " readlink path\n"
15344 "\n"
15345 msgstr ""
15346
15347 #. type: textblock
15348 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6385
15349 msgid "This command reads the target of a symbolic link."
15350 msgstr ""
15351
15352 #. type: =head2
15353 #: ../fish/guestfish-actions.pod:4111
15354 msgid "readlinklist"
15355 msgstr ""
15356
15357 #. type: verbatim
15358 #: ../fish/guestfish-actions.pod:4113
15359 #, no-wrap
15360 msgid ""
15361 " readlinklist path 'names ...'\n"
15362 "\n"
15363 msgstr ""
15364
15365 #. type: textblock
15366 #: ../fish/guestfish-actions.pod:4115 ../src/guestfs-actions.pod:6399
15367 msgid ""
15368 "This call allows you to do a C<readlink> operation on multiple files, where "
15369 "all files are in the directory C<path>.  C<names> is the list of files from "
15370 "this directory."
15371 msgstr ""
15372
15373 #. type: textblock
15374 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6403
15375 msgid ""
15376 "On return you get a list of strings, with a one-to-one correspondence to the "
15377 "C<names> list.  Each string is the value of the symbolic link."
15378 msgstr ""
15379
15380 #. type: textblock
15381 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6407
15382 msgid ""
15383 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15384 "result string is the empty string C<\"\">.  However the whole operation is "
15385 "completed even if there were C<readlink(2)> errors, and so you can call this "
15386 "function with names where you don't know if they are symbolic links already "
15387 "(albeit slightly less efficient)."
15388 msgstr ""
15389
15390 #. type: textblock
15391 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6414
15392 msgid ""
15393 "This call is intended for programs that want to efficiently list a directory "
15394 "contents without making many round-trips.  Very long directory listings "
15395 "might cause the protocol message size to be exceeded, causing this call to "
15396 "fail.  The caller must split up such requests into smaller groups of names."
15397 msgstr ""
15398
15399 #. type: =head2
15400 #: ../fish/guestfish-actions.pod:4137
15401 msgid "realpath"
15402 msgstr ""
15403
15404 #. type: verbatim
15405 #: ../fish/guestfish-actions.pod:4139
15406 #, no-wrap
15407 msgid ""
15408 " realpath path\n"
15409 "\n"
15410 msgstr ""
15411
15412 #. type: textblock
15413 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6433
15414 msgid ""
15415 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15416 "has no C<.>, C<..> or symbolic link path elements."
15417 msgstr ""
15418
15419 #. type: =head2
15420 #: ../fish/guestfish-actions.pod:4144
15421 msgid "removexattr"
15422 msgstr ""
15423
15424 #. type: verbatim
15425 #: ../fish/guestfish-actions.pod:4146
15426 #, no-wrap
15427 msgid ""
15428 " removexattr xattr path\n"
15429 "\n"
15430 msgstr ""
15431
15432 #. type: textblock
15433 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6448
15434 msgid ""
15435 "This call removes the extended attribute named C<xattr> of the file C<path>."
15436 msgstr ""
15437
15438 #. type: textblock
15439 #: ../fish/guestfish-actions.pod:4151
15440 msgid "See also: L</lremovexattr>, L<attr(5)>."
15441 msgstr ""
15442
15443 #. type: =head2
15444 #: ../fish/guestfish-actions.pod:4153
15445 msgid "resize2fs"
15446 msgstr ""
15447
15448 #. type: verbatim
15449 #: ../fish/guestfish-actions.pod:4155
15450 #, no-wrap
15451 msgid ""
15452 " resize2fs device\n"
15453 "\n"
15454 msgstr ""
15455
15456 #. type: textblock
15457 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6463
15458 msgid ""
15459 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15460 "underlying device."
15461 msgstr ""
15462
15463 #. type: textblock
15464 #: ../fish/guestfish-actions.pod:4160
15465 msgid ""
15466 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15467 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15468 "gives an error about this and sometimes not.  In any case, it is always safe "
15469 "to call L</e2fsck-f> before calling this function."
15470 msgstr ""
15471
15472 #. type: =head2
15473 #: ../fish/guestfish-actions.pod:4166
15474 msgid "resize2fs-M"
15475 msgstr ""
15476
15477 #. type: verbatim
15478 #: ../fish/guestfish-actions.pod:4168
15479 #, no-wrap
15480 msgid ""
15481 " resize2fs-M device\n"
15482 "\n"
15483 msgstr ""
15484
15485 #. type: textblock
15486 #: ../fish/guestfish-actions.pod:4170
15487 msgid ""
15488 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15489 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15490 "command."
15491 msgstr ""
15492
15493 #. type: textblock
15494 #: ../fish/guestfish-actions.pod:4174
15495 msgid ""
15496 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15497 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15498 "multiplied together, give the resulting size of the minimal filesystem in "
15499 "bytes."
15500 msgstr ""
15501
15502 #. type: =head2
15503 #: ../fish/guestfish-actions.pod:4179
15504 msgid "resize2fs-size"
15505 msgstr ""
15506
15507 #. type: verbatim
15508 #: ../fish/guestfish-actions.pod:4181
15509 #, no-wrap
15510 msgid ""
15511 " resize2fs-size device size\n"
15512 "\n"
15513 msgstr ""
15514
15515 #. type: textblock
15516 #: ../fish/guestfish-actions.pod:4183
15517 msgid ""
15518 "This command is the same as L</resize2fs> except that it allows you to "
15519 "specify the new size (in bytes) explicitly."
15520 msgstr ""
15521
15522 #. type: =head2
15523 #: ../fish/guestfish-actions.pod:4186
15524 msgid "rm"
15525 msgstr ""
15526
15527 #. type: verbatim
15528 #: ../fish/guestfish-actions.pod:4188
15529 #, no-wrap
15530 msgid ""
15531 " rm path\n"
15532 "\n"
15533 msgstr ""
15534
15535 #. type: textblock
15536 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6515
15537 msgid "Remove the single file C<path>."
15538 msgstr ""
15539
15540 #. type: =head2
15541 #: ../fish/guestfish-actions.pod:4192
15542 msgid "rm-rf"
15543 msgstr ""
15544
15545 #. type: verbatim
15546 #: ../fish/guestfish-actions.pod:4194
15547 #, no-wrap
15548 msgid ""
15549 " rm-rf path\n"
15550 "\n"
15551 msgstr ""
15552
15553 #. type: textblock
15554 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6527
15555 msgid ""
15556 "Remove the file or directory C<path>, recursively removing the contents if "
15557 "its a directory.  This is like the C<rm -rf> shell command."
15558 msgstr ""
15559
15560 #. type: =head2
15561 #: ../fish/guestfish-actions.pod:4200
15562 msgid "rmdir"
15563 msgstr ""
15564
15565 #. type: verbatim
15566 #: ../fish/guestfish-actions.pod:4202
15567 #, no-wrap
15568 msgid ""
15569 " rmdir path\n"
15570 "\n"
15571 msgstr ""
15572
15573 #. type: textblock
15574 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6541
15575 msgid "Remove the single directory C<path>."
15576 msgstr ""
15577
15578 #. type: =head2
15579 #: ../fish/guestfish-actions.pod:4206
15580 msgid "rmmountpoint"
15581 msgstr ""
15582
15583 #. type: verbatim
15584 #: ../fish/guestfish-actions.pod:4208
15585 #, no-wrap
15586 msgid ""
15587 " rmmountpoint exemptpath\n"
15588 "\n"
15589 msgstr ""
15590
15591 #. type: textblock
15592 #: ../fish/guestfish-actions.pod:4210
15593 msgid ""
15594 "This calls removes a mountpoint that was previously created with L</"
15595 "mkmountpoint>.  See L</mkmountpoint> for full details."
15596 msgstr ""
15597
15598 #. type: =head2
15599 #: ../fish/guestfish-actions.pod:4214
15600 msgid "scrub-device"
15601 msgstr ""
15602
15603 #. type: verbatim
15604 #: ../fish/guestfish-actions.pod:4216
15605 #, no-wrap
15606 msgid ""
15607 " scrub-device device\n"
15608 "\n"
15609 msgstr ""
15610
15611 #. type: textblock
15612 #: ../fish/guestfish-actions.pod:4218 ../src/guestfs-actions.pod:6567
15613 msgid ""
15614 "This command writes patterns over C<device> to make data retrieval more "
15615 "difficult."
15616 msgstr ""
15617
15618 #. type: textblock
15619 #: ../fish/guestfish-actions.pod:4221 ../fish/guestfish-actions.pod:4233
15620 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6570
15621 #: ../src/guestfs-actions.pod:6588 ../src/guestfs-actions.pod:6607
15622 msgid ""
15623 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15624 "more details."
15625 msgstr ""
15626
15627 #. type: =head2
15628 #: ../fish/guestfish-actions.pod:4224
15629 msgid "scrub-file"
15630 msgstr ""
15631
15632 #. type: verbatim
15633 #: ../fish/guestfish-actions.pod:4226
15634 #, no-wrap
15635 msgid ""
15636 " scrub-file file\n"
15637 "\n"
15638 msgstr ""
15639
15640 #. type: textblock
15641 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6583
15642 msgid ""
15643 "This command writes patterns over a file to make data retrieval more "
15644 "difficult."
15645 msgstr ""
15646
15647 #. type: textblock
15648 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6586
15649 msgid "The file is I<removed> after scrubbing."
15650 msgstr ""
15651
15652 #. type: =head2
15653 #: ../fish/guestfish-actions.pod:4236
15654 msgid "scrub-freespace"
15655 msgstr ""
15656
15657 #. type: verbatim
15658 #: ../fish/guestfish-actions.pod:4238
15659 #, no-wrap
15660 msgid ""
15661 " scrub-freespace dir\n"
15662 "\n"
15663 msgstr ""
15664
15665 #. type: textblock
15666 #: ../fish/guestfish-actions.pod:4240
15667 msgid ""
15668 "This command creates the directory C<dir> and then fills it with files until "
15669 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15670 "deletes them.  The intention is to scrub any free space on the partition "
15671 "containing C<dir>."
15672 msgstr ""
15673
15674 #. type: =head2
15675 #: ../fish/guestfish-actions.pod:4249
15676 msgid "set-append"
15677 msgstr ""
15678
15679 #. type: =head2
15680 #: ../fish/guestfish-actions.pod:4251
15681 msgid "append"
15682 msgstr ""
15683
15684 #. type: verbatim
15685 #: ../fish/guestfish-actions.pod:4253
15686 #, no-wrap
15687 msgid ""
15688 " set-append append\n"
15689 "\n"
15690 msgstr ""
15691
15692 #. type: textblock
15693 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6620
15694 msgid ""
15695 "This function is used to add additional options to the guest kernel command "
15696 "line."
15697 msgstr ""
15698
15699 #. type: textblock
15700 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6623
15701 msgid ""
15702 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15703 "environment variable."
15704 msgstr ""
15705
15706 #. type: textblock
15707 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6626
15708 msgid ""
15709 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15710 "(libguestfs always adds a few of its own)."
15711 msgstr ""
15712
15713 #. type: =head2
15714 #: ../fish/guestfish-actions.pod:4264
15715 msgid "set-attach-method"
15716 msgstr ""
15717
15718 #. type: =head2
15719 #: ../fish/guestfish-actions.pod:4266
15720 msgid "attach-method"
15721 msgstr ""
15722
15723 #. type: verbatim
15724 #: ../fish/guestfish-actions.pod:4268
15725 #, no-wrap
15726 msgid ""
15727 " set-attach-method attachmethod\n"
15728 "\n"
15729 msgstr ""
15730
15731 #. type: textblock
15732 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6639
15733 msgid ""
15734 "Set the method that libguestfs uses to connect to the back end guestfsd "
15735 "daemon.  Possible methods are:"
15736 msgstr ""
15737
15738 #. type: =item
15739 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6644
15740 #: ../src/guestfs.pod:2916
15741 msgid "C<appliance>"
15742 msgstr ""
15743
15744 #. type: textblock
15745 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6646
15746 msgid ""
15747 "Launch an appliance and connect to it.  This is the ordinary method and the "
15748 "default."
15749 msgstr ""
15750
15751 #. type: =item
15752 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6649
15753 msgid "C<unix:I<path>>"
15754 msgstr ""
15755
15756 #. type: textblock
15757 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6651
15758 msgid "Connect to the Unix domain socket I<path>."
15759 msgstr ""
15760
15761 #. type: textblock
15762 #: ../fish/guestfish-actions.pod:4284 ../src/guestfs-actions.pod:6653
15763 msgid ""
15764 "This method lets you connect to an existing daemon or (using virtio-serial) "
15765 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15766 "RUNNING DAEMONS>."
15767 msgstr ""
15768
15769 #. type: =head2
15770 #: ../fish/guestfish-actions.pod:4290
15771 msgid "set-autosync"
15772 msgstr ""
15773
15774 #. type: =head2
15775 #: ../fish/guestfish-actions.pod:4292
15776 msgid "autosync"
15777 msgstr ""
15778
15779 #. type: verbatim
15780 #: ../fish/guestfish-actions.pod:4294
15781 #, no-wrap
15782 msgid ""
15783 " set-autosync true|false\n"
15784 "\n"
15785 msgstr ""
15786
15787 #. type: textblock
15788 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6669
15789 msgid ""
15790 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15791 "effort attempt to make filesystems consistent and synchronized when the "
15792 "handle is closed (also if the program exits without closing handles)."
15793 msgstr ""
15794
15795 #. type: textblock
15796 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6674
15797 msgid ""
15798 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15799 "disabled by default)."
15800 msgstr ""
15801
15802 #. type: =head2
15803 #: ../fish/guestfish-actions.pod:4304
15804 msgid "set-direct"
15805 msgstr ""
15806
15807 #. type: =head2
15808 #: ../fish/guestfish-actions.pod:4306
15809 msgid "direct"
15810 msgstr ""
15811
15812 #. type: verbatim
15813 #: ../fish/guestfish-actions.pod:4308
15814 #, no-wrap
15815 msgid ""
15816 " set-direct true|false\n"
15817 "\n"
15818 msgstr ""
15819
15820 #. type: textblock
15821 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6687
15822 msgid ""
15823 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15824 "passed directly through to the appliance once it is launched."
15825 msgstr ""
15826
15827 #. type: textblock
15828 #: ../fish/guestfish-actions.pod:4314
15829 msgid ""
15830 "One consequence of this is that log messages aren't caught by the library "
15831 "and handled by L</set-log-message-callback>, but go straight to stdout."
15832 msgstr ""
15833
15834 #. type: textblock
15835 #: ../fish/guestfish-actions.pod:4318 ../src/guestfs-actions.pod:6695
15836 msgid "You probably don't want to use this unless you know what you are doing."
15837 msgstr ""
15838
15839 #. type: textblock
15840 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6698
15841 msgid "The default is disabled."
15842 msgstr ""
15843
15844 #. type: =head2
15845 #: ../fish/guestfish-actions.pod:4323
15846 msgid "set-e2label"
15847 msgstr ""
15848
15849 #. type: verbatim
15850 #: ../fish/guestfish-actions.pod:4325
15851 #, no-wrap
15852 msgid ""
15853 " set-e2label device label\n"
15854 "\n"
15855 msgstr ""
15856
15857 #. type: textblock
15858 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6711
15859 msgid ""
15860 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15861 "C<label>.  Filesystem labels are limited to 16 characters."
15862 msgstr ""
15863
15864 #. type: textblock
15865 #: ../fish/guestfish-actions.pod:4331
15866 msgid ""
15867 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15868 "label on a filesystem."
15869 msgstr ""
15870
15871 #. type: =head2
15872 #: ../fish/guestfish-actions.pod:4334
15873 msgid "set-e2uuid"
15874 msgstr ""
15875
15876 #. type: verbatim
15877 #: ../fish/guestfish-actions.pod:4336
15878 #, no-wrap
15879 msgid ""
15880 " set-e2uuid device uuid\n"
15881 "\n"
15882 msgstr ""
15883
15884 #. type: textblock
15885 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6729
15886 msgid ""
15887 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15888 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15889 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15890 msgstr ""
15891
15892 #. type: textblock
15893 #: ../fish/guestfish-actions.pod:4343
15894 msgid ""
15895 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15896 "UUID of a filesystem."
15897 msgstr ""
15898
15899 #. type: =head2
15900 #: ../fish/guestfish-actions.pod:4346
15901 msgid "set-memsize"
15902 msgstr ""
15903
15904 #. type: =head2
15905 #: ../fish/guestfish-actions.pod:4348
15906 msgid "memsize"
15907 msgstr ""
15908
15909 #. type: verbatim
15910 #: ../fish/guestfish-actions.pod:4350
15911 #, no-wrap
15912 msgid ""
15913 " set-memsize memsize\n"
15914 "\n"
15915 msgstr ""
15916
15917 #. type: textblock
15918 #: ../fish/guestfish-actions.pod:4352
15919 msgid ""
15920 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15921 "This only has any effect if called before L</launch>."
15922 msgstr ""
15923
15924 #. type: textblock
15925 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6751
15926 msgid ""
15927 "You can also change this by setting the environment variable "
15928 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15929 msgstr ""
15930
15931 #. type: =head2
15932 #: ../fish/guestfish-actions.pod:4363
15933 msgid "set-network"
15934 msgstr ""
15935
15936 #. type: =head2
15937 #: ../fish/guestfish-actions.pod:4365
15938 msgid "network"
15939 msgstr ""
15940
15941 #. type: verbatim
15942 #: ../fish/guestfish-actions.pod:4367
15943 #, no-wrap
15944 msgid ""
15945 " set-network true|false\n"
15946 "\n"
15947 msgstr ""
15948
15949 #. type: textblock
15950 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6768
15951 msgid ""
15952 "If C<network> is true, then the network is enabled in the libguestfs "
15953 "appliance.  The default is false."
15954 msgstr ""
15955
15956 #. type: textblock
15957 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6771
15958 msgid ""
15959 "This affects whether commands are able to access the network (see L<guestfs"
15960 "(3)/RUNNING COMMANDS>)."
15961 msgstr ""
15962
15963 #. type: textblock
15964 #: ../fish/guestfish-actions.pod:4375
15965 msgid ""
15966 "You must call this before calling L</launch>, otherwise it has no effect."
15967 msgstr ""
15968
15969 #. type: =head2
15970 #: ../fish/guestfish-actions.pod:4378
15971 msgid "set-path"
15972 msgstr ""
15973
15974 #. type: verbatim
15975 #: ../fish/guestfish-actions.pod:4382
15976 #, no-wrap
15977 msgid ""
15978 " set-path searchpath\n"
15979 "\n"
15980 msgstr ""
15981
15982 #. type: textblock
15983 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6787
15984 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15985 msgstr ""
15986
15987 #. type: textblock
15988 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6789
15989 msgid ""
15990 "The default is C<$libdir/guestfs> unless overridden by setting "
15991 "C<LIBGUESTFS_PATH> environment variable."
15992 msgstr ""
15993
15994 #. type: textblock
15995 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6792
15996 msgid "Setting C<path> to C<NULL> restores the default path."
15997 msgstr ""
15998
15999 #. type: =head2
16000 #: ../fish/guestfish-actions.pod:4391
16001 msgid "set-pgroup"
16002 msgstr ""
16003
16004 #. type: =head2
16005 #: ../fish/guestfish-actions.pod:4393
16006 msgid "pgroup"
16007 msgstr ""
16008
16009 #. type: verbatim
16010 #: ../fish/guestfish-actions.pod:4395
16011 #, no-wrap
16012 msgid ""
16013 " set-pgroup true|false\n"
16014 "\n"
16015 msgstr ""
16016
16017 #. type: textblock
16018 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6804
16019 msgid ""
16020 "If C<pgroup> is true, child processes are placed into their own process "
16021 "group."
16022 msgstr ""
16023
16024 #. type: textblock
16025 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6807
16026 msgid ""
16027 "The practical upshot of this is that signals like C<SIGINT> (from users "
16028 "pressing C<^C>) won't be received by the child process."
16029 msgstr ""
16030
16031 #. type: textblock
16032 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6810
16033 msgid ""
16034 "The default for this flag is false, because usually you want C<^C> to kill "
16035 "the subprocess."
16036 msgstr ""
16037
16038 #. type: =head2
16039 #: ../fish/guestfish-actions.pod:4406
16040 msgid "set-qemu"
16041 msgstr ""
16042
16043 #. type: =head2
16044 #: ../fish/guestfish-actions.pod:4408
16045 msgid "qemu"
16046 msgstr ""
16047
16048 #. type: verbatim
16049 #: ../fish/guestfish-actions.pod:4410
16050 #, no-wrap
16051 msgid ""
16052 " set-qemu qemu\n"
16053 "\n"
16054 msgstr ""
16055
16056 #. type: textblock
16057 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6823
16058 msgid "Set the qemu binary that we will use."
16059 msgstr ""
16060
16061 #. type: textblock
16062 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6825
16063 msgid ""
16064 "The default is chosen when the library was compiled by the configure script."
16065 msgstr ""
16066
16067 #. type: textblock
16068 #: ../fish/guestfish-actions.pod:4417 ../src/guestfs-actions.pod:6828
16069 msgid ""
16070 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16071 "variable."
16072 msgstr ""
16073
16074 #. type: textblock
16075 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6831
16076 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16077 msgstr ""
16078
16079 #. type: textblock
16080 #: ../fish/guestfish-actions.pod:4422 ../src/guestfs-actions.pod:6833
16081 msgid ""
16082 "Note that you should call this function as early as possible after creating "
16083 "the handle.  This is because some pre-launch operations depend on testing "
16084 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16085 "don't retest features, and so you might see inconsistent results.  Using the "
16086 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16087 "the qemu binary at the same time as the handle is created."
16088 msgstr ""
16089
16090 #. type: =head2
16091 #: ../fish/guestfish-actions.pod:4430
16092 msgid "set-recovery-proc"
16093 msgstr ""
16094
16095 #. type: =head2
16096 #: ../fish/guestfish-actions.pod:4432
16097 msgid "recovery-proc"
16098 msgstr ""
16099
16100 #. type: verbatim
16101 #: ../fish/guestfish-actions.pod:4434
16102 #, no-wrap
16103 msgid ""
16104 " set-recovery-proc true|false\n"
16105 "\n"
16106 msgstr ""
16107
16108 #. type: textblock
16109 #: ../fish/guestfish-actions.pod:4436
16110 msgid ""
16111 "If this is called with the parameter C<false> then L</launch> does not "
16112 "create a recovery process.  The purpose of the recovery process is to stop "
16113 "runaway qemu processes in the case where the main program aborts abruptly."
16114 msgstr ""
16115
16116 #. type: textblock
16117 #: ../fish/guestfish-actions.pod:4441
16118 msgid ""
16119 "This only has any effect if called before L</launch>, and the default is "
16120 "true."
16121 msgstr ""
16122
16123 #. type: textblock
16124 #: ../fish/guestfish-actions.pod:4444 ../src/guestfs-actions.pod:6859
16125 msgid ""
16126 "About the only time when you would want to disable this is if the main "
16127 "process will fork itself into the background (\"daemonize\" itself).  In "
16128 "this case the recovery process thinks that the main program has disappeared "
16129 "and so kills qemu, which is not very helpful."
16130 msgstr ""
16131
16132 #. type: =head2
16133 #: ../fish/guestfish-actions.pod:4450
16134 msgid "set-selinux"
16135 msgstr ""
16136
16137 #. type: =head2
16138 #: ../fish/guestfish-actions.pod:4452
16139 msgid "selinux"
16140 msgstr ""
16141
16142 #. type: verbatim
16143 #: ../fish/guestfish-actions.pod:4454
16144 #, no-wrap
16145 msgid ""
16146 " set-selinux true|false\n"
16147 "\n"
16148 msgstr ""
16149
16150 #. type: textblock
16151 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6875
16152 msgid ""
16153 "This sets the selinux flag that is passed to the appliance at boot time.  "
16154 "The default is C<selinux=0> (disabled)."
16155 msgstr ""
16156
16157 #. type: textblock
16158 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6878
16159 msgid ""
16160 "Note that if SELinux is enabled, it is always in Permissive mode "
16161 "(C<enforcing=0>)."
16162 msgstr ""
16163
16164 #. type: =head2
16165 #: ../fish/guestfish-actions.pod:4465
16166 msgid "set-smp"
16167 msgstr ""
16168
16169 #. type: =head2
16170 #: ../fish/guestfish-actions.pod:4467
16171 msgid "smp"
16172 msgstr ""
16173
16174 #. type: verbatim
16175 #: ../fish/guestfish-actions.pod:4469
16176 #, no-wrap
16177 msgid ""
16178 " set-smp smp\n"
16179 "\n"
16180 msgstr ""
16181
16182 #. type: textblock
16183 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6894
16184 msgid ""
16185 "Change the number of virtual CPUs assigned to the appliance.  The default is "
16186 "C<1>.  Increasing this may improve performance, though often it has no "
16187 "effect."
16188 msgstr ""
16189
16190 #. type: textblock
16191 #: ../fish/guestfish-actions.pod:4475
16192 msgid "This function must be called before L</launch>."
16193 msgstr ""
16194
16195 #. type: =head2
16196 #: ../fish/guestfish-actions.pod:4477
16197 msgid "set-trace"
16198 msgstr ""
16199
16200 #. type: =head2
16201 #: ../fish/guestfish-actions.pod:4479
16202 msgid "trace"
16203 msgstr ""
16204
16205 #. type: verbatim
16206 #: ../fish/guestfish-actions.pod:4481
16207 #, no-wrap
16208 msgid ""
16209 " set-trace true|false\n"
16210 "\n"
16211 msgstr ""
16212
16213 #. type: textblock
16214 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6910
16215 msgid ""
16216 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16217 "return values are traced."
16218 msgstr ""
16219
16220 #. type: textblock
16221 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6913
16222 msgid ""
16223 "If you want to trace C API calls into libguestfs (and other libraries) then "
16224 "possibly a better way is to use the external ltrace(1) command."
16225 msgstr ""
16226
16227 #. type: textblock
16228 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6917
16229 msgid ""
16230 "Command traces are disabled unless the environment variable "
16231 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16232 msgstr ""
16233
16234 #. type: textblock
16235 #: ../fish/guestfish-actions.pod:4493
16236 msgid ""
16237 "Trace messages are normally sent to C<stderr>, unless you register a "
16238 "callback to send them somewhere else (see L</set-event-callback>)."
16239 msgstr ""
16240
16241 #. type: =head2
16242 #: ../fish/guestfish-actions.pod:4497
16243 msgid "set-verbose"
16244 msgstr ""
16245
16246 #. type: =head2
16247 #: ../fish/guestfish-actions.pod:4499
16248 msgid "verbose"
16249 msgstr ""
16250
16251 #. type: verbatim
16252 #: ../fish/guestfish-actions.pod:4501
16253 #, no-wrap
16254 msgid ""
16255 " set-verbose true|false\n"
16256 "\n"
16257 msgstr ""
16258
16259 #. type: textblock
16260 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6934
16261 msgid "If C<verbose> is true, this turns on verbose messages."
16262 msgstr ""
16263
16264 #. type: textblock
16265 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6936
16266 msgid ""
16267 "Verbose messages are disabled unless the environment variable "
16268 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16269 msgstr ""
16270
16271 #. type: textblock
16272 #: ../fish/guestfish-actions.pod:4508
16273 msgid ""
16274 "Verbose messages are normally sent to C<stderr>, unless you register a "
16275 "callback to send them somewhere else (see L</set-event-callback>)."
16276 msgstr ""
16277
16278 #. type: =head2
16279 #: ../fish/guestfish-actions.pod:4512
16280 msgid "setcon"
16281 msgstr ""
16282
16283 #. type: verbatim
16284 #: ../fish/guestfish-actions.pod:4514
16285 #, no-wrap
16286 msgid ""
16287 " setcon context\n"
16288 "\n"
16289 msgstr ""
16290
16291 #. type: textblock
16292 #: ../fish/guestfish-actions.pod:4516 ../src/guestfs-actions.pod:6953
16293 msgid ""
16294 "This sets the SELinux security context of the daemon to the string "
16295 "C<context>."
16296 msgstr ""
16297
16298 #. type: textblock
16299 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6956
16300 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16301 msgstr ""
16302
16303 #. type: =head2
16304 #: ../fish/guestfish-actions.pod:4521
16305 msgid "setxattr"
16306 msgstr ""
16307
16308 #. type: verbatim
16309 #: ../fish/guestfish-actions.pod:4523
16310 #, no-wrap
16311 msgid ""
16312 " setxattr xattr val vallen path\n"
16313 "\n"
16314 msgstr ""
16315
16316 #. type: textblock
16317 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6971
16318 msgid ""
16319 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16320 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16321 msgstr ""
16322
16323 #. type: textblock
16324 #: ../fish/guestfish-actions.pod:4529
16325 msgid "See also: L</lsetxattr>, L<attr(5)>."
16326 msgstr ""
16327
16328 #. type: =head2
16329 #: ../fish/guestfish-actions.pod:4531
16330 msgid "sfdisk"
16331 msgstr ""
16332
16333 #. type: verbatim
16334 #: ../fish/guestfish-actions.pod:4533
16335 #, no-wrap
16336 msgid ""
16337 " sfdisk device cyls heads sectors 'lines ...'\n"
16338 "\n"
16339 msgstr ""
16340
16341 #. type: textblock
16342 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6998
16343 msgid ""
16344 "This is a direct interface to the L<sfdisk(8)> program for creating "
16345 "partitions on block devices."
16346 msgstr ""
16347
16348 #. type: textblock
16349 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:7001
16350 msgid "C<device> should be a block device, for example C</dev/sda>."
16351 msgstr ""
16352
16353 #. type: textblock
16354 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:7003
16355 msgid ""
16356 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16357 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16358 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16359 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16360 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16361 "the kernel) cannot work out the right geometry and you will need to tell it."
16362 msgstr ""
16363
16364 #. type: textblock
16365 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:7011
16366 msgid ""
16367 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16368 "refer to the L<sfdisk(8)> manpage."
16369 msgstr ""
16370
16371 #. type: textblock
16372 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7014
16373 msgid ""
16374 "To create a single partition occupying the whole disk, you would pass "
16375 "C<lines> as a single element list, when the single element being the string "
16376 "C<,> (comma)."
16377 msgstr ""
16378
16379 #. type: textblock
16380 #: ../fish/guestfish-actions.pod:4555
16381 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16382 msgstr ""
16383
16384 #. type: textblock
16385 #: ../fish/guestfish-actions.pod:4558 ../fish/guestfish-actions.pod:4578
16386 #: ../fish/guestfish-actions.pod:4597
16387 msgid ""
16388 "I<This function is deprecated.> In new code, use the L</part_add> call "
16389 "instead."
16390 msgstr ""
16391
16392 #. type: =head2
16393 #: ../fish/guestfish-actions.pod:4565
16394 msgid "sfdiskM"
16395 msgstr ""
16396
16397 #. type: verbatim
16398 #: ../fish/guestfish-actions.pod:4567
16399 #, no-wrap
16400 msgid ""
16401 " sfdiskM device 'lines ...'\n"
16402 "\n"
16403 msgstr ""
16404
16405 #. type: textblock
16406 #: ../fish/guestfish-actions.pod:4569
16407 msgid ""
16408 "This is a simplified interface to the L</sfdisk> command, where partition "
16409 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16410 "you don't need to specify the cyls, heads and sectors parameters which were "
16411 "rarely if ever used anyway."
16412 msgstr ""
16413
16414 #. type: textblock
16415 #: ../fish/guestfish-actions.pod:4575
16416 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16417 msgstr ""
16418
16419 #. type: =head2
16420 #: ../fish/guestfish-actions.pod:4585
16421 msgid "sfdisk-N"
16422 msgstr ""
16423
16424 #. type: verbatim
16425 #: ../fish/guestfish-actions.pod:4587
16426 #, no-wrap
16427 msgid ""
16428 " sfdisk-N device partnum cyls heads sectors line\n"
16429 "\n"
16430 msgstr ""
16431
16432 #. type: textblock
16433 #: ../fish/guestfish-actions.pod:4589 ../src/guestfs-actions.pod:7070
16434 msgid ""
16435 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16436 "(note: C<n> counts from 1)."
16437 msgstr ""
16438
16439 #. type: textblock
16440 #: ../fish/guestfish-actions.pod:4592
16441 msgid ""
16442 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16443 "cyls/heads/sectors parameters."
16444 msgstr ""
16445
16446 #. type: textblock
16447 #: ../fish/guestfish-actions.pod:4595
16448 msgid "See also: L</part-add>"
16449 msgstr ""
16450
16451 #. type: =head2
16452 #: ../fish/guestfish-actions.pod:4604
16453 msgid "sfdisk-disk-geometry"
16454 msgstr ""
16455
16456 #. type: verbatim
16457 #: ../fish/guestfish-actions.pod:4606
16458 #, no-wrap
16459 msgid ""
16460 " sfdisk-disk-geometry device\n"
16461 "\n"
16462 msgstr ""
16463
16464 #. type: textblock
16465 #: ../fish/guestfish-actions.pod:4608
16466 msgid ""
16467 "This displays the disk geometry of C<device> read from the partition table.  "
16468 "Especially in the case where the underlying block device has been resized, "
16469 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16470 "kernel-geometry>)."
16471 msgstr ""
16472
16473 #. type: textblock
16474 #: ../fish/guestfish-actions.pod:4613 ../fish/guestfish-actions.pod:4622
16475 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7109
16476 msgid "The result is in human-readable format, and not designed to be parsed."
16477 msgstr ""
16478
16479 #. type: =head2
16480 #: ../fish/guestfish-actions.pod:4616
16481 msgid "sfdisk-kernel-geometry"
16482 msgstr ""
16483
16484 #. type: verbatim
16485 #: ../fish/guestfish-actions.pod:4618
16486 #, no-wrap
16487 msgid ""
16488 " sfdisk-kernel-geometry device\n"
16489 "\n"
16490 msgstr ""
16491
16492 #. type: textblock
16493 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:7107
16494 msgid "This displays the kernel's idea of the geometry of C<device>."
16495 msgstr ""
16496
16497 #. type: =head2
16498 #: ../fish/guestfish-actions.pod:4625
16499 msgid "sfdisk-l"
16500 msgstr ""
16501
16502 #. type: verbatim
16503 #: ../fish/guestfish-actions.pod:4627
16504 #, no-wrap
16505 msgid ""
16506 " sfdisk-l device\n"
16507 "\n"
16508 msgstr ""
16509
16510 #. type: textblock
16511 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7130
16512 msgid ""
16513 "This displays the partition table on C<device>, in the human-readable output "
16514 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16515 msgstr ""
16516
16517 #. type: textblock
16518 #: ../fish/guestfish-actions.pod:4633
16519 msgid "See also: L</part-list>"
16520 msgstr ""
16521
16522 #. type: textblock
16523 #: ../fish/guestfish-actions.pod:4635
16524 msgid ""
16525 "I<This function is deprecated.> In new code, use the L</part_list> call "
16526 "instead."
16527 msgstr ""
16528
16529 #. type: =head2
16530 #: ../fish/guestfish-actions.pod:4642
16531 msgid "sh"
16532 msgstr ""
16533
16534 #. type: verbatim
16535 #: ../fish/guestfish-actions.pod:4644
16536 #, no-wrap
16537 msgid ""
16538 " sh command\n"
16539 "\n"
16540 msgstr ""
16541
16542 #. type: textblock
16543 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7147
16544 msgid ""
16545 "This call runs a command from the guest filesystem via the guest's C</bin/"
16546 "sh>."
16547 msgstr ""
16548
16549 #. type: textblock
16550 #: ../fish/guestfish-actions.pod:4649
16551 msgid "This is like L</command>, but passes the command to:"
16552 msgstr ""
16553
16554 #. type: verbatim
16555 #: ../fish/guestfish-actions.pod:4651 ../src/guestfs-actions.pod:7152
16556 #, no-wrap
16557 msgid ""
16558 " /bin/sh -c \"command\"\n"
16559 "\n"
16560 msgstr ""
16561
16562 #. type: textblock
16563 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7154
16564 msgid ""
16565 "Depending on the guest's shell, this usually results in wildcards being "
16566 "expanded, shell expressions being interpolated and so on."
16567 msgstr ""
16568
16569 #. type: textblock
16570 #: ../fish/guestfish-actions.pod:4657
16571 msgid "All the provisos about L</command> apply to this call."
16572 msgstr ""
16573
16574 #. type: =head2
16575 #: ../fish/guestfish-actions.pod:4659
16576 msgid "sh-lines"
16577 msgstr ""
16578
16579 #. type: verbatim
16580 #: ../fish/guestfish-actions.pod:4661
16581 #, no-wrap
16582 msgid ""
16583 " sh-lines command\n"
16584 "\n"
16585 msgstr ""
16586
16587 #. type: textblock
16588 #: ../fish/guestfish-actions.pod:4663
16589 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16590 msgstr ""
16591
16592 #. type: textblock
16593 #: ../fish/guestfish-actions.pod:4666
16594 msgid "See also: L</command-lines>"
16595 msgstr ""
16596
16597 #. type: =head2
16598 #: ../fish/guestfish-actions.pod:4668
16599 msgid "sleep"
16600 msgstr ""
16601
16602 #. type: verbatim
16603 #: ../fish/guestfish-actions.pod:4670
16604 #, no-wrap
16605 msgid ""
16606 " sleep secs\n"
16607 "\n"
16608 msgstr ""
16609
16610 #. type: textblock
16611 #: ../fish/guestfish-actions.pod:4672 ../src/guestfs-actions.pod:7188
16612 msgid "Sleep for C<secs> seconds."
16613 msgstr ""
16614
16615 #. type: =head2
16616 #: ../fish/guestfish-actions.pod:4674
16617 msgid "stat"
16618 msgstr ""
16619
16620 #. type: verbatim
16621 #: ../fish/guestfish-actions.pod:4676
16622 #, no-wrap
16623 msgid ""
16624 " stat path\n"
16625 "\n"
16626 msgstr ""
16627
16628 #. type: textblock
16629 #: ../fish/guestfish-actions.pod:4680 ../src/guestfs-actions.pod:7202
16630 msgid "This is the same as the C<stat(2)> system call."
16631 msgstr ""
16632
16633 #. type: =head2
16634 #: ../fish/guestfish-actions.pod:4682
16635 msgid "statvfs"
16636 msgstr ""
16637
16638 #. type: verbatim
16639 #: ../fish/guestfish-actions.pod:4684
16640 #, no-wrap
16641 msgid ""
16642 " statvfs path\n"
16643 "\n"
16644 msgstr ""
16645
16646 #. type: textblock
16647 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7216
16648 msgid ""
16649 "Returns file system statistics for any mounted file system.  C<path> should "
16650 "be a file or directory in the mounted file system (typically it is the mount "
16651 "point itself, but it doesn't need to be)."
16652 msgstr ""
16653
16654 #. type: textblock
16655 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7220
16656 msgid "This is the same as the C<statvfs(2)> system call."
16657 msgstr ""
16658
16659 #. type: =head2
16660 #: ../fish/guestfish-actions.pod:4692
16661 msgid "strings"
16662 msgstr ""
16663
16664 #. type: verbatim
16665 #: ../fish/guestfish-actions.pod:4694
16666 #, no-wrap
16667 msgid ""
16668 " strings path\n"
16669 "\n"
16670 msgstr ""
16671
16672 #. type: textblock
16673 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7234
16674 msgid ""
16675 "This runs the L<strings(1)> command on a file and returns the list of "
16676 "printable strings found."
16677 msgstr ""
16678
16679 #. type: =head2
16680 #: ../fish/guestfish-actions.pod:4702
16681 msgid "strings-e"
16682 msgstr ""
16683
16684 #. type: verbatim
16685 #: ../fish/guestfish-actions.pod:4704
16686 #, no-wrap
16687 msgid ""
16688 " strings-e encoding path\n"
16689 "\n"
16690 msgstr ""
16691
16692 #. type: textblock
16693 #: ../fish/guestfish-actions.pod:4706
16694 msgid ""
16695 "This is like the L</strings> command, but allows you to specify the encoding "
16696 "of strings that are looked for in the source file C<path>."
16697 msgstr ""
16698
16699 #. type: textblock
16700 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7257
16701 msgid "Allowed encodings are:"
16702 msgstr ""
16703
16704 #. type: =item
16705 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7261
16706 msgid "s"
16707 msgstr ""
16708
16709 #. type: textblock
16710 #: ../fish/guestfish-actions.pod:4716
16711 msgid ""
16712 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16713 "ISO-8859-X (this is what L</strings> uses)."
16714 msgstr ""
16715
16716 #. type: =item
16717 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7266
16718 msgid "S"
16719 msgstr ""
16720
16721 #. type: textblock
16722 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7268
16723 msgid "Single 8-bit-byte characters."
16724 msgstr ""
16725
16726 #. type: =item
16727 #: ../fish/guestfish-actions.pod:4723 ../src/guestfs-actions.pod:7270
16728 msgid "b"
16729 msgstr ""
16730
16731 #. type: textblock
16732 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7272
16733 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16734 msgstr ""
16735
16736 #. type: =item
16737 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
16738 msgid "l (lower case letter L)"
16739 msgstr ""
16740
16741 #. type: textblock
16742 #: ../fish/guestfish-actions.pod:4730 ../src/guestfs-actions.pod:7277
16743 msgid ""
16744 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16745 "examining binaries in Windows guests."
16746 msgstr ""
16747
16748 #. type: =item
16749 #: ../fish/guestfish-actions.pod:4733 ../src/guestfs-actions.pod:7280
16750 msgid "B"
16751 msgstr ""
16752
16753 #. type: textblock
16754 #: ../fish/guestfish-actions.pod:4735 ../src/guestfs-actions.pod:7282
16755 msgid "32-bit big endian such as UCS-4BE."
16756 msgstr ""
16757
16758 #. type: =item
16759 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7284
16760 msgid "L"
16761 msgstr ""
16762
16763 #. type: textblock
16764 #: ../fish/guestfish-actions.pod:4739 ../src/guestfs-actions.pod:7286
16765 msgid "32-bit little endian such as UCS-4LE."
16766 msgstr ""
16767
16768 #. type: textblock
16769 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7290
16770 msgid "The returned strings are transcoded to UTF-8."
16771 msgstr ""
16772
16773 #. type: =head2
16774 #: ../fish/guestfish-actions.pod:4748
16775 msgid "swapoff-device"
16776 msgstr ""
16777
16778 #. type: verbatim
16779 #: ../fish/guestfish-actions.pod:4750
16780 #, no-wrap
16781 msgid ""
16782 " swapoff-device device\n"
16783 "\n"
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../fish/guestfish-actions.pod:4752
16788 msgid ""
16789 "This command disables the libguestfs appliance swap device or partition "
16790 "named C<device>.  See L</swapon-device>."
16791 msgstr ""
16792
16793 #. type: =head2
16794 #: ../fish/guestfish-actions.pod:4756
16795 msgid "swapoff-file"
16796 msgstr ""
16797
16798 #. type: verbatim
16799 #: ../fish/guestfish-actions.pod:4758
16800 #, no-wrap
16801 msgid ""
16802 " swapoff-file file\n"
16803 "\n"
16804 msgstr ""
16805
16806 #. type: textblock
16807 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7321
16808 msgid "This command disables the libguestfs appliance swap on file."
16809 msgstr ""
16810
16811 #. type: =head2
16812 #: ../fish/guestfish-actions.pod:4762
16813 msgid "swapoff-label"
16814 msgstr ""
16815
16816 #. type: verbatim
16817 #: ../fish/guestfish-actions.pod:4764
16818 #, no-wrap
16819 msgid ""
16820 " swapoff-label label\n"
16821 "\n"
16822 msgstr ""
16823
16824 #. type: textblock
16825 #: ../fish/guestfish-actions.pod:4766 ../src/guestfs-actions.pod:7333
16826 msgid ""
16827 "This command disables the libguestfs appliance swap on labeled swap "
16828 "partition."
16829 msgstr ""
16830
16831 #. type: =head2
16832 #: ../fish/guestfish-actions.pod:4769
16833 msgid "swapoff-uuid"
16834 msgstr ""
16835
16836 #. type: verbatim
16837 #: ../fish/guestfish-actions.pod:4771
16838 #, no-wrap
16839 msgid ""
16840 " swapoff-uuid uuid\n"
16841 "\n"
16842 msgstr ""
16843
16844 #. type: textblock
16845 #: ../fish/guestfish-actions.pod:4773 ../src/guestfs-actions.pod:7346
16846 msgid ""
16847 "This command disables the libguestfs appliance swap partition with the given "
16848 "UUID."
16849 msgstr ""
16850
16851 #. type: =head2
16852 #: ../fish/guestfish-actions.pod:4776
16853 msgid "swapon-device"
16854 msgstr ""
16855
16856 #. type: verbatim
16857 #: ../fish/guestfish-actions.pod:4778
16858 #, no-wrap
16859 msgid ""
16860 " swapon-device device\n"
16861 "\n"
16862 msgstr ""
16863
16864 #. type: textblock
16865 #: ../fish/guestfish-actions.pod:4780
16866 msgid ""
16867 "This command enables the libguestfs appliance to use the swap device or "
16868 "partition named C<device>.  The increased memory is made available for all "
16869 "commands, for example those run using L</command> or L</sh>."
16870 msgstr ""
16871
16872 #. type: textblock
16873 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7364
16874 msgid ""
16875 "Note that you should not swap to existing guest swap partitions unless you "
16876 "know what you are doing.  They may contain hibernation information, or other "
16877 "information that the guest doesn't want you to trash.  You also risk leaking "
16878 "information about the host to the guest this way.  Instead, attach a new "
16879 "host device to the guest and swap on that."
16880 msgstr ""
16881
16882 #. type: =head2
16883 #: ../fish/guestfish-actions.pod:4792
16884 msgid "swapon-file"
16885 msgstr ""
16886
16887 #. type: verbatim
16888 #: ../fish/guestfish-actions.pod:4794
16889 #, no-wrap
16890 msgid ""
16891 " swapon-file file\n"
16892 "\n"
16893 msgstr ""
16894
16895 #. type: textblock
16896 #: ../fish/guestfish-actions.pod:4796
16897 msgid ""
16898 "This command enables swap to a file.  See L</swapon-device> for other notes."
16899 msgstr ""
16900
16901 #. type: =head2
16902 #: ../fish/guestfish-actions.pod:4799
16903 msgid "swapon-label"
16904 msgstr ""
16905
16906 #. type: verbatim
16907 #: ../fish/guestfish-actions.pod:4801
16908 #, no-wrap
16909 msgid ""
16910 " swapon-label label\n"
16911 "\n"
16912 msgstr ""
16913
16914 #. type: textblock
16915 #: ../fish/guestfish-actions.pod:4803
16916 msgid ""
16917 "This command enables swap to a labeled swap partition.  See L</swapon-"
16918 "device> for other notes."
16919 msgstr ""
16920
16921 #. type: =head2
16922 #: ../fish/guestfish-actions.pod:4806
16923 msgid "swapon-uuid"
16924 msgstr ""
16925
16926 #. type: verbatim
16927 #: ../fish/guestfish-actions.pod:4808
16928 #, no-wrap
16929 msgid ""
16930 " swapon-uuid uuid\n"
16931 "\n"
16932 msgstr ""
16933
16934 #. type: textblock
16935 #: ../fish/guestfish-actions.pod:4810
16936 msgid ""
16937 "This command enables swap to a swap partition with the given UUID.  See L</"
16938 "swapon-device> for other notes."
16939 msgstr ""
16940
16941 #. type: =head2
16942 #: ../fish/guestfish-actions.pod:4813
16943 msgid "sync"
16944 msgstr ""
16945
16946 #. type: verbatim
16947 #: ../fish/guestfish-actions.pod:4815
16948 #, no-wrap
16949 msgid ""
16950 " sync\n"
16951 "\n"
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../fish/guestfish-actions.pod:4817 ../src/guestfs-actions.pod:7419
16956 msgid ""
16957 "This syncs the disk, so that any writes are flushed through to the "
16958 "underlying disk image."
16959 msgstr ""
16960
16961 #. type: textblock
16962 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7422
16963 msgid ""
16964 "You should always call this if you have modified a disk image, before "
16965 "closing the handle."
16966 msgstr ""
16967
16968 #. type: =head2
16969 #: ../fish/guestfish-actions.pod:4823
16970 msgid "tail"
16971 msgstr ""
16972
16973 #. type: verbatim
16974 #: ../fish/guestfish-actions.pod:4825
16975 #, no-wrap
16976 msgid ""
16977 " tail path\n"
16978 "\n"
16979 msgstr ""
16980
16981 #. type: textblock
16982 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7435
16983 msgid ""
16984 "This command returns up to the last 10 lines of a file as a list of strings."
16985 msgstr ""
16986
16987 #. type: =head2
16988 #: ../fish/guestfish-actions.pod:4833
16989 msgid "tail-n"
16990 msgstr ""
16991
16992 #. type: verbatim
16993 #: ../fish/guestfish-actions.pod:4835
16994 #, no-wrap
16995 msgid ""
16996 " tail-n nrlines path\n"
16997 "\n"
16998 msgstr ""
16999
17000 #. type: textblock
17001 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7454
17002 msgid ""
17003 "If the parameter C<nrlines> is a positive number, this returns the last "
17004 "C<nrlines> lines of the file C<path>."
17005 msgstr ""
17006
17007 #. type: textblock
17008 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7457
17009 msgid ""
17010 "If the parameter C<nrlines> is a negative number, this returns lines from "
17011 "the file C<path>, starting with the C<-nrlines>th line."
17012 msgstr ""
17013
17014 #. type: =head2
17015 #: ../fish/guestfish-actions.pod:4848
17016 msgid "tar-in"
17017 msgstr ""
17018
17019 #. type: verbatim
17020 #: ../fish/guestfish-actions.pod:4850
17021 #, no-wrap
17022 msgid ""
17023 " tar-in (tarfile|-) directory\n"
17024 "\n"
17025 msgstr ""
17026
17027 #. type: textblock
17028 #: ../fish/guestfish-actions.pod:4852 ../src/guestfs-actions.pod:7478
17029 msgid ""
17030 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17031 "tar file) into C<directory>."
17032 msgstr ""
17033
17034 #. type: textblock
17035 #: ../fish/guestfish-actions.pod:4855
17036 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17037 msgstr ""
17038
17039 #. type: =head2
17040 #: ../fish/guestfish-actions.pod:4860
17041 msgid "tar-out"
17042 msgstr ""
17043
17044 #. type: verbatim
17045 #: ../fish/guestfish-actions.pod:4862
17046 #, no-wrap
17047 msgid ""
17048 " tar-out directory (tarfile|-)\n"
17049 "\n"
17050 msgstr ""
17051
17052 #. type: textblock
17053 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7495
17054 msgid ""
17055 "This command packs the contents of C<directory> and downloads it to local "
17056 "file C<tarfile>."
17057 msgstr ""
17058
17059 #. type: textblock
17060 #: ../fish/guestfish-actions.pod:4867
17061 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17062 msgstr ""
17063
17064 #. type: =head2
17065 #: ../fish/guestfish-actions.pod:4872
17066 msgid "tgz-in"
17067 msgstr ""
17068
17069 #. type: verbatim
17070 #: ../fish/guestfish-actions.pod:4874
17071 #, no-wrap
17072 msgid ""
17073 " tgz-in (tarball|-) directory\n"
17074 "\n"
17075 msgstr ""
17076
17077 #. type: textblock
17078 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7512
17079 msgid ""
17080 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17081 "tar file) into C<directory>."
17082 msgstr ""
17083
17084 #. type: textblock
17085 #: ../fish/guestfish-actions.pod:4879
17086 msgid "To upload an uncompressed tarball, use L</tar-in>."
17087 msgstr ""
17088
17089 #. type: =head2
17090 #: ../fish/guestfish-actions.pod:4883
17091 msgid "tgz-out"
17092 msgstr ""
17093
17094 #. type: verbatim
17095 #: ../fish/guestfish-actions.pod:4885
17096 #, no-wrap
17097 msgid ""
17098 " tgz-out directory (tarball|-)\n"
17099 "\n"
17100 msgstr ""
17101
17102 #. type: textblock
17103 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7528
17104 msgid ""
17105 "This command packs the contents of C<directory> and downloads it to local "
17106 "file C<tarball>."
17107 msgstr ""
17108
17109 #. type: textblock
17110 #: ../fish/guestfish-actions.pod:4890
17111 msgid "To download an uncompressed tarball, use L</tar-out>."
17112 msgstr ""
17113
17114 #. type: =head2
17115 #: ../fish/guestfish-actions.pod:4894
17116 msgid "touch"
17117 msgstr ""
17118
17119 #. type: verbatim
17120 #: ../fish/guestfish-actions.pod:4896
17121 #, no-wrap
17122 msgid ""
17123 " touch path\n"
17124 "\n"
17125 msgstr ""
17126
17127 #. type: textblock
17128 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7543
17129 msgid ""
17130 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17131 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17132 "length file."
17133 msgstr ""
17134
17135 #. type: textblock
17136 #: ../fish/guestfish-actions.pod:4902 ../src/guestfs-actions.pod:7547
17137 msgid ""
17138 "This command only works on regular files, and will fail on other file types "
17139 "such as directories, symbolic links, block special etc."
17140 msgstr ""
17141
17142 #. type: =head2
17143 #: ../fish/guestfish-actions.pod:4905
17144 msgid "truncate"
17145 msgstr ""
17146
17147 #. type: verbatim
17148 #: ../fish/guestfish-actions.pod:4907
17149 #, no-wrap
17150 msgid ""
17151 " truncate path\n"
17152 "\n"
17153 msgstr ""
17154
17155 #. type: textblock
17156 #: ../fish/guestfish-actions.pod:4909 ../src/guestfs-actions.pod:7560
17157 msgid ""
17158 "This command truncates C<path> to a zero-length file.  The file must exist "
17159 "already."
17160 msgstr ""
17161
17162 #. type: =head2
17163 #: ../fish/guestfish-actions.pod:4912
17164 msgid "truncate-size"
17165 msgstr ""
17166
17167 #. type: verbatim
17168 #: ../fish/guestfish-actions.pod:4914
17169 #, no-wrap
17170 msgid ""
17171 " truncate-size path size\n"
17172 "\n"
17173 msgstr ""
17174
17175 #. type: textblock
17176 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7574
17177 msgid ""
17178 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17179 "already."
17180 msgstr ""
17181
17182 #. type: textblock
17183 #: ../fish/guestfish-actions.pod:4919
17184 msgid ""
17185 "If the current file size is less than C<size> then the file is extended to "
17186 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17187 "blocks are not allocated for the file until you write to it).  To create a "
17188 "non-sparse file of zeroes, use L</fallocate64> instead."
17189 msgstr ""
17190
17191 #. type: =head2
17192 #: ../fish/guestfish-actions.pod:4925
17193 msgid "tune2fs-l"
17194 msgstr ""
17195
17196 #. type: verbatim
17197 #: ../fish/guestfish-actions.pod:4927
17198 #, no-wrap
17199 msgid ""
17200 " tune2fs-l device\n"
17201 "\n"
17202 msgstr ""
17203
17204 #. type: textblock
17205 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7593
17206 msgid ""
17207 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17208 "C<device>."
17209 msgstr ""
17210
17211 #. type: textblock
17212 #: ../fish/guestfish-actions.pod:4932 ../src/guestfs-actions.pod:7596
17213 msgid ""
17214 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17215 "for more details.  The list of fields returned isn't clearly defined, and "
17216 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17217 "and the filesystem itself."
17218 msgstr ""
17219
17220 #. type: =head2
17221 #: ../fish/guestfish-actions.pod:4937
17222 msgid "txz-in"
17223 msgstr ""
17224
17225 #. type: verbatim
17226 #: ../fish/guestfish-actions.pod:4939
17227 #, no-wrap
17228 msgid ""
17229 " txz-in (tarball|-) directory\n"
17230 "\n"
17231 msgstr ""
17232
17233 #. type: textblock
17234 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7616
17235 msgid ""
17236 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17237 "tar file) into C<directory>."
17238 msgstr ""
17239
17240 #. type: =head2
17241 #: ../fish/guestfish-actions.pod:4946
17242 msgid "txz-out"
17243 msgstr ""
17244
17245 #. type: verbatim
17246 #: ../fish/guestfish-actions.pod:4948
17247 #, no-wrap
17248 msgid ""
17249 " txz-out directory (tarball|-)\n"
17250 "\n"
17251 msgstr ""
17252
17253 #. type: textblock
17254 #: ../fish/guestfish-actions.pod:4950 ../src/guestfs-actions.pod:7630
17255 msgid ""
17256 "This command packs the contents of C<directory> and downloads it to local "
17257 "file C<tarball> (as an xz compressed tar archive)."
17258 msgstr ""
17259
17260 #. type: =head2
17261 #: ../fish/guestfish-actions.pod:4955
17262 msgid "umask"
17263 msgstr ""
17264
17265 #. type: verbatim
17266 #: ../fish/guestfish-actions.pod:4957
17267 #, no-wrap
17268 msgid ""
17269 " umask mask\n"
17270 "\n"
17271 msgstr ""
17272
17273 #. type: textblock
17274 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7643
17275 msgid ""
17276 "This function sets the mask used for creating new files and device nodes to "
17277 "C<mask & 0777>."
17278 msgstr ""
17279
17280 #. type: textblock
17281 #: ../fish/guestfish-actions.pod:4962 ../src/guestfs-actions.pod:7646
17282 msgid ""
17283 "Typical umask values would be C<022> which creates new files with "
17284 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17285 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17286 msgstr ""
17287
17288 #. type: textblock
17289 #: ../fish/guestfish-actions.pod:4967 ../src/guestfs-actions.pod:7651
17290 msgid ""
17291 "The default umask is C<022>.  This is important because it means that "
17292 "directories and device nodes will be created with C<0644> or C<0755> mode "
17293 "even if you specify C<0777>."
17294 msgstr ""
17295
17296 #. type: textblock
17297 #: ../fish/guestfish-actions.pod:4971
17298 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17299 msgstr ""
17300
17301 #. type: textblock
17302 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7658
17303 msgid "This call returns the previous umask."
17304 msgstr ""
17305
17306 #. type: =head2
17307 #: ../fish/guestfish-actions.pod:4976
17308 msgid "umount"
17309 msgstr ""
17310
17311 #. type: =head2
17312 #: ../fish/guestfish-actions.pod:4978
17313 msgid "unmount"
17314 msgstr ""
17315
17316 #. type: verbatim
17317 #: ../fish/guestfish-actions.pod:4980
17318 #, no-wrap
17319 msgid ""
17320 " umount pathordevice\n"
17321 "\n"
17322 msgstr ""
17323
17324 #. type: textblock
17325 #: ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:7670
17326 msgid ""
17327 "This unmounts the given filesystem.  The filesystem may be specified either "
17328 "by its mountpoint (path) or the device which contains the filesystem."
17329 msgstr ""
17330
17331 #. type: =head2
17332 #: ../fish/guestfish-actions.pod:4986
17333 msgid "umount-all"
17334 msgstr ""
17335
17336 #. type: =head2
17337 #: ../fish/guestfish-actions.pod:4988
17338 msgid "unmount-all"
17339 msgstr ""
17340
17341 #. type: verbatim
17342 #: ../fish/guestfish-actions.pod:4990
17343 #, no-wrap
17344 msgid ""
17345 " umount-all\n"
17346 "\n"
17347 msgstr ""
17348
17349 #. type: textblock
17350 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7683
17351 msgid "This unmounts all mounted filesystems."
17352 msgstr ""
17353
17354 #. type: textblock
17355 #: ../fish/guestfish-actions.pod:4994 ../src/guestfs-actions.pod:7685
17356 msgid "Some internal mounts are not unmounted by this call."
17357 msgstr ""
17358
17359 #. type: =head2
17360 #: ../fish/guestfish-actions.pod:4996
17361 msgid "upload"
17362 msgstr ""
17363
17364 #. type: verbatim
17365 #: ../fish/guestfish-actions.pod:4998
17366 #, no-wrap
17367 msgid ""
17368 " upload (filename|-) remotefilename\n"
17369 "\n"
17370 msgstr ""
17371
17372 #. type: textblock
17373 #: ../fish/guestfish-actions.pod:5000 ../fish/guestfish-actions.pod:5013
17374 #: ../src/guestfs-actions.pod:7698 ../src/guestfs-actions.pod:7722
17375 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17376 msgstr ""
17377
17378 #. type: textblock
17379 #: ../fish/guestfish-actions.pod:5005
17380 msgid "See also L</download>."
17381 msgstr ""
17382
17383 #. type: =head2
17384 #: ../fish/guestfish-actions.pod:5009
17385 msgid "upload-offset"
17386 msgstr ""
17387
17388 #. type: verbatim
17389 #: ../fish/guestfish-actions.pod:5011
17390 #, no-wrap
17391 msgid ""
17392 " upload-offset (filename|-) remotefilename offset\n"
17393 "\n"
17394 msgstr ""
17395
17396 #. type: textblock
17397 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7725
17398 msgid ""
17399 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17400 "The intention is to overwrite parts of existing files or devices, although "
17401 "if a non-existant file is specified then it is created with a \"hole\" "
17402 "before C<offset>.  The size of the data written is implicit in the size of "
17403 "the source C<filename>."
17404 msgstr ""
17405
17406 #. type: textblock
17407 #: ../fish/guestfish-actions.pod:5023
17408 msgid ""
17409 "Note that there is no limit on the amount of data that can be uploaded with "
17410 "this call, unlike with L</pwrite>, and this call always writes the full "
17411 "amount unless an error occurs."
17412 msgstr ""
17413
17414 #. type: textblock
17415 #: ../fish/guestfish-actions.pod:5028
17416 msgid "See also L</upload>, L</pwrite>."
17417 msgstr ""
17418
17419 #. type: =head2
17420 #: ../fish/guestfish-actions.pod:5032
17421 msgid "utimens"
17422 msgstr ""
17423
17424 #. type: verbatim
17425 #: ../fish/guestfish-actions.pod:5034
17426 #, no-wrap
17427 msgid ""
17428 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17429 "\n"
17430 msgstr ""
17431
17432 #. type: textblock
17433 #: ../fish/guestfish-actions.pod:5036 ../src/guestfs-actions.pod:7758
17434 msgid "This command sets the timestamps of a file with nanosecond precision."
17435 msgstr ""
17436
17437 #. type: textblock
17438 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7761
17439 msgid ""
17440 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17441 "from the epoch."
17442 msgstr ""
17443
17444 #. type: textblock
17445 #: ../fish/guestfish-actions.pod:5042 ../src/guestfs-actions.pod:7764
17446 msgid ""
17447 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17448 "nanoseconds from the epoch."
17449 msgstr ""
17450
17451 #. type: textblock
17452 #: ../fish/guestfish-actions.pod:5045 ../src/guestfs-actions.pod:7767
17453 msgid ""
17454 "If the C<*nsecs> field contains the special value C<-1> then the "
17455 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17456 "ignored in this case)."
17457 msgstr ""
17458
17459 #. type: textblock
17460 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7771
17461 msgid ""
17462 "If the C<*nsecs> field contains the special value C<-2> then the "
17463 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17464 "in this case)."
17465 msgstr ""
17466
17467 #. type: =head2
17468 #: ../fish/guestfish-actions.pod:5053
17469 msgid "version"
17470 msgstr ""
17471
17472 #. type: verbatim
17473 #: ../fish/guestfish-actions.pod:5055
17474 #, no-wrap
17475 msgid ""
17476 " version\n"
17477 "\n"
17478 msgstr ""
17479
17480 #. type: textblock
17481 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7784
17482 msgid ""
17483 "Return the libguestfs version number that the program is linked against."
17484 msgstr ""
17485
17486 #. type: textblock
17487 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7787
17488 msgid ""
17489 "Note that because of dynamic linking this is not necessarily the version of "
17490 "libguestfs that you compiled against.  You can compile the program, and then "
17491 "at runtime dynamically link against a completely different C<libguestfs.so> "
17492 "library."
17493 msgstr ""
17494
17495 #. type: textblock
17496 #: ../fish/guestfish-actions.pod:5065 ../src/guestfs-actions.pod:7792
17497 msgid ""
17498 "This call was added in version C<1.0.58>.  In previous versions of "
17499 "libguestfs there was no way to get the version number.  From C code you can "
17500 "use dynamic linker functions to find out if this symbol exists (if it "
17501 "doesn't, then it's an earlier version)."
17502 msgstr ""
17503
17504 #. type: textblock
17505 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7798
17506 msgid ""
17507 "The call returns a structure with four elements.  The first three (C<major>, "
17508 "C<minor> and C<release>) are numbers and correspond to the usual version "
17509 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17510 "but may be used for distro-specific information."
17511 msgstr ""
17512
17513 #. type: textblock
17514 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7804
17515 msgid ""
17516 "To construct the original version string: C<$major.$minor.$release$extra>"
17517 msgstr ""
17518
17519 #. type: textblock
17520 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7807
17521 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17522 msgstr ""
17523
17524 #. type: textblock
17525 #: ../fish/guestfish-actions.pod:5082
17526 msgid ""
17527 "I<Note:> Don't use this call to test for availability of features.  In "
17528 "enterprise distributions we backport features from later versions into "
17529 "earlier versions, making this an unreliable way to test for features.  Use "
17530 "L</available> instead."
17531 msgstr ""
17532
17533 #. type: =head2
17534 #: ../fish/guestfish-actions.pod:5088
17535 msgid "vfs-label"
17536 msgstr ""
17537
17538 #. type: verbatim
17539 #: ../fish/guestfish-actions.pod:5090
17540 #, no-wrap
17541 msgid ""
17542 " vfs-label device\n"
17543 "\n"
17544 msgstr ""
17545
17546 #. type: textblock
17547 #: ../fish/guestfish-actions.pod:5092 ../src/guestfs-actions.pod:7827
17548 msgid "This returns the filesystem label of the filesystem on C<device>."
17549 msgstr ""
17550
17551 #. type: textblock
17552 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7830
17553 msgid "If the filesystem is unlabeled, this returns the empty string."
17554 msgstr ""
17555
17556 #. type: textblock
17557 #: ../fish/guestfish-actions.pod:5097
17558 msgid "To find a filesystem from the label, use L</findfs-label>."
17559 msgstr ""
17560
17561 #. type: =head2
17562 #: ../fish/guestfish-actions.pod:5099
17563 msgid "vfs-type"
17564 msgstr ""
17565
17566 #. type: verbatim
17567 #: ../fish/guestfish-actions.pod:5101
17568 #, no-wrap
17569 msgid ""
17570 " vfs-type device\n"
17571 "\n"
17572 msgstr ""
17573
17574 #. type: textblock
17575 #: ../fish/guestfish-actions.pod:5103 ../src/guestfs-actions.pod:7845
17576 msgid ""
17577 "This command gets the filesystem type corresponding to the filesystem on "
17578 "C<device>."
17579 msgstr ""
17580
17581 #. type: textblock
17582 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7848
17583 msgid ""
17584 "For most filesystems, the result is the name of the Linux VFS module which "
17585 "would be used to mount this filesystem if you mounted it without specifying "
17586 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17587 msgstr ""
17588
17589 #. type: =head2
17590 #: ../fish/guestfish-actions.pod:5111
17591 msgid "vfs-uuid"
17592 msgstr ""
17593
17594 #. type: verbatim
17595 #: ../fish/guestfish-actions.pod:5113
17596 #, no-wrap
17597 msgid ""
17598 " vfs-uuid device\n"
17599 "\n"
17600 msgstr ""
17601
17602 #. type: textblock
17603 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7864
17604 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17605 msgstr ""
17606
17607 #. type: textblock
17608 #: ../fish/guestfish-actions.pod:5118 ../src/guestfs-actions.pod:7867
17609 msgid "If the filesystem does not have a UUID, this returns the empty string."
17610 msgstr ""
17611
17612 #. type: textblock
17613 #: ../fish/guestfish-actions.pod:5120
17614 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17615 msgstr ""
17616
17617 #. type: =head2
17618 #: ../fish/guestfish-actions.pod:5122
17619 msgid "vg-activate"
17620 msgstr ""
17621
17622 #. type: verbatim
17623 #: ../fish/guestfish-actions.pod:5124
17624 #, no-wrap
17625 msgid ""
17626 " vg-activate true|false 'volgroups ...'\n"
17627 "\n"
17628 msgstr ""
17629
17630 #. type: textblock
17631 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7883
17632 msgid ""
17633 "This command activates or (if C<activate> is false) deactivates all logical "
17634 "volumes in the listed volume groups C<volgroups>."
17635 msgstr ""
17636
17637 #. type: textblock
17638 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7886
17639 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17640 msgstr ""
17641
17642 #. type: textblock
17643 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7888
17644 msgid ""
17645 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17646 "activated or deactivated."
17647 msgstr ""
17648
17649 #. type: =head2
17650 #: ../fish/guestfish-actions.pod:5134
17651 msgid "vg-activate-all"
17652 msgstr ""
17653
17654 #. type: verbatim
17655 #: ../fish/guestfish-actions.pod:5136
17656 #, no-wrap
17657 msgid ""
17658 " vg-activate-all true|false\n"
17659 "\n"
17660 msgstr ""
17661
17662 #. type: textblock
17663 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7901
17664 msgid ""
17665 "This command activates or (if C<activate> is false) deactivates all logical "
17666 "volumes in all volume groups."
17667 msgstr ""
17668
17669 #. type: textblock
17670 #: ../fish/guestfish-actions.pod:5141 ../src/guestfs-actions.pod:7904
17671 msgid "This command is the same as running C<vgchange -a y|n>"
17672 msgstr ""
17673
17674 #. type: =head2
17675 #: ../fish/guestfish-actions.pod:5143
17676 msgid "vgcreate"
17677 msgstr ""
17678
17679 #. type: verbatim
17680 #: ../fish/guestfish-actions.pod:5145
17681 #, no-wrap
17682 msgid ""
17683 " vgcreate volgroup 'physvols ...'\n"
17684 "\n"
17685 msgstr ""
17686
17687 #. type: textblock
17688 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7917
17689 msgid ""
17690 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17691 "of physical volumes C<physvols>."
17692 msgstr ""
17693
17694 #. type: =head2
17695 #: ../fish/guestfish-actions.pod:5150
17696 msgid "vglvuuids"
17697 msgstr ""
17698
17699 #. type: verbatim
17700 #: ../fish/guestfish-actions.pod:5152
17701 #, no-wrap
17702 msgid ""
17703 " vglvuuids vgname\n"
17704 "\n"
17705 msgstr ""
17706
17707 #. type: textblock
17708 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7930
17709 msgid ""
17710 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17711 "volumes created in this volume group."
17712 msgstr ""
17713
17714 #. type: textblock
17715 #: ../fish/guestfish-actions.pod:5157
17716 msgid ""
17717 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17718 "logical volumes and volume groups."
17719 msgstr ""
17720
17721 #. type: textblock
17722 #: ../fish/guestfish-actions.pod:5160
17723 msgid "See also L</vgpvuuids>."
17724 msgstr ""
17725
17726 #. type: =head2
17727 #: ../fish/guestfish-actions.pod:5162
17728 msgid "vgpvuuids"
17729 msgstr ""
17730
17731 #. type: verbatim
17732 #: ../fish/guestfish-actions.pod:5164
17733 #, no-wrap
17734 msgid ""
17735 " vgpvuuids vgname\n"
17736 "\n"
17737 msgstr ""
17738
17739 #. type: textblock
17740 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7950
17741 msgid ""
17742 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17743 "volumes that this volume group resides on."
17744 msgstr ""
17745
17746 #. type: textblock
17747 #: ../fish/guestfish-actions.pod:5169
17748 msgid ""
17749 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17750 "physical volumes and volume groups."
17751 msgstr ""
17752
17753 #. type: textblock
17754 #: ../fish/guestfish-actions.pod:5172
17755 msgid "See also L</vglvuuids>."
17756 msgstr ""
17757
17758 #. type: =head2
17759 #: ../fish/guestfish-actions.pod:5174
17760 msgid "vgremove"
17761 msgstr ""
17762
17763 #. type: verbatim
17764 #: ../fish/guestfish-actions.pod:5176
17765 #, no-wrap
17766 msgid ""
17767 " vgremove vgname\n"
17768 "\n"
17769 msgstr ""
17770
17771 #. type: textblock
17772 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7970
17773 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17774 msgstr ""
17775
17776 #. type: textblock
17777 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7972
17778 msgid ""
17779 "This also forcibly removes all logical volumes in the volume group (if any)."
17780 msgstr ""
17781
17782 #. type: =head2
17783 #: ../fish/guestfish-actions.pod:5183
17784 msgid "vgrename"
17785 msgstr ""
17786
17787 #. type: verbatim
17788 #: ../fish/guestfish-actions.pod:5185
17789 #, no-wrap
17790 msgid ""
17791 " vgrename volgroup newvolgroup\n"
17792 "\n"
17793 msgstr ""
17794
17795 #. type: textblock
17796 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7986
17797 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17798 msgstr ""
17799
17800 #. type: =head2
17801 #: ../fish/guestfish-actions.pod:5189
17802 msgid "vgs"
17803 msgstr ""
17804
17805 #. type: verbatim
17806 #: ../fish/guestfish-actions.pod:5191
17807 #, no-wrap
17808 msgid ""
17809 " vgs\n"
17810 "\n"
17811 msgstr ""
17812
17813 #. type: textblock
17814 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7997
17815 msgid ""
17816 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17817 "> command."
17818 msgstr ""
17819
17820 #. type: textblock
17821 #: ../fish/guestfish-actions.pod:5196 ../src/guestfs-actions.pod:8000
17822 msgid ""
17823 "This returns a list of just the volume group names that were detected (eg. "
17824 "C<VolGroup00>)."
17825 msgstr ""
17826
17827 #. type: textblock
17828 #: ../fish/guestfish-actions.pod:5199
17829 msgid "See also L</vgs-full>."
17830 msgstr ""
17831
17832 #. type: =head2
17833 #: ../fish/guestfish-actions.pod:5201
17834 msgid "vgs-full"
17835 msgstr ""
17836
17837 #. type: verbatim
17838 #: ../fish/guestfish-actions.pod:5203
17839 #, no-wrap
17840 msgid ""
17841 " vgs-full\n"
17842 "\n"
17843 msgstr ""
17844
17845 #. type: textblock
17846 #: ../fish/guestfish-actions.pod:5205 ../src/guestfs-actions.pod:8016
17847 msgid ""
17848 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17849 "> command.  The \"full\" version includes all fields."
17850 msgstr ""
17851
17852 #. type: =head2
17853 #: ../fish/guestfish-actions.pod:5208
17854 msgid "vgscan"
17855 msgstr ""
17856
17857 #. type: verbatim
17858 #: ../fish/guestfish-actions.pod:5210
17859 #, no-wrap
17860 msgid ""
17861 " vgscan\n"
17862 "\n"
17863 msgstr ""
17864
17865 #. type: textblock
17866 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8030
17867 msgid ""
17868 "This rescans all block devices and rebuilds the list of LVM physical "
17869 "volumes, volume groups and logical volumes."
17870 msgstr ""
17871
17872 #. type: =head2
17873 #: ../fish/guestfish-actions.pod:5215
17874 msgid "vguuid"
17875 msgstr ""
17876
17877 #. type: verbatim
17878 #: ../fish/guestfish-actions.pod:5217
17879 #, no-wrap
17880 msgid ""
17881 " vguuid vgname\n"
17882 "\n"
17883 msgstr ""
17884
17885 #. type: textblock
17886 #: ../fish/guestfish-actions.pod:5219 ../src/guestfs-actions.pod:8043
17887 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17888 msgstr ""
17889
17890 #. type: =head2
17891 #: ../fish/guestfish-actions.pod:5221
17892 msgid "wc-c"
17893 msgstr ""
17894
17895 #. type: verbatim
17896 #: ../fish/guestfish-actions.pod:5223
17897 #, no-wrap
17898 msgid ""
17899 " wc-c path\n"
17900 "\n"
17901 msgstr ""
17902
17903 #. type: textblock
17904 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8083
17905 msgid ""
17906 "This command counts the characters in a file, using the C<wc -c> external "
17907 "command."
17908 msgstr ""
17909
17910 #. type: =head2
17911 #: ../fish/guestfish-actions.pod:5228
17912 msgid "wc-l"
17913 msgstr ""
17914
17915 #. type: verbatim
17916 #: ../fish/guestfish-actions.pod:5230
17917 #, no-wrap
17918 msgid ""
17919 " wc-l path\n"
17920 "\n"
17921 msgstr ""
17922
17923 #. type: textblock
17924 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8096
17925 msgid ""
17926 "This command counts the lines in a file, using the C<wc -l> external command."
17927 msgstr ""
17928
17929 #. type: =head2
17930 #: ../fish/guestfish-actions.pod:5235
17931 msgid "wc-w"
17932 msgstr ""
17933
17934 #. type: verbatim
17935 #: ../fish/guestfish-actions.pod:5237
17936 #, no-wrap
17937 msgid ""
17938 " wc-w path\n"
17939 "\n"
17940 msgstr ""
17941
17942 #. type: textblock
17943 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:8109
17944 msgid ""
17945 "This command counts the words in a file, using the C<wc -w> external command."
17946 msgstr ""
17947
17948 #. type: =head2
17949 #: ../fish/guestfish-actions.pod:5242
17950 msgid "write"
17951 msgstr ""
17952
17953 #. type: verbatim
17954 #: ../fish/guestfish-actions.pod:5244
17955 #, no-wrap
17956 msgid ""
17957 " write path content\n"
17958 "\n"
17959 msgstr ""
17960
17961 #. type: textblock
17962 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8124
17963 msgid ""
17964 "This call creates a file called C<path>.  The content of the file is the "
17965 "string C<content> (which can contain any 8 bit data)."
17966 msgstr ""
17967
17968 #. type: textblock
17969 #: ../fish/guestfish-actions.pod:5249
17970 msgid "See also L</write-append>."
17971 msgstr ""
17972
17973 #. type: =head2
17974 #: ../fish/guestfish-actions.pod:5254
17975 msgid "write-append"
17976 msgstr ""
17977
17978 #. type: verbatim
17979 #: ../fish/guestfish-actions.pod:5256
17980 #, no-wrap
17981 msgid ""
17982 " write-append path content\n"
17983 "\n"
17984 msgstr ""
17985
17986 #. type: textblock
17987 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8144
17988 msgid ""
17989 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17990 "not exist, then a new file is created."
17991 msgstr ""
17992
17993 #. type: textblock
17994 #: ../fish/guestfish-actions.pod:5261
17995 msgid "See also L</write>."
17996 msgstr ""
17997
17998 #. type: =head2
17999 #: ../fish/guestfish-actions.pod:5266
18000 msgid "write-file"
18001 msgstr ""
18002
18003 #. type: verbatim
18004 #: ../fish/guestfish-actions.pod:5268
18005 #, no-wrap
18006 msgid ""
18007 " write-file path content size\n"
18008 "\n"
18009 msgstr ""
18010
18011 #. type: textblock
18012 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8171
18013 msgid ""
18014 "This call creates a file called C<path>.  The contents of the file is the "
18015 "string C<content> (which can contain any 8 bit data), with length C<size>."
18016 msgstr ""
18017
18018 #. type: textblock
18019 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8175
18020 msgid ""
18021 "As a special case, if C<size> is C<0> then the length is calculated using "
18022 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18023 msgstr ""
18024
18025 #. type: textblock
18026 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8179
18027 msgid ""
18028 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18029 "I<not> work, even if the length is specified."
18030 msgstr ""
18031
18032 #. type: textblock
18033 #: ../fish/guestfish-actions.pod:5284
18034 msgid ""
18035 "I<This function is deprecated.> In new code, use the L</write> call instead."
18036 msgstr ""
18037
18038 #. type: =head2
18039 #: ../fish/guestfish-actions.pod:5291
18040 msgid "zegrep"
18041 msgstr ""
18042
18043 #. type: verbatim
18044 #: ../fish/guestfish-actions.pod:5293
18045 #, no-wrap
18046 msgid ""
18047 " zegrep regex path\n"
18048 "\n"
18049 msgstr ""
18050
18051 #. type: textblock
18052 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8196
18053 msgid ""
18054 "This calls the external C<zegrep> program and returns the matching lines."
18055 msgstr ""
18056
18057 #. type: =head2
18058 #: ../fish/guestfish-actions.pod:5301
18059 msgid "zegrepi"
18060 msgstr ""
18061
18062 #. type: verbatim
18063 #: ../fish/guestfish-actions.pod:5303
18064 #, no-wrap
18065 msgid ""
18066 " zegrepi regex path\n"
18067 "\n"
18068 msgstr ""
18069
18070 #. type: textblock
18071 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8215
18072 msgid ""
18073 "This calls the external C<zegrep -i> program and returns the matching lines."
18074 msgstr ""
18075
18076 #. type: =head2
18077 #: ../fish/guestfish-actions.pod:5311
18078 msgid "zero"
18079 msgstr ""
18080
18081 #. type: verbatim
18082 #: ../fish/guestfish-actions.pod:5313
18083 #, no-wrap
18084 msgid ""
18085 " zero device\n"
18086 "\n"
18087 msgstr ""
18088
18089 #. type: textblock
18090 #: ../fish/guestfish-actions.pod:5315 ../src/guestfs-actions.pod:8233
18091 msgid "This command writes zeroes over the first few blocks of C<device>."
18092 msgstr ""
18093
18094 #. type: textblock
18095 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8235
18096 msgid ""
18097 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18098 "securely wipe the device).  It should be sufficient to remove any partition "
18099 "tables, filesystem superblocks and so on."
18100 msgstr ""
18101
18102 #. type: textblock
18103 #: ../fish/guestfish-actions.pod:5321 ../fish/guestfish-actions.pod:5336
18104 #: ../src/guestfs-actions.pod:8239 ../src/guestfs-actions.pod:8265
18105 msgid ""
18106 "If blocks are already zero, then this command avoids writing zeroes.  This "
18107 "prevents the underlying device from becoming non-sparse or growing "
18108 "unnecessarily."
18109 msgstr ""
18110
18111 #. type: textblock
18112 #: ../fish/guestfish-actions.pod:5325
18113 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
18114 msgstr ""
18115
18116 #. type: =head2
18117 #: ../fish/guestfish-actions.pod:5328
18118 msgid "zero-device"
18119 msgstr ""
18120
18121 #. type: verbatim
18122 #: ../fish/guestfish-actions.pod:5330
18123 #, no-wrap
18124 msgid ""
18125 " zero-device device\n"
18126 "\n"
18127 msgstr ""
18128
18129 #. type: textblock
18130 #: ../fish/guestfish-actions.pod:5332
18131 msgid ""
18132 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
18133 "which just zeroes the first few blocks of a device."
18134 msgstr ""
18135
18136 #. type: =head2
18137 #: ../fish/guestfish-actions.pod:5340
18138 msgid "zerofree"
18139 msgstr ""
18140
18141 #. type: verbatim
18142 #: ../fish/guestfish-actions.pod:5342
18143 #, no-wrap
18144 msgid ""
18145 " zerofree device\n"
18146 "\n"
18147 msgstr ""
18148
18149 #. type: textblock
18150 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8284
18151 msgid ""
18152 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18153 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18154 "possible to compress the filesystem more effectively."
18155 msgstr ""
18156
18157 #. type: textblock
18158 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8289
18159 msgid "You should B<not> run this program if the filesystem is mounted."
18160 msgstr ""
18161
18162 #. type: textblock
18163 #: ../fish/guestfish-actions.pod:5352 ../src/guestfs-actions.pod:8292
18164 msgid ""
18165 "It is possible that using this program can damage the filesystem or data on "
18166 "the filesystem."
18167 msgstr ""
18168
18169 #. type: =head2
18170 #: ../fish/guestfish-actions.pod:5355
18171 msgid "zfgrep"
18172 msgstr ""
18173
18174 #. type: verbatim
18175 #: ../fish/guestfish-actions.pod:5357
18176 #, no-wrap
18177 msgid ""
18178 " zfgrep pattern path\n"
18179 "\n"
18180 msgstr ""
18181
18182 #. type: textblock
18183 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8306
18184 msgid ""
18185 "This calls the external C<zfgrep> program and returns the matching lines."
18186 msgstr ""
18187
18188 #. type: =head2
18189 #: ../fish/guestfish-actions.pod:5365
18190 msgid "zfgrepi"
18191 msgstr ""
18192
18193 #. type: verbatim
18194 #: ../fish/guestfish-actions.pod:5367
18195 #, no-wrap
18196 msgid ""
18197 " zfgrepi pattern path\n"
18198 "\n"
18199 msgstr ""
18200
18201 #. type: textblock
18202 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8325
18203 msgid ""
18204 "This calls the external C<zfgrep -i> program and returns the matching lines."
18205 msgstr ""
18206
18207 #. type: =head2
18208 #: ../fish/guestfish-actions.pod:5375
18209 msgid "zfile"
18210 msgstr ""
18211
18212 #. type: verbatim
18213 #: ../fish/guestfish-actions.pod:5377
18214 #, no-wrap
18215 msgid ""
18216 " zfile meth path\n"
18217 "\n"
18218 msgstr ""
18219
18220 #. type: textblock
18221 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8351
18222 msgid ""
18223 "This command runs C<file> after first decompressing C<path> using C<method>."
18224 msgstr ""
18225
18226 #. type: textblock
18227 #: ../fish/guestfish-actions.pod:5382 ../src/guestfs-actions.pod:8354
18228 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18229 msgstr ""
18230
18231 #. type: textblock
18232 #: ../fish/guestfish-actions.pod:5384
18233 msgid ""
18234 "Since 1.0.63, use L</file> instead which can now process compressed files."
18235 msgstr ""
18236
18237 #. type: textblock
18238 #: ../fish/guestfish-actions.pod:5387
18239 msgid ""
18240 "I<This function is deprecated.> In new code, use the L</file> call instead."
18241 msgstr ""
18242
18243 #. type: =head2
18244 #: ../fish/guestfish-actions.pod:5394
18245 msgid "zgrep"
18246 msgstr ""
18247
18248 #. type: verbatim
18249 #: ../fish/guestfish-actions.pod:5396
18250 #, no-wrap
18251 msgid ""
18252 " zgrep regex path\n"
18253 "\n"
18254 msgstr ""
18255
18256 #. type: textblock
18257 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8371
18258 msgid ""
18259 "This calls the external C<zgrep> program and returns the matching lines."
18260 msgstr ""
18261
18262 #. type: =head2
18263 #: ../fish/guestfish-actions.pod:5404
18264 msgid "zgrepi"
18265 msgstr ""
18266
18267 #. type: verbatim
18268 #: ../fish/guestfish-actions.pod:5406
18269 #, no-wrap
18270 msgid ""
18271 " zgrepi regex path\n"
18272 "\n"
18273 msgstr ""
18274
18275 #. type: textblock
18276 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8390
18277 msgid ""
18278 "This calls the external C<zgrep -i> program and returns the matching lines."
18279 msgstr ""
18280
18281 #. type: =head2
18282 #: ../fish/guestfish-commands.pod:1
18283 msgid "alloc"
18284 msgstr ""
18285
18286 #. type: =head2
18287 #: ../fish/guestfish-commands.pod:3
18288 msgid "allocate"
18289 msgstr ""
18290
18291 #. type: verbatim
18292 #: ../fish/guestfish-commands.pod:5
18293 #, no-wrap
18294 msgid ""
18295 " alloc filename size\n"
18296 "\n"
18297 msgstr ""
18298
18299 #. type: textblock
18300 #: ../fish/guestfish-commands.pod:7
18301 msgid ""
18302 "This creates an empty (zeroed) file of the given size, and then adds so it "
18303 "can be further examined."
18304 msgstr ""
18305
18306 #. type: textblock
18307 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18308 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18309 msgstr ""
18310
18311 #. type: textblock
18312 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18313 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18314 msgstr ""
18315
18316 #. type: textblock
18317 #: ../fish/guestfish-commands.pod:14
18318 msgid ""
18319 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18320 "image, see L</PREPARED DISK IMAGES>."
18321 msgstr ""
18322
18323 #. type: =head2
18324 #: ../fish/guestfish-commands.pod:17
18325 msgid "copy-in"
18326 msgstr ""
18327
18328 #. type: verbatim
18329 #: ../fish/guestfish-commands.pod:19
18330 #, no-wrap
18331 msgid ""
18332 " copy-in local [local ...] /remotedir\n"
18333 "\n"
18334 msgstr ""
18335
18336 #. type: textblock
18337 #: ../fish/guestfish-commands.pod:21
18338 msgid ""
18339 "C<copy-in> copies local files or directories recursively into the disk "
18340 "image, placing them in the directory called C</remotedir> (which must "
18341 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18342 "other commands as necessary."
18343 msgstr ""
18344
18345 #. type: textblock
18346 #: ../fish/guestfish-commands.pod:26
18347 msgid ""
18348 "Multiple local files and directories can be specified, but the last "
18349 "parameter must always be a remote directory.  Wildcards cannot be used."
18350 msgstr ""
18351
18352 #. type: =head2
18353 #: ../fish/guestfish-commands.pod:30
18354 msgid "copy-out"
18355 msgstr ""
18356
18357 #. type: verbatim
18358 #: ../fish/guestfish-commands.pod:32
18359 #, no-wrap
18360 msgid ""
18361 " copy-out remote [remote ...] localdir\n"
18362 "\n"
18363 msgstr ""
18364
18365 #. type: textblock
18366 #: ../fish/guestfish-commands.pod:34
18367 msgid ""
18368 "C<copy-out> copies remote files or directories recursively out of the disk "
18369 "image, placing them on the host disk in a local directory called C<localdir> "
18370 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
18371 "download>, L</tar-out> and other commands as necessary."
18372 msgstr ""
18373
18374 #. type: textblock
18375 #: ../fish/guestfish-commands.pod:40
18376 msgid ""
18377 "Multiple remote files and directories can be specified, but the last "
18378 "parameter must always be a local directory.  To download to the current "
18379 "directory, use C<.> as in:"
18380 msgstr ""
18381
18382 #. type: verbatim
18383 #: ../fish/guestfish-commands.pod:44
18384 #, no-wrap
18385 msgid ""
18386 " copy-out /home .\n"
18387 "\n"
18388 msgstr ""
18389
18390 #. type: textblock
18391 #: ../fish/guestfish-commands.pod:46
18392 msgid ""
18393 "Wildcards cannot be used in the ordinary command, but you can use them with "
18394 "the help of L</glob> like this:"
18395 msgstr ""
18396
18397 #. type: verbatim
18398 #: ../fish/guestfish-commands.pod:49
18399 #, no-wrap
18400 msgid ""
18401 " glob copy-out /home/* .\n"
18402 "\n"
18403 msgstr ""
18404
18405 #. type: =head2
18406 #: ../fish/guestfish-commands.pod:51
18407 msgid "display"
18408 msgstr ""
18409
18410 #. type: verbatim
18411 #: ../fish/guestfish-commands.pod:53
18412 #, no-wrap
18413 msgid ""
18414 " display filename\n"
18415 "\n"
18416 msgstr ""
18417
18418 #. type: textblock
18419 #: ../fish/guestfish-commands.pod:55
18420 msgid ""
18421 "Use C<display> (a graphical display program) to display an image file.  It "
18422 "downloads the file, and runs C<display> on it."
18423 msgstr ""
18424
18425 #. type: textblock
18426 #: ../fish/guestfish-commands.pod:58
18427 msgid ""
18428 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18429 "environment variable.  For example to use the GNOME display program:"
18430 msgstr ""
18431
18432 #. type: verbatim
18433 #: ../fish/guestfish-commands.pod:61
18434 #, no-wrap
18435 msgid ""
18436 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18437 "\n"
18438 msgstr ""
18439
18440 #. type: textblock
18441 #: ../fish/guestfish-commands.pod:63
18442 msgid "See also L<display(1)>."
18443 msgstr ""
18444
18445 #. type: =head2
18446 #: ../fish/guestfish-commands.pod:65
18447 msgid "echo"
18448 msgstr ""
18449
18450 #. type: verbatim
18451 #: ../fish/guestfish-commands.pod:67
18452 #, no-wrap
18453 msgid ""
18454 " echo [params ...]\n"
18455 "\n"
18456 msgstr ""
18457
18458 #. type: textblock
18459 #: ../fish/guestfish-commands.pod:69
18460 msgid "This echos the parameters to the terminal."
18461 msgstr ""
18462
18463 #. type: =head2
18464 #: ../fish/guestfish-commands.pod:71
18465 msgid "edit"
18466 msgstr ""
18467
18468 #. type: =head2
18469 #: ../fish/guestfish-commands.pod:73
18470 msgid "vi"
18471 msgstr ""
18472
18473 #. type: =head2
18474 #: ../fish/guestfish-commands.pod:75
18475 msgid "emacs"
18476 msgstr ""
18477
18478 #. type: verbatim
18479 #: ../fish/guestfish-commands.pod:77
18480 #, no-wrap
18481 msgid ""
18482 " edit filename\n"
18483 "\n"
18484 msgstr ""
18485
18486 #. type: textblock
18487 #: ../fish/guestfish-commands.pod:79
18488 msgid ""
18489 "This is used to edit a file.  It downloads the file, edits it locally using "
18490 "your editor, then uploads the result."
18491 msgstr ""
18492
18493 #. type: textblock
18494 #: ../fish/guestfish-commands.pod:82
18495 msgid ""
18496 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18497 "or C<emacs> you will get those corresponding editors."
18498 msgstr ""
18499
18500 #. type: =head2
18501 #: ../fish/guestfish-commands.pod:86
18502 msgid "glob"
18503 msgstr ""
18504
18505 #. type: verbatim
18506 #: ../fish/guestfish-commands.pod:88
18507 #, no-wrap
18508 msgid ""
18509 " glob command args...\n"
18510 "\n"
18511 msgstr ""
18512
18513 #. type: textblock
18514 #: ../fish/guestfish-commands.pod:90
18515 msgid ""
18516 "Expand wildcards in any paths in the args list, and run C<command> "
18517 "repeatedly on each matching path."
18518 msgstr ""
18519
18520 #. type: textblock
18521 #: ../fish/guestfish-commands.pod:93
18522 msgid "See L</WILDCARDS AND GLOBBING>."
18523 msgstr ""
18524
18525 #. type: =head2
18526 #: ../fish/guestfish-commands.pod:95
18527 msgid "hexedit"
18528 msgstr ""
18529
18530 #. type: verbatim
18531 #: ../fish/guestfish-commands.pod:97
18532 #, no-wrap
18533 msgid ""
18534 " hexedit <filename|device>\n"
18535 " hexedit <filename|device> <max>\n"
18536 " hexedit <filename|device> <start> <max>\n"
18537 "\n"
18538 msgstr ""
18539
18540 #. type: textblock
18541 #: ../fish/guestfish-commands.pod:101
18542 msgid ""
18543 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18544 "device."
18545 msgstr ""
18546
18547 #. type: textblock
18548 #: ../fish/guestfish-commands.pod:104
18549 msgid ""
18550 "This command works by downloading potentially the whole file or device, "
18551 "editing it locally, then uploading it.  If the file or device is large, you "
18552 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18553 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18554 "usual modifiers allowed such as C<1M> (1 megabyte)."
18555 msgstr ""
18556
18557 #. type: textblock
18558 #: ../fish/guestfish-commands.pod:111
18559 msgid "For example to edit the first few sectors of a disk you might do:"
18560 msgstr ""
18561
18562 #. type: verbatim
18563 #: ../fish/guestfish-commands.pod:114
18564 #, no-wrap
18565 msgid ""
18566 " hexedit /dev/sda 1M\n"
18567 "\n"
18568 msgstr ""
18569
18570 #. type: textblock
18571 #: ../fish/guestfish-commands.pod:116
18572 msgid ""
18573 "which would allow you to edit anywhere within the first megabyte of the disk."
18574 msgstr ""
18575
18576 #. type: textblock
18577 #: ../fish/guestfish-commands.pod:119
18578 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18579 msgstr ""
18580
18581 #. type: verbatim
18582 #: ../fish/guestfish-commands.pod:121
18583 #, no-wrap
18584 msgid ""
18585 " hexedit /dev/sda1 0x400 0x400\n"
18586 "\n"
18587 msgstr ""
18588
18589 #. type: textblock
18590 #: ../fish/guestfish-commands.pod:123
18591 msgid "(assuming the superblock is in the standard location)."
18592 msgstr ""
18593
18594 #. type: textblock
18595 #: ../fish/guestfish-commands.pod:125
18596 msgid ""
18597 "This command requires the external L<hexedit(1)> program.  You can specify "
18598 "another program to use by setting the C<HEXEDITOR> environment variable."
18599 msgstr ""
18600
18601 #. type: textblock
18602 #: ../fish/guestfish-commands.pod:129
18603 msgid "See also L</hexdump>."
18604 msgstr ""
18605
18606 #. type: =head2
18607 #: ../fish/guestfish-commands.pod:131
18608 msgid "lcd"
18609 msgstr ""
18610
18611 #. type: verbatim
18612 #: ../fish/guestfish-commands.pod:133
18613 #, no-wrap
18614 msgid ""
18615 " lcd directory\n"
18616 "\n"
18617 msgstr ""
18618
18619 #. type: textblock
18620 #: ../fish/guestfish-commands.pod:135
18621 msgid ""
18622 "Change the local directory, ie. the current directory of guestfish itself."
18623 msgstr ""
18624
18625 #. type: textblock
18626 #: ../fish/guestfish-commands.pod:138
18627 msgid "Note that C<!cd> won't do what you might expect."
18628 msgstr ""
18629
18630 #. type: =head2
18631 #: ../fish/guestfish-commands.pod:140
18632 msgid "man"
18633 msgstr ""
18634
18635 #. type: =head2
18636 #: ../fish/guestfish-commands.pod:142
18637 msgid "manual"
18638 msgstr ""
18639
18640 #. type: verbatim
18641 #: ../fish/guestfish-commands.pod:144
18642 #, no-wrap
18643 msgid ""
18644 "  man\n"
18645 "\n"
18646 msgstr ""
18647
18648 #. type: textblock
18649 #: ../fish/guestfish-commands.pod:146
18650 msgid "Opens the manual page for guestfish."
18651 msgstr ""
18652
18653 #. type: =head2
18654 #: ../fish/guestfish-commands.pod:148
18655 msgid "more"
18656 msgstr ""
18657
18658 #. type: =head2
18659 #: ../fish/guestfish-commands.pod:150
18660 msgid "less"
18661 msgstr ""
18662
18663 #. type: verbatim
18664 #: ../fish/guestfish-commands.pod:152
18665 #, no-wrap
18666 msgid ""
18667 " more filename\n"
18668 "\n"
18669 msgstr ""
18670
18671 #. type: verbatim
18672 #: ../fish/guestfish-commands.pod:154
18673 #, no-wrap
18674 msgid ""
18675 " less filename\n"
18676 "\n"
18677 msgstr ""
18678
18679 #. type: textblock
18680 #: ../fish/guestfish-commands.pod:156
18681 msgid "This is used to view a file."
18682 msgstr ""
18683
18684 #. type: textblock
18685 #: ../fish/guestfish-commands.pod:158
18686 msgid ""
18687 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18688 "C<less> you will get the C<less> command specifically."
18689 msgstr ""
18690
18691 #. type: =head2
18692 #: ../fish/guestfish-commands.pod:161
18693 msgid "reopen"
18694 msgstr ""
18695
18696 #. type: verbatim
18697 #: ../fish/guestfish-commands.pod:163
18698 #, no-wrap
18699 msgid ""
18700 "  reopen\n"
18701 "\n"
18702 msgstr ""
18703
18704 #. type: textblock
18705 #: ../fish/guestfish-commands.pod:165
18706 msgid ""
18707 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18708 "normally, because the handle is closed properly when guestfish exits.  "
18709 "However this is occasionally useful for testing."
18710 msgstr ""
18711
18712 #. type: =head2
18713 #: ../fish/guestfish-commands.pod:169
18714 msgid "setenv"
18715 msgstr ""
18716
18717 #. type: verbatim
18718 #: ../fish/guestfish-commands.pod:171
18719 #, no-wrap
18720 msgid ""
18721 "  setenv VAR value\n"
18722 "\n"
18723 msgstr ""
18724
18725 #. type: textblock
18726 #: ../fish/guestfish-commands.pod:173
18727 msgid "Set the environment variable C<VAR> to the string C<value>."
18728 msgstr ""
18729
18730 #. type: textblock
18731 #: ../fish/guestfish-commands.pod:175
18732 msgid ""
18733 "To print the value of an environment variable use a shell command such as:"
18734 msgstr ""
18735
18736 #. type: verbatim
18737 #: ../fish/guestfish-commands.pod:178
18738 #, no-wrap
18739 msgid ""
18740 " !echo $VAR\n"
18741 "\n"
18742 msgstr ""
18743
18744 #. type: =head2
18745 #: ../fish/guestfish-commands.pod:180
18746 msgid "sparse"
18747 msgstr ""
18748
18749 #. type: verbatim
18750 #: ../fish/guestfish-commands.pod:182
18751 #, no-wrap
18752 msgid ""
18753 " sparse filename size\n"
18754 "\n"
18755 msgstr ""
18756
18757 #. type: textblock
18758 #: ../fish/guestfish-commands.pod:184
18759 msgid ""
18760 "This creates an empty sparse file of the given size, and then adds so it can "
18761 "be further examined."
18762 msgstr ""
18763
18764 #. type: textblock
18765 #: ../fish/guestfish-commands.pod:187
18766 msgid ""
18767 "In all respects it works the same as the L</alloc> command, except that the "
18768 "image file is allocated sparsely, which means that disk blocks are not "
18769 "assigned to the file until they are needed.  Sparse disk files only use "
18770 "space when written to, but they are slower and there is a danger you could "
18771 "run out of real disk space during a write operation."
18772 msgstr ""
18773
18774 #. type: =head2
18775 #: ../fish/guestfish-commands.pod:197
18776 msgid "supported"
18777 msgstr ""
18778
18779 #. type: verbatim
18780 #: ../fish/guestfish-commands.pod:199
18781 #, no-wrap
18782 msgid ""
18783 " supported\n"
18784 "\n"
18785 msgstr ""
18786
18787 #. type: textblock
18788 #: ../fish/guestfish-commands.pod:201
18789 msgid ""
18790 "This command returns a list of the optional groups known to the daemon, and "
18791 "indicates which ones are supported by this build of the libguestfs appliance."
18792 msgstr ""
18793
18794 #. type: textblock
18795 #: ../fish/guestfish-commands.pod:205
18796 msgid "See also L<guestfs(3)/AVAILABILITY>."
18797 msgstr ""
18798
18799 #. type: =head2
18800 #: ../fish/guestfish-commands.pod:207
18801 msgid "time"
18802 msgstr ""
18803
18804 #. type: verbatim
18805 #: ../fish/guestfish-commands.pod:209
18806 #, no-wrap
18807 msgid ""
18808 " time command args...\n"
18809 "\n"
18810 msgstr ""
18811
18812 #. type: textblock
18813 #: ../fish/guestfish-commands.pod:211
18814 msgid ""
18815 "Run the command as usual, but print the elapsed time afterwards.  This can "
18816 "be useful for benchmarking operations."
18817 msgstr ""
18818
18819 #. type: =head2
18820 #: ../fish/guestfish-commands.pod:214
18821 msgid "unsetenv"
18822 msgstr ""
18823
18824 #. type: verbatim
18825 #: ../fish/guestfish-commands.pod:216
18826 #, no-wrap
18827 msgid ""
18828 "  unsetenv VAR\n"
18829 "\n"
18830 msgstr ""
18831
18832 #. type: textblock
18833 #: ../fish/guestfish-commands.pod:218
18834 msgid "Remove C<VAR> from the environment."
18835 msgstr ""
18836
18837 #. type: textblock
18838 #: ../fish/guestfish.pod:5
18839 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18840 msgstr ""
18841
18842 #. type: verbatim
18843 #: ../fish/guestfish.pod:9
18844 #, no-wrap
18845 msgid ""
18846 " guestfish [--options] [commands]\n"
18847 "\n"
18848 msgstr ""
18849
18850 #. type: verbatim
18851 #: ../fish/guestfish.pod:11
18852 #, no-wrap
18853 msgid ""
18854 " guestfish\n"
18855 "\n"
18856 msgstr ""
18857
18858 #. type: verbatim
18859 #: ../fish/guestfish.pod:13
18860 #, no-wrap
18861 msgid ""
18862 " guestfish [--ro|--rw] -a disk.img\n"
18863 "\n"
18864 msgstr ""
18865
18866 #. type: verbatim
18867 #: ../fish/guestfish.pod:15
18868 #, no-wrap
18869 msgid ""
18870 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18871 "\n"
18872 msgstr ""
18873
18874 #. type: verbatim
18875 #: ../fish/guestfish.pod:17
18876 #, no-wrap
18877 msgid ""
18878 " guestfish -d libvirt-domain\n"
18879 "\n"
18880 msgstr ""
18881
18882 #. type: verbatim
18883 #: ../fish/guestfish.pod:19
18884 #, no-wrap
18885 msgid ""
18886 " guestfish [--ro|--rw] -a disk.img -i\n"
18887 "\n"
18888 msgstr ""
18889
18890 #. type: verbatim
18891 #: ../fish/guestfish.pod:21
18892 #, no-wrap
18893 msgid ""
18894 " guestfish -d libvirt-domain -i\n"
18895 "\n"
18896 msgstr ""
18897
18898 #. type: textblock
18899 #: ../fish/guestfish.pod:25
18900 msgid ""
18901 "Using guestfish in read/write mode on live virtual machines can be "
18902 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18903 "option to use guestfish safely if the disk image or virtual machine might be "
18904 "live."
18905 msgstr ""
18906
18907 #. type: textblock
18908 #: ../fish/guestfish.pod:32
18909 msgid ""
18910 "Guestfish is a shell and command-line tool for examining and modifying "
18911 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18912 "functionality of the guestfs API, see L<guestfs(3)>."
18913 msgstr ""
18914
18915 #. type: textblock
18916 #: ../fish/guestfish.pod:36
18917 msgid ""
18918 "Guestfish gives you structured access to the libguestfs API, from shell "
18919 "scripts or the command line or interactively.  If you want to rescue a "
18920 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18921 "command."
18922 msgstr ""
18923
18924 #. type: =head2
18925 #: ../fish/guestfish.pod:43
18926 msgid "As an interactive shell"
18927 msgstr ""
18928
18929 #. type: verbatim
18930 #: ../fish/guestfish.pod:45
18931 #, no-wrap
18932 msgid ""
18933 " $ guestfish\n"
18934 " \n"
18935 msgstr ""
18936
18937 #. type: verbatim
18938 #: ../fish/guestfish.pod:47
18939 #, no-wrap
18940 msgid ""
18941 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18942 " editing virtual machine filesystems.\n"
18943 " \n"
18944 msgstr ""
18945
18946 #. type: verbatim
18947 #: ../fish/guestfish.pod:50
18948 #, no-wrap
18949 msgid ""
18950 " Type: 'help' for a list of commands\n"
18951 "       'man' to read the manual\n"
18952 "       'quit' to quit the shell\n"
18953 " \n"
18954 msgstr ""
18955
18956 #. type: verbatim
18957 #: ../fish/guestfish.pod:54
18958 #, no-wrap
18959 msgid ""
18960 " ><fs> add-ro disk.img\n"
18961 " ><fs> run\n"
18962 " ><fs> list-filesystems\n"
18963 " /dev/sda1: ext4\n"
18964 " /dev/vg_guest/lv_root: ext4\n"
18965 " /dev/vg_guest/lv_swap: swap\n"
18966 " ><fs> mount /dev/vg_guest/lv_root /\n"
18967 " ><fs> cat /etc/fstab\n"
18968 " # /etc/fstab\n"
18969 " # Created by anaconda\n"
18970 " [...]\n"
18971 " ><fs> exit\n"
18972 "\n"
18973 msgstr ""
18974
18975 #. type: =head2
18976 #: ../fish/guestfish.pod:67
18977 msgid "From shell scripts"
18978 msgstr ""
18979
18980 #. type: textblock
18981 #: ../fish/guestfish.pod:69
18982 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18983 msgstr ""
18984
18985 #. type: verbatim
18986 #: ../fish/guestfish.pod:71
18987 #, no-wrap
18988 msgid ""
18989 " guestfish <<_EOF_\n"
18990 " add disk.img\n"
18991 " run\n"
18992 " mount /dev/vg_guest/lv_root /\n"
18993 " write /etc/motd \"Welcome, new users\"\n"
18994 " _EOF_\n"
18995 "\n"
18996 msgstr ""
18997
18998 #. type: textblock
18999 #: ../fish/guestfish.pod:78
19000 msgid "List the LVM logical volumes in a disk image:"
19001 msgstr ""
19002
19003 #. type: verbatim
19004 #: ../fish/guestfish.pod:80
19005 #, no-wrap
19006 msgid ""
19007 " guestfish -a disk.img --ro <<_EOF_\n"
19008 " run\n"
19009 " lvs\n"
19010 " _EOF_\n"
19011 "\n"
19012 msgstr ""
19013
19014 #. type: textblock
19015 #: ../fish/guestfish.pod:85
19016 msgid "List all the filesystems in a disk image:"
19017 msgstr ""
19018
19019 #. type: verbatim
19020 #: ../fish/guestfish.pod:87
19021 #, no-wrap
19022 msgid ""
19023 " guestfish -a disk.img --ro <<_EOF_\n"
19024 " run\n"
19025 " list-filesystems\n"
19026 " _EOF_\n"
19027 "\n"
19028 msgstr ""
19029
19030 #. type: =head2
19031 #: ../fish/guestfish.pod:92
19032 msgid "On one command line"
19033 msgstr ""
19034
19035 #. type: textblock
19036 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
19037 msgid "Update C</etc/resolv.conf> in a guest:"
19038 msgstr ""
19039
19040 #. type: verbatim
19041 #: ../fish/guestfish.pod:96
19042 #, no-wrap
19043 msgid ""
19044 " guestfish \\\n"
19045 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19046 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19047 "\n"
19048 msgstr ""
19049
19050 #. type: textblock
19051 #: ../fish/guestfish.pod:100
19052 msgid "Edit C</boot/grub/grub.conf> interactively:"
19053 msgstr ""
19054
19055 #. type: verbatim
19056 #: ../fish/guestfish.pod:102
19057 #, no-wrap
19058 msgid ""
19059 " guestfish --rw --add disk.img \\\n"
19060 "   --mount /dev/vg_guest/lv_root \\\n"
19061 "   --mount /dev/sda1:/boot \\\n"
19062 "   edit /boot/grub/grub.conf\n"
19063 "\n"
19064 msgstr ""
19065
19066 #. type: =head2
19067 #: ../fish/guestfish.pod:107
19068 msgid "Mount disks automatically"
19069 msgstr ""
19070
19071 #. type: textblock
19072 #: ../fish/guestfish.pod:109
19073 msgid ""
19074 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19075 msgstr ""
19076
19077 #. type: verbatim
19078 #: ../fish/guestfish.pod:112
19079 #, no-wrap
19080 msgid ""
19081 " guestfish --ro -a disk.img -i cat /etc/group\n"
19082 "\n"
19083 msgstr ""
19084
19085 #. type: verbatim
19086 #: ../fish/guestfish.pod:114
19087 #, no-wrap
19088 msgid ""
19089 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19090 "\n"
19091 msgstr ""
19092
19093 #. type: textblock
19094 #: ../fish/guestfish.pod:116
19095 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19096 msgstr ""
19097
19098 #. type: verbatim
19099 #: ../fish/guestfish.pod:118
19100 #, no-wrap
19101 msgid ""
19102 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19103 "\n"
19104 msgstr ""
19105
19106 #. type: =head2
19107 #: ../fish/guestfish.pod:120
19108 msgid "As a script interpreter"
19109 msgstr ""
19110
19111 #. type: textblock
19112 #: ../fish/guestfish.pod:122
19113 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19114 msgstr ""
19115
19116 #. type: verbatim
19117 #: ../fish/guestfish.pod:124
19118 #, no-wrap
19119 msgid ""
19120 " #!/usr/bin/guestfish -f\n"
19121 " sparse test1.img 100M\n"
19122 " run\n"
19123 " part-disk /dev/sda mbr\n"
19124 " mkfs ext2 /dev/sda1\n"
19125 "\n"
19126 msgstr ""
19127
19128 #. type: =head2
19129 #: ../fish/guestfish.pod:130
19130 msgid "Start with a prepared disk"
19131 msgstr ""
19132
19133 #. type: textblock
19134 #: ../fish/guestfish.pod:132
19135 msgid ""
19136 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19137 "single ext2-formatted partition:"
19138 msgstr ""
19139
19140 #. type: verbatim
19141 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
19142 #, no-wrap
19143 msgid ""
19144 " guestfish -N fs\n"
19145 "\n"
19146 msgstr ""
19147
19148 #. type: textblock
19149 #: ../fish/guestfish.pod:137
19150 msgid "To list what is available do:"
19151 msgstr ""
19152
19153 #. type: verbatim
19154 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
19155 #, no-wrap
19156 msgid ""
19157 " guestfish -N help | less\n"
19158 "\n"
19159 msgstr ""
19160
19161 #. type: =head2
19162 #: ../fish/guestfish.pod:141
19163 msgid "Remote control"
19164 msgstr ""
19165
19166 #. type: verbatim
19167 #: ../fish/guestfish.pod:143
19168 #, no-wrap
19169 msgid ""
19170 " eval \"`guestfish --listen`\"\n"
19171 " guestfish --remote add-ro disk.img\n"
19172 " guestfish --remote run\n"
19173 " guestfish --remote lvs\n"
19174 "\n"
19175 msgstr ""
19176
19177 #. type: textblock
19178 #: ../fish/guestfish.pod:154
19179 msgid "Displays general help on options."
19180 msgstr ""
19181
19182 #. type: =item
19183 #: ../fish/guestfish.pod:158
19184 msgid "B<--cmd-help>"
19185 msgstr ""
19186
19187 #. type: textblock
19188 #: ../fish/guestfish.pod:160
19189 msgid "Lists all available guestfish commands."
19190 msgstr ""
19191
19192 #. type: =item
19193 #: ../fish/guestfish.pod:162
19194 msgid "B<-h cmd>"
19195 msgstr ""
19196
19197 #. type: =item
19198 #: ../fish/guestfish.pod:164
19199 msgid "B<--cmd-help cmd>"
19200 msgstr ""
19201
19202 #. type: textblock
19203 #: ../fish/guestfish.pod:166
19204 msgid "Displays detailed help on a single command C<cmd>."
19205 msgstr ""
19206
19207 #. type: =item
19208 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19209 msgid "B<-a image>"
19210 msgstr ""
19211
19212 #. type: =item
19213 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19214 msgid "B<--add image>"
19215 msgstr ""
19216
19217 #. type: textblock
19218 #: ../fish/guestfish.pod:172
19219 msgid "Add a block device or virtual machine image to the shell."
19220 msgstr ""
19221
19222 #. type: textblock
19223 #: ../fish/guestfish.pod:177
19224 msgid ""
19225 "Using this flag is mostly equivalent to using the C<add> command, with "
19226 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19227 "the I<--format=...> flag was given."
19228 msgstr ""
19229
19230 #. type: textblock
19231 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19232 msgid ""
19233 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19234 "URI to use.  The default is to use the default libvirt connection."
19235 msgstr ""
19236
19237 #. type: =item
19238 #: ../fish/guestfish.pod:189
19239 msgid "B<--csh>"
19240 msgstr ""
19241
19242 #. type: textblock
19243 #: ../fish/guestfish.pod:191
19244 msgid ""
19245 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19246 "section L</REMOTE CONTROL AND CSH> below."
19247 msgstr ""
19248
19249 #. type: =item
19250 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19251 msgid "B<-d libvirt-domain>"
19252 msgstr ""
19253
19254 #. type: =item
19255 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19256 msgid "B<--domain libvirt-domain>"
19257 msgstr ""
19258
19259 #. type: textblock
19260 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19261 msgid ""
19262 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19263 "used, then any libvirt domain can be used.  However in write mode, only "
19264 "libvirt domains which are shut down can be named here."
19265 msgstr ""
19266
19267 #. type: textblock
19268 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19269 msgid "Domain UUIDs can be used instead of names."
19270 msgstr ""
19271
19272 #. type: textblock
19273 #: ../fish/guestfish.pod:204
19274 msgid ""
19275 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19276 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19277 "if the I<--format:...> flag was given."
19278 msgstr ""
19279
19280 #. type: =item
19281 #: ../fish/guestfish.pod:208
19282 msgid "B<-D>"
19283 msgstr ""
19284
19285 #. type: =item
19286 #: ../fish/guestfish.pod:210
19287 msgid "B<--no-dest-paths>"
19288 msgstr ""
19289
19290 #. type: textblock
19291 #: ../fish/guestfish.pod:212
19292 msgid ""
19293 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19294 "to hit the tab key to complete paths on the guest filesystem, but this "
19295 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19296 "allow this feature to be disabled."
19297 msgstr ""
19298
19299 #. type: textblock
19300 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19301 msgid ""
19302 "When prompting for keys and passphrases, guestfish normally turns echoing "
19303 "off so you cannot see what you are typing.  If you are not worried about "
19304 "Tempest attacks and there is no one else in the room you can specify this "
19305 "flag to see what you are typing."
19306 msgstr ""
19307
19308 #. type: =item
19309 #: ../fish/guestfish.pod:224
19310 msgid "B<-f file>"
19311 msgstr ""
19312
19313 #. type: =item
19314 #: ../fish/guestfish.pod:226
19315 msgid "B<--file file>"
19316 msgstr ""
19317
19318 #. type: textblock
19319 #: ../fish/guestfish.pod:228
19320 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19321 msgstr ""
19322
19323 #. type: verbatim
19324 #: ../fish/guestfish.pod:231
19325 #, no-wrap
19326 msgid ""
19327 " #!/usr/bin/guestfish -f\n"
19328 "\n"
19329 msgstr ""
19330
19331 #. type: verbatim
19332 #: ../fish/guestfish.pod:244
19333 #, no-wrap
19334 msgid ""
19335 " guestfish --format=raw -a disk.img\n"
19336 "\n"
19337 msgstr ""
19338
19339 #. type: verbatim
19340 #: ../fish/guestfish.pod:248
19341 #, no-wrap
19342 msgid ""
19343 " guestfish --format=raw -a disk.img --format -a another.img\n"
19344 "\n"
19345 msgstr ""
19346
19347 #. type: textblock
19348 #: ../fish/guestfish.pod:253
19349 msgid ""
19350 "If you have untrusted raw-format guest disk images, you should use this "
19351 "option to specify the disk format.  This avoids a possible security problem "
19352 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19353 msgstr ""
19354
19355 #. type: =item
19356 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19357 msgid "B<--inspector>"
19358 msgstr ""
19359
19360 #. type: textblock
19361 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19362 msgid ""
19363 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19364 "system and mount filesystems as they would be mounted on the real virtual "
19365 "machine."
19366 msgstr ""
19367
19368 #. type: textblock
19369 #: ../fish/guestfish.pod:266
19370 msgid "Typical usage is either:"
19371 msgstr ""
19372
19373 #. type: verbatim
19374 #: ../fish/guestfish.pod:268
19375 #, no-wrap
19376 msgid ""
19377 " guestfish -d myguest -i\n"
19378 "\n"
19379 msgstr ""
19380
19381 #. type: textblock
19382 #: ../fish/guestfish.pod:270
19383 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19384 msgstr ""
19385
19386 #. type: verbatim
19387 #: ../fish/guestfish.pod:272
19388 #, no-wrap
19389 msgid ""
19390 " guestfish --ro -d myguest -i\n"
19391 "\n"
19392 msgstr ""
19393
19394 #. type: textblock
19395 #: ../fish/guestfish.pod:274
19396 msgid "(for active domains, readonly), or specify the block device directly:"
19397 msgstr ""
19398
19399 #. type: verbatim
19400 #: ../fish/guestfish.pod:276
19401 #, no-wrap
19402 msgid ""
19403 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19404 "\n"
19405 msgstr ""
19406
19407 #. type: textblock
19408 #: ../fish/guestfish.pod:278
19409 msgid ""
19410 "Note that the command line syntax changed slightly over older versions of "
19411 "guestfish.  You can still use the old syntax:"
19412 msgstr ""
19413
19414 #. type: verbatim
19415 #: ../fish/guestfish.pod:281
19416 #, no-wrap
19417 msgid ""
19418 " guestfish [--ro] -i disk.img\n"
19419 "\n"
19420 msgstr ""
19421
19422 #. type: verbatim
19423 #: ../fish/guestfish.pod:283
19424 #, no-wrap
19425 msgid ""
19426 " guestfish [--ro] -i libvirt-domain\n"
19427 "\n"
19428 msgstr ""
19429
19430 #. type: textblock
19431 #: ../fish/guestfish.pod:285
19432 msgid ""
19433 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19434 "then using other commands to mount the filesystems that were found."
19435 msgstr ""
19436
19437 #. type: =item
19438 #: ../fish/guestfish.pod:294
19439 msgid "B<--listen>"
19440 msgstr ""
19441
19442 #. type: textblock
19443 #: ../fish/guestfish.pod:296
19444 msgid ""
19445 "Fork into the background and listen for remote commands.  See section L</"
19446 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19447 msgstr ""
19448
19449 #. type: =item
19450 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19451 msgid "B<--live>"
19452 msgstr ""
19453
19454 #. type: textblock
19455 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19456 msgid ""
19457 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19458 "ATTACHING TO RUNNING DAEMONS>)."
19459 msgstr ""
19460
19461 #. type: =item
19462 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19463 msgid "B<-m dev[:mountpoint[:options]]>"
19464 msgstr ""
19465
19466 #. type: =item
19467 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19468 msgid "B<--mount dev[:mountpoint[:options]]>"
19469 msgstr ""
19470
19471 #. type: textblock
19472 #: ../fish/guestfish.pod:308
19473 msgid "Mount the named partition or logical volume on the given mountpoint."
19474 msgstr ""
19475
19476 #. type: textblock
19477 #: ../fish/guestfish.pod:310
19478 msgid "If the mountpoint is omitted, it defaults to C</>."
19479 msgstr ""
19480
19481 #. type: textblock
19482 #: ../fish/guestfish.pod:312
19483 msgid "You have to mount something on C</> before most commands will work."
19484 msgstr ""
19485
19486 #. type: textblock
19487 #: ../fish/guestfish.pod:314
19488 msgid ""
19489 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19490 "launched."
19491 msgstr ""
19492
19493 #. type: textblock
19494 #: ../fish/guestfish.pod:317
19495 msgid ""
19496 "If you don't know what filesystems a disk image contains, you can either run "
19497 "guestfish without this option, then list the partitions, filesystems and LVs "
19498 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19499 "commands), or you can use the L<virt-filesystems(1)> program."
19500 msgstr ""
19501
19502 #. type: textblock
19503 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19504 msgid ""
19505 "The third (and rarely used) part of the mount parameter is the list of mount "
19506 "options used to mount the underlying filesystem.  If this is not given, then "
19507 "the mount options are either the empty string or C<ro> (the latter if the "
19508 "I<--ro> flag is used).  By specifying the mount options, you override this "
19509 "default choice.  Probably the only time you would use this is to enable ACLs "
19510 "and/or extended attributes if the filesystem can support them:"
19511 msgstr ""
19512
19513 #. type: verbatim
19514 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19515 #, no-wrap
19516 msgid ""
19517 " -m /dev/sda1:/:acl,user_xattr\n"
19518 "\n"
19519 msgstr ""
19520
19521 #. type: textblock
19522 #: ../fish/guestfish.pod:333
19523 msgid "Using this flag is equivalent to using the C<mount-options> command."
19524 msgstr ""
19525
19526 #. type: =item
19527 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19528 #: ../resize/virt-resize.pod:441
19529 msgid "B<-n>"
19530 msgstr ""
19531
19532 #. type: =item
19533 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19534 msgid "B<--no-sync>"
19535 msgstr ""
19536
19537 #. type: textblock
19538 #: ../fish/guestfish.pod:339
19539 msgid ""
19540 "Disable autosync.  This is enabled by default.  See the discussion of "
19541 "autosync in the L<guestfs(3)> manpage."
19542 msgstr ""
19543
19544 #. type: =item
19545 #: ../fish/guestfish.pod:342
19546 msgid "B<-N type>"
19547 msgstr ""
19548
19549 #. type: =item
19550 #: ../fish/guestfish.pod:344
19551 msgid "B<--new type>"
19552 msgstr ""
19553
19554 #. type: =item
19555 #: ../fish/guestfish.pod:346
19556 msgid "B<-N help>"
19557 msgstr ""
19558
19559 #. type: textblock
19560 #: ../fish/guestfish.pod:348
19561 msgid ""
19562 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19563 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19564 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19565 "IMAGES> below."
19566 msgstr ""
19567
19568 #. type: =item
19569 #: ../fish/guestfish.pod:353
19570 msgid "B<--progress-bars>"
19571 msgstr ""
19572
19573 #. type: textblock
19574 #: ../fish/guestfish.pod:355
19575 msgid "Enable progress bars, even when guestfish is used non-interactively."
19576 msgstr ""
19577
19578 #. type: textblock
19579 #: ../fish/guestfish.pod:357
19580 msgid ""
19581 "Progress bars are enabled by default when guestfish is used as an "
19582 "interactive shell."
19583 msgstr ""
19584
19585 #. type: =item
19586 #: ../fish/guestfish.pod:360
19587 msgid "B<--no-progress-bars>"
19588 msgstr ""
19589
19590 #. type: textblock
19591 #: ../fish/guestfish.pod:362
19592 msgid "Disable progress bars."
19593 msgstr ""
19594
19595 #. type: =item
19596 #: ../fish/guestfish.pod:364
19597 msgid "B<--remote[=pid]>"
19598 msgstr ""
19599
19600 #. type: textblock
19601 #: ../fish/guestfish.pod:366
19602 msgid ""
19603 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19604 "CONTROL GUESTFISH OVER A SOCKET> below."
19605 msgstr ""
19606
19607 #. type: =item
19608 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19609 #: ../rescue/virt-rescue.pod:161
19610 msgid "B<-r>"
19611 msgstr ""
19612
19613 #. type: =item
19614 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19615 #: ../rescue/virt-rescue.pod:163
19616 msgid "B<--ro>"
19617 msgstr ""
19618
19619 #. type: textblock
19620 #: ../fish/guestfish.pod:373
19621 msgid ""
19622 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19623 "mounts are done read-only."
19624 msgstr ""
19625
19626 #. type: textblock
19627 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19628 msgid ""
19629 "The option must always be used if the disk image or virtual machine might be "
19630 "running, and is generally recommended in cases where you don't need write "
19631 "access to the disk."
19632 msgstr ""
19633
19634 #. type: textblock
19635 #: ../fish/guestfish.pod:380
19636 msgid ""
19637 "Note that prepared disk images created with I<-N> are not affected by this "
19638 "option.  Also commands like C<add> are not affected - you have to specify "
19639 "the C<readonly:true> option explicitly if you need it."
19640 msgstr ""
19641
19642 #. type: textblock
19643 #: ../fish/guestfish.pod:384
19644 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19645 msgstr ""
19646
19647 #. type: =item
19648 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19649 #: ../rescue/virt-rescue.pod:173
19650 msgid "B<--selinux>"
19651 msgstr ""
19652
19653 #. type: textblock
19654 #: ../fish/guestfish.pod:388
19655 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19656 msgstr ""
19657
19658 #. type: textblock
19659 #: ../fish/guestfish.pod:394
19660 msgid ""
19661 "Enable very verbose messages.  This is particularly useful if you find a bug."
19662 msgstr ""
19663
19664 #. type: textblock
19665 #: ../fish/guestfish.pod:401
19666 msgid "Display the guestfish / libguestfs version number and exit."
19667 msgstr ""
19668
19669 #. type: =item
19670 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19671 #: ../rescue/virt-rescue.pod:194
19672 msgid "B<-w>"
19673 msgstr ""
19674
19675 #. type: =item
19676 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19677 #: ../rescue/virt-rescue.pod:196
19678 msgid "B<--rw>"
19679 msgstr ""
19680
19681 #. type: textblock
19682 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19683 msgid ""
19684 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19685 "mounts are done read-write."
19686 msgstr ""
19687
19688 #. type: textblock
19689 #: ../fish/guestfish.pod:410
19690 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19691 msgstr ""
19692
19693 #. type: textblock
19694 #: ../fish/guestfish.pod:414
19695 msgid "Echo each command before executing it."
19696 msgstr ""
19697
19698 #. type: =head1
19699 #: ../fish/guestfish.pod:418
19700 msgid "COMMANDS ON COMMAND LINE"
19701 msgstr ""
19702
19703 #. type: textblock
19704 #: ../fish/guestfish.pod:420
19705 msgid ""
19706 "Any additional (non-option) arguments are treated as commands to execute."
19707 msgstr ""
19708
19709 #. type: textblock
19710 #: ../fish/guestfish.pod:423
19711 msgid ""
19712 "Commands to execute should be separated by a colon (C<:>), where the colon "
19713 "is a separate parameter.  Thus:"
19714 msgstr ""
19715
19716 #. type: verbatim
19717 #: ../fish/guestfish.pod:426
19718 #, no-wrap
19719 msgid ""
19720 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19721 "\n"
19722 msgstr ""
19723
19724 #. type: textblock
19725 #: ../fish/guestfish.pod:428
19726 msgid ""
19727 "If there are no additional arguments, then we enter a shell, either an "
19728 "interactive shell with a prompt (if the input is a terminal) or a non-"
19729 "interactive shell."
19730 msgstr ""
19731
19732 #. type: textblock
19733 #: ../fish/guestfish.pod:432
19734 msgid ""
19735 "In either command line mode or non-interactive shell, the first command that "
19736 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19737 "prompt) if a command fails, you can continue to enter commands."
19738 msgstr ""
19739
19740 #. type: =head1
19741 #: ../fish/guestfish.pod:437
19742 msgid "USING launch (OR run)"
19743 msgstr ""
19744
19745 #. type: textblock
19746 #: ../fish/guestfish.pod:439
19747 msgid ""
19748 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19749 "then launch it, then mount any disks you need, and finally issue actions/"
19750 "commands.  So the general order of the day is:"
19751 msgstr ""
19752
19753 #. type: textblock
19754 #: ../fish/guestfish.pod:447
19755 msgid "add or -a/--add"
19756 msgstr ""
19757
19758 #. type: textblock
19759 #: ../fish/guestfish.pod:451
19760 msgid "launch (aka run)"
19761 msgstr ""
19762
19763 #. type: textblock
19764 #: ../fish/guestfish.pod:455
19765 msgid "mount or -m/--mount"
19766 msgstr ""
19767
19768 #. type: textblock
19769 #: ../fish/guestfish.pod:459
19770 msgid "any other commands"
19771 msgstr ""
19772
19773 #. type: textblock
19774 #: ../fish/guestfish.pod:463
19775 msgid ""
19776 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19777 "guest before mounting or performing any other commands."
19778 msgstr ""
19779
19780 #. type: textblock
19781 #: ../fish/guestfish.pod:466
19782 msgid ""
19783 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19784 "I<--new> options were given then C<run> is done automatically, simply "
19785 "because guestfish can't perform the action you asked for without doing this."
19786 msgstr ""
19787
19788 #. type: =head1
19789 #: ../fish/guestfish.pod:471
19790 msgid "OPENING DISKS FOR READ AND WRITE"
19791 msgstr ""
19792
19793 #. type: textblock
19794 #: ../fish/guestfish.pod:473
19795 msgid ""
19796 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19797 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19798 "I<-i> and I<-m> open disk images read-only or for writing."
19799 msgstr ""
19800
19801 #. type: textblock
19802 #: ../fish/guestfish.pod:478
19803 msgid ""
19804 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19805 "opening disk images supplied on the command line for write.  To open a disk "
19806 "image read-only you have to do I<-a image --ro>."
19807 msgstr ""
19808
19809 #. type: textblock
19810 #: ../fish/guestfish.pod:482
19811 msgid ""
19812 "This matters: If you accidentally open a live VM disk image writable then "
19813 "you will cause irreversible disk corruption."
19814 msgstr ""
19815
19816 #. type: textblock
19817 #: ../fish/guestfish.pod:485
19818 msgid ""
19819 "In a future libguestfs we intend to change the default the other way.  Disk "
19820 "images will be opened read-only.  You will have to either specify "
19821 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19822 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19823 "access for disk images specified by those other command line options."
19824 msgstr ""
19825
19826 #. type: textblock
19827 #: ../fish/guestfish.pod:492
19828 msgid ""
19829 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19830 "which does nothing (it is already the default).  However it is highly "
19831 "recommended that you use this option to indicate that you need write access, "
19832 "and prepare your scripts for the day when this option will be required for "
19833 "write access."
19834 msgstr ""
19835
19836 #. type: textblock
19837 #: ../fish/guestfish.pod:498
19838 msgid ""
19839 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19840 "other libguestfs program apart from guestfish and guestmount."
19841 msgstr ""
19842
19843 #. type: =head1
19844 #: ../fish/guestfish.pod:501
19845 msgid "QUOTING"
19846 msgstr ""
19847
19848 #. type: textblock
19849 #: ../fish/guestfish.pod:503
19850 msgid ""
19851 "You can quote ordinary parameters using either single or double quotes.  For "
19852 "example:"
19853 msgstr ""
19854
19855 #. type: verbatim
19856 #: ../fish/guestfish.pod:506
19857 #, no-wrap
19858 msgid ""
19859 " add \"file with a space.img\"\n"
19860 "\n"
19861 msgstr ""
19862
19863 #. type: verbatim
19864 #: ../fish/guestfish.pod:508
19865 #, no-wrap
19866 msgid ""
19867 " rm '/file name'\n"
19868 "\n"
19869 msgstr ""
19870
19871 #. type: verbatim
19872 #: ../fish/guestfish.pod:510
19873 #, no-wrap
19874 msgid ""
19875 " rm '/\"'\n"
19876 "\n"
19877 msgstr ""
19878
19879 #. type: textblock
19880 #: ../fish/guestfish.pod:512
19881 msgid ""
19882 "A few commands require a list of strings to be passed.  For these, use a "
19883 "whitespace-separated list, enclosed in quotes.  Strings containing "
19884 "whitespace to be passed through must be enclosed in single quotes.  A "
19885 "literal single quote must be escaped with a backslash."
19886 msgstr ""
19887
19888 #. type: verbatim
19889 #: ../fish/guestfish.pod:517
19890 #, no-wrap
19891 msgid ""
19892 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19893 " command \"/bin/echo 'foo      bar'\"\n"
19894 " command \"/bin/echo \\'foo\\'\"\n"
19895 "\n"
19896 msgstr ""
19897
19898 #. type: =head2
19899 #: ../fish/guestfish.pod:521
19900 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19901 msgstr ""
19902
19903 #. type: textblock
19904 #: ../fish/guestfish.pod:523
19905 msgid ""
19906 "In double-quoted arguments (only) use backslash to insert special characters:"
19907 msgstr ""
19908
19909 #. type: =item
19910 #: ../fish/guestfish.pod:528
19911 msgid "C<\\a>"
19912 msgstr ""
19913
19914 #. type: textblock
19915 #: ../fish/guestfish.pod:530
19916 msgid "Alert (bell) character."
19917 msgstr ""
19918
19919 #. type: =item
19920 #: ../fish/guestfish.pod:532
19921 msgid "C<\\b>"
19922 msgstr ""
19923
19924 #. type: textblock
19925 #: ../fish/guestfish.pod:534
19926 msgid "Backspace character."
19927 msgstr ""
19928
19929 #. type: =item
19930 #: ../fish/guestfish.pod:536
19931 msgid "C<\\f>"
19932 msgstr ""
19933
19934 #. type: textblock
19935 #: ../fish/guestfish.pod:538
19936 msgid "Form feed character."
19937 msgstr ""
19938
19939 #. type: =item
19940 #: ../fish/guestfish.pod:540
19941 msgid "C<\\n>"
19942 msgstr ""
19943
19944 #. type: textblock
19945 #: ../fish/guestfish.pod:542
19946 msgid "Newline character."
19947 msgstr ""
19948
19949 #. type: =item
19950 #: ../fish/guestfish.pod:544
19951 msgid "C<\\r>"
19952 msgstr ""
19953
19954 #. type: textblock
19955 #: ../fish/guestfish.pod:546
19956 msgid "Carriage return character."
19957 msgstr ""
19958
19959 #. type: =item
19960 #: ../fish/guestfish.pod:548
19961 msgid "C<\\t>"
19962 msgstr ""
19963
19964 #. type: textblock
19965 #: ../fish/guestfish.pod:550
19966 msgid "Horizontal tab character."
19967 msgstr ""
19968
19969 #. type: =item
19970 #: ../fish/guestfish.pod:552
19971 msgid "C<\\v>"
19972 msgstr ""
19973
19974 #. type: textblock
19975 #: ../fish/guestfish.pod:554
19976 msgid "Vertical tab character."
19977 msgstr ""
19978
19979 #. type: =item
19980 #: ../fish/guestfish.pod:556
19981 msgid "C<\\\">"
19982 msgstr ""
19983
19984 #. type: textblock
19985 #: ../fish/guestfish.pod:558
19986 msgid "A literal double quote character."
19987 msgstr ""
19988
19989 #. type: =item
19990 #: ../fish/guestfish.pod:560
19991 msgid "C<\\ooo>"
19992 msgstr ""
19993
19994 #. type: textblock
19995 #: ../fish/guestfish.pod:562
19996 msgid ""
19997 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19998 "(unlike C)."
19999 msgstr ""
20000
20001 #. type: =item
20002 #: ../fish/guestfish.pod:565
20003 msgid "C<\\xhh>"
20004 msgstr ""
20005
20006 #. type: textblock
20007 #: ../fish/guestfish.pod:567
20008 msgid ""
20009 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
20010 msgstr ""
20011
20012 #. type: textblock
20013 #: ../fish/guestfish.pod:570
20014 msgid ""
20015 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
20016 "strings."
20017 msgstr ""
20018
20019 #. type: =item
20020 #: ../fish/guestfish.pod:573
20021 msgid "C<\\\\>"
20022 msgstr ""
20023
20024 #. type: textblock
20025 #: ../fish/guestfish.pod:575
20026 msgid "A literal backslash character."
20027 msgstr ""
20028
20029 #. type: =head1
20030 #: ../fish/guestfish.pod:579
20031 msgid "OPTIONAL ARGUMENTS"
20032 msgstr ""
20033
20034 #. type: textblock
20035 #: ../fish/guestfish.pod:581
20036 msgid ""
20037 "Some commands take optional arguments.  These arguments appear in this "
20038 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20039 msgstr ""
20040
20041 #. type: verbatim
20042 #: ../fish/guestfish.pod:585
20043 #, no-wrap
20044 msgid ""
20045 " add-drive-opts filename\n"
20046 "\n"
20047 msgstr ""
20048
20049 #. type: verbatim
20050 #: ../fish/guestfish.pod:587
20051 #, no-wrap
20052 msgid ""
20053 " add-drive-opts filename readonly:true\n"
20054 "\n"
20055 msgstr ""
20056
20057 #. type: verbatim
20058 #: ../fish/guestfish.pod:589
20059 #, no-wrap
20060 msgid ""
20061 " add-drive-opts filename format:qcow2 readonly:false\n"
20062 "\n"
20063 msgstr ""
20064
20065 #. type: textblock
20066 #: ../fish/guestfish.pod:591
20067 msgid ""
20068 "Each optional argument can appear at most once.  All optional arguments must "
20069 "appear after the required ones."
20070 msgstr ""
20071
20072 #. type: =head1
20073 #: ../fish/guestfish.pod:594
20074 msgid "NUMBERS"
20075 msgstr ""
20076
20077 #. type: textblock
20078 #: ../fish/guestfish.pod:596
20079 msgid ""
20080 "This section applies to all commands which can take integers as parameters."
20081 msgstr ""
20082
20083 #. type: =head2
20084 #: ../fish/guestfish.pod:599
20085 msgid "SIZE SUFFIX"
20086 msgstr ""
20087
20088 #. type: textblock
20089 #: ../fish/guestfish.pod:601
20090 msgid ""
20091 "When the command takes a parameter measured in bytes, you can use one of the "
20092 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20093 msgstr ""
20094
20095 #. type: =item
20096 #: ../fish/guestfish.pod:607
20097 msgid "B<k> or B<K> or B<KiB>"
20098 msgstr ""
20099
20100 #. type: textblock
20101 #: ../fish/guestfish.pod:609
20102 msgid "The size in kilobytes (multiplied by 1024)."
20103 msgstr ""
20104
20105 #. type: =item
20106 #: ../fish/guestfish.pod:611
20107 msgid "B<KB>"
20108 msgstr ""
20109
20110 #. type: textblock
20111 #: ../fish/guestfish.pod:613
20112 msgid "The size in SI 1000 byte units."
20113 msgstr ""
20114
20115 #. type: =item
20116 #: ../fish/guestfish.pod:615
20117 msgid "B<M> or B<MiB>"
20118 msgstr ""
20119
20120 #. type: textblock
20121 #: ../fish/guestfish.pod:617
20122 msgid "The size in megabytes (multiplied by 1048576)."
20123 msgstr ""
20124
20125 #. type: =item
20126 #: ../fish/guestfish.pod:619
20127 msgid "B<MB>"
20128 msgstr ""
20129
20130 #. type: textblock
20131 #: ../fish/guestfish.pod:621
20132 msgid "The size in SI 1000000 byte units."
20133 msgstr ""
20134
20135 #. type: =item
20136 #: ../fish/guestfish.pod:623
20137 msgid "B<G> or B<GiB>"
20138 msgstr ""
20139
20140 #. type: textblock
20141 #: ../fish/guestfish.pod:625
20142 msgid "The size in gigabytes (multiplied by 2**30)."
20143 msgstr ""
20144
20145 #. type: =item
20146 #: ../fish/guestfish.pod:627
20147 msgid "B<GB>"
20148 msgstr ""
20149
20150 #. type: textblock
20151 #: ../fish/guestfish.pod:629
20152 msgid "The size in SI 10**9 byte units."
20153 msgstr ""
20154
20155 #. type: =item
20156 #: ../fish/guestfish.pod:631
20157 msgid "B<T> or B<TiB>"
20158 msgstr ""
20159
20160 #. type: textblock
20161 #: ../fish/guestfish.pod:633
20162 msgid "The size in terabytes (multiplied by 2**40)."
20163 msgstr ""
20164
20165 #. type: =item
20166 #: ../fish/guestfish.pod:635
20167 msgid "B<TB>"
20168 msgstr ""
20169
20170 #. type: textblock
20171 #: ../fish/guestfish.pod:637
20172 msgid "The size in SI 10**12 byte units."
20173 msgstr ""
20174
20175 #. type: =item
20176 #: ../fish/guestfish.pod:639
20177 msgid "B<P> or B<PiB>"
20178 msgstr ""
20179
20180 #. type: textblock
20181 #: ../fish/guestfish.pod:641
20182 msgid "The size in petabytes (multiplied by 2**50)."
20183 msgstr ""
20184
20185 #. type: =item
20186 #: ../fish/guestfish.pod:643
20187 msgid "B<PB>"
20188 msgstr ""
20189
20190 #. type: textblock
20191 #: ../fish/guestfish.pod:645
20192 msgid "The size in SI 10**15 byte units."
20193 msgstr ""
20194
20195 #. type: =item
20196 #: ../fish/guestfish.pod:647
20197 msgid "B<E> or B<EiB>"
20198 msgstr ""
20199
20200 #. type: textblock
20201 #: ../fish/guestfish.pod:649
20202 msgid "The size in exabytes (multiplied by 2**60)."
20203 msgstr ""
20204
20205 #. type: =item
20206 #: ../fish/guestfish.pod:651
20207 msgid "B<EB>"
20208 msgstr ""
20209
20210 #. type: textblock
20211 #: ../fish/guestfish.pod:653
20212 msgid "The size in SI 10**18 byte units."
20213 msgstr ""
20214
20215 #. type: =item
20216 #: ../fish/guestfish.pod:655
20217 msgid "B<Z> or B<ZiB>"
20218 msgstr ""
20219
20220 #. type: textblock
20221 #: ../fish/guestfish.pod:657
20222 msgid "The size in zettabytes (multiplied by 2**70)."
20223 msgstr ""
20224
20225 #. type: =item
20226 #: ../fish/guestfish.pod:659
20227 msgid "B<ZB>"
20228 msgstr ""
20229
20230 #. type: textblock
20231 #: ../fish/guestfish.pod:661
20232 msgid "The size in SI 10**21 byte units."
20233 msgstr ""
20234
20235 #. type: =item
20236 #: ../fish/guestfish.pod:663
20237 msgid "B<Y> or B<YiB>"
20238 msgstr ""
20239
20240 #. type: textblock
20241 #: ../fish/guestfish.pod:665
20242 msgid "The size in yottabytes (multiplied by 2**80)."
20243 msgstr ""
20244
20245 #. type: =item
20246 #: ../fish/guestfish.pod:667
20247 msgid "B<YB>"
20248 msgstr ""
20249
20250 #. type: textblock
20251 #: ../fish/guestfish.pod:669
20252 msgid "The size in SI 10**24 byte units."
20253 msgstr ""
20254
20255 #. type: verbatim
20256 #: ../fish/guestfish.pod:675
20257 #, no-wrap
20258 msgid ""
20259 " truncate-size /file 1G\n"
20260 "\n"
20261 msgstr ""
20262
20263 #. type: textblock
20264 #: ../fish/guestfish.pod:677
20265 msgid "would truncate the file to 1 gigabyte."
20266 msgstr ""
20267
20268 #. type: textblock
20269 #: ../fish/guestfish.pod:679
20270 msgid ""
20271 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20272 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20273 "suffix will probably not do what you expect."
20274 msgstr ""
20275
20276 #. type: =head2
20277 #: ../fish/guestfish.pod:683
20278 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20279 msgstr ""
20280
20281 #. type: textblock
20282 #: ../fish/guestfish.pod:685
20283 msgid ""
20284 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20285 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20286 msgstr ""
20287
20288 #. type: verbatim
20289 #: ../fish/guestfish.pod:688
20290 #, no-wrap
20291 msgid ""
20292 " 1234      decimal number 1234\n"
20293 " 02322     octal number, equivalent to decimal 1234\n"
20294 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20295 "\n"
20296 msgstr ""
20297
20298 #. type: textblock
20299 #: ../fish/guestfish.pod:692
20300 msgid ""
20301 "When using the C<chmod> command, you almost always want to specify an octal "
20302 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20303 "L<chmod(1)> program):"
20304 msgstr ""
20305
20306 #. type: verbatim
20307 #: ../fish/guestfish.pod:696
20308 #, no-wrap
20309 msgid ""
20310 " chmod 0777 /public  # OK\n"
20311 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20312 "\n"
20313 msgstr ""
20314
20315 #. type: textblock
20316 #: ../fish/guestfish.pod:699
20317 msgid ""
20318 "Commands that return numbers usually print them in decimal, but some "
20319 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20320 "octal, preceeded by C<0>)."
20321 msgstr ""
20322
20323 #. type: =head1
20324 #: ../fish/guestfish.pod:703
20325 msgid "WILDCARDS AND GLOBBING"
20326 msgstr ""
20327
20328 #. type: textblock
20329 #: ../fish/guestfish.pod:705
20330 msgid ""
20331 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20332 "(globbing) by default.  So for example the following will not do what you "
20333 "expect:"
20334 msgstr ""
20335
20336 #. type: verbatim
20337 #: ../fish/guestfish.pod:709
20338 #, no-wrap
20339 msgid ""
20340 " rm-rf /home/*\n"
20341 "\n"
20342 msgstr ""
20343
20344 #. type: textblock
20345 #: ../fish/guestfish.pod:711
20346 msgid ""
20347 "Assuming you don't have a directory called literally C</home/*> then the "
20348 "above command will return an error."
20349 msgstr ""
20350
20351 #. type: textblock
20352 #: ../fish/guestfish.pod:714
20353 msgid "To perform wildcard expansion, use the C<glob> command."
20354 msgstr ""
20355
20356 #. type: verbatim
20357 #: ../fish/guestfish.pod:716
20358 #, no-wrap
20359 msgid ""
20360 " glob rm-rf /home/*\n"
20361 "\n"
20362 msgstr ""
20363
20364 #. type: textblock
20365 #: ../fish/guestfish.pod:718
20366 msgid ""
20367 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20368 "many times), equivalent to:"
20369 msgstr ""
20370
20371 #. type: verbatim
20372 #: ../fish/guestfish.pod:721
20373 #, no-wrap
20374 msgid ""
20375 " rm-rf /home/jim\n"
20376 " rm-rf /home/joe\n"
20377 " rm-rf /home/mary\n"
20378 "\n"
20379 msgstr ""
20380
20381 #. type: textblock
20382 #: ../fish/guestfish.pod:725
20383 msgid "C<glob> only works on simple guest paths and not on device names."
20384 msgstr ""
20385
20386 #. type: textblock
20387 #: ../fish/guestfish.pod:727
20388 msgid ""
20389 "If you have several parameters, each containing a wildcard, then glob will "
20390 "perform a Cartesian product."
20391 msgstr ""
20392
20393 #. type: =head1
20394 #: ../fish/guestfish.pod:730
20395 msgid "COMMENTS"
20396 msgstr ""
20397
20398 #. type: textblock
20399 #: ../fish/guestfish.pod:732
20400 msgid ""
20401 "Any line which starts with a I<#> character is treated as a comment and "
20402 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20403 "a command.  For example:"
20404 msgstr ""
20405
20406 #. type: verbatim
20407 #: ../fish/guestfish.pod:736
20408 #, no-wrap
20409 msgid ""
20410 " # this is a comment\n"
20411 "         # this is a comment\n"
20412 " foo # NOT a comment\n"
20413 "\n"
20414 msgstr ""
20415
20416 #. type: textblock
20417 #: ../fish/guestfish.pod:740
20418 msgid "Blank lines are also ignored."
20419 msgstr ""
20420
20421 #. type: =head1
20422 #: ../fish/guestfish.pod:742
20423 msgid "RUNNING COMMANDS LOCALLY"
20424 msgstr ""
20425
20426 #. type: textblock
20427 #: ../fish/guestfish.pod:744
20428 msgid ""
20429 "Any line which starts with a I<!> character is treated as a command sent to "
20430 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20431 msgstr ""
20432
20433 #. type: verbatim
20434 #: ../fish/guestfish.pod:748
20435 #, no-wrap
20436 msgid ""
20437 " !mkdir local\n"
20438 " tgz-out /remote local/remote-data.tar.gz\n"
20439 "\n"
20440 msgstr ""
20441
20442 #. type: textblock
20443 #: ../fish/guestfish.pod:751
20444 msgid ""
20445 "will create a directory C<local> on the host, and then export the contents "
20446 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20447 "(See C<tgz-out>)."
20448 msgstr ""
20449
20450 #. type: textblock
20451 #: ../fish/guestfish.pod:755
20452 msgid ""
20453 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20454 "effect, due to the way that subprocesses work in Unix."
20455 msgstr ""
20456
20457 #. type: =head2
20458 #: ../fish/guestfish.pod:758
20459 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20460 msgstr ""
20461
20462 #. type: textblock
20463 #: ../fish/guestfish.pod:760
20464 msgid ""
20465 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20466 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20467 "and executed as guestfish commands."
20468 msgstr ""
20469
20470 #. type: textblock
20471 #: ../fish/guestfish.pod:764
20472 msgid ""
20473 "Thus you can use shell script to construct arbitrary guestfish commands "
20474 "which are then parsed by guestfish."
20475 msgstr ""
20476
20477 #. type: textblock
20478 #: ../fish/guestfish.pod:767
20479 msgid ""
20480 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20481 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20482 "if we use a shell script to create the guestfish commands for us:"
20483 msgstr ""
20484
20485 #. type: verbatim
20486 #: ../fish/guestfish.pod:772
20487 #, no-wrap
20488 msgid ""
20489 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20490 "\n"
20491 msgstr ""
20492
20493 #. type: textblock
20494 #: ../fish/guestfish.pod:774
20495 msgid "or with names like C</foo.001>:"
20496 msgstr ""
20497
20498 #. type: verbatim
20499 #: ../fish/guestfish.pod:776
20500 #, no-wrap
20501 msgid ""
20502 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20503 "\n"
20504 msgstr ""
20505
20506 #. type: textblock
20507 #: ../fish/guestfish.pod:778
20508 msgid ""
20509 "When using guestfish interactively it can be helpful to just run the shell "
20510 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20511 "ordinary I<!> local command), see what guestfish commands it would run, and "
20512 "when you are happy with those prepend the C<E<lt>> character to run the "
20513 "guestfish commands for real."
20514 msgstr ""
20515
20516 #. type: =head1
20517 #: ../fish/guestfish.pod:784
20518 msgid "PIPES"
20519 msgstr ""
20520
20521 #. type: textblock
20522 #: ../fish/guestfish.pod:786
20523 msgid ""
20524 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20525 "command (a guestfish command) to the second command (any host command).  For "
20526 "example:"
20527 msgstr ""
20528
20529 #. type: verbatim
20530 #: ../fish/guestfish.pod:790
20531 #, no-wrap
20532 msgid ""
20533 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20534 "\n"
20535 msgstr ""
20536
20537 #. type: textblock
20538 #: ../fish/guestfish.pod:792
20539 msgid ""
20540 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20541 "program).  The above command would list all accounts in the guest filesystem "
20542 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20543 msgstr ""
20544
20545 #. type: verbatim
20546 #: ../fish/guestfish.pod:797
20547 #, no-wrap
20548 msgid ""
20549 " hexdump /bin/ls | head\n"
20550 " list-devices | tail -1\n"
20551 " tgz-out / - | tar ztf -\n"
20552 "\n"
20553 msgstr ""
20554
20555 #. type: textblock
20556 #: ../fish/guestfish.pod:801
20557 msgid ""
20558 "The space before the pipe symbol is required, any space after the pipe "
20559 "symbol is optional.  Everything after the pipe symbol is just passed "
20560 "straight to the host shell, so it can contain redirections, globs and "
20561 "anything else that makes sense on the host side."
20562 msgstr ""
20563
20564 #. type: textblock
20565 #: ../fish/guestfish.pod:806
20566 msgid ""
20567 "To use a literal argument which begins with a pipe symbol, you have to quote "
20568 "it, eg:"
20569 msgstr ""
20570
20571 #. type: verbatim
20572 #: ../fish/guestfish.pod:809
20573 #, no-wrap
20574 msgid ""
20575 " echo \"|\"\n"
20576 "\n"
20577 msgstr ""
20578
20579 #. type: =head1
20580 #: ../fish/guestfish.pod:811
20581 msgid "HOME DIRECTORIES"
20582 msgstr ""
20583
20584 #. type: textblock
20585 #: ../fish/guestfish.pod:813
20586 msgid ""
20587 "If a parameter starts with the character C<~> then the tilde may be expanded "
20588 "as a home directory path (either C<~> for the current user's home directory, "
20589 "or C<~user> for another user)."
20590 msgstr ""
20591
20592 #. type: textblock
20593 #: ../fish/guestfish.pod:817
20594 msgid ""
20595 "Note that home directory expansion happens for users known I<on the host>, "
20596 "not in the guest filesystem."
20597 msgstr ""
20598
20599 #. type: textblock
20600 #: ../fish/guestfish.pod:820
20601 msgid ""
20602 "To use a literal argument which begins with a tilde, you have to quote it, "
20603 "eg:"
20604 msgstr ""
20605
20606 #. type: verbatim
20607 #: ../fish/guestfish.pod:823
20608 #, no-wrap
20609 msgid ""
20610 " echo \"~\"\n"
20611 "\n"
20612 msgstr ""
20613
20614 #. type: =head2
20615 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20616 msgid "ENCRYPTED DISKS"
20617 msgstr ""
20618
20619 #. type: textblock
20620 #: ../fish/guestfish.pod:827
20621 msgid ""
20622 "Libguestfs has some support for Linux guests encrypted according to the "
20623 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20624 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
20625 "LUKS is supported."
20626 msgstr ""
20627
20628 #. type: textblock
20629 #: ../fish/guestfish.pod:832
20630 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20631 msgstr ""
20632
20633 #. type: verbatim
20634 #: ../fish/guestfish.pod:834
20635 #, no-wrap
20636 msgid ""
20637 " ><fs> vfs-type /dev/sda2\n"
20638 " crypto_LUKS\n"
20639 "\n"
20640 msgstr ""
20641
20642 #. type: textblock
20643 #: ../fish/guestfish.pod:837
20644 msgid ""
20645 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20646 "device called C</dev/mapper/luksdev>."
20647 msgstr ""
20648
20649 #. type: verbatim
20650 #: ../fish/guestfish.pod:840
20651 #, no-wrap
20652 msgid ""
20653 " ><fs> luks-open /dev/sda2 luksdev\n"
20654 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20655 "\n"
20656 msgstr ""
20657
20658 #. type: textblock
20659 #: ../fish/guestfish.pod:843
20660 msgid ""
20661 "Finally you have to tell LVM to scan for volume groups on the newly created "
20662 "mapper device:"
20663 msgstr ""
20664
20665 #. type: verbatim
20666 #: ../fish/guestfish.pod:846
20667 #, no-wrap
20668 msgid ""
20669 " vgscan\n"
20670 " vg-activate-all true\n"
20671 "\n"
20672 msgstr ""
20673
20674 #. type: textblock
20675 #: ../fish/guestfish.pod:849
20676 msgid "The logical volume(s) can now be mounted in the usual way."
20677 msgstr ""
20678
20679 #. type: textblock
20680 #: ../fish/guestfish.pod:851
20681 msgid ""
20682 "Before closing a LUKS device you must unmount any logical volumes on it and "
20683 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20684 "one.  Then you can close the mapper device:"
20685 msgstr ""
20686
20687 #. type: verbatim
20688 #: ../fish/guestfish.pod:855
20689 #, no-wrap
20690 msgid ""
20691 " vg-activate false /dev/VG\n"
20692 " luks-close /dev/mapper/luksdev\n"
20693 "\n"
20694 msgstr ""
20695
20696 #. type: textblock
20697 #: ../fish/guestfish.pod:860
20698 msgid ""
20699 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20700 "letters and paths (with some limitations).  The following commands are "
20701 "equivalent:"
20702 msgstr ""
20703
20704 #. type: verbatim
20705 #: ../fish/guestfish.pod:864
20706 #, no-wrap
20707 msgid ""
20708 " file /WINDOWS/system32/config/system.LOG\n"
20709 "\n"
20710 msgstr ""
20711
20712 #. type: verbatim
20713 #: ../fish/guestfish.pod:866
20714 #, no-wrap
20715 msgid ""
20716 " file win:\\windows\\system32\\config\\system.log\n"
20717 "\n"
20718 msgstr ""
20719
20720 #. type: verbatim
20721 #: ../fish/guestfish.pod:868
20722 #, no-wrap
20723 msgid ""
20724 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20725 "\n"
20726 msgstr ""
20727
20728 #. type: textblock
20729 #: ../fish/guestfish.pod:870
20730 msgid ""
20731 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20732 "where the drive is mounted, prepending that to the path, changing all "
20733 "backslash characters to forward slash, then resolving the result using L</"
20734 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
20735 "the parameter might be rewritten like this:"
20736 msgstr ""
20737
20738 #. type: verbatim
20739 #: ../fish/guestfish.pod:876
20740 #, no-wrap
20741 msgid ""
20742 " win:e:\\foo\\bar => /e/FOO/bar\n"
20743 "\n"
20744 msgstr ""
20745
20746 #. type: textblock
20747 #: ../fish/guestfish.pod:878
20748 msgid "This only works in argument positions that expect a path."
20749 msgstr ""
20750
20751 #. type: =head1
20752 #: ../fish/guestfish.pod:880
20753 msgid "UPLOADING AND DOWNLOADING FILES"
20754 msgstr ""
20755
20756 #. type: textblock
20757 #: ../fish/guestfish.pod:882
20758 msgid ""
20759 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20760 "others which upload from or download to a local file, you can use the "
20761 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20762 msgstr ""
20763
20764 #. type: verbatim
20765 #: ../fish/guestfish.pod:886
20766 #, no-wrap
20767 msgid ""
20768 " upload - /foo\n"
20769 "\n"
20770 msgstr ""
20771
20772 #. type: textblock
20773 #: ../fish/guestfish.pod:888
20774 msgid ""
20775 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20776 msgstr ""
20777
20778 #. type: verbatim
20779 #: ../fish/guestfish.pod:891
20780 #, no-wrap
20781 msgid ""
20782 " tar-out /etc - | tar tf -\n"
20783 "\n"
20784 msgstr ""
20785
20786 #. type: textblock
20787 #: ../fish/guestfish.pod:893
20788 msgid ""
20789 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20790 "command (see L</PIPES>)."
20791 msgstr ""
20792
20793 #. type: textblock
20794 #: ../fish/guestfish.pod:896
20795 msgid ""
20796 "When using C<-> to read from stdin, the input is read up to the end of "
20797 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20798 "some arbitrary end marker:"
20799 msgstr ""
20800
20801 #. type: verbatim
20802 #: ../fish/guestfish.pod:900
20803 #, no-wrap
20804 msgid ""
20805 " upload -<<END /foo\n"
20806 " input line 1\n"
20807 " input line 2\n"
20808 " input line 3\n"
20809 " END\n"
20810 "\n"
20811 msgstr ""
20812
20813 #. type: textblock
20814 #: ../fish/guestfish.pod:906
20815 msgid ""
20816 "Any string of characters can be used instead of C<END>.  The end marker must "
20817 "appear on a line of its own, without any preceeding or following characters "
20818 "(not even spaces)."
20819 msgstr ""
20820
20821 #. type: textblock
20822 #: ../fish/guestfish.pod:910
20823 msgid ""
20824 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20825 "upload local files (so-called \"FileIn\" parameters in the generator)."
20826 msgstr ""
20827
20828 #. type: =head1
20829 #: ../fish/guestfish.pod:913
20830 msgid "EXIT ON ERROR BEHAVIOUR"
20831 msgstr ""
20832
20833 #. type: textblock
20834 #: ../fish/guestfish.pod:915
20835 msgid ""
20836 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20837 "taking commands from a human over a tty), and will exit on the first error "
20838 "in non-interactive mode (scripts, commands given on the command line)."
20839 msgstr ""
20840
20841 #. type: textblock
20842 #: ../fish/guestfish.pod:920
20843 msgid ""
20844 "If you prefix a command with a I<-> character, then that command will not "
20845 "cause guestfish to exit, even if that (one) command returns an error."
20846 msgstr ""
20847
20848 #. type: =head1
20849 #: ../fish/guestfish.pod:924
20850 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20851 msgstr ""
20852
20853 #. type: textblock
20854 #: ../fish/guestfish.pod:926
20855 msgid ""
20856 "Guestfish can be remote-controlled over a socket.  This is useful "
20857 "particularly in shell scripts where you want to make several different "
20858 "changes to a filesystem, but you don't want the overhead of starting up a "
20859 "guestfish process each time."
20860 msgstr ""
20861
20862 #. type: textblock
20863 #: ../fish/guestfish.pod:931
20864 msgid "Start a guestfish server process using:"
20865 msgstr ""
20866
20867 #. type: verbatim
20868 #: ../fish/guestfish.pod:933
20869 #, no-wrap
20870 msgid ""
20871 " eval \"`guestfish --listen`\"\n"
20872 "\n"
20873 msgstr ""
20874
20875 #. type: textblock
20876 #: ../fish/guestfish.pod:935
20877 msgid "and then send it commands by doing:"
20878 msgstr ""
20879
20880 #. type: verbatim
20881 #: ../fish/guestfish.pod:937
20882 #, no-wrap
20883 msgid ""
20884 " guestfish --remote cmd [...]\n"
20885 "\n"
20886 msgstr ""
20887
20888 #. type: textblock
20889 #: ../fish/guestfish.pod:939
20890 msgid "To cause the server to exit, send it the exit command:"
20891 msgstr ""
20892
20893 #. type: textblock
20894 #: ../fish/guestfish.pod:943
20895 msgid ""
20896 "Note that the server will normally exit if there is an error in a command.  "
20897 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20898 "BEHAVIOUR>."
20899 msgstr ""
20900
20901 #. type: =head2
20902 #: ../fish/guestfish.pod:947
20903 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20904 msgstr ""
20905
20906 #. type: textblock
20907 #: ../fish/guestfish.pod:949
20908 msgid ""
20909 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20910 "is how the I<--remote> option knows where to send the commands.  You can "
20911 "have several guestfish listener processes running using:"
20912 msgstr ""
20913
20914 #. type: verbatim
20915 #: ../fish/guestfish.pod:953
20916 #, no-wrap
20917 msgid ""
20918 " eval \"`guestfish --listen`\"\n"
20919 " pid1=$GUESTFISH_PID\n"
20920 " eval \"`guestfish --listen`\"\n"
20921 " pid2=$GUESTFISH_PID\n"
20922 " ...\n"
20923 " guestfish --remote=$pid1 cmd\n"
20924 " guestfish --remote=$pid2 cmd\n"
20925 "\n"
20926 msgstr ""
20927
20928 #. type: =head2
20929 #: ../fish/guestfish.pod:961
20930 msgid "REMOTE CONTROL AND CSH"
20931 msgstr ""
20932
20933 #. type: textblock
20934 #: ../fish/guestfish.pod:963
20935 msgid ""
20936 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20937 "option:"
20938 msgstr ""
20939
20940 #. type: verbatim
20941 #: ../fish/guestfish.pod:966
20942 #, no-wrap
20943 msgid ""
20944 " eval \"`guestfish --listen --csh`\"\n"
20945 "\n"
20946 msgstr ""
20947
20948 #. type: =head2
20949 #: ../fish/guestfish.pod:968
20950 msgid "REMOTE CONTROL DETAILS"
20951 msgstr ""
20952
20953 #. type: textblock
20954 #: ../fish/guestfish.pod:970
20955 msgid ""
20956 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20957 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20958 "and C<$PID> is the process ID of the server."
20959 msgstr ""
20960
20961 #. type: textblock
20962 #: ../fish/guestfish.pod:974
20963 msgid "Guestfish client and server versions must match exactly."
20964 msgstr ""
20965
20966 #. type: =head2
20967 #: ../fish/guestfish.pod:976
20968 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20969 msgstr ""
20970
20971 #. type: textblock
20972 #: ../fish/guestfish.pod:978
20973 msgid ""
20974 "From Bash, you can use the following code which creates a guestfish "
20975 "instance, correctly quotes the command line, handles failure to start, and "
20976 "cleans up guestfish when the script exits:"
20977 msgstr ""
20978
20979 #. type: verbatim
20980 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20981 #, no-wrap
20982 msgid ""
20983 " #!/bin/bash -\n"
20984 " \n"
20985 msgstr ""
20986
20987 #. type: verbatim
20988 #: ../fish/guestfish.pod:986
20989 #, no-wrap
20990 msgid ""
20991 " guestfish[0]=\"guestfish\"\n"
20992 " guestfish[1]=\"--listen\"\n"
20993 " guestfish[2]=\"--ro\"\n"
20994 " guestfish[3]=\"-a\"\n"
20995 " guestfish[4]=\"disk.img\"\n"
20996 " \n"
20997 msgstr ""
20998
20999 #. type: verbatim
21000 #: ../fish/guestfish.pod:992
21001 #, no-wrap
21002 msgid ""
21003 " GUESTFISH_PID=\n"
21004 " eval $(\"${guestfish[@]}\")\n"
21005 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
21006 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
21007 "     exit 1\n"
21008 " fi\n"
21009 " \n"
21010 msgstr ""
21011
21012 #. type: verbatim
21013 #: ../fish/guestfish.pod:999
21014 #, no-wrap
21015 msgid ""
21016 " cleanup_guestfish ()\n"
21017 " {\n"
21018 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
21019 " }\n"
21020 " trap cleanup_guestfish EXIT ERR\n"
21021 " \n"
21022 msgstr ""
21023
21024 #. type: verbatim
21025 #: ../fish/guestfish.pod:1005
21026 #, no-wrap
21027 msgid ""
21028 " guestfish --remote -- run\n"
21029 " \n"
21030 msgstr ""
21031
21032 #. type: verbatim
21033 #: ../fish/guestfish.pod:1007
21034 #, no-wrap
21035 msgid ""
21036 " # ...\n"
21037 "\n"
21038 msgstr ""
21039
21040 #. type: =head2
21041 #: ../fish/guestfish.pod:1009
21042 msgid "REMOTE CONTROL RUN COMMAND HANGING"
21043 msgstr ""
21044
21045 #. type: textblock
21046 #: ../fish/guestfish.pod:1011
21047 msgid ""
21048 "Using the C<run> (or C<launch>) command remotely in a command substitution "
21049 "context hangs, ie. don't do (note the backquotes):"
21050 msgstr ""
21051
21052 #. type: verbatim
21053 #: ../fish/guestfish.pod:1014
21054 #, no-wrap
21055 msgid ""
21056 " a=`guestfish --remote run`\n"
21057 "\n"
21058 msgstr ""
21059
21060 #. type: textblock
21061 #: ../fish/guestfish.pod:1016
21062 msgid ""
21063 "Since the C<run> command produces no output on stdout, this is not useful "
21064 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
21065 "cgi?id=592910>."
21066 msgstr ""
21067
21068 #. type: =head1
21069 #: ../fish/guestfish.pod:1020
21070 msgid "PREPARED DISK IMAGES"
21071 msgstr ""
21072
21073 #. type: textblock
21074 #: ../fish/guestfish.pod:1022
21075 msgid ""
21076 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21077 "preformatted disk images that guestfish can make for you to save typing.  "
21078 "This is particularly useful for testing purposes.  This option is used "
21079 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21080 "can be mixed with I<-a>)."
21081 msgstr ""
21082
21083 #. type: textblock
21084 #: ../fish/guestfish.pod:1028
21085 msgid ""
21086 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21087 "the second and so on.  Existing files in the current directory are "
21088 "I<overwritten>."
21089 msgstr ""
21090
21091 #. type: textblock
21092 #: ../fish/guestfish.pod:1032
21093 msgid ""
21094 "The type briefly describes how the disk should be sized, partitioned, how "
21095 "filesystem(s) should be created, and how content should be added.  "
21096 "Optionally the type can be followed by extra parameters, separated by C<:> "
21097 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21098 "allocated disk, containing a single partition, with the partition formatted "
21099 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21100 "disk instead."
21101 msgstr ""
21102
21103 #. type: textblock
21104 #: ../fish/guestfish.pod:1040
21105 msgid "To list the available types and any extra parameters they take, run:"
21106 msgstr ""
21107
21108 #. type: textblock
21109 #: ../fish/guestfish.pod:1044
21110 msgid ""
21111 "Note that the prepared filesystem is not mounted.  You would usually have to "
21112 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21113 msgstr ""
21114
21115 #. type: textblock
21116 #: ../fish/guestfish.pod:1048
21117 msgid ""
21118 "If any I<-N> or I<--new> options are given, the guest is automatically "
21119 "launched."
21120 msgstr ""
21121
21122 #. type: textblock
21123 #: ../fish/guestfish.pod:1053
21124 msgid "Create a 100MB disk with an ext4-formatted partition:"
21125 msgstr ""
21126
21127 #. type: verbatim
21128 #: ../fish/guestfish.pod:1055
21129 #, no-wrap
21130 msgid ""
21131 " guestfish -N fs:ext4\n"
21132 "\n"
21133 msgstr ""
21134
21135 #. type: textblock
21136 #: ../fish/guestfish.pod:1057
21137 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21138 msgstr ""
21139
21140 #. type: verbatim
21141 #: ../fish/guestfish.pod:1059
21142 #, no-wrap
21143 msgid ""
21144 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21145 "\n"
21146 msgstr ""
21147
21148 #. type: textblock
21149 #: ../fish/guestfish.pod:1061
21150 msgid "Create a blank 200MB disk:"
21151 msgstr ""
21152
21153 #. type: verbatim
21154 #: ../fish/guestfish.pod:1063
21155 #, no-wrap
21156 msgid ""
21157 " guestfish -N disk:200M\n"
21158 "\n"
21159 msgstr ""
21160
21161 #. type: =head1
21162 #: ../fish/guestfish.pod:1065
21163 msgid "PROGRESS BARS"
21164 msgstr ""
21165
21166 #. type: textblock
21167 #: ../fish/guestfish.pod:1067
21168 msgid ""
21169 "Some (not all) long-running commands send progress notification messages as "
21170 "they are running.  Guestfish turns these messages into progress bars."
21171 msgstr ""
21172
21173 #. type: textblock
21174 #: ../fish/guestfish.pod:1071
21175 msgid ""
21176 "When a command that supports progress bars takes longer than two seconds to "
21177 "run, and if progress bars are enabled, then you will see one appearing below "
21178 "the command:"
21179 msgstr ""
21180
21181 #. type: verbatim
21182 #: ../fish/guestfish.pod:1075
21183 #, no-wrap
21184 msgid ""
21185 " ><fs> copy-size /large-file /another-file 2048M\n"
21186 " / 10% [#####-----------------------------------------] 00:30\n"
21187 "\n"
21188 msgstr ""
21189
21190 #. type: textblock
21191 #: ../fish/guestfish.pod:1078
21192 msgid ""
21193 "The spinner on the left hand side moves round once for every progress "
21194 "notification received from the backend.  This is a (reasonably) golden "
21195 "assurance that the command is \"doing something\" even if the progress bar "
21196 "is not moving, because the command is able to send the progress "
21197 "notifications.  When the bar reaches 100% and the command finishes, the "
21198 "spinner disappears."
21199 msgstr ""
21200
21201 #. type: textblock
21202 #: ../fish/guestfish.pod:1085
21203 msgid ""
21204 "Progress bars are enabled by default when guestfish is used interactively.  "
21205 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21206 "and you can disable them completely using I<--no-progress-bars>."
21207 msgstr ""
21208
21209 #. type: =head1
21210 #: ../fish/guestfish.pod:1090
21211 msgid "GUESTFISH COMMANDS"
21212 msgstr ""
21213
21214 #. type: textblock
21215 #: ../fish/guestfish.pod:1092
21216 msgid ""
21217 "The commands in this section are guestfish convenience commands, in other "
21218 "words, they are not part of the L<guestfs(3)> API."
21219 msgstr ""
21220
21221 #. type: =head2
21222 #: ../fish/guestfish.pod:1095
21223 msgid "help"
21224 msgstr ""
21225
21226 #. type: verbatim
21227 #: ../fish/guestfish.pod:1097
21228 #, no-wrap
21229 msgid ""
21230 " help\n"
21231 " help cmd\n"
21232 "\n"
21233 msgstr ""
21234
21235 #. type: textblock
21236 #: ../fish/guestfish.pod:1100
21237 msgid "Without any parameter, this provides general help."
21238 msgstr ""
21239
21240 #. type: textblock
21241 #: ../fish/guestfish.pod:1102
21242 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21243 msgstr ""
21244
21245 #. type: =head2
21246 #: ../fish/guestfish.pod:1104
21247 msgid "quit | exit"
21248 msgstr ""
21249
21250 #. type: textblock
21251 #: ../fish/guestfish.pod:1106
21252 msgid "This exits guestfish.  You can also use C<^D> key."
21253 msgstr ""
21254
21255 #. type: textblock
21256 #: ../fish/guestfish.pod:1108
21257 msgid "@FISH_COMMANDS@"
21258 msgstr ""
21259
21260 #. type: =head1
21261 #: ../fish/guestfish.pod:1110
21262 msgid "COMMANDS"
21263 msgstr ""
21264
21265 #. type: textblock
21266 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21267 msgid "@ACTIONS@"
21268 msgstr ""
21269
21270 #. type: textblock
21271 #: ../fish/guestfish.pod:1116
21272 msgid ""
21273 "guestfish returns 0 if the commands completed without error, or 1 if there "
21274 "was an error."
21275 msgstr ""
21276
21277 #. type: =item
21278 #: ../fish/guestfish.pod:1123
21279 msgid "EDITOR"
21280 msgstr ""
21281
21282 #. type: textblock
21283 #: ../fish/guestfish.pod:1125
21284 msgid ""
21285 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21286 "C<vi>."
21287 msgstr ""
21288
21289 #. type: =item
21290 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
21291 msgid "FEBOOTSTRAP_KERNEL"
21292 msgstr ""
21293
21294 #. type: =item
21295 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
21296 msgid "FEBOOTSTRAP_MODULES"
21297 msgstr ""
21298
21299 #. type: textblock
21300 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
21301 msgid ""
21302 "These two environment variables allow the kernel that libguestfs uses in the "
21303 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21304 "most recent host kernel is chosen.  For more information about kernel "
21305 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21306 "available in febootstrap E<ge> 3.8."
21307 msgstr ""
21308
21309 #. type: =item
21310 #: ../fish/guestfish.pod:1138
21311 msgid "GUESTFISH_DISPLAY_IMAGE"
21312 msgstr ""
21313
21314 #. type: textblock
21315 #: ../fish/guestfish.pod:1140
21316 msgid ""
21317 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21318 "If not set, it uses L<display(1)>."
21319 msgstr ""
21320
21321 #. type: =item
21322 #: ../fish/guestfish.pod:1143
21323 msgid "GUESTFISH_PID"
21324 msgstr ""
21325
21326 #. type: textblock
21327 #: ../fish/guestfish.pod:1145
21328 msgid ""
21329 "Used with the I<--remote> option to specify the remote guestfish process to "
21330 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21331 msgstr ""
21332
21333 #. type: =item
21334 #: ../fish/guestfish.pod:1149
21335 msgid "HEXEDITOR"
21336 msgstr ""
21337
21338 #. type: textblock
21339 #: ../fish/guestfish.pod:1151
21340 msgid ""
21341 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21342 "not specified, the external L<hexedit(1)> program is used."
21343 msgstr ""
21344
21345 #. type: =item
21346 #: ../fish/guestfish.pod:1155
21347 msgid "HOME"
21348 msgstr ""
21349
21350 #. type: textblock
21351 #: ../fish/guestfish.pod:1157
21352 msgid ""
21353 "If compiled with GNU readline support, various files in the home directory "
21354 "can be used.  See L</FILES>."
21355 msgstr ""
21356
21357 #. type: =item
21358 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
21359 msgid "LIBGUESTFS_APPEND"
21360 msgstr ""
21361
21362 #. type: textblock
21363 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
21364 msgid "Pass additional options to the guest kernel."
21365 msgstr ""
21366
21367 #. type: =item
21368 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
21369 msgid "LIBGUESTFS_DEBUG"
21370 msgstr ""
21371
21372 #. type: textblock
21373 #: ../fish/guestfish.pod:1166
21374 msgid ""
21375 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21376 "effect as using the B<-v> option."
21377 msgstr ""
21378
21379 #. type: =item
21380 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
21381 msgid "LIBGUESTFS_MEMSIZE"
21382 msgstr ""
21383
21384 #. type: textblock
21385 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
21386 msgid ""
21387 "Set the memory allocated to the qemu process, in megabytes.  For example:"
21388 msgstr ""
21389
21390 #. type: verbatim
21391 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
21392 #, no-wrap
21393 msgid ""
21394 " LIBGUESTFS_MEMSIZE=700\n"
21395 "\n"
21396 msgstr ""
21397
21398 #. type: =item
21399 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
21400 msgid "LIBGUESTFS_PATH"
21401 msgstr ""
21402
21403 #. type: textblock
21404 #: ../fish/guestfish.pod:1178
21405 msgid ""
21406 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21407 "the discussion of paths in L<guestfs(3)>."
21408 msgstr ""
21409
21410 #. type: =item
21411 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
21412 msgid "LIBGUESTFS_QEMU"
21413 msgstr ""
21414
21415 #. type: textblock
21416 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
21417 msgid ""
21418 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21419 "which was found at compile time by the configure script is used."
21420 msgstr ""
21421
21422 #. type: =item
21423 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
21424 msgid "LIBGUESTFS_TRACE"
21425 msgstr ""
21426
21427 #. type: textblock
21428 #: ../fish/guestfish.pod:1189
21429 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21430 msgstr ""
21431
21432 #. type: =item
21433 #: ../fish/guestfish.pod:1191
21434 msgid "PAGER"
21435 msgstr ""
21436
21437 #. type: textblock
21438 #: ../fish/guestfish.pod:1193
21439 msgid ""
21440 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21441 "C<more>."
21442 msgstr ""
21443
21444 #. type: =item
21445 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:241
21446 #: ../src/guestfs.pod:3262
21447 msgid "TMPDIR"
21448 msgstr ""
21449
21450 #. type: textblock
21451 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
21452 msgid ""
21453 "Location of temporary directory, defaults to C</tmp> except for the cached "
21454 "supermin appliance which defaults to C</var/tmp>."
21455 msgstr ""
21456
21457 #. type: textblock
21458 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
21459 msgid ""
21460 "If libguestfs was compiled to use the supermin appliance then the real "
21461 "appliance is cached in this directory, shared between all handles belonging "
21462 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21463 "use in case C</var/tmp> is not large enough."
21464 msgstr ""
21465
21466 #. type: =head1
21467 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21468 #: ../rescue/virt-rescue.pod:273
21469 msgid "FILES"
21470 msgstr ""
21471
21472 #. type: =item
21473 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21474 #: ../rescue/virt-rescue.pod:277
21475 msgid "$HOME/.libguestfs-tools.rc"
21476 msgstr ""
21477
21478 #. type: =item
21479 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21480 #: ../rescue/virt-rescue.pod:279
21481 msgid "/etc/libguestfs-tools.conf"
21482 msgstr ""
21483
21484 #. type: textblock
21485 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21486 #: ../rescue/virt-rescue.pod:281
21487 msgid ""
21488 "This configuration file controls the default read-only or read-write mode "
21489 "(I<--ro> or I<--rw>)."
21490 msgstr ""
21491
21492 #. type: textblock
21493 #: ../fish/guestfish.pod:1220
21494 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21495 msgstr ""
21496
21497 #. type: =item
21498 #: ../fish/guestfish.pod:1222
21499 msgid "$HOME/.guestfish"
21500 msgstr ""
21501
21502 #. type: textblock
21503 #: ../fish/guestfish.pod:1224
21504 msgid ""
21505 "If compiled with GNU readline support, then the command history is saved in "
21506 "this file."
21507 msgstr ""
21508
21509 #. type: =item
21510 #: ../fish/guestfish.pod:1227
21511 msgid "$HOME/.inputrc"
21512 msgstr ""
21513
21514 #. type: =item
21515 #: ../fish/guestfish.pod:1229
21516 msgid "/etc/inputrc"
21517 msgstr ""
21518
21519 #. type: textblock
21520 #: ../fish/guestfish.pod:1231
21521 msgid ""
21522 "If compiled with GNU readline support, then these files can be used to "
21523 "configure readline.  For further information, please see L<readline(3)/"
21524 "INITIALIZATION FILE>."
21525 msgstr ""
21526
21527 #. type: textblock
21528 #: ../fish/guestfish.pod:1235
21529 msgid "To write rules which only apply to guestfish, use:"
21530 msgstr ""
21531
21532 #. type: verbatim
21533 #: ../fish/guestfish.pod:1237
21534 #, no-wrap
21535 msgid ""
21536 " $if guestfish\n"
21537 " ...\n"
21538 " $endif\n"
21539 "\n"
21540 msgstr ""
21541
21542 #. type: textblock
21543 #: ../fish/guestfish.pod:1241
21544 msgid ""
21545 "Variables that you can set in inputrc that change the behaviour of guestfish "
21546 "in useful ways include:"
21547 msgstr ""
21548
21549 #. type: =item
21550 #: ../fish/guestfish.pod:1246
21551 msgid "completion-ignore-case (default: on)"
21552 msgstr ""
21553
21554 #. type: textblock
21555 #: ../fish/guestfish.pod:1248
21556 msgid ""
21557 "By default, guestfish will ignore case when tab-completing paths on the "
21558 "disk.  Use:"
21559 msgstr ""
21560
21561 #. type: verbatim
21562 #: ../fish/guestfish.pod:1251
21563 #, no-wrap
21564 msgid ""
21565 " set completion-ignore-case off\n"
21566 "\n"
21567 msgstr ""
21568
21569 #. type: textblock
21570 #: ../fish/guestfish.pod:1253
21571 msgid "to make guestfish case sensitive."
21572 msgstr ""
21573
21574 #. type: =item
21575 #: ../fish/guestfish.pod:1257
21576 msgid "test1.img"
21577 msgstr ""
21578
21579 #. type: =item
21580 #: ../fish/guestfish.pod:1259
21581 msgid "test2.img (etc)"
21582 msgstr ""
21583
21584 #. type: textblock
21585 #: ../fish/guestfish.pod:1261
21586 msgid ""
21587 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21588 "will be created in the file C<test1.img> in the current directory.  The "
21589 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21590 "the same name will be overwritten."
21591 msgstr ""
21592
21593 #. type: textblock
21594 #: ../fish/guestfish.pod:1270
21595 msgid ""
21596 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21597 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21598 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21599 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21600 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21601 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21602 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21603 msgstr ""
21604
21605 #. type: textblock
21606 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360
21607 #: ../test-tool/libguestfs-test-tool.pod:112
21608 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21609 msgstr ""
21610
21611 #. type: textblock
21612 #: ../fish/virt-copy-in.pod:5
21613 msgid ""
21614 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21615 msgstr ""
21616
21617 #. type: verbatim
21618 #: ../fish/virt-copy-in.pod:9
21619 #, no-wrap
21620 msgid ""
21621 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21622 "\n"
21623 msgstr ""
21624
21625 #. type: verbatim
21626 #: ../fish/virt-copy-in.pod:11
21627 #, no-wrap
21628 msgid ""
21629 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21630 "\n"
21631 msgstr ""
21632
21633 #. type: textblock
21634 #: ../fish/virt-copy-in.pod:15
21635 msgid ""
21636 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21637 "causing disk corruption.  The virtual machine must be shut down before you "
21638 "use this command."
21639 msgstr ""
21640
21641 #. type: textblock
21642 #: ../fish/virt-copy-in.pod:21
21643 msgid ""
21644 "C<virt-copy-in> copies files and directories from the local disk into a "
21645 "virtual machine disk image or named libvirt domain."
21646 msgstr ""
21647
21648 #. type: textblock
21649 #: ../fish/virt-copy-in.pod:24
21650 msgid ""
21651 "You can give one of more filenames and directories on the command line.  "
21652 "Directories are copied in recursively.  The final parameter must be the "
21653 "destination directory in the disk image which must be an absolute path "
21654 "starting with a C</> character."
21655 msgstr ""
21656
21657 #. type: verbatim
21658 #: ../fish/virt-copy-in.pod:33
21659 #, no-wrap
21660 msgid ""
21661 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21662 "\n"
21663 msgstr ""
21664
21665 #. type: textblock
21666 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21667 msgid "Upload a home directory to a guest:"
21668 msgstr ""
21669
21670 #. type: verbatim
21671 #: ../fish/virt-copy-in.pod:37
21672 #, no-wrap
21673 msgid ""
21674 " virt-copy-in -d MyGuest skel /home\n"
21675 "\n"
21676 msgstr ""
21677
21678 #. type: =head1
21679 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21680 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21681 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21682 msgstr ""
21683
21684 #. type: textblock
21685 #: ../fish/virt-copy-in.pod:41
21686 msgid ""
21687 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21688 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
21689 "are probably better off using guestfish directly."
21690 msgstr ""
21691
21692 #. type: textblock
21693 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21694 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21695 msgid ""
21696 "Since the shell script just passes options straight to guestfish, read "
21697 "L<guestfish(1)> to see the full list of options."
21698 msgstr ""
21699
21700 #. type: textblock
21701 #: ../fish/virt-copy-in.pod:52
21702 msgid ""
21703 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21704 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21705 msgstr ""
21706
21707 #. type: textblock
21708 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21709 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21710 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21711 msgstr ""
21712
21713 #. type: textblock
21714 #: ../fish/virt-copy-out.pod:5
21715 msgid ""
21716 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21717 "image."
21718 msgstr ""
21719
21720 #. type: verbatim
21721 #: ../fish/virt-copy-out.pod:9
21722 #, no-wrap
21723 msgid ""
21724 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21725 "\n"
21726 msgstr ""
21727
21728 #. type: verbatim
21729 #: ../fish/virt-copy-out.pod:11
21730 #, no-wrap
21731 msgid ""
21732 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21733 "\n"
21734 msgstr ""
21735
21736 #. type: textblock
21737 #: ../fish/virt-copy-out.pod:15
21738 msgid ""
21739 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21740 "image or named libvirt domain."
21741 msgstr ""
21742
21743 #. type: textblock
21744 #: ../fish/virt-copy-out.pod:18
21745 msgid ""
21746 "You can give one of more filenames and directories on the command line.  "
21747 "Directories are copied out recursively."
21748 msgstr ""
21749
21750 #. type: textblock
21751 #: ../fish/virt-copy-out.pod:23
21752 msgid "Download the home directories from a virtual machine:"
21753 msgstr ""
21754
21755 #. type: verbatim
21756 #: ../fish/virt-copy-out.pod:25
21757 #, no-wrap
21758 msgid ""
21759 " mkdir homes\n"
21760 " virt-copy-out -d MyGuest /home homes\n"
21761 "\n"
21762 msgstr ""
21763
21764 #. type: textblock
21765 #: ../fish/virt-copy-out.pod:30
21766 msgid ""
21767 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21768 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
21769 "are probably better off using guestfish directly."
21770 msgstr ""
21771
21772 #. type: textblock
21773 #: ../fish/virt-copy-out.pod:41
21774 msgid ""
21775 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21776 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21777 msgstr ""
21778
21779 #. type: textblock
21780 #: ../fish/virt-tar-in.pod:5
21781 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21782 msgstr ""
21783
21784 #. type: verbatim
21785 #: ../fish/virt-tar-in.pod:9
21786 #, no-wrap
21787 msgid ""
21788 " virt-tar-in -a disk.img data.tar /destination\n"
21789 "\n"
21790 msgstr ""
21791
21792 #. type: verbatim
21793 #: ../fish/virt-tar-in.pod:11
21794 #, no-wrap
21795 msgid ""
21796 " virt-tar-in -d domain data.tar /destination\n"
21797 "\n"
21798 msgstr ""
21799
21800 #. type: verbatim
21801 #: ../fish/virt-tar-in.pod:13
21802 #, no-wrap
21803 msgid ""
21804 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21805 "\n"
21806 msgstr ""
21807
21808 #. type: textblock
21809 #: ../fish/virt-tar-in.pod:17
21810 msgid ""
21811 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21812 "causing disk corruption.  The virtual machine must be shut down before you "
21813 "use this command."
21814 msgstr ""
21815
21816 #. type: textblock
21817 #: ../fish/virt-tar-in.pod:23
21818 msgid ""
21819 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21820 "image or named libvirt domain."
21821 msgstr ""
21822
21823 #. type: textblock
21824 #: ../fish/virt-tar-in.pod:26
21825 msgid ""
21826 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21827 "standard input.  The second parameter is the absolute target directory to "
21828 "unpack into."
21829 msgstr ""
21830
21831 #. type: verbatim
21832 #: ../fish/virt-tar-in.pod:34
21833 #, no-wrap
21834 msgid ""
21835 " virt-tar-in -d MyGuest homes.tar /home\n"
21836 "\n"
21837 msgstr ""
21838
21839 #. type: textblock
21840 #: ../fish/virt-tar-in.pod:38
21841 msgid ""
21842 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21843 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
21844 "probably better off using guestfish directly."
21845 msgstr ""
21846
21847 #. type: textblock
21848 #: ../fish/virt-tar-in.pod:49
21849 msgid ""
21850 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21851 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21852 "org/>."
21853 msgstr ""
21854
21855 #. type: textblock
21856 #: ../fish/virt-tar-out.pod:5
21857 msgid ""
21858 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21859 msgstr ""
21860
21861 #. type: verbatim
21862 #: ../fish/virt-tar-out.pod:9
21863 #, no-wrap
21864 msgid ""
21865 " virt-tar-out -a disk.img /dir files.tar\n"
21866 "\n"
21867 msgstr ""
21868
21869 #. type: verbatim
21870 #: ../fish/virt-tar-out.pod:11
21871 #, no-wrap
21872 msgid ""
21873 " virt-tar-out -d domain /dir files.tar\n"
21874 "\n"
21875 msgstr ""
21876
21877 #. type: verbatim
21878 #: ../fish/virt-tar-out.pod:13
21879 #, no-wrap
21880 msgid ""
21881 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21882 "\n"
21883 msgstr ""
21884
21885 #. type: textblock
21886 #: ../fish/virt-tar-out.pod:17
21887 msgid ""
21888 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21889 msgstr ""
21890
21891 #. type: textblock
21892 #: ../fish/virt-tar-out.pod:20
21893 msgid ""
21894 "The first parameter is the absolute path of the virtual machine directory.  "
21895 "The second parameter is the tar file to write.  Use C<-> to write to "
21896 "standard output."
21897 msgstr ""
21898
21899 #. type: textblock
21900 #: ../fish/virt-tar-out.pod:26
21901 msgid "Download the home directories from a guest:"
21902 msgstr ""
21903
21904 #. type: verbatim
21905 #: ../fish/virt-tar-out.pod:28
21906 #, no-wrap
21907 msgid ""
21908 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21909 "\n"
21910 msgstr ""
21911
21912 #. type: textblock
21913 #: ../fish/virt-tar-out.pod:32
21914 msgid ""
21915 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21916 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
21917 "are probably better off using guestfish directly."
21918 msgstr ""
21919
21920 #. type: textblock
21921 #: ../fish/virt-tar-out.pod:43
21922 msgid ""
21923 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21924 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21925 msgstr ""
21926
21927 #. type: textblock
21928 #: ../fuse/guestmount.pod:5
21929 msgid ""
21930 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21931 msgstr ""
21932
21933 #. type: verbatim
21934 #: ../fuse/guestmount.pod:9
21935 #, no-wrap
21936 msgid ""
21937 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21938 "\n"
21939 msgstr ""
21940
21941 #. type: verbatim
21942 #: ../fuse/guestmount.pod:11
21943 #, no-wrap
21944 msgid ""
21945 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21946 "\n"
21947 msgstr ""
21948
21949 #. type: verbatim
21950 #: ../fuse/guestmount.pod:13
21951 #, no-wrap
21952 msgid ""
21953 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21954 "\n"
21955 msgstr ""
21956
21957 #. type: textblock
21958 #: ../fuse/guestmount.pod:17
21959 msgid ""
21960 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21961 "machines.  If you do this, you risk disk corruption in the VM."
21962 msgstr ""
21963
21964 #. type: textblock
21965 #: ../fuse/guestmount.pod:22
21966 msgid ""
21967 "The guestmount program can be used to mount virtual machine filesystems and "
21968 "other disk images on the host.  It uses libguestfs for access to the guest "
21969 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21970 "a mountable device."
21971 msgstr ""
21972
21973 #. type: textblock
21974 #: ../fuse/guestmount.pod:27
21975 msgid ""
21976 "Along with other options, you have to give at least one device (I<-a> "
21977 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21978 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21979 "this works is better explained in the L<guestfish(1)> manual page, or by "
21980 "looking at the examples below."
21981 msgstr ""
21982
21983 #. type: textblock
21984 #: ../fuse/guestmount.pod:33
21985 msgid ""
21986 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21987 "by you, and the filesystem will not be visible to any other users unless you "
21988 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21989 "the filesystem, use the C<fusermount -u> command."
21990 msgstr ""
21991
21992 #. type: textblock
21993 #: ../fuse/guestmount.pod:41
21994 msgid ""
21995 "For a typical Windows guest which has its main filesystem on the first "
21996 "partition:"
21997 msgstr ""
21998
21999 #. type: verbatim
22000 #: ../fuse/guestmount.pod:44
22001 #, no-wrap
22002 msgid ""
22003 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22004 "\n"
22005 msgstr ""
22006
22007 #. type: textblock
22008 #: ../fuse/guestmount.pod:46
22009 msgid ""
22010 "For a typical Linux guest which has a /boot filesystem on the first "
22011 "partition, and the root filesystem on a logical volume:"
22012 msgstr ""
22013
22014 #. type: verbatim
22015 #: ../fuse/guestmount.pod:49
22016 #, no-wrap
22017 msgid ""
22018 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22019 "\n"
22020 msgstr ""
22021
22022 #. type: textblock
22023 #: ../fuse/guestmount.pod:51
22024 msgid "To get libguestfs to detect guest mountpoints for you:"
22025 msgstr ""
22026
22027 #. type: verbatim
22028 #: ../fuse/guestmount.pod:53
22029 #, no-wrap
22030 msgid ""
22031 " guestmount -a guest.img -i --ro /mnt\n"
22032 "\n"
22033 msgstr ""
22034
22035 #. type: textblock
22036 #: ../fuse/guestmount.pod:55
22037 msgid "For a libvirt guest called \"Guest\" you could do:"
22038 msgstr ""
22039
22040 #. type: verbatim
22041 #: ../fuse/guestmount.pod:57
22042 #, no-wrap
22043 msgid ""
22044 " guestmount -d Guest -i --ro /mnt\n"
22045 "\n"
22046 msgstr ""
22047
22048 #. type: textblock
22049 #: ../fuse/guestmount.pod:59
22050 msgid ""
22051 "If you don't know what filesystems are contained in a guest or disk image, "
22052 "use L<virt-filesystems(1)> first:"
22053 msgstr ""
22054
22055 #. type: verbatim
22056 #: ../fuse/guestmount.pod:62
22057 #, no-wrap
22058 msgid ""
22059 " virt-filesystems MyGuest\n"
22060 "\n"
22061 msgstr ""
22062
22063 #. type: textblock
22064 #: ../fuse/guestmount.pod:64
22065 msgid ""
22066 "If you want to trace the libguestfs calls but without excessive debugging "
22067 "information, we recommend:"
22068 msgstr ""
22069
22070 #. type: verbatim
22071 #: ../fuse/guestmount.pod:67
22072 #, no-wrap
22073 msgid ""
22074 " guestmount [...] --trace /mnt\n"
22075 "\n"
22076 msgstr ""
22077
22078 #. type: textblock
22079 #: ../fuse/guestmount.pod:69
22080 msgid "If you want to debug the program, we recommend:"
22081 msgstr ""
22082
22083 #. type: verbatim
22084 #: ../fuse/guestmount.pod:71
22085 #, no-wrap
22086 msgid ""
22087 " guestmount [...] --trace --verbose /mnt\n"
22088 "\n"
22089 msgstr ""
22090
22091 #. type: =head1
22092 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
22093 #: ../resize/virt-resize.pod:627
22094 msgid "NOTES"
22095 msgstr ""
22096
22097 #. type: =head2
22098 #: ../fuse/guestmount.pod:75
22099 msgid "Other users cannot see the filesystem by default"
22100 msgstr ""
22101
22102 #. type: textblock
22103 #: ../fuse/guestmount.pod:77
22104 msgid ""
22105 "If you mount a filesystem as one user (eg. root), then other users will not "
22106 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
22107 "option when mounting:"
22108 msgstr ""
22109
22110 #. type: verbatim
22111 #: ../fuse/guestmount.pod:81
22112 #, no-wrap
22113 msgid ""
22114 " sudo guestmount [...] -o allow_other /mnt\n"
22115 "\n"
22116 msgstr ""
22117
22118 #. type: =head2
22119 #: ../fuse/guestmount.pod:83
22120 msgid "Enabling FUSE"
22121 msgstr ""
22122
22123 #. type: textblock
22124 #: ../fuse/guestmount.pod:85
22125 msgid ""
22126 "On some distros, you may need to add yourself to a special group (eg. "
22127 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
22128 "Debian and derivatives."
22129 msgstr ""
22130
22131 #. type: textblock
22132 #: ../fuse/guestmount.pod:89
22133 msgid ""
22134 "On other distros, no special group is required.  It is not necessary on "
22135 "Fedora or Red Hat Enterprise Linux."
22136 msgstr ""
22137
22138 #. type: textblock
22139 #: ../fuse/guestmount.pod:100
22140 msgid "Add a block device or virtual machine image."
22141 msgstr ""
22142
22143 #. type: =item
22144 #: ../fuse/guestmount.pod:123
22145 msgid "B<--dir-cache-timeout N>"
22146 msgstr ""
22147
22148 #. type: textblock
22149 #: ../fuse/guestmount.pod:125
22150 msgid ""
22151 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22152 "seconds.  The readdir cache [actually, there are several semi-independent "
22153 "caches] is populated after a readdir(2) call with the stat and extended "
22154 "attributes of the files in the directory, in anticipation that they will be "
22155 "requested soon after."
22156 msgstr ""
22157
22158 #. type: textblock
22159 #: ../fuse/guestmount.pod:131
22160 msgid ""
22161 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22162 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22163 "requests, only cache existing ones."
22164 msgstr ""
22165
22166 #. type: textblock
22167 #: ../fuse/guestmount.pod:151
22168 msgid ""
22169 "If you have untrusted raw-format guest disk images, you should use this "
22170 "option to specify the disk format.  This avoids a possible security problem "
22171 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
22172 "guestfs_add_drive_opts>."
22173 msgstr ""
22174
22175 #. type: =item
22176 #: ../fuse/guestmount.pod:156
22177 msgid "B<--fuse-help>"
22178 msgstr ""
22179
22180 #. type: textblock
22181 #: ../fuse/guestmount.pod:158
22182 msgid "Display help on special FUSE options (see I<-o> below)."
22183 msgstr ""
22184
22185 #. type: textblock
22186 #: ../fuse/guestmount.pod:162
22187 msgid "Display brief help and exit."
22188 msgstr ""
22189
22190 #. type: textblock
22191 #: ../fuse/guestmount.pod:186
22192 msgid ""
22193 "Mount the named partition or logical volume on the given mountpoint B<in the "
22194 "guest> (this has nothing to do with mountpoints in the host)."
22195 msgstr ""
22196
22197 #. type: textblock
22198 #: ../fuse/guestmount.pod:189
22199 msgid ""
22200 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22201 "something on C</>."
22202 msgstr ""
22203
22204 #. type: textblock
22205 #: ../fuse/guestmount.pod:206
22206 msgid ""
22207 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22208 "unmounted.  If you specify this option, then we don't attempt to sync the "
22209 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22210 msgstr ""
22211
22212 #. type: =item
22213 #: ../fuse/guestmount.pod:211
22214 msgid "B<-o option>"
22215 msgstr ""
22216
22217 #. type: =item
22218 #: ../fuse/guestmount.pod:213
22219 msgid "B<--option option>"
22220 msgstr ""
22221
22222 #. type: textblock
22223 #: ../fuse/guestmount.pod:215
22224 msgid "Pass extra options to FUSE."
22225 msgstr ""
22226
22227 #. type: textblock
22228 #: ../fuse/guestmount.pod:217
22229 msgid ""
22230 "To get a list of all the extra options supported by FUSE, use the command "
22231 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22232 "of them are a good idea."
22233 msgstr ""
22234
22235 #. type: verbatim
22236 #: ../fuse/guestmount.pod:221
22237 #, no-wrap
22238 msgid ""
22239 " guestmount --fuse-help\n"
22240 "\n"
22241 msgstr ""
22242
22243 #. type: textblock
22244 #: ../fuse/guestmount.pod:223
22245 msgid "Some potentially useful FUSE options:"
22246 msgstr ""
22247
22248 #. type: =item
22249 #: ../fuse/guestmount.pod:227
22250 msgid "B<-o allow_other>"
22251 msgstr ""
22252
22253 #. type: textblock
22254 #: ../fuse/guestmount.pod:229
22255 msgid "Allow other users to see the filesystem."
22256 msgstr ""
22257
22258 #. type: =item
22259 #: ../fuse/guestmount.pod:231
22260 msgid "B<-o attr_timeout=N>"
22261 msgstr ""
22262
22263 #. type: textblock
22264 #: ../fuse/guestmount.pod:233
22265 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22266 msgstr ""
22267
22268 #. type: =item
22269 #: ../fuse/guestmount.pod:235
22270 msgid "B<-o kernel_cache>"
22271 msgstr ""
22272
22273 #. type: textblock
22274 #: ../fuse/guestmount.pod:237
22275 msgid ""
22276 "Allow the kernel to cache files (reduces the number of reads that have to go "
22277 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22278 "afford the extra memory usage."
22279 msgstr ""
22280
22281 #. type: =item
22282 #: ../fuse/guestmount.pod:241
22283 msgid "B<-o uid=N> B<-o gid=N>"
22284 msgstr ""
22285
22286 #. type: textblock
22287 #: ../fuse/guestmount.pod:243
22288 msgid ""
22289 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22290 "the chosen values."
22291 msgstr ""
22292
22293 #. type: textblock
22294 #: ../fuse/guestmount.pod:252
22295 msgid ""
22296 "Add devices and mount everything read-only.  Also disallow writes and make "
22297 "the disk appear read-only to FUSE."
22298 msgstr ""
22299
22300 #. type: textblock
22301 #: ../fuse/guestmount.pod:255
22302 msgid ""
22303 "This is highly recommended if you are not going to edit the guest disk.  If "
22304 "the guest is running and this option is I<not> supplied, then there is a "
22305 "strong risk of disk corruption in the guest.  We try to prevent this from "
22306 "happening, but it is not always possible."
22307 msgstr ""
22308
22309 #. type: textblock
22310 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
22311 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22312 msgstr ""
22313
22314 #. type: textblock
22315 #: ../fuse/guestmount.pod:264
22316 msgid "Enable SELinux support for the guest."
22317 msgstr ""
22318
22319 #. type: textblock
22320 #: ../fuse/guestmount.pod:270
22321 msgid "Enable verbose messages from underlying libguestfs."
22322 msgstr ""
22323
22324 #. type: textblock
22325 #: ../fuse/guestmount.pod:276
22326 msgid "Display the program version and exit."
22327 msgstr ""
22328
22329 #. type: textblock
22330 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22331 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
22332 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22333 msgstr ""
22334
22335 #. type: =item
22336 #: ../fuse/guestmount.pod:289
22337 msgid "B<--trace>"
22338 msgstr ""
22339
22340 #. type: textblock
22341 #: ../fuse/guestmount.pod:291
22342 msgid "Trace libguestfs calls and entry into each FUSE function."
22343 msgstr ""
22344
22345 #. type: textblock
22346 #: ../fuse/guestmount.pod:293
22347 msgid "This also stops the daemon from forking into the background."
22348 msgstr ""
22349
22350 #. type: textblock
22351 #: ../fuse/guestmount.pod:319
22352 msgid ""
22353 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22354 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22355 "net/>."
22356 msgstr ""
22357
22358 #. type: textblock
22359 #: ../fuse/guestmount.pod:334
22360 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22361 msgstr ""
22362
22363 #. type: textblock
22364 #: ../inspector/virt-inspector.pod:5
22365 msgid ""
22366 "virt-inspector - Display operating system version and other information "
22367 "about a virtual machine"
22368 msgstr ""
22369
22370 #. type: verbatim
22371 #: ../inspector/virt-inspector.pod:9
22372 #, no-wrap
22373 msgid ""
22374 " virt-inspector [--options] -d domname\n"
22375 "\n"
22376 msgstr ""
22377
22378 #. type: verbatim
22379 #: ../inspector/virt-inspector.pod:11
22380 #, no-wrap
22381 msgid ""
22382 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22383 "\n"
22384 msgstr ""
22385
22386 #. type: verbatim
22387 #: ../inspector/virt-inspector.pod:15
22388 #, no-wrap
22389 msgid ""
22390 " virt-inspector domname\n"
22391 "\n"
22392 msgstr ""
22393
22394 #. type: verbatim
22395 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22396 #, no-wrap
22397 msgid ""
22398 " virt-inspector disk.img [disk.img ...]\n"
22399 "\n"
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../inspector/virt-inspector.pod:21
22404 msgid ""
22405 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22406 "determine the version of the operating system and other information about "
22407 "the virtual machine."
22408 msgstr ""
22409
22410 #. type: textblock
22411 #: ../inspector/virt-inspector.pod:25
22412 msgid "Virt-inspector produces XML output for feeding into other programs."
22413 msgstr ""
22414
22415 #. type: textblock
22416 #: ../inspector/virt-inspector.pod:27
22417 msgid ""
22418 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22419 "the libvirt domain (see: C<virsh list --all>)."
22420 msgstr ""
22421
22422 #. type: textblock
22423 #: ../inspector/virt-inspector.pod:30
22424 msgid ""
22425 "You can also run virt-inspector directly on disk images from a single "
22426 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22427 "has several block devices, in which case you should list several I<-a> "
22428 "options one after another, with the first corresponding to the guest's C</"
22429 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22430 msgstr ""
22431
22432 #. type: textblock
22433 #: ../inspector/virt-inspector.pod:37
22434 msgid ""
22435 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22436 "keys and similar."
22437 msgstr ""
22438
22439 #. type: textblock
22440 #: ../inspector/virt-inspector.pod:40
22441 msgid ""
22442 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22443 "inspect several virtual machines, you have to run virt-inspector several "
22444 "times (for example, from a shell script for-loop)."
22445 msgstr ""
22446
22447 #. type: textblock
22448 #: ../inspector/virt-inspector.pod:45
22449 msgid ""
22450 "Because virt-inspector needs direct access to guest images, it won't "
22451 "normally work over remote libvirt connections."
22452 msgstr ""
22453
22454 #. type: textblock
22455 #: ../inspector/virt-inspector.pod:48
22456 msgid ""
22457 "All of the information available from virt-inspector is also available "
22458 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22459 "The same information can also be fetched using guestfish or via libguestfs "
22460 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22461 "WITH OTHER PROGRAMMING LANGUAGES>)."
22462 msgstr ""
22463
22464 #. type: textblock
22465 #: ../inspector/virt-inspector.pod:81
22466 msgid ""
22467 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22468 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22469 "at all."
22470 msgstr ""
22471
22472 #. type: textblock
22473 #: ../inspector/virt-inspector.pod:94
22474 msgid ""
22475 "When prompting for keys and passphrases, virt-inspector normally turns "
22476 "echoing off so you cannot see what you are typing.  If you are not worried "
22477 "about Tempest attacks and there is no one else in the room you can specify "
22478 "this flag to see what you are typing."
22479 msgstr ""
22480
22481 #. type: textblock
22482 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22483 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22484 #: ../tools/virt-win-reg.pl:144
22485 msgid ""
22486 "Specify the format of disk images given on the command line.  If this is "
22487 "omitted then the format is autodetected from the content of the disk image."
22488 msgstr ""
22489
22490 #. type: textblock
22491 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22492 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22493 #: ../tools/virt-win-reg.pl:148
22494 msgid ""
22495 "If disk images are requested from libvirt, then this program asks libvirt "
22496 "for this information.  In this case, the value of the format parameter is "
22497 "ignored."
22498 msgstr ""
22499
22500 #. type: textblock
22501 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:397
22502 #: ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:137
22503 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22504 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22505 msgid ""
22506 "If working with untrusted raw-format guest disk images, you should ensure "
22507 "the format is always specified."
22508 msgstr ""
22509
22510 #. type: =item
22511 #: ../inspector/virt-inspector.pod:135
22512 msgid "B<--xpath> query"
22513 msgstr ""
22514
22515 #. type: textblock
22516 #: ../inspector/virt-inspector.pod:137
22517 msgid ""
22518 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22519 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22520 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22521 msgstr ""
22522
22523 #. type: textblock
22524 #: ../inspector/virt-inspector.pod:146
22525 msgid "Previous versions of virt-inspector allowed you to write either:"
22526 msgstr ""
22527
22528 #. type: verbatim
22529 #: ../inspector/virt-inspector.pod:152
22530 #, no-wrap
22531 msgid ""
22532 " virt-inspector guestname\n"
22533 "\n"
22534 msgstr ""
22535
22536 #. type: =head1
22537 #: ../inspector/virt-inspector.pod:160
22538 msgid "XML FORMAT"
22539 msgstr ""
22540
22541 #. type: textblock
22542 #: ../inspector/virt-inspector.pod:162
22543 msgid ""
22544 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22545 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22546 "just an overview."
22547 msgstr ""
22548
22549 #. type: textblock
22550 #: ../inspector/virt-inspector.pod:166
22551 msgid ""
22552 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22553 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22554 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22555 "which is vanishingly rare in real world VMs."
22556 msgstr ""
22557
22558 #. type: =head2
22559 #: ../inspector/virt-inspector.pod:171
22560 msgid "E<lt>operatingsystemE<gt>"
22561 msgstr ""
22562
22563 #. type: textblock
22564 #: ../inspector/virt-inspector.pod:173
22565 msgid ""
22566 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22567 "describe the operating system, its architecture, the descriptive \"product "
22568 "name\" string, the type of OS and so on, as in this example:"
22569 msgstr ""
22570
22571 #. type: verbatim
22572 #: ../inspector/virt-inspector.pod:177
22573 #, no-wrap
22574 msgid ""
22575 " <operatingsystems>\n"
22576 "   <operatingsystem>\n"
22577 "     <root>/dev/sda2</root>\n"
22578 "     <name>windows</name>\n"
22579 "     <arch>i386</arch>\n"
22580 "     <distro>windows</distro>\n"
22581 "     <product_name>Windows 7 Enterprise</product_name>\n"
22582 "     <product_variant>Client</product_variant>\n"
22583 "     <major_version>6</major_version>\n"
22584 "     <minor_version>1</minor_version>\n"
22585 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22586 "     <format>installed</format>\n"
22587 "\n"
22588 msgstr ""
22589
22590 #. type: textblock
22591 #: ../inspector/virt-inspector.pod:190
22592 msgid ""
22593 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22594 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22595 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22596 "architecture.  The other fields are fairly self-explanatory, but because "
22597 "these fields are taken directly from the libguestfs inspection API you can "
22598 "find precise information from L<guestfs(3)/INSPECTION>."
22599 msgstr ""
22600
22601 #. type: textblock
22602 #: ../inspector/virt-inspector.pod:198
22603 msgid ""
22604 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22605 "of view of libguestfs (block devices may have completely different names "
22606 "inside the VM itself)."
22607 msgstr ""
22608
22609 #. type: =head2
22610 #: ../inspector/virt-inspector.pod:202
22611 msgid "E<lt>mountpointsE<gt>"
22612 msgstr ""
22613
22614 #. type: textblock
22615 #: ../inspector/virt-inspector.pod:204
22616 msgid ""
22617 "Un*x-like guests typically have multiple filesystems which are mounted at "
22618 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22619 "element which looks like this:"
22620 msgstr ""
22621
22622 #. type: verbatim
22623 #: ../inspector/virt-inspector.pod:208
22624 #, no-wrap
22625 msgid ""
22626 " <operatingsystems>\n"
22627 "   <operatingsystem>\n"
22628 "     ...\n"
22629 "     <mountpoints>\n"
22630 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22631 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22632 "     </mountpoints>\n"
22633 "\n"
22634 msgstr ""
22635
22636 #. type: textblock
22637 #: ../inspector/virt-inspector.pod:216
22638 msgid ""
22639 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22640 "and may have completely different names inside the guest.  Only mountable "
22641 "filesystems appear in this list, not things like swap devices."
22642 msgstr ""
22643
22644 #. type: =head2
22645 #: ../inspector/virt-inspector.pod:221
22646 msgid "E<lt>filesystemsE<gt>"
22647 msgstr ""
22648
22649 #. type: textblock
22650 #: ../inspector/virt-inspector.pod:223
22651 msgid ""
22652 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22653 "filesystems belonging to the guest, including swap and empty partitions.  "
22654 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22655 "this OS or shared with this OS and other OSes)."
22656 msgstr ""
22657
22658 #. type: textblock
22659 #: ../inspector/virt-inspector.pod:229
22660 msgid "You might see something like this:"
22661 msgstr ""
22662
22663 #. type: verbatim
22664 #: ../inspector/virt-inspector.pod:231
22665 #, no-wrap
22666 msgid ""
22667 " <operatingsystems>\n"
22668 "   <operatingsystem>\n"
22669 "     ...\n"
22670 "     <filesystems>\n"
22671 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22672 "         <type>ext4</type>\n"
22673 "         <label>Fedora-13-x86_64</label>\n"
22674 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22675 "       </filesystem>\n"
22676 "\n"
22677 msgstr ""
22678
22679 #. type: textblock
22680 #: ../inspector/virt-inspector.pod:241
22681 msgid ""
22682 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22683 "the label, and the UUID."
22684 msgstr ""
22685
22686 #. type: =head2
22687 #: ../inspector/virt-inspector.pod:244
22688 msgid "E<lt>applicationsE<gt>"
22689 msgstr ""
22690
22691 #. type: textblock
22692 #: ../inspector/virt-inspector.pod:246
22693 msgid ""
22694 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22695 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22696 "machine."
22697 msgstr ""
22698
22699 #. type: textblock
22700 #: ../inspector/virt-inspector.pod:250
22701 msgid ""
22702 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22703 "Typical values would be C<rpm> and C<deb>."
22704 msgstr ""
22705
22706 #. type: textblock
22707 #: ../inspector/virt-inspector.pod:253
22708 msgid ""
22709 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22710 "Typical values include C<yum>, C<up2date> and C<apt>"
22711 msgstr ""
22712
22713 #. type: textblock
22714 #: ../inspector/virt-inspector.pod:256
22715 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22716 msgstr ""
22717
22718 #. type: verbatim
22719 #: ../inspector/virt-inspector.pod:259
22720 #, no-wrap
22721 msgid ""
22722 " <operatingsystems>\n"
22723 "   <operatingsystem>\n"
22724 "     ...\n"
22725 "     <applications>\n"
22726 "       <application>\n"
22727 "         <name>coreutils</name>\n"
22728 "         <version>8.5</version>\n"
22729 "         <release>1</release>\n"
22730 "       </application>\n"
22731 "\n"
22732 msgstr ""
22733
22734 #. type: textblock
22735 #: ../inspector/virt-inspector.pod:269
22736 msgid ""
22737 "The version and release fields may not be available for some types guests.  "
22738 "Other fields are possible, see L<guestfs(3)/"
22739 "guestfs_inspect_list_applications>."
22740 msgstr ""
22741
22742 #. type: =head2
22743 #: ../inspector/virt-inspector.pod:273
22744 msgid "E<lt>drive_mappingsE<gt>"
22745 msgstr ""
22746
22747 #. type: textblock
22748 #: ../inspector/virt-inspector.pod:275
22749 msgid ""
22750 "For operating systems like Windows which use drive letters, virt-inspector "
22751 "is able to find out how drive letters map to filesystems."
22752 msgstr ""
22753
22754 #. type: verbatim
22755 #: ../inspector/virt-inspector.pod:279
22756 #, no-wrap
22757 msgid ""
22758 " <operatingsystems>\n"
22759 "   <operatingsystem>\n"
22760 "     ...\n"
22761 "     <drive_mappings>\n"
22762 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22763 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22764 "     </drive_mappings>\n"
22765 "\n"
22766 msgstr ""
22767
22768 #. type: textblock
22769 #: ../inspector/virt-inspector.pod:287
22770 msgid ""
22771 "In the example above, drive C maps to the filesystem on the second partition "
22772 "on the first disk, and drive E maps to the filesystem on the first partition "
22773 "on the second disk."
22774 msgstr ""
22775
22776 #. type: textblock
22777 #: ../inspector/virt-inspector.pod:291
22778 msgid ""
22779 "Note that this only covers permanent local filesystem mappings, not things "
22780 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22781 "here."
22782 msgstr ""
22783
22784 #. type: =head2
22785 #: ../inspector/virt-inspector.pod:295
22786 msgid "E<lt>iconE<gt>"
22787 msgstr ""
22788
22789 #. type: textblock
22790 #: ../inspector/virt-inspector.pod:297
22791 msgid ""
22792 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22793 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22794 "very large and high quality."
22795 msgstr ""
22796
22797 #. type: verbatim
22798 #: ../inspector/virt-inspector.pod:301
22799 #, no-wrap
22800 msgid ""
22801 " <operatingsystems>\n"
22802 "   <operatingsystem>\n"
22803 "     ...\n"
22804 "     <icon>\n"
22805 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22806 "       [... many lines of base64 data ...]\n"
22807 "     </icon>\n"
22808 "\n"
22809 msgstr ""
22810
22811 #. type: textblock
22812 #: ../inspector/virt-inspector.pod:309
22813 msgid ""
22814 "To display the icon, you have to extract it and convert the base64 data back "
22815 "to a binary file.  Use an XPath query or simply an editor to extract the "
22816 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22817 "to a PNG file:"
22818 msgstr ""
22819
22820 #. type: verbatim
22821 #: ../inspector/virt-inspector.pod:314
22822 #, no-wrap
22823 msgid ""
22824 " base64 -i -d < icon.data > icon.png\n"
22825 "\n"
22826 msgstr ""
22827
22828 #. type: =head2
22829 #: ../inspector/virt-inspector.pod:316
22830 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22831 msgstr ""
22832
22833 #. type: textblock
22834 #: ../inspector/virt-inspector.pod:318
22835 msgid ""
22836 "Virt-inspector can detect some operating system installers on install disks, "
22837 "live CDs, bootable USB keys and more."
22838 msgstr ""
22839
22840 #. type: textblock
22841 #: ../inspector/virt-inspector.pod:321
22842 msgid ""
22843 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22844 "fields may be present to indicate a live CD, network installer, or one part "
22845 "of a multipart CD.  For example:"
22846 msgstr ""
22847
22848 #. type: verbatim
22849 #: ../inspector/virt-inspector.pod:325
22850 #, no-wrap
22851 msgid ""
22852 " <operatingsystems>\n"
22853 "   <operatingsystem>\n"
22854 "     <root>/dev/sda</root>\n"
22855 "     <name>linux</name>\n"
22856 "     <arch>i386</arch>\n"
22857 "     <distro>ubuntu</distro>\n"
22858 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22859 "     <major_version>10</major_version>\n"
22860 "     <minor_version>10</minor_version>\n"
22861 "     <format>installer</format>\n"
22862 "     <live/>\n"
22863 "\n"
22864 msgstr ""
22865
22866 #. type: =head1
22867 #: ../inspector/virt-inspector.pod:337
22868 msgid "XPATH QUERIES"
22869 msgstr ""
22870
22871 #. type: textblock
22872 #: ../inspector/virt-inspector.pod:339
22873 msgid ""
22874 "Virt-inspector includes built in support for running XPath queries.  The "
22875 "reason for including XPath support directly in virt-inspector is simply that "
22876 "there are no good and widely available command line programs that can do "
22877 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
22878 "available on Red Hat Enterprise Linux."
22879 msgstr ""
22880
22881 #. type: textblock
22882 #: ../inspector/virt-inspector.pod:346
22883 msgid ""
22884 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
22885 "mode, virt-inspector simply reads XML from stdin and outputs the query "
22886 "result on stdout.  All other inspection features are disabled in this mode."
22887 msgstr ""
22888
22889 #. type: verbatim
22890 #: ../inspector/virt-inspector.pod:353
22891 #, no-wrap
22892 msgid ""
22893 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
22894 " <filesystems>\n"
22895 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22896 "        <type>ext4</type>\n"
22897 " [...]\n"
22898 "\n"
22899 msgstr ""
22900
22901 #. type: verbatim
22902 #: ../inspector/virt-inspector.pod:359
22903 #, no-wrap
22904 msgid ""
22905 " $ virt-inspector -d Guest | \\\n"
22906 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22907 " ext4\n"
22908 "\n"
22909 msgstr ""
22910
22911 #. type: verbatim
22912 #: ../inspector/virt-inspector.pod:363
22913 #, no-wrap
22914 msgid ""
22915 " $ virt-inspector -d Guest | \\\n"
22916 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
22917 " [displays the guest icon, if there is one]\n"
22918 "\n"
22919 msgstr ""
22920
22921 #. type: =head1
22922 #: ../inspector/virt-inspector.pod:374
22923 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22924 msgstr ""
22925
22926 #. type: textblock
22927 #: ../inspector/virt-inspector.pod:376
22928 msgid ""
22929 "Early versions of libguestfs shipped with a different virt-inspector program "
22930 "written in Perl (the current version is written in C).  The XML output of "
22931 "the Perl virt-inspector was different and it could also output in other "
22932 "formats like text."
22933 msgstr ""
22934
22935 #. type: textblock
22936 #: ../inspector/virt-inspector.pod:381
22937 msgid ""
22938 "The old virt-inspector is no longer supported or shipped with libguestfs."
22939 msgstr ""
22940
22941 #. type: textblock
22942 #: ../inspector/virt-inspector.pod:384
22943 msgid ""
22944 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22945 "versions of virt-inspector with different names:"
22946 msgstr ""
22947
22948 #. type: verbatim
22949 #: ../inspector/virt-inspector.pod:387
22950 #, no-wrap
22951 msgid ""
22952 " virt-inspector     Old Perl version.\n"
22953 " virt-inspector2    New C version.\n"
22954 "\n"
22955 msgstr ""
22956
22957 #. type: textblock
22958 #: ../inspector/virt-inspector.pod:397
22959 msgid ""
22960 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22961 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22962 msgstr ""
22963
22964 #. type: textblock
22965 #: ../inspector/virt-inspector.pod:414
22966 msgid "Matthew Booth L<mbooth@redhat.com>"
22967 msgstr ""
22968
22969 #. type: textblock
22970 #: ../java/examples/guestfs-java.pod:5
22971 msgid "guestfs-java - How to use libguestfs from Java"
22972 msgstr ""
22973
22974 #. type: verbatim
22975 #: ../java/examples/guestfs-java.pod:9
22976 #, no-wrap
22977 msgid ""
22978 " import com.redhat.et.libguestfs.*;\n"
22979 " \n"
22980 msgstr ""
22981
22982 #. type: verbatim
22983 #: ../java/examples/guestfs-java.pod:11
22984 #, no-wrap
22985 msgid ""
22986 " GuestFS g = new GuestFS ();\n"
22987 " g.add_drive_opts (\"disk.img\", null);\n"
22988 " g.launch ();\n"
22989 "\n"
22990 msgstr ""
22991
22992 #. type: textblock
22993 #: ../java/examples/guestfs-java.pod:17
22994 msgid ""
22995 "This manual page documents how to call libguestfs from the Java programming "
22996 "language.  This page just documents the differences from the C API and gives "
22997 "some examples.  If you are not familiar with using libguestfs, you also need "
22998 "to read L<guestfs(3)>."
22999 msgstr ""
23000
23001 #. type: =head2
23002 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
23003 msgid "CLOSING THE HANDLE"
23004 msgstr ""
23005
23006 #. type: textblock
23007 #: ../java/examples/guestfs-java.pod:24
23008 msgid ""
23009 "The handle is closed when it is reaped by the garbage collector.  Because "
23010 "libguestfs handles include a lot of state, it is also possible to close (and "
23011 "hence free) them explicitly by calling the C<close> method."
23012 msgstr ""
23013
23014 #. type: =head2
23015 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
23016 #: ../python/examples/guestfs-python.pod:21
23017 #: ../ruby/examples/guestfs-ruby.pod:22
23018 msgid "EXCEPTIONS"
23019 msgstr ""
23020
23021 #. type: textblock
23022 #: ../java/examples/guestfs-java.pod:31
23023 msgid ""
23024 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
23025 "exception.  This has a single parameter which is the error message (a "
23026 "C<String>)."
23027 msgstr ""
23028
23029 #. type: textblock
23030 #: ../java/examples/guestfs-java.pod:35
23031 msgid "Calling any method on a closed handle raises the same exception."
23032 msgstr ""
23033
23034 #. type: textblock
23035 #: ../java/examples/guestfs-java.pod:47
23036 msgid ""
23037 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
23038 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23039 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23040 msgstr ""
23041
23042 #. type: textblock
23043 #: ../ocaml/examples/guestfs-ocaml.pod:5
23044 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
23045 msgstr ""
23046
23047 #. type: textblock
23048 #: ../ocaml/examples/guestfs-ocaml.pod:9
23049 msgid "Module style:"
23050 msgstr ""
23051
23052 #. type: verbatim
23053 #: ../ocaml/examples/guestfs-ocaml.pod:11
23054 #, no-wrap
23055 msgid ""
23056 " let g = Guestfs.create () in\n"
23057 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23058 " Guestfs.launch g;\n"
23059 "\n"
23060 msgstr ""
23061
23062 #. type: textblock
23063 #: ../ocaml/examples/guestfs-ocaml.pod:15
23064 msgid "Object-oriented style:"
23065 msgstr ""
23066
23067 #. type: verbatim
23068 #: ../ocaml/examples/guestfs-ocaml.pod:17
23069 #, no-wrap
23070 msgid ""
23071 " let g = new Guestfs.guestfs () in\n"
23072 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23073 " g#launch ();\n"
23074 "\n"
23075 msgstr ""
23076
23077 #. type: verbatim
23078 #: ../ocaml/examples/guestfs-ocaml.pod:21
23079 #, no-wrap
23080 msgid ""
23081 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
23082 "or:\n"
23083 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
23084 "\n"
23085 msgstr ""
23086
23087 #. type: textblock
23088 #: ../ocaml/examples/guestfs-ocaml.pod:27
23089 msgid ""
23090 "This manual page documents how to call libguestfs from the OCaml programming "
23091 "language.  This page just documents the differences from the C API and gives "
23092 "some examples.  If you are not familiar with using libguestfs, you also need "
23093 "to read L<guestfs(3)>."
23094 msgstr ""
23095
23096 #. type: =head2
23097 #: ../ocaml/examples/guestfs-ocaml.pod:32
23098 msgid "PROGRAMMING STYLES"
23099 msgstr ""
23100
23101 #. type: textblock
23102 #: ../ocaml/examples/guestfs-ocaml.pod:34
23103 msgid ""
23104 "There are two different programming styles supported by the OCaml bindings.  "
23105 "You can use a module style, with each C function mapped to an OCaml function:"
23106 msgstr ""
23107
23108 #. type: verbatim
23109 #: ../ocaml/examples/guestfs-ocaml.pod:38
23110 #, no-wrap
23111 msgid ""
23112 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
23113 "\n"
23114 msgstr ""
23115
23116 #. type: textblock
23117 #: ../ocaml/examples/guestfs-ocaml.pod:40
23118 msgid "becomes:"
23119 msgstr ""
23120
23121 #. type: verbatim
23122 #: ../ocaml/examples/guestfs-ocaml.pod:42
23123 #, no-wrap
23124 msgid ""
23125 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
23126 "\n"
23127 msgstr ""
23128
23129 #. type: textblock
23130 #: ../ocaml/examples/guestfs-ocaml.pod:44
23131 msgid ""
23132 "Alternately you can use an object-oriented style, calling methods on the "
23133 "class C<Guestfs.guestfs>:"
23134 msgstr ""
23135
23136 #. type: verbatim
23137 #: ../ocaml/examples/guestfs-ocaml.pod:47
23138 #, no-wrap
23139 msgid ""
23140 " method set_verbose : bool -> unit\n"
23141 "\n"
23142 msgstr ""
23143
23144 #. type: textblock
23145 #: ../ocaml/examples/guestfs-ocaml.pod:49
23146 msgid ""
23147 "The object-oriented style is usually briefer, and the minor performance "
23148 "penalty isn't noticable in the general overhead of performing libguestfs "
23149 "functions."
23150 msgstr ""
23151
23152 #. type: textblock
23153 #: ../ocaml/examples/guestfs-ocaml.pod:55
23154 msgid ""
23155 "The handle is closed when it is reaped by the garbage collector.  Because "
23156 "libguestfs handles include a lot of state, it is also possible to close (and "
23157 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23158 "method."
23159 msgstr ""
23160
23161 #. type: textblock
23162 #: ../ocaml/examples/guestfs-ocaml.pod:62
23163 msgid ""
23164 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23165 "exception.  This has a single parameter which is the error message (a "
23166 "string)."
23167 msgstr ""
23168
23169 #. type: textblock
23170 #: ../ocaml/examples/guestfs-ocaml.pod:66
23171 msgid ""
23172 "Calling any function/method on a closed handle raises C<Guestfs."
23173 "Handle_closed>.  The single parameter is the name of the function that you "
23174 "called."
23175 msgstr ""
23176
23177 #. type: textblock
23178 #: ../ocaml/examples/guestfs-ocaml.pod:80
23179 msgid ""
23180 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23181 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23182 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23183 msgstr ""
23184
23185 #. type: textblock
23186 #: ../perl/examples/guestfs-perl.pod:5
23187 msgid "guestfs-perl - How to use libguestfs from Perl"
23188 msgstr ""
23189
23190 #. type: verbatim
23191 #: ../perl/examples/guestfs-perl.pod:9
23192 #, no-wrap
23193 msgid ""
23194 " use Sys::Guestfs;\n"
23195 " \n"
23196 msgstr ""
23197
23198 #. type: verbatim
23199 #: ../perl/examples/guestfs-perl.pod:11
23200 #, no-wrap
23201 msgid ""
23202 " my $h = Sys::Guestfs->new ();\n"
23203 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23204 " $h->launch ();\n"
23205 " $h->mount_options ('', '/dev/sda1', '/');\n"
23206 " $h->touch ('/hello');\n"
23207 " $h->sync ();\n"
23208 "\n"
23209 msgstr ""
23210
23211 #. type: textblock
23212 #: ../perl/examples/guestfs-perl.pod:20
23213 msgid ""
23214 "This manual page documents how to call libguestfs from the Perl programming "
23215 "language.  This page just documents the differences from the C API and gives "
23216 "some examples.  If you are not familiar with using libguestfs, you also need "
23217 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23218 msgstr ""
23219
23220 #. type: =head2
23221 #: ../perl/examples/guestfs-perl.pod:26
23222 msgid "ERRORS"
23223 msgstr ""
23224
23225 #. type: textblock
23226 #: ../perl/examples/guestfs-perl.pod:28
23227 msgid ""
23228 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23229 ">)."
23230 msgstr ""
23231
23232 #. type: textblock
23233 #: ../perl/examples/guestfs-perl.pod:41
23234 msgid ""
23235 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23236 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23237 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23238 msgstr ""
23239
23240 #. type: textblock
23241 #: ../python/examples/guestfs-python.pod:5
23242 msgid "guestfs-python - How to use libguestfs from Python"
23243 msgstr ""
23244
23245 #. type: verbatim
23246 #: ../python/examples/guestfs-python.pod:9
23247 #, no-wrap
23248 msgid ""
23249 " import guestfs\n"
23250 " g = guestfs.GuestFS ()\n"
23251 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23252 " g.launch\n"
23253 "\n"
23254 msgstr ""
23255
23256 #. type: textblock
23257 #: ../python/examples/guestfs-python.pod:16
23258 msgid ""
23259 "This manual page documents how to call libguestfs from the Python "
23260 "programming language.  This page just documents the differences from the C "
23261 "API and gives some examples.  If you are not familiar with using libguestfs, "
23262 "you also need to read L<guestfs(3)>."
23263 msgstr ""
23264
23265 #. type: textblock
23266 #: ../python/examples/guestfs-python.pod:23
23267 msgid ""
23268 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23269 "single string argument which is the error message."
23270 msgstr ""
23271
23272 #. type: =head2
23273 #: ../python/examples/guestfs-python.pod:26
23274 msgid "MORE DOCUMENTATION"
23275 msgstr ""
23276
23277 #. type: textblock
23278 #: ../python/examples/guestfs-python.pod:28
23279 msgid "Type:"
23280 msgstr ""
23281
23282 #. type: verbatim
23283 #: ../python/examples/guestfs-python.pod:30
23284 #, no-wrap
23285 msgid ""
23286 " $ python\n"
23287 " >>> import guestfs\n"
23288 " >>> help (guestfs)\n"
23289 "\n"
23290 msgstr ""
23291
23292 #. type: textblock
23293 #: ../python/examples/guestfs-python.pod:44
23294 msgid ""
23295 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23296 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23297 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23298 msgstr ""
23299
23300 #. type: textblock
23301 #: ../rescue/virt-rescue.pod:5
23302 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23303 msgstr ""
23304
23305 #. type: verbatim
23306 #: ../rescue/virt-rescue.pod:9
23307 #, no-wrap
23308 msgid ""
23309 " virt-rescue [--options] -d domname\n"
23310 "\n"
23311 msgstr ""
23312
23313 #. type: verbatim
23314 #: ../rescue/virt-rescue.pod:11
23315 #, no-wrap
23316 msgid ""
23317 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23318 "\n"
23319 msgstr ""
23320
23321 #. type: verbatim
23322 #: ../rescue/virt-rescue.pod:15
23323 #, no-wrap
23324 msgid ""
23325 " virt-rescue [--options] domname\n"
23326 "\n"
23327 msgstr ""
23328
23329 #. type: verbatim
23330 #: ../rescue/virt-rescue.pod:17
23331 #, no-wrap
23332 msgid ""
23333 " virt-rescue [--options] disk.img [disk.img ...]\n"
23334 "\n"
23335 msgstr ""
23336
23337 #. type: textblock
23338 #: ../rescue/virt-rescue.pod:21
23339 msgid ""
23340 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23341 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23342 "you from doing this, but doesn't catch all cases."
23343 msgstr ""
23344
23345 #. type: textblock
23346 #: ../rescue/virt-rescue.pod:25
23347 msgid ""
23348 "However if you use the I<--ro> (read only) option, then you can attach a "
23349 "shell to a live virtual machine.  The results might be strange or "
23350 "inconsistent at times but you won't get disk corruption."
23351 msgstr ""
23352
23353 #. type: textblock
23354 #: ../rescue/virt-rescue.pod:31
23355 msgid ""
23356 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23357 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23358 "recovery tools which you can use to examine or rescue a virtual machine or "
23359 "disk image."
23360 msgstr ""
23361
23362 #. type: textblock
23363 #: ../rescue/virt-rescue.pod:36
23364 msgid ""
23365 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23366 "on disk image(s):"
23367 msgstr ""
23368
23369 #. type: verbatim
23370 #: ../rescue/virt-rescue.pod:39
23371 #, no-wrap
23372 msgid ""
23373 " virt-rescue -d GuestName\n"
23374 "\n"
23375 msgstr ""
23376
23377 #. type: verbatim
23378 #: ../rescue/virt-rescue.pod:41
23379 #, no-wrap
23380 msgid ""
23381 " virt-rescue --ro -a /path/to/disk.img\n"
23382 "\n"
23383 msgstr ""
23384
23385 #. type: verbatim
23386 #: ../rescue/virt-rescue.pod:43
23387 #, no-wrap
23388 msgid ""
23389 " virt-rescue -a /dev/sdc\n"
23390 "\n"
23391 msgstr ""
23392
23393 #. type: textblock
23394 #: ../rescue/virt-rescue.pod:45
23395 msgid "For live VMs you I<must> use the --ro option."
23396 msgstr ""
23397
23398 #. type: textblock
23399 #: ../rescue/virt-rescue.pod:47
23400 msgid ""
23401 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23402 "in an interactive bash shell where you can use many ordinary Linux "
23403 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23404 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23405 "is an empty directory called C</sysroot> where you can mount filesystems."
23406 msgstr ""
23407
23408 #. type: textblock
23409 #: ../rescue/virt-rescue.pod:54
23410 msgid ""
23411 "In the example below, we list logical volumes, then choose one to mount "
23412 "under C</sysroot>:"
23413 msgstr ""
23414
23415 #. type: verbatim
23416 #: ../rescue/virt-rescue.pod:57
23417 #, no-wrap
23418 msgid ""
23419 " ><rescue> lvs\n"
23420 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23421 " lv_root vg_f11x64 -wi-a-   8.83G\n"
23422 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
23423 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
23424 " ><rescue> ls /sysroot\n"
23425 "\n"
23426 msgstr ""
23427
23428 #. type: textblock
23429 #: ../rescue/virt-rescue.pod:64
23430 msgid ""
23431 "If you don't know what filesystems are available on the virtual machine then "
23432 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
23433 msgstr ""
23434
23435 #. type: textblock
23436 #: ../rescue/virt-rescue.pod:70
23437 msgid ""
23438 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23439 "virtual machine.  For example you can use it on a blank file if you want to "
23440 "partition that file (although we would recommend using L<guestfish(1)> "
23441 "instead as it is more suitable for this purpose).  You can even use virt-"
23442 "rescue on things like SD cards."
23443 msgstr ""
23444
23445 #. type: textblock
23446 #: ../rescue/virt-rescue.pod:76
23447 msgid ""
23448 "Virt-rescue does not require root.  You only need to run it as root if you "
23449 "need root to open the disk image."
23450 msgstr ""
23451
23452 #. type: textblock
23453 #: ../rescue/virt-rescue.pod:79
23454 msgid ""
23455 "This tool is just designed for quick interactive hacking on a virtual "
23456 "machine.  For more structured access to a virtual machine disk image, you "
23457 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23458 "make scripted changes to guests, use L<guestfish(1)>."
23459 msgstr ""
23460
23461 #. type: =item
23462 #: ../rescue/virt-rescue.pod:103
23463 msgid "B<--append kernelopts>"
23464 msgstr ""
23465
23466 #. type: textblock
23467 #: ../rescue/virt-rescue.pod:105
23468 msgid "Pass additional options to the rescue kernel."
23469 msgstr ""
23470
23471 #. type: verbatim
23472 #: ../rescue/virt-rescue.pod:135
23473 #, no-wrap
23474 msgid ""
23475 " virt-rescue --format=raw -a disk.img\n"
23476 "\n"
23477 msgstr ""
23478
23479 #. type: verbatim
23480 #: ../rescue/virt-rescue.pod:139
23481 #, no-wrap
23482 msgid ""
23483 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23484 "\n"
23485 msgstr ""
23486
23487 #. type: =item
23488 #: ../rescue/virt-rescue.pod:148
23489 msgid "B<-m MB>"
23490 msgstr ""
23491
23492 #. type: =item
23493 #: ../rescue/virt-rescue.pod:150
23494 msgid "B<--memsize MB>"
23495 msgstr ""
23496
23497 #. type: textblock
23498 #: ../rescue/virt-rescue.pod:152
23499 msgid ""
23500 "Change the amount of memory allocated to the rescue system.  The default is "
23501 "set by libguestfs and is small but adequate for running system tools.  The "
23502 "occasional program might need more memory.  The parameter is specified in "
23503 "megabytes."
23504 msgstr ""
23505
23506 #. type: =item
23507 #: ../rescue/virt-rescue.pod:157
23508 msgid "B<--network>"
23509 msgstr ""
23510
23511 #. type: textblock
23512 #: ../rescue/virt-rescue.pod:159
23513 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23514 msgstr ""
23515
23516 #. type: textblock
23517 #: ../rescue/virt-rescue.pod:165
23518 msgid "Open the image read-only."
23519 msgstr ""
23520
23521 #. type: textblock
23522 #: ../rescue/virt-rescue.pod:175
23523 msgid ""
23524 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23525 "SELINUX> before using this option."
23526 msgstr ""
23527
23528 #. type: =item
23529 #: ../rescue/virt-rescue.pod:178
23530 msgid "B<--smp> N"
23531 msgstr ""
23532
23533 #. type: textblock
23534 #: ../rescue/virt-rescue.pod:180
23535 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23536 msgstr ""
23537
23538 #. type: textblock
23539 #: ../rescue/virt-rescue.pod:198
23540 msgid ""
23541 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23542 "are done read-write."
23543 msgstr ""
23544
23545 #. type: textblock
23546 #: ../rescue/virt-rescue.pod:211
23547 msgid "Previous versions of virt-rescue allowed you to write either:"
23548 msgstr ""
23549
23550 #. type: verbatim
23551 #: ../rescue/virt-rescue.pod:213
23552 #, no-wrap
23553 msgid ""
23554 " virt-rescue disk.img [disk.img ...]\n"
23555 "\n"
23556 msgstr ""
23557
23558 #. type: verbatim
23559 #: ../rescue/virt-rescue.pod:217
23560 #, no-wrap
23561 msgid ""
23562 " virt-rescue guestname\n"
23563 "\n"
23564 msgstr ""
23565
23566 #. type: =head1
23567 #: ../rescue/virt-rescue.pod:225
23568 msgid "NETWORK"
23569 msgstr ""
23570
23571 #. type: textblock
23572 #: ../rescue/virt-rescue.pod:227
23573 msgid ""
23574 "Adding the I<--network> option enables QEMU user networking in the rescue "
23575 "appliance.  There are some differences between user networking and ordinary "
23576 "networking:"
23577 msgstr ""
23578
23579 #. type: =item
23580 #: ../rescue/virt-rescue.pod:233
23581 msgid "ping does not work"
23582 msgstr ""
23583
23584 #. type: textblock
23585 #: ../rescue/virt-rescue.pod:235
23586 msgid ""
23587 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23588 "send the ping packets, and because virt-rescue must be able to run as non-"
23589 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
23590 "The ping command will appear to resolve addresses but will not be able to "
23591 "send or receive any packets.  This does not mean that the network is not "
23592 "working."
23593 msgstr ""
23594
23595 #. type: =item
23596 #: ../rescue/virt-rescue.pod:242
23597 msgid "cannot receive connections"
23598 msgstr ""
23599
23600 #. type: textblock
23601 #: ../rescue/virt-rescue.pod:244
23602 msgid "QEMU user networking cannot receive incoming connections."
23603 msgstr ""
23604
23605 #. type: =item
23606 #: ../rescue/virt-rescue.pod:246
23607 msgid "making TCP connections"
23608 msgstr ""
23609
23610 #. type: textblock
23611 #: ../rescue/virt-rescue.pod:248
23612 msgid ""
23613 "The virt-rescue appliance needs to be small and so does not include many "
23614 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23615 "make TCP connections from the shell using the magical C</dev/tcp/"
23616 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23617 msgstr ""
23618
23619 #. type: verbatim
23620 #: ../rescue/virt-rescue.pod:253
23621 #, no-wrap
23622 msgid ""
23623 " exec 3<>/dev/tcp/redhat.com/80\n"
23624 " echo \"GET /\" >&3\n"
23625 " cat <&3\n"
23626 "\n"
23627 msgstr ""
23628
23629 #. type: textblock
23630 #: ../rescue/virt-rescue.pod:257
23631 msgid "See L<bash(1)> for more details."
23632 msgstr ""
23633
23634 #. type: textblock
23635 #: ../rescue/virt-rescue.pod:263
23636 msgid ""
23637 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
23638 "ENVIRONMENT VARIABLES> for the complete list."
23639 msgstr ""
23640
23641 #. type: textblock
23642 #: ../rescue/virt-rescue.pod:290
23643 msgid ""
23644 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23645 "libguestfs.org/>."
23646 msgstr ""
23647
23648 #. type: textblock
23649 #: ../resize/virt-resize.pod:5
23650 msgid "virt-resize - Resize a virtual machine disk"
23651 msgstr ""
23652
23653 #. type: verbatim
23654 #: ../resize/virt-resize.pod:9
23655 #, no-wrap
23656 msgid ""
23657 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23658 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23659 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23660 "\n"
23661 msgstr ""
23662
23663 #. type: textblock
23664 #: ../resize/virt-resize.pod:15
23665 msgid ""
23666 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23667 "larger or smaller overall, and resizing or deleting any partitions contained "
23668 "within."
23669 msgstr ""
23670
23671 #. type: textblock
23672 #: ../resize/virt-resize.pod:19
23673 msgid ""
23674 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23675 "not> be used on live virtual machines - for consistent results, shut the "
23676 "virtual machine down before resizing it."
23677 msgstr ""
23678
23679 #. type: textblock
23680 #: ../resize/virt-resize.pod:23
23681 msgid ""
23682 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23683 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23684 msgstr ""
23685
23686 #. type: =item
23687 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603
23688 #: ../sparsify/virt-sparsify.pod:208 ../src/guestfs.pod:484
23689 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23690 msgid "1."
23691 msgstr ""
23692
23693 #. type: textblock
23694 #: ../resize/virt-resize.pod:33
23695 msgid ""
23696 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23697 "fill the extra 5GB of space."
23698 msgstr ""
23699
23700 #. type: verbatim
23701 #: ../resize/virt-resize.pod:36
23702 #, no-wrap
23703 msgid ""
23704 " virt-filesystems --long -h --all -a olddisk\n"
23705 " \n"
23706 msgstr ""
23707
23708 #. type: verbatim
23709 #: ../resize/virt-resize.pod:38
23710 #, no-wrap
23711 msgid ""
23712 " truncate -r olddisk newdisk\n"
23713 " truncate -s +5G newdisk\n"
23714 " \n"
23715 msgstr ""
23716
23717 #. type: verbatim
23718 #: ../resize/virt-resize.pod:41
23719 #, no-wrap
23720 msgid ""
23721 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23722 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23723 "\n"
23724 msgstr ""
23725
23726 #. type: =item
23727 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610
23728 #: ../sparsify/virt-sparsify.pod:215 ../src/guestfs.pod:490
23729 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23730 msgid "2."
23731 msgstr ""
23732
23733 #. type: textblock
23734 #: ../resize/virt-resize.pod:46
23735 msgid ""
23736 "As above, but make the /boot partition 200MB bigger, while giving the "
23737 "remaining space to /dev/sda2:"
23738 msgstr ""
23739
23740 #. type: verbatim
23741 #: ../resize/virt-resize.pod:49
23742 #, no-wrap
23743 msgid ""
23744 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23745 "   olddisk newdisk\n"
23746 "\n"
23747 msgstr ""
23748
23749 #. type: =item
23750 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616
23751 #: ../sparsify/virt-sparsify.pod:221 ../src/guestfs.pod:501
23752 #: ../src/guestfs.pod:1451
23753 msgid "3."
23754 msgstr ""
23755
23756 #. type: textblock
23757 #: ../resize/virt-resize.pod:54
23758 msgid ""
23759 "As in the first example, but expand a logical volume as the final step.  "
23760 "This is what you would typically use for Linux guests that use LVM:"
23761 msgstr ""
23762
23763 #. type: verbatim
23764 #: ../resize/virt-resize.pod:58
23765 #, no-wrap
23766 msgid ""
23767 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23768 "   olddisk newdisk\n"
23769 "\n"
23770 msgstr ""
23771
23772 #. type: =item
23773 #: ../resize/virt-resize.pod:61
23774 msgid "4."
23775 msgstr ""
23776
23777 #. type: textblock
23778 #: ../resize/virt-resize.pod:63
23779 msgid ""
23780 "As in the first example, but the output format will be qcow2 instead of a "
23781 "raw disk:"
23782 msgstr ""
23783
23784 #. type: verbatim
23785 #: ../resize/virt-resize.pod:66
23786 #, no-wrap
23787 msgid ""
23788 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23789 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23790 "\n"
23791 msgstr ""
23792
23793 #. type: =head1
23794 #: ../resize/virt-resize.pod:71
23795 msgid "DETAILED USAGE"
23796 msgstr ""
23797
23798 #. type: =head2
23799 #: ../resize/virt-resize.pod:73
23800 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23801 msgstr ""
23802
23803 #. type: =item
23804 #: ../resize/virt-resize.pod:77
23805 msgid "1. Shut down the virtual machine"
23806 msgstr ""
23807
23808 #. type: =item
23809 #: ../resize/virt-resize.pod:79
23810 msgid "2. Locate input disk image"
23811 msgstr ""
23812
23813 #. type: textblock
23814 #: ../resize/virt-resize.pod:81
23815 msgid ""
23816 "Locate the input disk image (ie. the file or device on the host containing "
23817 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23818 "dumpxml> like this to find the disk image name:"
23819 msgstr ""
23820
23821 #. type: verbatim
23822 #: ../resize/virt-resize.pod:85
23823 #, no-wrap
23824 msgid ""
23825 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23826 " Found 1 nodes:\n"
23827 " -- NODE --\n"
23828 " <source dev=\"/dev/vg/lv_guest\" />\n"
23829 "\n"
23830 msgstr ""
23831
23832 #. type: =item
23833 #: ../resize/virt-resize.pod:90
23834 msgid "3. Look at current sizing"
23835 msgstr ""
23836
23837 #. type: textblock
23838 #: ../resize/virt-resize.pod:92
23839 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23840 msgstr ""
23841
23842 #. type: verbatim
23843 #: ../resize/virt-resize.pod:95
23844 #, no-wrap
23845 msgid ""
23846 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23847 " Name       Type       Size  Parent\n"
23848 " /dev/sda1  partition  101M  /dev/sda\n"
23849 " /dev/sda2  partition  7.9G  /dev/sda\n"
23850 " /dev/sda   device     8.0G  -\n"
23851 "\n"
23852 msgstr ""
23853
23854 #. type: textblock
23855 #: ../resize/virt-resize.pod:101
23856 msgid ""
23857 "(This example is a virtual machine with an 8 GB disk which we would like to "
23858 "expand up to 10 GB)."
23859 msgstr ""
23860
23861 #. type: =item
23862 #: ../resize/virt-resize.pod:104
23863 msgid "4. Create output disk"
23864 msgstr ""
23865
23866 #. type: textblock
23867 #: ../resize/virt-resize.pod:106
23868 msgid ""
23869 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23870 "to store the resized output disk."
23871 msgstr ""
23872
23873 #. type: textblock
23874 #: ../resize/virt-resize.pod:109
23875 msgid ""
23876 "To store the resized disk image in a file, create a file of a suitable size:"
23877 msgstr ""
23878
23879 #. type: verbatim
23880 #: ../resize/virt-resize.pod:112
23881 #, no-wrap
23882 msgid ""
23883 " # rm -f outdisk\n"
23884 " # truncate -s 10G outdisk\n"
23885 "\n"
23886 msgstr ""
23887
23888 #. type: textblock
23889 #: ../resize/virt-resize.pod:115
23890 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23891 msgstr ""
23892
23893 #. type: verbatim
23894 #: ../resize/virt-resize.pod:117
23895 #, no-wrap
23896 msgid ""
23897 " # lvcreate -L 10G -n lv_name vg_name\n"
23898 "\n"
23899 msgstr ""
23900
23901 #. type: textblock
23902 #: ../resize/virt-resize.pod:119
23903 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23904 msgstr ""
23905
23906 #. type: verbatim
23907 #: ../resize/virt-resize.pod:121
23908 #, no-wrap
23909 msgid ""
23910 " # virsh pool-list\n"
23911 " # virsh vol-create-as poolname newvol 10G\n"
23912 "\n"
23913 msgstr ""
23914
23915 #. type: =item
23916 #: ../resize/virt-resize.pod:124
23917 msgid "5. Resize"
23918 msgstr ""
23919
23920 #. type: textblock
23921 #: ../resize/virt-resize.pod:126
23922 msgid ""
23923 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23924 "file) and the output disk.  The output disk is the one created in the "
23925 "previous step."
23926 msgstr ""
23927
23928 #. type: verbatim
23929 #: ../resize/virt-resize.pod:130
23930 #, no-wrap
23931 msgid ""
23932 " # virt-resize indisk outdisk\n"
23933 "\n"
23934 msgstr ""
23935
23936 #. type: textblock
23937 #: ../resize/virt-resize.pod:132
23938 msgid ""
23939 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23940 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23941 "larger, then an extra, empty partition is created at the end of the disk "
23942 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23943 "error."
23944 msgstr ""
23945
23946 #. type: textblock
23947 #: ../resize/virt-resize.pod:138
23948 msgid ""
23949 "More realistically you'd want to expand existing partitions in the disk "
23950 "image by passing extra options (for the full list see the L</OPTIONS> "
23951 "section below)."
23952 msgstr ""
23953
23954 #. type: textblock
23955 #: ../resize/virt-resize.pod:142
23956 msgid ""
23957 "L</--expand> is the most useful option.  It expands the named partition "
23958 "within the disk to fill any extra space:"
23959 msgstr ""
23960
23961 #. type: verbatim
23962 #: ../resize/virt-resize.pod:145
23963 #, no-wrap
23964 msgid ""
23965 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23966 "\n"
23967 msgstr ""
23968
23969 #. type: textblock
23970 #: ../resize/virt-resize.pod:147
23971 msgid ""
23972 "(In this case, an extra partition is I<not> created at the end of the disk, "
23973 "because there will be no unused space)."
23974 msgstr ""
23975
23976 #. type: textblock
23977 #: ../resize/virt-resize.pod:150
23978 msgid ""
23979 "L</--resize> is the other commonly used option.  The following would "
23980 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23981 "rest of the available space:"
23982 msgstr ""
23983
23984 #. type: verbatim
23985 #: ../resize/virt-resize.pod:154
23986 #, no-wrap
23987 msgid ""
23988 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23989 "     indisk outdisk\n"
23990 "\n"
23991 msgstr ""
23992
23993 #. type: textblock
23994 #: ../resize/virt-resize.pod:157
23995 msgid ""
23996 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23997 "if virt-resize knows how, it will resize the contents, the equivalent of "
23998 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23999 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
24000 "filesystems, so you would have to online resize them after booting the guest."
24001 msgstr ""
24002
24003 #. type: textblock
24004 #: ../resize/virt-resize.pod:164
24005 msgid "Other options are covered below."
24006 msgstr ""
24007
24008 #. type: =item
24009 #: ../resize/virt-resize.pod:166
24010 msgid "6. Test"
24011 msgstr ""
24012
24013 #. type: textblock
24014 #: ../resize/virt-resize.pod:168
24015 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24016 msgstr ""
24017
24018 #. type: textblock
24019 #: ../resize/virt-resize.pod:170
24020 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24021 msgstr ""
24022
24023 #. type: verbatim
24024 #: ../resize/virt-resize.pod:172
24025 #, no-wrap
24026 msgid ""
24027 " # virsh edit guestname\n"
24028 "\n"
24029 msgstr ""
24030
24031 #. type: textblock
24032 #: ../resize/virt-resize.pod:174
24033 msgid ""
24034 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
24035 "html#elementsDisks>"
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../resize/virt-resize.pod:177
24040 msgid "Then start up the domain with the new, resized disk:"
24041 msgstr ""
24042
24043 #. type: verbatim
24044 #: ../resize/virt-resize.pod:179
24045 #, no-wrap
24046 msgid ""
24047 " # virsh start guestname\n"
24048 "\n"
24049 msgstr ""
24050
24051 #. type: textblock
24052 #: ../resize/virt-resize.pod:181
24053 msgid ""
24054 "and check that it still works.  See also the L</NOTES> section below for "
24055 "additional information."
24056 msgstr ""
24057
24058 #. type: =item
24059 #: ../resize/virt-resize.pod:184
24060 msgid "7. Resize LVs etc inside the guest"
24061 msgstr ""
24062
24063 #. type: textblock
24064 #: ../resize/virt-resize.pod:186
24065 msgid "(This can also be done offline using L<guestfish(1)>)"
24066 msgstr ""
24067
24068 #. type: textblock
24069 #: ../resize/virt-resize.pod:188
24070 msgid ""
24071 "Once the guest has booted you should see the new space available, at least "
24072 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24073 "may need to resize LVs inside PVs, and also resize filesystem types that "
24074 "virt-resize does not know how to expand."
24075 msgstr ""
24076
24077 #. type: =head2
24078 #: ../resize/virt-resize.pod:195
24079 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24080 msgstr ""
24081
24082 #. type: textblock
24083 #: ../resize/virt-resize.pod:197
24084 msgid ""
24085 "Shrinking is somewhat more complex than expanding, and only an overview is "
24086 "given here."
24087 msgstr ""
24088
24089 #. type: textblock
24090 #: ../resize/virt-resize.pod:200
24091 msgid ""
24092 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24093 "filesystems).  The user has to shrink content before passing the disk image "
24094 "to virt-resize, and virt-resize will check that the content has been shrunk "
24095 "properly."
24096 msgstr ""
24097
24098 #. type: textblock
24099 #: ../resize/virt-resize.pod:205
24100 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24101 msgstr ""
24102
24103 #. type: textblock
24104 #: ../resize/virt-resize.pod:207
24105 msgid ""
24106 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24107 "steps 3 and 4 above to allocate a new disk image."
24108 msgstr ""
24109
24110 #. type: textblock
24111 #: ../resize/virt-resize.pod:210
24112 msgid ""
24113 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24114 msgstr ""
24115
24116 #. type: =head2
24117 #: ../resize/virt-resize.pod:213
24118 msgid "IGNORING OR DELETING PARTITIONS"
24119 msgstr ""
24120
24121 #. type: textblock
24122 #: ../resize/virt-resize.pod:215
24123 msgid ""
24124 "virt-resize also gives a convenient way to ignore or delete partitions when "
24125 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24126 "up the copy where you don't care about the existing contents of a "
24127 "partition.  Deleting a partition removes it completely, but note that it "
24128 "also renumbers any partitions after the one which is deleted, which can "
24129 "leave some guests unbootable."
24130 msgstr ""
24131
24132 #. type: =head2
24133 #: ../resize/virt-resize.pod:222
24134 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24135 msgstr ""
24136
24137 #. type: textblock
24138 #: ../resize/virt-resize.pod:224
24139 msgid ""
24140 "If the input disk is in qcow2 format, then you may prefer that the output is "
24141 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
24142 "the fly.  The output format is simply determined by the format of the empty "
24143 "output container that you provide.  Thus to create qcow2 output, use:"
24144 msgstr ""
24145
24146 #. type: verbatim
24147 #: ../resize/virt-resize.pod:230
24148 #, no-wrap
24149 msgid ""
24150 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24151 "\n"
24152 msgstr ""
24153
24154 #. type: textblock
24155 #: ../resize/virt-resize.pod:232
24156 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24157 msgstr ""
24158
24159 #. type: textblock
24160 #: ../resize/virt-resize.pod:234
24161 msgid "Similarly, to get non-sparse raw output use:"
24162 msgstr ""
24163
24164 #. type: verbatim
24165 #: ../resize/virt-resize.pod:236
24166 #, no-wrap
24167 msgid ""
24168 " fallocate -l size outdisk\n"
24169 "\n"
24170 msgstr ""
24171
24172 #. type: textblock
24173 #: ../resize/virt-resize.pod:238
24174 msgid ""
24175 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24176 "dev/zero of=outdisk bs=1M count=..>)"
24177 msgstr ""
24178
24179 #. type: =head2
24180 #: ../resize/virt-resize.pod:241
24181 msgid "LOGICAL PARTITIONS"
24182 msgstr ""
24183
24184 #. type: textblock
24185 #: ../resize/virt-resize.pod:243
24186 msgid ""
24187 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24188 "tables) cannot be resized."
24189 msgstr ""
24190
24191 #. type: textblock
24192 #: ../resize/virt-resize.pod:246
24193 msgid ""
24194 "To understand what is going on, firstly one of the four partitions C</dev/"
24195 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
24196 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
24197 "type."
24198 msgstr ""
24199
24200 #. type: textblock
24201 #: ../resize/virt-resize.pod:251
24202 msgid "Logical partitions live inside the extended partition."
24203 msgstr ""
24204
24205 #. type: textblock
24206 #: ../resize/virt-resize.pod:253
24207 msgid ""
24208 "The extended partition can be expanded, but not shrunk (unless you force it, "
24209 "which is not advisable).  When the extended partition is copied across, all "
24210 "the logical partitions contained inside are copied over implicitly.  Virt-"
24211 "resize does not look inside the extended partition, so it copies the logical "
24212 "partitions blindly."
24213 msgstr ""
24214
24215 #. type: textblock
24216 #: ../resize/virt-resize.pod:259
24217 msgid ""
24218 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24219 "line.  Doing so will give an error."
24220 msgstr ""
24221
24222 #. type: textblock
24223 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24224 msgid "Display help."
24225 msgstr ""
24226
24227 #. type: =item
24228 #: ../resize/virt-resize.pod:270
24229 msgid "B<--align-first auto>"
24230 msgstr ""
24231
24232 #. type: =item
24233 #: ../resize/virt-resize.pod:272
24234 msgid "B<--align-first never>"
24235 msgstr ""
24236
24237 #. type: =item
24238 #: ../resize/virt-resize.pod:274
24239 msgid "B<--align-first always>"
24240 msgstr ""
24241
24242 #. type: textblock
24243 #: ../resize/virt-resize.pod:276
24244 msgid ""
24245 "Align the first partition for improved performance (see also the I<--"
24246 "alignment> option)."
24247 msgstr ""
24248
24249 #. type: textblock
24250 #: ../resize/virt-resize.pod:279
24251 msgid ""
24252 "The default is I<--align-first auto> which only aligns the first partition "
24253 "if it is safe to do so.  That is, only when we know how to fix the "
24254 "bootloader automatically, and at the moment that can only be done for "
24255 "Windows guests."
24256 msgstr ""
24257
24258 #. type: textblock
24259 #: ../resize/virt-resize.pod:284
24260 msgid ""
24261 "I<--align-first never> means we never move the first partition.  This is the "
24262 "safest option.  Try this if the guest does not boot after resizing."
24263 msgstr ""
24264
24265 #. type: textblock
24266 #: ../resize/virt-resize.pod:288
24267 msgid ""
24268 "I<--align-first always> means we always align the first partition (if it "
24269 "needs to be aligned).  For some guests this will break the bootloader, "
24270 "making the guest unbootable."
24271 msgstr ""
24272
24273 #. type: =item
24274 #: ../resize/virt-resize.pod:292
24275 msgid "B<--alignment N>"
24276 msgstr ""
24277
24278 #. type: textblock
24279 #: ../resize/virt-resize.pod:294
24280 msgid ""
24281 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24282 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24283 msgstr ""
24284
24285 #. type: textblock
24286 #: ../resize/virt-resize.pod:298
24287 msgid ""
24288 "Assuming 512 byte sector size inside the guest, here are some suitable "
24289 "values for this:"
24290 msgstr ""
24291
24292 #. type: =item
24293 #: ../resize/virt-resize.pod:303
24294 msgid "I<--alignment 1> (512 bytes)"
24295 msgstr ""
24296
24297 #. type: textblock
24298 #: ../resize/virt-resize.pod:305
24299 msgid ""
24300 "The partitions would be packed together as closely as possible, but would be "
24301 "completely unaligned.  In some cases this can cause very poor performance.  "
24302 "See L<virt-alignment-scan(1)> for further details."
24303 msgstr ""
24304
24305 #. type: =item
24306 #: ../resize/virt-resize.pod:309
24307 msgid "I<--alignment 8> (4K)"
24308 msgstr ""
24309
24310 #. type: textblock
24311 #: ../resize/virt-resize.pod:311
24312 msgid ""
24313 "This would be the minimum acceptable alignment for reasonable performance on "
24314 "modern hosts."
24315 msgstr ""
24316
24317 #. type: =item
24318 #: ../resize/virt-resize.pod:314
24319 msgid "I<--alignment 128> (64K)"
24320 msgstr ""
24321
24322 #. type: textblock
24323 #: ../resize/virt-resize.pod:316
24324 msgid ""
24325 "This alignment provides good performance when the host is using high end "
24326 "network storage."
24327 msgstr ""
24328
24329 #. type: =item
24330 #: ../resize/virt-resize.pod:319
24331 msgid "I<--alignment 2048> (1M)"
24332 msgstr ""
24333
24334 #. type: textblock
24335 #: ../resize/virt-resize.pod:321
24336 msgid ""
24337 "This is the standard alignment used by all newly installed guests since "
24338 "around 2008."
24339 msgstr ""
24340
24341 #. type: =item
24342 #: ../resize/virt-resize.pod:326
24343 msgid "B<-d>"
24344 msgstr ""
24345
24346 #. type: =item
24347 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24348 #: ../tools/virt-win-reg.pl:120
24349 msgid "B<--debug>"
24350 msgstr ""
24351
24352 #. type: textblock
24353 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24354 msgid "Enable debugging messages."
24355 msgstr ""
24356
24357 #. type: =item
24358 #: ../resize/virt-resize.pod:332 ../sparsify/virt-sparsify.pod:124
24359 msgid "B<--debug-gc>"
24360 msgstr ""
24361
24362 #. type: textblock
24363 #: ../resize/virt-resize.pod:334
24364 msgid ""
24365 "Debug garbage collection and memory allocation.  This is only useful when "
24366 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
24367 msgstr ""
24368
24369 #. type: =item
24370 #: ../resize/virt-resize.pod:338
24371 msgid "B<--delete part>"
24372 msgstr ""
24373
24374 #. type: textblock
24375 #: ../resize/virt-resize.pod:340
24376 msgid ""
24377 "Delete the named partition.  It would be more accurate to describe this as "
24378 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24379 "the original disk image is left intact."
24380 msgstr ""
24381
24382 #. type: textblock
24383 #: ../resize/virt-resize.pod:344
24384 msgid ""
24385 "Note that when you delete a partition, then anything contained in the "
24386 "partition is also deleted.  Furthermore, this causes any partitions that "
24387 "come after to be I<renumbered>, which can easily make your guest unbootable."
24388 msgstr ""
24389
24390 #. type: textblock
24391 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410
24392 #: ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:150
24393 msgid "You can give this option multiple times."
24394 msgstr ""
24395
24396 #. type: =item
24397 #: ../resize/virt-resize.pod:351
24398 msgid "B<--expand part>"
24399 msgstr ""
24400
24401 #. type: textblock
24402 #: ../resize/virt-resize.pod:353
24403 msgid ""
24404 "Expand the named partition so it uses up all extra space (space left over "
24405 "after any other resize changes that you request have been done)."
24406 msgstr ""
24407
24408 #. type: textblock
24409 #: ../resize/virt-resize.pod:356
24410 msgid ""
24411 "If virt-resize knows how, it will expand the direct content of the "
24412 "partition.  For example, if the partition is an LVM PV, it will expand the "
24413 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24414 "content it doesn't know about alone."
24415 msgstr ""
24416
24417 #. type: textblock
24418 #: ../resize/virt-resize.pod:361
24419 msgid "Currently virt-resize can resize:"
24420 msgstr ""
24421
24422 #. type: textblock
24423 #: ../resize/virt-resize.pod:367
24424 msgid "ext2, ext3 and ext4 filesystems."
24425 msgstr ""
24426
24427 #. type: textblock
24428 #: ../resize/virt-resize.pod:371
24429 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24430 msgstr ""
24431
24432 #. type: textblock
24433 #: ../resize/virt-resize.pod:373
24434 msgid ""
24435 "The filesystem must have been shut down consistently last time it was used.  "
24436 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24437 "consistency check, so at the first boot after resizing Windows will check "
24438 "the disk."
24439 msgstr ""
24440
24441 #. type: textblock
24442 #: ../resize/virt-resize.pod:380
24443 msgid ""
24444 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24445 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24446 "resize LVs as desired after boot."
24447 msgstr ""
24448
24449 #. type: textblock
24450 #: ../resize/virt-resize.pod:386
24451 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24452 msgstr ""
24453
24454 #. type: textblock
24455 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
24456 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24457 msgstr ""
24458
24459 #. type: =item
24460 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:130
24461 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24462 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24463 msgid "B<--format> raw"
24464 msgstr ""
24465
24466 #. type: textblock
24467 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:134
24468 msgid ""
24469 "Specify the format of the input disk image.  If this flag is not given then "
24470 "it is auto-detected from the image itself."
24471 msgstr ""
24472
24473 #. type: textblock
24474 #: ../resize/virt-resize.pod:400
24475 msgid ""
24476 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24477 "AND NON-SPARSE RAW FORMATS>."
24478 msgstr ""
24479
24480 #. type: =item
24481 #: ../resize/virt-resize.pod:403
24482 msgid "B<--ignore part>"
24483 msgstr ""
24484
24485 #. type: textblock
24486 #: ../resize/virt-resize.pod:405
24487 msgid ""
24488 "Ignore the named partition.  Effectively this means the partition is "
24489 "allocated on the destination disk, but the content is not copied across from "
24490 "the source disk.  The content of the partition will be blank (all zero "
24491 "bytes)."
24492 msgstr ""
24493
24494 #. type: =item
24495 #: ../resize/virt-resize.pod:412
24496 msgid "B<--LV-expand logvol>"
24497 msgstr ""
24498
24499 #. type: textblock
24500 #: ../resize/virt-resize.pod:414
24501 msgid ""
24502 "This takes the logical volume and, as a final step, expands it to fill all "
24503 "the space available in its volume group.  A typical usage, assuming a Linux "
24504 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24505 "lv_root> would be:"
24506 msgstr ""
24507
24508 #. type: verbatim
24509 #: ../resize/virt-resize.pod:419
24510 #, no-wrap
24511 msgid ""
24512 " virt-resize indisk outdisk \\\n"
24513 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24514 "\n"
24515 msgstr ""
24516
24517 #. type: textblock
24518 #: ../resize/virt-resize.pod:422
24519 msgid ""
24520 "This would first expand the partition (and PV), and then expand the root "
24521 "device to fill the extra space in the PV."
24522 msgstr ""
24523
24524 #. type: textblock
24525 #: ../resize/virt-resize.pod:425
24526 msgid ""
24527 "The contents of the LV are also resized if virt-resize knows how to do "
24528 "that.  You can stop virt-resize from trying to expand the content by using "
24529 "the option I<--no-expand-content>."
24530 msgstr ""
24531
24532 #. type: textblock
24533 #: ../resize/virt-resize.pod:429
24534 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24535 msgstr ""
24536
24537 #. type: textblock
24538 #: ../resize/virt-resize.pod:431
24539 msgid ""
24540 "You can give this option multiple times, I<but> it doesn't make sense to do "
24541 "this unless the logical volumes you specify are all in different volume "
24542 "groups."
24543 msgstr ""
24544
24545 #. type: =item
24546 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:152
24547 msgid "B<--machine-readable>"
24548 msgstr ""
24549
24550 #. type: textblock
24551 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:154
24552 msgid ""
24553 "This option is used to make the output more machine friendly when being "
24554 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24555 msgstr ""
24556
24557 #. type: =item
24558 #: ../resize/virt-resize.pod:443
24559 msgid "B<--dryrun>"
24560 msgstr ""
24561
24562 #. type: textblock
24563 #: ../resize/virt-resize.pod:445
24564 msgid "Print a summary of what would be done, but don't do anything."
24565 msgstr ""
24566
24567 #. type: =item
24568 #: ../resize/virt-resize.pod:447
24569 msgid "B<--no-copy-boot-loader>"
24570 msgstr ""
24571
24572 #. type: textblock
24573 #: ../resize/virt-resize.pod:449
24574 msgid ""
24575 "By default, virt-resize copies over some sectors at the start of the disk "
24576 "(up to the beginning of the first partition).  Commonly these sectors "
24577 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24578 "in order for the guest to boot correctly."
24579 msgstr ""
24580
24581 #. type: textblock
24582 #: ../resize/virt-resize.pod:454
24583 msgid ""
24584 "If you specify this flag, then this initial copy is not done.  You may need "
24585 "to reinstall the boot loader in this case."
24586 msgstr ""
24587
24588 #. type: =item
24589 #: ../resize/virt-resize.pod:457
24590 msgid "B<--no-extra-partition>"
24591 msgstr ""
24592
24593 #. type: textblock
24594 #: ../resize/virt-resize.pod:459
24595 msgid ""
24596 "By default, virt-resize creates an extra partition if there is any extra, "
24597 "unused space after all resizing has happened.  Use this option to prevent "
24598 "the extra partition from being created.  If you do this then the extra space "
24599 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24600 "tool in the guest."
24601 msgstr ""
24602
24603 #. type: textblock
24604 #: ../resize/virt-resize.pod:465
24605 msgid ""
24606 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24607 "will be created."
24608 msgstr ""
24609
24610 #. type: =item
24611 #: ../resize/virt-resize.pod:468
24612 msgid "B<--no-expand-content>"
24613 msgstr ""
24614
24615 #. type: textblock
24616 #: ../resize/virt-resize.pod:470
24617 msgid ""
24618 "By default, virt-resize will try to expand the direct contents of "
24619 "partitions, if it knows how (see I<--expand> option above)."
24620 msgstr ""
24621
24622 #. type: textblock
24623 #: ../resize/virt-resize.pod:473
24624 msgid ""
24625 "If you give the I<--no-expand-content> option then virt-resize will not "
24626 "attempt this."
24627 msgstr ""
24628
24629 #. type: =item
24630 #: ../resize/virt-resize.pod:476
24631 msgid "B<--ntfsresize-force>"
24632 msgstr ""
24633
24634 #. type: textblock
24635 #: ../resize/virt-resize.pod:478
24636 msgid ""
24637 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24638 "the NTFS disk is marked as needing a consistency check.  You have to use "
24639 "this option if you want to resize a Windows guest multiple times without "
24640 "booting into Windows between each resize."
24641 msgstr ""
24642
24643 #. type: =item
24644 #: ../resize/virt-resize.pod:484
24645 msgid "B<--output-format> raw"
24646 msgstr ""
24647
24648 #. type: textblock
24649 #: ../resize/virt-resize.pod:486
24650 msgid ""
24651 "Specify the format of the output disk image.  If this flag is not given then "
24652 "it is auto-detected from the image itself."
24653 msgstr ""
24654
24655 #. type: textblock
24656 #: ../resize/virt-resize.pod:492
24657 msgid ""
24658 "Note that this option I<does not create> the output format.  This option "
24659 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24660 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
24661 "SPARSE RAW FORMATS>."
24662 msgstr ""
24663
24664 #. type: textblock
24665 #: ../resize/virt-resize.pod:501
24666 msgid "Don't print the summary."
24667 msgstr ""
24668
24669 #. type: =item
24670 #: ../resize/virt-resize.pod:503
24671 msgid "B<--resize part=size>"
24672 msgstr ""
24673
24674 #. type: textblock
24675 #: ../resize/virt-resize.pod:505
24676 msgid ""
24677 "Resize the named partition (expanding or shrinking it) so that it has the "
24678 "given size."
24679 msgstr ""
24680
24681 #. type: textblock
24682 #: ../resize/virt-resize.pod:508
24683 msgid ""
24684 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24685 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24686 "size; or as a relative number or percentage.  For example:"
24687 msgstr ""
24688
24689 #. type: verbatim
24690 #: ../resize/virt-resize.pod:514
24691 #, no-wrap
24692 msgid ""
24693 " --resize /dev/sda2=10G\n"
24694 "\n"
24695 msgstr ""
24696
24697 #. type: verbatim
24698 #: ../resize/virt-resize.pod:516
24699 #, no-wrap
24700 msgid ""
24701 " --resize /dev/sda4=90%\n"
24702 "\n"
24703 msgstr ""
24704
24705 #. type: verbatim
24706 #: ../resize/virt-resize.pod:518
24707 #, no-wrap
24708 msgid ""
24709 " --resize /dev/sda2=+1G\n"
24710 "\n"
24711 msgstr ""
24712
24713 #. type: verbatim
24714 #: ../resize/virt-resize.pod:520
24715 #, no-wrap
24716 msgid ""
24717 " --resize /dev/sda2=-200M\n"
24718 "\n"
24719 msgstr ""
24720
24721 #. type: verbatim
24722 #: ../resize/virt-resize.pod:522
24723 #, no-wrap
24724 msgid ""
24725 " --resize /dev/sda1=+128K\n"
24726 "\n"
24727 msgstr ""
24728
24729 #. type: verbatim
24730 #: ../resize/virt-resize.pod:524
24731 #, no-wrap
24732 msgid ""
24733 " --resize /dev/sda1=+10%\n"
24734 "\n"
24735 msgstr ""
24736
24737 #. type: verbatim
24738 #: ../resize/virt-resize.pod:526
24739 #, no-wrap
24740 msgid ""
24741 " --resize /dev/sda1=-10%\n"
24742 "\n"
24743 msgstr ""
24744
24745 #. type: textblock
24746 #: ../resize/virt-resize.pod:528
24747 msgid ""
24748 "You can increase the size of any partition.  Virt-resize will expand the "
24749 "direct content of the partition if it knows how (see I<--expand> below)."
24750 msgstr ""
24751
24752 #. type: textblock
24753 #: ../resize/virt-resize.pod:532
24754 msgid ""
24755 "You can only I<decrease> the size of partitions that contain filesystems or "
24756 "PVs which have already been shrunk.  Virt-resize will check this has been "
24757 "done before proceeding, or else will print an error (see also I<--resize-"
24758 "force>)."
24759 msgstr ""
24760
24761 #. type: =item
24762 #: ../resize/virt-resize.pod:539
24763 msgid "B<--resize-force part=size>"
24764 msgstr ""
24765
24766 #. type: textblock
24767 #: ../resize/virt-resize.pod:541
24768 msgid ""
24769 "This is the same as I<--resize> except that it will let you decrease the "
24770 "size of any partition.  Generally this means you will lose any data which "
24771 "was at the end of the partition you shrink, but you may not care about that "
24772 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24773 "as a swap partition)."
24774 msgstr ""
24775
24776 #. type: textblock
24777 #: ../resize/virt-resize.pod:547
24778 msgid "See also the I<--ignore> option."
24779 msgstr ""
24780
24781 #. type: =item
24782 #: ../resize/virt-resize.pod:549
24783 msgid "B<--shrink part>"
24784 msgstr ""
24785
24786 #. type: textblock
24787 #: ../resize/virt-resize.pod:551
24788 msgid ""
24789 "Shrink the named partition until the overall disk image fits in the "
24790 "destination.  The named partition B<must> contain a filesystem or PV which "
24791 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24792 "online tools).  Virt-resize will check this and give an error if it has not "
24793 "been done."
24794 msgstr ""
24795
24796 #. type: textblock
24797 #: ../resize/virt-resize.pod:557
24798 msgid ""
24799 "The amount by which the overall disk must be shrunk (after carrying out all "
24800 "other operations requested by the user) is called the \"deficit\".  For "
24801 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24802 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24803 "would give an error unless the user specified a partition to shrink and that "
24804 "partition had more than a gigabyte of free space."
24805 msgstr ""
24806
24807 #. type: =head1
24808 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:182
24809 msgid "MACHINE READABLE OUTPUT"
24810 msgstr ""
24811
24812 #. type: textblock
24813 #: ../resize/virt-resize.pod:577
24814 msgid ""
24815 "The I<--machine-readable> option can be used to make the output more machine "
24816 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24817 "etc."
24818 msgstr ""
24819
24820 #. type: textblock
24821 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:188
24822 msgid "There are two ways to use this option."
24823 msgstr ""
24824
24825 #. type: textblock
24826 #: ../resize/virt-resize.pod:583
24827 msgid ""
24828 "Firstly use the option on its own to query the capabilities of the virt-"
24829 "resize binary.  Typical output looks like this:"
24830 msgstr ""
24831
24832 #. type: verbatim
24833 #: ../resize/virt-resize.pod:586
24834 #, no-wrap
24835 msgid ""
24836 " $ virt-resize --machine-readable\n"
24837 " virt-resize\n"
24838 " ntfsresize-force\n"
24839 " 32bitok\n"
24840 " ntfs\n"
24841 " btrfs\n"
24842 "\n"
24843 msgstr ""
24844
24845 #. type: textblock
24846 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:198
24847 msgid ""
24848 "A list of features is printed, one per line, and the program exits with "
24849 "status 0."
24850 msgstr ""
24851
24852 #. type: textblock
24853 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:201
24854 msgid ""
24855 "Secondly use the option in conjunction with other options to make the "
24856 "regular program output more machine friendly."
24857 msgstr ""
24858
24859 #. type: textblock
24860 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:204
24861 msgid "At the moment this means:"
24862 msgstr ""
24863
24864 #. type: textblock
24865 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:210
24866 msgid ""
24867 "Progress bar messages can be parsed from stdout by looking for this regular "
24868 "expression:"
24869 msgstr ""
24870
24871 #. type: verbatim
24872 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:213
24873 #, no-wrap
24874 msgid ""
24875 " ^[0-9]+/[0-9]+$\n"
24876 "\n"
24877 msgstr ""
24878
24879 #. type: textblock
24880 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:217
24881 msgid ""
24882 "The calling program should treat messages sent to stdout (except for "
24883 "progress bar messages) as status messages.  They can be logged and/or "
24884 "displayed to the user."
24885 msgstr ""
24886
24887 #. type: textblock
24888 #: ../resize/virt-resize.pod:618
24889 msgid ""
24890 "The calling program should treat messages sent to stderr as error messages.  "
24891 "In addition, virt-resize exits with a non-zero status code if there was a "
24892 "fatal error."
24893 msgstr ""
24894
24895 #. type: textblock
24896 #: ../resize/virt-resize.pod:624
24897 msgid ""
24898 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24899 "readable> option and will return an error."
24900 msgstr ""
24901
24902 #. type: =head2
24903 #: ../resize/virt-resize.pod:629
24904 msgid "\"Partition 1 does not end on cylinder boundary.\""
24905 msgstr ""
24906
24907 #. type: textblock
24908 #: ../resize/virt-resize.pod:631
24909 msgid ""
24910 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24911 "alignment> parameter).  Usually this means the partitions will not be "
24912 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24913 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24914 "drives.  Alignment of partitions to cylinders is not required by any modern "
24915 "operating system."
24916 msgstr ""
24917
24918 #. type: =head2
24919 #: ../resize/virt-resize.pod:638
24920 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24921 msgstr ""
24922
24923 #. type: textblock
24924 #: ../resize/virt-resize.pod:640
24925 msgid ""
24926 "In Windows Vista and later versions, Microsoft switched to using a separate "
24927 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24928 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24929 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24930 "the second partition (ie. C: drive)  should work."
24931 msgstr ""
24932
24933 #. type: textblock
24934 #: ../resize/virt-resize.pod:647
24935 msgid ""
24936 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24937 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24938 "it find errors) is nothing to worry about."
24939 msgstr ""
24940
24941 #. type: =head2
24942 #: ../resize/virt-resize.pod:651
24943 msgid "GUEST BOOT STUCK AT \"GRUB\""
24944 msgstr ""
24945
24946 #. type: textblock
24947 #: ../resize/virt-resize.pod:653
24948 msgid ""
24949 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24950 "printing C<GRUB> on the console, try reinstalling grub."
24951 msgstr ""
24952
24953 #. type: verbatim
24954 #: ../resize/virt-resize.pod:656
24955 #, no-wrap
24956 msgid ""
24957 " guestfish -i -a newdisk\n"
24958 " ><fs> cat /boot/grub/device.map\n"
24959 " # check the contents of this file are sensible or\n"
24960 " # edit the file if necessary\n"
24961 " ><fs> grub-install / /dev/vda\n"
24962 " ><fs> exit\n"
24963 "\n"
24964 msgstr ""
24965
24966 #. type: textblock
24967 #: ../resize/virt-resize.pod:663
24968 msgid ""
24969 "For more flexible guest reconfiguration, including if you need to specify "
24970 "other parameters to grub-install, use L<virt-rescue(1)>."
24971 msgstr ""
24972
24973 #. type: =head1
24974 #: ../resize/virt-resize.pod:666
24975 msgid "ALTERNATIVE TOOLS"
24976 msgstr ""
24977
24978 #. type: textblock
24979 #: ../resize/virt-resize.pod:668
24980 msgid ""
24981 "There are several proprietary tools for resizing partitions.  We won't "
24982 "mention any here."
24983 msgstr ""
24984
24985 #. type: textblock
24986 #: ../resize/virt-resize.pod:671
24987 msgid ""
24988 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24989 "operations on disk images.  They can resize and move partitions, but I don't "
24990 "think they can do anything with the contents, and they certainly don't "
24991 "understand LVM."
24992 msgstr ""
24993
24994 #. type: textblock
24995 #: ../resize/virt-resize.pod:676
24996 msgid ""
24997 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24998 "but at a much lower level.  You will probably end up hand-calculating sector "
24999 "offsets, which is something that virt-resize was designed to avoid.  If you "
25000 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25001 "I<--debug> flag."
25002 msgstr ""
25003
25004 #. type: textblock
25005 #: ../resize/virt-resize.pod:696
25006 msgid ""
25007 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
25008 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
25009 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
25010 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
25011 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
25012 msgstr ""
25013
25014 #. type: textblock
25015 #: ../ruby/examples/guestfs-ruby.pod:5
25016 msgid "guestfs-ruby - How to use libguestfs from Ruby"
25017 msgstr ""
25018
25019 #. type: verbatim
25020 #: ../ruby/examples/guestfs-ruby.pod:9
25021 #, no-wrap
25022 msgid ""
25023 " require 'guestfs'\n"
25024 " g = Guestfs::Guestfs.new()\n"
25025 " g.add_drive_opts(\"disk.img\",\n"
25026 "                  :readonly => 1, :format => \"raw\")\n"
25027 " g.launch()\n"
25028 "\n"
25029 msgstr ""
25030
25031 #. type: textblock
25032 #: ../ruby/examples/guestfs-ruby.pod:17
25033 msgid ""
25034 "This manual page documents how to call libguestfs from the Ruby programming "
25035 "language.  This page just documents the differences from the C API and gives "
25036 "some examples.  If you are not familiar with using libguestfs, you also need "
25037 "to read L<guestfs(3)>."
25038 msgstr ""
25039
25040 #. type: textblock
25041 #: ../ruby/examples/guestfs-ruby.pod:24
25042 msgid ""
25043 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
25044 "This has a single parameter which is the error message (a string)."
25045 msgstr ""
25046
25047 #. type: textblock
25048 #: ../ruby/examples/guestfs-ruby.pod:38
25049 msgid ""
25050 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
25051 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
25052 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
25053 msgstr ""
25054
25055 #. type: textblock
25056 #: ../sparsify/virt-sparsify.pod:5
25057 msgid "virt-sparsify - Make a virtual machine disk sparse"
25058 msgstr ""
25059
25060 #. type: verbatim
25061 #: ../sparsify/virt-sparsify.pod:9
25062 #, no-wrap
25063 msgid ""
25064 " virt-sparsify [--options] indisk outdisk\n"
25065 "\n"
25066 msgstr ""
25067
25068 #. type: textblock
25069 #: ../sparsify/virt-sparsify.pod:13
25070 msgid ""
25071 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25072 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
25073 "the disk image can be converted back to free space on the host."
25074 msgstr ""
25075
25076 #. type: textblock
25077 #: ../sparsify/virt-sparsify.pod:18
25078 msgid ""
25079 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25080 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25081 msgstr ""
25082
25083 #. type: textblock
25084 #: ../sparsify/virt-sparsify.pod:21
25085 msgid ""
25086 "Virt-sparsify can also convert between some disk formats, for example "
25087 "converting a raw disk image to a thin-provisioned qcow2 image."
25088 msgstr ""
25089
25090 #. type: textblock
25091 #: ../sparsify/virt-sparsify.pod:24
25092 msgid ""
25093 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25094 "machines.  If a virtual machine has more than one attached disk, you must "
25095 "sparsify each one separately."
25096 msgstr ""
25097
25098 #. type: =head2
25099 #: ../sparsify/virt-sparsify.pod:28
25100 msgid "IMPORTANT LIMITATIONS"
25101 msgstr ""
25102
25103 #. type: textblock
25104 #: ../sparsify/virt-sparsify.pod:34
25105 msgid ""
25106 "Virt-sparsify does not do in-place modifications.  It copies from a source "
25107 "image to a destination image, leaving the source unchanged.  I<Check that "
25108 "the sparsification was successful before deleting the source image>."
25109 msgstr ""
25110
25111 #. type: textblock
25112 #: ../sparsify/virt-sparsify.pod:41
25113 msgid "The virtual machine I<must be shut down> before using this tool."
25114 msgstr ""
25115
25116 #. type: textblock
25117 #: ../sparsify/virt-sparsify.pod:45
25118 msgid ""
25119 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25120 "(1 temporary copy + 1 destination image).  This is in the worst case and "
25121 "usually much less space is required."
25122 msgstr ""
25123
25124 #. type: textblock
25125 #: ../sparsify/virt-sparsify.pod:51
25126 msgid ""
25127 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
25128 msgstr ""
25129
25130 #. type: textblock
25131 #: ../sparsify/virt-sparsify.pod:56
25132 msgid "Virt-sparsify cannot handle encrypted disks."
25133 msgstr ""
25134
25135 #. type: textblock
25136 #: ../sparsify/virt-sparsify.pod:60
25137 msgid ""
25138 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
25139 "this space is often used for critical items like bootloaders so it's not "
25140 "really unused."
25141 msgstr ""
25142
25143 #. type: textblock
25144 #: ../sparsify/virt-sparsify.pod:66
25145 msgid ""
25146 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
25147 "to do this unless we can be sure there is no hibernation data, so at the "
25148 "moment swap partitions are ignored."
25149 msgstr ""
25150
25151 #. type: textblock
25152 #: ../sparsify/virt-sparsify.pod:72
25153 msgid ""
25154 "You may also want to read the manual pages for the associated tools L<virt-"
25155 "filesystems(1)> and L<virt-df(1)> before starting."
25156 msgstr ""
25157
25158 #. type: textblock
25159 #: ../sparsify/virt-sparsify.pod:77
25160 msgid "Typical usage is:"
25161 msgstr ""
25162
25163 #. type: verbatim
25164 #: ../sparsify/virt-sparsify.pod:79
25165 #, no-wrap
25166 msgid ""
25167 " virt-sparsify indisk outdisk\n"
25168 "\n"
25169 msgstr ""
25170
25171 #. type: textblock
25172 #: ../sparsify/virt-sparsify.pod:81
25173 msgid ""
25174 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25175 "is created, or overwritten if it already exists.  The format of the input "
25176 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25177 msgstr ""
25178
25179 #. type: textblock
25180 #: ../sparsify/virt-sparsify.pod:86
25181 msgid "To convert between formats, use the I<--convert> option:"
25182 msgstr ""
25183
25184 #. type: verbatim
25185 #: ../sparsify/virt-sparsify.pod:88
25186 #, no-wrap
25187 msgid ""
25188 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25189 "\n"
25190 msgstr ""
25191
25192 #. type: textblock
25193 #: ../sparsify/virt-sparsify.pod:90
25194 msgid ""
25195 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25196 "can find within the source disk image.  You can get it to ignore (don't zero "
25197 "free space on) certain filesystems by doing:"
25198 msgstr ""
25199
25200 #. type: verbatim
25201 #: ../sparsify/virt-sparsify.pod:94
25202 #, no-wrap
25203 msgid ""
25204 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25205 "\n"
25206 msgstr ""
25207
25208 #. type: textblock
25209 #: ../sparsify/virt-sparsify.pod:96
25210 msgid ""
25211 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25212 msgstr ""
25213
25214 #. type: =item
25215 #: ../sparsify/virt-sparsify.pod:107
25216 msgid "B<--convert> raw"
25217 msgstr ""
25218
25219 #. type: =item
25220 #: ../sparsify/virt-sparsify.pod:109
25221 msgid "B<--convert> qcow2"
25222 msgstr ""
25223
25224 #. type: =item
25225 #: ../sparsify/virt-sparsify.pod:111
25226 msgid "B<--convert> [other formats]"
25227 msgstr ""
25228
25229 #. type: textblock
25230 #: ../sparsify/virt-sparsify.pod:113
25231 msgid ""
25232 "Use C<output-format> as the format for the destination image.  If this is "
25233 "not specified, then the input format is used."
25234 msgstr ""
25235
25236 #. type: textblock
25237 #: ../sparsify/virt-sparsify.pod:116
25238 msgid ""
25239 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
25240 msgstr ""
25241
25242 #. type: textblock
25243 #: ../sparsify/virt-sparsify.pod:118
25244 msgid ""
25245 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25246 "C<vmdk>, but support for other formats is reliant on qemu."
25247 msgstr ""
25248
25249 #. type: textblock
25250 #: ../sparsify/virt-sparsify.pod:121
25251 msgid ""
25252 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25253 "sparsify doesn't need to try to guess the input format."
25254 msgstr ""
25255
25256 #. type: textblock
25257 #: ../sparsify/virt-sparsify.pod:126
25258 msgid ""
25259 "Debug garbage collection and memory allocation.  This is only useful when "
25260 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
25261 msgstr ""
25262
25263 #. type: =item
25264 #: ../sparsify/virt-sparsify.pod:132
25265 msgid "B<--format> qcow2"
25266 msgstr ""
25267
25268 #. type: =item
25269 #: ../sparsify/virt-sparsify.pod:140
25270 msgid "B<--ignore> filesystem"
25271 msgstr ""
25272
25273 #. type: =item
25274 #: ../sparsify/virt-sparsify.pod:142
25275 msgid "B<--ignore> volgroup"
25276 msgstr ""
25277
25278 #. type: textblock
25279 #: ../sparsify/virt-sparsify.pod:144
25280 msgid ""
25281 "Ignore the named filesystem.  Free space on the filesystem will not be "
25282 "zeroed, but existing blocks of zeroes will still be sparsified."
25283 msgstr ""
25284
25285 #. type: textblock
25286 #: ../sparsify/virt-sparsify.pod:147
25287 msgid ""
25288 "In the second form, this ignores the named volume group.  Use the volume "
25289 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25290 msgstr ""
25291
25292 #. type: textblock
25293 #: ../sparsify/virt-sparsify.pod:162
25294 msgid "This disables progress bars and other unnecessary output."
25295 msgstr ""
25296
25297 #. type: textblock
25298 #: ../sparsify/virt-sparsify.pod:184
25299 msgid ""
25300 "The I<--machine-readable> option can be used to make the output more machine "
25301 "friendly, which is useful when calling virt-sparsify from other programs, "
25302 "GUIs etc."
25303 msgstr ""
25304
25305 #. type: textblock
25306 #: ../sparsify/virt-sparsify.pod:190
25307 msgid ""
25308 "Firstly use the option on its own to query the capabilities of the virt-"
25309 "sparsify binary.  Typical output looks like this:"
25310 msgstr ""
25311
25312 #. type: verbatim
25313 #: ../sparsify/virt-sparsify.pod:193
25314 #, no-wrap
25315 msgid ""
25316 " $ virt-sparsify --machine-readable\n"
25317 " virt-sparsify\n"
25318 " ntfs\n"
25319 " btrfs\n"
25320 "\n"
25321 msgstr ""
25322
25323 #. type: textblock
25324 #: ../sparsify/virt-sparsify.pod:223
25325 msgid ""
25326 "The calling program should treat messages sent to stderr as error messages.  "
25327 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25328 "fatal error."
25329 msgstr ""
25330
25331 #. type: textblock
25332 #: ../sparsify/virt-sparsify.pod:229
25333 msgid ""
25334 "All versions of virt-sparsify have supported the I<--machine-readable> "
25335 "option."
25336 msgstr ""
25337
25338 #. type: textblock
25339 #: ../sparsify/virt-sparsify.pod:243
25340 msgid ""
25341 "Location of the temporary directory used for the potentially large temporary "
25342 "overlay file."
25343 msgstr ""
25344
25345 #. type: textblock
25346 #: ../sparsify/virt-sparsify.pod:246
25347 msgid ""
25348 "You should ensure there is enough free space in the worst case for a full "
25349 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25350 "to another directory that has enough space."
25351 msgstr ""
25352
25353 #. type: textblock
25354 #: ../sparsify/virt-sparsify.pod:250
25355 msgid "This defaults to C</tmp>."
25356 msgstr ""
25357
25358 #. type: textblock
25359 #: ../sparsify/virt-sparsify.pod:254
25360 msgid ""
25361 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25362 msgstr ""
25363
25364 #. type: textblock
25365 #: ../sparsify/virt-sparsify.pod:258
25366 msgid ""
25367 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25368 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25369 "(1)>, L<http://libguestfs.org/>."
25370 msgstr ""
25371
25372 #. type: =head2
25373 #: ../src/guestfs-actions.pod:1
25374 msgid "guestfs_add_cdrom"
25375 msgstr ""
25376
25377 #. type: verbatim
25378 #: ../src/guestfs-actions.pod:3
25379 #, no-wrap
25380 msgid ""
25381 " int\n"
25382 " guestfs_add_cdrom (guestfs_h *g,\n"
25383 "                    const char *filename);\n"
25384 "\n"
25385 msgstr ""
25386
25387 #. type: textblock
25388 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25389 #: ../src/guestfs-actions.pod:323
25390 msgid ""
25391 "I<This function is deprecated.> In new code, use the L</"
25392 "guestfs_add_drive_opts> call instead."
25393 msgstr ""
25394
25395 #. type: textblock
25396 #: ../src/guestfs-actions.pod:24
25397 msgid ""
25398 "This call checks for the existence of C<filename>.  This stops you from "
25399 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25400 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25401 "instead."
25402 msgstr ""
25403
25404 #. type: textblock
25405 #: ../src/guestfs-actions.pod:31
25406 msgid ""
25407 "If you just want to add an ISO file (often you use this as an efficient way "
25408 "to transfer large files into the guest), then you should probably use "
25409 "C<guestfs_add_drive_ro> instead."
25410 msgstr ""
25411
25412 #. type: textblock
25413 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
25414 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
25415 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
25416 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
25417 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
25418 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
25419 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
25420 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
25421 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
25422 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
25423 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
25424 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
25425 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
25426 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
25427 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
25428 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
25429 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
25430 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
25431 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
25432 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
25433 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
25434 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
25435 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
25436 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
25437 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
25438 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
25439 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4317
25440 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4344
25441 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4373
25442 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4481
25443 #: ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4518
25444 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
25445 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
25446 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4666
25447 #: ../src/guestfs-actions.pod:4678 ../src/guestfs-actions.pod:4711
25448 #: ../src/guestfs-actions.pod:4727 ../src/guestfs-actions.pod:4740
25449 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4772
25450 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4885
25451 #: ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:4949
25452 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4985
25453 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5015
25454 #: ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5046
25455 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5088
25456 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5224
25457 #: ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5274
25458 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5305
25459 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:5335
25460 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5365
25461 #: ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423
25462 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5482
25463 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5513
25464 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5615
25465 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5705
25466 #: ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5750
25467 #: ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5905
25468 #: ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5984
25469 #: ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6054
25470 #: ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6137
25471 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6164
25472 #: ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6472
25473 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6505
25474 #: ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6531
25475 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557
25476 #: ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6591
25477 #: ../src/guestfs-actions.pod:6610 ../src/guestfs-actions.pod:6629
25478 #: ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6677
25479 #: ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6718
25480 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6758
25481 #: ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6794
25482 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6841
25483 #: ../src/guestfs-actions.pod:6865 ../src/guestfs-actions.pod:6884
25484 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6924
25485 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6958
25486 #: ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7021
25487 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7078
25488 #: ../src/guestfs-actions.pod:7190 ../src/guestfs-actions.pod:7311
25489 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7336
25490 #: ../src/guestfs-actions.pod:7349 ../src/guestfs-actions.pod:7371
25491 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7397
25492 #: ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7425
25493 #: ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7501
25494 #: ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7533
25495 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
25496 #: ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7619
25497 #: ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7674
25498 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7705
25499 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7775
25500 #: ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7906
25501 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7975
25502 #: ../src/guestfs-actions.pod:7988 ../src/guestfs-actions.pod:8033
25503 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8129
25504 #: ../src/guestfs-actions.pod:8149 ../src/guestfs-actions.pod:8182
25505 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8269
25506 #: ../src/guestfs-actions.pod:8295
25507 msgid "This function returns 0 on success or -1 on error."
25508 msgstr ""
25509
25510 #. type: textblock
25511 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
25512 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
25513 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
25514 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
25515 #: ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:6679
25516 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6945
25517 #: ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7552
25518 #: ../src/guestfs-actions.pod:8075
25519 msgid "(Added in 0.3)"
25520 msgstr ""
25521
25522 #. type: =head2
25523 #: ../src/guestfs-actions.pod:41
25524 msgid "guestfs_add_domain"
25525 msgstr ""
25526
25527 #. type: verbatim
25528 #: ../src/guestfs-actions.pod:43
25529 #, no-wrap
25530 msgid ""
25531 " int\n"
25532 " guestfs_add_domain (guestfs_h *g,\n"
25533 "                     const char *dom,\n"
25534 "                     ...);\n"
25535 "\n"
25536 msgstr ""
25537
25538 #. type: textblock
25539 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
25540 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
25541 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
25542 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
25543 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
25544 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5409
25545 #: ../src/guestfs-actions.pod:5626
25546 msgid ""
25547 "You may supply a list of optional arguments to this call.  Use zero or more "
25548 "of the following pairs of parameters, and terminate the list with C<-1> on "
25549 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25550 msgstr ""
25551
25552 #. type: verbatim
25553 #: ../src/guestfs-actions.pod:53
25554 #, no-wrap
25555 msgid ""
25556 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25557 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25558 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25559 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25560 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25561 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25562 "\n"
25563 msgstr ""
25564
25565 #. type: textblock
25566 #: ../src/guestfs-actions.pod:60
25567 msgid ""
25568 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25569 "It works by connecting to libvirt, requesting the domain and domain XML from "
25570 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25571 "one."
25572 msgstr ""
25573
25574 #. type: textblock
25575 #: ../src/guestfs-actions.pod:141
25576 msgid ""
25577 "The other optional parameters are passed directly through to "
25578 "C<guestfs_add_drive_opts>."
25579 msgstr ""
25580
25581 #. type: textblock
25582 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
25583 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
25584 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
25585 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
25586 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
25587 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
25588 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
25589 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
25590 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
25591 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5802
25592 #: ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6234
25593 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:7660
25594 #: ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8099
25595 #: ../src/guestfs-actions.pod:8112
25596 msgid "On error this function returns -1."
25597 msgstr ""
25598
25599 #. type: textblock
25600 #: ../src/guestfs-actions.pod:146
25601 msgid "(Added in 1.7.4)"
25602 msgstr ""
25603
25604 #. type: =head2
25605 #: ../src/guestfs-actions.pod:148
25606 msgid "guestfs_add_domain_va"
25607 msgstr ""
25608
25609 #. type: verbatim
25610 #: ../src/guestfs-actions.pod:150
25611 #, no-wrap
25612 msgid ""
25613 " int\n"
25614 " guestfs_add_domain_va (guestfs_h *g,\n"
25615 "                        const char *dom,\n"
25616 "                        va_list args);\n"
25617 "\n"
25618 msgstr ""
25619
25620 #. type: textblock
25621 #: ../src/guestfs-actions.pod:155
25622 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25623 msgstr ""
25624
25625 #. type: textblock
25626 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
25627 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
25628 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
25629 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
25630 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
25631 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
25632 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
25633 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
25634 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
25635 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
25636 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5177
25637 #: ../src/guestfs-actions.pod:5437 ../src/guestfs-actions.pod:5449
25638 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:5686
25639 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25640 msgstr ""
25641
25642 #. type: =head2
25643 #: ../src/guestfs-actions.pod:159
25644 msgid "guestfs_add_domain_argv"
25645 msgstr ""
25646
25647 #. type: verbatim
25648 #: ../src/guestfs-actions.pod:161
25649 #, no-wrap
25650 msgid ""
25651 " int\n"
25652 " guestfs_add_domain_argv (guestfs_h *g,\n"
25653 "                          const char *dom,\n"
25654 "                          const struct guestfs_add_domain_argv *optargs);\n"
25655 "\n"
25656 msgstr ""
25657
25658 #. type: textblock
25659 #: ../src/guestfs-actions.pod:166
25660 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25661 msgstr ""
25662
25663 #. type: =head2
25664 #: ../src/guestfs-actions.pod:170
25665 msgid "guestfs_add_drive"
25666 msgstr ""
25667
25668 #. type: verbatim
25669 #: ../src/guestfs-actions.pod:172
25670 #, no-wrap
25671 msgid ""
25672 " int\n"
25673 " guestfs_add_drive (guestfs_h *g,\n"
25674 "                    const char *filename);\n"
25675 "\n"
25676 msgstr ""
25677
25678 #. type: textblock
25679 #: ../src/guestfs-actions.pod:176
25680 msgid ""
25681 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25682 "optional parameters, so the disk is added writable, with the format being "
25683 "detected automatically."
25684 msgstr ""
25685
25686 #. type: textblock
25687 #: ../src/guestfs-actions.pod:180
25688 msgid ""
25689 "Automatic detection of the format opens you up to a potential security hole "
25690 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25691 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25692 "you should think about replacing calls to this function with calls to "
25693 "C<guestfs_add_drive_opts>, and specifying the format."
25694 msgstr ""
25695
25696 #. type: =head2
25697 #: ../src/guestfs-actions.pod:191
25698 msgid "guestfs_add_drive_opts"
25699 msgstr ""
25700
25701 #. type: verbatim
25702 #: ../src/guestfs-actions.pod:193
25703 #, no-wrap
25704 msgid ""
25705 " int\n"
25706 " guestfs_add_drive_opts (guestfs_h *g,\n"
25707 "                         const char *filename,\n"
25708 "                         ...);\n"
25709 "\n"
25710 msgstr ""
25711
25712 #. type: verbatim
25713 #: ../src/guestfs-actions.pod:203
25714 #, no-wrap
25715 msgid ""
25716 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25717 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25718 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25719 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25720 "\n"
25721 msgstr ""
25722
25723 #. type: textblock
25724 #: ../src/guestfs-actions.pod:233
25725 msgid ""
25726 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25727 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25728 "Possible formats include C<raw> and C<qcow2>."
25729 msgstr ""
25730
25731 #. type: textblock
25732 #: ../src/guestfs-actions.pod:244
25733 msgid ""
25734 "This rarely-used option lets you emulate the behaviour of the deprecated "
25735 "C<guestfs_add_drive_with_if> call (q.v.)"
25736 msgstr ""
25737
25738 #. type: textblock
25739 #: ../src/guestfs-actions.pod:256
25740 msgid "(Added in 1.5.23)"
25741 msgstr ""
25742
25743 #. type: =head2
25744 #: ../src/guestfs-actions.pod:258
25745 msgid "guestfs_add_drive_opts_va"
25746 msgstr ""
25747
25748 #. type: verbatim
25749 #: ../src/guestfs-actions.pod:260
25750 #, no-wrap
25751 msgid ""
25752 " int\n"
25753 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25754 "                            const char *filename,\n"
25755 "                            va_list args);\n"
25756 "\n"
25757 msgstr ""
25758
25759 #. type: textblock
25760 #: ../src/guestfs-actions.pod:265
25761 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25762 msgstr ""
25763
25764 #. type: =head2
25765 #: ../src/guestfs-actions.pod:269
25766 msgid "guestfs_add_drive_opts_argv"
25767 msgstr ""
25768
25769 #. type: verbatim
25770 #: ../src/guestfs-actions.pod:271
25771 #, no-wrap
25772 msgid ""
25773 " int\n"
25774 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25775 "                              const char *filename,\n"
25776 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
25777 "\n"
25778 msgstr ""
25779
25780 #. type: textblock
25781 #: ../src/guestfs-actions.pod:276
25782 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25783 msgstr ""
25784
25785 #. type: =head2
25786 #: ../src/guestfs-actions.pod:280
25787 msgid "guestfs_add_drive_ro"
25788 msgstr ""
25789
25790 #. type: verbatim
25791 #: ../src/guestfs-actions.pod:282
25792 #, no-wrap
25793 msgid ""
25794 " int\n"
25795 " guestfs_add_drive_ro (guestfs_h *g,\n"
25796 "                       const char *filename);\n"
25797 "\n"
25798 msgstr ""
25799
25800 #. type: textblock
25801 #: ../src/guestfs-actions.pod:286
25802 msgid ""
25803 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25804 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25805 "disk is added read-only, with the format being detected automatically."
25806 msgstr ""
25807
25808 #. type: textblock
25809 #: ../src/guestfs-actions.pod:293
25810 msgid "(Added in 1.0.38)"
25811 msgstr ""
25812
25813 #. type: =head2
25814 #: ../src/guestfs-actions.pod:295
25815 msgid "guestfs_add_drive_ro_with_if"
25816 msgstr ""
25817
25818 #. type: verbatim
25819 #: ../src/guestfs-actions.pod:297
25820 #, no-wrap
25821 msgid ""
25822 " int\n"
25823 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25824 "                               const char *filename,\n"
25825 "                               const char *iface);\n"
25826 "\n"
25827 msgstr ""
25828
25829 #. type: textblock
25830 #: ../src/guestfs-actions.pod:309
25831 msgid ""
25832 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25833 "QEMU interface emulation to use at run time."
25834 msgstr ""
25835
25836 #. type: textblock
25837 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
25838 #: ../src/guestfs-actions.pod:2881
25839 msgid "(Added in 1.0.84)"
25840 msgstr ""
25841
25842 #. type: =head2
25843 #: ../src/guestfs-actions.pod:316
25844 msgid "guestfs_add_drive_with_if"
25845 msgstr ""
25846
25847 #. type: verbatim
25848 #: ../src/guestfs-actions.pod:318
25849 #, no-wrap
25850 msgid ""
25851 " int\n"
25852 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25853 "                            const char *filename,\n"
25854 "                            const char *iface);\n"
25855 "\n"
25856 msgstr ""
25857
25858 #. type: textblock
25859 #: ../src/guestfs-actions.pod:330
25860 msgid ""
25861 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25862 "QEMU interface emulation to use at run time."
25863 msgstr ""
25864
25865 #. type: =head2
25866 #: ../src/guestfs-actions.pod:337
25867 msgid "guestfs_aug_clear"
25868 msgstr ""
25869
25870 #. type: verbatim
25871 #: ../src/guestfs-actions.pod:339
25872 #, no-wrap
25873 msgid ""
25874 " int\n"
25875 " guestfs_aug_clear (guestfs_h *g,\n"
25876 "                    const char *augpath);\n"
25877 "\n"
25878 msgstr ""
25879
25880 #. type: textblock
25881 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25882 msgid "(Added in 1.3.4)"
25883 msgstr ""
25884
25885 #. type: =head2
25886 #: ../src/guestfs-actions.pod:350
25887 msgid "guestfs_aug_close"
25888 msgstr ""
25889
25890 #. type: verbatim
25891 #: ../src/guestfs-actions.pod:352
25892 #, no-wrap
25893 msgid ""
25894 " int\n"
25895 " guestfs_aug_close (guestfs_h *g);\n"
25896 "\n"
25897 msgstr ""
25898
25899 #. type: textblock
25900 #: ../src/guestfs-actions.pod:355
25901 msgid ""
25902 "Close the current Augeas handle and free up any resources used by it.  After "
25903 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25904 "any other Augeas functions."
25905 msgstr ""
25906
25907 #. type: textblock
25908 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
25909 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
25910 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
25911 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
25912 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
25913 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
25914 #: ../src/guestfs-actions.pod:6311
25915 msgid "(Added in 0.7)"
25916 msgstr ""
25917
25918 #. type: =head2
25919 #: ../src/guestfs-actions.pod:364
25920 msgid "guestfs_aug_defnode"
25921 msgstr ""
25922
25923 #. type: verbatim
25924 #: ../src/guestfs-actions.pod:366
25925 #, no-wrap
25926 msgid ""
25927 " struct guestfs_int_bool *\n"
25928 " guestfs_aug_defnode (guestfs_h *g,\n"
25929 "                      const char *name,\n"
25930 "                      const char *expr,\n"
25931 "                      const char *val);\n"
25932 "\n"
25933 msgstr ""
25934
25935 #. type: textblock
25936 #: ../src/guestfs-actions.pod:375
25937 msgid ""
25938 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25939 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25940 "containing that single node."
25941 msgstr ""
25942
25943 #. type: textblock
25944 #: ../src/guestfs-actions.pod:383
25945 msgid ""
25946 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25947 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25948 msgstr ""
25949
25950 #. type: =head2
25951 #: ../src/guestfs-actions.pod:389
25952 msgid "guestfs_aug_defvar"
25953 msgstr ""
25954
25955 #. type: verbatim
25956 #: ../src/guestfs-actions.pod:391
25957 #, no-wrap
25958 msgid ""
25959 " int\n"
25960 " guestfs_aug_defvar (guestfs_h *g,\n"
25961 "                     const char *name,\n"
25962 "                     const char *expr);\n"
25963 "\n"
25964 msgstr ""
25965
25966 #. type: =head2
25967 #: ../src/guestfs-actions.pod:407
25968 msgid "guestfs_aug_get"
25969 msgstr ""
25970
25971 #. type: verbatim
25972 #: ../src/guestfs-actions.pod:409
25973 #, no-wrap
25974 msgid ""
25975 " char *\n"
25976 " guestfs_aug_get (guestfs_h *g,\n"
25977 "                  const char *augpath);\n"
25978 "\n"
25979 msgstr ""
25980
25981 #. type: textblock
25982 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
25983 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
25984 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
25985 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
25986 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
25987 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
25988 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
25989 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
25990 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
25991 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
25992 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
25993 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
25994 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
25995 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
25996 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
25997 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4650
25998 #: ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4927
25999 #: ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:6021
26000 #: ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6387
26001 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:7096
26002 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7136
26003 #: ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7834
26004 #: ../src/guestfs-actions.pod:7853 ../src/guestfs-actions.pod:7871
26005 #: ../src/guestfs-actions.pod:8045 ../src/guestfs-actions.pod:8359
26006 msgid ""
26007 "This function returns a string, or NULL on error.  I<The caller must free "
26008 "the returned string after use>."
26009 msgstr ""
26010
26011 #. type: =head2
26012 #: ../src/guestfs-actions.pod:421
26013 msgid "guestfs_aug_init"
26014 msgstr ""
26015
26016 #. type: verbatim
26017 #: ../src/guestfs-actions.pod:423
26018 #, no-wrap
26019 msgid ""
26020 " int\n"
26021 " guestfs_aug_init (guestfs_h *g,\n"
26022 "                   const char *root,\n"
26023 "                   int flags);\n"
26024 "\n"
26025 msgstr ""
26026
26027 #. type: textblock
26028 #: ../src/guestfs-actions.pod:432
26029 msgid "You must call this before using any other C<guestfs_aug_*> commands."
26030 msgstr ""
26031
26032 #. type: textblock
26033 #: ../src/guestfs-actions.pod:457
26034 msgid ""
26035 "This option is only useful when debugging Augeas lenses.  Use of this option "
26036 "may require additional memory for the libguestfs appliance.  You may need to "
26037 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
26038 "C<guestfs_set_memsize>."
26039 msgstr ""
26040
26041 #. type: textblock
26042 #: ../src/guestfs-actions.pod:472
26043 msgid "Do not load the tree in C<guestfs_aug_init>."
26044 msgstr ""
26045
26046 #. type: textblock
26047 #: ../src/guestfs-actions.pod:476
26048 msgid "To close the handle, you can call C<guestfs_aug_close>."
26049 msgstr ""
26050
26051 #. type: =head2
26052 #: ../src/guestfs-actions.pod:484
26053 msgid "guestfs_aug_insert"
26054 msgstr ""
26055
26056 #. type: verbatim
26057 #: ../src/guestfs-actions.pod:486
26058 #, no-wrap
26059 msgid ""
26060 " int\n"
26061 " guestfs_aug_insert (guestfs_h *g,\n"
26062 "                     const char *augpath,\n"
26063 "                     const char *label,\n"
26064 "                     int before);\n"
26065 "\n"
26066 msgstr ""
26067
26068 #. type: =head2
26069 #: ../src/guestfs-actions.pod:504
26070 msgid "guestfs_aug_load"
26071 msgstr ""
26072
26073 #. type: verbatim
26074 #: ../src/guestfs-actions.pod:506
26075 #, no-wrap
26076 msgid ""
26077 " int\n"
26078 " guestfs_aug_load (guestfs_h *g);\n"
26079 "\n"
26080 msgstr ""
26081
26082 #. type: =head2
26083 #: ../src/guestfs-actions.pod:518
26084 msgid "guestfs_aug_ls"
26085 msgstr ""
26086
26087 #. type: verbatim
26088 #: ../src/guestfs-actions.pod:520
26089 #, no-wrap
26090 msgid ""
26091 " char **\n"
26092 " guestfs_aug_ls (guestfs_h *g,\n"
26093 "                 const char *augpath);\n"
26094 "\n"
26095 msgstr ""
26096
26097 #. type: textblock
26098 #: ../src/guestfs-actions.pod:524
26099 msgid ""
26100 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26101 "sorting the resulting nodes into alphabetical order."
26102 msgstr ""
26103
26104 #. type: textblock
26105 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
26106 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
26107 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
26108 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
26109 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
26110 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
26111 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
26112 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
26113 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
26114 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
26115 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
26116 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4390
26117 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5546
26118 #: ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6307
26119 #: ../src/guestfs-actions.pod:6421 ../src/guestfs-actions.pod:7176
26120 #: ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7292
26121 #: ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7462
26122 #: ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7958
26123 #: ../src/guestfs-actions.pod:8005 ../src/guestfs-actions.pod:8199
26124 #: ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8309
26125 #: ../src/guestfs-actions.pod:8328 ../src/guestfs-actions.pod:8374
26126 #: ../src/guestfs-actions.pod:8393
26127 msgid ""
26128 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26129 ">), or NULL if there was an error.  I<The caller must free the strings and "
26130 "the array after use>."
26131 msgstr ""
26132
26133 #. type: textblock
26134 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
26135 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
26136 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
26137 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4680
26138 #: ../src/guestfs-actions.pod:4867 ../src/guestfs-actions.pod:4900
26139 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5550
26140 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6519
26141 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6545
26142 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7676
26143 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7922
26144 #: ../src/guestfs-actions.pod:8187
26145 msgid "(Added in 0.8)"
26146 msgstr ""
26147
26148 #. type: =head2
26149 #: ../src/guestfs-actions.pod:533
26150 msgid "guestfs_aug_match"
26151 msgstr ""
26152
26153 #. type: verbatim
26154 #: ../src/guestfs-actions.pod:535
26155 #, no-wrap
26156 msgid ""
26157 " char **\n"
26158 " guestfs_aug_match (guestfs_h *g,\n"
26159 "                    const char *augpath);\n"
26160 "\n"
26161 msgstr ""
26162
26163 #. type: =head2
26164 #: ../src/guestfs-actions.pod:549
26165 msgid "guestfs_aug_mv"
26166 msgstr ""
26167
26168 #. type: verbatim
26169 #: ../src/guestfs-actions.pod:551
26170 #, no-wrap
26171 msgid ""
26172 " int\n"
26173 " guestfs_aug_mv (guestfs_h *g,\n"
26174 "                 const char *src,\n"
26175 "                 const char *dest);\n"
26176 "\n"
26177 msgstr ""
26178
26179 #. type: =head2
26180 #: ../src/guestfs-actions.pod:563
26181 msgid "guestfs_aug_rm"
26182 msgstr ""
26183
26184 #. type: verbatim
26185 #: ../src/guestfs-actions.pod:565
26186 #, no-wrap
26187 msgid ""
26188 " int\n"
26189 " guestfs_aug_rm (guestfs_h *g,\n"
26190 "                 const char *augpath);\n"
26191 "\n"
26192 msgstr ""
26193
26194 #. type: =head2
26195 #: ../src/guestfs-actions.pod:577
26196 msgid "guestfs_aug_save"
26197 msgstr ""
26198
26199 #. type: verbatim
26200 #: ../src/guestfs-actions.pod:579
26201 #, no-wrap
26202 msgid ""
26203 " int\n"
26204 " guestfs_aug_save (guestfs_h *g);\n"
26205 "\n"
26206 msgstr ""
26207
26208 #. type: textblock
26209 #: ../src/guestfs-actions.pod:584
26210 msgid ""
26211 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26212 "are saved."
26213 msgstr ""
26214
26215 #. type: =head2
26216 #: ../src/guestfs-actions.pod:591
26217 msgid "guestfs_aug_set"
26218 msgstr ""
26219
26220 #. type: verbatim
26221 #: ../src/guestfs-actions.pod:593
26222 #, no-wrap
26223 msgid ""
26224 " int\n"
26225 " guestfs_aug_set (guestfs_h *g,\n"
26226 "                  const char *augpath,\n"
26227 "                  const char *val);\n"
26228 "\n"
26229 msgstr ""
26230
26231 #. type: textblock
26232 #: ../src/guestfs-actions.pod:600
26233 msgid ""
26234 "In the Augeas API, it is possible to clear a node by setting the value to "
26235 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26236 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26237 msgstr ""
26238
26239 #. type: =head2
26240 #: ../src/guestfs-actions.pod:609
26241 msgid "guestfs_available"
26242 msgstr ""
26243
26244 #. type: verbatim
26245 #: ../src/guestfs-actions.pod:611
26246 #, no-wrap
26247 msgid ""
26248 " int\n"
26249 " guestfs_available (guestfs_h *g,\n"
26250 "                    char *const *groups);\n"
26251 "\n"
26252 msgstr ""
26253
26254 #. type: textblock
26255 #: ../src/guestfs-actions.pod:619
26256 msgid ""
26257 "The libguestfs groups, and the functions that those groups correspond to, "
26258 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26259 "runtime by calling C<guestfs_available_all_groups>."
26260 msgstr ""
26261
26262 #. type: textblock
26263 #: ../src/guestfs-actions.pod:643
26264 msgid "You must call C<guestfs_launch> before calling this function."
26265 msgstr ""
26266
26267 #. type: textblock
26268 #: ../src/guestfs-actions.pod:665
26269 msgid ""
26270 "This call was added in version C<1.0.80>.  In previous versions of "
26271 "libguestfs all you could do would be to speculatively execute a command to "
26272 "find out if the daemon implemented it.  See also C<guestfs_version>."
26273 msgstr ""
26274
26275 #. type: textblock
26276 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
26277 msgid "(Added in 1.0.80)"
26278 msgstr ""
26279
26280 #. type: =head2
26281 #: ../src/guestfs-actions.pod:676
26282 msgid "guestfs_available_all_groups"
26283 msgstr ""
26284
26285 #. type: verbatim
26286 #: ../src/guestfs-actions.pod:678
26287 #, no-wrap
26288 msgid ""
26289 " char **\n"
26290 " guestfs_available_all_groups (guestfs_h *g);\n"
26291 "\n"
26292 msgstr ""
26293
26294 #. type: textblock
26295 #: ../src/guestfs-actions.pod:681
26296 msgid ""
26297 "This command returns a list of all optional groups that this daemon knows "
26298 "about.  Note this returns both supported and unsupported groups.  To find "
26299 "out which ones the daemon can actually support you have to call "
26300 "C<guestfs_available> on each member of the returned list."
26301 msgstr ""
26302
26303 #. type: textblock
26304 #: ../src/guestfs-actions.pod:687
26305 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26306 msgstr ""
26307
26308 #. type: textblock
26309 #: ../src/guestfs-actions.pod:693
26310 msgid "(Added in 1.3.15)"
26311 msgstr ""
26312
26313 #. type: =head2
26314 #: ../src/guestfs-actions.pod:695
26315 msgid "guestfs_base64_in"
26316 msgstr ""
26317
26318 #. type: verbatim
26319 #: ../src/guestfs-actions.pod:697
26320 #, no-wrap
26321 msgid ""
26322 " int\n"
26323 " guestfs_base64_in (guestfs_h *g,\n"
26324 "                    const char *base64file,\n"
26325 "                    const char *filename);\n"
26326 "\n"
26327 msgstr ""
26328
26329 #. type: textblock
26330 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26331 msgid "(Added in 1.3.5)"
26332 msgstr ""
26333
26334 #. type: =head2
26335 #: ../src/guestfs-actions.pod:709
26336 msgid "guestfs_base64_out"
26337 msgstr ""
26338
26339 #. type: verbatim
26340 #: ../src/guestfs-actions.pod:711
26341 #, no-wrap
26342 msgid ""
26343 " int\n"
26344 " guestfs_base64_out (guestfs_h *g,\n"
26345 "                     const char *filename,\n"
26346 "                     const char *base64file);\n"
26347 "\n"
26348 msgstr ""
26349
26350 #. type: =head2
26351 #: ../src/guestfs-actions.pod:723
26352 msgid "guestfs_blockdev_flushbufs"
26353 msgstr ""
26354
26355 #. type: verbatim
26356 #: ../src/guestfs-actions.pod:725
26357 #, no-wrap
26358 msgid ""
26359 " int\n"
26360 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26361 "                             const char *device);\n"
26362 "\n"
26363 msgstr ""
26364
26365 #. type: textblock
26366 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
26367 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
26368 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
26369 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
26370 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
26371 msgid "(Added in 0.9.3)"
26372 msgstr ""
26373
26374 #. type: =head2
26375 #: ../src/guestfs-actions.pod:738
26376 msgid "guestfs_blockdev_getbsz"
26377 msgstr ""
26378
26379 #. type: verbatim
26380 #: ../src/guestfs-actions.pod:740
26381 #, no-wrap
26382 msgid ""
26383 " int\n"
26384 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26385 "                          const char *device);\n"
26386 "\n"
26387 msgstr ""
26388
26389 #. type: =head2
26390 #: ../src/guestfs-actions.pod:755
26391 msgid "guestfs_blockdev_getro"
26392 msgstr ""
26393
26394 #. type: verbatim
26395 #: ../src/guestfs-actions.pod:757
26396 #, no-wrap
26397 msgid ""
26398 " int\n"
26399 " guestfs_blockdev_getro (guestfs_h *g,\n"
26400 "                         const char *device);\n"
26401 "\n"
26402 msgstr ""
26403
26404 #. type: textblock
26405 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
26406 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
26407 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
26408 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
26409 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
26410 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
26411 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
26412 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
26413 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
26414 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
26415 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
26416 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
26417 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
26418 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
26419 #: ../src/guestfs-actions.pod:5784
26420 msgid "This function returns a C truth value on success or -1 on error."
26421 msgstr ""
26422
26423 #. type: =head2
26424 #: ../src/guestfs-actions.pod:770
26425 msgid "guestfs_blockdev_getsize64"
26426 msgstr ""
26427
26428 #. type: verbatim
26429 #: ../src/guestfs-actions.pod:772
26430 #, no-wrap
26431 msgid ""
26432 " int64_t\n"
26433 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26434 "                             const char *device);\n"
26435 "\n"
26436 msgstr ""
26437
26438 #. type: textblock
26439 #: ../src/guestfs-actions.pod:778
26440 msgid "See also C<guestfs_blockdev_getsz>."
26441 msgstr ""
26442
26443 #. type: =head2
26444 #: ../src/guestfs-actions.pod:786
26445 msgid "guestfs_blockdev_getss"
26446 msgstr ""
26447
26448 #. type: verbatim
26449 #: ../src/guestfs-actions.pod:788
26450 #, no-wrap
26451 msgid ""
26452 " int\n"
26453 " guestfs_blockdev_getss (guestfs_h *g,\n"
26454 "                         const char *device);\n"
26455 "\n"
26456 msgstr ""
26457
26458 #. type: textblock
26459 #: ../src/guestfs-actions.pod:795
26460 msgid ""
26461 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26462 "that)."
26463 msgstr ""
26464
26465 #. type: =head2
26466 #: ../src/guestfs-actions.pod:804
26467 msgid "guestfs_blockdev_getsz"
26468 msgstr ""
26469
26470 #. type: verbatim
26471 #: ../src/guestfs-actions.pod:806
26472 #, no-wrap
26473 msgid ""
26474 " int64_t\n"
26475 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26476 "                         const char *device);\n"
26477 "\n"
26478 msgstr ""
26479
26480 #. type: textblock
26481 #: ../src/guestfs-actions.pod:813
26482 msgid ""
26483 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26484 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26485 msgstr ""
26486
26487 #. type: =head2
26488 #: ../src/guestfs-actions.pod:823
26489 msgid "guestfs_blockdev_rereadpt"
26490 msgstr ""
26491
26492 #. type: verbatim
26493 #: ../src/guestfs-actions.pod:825
26494 #, no-wrap
26495 msgid ""
26496 " int\n"
26497 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26498 "                            const char *device);\n"
26499 "\n"
26500 msgstr ""
26501
26502 #. type: =head2
26503 #: ../src/guestfs-actions.pod:837
26504 msgid "guestfs_blockdev_setbsz"
26505 msgstr ""
26506
26507 #. type: verbatim
26508 #: ../src/guestfs-actions.pod:839
26509 #, no-wrap
26510 msgid ""
26511 " int\n"
26512 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26513 "                          const char *device,\n"
26514 "                          int blocksize);\n"
26515 "\n"
26516 msgstr ""
26517
26518 #. type: =head2
26519 #: ../src/guestfs-actions.pod:855
26520 msgid "guestfs_blockdev_setro"
26521 msgstr ""
26522
26523 #. type: verbatim
26524 #: ../src/guestfs-actions.pod:857
26525 #, no-wrap
26526 msgid ""
26527 " int\n"
26528 " guestfs_blockdev_setro (guestfs_h *g,\n"
26529 "                         const char *device);\n"
26530 "\n"
26531 msgstr ""
26532
26533 #. type: =head2
26534 #: ../src/guestfs-actions.pod:869
26535 msgid "guestfs_blockdev_setrw"
26536 msgstr ""
26537
26538 #. type: verbatim
26539 #: ../src/guestfs-actions.pod:871
26540 #, no-wrap
26541 msgid ""
26542 " int\n"
26543 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26544 "                         const char *device);\n"
26545 "\n"
26546 msgstr ""
26547
26548 #. type: =head2
26549 #: ../src/guestfs-actions.pod:883
26550 msgid "guestfs_btrfs_filesystem_resize"
26551 msgstr ""
26552
26553 #. type: verbatim
26554 #: ../src/guestfs-actions.pod:885
26555 #, no-wrap
26556 msgid ""
26557 " int\n"
26558 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26559 "                                  const char *mountpoint,\n"
26560 "                                  ...);\n"
26561 "\n"
26562 msgstr ""
26563
26564 #. type: verbatim
26565 #: ../src/guestfs-actions.pod:895
26566 #, no-wrap
26567 msgid ""
26568 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26569 "\n"
26570 msgstr ""
26571
26572 #. type: textblock
26573 #: ../src/guestfs-actions.pod:918
26574 msgid "(Added in 1.11.17)"
26575 msgstr ""
26576
26577 #. type: =head2
26578 #: ../src/guestfs-actions.pod:920
26579 msgid "guestfs_btrfs_filesystem_resize_va"
26580 msgstr ""
26581
26582 #. type: verbatim
26583 #: ../src/guestfs-actions.pod:922
26584 #, no-wrap
26585 msgid ""
26586 " int\n"
26587 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26588 "                                     const char *mountpoint,\n"
26589 "                                     va_list args);\n"
26590 "\n"
26591 msgstr ""
26592
26593 #. type: textblock
26594 #: ../src/guestfs-actions.pod:927
26595 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26596 msgstr ""
26597
26598 #. type: =head2
26599 #: ../src/guestfs-actions.pod:931
26600 msgid "guestfs_btrfs_filesystem_resize_argv"
26601 msgstr ""
26602
26603 #. type: verbatim
26604 #: ../src/guestfs-actions.pod:933
26605 #, no-wrap
26606 msgid ""
26607 " int\n"
26608 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26609 "                                       const char *mountpoint,\n"
26610 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26611 "\n"
26612 msgstr ""
26613
26614 #. type: textblock
26615 #: ../src/guestfs-actions.pod:938
26616 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26617 msgstr ""
26618
26619 #. type: =head2
26620 #: ../src/guestfs-actions.pod:942
26621 msgid "guestfs_case_sensitive_path"
26622 msgstr ""
26623
26624 #. type: verbatim
26625 #: ../src/guestfs-actions.pod:944
26626 #, no-wrap
26627 msgid ""
26628 " char *\n"
26629 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26630 "                              const char *path);\n"
26631 "\n"
26632 msgstr ""
26633
26634 #. type: textblock
26635 #: ../src/guestfs-actions.pod:970
26636 msgid ""
26637 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
26638 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26639 "how the directories were originally created under Windows)."
26640 msgstr ""
26641
26642 #. type: textblock
26643 #: ../src/guestfs-actions.pod:978
26644 msgid "See also C<guestfs_realpath>."
26645 msgstr ""
26646
26647 #. type: textblock
26648 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7856
26649 msgid "(Added in 1.0.75)"
26650 msgstr ""
26651
26652 #. type: =head2
26653 #: ../src/guestfs-actions.pod:985
26654 msgid "guestfs_cat"
26655 msgstr ""
26656
26657 #. type: verbatim
26658 #: ../src/guestfs-actions.pod:987
26659 #, no-wrap
26660 msgid ""
26661 " char *\n"
26662 " guestfs_cat (guestfs_h *g,\n"
26663 "              const char *path);\n"
26664 "\n"
26665 msgstr ""
26666
26667 #. type: textblock
26668 #: ../src/guestfs-actions.pod:993
26669 msgid ""
26670 "Note that this function cannot correctly handle binary files (specifically, "
26671 "files containing C<\\0> character which is treated as end of string).  For "
26672 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26673 "functions which have a more complex interface."
26674 msgstr ""
26675
26676 #. type: textblock
26677 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
26678 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4306
26679 #: ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4793
26680 #: ../src/guestfs-actions.pod:4807 ../src/guestfs-actions.pod:6185
26681 #: ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:8009
26682 #: ../src/guestfs-actions.pod:8023
26683 msgid "(Added in 0.4)"
26684 msgstr ""
26685
26686 #. type: =head2
26687 #: ../src/guestfs-actions.pod:1006
26688 msgid "guestfs_checksum"
26689 msgstr ""
26690
26691 #. type: verbatim
26692 #: ../src/guestfs-actions.pod:1008
26693 #, no-wrap
26694 msgid ""
26695 " char *\n"
26696 " guestfs_checksum (guestfs_h *g,\n"
26697 "                   const char *csumtype,\n"
26698 "                   const char *path);\n"
26699 "\n"
26700 msgstr ""
26701
26702 #. type: textblock
26703 #: ../src/guestfs-actions.pod:1054
26704 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26705 msgstr ""
26706
26707 #. type: textblock
26708 #: ../src/guestfs-actions.pod:1056
26709 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26710 msgstr ""
26711
26712 #. type: textblock
26713 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
26714 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
26715 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
26716 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7712
26717 msgid "(Added in 1.0.2)"
26718 msgstr ""
26719
26720 #. type: =head2
26721 #: ../src/guestfs-actions.pod:1063
26722 msgid "guestfs_checksum_device"
26723 msgstr ""
26724
26725 #. type: verbatim
26726 #: ../src/guestfs-actions.pod:1065
26727 #, no-wrap
26728 msgid ""
26729 " char *\n"
26730 " guestfs_checksum_device (guestfs_h *g,\n"
26731 "                          const char *csumtype,\n"
26732 "                          const char *device);\n"
26733 "\n"
26734 msgstr ""
26735
26736 #. type: textblock
26737 #: ../src/guestfs-actions.pod:1070
26738 msgid ""
26739 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26740 "device named C<device>.  For the types of checksums supported see the "
26741 "C<guestfs_checksum> command."
26742 msgstr ""
26743
26744 #. type: textblock
26745 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5617
26746 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5786
26747 #: ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:5986
26748 #: ../src/guestfs-actions.pod:7621 ../src/guestfs-actions.pod:7635
26749 #: ../src/guestfs-actions.pod:8035
26750 msgid "(Added in 1.3.2)"
26751 msgstr ""
26752
26753 #. type: =head2
26754 #: ../src/guestfs-actions.pod:1079
26755 msgid "guestfs_checksums_out"
26756 msgstr ""
26757
26758 #. type: verbatim
26759 #: ../src/guestfs-actions.pod:1081
26760 #, no-wrap
26761 msgid ""
26762 " int\n"
26763 " guestfs_checksums_out (guestfs_h *g,\n"
26764 "                        const char *csumtype,\n"
26765 "                        const char *directory,\n"
26766 "                        const char *sumsfile);\n"
26767 "\n"
26768 msgstr ""
26769
26770 #. type: textblock
26771 #: ../src/guestfs-actions.pod:1101
26772 msgid "(Added in 1.3.7)"
26773 msgstr ""
26774
26775 #. type: =head2
26776 #: ../src/guestfs-actions.pod:1103
26777 msgid "guestfs_chmod"
26778 msgstr ""
26779
26780 #. type: verbatim
26781 #: ../src/guestfs-actions.pod:1105
26782 #, no-wrap
26783 msgid ""
26784 " int\n"
26785 " guestfs_chmod (guestfs_h *g,\n"
26786 "                int mode,\n"
26787 "                const char *path);\n"
26788 "\n"
26789 msgstr ""
26790
26791 #. type: =head2
26792 #: ../src/guestfs-actions.pod:1123
26793 msgid "guestfs_chown"
26794 msgstr ""
26795
26796 #. type: verbatim
26797 #: ../src/guestfs-actions.pod:1125
26798 #, no-wrap
26799 msgid ""
26800 " int\n"
26801 " guestfs_chown (guestfs_h *g,\n"
26802 "                int owner,\n"
26803 "                int group,\n"
26804 "                const char *path);\n"
26805 "\n"
26806 msgstr ""
26807
26808 #. type: =head2
26809 #: ../src/guestfs-actions.pod:1141
26810 msgid "guestfs_command"
26811 msgstr ""
26812
26813 #. type: verbatim
26814 #: ../src/guestfs-actions.pod:1143
26815 #, no-wrap
26816 msgid ""
26817 " char *\n"
26818 " guestfs_command (guestfs_h *g,\n"
26819 "                  char *const *arguments);\n"
26820 "\n"
26821 msgstr ""
26822
26823 #. type: textblock
26824 #: ../src/guestfs-actions.pod:1152
26825 msgid ""
26826 "The single parameter is an argv-style list of arguments.  The first element "
26827 "is the name of the program to run.  Subsequent elements are parameters.  The "
26828 "list must be non-empty (ie. must contain a program name).  Note that the "
26829 "command runs directly, and is I<not> invoked via the shell (see "
26830 "C<guestfs_sh>)."
26831 msgstr ""
26832
26833 #. type: textblock
26834 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
26835 #: ../src/guestfs-actions.pod:2027
26836 msgid "(Added in 0.9.1)"
26837 msgstr ""
26838
26839 #. type: =head2
26840 #: ../src/guestfs-actions.pod:1185
26841 msgid "guestfs_command_lines"
26842 msgstr ""
26843
26844 #. type: verbatim
26845 #: ../src/guestfs-actions.pod:1187
26846 #, no-wrap
26847 msgid ""
26848 " char **\n"
26849 " guestfs_command_lines (guestfs_h *g,\n"
26850 "                        char *const *arguments);\n"
26851 "\n"
26852 msgstr ""
26853
26854 #. type: textblock
26855 #: ../src/guestfs-actions.pod:1191
26856 msgid ""
26857 "This is the same as C<guestfs_command>, but splits the result into a list of "
26858 "lines."
26859 msgstr ""
26860
26861 #. type: textblock
26862 #: ../src/guestfs-actions.pod:1194
26863 msgid "See also: C<guestfs_sh_lines>"
26864 msgstr ""
26865
26866 #. type: =head2
26867 #: ../src/guestfs-actions.pod:1205
26868 msgid "guestfs_compress_device_out"
26869 msgstr ""
26870
26871 #. type: verbatim
26872 #: ../src/guestfs-actions.pod:1207
26873 #, no-wrap
26874 msgid ""
26875 " int\n"
26876 " guestfs_compress_device_out (guestfs_h *g,\n"
26877 "                              const char *ctype,\n"
26878 "                              const char *device,\n"
26879 "                              const char *zdevice,\n"
26880 "                              ...);\n"
26881 "\n"
26882 msgstr ""
26883
26884 #. type: verbatim
26885 #: ../src/guestfs-actions.pod:1219
26886 #, no-wrap
26887 msgid ""
26888 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26889 "\n"
26890 msgstr ""
26891
26892 #. type: textblock
26893 #: ../src/guestfs-actions.pod:1224
26894 msgid ""
26895 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26896 "C<guestfs_compress_out>."
26897 msgstr ""
26898
26899 #. type: textblock
26900 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
26901 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:6902
26902 msgid "(Added in 1.13.15)"
26903 msgstr ""
26904
26905 #. type: =head2
26906 #: ../src/guestfs-actions.pod:1231
26907 msgid "guestfs_compress_device_out_va"
26908 msgstr ""
26909
26910 #. type: verbatim
26911 #: ../src/guestfs-actions.pod:1233
26912 #, no-wrap
26913 msgid ""
26914 " int\n"
26915 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26916 "                                 const char *ctype,\n"
26917 "                                 const char *device,\n"
26918 "                                 const char *zdevice,\n"
26919 "                                 va_list args);\n"
26920 "\n"
26921 msgstr ""
26922
26923 #. type: textblock
26924 #: ../src/guestfs-actions.pod:1240
26925 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26926 msgstr ""
26927
26928 #. type: =head2
26929 #: ../src/guestfs-actions.pod:1244
26930 msgid "guestfs_compress_device_out_argv"
26931 msgstr ""
26932
26933 #. type: verbatim
26934 #: ../src/guestfs-actions.pod:1246
26935 #, no-wrap
26936 msgid ""
26937 " int\n"
26938 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26939 "                                   const char *ctype,\n"
26940 "                                   const char *device,\n"
26941 "                                   const char *zdevice,\n"
26942 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26943 "\n"
26944 msgstr ""
26945
26946 #. type: textblock
26947 #: ../src/guestfs-actions.pod:1253
26948 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26949 msgstr ""
26950
26951 #. type: =head2
26952 #: ../src/guestfs-actions.pod:1257
26953 msgid "guestfs_compress_out"
26954 msgstr ""
26955
26956 #. type: verbatim
26957 #: ../src/guestfs-actions.pod:1259
26958 #, no-wrap
26959 msgid ""
26960 " int\n"
26961 " guestfs_compress_out (guestfs_h *g,\n"
26962 "                       const char *ctype,\n"
26963 "                       const char *file,\n"
26964 "                       const char *zfile,\n"
26965 "                       ...);\n"
26966 "\n"
26967 msgstr ""
26968
26969 #. type: verbatim
26970 #: ../src/guestfs-actions.pod:1271
26971 #, no-wrap
26972 msgid ""
26973 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26974 "\n"
26975 msgstr ""
26976
26977 #. type: =head2
26978 #: ../src/guestfs-actions.pod:1290
26979 msgid "guestfs_compress_out_va"
26980 msgstr ""
26981
26982 #. type: verbatim
26983 #: ../src/guestfs-actions.pod:1292
26984 #, no-wrap
26985 msgid ""
26986 " int\n"
26987 " guestfs_compress_out_va (guestfs_h *g,\n"
26988 "                          const char *ctype,\n"
26989 "                          const char *file,\n"
26990 "                          const char *zfile,\n"
26991 "                          va_list args);\n"
26992 "\n"
26993 msgstr ""
26994
26995 #. type: textblock
26996 #: ../src/guestfs-actions.pod:1299
26997 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26998 msgstr ""
26999
27000 #. type: =head2
27001 #: ../src/guestfs-actions.pod:1303
27002 msgid "guestfs_compress_out_argv"
27003 msgstr ""
27004
27005 #. type: verbatim
27006 #: ../src/guestfs-actions.pod:1305
27007 #, no-wrap
27008 msgid ""
27009 " int\n"
27010 " guestfs_compress_out_argv (guestfs_h *g,\n"
27011 "                            const char *ctype,\n"
27012 "                            const char *file,\n"
27013 "                            const char *zfile,\n"
27014 "                            const struct guestfs_compress_out_argv *optargs);\n"
27015 "\n"
27016 msgstr ""
27017
27018 #. type: textblock
27019 #: ../src/guestfs-actions.pod:1312
27020 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27021 msgstr ""
27022
27023 #. type: =head2
27024 #: ../src/guestfs-actions.pod:1316
27025 msgid "guestfs_config"
27026 msgstr ""
27027
27028 #. type: verbatim
27029 #: ../src/guestfs-actions.pod:1318
27030 #, no-wrap
27031 msgid ""
27032 " int\n"
27033 " guestfs_config (guestfs_h *g,\n"
27034 "                 const char *qemuparam,\n"
27035 "                 const char *qemuvalue);\n"
27036 "\n"
27037 msgstr ""
27038
27039 #. type: =head2
27040 #: ../src/guestfs-actions.pod:1336
27041 msgid "guestfs_copy_device_to_device"
27042 msgstr ""
27043
27044 #. type: verbatim
27045 #: ../src/guestfs-actions.pod:1338
27046 #, no-wrap
27047 msgid ""
27048 " int\n"
27049 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27050 "                                const char *src,\n"
27051 "                                const char *dest,\n"
27052 "                                ...);\n"
27053 "\n"
27054 msgstr ""
27055
27056 #. type: verbatim
27057 #: ../src/guestfs-actions.pod:1349
27058 #, no-wrap
27059 msgid ""
27060 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27061 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27062 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27063 "\n"
27064 msgstr ""
27065
27066 #. type: textblock
27067 #: ../src/guestfs-actions.pod:1353
27068 msgid ""
27069 "The four calls C<guestfs_copy_device_to_device>, "
27070 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27071 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27072 "destination (device|file)."
27073 msgstr ""
27074
27075 #. type: textblock
27076 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
27077 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
27078 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
27079 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
27080 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
27081 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7707
27082 #: ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:8248
27083 #: ../src/guestfs-actions.pod:8271
27084 msgid ""
27085 "This long-running command can generate progress notification messages so "
27086 "that the caller can display a progress bar or indicator.  To receive these "
27087 "messages, the caller must register a progress event callback.  See L<guestfs"
27088 "(3)/GUESTFS_EVENT_PROGRESS>."
27089 msgstr ""
27090
27091 #. type: textblock
27092 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
27093 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
27094 #: ../src/guestfs-actions.pod:6042
27095 msgid "(Added in 1.13.25)"
27096 msgstr ""
27097
27098 #. type: =head2
27099 #: ../src/guestfs-actions.pod:1381
27100 msgid "guestfs_copy_device_to_device_va"
27101 msgstr ""
27102
27103 #. type: verbatim
27104 #: ../src/guestfs-actions.pod:1383
27105 #, no-wrap
27106 msgid ""
27107 " int\n"
27108 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27109 "                                   const char *src,\n"
27110 "                                   const char *dest,\n"
27111 "                                   va_list args);\n"
27112 "\n"
27113 msgstr ""
27114
27115 #. type: textblock
27116 #: ../src/guestfs-actions.pod:1389
27117 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27118 msgstr ""
27119
27120 #. type: =head2
27121 #: ../src/guestfs-actions.pod:1393
27122 msgid "guestfs_copy_device_to_device_argv"
27123 msgstr ""
27124
27125 #. type: verbatim
27126 #: ../src/guestfs-actions.pod:1395
27127 #, no-wrap
27128 msgid ""
27129 " int\n"
27130 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27131 "                                     const char *src,\n"
27132 "                                     const char *dest,\n"
27133 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
27134 "\n"
27135 msgstr ""
27136
27137 #. type: textblock
27138 #: ../src/guestfs-actions.pod:1401
27139 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27140 msgstr ""
27141
27142 #. type: =head2
27143 #: ../src/guestfs-actions.pod:1405
27144 msgid "guestfs_copy_device_to_file"
27145 msgstr ""
27146
27147 #. type: verbatim
27148 #: ../src/guestfs-actions.pod:1407
27149 #, no-wrap
27150 msgid ""
27151 " int\n"
27152 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27153 "                              const char *src,\n"
27154 "                              const char *dest,\n"
27155 "                              ...);\n"
27156 "\n"
27157 msgstr ""
27158
27159 #. type: verbatim
27160 #: ../src/guestfs-actions.pod:1418
27161 #, no-wrap
27162 msgid ""
27163 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27164 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27165 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27166 "\n"
27167 msgstr ""
27168
27169 #. type: textblock
27170 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
27171 #: ../src/guestfs-actions.pod:1528
27172 msgid ""
27173 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27174 msgstr ""
27175
27176 #. type: =head2
27177 #: ../src/guestfs-actions.pod:1434
27178 msgid "guestfs_copy_device_to_file_va"
27179 msgstr ""
27180
27181 #. type: verbatim
27182 #: ../src/guestfs-actions.pod:1436
27183 #, no-wrap
27184 msgid ""
27185 " int\n"
27186 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27187 "                                 const char *src,\n"
27188 "                                 const char *dest,\n"
27189 "                                 va_list args);\n"
27190 "\n"
27191 msgstr ""
27192
27193 #. type: textblock
27194 #: ../src/guestfs-actions.pod:1442
27195 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27196 msgstr ""
27197
27198 #. type: =head2
27199 #: ../src/guestfs-actions.pod:1446
27200 msgid "guestfs_copy_device_to_file_argv"
27201 msgstr ""
27202
27203 #. type: verbatim
27204 #: ../src/guestfs-actions.pod:1448
27205 #, no-wrap
27206 msgid ""
27207 " int\n"
27208 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27209 "                                   const char *src,\n"
27210 "                                   const char *dest,\n"
27211 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
27212 "\n"
27213 msgstr ""
27214
27215 #. type: textblock
27216 #: ../src/guestfs-actions.pod:1454
27217 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27218 msgstr ""
27219
27220 #. type: =head2
27221 #: ../src/guestfs-actions.pod:1458
27222 msgid "guestfs_copy_file_to_device"
27223 msgstr ""
27224
27225 #. type: verbatim
27226 #: ../src/guestfs-actions.pod:1460
27227 #, no-wrap
27228 msgid ""
27229 " int\n"
27230 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27231 "                              const char *src,\n"
27232 "                              const char *dest,\n"
27233 "                              ...);\n"
27234 "\n"
27235 msgstr ""
27236
27237 #. type: verbatim
27238 #: ../src/guestfs-actions.pod:1471
27239 #, no-wrap
27240 msgid ""
27241 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27242 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27243 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27244 "\n"
27245 msgstr ""
27246
27247 #. type: =head2
27248 #: ../src/guestfs-actions.pod:1487
27249 msgid "guestfs_copy_file_to_device_va"
27250 msgstr ""
27251
27252 #. type: verbatim
27253 #: ../src/guestfs-actions.pod:1489
27254 #, no-wrap
27255 msgid ""
27256 " int\n"
27257 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27258 "                                 const char *src,\n"
27259 "                                 const char *dest,\n"
27260 "                                 va_list args);\n"
27261 "\n"
27262 msgstr ""
27263
27264 #. type: textblock
27265 #: ../src/guestfs-actions.pod:1495
27266 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27267 msgstr ""
27268
27269 #. type: =head2
27270 #: ../src/guestfs-actions.pod:1499
27271 msgid "guestfs_copy_file_to_device_argv"
27272 msgstr ""
27273
27274 #. type: verbatim
27275 #: ../src/guestfs-actions.pod:1501
27276 #, no-wrap
27277 msgid ""
27278 " int\n"
27279 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27280 "                                   const char *src,\n"
27281 "                                   const char *dest,\n"
27282 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
27283 "\n"
27284 msgstr ""
27285
27286 #. type: textblock
27287 #: ../src/guestfs-actions.pod:1507
27288 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27289 msgstr ""
27290
27291 #. type: =head2
27292 #: ../src/guestfs-actions.pod:1511
27293 msgid "guestfs_copy_file_to_file"
27294 msgstr ""
27295
27296 #. type: verbatim
27297 #: ../src/guestfs-actions.pod:1513
27298 #, no-wrap
27299 msgid ""
27300 " int\n"
27301 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27302 "                            const char *src,\n"
27303 "                            const char *dest,\n"
27304 "                            ...);\n"
27305 "\n"
27306 msgstr ""
27307
27308 #. type: verbatim
27309 #: ../src/guestfs-actions.pod:1524
27310 #, no-wrap
27311 msgid ""
27312 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27313 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27314 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27315 "\n"
27316 msgstr ""
27317
27318 #. type: textblock
27319 #: ../src/guestfs-actions.pod:1531
27320 msgid ""
27321 "This is B<not> the function you want for copying files.  This is for copying "
27322 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
27323 "C<guestfs_mv> for general file copying and moving functions."
27324 msgstr ""
27325
27326 #. type: =head2
27327 #: ../src/guestfs-actions.pod:1545
27328 msgid "guestfs_copy_file_to_file_va"
27329 msgstr ""
27330
27331 #. type: verbatim
27332 #: ../src/guestfs-actions.pod:1547
27333 #, no-wrap
27334 msgid ""
27335 " int\n"
27336 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27337 "                               const char *src,\n"
27338 "                               const char *dest,\n"
27339 "                               va_list args);\n"
27340 "\n"
27341 msgstr ""
27342
27343 #. type: textblock
27344 #: ../src/guestfs-actions.pod:1553
27345 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27346 msgstr ""
27347
27348 #. type: =head2
27349 #: ../src/guestfs-actions.pod:1557
27350 msgid "guestfs_copy_file_to_file_argv"
27351 msgstr ""
27352
27353 #. type: verbatim
27354 #: ../src/guestfs-actions.pod:1559
27355 #, no-wrap
27356 msgid ""
27357 " int\n"
27358 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27359 "                                 const char *src,\n"
27360 "                                 const char *dest,\n"
27361 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
27362 "\n"
27363 msgstr ""
27364
27365 #. type: textblock
27366 #: ../src/guestfs-actions.pod:1565
27367 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27368 msgstr ""
27369
27370 #. type: =head2
27371 #: ../src/guestfs-actions.pod:1569
27372 msgid "guestfs_copy_size"
27373 msgstr ""
27374
27375 #. type: verbatim
27376 #: ../src/guestfs-actions.pod:1571
27377 #, no-wrap
27378 msgid ""
27379 " int\n"
27380 " guestfs_copy_size (guestfs_h *g,\n"
27381 "                    const char *src,\n"
27382 "                    const char *dest,\n"
27383 "                    int64_t size);\n"
27384 "\n"
27385 msgstr ""
27386
27387 #. type: textblock
27388 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
27389 msgid ""
27390 "I<This function is deprecated.> In new code, use the L</"
27391 "guestfs_copy_device_to_device> call instead."
27392 msgstr ""
27393
27394 #. type: textblock
27395 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4820
27396 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:7942
27397 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8048
27398 msgid "(Added in 1.0.87)"
27399 msgstr ""
27400
27401 #. type: =head2
27402 #: ../src/guestfs-actions.pod:1599
27403 msgid "guestfs_cp"
27404 msgstr ""
27405
27406 #. type: verbatim
27407 #: ../src/guestfs-actions.pod:1601
27408 #, no-wrap
27409 msgid ""
27410 " int\n"
27411 " guestfs_cp (guestfs_h *g,\n"
27412 "             const char *src,\n"
27413 "             const char *dest);\n"
27414 "\n"
27415 msgstr ""
27416
27417 #. type: textblock
27418 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
27419 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
27420 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5564
27421 #: ../src/guestfs-actions.pod:6056
27422 msgid "(Added in 1.0.18)"
27423 msgstr ""
27424
27425 #. type: =head2
27426 #: ../src/guestfs-actions.pod:1613
27427 msgid "guestfs_cp_a"
27428 msgstr ""
27429
27430 #. type: verbatim
27431 #: ../src/guestfs-actions.pod:1615
27432 #, no-wrap
27433 msgid ""
27434 " int\n"
27435 " guestfs_cp_a (guestfs_h *g,\n"
27436 "               const char *src,\n"
27437 "               const char *dest);\n"
27438 "\n"
27439 msgstr ""
27440
27441 #. type: =head2
27442 #: ../src/guestfs-actions.pod:1627
27443 msgid "guestfs_dd"
27444 msgstr ""
27445
27446 #. type: verbatim
27447 #: ../src/guestfs-actions.pod:1629
27448 #, no-wrap
27449 msgid ""
27450 " int\n"
27451 " guestfs_dd (guestfs_h *g,\n"
27452 "             const char *src,\n"
27453 "             const char *dest);\n"
27454 "\n"
27455 msgstr ""
27456
27457 #. type: textblock
27458 #: ../src/guestfs-actions.pod:1646
27459 msgid ""
27460 "If the destination is a device, it must be as large or larger than the "
27461 "source file or device, otherwise the copy will fail.  This command cannot do "
27462 "partial copies (see C<guestfs_copy_device_to_device>)."
27463 msgstr ""
27464
27465 #. type: =head2
27466 #: ../src/guestfs-actions.pod:1655
27467 msgid "guestfs_df"
27468 msgstr ""
27469
27470 #. type: verbatim
27471 #: ../src/guestfs-actions.pod:1657
27472 #, no-wrap
27473 msgid ""
27474 " char *\n"
27475 " guestfs_df (guestfs_h *g);\n"
27476 "\n"
27477 msgstr ""
27478
27479 #. type: textblock
27480 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
27481 msgid ""
27482 "This command is mostly useful for interactive sessions.  It is I<not> "
27483 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27484 "from programs."
27485 msgstr ""
27486
27487 #. type: textblock
27488 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
27489 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
27490 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
27491 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:5464
27492 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7469
27493 #: ../src/guestfs-actions.pod:8088 ../src/guestfs-actions.pod:8101
27494 #: ../src/guestfs-actions.pod:8114
27495 msgid "(Added in 1.0.54)"
27496 msgstr ""
27497
27498 #. type: =head2
27499 #: ../src/guestfs-actions.pod:1671
27500 msgid "guestfs_df_h"
27501 msgstr ""
27502
27503 #. type: verbatim
27504 #: ../src/guestfs-actions.pod:1673
27505 #, no-wrap
27506 msgid ""
27507 " char *\n"
27508 " guestfs_df_h (guestfs_h *g);\n"
27509 "\n"
27510 msgstr ""
27511
27512 #. type: =head2
27513 #: ../src/guestfs-actions.pod:1688
27514 msgid "guestfs_dmesg"
27515 msgstr ""
27516
27517 #. type: verbatim
27518 #: ../src/guestfs-actions.pod:1690
27519 #, no-wrap
27520 msgid ""
27521 " char *\n"
27522 " guestfs_dmesg (guestfs_h *g);\n"
27523 "\n"
27524 msgstr ""
27525
27526 #. type: textblock
27527 #: ../src/guestfs-actions.pod:1697
27528 msgid ""
27529 "Another way to get the same information is to enable verbose messages with "
27530 "C<guestfs_set_verbose> or by setting the environment variable "
27531 "C<LIBGUESTFS_DEBUG=1> before running the program."
27532 msgstr ""
27533
27534 #. type: =head2
27535 #: ../src/guestfs-actions.pod:1707
27536 msgid "guestfs_download"
27537 msgstr ""
27538
27539 #. type: verbatim
27540 #: ../src/guestfs-actions.pod:1709
27541 #, no-wrap
27542 msgid ""
27543 " int\n"
27544 " guestfs_download (guestfs_h *g,\n"
27545 "                   const char *remotefilename,\n"
27546 "                   const char *filename);\n"
27547 "\n"
27548 msgstr ""
27549
27550 #. type: textblock
27551 #: ../src/guestfs-actions.pod:1719
27552 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27553 msgstr ""
27554
27555 #. type: =head2
27556 #: ../src/guestfs-actions.pod:1730
27557 msgid "guestfs_download_offset"
27558 msgstr ""
27559
27560 #. type: verbatim
27561 #: ../src/guestfs-actions.pod:1732
27562 #, no-wrap
27563 msgid ""
27564 " int\n"
27565 " guestfs_download_offset (guestfs_h *g,\n"
27566 "                          const char *remotefilename,\n"
27567 "                          const char *filename,\n"
27568 "                          int64_t offset,\n"
27569 "                          int64_t size);\n"
27570 "\n"
27571 msgstr ""
27572
27573 #. type: textblock
27574 #: ../src/guestfs-actions.pod:1745
27575 msgid ""
27576 "Note that there is no limit on the amount of data that can be downloaded "
27577 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27578 "full amount unless an error occurs."
27579 msgstr ""
27580
27581 #. type: textblock
27582 #: ../src/guestfs-actions.pod:1750
27583 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27584 msgstr ""
27585
27586 #. type: textblock
27587 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:7746
27588 msgid "(Added in 1.5.17)"
27589 msgstr ""
27590
27591 #. type: =head2
27592 #: ../src/guestfs-actions.pod:1761
27593 msgid "guestfs_drop_caches"
27594 msgstr ""
27595
27596 #. type: verbatim
27597 #: ../src/guestfs-actions.pod:1763
27598 #, no-wrap
27599 msgid ""
27600 " int\n"
27601 " guestfs_drop_caches (guestfs_h *g,\n"
27602 "                      int whattodrop);\n"
27603 "\n"
27604 msgstr ""
27605
27606 #. type: =head2
27607 #: ../src/guestfs-actions.pod:1781
27608 msgid "guestfs_du"
27609 msgstr ""
27610
27611 #. type: verbatim
27612 #: ../src/guestfs-actions.pod:1783
27613 #, no-wrap
27614 msgid ""
27615 " int64_t\n"
27616 " guestfs_du (guestfs_h *g,\n"
27617 "             const char *path);\n"
27618 "\n"
27619 msgstr ""
27620
27621 #. type: =head2
27622 #: ../src/guestfs-actions.pod:1806
27623 msgid "guestfs_e2fsck_f"
27624 msgstr ""
27625
27626 #. type: verbatim
27627 #: ../src/guestfs-actions.pod:1808
27628 #, no-wrap
27629 msgid ""
27630 " int\n"
27631 " guestfs_e2fsck_f (guestfs_h *g,\n"
27632 "                   const char *device);\n"
27633 "\n"
27634 msgstr ""
27635
27636 #. type: textblock
27637 #: ../src/guestfs-actions.pod:1816
27638 msgid ""
27639 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27640 "Normally you should use C<guestfs_fsck>."
27641 msgstr ""
27642
27643 #. type: textblock
27644 #: ../src/guestfs-actions.pod:1821
27645 msgid "(Added in 1.0.29)"
27646 msgstr ""
27647
27648 #. type: =head2
27649 #: ../src/guestfs-actions.pod:1823
27650 msgid "guestfs_echo_daemon"
27651 msgstr ""
27652
27653 #. type: verbatim
27654 #: ../src/guestfs-actions.pod:1825
27655 #, no-wrap
27656 msgid ""
27657 " char *\n"
27658 " guestfs_echo_daemon (guestfs_h *g,\n"
27659 "                      char *const *words);\n"
27660 "\n"
27661 msgstr ""
27662
27663 #. type: textblock
27664 #: ../src/guestfs-actions.pod:1834
27665 msgid "See also C<guestfs_ping_daemon>."
27666 msgstr ""
27667
27668 #. type: textblock
27669 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
27670 #: ../src/guestfs-actions.pod:6926
27671 msgid "(Added in 1.0.69)"
27672 msgstr ""
27673
27674 #. type: =head2
27675 #: ../src/guestfs-actions.pod:1841
27676 msgid "guestfs_egrep"
27677 msgstr ""
27678
27679 #. type: verbatim
27680 #: ../src/guestfs-actions.pod:1843
27681 #, no-wrap
27682 msgid ""
27683 " char **\n"
27684 " guestfs_egrep (guestfs_h *g,\n"
27685 "                const char *regex,\n"
27686 "                const char *path);\n"
27687 "\n"
27688 msgstr ""
27689
27690 #. type: textblock
27691 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
27692 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
27693 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
27694 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
27695 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
27696 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
27697 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4319
27698 #: ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4346
27699 #: ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:5352
27700 #: ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6439
27701 #: ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7325
27702 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7351
27703 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386
27704 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7412
27705 #: ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8225
27706 #: ../src/guestfs-actions.pod:8316 ../src/guestfs-actions.pod:8335
27707 #: ../src/guestfs-actions.pod:8381 ../src/guestfs-actions.pod:8400
27708 msgid "(Added in 1.0.66)"
27709 msgstr ""
27710
27711 #. type: =head2
27712 #: ../src/guestfs-actions.pod:1860
27713 msgid "guestfs_egrepi"
27714 msgstr ""
27715
27716 #. type: verbatim
27717 #: ../src/guestfs-actions.pod:1862
27718 #, no-wrap
27719 msgid ""
27720 " char **\n"
27721 " guestfs_egrepi (guestfs_h *g,\n"
27722 "                 const char *regex,\n"
27723 "                 const char *path);\n"
27724 "\n"
27725 msgstr ""
27726
27727 #. type: =head2
27728 #: ../src/guestfs-actions.pod:1879
27729 msgid "guestfs_equal"
27730 msgstr ""
27731
27732 #. type: verbatim
27733 #: ../src/guestfs-actions.pod:1881
27734 #, no-wrap
27735 msgid ""
27736 " int\n"
27737 " guestfs_equal (guestfs_h *g,\n"
27738 "                const char *file1,\n"
27739 "                const char *file2);\n"
27740 "\n"
27741 msgstr ""
27742
27743 #. type: =head2
27744 #: ../src/guestfs-actions.pod:1895
27745 msgid "guestfs_exists"
27746 msgstr ""
27747
27748 #. type: verbatim
27749 #: ../src/guestfs-actions.pod:1897
27750 #, no-wrap
27751 msgid ""
27752 " int\n"
27753 " guestfs_exists (guestfs_h *g,\n"
27754 "                 const char *path);\n"
27755 "\n"
27756 msgstr ""
27757
27758 #. type: textblock
27759 #: ../src/guestfs-actions.pod:1904
27760 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27761 msgstr ""
27762
27763 #. type: =head2
27764 #: ../src/guestfs-actions.pod:1910
27765 msgid "guestfs_fallocate"
27766 msgstr ""
27767
27768 #. type: verbatim
27769 #: ../src/guestfs-actions.pod:1912
27770 #, no-wrap
27771 msgid ""
27772 " int\n"
27773 " guestfs_fallocate (guestfs_h *g,\n"
27774 "                    const char *path,\n"
27775 "                    int len);\n"
27776 "\n"
27777 msgstr ""
27778
27779 #. type: textblock
27780 #: ../src/guestfs-actions.pod:1917
27781 msgid ""
27782 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27783 "call instead."
27784 msgstr ""
27785
27786 #. type: =head2
27787 #: ../src/guestfs-actions.pod:1936
27788 msgid "guestfs_fallocate64"
27789 msgstr ""
27790
27791 #. type: verbatim
27792 #: ../src/guestfs-actions.pod:1938
27793 #, no-wrap
27794 msgid ""
27795 " int\n"
27796 " guestfs_fallocate64 (guestfs_h *g,\n"
27797 "                      const char *path,\n"
27798 "                      int64_t len);\n"
27799 "\n"
27800 msgstr ""
27801
27802 #. type: textblock
27803 #: ../src/guestfs-actions.pod:1947
27804 msgid ""
27805 "Note that this call allocates disk blocks for the file.  To create a sparse "
27806 "file use C<guestfs_truncate_size> instead."
27807 msgstr ""
27808
27809 #. type: textblock
27810 #: ../src/guestfs-actions.pod:1950
27811 msgid ""
27812 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27813 "oversight it only allowed 30 bit lengths to be specified, effectively "
27814 "limiting the maximum size of files created through that call to 1GB."
27815 msgstr ""
27816
27817 #. type: textblock
27818 #: ../src/guestfs-actions.pod:1961
27819 msgid "(Added in 1.3.17)"
27820 msgstr ""
27821
27822 #. type: =head2
27823 #: ../src/guestfs-actions.pod:1963
27824 msgid "guestfs_fgrep"
27825 msgstr ""
27826
27827 #. type: verbatim
27828 #: ../src/guestfs-actions.pod:1965
27829 #, no-wrap
27830 msgid ""
27831 " char **\n"
27832 " guestfs_fgrep (guestfs_h *g,\n"
27833 "                const char *pattern,\n"
27834 "                const char *path);\n"
27835 "\n"
27836 msgstr ""
27837
27838 #. type: =head2
27839 #: ../src/guestfs-actions.pod:1982
27840 msgid "guestfs_fgrepi"
27841 msgstr ""
27842
27843 #. type: verbatim
27844 #: ../src/guestfs-actions.pod:1984
27845 #, no-wrap
27846 msgid ""
27847 " char **\n"
27848 " guestfs_fgrepi (guestfs_h *g,\n"
27849 "                 const char *pattern,\n"
27850 "                 const char *path);\n"
27851 "\n"
27852 msgstr ""
27853
27854 #. type: =head2
27855 #: ../src/guestfs-actions.pod:2001
27856 msgid "guestfs_file"
27857 msgstr ""
27858
27859 #. type: verbatim
27860 #: ../src/guestfs-actions.pod:2003
27861 #, no-wrap
27862 msgid ""
27863 " char *\n"
27864 " guestfs_file (guestfs_h *g,\n"
27865 "               const char *path);\n"
27866 "\n"
27867 msgstr ""
27868
27869 #. type: textblock
27870 #: ../src/guestfs-actions.pod:2021
27871 msgid ""
27872 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27873 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27874 msgstr ""
27875
27876 #. type: =head2
27877 #: ../src/guestfs-actions.pod:2029
27878 msgid "guestfs_file_architecture"
27879 msgstr ""
27880
27881 #. type: verbatim
27882 #: ../src/guestfs-actions.pod:2031
27883 #, no-wrap
27884 msgid ""
27885 " char *\n"
27886 " guestfs_file_architecture (guestfs_h *g,\n"
27887 "                            const char *filename);\n"
27888 "\n"
27889 msgstr ""
27890
27891 #. type: textblock
27892 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
27893 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
27894 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
27895 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
27896 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
27897 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
27898 #: ../src/guestfs-actions.pod:4008
27899 msgid "(Added in 1.5.3)"
27900 msgstr ""
27901
27902 #. type: =head2
27903 #: ../src/guestfs-actions.pod:2141
27904 msgid "guestfs_filesize"
27905 msgstr ""
27906
27907 #. type: verbatim
27908 #: ../src/guestfs-actions.pod:2143
27909 #, no-wrap
27910 msgid ""
27911 " int64_t\n"
27912 " guestfs_filesize (guestfs_h *g,\n"
27913 "                   const char *file);\n"
27914 "\n"
27915 msgstr ""
27916
27917 #. type: textblock
27918 #: ../src/guestfs-actions.pod:2149
27919 msgid ""
27920 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27921 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27922 "devices, use C<guestfs_blockdev_getsize64>."
27923 msgstr ""
27924
27925 #. type: textblock
27926 #: ../src/guestfs-actions.pod:2155
27927 msgid "(Added in 1.0.82)"
27928 msgstr ""
27929
27930 #. type: =head2
27931 #: ../src/guestfs-actions.pod:2157
27932 msgid "guestfs_fill"
27933 msgstr ""
27934
27935 #. type: verbatim
27936 #: ../src/guestfs-actions.pod:2159
27937 #, no-wrap
27938 msgid ""
27939 " int\n"
27940 " guestfs_fill (guestfs_h *g,\n"
27941 "               int c,\n"
27942 "               int len,\n"
27943 "               const char *path);\n"
27944 "\n"
27945 msgstr ""
27946
27947 #. type: textblock
27948 #: ../src/guestfs-actions.pod:2169
27949 msgid ""
27950 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27951 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27952 "bytes use C<guestfs_fill_pattern>."
27953 msgstr ""
27954
27955 #. type: textblock
27956 #: ../src/guestfs-actions.pod:2181
27957 msgid "(Added in 1.0.79)"
27958 msgstr ""
27959
27960 #. type: =head2
27961 #: ../src/guestfs-actions.pod:2183
27962 msgid "guestfs_fill_pattern"
27963 msgstr ""
27964
27965 #. type: verbatim
27966 #: ../src/guestfs-actions.pod:2185
27967 #, no-wrap
27968 msgid ""
27969 " int\n"
27970 " guestfs_fill_pattern (guestfs_h *g,\n"
27971 "                       const char *pattern,\n"
27972 "                       int len,\n"
27973 "                       const char *path);\n"
27974 "\n"
27975 msgstr ""
27976
27977 #. type: textblock
27978 #: ../src/guestfs-actions.pod:2191
27979 msgid ""
27980 "This function is like C<guestfs_fill> except that it creates a new file of "
27981 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27982 "pattern is truncated if necessary to ensure the length of the file is "
27983 "exactly C<len> bytes."
27984 msgstr ""
27985
27986 #. type: textblock
27987 #: ../src/guestfs-actions.pod:2203
27988 msgid "(Added in 1.3.12)"
27989 msgstr ""
27990
27991 #. type: =head2
27992 #: ../src/guestfs-actions.pod:2205
27993 msgid "guestfs_find"
27994 msgstr ""
27995
27996 #. type: verbatim
27997 #: ../src/guestfs-actions.pod:2207
27998 #, no-wrap
27999 msgid ""
28000 " char **\n"
28001 " guestfs_find (guestfs_h *g,\n"
28002 "               const char *directory);\n"
28003 "\n"
28004 msgstr ""
28005
28006 #. type: textblock
28007 #: ../src/guestfs-actions.pod:2223
28008 msgid ""
28009 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28010 msgstr ""
28011
28012 #. type: textblock
28013 #: ../src/guestfs-actions.pod:2236
28014 msgid "See also C<guestfs_find0>."
28015 msgstr ""
28016
28017 #. type: textblock
28018 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4757
28019 #: ../src/guestfs-actions.pod:6474
28020 msgid "(Added in 1.0.27)"
28021 msgstr ""
28022
28023 #. type: =head2
28024 #: ../src/guestfs-actions.pod:2247
28025 msgid "guestfs_find0"
28026 msgstr ""
28027
28028 #. type: verbatim
28029 #: ../src/guestfs-actions.pod:2249
28030 #, no-wrap
28031 msgid ""
28032 " int\n"
28033 " guestfs_find0 (guestfs_h *g,\n"
28034 "                const char *directory,\n"
28035 "                const char *files);\n"
28036 "\n"
28037 msgstr ""
28038
28039 #. type: textblock
28040 #: ../src/guestfs-actions.pod:2258
28041 msgid ""
28042 "This command works the same way as C<guestfs_find> with the following "
28043 "exceptions:"
28044 msgstr ""
28045
28046 #. type: textblock
28047 #: ../src/guestfs-actions.pod:2285
28048 msgid "(Added in 1.0.74)"
28049 msgstr ""
28050
28051 #. type: =head2
28052 #: ../src/guestfs-actions.pod:2287
28053 msgid "guestfs_findfs_label"
28054 msgstr ""
28055
28056 #. type: verbatim
28057 #: ../src/guestfs-actions.pod:2289
28058 #, no-wrap
28059 msgid ""
28060 " char *\n"
28061 " guestfs_findfs_label (guestfs_h *g,\n"
28062 "                       const char *label);\n"
28063 "\n"
28064 msgstr ""
28065
28066 #. type: textblock
28067 #: ../src/guestfs-actions.pod:2297
28068 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28069 msgstr ""
28070
28071 #. type: =head2
28072 #: ../src/guestfs-actions.pod:2304
28073 msgid "guestfs_findfs_uuid"
28074 msgstr ""
28075
28076 #. type: verbatim
28077 #: ../src/guestfs-actions.pod:2306
28078 #, no-wrap
28079 msgid ""
28080 " char *\n"
28081 " guestfs_findfs_uuid (guestfs_h *g,\n"
28082 "                      const char *uuid);\n"
28083 "\n"
28084 msgstr ""
28085
28086 #. type: textblock
28087 #: ../src/guestfs-actions.pod:2314
28088 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28089 msgstr ""
28090
28091 #. type: =head2
28092 #: ../src/guestfs-actions.pod:2321
28093 msgid "guestfs_fsck"
28094 msgstr ""
28095
28096 #. type: verbatim
28097 #: ../src/guestfs-actions.pod:2323
28098 #, no-wrap
28099 msgid ""
28100 " int\n"
28101 " guestfs_fsck (guestfs_h *g,\n"
28102 "               const char *fstype,\n"
28103 "               const char *device);\n"
28104 "\n"
28105 msgstr ""
28106
28107 #. type: textblock
28108 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8253
28109 msgid "(Added in 1.0.16)"
28110 msgstr ""
28111
28112 #. type: =head2
28113 #: ../src/guestfs-actions.pod:2360
28114 msgid "guestfs_get_append"
28115 msgstr ""
28116
28117 #. type: verbatim
28118 #: ../src/guestfs-actions.pod:2362
28119 #, no-wrap
28120 msgid ""
28121 " const char *\n"
28122 " guestfs_get_append (guestfs_h *g);\n"
28123 "\n"
28124 msgstr ""
28125
28126 #. type: textblock
28127 #: ../src/guestfs-actions.pod:2370
28128 msgid ""
28129 "This function returns a string which may be NULL.  There is no way to return "
28130 "an error from this function.  The string is owned by the guest handle and "
28131 "must I<not> be freed."
28132 msgstr ""
28133
28134 #. type: textblock
28135 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6152
28136 #: ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:7080
28137 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7115
28138 #: ../src/guestfs-actions.pod:7139 ../src/guestfs-actions.pod:7893
28139 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8297
28140 msgid "(Added in 1.0.26)"
28141 msgstr ""
28142
28143 #. type: =head2
28144 #: ../src/guestfs-actions.pod:2376
28145 msgid "guestfs_get_attach_method"
28146 msgstr ""
28147
28148 #. type: verbatim
28149 #: ../src/guestfs-actions.pod:2378
28150 #, no-wrap
28151 msgid ""
28152 " char *\n"
28153 " guestfs_get_attach_method (guestfs_h *g);\n"
28154 "\n"
28155 msgstr ""
28156
28157 #. type: textblock
28158 #: ../src/guestfs-actions.pod:2381
28159 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28160 msgstr ""
28161
28162 #. type: textblock
28163 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6661
28164 msgid "(Added in 1.9.8)"
28165 msgstr ""
28166
28167 #. type: =head2
28168 #: ../src/guestfs-actions.pod:2388
28169 msgid "guestfs_get_autosync"
28170 msgstr ""
28171
28172 #. type: verbatim
28173 #: ../src/guestfs-actions.pod:2390
28174 #, no-wrap
28175 msgid ""
28176 " int\n"
28177 " guestfs_get_autosync (guestfs_h *g);\n"
28178 "\n"
28179 msgstr ""
28180
28181 #. type: =head2
28182 #: ../src/guestfs-actions.pod:2399
28183 msgid "guestfs_get_direct"
28184 msgstr ""
28185
28186 #. type: verbatim
28187 #: ../src/guestfs-actions.pod:2401
28188 #, no-wrap
28189 msgid ""
28190 " int\n"
28191 " guestfs_get_direct (guestfs_h *g);\n"
28192 "\n"
28193 msgstr ""
28194
28195 #. type: textblock
28196 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6702
28197 msgid "(Added in 1.0.72)"
28198 msgstr ""
28199
28200 #. type: =head2
28201 #: ../src/guestfs-actions.pod:2410
28202 msgid "guestfs_get_e2label"
28203 msgstr ""
28204
28205 #. type: verbatim
28206 #: ../src/guestfs-actions.pod:2412
28207 #, no-wrap
28208 msgid ""
28209 " char *\n"
28210 " guestfs_get_e2label (guestfs_h *g,\n"
28211 "                      const char *device);\n"
28212 "\n"
28213 msgstr ""
28214
28215 #. type: textblock
28216 #: ../src/guestfs-actions.pod:2416
28217 msgid ""
28218 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28219 "call instead."
28220 msgstr ""
28221
28222 #. type: textblock
28223 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
28224 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6739
28225 msgid "(Added in 1.0.15)"
28226 msgstr ""
28227
28228 #. type: =head2
28229 #: ../src/guestfs-actions.pod:2431
28230 msgid "guestfs_get_e2uuid"
28231 msgstr ""
28232
28233 #. type: verbatim
28234 #: ../src/guestfs-actions.pod:2433
28235 #, no-wrap
28236 msgid ""
28237 " char *\n"
28238 " guestfs_get_e2uuid (guestfs_h *g,\n"
28239 "                     const char *device);\n"
28240 "\n"
28241 msgstr ""
28242
28243 #. type: textblock
28244 #: ../src/guestfs-actions.pod:2437
28245 msgid ""
28246 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28247 "call instead."
28248 msgstr ""
28249
28250 #. type: =head2
28251 #: ../src/guestfs-actions.pod:2452
28252 msgid "guestfs_get_memsize"
28253 msgstr ""
28254
28255 #. type: verbatim
28256 #: ../src/guestfs-actions.pod:2454
28257 #, no-wrap
28258 msgid ""
28259 " int\n"
28260 " guestfs_get_memsize (guestfs_h *g);\n"
28261 "\n"
28262 msgstr ""
28263
28264 #. type: textblock
28265 #: ../src/guestfs-actions.pod:2460
28266 msgid ""
28267 "If C<guestfs_set_memsize> was not called on this handle, and if "
28268 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28269 "value for memsize."
28270 msgstr ""
28271
28272 #. type: textblock
28273 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5048
28274 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5276
28275 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5307
28276 #: ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5337
28277 #: ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6760
28278 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7662
28279 msgid "(Added in 1.0.55)"
28280 msgstr ""
28281
28282 #. type: =head2
28283 #: ../src/guestfs-actions.pod:2471
28284 msgid "guestfs_get_network"
28285 msgstr ""
28286
28287 #. type: verbatim
28288 #: ../src/guestfs-actions.pod:2473
28289 #, no-wrap
28290 msgid ""
28291 " int\n"
28292 " guestfs_get_network (guestfs_h *g);\n"
28293 "\n"
28294 msgstr ""
28295
28296 #. type: textblock
28297 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6779
28298 msgid "(Added in 1.5.4)"
28299 msgstr ""
28300
28301 #. type: =head2
28302 #: ../src/guestfs-actions.pod:2482
28303 msgid "guestfs_get_path"
28304 msgstr ""
28305
28306 #. type: verbatim
28307 #: ../src/guestfs-actions.pod:2484
28308 #, no-wrap
28309 msgid ""
28310 " const char *\n"
28311 " guestfs_get_path (guestfs_h *g);\n"
28312 "\n"
28313 msgstr ""
28314
28315 #. type: textblock
28316 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
28317 msgid ""
28318 "This function returns a string, or NULL on error.  The string is owned by "
28319 "the guest handle and must I<not> be freed."
28320 msgstr ""
28321
28322 #. type: =head2
28323 #: ../src/guestfs-actions.pod:2497
28324 msgid "guestfs_get_pgroup"
28325 msgstr ""
28326
28327 #. type: verbatim
28328 #: ../src/guestfs-actions.pod:2499
28329 #, no-wrap
28330 msgid ""
28331 " int\n"
28332 " guestfs_get_pgroup (guestfs_h *g);\n"
28333 "\n"
28334 msgstr ""
28335
28336 #. type: textblock
28337 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6815
28338 #: ../src/guestfs-actions.pod:8154
28339 msgid "(Added in 1.11.18)"
28340 msgstr ""
28341
28342 #. type: =head2
28343 #: ../src/guestfs-actions.pod:2508
28344 msgid "guestfs_get_pid"
28345 msgstr ""
28346
28347 #. type: verbatim
28348 #: ../src/guestfs-actions.pod:2510
28349 #, no-wrap
28350 msgid ""
28351 " int\n"
28352 " guestfs_get_pid (guestfs_h *g);\n"
28353 "\n"
28354 msgstr ""
28355
28356 #. type: textblock
28357 #: ../src/guestfs-actions.pod:2520
28358 msgid "(Added in 1.0.56)"
28359 msgstr ""
28360
28361 #. type: =head2
28362 #: ../src/guestfs-actions.pod:2522
28363 msgid "guestfs_get_qemu"
28364 msgstr ""
28365
28366 #. type: verbatim
28367 #: ../src/guestfs-actions.pod:2524
28368 #, no-wrap
28369 msgid ""
28370 " const char *\n"
28371 " guestfs_get_qemu (guestfs_h *g);\n"
28372 "\n"
28373 msgstr ""
28374
28375 #. type: textblock
28376 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6843
28377 msgid "(Added in 1.0.6)"
28378 msgstr ""
28379
28380 #. type: =head2
28381 #: ../src/guestfs-actions.pod:2537
28382 msgid "guestfs_get_recovery_proc"
28383 msgstr ""
28384
28385 #. type: verbatim
28386 #: ../src/guestfs-actions.pod:2539
28387 #, no-wrap
28388 msgid ""
28389 " int\n"
28390 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28391 "\n"
28392 msgstr ""
28393
28394 #. type: textblock
28395 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
28396 #: ../src/guestfs-actions.pod:4461 ../src/guestfs-actions.pod:4855
28397 #: ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:6082
28398 #: ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6867
28399 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7585
28400 #: ../src/guestfs-actions.pod:7777
28401 msgid "(Added in 1.0.77)"
28402 msgstr ""
28403
28404 #. type: =head2
28405 #: ../src/guestfs-actions.pod:2548
28406 msgid "guestfs_get_selinux"
28407 msgstr ""
28408
28409 #. type: verbatim
28410 #: ../src/guestfs-actions.pod:2550
28411 #, no-wrap
28412 msgid ""
28413 " int\n"
28414 " guestfs_get_selinux (guestfs_h *g);\n"
28415 "\n"
28416 msgstr ""
28417
28418 #. type: textblock
28419 #: ../src/guestfs-actions.pod:2553
28420 msgid ""
28421 "This returns the current setting of the selinux flag which is passed to the "
28422 "appliance at boot time.  See C<guestfs_set_selinux>."
28423 msgstr ""
28424
28425 #. type: textblock
28426 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
28427 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6960
28428 msgid "(Added in 1.0.67)"
28429 msgstr ""
28430
28431 #. type: =head2
28432 #: ../src/guestfs-actions.pod:2563
28433 msgid "guestfs_get_smp"
28434 msgstr ""
28435
28436 #. type: verbatim
28437 #: ../src/guestfs-actions.pod:2565
28438 #, no-wrap
28439 msgid ""
28440 " int\n"
28441 " guestfs_get_smp (guestfs_h *g);\n"
28442 "\n"
28443 msgstr ""
28444
28445 #. type: =head2
28446 #: ../src/guestfs-actions.pod:2574
28447 msgid "guestfs_get_state"
28448 msgstr ""
28449
28450 #. type: verbatim
28451 #: ../src/guestfs-actions.pod:2576
28452 #, no-wrap
28453 msgid ""
28454 " int\n"
28455 " guestfs_get_state (guestfs_h *g);\n"
28456 "\n"
28457 msgstr ""
28458
28459 #. type: =head2
28460 #: ../src/guestfs-actions.pod:2588
28461 msgid "guestfs_get_trace"
28462 msgstr ""
28463
28464 #. type: verbatim
28465 #: ../src/guestfs-actions.pod:2590
28466 #, no-wrap
28467 msgid ""
28468 " int\n"
28469 " guestfs_get_trace (guestfs_h *g);\n"
28470 "\n"
28471 msgstr ""
28472
28473 #. type: =head2
28474 #: ../src/guestfs-actions.pod:2599
28475 msgid "guestfs_get_umask"
28476 msgstr ""
28477
28478 #. type: verbatim
28479 #: ../src/guestfs-actions.pod:2601
28480 #, no-wrap
28481 msgid ""
28482 " int\n"
28483 " guestfs_get_umask (guestfs_h *g);\n"
28484 "\n"
28485 msgstr ""
28486
28487 #. type: textblock
28488 #: ../src/guestfs-actions.pod:2604
28489 msgid ""
28490 "Return the current umask.  By default the umask is C<022> unless it has been "
28491 "set by calling C<guestfs_umask>."
28492 msgstr ""
28493
28494 #. type: =head2
28495 #: ../src/guestfs-actions.pod:2611
28496 msgid "guestfs_get_verbose"
28497 msgstr ""
28498
28499 #. type: verbatim
28500 #: ../src/guestfs-actions.pod:2613
28501 #, no-wrap
28502 msgid ""
28503 " int\n"
28504 " guestfs_get_verbose (guestfs_h *g);\n"
28505 "\n"
28506 msgstr ""
28507
28508 #. type: =head2
28509 #: ../src/guestfs-actions.pod:2622
28510 msgid "guestfs_getcon"
28511 msgstr ""
28512
28513 #. type: verbatim
28514 #: ../src/guestfs-actions.pod:2624
28515 #, no-wrap
28516 msgid ""
28517 " char *\n"
28518 " guestfs_getcon (guestfs_h *g);\n"
28519 "\n"
28520 msgstr ""
28521
28522 #. type: textblock
28523 #: ../src/guestfs-actions.pod:2629
28524 msgid ""
28525 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28526 msgstr ""
28527
28528 #. type: =head2
28529 #: ../src/guestfs-actions.pod:2637
28530 msgid "guestfs_getxattr"
28531 msgstr ""
28532
28533 #. type: verbatim
28534 #: ../src/guestfs-actions.pod:2639
28535 #, no-wrap
28536 msgid ""
28537 " char *\n"
28538 " guestfs_getxattr (guestfs_h *g,\n"
28539 "                   const char *path,\n"
28540 "                   const char *name,\n"
28541 "                   size_t *size_r);\n"
28542 "\n"
28543 msgstr ""
28544
28545 #. type: textblock
28546 #: ../src/guestfs-actions.pod:2645
28547 msgid ""
28548 "Get a single extended attribute from file C<path> named C<name>.  This call "
28549 "follows symlinks.  If you want to lookup an extended attribute for the "
28550 "symlink itself, use C<guestfs_lgetxattr>."
28551 msgstr ""
28552
28553 #. type: textblock
28554 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
28555 msgid ""
28556 "Normally it is better to get all extended attributes from a file in one go "
28557 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28558 "implementations are buggy and do not provide a way to list out attributes.  "
28559 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28560 "extended attributes you want in advance and call this function."
28561 msgstr ""
28562
28563 #. type: textblock
28564 #: ../src/guestfs-actions.pod:2659
28565 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28566 msgstr ""
28567
28568 #. type: textblock
28569 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
28570 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
28571 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6101
28572 #: ../src/guestfs-actions.pod:6282
28573 msgid ""
28574 "This function returns a buffer, or NULL on error.  The size of the returned "
28575 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28576 "after use>."
28577 msgstr ""
28578
28579 #. type: textblock
28580 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
28581 msgid "(Added in 1.7.24)"
28582 msgstr ""
28583
28584 #. type: =head2
28585 #: ../src/guestfs-actions.pod:2667
28586 msgid "guestfs_getxattrs"
28587 msgstr ""
28588
28589 #. type: verbatim
28590 #: ../src/guestfs-actions.pod:2669
28591 #, no-wrap
28592 msgid ""
28593 " struct guestfs_xattr_list *\n"
28594 " guestfs_getxattrs (guestfs_h *g,\n"
28595 "                    const char *path);\n"
28596 "\n"
28597 msgstr ""
28598
28599 #. type: textblock
28600 #: ../src/guestfs-actions.pod:2679
28601 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28602 msgstr ""
28603
28604 #. type: textblock
28605 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
28606 #: ../src/guestfs-actions.pod:4851
28607 msgid ""
28608 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28609 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28610 msgstr ""
28611
28612 #. type: textblock
28613 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
28614 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4411
28615 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6979
28616 #: ../src/guestfs-actions.pod:8362
28617 msgid "(Added in 1.0.59)"
28618 msgstr ""
28619
28620 #. type: =head2
28621 #: ../src/guestfs-actions.pod:2687
28622 msgid "guestfs_glob_expand"
28623 msgstr ""
28624
28625 #. type: verbatim
28626 #: ../src/guestfs-actions.pod:2689
28627 #, no-wrap
28628 msgid ""
28629 " char **\n"
28630 " guestfs_glob_expand (guestfs_h *g,\n"
28631 "                      const char *pattern);\n"
28632 "\n"
28633 msgstr ""
28634
28635 #. type: textblock
28636 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7163
28637 #: ../src/guestfs-actions.pod:7180
28638 msgid "(Added in 1.0.50)"
28639 msgstr ""
28640
28641 #. type: =head2
28642 #: ../src/guestfs-actions.pod:2710
28643 msgid "guestfs_grep"
28644 msgstr ""
28645
28646 #. type: verbatim
28647 #: ../src/guestfs-actions.pod:2712
28648 #, no-wrap
28649 msgid ""
28650 " char **\n"
28651 " guestfs_grep (guestfs_h *g,\n"
28652 "               const char *regex,\n"
28653 "               const char *path);\n"
28654 "\n"
28655 msgstr ""
28656
28657 #. type: =head2
28658 #: ../src/guestfs-actions.pod:2729
28659 msgid "guestfs_grepi"
28660 msgstr ""
28661
28662 #. type: verbatim
28663 #: ../src/guestfs-actions.pod:2731
28664 #, no-wrap
28665 msgid ""
28666 " char **\n"
28667 " guestfs_grepi (guestfs_h *g,\n"
28668 "                const char *regex,\n"
28669 "                const char *path);\n"
28670 "\n"
28671 msgstr ""
28672
28673 #. type: =head2
28674 #: ../src/guestfs-actions.pod:2748
28675 msgid "guestfs_grub_install"
28676 msgstr ""
28677
28678 #. type: verbatim
28679 #: ../src/guestfs-actions.pod:2750
28680 #, no-wrap
28681 msgid ""
28682 " int\n"
28683 " guestfs_grub_install (guestfs_h *g,\n"
28684 "                       const char *root,\n"
28685 "                       const char *device);\n"
28686 "\n"
28687 msgstr ""
28688
28689 #. type: textblock
28690 #: ../src/guestfs-actions.pod:2793
28691 msgid "(Added in 1.0.17)"
28692 msgstr ""
28693
28694 #. type: =head2
28695 #: ../src/guestfs-actions.pod:2795
28696 msgid "guestfs_head"
28697 msgstr ""
28698
28699 #. type: verbatim
28700 #: ../src/guestfs-actions.pod:2797
28701 #, no-wrap
28702 msgid ""
28703 " char **\n"
28704 " guestfs_head (guestfs_h *g,\n"
28705 "               const char *path);\n"
28706 "\n"
28707 msgstr ""
28708
28709 #. type: =head2
28710 #: ../src/guestfs-actions.pod:2813
28711 msgid "guestfs_head_n"
28712 msgstr ""
28713
28714 #. type: verbatim
28715 #: ../src/guestfs-actions.pod:2815
28716 #, no-wrap
28717 msgid ""
28718 " char **\n"
28719 " guestfs_head_n (guestfs_h *g,\n"
28720 "                 int nrlines,\n"
28721 "                 const char *path);\n"
28722 "\n"
28723 msgstr ""
28724
28725 #. type: =head2
28726 #: ../src/guestfs-actions.pod:2837
28727 msgid "guestfs_hexdump"
28728 msgstr ""
28729
28730 #. type: verbatim
28731 #: ../src/guestfs-actions.pod:2839
28732 #, no-wrap
28733 msgid ""
28734 " char *\n"
28735 " guestfs_hexdump (guestfs_h *g,\n"
28736 "                  const char *path);\n"
28737 "\n"
28738 msgstr ""
28739
28740 #. type: textblock
28741 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7244
28742 #: ../src/guestfs-actions.pod:7299
28743 msgid "(Added in 1.0.22)"
28744 msgstr ""
28745
28746 #. type: =head2
28747 #: ../src/guestfs-actions.pod:2854
28748 msgid "guestfs_initrd_cat"
28749 msgstr ""
28750
28751 #. type: verbatim
28752 #: ../src/guestfs-actions.pod:2856
28753 #, no-wrap
28754 msgid ""
28755 " char *\n"
28756 " guestfs_initrd_cat (guestfs_h *g,\n"
28757 "                     const char *initrdpath,\n"
28758 "                     const char *filename,\n"
28759 "                     size_t *size_r);\n"
28760 "\n"
28761 msgstr ""
28762
28763 #. type: textblock
28764 #: ../src/guestfs-actions.pod:2872
28765 msgid "See also C<guestfs_initrd_list>."
28766 msgstr ""
28767
28768 #. type: =head2
28769 #: ../src/guestfs-actions.pod:2883
28770 msgid "guestfs_initrd_list"
28771 msgstr ""
28772
28773 #. type: verbatim
28774 #: ../src/guestfs-actions.pod:2885
28775 #, no-wrap
28776 msgid ""
28777 " char **\n"
28778 " guestfs_initrd_list (guestfs_h *g,\n"
28779 "                      const char *path);\n"
28780 "\n"
28781 msgstr ""
28782
28783 #. type: =head2
28784 #: ../src/guestfs-actions.pod:2905
28785 msgid "guestfs_inotify_add_watch"
28786 msgstr ""
28787
28788 #. type: verbatim
28789 #: ../src/guestfs-actions.pod:2907
28790 #, no-wrap
28791 msgid ""
28792 " int64_t\n"
28793 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28794 "                            const char *path,\n"
28795 "                            int mask);\n"
28796 "\n"
28797 msgstr ""
28798
28799 #. type: =head2
28800 #: ../src/guestfs-actions.pod:2926
28801 msgid "guestfs_inotify_close"
28802 msgstr ""
28803
28804 #. type: verbatim
28805 #: ../src/guestfs-actions.pod:2928
28806 #, no-wrap
28807 msgid ""
28808 " int\n"
28809 " guestfs_inotify_close (guestfs_h *g);\n"
28810 "\n"
28811 msgstr ""
28812
28813 #. type: =head2
28814 #: ../src/guestfs-actions.pod:2939
28815 msgid "guestfs_inotify_files"
28816 msgstr ""
28817
28818 #. type: verbatim
28819 #: ../src/guestfs-actions.pod:2941
28820 #, no-wrap
28821 msgid ""
28822 " char **\n"
28823 " guestfs_inotify_files (guestfs_h *g);\n"
28824 "\n"
28825 msgstr ""
28826
28827 #. type: textblock
28828 #: ../src/guestfs-actions.pod:2944
28829 msgid ""
28830 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28831 "returns a list of pathnames of objects that were touched.  The returned "
28832 "pathnames are sorted and deduplicated."
28833 msgstr ""
28834
28835 #. type: =head2
28836 #: ../src/guestfs-actions.pod:2954
28837 msgid "guestfs_inotify_init"
28838 msgstr ""
28839
28840 #. type: verbatim
28841 #: ../src/guestfs-actions.pod:2956
28842 #, no-wrap
28843 msgid ""
28844 " int\n"
28845 " guestfs_inotify_init (guestfs_h *g,\n"
28846 "                       int maxevents);\n"
28847 "\n"
28848 msgstr ""
28849
28850 #. type: textblock
28851 #: ../src/guestfs-actions.pod:2964
28852 msgid ""
28853 "C<maxevents> is the maximum number of events which will be queued up between "
28854 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28855 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28856 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28857 "throws away events, but records the fact that it threw them away by setting "
28858 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28859 "C<guestfs_inotify_read>)."
28860 msgstr ""
28861
28862 #. type: textblock
28863 #: ../src/guestfs-actions.pod:2974
28864 msgid ""
28865 "Before any events are generated, you have to add some watches to the "
28866 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28867 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28868 msgstr ""
28869
28870 #. type: textblock
28871 #: ../src/guestfs-actions.pod:2980
28872 msgid ""
28873 "Queued up events should be read periodically by calling "
28874 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28875 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28876 "often enough then you risk the internal queue overflowing."
28877 msgstr ""
28878
28879 #. type: textblock
28880 #: ../src/guestfs-actions.pod:2987
28881 msgid ""
28882 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28883 "This also removes any watches automatically."
28884 msgstr ""
28885
28886 #. type: =head2
28887 #: ../src/guestfs-actions.pod:3000
28888 msgid "guestfs_inotify_read"
28889 msgstr ""
28890
28891 #. type: verbatim
28892 #: ../src/guestfs-actions.pod:3002
28893 #, no-wrap
28894 msgid ""
28895 " struct guestfs_inotify_event_list *\n"
28896 " guestfs_inotify_read (guestfs_h *g);\n"
28897 "\n"
28898 msgstr ""
28899
28900 #. type: textblock
28901 #: ../src/guestfs-actions.pod:3016
28902 msgid ""
28903 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28904 "there was an error.  I<The caller must call "
28905 "C<guestfs_free_inotify_event_list> after use>."
28906 msgstr ""
28907
28908 #. type: =head2
28909 #: ../src/guestfs-actions.pod:3022
28910 msgid "guestfs_inotify_rm_watch"
28911 msgstr ""
28912
28913 #. type: verbatim
28914 #: ../src/guestfs-actions.pod:3024
28915 #, no-wrap
28916 msgid ""
28917 " int\n"
28918 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28919 "                           int wd);\n"
28920 "\n"
28921 msgstr ""
28922
28923 #. type: textblock
28924 #: ../src/guestfs-actions.pod:3028
28925 msgid ""
28926 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28927 msgstr ""
28928
28929 #. type: =head2
28930 #: ../src/guestfs-actions.pod:3035
28931 msgid "guestfs_inspect_get_arch"
28932 msgstr ""
28933
28934 #. type: verbatim
28935 #: ../src/guestfs-actions.pod:3037
28936 #, no-wrap
28937 msgid ""
28938 " char *\n"
28939 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28940 "                           const char *root);\n"
28941 "\n"
28942 msgstr ""
28943
28944 #. type: textblock
28945 #: ../src/guestfs-actions.pod:3041
28946 msgid ""
28947 "This returns the architecture of the inspected operating system.  The "
28948 "possible return values are listed under C<guestfs_file_architecture>."
28949 msgstr ""
28950
28951 #. type: =head2
28952 #: ../src/guestfs-actions.pod:3055
28953 msgid "guestfs_inspect_get_distro"
28954 msgstr ""
28955
28956 #. type: verbatim
28957 #: ../src/guestfs-actions.pod:3057
28958 #, no-wrap
28959 msgid ""
28960 " char *\n"
28961 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28962 "                             const char *root);\n"
28963 "\n"
28964 msgstr ""
28965
28966 #. type: =head2
28967 #: ../src/guestfs-actions.pod:3157
28968 msgid "guestfs_inspect_get_drive_mappings"
28969 msgstr ""
28970
28971 #. type: verbatim
28972 #: ../src/guestfs-actions.pod:3159
28973 #, no-wrap
28974 msgid ""
28975 " char **\n"
28976 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28977 "                                     const char *root);\n"
28978 "\n"
28979 msgstr ""
28980
28981 #. type: textblock
28982 #: ../src/guestfs-actions.pod:3188
28983 msgid ""
28984 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28985 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28986 msgstr ""
28987
28988 #. type: textblock
28989 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
28990 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5526
28991 #: ../src/guestfs-actions.pod:7601
28992 msgid ""
28993 "This function returns a NULL-terminated array of strings, or NULL if there "
28994 "was an error.  The array of strings will always have length C<2n+1>, where "
28995 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28996 "caller must free the strings and the array after use>."
28997 msgstr ""
28998
28999 #. type: textblock
29000 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
29001 msgid "(Added in 1.9.17)"
29002 msgstr ""
29003
29004 #. type: =head2
29005 #: ../src/guestfs-actions.pod:3200
29006 msgid "guestfs_inspect_get_filesystems"
29007 msgstr ""
29008
29009 #. type: verbatim
29010 #: ../src/guestfs-actions.pod:3202
29011 #, no-wrap
29012 msgid ""
29013 " char **\n"
29014 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29015 "                                  const char *root);\n"
29016 "\n"
29017 msgstr ""
29018
29019 #. type: textblock
29020 #: ../src/guestfs-actions.pod:3214
29021 msgid ""
29022 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29023 "C<guestfs_inspect_get_mountpoints>."
29024 msgstr ""
29025
29026 #. type: =head2
29027 #: ../src/guestfs-actions.pod:3223
29028 msgid "guestfs_inspect_get_format"
29029 msgstr ""
29030
29031 #. type: verbatim
29032 #: ../src/guestfs-actions.pod:3225
29033 #, no-wrap
29034 msgid ""
29035 " char *\n"
29036 " guestfs_inspect_get_format (guestfs_h *g,\n"
29037 "                             const char *root);\n"
29038 "\n"
29039 msgstr ""
29040
29041 #. type: textblock
29042 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
29043 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
29044 #: ../src/guestfs-actions.pod:6493
29045 msgid "(Added in 1.9.4)"
29046 msgstr ""
29047
29048 #. type: =head2
29049 #: ../src/guestfs-actions.pod:3261
29050 msgid "guestfs_inspect_get_hostname"
29051 msgstr ""
29052
29053 #. type: verbatim
29054 #: ../src/guestfs-actions.pod:3263
29055 #, no-wrap
29056 msgid ""
29057 " char *\n"
29058 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29059 "                               const char *root);\n"
29060 "\n"
29061 msgstr ""
29062
29063 #. type: textblock
29064 #: ../src/guestfs-actions.pod:3278
29065 msgid "(Added in 1.7.9)"
29066 msgstr ""
29067
29068 #. type: =head2
29069 #: ../src/guestfs-actions.pod:3280
29070 msgid "guestfs_inspect_get_icon"
29071 msgstr ""
29072
29073 #. type: verbatim
29074 #: ../src/guestfs-actions.pod:3282
29075 #, no-wrap
29076 msgid ""
29077 " char *\n"
29078 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29079 "                           const char *root,\n"
29080 "                           size_t *size_r,\n"
29081 "                           ...);\n"
29082 "\n"
29083 msgstr ""
29084
29085 #. type: verbatim
29086 #: ../src/guestfs-actions.pod:3293
29087 #, no-wrap
29088 msgid ""
29089 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29090 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29091 "\n"
29092 msgstr ""
29093
29094 #. type: textblock
29095 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
29096 #: ../src/guestfs-actions.pod:5425
29097 msgid "(Added in 1.11.12)"
29098 msgstr ""
29099
29100 #. type: =head2
29101 #: ../src/guestfs-actions.pod:3362
29102 msgid "guestfs_inspect_get_icon_va"
29103 msgstr ""
29104
29105 #. type: verbatim
29106 #: ../src/guestfs-actions.pod:3364
29107 #, no-wrap
29108 msgid ""
29109 " char *\n"
29110 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29111 "                              const char *root,\n"
29112 "                              size_t *size_r,\n"
29113 "                              va_list args);\n"
29114 "\n"
29115 msgstr ""
29116
29117 #. type: textblock
29118 #: ../src/guestfs-actions.pod:3370
29119 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29120 msgstr ""
29121
29122 #. type: =head2
29123 #: ../src/guestfs-actions.pod:3374
29124 msgid "guestfs_inspect_get_icon_argv"
29125 msgstr ""
29126
29127 #. type: verbatim
29128 #: ../src/guestfs-actions.pod:3376
29129 #, no-wrap
29130 msgid ""
29131 " char *\n"
29132 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29133 "                                const char *root,\n"
29134 "                                size_t *size_r,\n"
29135 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29136 "\n"
29137 msgstr ""
29138
29139 #. type: textblock
29140 #: ../src/guestfs-actions.pod:3382
29141 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29142 msgstr ""
29143
29144 #. type: =head2
29145 #: ../src/guestfs-actions.pod:3386
29146 msgid "guestfs_inspect_get_major_version"
29147 msgstr ""
29148
29149 #. type: verbatim
29150 #: ../src/guestfs-actions.pod:3388
29151 #, no-wrap
29152 msgid ""
29153 " int\n"
29154 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29155 "                                    const char *root);\n"
29156 "\n"
29157 msgstr ""
29158
29159 #. type: =head2
29160 #: ../src/guestfs-actions.pod:3410
29161 msgid "guestfs_inspect_get_minor_version"
29162 msgstr ""
29163
29164 #. type: verbatim
29165 #: ../src/guestfs-actions.pod:3412
29166 #, no-wrap
29167 msgid ""
29168 " int\n"
29169 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29170 "                                    const char *root);\n"
29171 "\n"
29172 msgstr ""
29173
29174 #. type: textblock
29175 #: ../src/guestfs-actions.pod:3421
29176 msgid ""
29177 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29178 "C<guestfs_inspect_get_major_version>."
29179 msgstr ""
29180
29181 #. type: =head2
29182 #: ../src/guestfs-actions.pod:3428
29183 msgid "guestfs_inspect_get_mountpoints"
29184 msgstr ""
29185
29186 #. type: verbatim
29187 #: ../src/guestfs-actions.pod:3430
29188 #, no-wrap
29189 msgid ""
29190 " char **\n"
29191 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29192 "                                  const char *root);\n"
29193 "\n"
29194 msgstr ""
29195
29196 #. type: textblock
29197 #: ../src/guestfs-actions.pod:3451
29198 msgid ""
29199 "For operating systems like Windows which still use drive letters, this call "
29200 "will only return an entry for the first drive \"mounted on\" C</>.  For "
29201 "information about the mapping of drive letters to partitions, see "
29202 "C<guestfs_inspect_get_drive_mappings>."
29203 msgstr ""
29204
29205 #. type: textblock
29206 #: ../src/guestfs-actions.pod:3457
29207 msgid ""
29208 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29209 "C<guestfs_inspect_get_filesystems>."
29210 msgstr ""
29211
29212 #. type: =head2
29213 #: ../src/guestfs-actions.pod:3468
29214 msgid "guestfs_inspect_get_package_format"
29215 msgstr ""
29216
29217 #. type: verbatim
29218 #: ../src/guestfs-actions.pod:3470
29219 #, no-wrap
29220 msgid ""
29221 " char *\n"
29222 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29223 "                                     const char *root);\n"
29224 "\n"
29225 msgstr ""
29226
29227 #. type: textblock
29228 #: ../src/guestfs-actions.pod:3474
29229 msgid ""
29230 "This function and C<guestfs_inspect_get_package_management> return the "
29231 "package format and package management tool used by the inspected operating "
29232 "system.  For example for Fedora these functions would return C<rpm> (package "
29233 "format) and C<yum> (package management)."
29234 msgstr ""
29235
29236 #. type: textblock
29237 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
29238 msgid "(Added in 1.7.5)"
29239 msgstr ""
29240
29241 #. type: =head2
29242 #: ../src/guestfs-actions.pod:3495
29243 msgid "guestfs_inspect_get_package_management"
29244 msgstr ""
29245
29246 #. type: verbatim
29247 #: ../src/guestfs-actions.pod:3497
29248 #, no-wrap
29249 msgid ""
29250 " char *\n"
29251 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29252 "                                         const char *root);\n"
29253 "\n"
29254 msgstr ""
29255
29256 #. type: textblock
29257 #: ../src/guestfs-actions.pod:3501
29258 msgid ""
29259 "C<guestfs_inspect_get_package_format> and this function return the package "
29260 "format and package management tool used by the inspected operating system.  "
29261 "For example for Fedora these functions would return C<rpm> (package format) "
29262 "and C<yum> (package management)."
29263 msgstr ""
29264
29265 #. type: =head2
29266 #: ../src/guestfs-actions.pod:3523
29267 msgid "guestfs_inspect_get_product_name"
29268 msgstr ""
29269
29270 #. type: verbatim
29271 #: ../src/guestfs-actions.pod:3525
29272 #, no-wrap
29273 msgid ""
29274 " char *\n"
29275 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29276 "                                   const char *root);\n"
29277 "\n"
29278 msgstr ""
29279
29280 #. type: =head2
29281 #: ../src/guestfs-actions.pod:3544
29282 msgid "guestfs_inspect_get_product_variant"
29283 msgstr ""
29284
29285 #. type: verbatim
29286 #: ../src/guestfs-actions.pod:3546
29287 #, no-wrap
29288 msgid ""
29289 " char *\n"
29290 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29291 "                                      const char *root);\n"
29292 "\n"
29293 msgstr ""
29294
29295 #. type: textblock
29296 #: ../src/guestfs-actions.pod:3569
29297 msgid ""
29298 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29299 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29300 msgstr ""
29301
29302 #. type: textblock
29303 #: ../src/guestfs-actions.pod:3576
29304 msgid "(Added in 1.9.13)"
29305 msgstr ""
29306
29307 #. type: =head2
29308 #: ../src/guestfs-actions.pod:3578
29309 msgid "guestfs_inspect_get_roots"
29310 msgstr ""
29311
29312 #. type: verbatim
29313 #: ../src/guestfs-actions.pod:3580
29314 #, no-wrap
29315 msgid ""
29316 " char **\n"
29317 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29318 "\n"
29319 msgstr ""
29320
29321 #. type: textblock
29322 #: ../src/guestfs-actions.pod:3583
29323 msgid ""
29324 "This function is a convenient way to get the list of root devices, as "
29325 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29326 "the whole inspection process."
29327 msgstr ""
29328
29329 #. type: textblock
29330 #: ../src/guestfs-actions.pod:3587
29331 msgid ""
29332 "This returns an empty list if either no root devices were found or the "
29333 "caller has not called C<guestfs_inspect_os>."
29334 msgstr ""
29335
29336 #. type: textblock
29337 #: ../src/guestfs-actions.pod:3596
29338 msgid "(Added in 1.7.3)"
29339 msgstr ""
29340
29341 #. type: =head2
29342 #: ../src/guestfs-actions.pod:3598
29343 msgid "guestfs_inspect_get_type"
29344 msgstr ""
29345
29346 #. type: verbatim
29347 #: ../src/guestfs-actions.pod:3600
29348 #, no-wrap
29349 msgid ""
29350 " char *\n"
29351 " guestfs_inspect_get_type (guestfs_h *g,\n"
29352 "                           const char *root);\n"
29353 "\n"
29354 msgstr ""
29355
29356 #. type: =head2
29357 #: ../src/guestfs-actions.pod:3641
29358 msgid "guestfs_inspect_get_windows_current_control_set"
29359 msgstr ""
29360
29361 #. type: verbatim
29362 #: ../src/guestfs-actions.pod:3643
29363 #, no-wrap
29364 msgid ""
29365 " char *\n"
29366 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29367 "                                                  const char *root);\n"
29368 "\n"
29369 msgstr ""
29370
29371 #. type: =head2
29372 #: ../src/guestfs-actions.pod:3661
29373 msgid "guestfs_inspect_get_windows_systemroot"
29374 msgstr ""
29375
29376 #. type: verbatim
29377 #: ../src/guestfs-actions.pod:3663
29378 #, no-wrap
29379 msgid ""
29380 " char *\n"
29381 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29382 "                                         const char *root);\n"
29383 "\n"
29384 msgstr ""
29385
29386 #. type: textblock
29387 #: ../src/guestfs-actions.pod:3679
29388 msgid "(Added in 1.5.25)"
29389 msgstr ""
29390
29391 #. type: =head2
29392 #: ../src/guestfs-actions.pod:3681
29393 msgid "guestfs_inspect_is_live"
29394 msgstr ""
29395
29396 #. type: verbatim
29397 #: ../src/guestfs-actions.pod:3683
29398 #, no-wrap
29399 msgid ""
29400 " int\n"
29401 " guestfs_inspect_is_live (guestfs_h *g,\n"
29402 "                          const char *root);\n"
29403 "\n"
29404 msgstr ""
29405
29406 #. type: textblock
29407 #: ../src/guestfs-actions.pod:3687
29408 msgid ""
29409 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29410 "disk), then this returns true if a live image was detected on the disk."
29411 msgstr ""
29412
29413 #. type: =head2
29414 #: ../src/guestfs-actions.pod:3697
29415 msgid "guestfs_inspect_is_multipart"
29416 msgstr ""
29417
29418 #. type: verbatim
29419 #: ../src/guestfs-actions.pod:3699
29420 #, no-wrap
29421 msgid ""
29422 " int\n"
29423 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29424 "                               const char *root);\n"
29425 "\n"
29426 msgstr ""
29427
29428 #. type: textblock
29429 #: ../src/guestfs-actions.pod:3703
29430 msgid ""
29431 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29432 "disk), then this returns true if the disk is part of a set."
29433 msgstr ""
29434
29435 #. type: =head2
29436 #: ../src/guestfs-actions.pod:3713
29437 msgid "guestfs_inspect_is_netinst"
29438 msgstr ""
29439
29440 #. type: verbatim
29441 #: ../src/guestfs-actions.pod:3715
29442 #, no-wrap
29443 msgid ""
29444 " int\n"
29445 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29446 "                             const char *root);\n"
29447 "\n"
29448 msgstr ""
29449
29450 #. type: textblock
29451 #: ../src/guestfs-actions.pod:3719
29452 msgid ""
29453 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29454 "disk), then this returns true if the disk is a network installer, ie. not a "
29455 "self-contained install CD but one which is likely to require network access "
29456 "to complete the install."
29457 msgstr ""
29458
29459 #. type: =head2
29460 #: ../src/guestfs-actions.pod:3731
29461 msgid "guestfs_inspect_list_applications"
29462 msgstr ""
29463
29464 #. type: verbatim
29465 #: ../src/guestfs-actions.pod:3733
29466 #, no-wrap
29467 msgid ""
29468 " struct guestfs_application_list *\n"
29469 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29470 "                                    const char *root);\n"
29471 "\n"
29472 msgstr ""
29473
29474 #. type: textblock
29475 #: ../src/guestfs-actions.pod:3739
29476 msgid ""
29477 "I<Note:> This call works differently from other parts of the inspection "
29478 "API.  You have to call C<guestfs_inspect_os>, then "
29479 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29480 "this.  Listing applications is a significantly more difficult operation "
29481 "which requires access to the full filesystem.  Also note that unlike the "
29482 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29483 "the libguestfs handle, this call actually reads parts of the mounted "
29484 "filesystems during the call."
29485 msgstr ""
29486
29487 #. type: textblock
29488 #: ../src/guestfs-actions.pod:3829
29489 msgid ""
29490 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29491 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
29492 "after use>."
29493 msgstr ""
29494
29495 #. type: textblock
29496 #: ../src/guestfs-actions.pod:3833
29497 msgid "(Added in 1.7.8)"
29498 msgstr ""
29499
29500 #. type: =head2
29501 #: ../src/guestfs-actions.pod:3835
29502 msgid "guestfs_inspect_os"
29503 msgstr ""
29504
29505 #. type: verbatim
29506 #: ../src/guestfs-actions.pod:3837
29507 #, no-wrap
29508 msgid ""
29509 " char **\n"
29510 " guestfs_inspect_os (guestfs_h *g);\n"
29511 "\n"
29512 msgstr ""
29513
29514 #. type: textblock
29515 #: ../src/guestfs-actions.pod:3853
29516 msgid ""
29517 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29518 "functions in order to query further information about each operating system, "
29519 "such as the name and version."
29520 msgstr ""
29521
29522 #. type: textblock
29523 #: ../src/guestfs-actions.pod:3858
29524 msgid ""
29525 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29526 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29527 "the contents.  This should be called with no disks currently mounted.  The "
29528 "function may also use Augeas, so any existing Augeas handle will be closed."
29529 msgstr ""
29530
29531 #. type: textblock
29532 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
29533 #: ../src/guestfs-actions.pod:4283
29534 msgid "See also C<guestfs_list_filesystems>."
29535 msgstr ""
29536
29537 #. type: =head2
29538 #: ../src/guestfs-actions.pod:3878
29539 msgid "guestfs_is_blockdev"
29540 msgstr ""
29541
29542 #. type: verbatim
29543 #: ../src/guestfs-actions.pod:3880
29544 #, no-wrap
29545 msgid ""
29546 " int\n"
29547 " guestfs_is_blockdev (guestfs_h *g,\n"
29548 "                      const char *path);\n"
29549 "\n"
29550 msgstr ""
29551
29552 #. type: textblock
29553 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
29554 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
29555 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
29556 #: ../src/guestfs-actions.pod:4048
29557 msgid "See also C<guestfs_stat>."
29558 msgstr ""
29559
29560 #. type: textblock
29561 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
29562 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
29563 #: ../src/guestfs-actions.pod:4052
29564 msgid "(Added in 1.5.10)"
29565 msgstr ""
29566
29567 #. type: =head2
29568 #: ../src/guestfs-actions.pod:3893
29569 msgid "guestfs_is_busy"
29570 msgstr ""
29571
29572 #. type: verbatim
29573 #: ../src/guestfs-actions.pod:3895
29574 #, no-wrap
29575 msgid ""
29576 " int\n"
29577 " guestfs_is_busy (guestfs_h *g);\n"
29578 "\n"
29579 msgstr ""
29580
29581 #. type: =head2
29582 #: ../src/guestfs-actions.pod:3907
29583 msgid "guestfs_is_chardev"
29584 msgstr ""
29585
29586 #. type: verbatim
29587 #: ../src/guestfs-actions.pod:3909
29588 #, no-wrap
29589 msgid ""
29590 " int\n"
29591 " guestfs_is_chardev (guestfs_h *g,\n"
29592 "                     const char *path);\n"
29593 "\n"
29594 msgstr ""
29595
29596 #. type: =head2
29597 #: ../src/guestfs-actions.pod:3922
29598 msgid "guestfs_is_config"
29599 msgstr ""
29600
29601 #. type: verbatim
29602 #: ../src/guestfs-actions.pod:3924
29603 #, no-wrap
29604 msgid ""
29605 " int\n"
29606 " guestfs_is_config (guestfs_h *g);\n"
29607 "\n"
29608 msgstr ""
29609
29610 #. type: =head2
29611 #: ../src/guestfs-actions.pod:3936
29612 msgid "guestfs_is_dir"
29613 msgstr ""
29614
29615 #. type: verbatim
29616 #: ../src/guestfs-actions.pod:3938
29617 #, no-wrap
29618 msgid ""
29619 " int\n"
29620 " guestfs_is_dir (guestfs_h *g,\n"
29621 "                 const char *path);\n"
29622 "\n"
29623 msgstr ""
29624
29625 #. type: =head2
29626 #: ../src/guestfs-actions.pod:3952
29627 msgid "guestfs_is_fifo"
29628 msgstr ""
29629
29630 #. type: verbatim
29631 #: ../src/guestfs-actions.pod:3954
29632 #, no-wrap
29633 msgid ""
29634 " int\n"
29635 " guestfs_is_fifo (guestfs_h *g,\n"
29636 "                  const char *path);\n"
29637 "\n"
29638 msgstr ""
29639
29640 #. type: =head2
29641 #: ../src/guestfs-actions.pod:3967
29642 msgid "guestfs_is_file"
29643 msgstr ""
29644
29645 #. type: verbatim
29646 #: ../src/guestfs-actions.pod:3969
29647 #, no-wrap
29648 msgid ""
29649 " int\n"
29650 " guestfs_is_file (guestfs_h *g,\n"
29651 "                  const char *path);\n"
29652 "\n"
29653 msgstr ""
29654
29655 #. type: =head2
29656 #: ../src/guestfs-actions.pod:3983
29657 msgid "guestfs_is_launching"
29658 msgstr ""
29659
29660 #. type: verbatim
29661 #: ../src/guestfs-actions.pod:3985
29662 #, no-wrap
29663 msgid ""
29664 " int\n"
29665 " guestfs_is_launching (guestfs_h *g);\n"
29666 "\n"
29667 msgstr ""
29668
29669 #. type: =head2
29670 #: ../src/guestfs-actions.pod:3997
29671 msgid "guestfs_is_lv"
29672 msgstr ""
29673
29674 #. type: verbatim
29675 #: ../src/guestfs-actions.pod:3999
29676 #, no-wrap
29677 msgid ""
29678 " int\n"
29679 " guestfs_is_lv (guestfs_h *g,\n"
29680 "                const char *device);\n"
29681 "\n"
29682 msgstr ""
29683
29684 #. type: =head2
29685 #: ../src/guestfs-actions.pod:4010
29686 msgid "guestfs_is_ready"
29687 msgstr ""
29688
29689 #. type: verbatim
29690 #: ../src/guestfs-actions.pod:4012
29691 #, no-wrap
29692 msgid ""
29693 " int\n"
29694 " guestfs_is_ready (guestfs_h *g);\n"
29695 "\n"
29696 msgstr ""
29697
29698 #. type: =head2
29699 #: ../src/guestfs-actions.pod:4024
29700 msgid "guestfs_is_socket"
29701 msgstr ""
29702
29703 #. type: verbatim
29704 #: ../src/guestfs-actions.pod:4026
29705 #, no-wrap
29706 msgid ""
29707 " int\n"
29708 " guestfs_is_socket (guestfs_h *g,\n"
29709 "                    const char *path);\n"
29710 "\n"
29711 msgstr ""
29712
29713 #. type: =head2
29714 #: ../src/guestfs-actions.pod:4039
29715 msgid "guestfs_is_symlink"
29716 msgstr ""
29717
29718 #. type: verbatim
29719 #: ../src/guestfs-actions.pod:4041
29720 #, no-wrap
29721 msgid ""
29722 " int\n"
29723 " guestfs_is_symlink (guestfs_h *g,\n"
29724 "                     const char *path);\n"
29725 "\n"
29726 msgstr ""
29727
29728 #. type: =head2
29729 #: ../src/guestfs-actions.pod:4054
29730 msgid "guestfs_is_zero"
29731 msgstr ""
29732
29733 #. type: verbatim
29734 #: ../src/guestfs-actions.pod:4056
29735 #, no-wrap
29736 msgid ""
29737 " int\n"
29738 " guestfs_is_zero (guestfs_h *g,\n"
29739 "                  const char *path);\n"
29740 "\n"
29741 msgstr ""
29742
29743 #. type: textblock
29744 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
29745 msgid "(Added in 1.11.8)"
29746 msgstr ""
29747
29748 #. type: =head2
29749 #: ../src/guestfs-actions.pod:4067
29750 msgid "guestfs_is_zero_device"
29751 msgstr ""
29752
29753 #. type: verbatim
29754 #: ../src/guestfs-actions.pod:4069
29755 #, no-wrap
29756 msgid ""
29757 " int\n"
29758 " guestfs_is_zero_device (guestfs_h *g,\n"
29759 "                         const char *device);\n"
29760 "\n"
29761 msgstr ""
29762
29763 #. type: =head2
29764 #: ../src/guestfs-actions.pod:4081
29765 msgid "guestfs_kill_subprocess"
29766 msgstr ""
29767
29768 #. type: verbatim
29769 #: ../src/guestfs-actions.pod:4083
29770 #, no-wrap
29771 msgid ""
29772 " int\n"
29773 " guestfs_kill_subprocess (guestfs_h *g);\n"
29774 "\n"
29775 msgstr ""
29776
29777 #. type: =head2
29778 #: ../src/guestfs-actions.pod:4092
29779 msgid "guestfs_launch"
29780 msgstr ""
29781
29782 #. type: verbatim
29783 #: ../src/guestfs-actions.pod:4094
29784 #, no-wrap
29785 msgid ""
29786 " int\n"
29787 " guestfs_launch (guestfs_h *g);\n"
29788 "\n"
29789 msgstr ""
29790
29791 #. type: =head2
29792 #: ../src/guestfs-actions.pod:4112
29793 msgid "guestfs_lchown"
29794 msgstr ""
29795
29796 #. type: verbatim
29797 #: ../src/guestfs-actions.pod:4114
29798 #, no-wrap
29799 msgid ""
29800 " int\n"
29801 " guestfs_lchown (guestfs_h *g,\n"
29802 "                 int owner,\n"
29803 "                 int group,\n"
29804 "                 const char *path);\n"
29805 "\n"
29806 msgstr ""
29807
29808 #. type: textblock
29809 #: ../src/guestfs-actions.pod:4120
29810 msgid ""
29811 "Change the file owner to C<owner> and group to C<group>.  This is like "
29812 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29813 "changed, not the target."
29814 msgstr ""
29815
29816 #. type: =head2
29817 #: ../src/guestfs-actions.pod:4132
29818 msgid "guestfs_lgetxattr"
29819 msgstr ""
29820
29821 #. type: verbatim
29822 #: ../src/guestfs-actions.pod:4134
29823 #, no-wrap
29824 msgid ""
29825 " char *\n"
29826 " guestfs_lgetxattr (guestfs_h *g,\n"
29827 "                    const char *path,\n"
29828 "                    const char *name,\n"
29829 "                    size_t *size_r);\n"
29830 "\n"
29831 msgstr ""
29832
29833 #. type: textblock
29834 #: ../src/guestfs-actions.pod:4154
29835 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29836 msgstr ""
29837
29838 #. type: =head2
29839 #: ../src/guestfs-actions.pod:4162
29840 msgid "guestfs_lgetxattrs"
29841 msgstr ""
29842
29843 #. type: verbatim
29844 #: ../src/guestfs-actions.pod:4164
29845 #, no-wrap
29846 msgid ""
29847 " struct guestfs_xattr_list *\n"
29848 " guestfs_lgetxattrs (guestfs_h *g,\n"
29849 "                     const char *path);\n"
29850 "\n"
29851 msgstr ""
29852
29853 #. type: textblock
29854 #: ../src/guestfs-actions.pod:4168
29855 msgid ""
29856 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29857 "then it returns the extended attributes of the link itself."
29858 msgstr ""
29859
29860 #. type: =head2
29861 #: ../src/guestfs-actions.pod:4178
29862 msgid "guestfs_list_9p"
29863 msgstr ""
29864
29865 #. type: verbatim
29866 #: ../src/guestfs-actions.pod:4180
29867 #, no-wrap
29868 msgid ""
29869 " char **\n"
29870 " guestfs_list_9p (guestfs_h *g);\n"
29871 "\n"
29872 msgstr ""
29873
29874 #. type: =head2
29875 #: ../src/guestfs-actions.pod:4192
29876 msgid "guestfs_list_devices"
29877 msgstr ""
29878
29879 #. type: verbatim
29880 #: ../src/guestfs-actions.pod:4194
29881 #, no-wrap
29882 msgid ""
29883 " char **\n"
29884 " guestfs_list_devices (guestfs_h *g);\n"
29885 "\n"
29886 msgstr ""
29887
29888 #. type: =head2
29889 #: ../src/guestfs-actions.pod:4209
29890 msgid "guestfs_list_dm_devices"
29891 msgstr ""
29892
29893 #. type: verbatim
29894 #: ../src/guestfs-actions.pod:4211
29895 #, no-wrap
29896 msgid ""
29897 " char **\n"
29898 " guestfs_list_dm_devices (guestfs_h *g);\n"
29899 "\n"
29900 msgstr ""
29901
29902 #. type: textblock
29903 #: ../src/guestfs-actions.pod:4216
29904 msgid ""
29905 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29906 "previous call to C<guestfs_luks_open>."
29907 msgstr ""
29908
29909 #. type: textblock
29910 #: ../src/guestfs-actions.pod:4219
29911 msgid ""
29912 "Device mapper devices which correspond to logical volumes are I<not> "
29913 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29914 "volumes."
29915 msgstr ""
29916
29917 #. type: textblock
29918 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5664
29919 msgid "(Added in 1.11.15)"
29920 msgstr ""
29921
29922 #. type: =head2
29923 #: ../src/guestfs-actions.pod:4229
29924 msgid "guestfs_list_filesystems"
29925 msgstr ""
29926
29927 #. type: verbatim
29928 #: ../src/guestfs-actions.pod:4231
29929 #, no-wrap
29930 msgid ""
29931 " char **\n"
29932 " guestfs_list_filesystems (guestfs_h *g);\n"
29933 "\n"
29934 msgstr ""
29935
29936 #. type: textblock
29937 #: ../src/guestfs-actions.pod:4251
29938 msgid ""
29939 "This command runs other libguestfs commands, which might include "
29940 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29941 "soon after launch and only when nothing is mounted."
29942 msgstr ""
29943
29944 #. type: textblock
29945 #: ../src/guestfs-actions.pod:4255
29946 msgid ""
29947 "Not all of the filesystems returned will be mountable.  In particular, swap "
29948 "partitions are returned in the list.  Also this command does not check that "
29949 "each filesystem found is valid and mountable, and some filesystems might be "
29950 "mountable but require special options.  Filesystems may not all belong to a "
29951 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29952 msgstr ""
29953
29954 #. type: textblock
29955 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6024
29956 msgid "(Added in 1.5.15)"
29957 msgstr ""
29958
29959 #. type: =head2
29960 #: ../src/guestfs-actions.pod:4271
29961 msgid "guestfs_list_partitions"
29962 msgstr ""
29963
29964 #. type: verbatim
29965 #: ../src/guestfs-actions.pod:4273
29966 #, no-wrap
29967 msgid ""
29968 " char **\n"
29969 " guestfs_list_partitions (guestfs_h *g);\n"
29970 "\n"
29971 msgstr ""
29972
29973 #. type: textblock
29974 #: ../src/guestfs-actions.pod:4280
29975 msgid ""
29976 "This does not return logical volumes.  For that you will need to call "
29977 "C<guestfs_lvs>."
29978 msgstr ""
29979
29980 #. type: =head2
29981 #: ../src/guestfs-actions.pod:4291
29982 msgid "guestfs_ll"
29983 msgstr ""
29984
29985 #. type: verbatim
29986 #: ../src/guestfs-actions.pod:4293
29987 #, no-wrap
29988 msgid ""
29989 " char *\n"
29990 " guestfs_ll (guestfs_h *g,\n"
29991 "             const char *directory);\n"
29992 "\n"
29993 msgstr ""
29994
29995 #. type: =head2
29996 #: ../src/guestfs-actions.pod:4308
29997 msgid "guestfs_ln"
29998 msgstr ""
29999
30000 #. type: verbatim
30001 #: ../src/guestfs-actions.pod:4310
30002 #, no-wrap
30003 msgid ""
30004 " int\n"
30005 " guestfs_ln (guestfs_h *g,\n"
30006 "             const char *target,\n"
30007 "             const char *linkname);\n"
30008 "\n"
30009 msgstr ""
30010
30011 #. type: =head2
30012 #: ../src/guestfs-actions.pod:4321
30013 msgid "guestfs_ln_f"
30014 msgstr ""
30015
30016 #. type: verbatim
30017 #: ../src/guestfs-actions.pod:4323
30018 #, no-wrap
30019 msgid ""
30020 " int\n"
30021 " guestfs_ln_f (guestfs_h *g,\n"
30022 "               const char *target,\n"
30023 "               const char *linkname);\n"
30024 "\n"
30025 msgstr ""
30026
30027 #. type: =head2
30028 #: ../src/guestfs-actions.pod:4335
30029 msgid "guestfs_ln_s"
30030 msgstr ""
30031
30032 #. type: verbatim
30033 #: ../src/guestfs-actions.pod:4337
30034 #, no-wrap
30035 msgid ""
30036 " int\n"
30037 " guestfs_ln_s (guestfs_h *g,\n"
30038 "               const char *target,\n"
30039 "               const char *linkname);\n"
30040 "\n"
30041 msgstr ""
30042
30043 #. type: =head2
30044 #: ../src/guestfs-actions.pod:4348
30045 msgid "guestfs_ln_sf"
30046 msgstr ""
30047
30048 #. type: verbatim
30049 #: ../src/guestfs-actions.pod:4350
30050 #, no-wrap
30051 msgid ""
30052 " int\n"
30053 " guestfs_ln_sf (guestfs_h *g,\n"
30054 "                const char *target,\n"
30055 "                const char *linkname);\n"
30056 "\n"
30057 msgstr ""
30058
30059 #. type: =head2
30060 #: ../src/guestfs-actions.pod:4362
30061 msgid "guestfs_lremovexattr"
30062 msgstr ""
30063
30064 #. type: verbatim
30065 #: ../src/guestfs-actions.pod:4364
30066 #, no-wrap
30067 msgid ""
30068 " int\n"
30069 " guestfs_lremovexattr (guestfs_h *g,\n"
30070 "                       const char *xattr,\n"
30071 "                       const char *path);\n"
30072 "\n"
30073 msgstr ""
30074
30075 #. type: textblock
30076 #: ../src/guestfs-actions.pod:4369
30077 msgid ""
30078 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30079 "link, then it removes an extended attribute of the link itself."
30080 msgstr ""
30081
30082 #. type: =head2
30083 #: ../src/guestfs-actions.pod:4377
30084 msgid "guestfs_ls"
30085 msgstr ""
30086
30087 #. type: verbatim
30088 #: ../src/guestfs-actions.pod:4379
30089 #, no-wrap
30090 msgid ""
30091 " char **\n"
30092 " guestfs_ls (guestfs_h *g,\n"
30093 "             const char *directory);\n"
30094 "\n"
30095 msgstr ""
30096
30097 #. type: textblock
30098 #: ../src/guestfs-actions.pod:4387
30099 msgid ""
30100 "This command is mostly useful for interactive sessions.  Programs should "
30101 "probably use C<guestfs_readdir> instead."
30102 msgstr ""
30103
30104 #. type: =head2
30105 #: ../src/guestfs-actions.pod:4396
30106 msgid "guestfs_lsetxattr"
30107 msgstr ""
30108
30109 #. type: verbatim
30110 #: ../src/guestfs-actions.pod:4398
30111 #, no-wrap
30112 msgid ""
30113 " int\n"
30114 " guestfs_lsetxattr (guestfs_h *g,\n"
30115 "                    const char *xattr,\n"
30116 "                    const char *val,\n"
30117 "                    int vallen,\n"
30118 "                    const char *path);\n"
30119 "\n"
30120 msgstr ""
30121
30122 #. type: textblock
30123 #: ../src/guestfs-actions.pod:4405
30124 msgid ""
30125 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30126 "then it sets an extended attribute of the link itself."
30127 msgstr ""
30128
30129 #. type: =head2
30130 #: ../src/guestfs-actions.pod:4413
30131 msgid "guestfs_lstat"
30132 msgstr ""
30133
30134 #. type: verbatim
30135 #: ../src/guestfs-actions.pod:4415
30136 #, no-wrap
30137 msgid ""
30138 " struct guestfs_stat *\n"
30139 " guestfs_lstat (guestfs_h *g,\n"
30140 "                const char *path);\n"
30141 "\n"
30142 msgstr ""
30143
30144 #. type: textblock
30145 #: ../src/guestfs-actions.pod:4421
30146 msgid ""
30147 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30148 "link, then the link is stat-ed, not the file it refers to."
30149 msgstr ""
30150
30151 #. type: textblock
30152 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:7204
30153 msgid ""
30154 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30155 "error.  I<The caller must call C<guestfs_free_stat> after use>."
30156 msgstr ""
30157
30158 #. type: textblock
30159 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7208
30160 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7607
30161 msgid "(Added in 0.9.2)"
30162 msgstr ""
30163
30164 #. type: =head2
30165 #: ../src/guestfs-actions.pod:4433
30166 msgid "guestfs_lstatlist"
30167 msgstr ""
30168
30169 #. type: verbatim
30170 #: ../src/guestfs-actions.pod:4435
30171 #, no-wrap
30172 msgid ""
30173 " struct guestfs_stat_list *\n"
30174 " guestfs_lstatlist (guestfs_h *g,\n"
30175 "                    const char *path,\n"
30176 "                    char *const *names);\n"
30177 "\n"
30178 msgstr ""
30179
30180 #. type: textblock
30181 #: ../src/guestfs-actions.pod:4440
30182 msgid ""
30183 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30184 "files, where all files are in the directory C<path>.  C<names> is the list "
30185 "of files from this directory."
30186 msgstr ""
30187
30188 #. type: textblock
30189 #: ../src/guestfs-actions.pod:4449
30190 msgid ""
30191 "This call is intended for programs that want to efficiently list a directory "
30192 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
30193 "for a similarly efficient call for getting extended attributes.  Very long "
30194 "directory listings might cause the protocol message size to be exceeded, "
30195 "causing this call to fail.  The caller must split up such requests into "
30196 "smaller groups of names."
30197 msgstr ""
30198
30199 #. type: textblock
30200 #: ../src/guestfs-actions.pod:4457
30201 msgid ""
30202 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30203 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
30204 msgstr ""
30205
30206 #. type: =head2
30207 #: ../src/guestfs-actions.pod:4463
30208 msgid "guestfs_luks_add_key"
30209 msgstr ""
30210
30211 #. type: verbatim
30212 #: ../src/guestfs-actions.pod:4465
30213 #, no-wrap
30214 msgid ""
30215 " int\n"
30216 " guestfs_luks_add_key (guestfs_h *g,\n"
30217 "                       const char *device,\n"
30218 "                       const char *key,\n"
30219 "                       const char *newkey,\n"
30220 "                       int keyslot);\n"
30221 "\n"
30222 msgstr ""
30223
30224 #. type: textblock
30225 #: ../src/guestfs-actions.pod:4477
30226 msgid ""
30227 "Note that if C<keyslot> already contains a key, then this command will "
30228 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
30229 msgstr ""
30230
30231 #. type: textblock
30232 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:4520
30233 #: ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4560
30234 #: ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4614
30235 msgid ""
30236 "This function takes a key or passphrase parameter which could contain "
30237 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
30238 "information."
30239 msgstr ""
30240
30241 #. type: textblock
30242 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4524
30243 #: ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4564
30244 msgid "(Added in 1.5.2)"
30245 msgstr ""
30246
30247 #. type: =head2
30248 #: ../src/guestfs-actions.pod:4489
30249 msgid "guestfs_luks_close"
30250 msgstr ""
30251
30252 #. type: verbatim
30253 #: ../src/guestfs-actions.pod:4491
30254 #, no-wrap
30255 msgid ""
30256 " int\n"
30257 " guestfs_luks_close (guestfs_h *g,\n"
30258 "                     const char *device);\n"
30259 "\n"
30260 msgstr ""
30261
30262 #. type: textblock
30263 #: ../src/guestfs-actions.pod:4495
30264 msgid ""
30265 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30266 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
30267 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30268 "underlying block device."
30269 msgstr ""
30270
30271 #. type: textblock
30272 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4599
30273 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4668
30274 #: ../src/guestfs-actions.pod:4713
30275 msgid "(Added in 1.5.1)"
30276 msgstr ""
30277
30278 #. type: =head2
30279 #: ../src/guestfs-actions.pod:4505
30280 msgid "guestfs_luks_format"
30281 msgstr ""
30282
30283 #. type: verbatim
30284 #: ../src/guestfs-actions.pod:4507
30285 #, no-wrap
30286 msgid ""
30287 " int\n"
30288 " guestfs_luks_format (guestfs_h *g,\n"
30289 "                      const char *device,\n"
30290 "                      const char *key,\n"
30291 "                      int keyslot);\n"
30292 "\n"
30293 msgstr ""
30294
30295 #. type: =head2
30296 #: ../src/guestfs-actions.pod:4526
30297 msgid "guestfs_luks_format_cipher"
30298 msgstr ""
30299
30300 #. type: verbatim
30301 #: ../src/guestfs-actions.pod:4528
30302 #, no-wrap
30303 msgid ""
30304 " int\n"
30305 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30306 "                             const char *device,\n"
30307 "                             const char *key,\n"
30308 "                             int keyslot,\n"
30309 "                             const char *cipher);\n"
30310 "\n"
30311 msgstr ""
30312
30313 #. type: textblock
30314 #: ../src/guestfs-actions.pod:4535
30315 msgid ""
30316 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30317 "set the C<cipher> used."
30318 msgstr ""
30319
30320 #. type: =head2
30321 #: ../src/guestfs-actions.pod:4546
30322 msgid "guestfs_luks_kill_slot"
30323 msgstr ""
30324
30325 #. type: verbatim
30326 #: ../src/guestfs-actions.pod:4548
30327 #, no-wrap
30328 msgid ""
30329 " int\n"
30330 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30331 "                         const char *device,\n"
30332 "                         const char *key,\n"
30333 "                         int keyslot);\n"
30334 "\n"
30335 msgstr ""
30336
30337 #. type: =head2
30338 #: ../src/guestfs-actions.pod:4566
30339 msgid "guestfs_luks_open"
30340 msgstr ""
30341
30342 #. type: verbatim
30343 #: ../src/guestfs-actions.pod:4568
30344 #, no-wrap
30345 msgid ""
30346 " int\n"
30347 " guestfs_luks_open (guestfs_h *g,\n"
30348 "                    const char *device,\n"
30349 "                    const char *key,\n"
30350 "                    const char *mapname);\n"
30351 "\n"
30352 msgstr ""
30353
30354 #. type: textblock
30355 #: ../src/guestfs-actions.pod:4586
30356 msgid ""
30357 "If this block device contains LVM volume groups, then calling "
30358 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30359 "visible."
30360 msgstr ""
30361
30362 #. type: textblock
30363 #: ../src/guestfs-actions.pod:4590
30364 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30365 msgstr ""
30366
30367 #. type: =head2
30368 #: ../src/guestfs-actions.pod:4601
30369 msgid "guestfs_luks_open_ro"
30370 msgstr ""
30371
30372 #. type: verbatim
30373 #: ../src/guestfs-actions.pod:4603
30374 #, no-wrap
30375 msgid ""
30376 " int\n"
30377 " guestfs_luks_open_ro (guestfs_h *g,\n"
30378 "                       const char *device,\n"
30379 "                       const char *key,\n"
30380 "                       const char *mapname);\n"
30381 "\n"
30382 msgstr ""
30383
30384 #. type: textblock
30385 #: ../src/guestfs-actions.pod:4609
30386 msgid ""
30387 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30388 "created."
30389 msgstr ""
30390
30391 #. type: =head2
30392 #: ../src/guestfs-actions.pod:4620
30393 msgid "guestfs_lvcreate"
30394 msgstr ""
30395
30396 #. type: verbatim
30397 #: ../src/guestfs-actions.pod:4622
30398 #, no-wrap
30399 msgid ""
30400 " int\n"
30401 " guestfs_lvcreate (guestfs_h *g,\n"
30402 "                   const char *logvol,\n"
30403 "                   const char *volgroup,\n"
30404 "                   int mbytes);\n"
30405 "\n"
30406 msgstr ""
30407
30408 #. type: =head2
30409 #: ../src/guestfs-actions.pod:4635
30410 msgid "guestfs_lvm_canonical_lv_name"
30411 msgstr ""
30412
30413 #. type: verbatim
30414 #: ../src/guestfs-actions.pod:4637
30415 #, no-wrap
30416 msgid ""
30417 " char *\n"
30418 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30419 "                                const char *lvname);\n"
30420 "\n"
30421 msgstr ""
30422
30423 #. type: textblock
30424 #: ../src/guestfs-actions.pod:4648
30425 msgid "See also C<guestfs_is_lv>."
30426 msgstr ""
30427
30428 #. type: textblock
30429 #: ../src/guestfs-actions.pod:4653
30430 msgid "(Added in 1.5.24)"
30431 msgstr ""
30432
30433 #. type: =head2
30434 #: ../src/guestfs-actions.pod:4655
30435 msgid "guestfs_lvm_clear_filter"
30436 msgstr ""
30437
30438 #. type: verbatim
30439 #: ../src/guestfs-actions.pod:4657
30440 #, no-wrap
30441 msgid ""
30442 " int\n"
30443 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30444 "\n"
30445 msgstr ""
30446
30447 #. type: textblock
30448 #: ../src/guestfs-actions.pod:4660
30449 msgid ""
30450 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
30451 "see every block device."
30452 msgstr ""
30453
30454 #. type: =head2
30455 #: ../src/guestfs-actions.pod:4670
30456 msgid "guestfs_lvm_remove_all"
30457 msgstr ""
30458
30459 #. type: verbatim
30460 #: ../src/guestfs-actions.pod:4672
30461 #, no-wrap
30462 msgid ""
30463 " int\n"
30464 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30465 "\n"
30466 msgstr ""
30467
30468 #. type: =head2
30469 #: ../src/guestfs-actions.pod:4682
30470 msgid "guestfs_lvm_set_filter"
30471 msgstr ""
30472
30473 #. type: verbatim
30474 #: ../src/guestfs-actions.pod:4684
30475 #, no-wrap
30476 msgid ""
30477 " int\n"
30478 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30479 "                         char *const *devices);\n"
30480 "\n"
30481 msgstr ""
30482
30483 #. type: =head2
30484 #: ../src/guestfs-actions.pod:4715
30485 msgid "guestfs_lvremove"
30486 msgstr ""
30487
30488 #. type: verbatim
30489 #: ../src/guestfs-actions.pod:4717
30490 #, no-wrap
30491 msgid ""
30492 " int\n"
30493 " guestfs_lvremove (guestfs_h *g,\n"
30494 "                   const char *device);\n"
30495 "\n"
30496 msgstr ""
30497
30498 #. type: textblock
30499 #: ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:6139
30500 #: ../src/guestfs-actions.pod:7977
30501 msgid "(Added in 1.0.13)"
30502 msgstr ""
30503
30504 #. type: =head2
30505 #: ../src/guestfs-actions.pod:4731
30506 msgid "guestfs_lvrename"
30507 msgstr ""
30508
30509 #. type: verbatim
30510 #: ../src/guestfs-actions.pod:4733
30511 #, no-wrap
30512 msgid ""
30513 " int\n"
30514 " guestfs_lvrename (guestfs_h *g,\n"
30515 "                   const char *logvol,\n"
30516 "                   const char *newlogvol);\n"
30517 "\n"
30518 msgstr ""
30519
30520 #. type: textblock
30521 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:7990
30522 msgid "(Added in 1.0.83)"
30523 msgstr ""
30524
30525 #. type: =head2
30526 #: ../src/guestfs-actions.pod:4744
30527 msgid "guestfs_lvresize"
30528 msgstr ""
30529
30530 #. type: verbatim
30531 #: ../src/guestfs-actions.pod:4746
30532 #, no-wrap
30533 msgid ""
30534 " int\n"
30535 " guestfs_lvresize (guestfs_h *g,\n"
30536 "                   const char *device,\n"
30537 "                   int mbytes);\n"
30538 "\n"
30539 msgstr ""
30540
30541 #. type: =head2
30542 #: ../src/guestfs-actions.pod:4759
30543 msgid "guestfs_lvresize_free"
30544 msgstr ""
30545
30546 #. type: verbatim
30547 #: ../src/guestfs-actions.pod:4761
30548 #, no-wrap
30549 msgid ""
30550 " int\n"
30551 " guestfs_lvresize_free (guestfs_h *g,\n"
30552 "                        const char *lv,\n"
30553 "                        int percent);\n"
30554 "\n"
30555 msgstr ""
30556
30557 #. type: textblock
30558 #: ../src/guestfs-actions.pod:4774
30559 msgid "(Added in 1.3.3)"
30560 msgstr ""
30561
30562 #. type: =head2
30563 #: ../src/guestfs-actions.pod:4776
30564 msgid "guestfs_lvs"
30565 msgstr ""
30566
30567 #. type: verbatim
30568 #: ../src/guestfs-actions.pod:4778
30569 #, no-wrap
30570 msgid ""
30571 " char **\n"
30572 " guestfs_lvs (guestfs_h *g);\n"
30573 "\n"
30574 msgstr ""
30575
30576 #. type: textblock
30577 #: ../src/guestfs-actions.pod:4787
30578 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30579 msgstr ""
30580
30581 #. type: =head2
30582 #: ../src/guestfs-actions.pod:4795
30583 msgid "guestfs_lvs_full"
30584 msgstr ""
30585
30586 #. type: verbatim
30587 #: ../src/guestfs-actions.pod:4797
30588 #, no-wrap
30589 msgid ""
30590 " struct guestfs_lvm_lv_list *\n"
30591 " guestfs_lvs_full (guestfs_h *g);\n"
30592 "\n"
30593 msgstr ""
30594
30595 #. type: textblock
30596 #: ../src/guestfs-actions.pod:4803
30597 msgid ""
30598 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30599 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30600 msgstr ""
30601
30602 #. type: =head2
30603 #: ../src/guestfs-actions.pod:4809
30604 msgid "guestfs_lvuuid"
30605 msgstr ""
30606
30607 #. type: verbatim
30608 #: ../src/guestfs-actions.pod:4811
30609 #, no-wrap
30610 msgid ""
30611 " char *\n"
30612 " guestfs_lvuuid (guestfs_h *g,\n"
30613 "                 const char *device);\n"
30614 "\n"
30615 msgstr ""
30616
30617 #. type: =head2
30618 #: ../src/guestfs-actions.pod:4822
30619 msgid "guestfs_lxattrlist"
30620 msgstr ""
30621
30622 #. type: verbatim
30623 #: ../src/guestfs-actions.pod:4824
30624 #, no-wrap
30625 msgid ""
30626 " struct guestfs_xattr_list *\n"
30627 " guestfs_lxattrlist (guestfs_h *g,\n"
30628 "                     const char *path,\n"
30629 "                     char *const *names);\n"
30630 "\n"
30631 msgstr ""
30632
30633 #. type: textblock
30634 #: ../src/guestfs-actions.pod:4843
30635 msgid ""
30636 "This call is intended for programs that want to efficiently list a directory "
30637 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30638 "a similarly efficient call for getting standard stats.  Very long directory "
30639 "listings might cause the protocol message size to be exceeded, causing this "
30640 "call to fail.  The caller must split up such requests into smaller groups of "
30641 "names."
30642 msgstr ""
30643
30644 #. type: =head2
30645 #: ../src/guestfs-actions.pod:4857
30646 msgid "guestfs_mkdir"
30647 msgstr ""
30648
30649 #. type: verbatim
30650 #: ../src/guestfs-actions.pod:4859
30651 #, no-wrap
30652 msgid ""
30653 " int\n"
30654 " guestfs_mkdir (guestfs_h *g,\n"
30655 "                const char *path);\n"
30656 "\n"
30657 msgstr ""
30658
30659 #. type: =head2
30660 #: ../src/guestfs-actions.pod:4869
30661 msgid "guestfs_mkdir_mode"
30662 msgstr ""
30663
30664 #. type: verbatim
30665 #: ../src/guestfs-actions.pod:4871
30666 #, no-wrap
30667 msgid ""
30668 " int\n"
30669 " guestfs_mkdir_mode (guestfs_h *g,\n"
30670 "                     const char *path,\n"
30671 "                     int mode);\n"
30672 "\n"
30673 msgstr ""
30674
30675 #. type: textblock
30676 #: ../src/guestfs-actions.pod:4883
30677 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30678 msgstr ""
30679
30680 #. type: =head2
30681 #: ../src/guestfs-actions.pod:4889
30682 msgid "guestfs_mkdir_p"
30683 msgstr ""
30684
30685 #. type: verbatim
30686 #: ../src/guestfs-actions.pod:4891
30687 #, no-wrap
30688 msgid ""
30689 " int\n"
30690 " guestfs_mkdir_p (guestfs_h *g,\n"
30691 "                  const char *path);\n"
30692 "\n"
30693 msgstr ""
30694
30695 #. type: =head2
30696 #: ../src/guestfs-actions.pod:4902
30697 msgid "guestfs_mkdtemp"
30698 msgstr ""
30699
30700 #. type: verbatim
30701 #: ../src/guestfs-actions.pod:4904
30702 #, no-wrap
30703 msgid ""
30704 " char *\n"
30705 " guestfs_mkdtemp (guestfs_h *g,\n"
30706 "                  const char *template);\n"
30707 "\n"
30708 msgstr ""
30709
30710 #. type: =head2
30711 #: ../src/guestfs-actions.pod:4932
30712 msgid "guestfs_mke2fs_J"
30713 msgstr ""
30714
30715 #. type: verbatim
30716 #: ../src/guestfs-actions.pod:4934
30717 #, no-wrap
30718 msgid ""
30719 " int\n"
30720 " guestfs_mke2fs_J (guestfs_h *g,\n"
30721 "                   const char *fstype,\n"
30722 "                   int blocksize,\n"
30723 "                   const char *device,\n"
30724 "                   const char *journal);\n"
30725 "\n"
30726 msgstr ""
30727
30728 #. type: textblock
30729 #: ../src/guestfs-actions.pod:4947
30730 msgid "See also C<guestfs_mke2journal>."
30731 msgstr ""
30732
30733 #. type: textblock
30734 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:4969
30735 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5003
30736 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5031
30737 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5367
30738 msgid "(Added in 1.0.68)"
30739 msgstr ""
30740
30741 #. type: =head2
30742 #: ../src/guestfs-actions.pod:4953
30743 msgid "guestfs_mke2fs_JL"
30744 msgstr ""
30745
30746 #. type: verbatim
30747 #: ../src/guestfs-actions.pod:4955
30748 #, no-wrap
30749 msgid ""
30750 " int\n"
30751 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30752 "                    const char *fstype,\n"
30753 "                    int blocksize,\n"
30754 "                    const char *device,\n"
30755 "                    const char *label);\n"
30756 "\n"
30757 msgstr ""
30758
30759 #. type: textblock
30760 #: ../src/guestfs-actions.pod:4965
30761 msgid "See also C<guestfs_mke2journal_L>."
30762 msgstr ""
30763
30764 #. type: =head2
30765 #: ../src/guestfs-actions.pod:4971
30766 msgid "guestfs_mke2fs_JU"
30767 msgstr ""
30768
30769 #. type: verbatim
30770 #: ../src/guestfs-actions.pod:4973
30771 #, no-wrap
30772 msgid ""
30773 " int\n"
30774 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30775 "                    const char *fstype,\n"
30776 "                    int blocksize,\n"
30777 "                    const char *device,\n"
30778 "                    const char *uuid);\n"
30779 "\n"
30780 msgstr ""
30781
30782 #. type: textblock
30783 #: ../src/guestfs-actions.pod:4983
30784 msgid "See also C<guestfs_mke2journal_U>."
30785 msgstr ""
30786
30787 #. type: =head2
30788 #: ../src/guestfs-actions.pod:4989
30789 msgid "guestfs_mke2journal"
30790 msgstr ""
30791
30792 #. type: verbatim
30793 #: ../src/guestfs-actions.pod:4991
30794 #, no-wrap
30795 msgid ""
30796 " int\n"
30797 " guestfs_mke2journal (guestfs_h *g,\n"
30798 "                      int blocksize,\n"
30799 "                      const char *device);\n"
30800 "\n"
30801 msgstr ""
30802
30803 #. type: =head2
30804 #: ../src/guestfs-actions.pod:5005
30805 msgid "guestfs_mke2journal_L"
30806 msgstr ""
30807
30808 #. type: verbatim
30809 #: ../src/guestfs-actions.pod:5007
30810 #, no-wrap
30811 msgid ""
30812 " int\n"
30813 " guestfs_mke2journal_L (guestfs_h *g,\n"
30814 "                        int blocksize,\n"
30815 "                        const char *label,\n"
30816 "                        const char *device);\n"
30817 "\n"
30818 msgstr ""
30819
30820 #. type: =head2
30821 #: ../src/guestfs-actions.pod:5019
30822 msgid "guestfs_mke2journal_U"
30823 msgstr ""
30824
30825 #. type: verbatim
30826 #: ../src/guestfs-actions.pod:5021
30827 #, no-wrap
30828 msgid ""
30829 " int\n"
30830 " guestfs_mke2journal_U (guestfs_h *g,\n"
30831 "                        int blocksize,\n"
30832 "                        const char *uuid,\n"
30833 "                        const char *device);\n"
30834 "\n"
30835 msgstr ""
30836
30837 #. type: =head2
30838 #: ../src/guestfs-actions.pod:5033
30839 msgid "guestfs_mkfifo"
30840 msgstr ""
30841
30842 #. type: verbatim
30843 #: ../src/guestfs-actions.pod:5035
30844 #, no-wrap
30845 msgid ""
30846 " int\n"
30847 " guestfs_mkfifo (guestfs_h *g,\n"
30848 "                 int mode,\n"
30849 "                 const char *path);\n"
30850 "\n"
30851 msgstr ""
30852
30853 #. type: textblock
30854 #: ../src/guestfs-actions.pod:5040
30855 msgid ""
30856 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30857 "is just a convenient wrapper around C<guestfs_mknod>."
30858 msgstr ""
30859
30860 #. type: =head2
30861 #: ../src/guestfs-actions.pod:5050
30862 msgid "guestfs_mkfs"
30863 msgstr ""
30864
30865 #. type: verbatim
30866 #: ../src/guestfs-actions.pod:5052
30867 #, no-wrap
30868 msgid ""
30869 " int\n"
30870 " guestfs_mkfs (guestfs_h *g,\n"
30871 "               const char *fstype,\n"
30872 "               const char *device);\n"
30873 "\n"
30874 msgstr ""
30875
30876 #. type: =head2
30877 #: ../src/guestfs-actions.pod:5065
30878 msgid "guestfs_mkfs_b"
30879 msgstr ""
30880
30881 #. type: verbatim
30882 #: ../src/guestfs-actions.pod:5067
30883 #, no-wrap
30884 msgid ""
30885 " int\n"
30886 " guestfs_mkfs_b (guestfs_h *g,\n"
30887 "                 const char *fstype,\n"
30888 "                 int blocksize,\n"
30889 "                 const char *device);\n"
30890 "\n"
30891 msgstr ""
30892
30893 #. type: textblock
30894 #: ../src/guestfs-actions.pod:5073
30895 msgid ""
30896 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30897 "call instead."
30898 msgstr ""
30899
30900 #. type: textblock
30901 #: ../src/guestfs-actions.pod:5080
30902 msgid ""
30903 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30904 "block size of the resulting filesystem.  Supported block sizes depend on the "
30905 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30906 msgstr ""
30907
30908 #. type: =head2
30909 #: ../src/guestfs-actions.pod:5092
30910 msgid "guestfs_mkfs_opts"
30911 msgstr ""
30912
30913 #. type: verbatim
30914 #: ../src/guestfs-actions.pod:5094
30915 #, no-wrap
30916 msgid ""
30917 " int\n"
30918 " guestfs_mkfs_opts (guestfs_h *g,\n"
30919 "                    const char *fstype,\n"
30920 "                    const char *device,\n"
30921 "                    ...);\n"
30922 "\n"
30923 msgstr ""
30924
30925 #. type: verbatim
30926 #: ../src/guestfs-actions.pod:5105
30927 #, no-wrap
30928 msgid ""
30929 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30930 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30931 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30932 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30933 "\n"
30934 msgstr ""
30935
30936 #. type: textblock
30937 #: ../src/guestfs-actions.pod:5153
30938 msgid "(Added in 1.7.19)"
30939 msgstr ""
30940
30941 #. type: =head2
30942 #: ../src/guestfs-actions.pod:5155
30943 msgid "guestfs_mkfs_opts_va"
30944 msgstr ""
30945
30946 #. type: verbatim
30947 #: ../src/guestfs-actions.pod:5157
30948 #, no-wrap
30949 msgid ""
30950 " int\n"
30951 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30952 "                       const char *fstype,\n"
30953 "                       const char *device,\n"
30954 "                       va_list args);\n"
30955 "\n"
30956 msgstr ""
30957
30958 #. type: textblock
30959 #: ../src/guestfs-actions.pod:5163
30960 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30961 msgstr ""
30962
30963 #. type: =head2
30964 #: ../src/guestfs-actions.pod:5167
30965 msgid "guestfs_mkfs_opts_argv"
30966 msgstr ""
30967
30968 #. type: verbatim
30969 #: ../src/guestfs-actions.pod:5169
30970 #, no-wrap
30971 msgid ""
30972 " int\n"
30973 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30974 "                         const char *fstype,\n"
30975 "                         const char *device,\n"
30976 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30977 "\n"
30978 msgstr ""
30979
30980 #. type: textblock
30981 #: ../src/guestfs-actions.pod:5175
30982 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30983 msgstr ""
30984
30985 #. type: =head2
30986 #: ../src/guestfs-actions.pod:5179
30987 msgid "guestfs_mkmountpoint"
30988 msgstr ""
30989
30990 #. type: verbatim
30991 #: ../src/guestfs-actions.pod:5181
30992 #, no-wrap
30993 msgid ""
30994 " int\n"
30995 " guestfs_mkmountpoint (guestfs_h *g,\n"
30996 "                       const char *exemptpath);\n"
30997 "\n"
30998 msgstr ""
30999
31000 #. type: textblock
31001 #: ../src/guestfs-actions.pod:5185
31002 msgid ""
31003 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31004 "that can be used to create extra mountpoints before mounting the first "
31005 "filesystem."
31006 msgstr ""
31007
31008 #. type: textblock
31009 #: ../src/guestfs-actions.pod:5209
31010 msgid ""
31011 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
31012 "may get unexpected errors if you try to mix these calls.  It is safest to "
31013 "manually unmount filesystems and remove mountpoints after use."
31014 msgstr ""
31015
31016 #. type: textblock
31017 #: ../src/guestfs-actions.pod:5213
31018 msgid ""
31019 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31020 "first, so for this to work for manual mountpoints, you must ensure that the "
31021 "innermost mountpoints have the longest pathnames, as in the example code "
31022 "above."
31023 msgstr ""
31024
31025 #. type: textblock
31026 #: ../src/guestfs-actions.pod:5220
31027 msgid ""
31028 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31029 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31030 "can also trigger these issues."
31031 msgstr ""
31032
31033 #. type: textblock
31034 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5532
31035 #: ../src/guestfs-actions.pod:6559
31036 msgid "(Added in 1.0.62)"
31037 msgstr ""
31038
31039 #. type: =head2
31040 #: ../src/guestfs-actions.pod:5228
31041 msgid "guestfs_mknod"
31042 msgstr ""
31043
31044 #. type: verbatim
31045 #: ../src/guestfs-actions.pod:5230
31046 #, no-wrap
31047 msgid ""
31048 " int\n"
31049 " guestfs_mknod (guestfs_h *g,\n"
31050 "                int mode,\n"
31051 "                int devmajor,\n"
31052 "                int devminor,\n"
31053 "                const char *path);\n"
31054 "\n"
31055 msgstr ""
31056
31057 #. type: textblock
31058 #: ../src/guestfs-actions.pod:5245
31059 msgid ""
31060 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31061 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31062 "regular file).  These constants are available in the standard Linux header "
31063 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31064 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31065 "the appropriate constant for you."
31066 msgstr ""
31067
31068 #. type: =head2
31069 #: ../src/guestfs-actions.pod:5259
31070 msgid "guestfs_mknod_b"
31071 msgstr ""
31072
31073 #. type: verbatim
31074 #: ../src/guestfs-actions.pod:5261
31075 #, no-wrap
31076 msgid ""
31077 " int\n"
31078 " guestfs_mknod_b (guestfs_h *g,\n"
31079 "                  int mode,\n"
31080 "                  int devmajor,\n"
31081 "                  int devminor,\n"
31082 "                  const char *path);\n"
31083 "\n"
31084 msgstr ""
31085
31086 #. type: textblock
31087 #: ../src/guestfs-actions.pod:5268
31088 msgid ""
31089 "This call creates a block device node called C<path> with mode C<mode> and "
31090 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31091 "wrapper around C<guestfs_mknod>."
31092 msgstr ""
31093
31094 #. type: =head2
31095 #: ../src/guestfs-actions.pod:5278
31096 msgid "guestfs_mknod_c"
31097 msgstr ""
31098
31099 #. type: verbatim
31100 #: ../src/guestfs-actions.pod:5280
31101 #, no-wrap
31102 msgid ""
31103 " int\n"
31104 " guestfs_mknod_c (guestfs_h *g,\n"
31105 "                  int mode,\n"
31106 "                  int devmajor,\n"
31107 "                  int devminor,\n"
31108 "                  const char *path);\n"
31109 "\n"
31110 msgstr ""
31111
31112 #. type: textblock
31113 #: ../src/guestfs-actions.pod:5287
31114 msgid ""
31115 "This call creates a char device node called C<path> with mode C<mode> and "
31116 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31117 "wrapper around C<guestfs_mknod>."
31118 msgstr ""
31119
31120 #. type: =head2
31121 #: ../src/guestfs-actions.pod:5297
31122 msgid "guestfs_mkswap"
31123 msgstr ""
31124
31125 #. type: verbatim
31126 #: ../src/guestfs-actions.pod:5299
31127 #, no-wrap
31128 msgid ""
31129 " int\n"
31130 " guestfs_mkswap (guestfs_h *g,\n"
31131 "                 const char *device);\n"
31132 "\n"
31133 msgstr ""
31134
31135 #. type: =head2
31136 #: ../src/guestfs-actions.pod:5309
31137 msgid "guestfs_mkswap_L"
31138 msgstr ""
31139
31140 #. type: verbatim
31141 #: ../src/guestfs-actions.pod:5311
31142 #, no-wrap
31143 msgid ""
31144 " int\n"
31145 " guestfs_mkswap_L (guestfs_h *g,\n"
31146 "                   const char *label,\n"
31147 "                   const char *device);\n"
31148 "\n"
31149 msgstr ""
31150
31151 #. type: =head2
31152 #: ../src/guestfs-actions.pod:5326
31153 msgid "guestfs_mkswap_U"
31154 msgstr ""
31155
31156 #. type: verbatim
31157 #: ../src/guestfs-actions.pod:5328
31158 #, no-wrap
31159 msgid ""
31160 " int\n"
31161 " guestfs_mkswap_U (guestfs_h *g,\n"
31162 "                   const char *uuid,\n"
31163 "                   const char *device);\n"
31164 "\n"
31165 msgstr ""
31166
31167 #. type: =head2
31168 #: ../src/guestfs-actions.pod:5339
31169 msgid "guestfs_mkswap_file"
31170 msgstr ""
31171
31172 #. type: verbatim
31173 #: ../src/guestfs-actions.pod:5341
31174 #, no-wrap
31175 msgid ""
31176 " int\n"
31177 " guestfs_mkswap_file (guestfs_h *g,\n"
31178 "                      const char *path);\n"
31179 "\n"
31180 msgstr ""
31181
31182 #. type: textblock
31183 #: ../src/guestfs-actions.pod:5347
31184 msgid ""
31185 "This command just writes a swap file signature to an existing file.  To "
31186 "create the file itself, use something like C<guestfs_fallocate>."
31187 msgstr ""
31188
31189 #. type: =head2
31190 #: ../src/guestfs-actions.pod:5354
31191 msgid "guestfs_modprobe"
31192 msgstr ""
31193
31194 #. type: verbatim
31195 #: ../src/guestfs-actions.pod:5356
31196 #, no-wrap
31197 msgid ""
31198 " int\n"
31199 " guestfs_modprobe (guestfs_h *g,\n"
31200 "                   const char *modulename);\n"
31201 "\n"
31202 msgstr ""
31203
31204 #. type: =head2
31205 #: ../src/guestfs-actions.pod:5369
31206 msgid "guestfs_mount"
31207 msgstr ""
31208
31209 #. type: verbatim
31210 #: ../src/guestfs-actions.pod:5371
31211 #, no-wrap
31212 msgid ""
31213 " int\n"
31214 " guestfs_mount (guestfs_h *g,\n"
31215 "                const char *device,\n"
31216 "                const char *mountpoint);\n"
31217 "\n"
31218 msgstr ""
31219
31220 #. type: textblock
31221 #: ../src/guestfs-actions.pod:5390
31222 msgid ""
31223 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31224 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
31225 "problems for users.  If your program might need to work with older versions "
31226 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31227 "for the first parameter if you don't want any options)."
31228 msgstr ""
31229
31230 #. type: =head2
31231 #: ../src/guestfs-actions.pod:5401
31232 msgid "guestfs_mount_9p"
31233 msgstr ""
31234
31235 #. type: verbatim
31236 #: ../src/guestfs-actions.pod:5403
31237 #, no-wrap
31238 msgid ""
31239 " int\n"
31240 " guestfs_mount_9p (guestfs_h *g,\n"
31241 "                   const char *mounttag,\n"
31242 "                   const char *mountpoint,\n"
31243 "                   ...);\n"
31244 "\n"
31245 msgstr ""
31246
31247 #. type: verbatim
31248 #: ../src/guestfs-actions.pod:5414
31249 #, no-wrap
31250 msgid ""
31251 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31252 "\n"
31253 msgstr ""
31254
31255 #. type: =head2
31256 #: ../src/guestfs-actions.pod:5427
31257 msgid "guestfs_mount_9p_va"
31258 msgstr ""
31259
31260 #. type: verbatim
31261 #: ../src/guestfs-actions.pod:5429
31262 #, no-wrap
31263 msgid ""
31264 " int\n"
31265 " guestfs_mount_9p_va (guestfs_h *g,\n"
31266 "                      const char *mounttag,\n"
31267 "                      const char *mountpoint,\n"
31268 "                      va_list args);\n"
31269 "\n"
31270 msgstr ""
31271
31272 #. type: textblock
31273 #: ../src/guestfs-actions.pod:5435
31274 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31275 msgstr ""
31276
31277 #. type: =head2
31278 #: ../src/guestfs-actions.pod:5439
31279 msgid "guestfs_mount_9p_argv"
31280 msgstr ""
31281
31282 #. type: verbatim
31283 #: ../src/guestfs-actions.pod:5441
31284 #, no-wrap
31285 msgid ""
31286 " int\n"
31287 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31288 "                        const char *mounttag,\n"
31289 "                        const char *mountpoint,\n"
31290 "                        const struct guestfs_mount_9p_argv *optargs);\n"
31291 "\n"
31292 msgstr ""
31293
31294 #. type: textblock
31295 #: ../src/guestfs-actions.pod:5447
31296 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31297 msgstr ""
31298
31299 #. type: =head2
31300 #: ../src/guestfs-actions.pod:5451
31301 msgid "guestfs_mount_loop"
31302 msgstr ""
31303
31304 #. type: verbatim
31305 #: ../src/guestfs-actions.pod:5453
31306 #, no-wrap
31307 msgid ""
31308 " int\n"
31309 " guestfs_mount_loop (guestfs_h *g,\n"
31310 "                     const char *file,\n"
31311 "                     const char *mountpoint);\n"
31312 "\n"
31313 msgstr ""
31314
31315 #. type: =head2
31316 #: ../src/guestfs-actions.pod:5466
31317 msgid "guestfs_mount_options"
31318 msgstr ""
31319
31320 #. type: verbatim
31321 #: ../src/guestfs-actions.pod:5468
31322 #, no-wrap
31323 msgid ""
31324 " int\n"
31325 " guestfs_mount_options (guestfs_h *g,\n"
31326 "                        const char *options,\n"
31327 "                        const char *device,\n"
31328 "                        const char *mountpoint);\n"
31329 "\n"
31330 msgstr ""
31331
31332 #. type: textblock
31333 #: ../src/guestfs-actions.pod:5474
31334 msgid ""
31335 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31336 "the mount options as for the L<mount(8)> I<-o> flag."
31337 msgstr ""
31338
31339 #. type: textblock
31340 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5498
31341 #: ../src/guestfs-actions.pod:5515
31342 msgid "(Added in 1.0.10)"
31343 msgstr ""
31344
31345 #. type: =head2
31346 #: ../src/guestfs-actions.pod:5486
31347 msgid "guestfs_mount_ro"
31348 msgstr ""
31349
31350 #. type: verbatim
31351 #: ../src/guestfs-actions.pod:5488
31352 #, no-wrap
31353 msgid ""
31354 " int\n"
31355 " guestfs_mount_ro (guestfs_h *g,\n"
31356 "                   const char *device,\n"
31357 "                   const char *mountpoint);\n"
31358 "\n"
31359 msgstr ""
31360
31361 #. type: textblock
31362 #: ../src/guestfs-actions.pod:5493
31363 msgid ""
31364 "This is the same as the C<guestfs_mount> command, but it mounts the "
31365 "filesystem with the read-only (I<-o ro>) flag."
31366 msgstr ""
31367
31368 #. type: =head2
31369 #: ../src/guestfs-actions.pod:5500
31370 msgid "guestfs_mount_vfs"
31371 msgstr ""
31372
31373 #. type: verbatim
31374 #: ../src/guestfs-actions.pod:5502
31375 #, no-wrap
31376 msgid ""
31377 " int\n"
31378 " guestfs_mount_vfs (guestfs_h *g,\n"
31379 "                    const char *options,\n"
31380 "                    const char *vfstype,\n"
31381 "                    const char *device,\n"
31382 "                    const char *mountpoint);\n"
31383 "\n"
31384 msgstr ""
31385
31386 #. type: textblock
31387 #: ../src/guestfs-actions.pod:5509
31388 msgid ""
31389 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31390 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31391 "t> flags."
31392 msgstr ""
31393
31394 #. type: =head2
31395 #: ../src/guestfs-actions.pod:5517
31396 msgid "guestfs_mountpoints"
31397 msgstr ""
31398
31399 #. type: verbatim
31400 #: ../src/guestfs-actions.pod:5519
31401 #, no-wrap
31402 msgid ""
31403 " char **\n"
31404 " guestfs_mountpoints (guestfs_h *g);\n"
31405 "\n"
31406 msgstr ""
31407
31408 #. type: textblock
31409 #: ../src/guestfs-actions.pod:5522
31410 msgid ""
31411 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
31412 "devices.  This one returns a hash table (map) of device name to directory "
31413 "where the device is mounted."
31414 msgstr ""
31415
31416 #. type: =head2
31417 #: ../src/guestfs-actions.pod:5534
31418 msgid "guestfs_mounts"
31419 msgstr ""
31420
31421 #. type: verbatim
31422 #: ../src/guestfs-actions.pod:5536
31423 #, no-wrap
31424 msgid ""
31425 " char **\n"
31426 " guestfs_mounts (guestfs_h *g);\n"
31427 "\n"
31428 msgstr ""
31429
31430 #. type: textblock
31431 #: ../src/guestfs-actions.pod:5544
31432 msgid "See also: C<guestfs_mountpoints>"
31433 msgstr ""
31434
31435 #. type: =head2
31436 #: ../src/guestfs-actions.pod:5552
31437 msgid "guestfs_mv"
31438 msgstr ""
31439
31440 #. type: verbatim
31441 #: ../src/guestfs-actions.pod:5554
31442 #, no-wrap
31443 msgid ""
31444 " int\n"
31445 " guestfs_mv (guestfs_h *g,\n"
31446 "             const char *src,\n"
31447 "             const char *dest);\n"
31448 "\n"
31449 msgstr ""
31450
31451 #. type: =head2
31452 #: ../src/guestfs-actions.pod:5566
31453 msgid "guestfs_ntfs_3g_probe"
31454 msgstr ""
31455
31456 #. type: verbatim
31457 #: ../src/guestfs-actions.pod:5568
31458 #, no-wrap
31459 msgid ""
31460 " int\n"
31461 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31462 "                        int rw,\n"
31463 "                        const char *device);\n"
31464 "\n"
31465 msgstr ""
31466
31467 #. type: textblock
31468 #: ../src/guestfs-actions.pod:5587
31469 msgid "(Added in 1.0.43)"
31470 msgstr ""
31471
31472 #. type: =head2
31473 #: ../src/guestfs-actions.pod:5589
31474 msgid "guestfs_ntfsresize"
31475 msgstr ""
31476
31477 #. type: verbatim
31478 #: ../src/guestfs-actions.pod:5591
31479 #, no-wrap
31480 msgid ""
31481 " int\n"
31482 " guestfs_ntfsresize (guestfs_h *g,\n"
31483 "                     const char *device);\n"
31484 "\n"
31485 msgstr ""
31486
31487 #. type: textblock
31488 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5695
31489 msgid ""
31490 "I<This function is deprecated.> In new code, use the L</"
31491 "guestfs_ntfsresize_opts> call instead."
31492 msgstr ""
31493
31494 #. type: =head2
31495 #: ../src/guestfs-actions.pod:5619
31496 msgid "guestfs_ntfsresize_opts"
31497 msgstr ""
31498
31499 #. type: verbatim
31500 #: ../src/guestfs-actions.pod:5621
31501 #, no-wrap
31502 msgid ""
31503 " int\n"
31504 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31505 "                          const char *device,\n"
31506 "                          ...);\n"
31507 "\n"
31508 msgstr ""
31509
31510 #. type: verbatim
31511 #: ../src/guestfs-actions.pod:5631
31512 #, no-wrap
31513 msgid ""
31514 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31515 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31516 "\n"
31517 msgstr ""
31518
31519 #. type: textblock
31520 #: ../src/guestfs-actions.pod:5651
31521 msgid ""
31522 "After the resize operation, the filesystem is always marked as requiring a "
31523 "consistency check (for safety).  You have to boot into Windows to perform "
31524 "this check and clear this condition.  If you I<don't> set the C<force> "
31525 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31526 "times on a single filesystem without booting into Windows between each "
31527 "resize."
31528 msgstr ""
31529
31530 #. type: =head2
31531 #: ../src/guestfs-actions.pod:5666
31532 msgid "guestfs_ntfsresize_opts_va"
31533 msgstr ""
31534
31535 #. type: verbatim
31536 #: ../src/guestfs-actions.pod:5668
31537 #, no-wrap
31538 msgid ""
31539 " int\n"
31540 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31541 "                             const char *device,\n"
31542 "                             va_list args);\n"
31543 "\n"
31544 msgstr ""
31545
31546 #. type: textblock
31547 #: ../src/guestfs-actions.pod:5673
31548 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31549 msgstr ""
31550
31551 #. type: =head2
31552 #: ../src/guestfs-actions.pod:5677
31553 msgid "guestfs_ntfsresize_opts_argv"
31554 msgstr ""
31555
31556 #. type: verbatim
31557 #: ../src/guestfs-actions.pod:5679
31558 #, no-wrap
31559 msgid ""
31560 " int\n"
31561 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31562 "                               const char *device,\n"
31563 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31564 "\n"
31565 msgstr ""
31566
31567 #. type: textblock
31568 #: ../src/guestfs-actions.pod:5684
31569 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31570 msgstr ""
31571
31572 #. type: =head2
31573 #: ../src/guestfs-actions.pod:5688
31574 msgid "guestfs_ntfsresize_size"
31575 msgstr ""
31576
31577 #. type: verbatim
31578 #: ../src/guestfs-actions.pod:5690
31579 #, no-wrap
31580 msgid ""
31581 " int\n"
31582 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31583 "                          const char *device,\n"
31584 "                          int64_t size);\n"
31585 "\n"
31586 msgstr ""
31587
31588 #. type: textblock
31589 #: ../src/guestfs-actions.pod:5702
31590 msgid ""
31591 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31592 "to specify the new size (in bytes) explicitly."
31593 msgstr ""
31594
31595 #. type: textblock
31596 #: ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:6166
31597 #: ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6507
31598 #: ../src/guestfs-actions.pod:8134
31599 msgid "(Added in 1.3.14)"
31600 msgstr ""
31601
31602 #. type: =head2
31603 #: ../src/guestfs-actions.pod:5709
31604 msgid "guestfs_part_add"
31605 msgstr ""
31606
31607 #. type: verbatim
31608 #: ../src/guestfs-actions.pod:5711
31609 #, no-wrap
31610 msgid ""
31611 " int\n"
31612 " guestfs_part_add (guestfs_h *g,\n"
31613 "                   const char *device,\n"
31614 "                   const char *prlogex,\n"
31615 "                   int64_t startsect,\n"
31616 "                   int64_t endsect);\n"
31617 "\n"
31618 msgstr ""
31619
31620 #. type: textblock
31621 #: ../src/guestfs-actions.pod:5718
31622 msgid ""
31623 "This command adds a partition to C<device>.  If there is no partition table "
31624 "on the device, call C<guestfs_part_init> first."
31625 msgstr ""
31626
31627 #. type: textblock
31628 #: ../src/guestfs-actions.pod:5730
31629 msgid ""
31630 "Creating a partition which covers the whole disk is not so easy.  Use "
31631 "C<guestfs_part_disk> to do that."
31632 msgstr ""
31633
31634 #. type: textblock
31635 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5770
31636 #: ../src/guestfs-actions.pod:5823 ../src/guestfs-actions.pod:5907
31637 #: ../src/guestfs-actions.pod:5945 ../src/guestfs-actions.pod:5964
31638 #: ../src/guestfs-actions.pod:6004
31639 msgid "(Added in 1.0.78)"
31640 msgstr ""
31641
31642 #. type: =head2
31643 #: ../src/guestfs-actions.pod:5737
31644 msgid "guestfs_part_del"
31645 msgstr ""
31646
31647 #. type: verbatim
31648 #: ../src/guestfs-actions.pod:5739
31649 #, no-wrap
31650 msgid ""
31651 " int\n"
31652 " guestfs_part_del (guestfs_h *g,\n"
31653 "                   const char *device,\n"
31654 "                   int partnum);\n"
31655 "\n"
31656 msgstr ""
31657
31658 #. type: =head2
31659 #: ../src/guestfs-actions.pod:5754
31660 msgid "guestfs_part_disk"
31661 msgstr ""
31662
31663 #. type: verbatim
31664 #: ../src/guestfs-actions.pod:5756
31665 #, no-wrap
31666 msgid ""
31667 " int\n"
31668 " guestfs_part_disk (guestfs_h *g,\n"
31669 "                    const char *device,\n"
31670 "                    const char *parttype);\n"
31671 "\n"
31672 msgstr ""
31673
31674 #. type: textblock
31675 #: ../src/guestfs-actions.pod:5761
31676 msgid ""
31677 "This command is simply a combination of C<guestfs_part_init> followed by "
31678 "C<guestfs_part_add> to create a single primary partition covering the whole "
31679 "disk."
31680 msgstr ""
31681
31682 #. type: textblock
31683 #: ../src/guestfs-actions.pod:5765
31684 msgid ""
31685 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31686 "possible values are described in C<guestfs_part_init>."
31687 msgstr ""
31688
31689 #. type: =head2
31690 #: ../src/guestfs-actions.pod:5772
31691 msgid "guestfs_part_get_bootable"
31692 msgstr ""
31693
31694 #. type: verbatim
31695 #: ../src/guestfs-actions.pod:5774
31696 #, no-wrap
31697 msgid ""
31698 " int\n"
31699 " guestfs_part_get_bootable (guestfs_h *g,\n"
31700 "                            const char *device,\n"
31701 "                            int partnum);\n"
31702 "\n"
31703 msgstr ""
31704
31705 #. type: textblock
31706 #: ../src/guestfs-actions.pod:5782
31707 msgid "See also C<guestfs_part_set_bootable>."
31708 msgstr ""
31709
31710 #. type: =head2
31711 #: ../src/guestfs-actions.pod:5788
31712 msgid "guestfs_part_get_mbr_id"
31713 msgstr ""
31714
31715 #. type: verbatim
31716 #: ../src/guestfs-actions.pod:5790
31717 #, no-wrap
31718 msgid ""
31719 " int\n"
31720 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31721 "                          const char *device,\n"
31722 "                          int partnum);\n"
31723 "\n"
31724 msgstr ""
31725
31726 #. type: textblock
31727 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5980
31728 msgid ""
31729 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31730 "undefined results for other partition table types (see "
31731 "C<guestfs_part_get_parttype>)."
31732 msgstr ""
31733
31734 #. type: =head2
31735 #: ../src/guestfs-actions.pod:5806
31736 msgid "guestfs_part_get_parttype"
31737 msgstr ""
31738
31739 #. type: verbatim
31740 #: ../src/guestfs-actions.pod:5808
31741 #, no-wrap
31742 msgid ""
31743 " char *\n"
31744 " guestfs_part_get_parttype (guestfs_h *g,\n"
31745 "                            const char *device);\n"
31746 "\n"
31747 msgstr ""
31748
31749 #. type: textblock
31750 #: ../src/guestfs-actions.pod:5815
31751 msgid ""
31752 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31753 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31754 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31755 msgstr ""
31756
31757 #. type: =head2
31758 #: ../src/guestfs-actions.pod:5825
31759 msgid "guestfs_part_init"
31760 msgstr ""
31761
31762 #. type: verbatim
31763 #: ../src/guestfs-actions.pod:5827
31764 #, no-wrap
31765 msgid ""
31766 " int\n"
31767 " guestfs_part_init (guestfs_h *g,\n"
31768 "                    const char *device,\n"
31769 "                    const char *parttype);\n"
31770 "\n"
31771 msgstr ""
31772
31773 #. type: textblock
31774 #: ../src/guestfs-actions.pod:5836
31775 msgid ""
31776 "Initially there are no partitions.  Following this, you should call "
31777 "C<guestfs_part_add> for each partition required."
31778 msgstr ""
31779
31780 #. type: =head2
31781 #: ../src/guestfs-actions.pod:5909
31782 msgid "guestfs_part_list"
31783 msgstr ""
31784
31785 #. type: verbatim
31786 #: ../src/guestfs-actions.pod:5911
31787 #, no-wrap
31788 msgid ""
31789 " struct guestfs_partition_list *\n"
31790 " guestfs_part_list (guestfs_h *g,\n"
31791 "                    const char *device);\n"
31792 "\n"
31793 msgstr ""
31794
31795 #. type: textblock
31796 #: ../src/guestfs-actions.pod:5928
31797 msgid ""
31798 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31799 "the device's sector size, see C<guestfs_blockdev_getss>."
31800 msgstr ""
31801
31802 #. type: textblock
31803 #: ../src/guestfs-actions.pod:5941
31804 msgid ""
31805 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31806 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31807 "use>."
31808 msgstr ""
31809
31810 #. type: =head2
31811 #: ../src/guestfs-actions.pod:5947
31812 msgid "guestfs_part_set_bootable"
31813 msgstr ""
31814
31815 #. type: verbatim
31816 #: ../src/guestfs-actions.pod:5949
31817 #, no-wrap
31818 msgid ""
31819 " int\n"
31820 " guestfs_part_set_bootable (guestfs_h *g,\n"
31821 "                            const char *device,\n"
31822 "                            int partnum,\n"
31823 "                            int bootable);\n"
31824 "\n"
31825 msgstr ""
31826
31827 #. type: =head2
31828 #: ../src/guestfs-actions.pod:5966
31829 msgid "guestfs_part_set_mbr_id"
31830 msgstr ""
31831
31832 #. type: verbatim
31833 #: ../src/guestfs-actions.pod:5968
31834 #, no-wrap
31835 msgid ""
31836 " int\n"
31837 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31838 "                          const char *device,\n"
31839 "                          int partnum,\n"
31840 "                          int idbyte);\n"
31841 "\n"
31842 msgstr ""
31843
31844 #. type: =head2
31845 #: ../src/guestfs-actions.pod:5988
31846 msgid "guestfs_part_set_name"
31847 msgstr ""
31848
31849 #. type: verbatim
31850 #: ../src/guestfs-actions.pod:5990
31851 #, no-wrap
31852 msgid ""
31853 " int\n"
31854 " guestfs_part_set_name (guestfs_h *g,\n"
31855 "                        const char *device,\n"
31856 "                        int partnum,\n"
31857 "                        const char *name);\n"
31858 "\n"
31859 msgstr ""
31860
31861 #. type: =head2
31862 #: ../src/guestfs-actions.pod:6006
31863 msgid "guestfs_part_to_dev"
31864 msgstr ""
31865
31866 #. type: verbatim
31867 #: ../src/guestfs-actions.pod:6008
31868 #, no-wrap
31869 msgid ""
31870 " char *\n"
31871 " guestfs_part_to_dev (guestfs_h *g,\n"
31872 "                      const char *partition);\n"
31873 "\n"
31874 msgstr ""
31875
31876 #. type: textblock
31877 #: ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6035
31878 msgid ""
31879 "The named partition must exist, for example as a string returned from "
31880 "C<guestfs_list_partitions>."
31881 msgstr ""
31882
31883 #. type: textblock
31884 #: ../src/guestfs-actions.pod:6019
31885 msgid "See also C<guestfs_part_to_partnum>."
31886 msgstr ""
31887
31888 #. type: =head2
31889 #: ../src/guestfs-actions.pod:6026
31890 msgid "guestfs_part_to_partnum"
31891 msgstr ""
31892
31893 #. type: verbatim
31894 #: ../src/guestfs-actions.pod:6028
31895 #, no-wrap
31896 msgid ""
31897 " int\n"
31898 " guestfs_part_to_partnum (guestfs_h *g,\n"
31899 "                          const char *partition);\n"
31900 "\n"
31901 msgstr ""
31902
31903 #. type: textblock
31904 #: ../src/guestfs-actions.pod:6038
31905 msgid "See also C<guestfs_part_to_dev>."
31906 msgstr ""
31907
31908 #. type: =head2
31909 #: ../src/guestfs-actions.pod:6044
31910 msgid "guestfs_ping_daemon"
31911 msgstr ""
31912
31913 #. type: verbatim
31914 #: ../src/guestfs-actions.pod:6046
31915 #, no-wrap
31916 msgid ""
31917 " int\n"
31918 " guestfs_ping_daemon (guestfs_h *g);\n"
31919 "\n"
31920 msgstr ""
31921
31922 #. type: =head2
31923 #: ../src/guestfs-actions.pod:6058
31924 msgid "guestfs_pread"
31925 msgstr ""
31926
31927 #. type: verbatim
31928 #: ../src/guestfs-actions.pod:6060
31929 #, no-wrap
31930 msgid ""
31931 " char *\n"
31932 " guestfs_pread (guestfs_h *g,\n"
31933 "                const char *path,\n"
31934 "                int count,\n"
31935 "                int64_t offset,\n"
31936 "                size_t *size_r);\n"
31937 "\n"
31938 msgstr ""
31939
31940 #. type: textblock
31941 #: ../src/guestfs-actions.pod:6073
31942 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31943 msgstr ""
31944
31945 #. type: =head2
31946 #: ../src/guestfs-actions.pod:6084
31947 msgid "guestfs_pread_device"
31948 msgstr ""
31949
31950 #. type: verbatim
31951 #: ../src/guestfs-actions.pod:6086
31952 #, no-wrap
31953 msgid ""
31954 " char *\n"
31955 " guestfs_pread_device (guestfs_h *g,\n"
31956 "                       const char *device,\n"
31957 "                       int count,\n"
31958 "                       int64_t offset,\n"
31959 "                       size_t *size_r);\n"
31960 "\n"
31961 msgstr ""
31962
31963 #. type: textblock
31964 #: ../src/guestfs-actions.pod:6099
31965 msgid "See also C<guestfs_pread>."
31966 msgstr ""
31967
31968 #. type: textblock
31969 #: ../src/guestfs-actions.pod:6108
31970 msgid "(Added in 1.5.21)"
31971 msgstr ""
31972
31973 #. type: =head2
31974 #: ../src/guestfs-actions.pod:6110
31975 msgid "guestfs_pvcreate"
31976 msgstr ""
31977
31978 #. type: verbatim
31979 #: ../src/guestfs-actions.pod:6112
31980 #, no-wrap
31981 msgid ""
31982 " int\n"
31983 " guestfs_pvcreate (guestfs_h *g,\n"
31984 "                   const char *device);\n"
31985 "\n"
31986 msgstr ""
31987
31988 #. type: =head2
31989 #: ../src/guestfs-actions.pod:6124
31990 msgid "guestfs_pvremove"
31991 msgstr ""
31992
31993 #. type: verbatim
31994 #: ../src/guestfs-actions.pod:6126
31995 #, no-wrap
31996 msgid ""
31997 " int\n"
31998 " guestfs_pvremove (guestfs_h *g,\n"
31999 "                   const char *device);\n"
32000 "\n"
32001 msgstr ""
32002
32003 #. type: =head2
32004 #: ../src/guestfs-actions.pod:6141
32005 msgid "guestfs_pvresize"
32006 msgstr ""
32007
32008 #. type: verbatim
32009 #: ../src/guestfs-actions.pod:6143
32010 #, no-wrap
32011 msgid ""
32012 " int\n"
32013 " guestfs_pvresize (guestfs_h *g,\n"
32014 "                   const char *device);\n"
32015 "\n"
32016 msgstr ""
32017
32018 #. type: =head2
32019 #: ../src/guestfs-actions.pod:6154
32020 msgid "guestfs_pvresize_size"
32021 msgstr ""
32022
32023 #. type: verbatim
32024 #: ../src/guestfs-actions.pod:6156
32025 #, no-wrap
32026 msgid ""
32027 " int\n"
32028 " guestfs_pvresize_size (guestfs_h *g,\n"
32029 "                        const char *device,\n"
32030 "                        int64_t size);\n"
32031 "\n"
32032 msgstr ""
32033
32034 #. type: textblock
32035 #: ../src/guestfs-actions.pod:6161
32036 msgid ""
32037 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32038 "specify the new size (in bytes) explicitly."
32039 msgstr ""
32040
32041 #. type: =head2
32042 #: ../src/guestfs-actions.pod:6168
32043 msgid "guestfs_pvs"
32044 msgstr ""
32045
32046 #. type: verbatim
32047 #: ../src/guestfs-actions.pod:6170
32048 #, no-wrap
32049 msgid ""
32050 " char **\n"
32051 " guestfs_pvs (guestfs_h *g);\n"
32052 "\n"
32053 msgstr ""
32054
32055 #. type: textblock
32056 #: ../src/guestfs-actions.pod:6179
32057 msgid "See also C<guestfs_pvs_full>."
32058 msgstr ""
32059
32060 #. type: =head2
32061 #: ../src/guestfs-actions.pod:6187
32062 msgid "guestfs_pvs_full"
32063 msgstr ""
32064
32065 #. type: verbatim
32066 #: ../src/guestfs-actions.pod:6189
32067 #, no-wrap
32068 msgid ""
32069 " struct guestfs_lvm_pv_list *\n"
32070 " guestfs_pvs_full (guestfs_h *g);\n"
32071 "\n"
32072 msgstr ""
32073
32074 #. type: textblock
32075 #: ../src/guestfs-actions.pod:6195
32076 msgid ""
32077 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32078 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32079 msgstr ""
32080
32081 #. type: =head2
32082 #: ../src/guestfs-actions.pod:6201
32083 msgid "guestfs_pvuuid"
32084 msgstr ""
32085
32086 #. type: verbatim
32087 #: ../src/guestfs-actions.pod:6203
32088 #, no-wrap
32089 msgid ""
32090 " char *\n"
32091 " guestfs_pvuuid (guestfs_h *g,\n"
32092 "                 const char *device);\n"
32093 "\n"
32094 msgstr ""
32095
32096 #. type: =head2
32097 #: ../src/guestfs-actions.pod:6214
32098 msgid "guestfs_pwrite"
32099 msgstr ""
32100
32101 #. type: verbatim
32102 #: ../src/guestfs-actions.pod:6216
32103 #, no-wrap
32104 msgid ""
32105 " int\n"
32106 " guestfs_pwrite (guestfs_h *g,\n"
32107 "                 const char *path,\n"
32108 "                 const char *content,\n"
32109 "                 size_t content_size,\n"
32110 "                 int64_t offset);\n"
32111 "\n"
32112 msgstr ""
32113
32114 #. type: textblock
32115 #: ../src/guestfs-actions.pod:6232
32116 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32117 msgstr ""
32118
32119 #. type: =head2
32120 #: ../src/guestfs-actions.pod:6241
32121 msgid "guestfs_pwrite_device"
32122 msgstr ""
32123
32124 #. type: verbatim
32125 #: ../src/guestfs-actions.pod:6243
32126 #, no-wrap
32127 msgid ""
32128 " int\n"
32129 " guestfs_pwrite_device (guestfs_h *g,\n"
32130 "                        const char *device,\n"
32131 "                        const char *content,\n"
32132 "                        size_t content_size,\n"
32133 "                        int64_t offset);\n"
32134 "\n"
32135 msgstr ""
32136
32137 #. type: textblock
32138 #: ../src/guestfs-actions.pod:6258
32139 msgid "See also C<guestfs_pwrite>."
32140 msgstr ""
32141
32142 #. type: textblock
32143 #: ../src/guestfs-actions.pod:6265
32144 msgid "(Added in 1.5.20)"
32145 msgstr ""
32146
32147 #. type: =head2
32148 #: ../src/guestfs-actions.pod:6267
32149 msgid "guestfs_read_file"
32150 msgstr ""
32151
32152 #. type: verbatim
32153 #: ../src/guestfs-actions.pod:6269
32154 #, no-wrap
32155 msgid ""
32156 " char *\n"
32157 " guestfs_read_file (guestfs_h *g,\n"
32158 "                    const char *path,\n"
32159 "                    size_t *size_r);\n"
32160 "\n"
32161 msgstr ""
32162
32163 #. type: textblock
32164 #: ../src/guestfs-actions.pod:6277
32165 msgid ""
32166 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32167 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
32168 "function is limited in the total size of file that can be handled."
32169 msgstr ""
32170
32171 #. type: textblock
32172 #: ../src/guestfs-actions.pod:6289
32173 msgid "(Added in 1.0.63)"
32174 msgstr ""
32175
32176 #. type: =head2
32177 #: ../src/guestfs-actions.pod:6291
32178 msgid "guestfs_read_lines"
32179 msgstr ""
32180
32181 #. type: verbatim
32182 #: ../src/guestfs-actions.pod:6293
32183 #, no-wrap
32184 msgid ""
32185 " char **\n"
32186 " guestfs_read_lines (guestfs_h *g,\n"
32187 "                     const char *path);\n"
32188 "\n"
32189 msgstr ""
32190
32191 #. type: textblock
32192 #: ../src/guestfs-actions.pod:6302
32193 msgid ""
32194 "Note that this function cannot correctly handle binary files (specifically, "
32195 "files containing C<\\0> character which is treated as end of line).  For "
32196 "those you need to use the C<guestfs_read_file> function which has a more "
32197 "complex interface."
32198 msgstr ""
32199
32200 #. type: =head2
32201 #: ../src/guestfs-actions.pod:6313
32202 msgid "guestfs_readdir"
32203 msgstr ""
32204
32205 #. type: verbatim
32206 #: ../src/guestfs-actions.pod:6315
32207 #, no-wrap
32208 msgid ""
32209 " struct guestfs_dirent_list *\n"
32210 " guestfs_readdir (guestfs_h *g,\n"
32211 "                  const char *dir);\n"
32212 "\n"
32213 msgstr ""
32214
32215 #. type: textblock
32216 #: ../src/guestfs-actions.pod:6369
32217 msgid ""
32218 "This function is primarily intended for use by programs.  To get a simple "
32219 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
32220 "consumption, use C<guestfs_ll>."
32221 msgstr ""
32222
32223 #. type: textblock
32224 #: ../src/guestfs-actions.pod:6373
32225 msgid ""
32226 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32227 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
32228 msgstr ""
32229
32230 #. type: =head2
32231 #: ../src/guestfs-actions.pod:6379
32232 msgid "guestfs_readlink"
32233 msgstr ""
32234
32235 #. type: verbatim
32236 #: ../src/guestfs-actions.pod:6381
32237 #, no-wrap
32238 msgid ""
32239 " char *\n"
32240 " guestfs_readlink (guestfs_h *g,\n"
32241 "                   const char *path);\n"
32242 "\n"
32243 msgstr ""
32244
32245 #. type: =head2
32246 #: ../src/guestfs-actions.pod:6392
32247 msgid "guestfs_readlinklist"
32248 msgstr ""
32249
32250 #. type: verbatim
32251 #: ../src/guestfs-actions.pod:6394
32252 #, no-wrap
32253 msgid ""
32254 " char **\n"
32255 " guestfs_readlinklist (guestfs_h *g,\n"
32256 "                       const char *path,\n"
32257 "                       char *const *names);\n"
32258 "\n"
32259 msgstr ""
32260
32261 #. type: =head2
32262 #: ../src/guestfs-actions.pod:6427
32263 msgid "guestfs_realpath"
32264 msgstr ""
32265
32266 #. type: verbatim
32267 #: ../src/guestfs-actions.pod:6429
32268 #, no-wrap
32269 msgid ""
32270 " char *\n"
32271 " guestfs_realpath (guestfs_h *g,\n"
32272 "                   const char *path);\n"
32273 "\n"
32274 msgstr ""
32275
32276 #. type: =head2
32277 #: ../src/guestfs-actions.pod:6441
32278 msgid "guestfs_removexattr"
32279 msgstr ""
32280
32281 #. type: verbatim
32282 #: ../src/guestfs-actions.pod:6443
32283 #, no-wrap
32284 msgid ""
32285 " int\n"
32286 " guestfs_removexattr (guestfs_h *g,\n"
32287 "                      const char *xattr,\n"
32288 "                      const char *path);\n"
32289 "\n"
32290 msgstr ""
32291
32292 #. type: textblock
32293 #: ../src/guestfs-actions.pod:6451
32294 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32295 msgstr ""
32296
32297 #. type: =head2
32298 #: ../src/guestfs-actions.pod:6457
32299 msgid "guestfs_resize2fs"
32300 msgstr ""
32301
32302 #. type: verbatim
32303 #: ../src/guestfs-actions.pod:6459
32304 #, no-wrap
32305 msgid ""
32306 " int\n"
32307 " guestfs_resize2fs (guestfs_h *g,\n"
32308 "                    const char *device);\n"
32309 "\n"
32310 msgstr ""
32311
32312 #. type: textblock
32313 #: ../src/guestfs-actions.pod:6466
32314 msgid ""
32315 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32316 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
32317 "sometimes gives an error about this and sometimes not.  In any case, it is "
32318 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32319 msgstr ""
32320
32321 #. type: =head2
32322 #: ../src/guestfs-actions.pod:6476
32323 msgid "guestfs_resize2fs_M"
32324 msgstr ""
32325
32326 #. type: verbatim
32327 #: ../src/guestfs-actions.pod:6478
32328 #, no-wrap
32329 msgid ""
32330 " int\n"
32331 " guestfs_resize2fs_M (guestfs_h *g,\n"
32332 "                      const char *device);\n"
32333 "\n"
32334 msgstr ""
32335
32336 #. type: textblock
32337 #: ../src/guestfs-actions.pod:6482
32338 msgid ""
32339 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32340 "resized to its minimum size.  This works like the I<-M> option to the "
32341 "C<resize2fs> command."
32342 msgstr ""
32343
32344 #. type: textblock
32345 #: ../src/guestfs-actions.pod:6486
32346 msgid ""
32347 "To get the resulting size of the filesystem you should call "
32348 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
32349 "These two numbers, multiplied together, give the resulting size of the "
32350 "minimal filesystem in bytes."
32351 msgstr ""
32352
32353 #. type: =head2
32354 #: ../src/guestfs-actions.pod:6495
32355 msgid "guestfs_resize2fs_size"
32356 msgstr ""
32357
32358 #. type: verbatim
32359 #: ../src/guestfs-actions.pod:6497
32360 #, no-wrap
32361 msgid ""
32362 " int\n"
32363 " guestfs_resize2fs_size (guestfs_h *g,\n"
32364 "                         const char *device,\n"
32365 "                         int64_t size);\n"
32366 "\n"
32367 msgstr ""
32368
32369 #. type: textblock
32370 #: ../src/guestfs-actions.pod:6502
32371 msgid ""
32372 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32373 "to specify the new size (in bytes) explicitly."
32374 msgstr ""
32375
32376 #. type: =head2
32377 #: ../src/guestfs-actions.pod:6509
32378 msgid "guestfs_rm"
32379 msgstr ""
32380
32381 #. type: verbatim
32382 #: ../src/guestfs-actions.pod:6511
32383 #, no-wrap
32384 msgid ""
32385 " int\n"
32386 " guestfs_rm (guestfs_h *g,\n"
32387 "             const char *path);\n"
32388 "\n"
32389 msgstr ""
32390
32391 #. type: =head2
32392 #: ../src/guestfs-actions.pod:6521
32393 msgid "guestfs_rm_rf"
32394 msgstr ""
32395
32396 #. type: verbatim
32397 #: ../src/guestfs-actions.pod:6523
32398 #, no-wrap
32399 msgid ""
32400 " int\n"
32401 " guestfs_rm_rf (guestfs_h *g,\n"
32402 "                const char *path);\n"
32403 "\n"
32404 msgstr ""
32405
32406 #. type: =head2
32407 #: ../src/guestfs-actions.pod:6535
32408 msgid "guestfs_rmdir"
32409 msgstr ""
32410
32411 #. type: verbatim
32412 #: ../src/guestfs-actions.pod:6537
32413 #, no-wrap
32414 msgid ""
32415 " int\n"
32416 " guestfs_rmdir (guestfs_h *g,\n"
32417 "                const char *path);\n"
32418 "\n"
32419 msgstr ""
32420
32421 #. type: =head2
32422 #: ../src/guestfs-actions.pod:6547
32423 msgid "guestfs_rmmountpoint"
32424 msgstr ""
32425
32426 #. type: verbatim
32427 #: ../src/guestfs-actions.pod:6549
32428 #, no-wrap
32429 msgid ""
32430 " int\n"
32431 " guestfs_rmmountpoint (guestfs_h *g,\n"
32432 "                       const char *exemptpath);\n"
32433 "\n"
32434 msgstr ""
32435
32436 #. type: textblock
32437 #: ../src/guestfs-actions.pod:6553
32438 msgid ""
32439 "This calls removes a mountpoint that was previously created with "
32440 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32441 msgstr ""
32442
32443 #. type: =head2
32444 #: ../src/guestfs-actions.pod:6561
32445 msgid "guestfs_scrub_device"
32446 msgstr ""
32447
32448 #. type: verbatim
32449 #: ../src/guestfs-actions.pod:6563
32450 #, no-wrap
32451 msgid ""
32452 " int\n"
32453 " guestfs_scrub_device (guestfs_h *g,\n"
32454 "                       const char *device);\n"
32455 "\n"
32456 msgstr ""
32457
32458 #. type: textblock
32459 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6593
32460 #: ../src/guestfs-actions.pod:6612
32461 msgid "(Added in 1.0.52)"
32462 msgstr ""
32463
32464 #. type: =head2
32465 #: ../src/guestfs-actions.pod:6577
32466 msgid "guestfs_scrub_file"
32467 msgstr ""
32468
32469 #. type: verbatim
32470 #: ../src/guestfs-actions.pod:6579
32471 #, no-wrap
32472 msgid ""
32473 " int\n"
32474 " guestfs_scrub_file (guestfs_h *g,\n"
32475 "                     const char *file);\n"
32476 "\n"
32477 msgstr ""
32478
32479 #. type: =head2
32480 #: ../src/guestfs-actions.pod:6595
32481 msgid "guestfs_scrub_freespace"
32482 msgstr ""
32483
32484 #. type: verbatim
32485 #: ../src/guestfs-actions.pod:6597
32486 #, no-wrap
32487 msgid ""
32488 " int\n"
32489 " guestfs_scrub_freespace (guestfs_h *g,\n"
32490 "                          const char *dir);\n"
32491 "\n"
32492 msgstr ""
32493
32494 #. type: textblock
32495 #: ../src/guestfs-actions.pod:6601
32496 msgid ""
32497 "This command creates the directory C<dir> and then fills it with files until "
32498 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32499 "and deletes them.  The intention is to scrub any free space on the partition "
32500 "containing C<dir>."
32501 msgstr ""
32502
32503 #. type: =head2
32504 #: ../src/guestfs-actions.pod:6614
32505 msgid "guestfs_set_append"
32506 msgstr ""
32507
32508 #. type: verbatim
32509 #: ../src/guestfs-actions.pod:6616
32510 #, no-wrap
32511 msgid ""
32512 " int\n"
32513 " guestfs_set_append (guestfs_h *g,\n"
32514 "                     const char *append);\n"
32515 "\n"
32516 msgstr ""
32517
32518 #. type: =head2
32519 #: ../src/guestfs-actions.pod:6633
32520 msgid "guestfs_set_attach_method"
32521 msgstr ""
32522
32523 #. type: verbatim
32524 #: ../src/guestfs-actions.pod:6635
32525 #, no-wrap
32526 msgid ""
32527 " int\n"
32528 " guestfs_set_attach_method (guestfs_h *g,\n"
32529 "                            const char *attachmethod);\n"
32530 "\n"
32531 msgstr ""
32532
32533 #. type: =head2
32534 #: ../src/guestfs-actions.pod:6663
32535 msgid "guestfs_set_autosync"
32536 msgstr ""
32537
32538 #. type: verbatim
32539 #: ../src/guestfs-actions.pod:6665
32540 #, no-wrap
32541 msgid ""
32542 " int\n"
32543 " guestfs_set_autosync (guestfs_h *g,\n"
32544 "                       int autosync);\n"
32545 "\n"
32546 msgstr ""
32547
32548 #. type: =head2
32549 #: ../src/guestfs-actions.pod:6681
32550 msgid "guestfs_set_direct"
32551 msgstr ""
32552
32553 #. type: verbatim
32554 #: ../src/guestfs-actions.pod:6683
32555 #, no-wrap
32556 msgid ""
32557 " int\n"
32558 " guestfs_set_direct (guestfs_h *g,\n"
32559 "                     int direct);\n"
32560 "\n"
32561 msgstr ""
32562
32563 #. type: textblock
32564 #: ../src/guestfs-actions.pod:6691
32565 msgid ""
32566 "One consequence of this is that log messages aren't caught by the library "
32567 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32568 "stdout."
32569 msgstr ""
32570
32571 #. type: =head2
32572 #: ../src/guestfs-actions.pod:6704
32573 msgid "guestfs_set_e2label"
32574 msgstr ""
32575
32576 #. type: verbatim
32577 #: ../src/guestfs-actions.pod:6706
32578 #, no-wrap
32579 msgid ""
32580 " int\n"
32581 " guestfs_set_e2label (guestfs_h *g,\n"
32582 "                      const char *device,\n"
32583 "                      const char *label);\n"
32584 "\n"
32585 msgstr ""
32586
32587 #. type: textblock
32588 #: ../src/guestfs-actions.pod:6715
32589 msgid ""
32590 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32591 "the existing label on a filesystem."
32592 msgstr ""
32593
32594 #. type: =head2
32595 #: ../src/guestfs-actions.pod:6722
32596 msgid "guestfs_set_e2uuid"
32597 msgstr ""
32598
32599 #. type: verbatim
32600 #: ../src/guestfs-actions.pod:6724
32601 #, no-wrap
32602 msgid ""
32603 " int\n"
32604 " guestfs_set_e2uuid (guestfs_h *g,\n"
32605 "                     const char *device,\n"
32606 "                     const char *uuid);\n"
32607 "\n"
32608 msgstr ""
32609
32610 #. type: textblock
32611 #: ../src/guestfs-actions.pod:6734
32612 msgid ""
32613 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32614 "the existing UUID of a filesystem."
32615 msgstr ""
32616
32617 #. type: =head2
32618 #: ../src/guestfs-actions.pod:6741
32619 msgid "guestfs_set_memsize"
32620 msgstr ""
32621
32622 #. type: verbatim
32623 #: ../src/guestfs-actions.pod:6743
32624 #, no-wrap
32625 msgid ""
32626 " int\n"
32627 " guestfs_set_memsize (guestfs_h *g,\n"
32628 "                      int memsize);\n"
32629 "\n"
32630 msgstr ""
32631
32632 #. type: textblock
32633 #: ../src/guestfs-actions.pod:6747
32634 msgid ""
32635 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32636 "This only has any effect if called before C<guestfs_launch>."
32637 msgstr ""
32638
32639 #. type: =head2
32640 #: ../src/guestfs-actions.pod:6762
32641 msgid "guestfs_set_network"
32642 msgstr ""
32643
32644 #. type: verbatim
32645 #: ../src/guestfs-actions.pod:6764
32646 #, no-wrap
32647 msgid ""
32648 " int\n"
32649 " guestfs_set_network (guestfs_h *g,\n"
32650 "                      int network);\n"
32651 "\n"
32652 msgstr ""
32653
32654 #. type: textblock
32655 #: ../src/guestfs-actions.pod:6774
32656 msgid ""
32657 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32658 "effect."
32659 msgstr ""
32660
32661 #. type: =head2
32662 #: ../src/guestfs-actions.pod:6781
32663 msgid "guestfs_set_path"
32664 msgstr ""
32665
32666 #. type: verbatim
32667 #: ../src/guestfs-actions.pod:6783
32668 #, no-wrap
32669 msgid ""
32670 " int\n"
32671 " guestfs_set_path (guestfs_h *g,\n"
32672 "                   const char *searchpath);\n"
32673 "\n"
32674 msgstr ""
32675
32676 #. type: =head2
32677 #: ../src/guestfs-actions.pod:6798
32678 msgid "guestfs_set_pgroup"
32679 msgstr ""
32680
32681 #. type: verbatim
32682 #: ../src/guestfs-actions.pod:6800
32683 #, no-wrap
32684 msgid ""
32685 " int\n"
32686 " guestfs_set_pgroup (guestfs_h *g,\n"
32687 "                     int pgroup);\n"
32688 "\n"
32689 msgstr ""
32690
32691 #. type: =head2
32692 #: ../src/guestfs-actions.pod:6817
32693 msgid "guestfs_set_qemu"
32694 msgstr ""
32695
32696 #. type: verbatim
32697 #: ../src/guestfs-actions.pod:6819
32698 #, no-wrap
32699 msgid ""
32700 " int\n"
32701 " guestfs_set_qemu (guestfs_h *g,\n"
32702 "                   const char *qemu);\n"
32703 "\n"
32704 msgstr ""
32705
32706 #. type: =head2
32707 #: ../src/guestfs-actions.pod:6845
32708 msgid "guestfs_set_recovery_proc"
32709 msgstr ""
32710
32711 #. type: verbatim
32712 #: ../src/guestfs-actions.pod:6847
32713 #, no-wrap
32714 msgid ""
32715 " int\n"
32716 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32717 "                            int recoveryproc);\n"
32718 "\n"
32719 msgstr ""
32720
32721 #. type: textblock
32722 #: ../src/guestfs-actions.pod:6851
32723 msgid ""
32724 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32725 "not create a recovery process.  The purpose of the recovery process is to "
32726 "stop runaway qemu processes in the case where the main program aborts "
32727 "abruptly."
32728 msgstr ""
32729
32730 #. type: textblock
32731 #: ../src/guestfs-actions.pod:6856
32732 msgid ""
32733 "This only has any effect if called before C<guestfs_launch>, and the default "
32734 "is true."
32735 msgstr ""
32736
32737 #. type: =head2
32738 #: ../src/guestfs-actions.pod:6869
32739 msgid "guestfs_set_selinux"
32740 msgstr ""
32741
32742 #. type: verbatim
32743 #: ../src/guestfs-actions.pod:6871
32744 #, no-wrap
32745 msgid ""
32746 " int\n"
32747 " guestfs_set_selinux (guestfs_h *g,\n"
32748 "                      int selinux);\n"
32749 "\n"
32750 msgstr ""
32751
32752 #. type: =head2
32753 #: ../src/guestfs-actions.pod:6888
32754 msgid "guestfs_set_smp"
32755 msgstr ""
32756
32757 #. type: verbatim
32758 #: ../src/guestfs-actions.pod:6890
32759 #, no-wrap
32760 msgid ""
32761 " int\n"
32762 " guestfs_set_smp (guestfs_h *g,\n"
32763 "                  int smp);\n"
32764 "\n"
32765 msgstr ""
32766
32767 #. type: textblock
32768 #: ../src/guestfs-actions.pod:6898
32769 msgid "This function must be called before C<guestfs_launch>."
32770 msgstr ""
32771
32772 #. type: =head2
32773 #: ../src/guestfs-actions.pod:6904
32774 msgid "guestfs_set_trace"
32775 msgstr ""
32776
32777 #. type: verbatim
32778 #: ../src/guestfs-actions.pod:6906
32779 #, no-wrap
32780 msgid ""
32781 " int\n"
32782 " guestfs_set_trace (guestfs_h *g,\n"
32783 "                    int trace);\n"
32784 "\n"
32785 msgstr ""
32786
32787 #. type: textblock
32788 #: ../src/guestfs-actions.pod:6920
32789 msgid ""
32790 "Trace messages are normally sent to C<stderr>, unless you register a "
32791 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32792 msgstr ""
32793
32794 #. type: =head2
32795 #: ../src/guestfs-actions.pod:6928
32796 msgid "guestfs_set_verbose"
32797 msgstr ""
32798
32799 #. type: verbatim
32800 #: ../src/guestfs-actions.pod:6930
32801 #, no-wrap
32802 msgid ""
32803 " int\n"
32804 " guestfs_set_verbose (guestfs_h *g,\n"
32805 "                      int verbose);\n"
32806 "\n"
32807 msgstr ""
32808
32809 #. type: textblock
32810 #: ../src/guestfs-actions.pod:6939
32811 msgid ""
32812 "Verbose messages are normally sent to C<stderr>, unless you register a "
32813 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32814 msgstr ""
32815
32816 #. type: =head2
32817 #: ../src/guestfs-actions.pod:6947
32818 msgid "guestfs_setcon"
32819 msgstr ""
32820
32821 #. type: verbatim
32822 #: ../src/guestfs-actions.pod:6949
32823 #, no-wrap
32824 msgid ""
32825 " int\n"
32826 " guestfs_setcon (guestfs_h *g,\n"
32827 "                 const char *context);\n"
32828 "\n"
32829 msgstr ""
32830
32831 #. type: =head2
32832 #: ../src/guestfs-actions.pod:6962
32833 msgid "guestfs_setxattr"
32834 msgstr ""
32835
32836 #. type: verbatim
32837 #: ../src/guestfs-actions.pod:6964
32838 #, no-wrap
32839 msgid ""
32840 " int\n"
32841 " guestfs_setxattr (guestfs_h *g,\n"
32842 "                   const char *xattr,\n"
32843 "                   const char *val,\n"
32844 "                   int vallen,\n"
32845 "                   const char *path);\n"
32846 "\n"
32847 msgstr ""
32848
32849 #. type: textblock
32850 #: ../src/guestfs-actions.pod:6975
32851 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32852 msgstr ""
32853
32854 #. type: =head2
32855 #: ../src/guestfs-actions.pod:6981
32856 msgid "guestfs_sfdisk"
32857 msgstr ""
32858
32859 #. type: verbatim
32860 #: ../src/guestfs-actions.pod:6983
32861 #, no-wrap
32862 msgid ""
32863 " int\n"
32864 " guestfs_sfdisk (guestfs_h *g,\n"
32865 "                 const char *device,\n"
32866 "                 int cyls,\n"
32867 "                 int heads,\n"
32868 "                 int sectors,\n"
32869 "                 char *const *lines);\n"
32870 "\n"
32871 msgstr ""
32872
32873 #. type: textblock
32874 #: ../src/guestfs-actions.pod:6991 ../src/guestfs-actions.pod:7032
32875 #: ../src/guestfs-actions.pod:7063
32876 msgid ""
32877 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32878 "call instead."
32879 msgstr ""
32880
32881 #. type: textblock
32882 #: ../src/guestfs-actions.pod:7018
32883 msgid ""
32884 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32885 msgstr ""
32886
32887 #. type: =head2
32888 #: ../src/guestfs-actions.pod:7025
32889 msgid "guestfs_sfdiskM"
32890 msgstr ""
32891
32892 #. type: verbatim
32893 #: ../src/guestfs-actions.pod:7027
32894 #, no-wrap
32895 msgid ""
32896 " int\n"
32897 " guestfs_sfdiskM (guestfs_h *g,\n"
32898 "                  const char *device,\n"
32899 "                  char *const *lines);\n"
32900 "\n"
32901 msgstr ""
32902
32903 #. type: textblock
32904 #: ../src/guestfs-actions.pod:7039
32905 msgid ""
32906 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32907 "partition sizes are specified in megabytes only (rounded to the nearest "
32908 "cylinder) and you don't need to specify the cyls, heads and sectors "
32909 "parameters which were rarely if ever used anyway."
32910 msgstr ""
32911
32912 #. type: textblock
32913 #: ../src/guestfs-actions.pod:7045
32914 msgid ""
32915 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32916 "C<guestfs_part_disk>"
32917 msgstr ""
32918
32919 #. type: =head2
32920 #: ../src/guestfs-actions.pod:7052
32921 msgid "guestfs_sfdisk_N"
32922 msgstr ""
32923
32924 #. type: verbatim
32925 #: ../src/guestfs-actions.pod:7054
32926 #, no-wrap
32927 msgid ""
32928 " int\n"
32929 " guestfs_sfdisk_N (guestfs_h *g,\n"
32930 "                   const char *device,\n"
32931 "                   int partnum,\n"
32932 "                   int cyls,\n"
32933 "                   int heads,\n"
32934 "                   int sectors,\n"
32935 "                   const char *line);\n"
32936 "\n"
32937 msgstr ""
32938
32939 #. type: textblock
32940 #: ../src/guestfs-actions.pod:7073
32941 msgid ""
32942 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32943 "for the cyls/heads/sectors parameters."
32944 msgstr ""
32945
32946 #. type: textblock
32947 #: ../src/guestfs-actions.pod:7076
32948 msgid "See also: C<guestfs_part_add>"
32949 msgstr ""
32950
32951 #. type: =head2
32952 #: ../src/guestfs-actions.pod:7082
32953 msgid "guestfs_sfdisk_disk_geometry"
32954 msgstr ""
32955
32956 #. type: verbatim
32957 #: ../src/guestfs-actions.pod:7084
32958 #, no-wrap
32959 msgid ""
32960 " char *\n"
32961 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32962 "                               const char *device);\n"
32963 "\n"
32964 msgstr ""
32965
32966 #. type: textblock
32967 #: ../src/guestfs-actions.pod:7088
32968 msgid ""
32969 "This displays the disk geometry of C<device> read from the partition table.  "
32970 "Especially in the case where the underlying block device has been resized, "
32971 "this can be different from the kernel's idea of the geometry (see "
32972 "C<guestfs_sfdisk_kernel_geometry>)."
32973 msgstr ""
32974
32975 #. type: =head2
32976 #: ../src/guestfs-actions.pod:7101
32977 msgid "guestfs_sfdisk_kernel_geometry"
32978 msgstr ""
32979
32980 #. type: verbatim
32981 #: ../src/guestfs-actions.pod:7103
32982 #, no-wrap
32983 msgid ""
32984 " char *\n"
32985 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32986 "                                 const char *device);\n"
32987 "\n"
32988 msgstr ""
32989
32990 #. type: =head2
32991 #: ../src/guestfs-actions.pod:7117
32992 msgid "guestfs_sfdisk_l"
32993 msgstr ""
32994
32995 #. type: verbatim
32996 #: ../src/guestfs-actions.pod:7119
32997 #, no-wrap
32998 msgid ""
32999 " char *\n"
33000 " guestfs_sfdisk_l (guestfs_h *g,\n"
33001 "                   const char *device);\n"
33002 "\n"
33003 msgstr ""
33004
33005 #. type: textblock
33006 #: ../src/guestfs-actions.pod:7123
33007 msgid ""
33008 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33009 "call instead."
33010 msgstr ""
33011
33012 #. type: textblock
33013 #: ../src/guestfs-actions.pod:7134
33014 msgid "See also: C<guestfs_part_list>"
33015 msgstr ""
33016
33017 #. type: =head2
33018 #: ../src/guestfs-actions.pod:7141
33019 msgid "guestfs_sh"
33020 msgstr ""
33021
33022 #. type: verbatim
33023 #: ../src/guestfs-actions.pod:7143
33024 #, no-wrap
33025 msgid ""
33026 " char *\n"
33027 " guestfs_sh (guestfs_h *g,\n"
33028 "             const char *command);\n"
33029 "\n"
33030 msgstr ""
33031
33032 #. type: textblock
33033 #: ../src/guestfs-actions.pod:7150
33034 msgid "This is like C<guestfs_command>, but passes the command to:"
33035 msgstr ""
33036
33037 #. type: textblock
33038 #: ../src/guestfs-actions.pod:7158
33039 msgid "All the provisos about C<guestfs_command> apply to this call."
33040 msgstr ""
33041
33042 #. type: =head2
33043 #: ../src/guestfs-actions.pod:7165
33044 msgid "guestfs_sh_lines"
33045 msgstr ""
33046
33047 #. type: verbatim
33048 #: ../src/guestfs-actions.pod:7167
33049 #, no-wrap
33050 msgid ""
33051 " char **\n"
33052 " guestfs_sh_lines (guestfs_h *g,\n"
33053 "                   const char *command);\n"
33054 "\n"
33055 msgstr ""
33056
33057 #. type: textblock
33058 #: ../src/guestfs-actions.pod:7171
33059 msgid ""
33060 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33061 "lines."
33062 msgstr ""
33063
33064 #. type: textblock
33065 #: ../src/guestfs-actions.pod:7174
33066 msgid "See also: C<guestfs_command_lines>"
33067 msgstr ""
33068
33069 #. type: =head2
33070 #: ../src/guestfs-actions.pod:7182
33071 msgid "guestfs_sleep"
33072 msgstr ""
33073
33074 #. type: verbatim
33075 #: ../src/guestfs-actions.pod:7184
33076 #, no-wrap
33077 msgid ""
33078 " int\n"
33079 " guestfs_sleep (guestfs_h *g,\n"
33080 "                int secs);\n"
33081 "\n"
33082 msgstr ""
33083
33084 #. type: textblock
33085 #: ../src/guestfs-actions.pod:7192
33086 msgid "(Added in 1.0.41)"
33087 msgstr ""
33088
33089 #. type: =head2
33090 #: ../src/guestfs-actions.pod:7194 ../src/guestfs-structs.pod:109
33091 msgid "guestfs_stat"
33092 msgstr ""
33093
33094 #. type: verbatim
33095 #: ../src/guestfs-actions.pod:7196
33096 #, no-wrap
33097 msgid ""
33098 " struct guestfs_stat *\n"
33099 " guestfs_stat (guestfs_h *g,\n"
33100 "               const char *path);\n"
33101 "\n"
33102 msgstr ""
33103
33104 #. type: =head2
33105 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-structs.pod:135
33106 msgid "guestfs_statvfs"
33107 msgstr ""
33108
33109 #. type: verbatim
33110 #: ../src/guestfs-actions.pod:7212
33111 #, no-wrap
33112 msgid ""
33113 " struct guestfs_statvfs *\n"
33114 " guestfs_statvfs (guestfs_h *g,\n"
33115 "                  const char *path);\n"
33116 "\n"
33117 msgstr ""
33118
33119 #. type: textblock
33120 #: ../src/guestfs-actions.pod:7222
33121 msgid ""
33122 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33123 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
33124 msgstr ""
33125
33126 #. type: =head2
33127 #: ../src/guestfs-actions.pod:7228
33128 msgid "guestfs_strings"
33129 msgstr ""
33130
33131 #. type: verbatim
33132 #: ../src/guestfs-actions.pod:7230
33133 #, no-wrap
33134 msgid ""
33135 " char **\n"
33136 " guestfs_strings (guestfs_h *g,\n"
33137 "                  const char *path);\n"
33138 "\n"
33139 msgstr ""
33140
33141 #. type: =head2
33142 #: ../src/guestfs-actions.pod:7246
33143 msgid "guestfs_strings_e"
33144 msgstr ""
33145
33146 #. type: verbatim
33147 #: ../src/guestfs-actions.pod:7248
33148 #, no-wrap
33149 msgid ""
33150 " char **\n"
33151 " guestfs_strings_e (guestfs_h *g,\n"
33152 "                    const char *encoding,\n"
33153 "                    const char *path);\n"
33154 "\n"
33155 msgstr ""
33156
33157 #. type: textblock
33158 #: ../src/guestfs-actions.pod:7253
33159 msgid ""
33160 "This is like the C<guestfs_strings> command, but allows you to specify the "
33161 "encoding of strings that are looked for in the source file C<path>."
33162 msgstr ""
33163
33164 #. type: textblock
33165 #: ../src/guestfs-actions.pod:7263
33166 msgid ""
33167 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33168 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33169 msgstr ""
33170
33171 #. type: =head2
33172 #: ../src/guestfs-actions.pod:7301
33173 msgid "guestfs_swapoff_device"
33174 msgstr ""
33175
33176 #. type: verbatim
33177 #: ../src/guestfs-actions.pod:7303
33178 #, no-wrap
33179 msgid ""
33180 " int\n"
33181 " guestfs_swapoff_device (guestfs_h *g,\n"
33182 "                         const char *device);\n"
33183 "\n"
33184 msgstr ""
33185
33186 #. type: textblock
33187 #: ../src/guestfs-actions.pod:7307
33188 msgid ""
33189 "This command disables the libguestfs appliance swap device or partition "
33190 "named C<device>.  See C<guestfs_swapon_device>."
33191 msgstr ""
33192
33193 #. type: =head2
33194 #: ../src/guestfs-actions.pod:7315
33195 msgid "guestfs_swapoff_file"
33196 msgstr ""
33197
33198 #. type: verbatim
33199 #: ../src/guestfs-actions.pod:7317
33200 #, no-wrap
33201 msgid ""
33202 " int\n"
33203 " guestfs_swapoff_file (guestfs_h *g,\n"
33204 "                       const char *file);\n"
33205 "\n"
33206 msgstr ""
33207
33208 #. type: =head2
33209 #: ../src/guestfs-actions.pod:7327
33210 msgid "guestfs_swapoff_label"
33211 msgstr ""
33212
33213 #. type: verbatim
33214 #: ../src/guestfs-actions.pod:7329
33215 #, no-wrap
33216 msgid ""
33217 " int\n"
33218 " guestfs_swapoff_label (guestfs_h *g,\n"
33219 "                        const char *label);\n"
33220 "\n"
33221 msgstr ""
33222
33223 #. type: =head2
33224 #: ../src/guestfs-actions.pod:7340
33225 msgid "guestfs_swapoff_uuid"
33226 msgstr ""
33227
33228 #. type: verbatim
33229 #: ../src/guestfs-actions.pod:7342
33230 #, no-wrap
33231 msgid ""
33232 " int\n"
33233 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33234 "                       const char *uuid);\n"
33235 "\n"
33236 msgstr ""
33237
33238 #. type: =head2
33239 #: ../src/guestfs-actions.pod:7353
33240 msgid "guestfs_swapon_device"
33241 msgstr ""
33242
33243 #. type: verbatim
33244 #: ../src/guestfs-actions.pod:7355
33245 #, no-wrap
33246 msgid ""
33247 " int\n"
33248 " guestfs_swapon_device (guestfs_h *g,\n"
33249 "                        const char *device);\n"
33250 "\n"
33251 msgstr ""
33252
33253 #. type: textblock
33254 #: ../src/guestfs-actions.pod:7359
33255 msgid ""
33256 "This command enables the libguestfs appliance to use the swap device or "
33257 "partition named C<device>.  The increased memory is made available for all "
33258 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33259 msgstr ""
33260
33261 #. type: =head2
33262 #: ../src/guestfs-actions.pod:7375
33263 msgid "guestfs_swapon_file"
33264 msgstr ""
33265
33266 #. type: verbatim
33267 #: ../src/guestfs-actions.pod:7377
33268 #, no-wrap
33269 msgid ""
33270 " int\n"
33271 " guestfs_swapon_file (guestfs_h *g,\n"
33272 "                      const char *file);\n"
33273 "\n"
33274 msgstr ""
33275
33276 #. type: textblock
33277 #: ../src/guestfs-actions.pod:7381
33278 msgid ""
33279 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
33280 "notes."
33281 msgstr ""
33282
33283 #. type: =head2
33284 #: ../src/guestfs-actions.pod:7388
33285 msgid "guestfs_swapon_label"
33286 msgstr ""
33287
33288 #. type: verbatim
33289 #: ../src/guestfs-actions.pod:7390
33290 #, no-wrap
33291 msgid ""
33292 " int\n"
33293 " guestfs_swapon_label (guestfs_h *g,\n"
33294 "                       const char *label);\n"
33295 "\n"
33296 msgstr ""
33297
33298 #. type: textblock
33299 #: ../src/guestfs-actions.pod:7394
33300 msgid ""
33301 "This command enables swap to a labeled swap partition.  See "
33302 "C<guestfs_swapon_device> for other notes."
33303 msgstr ""
33304
33305 #. type: =head2
33306 #: ../src/guestfs-actions.pod:7401
33307 msgid "guestfs_swapon_uuid"
33308 msgstr ""
33309
33310 #. type: verbatim
33311 #: ../src/guestfs-actions.pod:7403
33312 #, no-wrap
33313 msgid ""
33314 " int\n"
33315 " guestfs_swapon_uuid (guestfs_h *g,\n"
33316 "                      const char *uuid);\n"
33317 "\n"
33318 msgstr ""
33319
33320 #. type: textblock
33321 #: ../src/guestfs-actions.pod:7407
33322 msgid ""
33323 "This command enables swap to a swap partition with the given UUID.  See "
33324 "C<guestfs_swapon_device> for other notes."
33325 msgstr ""
33326
33327 #. type: =head2
33328 #: ../src/guestfs-actions.pod:7414
33329 msgid "guestfs_sync"
33330 msgstr ""
33331
33332 #. type: verbatim
33333 #: ../src/guestfs-actions.pod:7416
33334 #, no-wrap
33335 msgid ""
33336 " int\n"
33337 " guestfs_sync (guestfs_h *g);\n"
33338 "\n"
33339 msgstr ""
33340
33341 #. type: =head2
33342 #: ../src/guestfs-actions.pod:7429
33343 msgid "guestfs_tail"
33344 msgstr ""
33345
33346 #. type: verbatim
33347 #: ../src/guestfs-actions.pod:7431
33348 #, no-wrap
33349 msgid ""
33350 " char **\n"
33351 " guestfs_tail (guestfs_h *g,\n"
33352 "               const char *path);\n"
33353 "\n"
33354 msgstr ""
33355
33356 #. type: =head2
33357 #: ../src/guestfs-actions.pod:7447
33358 msgid "guestfs_tail_n"
33359 msgstr ""
33360
33361 #. type: verbatim
33362 #: ../src/guestfs-actions.pod:7449
33363 #, no-wrap
33364 msgid ""
33365 " char **\n"
33366 " guestfs_tail_n (guestfs_h *g,\n"
33367 "                 int nrlines,\n"
33368 "                 const char *path);\n"
33369 "\n"
33370 msgstr ""
33371
33372 #. type: =head2
33373 #: ../src/guestfs-actions.pod:7471
33374 msgid "guestfs_tar_in"
33375 msgstr ""
33376
33377 #. type: verbatim
33378 #: ../src/guestfs-actions.pod:7473
33379 #, no-wrap
33380 msgid ""
33381 " int\n"
33382 " guestfs_tar_in (guestfs_h *g,\n"
33383 "                 const char *tarfile,\n"
33384 "                 const char *directory);\n"
33385 "\n"
33386 msgstr ""
33387
33388 #. type: textblock
33389 #: ../src/guestfs-actions.pod:7481
33390 msgid ""
33391 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33392 msgstr ""
33393
33394 #. type: textblock
33395 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7503
33396 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7535
33397 msgid "(Added in 1.0.3)"
33398 msgstr ""
33399
33400 #. type: =head2
33401 #: ../src/guestfs-actions.pod:7488
33402 msgid "guestfs_tar_out"
33403 msgstr ""
33404
33405 #. type: verbatim
33406 #: ../src/guestfs-actions.pod:7490
33407 #, no-wrap
33408 msgid ""
33409 " int\n"
33410 " guestfs_tar_out (guestfs_h *g,\n"
33411 "                  const char *directory,\n"
33412 "                  const char *tarfile);\n"
33413 "\n"
33414 msgstr ""
33415
33416 #. type: textblock
33417 #: ../src/guestfs-actions.pod:7498
33418 msgid ""
33419 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33420 "C<guestfs_txz_out>."
33421 msgstr ""
33422
33423 #. type: =head2
33424 #: ../src/guestfs-actions.pod:7505
33425 msgid "guestfs_tgz_in"
33426 msgstr ""
33427
33428 #. type: verbatim
33429 #: ../src/guestfs-actions.pod:7507
33430 #, no-wrap
33431 msgid ""
33432 " int\n"
33433 " guestfs_tgz_in (guestfs_h *g,\n"
33434 "                 const char *tarball,\n"
33435 "                 const char *directory);\n"
33436 "\n"
33437 msgstr ""
33438
33439 #. type: textblock
33440 #: ../src/guestfs-actions.pod:7515
33441 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33442 msgstr ""
33443
33444 #. type: =head2
33445 #: ../src/guestfs-actions.pod:7521
33446 msgid "guestfs_tgz_out"
33447 msgstr ""
33448
33449 #. type: verbatim
33450 #: ../src/guestfs-actions.pod:7523
33451 #, no-wrap
33452 msgid ""
33453 " int\n"
33454 " guestfs_tgz_out (guestfs_h *g,\n"
33455 "                  const char *directory,\n"
33456 "                  const char *tarball);\n"
33457 "\n"
33458 msgstr ""
33459
33460 #. type: textblock
33461 #: ../src/guestfs-actions.pod:7531
33462 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33463 msgstr ""
33464
33465 #. type: =head2
33466 #: ../src/guestfs-actions.pod:7537
33467 msgid "guestfs_touch"
33468 msgstr ""
33469
33470 #. type: verbatim
33471 #: ../src/guestfs-actions.pod:7539
33472 #, no-wrap
33473 msgid ""
33474 " int\n"
33475 " guestfs_touch (guestfs_h *g,\n"
33476 "                const char *path);\n"
33477 "\n"
33478 msgstr ""
33479
33480 #. type: =head2
33481 #: ../src/guestfs-actions.pod:7554
33482 msgid "guestfs_truncate"
33483 msgstr ""
33484
33485 #. type: verbatim
33486 #: ../src/guestfs-actions.pod:7556
33487 #, no-wrap
33488 msgid ""
33489 " int\n"
33490 " guestfs_truncate (guestfs_h *g,\n"
33491 "                   const char *path);\n"
33492 "\n"
33493 msgstr ""
33494
33495 #. type: =head2
33496 #: ../src/guestfs-actions.pod:7567
33497 msgid "guestfs_truncate_size"
33498 msgstr ""
33499
33500 #. type: verbatim
33501 #: ../src/guestfs-actions.pod:7569
33502 #, no-wrap
33503 msgid ""
33504 " int\n"
33505 " guestfs_truncate_size (guestfs_h *g,\n"
33506 "                        const char *path,\n"
33507 "                        int64_t size);\n"
33508 "\n"
33509 msgstr ""
33510
33511 #. type: textblock
33512 #: ../src/guestfs-actions.pod:7577
33513 msgid ""
33514 "If the current file size is less than C<size> then the file is extended to "
33515 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33516 "blocks are not allocated for the file until you write to it).  To create a "
33517 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33518 msgstr ""
33519
33520 #. type: =head2
33521 #: ../src/guestfs-actions.pod:7587
33522 msgid "guestfs_tune2fs_l"
33523 msgstr ""
33524
33525 #. type: verbatim
33526 #: ../src/guestfs-actions.pod:7589
33527 #, no-wrap
33528 msgid ""
33529 " char **\n"
33530 " guestfs_tune2fs_l (guestfs_h *g,\n"
33531 "                    const char *device);\n"
33532 "\n"
33533 msgstr ""
33534
33535 #. type: =head2
33536 #: ../src/guestfs-actions.pod:7609
33537 msgid "guestfs_txz_in"
33538 msgstr ""
33539
33540 #. type: verbatim
33541 #: ../src/guestfs-actions.pod:7611
33542 #, no-wrap
33543 msgid ""
33544 " int\n"
33545 " guestfs_txz_in (guestfs_h *g,\n"
33546 "                 const char *tarball,\n"
33547 "                 const char *directory);\n"
33548 "\n"
33549 msgstr ""
33550
33551 #. type: =head2
33552 #: ../src/guestfs-actions.pod:7623
33553 msgid "guestfs_txz_out"
33554 msgstr ""
33555
33556 #. type: verbatim
33557 #: ../src/guestfs-actions.pod:7625
33558 #, no-wrap
33559 msgid ""
33560 " int\n"
33561 " guestfs_txz_out (guestfs_h *g,\n"
33562 "                  const char *directory,\n"
33563 "                  const char *tarball);\n"
33564 "\n"
33565 msgstr ""
33566
33567 #. type: =head2
33568 #: ../src/guestfs-actions.pod:7637
33569 msgid "guestfs_umask"
33570 msgstr ""
33571
33572 #. type: verbatim
33573 #: ../src/guestfs-actions.pod:7639
33574 #, no-wrap
33575 msgid ""
33576 " int\n"
33577 " guestfs_umask (guestfs_h *g,\n"
33578 "                int mask);\n"
33579 "\n"
33580 msgstr ""
33581
33582 #. type: textblock
33583 #: ../src/guestfs-actions.pod:7655
33584 msgid ""
33585 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33586 "C<guestfs_mkdir>."
33587 msgstr ""
33588
33589 #. type: =head2
33590 #: ../src/guestfs-actions.pod:7664
33591 msgid "guestfs_umount"
33592 msgstr ""
33593
33594 #. type: verbatim
33595 #: ../src/guestfs-actions.pod:7666
33596 #, no-wrap
33597 msgid ""
33598 " int\n"
33599 " guestfs_umount (guestfs_h *g,\n"
33600 "                 const char *pathordevice);\n"
33601 "\n"
33602 msgstr ""
33603
33604 #. type: =head2
33605 #: ../src/guestfs-actions.pod:7678
33606 msgid "guestfs_umount_all"
33607 msgstr ""
33608
33609 #. type: verbatim
33610 #: ../src/guestfs-actions.pod:7680
33611 #, no-wrap
33612 msgid ""
33613 " int\n"
33614 " guestfs_umount_all (guestfs_h *g);\n"
33615 "\n"
33616 msgstr ""
33617
33618 #. type: =head2
33619 #: ../src/guestfs-actions.pod:7691
33620 msgid "guestfs_upload"
33621 msgstr ""
33622
33623 #. type: verbatim
33624 #: ../src/guestfs-actions.pod:7693
33625 #, no-wrap
33626 msgid ""
33627 " int\n"
33628 " guestfs_upload (guestfs_h *g,\n"
33629 "                 const char *filename,\n"
33630 "                 const char *remotefilename);\n"
33631 "\n"
33632 msgstr ""
33633
33634 #. type: textblock
33635 #: ../src/guestfs-actions.pod:7703
33636 msgid "See also C<guestfs_download>."
33637 msgstr ""
33638
33639 #. type: =head2
33640 #: ../src/guestfs-actions.pod:7714
33641 msgid "guestfs_upload_offset"
33642 msgstr ""
33643
33644 #. type: verbatim
33645 #: ../src/guestfs-actions.pod:7716
33646 #, no-wrap
33647 msgid ""
33648 " int\n"
33649 " guestfs_upload_offset (guestfs_h *g,\n"
33650 "                        const char *filename,\n"
33651 "                        const char *remotefilename,\n"
33652 "                        int64_t offset);\n"
33653 "\n"
33654 msgstr ""
33655
33656 #. type: textblock
33657 #: ../src/guestfs-actions.pod:7732
33658 msgid ""
33659 "Note that there is no limit on the amount of data that can be uploaded with "
33660 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33661 "full amount unless an error occurs."
33662 msgstr ""
33663
33664 #. type: textblock
33665 #: ../src/guestfs-actions.pod:7737
33666 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33667 msgstr ""
33668
33669 #. type: =head2
33670 #: ../src/guestfs-actions.pod:7748
33671 msgid "guestfs_utimens"
33672 msgstr ""
33673
33674 #. type: verbatim
33675 #: ../src/guestfs-actions.pod:7750
33676 #, no-wrap
33677 msgid ""
33678 " int\n"
33679 " guestfs_utimens (guestfs_h *g,\n"
33680 "                  const char *path,\n"
33681 "                  int64_t atsecs,\n"
33682 "                  int64_t atnsecs,\n"
33683 "                  int64_t mtsecs,\n"
33684 "                  int64_t mtnsecs);\n"
33685 "\n"
33686 msgstr ""
33687
33688 #. type: =head2
33689 #: ../src/guestfs-actions.pod:7779 ../src/guestfs-structs.pod:175
33690 msgid "guestfs_version"
33691 msgstr ""
33692
33693 #. type: verbatim
33694 #: ../src/guestfs-actions.pod:7781
33695 #, no-wrap
33696 msgid ""
33697 " struct guestfs_version *\n"
33698 " guestfs_version (guestfs_h *g);\n"
33699 "\n"
33700 msgstr ""
33701
33702 #. type: textblock
33703 #: ../src/guestfs-actions.pod:7809
33704 msgid ""
33705 "I<Note:> Don't use this call to test for availability of features.  In "
33706 "enterprise distributions we backport features from later versions into "
33707 "earlier versions, making this an unreliable way to test for features.  Use "
33708 "C<guestfs_available> instead."
33709 msgstr ""
33710
33711 #. type: textblock
33712 #: ../src/guestfs-actions.pod:7815
33713 msgid ""
33714 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33715 "error.  I<The caller must call C<guestfs_free_version> after use>."
33716 msgstr ""
33717
33718 #. type: textblock
33719 #: ../src/guestfs-actions.pod:7819
33720 msgid "(Added in 1.0.58)"
33721 msgstr ""
33722
33723 #. type: =head2
33724 #: ../src/guestfs-actions.pod:7821
33725 msgid "guestfs_vfs_label"
33726 msgstr ""
33727
33728 #. type: verbatim
33729 #: ../src/guestfs-actions.pod:7823
33730 #, no-wrap
33731 msgid ""
33732 " char *\n"
33733 " guestfs_vfs_label (guestfs_h *g,\n"
33734 "                    const char *device);\n"
33735 "\n"
33736 msgstr ""
33737
33738 #. type: textblock
33739 #: ../src/guestfs-actions.pod:7832
33740 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33741 msgstr ""
33742
33743 #. type: textblock
33744 #: ../src/guestfs-actions.pod:7837 ../src/guestfs-actions.pod:7874
33745 msgid "(Added in 1.3.18)"
33746 msgstr ""
33747
33748 #. type: =head2
33749 #: ../src/guestfs-actions.pod:7839
33750 msgid "guestfs_vfs_type"
33751 msgstr ""
33752
33753 #. type: verbatim
33754 #: ../src/guestfs-actions.pod:7841
33755 #, no-wrap
33756 msgid ""
33757 " char *\n"
33758 " guestfs_vfs_type (guestfs_h *g,\n"
33759 "                   const char *device);\n"
33760 "\n"
33761 msgstr ""
33762
33763 #. type: =head2
33764 #: ../src/guestfs-actions.pod:7858
33765 msgid "guestfs_vfs_uuid"
33766 msgstr ""
33767
33768 #. type: verbatim
33769 #: ../src/guestfs-actions.pod:7860
33770 #, no-wrap
33771 msgid ""
33772 " char *\n"
33773 " guestfs_vfs_uuid (guestfs_h *g,\n"
33774 "                   const char *device);\n"
33775 "\n"
33776 msgstr ""
33777
33778 #. type: textblock
33779 #: ../src/guestfs-actions.pod:7869
33780 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33781 msgstr ""
33782
33783 #. type: =head2
33784 #: ../src/guestfs-actions.pod:7876
33785 msgid "guestfs_vg_activate"
33786 msgstr ""
33787
33788 #. type: verbatim
33789 #: ../src/guestfs-actions.pod:7878
33790 #, no-wrap
33791 msgid ""
33792 " int\n"
33793 " guestfs_vg_activate (guestfs_h *g,\n"
33794 "                      int activate,\n"
33795 "                      char *const *volgroups);\n"
33796 "\n"
33797 msgstr ""
33798
33799 #. type: =head2
33800 #: ../src/guestfs-actions.pod:7895
33801 msgid "guestfs_vg_activate_all"
33802 msgstr ""
33803
33804 #. type: verbatim
33805 #: ../src/guestfs-actions.pod:7897
33806 #, no-wrap
33807 msgid ""
33808 " int\n"
33809 " guestfs_vg_activate_all (guestfs_h *g,\n"
33810 "                          int activate);\n"
33811 "\n"
33812 msgstr ""
33813
33814 #. type: =head2
33815 #: ../src/guestfs-actions.pod:7910
33816 msgid "guestfs_vgcreate"
33817 msgstr ""
33818
33819 #. type: verbatim
33820 #: ../src/guestfs-actions.pod:7912
33821 #, no-wrap
33822 msgid ""
33823 " int\n"
33824 " guestfs_vgcreate (guestfs_h *g,\n"
33825 "                   const char *volgroup,\n"
33826 "                   char *const *physvols);\n"
33827 "\n"
33828 msgstr ""
33829
33830 #. type: =head2
33831 #: ../src/guestfs-actions.pod:7924
33832 msgid "guestfs_vglvuuids"
33833 msgstr ""
33834
33835 #. type: verbatim
33836 #: ../src/guestfs-actions.pod:7926
33837 #, no-wrap
33838 msgid ""
33839 " char **\n"
33840 " guestfs_vglvuuids (guestfs_h *g,\n"
33841 "                    const char *vgname);\n"
33842 "\n"
33843 msgstr ""
33844
33845 #. type: textblock
33846 #: ../src/guestfs-actions.pod:7933
33847 msgid ""
33848 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33849 "associate logical volumes and volume groups."
33850 msgstr ""
33851
33852 #. type: textblock
33853 #: ../src/guestfs-actions.pod:7936
33854 msgid "See also C<guestfs_vgpvuuids>."
33855 msgstr ""
33856
33857 #. type: =head2
33858 #: ../src/guestfs-actions.pod:7944
33859 msgid "guestfs_vgpvuuids"
33860 msgstr ""
33861
33862 #. type: verbatim
33863 #: ../src/guestfs-actions.pod:7946
33864 #, no-wrap
33865 msgid ""
33866 " char **\n"
33867 " guestfs_vgpvuuids (guestfs_h *g,\n"
33868 "                    const char *vgname);\n"
33869 "\n"
33870 msgstr ""
33871
33872 #. type: textblock
33873 #: ../src/guestfs-actions.pod:7953
33874 msgid ""
33875 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33876 "associate physical volumes and volume groups."
33877 msgstr ""
33878
33879 #. type: textblock
33880 #: ../src/guestfs-actions.pod:7956
33881 msgid "See also C<guestfs_vglvuuids>."
33882 msgstr ""
33883
33884 #. type: =head2
33885 #: ../src/guestfs-actions.pod:7964
33886 msgid "guestfs_vgremove"
33887 msgstr ""
33888
33889 #. type: verbatim
33890 #: ../src/guestfs-actions.pod:7966
33891 #, no-wrap
33892 msgid ""
33893 " int\n"
33894 " guestfs_vgremove (guestfs_h *g,\n"
33895 "                   const char *vgname);\n"
33896 "\n"
33897 msgstr ""
33898
33899 #. type: =head2
33900 #: ../src/guestfs-actions.pod:7979
33901 msgid "guestfs_vgrename"
33902 msgstr ""
33903
33904 #. type: verbatim
33905 #: ../src/guestfs-actions.pod:7981
33906 #, no-wrap
33907 msgid ""
33908 " int\n"
33909 " guestfs_vgrename (guestfs_h *g,\n"
33910 "                   const char *volgroup,\n"
33911 "                   const char *newvolgroup);\n"
33912 "\n"
33913 msgstr ""
33914
33915 #. type: =head2
33916 #: ../src/guestfs-actions.pod:7992
33917 msgid "guestfs_vgs"
33918 msgstr ""
33919
33920 #. type: verbatim
33921 #: ../src/guestfs-actions.pod:7994
33922 #, no-wrap
33923 msgid ""
33924 " char **\n"
33925 " guestfs_vgs (guestfs_h *g);\n"
33926 "\n"
33927 msgstr ""
33928
33929 #. type: textblock
33930 #: ../src/guestfs-actions.pod:8003
33931 msgid "See also C<guestfs_vgs_full>."
33932 msgstr ""
33933
33934 #. type: =head2
33935 #: ../src/guestfs-actions.pod:8011
33936 msgid "guestfs_vgs_full"
33937 msgstr ""
33938
33939 #. type: verbatim
33940 #: ../src/guestfs-actions.pod:8013
33941 #, no-wrap
33942 msgid ""
33943 " struct guestfs_lvm_vg_list *\n"
33944 " guestfs_vgs_full (guestfs_h *g);\n"
33945 "\n"
33946 msgstr ""
33947
33948 #. type: textblock
33949 #: ../src/guestfs-actions.pod:8019
33950 msgid ""
33951 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33952 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33953 msgstr ""
33954
33955 #. type: =head2
33956 #: ../src/guestfs-actions.pod:8025
33957 msgid "guestfs_vgscan"
33958 msgstr ""
33959
33960 #. type: verbatim
33961 #: ../src/guestfs-actions.pod:8027
33962 #, no-wrap
33963 msgid ""
33964 " int\n"
33965 " guestfs_vgscan (guestfs_h *g);\n"
33966 "\n"
33967 msgstr ""
33968
33969 #. type: =head2
33970 #: ../src/guestfs-actions.pod:8037
33971 msgid "guestfs_vguuid"
33972 msgstr ""
33973
33974 #. type: verbatim
33975 #: ../src/guestfs-actions.pod:8039
33976 #, no-wrap
33977 msgid ""
33978 " char *\n"
33979 " guestfs_vguuid (guestfs_h *g,\n"
33980 "                 const char *vgname);\n"
33981 "\n"
33982 msgstr ""
33983
33984 #. type: =head2
33985 #: ../src/guestfs-actions.pod:8050
33986 msgid "guestfs_wait_ready"
33987 msgstr ""
33988
33989 #. type: verbatim
33990 #: ../src/guestfs-actions.pod:8052
33991 #, no-wrap
33992 msgid ""
33993 " int\n"
33994 " guestfs_wait_ready (guestfs_h *g);\n"
33995 "\n"
33996 msgstr ""
33997
33998 #. type: textblock
33999 #: ../src/guestfs-actions.pod:8055
34000 msgid ""
34001 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34002 "instead."
34003 msgstr ""
34004
34005 #. type: textblock
34006 #: ../src/guestfs-actions.pod:8062
34007 msgid "This function is a no op."
34008 msgstr ""
34009
34010 #. type: textblock
34011 #: ../src/guestfs-actions.pod:8064
34012 msgid ""
34013 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34014 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
34015 "is no longer necessary because C<guestfs_launch> now does the waiting."
34016 msgstr ""
34017
34018 #. type: textblock
34019 #: ../src/guestfs-actions.pod:8069
34020 msgid ""
34021 "If you see any calls to this function in code then you can just remove them, "
34022 "unless you want to retain compatibility with older versions of the API."
34023 msgstr ""
34024
34025 #. type: =head2
34026 #: ../src/guestfs-actions.pod:8077
34027 msgid "guestfs_wc_c"
34028 msgstr ""
34029
34030 #. type: verbatim
34031 #: ../src/guestfs-actions.pod:8079
34032 #, no-wrap
34033 msgid ""
34034 " int\n"
34035 " guestfs_wc_c (guestfs_h *g,\n"
34036 "               const char *path);\n"
34037 "\n"
34038 msgstr ""
34039
34040 #. type: =head2
34041 #: ../src/guestfs-actions.pod:8090
34042 msgid "guestfs_wc_l"
34043 msgstr ""
34044
34045 #. type: verbatim
34046 #: ../src/guestfs-actions.pod:8092
34047 #, no-wrap
34048 msgid ""
34049 " int\n"
34050 " guestfs_wc_l (guestfs_h *g,\n"
34051 "               const char *path);\n"
34052 "\n"
34053 msgstr ""
34054
34055 #. type: =head2
34056 #: ../src/guestfs-actions.pod:8103
34057 msgid "guestfs_wc_w"
34058 msgstr ""
34059
34060 #. type: verbatim
34061 #: ../src/guestfs-actions.pod:8105
34062 #, no-wrap
34063 msgid ""
34064 " int\n"
34065 " guestfs_wc_w (guestfs_h *g,\n"
34066 "               const char *path);\n"
34067 "\n"
34068 msgstr ""
34069
34070 #. type: =head2
34071 #: ../src/guestfs-actions.pod:8116
34072 msgid "guestfs_write"
34073 msgstr ""
34074
34075 #. type: verbatim
34076 #: ../src/guestfs-actions.pod:8118
34077 #, no-wrap
34078 msgid ""
34079 " int\n"
34080 " guestfs_write (guestfs_h *g,\n"
34081 "                const char *path,\n"
34082 "                const char *content,\n"
34083 "                size_t content_size);\n"
34084 "\n"
34085 msgstr ""
34086
34087 #. type: textblock
34088 #: ../src/guestfs-actions.pod:8127
34089 msgid "See also C<guestfs_write_append>."
34090 msgstr ""
34091
34092 #. type: =head2
34093 #: ../src/guestfs-actions.pod:8136
34094 msgid "guestfs_write_append"
34095 msgstr ""
34096
34097 #. type: verbatim
34098 #: ../src/guestfs-actions.pod:8138
34099 #, no-wrap
34100 msgid ""
34101 " int\n"
34102 " guestfs_write_append (guestfs_h *g,\n"
34103 "                       const char *path,\n"
34104 "                       const char *content,\n"
34105 "                       size_t content_size);\n"
34106 "\n"
34107 msgstr ""
34108
34109 #. type: textblock
34110 #: ../src/guestfs-actions.pod:8147
34111 msgid "See also C<guestfs_write>."
34112 msgstr ""
34113
34114 #. type: =head2
34115 #: ../src/guestfs-actions.pod:8156
34116 msgid "guestfs_write_file"
34117 msgstr ""
34118
34119 #. type: verbatim
34120 #: ../src/guestfs-actions.pod:8158
34121 #, no-wrap
34122 msgid ""
34123 " int\n"
34124 " guestfs_write_file (guestfs_h *g,\n"
34125 "                     const char *path,\n"
34126 "                     const char *content,\n"
34127 "                     int size);\n"
34128 "\n"
34129 msgstr ""
34130
34131 #. type: textblock
34132 #: ../src/guestfs-actions.pod:8164
34133 msgid ""
34134 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34135 "instead."
34136 msgstr ""
34137
34138 #. type: =head2
34139 #: ../src/guestfs-actions.pod:8189
34140 msgid "guestfs_zegrep"
34141 msgstr ""
34142
34143 #. type: verbatim
34144 #: ../src/guestfs-actions.pod:8191
34145 #, no-wrap
34146 msgid ""
34147 " char **\n"
34148 " guestfs_zegrep (guestfs_h *g,\n"
34149 "                 const char *regex,\n"
34150 "                 const char *path);\n"
34151 "\n"
34152 msgstr ""
34153
34154 #. type: =head2
34155 #: ../src/guestfs-actions.pod:8208
34156 msgid "guestfs_zegrepi"
34157 msgstr ""
34158
34159 #. type: verbatim
34160 #: ../src/guestfs-actions.pod:8210
34161 #, no-wrap
34162 msgid ""
34163 " char **\n"
34164 " guestfs_zegrepi (guestfs_h *g,\n"
34165 "                  const char *regex,\n"
34166 "                  const char *path);\n"
34167 "\n"
34168 msgstr ""
34169
34170 #. type: =head2
34171 #: ../src/guestfs-actions.pod:8227
34172 msgid "guestfs_zero"
34173 msgstr ""
34174
34175 #. type: verbatim
34176 #: ../src/guestfs-actions.pod:8229
34177 #, no-wrap
34178 msgid ""
34179 " int\n"
34180 " guestfs_zero (guestfs_h *g,\n"
34181 "               const char *device);\n"
34182 "\n"
34183 msgstr ""
34184
34185 #. type: textblock
34186 #: ../src/guestfs-actions.pod:8243
34187 msgid ""
34188 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34189 "C<guestfs_is_zero_device>"
34190 msgstr ""
34191
34192 #. type: =head2
34193 #: ../src/guestfs-actions.pod:8255
34194 msgid "guestfs_zero_device"
34195 msgstr ""
34196
34197 #. type: verbatim
34198 #: ../src/guestfs-actions.pod:8257
34199 #, no-wrap
34200 msgid ""
34201 " int\n"
34202 " guestfs_zero_device (guestfs_h *g,\n"
34203 "                      const char *device);\n"
34204 "\n"
34205 msgstr ""
34206
34207 #. type: textblock
34208 #: ../src/guestfs-actions.pod:8261
34209 msgid ""
34210 "This command writes zeroes over the entire C<device>.  Compare with "
34211 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34212 msgstr ""
34213
34214 #. type: textblock
34215 #: ../src/guestfs-actions.pod:8276
34216 msgid "(Added in 1.3.1)"
34217 msgstr ""
34218
34219 #. type: =head2
34220 #: ../src/guestfs-actions.pod:8278
34221 msgid "guestfs_zerofree"
34222 msgstr ""
34223
34224 #. type: verbatim
34225 #: ../src/guestfs-actions.pod:8280
34226 #, no-wrap
34227 msgid ""
34228 " int\n"
34229 " guestfs_zerofree (guestfs_h *g,\n"
34230 "                   const char *device);\n"
34231 "\n"
34232 msgstr ""
34233
34234 #. type: =head2
34235 #: ../src/guestfs-actions.pod:8299
34236 msgid "guestfs_zfgrep"
34237 msgstr ""
34238
34239 #. type: verbatim
34240 #: ../src/guestfs-actions.pod:8301
34241 #, no-wrap
34242 msgid ""
34243 " char **\n"
34244 " guestfs_zfgrep (guestfs_h *g,\n"
34245 "                 const char *pattern,\n"
34246 "                 const char *path);\n"
34247 "\n"
34248 msgstr ""
34249
34250 #. type: =head2
34251 #: ../src/guestfs-actions.pod:8318
34252 msgid "guestfs_zfgrepi"
34253 msgstr ""
34254
34255 #. type: verbatim
34256 #: ../src/guestfs-actions.pod:8320
34257 #, no-wrap
34258 msgid ""
34259 " char **\n"
34260 " guestfs_zfgrepi (guestfs_h *g,\n"
34261 "                  const char *pattern,\n"
34262 "                  const char *path);\n"
34263 "\n"
34264 msgstr ""
34265
34266 #. type: =head2
34267 #: ../src/guestfs-actions.pod:8337
34268 msgid "guestfs_zfile"
34269 msgstr ""
34270
34271 #. type: verbatim
34272 #: ../src/guestfs-actions.pod:8339
34273 #, no-wrap
34274 msgid ""
34275 " char *\n"
34276 " guestfs_zfile (guestfs_h *g,\n"
34277 "                const char *meth,\n"
34278 "                const char *path);\n"
34279 "\n"
34280 msgstr ""
34281
34282 #. type: textblock
34283 #: ../src/guestfs-actions.pod:8344
34284 msgid ""
34285 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34286 "instead."
34287 msgstr ""
34288
34289 #. type: textblock
34290 #: ../src/guestfs-actions.pod:8356
34291 msgid ""
34292 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34293 "files."
34294 msgstr ""
34295
34296 #. type: =head2
34297 #: ../src/guestfs-actions.pod:8364
34298 msgid "guestfs_zgrep"
34299 msgstr ""
34300
34301 #. type: verbatim
34302 #: ../src/guestfs-actions.pod:8366
34303 #, no-wrap
34304 msgid ""
34305 " char **\n"
34306 " guestfs_zgrep (guestfs_h *g,\n"
34307 "                const char *regex,\n"
34308 "                const char *path);\n"
34309 "\n"
34310 msgstr ""
34311
34312 #. type: =head2
34313 #: ../src/guestfs-actions.pod:8383
34314 msgid "guestfs_zgrepi"
34315 msgstr ""
34316
34317 #. type: verbatim
34318 #: ../src/guestfs-actions.pod:8385
34319 #, no-wrap
34320 msgid ""
34321 " char **\n"
34322 " guestfs_zgrepi (guestfs_h *g,\n"
34323 "                 const char *regex,\n"
34324 "                 const char *path);\n"
34325 "\n"
34326 msgstr ""
34327
34328 #. type: =item
34329 #: ../src/guestfs-availability.pod:3
34330 msgid "B<augeas>"
34331 msgstr ""
34332
34333 #. type: textblock
34334 #: ../src/guestfs-availability.pod:5
34335 msgid ""
34336 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34337 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34338 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34339 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34340 "L</guestfs_aug_save> L</guestfs_aug_set>"
34341 msgstr ""
34342
34343 #. type: =item
34344 #: ../src/guestfs-availability.pod:21
34345 msgid "B<btrfs>"
34346 msgstr ""
34347
34348 #. type: textblock
34349 #: ../src/guestfs-availability.pod:23
34350 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34351 msgstr ""
34352
34353 #. type: =item
34354 #: ../src/guestfs-availability.pod:26
34355 msgid "B<grub>"
34356 msgstr ""
34357
34358 #. type: textblock
34359 #: ../src/guestfs-availability.pod:28
34360 msgid "The following functions: L</guestfs_grub_install>"
34361 msgstr ""
34362
34363 #. type: =item
34364 #: ../src/guestfs-availability.pod:31
34365 msgid "B<inotify>"
34366 msgstr ""
34367
34368 #. type: textblock
34369 #: ../src/guestfs-availability.pod:33
34370 msgid ""
34371 "The following functions: L</guestfs_inotify_add_watch> L</"
34372 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34373 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34374 msgstr ""
34375
34376 #. type: =item
34377 #: ../src/guestfs-availability.pod:41
34378 msgid "B<linuxfsuuid>"
34379 msgstr ""
34380
34381 #. type: textblock
34382 #: ../src/guestfs-availability.pod:43
34383 msgid ""
34384 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34385 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34386 msgstr ""
34387
34388 #. type: =item
34389 #: ../src/guestfs-availability.pod:50
34390 msgid "B<linuxmodules>"
34391 msgstr ""
34392
34393 #. type: textblock
34394 #: ../src/guestfs-availability.pod:52
34395 msgid "The following functions: L</guestfs_modprobe>"
34396 msgstr ""
34397
34398 #. type: =item
34399 #: ../src/guestfs-availability.pod:55
34400 msgid "B<linuxxattrs>"
34401 msgstr ""
34402
34403 #. type: textblock
34404 #: ../src/guestfs-availability.pod:57
34405 msgid ""
34406 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34407 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34408 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34409 "guestfs_setxattr>"
34410 msgstr ""
34411
34412 #. type: =item
34413 #: ../src/guestfs-availability.pod:68
34414 msgid "B<luks>"
34415 msgstr ""
34416
34417 #. type: textblock
34418 #: ../src/guestfs-availability.pod:70
34419 msgid ""
34420 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34421 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34422 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34423 msgstr ""
34424
34425 #. type: =item
34426 #: ../src/guestfs-availability.pod:79
34427 msgid "B<lvm2>"
34428 msgstr ""
34429
34430 #. type: textblock
34431 #: ../src/guestfs-availability.pod:81
34432 msgid ""
34433 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34434 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34435 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34436 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34437 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34438 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34439 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34440 msgstr ""
34441
34442 #. type: =item
34443 #: ../src/guestfs-availability.pod:104
34444 msgid "B<mknod>"
34445 msgstr ""
34446
34447 #. type: textblock
34448 #: ../src/guestfs-availability.pod:106
34449 msgid ""
34450 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34451 "guestfs_mknod_b> L</guestfs_mknod_c>"
34452 msgstr ""
34453
34454 #. type: =item
34455 #: ../src/guestfs-availability.pod:112
34456 msgid "B<ntfs3g>"
34457 msgstr ""
34458
34459 #. type: textblock
34460 #: ../src/guestfs-availability.pod:114
34461 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34462 msgstr ""
34463
34464 #. type: =item
34465 #: ../src/guestfs-availability.pod:117
34466 msgid "B<ntfsprogs>"
34467 msgstr ""
34468
34469 #. type: textblock
34470 #: ../src/guestfs-availability.pod:119
34471 msgid ""
34472 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34473 "L</guestfs_ntfsresize_size>"
34474 msgstr ""
34475
34476 #. type: =item
34477 #: ../src/guestfs-availability.pod:124
34478 msgid "B<realpath>"
34479 msgstr ""
34480
34481 #. type: textblock
34482 #: ../src/guestfs-availability.pod:126
34483 msgid "The following functions: L</guestfs_realpath>"
34484 msgstr ""
34485
34486 #. type: =item
34487 #: ../src/guestfs-availability.pod:129
34488 msgid "B<scrub>"
34489 msgstr ""
34490
34491 #. type: textblock
34492 #: ../src/guestfs-availability.pod:131
34493 msgid ""
34494 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34495 "guestfs_scrub_freespace>"
34496 msgstr ""
34497
34498 #. type: =item
34499 #: ../src/guestfs-availability.pod:136
34500 msgid "B<selinux>"
34501 msgstr ""
34502
34503 #. type: textblock
34504 #: ../src/guestfs-availability.pod:138
34505 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34506 msgstr ""
34507
34508 #. type: =item
34509 #: ../src/guestfs-availability.pod:142
34510 msgid "B<xz>"
34511 msgstr ""
34512
34513 #. type: textblock
34514 #: ../src/guestfs-availability.pod:144
34515 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34516 msgstr ""
34517
34518 #. type: =item
34519 #: ../src/guestfs-availability.pod:148
34520 msgid "B<zerofree>"
34521 msgstr ""
34522
34523 #. type: textblock
34524 #: ../src/guestfs-availability.pod:150
34525 msgid "The following functions: L</guestfs_zerofree>"
34526 msgstr ""
34527
34528 #. type: =head2
34529 #: ../src/guestfs-structs.pod:1
34530 msgid "guestfs_int_bool"
34531 msgstr ""
34532
34533 #. type: verbatim
34534 #: ../src/guestfs-structs.pod:3
34535 #, no-wrap
34536 msgid ""
34537 " struct guestfs_int_bool {\n"
34538 "   int32_t i;\n"
34539 "   int32_t b;\n"
34540 " };\n"
34541 " \n"
34542 msgstr ""
34543
34544 #. type: verbatim
34545 #: ../src/guestfs-structs.pod:8
34546 #, no-wrap
34547 msgid ""
34548 " struct guestfs_int_bool_list {\n"
34549 "   uint32_t len; /* Number of elements in list. */\n"
34550 "   struct guestfs_int_bool *val; /* Elements. */\n"
34551 " };\n"
34552 " \n"
34553 msgstr ""
34554
34555 #. type: verbatim
34556 #: ../src/guestfs-structs.pod:13
34557 #, no-wrap
34558 msgid ""
34559 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34560 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34561 "\n"
34562 msgstr ""
34563
34564 #. type: =head2
34565 #: ../src/guestfs-structs.pod:16
34566 msgid "guestfs_lvm_pv"
34567 msgstr ""
34568
34569 #. type: verbatim
34570 #: ../src/guestfs-structs.pod:18
34571 #, no-wrap
34572 msgid ""
34573 " struct guestfs_lvm_pv {\n"
34574 "   char *pv_name;\n"
34575 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34576 "   char pv_uuid[32];\n"
34577 "   char *pv_fmt;\n"
34578 "   uint64_t pv_size;\n"
34579 "   uint64_t dev_size;\n"
34580 "   uint64_t pv_free;\n"
34581 "   uint64_t pv_used;\n"
34582 "   char *pv_attr;\n"
34583 "   int64_t pv_pe_count;\n"
34584 "   int64_t pv_pe_alloc_count;\n"
34585 "   char *pv_tags;\n"
34586 "   uint64_t pe_start;\n"
34587 "   int64_t pv_mda_count;\n"
34588 "   uint64_t pv_mda_free;\n"
34589 " };\n"
34590 " \n"
34591 msgstr ""
34592
34593 #. type: verbatim
34594 #: ../src/guestfs-structs.pod:36
34595 #, no-wrap
34596 msgid ""
34597 " struct guestfs_lvm_pv_list {\n"
34598 "   uint32_t len; /* Number of elements in list. */\n"
34599 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34600 " };\n"
34601 " \n"
34602 msgstr ""
34603
34604 #. type: verbatim
34605 #: ../src/guestfs-structs.pod:41
34606 #, no-wrap
34607 msgid ""
34608 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34609 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34610 "\n"
34611 msgstr ""
34612
34613 #. type: =head2
34614 #: ../src/guestfs-structs.pod:44
34615 msgid "guestfs_lvm_vg"
34616 msgstr ""
34617
34618 #. type: verbatim
34619 #: ../src/guestfs-structs.pod:46
34620 #, no-wrap
34621 msgid ""
34622 " struct guestfs_lvm_vg {\n"
34623 "   char *vg_name;\n"
34624 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34625 "   char vg_uuid[32];\n"
34626 "   char *vg_fmt;\n"
34627 "   char *vg_attr;\n"
34628 "   uint64_t vg_size;\n"
34629 "   uint64_t vg_free;\n"
34630 "   char *vg_sysid;\n"
34631 "   uint64_t vg_extent_size;\n"
34632 "   int64_t vg_extent_count;\n"
34633 "   int64_t vg_free_count;\n"
34634 "   int64_t max_lv;\n"
34635 "   int64_t max_pv;\n"
34636 "   int64_t pv_count;\n"
34637 "   int64_t lv_count;\n"
34638 "   int64_t snap_count;\n"
34639 "   int64_t vg_seqno;\n"
34640 "   char *vg_tags;\n"
34641 "   int64_t vg_mda_count;\n"
34642 "   uint64_t vg_mda_free;\n"
34643 " };\n"
34644 " \n"
34645 msgstr ""
34646
34647 #. type: verbatim
34648 #: ../src/guestfs-structs.pod:69
34649 #, no-wrap
34650 msgid ""
34651 " struct guestfs_lvm_vg_list {\n"
34652 "   uint32_t len; /* Number of elements in list. */\n"
34653 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34654 " };\n"
34655 " \n"
34656 msgstr ""
34657
34658 #. type: verbatim
34659 #: ../src/guestfs-structs.pod:74
34660 #, no-wrap
34661 msgid ""
34662 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34663 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34664 "\n"
34665 msgstr ""
34666
34667 #. type: =head2
34668 #: ../src/guestfs-structs.pod:77
34669 msgid "guestfs_lvm_lv"
34670 msgstr ""
34671
34672 #. type: verbatim
34673 #: ../src/guestfs-structs.pod:79
34674 #, no-wrap
34675 msgid ""
34676 " struct guestfs_lvm_lv {\n"
34677 "   char *lv_name;\n"
34678 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34679 "   char lv_uuid[32];\n"
34680 "   char *lv_attr;\n"
34681 "   int64_t lv_major;\n"
34682 "   int64_t lv_minor;\n"
34683 "   int64_t lv_kernel_major;\n"
34684 "   int64_t lv_kernel_minor;\n"
34685 "   uint64_t lv_size;\n"
34686 "   int64_t seg_count;\n"
34687 "   char *origin;\n"
34688 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34689 "   float snap_percent;\n"
34690 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34691 "   float copy_percent;\n"
34692 "   char *move_pv;\n"
34693 "   char *lv_tags;\n"
34694 "   char *mirror_log;\n"
34695 "   char *modules;\n"
34696 " };\n"
34697 " \n"
34698 msgstr ""
34699
34700 #. type: verbatim
34701 #: ../src/guestfs-structs.pod:101
34702 #, no-wrap
34703 msgid ""
34704 " struct guestfs_lvm_lv_list {\n"
34705 "   uint32_t len; /* Number of elements in list. */\n"
34706 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34707 " };\n"
34708 " \n"
34709 msgstr ""
34710
34711 #. type: verbatim
34712 #: ../src/guestfs-structs.pod:106
34713 #, no-wrap
34714 msgid ""
34715 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34716 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34717 "\n"
34718 msgstr ""
34719
34720 #. type: verbatim
34721 #: ../src/guestfs-structs.pod:111
34722 #, no-wrap
34723 msgid ""
34724 " struct guestfs_stat {\n"
34725 "   int64_t dev;\n"
34726 "   int64_t ino;\n"
34727 "   int64_t mode;\n"
34728 "   int64_t nlink;\n"
34729 "   int64_t uid;\n"
34730 "   int64_t gid;\n"
34731 "   int64_t rdev;\n"
34732 "   int64_t size;\n"
34733 "   int64_t blksize;\n"
34734 "   int64_t blocks;\n"
34735 "   int64_t atime;\n"
34736 "   int64_t mtime;\n"
34737 "   int64_t ctime;\n"
34738 " };\n"
34739 " \n"
34740 msgstr ""
34741
34742 #. type: verbatim
34743 #: ../src/guestfs-structs.pod:127
34744 #, no-wrap
34745 msgid ""
34746 " struct guestfs_stat_list {\n"
34747 "   uint32_t len; /* Number of elements in list. */\n"
34748 "   struct guestfs_stat *val; /* Elements. */\n"
34749 " };\n"
34750 " \n"
34751 msgstr ""
34752
34753 #. type: verbatim
34754 #: ../src/guestfs-structs.pod:132
34755 #, no-wrap
34756 msgid ""
34757 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34758 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34759 "\n"
34760 msgstr ""
34761
34762 #. type: verbatim
34763 #: ../src/guestfs-structs.pod:137
34764 #, no-wrap
34765 msgid ""
34766 " struct guestfs_statvfs {\n"
34767 "   int64_t bsize;\n"
34768 "   int64_t frsize;\n"
34769 "   int64_t blocks;\n"
34770 "   int64_t bfree;\n"
34771 "   int64_t bavail;\n"
34772 "   int64_t files;\n"
34773 "   int64_t ffree;\n"
34774 "   int64_t favail;\n"
34775 "   int64_t fsid;\n"
34776 "   int64_t flag;\n"
34777 "   int64_t namemax;\n"
34778 " };\n"
34779 " \n"
34780 msgstr ""
34781
34782 #. type: verbatim
34783 #: ../src/guestfs-structs.pod:151
34784 #, no-wrap
34785 msgid ""
34786 " struct guestfs_statvfs_list {\n"
34787 "   uint32_t len; /* Number of elements in list. */\n"
34788 "   struct guestfs_statvfs *val; /* Elements. */\n"
34789 " };\n"
34790 " \n"
34791 msgstr ""
34792
34793 #. type: verbatim
34794 #: ../src/guestfs-structs.pod:156
34795 #, no-wrap
34796 msgid ""
34797 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34798 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34799 "\n"
34800 msgstr ""
34801
34802 #. type: =head2
34803 #: ../src/guestfs-structs.pod:159
34804 msgid "guestfs_dirent"
34805 msgstr ""
34806
34807 #. type: verbatim
34808 #: ../src/guestfs-structs.pod:161
34809 #, no-wrap
34810 msgid ""
34811 " struct guestfs_dirent {\n"
34812 "   int64_t ino;\n"
34813 "   char ftyp;\n"
34814 "   char *name;\n"
34815 " };\n"
34816 " \n"
34817 msgstr ""
34818
34819 #. type: verbatim
34820 #: ../src/guestfs-structs.pod:167
34821 #, no-wrap
34822 msgid ""
34823 " struct guestfs_dirent_list {\n"
34824 "   uint32_t len; /* Number of elements in list. */\n"
34825 "   struct guestfs_dirent *val; /* Elements. */\n"
34826 " };\n"
34827 " \n"
34828 msgstr ""
34829
34830 #. type: verbatim
34831 #: ../src/guestfs-structs.pod:172
34832 #, no-wrap
34833 msgid ""
34834 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34835 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34836 "\n"
34837 msgstr ""
34838
34839 #. type: verbatim
34840 #: ../src/guestfs-structs.pod:177
34841 #, no-wrap
34842 msgid ""
34843 " struct guestfs_version {\n"
34844 "   int64_t major;\n"
34845 "   int64_t minor;\n"
34846 "   int64_t release;\n"
34847 "   char *extra;\n"
34848 " };\n"
34849 " \n"
34850 msgstr ""
34851
34852 #. type: verbatim
34853 #: ../src/guestfs-structs.pod:184
34854 #, no-wrap
34855 msgid ""
34856 " struct guestfs_version_list {\n"
34857 "   uint32_t len; /* Number of elements in list. */\n"
34858 "   struct guestfs_version *val; /* Elements. */\n"
34859 " };\n"
34860 " \n"
34861 msgstr ""
34862
34863 #. type: verbatim
34864 #: ../src/guestfs-structs.pod:189
34865 #, no-wrap
34866 msgid ""
34867 " void guestfs_free_version (struct guestfs_free_version *);\n"
34868 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34869 "\n"
34870 msgstr ""
34871
34872 #. type: =head2
34873 #: ../src/guestfs-structs.pod:192
34874 msgid "guestfs_xattr"
34875 msgstr ""
34876
34877 #. type: verbatim
34878 #: ../src/guestfs-structs.pod:194
34879 #, no-wrap
34880 msgid ""
34881 " struct guestfs_xattr {\n"
34882 "   char *attrname;\n"
34883 "   /* The next two fields describe a byte array. */\n"
34884 "   uint32_t attrval_len;\n"
34885 "   char *attrval;\n"
34886 " };\n"
34887 " \n"
34888 msgstr ""
34889
34890 #. type: verbatim
34891 #: ../src/guestfs-structs.pod:201
34892 #, no-wrap
34893 msgid ""
34894 " struct guestfs_xattr_list {\n"
34895 "   uint32_t len; /* Number of elements in list. */\n"
34896 "   struct guestfs_xattr *val; /* Elements. */\n"
34897 " };\n"
34898 " \n"
34899 msgstr ""
34900
34901 #. type: verbatim
34902 #: ../src/guestfs-structs.pod:206
34903 #, no-wrap
34904 msgid ""
34905 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34906 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34907 "\n"
34908 msgstr ""
34909
34910 #. type: =head2
34911 #: ../src/guestfs-structs.pod:209
34912 msgid "guestfs_inotify_event"
34913 msgstr ""
34914
34915 #. type: verbatim
34916 #: ../src/guestfs-structs.pod:211
34917 #, no-wrap
34918 msgid ""
34919 " struct guestfs_inotify_event {\n"
34920 "   int64_t in_wd;\n"
34921 "   uint32_t in_mask;\n"
34922 "   uint32_t in_cookie;\n"
34923 "   char *in_name;\n"
34924 " };\n"
34925 " \n"
34926 msgstr ""
34927
34928 #. type: verbatim
34929 #: ../src/guestfs-structs.pod:218
34930 #, no-wrap
34931 msgid ""
34932 " struct guestfs_inotify_event_list {\n"
34933 "   uint32_t len; /* Number of elements in list. */\n"
34934 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34935 " };\n"
34936 " \n"
34937 msgstr ""
34938
34939 #. type: verbatim
34940 #: ../src/guestfs-structs.pod:223
34941 #, no-wrap
34942 msgid ""
34943 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34944 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34945 "\n"
34946 msgstr ""
34947
34948 #. type: =head2
34949 #: ../src/guestfs-structs.pod:226
34950 msgid "guestfs_partition"
34951 msgstr ""
34952
34953 #. type: verbatim
34954 #: ../src/guestfs-structs.pod:228
34955 #, no-wrap
34956 msgid ""
34957 " struct guestfs_partition {\n"
34958 "   int32_t part_num;\n"
34959 "   uint64_t part_start;\n"
34960 "   uint64_t part_end;\n"
34961 "   uint64_t part_size;\n"
34962 " };\n"
34963 " \n"
34964 msgstr ""
34965
34966 #. type: verbatim
34967 #: ../src/guestfs-structs.pod:235
34968 #, no-wrap
34969 msgid ""
34970 " struct guestfs_partition_list {\n"
34971 "   uint32_t len; /* Number of elements in list. */\n"
34972 "   struct guestfs_partition *val; /* Elements. */\n"
34973 " };\n"
34974 " \n"
34975 msgstr ""
34976
34977 #. type: verbatim
34978 #: ../src/guestfs-structs.pod:240
34979 #, no-wrap
34980 msgid ""
34981 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34982 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34983 "\n"
34984 msgstr ""
34985
34986 #. type: =head2
34987 #: ../src/guestfs-structs.pod:243
34988 msgid "guestfs_application"
34989 msgstr ""
34990
34991 #. type: verbatim
34992 #: ../src/guestfs-structs.pod:245
34993 #, no-wrap
34994 msgid ""
34995 " struct guestfs_application {\n"
34996 "   char *app_name;\n"
34997 "   char *app_display_name;\n"
34998 "   int32_t app_epoch;\n"
34999 "   char *app_version;\n"
35000 "   char *app_release;\n"
35001 "   char *app_install_path;\n"
35002 "   char *app_trans_path;\n"
35003 "   char *app_publisher;\n"
35004 "   char *app_url;\n"
35005 "   char *app_source_package;\n"
35006 "   char *app_summary;\n"
35007 "   char *app_description;\n"
35008 " };\n"
35009 " \n"
35010 msgstr ""
35011
35012 #. type: verbatim
35013 #: ../src/guestfs-structs.pod:260
35014 #, no-wrap
35015 msgid ""
35016 " struct guestfs_application_list {\n"
35017 "   uint32_t len; /* Number of elements in list. */\n"
35018 "   struct guestfs_application *val; /* Elements. */\n"
35019 " };\n"
35020 " \n"
35021 msgstr ""
35022
35023 #. type: verbatim
35024 #: ../src/guestfs-structs.pod:265
35025 #, no-wrap
35026 msgid ""
35027 " void guestfs_free_application (struct guestfs_free_application *);\n"
35028 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35029 "\n"
35030 msgstr ""
35031
35032 #. type: textblock
35033 #: ../src/guestfs.pod:5
35034 msgid "guestfs - Library for accessing and modifying virtual machine images"
35035 msgstr ""
35036
35037 #. type: verbatim
35038 #: ../src/guestfs.pod:11
35039 #, no-wrap
35040 msgid ""
35041 " guestfs_h *g = guestfs_create ();\n"
35042 " guestfs_add_drive (g, \"guest.img\");\n"
35043 " guestfs_launch (g);\n"
35044 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35045 " guestfs_touch (g, \"/hello\");\n"
35046 " guestfs_umount (g, \"/\");\n"
35047 " guestfs_close (g);\n"
35048 "\n"
35049 msgstr ""
35050 " guestfs_h *g = guestfs_create ();\n"
35051 " guestfs_add_drive (g, \"guest.img\");\n"
35052 " guestfs_launch (g);\n"
35053 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35054 " guestfs_touch (g, \"/hello\");\n"
35055 " guestfs_umount (g, \"/\");\n"
35056 " guestfs_close (g);\n"
35057 "\n"
35058
35059 #. type: textblock
35060 #: ../src/guestfs.pod:25
35061 msgid ""
35062 "Libguestfs is a library for accessing and modifying guest disk images.  "
35063 "Amongst the things this is good for: making batch configuration changes to "
35064 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35065 "between virtualization systems (see also: virt-p2v), performing partial "
35066 "backups, performing partial guest clones, cloning guests and changing "
35067 "registry/UUID/hostname info, and much else besides."
35068 msgstr ""
35069
35070 #. type: textblock
35071 #: ../src/guestfs.pod:33
35072 msgid ""
35073 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35074 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35075 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35076 "qcow2, vmdk."
35077 msgstr ""
35078
35079 #. type: textblock
35080 #: ../src/guestfs.pod:38
35081 msgid ""
35082 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35083 "what filesystem is in each LV, etc.).  It can also run commands in the "
35084 "context of the guest.  Also you can access filesystems over FUSE."
35085 msgstr ""
35086
35087 #. type: textblock
35088 #: ../src/guestfs.pod:43
35089 msgid ""
35090 "Libguestfs is a library that can be linked with C and C++ management "
35091 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35092 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
35093 "command line."
35094 msgstr ""
35095
35096 #. type: textblock
35097 #: ../src/guestfs.pod:48
35098 msgid ""
35099 "You don't need to be root to use libguestfs, although obviously you do need "
35100 "enough permissions to access the disk images."
35101 msgstr ""
35102
35103 #. type: textblock
35104 #: ../src/guestfs.pod:51
35105 msgid ""
35106 "Libguestfs is a large API because it can do many things.  For a gentle "
35107 "introduction, please read the L</API OVERVIEW> section next."
35108 msgstr ""
35109
35110 #. type: textblock
35111 #: ../src/guestfs.pod:54
35112 msgid ""
35113 "There are also some example programs in the L<guestfs-examples(3)> manual "
35114 "page."
35115 msgstr ""
35116
35117 #. type: =head1
35118 #: ../src/guestfs.pod:57
35119 msgid "API OVERVIEW"
35120 msgstr ""
35121
35122 #. type: textblock
35123 #: ../src/guestfs.pod:59
35124 msgid ""
35125 "This section provides a gentler overview of the libguestfs API.  We also try "
35126 "to group API calls together, where that may not be obvious from reading "
35127 "about the individual calls in the main section of this manual."
35128 msgstr ""
35129
35130 #. type: =head2
35131 #: ../src/guestfs.pod:64
35132 msgid "HANDLES"
35133 msgstr ""
35134
35135 #. type: textblock
35136 #: ../src/guestfs.pod:66
35137 msgid ""
35138 "Before you can use libguestfs calls, you have to create a handle.  Then you "
35139 "must add at least one disk image to the handle, followed by launching the "
35140 "handle, then performing whatever operations you want, and finally closing "
35141 "the handle.  By convention we use the single letter C<g> for the name of the "
35142 "handle variable, although of course you can use any name you want."
35143 msgstr ""
35144
35145 #. type: textblock
35146 #: ../src/guestfs.pod:73
35147 msgid "The general structure of all libguestfs-using programs looks like this:"
35148 msgstr ""
35149
35150 #. type: verbatim
35151 #: ../src/guestfs.pod:76
35152 #, no-wrap
35153 msgid ""
35154 " guestfs_h *g = guestfs_create ();\n"
35155 " \n"
35156 msgstr ""
35157
35158 #. type: verbatim
35159 #: ../src/guestfs.pod:78
35160 #, no-wrap
35161 msgid ""
35162 " /* Call guestfs_add_drive additional times if there are\n"
35163 "  * multiple disk images.\n"
35164 "  */\n"
35165 " guestfs_add_drive (g, \"guest.img\");\n"
35166 " \n"
35167 msgstr ""
35168
35169 #. type: verbatim
35170 #: ../src/guestfs.pod:83
35171 #, no-wrap
35172 msgid ""
35173 " /* Most manipulation calls won't work until you've launched\n"
35174 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
35175 "  * and _before_ other commands.\n"
35176 "  */\n"
35177 " guestfs_launch (g);\n"
35178 " \n"
35179 msgstr ""
35180
35181 #. type: verbatim
35182 #: ../src/guestfs.pod:89
35183 #, no-wrap
35184 msgid ""
35185 " /* Now you can examine what partitions, LVs etc are available.\n"
35186 "  */\n"
35187 " char **partitions = guestfs_list_partitions (g);\n"
35188 " char **logvols = guestfs_lvs (g);\n"
35189 " \n"
35190 msgstr ""
35191
35192 #. type: verbatim
35193 #: ../src/guestfs.pod:94
35194 #, no-wrap
35195 msgid ""
35196 " /* To access a filesystem in the image, you must mount it.\n"
35197 "  */\n"
35198 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35199 " \n"
35200 msgstr ""
35201
35202 #. type: verbatim
35203 #: ../src/guestfs.pod:98
35204 #, no-wrap
35205 msgid ""
35206 " /* Now you can perform filesystem actions on the guest\n"
35207 "  * disk image.\n"
35208 "  */\n"
35209 " guestfs_touch (g, \"/hello\");\n"
35210 " \n"
35211 msgstr ""
35212
35213 #. type: verbatim
35214 #: ../src/guestfs.pod:103
35215 #, no-wrap
35216 msgid ""
35217 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
35218 "  * it is done automatically when you close the handle.  See\n"
35219 "  * discussion of autosync in this page.\n"
35220 "  */\n"
35221 " guestfs_sync (g);\n"
35222 " \n"
35223 msgstr ""
35224
35225 #. type: verbatim
35226 #: ../src/guestfs.pod:109
35227 #, no-wrap
35228 msgid ""
35229 " /* Close the handle 'g'. */\n"
35230 " guestfs_close (g);\n"
35231 "\n"
35232 msgstr ""
35233
35234 #. type: textblock
35235 #: ../src/guestfs.pod:112
35236 msgid ""
35237 "The code above doesn't include any error checking.  In real code you should "
35238 "check return values carefully for errors.  In general all functions that "
35239 "return integers return C<-1> on error, and all functions that return "
35240 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
35241 "how to handle errors, and consult the documentation for each function call "
35242 "below to see precisely how they return error indications.  See L<guestfs-"
35243 "examples(3)> for fully worked examples."
35244 msgstr ""
35245
35246 #. type: =head2
35247 #: ../src/guestfs.pod:121
35248 msgid "DISK IMAGES"
35249 msgstr ""
35250
35251 #. type: textblock
35252 #: ../src/guestfs.pod:123
35253 msgid ""
35254 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35255 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35256 "actual block device, or simply an empty file of zeroes that you have created "
35257 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
35258 "of these."
35259 msgstr ""
35260
35261 #. type: textblock
35262 #: ../src/guestfs.pod:129
35263 msgid ""
35264 "The call you should use in modern code for adding drives is L</"
35265 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
35266 "specifying that the format is raw, do:"
35267 msgstr ""
35268
35269 #. type: verbatim
35270 #: ../src/guestfs.pod:133
35271 #, no-wrap
35272 msgid ""
35273 " guestfs_add_drive_opts (g, filename,\n"
35274 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35275 "                         -1);\n"
35276 "\n"
35277 msgstr ""
35278
35279 #. type: textblock
35280 #: ../src/guestfs.pod:137
35281 msgid "You can add a disk read-only using:"
35282 msgstr ""
35283
35284 #. type: verbatim
35285 #: ../src/guestfs.pod:139
35286 #, no-wrap
35287 msgid ""
35288 " guestfs_add_drive_opts (g, filename,\n"
35289 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35290 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35291 "                         -1);\n"
35292 "\n"
35293 msgstr ""
35294
35295 #. type: textblock
35296 #: ../src/guestfs.pod:144
35297 msgid ""
35298 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
35299 "libguestfs won't modify the file."
35300 msgstr ""
35301
35302 #. type: textblock
35303 #: ../src/guestfs.pod:147
35304 msgid ""
35305 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35306 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
35307 "corruption, but adding it read-only is safe."
35308 msgstr ""
35309
35310 #. type: textblock
35311 #: ../src/guestfs.pod:151
35312 msgid ""
35313 "You must add at least one disk image, and you may add multiple disk images.  "
35314 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35315 "first one you added), C</dev/sdb> (for the second one you added), etc."
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:156
35320 msgid ""
35321 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
35322 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35323 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
35324 msgstr ""
35325
35326 #. type: =head2
35327 #: ../src/guestfs.pod:161
35328 msgid "MOUNTING"
35329 msgstr ""
35330
35331 #. type: textblock
35332 #: ../src/guestfs.pod:163
35333 msgid ""
35334 "Before you can read or write files, create directories and so on in a disk "
35335 "image that contains filesystems, you have to mount those filesystems using "
35336 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35337 "a disk image contains (for example) one partition with a filesystem on that "
35338 "partition, then you can mount it directly:"
35339 msgstr ""
35340
35341 #. type: verbatim
35342 #: ../src/guestfs.pod:170
35343 #, no-wrap
35344 msgid ""
35345 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35346 "\n"
35347 msgstr ""
35348
35349 #. type: textblock
35350 #: ../src/guestfs.pod:172
35351 msgid ""
35352 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35353 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35354 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35355 "that these are libguestfs virtual devices, and are nothing to do with host "
35356 "devices."
35357 msgstr ""
35358
35359 #. type: textblock
35360 #: ../src/guestfs.pod:178
35361 msgid ""
35362 "If you are given a disk image and you don't know what it contains then you "
35363 "have to find out.  Libguestfs can do that too: use L</"
35364 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35365 "LVs, and either try mounting each to see what is mountable, or else examine "
35366 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35367 "filesystems, use L</guestfs_list_filesystems>."
35368 msgstr ""
35369
35370 #. type: textblock
35371 #: ../src/guestfs.pod:186
35372 msgid ""
35373 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35374 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35375 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35376 msgstr ""
35377
35378 #. type: textblock
35379 #: ../src/guestfs.pod:191
35380 msgid ""
35381 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35382 "several other variations of the C<guestfs_mount_*> call."
35383 msgstr ""
35384
35385 #. type: =head2
35386 #: ../src/guestfs.pod:194
35387 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35388 msgstr ""
35389
35390 #. type: textblock
35391 #: ../src/guestfs.pod:196
35392 msgid ""
35393 "The majority of the libguestfs API consists of fairly low-level calls for "
35394 "accessing and modifying the files, directories, symlinks etc on mounted "
35395 "filesystems.  There are over a hundred such calls which you can find listed "
35396 "in detail below in this man page, and we don't even pretend to cover them "
35397 "all in this overview."
35398 msgstr ""
35399
35400 #. type: textblock
35401 #: ../src/guestfs.pod:202
35402 msgid ""
35403 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35404 "mount point."
35405 msgstr ""
35406
35407 #. type: textblock
35408 #: ../src/guestfs.pod:205
35409 msgid ""
35410 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35411 "the file called C<\"etc/passwd\"> then you could do:"
35412 msgstr ""
35413
35414 #. type: verbatim
35415 #: ../src/guestfs.pod:208
35416 #, no-wrap
35417 msgid ""
35418 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35419 "\n"
35420 msgstr ""
35421
35422 #. type: textblock
35423 #: ../src/guestfs.pod:210
35424 msgid ""
35425 "This would return C<data> as a newly allocated buffer containing the full "
35426 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35427 "or C<NULL> if there was an error."
35428 msgstr ""
35429
35430 #. type: textblock
35431 #: ../src/guestfs.pod:214
35432 msgid ""
35433 "As another example, to create a top-level directory on that filesystem "
35434 "called C<\"var\"> you would do:"
35435 msgstr ""
35436
35437 #. type: verbatim
35438 #: ../src/guestfs.pod:217
35439 #, no-wrap
35440 msgid ""
35441 " guestfs_mkdir (g, \"/var\");\n"
35442 "\n"
35443 msgstr ""
35444
35445 #. type: textblock
35446 #: ../src/guestfs.pod:219
35447 msgid "To create a symlink you could do:"
35448 msgstr ""
35449
35450 #. type: verbatim
35451 #: ../src/guestfs.pod:221
35452 #, no-wrap
35453 msgid ""
35454 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35455 "               \"/etc/rc3.d/S30portmap\");\n"
35456 "\n"
35457 msgstr ""
35458
35459 #. type: textblock
35460 #: ../src/guestfs.pod:224
35461 msgid ""
35462 "Libguestfs will reject attempts to use relative paths and there is no "
35463 "concept of a current working directory."
35464 msgstr ""
35465
35466 #. type: textblock
35467 #: ../src/guestfs.pod:227
35468 msgid ""
35469 "Libguestfs can return errors in many situations: for example if the "
35470 "filesystem isn't writable, or if a file or directory that you requested "
35471 "doesn't exist.  If you are using the C API (documented here)  you have to "
35472 "check for those error conditions after each call.  (Other language bindings "
35473 "turn these errors into exceptions)."
35474 msgstr ""
35475
35476 #. type: textblock
35477 #: ../src/guestfs.pod:233
35478 msgid ""
35479 "File writes are affected by the per-handle umask, set by calling L</"
35480 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
35481 msgstr ""
35482
35483 #. type: =head2
35484 #: ../src/guestfs.pod:236
35485 msgid "PARTITIONING"
35486 msgstr ""
35487
35488 #. type: textblock
35489 #: ../src/guestfs.pod:238
35490 msgid ""
35491 "Libguestfs contains API calls to read, create and modify partition tables on "
35492 "disk images."
35493 msgstr ""
35494
35495 #. type: textblock
35496 #: ../src/guestfs.pod:241
35497 msgid ""
35498 "In the common case where you want to create a single partition covering the "
35499 "whole disk, you should use the L</guestfs_part_disk> call:"
35500 msgstr ""
35501
35502 #. type: verbatim
35503 #: ../src/guestfs.pod:245
35504 #, no-wrap
35505 msgid ""
35506 " const char *parttype = \"mbr\";\n"
35507 " if (disk_is_larger_than_2TB)\n"
35508 "   parttype = \"gpt\";\n"
35509 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35510 "\n"
35511 msgstr ""
35512
35513 #. type: textblock
35514 #: ../src/guestfs.pod:250
35515 msgid ""
35516 "Obviously this effectively wipes anything that was on that disk image before."
35517 msgstr ""
35518
35519 #. type: =head2
35520 #: ../src/guestfs.pod:253
35521 msgid "LVM2"
35522 msgstr ""
35523
35524 #. type: textblock
35525 #: ../src/guestfs.pod:255
35526 msgid ""
35527 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35528 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
35529 "you familiarize yourself with the concepts of physical volumes, volume "
35530 "groups and logical volumes."
35531 msgstr ""
35532
35533 #. type: textblock
35534 #: ../src/guestfs.pod:260
35535 msgid ""
35536 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35537 "tldp.org/HOWTO/LVM-HOWTO/>."
35538 msgstr ""
35539
35540 #. type: =head2
35541 #: ../src/guestfs.pod:263
35542 msgid "DOWNLOADING"
35543 msgstr ""
35544
35545 #. type: textblock
35546 #: ../src/guestfs.pod:265
35547 msgid ""
35548 "Use L</guestfs_cat> to download small, text only files.  This call is "
35549 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35550 "NUL (C<\\0>) characters.  However the API is very simple to use."
35551 msgstr ""
35552
35553 #. type: textblock
35554 #: ../src/guestfs.pod:269
35555 msgid ""
35556 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35557 "bit data, since it returns a (pointer, size) pair.  However it is still "
35558 "limited to \"small\" files, less than 2 MB."
35559 msgstr ""
35560
35561 #. type: textblock
35562 #: ../src/guestfs.pod:273
35563 msgid ""
35564 "L</guestfs_download> can be used to download any file, with no limits on "
35565 "content or size (even files larger than 4 GB)."
35566 msgstr ""
35567
35568 #. type: textblock
35569 #: ../src/guestfs.pod:276
35570 msgid ""
35571 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35572 msgstr ""
35573
35574 #. type: =head2
35575 #: ../src/guestfs.pod:279
35576 msgid "UPLOADING"
35577 msgstr ""
35578
35579 #. type: textblock
35580 #: ../src/guestfs.pod:281
35581 msgid ""
35582 "It's often the case that you want to write a file or files to the disk image."
35583 msgstr ""
35584
35585 #. type: textblock
35586 #: ../src/guestfs.pod:284
35587 msgid ""
35588 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35589 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35590 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
35591 "of other functions for creating test files, for example L</guestfs_fill> and "
35592 "L</guestfs_fill_pattern>."
35593 msgstr ""
35594
35595 #. type: textblock
35596 #: ../src/guestfs.pod:290
35597 msgid ""
35598 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35599 "file content or size (even files larger than 4 GB)."
35600 msgstr ""
35601
35602 #. type: textblock
35603 #: ../src/guestfs.pod:293
35604 msgid ""
35605 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35606 msgstr ""
35607
35608 #. type: textblock
35609 #: ../src/guestfs.pod:295
35610 msgid ""
35611 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35612 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35613 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
35614 "in a predictable way (eg. adding it last after all other drives) then you "
35615 "can get the device name from L</guestfs_list_devices> and mount it directly "
35616 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
35617 "portable between kernel versions, and they don't support labels or UUIDs.  "
35618 "If you want to pre-build an image or you need to mount it using a label or "
35619 "UUID, use an ISO image instead."
35620 msgstr ""
35621
35622 #. type: =head2
35623 #: ../src/guestfs.pod:306
35624 msgid "COPYING"
35625 msgstr ""
35626
35627 #. type: textblock
35628 #: ../src/guestfs.pod:308
35629 msgid ""
35630 "There are various different commands for copying between files and devices "
35631 "and in and out of the guest filesystem.  These are summarised in the table "
35632 "below."
35633 msgstr ""
35634
35635 #. type: =item
35636 #: ../src/guestfs.pod:314
35637 msgid "B<file> to B<file>"
35638 msgstr ""
35639
35640 #. type: textblock
35641 #: ../src/guestfs.pod:316
35642 msgid ""
35643 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35644 "directories recursively."
35645 msgstr ""
35646
35647 #. type: textblock
35648 #: ../src/guestfs.pod:319
35649 msgid ""
35650 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
35651 msgstr ""
35652
35653 #. type: =item
35654 #: ../src/guestfs.pod:322
35655 msgid "B<file> to B<device>"
35656 msgstr ""
35657
35658 #. type: =item
35659 #: ../src/guestfs.pod:324
35660 msgid "B<device> to B<file>"
35661 msgstr ""
35662
35663 #. type: =item
35664 #: ../src/guestfs.pod:326
35665 msgid "B<device> to B<device>"
35666 msgstr ""
35667
35668 #. type: textblock
35669 #: ../src/guestfs.pod:328
35670 msgid ""
35671 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
35672 "guestfs_copy_device_to_device>."
35673 msgstr ""
35674
35675 #. type: textblock
35676 #: ../src/guestfs.pod:331
35677 msgid "Example: duplicate the contents of an LV:"
35678 msgstr ""
35679
35680 #. type: verbatim
35681 #: ../src/guestfs.pod:333
35682 #, no-wrap
35683 msgid ""
35684 " guestfs_copy_device_to_device (g,\n"
35685 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35686 "         /* -1 marks the end of the list of optional parameters */\n"
35687 "         -1);\n"
35688 "\n"
35689 msgstr ""
35690
35691 #. type: textblock
35692 #: ../src/guestfs.pod:338
35693 msgid ""
35694 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35695 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
35696 "optional C<size> parameter:"
35697 msgstr ""
35698
35699 #. type: verbatim
35700 #: ../src/guestfs.pod:342
35701 #, no-wrap
35702 msgid ""
35703 " guestfs_copy_device_to_device (g,\n"
35704 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35705 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
35706 "         -1);\n"
35707 "\n"
35708 msgstr ""
35709
35710 #. type: =item
35711 #: ../src/guestfs.pod:347
35712 msgid "B<file on the host> to B<file or device>"
35713 msgstr ""
35714
35715 #. type: textblock
35716 #: ../src/guestfs.pod:349
35717 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35718 msgstr ""
35719
35720 #. type: =item
35721 #: ../src/guestfs.pod:351
35722 msgid "B<file or device> to B<file on the host>"
35723 msgstr ""
35724
35725 #. type: textblock
35726 #: ../src/guestfs.pod:353
35727 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35728 msgstr ""
35729
35730 #. type: =head2
35731 #: ../src/guestfs.pod:357
35732 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35733 msgstr ""
35734
35735 #. type: textblock
35736 #: ../src/guestfs.pod:359
35737 msgid ""
35738 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
35739 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35740 "appears you can only upload and download to files.  However many Un*x-like "
35741 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
35742 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
35743 "and arbitrary file descriptor N."
35744 msgstr ""
35745
35746 #. type: textblock
35747 #: ../src/guestfs.pod:367
35748 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35749 msgstr ""
35750
35751 #. type: verbatim
35752 #: ../src/guestfs.pod:370
35753 #, no-wrap
35754 msgid ""
35755 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35756 "\n"
35757 msgstr ""
35758
35759 #. type: textblock
35760 #: ../src/guestfs.pod:372
35761 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35762 msgstr ""
35763
35764 #. type: verbatim
35765 #: ../src/guestfs.pod:374
35766 #, no-wrap
35767 msgid ""
35768 " char devfd[64];\n"
35769 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35770 " guestfs_tar_out (g, \"/\", devfd);\n"
35771 "\n"
35772 msgstr ""
35773
35774 #. type: =head2
35775 #: ../src/guestfs.pod:378
35776 msgid "LISTING FILES"
35777 msgstr ""
35778
35779 #. type: textblock
35780 #: ../src/guestfs.pod:380
35781 msgid ""
35782 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35783 "L<guestfish(1)>-equivalent command C<ll>)."
35784 msgstr ""
35785
35786 #. type: textblock
35787 #: ../src/guestfs.pod:383
35788 msgid ""
35789 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35790 "programs, as a flat list of strings."
35791 msgstr ""
35792
35793 #. type: textblock
35794 #: ../src/guestfs.pod:386
35795 msgid ""
35796 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35797 "directory, plus additional information about each one.  It is more "
35798 "equivalent to using the L<readdir(3)> call on a local filesystem."
35799 msgstr ""
35800
35801 #. type: textblock
35802 #: ../src/guestfs.pod:390
35803 msgid ""
35804 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
35805 msgstr ""
35806
35807 #. type: =head2
35808 #: ../src/guestfs.pod:393
35809 msgid "RUNNING COMMANDS"
35810 msgstr ""
35811
35812 #. type: textblock
35813 #: ../src/guestfs.pod:395
35814 msgid ""
35815 "Although libguestfs is primarily an API for manipulating files inside guest "
35816 "images, we also provide some limited facilities for running commands inside "
35817 "guests."
35818 msgstr ""
35819
35820 #. type: textblock
35821 #: ../src/guestfs.pod:399
35822 msgid "There are many limitations to this:"
35823 msgstr ""
35824
35825 #. type: textblock
35826 #: ../src/guestfs.pod:405
35827 msgid ""
35828 "The kernel version that the command runs under will be different from what "
35829 "it expects."
35830 msgstr ""
35831
35832 #. type: textblock
35833 #: ../src/guestfs.pod:410
35834 msgid ""
35835 "If the command needs to communicate with daemons, then most likely they "
35836 "won't be running."
35837 msgstr ""
35838
35839 #. type: textblock
35840 #: ../src/guestfs.pod:415
35841 msgid "The command will be running in limited memory."
35842 msgstr ""
35843
35844 #. type: textblock
35845 #: ../src/guestfs.pod:419
35846 msgid ""
35847 "The network may not be available unless you enable it (see L</"
35848 "guestfs_set_network>)."
35849 msgstr ""
35850
35851 #. type: textblock
35852 #: ../src/guestfs.pod:424
35853 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35854 msgstr ""
35855
35856 #. type: textblock
35857 #: ../src/guestfs.pod:428
35858 msgid ""
35859 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35860 msgstr ""
35861
35862 #. type: textblock
35863 #: ../src/guestfs.pod:433
35864 msgid ""
35865 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35866 "See L</SELINUX> in this manpage."
35867 msgstr ""
35868
35869 #. type: textblock
35870 #: ../src/guestfs.pod:438
35871 msgid ""
35872 "I<Security:> It is not safe to run commands from untrusted, possibly "
35873 "malicious guests.  These commands may attempt to exploit your program by "
35874 "sending unexpected output.  They could also try to exploit the Linux kernel "
35875 "or qemu provided by the libguestfs appliance.  They could use the network "
35876 "provided by the libguestfs appliance to bypass ordinary network partitions "
35877 "and firewalls.  They could use the elevated privileges or different SELinux "
35878 "context of your program to their advantage."
35879 msgstr ""
35880
35881 #. type: textblock
35882 #: ../src/guestfs.pod:447
35883 msgid ""
35884 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35885 "(a script which runs when the guest next boots normally), and to have this "
35886 "script run the commands you want in the normal context of the running guest, "
35887 "network security and so on.  For information about other security issues, "
35888 "see L</SECURITY>."
35889 msgstr ""
35890
35891 #. type: textblock
35892 #: ../src/guestfs.pod:455
35893 msgid ""
35894 "The two main API calls to run commands are L</guestfs_command> and L</"
35895 "guestfs_sh> (there are also variations)."
35896 msgstr ""
35897
35898 #. type: textblock
35899 #: ../src/guestfs.pod:458
35900 msgid ""
35901 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35902 "shell globs, redirections, etc will work."
35903 msgstr ""
35904
35905 #. type: =head2
35906 #: ../src/guestfs.pod:461
35907 msgid "CONFIGURATION FILES"
35908 msgstr ""
35909
35910 #. type: textblock
35911 #: ../src/guestfs.pod:463
35912 msgid ""
35913 "To read and write configuration files in Linux guest filesystems, we "
35914 "strongly recommend using Augeas.  For example, Augeas understands how to "
35915 "read and write, say, a Linux shadow password file or X.org configuration "
35916 "file, and so avoids you having to write that code."
35917 msgstr ""
35918
35919 #. type: textblock
35920 #: ../src/guestfs.pod:468
35921 msgid ""
35922 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35923 "document Augeas itself here because there is excellent documentation on the "
35924 "L<http://augeas.net/> website."
35925 msgstr ""
35926
35927 #. type: textblock
35928 #: ../src/guestfs.pod:472
35929 msgid ""
35930 "If you don't want to use Augeas (you fool!) then try calling L</"
35931 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35932 "over."
35933 msgstr ""
35934
35935 #. type: =head2
35936 #: ../src/guestfs.pod:476
35937 msgid "SELINUX"
35938 msgstr ""
35939
35940 #. type: textblock
35941 #: ../src/guestfs.pod:478
35942 msgid ""
35943 "We support SELinux guests.  To ensure that labeling happens correctly in "
35944 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35945 msgstr ""
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:486
35949 msgid "Before launching, do:"
35950 msgstr ""
35951
35952 #. type: verbatim
35953 #: ../src/guestfs.pod:488
35954 #, no-wrap
35955 msgid ""
35956 " guestfs_set_selinux (g, 1);\n"
35957 "\n"
35958 msgstr ""
35959
35960 #. type: textblock
35961 #: ../src/guestfs.pod:492
35962 msgid ""
35963 "After mounting the guest's filesystem(s), load the policy.  This is best "
35964 "done by running the L<load_policy(8)> command in the guest itself:"
35965 msgstr ""
35966
35967 #. type: verbatim
35968 #: ../src/guestfs.pod:496
35969 #, no-wrap
35970 msgid ""
35971 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35972 "\n"
35973 msgstr ""
35974
35975 #. type: textblock
35976 #: ../src/guestfs.pod:498
35977 msgid ""
35978 "(Older versions of C<load_policy> require you to specify the name of the "
35979 "policy file)."
35980 msgstr ""
35981
35982 #. type: textblock
35983 #: ../src/guestfs.pod:503
35984 msgid ""
35985 "Optionally, set the security context for the API.  The correct security "
35986 "context to use can only be known by inspecting the guest.  As an example:"
35987 msgstr ""
35988
35989 #. type: verbatim
35990 #: ../src/guestfs.pod:507
35991 #, no-wrap
35992 msgid ""
35993 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35994 "\n"
35995 msgstr ""
35996
35997 #. type: textblock
35998 #: ../src/guestfs.pod:511
35999 msgid "This will work for running commands and editing existing files."
36000 msgstr ""
36001
36002 #. type: textblock
36003 #: ../src/guestfs.pod:513
36004 msgid ""
36005 "When new files are created, you may need to label them explicitly, for "
36006 "example by running the external command C<restorecon pathname>."
36007 msgstr ""
36008
36009 #. type: =head2
36010 #: ../src/guestfs.pod:517
36011 msgid "UMASK"
36012 msgstr ""
36013
36014 #. type: textblock
36015 #: ../src/guestfs.pod:519
36016 msgid ""
36017 "Certain calls are affected by the current file mode creation mask (the "
36018 "\"umask\").  In particular ones which create files or directories, such as "
36019 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
36020 "either the default mode that the file is created with or modifies the mode "
36021 "that you supply."
36022 msgstr ""
36023
36024 #. type: textblock
36025 #: ../src/guestfs.pod:525
36026 msgid ""
36027 "The default umask is C<022>, so files are created with modes such as C<0644> "
36028 "and directories with C<0755>."
36029 msgstr ""
36030
36031 #. type: textblock
36032 #: ../src/guestfs.pod:528
36033 msgid ""
36034 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
36035 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
36036 "guestfs_chmod> after creating each file or directory."
36037 msgstr ""
36038
36039 #. type: textblock
36040 #: ../src/guestfs.pod:532
36041 msgid "For more information about umask, see L<umask(2)>."
36042 msgstr ""
36043
36044 #. type: textblock
36045 #: ../src/guestfs.pod:536
36046 msgid ""
36047 "Libguestfs allows you to access Linux guests which have been encrypted using "
36048 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36049 "standard.  This includes nearly all whole disk encryption systems used by "
36050 "modern Linux guests."
36051 msgstr ""
36052
36053 #. type: textblock
36054 #: ../src/guestfs.pod:542
36055 msgid ""
36056 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36057 "returns the string C<crypto_LUKS>)."
36058 msgstr ""
36059
36060 #. type: textblock
36061 #: ../src/guestfs.pod:545
36062 msgid ""
36063 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
36064 "will require the passphrase!"
36065 msgstr ""
36066
36067 #. type: textblock
36068 #: ../src/guestfs.pod:548
36069 msgid ""
36070 "Opening a LUKS device creates a new device mapper device called C</dev/"
36071 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36072 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
36073 "from and encrypted to the underlying block device respectively."
36074 msgstr ""
36075
36076 #. type: textblock
36077 #: ../src/guestfs.pod:554
36078 msgid ""
36079 "LVM volume groups on the device can be made visible by calling L</"
36080 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
36081 "(s) can now be mounted in the usual way."
36082 msgstr ""
36083
36084 #. type: textblock
36085 #: ../src/guestfs.pod:558
36086 msgid ""
36087 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
36088 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36089 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
36090 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36091 "underlying encrypted block device)."
36092 msgstr ""
36093
36094 #. type: =head2
36095 #: ../src/guestfs.pod:565
36096 msgid "INSPECTION"
36097 msgstr ""
36098
36099 #. type: textblock
36100 #: ../src/guestfs.pod:567
36101 msgid ""
36102 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36103 "contains operating systems, an install CD or a live CD.  (These APIs used to "
36104 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36105 "version 1.5.3 the most frequently used part of this library has been "
36106 "rewritten in C and moved into the core code)."
36107 msgstr ""
36108
36109 #. type: textblock
36110 #: ../src/guestfs.pod:574
36111 msgid ""
36112 "Add all disks belonging to the unknown virtual machine and call L</"
36113 "guestfs_launch> in the usual way."
36114 msgstr ""
36115
36116 #. type: textblock
36117 #: ../src/guestfs.pod:577
36118 msgid ""
36119 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
36120 "and certain heuristics, and returns a list of operating systems that were "
36121 "found.  An empty list means none were found.  A single element is the root "
36122 "filesystem of the operating system.  For dual- or multi-boot guests, "
36123 "multiple roots can be returned, each one corresponding to a separate "
36124 "operating system.  (Multi-boot virtual machines are extremely rare in the "
36125 "world of virtualization, but since this scenario can happen, we have built "
36126 "libguestfs to deal with it.)"
36127 msgstr ""
36128
36129 #. type: textblock
36130 #: ../src/guestfs.pod:586
36131 msgid ""
36132 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36133 "to get additional details about that operating system.  For example, call L</"
36134 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36135 "Windows and Linux-based operating systems respectively."
36136 msgstr ""
36137
36138 #. type: textblock
36139 #: ../src/guestfs.pod:592
36140 msgid ""
36141 "Un*x-like and Linux-based operating systems usually consist of several "
36142 "filesystems which are mounted at boot time (for example, a separate boot "
36143 "partition mounted on C</boot>).  The inspection rules are able to detect how "
36144 "filesystems correspond to mount points.  Call "
36145 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
36146 "hash table like this example:"
36147 msgstr ""
36148
36149 #. type: verbatim
36150 #: ../src/guestfs.pod:599
36151 #, no-wrap
36152 msgid ""
36153 " /boot => /dev/sda1\n"
36154 " /     => /dev/vg_guest/lv_root\n"
36155 " /usr  => /dev/vg_guest/lv_usr\n"
36156 "\n"
36157 msgstr ""
36158
36159 #. type: textblock
36160 #: ../src/guestfs.pod:603
36161 msgid ""
36162 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36163 "filesystems as suggested."
36164 msgstr ""
36165
36166 #. type: textblock
36167 #: ../src/guestfs.pod:606
36168 msgid ""
36169 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36170 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
36171 msgstr ""
36172
36173 #. type: textblock
36174 #: ../src/guestfs.pod:610
36175 msgid ""
36176 "Inspection currently only works for some common operating systems.  "
36177 "Contributors are welcome to send patches for other operating systems that we "
36178 "currently cannot detect."
36179 msgstr ""
36180
36181 #. type: textblock
36182 #: ../src/guestfs.pod:614
36183 msgid ""
36184 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
36185 "for more details.  The L</guestfs_inspect_os> function just ignores any "
36186 "encrypted devices."
36187 msgstr ""
36188
36189 #. type: textblock
36190 #: ../src/guestfs.pod:618
36191 msgid ""
36192 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36193 "inspection and caches the results in the guest handle.  Subsequent calls to "
36194 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36195 "read the disks.  If you change the content of the guest disks, you can redo "
36196 "inspection by calling L</guestfs_inspect_os> again.  (L</"
36197 "guestfs_inspect_list_applications> works a little differently from the other "
36198 "calls and does read the disks.  See documentation for that function for "
36199 "details)."
36200 msgstr ""
36201
36202 #. type: =head3
36203 #: ../src/guestfs.pod:627
36204 msgid "INSPECTING INSTALL DISKS"
36205 msgstr ""
36206
36207 #. type: textblock
36208 #: ../src/guestfs.pod:629
36209 msgid ""
36210 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36211 "CDs and more."
36212 msgstr ""
36213
36214 #. type: textblock
36215 #: ../src/guestfs.pod:632
36216 msgid ""
36217 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36218 "system, which currently can be C<installed> (a regular operating system) or "
36219 "C<installer> (some sort of install disk)."
36220 msgstr ""
36221
36222 #. type: textblock
36223 #: ../src/guestfs.pod:636
36224 msgid ""
36225 "Further information is available about the operating system that can be "
36226 "installed using the regular inspection APIs like L</"
36227 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36228 msgstr ""
36229
36230 #. type: textblock
36231 #: ../src/guestfs.pod:641
36232 msgid ""
36233 "Some additional information specific to installer disks is also available "
36234 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36235 "guestfs_inspect_is_multipart> calls."
36236 msgstr ""
36237
36238 #. type: =head2
36239 #: ../src/guestfs.pod:646
36240 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36241 msgstr ""
36242
36243 #. type: textblock
36244 #: ../src/guestfs.pod:648
36245 msgid ""
36246 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
36247 "ntfs-3g.org/> driver."
36248 msgstr ""
36249
36250 #. type: =head3
36251 #: ../src/guestfs.pod:651
36252 msgid "DRIVE LETTERS AND PATHS"
36253 msgstr ""
36254
36255 #. type: textblock
36256 #: ../src/guestfs.pod:653
36257 msgid ""
36258 "DOS and Windows still use drive letters, and the filesystems are always "
36259 "treated as case insensitive by Windows itself, and therefore you might find "
36260 "a Windows configuration file referring to a path like C<c:\\windows"
36261 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
36262 "might be referred to as C</WINDOWS/System32>."
36263 msgstr ""
36264
36265 #. type: textblock
36266 #: ../src/guestfs.pod:659
36267 msgid ""
36268 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36269 "L</guestfs_inspect_get_drive_mappings>)"
36270 msgstr ""
36271
36272 #. type: textblock
36273 #: ../src/guestfs.pod:662
36274 msgid ""
36275 "Dealing with separator characters (backslash vs forward slash) is outside "
36276 "the scope of libguestfs, but usually a simple character replacement will "
36277 "work."
36278 msgstr ""
36279
36280 #. type: textblock
36281 #: ../src/guestfs.pod:666
36282 msgid ""
36283 "To resolve the case insensitivity of paths, call L</"
36284 "guestfs_case_sensitive_path>."
36285 msgstr ""
36286
36287 #. type: =head3
36288 #: ../src/guestfs.pod:669
36289 msgid "ACCESSING THE WINDOWS REGISTRY"
36290 msgstr ""
36291
36292 #. type: textblock
36293 #: ../src/guestfs.pod:671
36294 msgid ""
36295 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36296 "files, through the library C<hivex> which is part of the libguestfs project "
36297 "although ships as a separate tarball.  You have to locate and download the "
36298 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
36299 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36300 "reg(1)> for more help on this issue."
36301 msgstr ""
36302
36303 #. type: =head3
36304 #: ../src/guestfs.pod:679
36305 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36306 msgstr ""
36307
36308 #. type: textblock
36309 #: ../src/guestfs.pod:681
36310 msgid ""
36311 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36312 "provide something which looks like a Linux symlink.  The way it tries to do "
36313 "the rewriting is described here:"
36314 msgstr ""
36315
36316 #. type: textblock
36317 #: ../src/guestfs.pod:685
36318 msgid ""
36319 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36320 "symbolic-links/>"
36321 msgstr ""
36322
36323 #. type: textblock
36324 #: ../src/guestfs.pod:687
36325 msgid ""
36326 "The essential problem is that ntfs-3g simply does not have enough "
36327 "information to do a correct job.  NTFS links can contain drive letters and "
36328 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36329 "It is almost certainly the case that libguestfs callers should ignore what "
36330 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36331 msgstr ""
36332
36333 #. type: textblock
36334 #: ../src/guestfs.pod:694
36335 msgid ""
36336 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36337 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36338 "attribute, and read the raw reparse data from that (you can find the format "
36339 "documented in various places around the web)."
36340 msgstr ""
36341
36342 #. type: =head3
36343 #: ../src/guestfs.pod:699
36344 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36345 msgstr ""
36346
36347 #. type: textblock
36348 #: ../src/guestfs.pod:701
36349 msgid ""
36350 "There are other useful extended attributes that can be read from ntfs-3g "
36351 "filesystems (using L</guestfs_getxattr>).  See:"
36352 msgstr ""
36353
36354 #. type: textblock
36355 #: ../src/guestfs.pod:704
36356 msgid ""
36357 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36358 msgstr ""
36359
36360 #. type: =head2
36361 #: ../src/guestfs.pod:706
36362 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36363 msgstr ""
36364
36365 #. type: textblock
36366 #: ../src/guestfs.pod:708
36367 msgid ""
36368 "Although we don't want to discourage you from using the C API, we will "
36369 "mention here that the same API is also available in other languages."
36370 msgstr ""
36371
36372 #. type: textblock
36373 #: ../src/guestfs.pod:711
36374 msgid ""
36375 "The API is broadly identical in all supported languages.  This means that "
36376 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36377 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36378 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36379 "each language."
36380 msgstr ""
36381
36382 #. type: textblock
36383 #: ../src/guestfs.pod:717
36384 msgid ""
36385 "Error messages are automatically transformed into exceptions if the language "
36386 "supports it."
36387 msgstr ""
36388
36389 #. type: textblock
36390 #: ../src/guestfs.pod:720
36391 msgid ""
36392 "We don't try to \"object orientify\" parts of the API in OO languages, "
36393 "although contributors are welcome to write higher level APIs above what we "
36394 "provide in their favourite languages if they wish."
36395 msgstr ""
36396
36397 #. type: =item
36398 #: ../src/guestfs.pod:726
36399 msgid "B<C++>"
36400 msgstr ""
36401
36402 #. type: textblock
36403 #: ../src/guestfs.pod:728
36404 msgid ""
36405 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36406 "identical to the C API.  C++ classes and exceptions are not used."
36407 msgstr ""
36408
36409 #. type: =item
36410 #: ../src/guestfs.pod:732
36411 msgid "B<C#>"
36412 msgstr ""
36413
36414 #. type: textblock
36415 #: ../src/guestfs.pod:734
36416 msgid ""
36417 "The C# bindings are highly experimental.  Please read the warnings at the "
36418 "top of C<csharp/Libguestfs.cs>."
36419 msgstr ""
36420
36421 #. type: =item
36422 #: ../src/guestfs.pod:737
36423 msgid "B<Erlang>"
36424 msgstr ""
36425
36426 #. type: textblock
36427 #: ../src/guestfs.pod:739
36428 msgid "See L<guestfs-erlang(3)>."
36429 msgstr ""
36430
36431 #. type: =item
36432 #: ../src/guestfs.pod:741
36433 msgid "B<Haskell>"
36434 msgstr ""
36435
36436 #. type: textblock
36437 #: ../src/guestfs.pod:743
36438 msgid ""
36439 "This is the only language binding that is working but incomplete.  Only "
36440 "calls which return simple integers have been bound in Haskell, and we are "
36441 "looking for help to complete this binding."
36442 msgstr ""
36443
36444 #. type: =item
36445 #: ../src/guestfs.pod:747
36446 msgid "B<Java>"
36447 msgstr ""
36448
36449 #. type: textblock
36450 #: ../src/guestfs.pod:749
36451 msgid ""
36452 "Full documentation is contained in the Javadoc which is distributed with "
36453 "libguestfs.  For examples, see L<guestfs-java(3)>."
36454 msgstr ""
36455
36456 #. type: =item
36457 #: ../src/guestfs.pod:752
36458 msgid "B<OCaml>"
36459 msgstr ""
36460
36461 #. type: textblock
36462 #: ../src/guestfs.pod:754
36463 msgid "See L<guestfs-ocaml(3)>."
36464 msgstr ""
36465
36466 #. type: =item
36467 #: ../src/guestfs.pod:756
36468 msgid "B<Perl>"
36469 msgstr ""
36470
36471 #. type: textblock
36472 #: ../src/guestfs.pod:758
36473 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36474 msgstr ""
36475
36476 #. type: =item
36477 #: ../src/guestfs.pod:760
36478 msgid "B<PHP>"
36479 msgstr ""
36480
36481 #. type: textblock
36482 #: ../src/guestfs.pod:762
36483 msgid ""
36484 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36485 "the php-libguestfs package for your distribution."
36486 msgstr ""
36487
36488 #. type: textblock
36489 #: ../src/guestfs.pod:765
36490 msgid "The PHP binding only works correctly on 64 bit machines."
36491 msgstr ""
36492
36493 #. type: =item
36494 #: ../src/guestfs.pod:767
36495 msgid "B<Python>"
36496 msgstr ""
36497
36498 #. type: textblock
36499 #: ../src/guestfs.pod:769
36500 msgid "See L<guestfs-python(3)>."
36501 msgstr ""
36502
36503 #. type: =item
36504 #: ../src/guestfs.pod:771
36505 msgid "B<Ruby>"
36506 msgstr ""
36507
36508 #. type: textblock
36509 #: ../src/guestfs.pod:773
36510 msgid "See L<guestfs-ruby(3)>."
36511 msgstr ""
36512
36513 #. type: =item
36514 #: ../src/guestfs.pod:775
36515 msgid "B<shell scripts>"
36516 msgstr ""
36517
36518 #. type: textblock
36519 #: ../src/guestfs.pod:777
36520 msgid "See L<guestfish(1)>."
36521 msgstr ""
36522
36523 #. type: =head2
36524 #: ../src/guestfs.pod:781
36525 msgid "LIBGUESTFS GOTCHAS"
36526 msgstr ""
36527
36528 #. type: textblock
36529 #: ../src/guestfs.pod:783
36530 msgid ""
36531 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36532 "system [...] that works in the way it is documented but is counterintuitive "
36533 "and almost invites mistakes.\""
36534 msgstr ""
36535
36536 #. type: textblock
36537 #: ../src/guestfs.pod:787
36538 msgid ""
36539 "Since we developed libguestfs and the associated tools, there are several "
36540 "things we would have designed differently, but are now stuck with for "
36541 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36542 "release, you can expect these to change.  Beware of them."
36543 msgstr ""
36544
36545 #. type: =item
36546 #: ../src/guestfs.pod:795
36547 msgid "Autosync / forgetting to sync."
36548 msgstr ""
36549
36550 #. type: textblock
36551 #: ../src/guestfs.pod:797
36552 msgid ""
36553 "I<Update:> Autosync is enabled by default for all API users starting from "
36554 "libguestfs 1.5.24.  This section only applies to older versions."
36555 msgstr ""
36556
36557 #. type: textblock
36558 #: ../src/guestfs.pod:800
36559 msgid ""
36560 "When modifying a filesystem from C or another language, you B<must> unmount "
36561 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36562 "libguestfs handle.  You can also call:"
36563 msgstr ""
36564
36565 #. type: verbatim
36566 #: ../src/guestfs.pod:804
36567 #, no-wrap
36568 msgid ""
36569 " guestfs_set_autosync (g, 1);\n"
36570 "\n"
36571 msgstr ""
36572
36573 #. type: textblock
36574 #: ../src/guestfs.pod:806
36575 msgid ""
36576 "to have the unmount/sync done automatically for you when the handle 'g' is "
36577 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36578 msgstr ""
36579
36580 #. type: textblock
36581 #: ../src/guestfs.pod:810
36582 msgid ""
36583 "If you forget to do this, then it is entirely possible that your changes "
36584 "won't be written out, or will be partially written, or (very rarely) that "
36585 "you'll get disk corruption."
36586 msgstr ""
36587
36588 #. type: textblock
36589 #: ../src/guestfs.pod:814
36590 msgid ""
36591 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36592 "guestfish scripts that forget to sync will work just fine, which can make "
36593 "this very puzzling if you are trying to debug a problem."
36594 msgstr ""
36595
36596 #. type: =item
36597 #: ../src/guestfs.pod:818
36598 msgid "Mount option C<-o sync> should not be the default."
36599 msgstr ""
36600
36601 #. type: textblock
36602 #: ../src/guestfs.pod:820
36603 msgid ""
36604 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36605 "libguestfs 1.13.16.  This section only applies to older versions."
36606 msgstr ""
36607
36608 #. type: textblock
36609 #: ../src/guestfs.pod:823
36610 msgid ""
36611 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
36612 "However C<-o sync> does not add any reliability benefit, but does have a "
36613 "very large performance impact."
36614 msgstr ""
36615
36616 #. type: textblock
36617 #: ../src/guestfs.pod:827
36618 msgid ""
36619 "The work around is to use L</guestfs_mount_options> and set the mount "
36620 "options that you actually want to use."
36621 msgstr ""
36622
36623 #. type: =item
36624 #: ../src/guestfs.pod:830
36625 msgid "Read-only should be the default."
36626 msgstr ""
36627
36628 #. type: textblock
36629 #: ../src/guestfs.pod:832
36630 msgid ""
36631 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36632 "specify I<--rw> if you want to make changes to the image."
36633 msgstr ""
36634
36635 #. type: textblock
36636 #: ../src/guestfs.pod:835
36637 msgid "This would reduce the potential to corrupt live VM images."
36638 msgstr ""
36639
36640 #. type: textblock
36641 #: ../src/guestfs.pod:837
36642 msgid ""
36643 "Note that many filesystems change the disk when you just mount and unmount, "
36644 "even if you didn't perform any writes.  You need to use L</"
36645 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
36646 msgstr ""
36647
36648 #. type: =item
36649 #: ../src/guestfs.pod:841
36650 msgid "guestfish command line is hard to use."
36651 msgstr ""
36652
36653 #. type: textblock
36654 #: ../src/guestfs.pod:843
36655 msgid ""
36656 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36657 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
36658 "exist, so it fails.  In earlier versions of guestfish the error message was "
36659 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
36660 "we should have used C<guestfish -c command> to run commands."
36661 msgstr ""
36662
36663 #. type: =item
36664 #: ../src/guestfs.pod:850
36665 msgid "guestfish megabyte modifiers don't work right on all commands"
36666 msgstr ""
36667
36668 #. type: textblock
36669 #: ../src/guestfs.pod:852
36670 msgid ""
36671 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36672 "other modifiers).  What guestfish actually does is to multiply the number "
36673 "part by the modifier part and pass the result to the C API.  However this "
36674 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36675 "expecting some other unit (eg. megabytes)."
36676 msgstr ""
36677
36678 #. type: textblock
36679 #: ../src/guestfs.pod:859
36680 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
36681 msgstr ""
36682
36683 #. type: verbatim
36684 #: ../src/guestfs.pod:861
36685 #, no-wrap
36686 msgid ""
36687 " lvcreate LV VG 100M\n"
36688 "\n"
36689 msgstr ""
36690
36691 #. type: textblock
36692 #: ../src/guestfs.pod:863
36693 msgid ""
36694 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36695 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36696 "megabytes * megabytes) logical volume.  The error message you get from this "
36697 "is also a little obscure."
36698 msgstr ""
36699
36700 #. type: textblock
36701 #: ../src/guestfs.pod:868
36702 msgid ""
36703 "This could be fixed in the generator by specially marking parameters and "
36704 "return values which take bytes or other units."
36705 msgstr ""
36706
36707 #. type: =item
36708 #: ../src/guestfs.pod:871
36709 msgid "Ambiguity between devices and paths"
36710 msgstr ""
36711
36712 #. type: textblock
36713 #: ../src/guestfs.pod:873
36714 msgid ""
36715 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
36716 "sdb2>) and a similar pathname.  A file might just happen to be called "
36717 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36718 msgstr ""
36719
36720 #. type: textblock
36721 #: ../src/guestfs.pod:878
36722 msgid ""
36723 "In the current API we usually resolve this ambiguity by having two separate "
36724 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36725 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36726 "detecting if the path supplied begins with C</dev/>."
36727 msgstr ""
36728
36729 #. type: textblock
36730 #: ../src/guestfs.pod:884
36731 msgid ""
36732 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36733 "make paths/devices into structured names.  One way to do this would be to "
36734 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36735 "aspect of grub.  Another way would be to use a structured type, equivalent "
36736 "to this OCaml type:"
36737 msgstr ""
36738
36739 #. type: verbatim
36740 #: ../src/guestfs.pod:890
36741 #, no-wrap
36742 msgid ""
36743 " type path = Path of string | Device of int | Partition of int * int\n"
36744 "\n"
36745 msgstr ""
36746
36747 #. type: textblock
36748 #: ../src/guestfs.pod:892
36749 msgid "which would allow you to pass arguments like:"
36750 msgstr ""
36751
36752 #. type: verbatim
36753 #: ../src/guestfs.pod:894
36754 #, no-wrap
36755 msgid ""
36756 " Path \"/foo/bar\"\n"
36757 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
36758 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36759 " Path \"/dev/sdb2\"    (* not a device *)\n"
36760 "\n"
36761 msgstr ""
36762
36763 #. type: textblock
36764 #: ../src/guestfs.pod:899
36765 msgid ""
36766 "As you can see there are still problems to resolve even with this "
36767 "representation.  Also consider how it might work in guestfish."
36768 msgstr ""
36769
36770 #. type: =head2
36771 #: ../src/guestfs.pod:904
36772 msgid "KEYS AND PASSPHRASES"
36773 msgstr ""
36774
36775 #. type: textblock
36776 #: ../src/guestfs.pod:906
36777 msgid ""
36778 "Certain libguestfs calls take a parameter that contains sensitive key "
36779 "material, passed in as a C string."
36780 msgstr ""
36781
36782 #. type: textblock
36783 #: ../src/guestfs.pod:909
36784 msgid ""
36785 "In the future we would hope to change the libguestfs implementation so that "
36786 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36787 "swap.  However this is I<not> done at the moment, because of the complexity "
36788 "of such an implementation."
36789 msgstr ""
36790
36791 #. type: textblock
36792 #: ../src/guestfs.pod:914
36793 msgid ""
36794 "Therefore you should be aware that any key parameter you pass to libguestfs "
36795 "might end up being written out to the swap partition.  If this is a concern, "
36796 "scrub the swap partition or don't use libguestfs on encrypted devices."
36797 msgstr ""
36798
36799 #. type: =head2
36800 #: ../src/guestfs.pod:919
36801 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36802 msgstr ""
36803
36804 #. type: textblock
36805 #: ../src/guestfs.pod:921
36806 msgid ""
36807 "All high-level libguestfs actions are synchronous.  If you want to use "
36808 "libguestfs asynchronously then you must create a thread."
36809 msgstr ""
36810
36811 #. type: textblock
36812 #: ../src/guestfs.pod:924
36813 msgid ""
36814 "Only use the handle from a single thread.  Either use the handle exclusively "
36815 "from one thread, or provide your own mutex so that two threads cannot issue "
36816 "calls on the same handle at the same time."
36817 msgstr ""
36818
36819 #. type: textblock
36820 #: ../src/guestfs.pod:928
36821 msgid ""
36822 "See the graphical program guestfs-browser for one possible architecture for "
36823 "multithreaded programs using libvirt and libguestfs."
36824 msgstr ""
36825
36826 #. type: =head2
36827 #: ../src/guestfs.pod:931
36828 msgid "PATH"
36829 msgstr ""
36830
36831 #. type: textblock
36832 #: ../src/guestfs.pod:933
36833 msgid ""
36834 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36835 "internal path."
36836 msgstr ""
36837
36838 #. type: textblock
36839 #: ../src/guestfs.pod:936
36840 msgid ""
36841 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36842 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36843 msgstr ""
36844
36845 #. type: textblock
36846 #: ../src/guestfs.pod:939
36847 msgid ""
36848 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36849 "to change the directories that libguestfs will search in.  The value is a "
36850 "colon-separated list of paths.  The current directory is I<not> searched "
36851 "unless the path contains an empty element or C<.>.  For example "
36852 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36853 "then C</usr/lib/guestfs>."
36854 msgstr ""
36855
36856 #. type: =head2
36857 #: ../src/guestfs.pod:946
36858 msgid "QEMU WRAPPERS"
36859 msgstr ""
36860
36861 #. type: textblock
36862 #: ../src/guestfs.pod:948
36863 msgid ""
36864 "If you want to compile your own qemu, run qemu from a non-standard location, "
36865 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36866 "around qemu."
36867 msgstr ""
36868
36869 #. type: textblock
36870 #: ../src/guestfs.pod:952
36871 msgid ""
36872 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36873 "last command in the shell script (so that qemu replaces the shell and "
36874 "becomes the direct child of the libguestfs-using program).  If you don't do "
36875 "this, then the qemu process won't be cleaned up correctly."
36876 msgstr ""
36877
36878 #. type: textblock
36879 #: ../src/guestfs.pod:957
36880 msgid ""
36881 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36882 "source:"
36883 msgstr ""
36884
36885 #. type: verbatim
36886 #: ../src/guestfs.pod:960
36887 #, no-wrap
36888 msgid ""
36889 " #!/bin/sh -\n"
36890 " qemudir=/home/rjones/d/qemu\n"
36891 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36892 "\n"
36893 msgstr ""
36894
36895 #. type: textblock
36896 #: ../src/guestfs.pod:964
36897 msgid ""
36898 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36899 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36900 "example:"
36901 msgstr ""
36902
36903 #. type: verbatim
36904 #: ../src/guestfs.pod:968
36905 #, no-wrap
36906 msgid ""
36907 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36908 "\n"
36909 msgstr ""
36910
36911 #. type: textblock
36912 #: ../src/guestfs.pod:970
36913 msgid ""
36914 "Note that libguestfs also calls qemu with the -help and -version options in "
36915 "order to determine features."
36916 msgstr ""
36917
36918 #. type: textblock
36919 #: ../src/guestfs.pod:973
36920 msgid ""
36921 "Wrappers can also be used to edit the options passed to qemu.  In the "
36922 "following example, the C<-machine ...> option (C<-machine> and the following "
36923 "argument) are removed from the command line and replaced with C<-machine pc,"
36924 "accel=tcg>.  The while loop iterates over the options until it finds the "
36925 "right one to remove, putting the remaining options into the C<args> array."
36926 msgstr ""
36927
36928 #. type: verbatim
36929 #: ../src/guestfs.pod:982
36930 #, no-wrap
36931 msgid ""
36932 " i=0\n"
36933 " while [ $# -gt 0 ]; do\n"
36934 "     case \"$1\" in\n"
36935 "     -machine)\n"
36936 "         shift 2;;\n"
36937 "     *)\n"
36938 "         args[i]=\"$1\"\n"
36939 "         (( i++ ))\n"
36940 "         shift ;;\n"
36941 "     esac\n"
36942 " done\n"
36943 " \n"
36944 msgstr ""
36945
36946 #. type: verbatim
36947 #: ../src/guestfs.pod:994
36948 #, no-wrap
36949 msgid ""
36950 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36951 "\n"
36952 msgstr ""
36953
36954 #. type: =head2
36955 #: ../src/guestfs.pod:996
36956 msgid "ATTACHING TO RUNNING DAEMONS"
36957 msgstr ""
36958
36959 #. type: textblock
36960 #: ../src/guestfs.pod:998
36961 msgid ""
36962 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36963 "babies.  Use with caution."
36964 msgstr ""
36965
36966 #. type: textblock
36967 #: ../src/guestfs.pod:1001
36968 msgid ""
36969 "I<Note (2):> This section explains how to attach to a running daemon from a "
36970 "low level perspective.  For most users, simply using virt tools such as "
36971 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36972 msgstr ""
36973
36974 #. type: =head3
36975 #: ../src/guestfs.pod:1005
36976 msgid "Using guestfs_set_attach_method"
36977 msgstr ""
36978
36979 #. type: textblock
36980 #: ../src/guestfs.pod:1007
36981 msgid ""
36982 "By calling L</guestfs_set_attach_method> you can change how the library "
36983 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36984 "ARCHITECTURE> for some background)."
36985 msgstr ""
36986
36987 #. type: textblock
36988 #: ../src/guestfs.pod:1011
36989 msgid ""
36990 "The normal attach method is C<appliance>, where a small appliance is created "
36991 "containing the daemon, and then the library connects to this."
36992 msgstr ""
36993
36994 #. type: textblock
36995 #: ../src/guestfs.pod:1014
36996 msgid ""
36997 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36998 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36999 "daemon over the Unix domain socket."
37000 msgstr ""
37001
37002 #. type: textblock
37003 #: ../src/guestfs.pod:1018
37004 msgid ""
37005 "The normal use for this is to connect to a running virtual machine that "
37006 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37007 "files inside the live virtual machine."
37008 msgstr ""
37009
37010 #. type: =head3
37011 #: ../src/guestfs.pod:1022
37012 msgid "Using guestfs_add_domain with live flag"
37013 msgstr ""
37014
37015 #. type: textblock
37016 #: ../src/guestfs.pod:1024
37017 msgid ""
37018 "L</guestfs_add_domain> provides some help for getting the correct attach "
37019 "method.  If you pass the C<live> option to this function, then (if the "
37020 "virtual machine is running) it will examine the libvirt XML looking for a "
37021 "virtio-serial channel to connect to:"
37022 msgstr ""
37023
37024 #. type: verbatim
37025 #: ../src/guestfs.pod:1030
37026 #, no-wrap
37027 msgid ""
37028 " <domain>\n"
37029 "   ...\n"
37030 "   <devices>\n"
37031 "     ...\n"
37032 "     <channel type='unix'>\n"
37033 "       <source mode='bind' path='/path/to/socket'/>\n"
37034 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37035 "     </channel>\n"
37036 "     ...\n"
37037 "   </devices>\n"
37038 " </domain>\n"
37039 "\n"
37040 msgstr ""
37041
37042 #. type: textblock
37043 #: ../src/guestfs.pod:1042
37044 msgid ""
37045 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37046 "method to C<unix:/path/to/socket>."
37047 msgstr ""
37048
37049 #. type: textblock
37050 #: ../src/guestfs.pod:1045
37051 msgid ""
37052 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37053 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37054 "to attach to and modify live virtual machines."
37055 msgstr ""
37056
37057 #. type: textblock
37058 #: ../src/guestfs.pod:1049
37059 msgid ""
37060 "The virtual machine needs to have been set up beforehand so that it has the "
37061 "virtio-serial channel and so that guestfsd is running inside it."
37062 msgstr ""
37063
37064 #. type: =head2
37065 #: ../src/guestfs.pod:1053
37066 msgid "ABI GUARANTEE"
37067 msgstr ""
37068
37069 #. type: textblock
37070 #: ../src/guestfs.pod:1055
37071 msgid ""
37072 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37073 "actions as outlined in this section.  Although we will deprecate some "
37074 "actions, for example if they get replaced by newer calls, we will keep the "
37075 "old actions forever.  This allows you the developer to program in confidence "
37076 "against the libguestfs API."
37077 msgstr ""
37078
37079 #. type: =head2
37080 #: ../src/guestfs.pod:1061
37081 msgid "BLOCK DEVICE NAMING"
37082 msgstr ""
37083
37084 #. type: textblock
37085 #: ../src/guestfs.pod:1063
37086 msgid ""
37087 "In the kernel there is now quite a profusion of schemata for naming block "
37088 "devices (in this context, by I<block device> I mean a physical or virtual "
37089 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
37090 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
37091 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
37092 "for the old IDE driver (particularly for SATA devices) those devices also "
37093 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
37094 "paravirtualized drivers.  This has created several different naming systems, "
37095 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37096 msgstr ""
37097
37098 #. type: textblock
37099 #: ../src/guestfs.pod:1075
37100 msgid ""
37101 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37102 "Linux kernel to access block devices.  We can run a variety of appliances "
37103 "based on a variety of Linux kernels."
37104 msgstr ""
37105
37106 #. type: textblock
37107 #: ../src/guestfs.pod:1079
37108 msgid ""
37109 "This causes a problem for libguestfs because many API calls use device or "
37110 "partition names.  Working scripts and the recipe (example) scripts that we "
37111 "make available over the internet could fail if the naming scheme changes."
37112 msgstr ""
37113
37114 #. type: textblock
37115 #: ../src/guestfs.pod:1084
37116 msgid ""
37117 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
37118 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37119 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37120 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37121 msgstr ""
37122
37123 #. type: textblock
37124 #: ../src/guestfs.pod:1090
37125 msgid ""
37126 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
37127 "L</guestfs_list_partitions> and similar calls return the true names of the "
37128 "devices and partitions as known to the appliance."
37129 msgstr ""
37130
37131 #. type: =head3
37132 #: ../src/guestfs.pod:1095
37133 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37134 msgstr ""
37135
37136 #. type: textblock
37137 #: ../src/guestfs.pod:1097
37138 msgid ""
37139 "Usually this translation is transparent.  However in some (very rare)  cases "
37140 "you may need to know the exact algorithm.  Such cases include where you use "
37141 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37142 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37143 msgstr ""
37144
37145 #. type: textblock
37146 #: ../src/guestfs.pod:1103
37147 msgid ""
37148 "The algorithm is applied only to I<parameters> which are known to be either "
37149 "device or partition names.  Return values from functions such as L</"
37150 "guestfs_list_devices> are never changed."
37151 msgstr ""
37152
37153 #. type: textblock
37154 #: ../src/guestfs.pod:1111
37155 msgid "Is the string a parameter which is a device or partition name?"
37156 msgstr ""
37157
37158 #. type: textblock
37159 #: ../src/guestfs.pod:1115
37160 msgid "Does the string begin with C</dev/sd>?"
37161 msgstr ""
37162
37163 #. type: textblock
37164 #: ../src/guestfs.pod:1119
37165 msgid ""
37166 "Does the named device exist? If so, we use that device.  However if I<not> "
37167 "then we continue with this algorithm."
37168 msgstr ""
37169
37170 #. type: textblock
37171 #: ../src/guestfs.pod:1124
37172 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37173 msgstr ""
37174
37175 #. type: textblock
37176 #: ../src/guestfs.pod:1126
37177 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37178 msgstr ""
37179
37180 #. type: textblock
37181 #: ../src/guestfs.pod:1128
37182 msgid "If that named device exists, use it.  If not, continue."
37183 msgstr ""
37184
37185 #. type: textblock
37186 #: ../src/guestfs.pod:1132
37187 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37188 msgstr ""
37189
37190 #. type: textblock
37191 #: ../src/guestfs.pod:1134
37192 msgid "If that named device exists, use it.  If not, return an error."
37193 msgstr ""
37194
37195 #. type: =head3
37196 #: ../src/guestfs.pod:1138
37197 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37198 msgstr ""
37199
37200 #. type: textblock
37201 #: ../src/guestfs.pod:1140
37202 msgid ""
37203 "Although the standard naming scheme and automatic translation is useful for "
37204 "simple programs and guestfish scripts, for larger programs it is best not to "
37205 "rely on this mechanism."
37206 msgstr ""
37207
37208 #. type: textblock
37209 #: ../src/guestfs.pod:1144
37210 msgid ""
37211 "Where possible for maximum future portability programs using libguestfs "
37212 "should use these future-proof techniques:"
37213 msgstr ""
37214
37215 #. type: textblock
37216 #: ../src/guestfs.pod:1151
37217 msgid ""
37218 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37219 "device names, and then use those names directly."
37220 msgstr ""
37221
37222 #. type: textblock
37223 #: ../src/guestfs.pod:1154
37224 msgid ""
37225 "Since those device names exist by definition, they will never be translated."
37226 msgstr ""
37227
37228 #. type: textblock
37229 #: ../src/guestfs.pod:1159
37230 msgid ""
37231 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37232 "filesystem labels."
37233 msgstr ""
37234
37235 #. type: textblock
37236 #: ../src/guestfs.pod:1166
37237 msgid ""
37238 "This section discusses security implications of using libguestfs, "
37239 "particularly with untrusted or malicious guests or disk images."
37240 msgstr ""
37241
37242 #. type: =head2
37243 #: ../src/guestfs.pod:1169
37244 msgid "GENERAL SECURITY CONSIDERATIONS"
37245 msgstr ""
37246
37247 #. type: textblock
37248 #: ../src/guestfs.pod:1171
37249 msgid ""
37250 "Be careful with any files or data that you download from a guest (by "
37251 "\"download\" we mean not just the L</guestfs_download> command but any "
37252 "command that reads files, filenames, directories or anything else from a "
37253 "disk image).  An attacker could manipulate the data to fool your program "
37254 "into doing the wrong thing.  Consider cases such as:"
37255 msgstr ""
37256
37257 #. type: textblock
37258 #: ../src/guestfs.pod:1181
37259 msgid "the data (file etc) not being present"
37260 msgstr ""
37261
37262 #. type: textblock
37263 #: ../src/guestfs.pod:1185
37264 msgid "being present but empty"
37265 msgstr ""
37266
37267 #. type: textblock
37268 #: ../src/guestfs.pod:1189
37269 msgid "being much larger than normal"
37270 msgstr ""
37271
37272 #. type: textblock
37273 #: ../src/guestfs.pod:1193
37274 msgid "containing arbitrary 8 bit data"
37275 msgstr ""
37276
37277 #. type: textblock
37278 #: ../src/guestfs.pod:1197
37279 msgid "being in an unexpected character encoding"
37280 msgstr ""
37281
37282 #. type: textblock
37283 #: ../src/guestfs.pod:1201
37284 msgid "containing homoglyphs."
37285 msgstr ""
37286
37287 #. type: =head2
37288 #: ../src/guestfs.pod:1205
37289 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37290 msgstr ""
37291
37292 #. type: textblock
37293 #: ../src/guestfs.pod:1207
37294 msgid ""
37295 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37296 "(VFS) module can sometimes be escalated into exploits by deliberately "
37297 "creating a malicious, malformed filesystem.  These exploits are very severe "
37298 "for two reasons.  Firstly there are very many filesystem drivers in the "
37299 "kernel, and many of them are infrequently used and not much developer "
37300 "attention has been paid to the code.  Linux userspace helps potential "
37301 "crackers by detecting the filesystem type and automatically choosing the "
37302 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37303 "the administrator.  Secondly, a kernel-level exploit is like a local root "
37304 "exploit (worse in some ways), giving immediate and total access to the "
37305 "system right down to the hardware level."
37306 msgstr ""
37307
37308 #. type: textblock
37309 #: ../src/guestfs.pod:1220
37310 msgid ""
37311 "That explains why you should never mount a filesystem from an untrusted "
37312 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
37313 "inside a qemu virtual machine, usually running as a non-root user.  The "
37314 "attacker would need to write a filesystem which first exploited the kernel, "
37315 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37316 "the libguestfs protocol, and finally to be as serious as the host kernel "
37317 "exploit it would need to escalate its privileges to root.  This multi-step "
37318 "escalation, performed by a static piece of data, is thought to be extremely "
37319 "hard to do, although we never say 'never' about security issues."
37320 msgstr ""
37321
37322 #. type: textblock
37323 #: ../src/guestfs.pod:1231
37324 msgid ""
37325 "In any case callers can reduce the attack surface by forcing the filesystem "
37326 "type when mounting (use L</guestfs_mount_vfs>)."
37327 msgstr ""
37328
37329 #. type: =head2
37330 #: ../src/guestfs.pod:1234
37331 msgid "PROTOCOL SECURITY"
37332 msgstr ""
37333
37334 #. type: textblock
37335 #: ../src/guestfs.pod:1236
37336 msgid ""
37337 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37338 "defined upper message size.  However a program that uses libguestfs must "
37339 "also take care - for example you can write a program that downloads a binary "
37340 "from a disk image and executes it locally, and no amount of protocol "
37341 "security will save you from the consequences."
37342 msgstr ""
37343
37344 #. type: =head2
37345 #: ../src/guestfs.pod:1242
37346 msgid "INSPECTION SECURITY"
37347 msgstr ""
37348
37349 #. type: textblock
37350 #: ../src/guestfs.pod:1244
37351 msgid ""
37352 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37353 "directly from the guest, and these could contain any 8 bit data.  Callers "
37354 "should be careful to escape these before printing them to a structured file "
37355 "(for example, use HTML escaping if creating a web page)."
37356 msgstr ""
37357
37358 #. type: textblock
37359 #: ../src/guestfs.pod:1250
37360 msgid ""
37361 "Guest configuration may be altered in unusual ways by the administrator of "
37362 "the virtual machine, and may not reflect reality (particularly for untrusted "
37363 "or actively malicious guests).  For example we parse the hostname from "
37364 "configuration files like C</etc/sysconfig/network> that we find in the "
37365 "guest, but the guest administrator can easily manipulate these files to "
37366 "provide the wrong hostname."
37367 msgstr ""
37368
37369 #. type: textblock
37370 #: ../src/guestfs.pod:1258
37371 msgid ""
37372 "The inspection API parses guest configuration using two external libraries: "
37373 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37374 "designed to be robust in the face of malicious data, although denial of "
37375 "service attacks are still possible, for example with oversized configuration "
37376 "files."
37377 msgstr ""
37378
37379 #. type: =head2
37380 #: ../src/guestfs.pod:1264
37381 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37382 msgstr ""
37383
37384 #. type: textblock
37385 #: ../src/guestfs.pod:1266
37386 msgid ""
37387 "Be very cautious about running commands from the guest.  By running a "
37388 "command in the guest, you are giving CPU time to a binary that you do not "
37389 "control, under the same user account as the library, albeit wrapped in qemu "
37390 "virtualization.  More information and alternatives can be found in the "
37391 "section L</RUNNING COMMANDS>."
37392 msgstr ""
37393
37394 #. type: =head2
37395 #: ../src/guestfs.pod:1272
37396 msgid "CVE-2010-3851"
37397 msgstr ""
37398
37399 #. type: textblock
37400 #: ../src/guestfs.pod:1274
37401 msgid "https://bugzilla.redhat.com/642934"
37402 msgstr ""
37403
37404 #. type: textblock
37405 #: ../src/guestfs.pod:1276
37406 msgid ""
37407 "This security bug concerns the automatic disk format detection that qemu "
37408 "does on disk images."
37409 msgstr ""
37410
37411 #. type: textblock
37412 #: ../src/guestfs.pod:1279
37413 msgid ""
37414 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37415 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37416 "for one of the known headers, and if none is found then assuming the disk "
37417 "image must be raw."
37418 msgstr ""
37419
37420 #. type: textblock
37421 #: ../src/guestfs.pod:1284
37422 msgid ""
37423 "This allows a guest which has been given a raw disk image to write some "
37424 "other header.  At next boot (or when the disk image is accessed by "
37425 "libguestfs) qemu would do autodetection and think the disk image format was, "
37426 "say, qcow2 based on the header written by the guest."
37427 msgstr ""
37428
37429 #. type: textblock
37430 #: ../src/guestfs.pod:1289
37431 msgid ""
37432 "This in itself would not be a problem, but qcow2 offers many features, one "
37433 "of which is to allow a disk image to refer to another image (called the "
37434 "\"backing disk\").  It does this by placing the path to the backing disk "
37435 "into the qcow2 header.  This path is not validated and could point to any "
37436 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37437 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37438 "control of the attacker."
37439 msgstr ""
37440
37441 #. type: textblock
37442 #: ../src/guestfs.pod:1297
37443 msgid ""
37444 "In libguestfs this is rather hard to exploit except under two circumstances:"
37445 msgstr ""
37446
37447 #. type: textblock
37448 #: ../src/guestfs.pod:1304
37449 msgid "You have enabled the network or have opened the disk in write mode."
37450 msgstr ""
37451
37452 #. type: textblock
37453 #: ../src/guestfs.pod:1308
37454 msgid ""
37455 "You are also running untrusted code from the guest (see L</RUNNING "
37456 "COMMANDS>)."
37457 msgstr ""
37458
37459 #. type: textblock
37460 #: ../src/guestfs.pod:1313
37461 msgid ""
37462 "The way to avoid this is to specify the expected disk format when adding "
37463 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37464 "should always do this if the disk is raw format, and it's a good idea for "
37465 "other cases too."
37466 msgstr ""
37467
37468 #. type: textblock
37469 #: ../src/guestfs.pod:1318
37470 msgid ""
37471 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37472 "format is fetched from libvirt and passed through."
37473 msgstr ""
37474
37475 #. type: textblock
37476 #: ../src/guestfs.pod:1321
37477 msgid ""
37478 "For libguestfs tools, use the I<--format> command line parameter as "
37479 "appropriate."
37480 msgstr ""
37481
37482 #. type: =head1
37483 #: ../src/guestfs.pod:1324
37484 msgid "CONNECTION MANAGEMENT"
37485 msgstr ""
37486
37487 #. type: =head2
37488 #: ../src/guestfs.pod:1326
37489 msgid "guestfs_h *"
37490 msgstr ""
37491
37492 #. type: textblock
37493 #: ../src/guestfs.pod:1328
37494 msgid ""
37495 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37496 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37497 "handle and release all resources used."
37498 msgstr ""
37499
37500 #. type: textblock
37501 #: ../src/guestfs.pod:1332
37502 msgid ""
37503 "For information on using multiple handles and threads, see the section L</"
37504 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37505 msgstr ""
37506
37507 #. type: =head2
37508 #: ../src/guestfs.pod:1335
37509 msgid "guestfs_create"
37510 msgstr ""
37511
37512 #. type: verbatim
37513 #: ../src/guestfs.pod:1337
37514 #, no-wrap
37515 msgid ""
37516 " guestfs_h *guestfs_create (void);\n"
37517 "\n"
37518 msgstr ""
37519
37520 #. type: textblock
37521 #: ../src/guestfs.pod:1339
37522 msgid "Create a connection handle."
37523 msgstr ""
37524
37525 #. type: textblock
37526 #: ../src/guestfs.pod:1341
37527 msgid ""
37528 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37529 "NULL."
37530 msgstr ""
37531
37532 #. type: textblock
37533 #: ../src/guestfs.pod:1344
37534 msgid ""
37535 "You have to \"configure\" the handle after creating it.  This includes "
37536 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37537 "handle at least once."
37538 msgstr ""
37539
37540 #. type: textblock
37541 #: ../src/guestfs.pod:1348
37542 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37543 msgstr ""
37544
37545 #. type: textblock
37546 #: ../src/guestfs.pod:1350
37547 msgid ""
37548 "You may also want to configure error handling for the handle.  See the L</"
37549 "ERROR HANDLING> section below."
37550 msgstr ""
37551
37552 #. type: =head2
37553 #: ../src/guestfs.pod:1353
37554 msgid "guestfs_close"
37555 msgstr ""
37556
37557 #. type: verbatim
37558 #: ../src/guestfs.pod:1355
37559 #, no-wrap
37560 msgid ""
37561 " void guestfs_close (guestfs_h *g);\n"
37562 "\n"
37563 msgstr ""
37564
37565 #. type: textblock
37566 #: ../src/guestfs.pod:1357
37567 msgid "This closes the connection handle and frees up all resources used."
37568 msgstr ""
37569
37570 #. type: textblock
37571 #: ../src/guestfs.pod:1359
37572 msgid ""
37573 "If autosync was set on the handle and the handle was launched, then this "
37574 "implicitly calls various functions to unmount filesystems and sync the "
37575 "disk.  See L</guestfs_set_autosync> for more details."
37576 msgstr ""
37577
37578 #. type: textblock
37579 #: ../src/guestfs.pod:1363
37580 msgid "If a close callback was set on the handle, then it is called."
37581 msgstr ""
37582
37583 #. type: =head1
37584 #: ../src/guestfs.pod:1365
37585 msgid "ERROR HANDLING"
37586 msgstr ""
37587
37588 #. type: textblock
37589 #: ../src/guestfs.pod:1367
37590 msgid ""
37591 "API functions can return errors.  For example, almost all functions that "
37592 "return C<int> will return C<-1> to indicate an error."
37593 msgstr ""
37594
37595 #. type: textblock
37596 #: ../src/guestfs.pod:1370
37597 msgid ""
37598 "Additional information is available for errors: an error message string and "
37599 "optionally an error number (errno) if the thing that failed was a system "
37600 "call."
37601 msgstr ""
37602
37603 #. type: textblock
37604 #: ../src/guestfs.pod:1374
37605 msgid ""
37606 "You can get at the additional information about the last error on the handle "
37607 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37608 "up an error handler with L</guestfs_set_error_handler>."
37609 msgstr ""
37610
37611 #. type: textblock
37612 #: ../src/guestfs.pod:1379
37613 msgid ""
37614 "When the handle is created, a default error handler is installed which "
37615 "prints the error message string to C<stderr>.  For small short-running "
37616 "command line programs it is sufficient to do:"
37617 msgstr ""
37618
37619 #. type: verbatim
37620 #: ../src/guestfs.pod:1383
37621 #, no-wrap
37622 msgid ""
37623 " if (guestfs_launch (g) == -1)\n"
37624 "   exit (EXIT_FAILURE);\n"
37625 "\n"
37626 msgstr ""
37627
37628 #. type: textblock
37629 #: ../src/guestfs.pod:1386
37630 msgid ""
37631 "since the default error handler will ensure that an error message has been "
37632 "printed to C<stderr> before the program exits."
37633 msgstr ""
37634
37635 #. type: textblock
37636 #: ../src/guestfs.pod:1389
37637 msgid ""
37638 "For other programs the caller will almost certainly want to install an "
37639 "alternate error handler or do error handling in-line like this:"
37640 msgstr ""
37641
37642 #. type: verbatim
37643 #: ../src/guestfs.pod:1392
37644 #, no-wrap
37645 msgid ""
37646 " /* This disables the default behaviour of printing errors\n"
37647 "    on stderr. */\n"
37648 " guestfs_set_error_handler (g, NULL, NULL);\n"
37649 " \n"
37650 msgstr ""
37651
37652 #. type: verbatim
37653 #: ../src/guestfs.pod:1396
37654 #, no-wrap
37655 msgid ""
37656 " if (guestfs_launch (g) == -1) {\n"
37657 "   /* Examine the error message and print it etc. */\n"
37658 "   char *msg = guestfs_last_error (g);\n"
37659 "   int errnum = guestfs_last_errno (g);\n"
37660 "   fprintf (stderr, \"%s\", msg);\n"
37661 "   if (errnum != 0)\n"
37662 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
37663 "   fprintf (stderr, \"\\n\");\n"
37664 "   /* ... */\n"
37665 " }\n"
37666 "\n"
37667 msgstr ""
37668
37669 #. type: textblock
37670 #: ../src/guestfs.pod:1407
37671 msgid ""
37672 "Out of memory errors are handled differently.  The default action is to call "
37673 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
37674 "guestfs_set_out_of_memory_handler>."
37675 msgstr ""
37676
37677 #. type: textblock
37678 #: ../src/guestfs.pod:1411
37679 msgid ""
37680 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37681 "because there is no handle if this happens there is no way to get additional "
37682 "error information.  However L</guestfs_create> is supposed to be a "
37683 "lightweight operation which can only fail because of insufficient memory (it "
37684 "returns NULL in this case)."
37685 msgstr ""
37686
37687 #. type: =head2
37688 #: ../src/guestfs.pod:1417
37689 msgid "guestfs_last_error"
37690 msgstr ""
37691
37692 #. type: verbatim
37693 #: ../src/guestfs.pod:1419
37694 #, no-wrap
37695 msgid ""
37696 " const char *guestfs_last_error (guestfs_h *g);\n"
37697 "\n"
37698 msgstr ""
37699
37700 #. type: textblock
37701 #: ../src/guestfs.pod:1421
37702 msgid ""
37703 "This returns the last error message that happened on C<g>.  If there has not "
37704 "been an error since the handle was created, then this returns C<NULL>."
37705 msgstr ""
37706
37707 #. type: textblock
37708 #: ../src/guestfs.pod:1425
37709 msgid ""
37710 "The lifetime of the returned string is until the next error occurs, or L</"
37711 "guestfs_close> is called."
37712 msgstr ""
37713
37714 #. type: =head2
37715 #: ../src/guestfs.pod:1428
37716 msgid "guestfs_last_errno"
37717 msgstr ""
37718
37719 #. type: verbatim
37720 #: ../src/guestfs.pod:1430
37721 #, no-wrap
37722 msgid ""
37723 " int guestfs_last_errno (guestfs_h *g);\n"
37724 "\n"
37725 msgstr ""
37726
37727 #. type: textblock
37728 #: ../src/guestfs.pod:1432
37729 msgid "This returns the last error number (errno) that happened on C<g>."
37730 msgstr ""
37731
37732 #. type: textblock
37733 #: ../src/guestfs.pod:1434
37734 msgid "If successful, an errno integer not equal to zero is returned."
37735 msgstr ""
37736
37737 #. type: textblock
37738 #: ../src/guestfs.pod:1436
37739 msgid ""
37740 "If no error, this returns 0.  This call can return 0 in three situations:"
37741 msgstr ""
37742
37743 #. type: textblock
37744 #: ../src/guestfs.pod:1443
37745 msgid "There has not been any error on the handle."
37746 msgstr ""
37747
37748 #. type: textblock
37749 #: ../src/guestfs.pod:1447
37750 msgid ""
37751 "There has been an error but the errno was meaningless.  This corresponds to "
37752 "the case where the error did not come from a failed system call, but for "
37753 "some other reason."
37754 msgstr ""
37755
37756 #. type: textblock
37757 #: ../src/guestfs.pod:1453
37758 msgid ""
37759 "There was an error from a failed system call, but for some reason the errno "
37760 "was not captured and returned.  This usually indicates a bug in libguestfs."
37761 msgstr ""
37762
37763 #. type: textblock
37764 #: ../src/guestfs.pod:1459
37765 msgid ""
37766 "Libguestfs tries to convert the errno from inside the applicance into a "
37767 "corresponding errno for the caller (not entirely trivial: the appliance "
37768 "might be running a completely different operating system from the library "
37769 "and error numbers are not standardized across Un*xen).  If this could not be "
37770 "done, then the error is translated to C<EINVAL>.  In practice this should "
37771 "only happen in very rare circumstances."
37772 msgstr ""
37773
37774 #. type: =head2
37775 #: ../src/guestfs.pod:1467
37776 msgid "guestfs_set_error_handler"
37777 msgstr ""
37778
37779 #. type: verbatim
37780 #: ../src/guestfs.pod:1469
37781 #, no-wrap
37782 msgid ""
37783 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37784 "                                           void *opaque,\n"
37785 "                                           const char *msg);\n"
37786 " void guestfs_set_error_handler (guestfs_h *g,\n"
37787 "                                 guestfs_error_handler_cb cb,\n"
37788 "                                 void *opaque);\n"
37789 "\n"
37790 msgstr ""
37791
37792 #. type: textblock
37793 #: ../src/guestfs.pod:1476
37794 msgid ""
37795 "The callback C<cb> will be called if there is an error.  The parameters "
37796 "passed to the callback are an opaque data pointer and the error message "
37797 "string."
37798 msgstr ""
37799
37800 #. type: textblock
37801 #: ../src/guestfs.pod:1480
37802 msgid ""
37803 "C<errno> is not passed to the callback.  To get that the callback must call "
37804 "L</guestfs_last_errno>."
37805 msgstr ""
37806
37807 #. type: textblock
37808 #: ../src/guestfs.pod:1483
37809 msgid ""
37810 "Note that the message string C<msg> is freed as soon as the callback "
37811 "function returns, so if you want to stash it somewhere you must make your "
37812 "own copy."
37813 msgstr ""
37814
37815 #. type: textblock
37816 #: ../src/guestfs.pod:1487
37817 msgid "The default handler prints messages on C<stderr>."
37818 msgstr ""
37819
37820 #. type: textblock
37821 #: ../src/guestfs.pod:1489
37822 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37823 msgstr ""
37824
37825 #. type: =head2
37826 #: ../src/guestfs.pod:1491
37827 msgid "guestfs_get_error_handler"
37828 msgstr ""
37829
37830 #. type: verbatim
37831 #: ../src/guestfs.pod:1493
37832 #, no-wrap
37833 msgid ""
37834 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37835 "                                                     void **opaque_rtn);\n"
37836 "\n"
37837 msgstr ""
37838
37839 #. type: textblock
37840 #: ../src/guestfs.pod:1496
37841 msgid "Returns the current error handler callback."
37842 msgstr ""
37843
37844 #. type: =head2
37845 #: ../src/guestfs.pod:1498
37846 msgid "guestfs_set_out_of_memory_handler"
37847 msgstr ""
37848
37849 #. type: verbatim
37850 #: ../src/guestfs.pod:1500
37851 #, no-wrap
37852 msgid ""
37853 " typedef void (*guestfs_abort_cb) (void);\n"
37854 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37855 "                                         guestfs_abort_cb);\n"
37856 "\n"
37857 msgstr ""
37858
37859 #. type: textblock
37860 #: ../src/guestfs.pod:1504
37861 msgid ""
37862 "The callback C<cb> will be called if there is an out of memory situation.  "
37863 "I<Note this callback must not return>."
37864 msgstr ""
37865
37866 #. type: textblock
37867 #: ../src/guestfs.pod:1507
37868 msgid "The default is to call L<abort(3)>."
37869 msgstr ""
37870
37871 #. type: textblock
37872 #: ../src/guestfs.pod:1509
37873 msgid ""
37874 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37875 msgstr ""
37876
37877 #. type: =head2
37878 #: ../src/guestfs.pod:1512
37879 msgid "guestfs_get_out_of_memory_handler"
37880 msgstr ""
37881
37882 #. type: verbatim
37883 #: ../src/guestfs.pod:1514
37884 #, no-wrap
37885 msgid ""
37886 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37887 "\n"
37888 msgstr ""
37889
37890 #. type: textblock
37891 #: ../src/guestfs.pod:1516
37892 msgid "This returns the current out of memory handler."
37893 msgstr ""
37894
37895 #. type: =head1
37896 #: ../src/guestfs.pod:1518
37897 msgid "API CALLS"
37898 msgstr ""
37899
37900 #. type: =head1
37901 #: ../src/guestfs.pod:1522
37902 msgid "STRUCTURES"
37903 msgstr ""
37904
37905 #. type: textblock
37906 #: ../src/guestfs.pod:1524
37907 msgid "@STRUCTS@"
37908 msgstr ""
37909
37910 #. type: =head1
37911 #: ../src/guestfs.pod:1526
37912 msgid "AVAILABILITY"
37913 msgstr ""
37914
37915 #. type: =head2
37916 #: ../src/guestfs.pod:1528
37917 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37918 msgstr ""
37919
37920 #. type: textblock
37921 #: ../src/guestfs.pod:1530
37922 msgid ""
37923 "Using L</guestfs_available> you can test availability of the following "
37924 "groups of functions.  This test queries the appliance to see if the "
37925 "appliance you are currently using supports the functionality."
37926 msgstr ""
37927
37928 #. type: textblock
37929 #: ../src/guestfs.pod:1535
37930 msgid "@AVAILABILITY@"
37931 msgstr ""
37932
37933 #. type: =head2
37934 #: ../src/guestfs.pod:1537
37935 msgid "GUESTFISH supported COMMAND"
37936 msgstr ""
37937
37938 #. type: textblock
37939 #: ../src/guestfs.pod:1539
37940 msgid ""
37941 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37942 "prints out the available groups and whether they are supported by this build "
37943 "of libguestfs.  Note however that you have to do C<run> first."
37944 msgstr ""
37945
37946 #. type: =head2
37947 #: ../src/guestfs.pod:1544
37948 msgid "SINGLE CALLS AT COMPILE TIME"
37949 msgstr ""
37950
37951 #. type: textblock
37952 #: ../src/guestfs.pod:1546
37953 msgid ""
37954 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37955 "function, such as:"
37956 msgstr ""
37957
37958 #. type: verbatim
37959 #: ../src/guestfs.pod:1549
37960 #, no-wrap
37961 msgid ""
37962 " #define LIBGUESTFS_HAVE_DD 1\n"
37963 "\n"
37964 msgstr ""
37965
37966 #. type: textblock
37967 #: ../src/guestfs.pod:1551
37968 msgid "if L</guestfs_dd> is available."
37969 msgstr ""
37970
37971 #. type: textblock
37972 #: ../src/guestfs.pod:1553
37973 msgid ""
37974 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37975 "function is available at compile time, we recommended using build tools such "
37976 "as autoconf or cmake.  For example in autotools you could use:"
37977 msgstr ""
37978
37979 #. type: verbatim
37980 #: ../src/guestfs.pod:1558
37981 #, no-wrap
37982 msgid ""
37983 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37984 " AC_CHECK_FUNCS([guestfs_dd])\n"
37985 "\n"
37986 msgstr ""
37987
37988 #. type: textblock
37989 #: ../src/guestfs.pod:1561
37990 msgid ""
37991 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37992 "in your program."
37993 msgstr ""
37994
37995 #. type: =head2
37996 #: ../src/guestfs.pod:1564
37997 msgid "SINGLE CALLS AT RUN TIME"
37998 msgstr ""
37999
38000 #. type: textblock
38001 #: ../src/guestfs.pod:1566
38002 msgid ""
38003 "Testing at compile time doesn't guarantee that a function really exists in "
38004 "the library.  The reason is that you might be dynamically linked against a "
38005 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
38006 "This situation unfortunately results in a segmentation fault, which is a "
38007 "shortcoming of the C dynamic linking system itself."
38008 msgstr ""
38009
38010 #. type: textblock
38011 #: ../src/guestfs.pod:1573
38012 msgid ""
38013 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38014 "in this example program (note that you still need the compile time check as "
38015 "well):"
38016 msgstr ""
38017
38018 #. type: verbatim
38019 #: ../src/guestfs.pod:1577
38020 #, no-wrap
38021 msgid ""
38022 " #include <stdio.h>\n"
38023 " #include <stdlib.h>\n"
38024 " #include <unistd.h>\n"
38025 " #include <dlfcn.h>\n"
38026 " #include <guestfs.h>\n"
38027 " \n"
38028 msgstr ""
38029
38030 #. type: verbatim
38031 #: ../src/guestfs.pod:1583
38032 #, no-wrap
38033 msgid ""
38034 " main ()\n"
38035 " {\n"
38036 " #ifdef LIBGUESTFS_HAVE_DD\n"
38037 "   void *dl;\n"
38038 "   int has_function;\n"
38039 " \n"
38040 msgstr ""
38041
38042 #. type: verbatim
38043 #: ../src/guestfs.pod:1589
38044 #, no-wrap
38045 msgid ""
38046 "   /* Test if the function guestfs_dd is really available. */\n"
38047 "   dl = dlopen (NULL, RTLD_LAZY);\n"
38048 "   if (!dl) {\n"
38049 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38050 "     exit (EXIT_FAILURE);\n"
38051 "   }\n"
38052 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38053 "   dlclose (dl);\n"
38054 " \n"
38055 msgstr ""
38056
38057 #. type: verbatim
38058 #: ../src/guestfs.pod:1598
38059 #, no-wrap
38060 msgid ""
38061 "   if (!has_function)\n"
38062 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38063 "   else {\n"
38064 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38065 "     /* Now it's safe to call\n"
38066 "     guestfs_dd (g, \"foo\", \"bar\");\n"
38067 "     */\n"
38068 "   }\n"
38069 " #else\n"
38070 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38071 " #endif\n"
38072 "  }\n"
38073 "\n"
38074 msgstr ""
38075
38076 #. type: textblock
38077 #: ../src/guestfs.pod:1611
38078 msgid ""
38079 "You may think the above is an awful lot of hassle, and it is.  There are "
38080 "other ways outside of the C linking system to ensure that this kind of "
38081 "incompatibility never arises, such as using package versioning:"
38082 msgstr ""
38083
38084 #. type: verbatim
38085 #: ../src/guestfs.pod:1616
38086 #, no-wrap
38087 msgid ""
38088 " Requires: libguestfs >= 1.0.80\n"
38089 "\n"
38090 msgstr ""
38091
38092 #. type: =head1
38093 #: ../src/guestfs.pod:1618
38094 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38095 msgstr ""
38096
38097 #. type: textblock
38098 #: ../src/guestfs.pod:1620
38099 msgid ""
38100 "A recent feature of the API is the introduction of calls which take optional "
38101 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
38102 "takes variable arguments (ie. C<...>), as in this example:"
38103 msgstr ""
38104
38105 #. type: verbatim
38106 #: ../src/guestfs.pod:1625
38107 #, no-wrap
38108 msgid ""
38109 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38110 "\n"
38111 msgstr ""
38112
38113 #. type: textblock
38114 #: ../src/guestfs.pod:1627
38115 msgid ""
38116 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
38117 "call with no optional arguments specified:"
38118 msgstr ""
38119
38120 #. type: verbatim
38121 #: ../src/guestfs.pod:1630
38122 #, no-wrap
38123 msgid ""
38124 " guestfs_add_drive_opts (g, filename, -1);\n"
38125 "\n"
38126 msgstr ""
38127
38128 #. type: textblock
38129 #: ../src/guestfs.pod:1632
38130 msgid "With a single optional argument:"
38131 msgstr ""
38132
38133 #. type: verbatim
38134 #: ../src/guestfs.pod:1634
38135 #, no-wrap
38136 msgid ""
38137 " guestfs_add_drive_opts (g, filename,\n"
38138 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38139 "                         -1);\n"
38140 "\n"
38141 msgstr ""
38142
38143 #. type: textblock
38144 #: ../src/guestfs.pod:1638
38145 msgid "With two:"
38146 msgstr ""
38147
38148 #. type: verbatim
38149 #: ../src/guestfs.pod:1640
38150 #, no-wrap
38151 msgid ""
38152 " guestfs_add_drive_opts (g, filename,\n"
38153 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38154 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38155 "                         -1);\n"
38156 "\n"
38157 msgstr ""
38158
38159 #. type: textblock
38160 #: ../src/guestfs.pod:1645
38161 msgid ""
38162 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
38163 "happen!"
38164 msgstr ""
38165
38166 #. type: =head2
38167 #: ../src/guestfs.pod:1648
38168 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38169 msgstr ""
38170
38171 #. type: textblock
38172 #: ../src/guestfs.pod:1650
38173 msgid ""
38174 "The second variant has the same name with the suffix C<_va>, which works the "
38175 "same way but takes a C<va_list>.  See the C manual for details.  For the "
38176 "example function, this is declared:"
38177 msgstr ""
38178
38179 #. type: verbatim
38180 #: ../src/guestfs.pod:1654
38181 #, no-wrap
38182 msgid ""
38183 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38184 "                                va_list args);\n"
38185 "\n"
38186 msgstr ""
38187
38188 #. type: =head2
38189 #: ../src/guestfs.pod:1657
38190 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38191 msgstr ""
38192
38193 #. type: textblock
38194 #: ../src/guestfs.pod:1659
38195 msgid ""
38196 "The third variant is useful where you need to construct these calls.  You "
38197 "pass in a structure where you fill in the optional fields.  The structure "
38198 "has a bitmask as the first element which you must set to indicate which "
38199 "fields you have filled in.  For our example function the structure and call "
38200 "are declared:"
38201 msgstr ""
38202
38203 #. type: verbatim
38204 #: ../src/guestfs.pod:1665
38205 #, no-wrap
38206 msgid ""
38207 " struct guestfs_add_drive_opts_argv {\n"
38208 "   uint64_t bitmask;\n"
38209 "   int readonly;\n"
38210 "   const char *format;\n"
38211 "   /* ... */\n"
38212 " };\n"
38213 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38214 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38215 "\n"
38216 msgstr ""
38217
38218 #. type: textblock
38219 #: ../src/guestfs.pod:1674
38220 msgid "You could call it like this:"
38221 msgstr ""
38222
38223 #. type: verbatim
38224 #: ../src/guestfs.pod:1676
38225 #, no-wrap
38226 msgid ""
38227 " struct guestfs_add_drive_opts_argv optargs = {\n"
38228 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38229 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38230 "   .readonly = 1,\n"
38231 "   .format = \"qcow2\"\n"
38232 " };\n"
38233 " \n"
38234 msgstr ""
38235
38236 #. type: verbatim
38237 #: ../src/guestfs.pod:1683
38238 #, no-wrap
38239 msgid ""
38240 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38241 "\n"
38242 msgstr ""
38243
38244 #. type: textblock
38245 #: ../src/guestfs.pod:1691
38246 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38247 msgstr ""
38248
38249 #. type: textblock
38250 #: ../src/guestfs.pod:1696
38251 msgid "You do not need to fill in all fields of the structure."
38252 msgstr ""
38253
38254 #. type: textblock
38255 #: ../src/guestfs.pod:1700
38256 msgid ""
38257 "There must be a one-to-one correspondence between fields of the structure "
38258 "that are filled in, and bits set in the bitmask."
38259 msgstr ""
38260
38261 #. type: =head2
38262 #: ../src/guestfs.pod:1705
38263 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38264 msgstr ""
38265
38266 #. type: textblock
38267 #: ../src/guestfs.pod:1707
38268 msgid ""
38269 "In other languages, optional arguments are expressed in the way that is "
38270 "natural for that language.  We refer you to the language-specific "
38271 "documentation for more details on that."
38272 msgstr ""
38273
38274 #. type: textblock
38275 #: ../src/guestfs.pod:1711
38276 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38277 msgstr ""
38278
38279 #. type: =head2
38280 #: ../src/guestfs.pod:1713
38281 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38282 msgstr ""
38283
38284 #. type: textblock
38285 #: ../src/guestfs.pod:1715
38286 msgid ""
38287 "B<Note:> This section documents the generic event mechanism introduced in "
38288 "libguestfs 1.10, which you should use in new code if possible.  The old "
38289 "functions C<guestfs_set_log_message_callback>, "
38290 "C<guestfs_set_subprocess_quit_callback>, "
38291 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38292 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38293 "page.  Because of the ABI guarantee, the old functions continue to work."
38294 msgstr ""
38295
38296 #. type: textblock
38297 #: ../src/guestfs.pod:1724
38298 msgid ""
38299 "Handles generate events when certain things happen, such as log messages "
38300 "being generated, progress messages during long-running operations, or the "
38301 "handle being closed.  The API calls described below let you register a "
38302 "callback to be called when events happen.  You can register multiple "
38303 "callbacks (for the same, different or overlapping sets of events), and "
38304 "individually remove callbacks.  If callbacks are not removed, then they "
38305 "remain in force until the handle is closed."
38306 msgstr ""
38307
38308 #. type: textblock
38309 #: ../src/guestfs.pod:1732
38310 msgid ""
38311 "In the current implementation, events are only generated synchronously: that "
38312 "means that events (and hence callbacks) can only happen while you are in the "
38313 "middle of making another libguestfs call.  The callback is called in the "
38314 "same thread."
38315 msgstr ""
38316
38317 #. type: textblock
38318 #: ../src/guestfs.pod:1737
38319 msgid ""
38320 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38321 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38322 msgstr ""
38323
38324 #. type: =head3
38325 #: ../src/guestfs.pod:1741
38326 msgid "CLASSES OF EVENTS"
38327 msgstr ""
38328
38329 #. type: =item
38330 #: ../src/guestfs.pod:1745
38331 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38332 msgstr ""
38333
38334 #. type: textblock
38335 #: ../src/guestfs.pod:1748
38336 msgid ""
38337 "The callback function will be called while the handle is being closed "
38338 "(synchronously from L</guestfs_close>)."
38339 msgstr ""
38340
38341 #. type: textblock
38342 #: ../src/guestfs.pod:1751
38343 msgid ""
38344 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38345 "handles that are open when the program exits.  This means that this callback "
38346 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38347 "problems in higher-level languages (eg. if your HLL interpreter has already "
38348 "been cleaned up by the time this is called, and if your callback then jumps "
38349 "into some HLL function)."
38350 msgstr ""
38351
38352 #. type: textblock
38353 #: ../src/guestfs.pod:1758
38354 msgid ""
38355 "If no callback is registered: the handle is closed without any callback "
38356 "being invoked."
38357 msgstr ""
38358
38359 #. type: =item
38360 #: ../src/guestfs.pod:1761
38361 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38362 msgstr ""
38363
38364 #. type: textblock
38365 #: ../src/guestfs.pod:1764
38366 msgid ""
38367 "The callback function will be called when the child process quits, either "
38368 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38369 "corresponds to a transition from any state to the CONFIG state)."
38370 msgstr ""
38371
38372 #. type: textblock
38373 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38374 msgid "If no callback is registered: the event is ignored."
38375 msgstr ""
38376
38377 #. type: =item
38378 #: ../src/guestfs.pod:1770
38379 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38380 msgstr ""
38381
38382 #. type: textblock
38383 #: ../src/guestfs.pod:1773
38384 msgid ""
38385 "The callback function will be called when the child process becomes ready "
38386 "first time after it has been launched.  (This corresponds to a transition "
38387 "from LAUNCHING to the READY state)."
38388 msgstr ""
38389
38390 #. type: =item
38391 #: ../src/guestfs.pod:1779
38392 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38393 msgstr ""
38394
38395 #. type: textblock
38396 #: ../src/guestfs.pod:1782
38397 msgid ""
38398 "Some long-running operations can generate progress messages.  If this "
38399 "callback is registered, then it will be called each time a progress message "
38400 "is generated (usually two seconds after the operation started, and three "
38401 "times per second thereafter until it completes, although the frequency may "
38402 "change in future versions)."
38403 msgstr ""
38404
38405 #. type: textblock
38406 #: ../src/guestfs.pod:1788
38407 msgid ""
38408 "The callback receives in the payload four unsigned 64 bit numbers which are "
38409 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38410 msgstr ""
38411
38412 #. type: textblock
38413 #: ../src/guestfs.pod:1791
38414 msgid ""
38415 "The units of C<total> are not defined, although for some operations C<total> "
38416 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38417 "or megabytes), and C<position> may be the portion which has been transferred."
38418 msgstr ""
38419
38420 #. type: textblock
38421 #: ../src/guestfs.pod:1796
38422 msgid "The only defined and stable parts of the API are:"
38423 msgstr ""
38424
38425 #. type: textblock
38426 #: ../src/guestfs.pod:1802
38427 msgid ""
38428 "The callback can display to the user some type of progress bar or indicator "
38429 "which shows the ratio of C<position>:C<total>."
38430 msgstr ""
38431
38432 #. type: textblock
38433 #: ../src/guestfs.pod:1807
38434 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38435 msgstr ""
38436
38437 #. type: textblock
38438 #: ../src/guestfs.pod:1811
38439 msgid ""
38440 "If any progress notification is sent during a call, then a final progress "
38441 "notification is always sent when C<position> = C<total> (I<unless> the call "
38442 "fails with an error)."
38443 msgstr ""
38444
38445 #. type: textblock
38446 #: ../src/guestfs.pod:1815
38447 msgid ""
38448 "This is to simplify caller code, so callers can easily set the progress "
38449 "indicator to \"100%\" at the end of the operation, without requiring special "
38450 "code to detect this case."
38451 msgstr ""
38452
38453 #. type: textblock
38454 #: ../src/guestfs.pod:1821
38455 msgid ""
38456 "For some calls we are unable to estimate the progress of the call, but we "
38457 "can still generate progress messages to indicate activity.  This is known as "
38458 "\"pulse mode\", and is directly supported by certain progress bar "
38459 "implementations (eg. GtkProgressBar)."
38460 msgstr ""
38461
38462 #. type: textblock
38463 #: ../src/guestfs.pod:1826
38464 msgid ""
38465 "For these calls, zero or more progress messages are generated with "
38466 "C<position = 0> and C<total = 1>, followed by a final message with "
38467 "C<position = total = 1>."
38468 msgstr ""
38469
38470 #. type: textblock
38471 #: ../src/guestfs.pod:1830
38472 msgid ""
38473 "As noted above, if the call fails with an error then the final message may "
38474 "not be generated."
38475 msgstr ""
38476
38477 #. type: textblock
38478 #: ../src/guestfs.pod:1835
38479 msgid ""
38480 "The callback also receives the procedure number (C<proc_nr>) and serial "
38481 "number (C<serial>) of the call.  These are only useful for debugging "
38482 "protocol issues, and the callback can normally ignore them.  The callback "
38483 "may want to print these numbers in error messages or debugging messages."
38484 msgstr ""
38485
38486 #. type: textblock
38487 #: ../src/guestfs.pod:1841
38488 msgid "If no callback is registered: progress messages are discarded."
38489 msgstr ""
38490
38491 #. type: =item
38492 #: ../src/guestfs.pod:1843
38493 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38494 msgstr ""
38495
38496 #. type: textblock
38497 #: ../src/guestfs.pod:1846
38498 msgid ""
38499 "The callback function is called whenever a log message is generated by qemu, "
38500 "the appliance kernel, guestfsd (daemon), or utility programs."
38501 msgstr ""
38502
38503 #. type: textblock
38504 #: ../src/guestfs.pod:1849
38505 msgid ""
38506 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
38507 "guestfs_launch>) then additional debug messages are generated."
38508 msgstr ""
38509
38510 #. type: textblock
38511 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
38512 msgid ""
38513 "If no callback is registered: the messages are discarded unless the verbose "
38514 "flag is set in which case they are sent to stderr.  You can override the "
38515 "printing of verbose messages to stderr by setting up a callback."
38516 msgstr ""
38517
38518 #. type: =item
38519 #: ../src/guestfs.pod:1857
38520 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38521 msgstr ""
38522
38523 #. type: textblock
38524 #: ../src/guestfs.pod:1860
38525 msgid ""
38526 "The callback function is called whenever a log message is generated by the "
38527 "library part of libguestfs."
38528 msgstr ""
38529
38530 #. type: textblock
38531 #: ../src/guestfs.pod:1863
38532 msgid ""
38533 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38534 "messages are generated."
38535 msgstr ""
38536
38537 #. type: =item
38538 #: ../src/guestfs.pod:1871
38539 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38540 msgstr ""
38541
38542 #. type: textblock
38543 #: ../src/guestfs.pod:1874
38544 msgid ""
38545 "The callback function is called whenever a trace message is generated.  This "
38546 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38547 msgstr ""
38548
38549 #. type: textblock
38550 #: ../src/guestfs.pod:1877
38551 msgid ""
38552 "If no callback is registered: the messages are sent to stderr.  You can "
38553 "override the printing of trace messages to stderr by setting up a callback."
38554 msgstr ""
38555
38556 #. type: =item
38557 #: ../src/guestfs.pod:1881
38558 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38559 msgstr ""
38560
38561 #. type: textblock
38562 #: ../src/guestfs.pod:1884
38563 msgid ""
38564 "The callback function is called whenever a libguestfs function is entered."
38565 msgstr ""
38566
38567 #. type: textblock
38568 #: ../src/guestfs.pod:1887
38569 msgid ""
38570 "The payload is a string which contains the name of the function that we are "
38571 "entering (not including C<guestfs_> prefix)."
38572 msgstr ""
38573
38574 #. type: textblock
38575 #: ../src/guestfs.pod:1890
38576 msgid ""
38577 "Note that libguestfs functions can call themselves, so you may see many "
38578 "events from a single call.  A few libguestfs functions do not generate this "
38579 "event."
38580 msgstr ""
38581
38582 #. type: =head3
38583 #: ../src/guestfs.pod:1898
38584 msgid "guestfs_set_event_callback"
38585 msgstr ""
38586
38587 #. type: verbatim
38588 #: ../src/guestfs.pod:1900
38589 #, no-wrap
38590 msgid ""
38591 " int guestfs_set_event_callback (guestfs_h *g,\n"
38592 "                                 guestfs_event_callback cb,\n"
38593 "                                 uint64_t event_bitmask,\n"
38594 "                                 int flags,\n"
38595 "                                 void *opaque);\n"
38596 "\n"
38597 msgstr ""
38598
38599 #. type: textblock
38600 #: ../src/guestfs.pod:1906
38601 msgid ""
38602 "This function registers a callback (C<cb>) for all event classes in the "
38603 "C<event_bitmask>."
38604 msgstr ""
38605
38606 #. type: textblock
38607 #: ../src/guestfs.pod:1909
38608 msgid ""
38609 "For example, to register for all log message events, you could call this "
38610 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
38611 "To register a single callback for all possible classes of events, use "
38612 "C<GUESTFS_EVENT_ALL>."
38613 msgstr ""
38614
38615 #. type: textblock
38616 #: ../src/guestfs.pod:1915
38617 msgid "C<flags> should always be passed as 0."
38618 msgstr ""
38619
38620 #. type: textblock
38621 #: ../src/guestfs.pod:1917
38622 msgid ""
38623 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
38624 "it for any purpose."
38625 msgstr ""
38626
38627 #. type: textblock
38628 #: ../src/guestfs.pod:1920
38629 msgid ""
38630 "The return value is the event handle (an integer) which you can use to "
38631 "delete the callback (see below)."
38632 msgstr ""
38633
38634 #. type: textblock
38635 #: ../src/guestfs.pod:1923
38636 msgid ""
38637 "If there is an error, this function returns C<-1>, and sets the error in the "
38638 "handle in the usual way (see L</guestfs_last_error> etc.)"
38639 msgstr ""
38640
38641 #. type: textblock
38642 #: ../src/guestfs.pod:1926
38643 msgid ""
38644 "Callbacks remain in effect until they are deleted, or until the handle is "
38645 "closed."
38646 msgstr ""
38647
38648 #. type: textblock
38649 #: ../src/guestfs.pod:1929
38650 msgid ""
38651 "In the case where multiple callbacks are registered for a particular event "
38652 "class, all of the callbacks are called.  The order in which multiple "
38653 "callbacks are called is not defined."
38654 msgstr ""
38655
38656 #. type: =head3
38657 #: ../src/guestfs.pod:1933
38658 msgid "guestfs_delete_event_callback"
38659 msgstr ""
38660
38661 #. type: verbatim
38662 #: ../src/guestfs.pod:1935
38663 #, no-wrap
38664 msgid ""
38665 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38666 "\n"
38667 msgstr ""
38668
38669 #. type: textblock
38670 #: ../src/guestfs.pod:1937
38671 msgid ""
38672 "Delete a callback that was previously registered.  C<event_handle> should be "
38673 "the integer that was returned by a previous call to "
38674 "C<guestfs_set_event_callback> on the same handle."
38675 msgstr ""
38676
38677 #. type: =head3
38678 #: ../src/guestfs.pod:1941
38679 msgid "guestfs_event_callback"
38680 msgstr ""
38681
38682 #. type: verbatim
38683 #: ../src/guestfs.pod:1943
38684 #, no-wrap
38685 msgid ""
38686 " typedef void (*guestfs_event_callback) (\n"
38687 "                  guestfs_h *g,\n"
38688 "                  void *opaque,\n"
38689 "                  uint64_t event,\n"
38690 "                  int event_handle,\n"
38691 "                  int flags,\n"
38692 "                  const char *buf, size_t buf_len,\n"
38693 "                  const uint64_t *array, size_t array_len);\n"
38694 "\n"
38695 msgstr ""
38696
38697 #. type: textblock
38698 #: ../src/guestfs.pod:1952
38699 msgid ""
38700 "This is the type of the event callback function that you have to provide."
38701 msgstr ""
38702
38703 #. type: textblock
38704 #: ../src/guestfs.pod:1955
38705 msgid ""
38706 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38707 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38708 "handle, and C<flags> which in the current API you should ignore."
38709 msgstr ""
38710
38711 #. type: textblock
38712 #: ../src/guestfs.pod:1959
38713 msgid ""
38714 "The remaining parameters contain the event payload (if any).  Each event may "
38715 "contain a payload, which usually relates to the event class, but for future "
38716 "proofing your code should be written to handle any payload for any event "
38717 "class."
38718 msgstr ""
38719
38720 #. type: textblock
38721 #: ../src/guestfs.pod:1964
38722 msgid ""
38723 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38724 "there is no message buffer).  Note that this message buffer can contain "
38725 "arbitrary 8 bit data, including NUL bytes."
38726 msgstr ""
38727
38728 #. type: textblock
38729 #: ../src/guestfs.pod:1968
38730 msgid ""
38731 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
38732 "moment this is only used for progress messages."
38733 msgstr ""
38734
38735 #. type: =head3
38736 #: ../src/guestfs.pod:1971
38737 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38738 msgstr ""
38739
38740 #. type: textblock
38741 #: ../src/guestfs.pod:1973
38742 msgid ""
38743 "One motivation for the generic event API was to allow GUI programs to "
38744 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
38745 "unconditionally to C<stderr>."
38746 msgstr ""
38747
38748 #. type: textblock
38749 #: ../src/guestfs.pod:1977
38750 msgid ""
38751 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38752 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
38753 "messages are not events; you must capture error messages separately)."
38754 msgstr ""
38755
38756 #. type: textblock
38757 #: ../src/guestfs.pod:1982
38758 msgid ""
38759 "Programs have to set up a callback to capture the classes of events of "
38760 "interest:"
38761 msgstr ""
38762
38763 #. type: verbatim
38764 #: ../src/guestfs.pod:1985
38765 #, no-wrap
38766 msgid ""
38767 " int eh =\n"
38768 "   guestfs_set_event_callback\n"
38769 "     (g, message_callback,\n"
38770 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38771 "      GUESTFS_EVENT_TRACE,\n"
38772 "      0, NULL) == -1)\n"
38773 " if (eh == -1) {\n"
38774 "   // handle error in the usual way\n"
38775 " }\n"
38776 "\n"
38777 msgstr ""
38778
38779 #. type: textblock
38780 #: ../src/guestfs.pod:1995
38781 msgid ""
38782 "The callback can then direct messages to the appropriate place.  In this "
38783 "example, messages are directed to syslog:"
38784 msgstr ""
38785
38786 #. type: verbatim
38787 #: ../src/guestfs.pod:1998
38788 #, no-wrap
38789 msgid ""
38790 " static void\n"
38791 " message_callback (\n"
38792 "         guestfs_h *g,\n"
38793 "         void *opaque,\n"
38794 "         uint64_t event,\n"
38795 "         int event_handle,\n"
38796 "         int flags,\n"
38797 "         const char *buf, size_t buf_len,\n"
38798 "         const uint64_t *array, size_t array_len)\n"
38799 " {\n"
38800 "   const int priority = LOG_USER|LOG_INFO;\n"
38801 "   if (buf_len > 0)\n"
38802 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38803 " }\n"
38804 "\n"
38805 msgstr ""
38806
38807 #. type: =head1
38808 #: ../src/guestfs.pod:2013
38809 msgid "CANCELLING LONG TRANSFERS"
38810 msgstr ""
38811
38812 #. type: textblock
38813 #: ../src/guestfs.pod:2015
38814 msgid ""
38815 "Some operations can be cancelled by the caller while they are in progress.  "
38816 "Currently only operations that involve uploading or downloading data can be "
38817 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38818 "parameters in the generator)."
38819 msgstr ""
38820
38821 #. type: =head2
38822 #: ../src/guestfs.pod:2020
38823 msgid "guestfs_user_cancel"
38824 msgstr ""
38825
38826 #. type: verbatim
38827 #: ../src/guestfs.pod:2022
38828 #, no-wrap
38829 msgid ""
38830 " void guestfs_user_cancel (guestfs_h *g);\n"
38831 "\n"
38832 msgstr ""
38833
38834 #. type: textblock
38835 #: ../src/guestfs.pod:2024
38836 msgid ""
38837 "C<guestfs_user_cancel> cancels the current upload or download operation."
38838 msgstr ""
38839
38840 #. type: textblock
38841 #: ../src/guestfs.pod:2027
38842 msgid ""
38843 "Unlike most other libguestfs calls, this function is signal safe and thread "
38844 "safe.  You can call it from a signal handler or from another thread, without "
38845 "needing to do any locking."
38846 msgstr ""
38847
38848 #. type: textblock
38849 #: ../src/guestfs.pod:2031
38850 msgid ""
38851 "The transfer that was in progress (if there is one) will stop shortly "
38852 "afterwards, and will return an error.  The errno (see L</"
38853 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38854 "out if the operation was cancelled or failed because of another error."
38855 msgstr ""
38856
38857 #. type: textblock
38858 #: ../src/guestfs.pod:2037
38859 msgid ""
38860 "No cleanup is performed: for example, if a file was being uploaded then "
38861 "after cancellation there may be a partially uploaded file.  It is the "
38862 "caller's responsibility to clean up if necessary."
38863 msgstr ""
38864
38865 #. type: textblock
38866 #: ../src/guestfs.pod:2041
38867 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38868 msgstr ""
38869
38870 #. type: textblock
38871 #: ../src/guestfs.pod:2043
38872 msgid ""
38873 "In an interactive text-based program, you might call it from a C<SIGINT> "
38874 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38875 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38876 "receive the C<^C> signal)."
38877 msgstr ""
38878
38879 #. type: textblock
38880 #: ../src/guestfs.pod:2048
38881 msgid ""
38882 "In a graphical program, when the main thread is displaying a progress bar "
38883 "with a cancel button, wire up the cancel button to call this function."
38884 msgstr ""
38885
38886 #. type: =head1
38887 #: ../src/guestfs.pod:2052
38888 msgid "PRIVATE DATA AREA"
38889 msgstr ""
38890
38891 #. type: textblock
38892 #: ../src/guestfs.pod:2054
38893 msgid ""
38894 "You can attach named pieces of private data to the libguestfs handle, fetch "
38895 "them by name, and walk over them, for the lifetime of the handle.  This is "
38896 "called the private data area and is only available from the C API."
38897 msgstr ""
38898
38899 #. type: textblock
38900 #: ../src/guestfs.pod:2059
38901 msgid "To attach a named piece of data, use the following call:"
38902 msgstr ""
38903
38904 #. type: verbatim
38905 #: ../src/guestfs.pod:2061
38906 #, no-wrap
38907 msgid ""
38908 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38909 "\n"
38910 msgstr ""
38911
38912 #. type: textblock
38913 #: ../src/guestfs.pod:2063
38914 msgid ""
38915 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38916 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38917 "overwritten."
38918 msgstr ""
38919
38920 #. type: textblock
38921 #: ../src/guestfs.pod:2067
38922 msgid ""
38923 "You can use any C<key> you want, but your key should I<not> start with an "
38924 "underscore character.  Keys beginning with an underscore character are "
38925 "reserved for internal libguestfs purposes (eg. for implementing language "
38926 "bindings).  It is recommended that you prefix the key with some unique "
38927 "string to avoid collisions with other users."
38928 msgstr ""
38929
38930 #. type: textblock
38931 #: ../src/guestfs.pod:2073
38932 msgid "To retrieve the pointer, use:"
38933 msgstr ""
38934
38935 #. type: verbatim
38936 #: ../src/guestfs.pod:2075
38937 #, no-wrap
38938 msgid ""
38939 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38940 "\n"
38941 msgstr ""
38942
38943 #. type: textblock
38944 #: ../src/guestfs.pod:2077
38945 msgid ""
38946 "This function returns C<NULL> if either no data is found associated with "
38947 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38948 "C<NULL>."
38949 msgstr ""
38950
38951 #. type: textblock
38952 #: ../src/guestfs.pod:2081
38953 msgid ""
38954 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38955 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38956 "all.  In particular, libguestfs does I<not> try to free the data when the "
38957 "handle is closed.  If the data must be freed, then the caller must either "
38958 "free it before calling L</guestfs_close> or must set up a close callback to "
38959 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38960 msgstr ""
38961
38962 #. type: textblock
38963 #: ../src/guestfs.pod:2088
38964 msgid "To walk over all entries, use these two functions:"
38965 msgstr ""
38966
38967 #. type: verbatim
38968 #: ../src/guestfs.pod:2090
38969 #, no-wrap
38970 msgid ""
38971 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38972 "\n"
38973 msgstr ""
38974
38975 #. type: verbatim
38976 #: ../src/guestfs.pod:2092
38977 #, no-wrap
38978 msgid ""
38979 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38980 "\n"
38981 msgstr ""
38982
38983 #. type: textblock
38984 #: ../src/guestfs.pod:2094
38985 msgid ""
38986 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38987 "not have any particular meaning -- keys are not returned in any defined "
38988 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38989 "corresponding data pointer is returned from the function.  C<NULL> is "
38990 "returned if there are no keys stored in the handle."
38991 msgstr ""
38992
38993 #. type: textblock
38994 #: ../src/guestfs.pod:2100
38995 msgid ""
38996 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38997 "value of this function is also C<NULL> is there are no further entries to "
38998 "return."
38999 msgstr ""
39000
39001 #. type: textblock
39002 #: ../src/guestfs.pod:2104
39003 msgid "Notes about walking over entries:"
39004 msgstr ""
39005
39006 #. type: textblock
39007 #: ../src/guestfs.pod:2110
39008 msgid ""
39009 "You must not call C<guestfs_set_private> while walking over the entries."
39010 msgstr ""
39011
39012 #. type: textblock
39013 #: ../src/guestfs.pod:2115
39014 msgid ""
39015 "The handle maintains an internal iterator which is reset when you call "
39016 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
39017 "call C<guestfs_set_private>."
39018 msgstr ""
39019
39020 #. type: textblock
39021 #: ../src/guestfs.pod:2121
39022 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39023 msgstr ""
39024
39025 #. type: verbatim
39026 #: ../src/guestfs.pod:2123
39027 #, no-wrap
39028 msgid ""
39029 " guestfs_set_private (g, key, NULL);\n"
39030 "\n"
39031 msgstr ""
39032
39033 #. type: textblock
39034 #: ../src/guestfs.pod:2125
39035 msgid "then that C<key> is not returned when walking."
39036 msgstr ""
39037
39038 #. type: textblock
39039 #: ../src/guestfs.pod:2129
39040 msgid ""
39041 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39042 "C<guestfs_next_private> or C<guestfs_set_private>."
39043 msgstr ""
39044
39045 #. type: textblock
39046 #: ../src/guestfs.pod:2135
39047 msgid ""
39048 "The following example code shows how to print all keys and data pointers "
39049 "that are associated with the handle C<g>:"
39050 msgstr ""
39051
39052 #. type: verbatim
39053 #: ../src/guestfs.pod:2138
39054 #, no-wrap
39055 msgid ""
39056 " const char *key;\n"
39057 " void *data = guestfs_first_private (g, &key);\n"
39058 " while (data != NULL)\n"
39059 "   {\n"
39060 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
39061 "     data = guestfs_next_private (g, &key);\n"
39062 "   }\n"
39063 "\n"
39064 msgstr ""
39065
39066 #. type: textblock
39067 #: ../src/guestfs.pod:2146
39068 msgid ""
39069 "More commonly you are only interested in keys that begin with an application-"
39070 "specific prefix C<foo_>.  Modify the loop like so:"
39071 msgstr ""
39072
39073 #. type: verbatim
39074 #: ../src/guestfs.pod:2149
39075 #, no-wrap
39076 msgid ""
39077 " const char *key;\n"
39078 " void *data = guestfs_first_private (g, &key);\n"
39079 " while (data != NULL)\n"
39080 "   {\n"
39081 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39082 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
39083 "     data = guestfs_next_private (g, &key);\n"
39084 "   }\n"
39085 "\n"
39086 msgstr ""
39087
39088 #. type: textblock
39089 #: ../src/guestfs.pod:2158
39090 msgid ""
39091 "If you need to modify keys while walking, then you have to jump back to the "
39092 "beginning of the loop.  For example, to delete all keys prefixed with "
39093 "C<foo_>:"
39094 msgstr ""
39095
39096 #. type: verbatim
39097 #: ../src/guestfs.pod:2162
39098 #, no-wrap
39099 msgid ""
39100 "  const char *key;\n"
39101 "  void *data;\n"
39102 " again:\n"
39103 "  data = guestfs_first_private (g, &key);\n"
39104 "  while (data != NULL)\n"
39105 "    {\n"
39106 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39107 "        {\n"
39108 "          guestfs_set_private (g, key, NULL);\n"
39109 "          /* note that 'key' pointer is now invalid, and so is\n"
39110 "             the internal iterator */\n"
39111 "          goto again;\n"
39112 "        }\n"
39113 "      data = guestfs_next_private (g, &key);\n"
39114 "    }\n"
39115 "\n"
39116 msgstr ""
39117
39118 #. type: textblock
39119 #: ../src/guestfs.pod:2178
39120 msgid ""
39121 "Note that the above loop is guaranteed to terminate because the keys are "
39122 "being deleted, but other manipulations of keys within the loop might not "
39123 "terminate unless you also maintain an indication of which keys have been "
39124 "visited."
39125 msgstr ""
39126
39127 #. type: =head1
39128 #: ../src/guestfs.pod:2183
39129 msgid "SYSTEMTAP"
39130 msgstr ""
39131
39132 #. type: textblock
39133 #: ../src/guestfs.pod:2185
39134 msgid ""
39135 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
39136 "true of any library, not just libguestfs.  However libguestfs also contains "
39137 "static markers to help in probing internal operations."
39138 msgstr ""
39139
39140 #. type: textblock
39141 #: ../src/guestfs.pod:2189
39142 msgid "You can list all the static markers by doing:"
39143 msgstr ""
39144
39145 #. type: verbatim
39146 #: ../src/guestfs.pod:2191
39147 #, no-wrap
39148 msgid ""
39149 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39150 "              .provider(\"guestfs\").mark(\"*\")'\n"
39151 "\n"
39152 msgstr ""
39153
39154 #. type: textblock
39155 #: ../src/guestfs.pod:2194
39156 msgid ""
39157 "B<Note:> These static markers are I<not> part of the stable API and may "
39158 "change in future versions."
39159 msgstr ""
39160
39161 #. type: =head2
39162 #: ../src/guestfs.pod:2197
39163 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39164 msgstr ""
39165
39166 #. type: textblock
39167 #: ../src/guestfs.pod:2199
39168 msgid ""
39169 "This script contains examples of displaying both the static markers and some "
39170 "ordinary C entry points:"
39171 msgstr ""
39172
39173 #. type: verbatim
39174 #: ../src/guestfs.pod:2202
39175 #, no-wrap
39176 msgid ""
39177 " global last;\n"
39178 " \n"
39179 msgstr ""
39180
39181 #. type: verbatim
39182 #: ../src/guestfs.pod:2204
39183 #, no-wrap
39184 msgid ""
39185 " function display_time () {\n"
39186 "       now = gettimeofday_us ();\n"
39187 "       delta = 0;\n"
39188 "       if (last > 0)\n"
39189 "             delta = now - last;\n"
39190 "       last = now;\n"
39191 " \n"
39192 msgstr ""
39193
39194 #. type: verbatim
39195 #: ../src/guestfs.pod:2211
39196 #, no-wrap
39197 msgid ""
39198 "       printf (\"%d (+%d):\", now, delta);\n"
39199 " }\n"
39200 " \n"
39201 msgstr ""
39202
39203 #. type: verbatim
39204 #: ../src/guestfs.pod:2214
39205 #, no-wrap
39206 msgid ""
39207 " probe begin {\n"
39208 "       last = 0;\n"
39209 "       printf (\"ready\\n\");\n"
39210 " }\n"
39211 " \n"
39212 msgstr ""
39213
39214 #. type: verbatim
39215 #: ../src/guestfs.pod:2219
39216 #, no-wrap
39217 msgid ""
39218 " /* Display all calls to static markers. */\n"
39219 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39220 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
39221 "       display_time();\n"
39222 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39223 " }\n"
39224 " \n"
39225 msgstr ""
39226
39227 #. type: verbatim
39228 #: ../src/guestfs.pod:2226
39229 #, no-wrap
39230 msgid ""
39231 " /* Display all calls to guestfs_mkfs* functions. */\n"
39232 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39233 "           .function(\"guestfs_mkfs*\") ? {\n"
39234 "       display_time();\n"
39235 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39236 " }\n"
39237 "\n"
39238 msgstr ""
39239
39240 #. type: textblock
39241 #: ../src/guestfs.pod:2233
39242 msgid ""
39243 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39244 "program.  Note that you either have to be root, or you have to add yourself "
39245 "to several special stap groups.  Consult the systemtap documentation for "
39246 "more information."
39247 msgstr ""
39248
39249 #. type: verbatim
39250 #: ../src/guestfs.pod:2238
39251 #, no-wrap
39252 msgid ""
39253 " # stap /tmp/test.stap\n"
39254 " ready\n"
39255 "\n"
39256 msgstr ""
39257
39258 #. type: textblock
39259 #: ../src/guestfs.pod:2241
39260 msgid "In another terminal, run a guestfish command such as this:"
39261 msgstr ""
39262
39263 #. type: textblock
39264 #: ../src/guestfs.pod:2245
39265 msgid "In the first terminal, stap trace output similar to this is shown:"
39266 msgstr ""
39267
39268 #. type: verbatim
39269 #: ../src/guestfs.pod:2247
39270 #, no-wrap
39271 msgid ""
39272 " 1318248056692655 (+0):\tlaunch_start\n"
39273 " 1318248056692850 (+195):       launch_build_appliance_start\n"
39274 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
39275 " 1318248056838059 (+19774):     launch_run_qemu\n"
39276 " 1318248061071167 (+4233108):   launch_end\n"
39277 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39278 "\n"
39279 msgstr ""
39280
39281 #. type: =end
39282 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
39283 msgid "html"
39284 msgstr ""
39285
39286 #. type: textblock
39287 #: ../src/guestfs.pod:2256
39288 msgid ""
39289 "<!-- old anchor for the next section --> <a name="
39290 "\"state_machine_and_low_level_event_api\"/>"
39291 msgstr ""
39292
39293 #. type: =head1
39294 #: ../src/guestfs.pod:2261
39295 msgid "ARCHITECTURE"
39296 msgstr ""
39297
39298 #. type: textblock
39299 #: ../src/guestfs.pod:2263
39300 msgid ""
39301 "Internally, libguestfs is implemented by running an appliance (a special "
39302 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
39303 "process of the main program."
39304 msgstr ""
39305
39306 #. type: verbatim
39307 #: ../src/guestfs.pod:2267
39308 #, no-wrap
39309 msgid ""
39310 "  ___________________\n"
39311 " /                   \\\n"
39312 " | main program      |\n"
39313 " |                   |\n"
39314 " |                   |           child process / appliance\n"
39315 " |                   |           __________________________\n"
39316 " |                   |          / qemu                     \\\n"
39317 " +-------------------+   RPC    |      +-----------------+ |\n"
39318 " | libguestfs     <--------------------> guestfsd        | |\n"
39319 " |                   |          |      +-----------------+ |\n"
39320 " \\___________________/          |      | Linux kernel    | |\n"
39321 "                                |      +--^--------------+ |\n"
39322 "                                \\_________|________________/\n"
39323 "                                          |\n"
39324 "                                   _______v______\n"
39325 "                                  /              \\\n"
39326 "                                  | Device or    |\n"
39327 "                                  | disk image   |\n"
39328 "                                  \\______________/\n"
39329 "\n"
39330 msgstr ""
39331
39332 #. type: textblock
39333 #: ../src/guestfs.pod:2287
39334 msgid ""
39335 "The library, linked to the main program, creates the child process and hence "
39336 "the appliance in the L</guestfs_launch> function."
39337 msgstr ""
39338
39339 #. type: textblock
39340 #: ../src/guestfs.pod:2290
39341 msgid ""
39342 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39343 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39344 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39345 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39346 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39347 "attached to the qemu process which translates device access by the "
39348 "appliance's Linux kernel into accesses to the image."
39349 msgstr ""
39350
39351 #. type: textblock
39352 #: ../src/guestfs.pod:2299
39353 msgid ""
39354 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39355 "Although the disk image you are attached to might also be used by some "
39356 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39357 "care if both libguestfs's qemu process and your virtual machine are trying "
39358 "to update the disk image at the same time, since these usually results in "
39359 "massive disk corruption)."
39360 msgstr ""
39361
39362 #. type: =head1
39363 #: ../src/guestfs.pod:2306
39364 msgid "STATE MACHINE"
39365 msgstr ""
39366
39367 #. type: textblock
39368 #: ../src/guestfs.pod:2308
39369 msgid "libguestfs uses a state machine to model the child process:"
39370 msgstr ""
39371
39372 #. type: verbatim
39373 #: ../src/guestfs.pod:2310
39374 #, no-wrap
39375 msgid ""
39376 "                         |\n"
39377 "                    guestfs_create\n"
39378 "                         |\n"
39379 "                         |\n"
39380 "                     ____V_____\n"
39381 "                    /          \\\n"
39382 "                    |  CONFIG  |\n"
39383 "                    \\__________/\n"
39384 "                     ^ ^   ^  \\\n"
39385 "                    /  |    \\  \\ guestfs_launch\n"
39386 "                   /   |    _\\__V______\n"
39387 "                  /    |   /           \\\n"
39388 "                 /     |   | LAUNCHING |\n"
39389 "                /      |   \\___________/\n"
39390 "               /       |       /\n"
39391 "              /        |  guestfs_launch\n"
39392 "             /         |     /\n"
39393 "    ______  /        __|____V\n"
39394 "   /      \\ ------> /        \\\n"
39395 "   | BUSY |         | READY  |\n"
39396 "   \\______/ <------ \\________/\n"
39397 "\n"
39398 msgstr ""
39399
39400 #. type: textblock
39401 #: ../src/guestfs.pod:2332
39402 msgid ""
39403 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39404 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39405 "(3) alternating between READY and BUSY as commands are issued to, and "
39406 "carried out by, the child process."
39407 msgstr ""
39408
39409 #. type: textblock
39410 #: ../src/guestfs.pod:2337
39411 msgid ""
39412 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39413 "asynchronously at any time (eg. due to some internal error), and that causes "
39414 "the state to transition back to CONFIG."
39415 msgstr ""
39416
39417 #. type: textblock
39418 #: ../src/guestfs.pod:2341
39419 msgid ""
39420 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39421 "issued when in the CONFIG state."
39422 msgstr ""
39423
39424 #. type: textblock
39425 #: ../src/guestfs.pod:2344
39426 msgid ""
39427 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39428 "L</guestfs_launch> blocks until the child process is READY to accept "
39429 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39430 "moves the state from CONFIG to LAUNCHING while it is running."
39431 msgstr ""
39432
39433 #. type: textblock
39434 #: ../src/guestfs.pod:2350
39435 msgid ""
39436 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39437 "state.  These API calls block waiting for the command to be carried out (ie. "
39438 "the state to transition to BUSY and then back to READY).  There are no non-"
39439 "blocking versions, and no way to issue more than one command per handle at "
39440 "the same time."
39441 msgstr ""
39442
39443 #. type: textblock
39444 #: ../src/guestfs.pod:2356
39445 msgid ""
39446 "Finally, the child process sends asynchronous messages back to the main "
39447 "program, such as kernel log messages.  You can register a callback to "
39448 "receive these messages."
39449 msgstr ""
39450
39451 #. type: =head1
39452 #: ../src/guestfs.pod:2360
39453 msgid "INTERNALS"
39454 msgstr ""
39455
39456 #. type: =head2
39457 #: ../src/guestfs.pod:2362
39458 msgid "APPLIANCE BOOT PROCESS"
39459 msgstr ""
39460
39461 #. type: textblock
39462 #: ../src/guestfs.pod:2364
39463 msgid ""
39464 "This process has evolved and continues to evolve.  The description here "
39465 "corresponds only to the current version of libguestfs and is provided for "
39466 "information only."
39467 msgstr ""
39468
39469 #. type: textblock
39470 #: ../src/guestfs.pod:2368
39471 msgid ""
39472 "In order to follow the stages involved below, enable libguestfs debugging "
39473 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39474 msgstr ""
39475
39476 #. type: =item
39477 #: ../src/guestfs.pod:2373
39478 msgid "Create the appliance"
39479 msgstr ""
39480
39481 #. type: textblock
39482 #: ../src/guestfs.pod:2375
39483 msgid ""
39484 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39485 "initrd and the appliance."
39486 msgstr ""
39487
39488 #. type: textblock
39489 #: ../src/guestfs.pod:2378
39490 msgid ""
39491 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39492 "directory if C<TMPDIR> is set)."
39493 msgstr ""
39494
39495 #. type: textblock
39496 #: ../src/guestfs.pod:2381
39497 msgid ""
39498 "For a complete description of how the appliance is created and cached, read "
39499 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39500 msgstr ""
39501
39502 #. type: =item
39503 #: ../src/guestfs.pod:2385
39504 msgid "Start qemu and boot the kernel"
39505 msgstr ""
39506
39507 #. type: textblock
39508 #: ../src/guestfs.pod:2387
39509 msgid "qemu is invoked to boot the kernel."
39510 msgstr ""
39511
39512 #. type: =item
39513 #: ../src/guestfs.pod:2389
39514 msgid "Run the initrd"
39515 msgstr ""
39516
39517 #. type: textblock
39518 #: ../src/guestfs.pod:2391
39519 msgid ""
39520 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
39521 "appliance.  The purpose of the initrd is to load enough kernel modules in "
39522 "order that the appliance itself can be mounted and started."
39523 msgstr ""
39524
39525 #. type: textblock
39526 #: ../src/guestfs.pod:2395
39527 msgid ""
39528 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
39529 "initrd>."
39530 msgstr ""
39531
39532 #. type: textblock
39533 #: ../src/guestfs.pod:2398
39534 msgid ""
39535 "When the initrd has started you will see messages showing that kernel "
39536 "modules are being loaded, similar to this:"
39537 msgstr ""
39538
39539 #. type: verbatim
39540 #: ../src/guestfs.pod:2401
39541 #, no-wrap
39542 msgid ""
39543 " febootstrap: ext2 mini initrd starting up\n"
39544 " febootstrap: mounting /sys\n"
39545 " febootstrap: internal insmod libcrc32c.ko\n"
39546 " febootstrap: internal insmod crc32c-intel.ko\n"
39547 "\n"
39548 msgstr ""
39549
39550 #. type: =item
39551 #: ../src/guestfs.pod:2406
39552 msgid "Find and mount the appliance device"
39553 msgstr ""
39554
39555 #. type: textblock
39556 #: ../src/guestfs.pod:2408
39557 msgid ""
39558 "The appliance is a sparse file containing an ext2 filesystem which contains "
39559 "a familiar (although reduced in size) Linux operating system.  It would "
39560 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39561 msgstr ""
39562
39563 #. type: textblock
39564 #: ../src/guestfs.pod:2412
39565 msgid ""
39566 "The regular disks being inspected by libguestfs are the first devices "
39567 "exposed by qemu (eg. as C</dev/vda>)."
39568 msgstr ""
39569
39570 #. type: textblock
39571 #: ../src/guestfs.pod:2415
39572 msgid ""
39573 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39574 "there was only one regular disk)."
39575 msgstr ""
39576
39577 #. type: textblock
39578 #: ../src/guestfs.pod:2418
39579 msgid ""
39580 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39581 "and switch root into the appliance, and run C</init> from the appliance."
39582 msgstr ""
39583
39584 #. type: textblock
39585 #: ../src/guestfs.pod:2422
39586 msgid "If this works successfully you will see messages such as:"
39587 msgstr ""
39588
39589 #. type: verbatim
39590 #: ../src/guestfs.pod:2424
39591 #, no-wrap
39592 msgid ""
39593 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39594 " febootstrap: creating /dev/root as block special 252:16\n"
39595 " febootstrap: mounting new root on /root\n"
39596 " febootstrap: chroot\n"
39597 " Starting /init script ...\n"
39598 "\n"
39599 msgstr ""
39600
39601 #. type: textblock
39602 #: ../src/guestfs.pod:2430
39603 msgid ""
39604 "Note that C<Starting /init script ...> indicates that the appliance's init "
39605 "script is now running."
39606 msgstr ""
39607
39608 #. type: =item
39609 #: ../src/guestfs.pod:2433
39610 msgid "Initialize the appliance"
39611 msgstr ""
39612
39613 #. type: textblock
39614 #: ../src/guestfs.pod:2435
39615 msgid ""
39616 "The appliance itself now initializes itself.  This involves starting certain "
39617 "processes like C<udev>, possibly printing some debug information, and "
39618 "finally running the daemon (C<guestfsd>)."
39619 msgstr ""
39620
39621 #. type: =item
39622 #: ../src/guestfs.pod:2439
39623 msgid "The daemon"
39624 msgstr ""
39625
39626 #. type: textblock
39627 #: ../src/guestfs.pod:2441
39628 msgid ""
39629 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
39630 "should see:"
39631 msgstr ""
39632
39633 #. type: verbatim
39634 #: ../src/guestfs.pod:2444
39635 #, no-wrap
39636 msgid ""
39637 " verbose daemon enabled\n"
39638 "\n"
39639 msgstr ""
39640
39641 #. type: textblock
39642 #: ../src/guestfs.pod:2446
39643 msgid ""
39644 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39645 "connected on the other end to the library."
39646 msgstr ""
39647
39648 #. type: textblock
39649 #: ../src/guestfs.pod:2449
39650 msgid ""
39651 "The daemon connects to this port (and hence to the library) and sends a four "
39652 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39653 "protocol (see below)."
39654 msgstr ""
39655
39656 #. type: =head2
39657 #: ../src/guestfs.pod:2455
39658 msgid "COMMUNICATION PROTOCOL"
39659 msgstr ""
39660
39661 #. type: textblock
39662 #: ../src/guestfs.pod:2457
39663 msgid ""
39664 "Don't rely on using this protocol directly.  This section documents how it "
39665 "currently works, but it may change at any time."
39666 msgstr ""
39667
39668 #. type: textblock
39669 #: ../src/guestfs.pod:2460
39670 msgid ""
39671 "The protocol used to talk between the library and the daemon running inside "
39672 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39673 "1014, RFC 1832, RFC 4506)."
39674 msgstr ""
39675
39676 #. type: textblock
39677 #: ../src/guestfs.pod:2464
39678 msgid ""
39679 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39680 "this file is automatically generated)."
39681 msgstr ""
39682
39683 #. type: textblock
39684 #: ../src/guestfs.pod:2467
39685 msgid ""
39686 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39687 "and C<FileOut> parameters, which are handled with very simple request/reply "
39688 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
39689 "parameters, which use the same request and reply messages, but they may also "
39690 "be followed by files sent using a chunked encoding."
39691 msgstr ""
39692
39693 #. type: =head3
39694 #: ../src/guestfs.pod:2474
39695 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39696 msgstr ""
39697
39698 #. type: textblock
39699 #: ../src/guestfs.pod:2476
39700 msgid "For ordinary functions, the request message is:"
39701 msgstr ""
39702
39703 #. type: verbatim
39704 #: ../src/guestfs.pod:2478
39705 #, no-wrap
39706 msgid ""
39707 " total length (header + arguments,\n"
39708 "      but not including the length word itself)\n"
39709 " struct guestfs_message_header (encoded as XDR)\n"
39710 " struct guestfs_<foo>_args (encoded as XDR)\n"
39711 "\n"
39712 msgstr ""
39713
39714 #. type: textblock
39715 #: ../src/guestfs.pod:2483
39716 msgid ""
39717 "The total length field allows the daemon to allocate a fixed size buffer "
39718 "into which it slurps the rest of the message.  As a result, the total length "
39719 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39720 "effective size of any request is limited to somewhere under this size."
39721 msgstr ""
39722
39723 #. type: textblock
39724 #: ../src/guestfs.pod:2489
39725 msgid ""
39726 "Note also that many functions don't take any arguments, in which case the "
39727 "C<guestfs_I<foo>_args> is completely omitted."
39728 msgstr ""
39729
39730 #. type: textblock
39731 #: ../src/guestfs.pod:2492
39732 msgid ""
39733 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39734 "receiver knows what type of args structure to expect, or none at all."
39735 msgstr ""
39736
39737 #. type: textblock
39738 #: ../src/guestfs.pod:2496
39739 msgid ""
39740 "For functions that take optional arguments, the optional arguments are "
39741 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39742 "arguments.  A bitmask in the header indicates which optional arguments are "
39743 "meaningful.  The bitmask is also checked to see if it contains bits set "
39744 "which the daemon does not know about (eg. if more optional arguments were "
39745 "added in a later version of the library), and this causes the call to be "
39746 "rejected."
39747 msgstr ""
39748
39749 #. type: textblock
39750 #: ../src/guestfs.pod:2504
39751 msgid "The reply message for ordinary functions is:"
39752 msgstr ""
39753
39754 #. type: verbatim
39755 #: ../src/guestfs.pod:2506
39756 #, no-wrap
39757 msgid ""
39758 " total length (header + ret,\n"
39759 "      but not including the length word itself)\n"
39760 " struct guestfs_message_header (encoded as XDR)\n"
39761 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39762 "\n"
39763 msgstr ""
39764
39765 #. type: textblock
39766 #: ../src/guestfs.pod:2511
39767 msgid ""
39768 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39769 "functions that return no formal return values."
39770 msgstr ""
39771
39772 #. type: textblock
39773 #: ../src/guestfs.pod:2514
39774 msgid ""
39775 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39776 msgstr ""
39777
39778 #. type: textblock
39779 #: ../src/guestfs.pod:2517
39780 msgid ""
39781 "In the case of an error, a flag is set in the header, and the reply message "
39782 "is slightly changed:"
39783 msgstr ""
39784
39785 #. type: verbatim
39786 #: ../src/guestfs.pod:2520
39787 #, no-wrap
39788 msgid ""
39789 " total length (header + error,\n"
39790 "      but not including the length word itself)\n"
39791 " struct guestfs_message_header (encoded as XDR)\n"
39792 " struct guestfs_message_error (encoded as XDR)\n"
39793 "\n"
39794 msgstr ""
39795
39796 #. type: textblock
39797 #: ../src/guestfs.pod:2525
39798 msgid ""
39799 "The C<guestfs_message_error> structure contains the error message as a "
39800 "string."
39801 msgstr ""
39802
39803 #. type: =head3
39804 #: ../src/guestfs.pod:2528
39805 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39806 msgstr ""
39807
39808 #. type: textblock
39809 #: ../src/guestfs.pod:2530
39810 msgid ""
39811 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39812 "The normal request message is sent (see above).  However this is followed by "
39813 "a sequence of file chunks."
39814 msgstr ""
39815
39816 #. type: verbatim
39817 #: ../src/guestfs.pod:2534
39818 #, no-wrap
39819 msgid ""
39820 " total length (header + arguments,\n"
39821 "      but not including the length word itself,\n"
39822 "      and not including the chunks)\n"
39823 " struct guestfs_message_header (encoded as XDR)\n"
39824 " struct guestfs_<foo>_args (encoded as XDR)\n"
39825 " sequence of chunks for FileIn param #0\n"
39826 " sequence of chunks for FileIn param #1 etc.\n"
39827 "\n"
39828 msgstr ""
39829
39830 #. type: textblock
39831 #: ../src/guestfs.pod:2542
39832 msgid "The \"sequence of chunks\" is:"
39833 msgstr ""
39834
39835 #. type: verbatim
39836 #: ../src/guestfs.pod:2544
39837 #, no-wrap
39838 msgid ""
39839 " length of chunk (not including length word itself)\n"
39840 " struct guestfs_chunk (encoded as XDR)\n"
39841 " length of chunk\n"
39842 " struct guestfs_chunk (encoded as XDR)\n"
39843 "   ...\n"
39844 " length of chunk\n"
39845 " struct guestfs_chunk (with data.data_len == 0)\n"
39846 "\n"
39847 msgstr ""
39848
39849 #. type: textblock
39850 #: ../src/guestfs.pod:2552
39851 msgid ""
39852 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39853 "is set in the final chunk to indicate either successful completion or early "
39854 "cancellation."
39855 msgstr ""
39856
39857 #. type: textblock
39858 #: ../src/guestfs.pod:2556
39859 msgid ""
39860 "At time of writing there are no functions that have more than one FileIn "
39861 "parameter.  However this is (theoretically) supported, by sending the "
39862 "sequence of chunks for each FileIn parameter one after another (from left to "
39863 "right)."
39864 msgstr ""
39865
39866 #. type: textblock
39867 #: ../src/guestfs.pod:2561
39868 msgid ""
39869 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39870 "transfer.  The library does this by sending a chunk with a special flag set "
39871 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39872 "RPC, does I<not> send any reply, and goes back to reading the next request."
39873 msgstr ""
39874
39875 #. type: textblock
39876 #: ../src/guestfs.pod:2567
39877 msgid ""
39878 "The daemon may also cancel.  It does this by writing a special word "
39879 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39880 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39881 "cancel chunk).  The special word is chosen so that even if cancellation "
39882 "happens right at the end of the transfer (after the library has finished "
39883 "writing and has started listening for the reply), the \"spurious\" cancel "
39884 "flag will not be confused with the reply message."
39885 msgstr ""
39886
39887 #. type: textblock
39888 #: ../src/guestfs.pod:2576
39889 msgid ""
39890 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39891 "limit), and also files where the size is not known in advance (eg. from "
39892 "pipes or sockets).  However the chunks are rather small "
39893 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39894 "to keep much in memory."
39895 msgstr ""
39896
39897 #. type: =head3
39898 #: ../src/guestfs.pod:2582
39899 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39900 msgstr ""
39901
39902 #. type: textblock
39903 #: ../src/guestfs.pod:2584
39904 msgid ""
39905 "The protocol for FileOut parameters is exactly the same as for FileIn "
39906 "parameters, but with the roles of daemon and library reversed."
39907 msgstr ""
39908
39909 #. type: verbatim
39910 #: ../src/guestfs.pod:2587
39911 #, no-wrap
39912 msgid ""
39913 " total length (header + ret,\n"
39914 "      but not including the length word itself,\n"
39915 "      and not including the chunks)\n"
39916 " struct guestfs_message_header (encoded as XDR)\n"
39917 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39918 " sequence of chunks for FileOut param #0\n"
39919 " sequence of chunks for FileOut param #1 etc.\n"
39920 "\n"
39921 msgstr ""
39922
39923 #. type: =head3
39924 #: ../src/guestfs.pod:2595
39925 msgid "INITIAL MESSAGE"
39926 msgstr ""
39927
39928 #. type: textblock
39929 #: ../src/guestfs.pod:2597
39930 msgid ""
39931 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39932 "which indicates that the guest and daemon is alive.  This is what L</"
39933 "guestfs_launch> waits for."
39934 msgstr ""
39935
39936 #. type: =head3
39937 #: ../src/guestfs.pod:2601
39938 msgid "PROGRESS NOTIFICATION MESSAGES"
39939 msgstr ""
39940
39941 #. type: textblock
39942 #: ../src/guestfs.pod:2603
39943 msgid ""
39944 "The daemon may send progress notification messages at any time.  These are "
39945 "distinguished by the normal length word being replaced by "
39946 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39947 msgstr ""
39948
39949 #. type: textblock
39950 #: ../src/guestfs.pod:2607
39951 msgid ""
39952 "The library turns them into progress callbacks (see L</"
39953 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39954 "if not."
39955 msgstr ""
39956
39957 #. type: textblock
39958 #: ../src/guestfs.pod:2611
39959 msgid ""
39960 "The daemon self-limits the frequency of progress messages it sends (see "
39961 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39962 "messages."
39963 msgstr ""
39964
39965 #. type: =head1
39966 #: ../src/guestfs.pod:2615
39967 msgid "LIBGUESTFS VERSION NUMBERS"
39968 msgstr ""
39969
39970 #. type: textblock
39971 #: ../src/guestfs.pod:2617
39972 msgid ""
39973 "Since April 2010, libguestfs has started to make separate development and "
39974 "stable releases, along with corresponding branches in our git repository.  "
39975 "These separate releases can be identified by version number:"
39976 msgstr ""
39977
39978 #. type: verbatim
39979 #: ../src/guestfs.pod:2622
39980 #, no-wrap
39981 msgid ""
39982 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39983 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39984 "       |\n"
39985 "       v\n"
39986 " 1  .  3  .  5\n"
39987 " ^           ^\n"
39988 " |           |\n"
39989 " |           `-------- sub-version\n"
39990 " |\n"
39991 " `------ always '1' because we don't change the ABI\n"
39992 "\n"
39993 msgstr ""
39994
39995 #. type: textblock
39996 #: ../src/guestfs.pod:2633
39997 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39998 msgstr ""
39999
40000 #. type: textblock
40001 #: ../src/guestfs.pod:2635
40002 msgid ""
40003 "As time passes we cherry pick fixes from the development branch and backport "
40004 "those into the stable branch, the effect being that the stable branch should "
40005 "get more stable and less buggy over time.  So the stable releases are ideal "
40006 "for people who don't need new features but would just like the software to "
40007 "work."
40008 msgstr ""
40009
40010 #. type: textblock
40011 #: ../src/guestfs.pod:2641
40012 msgid "Our criteria for backporting changes are:"
40013 msgstr ""
40014
40015 #. type: textblock
40016 #: ../src/guestfs.pod:2647
40017 msgid ""
40018 "Documentation changes which don't affect any code are backported unless the "
40019 "documentation refers to a future feature which is not in stable."
40020 msgstr ""
40021
40022 #. type: textblock
40023 #: ../src/guestfs.pod:2653
40024 msgid ""
40025 "Bug fixes which are not controversial, fix obvious problems, and have been "
40026 "well tested are backported."
40027 msgstr ""
40028
40029 #. type: textblock
40030 #: ../src/guestfs.pod:2658
40031 msgid ""
40032 "Simple rearrangements of code which shouldn't affect how it works get "
40033 "backported.  This is so that the code in the two branches doesn't get too "
40034 "far out of step, allowing us to backport future fixes more easily."
40035 msgstr ""
40036
40037 #. type: textblock
40038 #: ../src/guestfs.pod:2664
40039 msgid ""
40040 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40041 "exceptional case: the new feature is required in order to implement an "
40042 "important bug fix."
40043 msgstr ""
40044
40045 #. type: textblock
40046 #: ../src/guestfs.pod:2670
40047 msgid ""
40048 "A new stable branch starts when we think the new features in development are "
40049 "substantial and compelling enough over the current stable branch to warrant "
40050 "it.  When that happens we create new stable and development versions 1.N.0 "
40051 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
40052 "stable at this point, but by backporting fixes from development, that branch "
40053 "will stabilize over time."
40054 msgstr ""
40055
40056 #. type: =head1
40057 #: ../src/guestfs.pod:2678
40058 msgid "EXTENDING LIBGUESTFS"
40059 msgstr ""
40060
40061 #. type: =head2
40062 #: ../src/guestfs.pod:2680
40063 msgid "ADDING A NEW API ACTION"
40064 msgstr ""
40065
40066 #. type: textblock
40067 #: ../src/guestfs.pod:2682
40068 msgid ""
40069 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40070 "documentation) are generated, and this makes it easy to extend the "
40071 "libguestfs API."
40072 msgstr ""
40073
40074 #. type: textblock
40075 #: ../src/guestfs.pod:2686
40076 msgid "To add a new API action there are two changes:"
40077 msgstr ""
40078
40079 #. type: textblock
40080 #: ../src/guestfs.pod:2692
40081 msgid ""
40082 "You need to add a description of the call (name, parameters, return type, "
40083 "tests, documentation) to C<generator/generator_actions.ml>."
40084 msgstr ""
40085
40086 #. type: textblock
40087 #: ../src/guestfs.pod:2695
40088 msgid ""
40089 "There are two sorts of API action, depending on whether the call goes "
40090 "through to the daemon in the appliance, or is serviced entirely by the "
40091 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
40092 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
40093 "an example of the latter, since a trace flag is maintained in the handle and "
40094 "all tracing is done on the library side."
40095 msgstr ""
40096
40097 #. type: textblock
40098 #: ../src/guestfs.pod:2703
40099 msgid ""
40100 "Most new actions are of the first type, and get added to the "
40101 "C<daemon_functions> list.  Each function has a unique procedure number used "
40102 "in the RPC protocol which is assigned to that action when we publish "
40103 "libguestfs and cannot be reused.  Take the latest procedure number and "
40104 "increment it."
40105 msgstr ""
40106
40107 #. type: textblock
40108 #: ../src/guestfs.pod:2709
40109 msgid ""
40110 "For library-only actions of the second type, add to the "
40111 "C<non_daemon_functions> list.  Since these functions are serviced by the "
40112 "library and do not travel over the RPC mechanism to the daemon, these "
40113 "functions do not need a procedure number, and so the procedure number is set "
40114 "to C<-1>."
40115 msgstr ""
40116
40117 #. type: textblock
40118 #: ../src/guestfs.pod:2717
40119 msgid "Implement the action (in C):"
40120 msgstr ""
40121
40122 #. type: textblock
40123 #: ../src/guestfs.pod:2719
40124 msgid ""
40125 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40126 "C<daemon/> directory."
40127 msgstr ""
40128
40129 #. type: textblock
40130 #: ../src/guestfs.pod:2722
40131 msgid ""
40132 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40133 "(note: double underscore) in the C<src/> directory."
40134 msgstr ""
40135
40136 #. type: textblock
40137 #: ../src/guestfs.pod:2725
40138 msgid "In either case, use another function as an example of what to do."
40139 msgstr ""
40140
40141 #. type: textblock
40142 #: ../src/guestfs.pod:2729
40143 msgid "After making these changes, use C<make> to compile."
40144 msgstr ""
40145
40146 #. type: textblock
40147 #: ../src/guestfs.pod:2731
40148 msgid ""
40149 "Note that you don't need to implement the RPC, language bindings, manual "
40150 "pages or anything else.  It's all automatically generated from the OCaml "
40151 "description."
40152 msgstr ""
40153
40154 #. type: =head2
40155 #: ../src/guestfs.pod:2735
40156 msgid "ADDING TESTS FOR AN API ACTION"
40157 msgstr ""
40158
40159 #. type: textblock
40160 #: ../src/guestfs.pod:2737
40161 msgid ""
40162 "You can supply zero or as many tests as you want per API call.  The tests "
40163 "can either be added as part of the API description (C<generator/"
40164 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40165 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
40166 "slower, so if possible use the first method."
40167 msgstr ""
40168
40169 #. type: textblock
40170 #: ../src/guestfs.pod:2743
40171 msgid ""
40172 "The following describes the test environment used when you add an API test "
40173 "in C<generator_actions.ml>."
40174 msgstr ""
40175
40176 #. type: textblock
40177 #: ../src/guestfs.pod:2746
40178 msgid "The test environment has 4 block devices:"
40179 msgstr ""
40180
40181 #. type: =item
40182 #: ../src/guestfs.pod:2750
40183 msgid "C</dev/sda> 500MB"
40184 msgstr ""
40185
40186 #. type: textblock
40187 #: ../src/guestfs.pod:2752
40188 msgid "General block device for testing."
40189 msgstr ""
40190
40191 #. type: =item
40192 #: ../src/guestfs.pod:2754
40193 msgid "C</dev/sdb> 50MB"
40194 msgstr ""
40195
40196 #. type: textblock
40197 #: ../src/guestfs.pod:2756
40198 msgid ""
40199 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40200 "operations."
40201 msgstr ""
40202
40203 #. type: =item
40204 #: ../src/guestfs.pod:2759
40205 msgid "C</dev/sdc> 10MB"
40206 msgstr ""
40207
40208 #. type: textblock
40209 #: ../src/guestfs.pod:2761
40210 msgid "Used in a few tests where two block devices are needed."
40211 msgstr ""
40212
40213 #. type: =item
40214 #: ../src/guestfs.pod:2763
40215 msgid "C</dev/sdd>"
40216 msgstr ""
40217
40218 #. type: textblock
40219 #: ../src/guestfs.pod:2765
40220 msgid "ISO with fixed content (see C<images/test.iso>)."
40221 msgstr ""
40222
40223 #. type: textblock
40224 #: ../src/guestfs.pod:2769
40225 msgid ""
40226 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40227 "appliance and block devices are reused between tests.  So don't try testing "
40228 "L</guestfs_kill_subprocess> :-x"
40229 msgstr ""
40230
40231 #. type: textblock
40232 #: ../src/guestfs.pod:2773
40233 msgid ""
40234 "Each test starts with an initial scenario, selected using one of the "
40235 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
40236 "initialize the disks mentioned above in a particular way as documented in "
40237 "C<generator_types.ml>.  You should not assume anything about the previous "
40238 "contents of other disks that are not initialized."
40239 msgstr ""
40240
40241 #. type: textblock
40242 #: ../src/guestfs.pod:2779
40243 msgid ""
40244 "You can add a prerequisite clause to any individual test.  This is a run-"
40245 "time check, which, if it fails, causes the test to be skipped.  Useful if "
40246 "testing a command which might not work on all variations of libguestfs "
40247 "builds.  A test that has prerequisite of C<Always> means to run "
40248 "unconditionally."
40249 msgstr ""
40250
40251 #. type: textblock
40252 #: ../src/guestfs.pod:2785
40253 msgid ""
40254 "In addition, packagers can skip individual tests by setting environment "
40255 "variables before running C<make check>."
40256 msgstr ""
40257
40258 #. type: verbatim
40259 #: ../src/guestfs.pod:2788
40260 #, no-wrap
40261 msgid ""
40262 " SKIP_TEST_<CMD>_<NUM>=1\n"
40263 "\n"
40264 msgstr ""
40265
40266 #. type: textblock
40267 #: ../src/guestfs.pod:2790
40268 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40269 msgstr ""
40270
40271 #. type: verbatim
40272 #: ../src/guestfs.pod:2794
40273 #, no-wrap
40274 msgid ""
40275 " SKIP_TEST_<CMD>=1\n"
40276 "\n"
40277 msgstr ""
40278
40279 #. type: textblock
40280 #: ../src/guestfs.pod:2796
40281 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40282 msgstr ""
40283
40284 #. type: textblock
40285 #: ../src/guestfs.pod:2798
40286 msgid "Packagers can run only certain tests by setting for example:"
40287 msgstr ""
40288
40289 #. type: verbatim
40290 #: ../src/guestfs.pod:2800
40291 #, no-wrap
40292 msgid ""
40293 " TEST_ONLY=\"vfs_type zerofree\"\n"
40294 "\n"
40295 msgstr ""
40296
40297 #. type: textblock
40298 #: ../src/guestfs.pod:2802
40299 msgid ""
40300 "See C<capitests/tests.c> for more details of how these environment variables "
40301 "work."
40302 msgstr ""
40303
40304 #. type: =head2
40305 #: ../src/guestfs.pod:2805
40306 msgid "DEBUGGING NEW API ACTIONS"
40307 msgstr ""
40308
40309 #. type: textblock
40310 #: ../src/guestfs.pod:2807
40311 msgid "Test new actions work before submitting them."
40312 msgstr ""
40313
40314 #. type: textblock
40315 #: ../src/guestfs.pod:2809
40316 msgid "You can use guestfish to try out new commands."
40317 msgstr ""
40318
40319 #. type: textblock
40320 #: ../src/guestfs.pod:2811
40321 msgid ""
40322 "Debugging the daemon is a problem because it runs inside a minimal "
40323 "environment.  However you can fprintf messages in the daemon to stderr, and "
40324 "they will show up if you use C<guestfish -v>."
40325 msgstr ""
40326
40327 #. type: =head2
40328 #: ../src/guestfs.pod:2815
40329 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40330 msgstr ""
40331
40332 #. type: textblock
40333 #: ../src/guestfs.pod:2817
40334 msgid ""
40335 "Our C source code generally adheres to some basic code-formatting "
40336 "conventions.  The existing code base is not totally consistent on this "
40337 "front, but we do prefer that contributed code be formatted similarly.  In "
40338 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40339 "indentation level, and other than that, follow the K&R style."
40340 msgstr ""
40341
40342 #. type: textblock
40343 #: ../src/guestfs.pod:2823
40344 msgid ""
40345 "If you use Emacs, add the following to one of one of your start-up files (e."
40346 "g., ~/.emacs), to help ensure that you get indentation right:"
40347 msgstr ""
40348
40349 #. type: verbatim
40350 #: ../src/guestfs.pod:2826
40351 #, no-wrap
40352 msgid ""
40353 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40354 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40355 " (add-hook 'find-file-hook\n"
40356 "     '(lambda () (if (and buffer-file-name\n"
40357 "                          (string-match \"/libguestfs\\\\>\"\n"
40358 "                              (buffer-file-name))\n"
40359 "                          (not (string-equal mode-name \"Change Log\"))\n"
40360 "                          (not (string-equal mode-name \"Makefile\")))\n"
40361 "                     (setq indent-tabs-mode nil))))\n"
40362 " \n"
40363 msgstr ""
40364
40365 #. type: verbatim
40366 #: ../src/guestfs.pod:2836
40367 #, no-wrap
40368 msgid ""
40369 " ;;; When editing C sources in libguestfs, use this style.\n"
40370 " (defun libguestfs-c-mode ()\n"
40371 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40372 "   (interactive)\n"
40373 "   (c-set-style \"K&R\")\n"
40374 "   (setq c-indent-level 2)\n"
40375 "   (setq c-basic-offset 2))\n"
40376 " (add-hook 'c-mode-hook\n"
40377 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40378 "                               (buffer-file-name))\n"
40379 "                           (libguestfs-c-mode))))\n"
40380 "\n"
40381 msgstr ""
40382
40383 #. type: textblock
40384 #: ../src/guestfs.pod:2848
40385 msgid "Enable warnings when compiling (and fix any problems this finds):"
40386 msgstr ""
40387
40388 #. type: verbatim
40389 #: ../src/guestfs.pod:2851
40390 #, no-wrap
40391 msgid ""
40392 " ./configure --enable-gcc-warnings\n"
40393 "\n"
40394 msgstr ""
40395
40396 #. type: textblock
40397 #: ../src/guestfs.pod:2853
40398 msgid "Useful targets are:"
40399 msgstr ""
40400
40401 #. type: verbatim
40402 #: ../src/guestfs.pod:2855
40403 #, no-wrap
40404 msgid ""
40405 " make syntax-check  # checks the syntax of the C code\n"
40406 " make check         # runs the test suite\n"
40407 "\n"
40408 msgstr ""
40409
40410 #. type: =head2
40411 #: ../src/guestfs.pod:2858
40412 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40413 msgstr ""
40414
40415 #. type: textblock
40416 #: ../src/guestfs.pod:2860
40417 msgid ""
40418 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40419 "which are used to do shell quoting."
40420 msgstr ""
40421
40422 #. type: =item
40423 #: ../src/guestfs.pod:2865
40424 msgid "%Q"
40425 msgstr ""
40426
40427 #. type: textblock
40428 #: ../src/guestfs.pod:2867
40429 msgid ""
40430 "Simple shell quoted string.  Any spaces or other shell characters are "
40431 "escaped for you."
40432 msgstr ""
40433
40434 #. type: =item
40435 #: ../src/guestfs.pod:2870
40436 msgid "%R"
40437 msgstr ""
40438
40439 #. type: textblock
40440 #: ../src/guestfs.pod:2872
40441 msgid ""
40442 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40443 "the sysroot."
40444 msgstr ""
40445
40446 #. type: verbatim
40447 #: ../src/guestfs.pod:2879
40448 #, no-wrap
40449 msgid ""
40450 " asprintf (&cmd, \"cat %R\", path);\n"
40451 "\n"
40452 msgstr ""
40453
40454 #. type: textblock
40455 #: ../src/guestfs.pod:2881
40456 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40457 msgstr ""
40458
40459 #. type: textblock
40460 #: ../src/guestfs.pod:2883
40461 msgid ""
40462 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40463 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
40464 "they are not passed via the shell (instead, straight to exec).  You probably "
40465 "want to use the C<sysroot_path()> function however."
40466 msgstr ""
40467
40468 #. type: =head2
40469 #: ../src/guestfs.pod:2889
40470 msgid "SUBMITTING YOUR NEW API ACTIONS"
40471 msgstr ""
40472
40473 #. type: textblock
40474 #: ../src/guestfs.pod:2891
40475 msgid ""
40476 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40477 "libguestfs> and CC to L<rjones@redhat.com>."
40478 msgstr ""
40479
40480 #. type: =head2
40481 #: ../src/guestfs.pod:2895
40482 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40483 msgstr ""
40484
40485 #. type: textblock
40486 #: ../src/guestfs.pod:2897
40487 msgid "We support i18n (gettext anyhow) in the library."
40488 msgstr ""
40489
40490 #. type: textblock
40491 #: ../src/guestfs.pod:2899
40492 msgid ""
40493 "However many messages come from the daemon, and we don't translate those at "
40494 "the moment.  One reason is that the appliance generally has all locale files "
40495 "removed from it, because they take up a lot of space.  So we'd have to readd "
40496 "some of those, as well as copying our PO files into the appliance."
40497 msgstr ""
40498
40499 #. type: textblock
40500 #: ../src/guestfs.pod:2905
40501 msgid ""
40502 "Debugging messages are never translated, since they are intended for the "
40503 "programmers."
40504 msgstr ""
40505
40506 #. type: =head2
40507 #: ../src/guestfs.pod:2908
40508 msgid "SOURCE CODE SUBDIRECTORIES"
40509 msgstr ""
40510
40511 #. type: =item
40512 #: ../src/guestfs.pod:2912
40513 msgid "C<align>"
40514 msgstr ""
40515
40516 #. type: textblock
40517 #: ../src/guestfs.pod:2914
40518 msgid "L<virt-alignment-scan(1)> command and documentation."
40519 msgstr ""
40520
40521 #. type: textblock
40522 #: ../src/guestfs.pod:2918
40523 msgid "The libguestfs appliance, build scripts and so on."
40524 msgstr ""
40525
40526 #. type: =item
40527 #: ../src/guestfs.pod:2920
40528 msgid "C<capitests>"
40529 msgstr ""
40530
40531 #. type: textblock
40532 #: ../src/guestfs.pod:2922
40533 msgid "Automated tests of the C API."
40534 msgstr ""
40535
40536 #. type: =item
40537 #: ../src/guestfs.pod:2924
40538 msgid "C<cat>"
40539 msgstr ""
40540
40541 #. type: textblock
40542 #: ../src/guestfs.pod:2926
40543 msgid ""
40544 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40545 "documentation."
40546 msgstr ""
40547
40548 #. type: =item
40549 #: ../src/guestfs.pod:2929
40550 msgid "C<caution>"
40551 msgstr ""
40552
40553 #. type: textblock
40554 #: ../src/guestfs.pod:2931
40555 msgid ""
40556 "Safety and liveness tests of components that libguestfs depends upon (not of "
40557 "libguestfs itself).  Mainly this is for qemu and the kernel."
40558 msgstr ""
40559
40560 #. type: =item
40561 #: ../src/guestfs.pod:2934
40562 msgid "C<clone>"
40563 msgstr ""
40564
40565 #. type: textblock
40566 #: ../src/guestfs.pod:2936
40567 msgid ""
40568 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
40569 "command and documentation."
40570 msgstr ""
40571
40572 #. type: =item
40573 #: ../src/guestfs.pod:2939
40574 msgid "C<contrib>"
40575 msgstr ""
40576
40577 #. type: textblock
40578 #: ../src/guestfs.pod:2941
40579 msgid "Outside contributions, experimental parts."
40580 msgstr ""
40581
40582 #. type: =item
40583 #: ../src/guestfs.pod:2943
40584 msgid "C<daemon>"
40585 msgstr ""
40586
40587 #. type: textblock
40588 #: ../src/guestfs.pod:2945
40589 msgid ""
40590 "The daemon that runs inside the libguestfs appliance and carries out actions."
40591 msgstr ""
40592
40593 #. type: =item
40594 #: ../src/guestfs.pod:2948
40595 msgid "C<df>"
40596 msgstr ""
40597
40598 #. type: textblock
40599 #: ../src/guestfs.pod:2950
40600 msgid "L<virt-df(1)> command and documentation."
40601 msgstr ""
40602
40603 #. type: =item
40604 #: ../src/guestfs.pod:2952
40605 msgid "C<edit>"
40606 msgstr ""
40607
40608 #. type: textblock
40609 #: ../src/guestfs.pod:2954
40610 msgid "L<virt-edit(1)> command and documentation."
40611 msgstr ""
40612
40613 #. type: =item
40614 #: ../src/guestfs.pod:2956
40615 msgid "C<examples>"
40616 msgstr ""
40617
40618 #. type: textblock
40619 #: ../src/guestfs.pod:2958
40620 msgid "C API example code."
40621 msgstr ""
40622
40623 #. type: =item
40624 #: ../src/guestfs.pod:2960
40625 msgid "C<extratests>"
40626 msgstr ""
40627
40628 #. type: textblock
40629 #: ../src/guestfs.pod:2962
40630 msgid ""
40631 "Extra tests.  These are not run by default because they require special "
40632 "tools or configuration."
40633 msgstr ""
40634
40635 #. type: =item
40636 #: ../src/guestfs.pod:2965
40637 msgid "C<fish>"
40638 msgstr ""
40639
40640 #. type: textblock
40641 #: ../src/guestfs.pod:2967
40642 msgid ""
40643 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40644 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40645 "L<virt-tar-out(1)>."
40646 msgstr ""
40647
40648 #. type: =item
40649 #: ../src/guestfs.pod:2971
40650 msgid "C<fuse>"
40651 msgstr ""
40652
40653 #. type: textblock
40654 #: ../src/guestfs.pod:2973
40655 msgid ""
40656 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40657 msgstr ""
40658
40659 #. type: =item
40660 #: ../src/guestfs.pod:2975
40661 msgid "C<generator>"
40662 msgstr ""
40663
40664 #. type: textblock
40665 #: ../src/guestfs.pod:2977
40666 msgid ""
40667 "The crucially important generator, used to automatically generate large "
40668 "amounts of boilerplate C code for things like RPC and bindings."
40669 msgstr ""
40670
40671 #. type: =item
40672 #: ../src/guestfs.pod:2980
40673 msgid "C<images>"
40674 msgstr ""
40675
40676 #. type: textblock
40677 #: ../src/guestfs.pod:2982
40678 msgid "Files used by the test suite."
40679 msgstr ""
40680
40681 #. type: textblock
40682 #: ../src/guestfs.pod:2984
40683 msgid "Some \"phony\" guest images which we test against."
40684 msgstr ""
40685
40686 #. type: =item
40687 #: ../src/guestfs.pod:2986
40688 msgid "C<inspector>"
40689 msgstr ""
40690
40691 #. type: textblock
40692 #: ../src/guestfs.pod:2988
40693 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40694 msgstr ""
40695
40696 #. type: =item
40697 #: ../src/guestfs.pod:2990
40698 msgid "C<logo>"
40699 msgstr ""
40700
40701 #. type: textblock
40702 #: ../src/guestfs.pod:2992
40703 msgid "Logo used on the website.  The fish is called Arthur by the way."
40704 msgstr ""
40705
40706 #. type: =item
40707 #: ../src/guestfs.pod:2994
40708 msgid "C<m4>"
40709 msgstr ""
40710
40711 #. type: textblock
40712 #: ../src/guestfs.pod:2996
40713 msgid "M4 macros used by autoconf."
40714 msgstr ""
40715
40716 #. type: =item
40717 #: ../src/guestfs.pod:2998
40718 msgid "C<po>"
40719 msgstr ""
40720
40721 #. type: textblock
40722 #: ../src/guestfs.pod:3000
40723 msgid "Translations of simple gettext strings."
40724 msgstr ""
40725
40726 #. type: =item
40727 #: ../src/guestfs.pod:3002
40728 msgid "C<po-docs>"
40729 msgstr ""
40730
40731 #. type: textblock
40732 #: ../src/guestfs.pod:3004
40733 msgid ""
40734 "The build infrastructure and PO files for translations of manpages and POD "
40735 "files.  Eventually this will be combined with the C<po> directory, but that "
40736 "is rather complicated."
40737 msgstr ""
40738
40739 #. type: =item
40740 #: ../src/guestfs.pod:3008
40741 msgid "C<regressions>"
40742 msgstr ""
40743
40744 #. type: textblock
40745 #: ../src/guestfs.pod:3010
40746 msgid "Regression tests."
40747 msgstr ""
40748
40749 #. type: =item
40750 #: ../src/guestfs.pod:3012
40751 msgid "C<rescue>"
40752 msgstr ""
40753
40754 #. type: textblock
40755 #: ../src/guestfs.pod:3014
40756 msgid "L<virt-rescue(1)> command and documentation."
40757 msgstr ""
40758
40759 #. type: =item
40760 #: ../src/guestfs.pod:3016
40761 msgid "C<resize>"
40762 msgstr ""
40763
40764 #. type: textblock
40765 #: ../src/guestfs.pod:3018
40766 msgid "L<virt-resize(1)> command and documentation."
40767 msgstr ""
40768
40769 #. type: =item
40770 #: ../src/guestfs.pod:3020
40771 msgid "C<sparsify>"
40772 msgstr ""
40773
40774 #. type: textblock
40775 #: ../src/guestfs.pod:3022
40776 msgid "L<virt-sparsify(1)> command and documentation."
40777 msgstr ""
40778
40779 #. type: =item
40780 #: ../src/guestfs.pod:3024
40781 msgid "C<src>"
40782 msgstr ""
40783
40784 #. type: textblock
40785 #: ../src/guestfs.pod:3026
40786 msgid "Source code to the C library."
40787 msgstr ""
40788
40789 #. type: =item
40790 #: ../src/guestfs.pod:3028
40791 msgid "C<tools>"
40792 msgstr ""
40793
40794 #. type: textblock
40795 #: ../src/guestfs.pod:3030
40796 msgid ""
40797 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40798 msgstr ""
40799
40800 #. type: =item
40801 #: ../src/guestfs.pod:3032
40802 msgid "C<test-tool>"
40803 msgstr ""
40804
40805 #. type: textblock
40806 #: ../src/guestfs.pod:3034
40807 msgid ""
40808 "Test tool for end users to test if their qemu/kernel combination will work "
40809 "with libguestfs."
40810 msgstr ""
40811
40812 #. type: =item
40813 #: ../src/guestfs.pod:3037
40814 msgid "C<csharp>"
40815 msgstr ""
40816
40817 #. type: =item
40818 #: ../src/guestfs.pod:3039
40819 msgid "C<erlang>"
40820 msgstr ""
40821
40822 #. type: =item
40823 #: ../src/guestfs.pod:3041
40824 msgid "C<haskell>"
40825 msgstr ""
40826
40827 #. type: =item
40828 #: ../src/guestfs.pod:3043
40829 msgid "C<java>"
40830 msgstr ""
40831
40832 #. type: =item
40833 #: ../src/guestfs.pod:3045
40834 msgid "C<ocaml>"
40835 msgstr ""
40836
40837 #. type: =item
40838 #: ../src/guestfs.pod:3047
40839 msgid "C<php>"
40840 msgstr ""
40841
40842 #. type: =item
40843 #: ../src/guestfs.pod:3049
40844 msgid "C<perl>"
40845 msgstr ""
40846
40847 #. type: =item
40848 #: ../src/guestfs.pod:3051
40849 msgid "C<python>"
40850 msgstr ""
40851
40852 #. type: =item
40853 #: ../src/guestfs.pod:3053
40854 msgid "C<ruby>"
40855 msgstr ""
40856
40857 #. type: textblock
40858 #: ../src/guestfs.pod:3055
40859 msgid "Language bindings."
40860 msgstr ""
40861
40862 #. type: =head2
40863 #: ../src/guestfs.pod:3059
40864 msgid "MAKING A STABLE RELEASE"
40865 msgstr ""
40866
40867 #. type: textblock
40868 #: ../src/guestfs.pod:3061
40869 msgid ""
40870 "When we make a stable release, there are several steps documented here.  See "
40871 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40872 "branch policy."
40873 msgstr ""
40874
40875 #. type: textblock
40876 #: ../src/guestfs.pod:3069
40877 msgid ""
40878 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40879 msgstr ""
40880
40881 #. type: textblock
40882 #: ../src/guestfs.pod:3074
40883 msgid "Finalize RELEASE-NOTES."
40884 msgstr ""
40885
40886 #. type: textblock
40887 #: ../src/guestfs.pod:3078
40888 msgid "Update ROADMAP."
40889 msgstr ""
40890
40891 #. type: textblock
40892 #: ../src/guestfs.pod:3082
40893 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40894 msgstr ""
40895
40896 #. type: textblock
40897 #: ../src/guestfs.pod:3086
40898 msgid "Push and pull from Transifex."
40899 msgstr ""
40900
40901 #. type: verbatim
40902 #: ../src/guestfs.pod:3090
40903 #, no-wrap
40904 msgid ""
40905 " tx push -s\n"
40906 "\n"
40907 msgstr ""
40908
40909 #. type: textblock
40910 #: ../src/guestfs.pod:3092
40911 msgid "to push the latest POT files to Transifex.  Then run:"
40912 msgstr ""
40913
40914 #. type: verbatim
40915 #: ../src/guestfs.pod:3094
40916 #, no-wrap
40917 msgid ""
40918 " ./tx-pull.sh\n"
40919 "\n"
40920 msgstr ""
40921
40922 #. type: textblock
40923 #: ../src/guestfs.pod:3096
40924 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40925 msgstr ""
40926
40927 #. type: textblock
40928 #: ../src/guestfs.pod:3100
40929 msgid ""
40930 "Create new stable and development directories under L<http://libguestfs.org/"
40931 "download>."
40932 msgstr ""
40933
40934 #. type: textblock
40935 #: ../src/guestfs.pod:3105
40936 msgid "Create the branch in git:"
40937 msgstr ""
40938
40939 #. type: verbatim
40940 #: ../src/guestfs.pod:3107
40941 #, no-wrap
40942 msgid ""
40943 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40944 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40945 " git branch stable-1.XX\n"
40946 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40947 "\n"
40948 msgstr ""
40949
40950 #. type: =head1
40951 #: ../src/guestfs.pod:3114
40952 msgid "LIMITS"
40953 msgstr ""
40954
40955 #. type: =head2
40956 #: ../src/guestfs.pod:3116
40957 msgid "PROTOCOL LIMITS"
40958 msgstr ""
40959
40960 #. type: textblock
40961 #: ../src/guestfs.pod:3118
40962 msgid ""
40963 "Internally libguestfs uses a message-based protocol to pass API calls and "
40964 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40965 "plenty more detail about this).  The maximum message size used by the "
40966 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40967 "aware of this limit.  The API calls which may be affected are individually "
40968 "documented, with a link back to this section of the documentation."
40969 msgstr ""
40970
40971 #. type: textblock
40972 #: ../src/guestfs.pod:3126
40973 msgid ""
40974 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40975 "a simple string.  Because this string is at some point internally encoded as "
40976 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40977 "the requested file is larger than this then you will get an error."
40978 msgstr ""
40979
40980 #. type: textblock
40981 #: ../src/guestfs.pod:3132
40982 msgid ""
40983 "In order to transfer large files into and out of the guest filesystem, you "
40984 "need to use particular calls that support this.  The sections L</UPLOADING> "
40985 "and L</DOWNLOADING> document how to do this."
40986 msgstr ""
40987
40988 #. type: textblock
40989 #: ../src/guestfs.pod:3136
40990 msgid ""
40991 "You might also consider mounting the disk image using our FUSE filesystem "
40992 "support (L<guestmount(1)>)."
40993 msgstr ""
40994
40995 #. type: =head2
40996 #: ../src/guestfs.pod:3139
40997 msgid "MAXIMUM NUMBER OF DISKS"
40998 msgstr ""
40999
41000 #. type: textblock
41001 #: ../src/guestfs.pod:3141
41002 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41003 msgstr ""
41004
41005 #. type: textblock
41006 #: ../src/guestfs.pod:3144
41007 msgid ""
41008 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41009 "slots.  However febootstrap only understands disks with names C</dev/vda> "
41010 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41011 "purposes."
41012 msgstr ""
41013
41014 #. type: textblock
41015 #: ../src/guestfs.pod:3149
41016 msgid ""
41017 "We are working to substantially raise this limit in future versions but it "
41018 "requires complex changes to qemu."
41019 msgstr ""
41020
41021 #. type: textblock
41022 #: ../src/guestfs.pod:3152
41023 msgid ""
41024 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41025 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
41026 "requires changes to qemu."
41027 msgstr ""
41028
41029 #. type: =head2
41030 #: ../src/guestfs.pod:3156
41031 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41032 msgstr ""
41033
41034 #. type: textblock
41035 #: ../src/guestfs.pod:3158
41036 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41037 msgstr ""
41038
41039 #. type: textblock
41040 #: ../src/guestfs.pod:3160
41041 msgid ""
41042 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41043 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41044 msgstr ""
41045
41046 #. type: textblock
41047 #: ../src/guestfs.pod:3163
41048 msgid ""
41049 "If you attach a disk with more than 15 partitions, the extra partitions are "
41050 "ignored by libguestfs."
41051 msgstr ""
41052
41053 #. type: =head2
41054 #: ../src/guestfs.pod:3166
41055 msgid "MAXIMUM SIZE OF A DISK"
41056 msgstr ""
41057
41058 #. type: textblock
41059 #: ../src/guestfs.pod:3168
41060 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41061 msgstr ""
41062
41063 #. type: textblock
41064 #: ../src/guestfs.pod:3170
41065 msgid ""
41066 "We have tested block devices up to 1 exabyte (2**60 or "
41067 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41068 "filesystem."
41069 msgstr ""
41070
41071 #. type: textblock
41072 #: ../src/guestfs.pod:3174
41073 msgid ""
41074 "Although libguestfs probably does not impose any limit, the underlying host "
41075 "storage will.  If you store disk images on a host ext4 filesystem, then the "
41076 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41077 "TB).  If you store disk images as host logical volumes then you are limited "
41078 "by the maximum size of an LV."
41079 msgstr ""
41080
41081 #. type: textblock
41082 #: ../src/guestfs.pod:3180
41083 msgid ""
41084 "For the hugest disk image files, we recommend using XFS on the host for "
41085 "storage."
41086 msgstr ""
41087
41088 #. type: =head2
41089 #: ../src/guestfs.pod:3183
41090 msgid "MAXIMUM SIZE OF A PARTITION"
41091 msgstr ""
41092
41093 #. type: textblock
41094 #: ../src/guestfs.pod:3185
41095 msgid ""
41096 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41097 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
41098 "address a partition located beyond 2 TB on the disk."
41099 msgstr ""
41100
41101 #. type: textblock
41102 #: ../src/guestfs.pod:3189
41103 msgid ""
41104 "It is recommended that you use GPT partitions on disks which are larger than "
41105 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
41106 "which are theoretically larger than the largest disk we could support."
41107 msgstr ""
41108
41109 #. type: =head2
41110 #: ../src/guestfs.pod:3194
41111 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41112 msgstr ""
41113
41114 #. type: textblock
41115 #: ../src/guestfs.pod:3196
41116 msgid ""
41117 "This depends on the filesystem type.  libguestfs itself does not impose any "
41118 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
41119 "what these limits are."
41120 msgstr ""
41121
41122 #. type: =head2
41123 #: ../src/guestfs.pod:3200
41124 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41125 msgstr ""
41126
41127 #. type: textblock
41128 #: ../src/guestfs.pod:3202
41129 msgid ""
41130 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41131 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41132 "uploads and downloads."
41133 msgstr ""
41134
41135 #. type: =head2
41136 #: ../src/guestfs.pod:3206
41137 msgid "INSPECTION LIMITS"
41138 msgstr ""
41139
41140 #. type: textblock
41141 #: ../src/guestfs.pod:3208
41142 msgid ""
41143 "The inspection code has several arbitrary limits on things like the size of "
41144 "Windows Registry hive it will read, and the length of product name.  These "
41145 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41146 "memory and disk space on the host, and should not be reached in practice.  "
41147 "See the source code for more information."
41148 msgstr ""
41149
41150 #. type: textblock
41151 #: ../src/guestfs.pod:3234
41152 msgid ""
41153 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
41154 "effect as calling C<guestfs_set_verbose (g, 1)>."
41155 msgstr ""
41156
41157 #. type: textblock
41158 #: ../src/guestfs.pod:3246
41159 msgid ""
41160 "Set the path that libguestfs uses to search for a supermin appliance.  See "
41161 "the discussion of paths in section L</PATH> above."
41162 msgstr ""
41163
41164 #. type: textblock
41165 #: ../src/guestfs.pod:3255
41166 msgid "See also L</QEMU WRAPPERS> above."
41167 msgstr ""
41168
41169 #. type: textblock
41170 #: ../src/guestfs.pod:3259
41171 msgid ""
41172 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
41173 "effect as calling C<guestfs_set_trace (g, 1)>."
41174 msgstr ""
41175
41176 #. type: textblock
41177 #: ../src/guestfs.pod:3277
41178 msgid ""
41179 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41180 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41181 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41182 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41183 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41184 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41185 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41186 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
41187 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
41188 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
41189 msgstr ""
41190
41191 #. type: textblock
41192 #: ../src/guestfs.pod:3314
41193 msgid ""
41194 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41195 "(8)>, L<disktype(1)>."
41196 msgstr ""
41197
41198 #. type: =head1
41199 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571
41200 #: ../tools/virt-win-reg.pl:772
41201 msgid "BUGS"
41202 msgstr ""
41203
41204 #. type: textblock
41205 #: ../src/guestfs.pod:3323
41206 msgid "To get a list of bugs against libguestfs use this link:"
41207 msgstr ""
41208
41209 #. type: textblock
41210 #: ../src/guestfs.pod:3325
41211 msgid ""
41212 "L<https://bugzilla.redhat.com/buglist.cgi?"
41213 "component=libguestfs&product=Virtualization+Tools>"
41214 msgstr ""
41215
41216 #. type: textblock
41217 #: ../src/guestfs.pod:3327
41218 msgid "To report a new bug against libguestfs use this link:"
41219 msgstr ""
41220
41221 #. type: textblock
41222 #: ../src/guestfs.pod:3329
41223 msgid ""
41224 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41225 "component=libguestfs&product=Virtualization+Tools>"
41226 msgstr ""
41227
41228 #. type: textblock
41229 #: ../src/guestfs.pod:3331
41230 msgid "When reporting a bug, please check:"
41231 msgstr ""
41232
41233 #. type: textblock
41234 #: ../src/guestfs.pod:3337
41235 msgid "That the bug hasn't been reported already."
41236 msgstr ""
41237
41238 #. type: textblock
41239 #: ../src/guestfs.pod:3341
41240 msgid "That you are testing a recent version."
41241 msgstr ""
41242
41243 #. type: textblock
41244 #: ../src/guestfs.pod:3345
41245 msgid "Describe the bug accurately, and give a way to reproduce it."
41246 msgstr ""
41247
41248 #. type: textblock
41249 #: ../src/guestfs.pod:3349
41250 msgid ""
41251 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41252 "bug report."
41253 msgstr ""
41254
41255 #. type: textblock
41256 #: ../test-tool/libguestfs-test-tool.pod:5
41257 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41258 msgstr ""
41259
41260 #. type: verbatim
41261 #: ../test-tool/libguestfs-test-tool.pod:9
41262 #, no-wrap
41263 msgid ""
41264 " libguestfs-test-tool [--options]\n"
41265 "\n"
41266 msgstr ""
41267
41268 #. type: textblock
41269 #: ../test-tool/libguestfs-test-tool.pod:13
41270 msgid ""
41271 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41272 "to check basic libguestfs functionality is working.  This is needed because "
41273 "libguestfs occasionally breaks for reasons beyond our control: usually "
41274 "because of changes in the underlying qemu or kernel packages, or the host "
41275 "environment."
41276 msgstr ""
41277
41278 #. type: textblock
41279 #: ../test-tool/libguestfs-test-tool.pod:19
41280 msgid "If you suspect a problem in libguestfs, then just run:"
41281 msgstr ""
41282
41283 #. type: verbatim
41284 #: ../test-tool/libguestfs-test-tool.pod:21
41285 #, no-wrap
41286 msgid ""
41287 " libguestfs-test-tool\n"
41288 "\n"
41289 msgstr ""
41290
41291 #. type: textblock
41292 #: ../test-tool/libguestfs-test-tool.pod:23
41293 msgid "It will print lots of diagnostic messages."
41294 msgstr ""
41295
41296 #. type: textblock
41297 #: ../test-tool/libguestfs-test-tool.pod:25
41298 msgid "If it runs to completion successfully, you will see this near the end:"
41299 msgstr ""
41300
41301 #. type: verbatim
41302 #: ../test-tool/libguestfs-test-tool.pod:27
41303 #, no-wrap
41304 msgid ""
41305 " ===== TEST FINISHED OK =====\n"
41306 "\n"
41307 msgstr ""
41308
41309 #. type: textblock
41310 #: ../test-tool/libguestfs-test-tool.pod:29
41311 msgid "and the test tool will exit with code 0."
41312 msgstr ""
41313
41314 #. type: textblock
41315 #: ../test-tool/libguestfs-test-tool.pod:31
41316 msgid ""
41317 "If it fails (and/or exits with non-zero error code), please paste the "
41318 "I<complete, unedited> output of the test tool into a bug report.  More "
41319 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41320 "> website."
41321 msgstr ""
41322
41323 #. type: textblock
41324 #: ../test-tool/libguestfs-test-tool.pod:42
41325 msgid "Display short usage information and exit."
41326 msgstr ""
41327
41328 #. type: =item
41329 #: ../test-tool/libguestfs-test-tool.pod:44
41330 msgid "B<--qemu qemu_binary>"
41331 msgstr ""
41332
41333 #. type: textblock
41334 #: ../test-tool/libguestfs-test-tool.pod:46
41335 msgid ""
41336 "If you have downloaded another qemu binary, point this option at the full "
41337 "path of the binary to try it."
41338 msgstr ""
41339
41340 #. type: =item
41341 #: ../test-tool/libguestfs-test-tool.pod:49
41342 msgid "B<--qemudir qemu_source_dir>"
41343 msgstr ""
41344
41345 #. type: textblock
41346 #: ../test-tool/libguestfs-test-tool.pod:51
41347 msgid ""
41348 "If you have compiled qemu from source, point this option at the source "
41349 "directory to try it."
41350 msgstr ""
41351
41352 #. type: =item
41353 #: ../test-tool/libguestfs-test-tool.pod:54
41354 msgid "B<-t N>"
41355 msgstr ""
41356
41357 #. type: =item
41358 #: ../test-tool/libguestfs-test-tool.pod:56
41359 msgid "B<--timeout N>"
41360 msgstr ""
41361
41362 #. type: textblock
41363 #: ../test-tool/libguestfs-test-tool.pod:58
41364 msgid ""
41365 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41366 "minutes) which does not usually need to be adjusted."
41367 msgstr ""
41368
41369 #. type: =head1
41370 #: ../test-tool/libguestfs-test-tool.pod:63
41371 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41372 msgstr ""
41373
41374 #. type: textblock
41375 #: ../test-tool/libguestfs-test-tool.pod:65
41376 msgid ""
41377 "If you have compiled another version of qemu from source and would like to "
41378 "try that, then you can use the I<--qemudir> option to point to the qemu "
41379 "source directory."
41380 msgstr ""
41381
41382 #. type: textblock
41383 #: ../test-tool/libguestfs-test-tool.pod:69
41384 msgid ""
41385 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41386 "option to point to the binary."
41387 msgstr ""
41388
41389 #. type: textblock
41390 #: ../test-tool/libguestfs-test-tool.pod:72
41391 msgid ""
41392 "Note when using these options, you can ignore the business of qemu wrapper "
41393 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41394 "wrapper script for you if one is needed."
41395 msgstr ""
41396
41397 #. type: =head1
41398 #: ../test-tool/libguestfs-test-tool.pod:76
41399 msgid "TRYING OUT A DIFFERENT KERNEL"
41400 msgstr ""
41401
41402 #. type: textblock
41403 #: ../test-tool/libguestfs-test-tool.pod:78
41404 msgid ""
41405 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41406 "libguestfs tries.  You do this by setting the environment variables "
41407 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41408 msgstr ""
41409
41410 #. type: textblock
41411 #: ../test-tool/libguestfs-test-tool.pod:82
41412 msgid ""
41413 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41414 "information."
41415 msgstr ""
41416
41417 #. type: =head1
41418 #: ../test-tool/libguestfs-test-tool.pod:85
41419 msgid "SELF-DIAGNOSIS"
41420 msgstr ""
41421
41422 #. type: textblock
41423 #: ../test-tool/libguestfs-test-tool.pod:87
41424 msgid ""
41425 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41426 "produced by libguestfs-test-tool and/or possible errors."
41427 msgstr ""
41428
41429 #. type: textblock
41430 #: ../test-tool/libguestfs-test-tool.pod:92
41431 msgid ""
41432 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41433 "I<1> if there was an error."
41434 msgstr ""
41435
41436 #. type: textblock
41437 #: ../test-tool/libguestfs-test-tool.pod:97
41438 msgid ""
41439 "For the full list of environment variables which may affect libguestfs, "
41440 "please see the L<guestfs(3)> manual page."
41441 msgstr ""
41442
41443 #. type: textblock
41444 #: ../test-tool/libguestfs-test-tool.pod:102
41445 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41446 msgstr ""
41447
41448 #. type: textblock
41449 #: ../tools/virt-list-filesystems.pl:32
41450 msgid ""
41451 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41452 msgstr ""
41453
41454 #. type: verbatim
41455 #: ../tools/virt-list-filesystems.pl:36
41456 #, no-wrap
41457 msgid ""
41458 " virt-list-filesystems [--options] domname\n"
41459 "\n"
41460 msgstr ""
41461
41462 #. type: verbatim
41463 #: ../tools/virt-list-filesystems.pl:38
41464 #, no-wrap
41465 msgid ""
41466 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41467 "\n"
41468 msgstr ""
41469
41470 #. type: textblock
41471 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41472 msgid ""
41473 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
41474 "replacement."
41475 msgstr ""
41476
41477 #. type: textblock
41478 #: ../tools/virt-list-filesystems.pl:45
41479 msgid ""
41480 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41481 "are contained in a virtual machine or disk image."
41482 msgstr ""
41483
41484 #. type: textblock
41485 #: ../tools/virt-list-filesystems.pl:49
41486 msgid ""
41487 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41488 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41489 "> tool."
41490 msgstr ""
41491
41492 #. type: textblock
41493 #: ../tools/virt-list-filesystems.pl:112
41494 msgid ""
41495 "With this option, C<virt-list-filesystems> displays the type of each "
41496 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41497 msgstr ""
41498
41499 #. type: =item
41500 #: ../tools/virt-list-filesystems.pl:119
41501 msgid "B<-a>"
41502 msgstr ""
41503
41504 #. type: textblock
41505 #: ../tools/virt-list-filesystems.pl:123
41506 msgid ""
41507 "Normally we only show mountable filesystems.  If this option is given then "
41508 "swap devices are shown too."
41509 msgstr ""
41510
41511 #. type: textblock
41512 #: ../tools/virt-list-filesystems.pl:197
41513 msgid ""
41514 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41515 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41516 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41517 msgstr ""
41518
41519 #. type: textblock
41520 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41521 msgid "Copyright (C) 2009 Red Hat Inc."
41522 msgstr ""
41523
41524 #. type: textblock
41525 #: ../tools/virt-list-partitions.pl:32
41526 msgid ""
41527 "virt-list-partitions - List partitions in a virtual machine or disk image"
41528 msgstr ""
41529
41530 #. type: verbatim
41531 #: ../tools/virt-list-partitions.pl:36
41532 #, no-wrap
41533 msgid ""
41534 " virt-list-partitions [--options] domname\n"
41535 "\n"
41536 msgstr ""
41537
41538 #. type: verbatim
41539 #: ../tools/virt-list-partitions.pl:38
41540 #, no-wrap
41541 msgid ""
41542 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41543 "\n"
41544 msgstr ""
41545
41546 #. type: textblock
41547 #: ../tools/virt-list-partitions.pl:45
41548 msgid ""
41549 "C<virt-list-partitions> is a command line tool to list the partitions that "
41550 "are contained in a virtual machine or disk image.  It is mainly useful as a "
41551 "first step to using L<virt-resize(1)>."
41552 msgstr ""
41553
41554 #. type: textblock
41555 #: ../tools/virt-list-partitions.pl:50
41556 msgid ""
41557 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41558 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41559 "> tool."
41560 msgstr ""
41561
41562 #. type: textblock
41563 #: ../tools/virt-list-partitions.pl:113
41564 msgid "Show sizes in human-readable form (eg. \"1G\")."
41565 msgstr ""
41566
41567 #. type: textblock
41568 #: ../tools/virt-list-partitions.pl:123
41569 msgid ""
41570 "With this option, C<virt-list-partitions> displays the type and size of each "
41571 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41572 msgstr ""
41573
41574 #. type: =item
41575 #: ../tools/virt-list-partitions.pl:130
41576 msgid "B<-t>"
41577 msgstr ""
41578
41579 #. type: =item
41580 #: ../tools/virt-list-partitions.pl:132
41581 msgid "B<--total>"
41582 msgstr ""
41583
41584 #. type: textblock
41585 #: ../tools/virt-list-partitions.pl:134
41586 msgid ""
41587 "Display the total size of each block device (as a separate row or rows)."
41588 msgstr ""
41589
41590 #. type: textblock
41591 #: ../tools/virt-list-partitions.pl:267
41592 msgid ""
41593 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41594 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41595 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41596 msgstr ""
41597
41598 #. type: textblock
41599 #: ../tools/virt-list-partitions.pl:283
41600 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41601 msgstr ""
41602
41603 #. type: textblock
41604 #: ../tools/virt-make-fs.pl:37
41605 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41606 msgstr ""
41607
41608 #. type: verbatim
41609 #: ../tools/virt-make-fs.pl:41
41610 #, no-wrap
41611 msgid ""
41612 " virt-make-fs [--options] input.tar output.img\n"
41613 "\n"
41614 msgstr ""
41615
41616 #. type: verbatim
41617 #: ../tools/virt-make-fs.pl:43
41618 #, no-wrap
41619 msgid ""
41620 " virt-make-fs [--options] input.tar.gz output.img\n"
41621 "\n"
41622 msgstr ""
41623
41624 #. type: verbatim
41625 #: ../tools/virt-make-fs.pl:45
41626 #, no-wrap
41627 msgid ""
41628 " virt-make-fs [--options] directory output.img\n"
41629 "\n"
41630 msgstr ""
41631
41632 #. type: textblock
41633 #: ../tools/virt-make-fs.pl:49
41634 msgid ""
41635 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41636 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
41637 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
41638 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
41639 "you want to attach these filesystems to existing virtual machines (eg. to "
41640 "import large amounts of read-only data to a VM)."
41641 msgstr ""
41642
41643 #. type: textblock
41644 #: ../tools/virt-make-fs.pl:57
41645 msgid "Basic usage is:"
41646 msgstr ""
41647
41648 #. type: verbatim
41649 #: ../tools/virt-make-fs.pl:59
41650 #, no-wrap
41651 msgid ""
41652 " virt-make-fs input output.img\n"
41653 "\n"
41654 msgstr ""
41655
41656 #. type: textblock
41657 #: ../tools/virt-make-fs.pl:61
41658 msgid ""
41659 "where C<input> is either a directory containing files that you want to add, "
41660 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41661 "C<output.img> is a disk image.  The input type is detected automatically.  "
41662 "The output disk image defaults to a raw ext2 sparse image unless you specify "
41663 "extra flags (see L</OPTIONS> below)."
41664 msgstr ""
41665
41666 #. type: =head2
41667 #: ../tools/virt-make-fs.pl:67
41668 msgid "FILESYSTEM TYPE"
41669 msgstr ""
41670
41671 #. type: textblock
41672 #: ../tools/virt-make-fs.pl:69
41673 msgid ""
41674 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
41675 "libguestfs supports can be used (but I<not> read-only formats like "
41676 "ISO9660).  Here are some of the more common choices:"
41677 msgstr ""
41678
41679 #. type: =item
41680 #: ../tools/virt-make-fs.pl:75
41681 msgid "I<ext3>"
41682 msgstr ""
41683
41684 #. type: textblock
41685 #: ../tools/virt-make-fs.pl:77
41686 msgid ""
41687 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
41688 "you are not going to use the filesystem in a way that requires the journal, "
41689 "then this is just wasted overhead."
41690 msgstr ""
41691
41692 #. type: =item
41693 #: ../tools/virt-make-fs.pl:81
41694 msgid "I<ntfs> or I<vfat>"
41695 msgstr ""
41696
41697 #. type: textblock
41698 #: ../tools/virt-make-fs.pl:83
41699 msgid "Useful if exporting data to a Windows guest."
41700 msgstr ""
41701
41702 #. type: textblock
41703 #: ../tools/virt-make-fs.pl:85
41704 msgid ""
41705 "I<Note for vfat>: The tar archive or local directory must only contain files "
41706 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
41707 "program running within libguestfs is unable to change the ownership of non-"
41708 "root files, since vfat itself does not support this."
41709 msgstr ""
41710
41711 #. type: =item
41712 #: ../tools/virt-make-fs.pl:90
41713 msgid "I<minix>"
41714 msgstr ""
41715
41716 #. type: textblock
41717 #: ../tools/virt-make-fs.pl:92
41718 msgid ""
41719 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41720 "total filesystem size."
41721 msgstr ""
41722
41723 #. type: =head3
41724 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
41725 #: ../tools/virt-make-fs.pl:149
41726 msgid "EXAMPLE"
41727 msgstr ""
41728
41729 #. type: verbatim
41730 #: ../tools/virt-make-fs.pl:99
41731 #, no-wrap
41732 msgid ""
41733 " virt-make-fs --type=minix input minixfs.img\n"
41734 "\n"
41735 msgstr ""
41736
41737 #. type: =head2
41738 #: ../tools/virt-make-fs.pl:101
41739 msgid "TO PARTITION OR NOT TO PARTITION"
41740 msgstr ""
41741
41742 #. type: textblock
41743 #: ../tools/virt-make-fs.pl:103
41744 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41745 msgstr ""
41746
41747 #. type: textblock
41748 #: ../tools/virt-make-fs.pl:105
41749 msgid ""
41750 "Adding a partition can make the disk image more compatible with certain "
41751 "virtualized operating systems which don't expect to see a filesystem "
41752 "directly located on a block device (Linux doesn't care and will happily "
41753 "handle both types)."
41754 msgstr ""
41755
41756 #. type: textblock
41757 #: ../tools/virt-make-fs.pl:110
41758 msgid ""
41759 "On the other hand, if you have a partition table then the output image is no "
41760 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41761 "directly on a partitioned disk image.  (However libguestfs tools such as "
41762 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41763 msgstr ""
41764
41765 #. type: textblock
41766 #: ../tools/virt-make-fs.pl:118
41767 msgid "Add an MBR partition:"
41768 msgstr ""
41769
41770 #. type: verbatim
41771 #: ../tools/virt-make-fs.pl:120
41772 #, no-wrap
41773 msgid ""
41774 " virt-make-fs --partition -- input disk.img\n"
41775 "\n"
41776 msgstr ""
41777
41778 #. type: textblock
41779 #: ../tools/virt-make-fs.pl:122
41780 msgid ""
41781 "If the output disk image could be terabyte-sized or larger, it's better to "
41782 "use an EFI/GPT-compatible partition table:"
41783 msgstr ""
41784
41785 #. type: verbatim
41786 #: ../tools/virt-make-fs.pl:125
41787 #, no-wrap
41788 msgid ""
41789 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41790 "\n"
41791 msgstr ""
41792
41793 #. type: =head2
41794 #: ../tools/virt-make-fs.pl:127
41795 msgid "EXTRA SPACE"
41796 msgstr ""
41797
41798 #. type: textblock
41799 #: ../tools/virt-make-fs.pl:129
41800 msgid ""
41801 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41802 "the files that it contains, but might have extra space.  Depending on how "
41803 "you are going to use the output, you might think this extra space is wasted "
41804 "and want to minimize it, or you might want to leave space so that more files "
41805 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41806 "but you can use the I<--size> flag to leave space in the filesystem if you "
41807 "want it."
41808 msgstr ""
41809
41810 #. type: textblock
41811 #: ../tools/virt-make-fs.pl:137
41812 msgid ""
41813 "An alternative way to leave extra space but not make the output image any "
41814 "bigger is to use an alternative disk image format (instead of the default "
41815 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41816 "image format (check your hypervisor supports this before using it).  This "
41817 "allows you to choose a large I<--size> but the extra space won't actually be "
41818 "allocated in the image until you try to store something in it."
41819 msgstr ""
41820
41821 #. type: textblock
41822 #: ../tools/virt-make-fs.pl:145
41823 msgid ""
41824 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41825 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41826 "to build another image from scratch."
41827 msgstr ""
41828
41829 #. type: verbatim
41830 #: ../tools/virt-make-fs.pl:151
41831 #, no-wrap
41832 msgid ""
41833 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41834 "\n"
41835 msgstr ""
41836
41837 #. type: textblock
41838 #: ../tools/virt-make-fs.pl:179
41839 msgid "Enable debugging information."
41840 msgstr ""
41841
41842 #. type: =item
41843 #: ../tools/virt-make-fs.pl:185
41844 msgid "B<--size=E<lt>NE<gt>>"
41845 msgstr ""
41846
41847 #. type: =item
41848 #: ../tools/virt-make-fs.pl:187
41849 msgid "B<--size=+E<lt>NE<gt>>"
41850 msgstr ""
41851
41852 #. type: =item
41853 #: ../tools/virt-make-fs.pl:189
41854 msgid "B<-s E<lt>NE<gt>>"
41855 msgstr ""
41856
41857 #. type: =item
41858 #: ../tools/virt-make-fs.pl:191
41859 msgid "B<-s +E<lt>NE<gt>>"
41860 msgstr ""
41861
41862 #. type: textblock
41863 #: ../tools/virt-make-fs.pl:193
41864 msgid ""
41865 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41866 msgstr ""
41867
41868 #. type: textblock
41869 #: ../tools/virt-make-fs.pl:196
41870 msgid ""
41871 "If this option is I<not> given, then the output image will be just large "
41872 "enough to contain all the files, with not much wasted space."
41873 msgstr ""
41874
41875 #. type: textblock
41876 #: ../tools/virt-make-fs.pl:199
41877 msgid ""
41878 "To choose a fixed size output disk, specify an absolute number followed by b/"
41879 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41880 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41881 "files, else you will get an error."
41882 msgstr ""
41883
41884 #. type: textblock
41885 #: ../tools/virt-make-fs.pl:204
41886 msgid ""
41887 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41888 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41889 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41890 "the input files, and (approximately) an extra 200 MB free space."
41891 msgstr ""
41892
41893 #. type: textblock
41894 #: ../tools/virt-make-fs.pl:210
41895 msgid ""
41896 "Note that virt-make-fs estimates free space, and therefore will not produce "
41897 "filesystems containing precisely the free space requested.  (It is much more "
41898 "expensive and time-consuming to produce a filesystem which has precisely the "
41899 "desired free space)."
41900 msgstr ""
41901
41902 #. type: =item
41903 #: ../tools/virt-make-fs.pl:219
41904 msgid "B<--format=E<lt>fmtE<gt>>"
41905 msgstr ""
41906
41907 #. type: =item
41908 #: ../tools/virt-make-fs.pl:221
41909 msgid "B<-F E<lt>fmtE<gt>>"
41910 msgstr ""
41911
41912 #. type: textblock
41913 #: ../tools/virt-make-fs.pl:223
41914 msgid "Choose the output disk image format."
41915 msgstr ""
41916
41917 #. type: textblock
41918 #: ../tools/virt-make-fs.pl:225
41919 msgid "The default is C<raw> (raw sparse disk image)."
41920 msgstr ""
41921
41922 #. type: textblock
41923 #: ../tools/virt-make-fs.pl:227
41924 msgid ""
41925 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41926 "that would really make sense here is C<qcow2>."
41927 msgstr ""
41928
41929 #. type: =item
41930 #: ../tools/virt-make-fs.pl:234
41931 msgid "B<--type=E<lt>fsE<gt>>"
41932 msgstr ""
41933
41934 #. type: =item
41935 #: ../tools/virt-make-fs.pl:236
41936 msgid "B<-t E<lt>fsE<gt>>"
41937 msgstr ""
41938
41939 #. type: textblock
41940 #: ../tools/virt-make-fs.pl:238
41941 msgid "Choose the output filesystem type."
41942 msgstr ""
41943
41944 #. type: textblock
41945 #: ../tools/virt-make-fs.pl:240
41946 msgid "The default is C<ext2>."
41947 msgstr ""
41948
41949 #. type: textblock
41950 #: ../tools/virt-make-fs.pl:242
41951 msgid ""
41952 "Any filesystem which is supported read-write by libguestfs can be used here."
41953 msgstr ""
41954
41955 #. type: =item
41956 #: ../tools/virt-make-fs.pl:249
41957 msgid "B<--partition>"
41958 msgstr ""
41959
41960 #. type: =item
41961 #: ../tools/virt-make-fs.pl:251
41962 msgid "B<--partition=E<lt>parttypeE<gt>>"
41963 msgstr ""
41964
41965 #. type: textblock
41966 #: ../tools/virt-make-fs.pl:253
41967 msgid ""
41968 "If specified, this flag adds an MBR partition table to the output disk image."
41969 msgstr ""
41970
41971 #. type: textblock
41972 #: ../tools/virt-make-fs.pl:256
41973 msgid ""
41974 "You can change the partition table type, eg. I<--partition=gpt> for large "
41975 "disks."
41976 msgstr ""
41977
41978 #. type: textblock
41979 #: ../tools/virt-make-fs.pl:259
41980 msgid ""
41981 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41982 "might consider the next parameter to be the partition type.  For example:"
41983 msgstr ""
41984
41985 #. type: verbatim
41986 #: ../tools/virt-make-fs.pl:263
41987 #, no-wrap
41988 msgid ""
41989 " virt-make-fs --partition input.tar output.img\n"
41990 "\n"
41991 msgstr ""
41992
41993 #. type: textblock
41994 #: ../tools/virt-make-fs.pl:265
41995 msgid ""
41996 "would cause virt-make-fs to think you wanted to use a partition type of "
41997 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41998 "dash) between options and the input and output arguments:"
41999 msgstr ""
42000
42001 #. type: verbatim
42002 #: ../tools/virt-make-fs.pl:269
42003 #, no-wrap
42004 msgid ""
42005 " virt-make-fs --partition -- input.tar output.img\n"
42006 "\n"
42007 msgstr ""
42008
42009 #. type: textblock
42010 #: ../tools/virt-make-fs.pl:271
42011 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42012 msgstr ""
42013
42014 #. type: textblock
42015 #: ../tools/virt-make-fs.pl:559
42016 msgid ""
42017 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42018 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42019 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42020 msgstr ""
42021
42022 #. type: textblock
42023 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42024 msgid ""
42025 "When reporting bugs, please enable debugging and capture the I<complete> "
42026 "output:"
42027 msgstr ""
42028
42029 #. type: verbatim
42030 #: ../tools/virt-make-fs.pl:576
42031 #, no-wrap
42032 msgid ""
42033 " export LIBGUESTFS_DEBUG=1\n"
42034 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42035 "\n"
42036 msgstr ""
42037
42038 #. type: textblock
42039 #: ../tools/virt-make-fs.pl:579
42040 msgid ""
42041 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42042 "redhat.com/>"
42043 msgstr ""
42044
42045 #. type: textblock
42046 #: ../tools/virt-tar.pl:33
42047 msgid "virt-tar - Extract or upload files to a virtual machine"
42048 msgstr ""
42049
42050 #. type: verbatim
42051 #: ../tools/virt-tar.pl:37
42052 #, no-wrap
42053 msgid ""
42054 " virt-tar [--options] -x domname directory tarball\n"
42055 "\n"
42056 msgstr ""
42057
42058 #. type: verbatim
42059 #: ../tools/virt-tar.pl:39
42060 #, no-wrap
42061 msgid ""
42062 " virt-tar [--options] -u domname tarball directory\n"
42063 "\n"
42064 msgstr ""
42065
42066 #. type: verbatim
42067 #: ../tools/virt-tar.pl:41
42068 #, no-wrap
42069 msgid ""
42070 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42071 "\n"
42072 msgstr ""
42073
42074 #. type: verbatim
42075 #: ../tools/virt-tar.pl:43
42076 #, no-wrap
42077 msgid ""
42078 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42079 "\n"
42080 msgstr ""
42081
42082 #. type: =head2
42083 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42084 msgid "NOTE"
42085 msgstr ""
42086
42087 #. type: textblock
42088 #: ../tools/virt-tar.pl:47
42089 msgid ""
42090 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42091 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42092 msgstr ""
42093
42094 #. type: textblock
42095 #: ../tools/virt-tar.pl:52
42096 msgid "Download C</home> from the VM into a local tarball:"
42097 msgstr ""
42098
42099 #. type: verbatim
42100 #: ../tools/virt-tar.pl:54
42101 #, no-wrap
42102 msgid ""
42103 " virt-tar -x domname /home home.tar\n"
42104 "\n"
42105 msgstr ""
42106
42107 #. type: verbatim
42108 #: ../tools/virt-tar.pl:56
42109 #, no-wrap
42110 msgid ""
42111 " virt-tar -zx domname /home home.tar.gz\n"
42112 "\n"
42113 msgstr ""
42114
42115 #. type: textblock
42116 #: ../tools/virt-tar.pl:58
42117 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42118 msgstr ""
42119
42120 #. type: verbatim
42121 #: ../tools/virt-tar.pl:60
42122 #, no-wrap
42123 msgid ""
42124 " virt-tar -u domname uploadstuff.tar /tmp\n"
42125 "\n"
42126 msgstr ""
42127
42128 #. type: verbatim
42129 #: ../tools/virt-tar.pl:62
42130 #, no-wrap
42131 msgid ""
42132 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42133 "\n"
42134 msgstr ""
42135
42136 #. type: textblock
42137 #: ../tools/virt-tar.pl:66
42138 msgid ""
42139 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42140 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
42141 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42142 msgstr ""
42143
42144 #. type: textblock
42145 #: ../tools/virt-tar.pl:71
42146 msgid ""
42147 "You can use I<-x> (extract) on live virtual machines, but you might get "
42148 "inconsistent results or errors if there is filesystem activity inside the "
42149 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
42150 "work, but the only way to guarantee consistent results is if the virtual "
42151 "machine is shut down."
42152 msgstr ""
42153
42154 #. type: textblock
42155 #: ../tools/virt-tar.pl:79
42156 msgid ""
42157 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42158 "parts of a guest filesystem.  There are many possibilities: making backups, "
42159 "uploading data files, snooping on guest activity, fixing or customizing "
42160 "guests, etc."
42161 msgstr ""
42162
42163 #. type: textblock
42164 #: ../tools/virt-tar.pl:84
42165 msgid ""
42166 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
42167 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
42168 "should look at the L<guestfish(1)> tool."
42169 msgstr ""
42170
42171 #. type: textblock
42172 #: ../tools/virt-tar.pl:88
42173 msgid ""
42174 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42175 "its contents (recursively) from the virtual machine into a local tarball.  "
42176 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42177 "virtual machine.  You cannot use these two options together."
42178 msgstr ""
42179
42180 #. type: textblock
42181 #: ../tools/virt-tar.pl:94
42182 msgid ""
42183 "In addition, you may need to use the I<-z> (gZip) option to enable "
42184 "compression.  When uploading, you have to specify I<-z> if the upload file "
42185 "is compressed because virt-tar won't detect this on its own."
42186 msgstr ""
42187
42188 #. type: textblock
42189 #: ../tools/virt-tar.pl:98
42190 msgid ""
42191 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
42192 "example it cannot do PKZip files or bzip2 compression.  If you want that "
42193 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
42194 "the L<libguestfs(3)> API)."
42195 msgstr ""
42196
42197 #. type: =item
42198 #: ../tools/virt-tar.pl:160
42199 msgid "B<--extract>"
42200 msgstr ""
42201
42202 #. type: =item
42203 #: ../tools/virt-tar.pl:162
42204 msgid "B<--download>"
42205 msgstr ""
42206
42207 #. type: =item
42208 #: ../tools/virt-tar.pl:164
42209 msgid "B<-u>"
42210 msgstr ""
42211
42212 #. type: =item
42213 #: ../tools/virt-tar.pl:166
42214 msgid "B<--upload>"
42215 msgstr ""
42216
42217 #. type: textblock
42218 #: ../tools/virt-tar.pl:168
42219 msgid ""
42220 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42221 "local tarball."
42222 msgstr ""
42223
42224 #. type: textblock
42225 #: ../tools/virt-tar.pl:171
42226 msgid ""
42227 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
42228 "Please read the L</WARNING> section above before using this option."
42229 msgstr ""
42230
42231 #. type: textblock
42232 #: ../tools/virt-tar.pl:175
42233 msgid "You must specify exactly one of these options."
42234 msgstr ""
42235
42236 #. type: =item
42237 #: ../tools/virt-tar.pl:181
42238 msgid "B<-z>"
42239 msgstr ""
42240
42241 #. type: =item
42242 #: ../tools/virt-tar.pl:183
42243 msgid "B<--gzip>"
42244 msgstr ""
42245
42246 #. type: textblock
42247 #: ../tools/virt-tar.pl:185
42248 msgid "Specify that the input or output tarball is gzip-compressed."
42249 msgstr ""
42250
42251 #. type: textblock
42252 #: ../tools/virt-tar.pl:298
42253 msgid ""
42254 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42255 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42256 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42257 "org/>."
42258 msgstr ""
42259
42260 #. type: textblock
42261 #: ../tools/virt-win-reg.pl:37
42262 msgid ""
42263 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42264 msgstr ""
42265
42266 #. type: verbatim
42267 #: ../tools/virt-win-reg.pl:41
42268 #, no-wrap
42269 msgid ""
42270 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42271 "\n"
42272 msgstr ""
42273
42274 #. type: verbatim
42275 #: ../tools/virt-win-reg.pl:43
42276 #, no-wrap
42277 msgid ""
42278 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42279 "\n"
42280 msgstr ""
42281
42282 #. type: verbatim
42283 #: ../tools/virt-win-reg.pl:45
42284 #, no-wrap
42285 msgid ""
42286 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42287 "\n"
42288 msgstr ""
42289
42290 #. type: verbatim
42291 #: ../tools/virt-win-reg.pl:47
42292 #, no-wrap
42293 msgid ""
42294 " virt-win-reg --merge domname [input.reg ...]\n"
42295 "\n"
42296 msgstr ""
42297
42298 #. type: verbatim
42299 #: ../tools/virt-win-reg.pl:49
42300 #, no-wrap
42301 msgid ""
42302 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42303 "\n"
42304 msgstr ""
42305
42306 #. type: textblock
42307 #: ../tools/virt-win-reg.pl:53
42308 msgid ""
42309 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42310 "virtual machines.  If you do this, you I<will> get irreversible disk "
42311 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
42312 "but doesn't catch all cases."
42313 msgstr ""
42314
42315 #. type: textblock
42316 #: ../tools/virt-win-reg.pl:58
42317 msgid ""
42318 "Modifying the Windows Registry is an inherently risky operation.  The format "
42319 "is deliberately obscure and undocumented, and Registry changes can leave the "
42320 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42321 "you have a reliable backup first."
42322 msgstr ""
42323
42324 #. type: textblock
42325 #: ../tools/virt-win-reg.pl:65
42326 msgid ""
42327 "This program can export and merge Windows Registry entries from a Windows "
42328 "guest."
42329 msgstr ""
42330
42331 #. type: textblock
42332 #: ../tools/virt-win-reg.pl:68
42333 msgid ""
42334 "The first parameter is the libvirt guest name or the raw disk image of a "
42335 "Windows guest."
42336 msgstr ""
42337
42338 #. type: textblock
42339 #: ../tools/virt-win-reg.pl:71
42340 msgid ""
42341 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42342 "exported (recursively).  For example:"
42343 msgstr ""
42344
42345 #. type: verbatim
42346 #: ../tools/virt-win-reg.pl:74
42347 #, no-wrap
42348 msgid ""
42349 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42350 "\n"
42351 msgstr ""
42352
42353 #. type: textblock
42354 #: ../tools/virt-win-reg.pl:76
42355 msgid ""
42356 "You can also display single values from within registry keys, for example:"
42357 msgstr ""
42358
42359 #. type: verbatim
42360 #: ../tools/virt-win-reg.pl:79
42361 #, no-wrap
42362 msgid ""
42363 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42364 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42365 " Windows 7 Enterprise\n"
42366 "\n"
42367 msgstr ""
42368
42369 #. type: textblock
42370 #: ../tools/virt-win-reg.pl:83
42371 msgid ""
42372 "With I<--merge>, you can merge a textual regedit file into the Windows "
42373 "Registry:"
42374 msgstr ""
42375
42376 #. type: verbatim
42377 #: ../tools/virt-win-reg.pl:86
42378 #, no-wrap
42379 msgid ""
42380 " $ virt-win-reg --merge Windows7 changes.reg\n"
42381 "\n"
42382 msgstr ""
42383
42384 #. type: textblock
42385 #: ../tools/virt-win-reg.pl:90
42386 msgid ""
42387 "This program is only meant for simple access to the registry.  If you want "
42388 "to do complicated things with the registry, we suggest you download the "
42389 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42390 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42391 "L<hivexregedit(1)>."
42392 msgstr ""
42393
42394 #. type: =item
42395 #: ../tools/virt-win-reg.pl:159
42396 msgid "B<--merge>"
42397 msgstr ""
42398
42399 #. type: textblock
42400 #: ../tools/virt-win-reg.pl:161
42401 msgid ""
42402 "In merge mode, this merges a textual regedit file into the Windows Registry "
42403 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42404 "displays or exports Registry entries instead."
42405 msgstr ""
42406
42407 #. type: textblock
42408 #: ../tools/virt-win-reg.pl:165
42409 msgid ""
42410 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42411 "result in disk corruption.  However exporting (without this flag)  is always "
42412 "safe."
42413 msgstr ""
42414
42415 #. type: =item
42416 #: ../tools/virt-win-reg.pl:173
42417 msgid "B<--encoding> UTF-16LE|ASCII"
42418 msgstr ""
42419
42420 #. type: textblock
42421 #: ../tools/virt-win-reg.pl:175
42422 msgid ""
42423 "When merging (only), you may need to specify the encoding for strings to be "
42424 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
42425 "(3)/ENCODING STRINGS>."
42426 msgstr ""
42427
42428 #. type: textblock
42429 #: ../tools/virt-win-reg.pl:179
42430 msgid ""
42431 "The default is to use UTF-16LE, which should work with recent versions of "
42432 "Windows."
42433 msgstr ""
42434
42435 #. type: =item
42436 #: ../tools/virt-win-reg.pl:186
42437 msgid "B<--unsafe-printable-strings>"
42438 msgstr ""
42439
42440 #. type: textblock
42441 #: ../tools/virt-win-reg.pl:188
42442 msgid ""
42443 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42444 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42445 "present."
42446 msgstr ""
42447
42448 #. type: textblock
42449 #: ../tools/virt-win-reg.pl:192
42450 msgid ""
42451 "This is unsafe and does not preserve the fidelity of strings in the original "
42452 "Registry for various reasons:"
42453 msgstr ""
42454
42455 #. type: textblock
42456 #: ../tools/virt-win-reg.pl:199
42457 msgid ""
42458 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
42459 "other encodings will be corrupted by this transformation."
42460 msgstr ""
42461
42462 #. type: textblock
42463 #: ../tools/virt-win-reg.pl:204
42464 msgid ""
42465 "Assumes that everything which has type 1 or 2 is really a string and that "
42466 "everything else is not a string, but the type field in real Registries is "
42467 "not reliable."
42468 msgstr ""
42469
42470 #. type: textblock
42471 #: ../tools/virt-win-reg.pl:210
42472 msgid ""
42473 "Loses information about whether a zero codepoint followed the string in the "
42474 "Registry or not."
42475 msgstr ""
42476
42477 #. type: textblock
42478 #: ../tools/virt-win-reg.pl:215
42479 msgid ""
42480 "This all happens because the Registry itself contains no information about "
42481 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42482 msgstr ""
42483
42484 #. type: textblock
42485 #: ../tools/virt-win-reg.pl:219
42486 msgid ""
42487 "You should only use this option for quick hacking and debugging of the "
42488 "Registry contents, and I<never> use it if the output is going to be passed "
42489 "into another program or stored in another Registry."
42490 msgstr ""
42491
42492 #. type: =head1
42493 #: ../tools/virt-win-reg.pl:556
42494 msgid "SUPPORTED SYSTEMS"
42495 msgstr ""
42496
42497 #. type: textblock
42498 #: ../tools/virt-win-reg.pl:558
42499 msgid ""
42500 "The program currently supports Windows NT-derived guests starting with "
42501 "Windows XP through to at least Windows 7."
42502 msgstr ""
42503
42504 #. type: textblock
42505 #: ../tools/virt-win-reg.pl:561
42506 msgid "The following Registry keys are supported:"
42507 msgstr ""
42508
42509 #. type: =item
42510 #: ../tools/virt-win-reg.pl:565
42511 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42512 msgstr ""
42513
42514 #. type: =item
42515 #: ../tools/virt-win-reg.pl:567
42516 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42517 msgstr ""
42518
42519 #. type: =item
42520 #: ../tools/virt-win-reg.pl:569
42521 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42522 msgstr ""
42523
42524 #. type: =item
42525 #: ../tools/virt-win-reg.pl:571
42526 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42527 msgstr ""
42528
42529 #. type: =item
42530 #: ../tools/virt-win-reg.pl:573
42531 msgid "C<HKEY_USERS\\.DEFAULT>"
42532 msgstr ""
42533
42534 #. type: =item
42535 #: ../tools/virt-win-reg.pl:575
42536 msgid "C<HKEY_USERS\\I<SID>>"
42537 msgstr ""
42538
42539 #. type: textblock
42540 #: ../tools/virt-win-reg.pl:577
42541 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42542 msgstr ""
42543
42544 #. type: =item
42545 #: ../tools/virt-win-reg.pl:579
42546 msgid "C<HKEY_USERS\\I<username>>"
42547 msgstr ""
42548
42549 #. type: textblock
42550 #: ../tools/virt-win-reg.pl:581
42551 msgid ""
42552 "where I<username> is a local user name (this is a libguestfs extension)."
42553 msgstr ""
42554
42555 #. type: textblock
42556 #: ../tools/virt-win-reg.pl:585
42557 msgid ""
42558 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42559 "C<HKEY_USERS>."
42560 msgstr ""
42561
42562 #. type: textblock
42563 #: ../tools/virt-win-reg.pl:588
42564 msgid ""
42565 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42566 "supported (there is no \"current user\")."
42567 msgstr ""
42568
42569 #. type: =head1
42570 #: ../tools/virt-win-reg.pl:591
42571 msgid "ENCODING"
42572 msgstr ""
42573
42574 #. type: textblock
42575 #: ../tools/virt-win-reg.pl:593
42576 msgid ""
42577 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42578 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
42579 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
42580 "Windows-style line endings, you may need to reencode the whole file before "
42581 "or after processing."
42582 msgstr ""
42583
42584 #. type: textblock
42585 #: ../tools/virt-win-reg.pl:599
42586 msgid ""
42587 "To reencode a file from Windows format to Linux (before processing it with "
42588 "the I<--merge> option), you would do something like this:"
42589 msgstr ""
42590
42591 #. type: verbatim
42592 #: ../tools/virt-win-reg.pl:602
42593 #, no-wrap
42594 msgid ""
42595 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42596 "\n"
42597 msgstr ""
42598
42599 #. type: textblock
42600 #: ../tools/virt-win-reg.pl:604
42601 msgid ""
42602 "To go in the opposite direction, after exporting and before sending the file "
42603 "to a Windows user, do something like this:"
42604 msgstr ""
42605
42606 #. type: verbatim
42607 #: ../tools/virt-win-reg.pl:607
42608 #, no-wrap
42609 msgid ""
42610 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42611 "\n"
42612 msgstr ""
42613
42614 #. type: textblock
42615 #: ../tools/virt-win-reg.pl:609
42616 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42617 msgstr ""
42618
42619 #. type: textblock
42620 #: ../tools/virt-win-reg.pl:611
42621 msgid ""
42622 "If you are unsure about the current encoding, use the L<file(1)> command.  "
42623 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
42624 "style (CRLF) line endings, like this:"
42625 msgstr ""
42626
42627 #. type: verbatim
42628 #: ../tools/virt-win-reg.pl:615
42629 #, no-wrap
42630 msgid ""
42631 " $ file software.reg\n"
42632 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42633 " with CRLF line terminators\n"
42634 "\n"
42635 msgstr ""
42636
42637 #. type: textblock
42638 #: ../tools/virt-win-reg.pl:619
42639 msgid "This file would need conversion before you could I<--merge> it."
42640 msgstr ""
42641
42642 #. type: =head1
42643 #: ../tools/virt-win-reg.pl:621
42644 msgid "CurrentControlSet etc."
42645 msgstr ""
42646
42647 #. type: textblock
42648 #: ../tools/virt-win-reg.pl:623
42649 msgid ""
42650 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42651 "Registry at the level of the hive file, and therefore you cannot modify "
42652 "these."
42653 msgstr ""
42654
42655 #. type: textblock
42656 #: ../tools/virt-win-reg.pl:627
42657 msgid ""
42658 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
42659 "circumstances it might refer to another control set.  The way to find out is "
42660 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42661 msgstr ""
42662
42663 #. type: verbatim
42664 #: ../tools/virt-win-reg.pl:631
42665 #, no-wrap
42666 msgid ""
42667 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42668 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42669 " \"Current\"=dword:00000001\n"
42670 " \"Default\"=dword:00000001\n"
42671 " \"Failed\"=dword:00000000\n"
42672 " \"LastKnownGood\"=dword:00000002\n"
42673 "\n"
42674 msgstr ""
42675
42676 #. type: textblock
42677 #: ../tools/virt-win-reg.pl:638
42678 msgid "\"Current\" is the one which Windows will choose when it boots."
42679 msgstr ""
42680
42681 #. type: textblock
42682 #: ../tools/virt-win-reg.pl:640
42683 msgid ""
42684 "Similarly, other C<Current...> keys in the path may need to be replaced."
42685 msgstr ""
42686
42687 #. type: =head1
42688 #: ../tools/virt-win-reg.pl:643
42689 msgid "DELETING REGISTRY KEYS AND VALUES"
42690 msgstr ""
42691
42692 #. type: textblock
42693 #: ../tools/virt-win-reg.pl:645
42694 msgid "To delete a whole registry key, use the syntax:"
42695 msgstr ""
42696
42697 #. type: verbatim
42698 #: ../tools/virt-win-reg.pl:647
42699 #, no-wrap
42700 msgid ""
42701 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
42702 "\n"
42703 msgstr ""
42704
42705 #. type: textblock
42706 #: ../tools/virt-win-reg.pl:649
42707 msgid "To delete a single value within a key, use the syntax:"
42708 msgstr ""
42709
42710 #. type: verbatim
42711 #: ../tools/virt-win-reg.pl:651
42712 #, no-wrap
42713 msgid ""
42714 " [HKEY_LOCAL_MACHINE\\Foo]\n"
42715 " \"Value\"=-\n"
42716 "\n"
42717 msgstr ""
42718
42719 #. type: =head1
42720 #: ../tools/virt-win-reg.pl:654
42721 msgid "WINDOWS TIPS"
42722 msgstr ""
42723
42724 #. type: textblock
42725 #: ../tools/virt-win-reg.pl:656
42726 msgid ""
42727 "Note that some of these tips modify the guest disk image.  The guest I<must> "
42728 "be shut off, else you will get disk corruption."
42729 msgstr ""
42730
42731 #. type: =head2
42732 #: ../tools/virt-win-reg.pl:659
42733 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42734 msgstr ""
42735
42736 #. type: textblock
42737 #: ../tools/virt-win-reg.pl:661
42738 msgid ""
42739 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
42740 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
42741 "is uploaded into C<C:\\>:"
42742 msgstr ""
42743
42744 #. type: verbatim
42745 #: ../tools/virt-win-reg.pl:665
42746 #, no-wrap
42747 msgid ""
42748 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42749 "\n"
42750 msgstr ""
42751
42752 #. type: textblock
42753 #: ../tools/virt-win-reg.pl:667
42754 msgid "Prepare a regedit file containing the registry change:"
42755 msgstr ""
42756
42757 #. type: verbatim
42758 #: ../tools/virt-win-reg.pl:669
42759 #, no-wrap
42760 msgid ""
42761 " cat > test.reg <<'EOF'\n"
42762 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42763 " \"Test\"=\"c:\\\\test.bat\"\n"
42764 " EOF\n"
42765 "\n"
42766 msgstr ""
42767
42768 #. type: textblock
42769 #: ../tools/virt-win-reg.pl:674
42770 msgid ""
42771 "In this example we use the key C<RunOnce> which means that the script will "
42772 "run precisely once when the first user logs in.  If you want it to run every "
42773 "time a user logs in, replace C<RunOnce> with C<Run>."
42774 msgstr ""
42775
42776 #. type: textblock
42777 #: ../tools/virt-win-reg.pl:678
42778 msgid "Now update the registry:"
42779 msgstr ""
42780
42781 #. type: verbatim
42782 #: ../tools/virt-win-reg.pl:680
42783 #, no-wrap
42784 msgid ""
42785 " virt-win-reg --merge WindowsGuest test.reg\n"
42786 "\n"
42787 msgstr ""
42788
42789 #. type: =head2
42790 #: ../tools/virt-win-reg.pl:682
42791 msgid "INSTALLING A SERVICE"
42792 msgstr ""
42793
42794 #. type: textblock
42795 #: ../tools/virt-win-reg.pl:684
42796 msgid ""
42797 "This section assumes you are familiar with Windows services, and you either "
42798 "have a program which handles the Windows Service Control Protocol directly "
42799 "or you want to run any program using a service wrapper like SrvAny or the "
42800 "free RHSrvAny."
42801 msgstr ""
42802
42803 #. type: textblock
42804 #: ../tools/virt-win-reg.pl:689
42805 msgid ""
42806 "First upload the program and optionally the service wrapper.  In this case "
42807 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
42808 msgstr ""
42809
42810 #. type: verbatim
42811 #: ../tools/virt-win-reg.pl:693
42812 #, no-wrap
42813 msgid ""
42814 " guestfish -i -d WindowsGuest <<EOF\n"
42815 "   upload rhsrvany.exe /rhsrvany.exe\n"
42816 "   upload test.exe /test.exe\n"
42817 " EOF\n"
42818 "\n"
42819 msgstr ""
42820
42821 #. type: textblock
42822 #: ../tools/virt-win-reg.pl:698
42823 msgid ""
42824 "Prepare a regedit file containing the registry changes.  In this example, "
42825 "the first registry change is needed for the service itself or the service "
42826 "wrapper (if used).  The second registry change is only needed because I am "
42827 "using the RHSrvAny service wrapper."
42828 msgstr ""
42829
42830 #. type: verbatim
42831 #: ../tools/virt-win-reg.pl:703
42832 #, no-wrap
42833 msgid ""
42834 " cat > service.reg <<'EOF'\n"
42835 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42836 " \"Type\"=dword:00000010\n"
42837 " \"Start\"=dword:00000002\n"
42838 " \"ErrorControl\"=dword:00000001\n"
42839 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42840 " \"DisplayName\"=\"RHSrvAny\"\n"
42841 " \"ObjectName\"=\"NetworkService\"\n"
42842 " \n"
42843 msgstr ""
42844
42845 #. type: verbatim
42846 #: ../tools/virt-win-reg.pl:712
42847 #, no-wrap
42848 msgid ""
42849 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42850 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42851 " \"PWD\"=\"c:\\\\Temp\"\n"
42852 " EOF\n"
42853 "\n"
42854 msgstr ""
42855
42856 #. type: textblock
42857 #: ../tools/virt-win-reg.pl:723
42858 msgid ""
42859 "For use of C<ControlSet001> see the section above in this manual page.  You "
42860 "may need to adjust this according to the control set that is in use by the "
42861 "guest."
42862 msgstr ""
42863
42864 #. type: textblock
42865 #: ../tools/virt-win-reg.pl:729
42866 msgid ""
42867 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42868 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42869 "privileged account."
42870 msgstr ""
42871
42872 #. type: textblock
42873 #: ../tools/virt-win-reg.pl:735
42874 msgid ""
42875 "For the meaning of the magic numbers, see this Microsoft KB article: "
42876 "L<http://support.microsoft.com/kb/103000>."
42877 msgstr ""
42878
42879 #. type: textblock
42880 #: ../tools/virt-win-reg.pl:740
42881 msgid "Update the registry:"
42882 msgstr ""
42883
42884 #. type: verbatim
42885 #: ../tools/virt-win-reg.pl:742
42886 #, no-wrap
42887 msgid ""
42888 " virt-win-reg --merge WindowsGuest service.reg\n"
42889 "\n"
42890 msgstr ""
42891
42892 #. type: textblock
42893 #: ../tools/virt-win-reg.pl:746
42894 msgid ""
42895 "Be careful when passing parameters containing C<\\> (backslash) in the "
42896 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42897 "(but not both) to protect them from the shell."
42898 msgstr ""
42899
42900 #. type: textblock
42901 #: ../tools/virt-win-reg.pl:750
42902 msgid "Paths and value names are case-insensitive."
42903 msgstr ""
42904
42905 #. type: textblock
42906 #: ../tools/virt-win-reg.pl:759
42907 msgid ""
42908 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42909 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42910 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42911 msgstr ""
42912
42913 #. type: verbatim
42914 #: ../tools/virt-win-reg.pl:777
42915 #, no-wrap
42916 msgid ""
42917 " export LIBGUESTFS_DEBUG=1\n"
42918 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42919 "\n"
42920 msgstr ""
42921
42922 #. type: textblock
42923 #: ../tools/virt-win-reg.pl:780
42924 msgid ""
42925 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
42926 "redhat.com/>"
42927 msgstr ""